FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-91054: Reset static events counts in code watchers tests by itamaro · Pull Request #99978 · python/cpython · GitHub

/ cpython Public

GH-91054: Reset static events counts in code watchers tests - #99978

Merged
pablogsal merged 1 commit into
python:mainfrom
itamaro:code-watchers-reset-static-state
Dec 4, 2022
Merged

GH-91054: Reset static events counts in code watchers tests#99978
pablogsal merged 1 commit into
python:mainfrom
itamaro:code-watchers-reset-static-state

Conversation

itamaro commented Dec 3, 2022
edited
Loading

Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown

🤖 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 removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 3, 2022
pablogsal added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 3, 2022
bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 3, 2022
python deleted a comment from bedevere-bot Dec 3, 2022

Copy link
Copy Markdown
Member

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

AlexWaygood commented Dec 4, 2022
edited
Loading

Copy link
Copy Markdown
Member

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

pablogsal merged commit 1012dc1 into python:main Dec 4, 2022

Copy link
Copy Markdown
Member

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL