enable python 3.12 in wheels, use 3.11 as basepython #180
Build #testing_20240409.04 had test failures
Details
- Failed: 30 (0.23%)
- Passed: 11,274 (86.99%)
- Other: 1,656 (12.78%)
- Total: 12,960
- 2897 of 4679 branches covered (61.91%)
- 9488 of 12523 lines covered (75.76%)
Annotations
Check failure on line 89 in Build log
azure-pipelines / testing
Build log #L89
3 test(s) failed, 216 test(s) collected.
Check failure on line 389 in Build log
azure-pipelines / testing
Build log #L389
Bash exited with code '1'.
Check failure on line 89 in Build log
azure-pipelines / testing
Build log #L89
3 test(s) failed, 216 test(s) collected.
Check failure on line 386 in Build log
azure-pipelines / testing
Build log #L386
Bash exited with code '1'.
Check failure on line 1 in test_examples
azure-pipelines / testing
test_examples
subprocess.CalledProcessError: Command '['/opt/hostedtoolcache/Python/3.11.9/x64/bin/python', 'simpack_xrd_dyn_AlGaAs.py']' returned non-zero exit status 1.
Raw output
self = <test_examples.TestExampleScripts testMethod=test_examples>
def test_examples(self):
"""Testrun example scripts."""
for sf in scriptfiles:
with self.subTest(script=sf):
with tempfile.TemporaryFile(mode='w') as fid:
env = os.environ.copy()
env['MPLBACKEND'] = 'agg'
cmd = [sys.executable, sf]
> subprocess.run(cmd, env=env, cwd=scriptdir, stdout=fid,
check=True)
tests/test_examples.py:80:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['/opt/hostedtoolcache/Python/3.11.9/x64/bin/python', 'simpack_xrd_dyn_AlGaAs.py'],)
kwargs = {'cwd': '/home/vsts/work/1/s/tests/../examples', 'env': {'ACCEPT_EULA': 'Y', 'ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE': '/...e', 'AGENT_BUILDDIRECTORY': '/home/vsts/work/1', ...}, 'stdout': <_io.TextIOWrapper name=12 mode='w' encoding='UTF-8'>}
process = <Popen: returncode: 1 args: ['/opt/hostedtoolcache/Python/3.11.9/x64/bin/pyt...>
stdout = None, stderr = None, retcode = 1
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
or pass capture_output=True to capture both.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout is given, and the process takes too long, a TimeoutExpired
exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
raise ValueError('stdout and stderr arguments may not be used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads. communicate()
# _after_ kill() is required to collect that and add it
# to the exception.
exc.stdout, exc.stderr = process.c
Check failure on line 1 in test_examples
azure-pipelines / testing
test_examples
subprocess.CalledProcessError: Command '['/opt/hostedtoolcache/Python/3.10.14/x64/bin/python', 'simpack_xrd_dyn_AlGaAs.py']' returned non-zero exit status 1.
Raw output
self = <test_examples.TestExampleScripts testMethod=test_examples>
def test_examples(self):
"""Testrun example scripts."""
for sf in scriptfiles:
with self.subTest(script=sf):
with tempfile.TemporaryFile(mode='w') as fid:
env = os.environ.copy()
env['MPLBACKEND'] = 'agg'
cmd = [sys.executable, sf]
> subprocess.run(cmd, env=env, cwd=scriptdir, stdout=fid,
check=True)
tests/test_examples.py:80:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['/opt/hostedtoolcache/Python/3.10.14/x64/bin/python', 'simpack_xrd_dyn_AlGaAs.py'],)
kwargs = {'cwd': '/home/vsts/work/1/s/tests/../examples', 'env': {'ACCEPT_EULA': 'Y', 'ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE': '/...e', 'AGENT_BUILDDIRECTORY': '/home/vsts/work/1', ...}, 'stdout': <_io.TextIOWrapper name=12 mode='w' encoding='UTF-8'>}
process = <Popen: returncode: 1 args: ['/opt/hostedtoolcache/Python/3.10.14/x64/bin/py...>
stdout = None, stderr = None, retcode = 1
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
or pass capture_output=True to capture both.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout is given, and the process takes too long, a TimeoutExpired
exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
raise ValueError('stdout and stderr arguments may not be used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads. communicate()
# _after_ kill() is required to collect that and add it
# to the exception.
exc.stdout, exc.stderr = process.
Check failure on line 1 in test_examples
azure-pipelines / testing
test_examples
subprocess.CalledProcessError: Command '['/Library/Frameworks/Python.framework/Versions/3.11/bin/python', 'simpack_xrd_dyn_AlGaAs.py']' returned non-zero exit status 1.
Raw output
self = <test_examples.TestExampleScripts testMethod=test_examples>
def test_examples(self):
"""Testrun example scripts."""
for sf in scriptfiles:
with self.subTest(script=sf):
with tempfile.TemporaryFile(mode='w') as fid:
env = os.environ.copy()
env['MPLBACKEND'] = 'agg'
cmd = [sys.executable, sf]
> subprocess.run(cmd, env=env, cwd=scriptdir, stdout=fid,
check=True)
tests/test_examples.py:80:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['/Library/Frameworks/Python.framework/Versions/3.11/bin/python', 'simpack_xrd_dyn_AlGaAs.py'],)
kwargs = {'cwd': '/Users/runner/work/1/s/tests/../examples', 'env': {'ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE': '/Users/runner/acti...LOUDID': 'b5f76860-77c4-4b86-b53f-e820846321de', ...}, 'stdout': <_io.TextIOWrapper name=12 mode='w' encoding='UTF-8'>}
process = <Popen: returncode: 1 args: ['/Library/Frameworks/Python.framework/Versions/...>
stdout = None, stderr = None, retcode = 1
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
or pass capture_output=True to capture both.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout is given, and the process takes too long, a TimeoutExpired
exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
raise ValueError('stdout and stderr arguments may not be used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads. communicate()
# _after_ kill() is required to collect that and add it
# to the exception.
exc.stdout, exc.stderr
Check failure on line 1 in test_examples
azure-pipelines / testing
test_examples
subprocess.CalledProcessError: Command '['/Users/runner/hostedtoolcache/Python/3.8.18/x64/bin/python', 'simpack_xrd_dyn_AlGaAs.py']' returned non-zero exit status 1.
Raw output
self = <test_examples.TestExampleScripts testMethod=test_examples>
def test_examples(self):
"""Testrun example scripts."""
for sf in scriptfiles:
with self.subTest(script=sf):
with tempfile.TemporaryFile(mode='w') as fid:
env = os.environ.copy()
env['MPLBACKEND'] = 'agg'
cmd = [sys.executable, sf]
> subprocess.run(cmd, env=env, cwd=scriptdir, stdout=fid,
check=True)
tests/test_examples.py:80:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = None, capture_output = False, timeout = None, check = True
popenargs = (['/Users/runner/hostedtoolcache/Python/3.8.18/x64/bin/python', 'simpack_xrd_dyn_AlGaAs.py'],)
kwargs = {'cwd': '/Users/runner/work/1/s/tests/../examples', 'env': {'ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE': '/Users/runner/acti...LOUDID': 'b5f76860-77c4-4b86-b53f-e820846321de', ...}, 'stdout': <_io.TextIOWrapper name=12 mode='w' encoding='UTF-8'>}
process = <subprocess.Popen object at 0x120652fa0>, stdout = None, stderr = None
retcode = 1
def run(*popenargs,
input=None, capture_output=False, timeout=None, check=False, **kwargs):
"""Run command with arguments and return a CompletedProcess instance.
The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes
will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code
in the returncode attribute, and output & stderr attributes if those streams
were captured.
If timeout is given, and the process takes too long, a TimeoutExpired
exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument
you may not also use the Popen constructor's "stdin" argument, as
it will be used internally.
By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any
"input" should be a string, and stdout and stderr will be strings decoded
according to locale encoding, or by "encoding" if set. Text mode is
triggered by setting any of text, encoding, errors or universal_newlines.
The other arguments are the same as for the Popen constructor.
"""
if input is not None:
if kwargs.get('stdin') is not None:
raise ValueError('stdin and input arguments may not both be used.')
kwargs['stdin'] = PIPE
if capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
raise ValueError('stdout and stderr arguments may not be used '
'with capture_output.')
kwargs['stdout'] = PIPE
kwargs['stderr'] = PIPE
with Popen(*popenargs, **kwargs) as process:
try:
stdout, stderr = process.communicate(input, timeout=timeout)
except TimeoutExpired as exc:
process.kill()
if _mswindows:
# Windows accumulates the output in a single blocking
# read() call run on child threads, with the timeout
# being done in a join() on those threads. communicate()
# _after_ kill() is required to collect that and add it
# to the exception.
exc.stdout, exc.stderr = process.communicate()
else:
# POSIX _communicate already