Repository navigation
CI: a macOS (Apple Silicon) job: runtime build, ctest and GPU tests on MoltenVK, and the Python suites - #2909
Jolymmiles wants to merge 1 commit into
Conversation
|
Tested The expected-failure helper passed all eight unit tests. Both workflow files also parse as YAML and declare their macos-26 jobs. No Apple runner was used for this check. AI-assisted, synthetic inputs only. |
…ython suites runtime.yml gets a macos job on macos-26: Homebrew's MoltenVK, Vulkan headers and loader, llvm-mc, SPIRV-Tools and glslang; the runtime built through sccache; ctest and run_gpu_tests.py on MoltenVK. ci.yml gets macos-python: the standard-library loop, the semantic suite alongside it, and the pytest files with Homebrew's llvm-mc. The hosted runner's Metal device is Apple Paravirtual device (family Mac2), which MoltenVK runs on; KosmicKrisp finds no device there. macos-15 can't build the runtime (Xcode 16's libc++ has no floating-point std::from_chars). The two tests that fail on MoltenVK today, also on an M3 Max, are listed with the pull requests that fix them (xdxr_build_check: ItsNotRexed#2423, ps_ssharp: ItsNotRexed#1845); scripts/ci_expected_failures.py fails the step on any other failure and notes an expected one that passes.
94e1c1a to
f02e952
Compare
|
Tested I ran the macOS job's steps by hand, same configure flags, same
So the list holds on an M3 Pro too, not just the runner's chip. Plain |
|
Independent Apple M2 confirmation of the EXPECTED_FAILURES list (second Apple GPU, in addition to the M3 Pro result on this PR). Tested head f02e952 on Apple M2 (Mac14,3), macOS 26.4, MoltenVK 1.4.2 direct, subgroup 4..32, llvm-mc 23.1.6, Python 3.13.18, at upstream/main aa2988c after the BUILD-822 fix landed there.
The runtime ctest expected failure AI-assisted. |
|
Independent macOS review against this box (hardware reports Apple M2 / Mac14,3, not M1), macOS 26.4, Apple GPU via MoltenVK 1.4.2, device Vulkan 1.4.357, subgroup range 4..32. Toolchain actually needed here, compared with the job: Concrete validation of the expected-failure logic on current upstream/main
Runner caveat I cannot validate here: this box has a real Apple GPU, so the "MoltenVK sees a Metal device" step passes; the job has no skip branch if a hosted runner exposes no GPU-capable Metal device (it fails at that step). No game data, synthetic tests and counts only. AI-assisted. |
Claimed in the coordination issue as: new TEST item, claim
What and why
CI ran only on Windows and Ubuntu, so "passes on a Mac" was checked only on contributors' machines. This adds two jobs on GitHub's
macos-26arm64 runner:runtime.yml→macos: installs Homebrew's MoltenVK, Vulkan headers and loader, llvm-mc, SPIRV-Tools and glslang; checks that MoltenVK sees a Metal device; builds the runtime through sccache; runsctestandscripts/run_gpu_tests.pyon MoltenVK. It uses the same path filters as the other runtime jobs.ci.yml→macos-python: the check job's standard-library loop, run before anything is installed, with the semantic suite running alongside it. After that it installs Homebrew's llvm-mc and SPIRV-Tools and runs the translator-tests pytest split. Skipped on docs-only PRs, like the other CI jobs.Required vs informational. The Wine job requires a list of tests. A list of the ~120 tests that pass would be unwieldy, so this does the reverse: each step fails on any test failure except the ones in its
EXPECTED_FAILURES. Each listed test points to the PR or coordination-issue finding that tracks it. All of them fail the same way on an M3 Max:ps_ssharpvk_overlapping_occlusion9b17404e, bisected)cs_fma_fused,ps_vcmp_f32_nan,ps_vcmp_f16,ps_vcmp_f16_e64,ps_vcmpx_f16,ps_vcmpx_f16_e64xdxr_build_checkwas on the first version of the list; #2423 has fixed it on main since, and the job's notice reported that.They still run. Each run gives a warning annotation for an expected failure, and a notice when one of them passes, so the list can shrink. The logic is in
scripts/ci_expected_failures.py(standard library, withtests/test_ci_expected_failures.py). It also fails the step when the runner exits non-zero without naming a failed test, e.g. a crash. The GPU step also runs after a runtime-test failure, so one run shows both.What the experiment found (throwaway public repo, deleted afterwards)
Mac2, notApple7, and has 32-wide SIMD groups. A Metal compute dispatch gave correct results. MoltenVK 1.4.2 enumerates it, so the MoltenVK GPU tests run for real. llvmpipe is not needed; Linux already covers it inlinux-gpu-tools.macos-15can't build the runtime. Xcode 16.4's libc++ has no floating-pointstd::from_chars(runtime/test/vk_pipeline_check.cpp:542, "call to deleted function").macos-14has no Homebrew bottles for llvm or mesa. Hencemacos-26.Measured cost
macOS minutes are free on a public repo. The limit that matters is GitHub's cap of 5 concurrent macOS jobs per account on the free plan; the runner also posts "jobs targeting macOS arm64 runners may experience longer queue times".
cancel-in-progresson PRs and the path filters keep this down.macos(runtime)macos-pythonBreakdown of
macos: brew 35–60 s, configure 7 s, build 104 s cold or 5–6 s warm, ctest 60–71 s, GPU tests 65–70 s.Total: roughly 11–14 macOS minutes for a PR that touches the runtime, about 8 for a tests-only PR, none for a docs-only PR.
Tested
4c52ce27(the push is rebased ontoaa2988cc, one commit later):macoswas green in 4 min 8 s with a warm sccache (54 of 54 hits). Its ctest and GPU-test failures matched a local M3 Max run (MoltenVK 1.4.2) one for one; locally the GPU tests gave 127/210 passed, 76 skipped.macos-26, Apple Paravirtual device, MoltenVK 1.4.2). Three runs were on49475796and one on this rebased commit:ctest: 36/37 pass every time.xdxr_build_checkfails as expected;shader_library_corpusandvk_sync_validationskip, as on Linux.ps_ssharp.correctness) passed in that repo.actionlint1.7.12 with shellcheck is clean locally.python -I tests/test_ci_expected_failures.py,tests/test_docs_links.py,tests/test_docs_design_rows.py.AI-assisted (Claude Code).
Checklist
docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code