Repository navigation
feat(telemetry): group collection checks in uploaded runs - #15088
Merged
Merged
Conversation
grouville
force-pushed
the
fix/check-collection-metadata
branch
from
November 5, 2026 21:06
564cfd2 to
175c8b0
Compare
grouville
force-pushed
the
fix/check-collection-metadata
branch
from
November 5, 2026 23:46
175c8b0 to
e256ec4
Compare
grouville
force-pushed
the
fix/check-collection-metadata
branch
from
November 6, 2026 01:53
e256ec4 to
c83483a
Compare
grouville
marked this pull request as ready for review
November 6, 2026 19:53
Mark collection items in the engine so Cloud can keep their results without posting a GitHub status for every item. Put their CLI spans under one collection check; normal checks keep their existing entries. Use the artifact's collection identity, without parsing check names. Older engines keep the existing reporting behavior. Keep the tests focused on metadata, cached results, group completion, and cancellation. Reuse the existing integration setup to verify that every item remains beneath its collection in the trace. Signed-off-by: Guillaume de Rouville <[email protected]>
grouville
force-pushed
the
fix/check-collection-metadata
branch
from
November 6, 2026 20:01
c83483a to
15e6804
Compare
kpenfound
approved these changes
Nov 6, 2026
tiborvass
approved these changes
Nov 6, 2026
tiborvass
left a comment
Contributor
There was a problem hiding this comment.
My only concern is about the impact of adding potentially temporary APIs: once we replace this logic we'll have to decide whether to keep this around, or delete it in which case we need to think about upgrade issues. So maybe add version guards with Views ?
Expose __checkGroup and the collectionItem argument from v1.0.0-beta.26. Older clients keep the original API shape. Record the helper API version on engine-owned __withAddress calls so future implementations can preserve saved checks. Keep item metadata available when older clients use the new engine. Test both schema views, cached results, and the recorded call version. Signed-off-by: Guillaume de Rouville <[email protected]>
Member
Author
Thanks, adressed the commend ! 🙏 cc @tiborvass |
sipsma
added a commit
to dagger/go
that referenced
this pull request
Nov 7, 2026
Since dagger/dagger#15088, `dagger check` reports a collection's items under one check: the report's top CHECKS header counts the collection once, and the items' totals move to the CHECKS header nested under it. The selected-test checks compared the top header with the items' totals, so 11 of them failed on an engine with that change even though every item reported the expected result. Accept both layouts: the released engines' flat report, whose one top header tallies the items, and the grouped one, whose top header shows one collection check, passed only when every item passed, with exactly one header nested under it that tallies the items. Signed-off-by: Erik Sipsma <[email protected]>
sipsma
added a commit
to dagger/go
that referenced
this pull request
Nov 7, 2026
Since dagger/dagger#15088, `dagger check` reports a collection's items under one check: the report's top CHECKS header counts the collection once, and the items' totals move to the CHECKS header nested under it. The selected-test checks compared the top header with the items' totals, so 11 of them failed on an engine with that change even though every item reported the expected result. Accept both layouts: the released engines' flat report, whose one top header tallies the items, and the grouped one, whose top header shows one collection check, passed only when every item passed, with exactly one header nested under it that tallies the items. Signed-off-by: Erik Sipsma <[email protected]>
sipsma
added a commit
that referenced
this pull request
Nov 7, 2026
Five of the fixes change what users see. The dagger check report fix restores behavior from before #15088, which hasn't been released, so it has no entry of its own. Signed-off-by: Erik Sipsma <[email protected]>
sipsma
added a commit
that referenced
this pull request
Nov 9, 2026
Four of the fixes change what users see. The CLI CPU fix reached main with #15080, which added no entry, so its entry names #15080. The dagger check report fix restores behavior from before #15088, which hasn't been released, so it has no entry of its own. Signed-off-by: Erik Sipsma <[email protected]>
sipsma
added a commit
that referenced
this pull request
Nov 9, 2026
Four of the fixes change what users see. The CLI CPU fix reached main with #15080, which added no entry, so its entry names #15080. The dagger check report fix restores behavior from before #15088, which hasn't been released, so it has no entry of its own. Signed-off-by: Erik Sipsma <[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.
Kyle was hitting the GitHub App rate limit while his factory ran Dagger checks. Cloud was sending a GitHub status for each collection item received through telemetry. With thousands of tests, that adds up quickly.
This is the engine and CLI part of Cloud #5750. The engine marks collection items explicitly, so Cloud can tell them apart from normal checks. The CLI puts their results under one collection check, like Native CI already does.
For a collection with ten tests and a separate
lintcheck, GitHub gets the command, the collection, andlint. The ten test results and logs stay inside the collection in Cloud's Traces page. Native CI stays in Checks and keeps its current behavior.Normal checks keep their existing status names. A name like
markdown-lint/fix/staleis still one normal check; we do not guess from names.Rollout
The new field and argument are exposed from
v1.0.0-beta.26. Engine-created check calls record their helper API version, so future changes can preserve the older API shape for existing clients and saved checks.Deploy Cloud #5750 first, then release the engine and CLI together. Older engines keep their existing behavior and need an upgrade to get the fix. A new CLI with an older engine falls back to the existing behavior.
Repositories requiring individual collection-item statuses will need to require the collection or command status instead.
Validation
Focused tests cover item identity, cached results, group completion and cancellation, separate workspaces, and older engines. The integration test uses the real CLI and trace receiver to check that every item remains under its collection.
The earlier before/after demo includes direct GitHub and Cloud links for the released and PR builds.