Skip to content

Intermittent macOS Python 3 CI failure in test_parallel_interrupt #1699

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

Closed
jayvdb opened this issue Oct 20, 2020 · 5 comments
Closed

Intermittent macOS Python 3 CI failure in test_parallel_interrupt #1699

jayvdb opened this issue Oct 20, 2020 · 5 comments
Labels
bug:normal affects many people or has quite an impact

Comments

@jayvdb jayvdb added the bug:normal affects many people or has quite an impact label Oct 20, 2020
@jayvdb jayvdb changed the title Intermittent macOS CI failures Intermittent macOS CI failure in test_parallel_interrupt Oct 20, 2020
@jayvdb
Copy link
Author

jayvdb commented Oct 20, 2020

Appears to have been reported in #1470 (closed by opener @kloczek without explanation) and #1520 (only pypy was fixed).

@jayvdb
Copy link
Author

jayvdb commented Oct 20, 2020

Hmm. An intermittent failure on Windows py27 in test_parallel_result_json, apparently caused by py.error.EBUSY

https://dev.azure.com/toxdev/tox/_build/results?buildId=2697&view=logs&j=18fdbe60-1f00-5bb0-ebb2-c0f5cf5b2053&t=c43adaf4-2fef-5364-6a38-be409f92e121&s=d654deb9-056d-50a2-1717-90c08683d50a

@jayvdb jayvdb changed the title Intermittent macOS CI failure in test_parallel_interrupt Intermittent macOS Python 3 CI failure in test_parallel_interrupt Oct 23, 2020
@jayvdb
Copy link
Author

jayvdb commented Oct 23, 2020

Another Windows py27 https://dev.azure.com/toxdev/tox/_build/results?buildId=2706&view=logs&jobId=18fdbe60-1f00-5bb0-ebb2-c0f5cf5b2053&j=18fdbe60-1f00-5bb0-ebb2-c0f5cf5b2053&t=c43adaf4-2fef-5364-6a38-be409f92e121 , in test_parallel_recreate, which fails at

>       assert not ({f.basename for f in after} - {f.basename for f in end})
E       AssertionError: assert not (set(['.lock', 'e1-0.log', 'e1-1.log']) - set(['e1-0.log', 'e1-1.log',

but as an aside it also has the following in the log

  File "<string>", line 1
    [print("hello world") for _ in range(1)]
         ^
SyntaxError: invalid syntax

Seems strange to have py3 specific syntax in a test, the following would fix that aspect, and that might even mask the underlying problem.
python2 -c 'from __future__ import print_function; [print("hello world") for _ in range(1)]'

@jayvdb
Copy link
Author

jayvdb commented Oct 23, 2020

Very different failure on py36 macOS

https://dev.azure.com/toxdev/tox/_build/results?buildId=2711&view=logs&jobId=ab8589c0-300c-5834-3150-76b8e970208b&j=ab8589c0-300c-5834-3150-76b8e970208b&t=b2790b9c-7911-59ff-2f30-f8dd15d02c39

tests/unit/config/test_config.py::TestSetenv::test_getdict_lazy_update PASSED [100%]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/Users/runner/work/1/s/.tox/py36/lib/python3.6/site-packages/_pytest/main.py", line 257, in wrap_session
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>     return Analysis(data, it, self._file_mapper)
INTERNALERROR>   File "/Users/runner/work/1/s/.tox/py36/lib/python3.6/site-packages/coverage/results.py", line 20, in __init__
INTERNALERROR>     self.statements = self.file_reporter.lines()
INTERNALERROR>   File "/Users/runner/work/1/s/.tox/py36/lib/python3.6/site-packages/coverage/python.py", line 191, in lines
INTERNALERROR>     return self.parser.statements
INTERNALERROR>   File "/Users/runner/work/1/s/.tox/py36/lib/python3.6/site-packages/coverage/python.py", line 186, in parser
INTERNALERROR>     self._parser.parse_source()
INTERNALERROR>   File "/Users/runner/work/1/s/.tox/py36/lib/python3.6/site-packages/coverage/parser.py", line 241, in parse_source
INTERNALERROR>     self._raw_parse()
INTERNALERROR>   File "/Users/runner/work/1/s/.tox/py36/lib/python3.6/site-packages/coverage/parser.py", line 206, in _raw_parse
INTERNALERROR>     self.raw_statements.update(self.byte_parser._find_statements())
INTERNALERROR>   File "/Users/runner/work/1/s/.tox/py36/lib/python3.6/site-packages/coverage/parser.py", line 96, in byte_parser
INTERNALERROR>     self._byte_parser = ByteParser(self.text, filename=self.filename)
INTERNALERROR>   File "/Users/runner/work/1/s/.tox/py36/lib/python3.6/site-packages/coverage/parser.py", line 367, in __init__
INTERNALERROR>     self.code = compile_unicode(text, filename, "exec")
INTERNALERROR>   File "/Users/runner/work/1/s/.tox/py36/lib/python3.6/site-packages/coverage/phystokens.py", line 285, in compile_unicode
INTERNALERROR>     code = compile(source, filename, mode)
INTERNALERROR> ValueError: source code string cannot contain null bytes

============ 588 passed, 5 skipped, 1 warning in 451.12s (0:07:31) =============
ERROR: InvocationError for command /Users/runner/work/1/s/.tox/py36/bin/pytest --cov .tox/py36/lib/python3.6/site-packages/tox --cov-config tox.ini --junitxml /Users/runner/work/1/s/.tox/junit.py36.xml -n=0 . (exited with code 3)
_```

@gaborbernat
Copy link
Member

Seems to have stablilized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:normal affects many people or has quite an impact
Projects
None yet
Development

No branches or pull requests

2 participants