Repository navigation
feat: --parallel -j for dagger check concurrency cap - #14459
Merged
Merged
Conversation
Signed-off-by: kpenfound <[email protected]>
sipsma
approved these changes
Oct 2, 2026
Signed-off-by: kpenfound <[email protected]>
TomChv
added a commit
to dagger/typescript-sdk
that referenced
this pull request
Oct 9, 2026
`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
added a commit
to dagger/typescript-sdk
that referenced
this pull request
Oct 12, 2026
`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
added a commit
to dagger/typescript-sdk
that referenced
this pull request
Oct 12, 2026
`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
added a commit
to dagger/typescript-sdk
that referenced
this pull request
Oct 12, 2026
`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]>
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.
Limit how many checks run at once with
dagger check --parallel N(or-j N), or set a default withDAGGER_CHECK_PARALLEL.dagger generatetakes the same flag. The newmaxConcurrencyargument onArtifacts.valuessets the limit through the API.With collections, the raw number of checks can be much higher than before, and too many parallel checks can overwhelm a single engine. The new flag
--parallel/-jallows the user to set a limit on concurrent checks/generates.For example:
dagger check -j 4.This does not apply when
--scale-outis used.