Skip to content

ci: bump setup-soldr past the SOLDR_JOBS=1 default, drop job caps - #320

Merged
zackees merged 3 commits into
mainfrom
ci/setup-soldr-uncap-jobs
Sep 24, 2026
Merged

zackees merged 3 commits into
mainfrom
ci/setup-soldr-uncap-jobs

Conversation

@zackees

@zackees zackees commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Every compile step in CI was running one compiler at a time.

Cause: the pinned setup-soldr (bb28e96) has ci-tests mode set SOLDR_JOBS=1 and CARGO_BUILD_JOBS=1 for the rest of the job. The last green gate log (run 35323025143) shows SOLDR_JOBS: 1 on every step. Our CARGO_BUILD_JOBS: 4 override only widened Cargo's queue. soldr still admitted one compiler at a time.

Upstream fix: setup-soldr#505 (soldr#3138) removed that default on Sep 7. Heavy units such as amalgamated crates and large links already get exclusive admission from zccache, so a job-wide cap only slowed every small unit. With neither variable set, soldr sizes itself to the machine: 3 slots on a 4-vCPU runner.

This PR:

  • Bumps every setup-soldr pin to 53abc31. The only other change in that range is setup-soldr's own concurrency groups.
  • Removes both CARGO_BUILD_JOBS: 4 overrides.
  • Adds a guard that fails if any workflow sets CARGO_BUILD_JOBS/SOLDR_JOBS or pins the old setup-soldr.

NEXTEST_TEST_THREADS still defaults to 1 under ci-tests, on purpose. That limits test processes, not compilers.

Validated locally: guard tests pass (63) and actionlint is clean on every workflow.

🤖 Generated with Claude Code

@zackees

zackees commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator Author

Rebased onto current main as f950092 and reran the local CI guard suite: 68 passed; Ruff and diff checks pass. The replacement remote run proved a release-level blocker rather than a branch issue: the macOS Dylint setup fails before compilation because setup-soldr v0.9.75 rejects a stale nightly-map catalogue digest, then its failure-cancellation step cancels the matrix.

I investigated and filed zackees/setup-soldr#509 with the exact run/job evidence and the fail-closed publication-integrity fix. The validator source is identical on setup-soldr current main, so changing this PR to that SHA would not recover it. Keeping #320 open until a new setup-soldr release repairs the published map; merging or reverting to the old pin would respectively break Dylint or abandon the intended concurrency fix.

🤖 Generated with Claude Code

zackees added a commit that referenced this pull request Sep 22, 2026
v4 artifacts are immutable per name and the fixed-name artifacts here
carry one-day retention. On #320, a cancelled attempt left
native-proof-guests expired: re-running only the failed jobs could not
re-run linux to republish it, so every Test job died on download-artifact
and its "Cancel the run" step cancelled the attempt -- twice. Each
fixed-name upload now sets overwrite, so a rerun of its job always
refreshes what dependents download.

Co-Authored-By: Claude Code <[email protected]>
@zackees

zackees commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator Author

Un-stalled: the run was structurally doomed to fail its Test matrix, twice.

Diagnosis (both attempt 2 and 3 died identically):

  1. Attempt 1's linux job uploaded native-proof-guests with retention-days: 1, then the run was cancelled.
  2. Re-running only the failed jobs re-ran build/dylints (which passed), but a re-run can't re-run an already-passed linux — so native-proof-guests stayed expired.
  3. Every Test job then died on download-artifact with Artifact not found for name: native-proof-guests (expired), and the workflow's own Cancel the run (this job failed) step cancelled the whole attempt (~30-70s into the Test matrix).

Fix pushed (2f1dc6f): overwrite: true on every fixed-name actions/upload-artifact step. v4 artifacts are immutable per name, so without it a rerun of linux could never refresh an existing/expired artifact even when it needed to. With it, any rerun always republishes what its dependents download.

A fresh run is now going; overwrite also makes this class of rerun-expiry stall impossible on future PRs.

zackees and others added 3 commits September 23, 2026 20:35
setup-soldr bb28e96's `ci-tests` profile exported SOLDR_JOBS=1 and
CARGO_BUILD_JOBS=1 through GITHUB_ENV, so every compile step after it
ran one compiler child at a time; the gate log shows `SOLDR_JOBS: 1` on
every step, and `CARGO_BUILD_JOBS: 4` here only lifted Cargo's queue.
v0.9.75 (d6a0844, setup-soldr#505) leaves both unset: zccache's
exclusive admission already compiles amalgamation-sized units alone.
A guard keeps both caps and the old pin out.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
v4 artifacts are immutable per name and the fixed-name artifacts here
carry one-day retention. On #320, a cancelled attempt left
native-proof-guests expired: re-running only the failed jobs could not
re-run linux to republish it, so every Test job died on download-artifact
and its "Cancel the run" step cancelled the attempt -- twice. Each
fixed-name upload now sets overwrite, so a rerun of its job always
refreshes what dependents download.

Co-Authored-By: Claude Code <[email protected]>
The admission phase was the only proof invocation without --nocapture.
On run 35702323046 its harness hung and libtest's capture buffer swallowed
every byte, so the step burned 27 minutes against the 30-minute timeout
with zero diagnostics. With the flag, Rust's line-buffered stdout reaches
the Actions log live and a recurrence names its stuck test. The guard
asserts the flag on that invocation, mutation-verified locally.

Co-Authored-By: Claude Code <[email protected]>
@zackees
zackees force-pushed the ci/setup-soldr-uncap-jobs branch from 4d691cc to 05ac930 Compare September 24, 2026 03:36
@zackees
zackees merged commit 3e3e0eb into main Sep 24, 2026
1 check passed
@zackees
zackees deleted the ci/setup-soldr-uncap-jobs branch November 5, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant