-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
"Failed to create hardlink" due to "No such file or directory" in 2.17.0.dev
#18661
Comments
#18696 should increase debuggability here. |
The first repro from https://github.com/pantsbuild/pants/actions/runs/4633199550/jobs/8198452894?pr=18696:
|
2.17.0.dev
2.17.0.dev
And a failure on Mac runner using the |
Scenario: - daemon starts - materializes FSDB file, entry added to `dest_initializer` - GC eventually kicks in and calls `remove` on an FSDB file - `all_fingerprints` doesn't return a fingerprint for the file because it was removed - Attempt to `store` the file, but we re-use the `OnceCell` entry in `dest_initializer`, so it's a no-op - Hardlinking fails 😢 New test fails before, passes after I don't think this bug is #18661 though :/
This comment was marked as off-topic.
This comment was marked as off-topic.
Otherwise if we're really unlucky, the metadata isn't persisted to disk before we try to `hard_link` it and the OS returns an error. Fixes #18661 (Tested locally using work repo. Always reproduced before PR. Doesn't reproduce after)
Setting the temporary directory in the root folder, gives this error:
It seems that it is not creating: My [GLOBAL] pants.toml is:
Here the log of the execution with |
Even after #18600, there appear to be periodic "No such file or directory" errors (likely caused by #18153), similar to this one: https://github.com/pantsbuild/pants/actions/runs/4585391355/jobs/8097532089?pr=18652
AFAICT, we have only seen this on
2.17.0.dev
/main
, and not in2.16.x
.The text was updated successfully, but these errors were encountered: