GeezerVison is showing github.com — GH-91054: Reset static events counts in code watchers tests by itamaro · Pull Request #99978 · python/cpython
Conversation
itamaro
commented
Dec 3, 2022
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
GH-99859 introduced new buildbot failures, as reported here.
I was able to reproduce the failures with:
./python.exe -m test -v test_capi.test_watchers -m "*TestCodeObjectWatchers*" -R 3:3
The root cause appears to be the static events counters used in the tests, when running the tests with repetitions (using the same interpreter state), the counts from the first test run affected the next runs.
This fixes it by resetting the counts when adding and clearing test watchers.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
pythonGH-99859 introduced new buildbot failures, as reported [here](python#91054 (comment)).
I was able to reproduce the failures with:
```
./python.exe -m test -v test_capi.test_watchers -m "*TestCodeObjectWatchers*" -R 3:3
```
The root cause appears to be to static events counters used in the tests,
when running the tests with repetitions (using the same interpreter state),
the counts from the first test run affected the next runs.
This fixes it by resetting the counts when adding and clearing test watchers.
|
🤖 New build scheduled with the buildbot fleet by @AlexWaygood for commit 5a53c06 🤖
If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks a lot for the quick fix @itamaro! I will merge this if confirmed that this fixes the buildbots
|
itamaro reacted with heart emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
AlexWaygood
commented
Dec 4, 2022
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
The two buildbot failures are unrelated and already exist on main:
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Merging this as this fixes most of the problems. Thanks a lot again @itamaro
|
itamaro reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|