Skip to content

[backport-0.21] fix: hide registry HTTP probe errors - #13885

Merged
sipsma merged 3 commits into
dagger:backport-0.21from
sipsma:backport-registry-head-output-0.21
Aug 13, 2026
Merged

sipsma merged 3 commits into
dagger:backport-0.21from
sipsma:backport-registry-head-output-0.21

Conversation

@sipsma

@sipsma sipsma commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

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:

GitLab CI fixture fix:

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.publish calls could show prominent remotes.docker.resolver.HTTPRequest and HTTP HEAD ERROR rows, 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:

  • Cherry-picked the complete scoped semantic fix and its golden regression coverage.
  • Kept the existing v0.21 golden-fixture hostname; the source commit included unrelated hostname churn in the same fixture.
  • Excluded the broader transfer-progress row architecture from the remainder of Stream transfer progress as labeled rows; hide registry HTTP noise #13410.
  • No BuildKit, containerd, OpenTelemetry, or other dependency changes.

GitLab fixture fix:

  • Limited to six existing v0.21 integration-test files; no engine or product code changed.
  • Mapped main's extracted module_helpers_test.go change to the equivalent helper in v0.21's module_test.go.
  • Preserved v0.21's existing CLI assertion form in gitcredential_test.go.
  • Omitted main-only workspace/private-dependency coverage and its extracted fixture because those tests and layouts do not exist on v0.21.

Validation

Registry progress fix passed:

  • dagger call engine-dev test --pkg='./dagql/idtui' --run='^TestTelemetry/TestGolden/docker-build-fail$' — 3 tests
  • dagger --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 rows
  • dagger call engine-dev test --pkg='./dagql/dagui' — 22 tests
  • dagger call engine-dev test --pkg='./engine/server/resolver' — 1 test
  • dagger --progress=plain -m ./toolchains/go call --source=. lint-module --module=dagql
  • dagger --progress=plain -m ./toolchains/go call --source=. lint-module --module=engine
  • git diff --check upstream/backport-0.21...HEAD

GitLab fixture adaptation passed locally:

  • TestGit/TestAuthProviders/GitLab_auth — direct username/token API path
  • TestGitCredential/TestGitCredentialErrors/gitlab_private_module — host credential-helper/module path
  • TestModule/TestCrossSessionSecrets/contenthash_cache_hit_with_secrets — nested secret path
  • TestConfig/TestDaggerGitRefs/Private_GitLab — six module-reference assertions
  • git diff --check

Fresh Dagger Cloud checks on canary head becaa3a33542ccc7e96dbf3f430d887f41958e52 passed all five shards that previously exposed the revoked GitLab credentials:

  • test-split:test-base
  • test-split:test-cli-engine
  • test-split:test-call-and-shell
  • test-split:test-container
  • test-split:test-modules

That run also passed TestPrivateGitRepoArgCaching, confirming the earlier linked-worktree .git failure was local-state-only. The first fresh test-split:test-base run independently hit TestChangeset/TestWithChangesets/comparison_with_sequential_merge with fatal: stash failed, the exact unrelated snapshot-hardlink/ctime baseline defect documented by main PR #13773. Its isolated supported Dagger Cloud rerun passed in 13m34s (trace 91b9bc8f3a602d14f0e6e8b5627e93c6). 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 Fixed entry attributed to source PR #13410:

Registry protocol probes no longer appear as scary errors in progress output when image pulls or publishes succeed, while genuine registry failures remain visible.

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.

vito and others added 2 commits August 12, 2026 21:33
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]>
@sipsma sipsma added this to the v0.21.9 milestone Aug 12, 2026
@grouville
grouville self-requested a review August 12, 2026 22:46
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]>
@sipsma
sipsma marked this pull request as ready for review August 13, 2026 01:54
@sipsma
sipsma merged commit 269c47d into dagger:backport-0.21 Aug 13, 2026
76 checks passed
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