Skip to content

Conversation

@charlieegan3
Copy link
Contributor

I saw a panic here: https://github.com/open-policy-agent/opa/actions/runs/16652495113/job/47128828522 and think it's related to the server init check returning before the addrs are set.

I update all cases where a similar check on logs is done.

I am unsure how the log could come before the server is initialized, but sometimes funny things happen in race detector ordering and this looks more correct to me.

@netlify
Copy link

netlify bot commented Aug 4, 2025

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit f0cefc5
🔍 Latest deploy log https://app.netlify.com/projects/openpolicyagent/deploys/6894cde182cf4800086c85a6
😎 Deploy Preview https://deploy-preview-7818--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.

@charlieegan3 charlieegan3 changed the title runtime: Update server init check runtime: Update server init check in runtime tests Aug 4, 2025
@charlieegan3 charlieegan3 force-pushed the runtime-server-init-test branch 3 times, most recently from ff5ad60 to 2c11563 Compare August 7, 2025 13:12
Copy link
Member

@sspaink sspaink left a comment

Choose a reason for hiding this comment

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

Looks better! Thanks for the fix.

I saw a panic here: https://github.com/open-policy-agent/opa/actions/runs/16652495113/job/47128828522
and think it's related to the server init check returning before the
addrs are set.

I update all cases where a similar check on logs is done.

I am unsure how the log could come before the server is initialized, but
sometimes funny things happen in race detector ordering and this looks
more correct to me.

Signed-off-by: Charlie Egan <[email protected]>
@charlieegan3 charlieegan3 force-pushed the runtime-server-init-test branch from 2c11563 to f0cefc5 Compare August 7, 2025 16:01
@charlieegan3
Copy link
Contributor Author

Thanks for the review Sebastian!

@charlieegan3 charlieegan3 enabled auto-merge (squash) August 7, 2025 16:02
@charlieegan3 charlieegan3 merged commit 16158ba into open-policy-agent:main Aug 7, 2025
55 of 57 checks passed
@charlieegan3 charlieegan3 deleted the runtime-server-init-test branch August 7, 2025 16:27
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