Skip to content

CI: track MoltenVK failures (BUILD-1895) - #5903

Open
SuperCraft3M wants to merge 2 commits into
ItsNotRexed:mainfrom
SuperCraft3M:fix/build-1895-macos-moltenvk-known-failures
Open

SuperCraft3M wants to merge 2 commits into
ItsNotRexed:mainfrom
SuperCraft3M:fix/build-1895-macos-moltenvk-known-failures

Conversation

@SuperCraft3M

Copy link
Copy Markdown

BUILD-1895

The completed macOS job on PR #4446 (run 45168555187) shows two unrelated MoltenVK-only GPU failures: cs_w32_permlane_fi returns values indicating FI=0 is ignored on the Apple Paravirtual device, and cs_fmt_int_narrow times out after 120 seconds. The same job shows vk_overlapping_occlusion passing. These symptoms are recorded as known macOS GPU failures so unrelated PRs can get a useful CI result; the existing expected-failure checker still rejects any unlisted failure. The stale occlusion exception is removed.

This is CI triage, not a fix to either GPU behavior. Follow-up investigation still needs a MoltenVK host or another reproducer. No game files are used.

Validation

  • python -I tests/test_ci_expected_failures.py — 8 tests passed.
  • Synthetic failed-list check with both BUILD-1895 test names — accepted as expected; checker emitted warnings.
  • git diff --check — passed.
  • Existing macOS CI evidence: failed macos job on #4446.
  • Local GPU/driver: not tested for this workflow-only change. The cited job used GitHub's Apple Paravirtual device; no NVIDIA or AMD GPU was involved.
  • AI-assisted: yes.

No dependency PRs.

@DomasUrbonas

Copy link
Copy Markdown
Contributor

I checked cs_fmt_int_narrow on a physical Apple M4 Pro running macOS 27.2.1. It matched all 136 words on both MoltenVK 1.4.2 and KosmicKrisp 26.2.99, on main at 561b65a8 and on the exact CI revision 2ed08d62. Both revisions generated byte-identical SPIR-V with local LLVM 23.1.6. At the CI revision, five fresh harness processes per driver matched all 136 words each time. The MoltenVK runs took 38–49 ms per process.

The CI log confirms a 120 s timeout on the Apple Paravirtual device with MoltenVK 1.4.2 and LLVM 23.1.5. Could someone with access to that runner rerun cs_fmt_int_narrow alone at 2ed08d62 using --filter cs_fmt_int_narrow? If it times out again, timestamps around pipeline creation, queue submission, and queue wait would identify where it stalls. If it passes alone, the next comparison is the full suite on the same runner. Failing CI job

The local result leaves the CI timeout unexplained. Synthetic fixture only. AI-assisted.

@TheAirborneCoder

Copy link
Copy Markdown
Contributor

Checked ed57cdcfa against main 561b65a83 and ran the tracked tests on a physical Apple M2 Ultra (macOS 27.3 26C5035r, MoltenVK 1.4.2 and KosmicKrisp Mesa 26.3.1, Homebrew LLVM 23.1.6): needs changes (extra commit on branch); the .github/workflows/runtime.yml change itself looks right.

  1. Branch hygiene (blocking): This branch currently includes two commits over main 561b65a83 — 9c5d33a52 (spirv_asm: truncate excess hex float precision, from open PR spirv_asm: truncate excess hex float precision #5746, touching tools/spirv_asm.py and tests/test_spirv_asm.py) underneath ed57cdcfa (.github/workflows/runtime.yml). Please rebase ed57cdcfa directly onto main so this PR is workflow-only as described.
  2. M2 Ultra hardware evidence on the workflow list:
    • vk_overlapping_occlusion: PASS on both MoltenVK 1.4.2 (0.79 s, 60/62 ctest passed, 2 skipped) and KosmicKrisp 26.3.1 (0.44 s, 60/62 passed, 2 skipped) — dropping it (EXPECTED_FAILURES: "") is confirmed.
    • cs_w32_permlane_fi: FAIL on physical M2 Ultra under MoltenVK 1.4.2 with the same FI=0-ignored output (4 4 4 1 52 52 52 49, want 1000 0 4 1 1000 0 52 49), and PASS under KosmicKrisp 26.3.1 (1000 0 4 1 1000 0 52 49). (Minor comment nit while rebasing: .github/workflows/runtime.yml attributes both to the Apple Paravirtual device, whereas cs_w32_permlane_fi also reproduces on physical Apple Silicon under MoltenVK 1.4.2.)
    • cs_fmt_int_narrow: PASS (136/136 dumped words exact) on physical M2 Ultra on both MoltenVK 1.4.2 (5 fresh runs: 47.4–55.2 ms warm, 510.3 ms cold) and KosmicKrisp 26.3.1 (360.8–450.4 ms), matching @DomasUrbonas's M4 Pro result and confirming the 120 s hang is specific to CI's Apple Paravirtual GPU. Recording it in EXPECTED_FAILURES unblocks CI (::warning:: on timeout, ::notice:: if a runner/MoltenVK update clears it).
    • The other 7 listed GPU EXPECTED_FAILURES (ps_ssharp, cs_fma_fused, ps_vcmp_f32_nan, ps_vcmp_f16, ps_vcmp_f16_e64, ps_vcmpx_f16, ps_vcmpx_f16_e64) all fail on M2 Ultra MoltenVK 1.4.2 (making the exact 8-failure set with cs_w32_permlane_fi) and all pass on KosmicKrisp 26.3.1. python3 -I tests/test_ci_expected_failures.py (8 tests) passes.

Synthetic fixtures only; no game data. AI-assisted.

@autowert66

Copy link
Copy Markdown

Two notes, one of them time-sensitive because of what merged since this PR was opened:

  1. cs_w32_permlane_fi is fixed on main as of Keep the permlane FI/BOUND_CTRL subgroup operations convergent on MoltenVK (fixes #5895) #6322 (5a78b4b7d, merged today). The symptom this PR records from the paravirtual job — "FI=0 is ignored" — is the exact SPIRV-Cross/MoltenVK short-circuit that commit removes (it was cs_w32_permlane_fi fails on MoltenVK 1.4.2: the FI=0 / BOUND_CTRL lanes read the source lane's value instead of keeping the old value #5895: the permlane FI/BOUND_CTRL select became a Metal ternary that moved the ballot and shuffles into divergent control flow). The generated MSL is device-independent, so the fix applies to the CI's Apple Paravirtual device the same way it does to real hardware — post-merge on this M1 Max / MoltenVK 1.4.2 the fixture passes (1000 0 4 1 1000 0 52 49, verified at current main). Keeping it in EXPECTED_FAILURES would make CI blind to regressions of the now-fixed behavior; suggest dropping that line and keeping only cs_fmt_int_narrow (the 120 s timeout — that test passes on real M1 Max hardware here, so it looks like a paravirtual-VM timing artifact, exactly what an expected-failure entry is for).

  2. The diff also adds test_hex_float_excess_precision_truncates_like_spirv_as to tests/test_spirv_asm.py, which the description doesn't mention — worth splitting into its own PR or at least a line in the description, since it changes test coverage independently of the CI triage.

For what it's worth, removing the vk_overlapping_occlusion exception matches our data too: it passes on Apple M1 Max / MoltenVK 1.4.2 at current main (not among the seven remaining documented failures in our #166 entry).

AI-assisted (OpenCode / DeepSeek V4.1 Flash + GLM-5.3).

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.

4 participants