Skip to content
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

AssertionError: 'LOAD_GLOBAL_MODULE' not found in {'RETURN_VALUE', 'RESUME_CHECK', 'LOAD_GLOBAL'} in test_opcache.py #111760

Open
furkanonder opened this issue Nov 5, 2023 · 2 comments
Assignees
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@furkanonder
Copy link
Contributor

furkanonder commented Nov 5, 2023

Bug report

Bug description:

cpython git:(main) ./python -m test test_opcache -R 16:9 -j16   
Using random seed: 2017792323
0:00:00 load avg: 7.53 Run 1 test in parallel using 1 worker process
0:00:14 load avg: 6.15 [1/1/1] test_opcache failed (1 failure)
beginning 25 repetitions
1234567890123456789012345
...............test test_opcache failed -- Traceback (most recent call last):
  File "/home/arf/cpython/Lib/test/test_opcache.py", line 924, in test_load_global_module
    self.assert_races_do_not_crash(
  File "/home/arf/cpython/Lib/test/test_opcache.py", line 21, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/arf/cpython/Lib/test/test_opcache.py", line 540, in assert_races_do_not_crash
    self.assert_specialized(item, opname)
  File "/home/arf/cpython/Lib/test/test_opcache.py", line 520, in assert_specialized
    self.assertIn(opname, opnames)
AssertionError: 'LOAD_GLOBAL_MODULE' not found in {'RETURN_VALUE', 'RESUME_CHECK', 'LOAD_GLOBAL'}

== Tests result: FAILURE ==

1 test failed:
    test_opcache

Total duration: 14.2 sec
Total tests: run=52 failures=1
Total test files: run=1/1 failed=1
Result: FAILURE

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

@furkanonder furkanonder added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir labels Nov 5, 2023
@furkanonder
Copy link
Contributor Author

@furkanonder furkanonder changed the title AssertionError: 'LOAD_GLOBAL_MODULE' not found in {'RETURN_VALUE', 'RESUME_CHECK', 'LOAD_GLOBAL'} Nov 6, 2023
@brandtbucher
Copy link
Member

Hm, I wonder if we're running out of module versions by doing this so many times. But there will always be some upper limit on how many times the test can be run before it stops specializing (at least without making it so much more complicated by running each one in a subprocess or something).

I'm not 100% convinced that this strange edge case is really worth fixing, if so.

@brandtbucher brandtbucher self-assigned this Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
2 participants