Skip to content

ci(sanitizers): keep the master asan archive for PRs - #3502

Merged
zackees merged 2 commits into
masterfrom
infra/asan-cache-refresh
Nov 2, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/asan-cache-refresh

Conversation

@vpacher

@vpacher vpacher commented Nov 2, 2026

Copy link
Copy Markdown
Member

Fixes #3501

Change

  • ci.toml: new family zccache-sanitize-asan, maximum 1.2 GB. The sanitize shape leaves zccache.
  • sanitizers.yaml: only asan restores and saves. Master does not restore. New input build_only, for workflow_call only. A push run is not cancelled by a later push and does not share a concurrency group with the nightly.
  • push.yaml: new jobs asan-cache-state and asan-cache-refresh.
  • ci/asan_cache_state.py: asks for a refresh if master has no archive or the newest is older than 6 hours. A failed query starts no build.
  • sanitize.py: SANITIZE_BUILD_ONLY stops after the build.
  • The guard test now checks the family limit.

Evidence

  • RED: ci/test_sanitize_cache.py and test_build_only_runs_no_test_and_no_launch fail on the RED commit: 19 of the checks in the new file fail or error.
  • GREEN: the 7 related ci/test_*.py files pass.
  • ci-lint precheck --local: the same 9 violations as master, none in these files. One new WF-004 exception, recorded in ci.toml.
  • ./lint on macOS fails in test_zsh_scripts_parse, test_video_init_failure and test_tier2_run, files that this PR does not change. I did not run these on master or on Linux.

Not tested

The new jobs have not run on GitHub. A master push is the first real run. To check after the merge:

  1. asan cache state reports refresh=true, then the refresh saves an archive.
  2. The archive size is under 1.2 GB. The size of a cold archive with -g1 is not measured. If it is larger, the janitor deletes it.
  3. The next PR asan job restores it. Expected build time is about 4 minutes.

Tiers 1–4 do not apply: this is CI configuration. No user-visible change, so no features ledger line.

🤖 Generated with Claude Code

vpacher and others added 2 commits November 2, 2026 17:25
The tests fail: the asan archive shares a family with tsan and valgrind,
master restores before it saves, and a master push has no refresh.

Refs #3501

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A PR restores only what master saved. The nightly restored a stale archive and
saved 1.79 GB, and the janitor deleted it, so every PR built cold.

Give asan its own family, stop saving tsan and valgrind, build fresh on master,
and refresh from a master push when the archive is gone or older than 6 hours.

Fixes #3501

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vpacher
vpacher requested a review from zackees as a code owner November 2, 2026 16:26
@zackees
zackees added this pull request to the merge queue Nov 2, 2026
Merged via the queue into master with commit af22da5 Nov 2, 2026
36 checks passed
@zackees
zackees deleted the infra/asan-cache-refresh branch November 2, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ci: PR asan jobs build cold because the janitor deletes the master archive

2 participants