Skip to content
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

Speedup "make reftest-gen" #6155

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Conversation

kit-ty-kate
Copy link
Member

Opening #6154 made me realised that the reason make reftest-gen is slow is that we're removing tests/reftests/dune.inc which lists all the opam roots/opam repositories and tar.gz targets, so dune build will scan the directory and remove everything that it doesn't know about and given those targets are not defined anymore it will then remove everything.

Simply not emptying that file fixes the issue. If in the future we need to upgrade the syntax or whatever we can always remove that file manually and the error message should make it obvious. But in the meantime this change is extremely beneficial to the day-to-day development setup by not having to remove then re-download, unpack and recreate 5GB everytime that rule is called

@kit-ty-kate kit-ty-kate added this to the 2.3.0~alpha milestone Aug 13, 2024
Copy link
Collaborator

@rjbou rjbou left a comment

Choose a reason for hiding this comment

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

Thanks!

@rjbou rjbou merged commit 6fc00fd into ocaml:master Aug 14, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants