Commit 1e41626
[TEST] Test pypy311 CI issue (#46916)
* test pypy311 CI issue
* probe: enable PYTHONFAULTHANDLER in dispatch_checks subprocesses to capture C-level traceback for PyPy SIGABRT
* probe: invoke pytest via python -X faulthandler -X dev to capture C-level traceback for PyPy SIGABRT
* probe: add -X importtime -u + PYTHONUNBUFFERED to identify crashing import on PyPy
* cleanup: untrack unrelated files committed by mistake
* probe: wrap pytest in bash to tee stderr to file and cat after, ensuring faulthandler/importtime output survives SIGABRT
* probe: incremental import bisect to find which import triggers PyPy SIGABRT (interpreter starts but emits zero output before abort)
* ci(pypy): pin PyPy 3.11 to v7.3.22 to work around RPython AssertionError in 7.3.21 astcompiler
PyPy 7.3.21 (currently in the Azure hosted toolcache for Python 3.11.15) crashes during AST compilation of azure.ai.ml with:
Fatal RPython error: AssertionError
should be unreachable! please report a bug about the astcompiler _archive_or_restore
...PythonCodeMaker_duplicate_exits_without_lineno
PyPy 7.3.22 (same Python 3.11.15 language version) does not exhibit the bug. This change overlays the 7.3.22 build into the toolcache before UsePythonVersion@0 resolves pypy3.11 in CI.
Also reverts the temporary diagnostic changes to dispatch_checks.py and azpysdk/install_and_test.py that were used to bisect the failure, and adds sdk/ml/azure-ai-ml/pypy_astcompiler_repro.py describing the bug and reproduction steps for an upstream PyPy issue.
* ci(pypy): bootstrap pip via ensurepip after overlaying PyPy 7.3.22 tarball
* ci(pypy): gate PyPy 7.3.22 overlay behind OverridePyPyVersion variable; enable it only for ubuntu2404_pypy311 matrix entry so non-pypy linux jobs are unaffected
* ci(pypy): make PyPy override step matrix-driven via PyPyBuildVersion / PyPyLangVersion variables instead of hardcoding 7.3.22 / 3.11.15 in the step
* cleanup: revert seed README change and remove pypy reproducer file
* limit blast radius. this is going to hit issues with CFSClean most likely regardless though. It'll unblock main for the ml team though
---------
Co-authored-by: Scott Beddall <scbedd@microsoft.com>1 parent 3dad2eb commit 1e41626
3 files changed
Lines changed: 135 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
15 | 69 | | |
16 | 70 | | |
17 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
0 commit comments