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-91054: Reset static events counts in code watchers tests #99978

Merged
merged 1 commit into from
Dec 4, 2022

Conversation

itamaro
Copy link
Contributor

@itamaro itamaro commented Dec 3, 2022

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.

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.
@bedevere-bot
Copy link

🤖 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.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 3, 2022
@pablogsal pablogsal added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 3, 2022
@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 3, 2022
@python python deleted a comment from bedevere-bot Dec 3, 2022
@pablogsal
Copy link
Member

Thanks a lot for the quick fix @itamaro! I will merge this if confirmed that this fixes the buildbots

@AlexWaygood
Copy link
Member

AlexWaygood commented Dec 4, 2022

The two buildbot failures are unrelated and already exist on main:

@pablogsal pablogsal merged commit 1012dc1 into python:main Dec 4, 2022
@pablogsal
Copy link
Member

Merging this as this fixes most of the problems. Thanks a lot again @itamaro

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.

4 participants