router icon indicating copy to clipboard operation
router copied to clipboard

v0.11.0: plugin initialization errors: insta snapshot failures for traced_basic_composition and traced_basic_request

Open garypen opened this issue 3 years ago • 1 comments

After fixing the plugin handler initialisation issue, we were planning to cut a new release. However, after the fix was integrated we noticed intermittent errors in two of the snapshot generating tests:

integration_tests__traced_basic_composition and integration_tests__traced_basic_request

These tests use insta snapshotting to compare the spans generated when the tests are run. The issue is that both tests generate different results when executed (without change to environment or code) which makes our CI tests fail. This only appears to affect MacOS testing.

At this time, we aren't sure of the issue is a real issue in our code or an issue in the testing code which generates snapshots as input to insta.

We don't want to cut a new release until this is resolved and since we know that 0.11.0 is broken, we recommend staying on 0.10.0 until this issue is addressed.

garypen avatar Jul 15 '22 14:07 garypen

#1410 is a workaround until we figure out exactly what is failing and why. We believe the tracing switch from lazy_static to once_cell may be the cause. I'll check

o0Ignition0o avatar Jul 18 '22 11:07 o0Ignition0o

@o0Ignition0o any updates on this?

abernix avatar Aug 31 '22 07:08 abernix

Closing since telemetry has evolved a fair bit since, and we don't need those tests to assert against snapshots anymore.

o0Ignition0o avatar Sep 12 '22 08:09 o0Ignition0o

This ticket is still linked here: https://github.com/apollographql/router/blob/dev/apollo-router/Cargo.toml#L105

Is that no longer relevant?

alper avatar Nov 21 '22 13:11 alper

Will be updated in this PR https://github.com/apollographql/router/pull/2040/files#diff-aca654efc6c22bebf4bd167370ab3bf380f3e086befe3d7c6761a8f7eb59d89cL182

bnjjj avatar Nov 21 '22 13:11 bnjjj