ci: fix runtime/windows timeout, remove redundant CI legs, and harden caches #2665
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2665"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-30T00:20:15Z.
Summary
Cleans up red, redundant, and slow CI jobs across
mainworkflows based on an audit of recentmainruns, while preserving full coverage across Linux, Windows, macOS, and Wine:Fixes & Reliability
Runtime / windows35-minute timeout fix (.github/workflows/runtime.yml):RelWithDebInfo+/Z7(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT=Embedded) toRelease(keepingNDEBUG,/MAP, and x64.pdataunwind tables), eliminating multi-GB embedded debug bloat that caused cold-cache builds to hit the 35-minute timeout; updatedwine'stiny_async.exepath toRelease.rustc-commit-hash-keyedactions/cachefor Cargo (~/.cargo/registry,~/.cargo/git,runtime/build/xma_decoder,runtime/build/opus_decoder), parallelizedctest(--parallel 4), and raisedtimeout-minutes(35->50)..github/workflows/runtime.yml,launcher.yml,xma2-decoder.yml):rustc -vVcommit-hash+Cargo.lock(movingRust toolchainahead ofactions/cacheinlauncher.yml) so compiler upgrades never hit stale exact keys.workflow_dispatch:toxma2-decoder.yml, gatedcargo fmt --checktoubuntu-24.04inlauncher.yml, and tightenedlauncher.ymltimeout-minutes(40->20)..github/workflows/runtime.yml,docs/testing.md,docs/linux.md):vk_overlapping_occlusionfromRuntime / macosEXPECTED_FAILURES(passes onmacos-26MoltenVK and caused noisyunexpected passfailures).linux-gpu-toolsLLVM fromllvm-19tollvm-21(matchingci.ymlviaapt.llvm.org+scripts/check_apt_key.py)..github/workflows/runtime.yml):name: wine (${{ matrix.wine }})override so skipped PR runs display cleanly asRuntime / wineinstead of literalRuntime / wine (${{ matrix.wine }})(expanded runs onmain/schedule/workflow_dispatchstill auto-namewine (ubuntu)andwine (winehq-stable))..github/workflows/jactionlint.yml):jactionlintfromprofile: correctnesstoprofile: default.Redundancy Removals & Consolidations
.github/workflows/ci.yml:macos-pythonandsemantic-tests (windows-latest)jobs (semantic-testsnow runs as a singleubuntu-latestjob withLEONIDA_REQUIRE_SPIRV_TOOLS: "1").translator-tests,viewer-tests, andstdlib-tests-linuxinto a singlelinux-python-and-viewer(ubuntu-24.04) job (one checkout/Python/Node 24/LLVM 21/spirv-toolssetup; runsnode --test,pytest, andrun_standalone_tests.py -j 4).paths-ignorefor docs-only files (README.md,CONTRIBUTING.md,AGENTS.md,docs/**/*.md) underon.push:so docs-only merges tomainnever queue or coalesce/cancel pending code runs, whilechange-scopekeeps running all 14 doc tests on docs-only PRs and daily schedules still run the full suite.checkstandalone test parallelism-j 2->-j 4..github/workflows/runtime.yml:macosoff pull requests (if: github.event_name != 'pull_request'); it continues running on everypushtomain, dailyschedule, andworkflow_dispatch.winematrix to["winehq-stable"]onpushtomainand full["ubuntu", "winehq-stable"]on dailyscheduleandworkflow_dispatch.tests/test_ci_registration.py,tests/semantic/test_spirv_tools_required.py,tests/test_feature_scan.py,tests/test_vs_input_survey.py,docs/linux.md,docs/testing.md.End-State Workflows Overview
pull_requestpush(main)schedule/workflow_dispatchci.ymlchange-scope(docs-only: 14 doc tests); non-docs:check,linux-python-and-viewer,semantic-testscheck,linux-python-and-viewer,semantic-testscheck,linux-python-and-viewer,semantic-testsruntime.ymlwindows(50mRelease),linux-gpu-tools(LLVM 21);wine&macosskippedwindows,wine (winehq-stable),linux-gpu-tools,macoswindows,wine (ubuntu, winehq-stable),linux-gpu-tools,macosjactionlint.ymljactionlint(profile: default)launcher.ymllauncher(windows-latest,ubuntu-24.04, 20m, Cargo cache)xma2-decoder.ymlwindows-ffi(15m, Cargo cache)workflow_dispatchno-game-data.ymlno-game-dataconflict-label.ymllabelworkflow_dispatchOut of Scope / Notes
d3d12.yml(e.g.,#2633,#2641,#2653).coordination-claim.yml(workflow ID428545624) still appears in GitHub's workflow registry and can be disabled viagh workflow disable 428545624.Testing
yaml.safe_load+bash -nacross all 7.github/workflows/*.ymlfiles +.github/dependabot.yml: PASStests/test_ci_expected_failures.py,test_ci_main_signal.py,test_ci_registration.py,test_runtime_paths.py,test_check_apt_key.py,test_no_game_data_workflow.py,test_pr_conflict_label.py,test_cmake_vulkan_missing.py,test_cmake_vulkan_headers_version.py,test_runner_calls_all_tests.py, all 13test_docs_*.py,test_i18n_index.py,test_design_contract_rows.py,test_feature_scan.py,test_vs_input_survey.py,tests/semantic/test_spirv_tools_required.py): ALL PASSnode --test tests/test_*.cjs: 85/85 PASSpython3 -I scripts/check_no_game_data.py&python3 -m compileall -q make_game.py tools tests: PASSjactionlintbinary is not installed locally; livejactionlint(profile: default) will be verified on this PR's checks.Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T00:26:52Z.
Verified by OreoFR on macOS 27.2.1, Apple M5, Python 3.12.16 (pytest), main
b8bd37111, PR head129c84008. MEASURED, Python tests only (the workflow changes themselves are checked by this PR's own CI, not here):merge --no-ff):tests/test_ci_registration.py: red 2 failed / 18 (test_the_spirv_tools_check_flags_a_job_that_installs_nothing,test_step_script_reads_the_check_loop: main's step still runsrun_standalone_tests.py -j 2) → green 18/18, 44 subtests.tests/semantic/test_spirv_tools_required.py: 1/1 on both sides withLEONIDA_REQUIRE_SPIRV_TOOLS=1(skipped without it, as designed).tests/test_feature_scan.py16/16 andtests/test_vs_input_survey.py1/1 on both sides (no red: these edits don't change what is checked).git merge-tree).jactionlintis red on this PR because of the profile switch (correctness→defaultin.github/workflows/jactionlint.yml); onmainit is green. The stricter profile reports lines this PR doesn't touch:runtime.yml:475vulkaninfo --summary | grep -E 'deviceName.*llvmpipe'andruntime.yml:564"$LLVM_MC" --version | grep 'LLVM version': pipeline withoutpipefailunder the defaultbash -eshell (addshell: bashorset -o pipefail);cooldown.default-days(two entries).Either fix those here or keep
profile: correctnessfor now.At the time of this comment
Runtime / windows,CI / check,CI / semantic-testsandLauncherwere still running, so the timeout and Release-build changes are not confirmed yet.AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T00:39:58Z.
Update by OreoFR, same Mac (macOS 27.2.1, Apple M5, Python 3.12.16), main
b8bd37111, new head3209231b3. MEASURED:jactionlintis now green:3209231b3adds thepipefailshells and the Dependabot cooldown, so the profile point of my comment above is resolved.test_ci_registration.py,test_feature_scan.py,test_vs_input_survey.py35/35 passed, 44 subtests. Still merges cleanly with main and with #2566.CI / semantic-testsis red on this PR for a reason that is not this PR:test_interp_computed_ij_fallback(2 failures,17407 != 17408), the stale SHADER-468 expectation that also fails onmainand that #2566 (and #2653) update.Runtime / windowswas still running, so the timeout/Release change is still not confirmed here.AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T00:55:25Z.
Verified on
mainb8bd37111(Windows 11, Python 3.13): the two commits apply cleanly and the tests the change touches pass - with one caveat that is not yours.The caveat:
tests/test_feature_scan.pyhas 2 tests that fail onmaintoo, with and without this branch:Both are
FeatureScanAtomicOutputTests, failing insubprocess.PopenwithTypeError("bufsize must be an integer")- a Windows-specific way for that test to fail, not something the branch introduces. The branch's only change in that file is a docstring line (the CI job's name), so it cannot be the cause.What that means for your pull request: nothing blocking. What it means for the repository: the Python suite has two tests that fail on Windows today, and nobody would see it in CI, where that file runs on Linux. Worth its own issue rather than riding along here.
Not verified: the workflows themselves - I can read YAML, not execute GitHub's runner. What I can say is that the branch does not disturb the tests that police the CI registration, which is the closest thing to a check I have here.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T01:04:55Z.
Follow-up by OreoFR, read from this PR's own
Runtime / windowsjob on head3209231b3(the job failed). MEASURED:ctest ... --parallel 4): 512/514, 2 failed, both timing-sensitive:xmem(22.3 s):FAIL the reader of the views' last pages never faults or misreads;silent_audio:FAIL the position follows real time at 48 kHz.452d1d1b6, no--parallel):xmem4.5-6.9 s andsilent_audio0.7 s, every time.So
--parallel 4looks like the cause (ASSUMED: CPU contention on the 4-core runner skews real-time checks). Possible ways out: run those two withRUN_SERIAL(set_tests_properties(xmem silent_audio PROPERTIES RUN_SERIAL TRUE)), or keepctestserial for now.AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-30T01:20:40Z.
Merging after full CI verification:
Runtime/windowspassed in 6m35s (down from 35m+ timeouts),jactionlint(profile: default) passed in 19s (0 findings),Runtime/linux-gpu-tools(LLVM 21) passed in 3m32s,CI/linux-python-and-viewerpassed in 4m51s,Launcher(Win/Linux),XMA2 decoder,No Game Data, andCI/change-scopeare all green, andCI/checkpassed on3209231b3prior to theruntime.yml-only serialctestfix (d2befefad). The sole red check (CI/semantic-tests) is the pre-existingmainfailure intest_interp_computed_ij_fallback(open PR #2633). Maintainer note: deleted ghost workflowcoordination-claim.yml(ID428545624) can be disabled separately viagh workflow disable 428545624.Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T01:25:48Z.
Follow-up by OreoFR on head
d2befefad(serialcteston Windows). MEASURED, from this PR's own CI and on the Mac (main40e7fe69d):Runtime / windowspassed: job 6 min 35 s (warm sccache; build 2 min 32 s),ctest514/514 passed, 2 disabled.xmem5.9 s andsilent_audio0.7 s pass again, so the serial run fixes what I reported.3209231b3took 32.5 min with a 29 min 43 s build, so the 50-minute limit leaves room.test_ci_registration.py,test_feature_scan.py,test_vs_input_survey.py35/35. Merges cleanly with main and with #2566.CI / semantic-tests, onlytest_interp_computed_ij_fallback(the stale SHADER-468 expectation, also red onmain, updated by #2566).From my side this is ready for a maintainer's review of the workflow changes.
AI-assisted: Claude Code