Skip to content

Conversation

@srenatus
Copy link
Contributor

This was overly specific before, and quickly failed when fail events had not been on of the right sort. Now, we're more lenient.

These would happen, as in https://github.com/orgs/open-policy-agent/discussions/722#discussioncomment-14812737, when a fail event happened that's unrelated to unknowns lookup, but a valid failure nonetheless. So this will not lead to a hint. Only fail events of the previously-expected form could yield hints.

Reported by @huntkalio

This was overly specific before, and quickly failed when fail events had
not been on of the right sort. Now, we're more lenient.

These would happen, as in https://github.com/orgs/open-policy-agent/discussions/722#discussioncomment-14812737,
when a fail event happened that's unrelated to unknowns lookup, but a
valid failure nonetheless. So this will not lead to a hint. Only fail
events of the previously-expected form could yield hints.

Signed-off-by: Stephan Renatus <[email protected]>
switch {
case expr.IsCall():
for i := range 2 {
op := expr.Operand(i)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@philipaconrad I vaguely remember you having pointed at this line with concerns before. If my recollection is correct: you win! 🙃

@netlify
Copy link

netlify bot commented Oct 29, 2025

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit 2ac78b5
🔍 Latest deploy log https://app.netlify.com/projects/openpolicyagent/deploys/6901d9d9c2da280008656886
😎 Deploy Preview https://deploy-preview-7995--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.

LGTM 👍

@srenatus srenatus merged commit 39044ba into open-policy-agent:main Oct 29, 2025
31 checks passed
@srenatus srenatus deleted the sr/wlpuspwyqpql branch October 29, 2025 09:57
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