Skip to content

fix(ci): reclaim runner disk before automated tests - #4596

Merged
dr-bonez merged 1 commit into
masterfrom
fix/ci-test-disk-headroom
Nov 9, 2026
Merged

dr-bonez merged 1 commit into
masterfrom
fix/ci-test-disk-headroom

Conversation

@helix-white

@helix-white helix-white commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

The Automated Tests job explicitly opted out of the shared disk cleanup, leaving the runner's preinstalled toolchains/packages alongside the Docker builder and Rust build output. On #4594, the runner exhausted its disk and could not even write its diagnostic log; the entire job log was lost. Its exact peak usage is unavailable.

This removes that opt-out and uses the action's existing default, as the formatting and generated-artifact jobs already do. The existing cleanup rules are unchanged. The shared action also logs root-filesystem capacity before and after cleanup, so reclaimed headroom becomes visible. No test coverage, compiler profile, parallelism, cache policy or hardware limit changes.

Implementation diff: +2 / −1 lines in 2 files (excludes lockfiles, tests, docs, release notes, and changelog).

Verification: On Linux with Node 24.22.1, all 63 action/workflow tests passed after rebasing onto merged #4597, including its five generator/orchestration regression cases. Two new tests check cleanup selection/order and execute the actual cleanup shell with mocked privileged commands; both reject the previous configuration. Scoped Prettier checks passed. An Ubuntu 24.04/APT 2.8.3 removal simulation against isolated package fixtures confirmed the existing PHP/Ruby patterns did not select unrelated names containing ph or rub; no real packages were removed locally.

Hosted Automated Tests passed on the preceding head 4c15f25b2. Cleanup increased that runner's free root-filesystem capacity from 86 GiB to 119 GiB, about 33 GiB reclaimed, and the entire make test job completed. Its exact peak disk usage was not measured. On current head 24ff75de7, every substantive hosted check has now passed: the full Automated Tests suite, Generated Artifacts, formatting/lockfiles, licenses, builder verification, CLI targets, registry/tunnel packages, WRT binary/binding freshness, all nine OS image variants and all reported migration images. The superseded Conflict Markers cancellation has passing replacements. Earlier runner shutdown/registry-502 failures are no longer blockers; their causes were not attributed to source changes. Its single commit's patch is unchanged according to git range-diff.

This is independent of #4597: that PR optimizes artifact generation but leaves automated-test compilation profiles and this cleanup opt-out unchanged. #4594 is now merged without this cleanup change; its preceding f932cacd3 head passed the entire hosted check set without it. This is therefore independent headroom for future workloads, not a prerequisite for that sideload fix. No product release or data migration is required.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white

Copy link
Copy Markdown
Member Author

Cross-review requested.

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at 4c15f25. It merges cleanly with origin/master.

Workflow change. Dropping free-space: 'false' gives Run Automated Tests the action's default cleanup, the same one format and generated already use, so no new mechanism is added. History shows no reason for the opt-out: it predates #3437, and the format job dropped its own copy in 9de837b for the same ENOSPC reason. The two df -h / calls only add log output. This is internal tooling, so no changelog fragment is needed.

Effect on make test. I read the make test targets for anything that runs natively and depends on what the cleanup removes. cargo and rustup aren't touched. The gpg, dpkg-deb and python3 used by the release tests are also outside the removal list, and bash-completion is installed after cleanup. /opt/hostedtoolcache is recreated before setup-node.

Tests.

  • The new file is picked up by the make package-ci-test glob, and that step has already passed on this head in Formatting & Lockfiles.
  • sudo and df are both mocked and PATH-first, so the shell test can't remove anything on the machine running it.
  • The first-make-step ordering check fails if no such step exists (findIndex returns -1), so it can't pass by accident.

Not a blocker. I believe apt reads php* and ruby* as regexes, so they match any package name containing ph or rub, not just PHP and Ruby. This line predates the PR, and I didn't check it on a runner. It now also applies to a job that compiles natively with cargo. On this head setup-build has passed and Build And Run Tests is running, so that job's result is what will show whether it matters. I'm not asking for a change here.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b

@helix-white

Copy link
Copy Markdown
Member Author

Cross-review approved at 4c15f25; final brief published and @dr-bonez review requested. CI setup has completed, while the full suite and remaining builds are still running.

I also checked the non-blocking package-pattern concern using native APT 2.8.3 in Ubuntu 24.04, with isolated installed-package fixtures and simulation mode. php* selected only php-fixture, and ruby* only ruby-fixture; neither selected unrelated libgraphite-fixture/scrub-fixture. No real packages were removed and no source change was warranted from that result.

@helix-white

Copy link
Copy Markdown
Member Author

The WRT job built the riscv64 binary successfully, then exited 143 during native binding generation. The complete job log explicitly reports: The runner has received a shutdown signal. The full attempt ZIP and system.txt add no underlying cause; there is no compiler error or ENOSPC report, so I am not attributing this to OOM, timeout or the cleanup change. Retried only job 127350637211 with debug diagnostics (gh run rerun 42057737468 --job ... --debug).

The new disk measurements on that runner show /dev/root free capacity increasing from 86G to 118G after cleanup—about 32 GiB reclaimed. Formatting/lockfiles, licenses, builder verification, CLI target builds, registry/tunnel packages and OS base binaries passed. Full Automated Tests, Generated Artifacts, OS images and the WRT retry are still pending. No source changes made.

@helix-white

Copy link
Copy Markdown
Member Author

The full Automated Tests job now passed on this head. Its real runner reports free root capacity increasing from 86G to 119G after cleanup (~33 GiB reclaimed), then completes the whole make test suite. Generated Artifacts and the WRT debug retry also passed.

The only reported failure is RISC-V ISO assembly: the chroot stage completed, then package.get returned an HTML 502 Bad Gateway from nginx. No disk or compiler error is reported. Its riscv64-nonfree sibling is still running, so GitHub currently gates a targeted retry; successful image and binary jobs should be preserved. All x86/ARM image jobs, builder verification, CLI targets, registry/tunnel packages, formatting and license/version checks passed. No source changes made.

The automated-test job opted out of the shared cleanup even though it pulls the Rust builder and accumulates the monorepo's build graphs. This leaves it dependent on the hosted image's initial free space; #4594 lost its runner to ENOSPC. Use the existing cleanup default and report root filesystem capacity before and after it. Keep the test suite, compiler profiles and concurrency unchanged.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
@helix-white
helix-white force-pushed the fix/ci-test-disk-headroom branch from 4c15f25 to 24ff75d Compare November 5, 2026 17:48
@helix-white

Copy link
Copy Markdown
Member Author

Rebased onto master including merged #4597 and pushed 24ff75d with a force-with-lease. The commit is patch-identical in git range-diff. All 63 action/workflow cases pass with the new generator profile/orchestration, and scoped formatting passes. #4597 changes generator optimization/orchestration, not make test compilation profiles or its cleanup opt-out; this remains a separate headroom fix. The successful full-suite/disk evidence in the brief is explicitly identified as preceding-head evidence; fresh CI is pending.

@helix-white

Copy link
Copy Markdown
Member Author

The cancelled Conflict Markers run was superseded, not a scan failure. The workflow runs on PR-description edits and uses a per-PR concurrency group with cancel-in-progress; updating the post-rebase brief started replacement run 42078466347 on the same 24ff75d head. The cancelled job never started any steps and has no failed-step logs. The replacement is already queued, so no retry or source change is needed. Inspected all current checks: none is failing; builds and CI gates remain queued/running.

@helix-white

Copy link
Copy Markdown
Member Author

The current failure is the WRT job, not Conflict Markers (its replacement passed). WRT successfully completed make start-wrt, then native binding generation exited 143. The full job log explicitly reports: “The runner has received a shutdown signal. This can happen when the runner service is stopped, or a manually started runner is canceled.” There is no compiler error or ENOSPC report; the underlying shutdown cause is not established, so I am not calling it OOM or timeout.

Retried only failed job 127424232865 in run 42078280160 with debug diagnostics, preserving successful jobs. No source changes: this PR does not change WRT’s existing cleanup selection, only capacity logging. Inspected all current checks: full Automated Tests, Generated Artifacts, and the nine OS image variants are still running. Builder verification, CLI builds/packages, registry/tunnel packages, OS base binaries, formatting/lockfiles, licenses and version checks passed.

@helix-white

Copy link
Copy Markdown
Member Author

The targeted WRT debug retry passed on unchanged head 24ff75d (job 127476539478), including native binding freshness. Checked all current checks: only Automated Tests and the riscv64/riscv64-nonfree images remain running; everything else reported has passed or is intentionally skipped. The earlier shutdown blocker is resolved; the brief now reflects this. No source changes.

@helix-white

Copy link
Copy Markdown
Member Author

Merge follow-through for #4594: this remains an independent disk-headroom change, not a prerequisite for the merged sideload fix. On unchanged head 24ff75d, all substantive current CI has now passed, including Automated Tests, WRT binding freshness, both RISC-V images and migration images. The historical cancelled conflict scan has passing replacements. GitHub reports MERGEABLE; @dr-bonez is already requested for final review.

The existing final brief is updated only for completed CI and the merged neighbor. No source changes, repeated verification, rebases or new review rounds were needed.

@helix-white

Copy link
Copy Markdown
Member Author

Confirmed the complete current check set on 24ff75d: every executed check passed, with only intentional skips. The replacement metadata/conflict-marker checks also passed. The PR is MERGEABLE and final review from @dr-bonez is the only remaining handoff item. No retries, source changes or repeated verification are needed.

@dr-bonez
dr-bonez merged commit 87ec1a2 into master Nov 9, 2026
88 of 90 checks passed
@dr-bonez
dr-bonez deleted the fix/ci-test-disk-headroom branch November 9, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

repo Repository maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants