Repository navigation
JIT CI is broken due to test_traceback & test_tracemalloc #118275
Copy link
Copy link
Closed
Labels
Description
Looks like something broke: https://github.com/python/cpython/actions/runs/8823706356/job/24224733399#step:8:9723
======================================================================
FAIL: test_env_var_invalid (test.test_tracemalloc.TestCommandLine.test_env_var_invalid) (nframe=-1)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/cpython/cpython/Lib/test/test_tracemalloc.py", line 957, in test_env_var_invalid
self.check_env_var_invalid(nframe)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/home/runner/work/cpython/cpython/Lib/test/test_tracemalloc.py", line 951, in check_env_var_invalid
self.fail(f"unexpected output: {stderr!a}")
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: unexpected output: b"aarch64-binfmt-P: Could not open '/lib/ld-linux-aarch64.so.1': No such file or directory\n"
======================================================================
FAIL: test_env_var_invalid (test.test_tracemalloc.TestCommandLine.test_env_var_invalid) (nframe=1073741824)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/cpython/cpython/Lib/test/test_tracemalloc.py", line 957, in test_env_var_invalid
self.check_env_var_invalid(nframe)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/home/runner/work/cpython/cpython/Lib/test/test_tracemalloc.py", line 951, in check_env_var_invalid
self.fail(f"unexpected output: {stderr!a}")
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: unexpected output: b"aarch64-binfmt-P: Could not open '/lib/ld-linux-aarch64.so.1': No such file or directory\n"
======================================================================
ERROR: test_encoded_file (test.test_traceback.TracebackCases.test_encoded_file)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/cpython/cpython/Lib/test/test_traceback.py", line 439, in test_encoded_file
do_test("", "foo", "ascii", 3)
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/cpython/cpython/Lib/test/test_traceback.py", line 428, in do_test
self.assertIn(("line %s" % lineno), stdout[1],
~~~~~~^^^
IndexError: list index out of range
----------------------------------------------------------------------Reactions are currently unavailable
Activity
hugovk commentedon Apr 25, 2024
See also #117672 (comment) and #112730 (comment).
nineteendo commentedon Apr 25, 2024
Do we disable these tests like #118247?
hugovk commentedon Apr 25, 2024
Maybe, let's see if someone can fix the root cause first. The JIT is experimental and the CI is allowed to fail, it's mainly an annoyance when it does.
mdboom commentedon Apr 25, 2024
Cc: @brandtbucher
brandtbucher commentedon Apr 25, 2024
Agreed. Since it's affecting others (not just the JIT emulation) it is probably worth actually fixing or handling more generally.
brandtbucher commentedon Apr 25, 2024
Perhaps the tests could just patch the desired environment variables instead of wiping them out completely?
savannahostrowski commentedon May 1, 2024
I think that this is now fixed as I don't see the failures anymore on CI runs. I think that #118288 fixed things up.