Skip to content

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

Closed

Description

@vpacher

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

  1. 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.
  2. It saves the old and the new entries together, with no trim: 1,786,444,063 B.
  3. The zccache family has one footprint of 1,493,172,224 B (the sanitize shape 1 GB and the appimage shape 400 MB). asan, tsan and valgrind all use it.
  4. The janitor deleted all three within 3 hours of the nightly start:
    • zccache-sanitize-tsan-ON-… 709,479,356 B, at 14:44
    • zccache-sanitize-valgrind-ON-… 620,790,154 B, at 15:19
    • zccache-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_archive compares 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

  1. Give asan its own family, zccache-sanitize-asan, with a maximum of 1.2 GB.
  2. Do not save or restore tsan and valgrind archives.
  3. Build fresh on master. Do not restore there.
  4. 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.yaml already warms master's caches, and Tier 2 saves on master pushes.
  5. 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.

Activity

  1. vpacher commented on Nov 2, 2026

    @vpacher
    MemberAuthor

    Claiming: this issue. One PR: 3502.

  2. added
    ready
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions