Skip to content

test: Add ignored code in test to prove known issue #2872

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

Merged
merged 6 commits into from
Apr 6, 2025

Conversation

cijothomas
Copy link
Member

To demonstrate the issue #2871
This PR is not investigating/fixing the issue, but rather adding a test to confirm the issue exists.

@cijothomas cijothomas requested a review from a team as a code owner March 27, 2025 13:52
Copy link

codecov bot commented Mar 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.3%. Comparing base (4b56ee3) to head (de6c3cf).
Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #2872   +/-   ##
=====================================
  Coverage   81.3%   81.3%           
=====================================
  Files        125     125           
  Lines      24130   24134    +4     
=====================================
+ Hits       19622   19630    +8     
+ Misses      4508    4504    -4     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

fn on_end(&self, _span: SpanData) {
// TODO: Accessing Context::current() will panic today and hence commented out.
// See https://github.com/open-telemetry/opentelemetry-rust/issues/2871
// let _c = Context::current();
Copy link
Member

Choose a reason for hiding this comment

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

We can also add an ignored test using a TestSpanProcessor that accesses Context::current() in on_end(), to validate the expected behavior once it's safe.

@cijothomas cijothomas merged commit 4791aae into open-telemetry:main Apr 6, 2025
24 checks passed
@cijothomas cijothomas deleted the cijothomas/knownbugtest branch April 6, 2025 14:59
cijothomas added a commit to cijothomas/opentelemetry-rust that referenced this pull request Apr 6, 2025
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