Repository navigation
Closed
Labels
readyMeets the definition of Ready; claimable
Description
Problem
Since 2026-11-01 16:19 UTC, every PR asan job builds cold. The master archive zccache-sanitize-asan-ON-* is not in the Actions cache.
PR asan builds since 2026-10-30, by what the job restored:
| Build state | Runs | Median build | Range |
|---|---|---|---|
| Archive under 6 hours old | 49 | 4:21 | 2:39–13:45 |
| Archive 6–15 hours old | 30 | 8:22 | 3:52–14:06 |
Cold, since -g1 |
25 | 24:23 | 15:27–33:12 |
Cold, before -g1 |
39 | 32:47 | 20:24–35:03 |
Some branches in the -g1 row may not include -g1.
Cause
- The nightly restores the archive of the day before. On 2026-11-01 it restored 962 MB and built for 27 minutes, because master had changed.
- It saves the old and the new entries together, with no trim: 1,786,444,063 B.
- The
zccachefamily has one footprint of 1,493,172,224 B (thesanitizeshape 1 GB and theappimageshape 400 MB). asan, tsan and valgrind all use it. - The janitor deleted all three within 3 hours of the nightly start:
zccache-sanitize-tsan-ON-…709,479,356 B, at 14:44zccache-sanitize-valgrind-ON-…620,790,154 B, at 15:19zccache-sanitize-asan-ON-…1,786,444,063 B, at 16:19:lru: family 'zccache' over its 1493172224B footprint
Other points:
test_sanitize_shape_holds_the_measured_asan_archivecompares a 753 MB fixture with the 1 GB shape. It does not see the family limit.- In the nightlies I checked, tsan and valgrind restored no archive. Their saves were not used.
- Only the nightly refreshes the archive, so it goes stale during the day. The 2026-11-02 nightly had not started at 16:22 UTC, so PRs had no archive for a full day.
Not known: the archive was also gone on 2026-10-31 at about 19:30 UTC, at a smaller size. The janitor logs of that hour do not name it.
Proposed fix
- Give asan its own family,
zccache-sanitize-asan, with a maximum of 1.2 GB. - Do not save or restore tsan and valgrind archives.
- Build fresh on master. Do not restore there.
- On a master push, build asan with no tests and save the archive, if master has no archive or the newest one is older than 6 hours.
push.yamlalready warms master's caches, and Tier 2 saves on master pushes. - Replace the guard test with one that checks the family limit.
Cost
Item 4 adds at most about 4 asan builds per day, at about 25–30 minutes of one runner each, outside the merge gate. A push run with a refresh takes longer, so pending master snapshots wait longer.
Metadata
Metadata
Assignees
Labels
readyMeets the definition of Ready; claimable
Type
Projects
- StatusShow more project fieldsDone
Activity
vpacher commentedon Nov 2, 2026
Claiming: this issue. One PR: 3502.
ci(sanitizers): keep the master asan archive for PRs (obs-rust#3502)