Skip to content

feat(telemetry): group collection checks in uploaded runs - #15088

Merged
grouville merged 2 commits into
dagger:mainfrom
grouville:fix/check-collection-metadata
Nov 6, 2026
Merged

grouville merged 2 commits into
dagger:mainfrom
grouville:fix/check-collection-metadata

Conversation

@grouville

@grouville grouville commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

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 lint check, GitHub gets the command, the collection, and lint. 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/stale is 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.

@grouville
grouville force-pushed the fix/check-collection-metadata branch from 564cfd2 to 175c8b0 Compare November 5, 2026 21:06
@grouville grouville changed the title feat(telemetry): identify collection items in check spans feat(telemetry): identify collection items for consistent check reporting Nov 5, 2026
@grouville
grouville force-pushed the fix/check-collection-metadata branch from 175c8b0 to e256ec4 Compare November 5, 2026 23:46
@grouville grouville changed the title feat(telemetry): identify collection items for consistent check reporting feat(telemetry): group collection checks in uploaded runs Nov 5, 2026
@grouville
grouville force-pushed the fix/check-collection-metadata branch from e256ec4 to c83483a Compare November 6, 2026 01:53
@grouville
grouville requested a review from tiborvass November 6, 2026 19:53
@grouville
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
grouville force-pushed the fix/check-collection-metadata branch from c83483a to 15e6804 Compare November 6, 2026 20:01
@grouville
grouville requested a review from vito November 6, 2026 20:09

@tiborvass tiborvass left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]>
@grouville

grouville commented Nov 6, 2026 •

Copy link
Copy Markdown
Member Author

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 ?

Thanks, adressed the commend ! 🙏 cc @tiborvass

@grouville
grouville merged commit 7976c6f into dagger:main Nov 6, 2026
95 checks passed
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]>
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.

3 participants