Skip to content

Don't use race detector for jobreceiver tests#1639

Merged
echlebek merged 3 commits intomainfrom
fix-flaky-darwin-build
Jul 26, 2024
Merged

Don't use race detector for jobreceiver tests#1639
echlebek merged 3 commits intomainfrom
fix-flaky-darwin-build

Conversation

@echlebek
Copy link
Copy Markdown
Contributor

This commit overrides the race detection in the jobreceiver tests. While this prevents us from catching data races in the jobreceiver in CI, it also keeps CI from failing sporadically on Darwin.

There's something amiss in the jobreceiver tests and it causes CI to fail quite regularly, almost always on Darwin. I suspect there is some concurrency bug in the test harness that is more likely to deadlock when the race detector is enabled. (The race detector slows everything down, and that can make deadlocks more likely to happen by exposing timing bugs).

This commit overrides the race detection in the jobreceiver tests. While
this prevents us from catching data races in the jobreceiver in CI, it
also keeps CI from failing sporadically on Darwin.

There's something amiss in the jobreceiver tests and it causes CI to
fail quite regularly, almost always on Darwin. I suspect there is some
concurrency bug in the test harness that is more likely to deadlock when
the race detector is enabled. (The race detector slows everything down,
and that can make deadlocks more likely to happen by exposing timing
bugs).

Signed-off-by: Eric Chlebek <echlebek@sumologic.com>
@echlebek echlebek self-assigned this Jul 25, 2024
@echlebek echlebek requested a review from a team as a code owner July 25, 2024 19:48
@echlebek echlebek enabled auto-merge (squash) July 25, 2024 20:05
Copy link
Copy Markdown
Contributor

@sumo-drosiek sumo-drosiek left a comment

Choose a reason for hiding this comment

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

Could you add an issue, so we do not loose track on it and eventually investigate in the future?

@echlebek
Copy link
Copy Markdown
Contributor Author

Good idea. Filed #1641

@echlebek echlebek merged commit bd34f70 into main Jul 26, 2024
@echlebek echlebek deleted the fix-flaky-darwin-build branch July 26, 2024 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants