From 83d379d5bbb59f3dadce4e6579c33546f6da7b41 Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Sun, 1 Nov 2026 22:04:17 -0700 Subject: [PATCH] actions: fix ci (pinned submodules, outdated test) (#1483) * musikr: fix outdated musicbrainz id test Since b85dc561d, songs without artist names take all artist fields (including MBIDs) from composer tags. The test only set artist MBIDs, so they were replaced. Give it an artist name. Co-Authored-By: Claude Opus 5.5 * actions: use pinned submodule commits --remote made CI build the latest commit of each submodule's branch instead of the commits pinned in the repository, so a push to the media fork could break every build regardless of what was being tested. Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- .github/workflows/android.yml | 2 +- .github/workflows/lint.yml | 2 +- .../test/java/org/oxycblt/musikr/tag/parse/TagParserTest.kt | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index eb7e2de68..f9a87e0c8 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -16,7 +16,7 @@ jobs: - name: Clone repository uses: actions/checkout@v4 - name: Clone submodules - run: git submodule update --init --recursive --remote + run: git submodule update --init --recursive - name: Set up JDK 21 uses: actions/setup-java@v4 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a8ee73485..5f1657e98 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ jobs: - name: Clone repository uses: actions/checkout@v4 - name: Clone submodules - run: git submodule update --init --recursive --remote + run: git submodule update --init --recursive - name: Set up JDK 17 uses: actions/setup-java@v4 with: diff --git a/musikr/src/test/java/org/oxycblt/musikr/tag/parse/TagParserTest.kt b/musikr/src/test/java/org/oxycblt/musikr/tag/parse/TagParserTest.kt index 50bb0c587..ea64c3809 100644 --- a/musikr/src/test/java/org/oxycblt/musikr/tag/parse/TagParserTest.kt +++ b/musikr/src/test/java/org/oxycblt/musikr/tag/parse/TagParserTest.kt @@ -122,6 +122,9 @@ class TagParserTest { mapOf( "TXXX:MUSICBRAINZ RELEASE TRACK ID" to listOf("track-id-123"), "TXXX:MUSICBRAINZ ALBUM ID" to listOf("album-id-456"), + // Artist MBIDs are only used alongside artist names, otherwise we fall + // back to composer tags entirely. + "TPE1" to listOf("Artist"), "TXXX:MUSICBRAINZ ARTIST ID" to listOf("artist-id-789"), "TXXX:MUSICBRAINZ ALBUM ARTIST ID" to listOf("album-artist-id-012"), )