Skip to content

Improve reliability of SynchronousInstrumentStressTest - #9044

Open
jack-berg wants to merge 1 commit into
open-telemetry:mainfrom
jack-berg:improve-sync-instrument-test-reliability
Open

jack-berg wants to merge 1 commit into
open-telemetry:mainfrom
jack-berg:improve-sync-instrument-test-reliability

Conversation

@jack-berg

Copy link
Copy Markdown
Member

Reduce synchronous instrument stress-test timeout flakiness by increasing the timeout from 10 to 60 seconds. Propagate worker exceptions through futures and make timeout cancellation interruptible, with bounded worker cleanup.

Example test failure: https://github.com/open-telemetry/opentelemetry-java/actions/runs/43378676805/job/135188879155?pr=8856

 SynchronousInstrumentStressTest > partialWriteStressTest(AggregationTemporality, InstrumentType, Aggregation, MemoryMode, InstrumentValueType, boolean) > [40] DELTA HISTOGRAM IMMUTABLE_DATA DOUBLE bound FAILED
    java.util.concurrent.TimeoutException: partialWriteStressTest(io.opentelemetry.sdk.metrics.data.AggregationTemporality, io.opentelemetry.sdk.metrics.InstrumentType, io.opentelemetry.sdk.metrics.Aggregation, io.opentelemetry.sdk.common.export.MemoryMode, io.opentelemetry.sdk.metrics.InstrumentValueType, boolean) timed out after 10 seconds
        at java.base/java.util.Optional.ifPresent(Optional.java:178)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
        at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)

@jack-berg
jack-berg requested a review from a team as a code owner November 19, 2026 02:58
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Waiting on reviewers · refreshed 2026-11-19 17:26 UTC

Review the latest changes.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

@codecov

codecov Bot commented Nov 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.45%. Comparing base (f67bf22) to head (d1ac723).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #9044   +/-   ##
=========================================
  Coverage     90.45%   90.45%           
- Complexity    11181    11182    +1     
=========================================
  Files          1032     1032           
  Lines         30507    30507           
  Branches       3992     3992           
=========================================
+ Hits          27595    27596    +1     
  Misses         1935     1935           
+ Partials        977      976    -1     

☔ View full report in Codecov by Harness.
📢 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.

This branch has not been deployed

No deployments
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.

1 participant