Skip to content

fix: reloader unittest races on writeWg - #2352

Merged
cstockton merged 1 commit into
masterfrom
cs/reloader-unittest-race-fix
Jan 27, 2026
Merged

fix: reloader unittest races on writeWg#2352
cstockton merged 1 commit into
masterfrom
cs/reloader-unittest-race-fix

Conversation

@cstockton

Copy link
Copy Markdown
Contributor

It's possible for writerWg.Add(1) to race with the notifyFn passed in eg.Go's call to pr.watch. Simple fix is incrementing after writeWg is initialized.

writeWg.Add was being called after after a call to writerWg.Wait.
@cstockton
cstockton requested a review from a team as a code ownerJanuary 26, 2026 13:23
@coveralls

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 21359244319

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 68.819%

TotalsCoverage Status
Change from base Build 21302359064:0.0%
Covered Lines:14849
Relevant Lines:21577

💛 - Coveralls

@cstockton
cstockton merged commit 088b714 into masterJan 27, 2026
7 checks passed
@cstockton
cstockton deleted the cs/reloader-unittest-race-fix branch January 27, 2026 15:18
cstockton pushed a commit that referenced this pull request Jan 28, 2026
🤖 I have created a release *beep* *boop*
---
##
[2.186.0](v2.185.0...v2.186.0)
(2026-01-28)
### Features
* Add email send operation metrics
([#2311](#2311))
([0096575](0096575))
* add Supabase Auth identifier to OAuth redirect URLs
([#2299](#2299))
([2d3dbc6](2d3dbc6))
* log sb-auth-user-id, sb-auth-session-id, ... on sign in not just
refresh token ([#2342](#2342))
([a486ada](a486ada))
* **oauth-server:** store and enforce token_endpoint_auth_method
([#2300](#2300))
([bcd6cd5](bcd6cd5))
* replace JWT OAuth state with `flow_state.id` UUID
([#2331](#2331))
([645654d](645654d))
* upgrade existing sessions to v2 refresh tokens though config value
([#2356](#2356))
([6fb0e8a](6fb0e8a))
### Bug Fixes
* reloader unittest races on writeWg
([#2352](#2352))
([088b714](088b714))
* update migration version
([#2343](#2343))
([61ef4db](61ef4db))
---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Co-authored-by: supabase-releaser[bot] <223506987+supabase-releaser[bot]@users.noreply.github.com>
Sign up for freeto 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.

3 participants

@cstockton@coveralls@jnschaeffer