Skip to content

test: scrub packet loss from telemetry goldens - #13473

Merged
sipsma merged 1 commit into
dagger:mainfrom
sipsma:scrub-telemetry-more-thread-202606161812
Jun 16, 2026
Merged

sipsma merged 1 commit into
dagger:mainfrom
sipsma:scrub-telemetry-more-thread-202606161812

Conversation

@sipsma

@sipsma sipsma commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Normalize transient packet-loss annotations such as (5.88% dropped) in the shared telemetry golden scrubber. Add focused coverage for the TypeScript fail-effect shape that appeared in CI.

Why

The failed test-split:test-telemetry trace showed TestTelemetry/TestGolden/typescript-fail-effect differing only by a packet-loss suffix on .failEffect. That suffix comes from ephemeral network metrics in the test environment and does not change the progress-rendering behavior the golden is meant to assert.

Validation

  • go test ./util/scrub
  • git diff --check

The test-split:test-telemetry CI trace showed the TypeScript fail-effect golden differing only by a transient packet-loss suffix on the failed span: ERROR (5.88% dropped).

That metric reflects ephemeral network conditions in the test environment rather than the progress-rendering behavior the golden is asserting. Normalize packet-loss adornments in the shared scrubber and add focused coverage for the failing shape.

Signed-off-by: Erik Sipsma <[email protected]>
@sipsma
sipsma merged commit 889d043 into dagger:main Jun 16, 2026
78 checks passed
eunomie added a commit that referenced this pull request Oct 20, 2026
The test-split:test-telemetry CI trace showed the TypeScript fail-effect golden differing only by a transient packet-loss suffix on the failed span: ERROR (5.88% dropped).

That metric reflects ephemeral network conditions in the test environment rather than the progress-rendering behavior the golden is asserting. Normalize packet-loss adornments in the shared scrubber and add focused coverage for the failing shape.

Signed-off-by: Erik Sipsma <[email protected]>
(cherry picked from commit 889d043)
Signed-off-by: Yves Brissaud <[email protected]>
eunomie added a commit that referenced this pull request Oct 21, 2026
)

* sdk/go: require the modules generated module code imports

Code generated for Go modules imports github.com/dagger/otel-go and
go.opentelemetry.io/otel/sdk, but this SDK didn't require them. Module
codegen copies the SDK's requirements into each generated module's
go.mod, so `go mod tidy` there had to look up which module provides each
of those imports over the network, and then picked whatever version was
newest at the time.

Require them through a tools-tagged package, so codegen pins them like
the SDK's other dependencies. The tag keeps them out of builds.

Signed-off-by: Erik Sipsma <[email protected]>
(cherry picked from commit dc03a9e)
Signed-off-by: Yves Brissaud <[email protected]>

* cmd/codegen: test that module go.mod pins generated imports

Signed-off-by: Yves Brissaud <[email protected]>

* chore: add changelog fragment for otel pin backport

Signed-off-by: Yves Brissaud <[email protected]>

* chore: add PR number to changelog fragment

Signed-off-by: Yves Brissaud <[email protected]>

* core: seed generated clients with sdk dependency versions

A fresh client module only required dagger.io/dagger. When tidy
resolved its direct imports, it could select the newest OTel release
instead of the versions used by the SDK. Importing that client from
a Dagger module then conflicted with the pinned OTel log package.

Seed new client modules with the embedded SDK requirements before
running tidy. Preserve existing client modules and their chosen
versions. Add a test for the initial module requirements.

Signed-off-by: Tibor Vass <[email protected]>
(cherry picked from commit 7eddc48)
Signed-off-by: Yves Brissaud <[email protected]>

* core/integration: pin TestCrossCompile image to Go 1.26

crazymax/goxx:latest moved to Go 1.27, where golang.org/x/net v0.54.0
no longer defines http2.TrailerPrefix, so grpc v1.80.0 fails to build.

Signed-off-by: Yves Brissaud <[email protected]>

* core/integration: gate dep exit in the service short-circuit test

The test binds a consumer exec to app, and app to dep, and asserts that
dep's exit reaches the consumer through app as "bound service <app>
exited: ... bound service <dep> exited: exit code: 42". dep ran
"sleep 1; exit 42" with no gate, so when app's startup took longer than
1s the service start loop took its other designed branch and failed
app's start with "start <app> (aliased as app): bound service <dep>
(aliased as dep) exited", which the test does not accept.

Make the ordering causal instead of timing-based. The consumer's command
touches a marker on a per-run shared cache volume, and dep exits 42 only
once that marker exists. By then app has been returned as running and
the consumer's bound-service monitor is installed. dep's watchdog exits
1, not 42, if the marker never appears. app now loops until killed
instead of sleeping 30s, so it cannot exit on its own while a slow
consumer is still setting up. The consumer is still not bound to dep,
and the assertions are unchanged.

Signed-off-by: Erik Sipsma <[email protected]>
(cherry picked from commit 70c1201)
Signed-off-by: Yves Brissaud <[email protected]>

* test: scrub packet loss from telemetry goldens (#13473)

The test-split:test-telemetry CI trace showed the TypeScript fail-effect golden differing only by a transient packet-loss suffix on the failed span: ERROR (5.88% dropped).

That metric reflects ephemeral network conditions in the test environment rather than the progress-rendering behavior the golden is asserting. Normalize packet-loss adornments in the shared scrubber and add focused coverage for the failing shape.

Signed-off-by: Erik Sipsma <[email protected]>
(cherry picked from commit 889d043)
Signed-off-by: Yves Brissaud <[email protected]>

---------

Signed-off-by: Erik Sipsma <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Tibor Vass <[email protected]>
Co-authored-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.

2 participants