Skip to content

Deflake flagged_driver_test by expanding mutex#6062

Merged
JAORMX merged 1 commit intomindersec:mainfrom
evankanderson:deflake-1
Jan 24, 2026
Merged

Deflake flagged_driver_test by expanding mutex#6062
JAORMX merged 1 commit intomindersec:mainfrom
evankanderson:deflake-1

Conversation

@evankanderson
Copy link
Copy Markdown
Member

@evankanderson evankanderson commented Jan 22, 2026

Summary

We seem to have a couple frequent flakes on GitHub that don't easily reproduce in my (fast) development environment. Today I decided to try the same thing on a slower machine (4x 1.5Ghz), and was able to reproduce the failures, which seem to be due to flags being reinitialized outside the lock (e.g. "before = 2, after = 0" on an only-incrementing counter must be a reinit).

Testing

5 runs of go test -count 1000 ./internal/events with zero flakes. (about 25 minutes on the aforementioned machine)

@evankanderson evankanderson requested a review from a team as a code owner January 22, 2026 20:38
@evankanderson evankanderson force-pushed the deflake-1 branch 2 times, most recently from 66ff072 to 41a97a1 Compare January 22, 2026 20:55
@JAORMX JAORMX merged commit ac1c209 into mindersec:main Jan 24, 2026
33 of 34 checks passed
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