-
Notifications
You must be signed in to change notification settings - Fork 910
[Merged by Bors] - Fix Rayon deadlock in test utils #4837
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
Conversation
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.
Nice!
bors r+ |
## Issue Addressed Fix a deadlock in the tests that was causing tests on tree-states to run for hours without finishing: https://github.com/sigp/lighthouse/actions/runs/6491194654/job/17628138360. ## Proposed Changes Avoid using a Mutex under the Rayon `par_iter`. Instead, use an `AtomicUsize`. I've run the new version several times in a loop and it hasn't deadlocked (it was deadlocking consistently on tree-states). ## Additional Info The same bug exists in unstable and tree-states, but I'm not sure why it was triggering so consistently on the tree-states branch.
bors cancel |
Canceled. |
bors r+ |
## Issue Addressed Fix a deadlock in the tests that was causing tests on tree-states to run for hours without finishing: https://github.com/sigp/lighthouse/actions/runs/6491194654/job/17628138360. ## Proposed Changes Avoid using a Mutex under the Rayon `par_iter`. Instead, use an `AtomicUsize`. I've run the new version several times in a loop and it hasn't deadlocked (it was deadlocking consistently on tree-states). ## Additional Info The same bug exists in unstable and tree-states, but I'm not sure why it was triggering so consistently on the tree-states branch.
Build failed (retrying...): |
## Issue Addressed Fix a deadlock in the tests that was causing tests on tree-states to run for hours without finishing: https://github.com/sigp/lighthouse/actions/runs/6491194654/job/17628138360. ## Proposed Changes Avoid using a Mutex under the Rayon `par_iter`. Instead, use an `AtomicUsize`. I've run the new version several times in a loop and it hasn't deadlocked (it was deadlocking consistently on tree-states). ## Additional Info The same bug exists in unstable and tree-states, but I'm not sure why it was triggering so consistently on the tree-states branch.
bors r+ |
Already running a review |
Build failed (retrying...): |
## Issue Addressed Fix a deadlock in the tests that was causing tests on tree-states to run for hours without finishing: https://github.com/sigp/lighthouse/actions/runs/6491194654/job/17628138360. ## Proposed Changes Avoid using a Mutex under the Rayon `par_iter`. Instead, use an `AtomicUsize`. I've run the new version several times in a loop and it hasn't deadlocked (it was deadlocking consistently on tree-states). ## Additional Info The same bug exists in unstable and tree-states, but I'm not sure why it was triggering so consistently on the tree-states branch.
Pull request successfully merged into unstable. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page.
|
## Issue Addressed Fix a deadlock in the tests that was causing tests on tree-states to run for hours without finishing: https://github.com/sigp/lighthouse/actions/runs/6491194654/job/17628138360. ## Proposed Changes Avoid using a Mutex under the Rayon `par_iter`. Instead, use an `AtomicUsize`. I've run the new version several times in a loop and it hasn't deadlocked (it was deadlocking consistently on tree-states). ## Additional Info The same bug exists in unstable and tree-states, but I'm not sure why it was triggering so consistently on the tree-states branch.
Issue Addressed
Fix a deadlock in the tests that was causing tests on tree-states to run for hours without finishing: https://github.com/sigp/lighthouse/actions/runs/6491194654/job/17628138360.
Proposed Changes
Avoid using a Mutex under the Rayon
par_iter
. Instead, use anAtomicUsize
. I've run the new version several times in a loop and it hasn't deadlocked (it was deadlocking consistently on tree-states).Additional Info
The same bug exists in unstable and tree-states, but I'm not sure why it was triggering so consistently on the tree-states branch.