-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fix issue when setup:di:complie could unexpectedly crash with Directory not empty filesystem error
#39684
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 issue when setup:di:complie could unexpectedly crash with Directory not empty filesystem error
#39684
Conversation
|
Hi @theuargb. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
ihor-sviziev
left a comment
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.
At first look, your fix looks as a workaround.
For better context, could you please provide some steps to reproduce, some exception stacktrace, or any other additional information?
|
Hello @ihor-sviziev |
|
Hello @theuargb |
|
Hello @theuargb, Have you got a chance to look into this #39684 (comment)? I agree with the @ihor-sviziev and @andrewbess here. I think we should close this PR as of now, please suggest. Meanwhile moving this PR Thanks |
|
i honestly do not understand why community members criticize issue/PR IN DRAFT STATE WITHOUT ANY INFORMATION in description. if this one bothers you in this state - remove it. there is also normally described less disscussive PR (magento/inventory#3411) which lays there for years without any attention |
|
my generic point:
my original plan: my proposal: |
|
Hello @theuargb,
Thank you for your comment. For draft PRs, we typically assume that there are pending tasks or incomplete code, which is why they are in draft status. As such, we do not proceed with further processing, such as review or testing, until the draft is finalized. This is why we have moved it to the On Hold bucket. Additionally, since the description was empty, we have requested more information regarding the purpose of this PR and its manual testing scenarios etc. for this #39684 (comment): After reviewing your comment above, it appears that you are encountering this problem with a specific file system. Could you please provide us with the following information:
Thanks |
Description (*)
This tries to address the issue when the generated/* directory is not consistently empty on deployment (due to the running process with outdated runtime or other custom code/configs), introducing simple retry.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Deployment is a critical application process. There’s a behavior in this process that sometimes leads to failed deployments, which is far worse than retry logic in a critical path. The app should not fail if it can recover — it should do everything possible to complete the process gracefully.
Some deployments may involve processes that temporarily occupy the generated folder. It's acceptable for those processes to continue with outdated runtime until they finish.
Good apps handle recoverable errors gracefully — they try to recover instead of failing outright.
Contribution checklist (*)