Page MenuHomePhabricator

Python CI fails when none of the interpreters in tox are available
Closed, DeclinedPublic

Description

See https://integration.wikimedia.org/ci/job/tox-docker/22023/console, where all the interpreters are being skipped, so no *.log files are generated, so it fails:

22:28:16 SKIPPED:  py39-flake8: InterpreterNotFound: python3.9
22:28:16 SKIPPED:  py39-pytest: InterpreterNotFound: python3.9
22:28:16 SKIPPED:  py310-flake8: InterpreterNotFound: python3.10
22:28:16 SKIPPED:  py310-pytest: InterpreterNotFound: python3.10
22:28:16   congratulations :)
22:28:16 + capture_tox_logs
22:28:16 + cp --recursive '/src/.tox/*/log/*.log' /log
22:28:16 cp: cannot stat '/src/.tox/*/log/*.log': No such file or directory
22:28:16 + /bin/true
22:28:16 + cp --recursive /src/.tox/log /log
22:28:17 Archiving artifacts
22:28:17 ERROR: Step ‘Archive the artifacts’ failed: No artifacts found that match the file pattern "log/". Configuration error?

Event Timeline

hashar subscribed.

It is expected that at least one tox environment is created which cause tox to generate a log file and thus we can assume that a log file is present. In this case nothing is run, looks to me it is fine to have it treated as an error.

@hashar I don't understand what I'm supposed to with repositories that require Python 3.9 then, should I just move them off Gerrit so I can have CI? T289222: Add Python 3.9 to Wikimedia CI is still waiting on a response from you and I have no way to move forward.