Skip to content

Fix master CI: Flatpak archive type and two stale Windows tests - #99

Closed
carrdylan52 wants to merge 4 commits into
TheMoonPeople:masterfrom
carrdylan52:pr/master-ci
Closed

carrdylan52 wants to merge 4 commits into
TheMoonPeople:masterfrom
carrdylan52:pr/master-ci

Conversation

@carrdylan52

Copy link
Copy Markdown
Contributor

Before: every master CI job is red. Flatpak stops at Unknown archive format on the fastgltf download; Windows fails MgTexture.NativeSetsReuseIdenticallyNamedPicturesWithoutDecoding and NativeAssetsTest.DirectAssetCandidates...; Linux and macOS stop at configure on a stale prebuilt FFmpeg (fixed in Kazarov, see below).
After: the Flatpak and both Windows failures are fixed here.
How:

  • Flatpak: the fastgltf and simdjson URLs end in a bare tag, so flatpak-builder can't infer the archive type; they now say archive-type: tar-gzip (hashes unchanged).
  • MgTexture: Port: speed up texture registration with zipped HD datapacks #68 made fully named pictures decode their other variants only when selected; the test still expected eager decodes. It now expects Port: speed up texture registration with zipped HD datapacks #68's counts and checks that selecting the other variant decodes it. Two comments describing the old behaviour are updated.
  • NativeAssetsTest: the runner's %TEMP% is an 8.3 path (RUNNER~1) that datapacks.cpp expands to the long form, while the test built its expected paths from the short one. The test root is now the canonical temp path.
    Tests: ctest -LE gpu passes on Windows with an 8.3 %TEMP%.
    Still needed for Linux/macOS: Kazarov's prebuilt fix (TheMoonPeople/Kazarov PR), then a follow-up here pointing tools/ci/prebuilt-deps.sh at the new release with its SHA256SUMS. The macOS runner's SDK also had a tapi ... arm64e.x1 link error before configure broke, which may resurface.

flatpak-builder picks an archive's format from its file name, and the
codeload URLs end in the bare tag (v0.9.1, v4.6.11), so the Flatpak job
has stopped with "Unknown archive format" since 20fc7f6 added them.
Both are gzip tarballs; the pinned digests are unchanged.
6d99d9f (TheMoonPeople#68) stopped decoding every variant of a named picture at
registration; the alternates now decode when selected. The test still
counted two decodes per entry, so it has failed on Windows CI since TheMoonPeople#68.
Count one decode for named entries and check that selecting the
alternate decodes it then.
datapacks::Load canonicalises the data root, which expands the Windows
runner's short (8.3) TEMP name (RUNNER~1 to runneradmin), so the
expected paths built from temp_directory_path() never matched on CI.
Build the fixture root from the canonical temp directory.
Since TheMoonPeople#68 a fully named picture decodes its other variants when they are
selected, and a changed identity replaces the picture rather than keeping it
by its pixels. The MgTextureEnterNativeSet comment and the test's comment
said otherwise.
Adubbz pushed a commit that referenced this pull request Oct 18, 2026
Name the archive type of the fastgltf and simdjson tarballs, whose URLs end
in a bare tag. Expect named pictures to decode their other variants when
selected, compare datapack candidates against the canonical temp root, and
remove the whole legacy card directory before replacing it with a file.

Co-Authored-By: millerscout <amarcosju@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Adubbz Adubbz closed this Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants