Skip to content

Conversation

@charlieegan3
Copy link
Contributor

Fixes race condition in initGzipPool() that was causing go race test failures when multiple tests run concurrently. The package-level gzipPool variable was being unsafely reassigned across without synchronization.

RWMutex ensures that the gzipPool is only initialized once.

@netlify
Copy link

netlify bot commented Aug 11, 2025

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit 9a5d281
🔍 Latest deploy log https://app.netlify.com/projects/openpolicyagent/deploys/6899ae6d0a6c490008adb049
😎 Deploy Preview https://deploy-preview-7828--openpolicyagent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Aug 11, 2025

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit de6da1c
🔍 Latest deploy log https://app.netlify.com/projects/openpolicyagent/deploys/68af270ba8788d0008fd8be2
😎 Deploy Preview https://deploy-preview-7828--openpolicyagent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@johanfylling johanfylling left a comment

Choose a reason for hiding this comment

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

Thanks!

@charlieegan3 charlieegan3 force-pushed the gzippool-locking branch 5 times, most recently from 21330fc to a4c4459 Compare August 13, 2025 19:48
@charlieegan3 charlieegan3 force-pushed the gzippool-locking branch 2 times, most recently from 70c4c12 to c22ba33 Compare August 27, 2025 14:44
Charlie Egan and others added 3 commits August 27, 2025 16:40
Fixes race condition in initGzipPool() that was causing go race test failures
when multiple tests run concurrently. The package-level gzipPool variable
was being unsafely reassigned across without synchronization.

RWMutex ensures that the gzipPool is only initialized once.

Signed-off-by: Charlie Egan <[email protected]>
Copy link
Contributor

@johanfylling johanfylling left a comment

Choose a reason for hiding this comment

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

👍

@johanfylling johanfylling merged commit 00feaff into open-policy-agent:main Aug 28, 2025
55 of 57 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