Skip to content

rust-ci-setup: the runner image and disk as an annotation, which survives a worker that dies writing its log on a full disk (card 0a4fe790) - #5661

Merged
joelteply merged 3 commits into
canaryfrom
cormac/ci-disk-annotation
Oct 31, 2026
Merged

joelteply merged 3 commits into
canaryfrom
cormac/ci-disk-annotation

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Two #5651 jobs died with 'No space left on device' after #5650 merged (124557309006, 124558799217);
their logs were lost with the worker, so their image and disk are unknown. A ::notice annotation is
stored apart from the job log: the next disk-full shows its ImageOS/ImageVersion, / free, and which
device /ci-target is on.

Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…ives a worker that dies writing its log on a full disk (card 0a4fe790)

Two #5651 jobs died with 'No space left on device' after #5650 merged (124557309006, 124558799217);
their logs were lost with the worker, so their image and disk are unknown. A ::notice annotation is
stored apart from the job log: the next disk-full shows its ImageOS/ImageVersion, / free, and which
device /ci-target is on.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE #5661 at exact head 8ef210c (Fable). Read the diff: the ::notice sits in 'Build where the runner has room' after /ci-target is created/bind-mounted and before the cache restore, so it records the room each job STARTS with; GNU df --output on the Linux-only setup step; ImageOS/ImageVersion with fallbacks. Annotations are stored apart from the job log, so it survives a worker dying on a full disk. Suggestion (non-blocking, same pattern): a second notice right after 'Restore the shared target cache' with / and /ci-target free, since the 24 GB restore is what eats the room; the pair (before, after restore) then tells a disk-full apart from a cache that grew.

@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE #5661 at exact head 010c2ee (Fable). The after-restore notice sits in 'Restore the shared target cache' (line 142), giving before/after. One cost to weigh (CI changes subtract): du -sh /ci-target walks the whole restored ~24 GB tree on every job; df --output=used,avail /ci-target answers 'how much room is left' for free and on the /mnt bind it is that device's used space. If the du number is the one you want (the cache's own size on the 26.04 single disk, where df's used is the whole root), keep it; otherwise df alone. Either way approved.

… the two free figures is the cache's size, so no du walk of the restored tree on every job (Fable on #5661)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE #5661 at exact head 9a10d5e (Fable). The after-cache notice is df only (read the delta), and the cache's size is the drop between the two free figures, so no du walk per job. Good.

@joelteply
joelteply merged commit 88bf639 into canary Oct 31, 2026
41 checks passed
@joelteply
joelteply deleted the cormac/ci-disk-annotation branch October 31, 2026 16:51
joelteply added a commit that referenced this pull request Oct 31, 2026
…ackground, so a crate's test build has room (card 0381ae0b) (#5674)

Jobs on canary 107e10d (continuum-mind, continuum-academy) and #5673 (continuum-rooms) died
with "No space left on device" while the worker wrote its own diag log on /, which fails a
job every hour. Measured from #5661's notices on a successful sibling job (run 41233178745,
c596244, 2026-10-31):
- image ubuntu26 20261026.180.1, one disk;
- 87G free at setup;
- 62G free after the 24 GB cache unpacks.
So one crate's test build filled ~60 GB.

- A first step deletes the image's preinstalled toolchains no Rust job here reads: the Android
  SDK, .NET, GHC (/opt/ghc, ~/.ghcup), Boost and CodeQL (~25-30 GB on ubuntu-latest). It runs
  in the background, so the deletion overlaps the cache restore instead of adding to wall
  clock: the step itself returns at once. The existing after-cache notice now reports the room
  the build really gets.
- Correction: #5661's comment said an annotation survives a worker that dies on a full disk. It
  doesn't. Run 41233178745's failed jobs carry neither runner-disk notice, while its successful
  ones carry both. The comment now says a disk-full is read from a sibling job's notices.

Follow-up, its own measured change (not here): our crates' dev debuginfo in CI.
line-tables-only keeps panic lines, needs a new cache key, and is expected to shrink both the
24 GB cache and each test build.

CI time: +0 s (the deletion is backgrounded). Measured after merge: the after-cache notice on
the next warm and crate runs.


Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant