Repository navigation
[TEST] Fix flaky gauge delta multi-reader tests on coarse clocks - #4805
Merged
marcalff merged 2 commits intoNov 23, 2026
Merged
Conversation
dbarker
marked this pull request as ready for review
November 23, 2026 01:30
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4805 +/- ##
==========================================
- Coverage 86.70% 86.69% -0.00%
==========================================
Files 530 530
Lines 21206 21206
==========================================
- Hits 18384 18382 -2
- Misses 2822 2824 +2 🚀 New features to boost your workflow:
|
3 tasks done
marcalff
approved these changes
Nov 23, 2026
mateenali66
approved these changes
Nov 23, 2026
mateenali66
left a comment
Member
There was a problem hiding this comment.
LGTM, thanks for the fix.
All six EXPECT_GT checks against sdk_start_ts in sdk/test now use the 60 s offset.
The double variant failed the same way on #4795, both timestamps equal to the microsecond.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes # (issue)
The
WritableMetricStorageDeltaMultiReaderTestFixture.LongGaugeLastValueAggregationDeltaTemporalityMultiReadertest is flaky in CI due to a time based check.Changes
On macOS the system clock only counts whole microseconds, so sdk_start_ts and the instrument creation time could get the same value and fail the strict EXPECT_GT. Setting
sdk_start_tsto 60s beforebefore_creation(as the counter tests already do) makes the check reliable.For significant contributions please make sure you have completed the following items:
CHANGELOG.mdupdated for non-trivial changes