-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Downgraded skips in tests #6716
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
base: main
Are you sure you want to change the base?
Conversation
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (9)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the 📝 WalkthroughWalkthroughA single test identifier was added to the Windows environment-polluting tests list in the CI workflow configuration, expanding the set of tests flagged as environment-polluting for Windows CI runs. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
8e34530 to
5ac99cf
Compare
5ac99cf to
770c867
Compare
|
Double check tests in |
|
Note to self: testing if, given the new timeout, whether timeouts count as failures, or errors (expectedFailure vs skips) |
fanninpm
left a comment
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.
A few extra things besides these inline comments:
- for
Lib/test/test_zipfile/test_core.py, we might need to add support for thatshift_jisencoding. - for
Lib/test/bdb.py, @youknowone Is #6626 going to fix the tests that are decorated?
| def setUp(self): | ||
| self.cx = sqlite.Connection.__new__(sqlite.Connection) | ||
|
|
||
| @unittest.skip('TODO: RUSTPYTHON') |
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.
Any particular reason for the skip?
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.
I'm not sure. For this PR, I mainly focused on downgrading/specifying the @unittest.skip's, so they were all already notated, I'm just downgrading/removing/specifying them.
This one specifically was skipping already, except the whole class was skipped, so I just moved it to the specific failing test. It didn't have a reason attached, so the moved reason also didn't.
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.
If an underlying reason can be given, it will certainly be helpful when someone tries to fix the problem.
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.
@fanninpm i understand the logic, but review is about the changes, not about the code seen
Lib/test/test_descr.py
Outdated
| # TODO: RUSTPYTHON; The `expectedFailure` here is from CPython, so this test actually fails. Not run on linux? | ||
| # @unittest.expectedFailure |
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.
@youknowone what do you want to do about this? Related: python/cpython#49572
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.
I found our __new__ behavior is different from Python 3.14. (not checked incompatibility of 3.13 or changed in 3.14)
Let's see that change affect this change
f9f4fb0 to
33cead3
Compare
33cead3 to
1c62ce3
Compare
ShaharNaveh
left a comment
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.
Overall it looks great!
Minor nitpicks about some added code that we can delete.
TYSM!!!
Lib/test/test_tempfile.py
Outdated
|
|
||
| @os_helper.skip_unless_symlink | ||
| @unittest.skip('TODO: RUSTPYTHON; No such file or directory "..."') | ||
| @unittest.skip('TODO: RUSTPYTHON; alters the execution environment (env changed)') |
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.
For better tracking:
| @unittest.skip('TODO: RUSTPYTHON; alters the execution environment (env changed)') | |
| @unittest.skipIf( | |
| 'RUSTPYTHON_SKIP_ENV_POLLUTERS' in os.environ, | |
| 'TODO: RUSTPYTHON; alters the execution environment (env changed)' | |
| ) |
...and when you do this, please add test_tempfile to the ENV_POLLUTING_TESTS_COMMON list in .github/workflows/ci.yaml.
You may end up needing to do something like this:
| @unittest.skip('TODO: RUSTPYTHON; alters the execution environment (env changed)') | |
| @unittest.skipIf( | |
| sys.platform == 'linux' and 'RUSTPYTHON_SKIP_ENV_POLLUTERS' in os.environ, | |
| 'TODO: RUSTPYTHON; alters the execution environment (env changed)' | |
| ) |
...or this:
| @unittest.skip('TODO: RUSTPYTHON; alters the execution environment (env changed)') | |
| @unittest.skipIf( | |
| sys.platform in ('darwin', 'linux') and 'RUSTPYTHON_SKIP_ENV_POLLUTERS' in os.environ, | |
| 'TODO: RUSTPYTHON; alters the execution environment (env changed)' | |
| ) |
...in which case(s), please make sure test_tempfile is added to the appropriate OS-specific variable(s) in .github/workflows/ci.yaml.
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.
I'm still trying to nail down the test_tempfile.py error to double check, but fyi there may an issue with the ENV_POLLUTING_TESTS_COMMON list.
In the last test run, it seems that test.test_multiprocessing_forkserver.test_threads and test.test_multiprocessing_spawn.test_threads had a similar ENV CHANGED issue, despite the fact that no changes are made to the test_multiprocessing_spawn tests
fa5ef2e to
ea760c8
Compare
… ENV_POLLUTING_TESTS_WINDOWS
youknowone
left a comment
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.
Thank you so much! You seem to find many outdated skips in our test code.
Please make sure unskipped tests are not actually flaky. Running multiple times of them will be helpful.
Sometimes they are flaky on specific platforms. I will run the entire CI multiple times once this is done.
5f70d13 to
8ee84ea
Compare
8ee84ea to
ed6dc56
Compare
|
@youknowone It should be ok to rereview/run the CI/CD tests. Like I said, there seem to be intermittent issues with |
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.