-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Race condition when multiple parallel stages depend on the same cache mount path. #5566
Comments
I don't think the provided example case is very realistic. Apart from there being no It's not clear to me what mkdir actually hits the race condition so runnable reproducer would clear it up. |
I managed to reproduce with following Dockerfile
Script
Afaics this is fundamentally a problem in |
@tonistiigi I marked this as fixed through #5588, but just see you mentioned some possible changes on the buildkit side as well, so not sure if this one should be closed or stay open for that |
@thaJeztah Closing is correct |
I'm not sure if this is the same problem, but it does seem like implementing this feature might also solve this bug.
I think this is the minimal setup to reproduce this issue:
Realistic example:
logs: https://github.com/mozilla/addons-server/actions/runs/12159813323/job/33910761294?pr=22911
This is a race condition. Sometimes it happens, sometimes not. It feels like this should not be allowed to happen and buildkit should be smart enough to lazy create the mount points or reuse if existing, or append the stage to make them stage independent..
The text was updated successfully, but these errors were encountered: