Skip to content

update otel and fix failing tests#1078

Merged
collin-lee merged 1 commit intoenvoyproxy:mainfrom
Revolyssup:revolyssup/update-otel-fix
Mar 12, 2026
Merged

update otel and fix failing tests#1078
collin-lee merged 1 commit intoenvoyproxy:mainfrom
Revolyssup:revolyssup/update-otel-fix

Conversation

@Revolyssup
Copy link
Contributor

@Revolyssup Revolyssup commented Mar 4, 2026

After otel upgrade, existing tests fail here #1076
Reason:
require (which calls runtime.Goexit()) inside assert.Eventually is fundamentally broken. Eventually runs the condition in a goroutine. When require fails, Goexit() kills that goroutine without sending a result back on the channel. This permanently deadlocks Eventually's retry loop. It can never retry and just waits until the timeout fires. In otel's previous version the test succeeded on first assertion so this case was never hit.

Fix: Replaced require calls inside assert.Eventually with conditional checks that return false, allowing proper retry behavior. For TestFlushGauge (which doesn't use Eventually), switched from require to assert since the require import was removed.

Notes: This is a known issue and currently has an outstanding PR stretchr/testify#1819
But it looks like it's going nowhere. In the meanwhile, this fix makes sure that otel can be upgraded with passing tests.

Signed-off-by: Ashish Tiwari <ashishjaitiwari15112000@gmail.com>
@Revolyssup Revolyssup force-pushed the revolyssup/update-otel-fix branch from d677588 to 992569f Compare March 4, 2026 08:37
@collin-lee collin-lee merged commit c8765e8 into envoyproxy:main Mar 12, 2026
6 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.

2 participants