-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-130917: update timer and workload in test_signal #130918
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
The workload to advance the virtual timeout is too lightweight for some platforms. As result the test goes in timeout as it never reaches the end of the timer. By having a heavier workload, the virtual timer advances rapidly and the SIGVTALRM is sent before the timeout.
Can we make the delay and interval in, e.g., |
OK, this is actually a good point. Let me experiment with a few timer values. |
I think your sum() change was good as well! I think it's worth doing both. |
Done! :) |
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.
LGTM!
@Yhg1s should we back port this PR to 3.12 and 3.13? |
Yes, this problem is observable there as well. I believe the only reason it hasn't been an issue with our CI is that it currently only seems to show up with non-debug builds on ARM Macs probably due to a combination of the CPU speed and code generated for ARM. |
Thanks @diegorusso for the PR, and @colesbury for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Thanks @diegorusso for the PR, and @colesbury for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…30918) The workload to advance the virtual timeout is too lightweight for some platforms. As result the test goes in timeout as it never reaches the end of the timer. By having a heavier workload, the virtual timer advances rapidly and the SIGVTALRM is sent before the timeout. (cherry picked from commit 7879081) Co-authored-by: Diego Russo <[email protected]>
GH-130968 is a backport of this pull request to the 3.12 branch. |
…30918) The workload to advance the virtual timeout is too lightweight for some platforms. As result the test goes in timeout as it never reaches the end of the timer. By having a heavier workload, the virtual timer advances rapidly and the SIGVTALRM is sent before the timeout. (cherry picked from commit 7879081) Co-authored-by: Diego Russo <[email protected]>
GH-130969 is a backport of this pull request to the 3.13 branch. |
#130969) The workload to advance the virtual timeout is too lightweight for some platforms. As result the test goes in timeout as it never reaches the end of the timer. By having a heavier workload, the virtual timer advances rapidly and the SIGVTALRM is sent before the timeout. (cherry picked from commit 7879081) Co-authored-by: Diego Russo <[email protected]>
#130968) The workload to advance the virtual timeout is too lightweight for some platforms. As result the test goes in timeout as it never reaches the end of the timer. By having a heavier workload, the virtual timer advances rapidly and the SIGVTALRM is sent before the timeout. (cherry picked from commit 7879081) Co-authored-by: Diego Russo <[email protected]>
The workload to advance the virtual timeout is too lightweight for some platforms. As result the test goes in timeout as it never reaches the end of the timer.
By having a heavier workload and a shorter timer value, the virtual timer reaches the end rapidly and the SIGVTALRM is sent before the test LONG_TIMEOUT.