-
Notifications
You must be signed in to change notification settings - Fork 351
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
Fragile test case #870
Comments
It seems related with the cache. Disabling the cache for this call is probably a good idea. Thanks |
I have tried enabling the cache and running the tests and I don't see this warning. What version of dune are you using? |
Version 3.17.0. |
does |
No
|
It looks like an issue with your setup, and not particularly with our cram tests. I'm up for making the test more resilient to any setup, but I'm unsure if Would you play with it and try to open a PR? |
This is more likely a bug in Nix's |
I disagree. This particular test line asserts: “running dune will produce no output”. However, the nominal behavior of dune, when cache is enabled and does not work is to output a warning. So I think this assertion is wrong. If you want to reproduce the issue locally, you can try to configure the dune cache:
However, the purpose of this test — I presume — is neither to test dune nor to test whether it is sensibly configured. So maybe it is just better to remove this wrong assertion. One possible way to do it is to kill the output:
|
If the dune build fails, we don't want to hide the errors and want to see the output. Hiding it to dev/null or removing it by grep warnings/hints isn't a great idea either. That's why I thought a flag would hide the annoyance. |
For now, I ensure the env var isn't set and remove the fragility of the test here: fc22f01 |
I opened the issue in dune in case they know something I'm missing (ocaml/dune#11501) Thanks for the issue, closing |
This is not going to work. You have just removed a way to reproduce the issue. And you have badly messed up with the configuration of the dune cache… |
What kind of setup do you use to run the tests and have DUNE_ROOT_PATH pointing to a non existing dir? If you know a better way to hide the message (which is not very relevant to enable cache for a tiny test inside the sandbox) and run dune without ignoring compiler errors, please push a PR with the fix. Meanwhile, this is the best I can do for a fragile test. |
The cram test in
test/blackbox-tests
is prone to spurious failures. In various places, it blindly callsdune
and expects no output from it. For instance:reason-react/test/blackbox-tests/useCallback.t
Line 19 in f0cf5e4
However,
dune
may print warning messages:The text was updated successfully, but these errors were encountered: