Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(test): concurrent access to global OTEL configuration. #1097

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

jvanz
Copy link
Member

@jvanz jvanz commented Feb 19, 2025

Description

The OTEL test is flaky because it relies on the global OTEL configuration that can be overwrite by other concurrent tests.
Therefore, the OTEL test now is behind a feature gate to ensure that it will be run on isolation.

Fix #916

@jvanz jvanz self-assigned this Feb 19, 2025
Copy link

codecov bot commented Feb 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.63%. Comparing base (772b974) to head (7ef3649).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1097      +/-   ##
==========================================
+ Coverage   57.52%   60.63%   +3.11%     
==========================================
  Files          18       18              
  Lines        1189     1189              
==========================================
+ Hits          684      721      +37     
+ Misses        505      468      -37     
Flag Coverage Δ
integration-tests 55.56% <ø> (+3.21%) ⬆️
unit-tests 33.42% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jvanz jvanz force-pushed the fix-otel branch 6 times, most recently from 3940a2e to a1058c5 Compare February 25, 2025 12:53
@jvanz jvanz changed the title Updates OTEL libraries and test fix(test): concurrent access to global OTEL configuration. Feb 25, 2025
@jvanz jvanz force-pushed the fix-otel branch 3 times, most recently from acff66f to a51beff Compare February 25, 2025 13:14
Comment on lines +65 to +66
- name: Run integration-tests coverage
run: make integration-tests
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've also took this opportunity to remove the deprecated actions-rc/cargo action.

@jvanz jvanz marked this pull request as ready for review February 25, 2025 13:15
@jvanz jvanz requested a review from a team as a code owner February 25, 2025 13:15
The OTEL test is flaky because it relies on the global OTEL
configuration that can be overwrite by other concurrent tests.
Therefore, the OTEL test now is behind a feature gate to ensure that it
will be run on isolation.

Signed-off-by: José Guilherme Vanz <[email protected]>
Copy link
Contributor

@fabriziosestito fabriziosestito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Member

@flavio flavio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice fixes!

@flavio flavio merged commit 2f0720b into kubewarden:main Feb 26, 2025
13 checks passed
@jvanz jvanz deleted the fix-otel branch February 26, 2025 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenTelemetry flaky test
3 participants