-
Notifications
You must be signed in to change notification settings - Fork 392
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
test(melange): missing dependency during emission with sandbox enabled #10295
test(melange): missing dependency during emission with sandbox enabled #10295
Conversation
2e151a0
to
2044fce
Compare
Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
2044fce
to
df005ab
Compare
Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
not sure if this is needed anymore since #10286 fixed it. |
df005ab
to
b706d73
Compare
I think it's useful. It has the potential to find many such bugs. The only cost is in performance, so it could really be enabled everywhere else in the test suite as well. |
I don't understand the implication here. This PR has a performance impact? But enabling more sandboxing will have less perf impact? |
IIRC there's also something preventing us from enabling sandboxing altogether for |
Sure, let me clarify. Sandboxing has a performance cost, but it makes the rules more reliable. For the test suite, that seems like a good trade-off because we are building trivial projects anyway. Sandboxing works with runtime deps if the dependencies are specified correctly. I don't see any specific issues there. I suppose one issue with sandboxing is that rules can often rely on it in a way that will make them break in non-sandboxed mode. E.g. |
I'd love to run the test suite through sandboxing and see if it holds up for Melange. Is there a way to enable sandboxing for the entire test suite other than e.g. setting the environment variable in the dune file? |
Maybe you could use the setenv field in the env stanza to turn it on for melange tests? |
I'd rather merge #10312. Just need to disable sandboxing in that odoc test. |
based on the suggestion in #10286 (comment)
enabling sandboxing confirms there's a missing dependency