-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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: pipe workerIdleMemoryLimit to globalConfig #13106
Conversation
Hi @backmask! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Ugh, almost same as #13105. Feels like we should have some tests it's properly threaded through 😅 |
@backmask this fixes both the issues you mentioned in the linked comment? |
This fixes the first issue (the flag having no effect). It does not fix workers being killed and not respawning. For the second bug, I haven't found a fix or if I have done a misconfiguration. I will let you know if I find anything! |
Back from vacation, investigating now |
Your analysis is mostly correct... The workers are being killed, they are respaning, the request to re-run the request is being sent then just nothing. The plot thickens.
As for the config fix above, that works correctly and should be merged. |
I currently have no idea why but this promise is not resolving in a worker that has been restarted. |
I have a test case for the issue as part of a new e2e test. I should've created one of these in the original PR and we wouldn't have had these issues. Heading to bed now, tomorrow will be trying to figure out why it's misbehaving. |
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.
let's land this in the meantime as it's a correct tweak 🙂
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
New argument
workerIdleMemoryLimit
did not get forwarded frompackage.json
to the workers. This fixes it. Context: #11956 (comment)Test plan
Tested manually, added a console.log in
TestRunner::createParallelTestRun
, saw an undefinedworkerIdleMemoryLimit
without the fix. Works with the fixThe following entry has to be added to
package.json
to test the fix