Skip to content

JIT CI is broken due to test_traceback & test_tracemalloc #118275

Description

@nineteendo

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

----------------------------------------------------------------------

Activity

  1. hugovk commented on Apr 25, 2024

    @hugovk
    Member
  2. nineteendo commented on Apr 25, 2024

    @nineteendo
    ContributorAuthor

    Do we disable these tests like #118247?

  3. hugovk commented on Apr 25, 2024

    @hugovk
    Member

    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.

  4. mdboom commented on Apr 25, 2024

    @mdboom
    Contributor
  5. brandtbucher commented on Apr 25, 2024

    @brandtbucher
    Member

    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.

    Agreed. Since it's affecting others (not just the JIT emulation) it is probably worth actually fixing or handling more generally.

  6. brandtbucher commented on Apr 25, 2024

    @brandtbucher
    Member

    Perhaps the tests could just patch the desired environment variables instead of wiping them out completely?

  7. savannahostrowski commented on May 1, 2024

    @savannahostrowski
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions