Repository navigation
[backport-0.21] fix: hide registry HTTP probe errors - #13885
Merged
sipsma merged 3 commits intoAug 13, 2026
Merged
Conversation
Registry pulls, resolves, and pushes spawn dozens of low-level HTTP request spans from containerd and otelhttp instrumentation, flooding the TUI when a user expands a container.from call. Mark the pulling, resolving, and pushing spans with Encapsulate so their children are hidden, and stop revealing encapsulated failures when the parent span succeeded: the registry auth dance always begins with a 401 challenge that otherwise renders as a scary failed span. Genuinely failed pulls still reveal the underlying HTTP spans for debugging. Signed-off-by: Alex Suraci <[email protected]> (cherry picked from commit b9cdb66) Signed-off-by: Erik Sipsma <[email protected]>
Signed-off-by: Erik Sipsma <[email protected]>
grouville
self-requested a review
August 12, 2026 22:46
grouville
approved these changes
Aug 12, 2026
GitLab automatically revokes user PATs when it detects that they were leaked. That is what these private repository tests used, and both tokens were revoked. GitLab does not document the same automatic response for project deploy tokens. Replace the PATs with read-only deploy tokens scoped to the test project. Deploy tokens use a username and token pair, so pass the matching username through each Git authentication path. These credentials are intentionally committed for end-to-end tests. They can only read one disposable test repository, which contains no private code or data, so exposing them does not grant access beyond the test fixture. Keep both credentials in the shared VCS fixture so future rotations happen in one place. The second token is still needed to test two different credentials for the same repository. Signed-off-by: Guillaume de Rouville <[email protected]> (cherry picked from commit 66337ba) 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.
Summary
Backport the scoped telemetry fix that hides normal registry-protocol HTTP probe failures from successful pull and publish progress. Registry HEAD 404s and auth challenges still occur as expected, but they no longer render as scary failed child rows when the enclosing registry operation succeeds.
Also backport the shared private-GitLab test fixture update from #13849. GitLab revoked the committed user PATs used by the v0.21 integration tests; the fixture now uses read-only project deploy tokens and forwards their required usernames through each existing authentication path.
Source provenance
Registry progress fix:
cherry-pick -x, preserving Alex Suraci as author.GitLab CI fixture fix:
deploy tokensfor GitLab #13849becaa3a33542ccc7e96dbf3f430d887f41958e52withcherry-pick -x, preserving Guillaume de Rouville as author.Root cause and user impact
containerd instruments registry HTTP requests through OpenTelemetry. Normal protocol behavior includes failed probes such as HEAD 404 responses for blobs or manifests that are not present yet, plus authentication challenges. The progress frontend forced every failed span visible, even when that span was encapsulated and its parent registry operation completed successfully. As a result, successful
Container.publishcalls could show prominentremotes.docker.resolver.HTTPRequestandHTTP HEAD ERRORrows, especially in plain progress.The fix encapsulates registry resolve, pull, and push internals and only reveals failed encapsulated children when the enclosing operation itself fails. Genuine registry failures therefore retain their diagnostic HTTP spans.
Separately, GitLab automatically revoked the user PATs committed for the disposable private-repository integration fixture. That made five otherwise unrelated CI shards fail wherever they exercised the shared HTTPS fixture. Project deploy tokens require a username/token pair, so changing only the token is insufficient; every fixture consumer must propagate the matching username.
v0.21 adaptations
Registry progress fix:
GitLab fixture fix:
module_helpers_test.gochange to the equivalent helper in v0.21'smodule_test.go.gitcredential_test.go.Validation
Registry progress fix passed:
dagger call engine-dev test --pkg='./dagql/idtui' --run='^TestTelemetry/TestGolden/docker-build-fail$'— 3 testsdagger --progress=plain call engine-dev test --pkg='./core/integration' --run='^TestContainer/TestPublish$'— 2 tests, using the local test registry; expected HEAD 404 probes occurred without HTTP HEAD ERROR progress rowsdagger call engine-dev test --pkg='./dagql/dagui'— 22 testsdagger call engine-dev test --pkg='./engine/server/resolver'— 1 testdagger --progress=plain -m ./toolchains/go call --source=. lint-module --module=dagqldagger --progress=plain -m ./toolchains/go call --source=. lint-module --module=enginegit diff --check upstream/backport-0.21...HEADGitLab fixture adaptation passed locally:
TestGit/TestAuthProviders/GitLab_auth— direct username/token API pathTestGitCredential/TestGitCredentialErrors/gitlab_private_module— host credential-helper/module pathTestModule/TestCrossSessionSecrets/contenthash_cache_hit_with_secrets— nested secret pathTestConfig/TestDaggerGitRefs/Private_GitLab— six module-reference assertionsgit diff --checkFresh Dagger Cloud checks on canary head
becaa3a33542ccc7e96dbf3f430d887f41958e52passed all five shards that previously exposed the revoked GitLab credentials:test-split:test-basetest-split:test-cli-enginetest-split:test-call-and-shelltest-split:test-containertest-split:test-modulesThat run also passed
TestPrivateGitRepoArgCaching, confirming the earlier linked-worktree.gitfailure was local-state-only. The first freshtest-split:test-baserun independently hitTestChangeset/TestWithChangesets/comparison_with_sequential_mergewithfatal: stash failed, the exact unrelated snapshot-hardlink/ctime baseline defect documented by main PR #13773. Its isolated supported Dagger Cloud rerun passed in 13m34s (trace91b9bc8f3a602d14f0e6e8b5627e93c6). The final PR ledger is 75 successful checks and one intentionally skipped changelog gate.The repository-root lint entrypoint was also attempted for the registry fix. It failed on an unrelated generated import in
docs/versioned_docs/version-0.21.4/getting-started/types/snippets/default-address/go/main.go; the scoped lints for both changed source trees pass.Release note
Added a v0.21.9 unreleased
Fixedentry attributed to source PR #13410:The GitLab fixture update is test-only and does not add a release note.
Remaining risks
The registry change is a presentation-only policy change scoped to Dagger registry resolve, pull, and push spans. Failed enclosing registry operations still reveal their failed children, and higher verbosity can still expose encapsulated details. The broad progress and transfer-row changes from the rest of #13410 are intentionally not included.
The GitLab change depends on the deliberately public, read-only deploy-token fixture remaining valid. Fresh CI on this canary commit verified all five affected shards; propagation to other backport PRs remains a separate lead decision.