-
Notifications
You must be signed in to change notification settings - Fork 416
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
Disable dune cache for test suite #6138
Conversation
This is a prereq for #5903 |
What exactly isn't behaving in the test suite? Is this perhaps a bug with cache/cram? |
I think it's inherent to the way the test suite is written. For example, some commands are run with |
I think that's probably the way to go. Almost all tests that rely on |
The test suite does not behave correctly when `DUNE_CACHE=enabled` is present in the environment. So we unset the variable locally for tests that do not pass. This can be tricky to test. One way that works is by exporting `DUNE_CACHE=enabled` and running `./dune.exe runtest -f`. Signed-off-by: Etienne Millon <me@emillon.org>
d565e8b
to
ccee9c0
Compare
I tried to take that approach. The issue is that many test cases have issues. One common pattern is that tests that rely on I don't think that this is a good direction to take:
My suggestion is to proceed as follows:
|
Nix will help with the build dependencies but only the Dune cache can improve the test suite times. |
I also had testsuite failures due to |
@@ -1,3 +1,5 @@ | |||
$ export DUNE_CACHE=disabled | |||
|
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.
Why's this necessary (here and elsewhere)? Unsetting DUNE_CACHE
seems enough here: time CI=true ./dune.exe runtest otherlibs/action-plugin/test/depends-on-directory-with-glob
...
What if we could do this from the cram stanzas? |
The test suite does not behave correctly when
DUNE_CACHE=enabled
is present in the environment. So we set it todisabled
locally or unset it in some cases.