Repository navigation
fix(ci): cap the nested check suite's parallelism - #83
Merged
Merged
Conversation
TomChv
marked this pull request as draft
October 9, 2026 12:17
TomChv
force-pushed
the
fix/ci-check-parallelism
branch
2 times, most recently
from
October 9, 2026 12:28
209a3fc to
b377884
Compare
TomChv
marked this pull request as ready for review
October 9, 2026 12:28
TomChv
marked this pull request as draft
October 9, 2026 15:48
TomChv
force-pushed
the
fix/ci-check-parallelism
branch
from
October 9, 2026 15:48
b377884 to
5f4e327
Compare
Member
Author
|
Stripped the pin bump from this PR — #84 moves the pairing to v1.0.0-beta.16, which is the oldest release carrying |
TomChv
force-pushed
the
fix/ci-check-parallelism
branch
from
October 12, 2026 10:03
5f4e327 to
e36c415
Compare
TomChv
marked this pull request as ready for review
October 12, 2026 10:03
Member
Author
|
Rebased onto main now that #84 has landed. The pin is |
`checksCheck` runs the whole suite inside an engine that is itself inside one, with `dagger check` uncapped — so every check starts at once. The cheap ones finish and the remaining ~50, each building containers or running a registry service, sit in flight together until the inner engine is killed: `Post "http://dagger/query": unexpected EOF`, `connection reset by peer`, or a run cancelled for exceeding its time budget. Seen on three PRs in a row, each adding a check or two to a suite that was already at the ceiling, while the same suite passes on main. The failure is also disguised: when the inner engine dies the CLI prints every check still running as passed, with identical durations, so the trace ends in a green summary under a red exec. `-j 12` is a calibration point rather than a measurement — the suite died with ~50 in flight and passes on main with fewer checks than that. The docstring says which way to move it, and notes splitting the suite into per-group checks as the alternative that gives each part its own time budget. Stacks on the beta.16 pairing: `-j` needs a CLI carrying dagger/dagger#14459, so this is only usable once the engine-dev pin has moved. Signed-off-by: Tom Chauveau <[email protected]>
TomChv
force-pushed
the
fix/ci-check-parallelism
branch
from
October 12, 2026 14:40
e36c415 to
c6a78cb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Three PRs in a row went red on
engine-e-2-e/checks-checkwhilemainstayed green, with no failing assertion. The traces:On another, the playground's engine service
EXITEDat 7m56s with 50 checks in flight; on a third, two checks wereCancelled - max execution time exceeded.checksCheckruns the whole suite inside an engine that is itself inside one, withdagger checkuncapped — so all ~70 checks start at once. The cheap ones finish; the rest (each building containers, installing packages, or running a registry service) sit in flight together until the inner engine is killed.It is self-disguising: when the inner engine dies, the CLI prints every check still running as
OKwith identical durations, so both failing traces end in a green== CHECKS == ✔ 69 passedunder a red exec. That is worth knowing independently of this fix — a check summary from a run whose command exited non-zero with a transport error is not a result.Fix
Pass
-jto the nesteddagger check, and move theengine-devpin so the flag exists.-j/$DAGGER_CHECK_PARALLELarrived in dagger/dagger#14467 on 2026-10-06; the pin was cbf69413 (2026-09-29), wheredagger check -j 12exits on an unknown flag in 4.4s with aUSAGEdump — the first attempt at this PR did exactly that. The two halves are one change: the cap is unusable without the bump.The pin moves to 55e112468d (2026-10-08), which is the engine this SDK's own verification runs against, and 10 days less stale.
The engine-side alternative does not work:
--oci-max-parallelismexists in the pinned engine, but it is an engine-binary flag supplied by engine-dev's service args, not something the playground can set, and that revision's engine config schema has no parallelism field.-j 12is a calibration point, not a measurement: the suite died with ~50 in flight and passes onmainwith fewer checks than that, so the ceiling is somewhere between. The docstring records which way to move it — and that if a run is cancelled for exceeding its time budget rather than failing, the answer is to raise it, or to split the suite into per-group checks so each gets a budget of its own.Verification
dagger -m .dagger/modules/engine-e2e functionsloads and type-checks against engine-dev at the new pin, so its API did not drift between the two revisions (engineDev(ws:),installClient,service(sharedCache:)are all still as called).workspace.lockis unchanged by the newer engine, so this should not makegenerate/stalered. Checked by running the playground's workspace config against 55e112468d and diffing the lock.dagger.lockis untouched. (A local run added a redundantgithub.com/dagger/alpinerefs/heads/mainentry at the same SHA it already pins; that churn is reverted.)checks-checksays the cap holds, and its duration says whether 12 is the right number.