Skip to content

feat: --parallel -j for dagger check concurrency cap - #14459

Merged
kpenfound merged 3 commits into
dagger:mainfrom
kpenfound:feat/checks-concurrency
Oct 2, 2026
Merged

kpenfound merged 3 commits into
dagger:mainfrom
kpenfound:feat/checks-concurrency

Conversation

@kpenfound

Copy link
Copy Markdown
Contributor

Limit how many checks run at once with dagger check --parallel N (or -j N), or set a default with DAGGER_CHECK_PARALLEL. dagger generate takes the same flag. The new maxConcurrency argument on Artifacts.values sets 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/-j allows the user to set a limit on concurrent checks/generates.

For example: dagger check -j 4.

This does not apply when --scale-out is used.

@kpenfound
kpenfound requested review from a team as code owners October 1, 2026 22:54
@kpenfound
kpenfound merged commit dea716e into dagger:main Oct 2, 2026
90 checks passed
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]>
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.

2 participants