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

Fix temp path creation in Dune cache #4406

Merged
merged 4 commits into from
Mar 26, 2021

Conversation

snowleopard
Copy link
Collaborator

See #4167.

@snowleopard snowleopard requested review from a user and aalekseyev March 26, 2021 18:03
otherlibs/stdune-unstable/temp.ml Outdated Show resolved Hide resolved
@rgrinberg
Copy link
Member

A CHAGNES entry would also be nice here. Since this fix is important, it would be nice to make a point release that includes it as well.

@snowleopard snowleopard force-pushed the fix-tmp-dir-in-cache branch from 73cdcac to 8056013 Compare March 26, 2021 23:15
@snowleopard
Copy link
Collaborator Author

A CHAGNES entry would also be nice here. Since this fix is important, it would be nice to make a point release that includes it as well.

@rgrinberg Agreed, done!

@snowleopard
Copy link
Collaborator Author

@rgrinberg Apparently try_times does return a meaningful exception, so I printed it out too. (At first read, I thought we hit the final assert if all the attempts fail.)

Thanks for the review!

Signed-off-by: Andrey Mokhov <[email protected]>
Signed-off-by: Andrey Mokhov <[email protected]>
Signed-off-by: Andrey Mokhov <[email protected]>
@snowleopard snowleopard force-pushed the fix-tmp-dir-in-cache branch from c89a1dc to 3289a92 Compare March 26, 2021 23:32
@snowleopard snowleopard merged commit a88ce5b into ocaml:main Mar 26, 2021
@snowleopard snowleopard deleted the fix-tmp-dir-in-cache branch March 26, 2021 23:46
rgrinberg added a commit to rgrinberg/opam-repository that referenced this pull request Mar 29, 2021
…ne-action-plugin, dune-private-libs and dune-glob (2.8.5)

CHANGES:

- Fixed absence of executable bit for installed `.cmxs` (ocaml/dune#4149, fixes ocaml/dune#4148, @bobot)

- Fix a race in Dune cache. It was particularly easy to hit this race when using
  the cache on Windows (ocaml/dune#4406, fixes ocaml/dune#4167, @snowleopard)
rgrinberg pushed a commit that referenced this pull request Mar 29, 2021
Fix a race in Dune cache. It was particularly easy to hit this race when using
the cache on Windows, see #4167.

Signed-off-by: Andrey Mokhov <[email protected]>
Signed-off-by: Rudi Grinberg <[email protected]>
@smorimoto smorimoto mentioned this pull request Mar 29, 2021
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants