Skip to content

CI waits for the freed toolchains before restoring the target cache - #5682

Merged
joelteply merged 1 commit into
canaryfrom
cormac/ci-free-before-restore
Nov 1, 2026
Merged

joelteply merged 1 commit into
canaryfrom
cormac/ci-free-before-restore

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The deletion of the runner's preinstalled toolchains (#5674) runs in the
background, and the cache restore began 43 s later while it was still
running: a 26.04 runner with a 72G disk and 19G free ran out of space
unpacking the 24 GB target (#5681's continuum-dreaming job, run
41261287633, 2026-11-01 01:32Z). The deletion still overlaps the toolchain
and package installs; a new step waits for it before the restore and
reports how long it waited and the room it left.

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

The deletion of the runner's preinstalled toolchains (#5674) runs in the
background, and the cache restore began 43 s later while it was still
running: a 26.04 runner with a 72G disk and 19G free ran out of space
unpacking the 24 GB target (#5681's continuum-dreaming job, run
41261287633, 2026-11-01 01:32Z). The deletion still overlaps the toolchain
and package installs; a new step waits for it before the restore and
reports how long it waited and the room it left.

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

PASS at 1b0155d (Fable), by reading: $! after sudo nohup rm ... & is the sudo process, which waits for its rm child, so ps -p on it holds until the deletion finishes; a later step cannot wait on another step's child, so the poll is the right primitive; the restore now starts only after the room exists, and the notice records the wait and the free space it bought (a receipt per run). Merge on green.

@joelteply
joelteply merged commit ff4ca91 into canary Nov 1, 2026
41 checks passed
@joelteply
joelteply deleted the cormac/ci-free-before-restore branch November 1, 2026 06:27
joelteply added a commit that referenced this pull request Nov 7, 2026
#5682 made every Rust job wait for the whole toolchain deletion before
restoring the target cache: 66 s on a runner that already had 87G free
(warm run 41280912785, ubuntu26 20261026.180.1, 2026-11-01). The restore
needs its 29 GB (24 GB unpacked plus the 5 GiB download) on the disk it
unpacks onto, so the step now waits only while the deletion runs AND
/ci-target has less than 40 GB free; the 19G-free 72G runner that
failed #5681 still waits, every roomy runner goes straight on, and the
rest of the deletion finishes in the background. The notice reports the
wait and /ci-target's room (on 24.04 runners /ci-target is /mnt, where
the root deletion frees nothing, so it no longer waits there at all).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply added a commit that referenced this pull request Nov 11, 2026
…om (#5685)

* CI waits for the freed toolchains only until the cache restore has room

#5682 made every Rust job wait for the whole toolchain deletion before
restoring the target cache: 66 s on a runner that already had 87G free
(warm run 41280912785, ubuntu26 20261026.180.1, 2026-11-01). The restore
needs its 29 GB (24 GB unpacked plus the 5 GiB download) on the disk it
unpacks onto, so the step now waits only while the deletion runs AND
/ci-target has less than 40 GB free; the 19G-free 72G runner that
failed #5681 still waits, every roomy runner goes straight on, and the
rest of the deletion finishes in the background. The notice reports the
wait and /ci-target's room (on 24.04 runners /ci-target is /mnt, where
the root deletion frees nothing, so it no longer waits there at all).

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

* The restore waits for the room it measured, 29 GB, with no unmeasured headroom

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

* CI's restore wait compares bytes, never df's rounded-up gigabytes (Codex on #5685)

df -B1G rounds available blocks up, so 28 GiB + 1 byte printed 29 and skipped the wait. The step
now reads df -B1 and waits while /ci-target holds fewer than 29 GiB in bytes; the deletion-ended
escape is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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