Skip to content

Fix flaky tests#153

Merged
Oguzhan Unlu (oguzhanunlu) merged 6 commits intodevelopfrom
fix/flaky-metrics-spec-test
Jan 8, 2026
Merged

Fix flaky tests#153
Oguzhan Unlu (oguzhanunlu) merged 6 commits intodevelopfrom
fix/flaky-metrics-spec-test

Conversation

@oguzhanunlu
Copy link
Collaborator

@oguzhanunlu Oguzhan Unlu (oguzhanunlu) commented Jan 8, 2026

  • fix flaky test
  • cache docker images to speed up CI

pulling dblworks/statsd:v0.10.1 image was part of test timeout for MetricsSpec, so changes are needed together

@oguzhanunlu Oguzhan Unlu (oguzhanunlu) force-pushed the fix/flaky-metrics-spec-test branch 2 times, most recently from d8b0032 to b7288f7 Compare January 8, 2026 12:41
@oguzhanunlu
Copy link
Collaborator Author

Oguzhan Unlu (oguzhanunlu) commented Jan 8, 2026

I saw another flaky test failure

[error]       x report no timestamp after events are processed
[error]  Some(1800000000 microseconds) is not None (LowLevelSourceSpec.scala:922)

debugging this too

The test was failing intermittently with:
  Some(1800000000 microseconds) is not None

At exactly 30 minutes, a new batch could arrive but not yet be
processed, causing currentStreamLatency to report the batch's
latency. Adding 500ms offset avoids landing on batch boundaries.
@oguzhanunlu Oguzhan Unlu (oguzhanunlu) changed the title Fix race condition in MetricsSpec Fix flaky tests Jan 8, 2026
Use the same pattern as enrich-private: container lifecycle is managed
via Resource with a generous ResourceTimeout for startup, rather than
manually starting in beforeAll and stopping in afterAll.
@oguzhanunlu Oguzhan Unlu (oguzhanunlu) merged commit 7509f31 into develop Jan 8, 2026
6 checks passed
Oguzhan Unlu (oguzhanunlu) added a commit that referenced this pull request Jan 8, 2026
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