GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Downgraded skips in tests by terryluan12 · Pull Request #6716 · RustPython/RustPython Conversation
|
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (27)
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
5ac99cf to
770c867
Compare
|
Double check tests in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Note to self: testing if, given the new timeout, whether timeouts count as failures, or errors (expectedFailure vs skips) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
A few extra things besides these inline comments:
Lib/test/test_zipfile/test_core.py, we might need to add support for that shift_jis encoding.Lib/test/bdb.py, @youknowone Is #6626 going to fix the tests that are decorated?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| def setUp(self): | ||
| self.cx = sqlite.Connection.__new__(sqlite.Connection) | ||
|
|
||
| @unittest.skip('TODO: RUSTPYTHON') |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason for the skip?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| # 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.
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
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem 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
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
33cead3 to
1c62ce3
Compare
There was a problem 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!!!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
|
||
| @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 an error while loading. Please reload this page.
There was a problem 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem 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
Sorry, something went wrong.
There was an error while loading. Please reload this page.
fa5ef2e to
ea760c8
Compare
There was a problem 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
80a5f8b to
559d35d
Compare
|
You’re right. those are making it hard to see the actual results of this test. I’ll fix that and run it again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
559d35d to
8a5c49f
Compare
8a5c49f to
6a3932d
Compare
There was an error while loading. Please reload this page.
|
the failure looks like unrelated |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@terryluan12 Thank you so much! I wish your awesome script to be integrated to our tools soon. Unskipping tests is not a 5 seconds task, you made it in great way. Thanks!
No issue for 6 runs. It could be not lucky enough though
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.