Repository navigation
ci: measure bounded Windows caches before changing retention - #1681
Conversation
|
First real qualification result: Windows ARM64 job 119563480452 passed all four clean full rebuilds and uploaded artifact 12392498522 (
Both bounded trials began at 284,972,305 bytes after explicit cleanup. Their after-build working stores exceeded the configured 350,000,000-byte limit; a configured ceiling is not a strict instantaneous bound. A future publication experiment would need explicit post-build cleanup and archive measurement too. These are two samples per condition on one runner, same source and preset. They qualify the actual probe and demonstrate a substantial observed tradeoff; they do not establish a representative-day speedup or retention. No smaller production limit is adopted. x64 remains running. The full run has the separately confirmed Linux ARM64 GIO setup failure under #1395; its independent native success is not an overall green workflow. |
Summary
Refs #1269 and #1667. Current measured native cache payloads cannot all coexist within the 10 GiB allocation along with the other observed seeds. Reducing a quota declaration cannot establish an acceptable compile-time tradeoff.
Add an opt-in
native-cache-probeboolean to the existing manual Pull workflow (default false). It preserves the entire full validation and adds four Windows full clean rebuilds per architecture, comparing private copies of the same completed-build cache at 2G, 350M, 350M, 2G. Normal builds, PRs, merge groups, schedules and releases remain unchanged. No new workflow file.The probe verifies the effective cache directory, explicitly prunes only isolated copies, resets statistics, runs the same existing Windows build preset with
--clean-first, and records timing, literal ccache output and machine counters. It rejects empty/no-cacheable rebuilds. Failures propagate and write an artifact report; failed rebuilds are not timing samples. A free-space check reserves four copies plus 1 GiB. The original cache, production 2G setting, compiler correctness options, master-only publication, C tests/public headers and required gates are unchanged.Artifacts retain only the JSON report (not compiler-cache contents), expire after two days, and must be preserved before expiry. Filesystem size is not compressed archive size; two samples per condition on one runner are not a representative day, durable retention or a universal recommendation. Adoption/rejection of a production limit follows hosted measurements, not a green unit test.
RED → GREEN
e87a544d8: focused tests fail against the unimplemented probe and absent manual wiring (two errors and one assertion failure).PYTHONPATH=ci uv run --no-project -m unittest ci.test_native_cache_probe ci.test_ci_toml ci.test_ci_tests_stdlib_only ci.test_workflow_duplicate_keys ci.test_ci_scope— 60 tests pass../lintpassed in 53.2 s after correcting the test module import to the repo's existing stdlib importlib pattern (149 CI test files, rustfmt, Clippy and Dylint). Final counter/directory guards also pass the 60 focused checks above.Runtime qualification
The defined full experiment completed on c45c3c2:
https://github.com/obs-rust/obs-studio/actions/runs/39699009288
Both Windows jobs passed all four full clean rebuilds and uploaded complete reports. Median 2G/350M times: x64 197.945/383.781 seconds; ARM64 145.344/286.188 seconds. Reject the 350M production limit from this sample; production remains 2G. There is no claimed representative-day improvement or universal size recommendation.
The full run failed overall because Linux ARM64 target GIO setup lacks gio-2.0.pc, separately confirmed under #1395. Every other build/test job passed. This independent native success is not a green full workflow.
The normal PR Gate (39699016266) and merge-group Gate (39701209476) passed before #1681 merged as eaf4903. Permanent results and limitations are in the follow-up native cache evidence PR.