-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
patchcheck.py
raises SystemError
on main
#105820
Comments
Same comment as #105821 (comment) |
Unlike the "hypothesis checks on Ubuntu" job, though, Azure Pipelines is incredibly flaky, it fails all the time for random reasons. So it's not realistic to make that one "required" in CI. |
Then we should move the parts we care about to some other check and just remove IMHO because nobody looks at it when merging because is constantly failing. |
"nobody" isn't accurate — I generally check failures to see if they're relevant before merging a PR. But I agree with:
And we've actually started doing that already; the new "lint" job in CI is basically meant to be a replacement for |
Thanks a lot @AlexWaygood, this is certainly the case and we are investigating. Thanks for all the gray work 🖤 |
Similarly, see #105823 to remove some duplicated docs building from Azure Pipelines. |
I don't really know why we're seeng this just now, but git bisecting shows that this is the first bad commit:
The reproducer I used was (the good case): cpython (2ea34cf) (BISECTING) via C v14.0.3-clang via 🐍 pyenv 3.11.3
❯ cat tmp/t.py
self.assertEqual(f'''{
3
=}''', '\n3\n=3')%
cpython (2ea34cf) (BISECTING) via C v14.0.3-clang via 🐍 pyenv 3.11.3
❯ ./python.exe -m tokenize tmp/t.py
0,0-0,0: ENCODING 'utf-8'
1,0-1,4: NAME 'self'
1,4-1,5: OP '.'
1,5-1,16: NAME 'assertEqual'
1,16-1,17: OP '('
1,17-1,21: FSTRING_START "f'''"
1,21-1,22: OP '{'
1,22-1,23: NL '\n'
2,0-2,1: NUMBER '3'
2,1-2,2: NL '\n'
3,0-3,1: OP '='
3,1-3,2: OP '}'
3,2-3,5: FSTRING_END "'''"
3,5-3,6: OP ','
3,7-3,16: STRING "'\\n3\\n=3'"
3,16-3,17: OP ')'
3,17-3,18: NEWLINE '\n'
4,0-4,0: ENDMARKER '' I'm working on a fix. |
…kenizer (pythonGH-105828) (cherry picked from commit d382ad4) Co-authored-by: Lysandros Nikolaou <[email protected]>
Fixed. |
…okenizer (GH-105828) (#105832) (cherry picked from commit d382ad4) Co-authored-by: Lysandros Nikolaou <[email protected]>
* main: (57 commits) pythongh-105831: Fix NEWS blurb from pythongh-105828 (python#105833) pythongh-105820: Fix tok_mode expression buffer in file & readline tokenizer (python#105828) pythongh-105751, test_ctypes: Remove disabled tests (python#105826) pythongh-105821: Use a raw f-string in test_httpservers.py (python#105822) pythongh-105751: Remove platform usage in test_ctypes (python#105819) pythongh-105751: Reenable disable test_ctypes tests (python#105818) pythongh-105751: Remove dead code in test_ctypes (python#105817) More reorganisation of the typing docs (python#105787) Improve docs for `typing.dataclass_transform` (python#105792) pythonGH-89812: Churn `pathlib.Path` test methods (python#105807) pythongh-105800: Issue SyntaxWarning in f-strings for invalid escape sequences (python#105801) pythongh-105751: Cleanup test_ctypes imports (python#105803) pythongh-105481: add HAS_JUMP flag to opcode metadata (python#105791) pythongh-105751: test_ctypes avoids the operator module (pythonGH-105797) pythongh-105751: test_ctypes: Remove @need_symbol decorator (pythonGH-105798) pythongh-104909: Implement conditional stack effects for macros (python#105748) pythongh-75905: Remove test_xmlrpc_net: skipped since 2017 (python#105796) pythongh-105481: Fix types and a bug for pseudos (python#105788) Update DSL docs for cases generator (python#105753) pythonGH-77273: Better bytecodes for f-strings (pythonGH-6132) ...
Bug report
Following #105801, running
python Tools/patchcheck/patchcheck.py
now results inSystemError
being raised.To reproduce
.py
file, e.g.:python Tools/patchcheck/patchcheck.py
:This failure was visible on the Azure Pipelines job on the PR FYI: https://dev.azure.com/Python/cpython/_build/results?buildId=130389&view=logs&j=256d7e09-002a-52d7-8661-29ee3960640e&t=3d7276d3-4e8d-5309-55ad-fb0b172d9925
Your environment
Linked PRs
The text was updated successfully, but these errors were encountered: