Show installed packages when running tests.#3985
Show installed packages when running tests.#3985pp-mo wants to merge 4 commits intoSciTools:masterfrom
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.
@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 info|
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