-
-
Notifications
You must be signed in to change notification settings - Fork 17.5k
open-policy-agent: skip tests that require network, enable __darwinAllowLocalNetworking #394921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| [ | |
| # Skip tests that requires network, not available in the nix sandbox | |
| lib.optionals stdenv.hostPlatform.isDarwin [ | |
| # Skip tests that requires network, not available in the darwin sandbox |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, let's try __darwinAllowLocalNetworking = true; first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this skip be darwin-only?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue was also reported on aarch64-linux, so I'd leave out the conditional for darwin.
#390371
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok!
|
Unfortunately it is not enough: |
|
The issue was also reported on aarch64-linux, so I'd leave out the conditional for darwin. |
|
On darwin: |
|
Does |
teutat3s
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And we have another skip candidate: TestIntraQueryCache_ClientError
https://hydra.nixos.org/build/293831995/nixlog/1
|
|
Still failing on darwin with: |
22feaf5 to
06a80b9
Compare
|
|
Weird. |
These tests do not work in the nix sandbox.
To fix test that requires networking in the darwin sandbox.
06a80b9 to
e6e2929
Compare
Turns out, you cannot pass I have force-pushed a fix. |
|
e6e2929 to
3baf3c4
Compare
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release-24.11
git worktree add -d .worktree/backport-394921-to-release-24.11 origin/release-24.11
cd .worktree/backport-394921-to-release-24.11
git switch --create backport-394921-to-release-24.11
git cherry-pick -x 982ec514ae046b36d6be259e95a2816bd47873cb dadb234094761065149f148dab69ee82357978e6 3baf3c4c6a519679ee266b4496ac4e2e1819e296 |
This test does not work in the
nixsandbox.Related to #393129 (comment).
Fixes #390371.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.