-
Notifications
You must be signed in to change notification settings - Fork 297
Show installed packages when running tests. #3985
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
Conversation
|
|
||
| # Always echo the env content for CI test failure debugging. | ||
| session.install("beautifultable") | ||
| session.run("python", "tools/env_listing.py") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pp-mo Personally, I'd opt to add the following 3 line conda_script in .cirrus-ci instead:
#
# YAML alias for common linux test infra-structure.
#
linux_task_template: &LINUX_TASK_TEMPLATE
auto_cancellation: true
...
nox_cache:
...
conda_script:
- conda list --name base
- conda list --name base --explicit
- conda infoThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pp-mo Lovely work... but I don't think this is necessary, unless I've misunderstood.
Adding my suggested conda_script to the .cirrus-ci would align this with the output from the retired .travis-ci
|
Well I did try adding "conda list" first, but I found a lot of the packages were missing, apparently because nox has installed them via pip instead ? If you look at the outputs in the test logs, those with the source "pip" (rather than "conda" or "both") are not present in the "conda list" output. |
|
P.S. the original problem for which I introduced this was a failure to check out on python 3.7 in the latest merge to master : The message was like this... So, I really thought that looked like a solid logical problem, possibly to do with a changed numpy version, and not a glitch. |
|
🚀 Pull Request
Description
To enable easier debugging of test failures.
It's complicated because, since adoption of nox, the testing environment is built with a combination of pip and conda.
Consult Iris pull request check list