Repository navigation
Done
Labels
Description
Context
.github/workflows/ci.yml is 554 lines across nine jobs. 208 of those lines (37%) are inline shell or PowerShell. This is a maintainability issue only: it does not cause the cancellations or failures (#2256 is a real test defect, and #1919 covers the platform split, which is already in place).
What is duplicated today
actions/checkoutten times,actions/setup-nodeseven,actions-rust-lang/setup-rust-toolchainfour, and the sameCARGO_INCREMENTAL/RUSTC_WRAPPER/CARGO_TARGET_DIRblock five times.- Inline logic that cannot be run or reviewed on its own:
- Windows bounded target directory, stamp and 12 GiB budget (
ci.yml:120-147). - Portable CMake/NASM provisioning (
ci.yml:155-189). - Linux physical-core derivation for
DIM_TEST_JOBS/--test-threads(ci.yml:332-357). - Python standalone provisioning (
ci.yml:434-460). - Web staging and generated-declaration check (
ci.yml:209-231).
- Windows bounded target directory, stamp and 12 GiB budget (
- The platform matrix is chosen by string truthiness (
ci.yml:275):fromJSON(event == 'pull_request' && '["linux"]' || event == 'push' && '["macos"]' || …).
What not to change
The three uses repetitions are not the problem. Keeping the action SHA pins and their inputs at the call site is easier to review than hiding them in a local composite action, and .github/actions/ cannot be used before checkout anyway.
Scope
- Move each inline block into
scripts/besideci-changes.mjs,run-rust-test.mjs,test-windows-native.mjsandtest-macos-native.mjs, so it runs locally and its failure messages live in code.ci.ymlkeeps the wiring, environment and conditions. - Replace the matrix expression with something a reader does not have to evaluate as a boolean chain.
- Correct the stale budget records while touching the gates:
docs/architecture/build.md:352says thewindows-clicold compile "may not fit" the fifteen-minute timeout and that no run has measured it. Measured: the whole job takes 2.2–6.8 min and the native-flows step 1.1–4.4 min across 25 sampled runs, all green.- The active-gate table still records
verify (linux)steady state as "not yet measured at these settings" while the last six runs took 18–30 min.
Acceptance
- Every check that runs in a job can be run locally by calling one script.
ci.ymlcontains no multi-step shell or PowerShell program.- The recorded budgets match measured runs, with the run ids beside them.
Activity
eric8810 commentedon Nov 27, 2026
Provenance of the inline blocks
No single author; they accumulated over three weeks.
7420e873c9bbbe31b11e3058ebc1a81f00e5(after7420e873c)a72d9b6f8,dc9040fc9,ffd3e1162ffd3e1162windows-clicold-compile note41f4ffac09(build.md:352)verify (linux)budget rowc3d519f4a9(build.md:337)Order of work: the blocks that can be wrong silently first (core derivation, Python provisioning, web staging check), then the Windows cache and portable tools, then the matrix expression, then the documentation corrections.
eric8810 commentedon Nov 27, 2026
Landed in #2262: the Windows target directory, the portable CMake/NASM provisioning, the Web staging check and the workspace test concurrency are scripts under
scripts/now, the job matrix takes its platforms fromci-changes.mjs, and the two stale budget records are corrected.Still open on this issue: the Python standalone provisioning block, gated by
DIM_CI_PYTHON_PLUGINS, which needs a run against the network on Linux and macOS before its extraction counts as verified.eric8810 commentedon Nov 27, 2026
Closing with the one item that did not move: the Python standalone provisioning block.
It is gated on
vars.DIM_CI_PYTHON_PLUGINS, and that repository variable is not set (gh variable listholds onlyNPM_ALPHA_PUBLISH_ENABLED), so the step has never run in CI. Extracting it now would be an unverifiable move of code nothing exercises; the right time is when the variable is turned on.Everything else landed in #2262: the Windows target directory, the portable CMake/NASM provisioning, the Web staging check and the workspace test concurrency are scripts under
scripts/, the job matrix takes its platforms fromci-changes.mjs, and the recorded budgets match measured runs.ci: move the inline job checks into scripts/ and record measured budgets