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 — gh-60283: Check for redefined test names in CI by hugovk · Pull Request #109161 · python/cpython Conversation
|
|
Should we have changes to That would mean adding to this grep pattern: cpython/.github/workflows/build.yml Line 66 in 2dd6a86
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
That sounds like a good idea to me! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Alex Waygood <[email protected]>
|
🥳 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @hugovk, I could not cleanly backport this to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
(cherry picked from commit 3cb9a8e) Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Adam Turner <[email protected]>
|
GH-109365 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Adam Turner <[email protected]> (cherry picked from commit 3cb9a8e)
|
GH-109366 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
For the backport PRs, I updated the exclude lists, as they were slightly different. And interestingly, we don't need to explicitly exclude the "Failed to lint/parse" files because they're printed to screen but don't fail the command. For example, these all have return code = 0 = success: ❯ pre-commit run --all-files ruff Run Ruff on Lib/test/....................................................Passed ❯ pre-commit run --all-files ruff --verbose Run Ruff on Lib/test/....................................................Passed - hook id: ruff - duration: 0.02s error: Failed to parse Lib/test/tokenizedata/badsyntax_3131.py:2:1: Got unexpected token € error: Failed to parse Lib/test/test_fstring.py:671:28: f-string: expecting '}' warning: Failed to lint Lib/test/badsyntax_pep3120.py: stream did not contain valid UTF-8 warning: Failed to lint Lib/test/encoded_modules/module_koi8_r.py: stream did not contain valid UTF-8 warning: Failed to lint Lib/test/encoded_modules/module_iso_8859_1.py: stream did not contain valid UTF-8 error: Failed to parse Lib/test/support/socket_helper.py:300:33: f-string: expecting '}' ❯ ruff Lib/test warning: Failed to lint Lib/test/encoded_modules/module_iso_8859_1.py: stream did not contain valid UTF-8 warning: Failed to lint Lib/test/encoded_modules/module_koi8_r.py: stream did not contain valid UTF-8 warning: Failed to lint Lib/test/badsyntax_pep3120.py: stream did not contain valid UTF-8 error: Failed to parse Lib/test/support/socket_helper.py:300:33: f-string: expecting '}' error: Failed to parse Lib/test/test_fstring.py:671:28: f-string: expecting '}' error: Failed to parse Lib/test/tokenizedata/badsyntax_3131.py:2:1: Got unexpected token € Shall we explicitly exclude them (which makes the verbose output cleaner, and in which case I'll update the backports) or keep the default behaviour (in which case I'll update |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I think it's better to explicitly exclude the unlintable files, as we do on |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for doing this! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Adam Turner <[email protected]>
…09365) * gh-60283: Check for redefined test names in CI (GH-109161) (cherry picked from commit 3cb9a8e) Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Adam Turner <[email protected]> * Update exclude list for 3.12 * Explicitly exclude files which failed to lint/parse * Sort to avoid future merge conflicts --------- Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Adam Turner <[email protected]>
) Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Adam Turner <[email protected]> (cherry picked from commit 3cb9a8e)
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Detect duplicate method names in CI list duplicate test names with patchcheck
There was an error while loading. Please reload this page.