Skip to content
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

gh-130917: update workload for test_signal.test_itimer_virtual/prof #130918

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

diegorusso
Copy link
Contributor

@diegorusso diegorusso commented Mar 6, 2025

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.

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.
@bedevere-app bedevere-app bot added tests Tests in the Lib/test dir awaiting review labels Mar 6, 2025
@diegorusso diegorusso added skip news and removed tests Tests in the Lib/test dir awaiting review labels Mar 6, 2025
@diegorusso diegorusso changed the title gh-130917: update workload for test_signal.test_itimer_virtual gh-130917: update workload for test_signal.test_itimer_virtual/prof Mar 6, 2025
@colesbury
Copy link
Contributor

Can we make the delay and interval in, e.g., signal.setitimer(self.itimer, 0.3, 0.2) much shorter? Like signal.setitimer(self.itimer, 0.0001, 0.0001). It should make the test faster and more robust to the choice of "work".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants