install_test.py: append to install-time test log for multiple test phases#50477
Conversation
6dcb9db to
62c1042
Compare
|
@spackbot fix style |
|
Let me see if I can fix that for you! |
|
I was able to run spack style --fix==> Running style checks on spack
selected: import, isort, black, flake8, mypy
==> Modified files
lib/spack/spack/install_test.py
lib/spack/spack/test/install_test.py
var/spack/test_repos/builtin.mock/packages/dummy-makefile-build-test-log/package.py
==> Running import checks
lib/spack/spack/test/install_test.py: missing import: spack.main (spack.main.SpackCommand)
import found errors
==> Running isort checks
Fixing /tmp/tmpd20pbly9/spack/lib/spack/spack/test/install_test.py
isort checks were clean
==> Running black checks
All done! ✨ 🍰 ✨
3 files left unchanged.
black checks were clean
==> Running flake8 checks
flake8 checks were clean
==> Running mypy checks
Success: no issues found in 646 source files
mypy checks were clean
I've updated the branch with style fixes. |
|
@spackbot fix style |
|
Let me see if I can fix that for you! |
|
I was able to run spack style --fix==> Running style checks on spack
selected: import, isort, black, flake8, mypy
==> Modified files
lib/spack/llnl/util/tty/log.py
lib/spack/spack/install_test.py
lib/spack/spack/test/install_test.py
var/spack/test_repos/builtin.mock/packages/dummy-makefile-build-test-log/package.py
==> Running import checks
import checks were clean
==> Running isort checks
isort checks were clean
==> Running black checks
reformatted lib/spack/llnl/util/tty/log.py
reformatted lib/spack/spack/install_test.py
All done! ✨ 🍰 ✨
2 files reformatted, 2 files left unchanged.
black checks were clean
==> Running flake8 checks
flake8 checks were clean
==> Running mypy checks
Success: no issues found in 646 source files
mypy checks were clean
==> spack style checks were clean
I've updated the branch with style fixes. |
|
Please resolve the conflicts then ping me. |
f7838bf to
12dad84
Compare
Signed-off-by: Alex Richert <[email protected]>
12dad84 to
a651554
Compare
Signed-off-by: Alex Richert <[email protected]>
Signed-off-by: Alex Richert <[email protected]>
|
Thanks @tldahlgren, please take another look |
tldahlgren
left a comment
There was a problem hiding this comment.
The core changes work. I have requested paring down the unit test-related changes. (See comments.)
Signed-off-by: Alex Richert <[email protected]>
Signed-off-by: Alex Richert <[email protected]>
e4e2ae0 to
e323835
Compare
|
@tldahlgren I ran into the issues with windows that I did before, so I'm omitting the new cmd/install.py test functionality for win32. |
|
There's information at https://github.com/spack/spack/pull/50477/checks?check_run_id=53044284480 for passing the DCO check. |
|
Dang, I thought I had the auto-signoff enabled. Thanks |
Signed-off-by: Alex Richert <[email protected]>
Signed-off-by: Alex Richert <[email protected]>
Signed-off-by: Alex Richert <[email protected]>
Signed-off-by: Alex Richert <[email protected]>
This reverts commit f14beed. Signed-off-by: Alex Richert <[email protected]>
24a575b to
14165dc
Compare
…ases (spack#50477) * Append to install-time test log for multiple test phases Signed-off-by: Alex Richert <[email protected]> * log.py: fix tmp dir arg Signed-off-by: Alex Richert <[email protected]> * log.py: fix typo (:) Signed-off-by: Alex Richert <[email protected]> * use existing tests/pkg Signed-off-by: Alex Richert <[email protected]> * remove new test file/pkg Signed-off-by: Alex Richert <[email protected]> * test/cmd/install.py: skip log append check for win32 Signed-off-by: Alex Richert <[email protected]> * test/cmd/install.py: skip install 'tests' for win32 Signed-off-by: Alex Richert <[email protected]> * test/cmd/install.py: fix install test-skip logic (win32) Signed-off-by: Alex Richert <[email protected]> * test/cmd/install.py: skip test_package_output for windows Signed-off-by: Alex Richert <[email protected]> * Revert "test/cmd/install.py: skip test_package_output for windows" This reverts commit f14beed. Signed-off-by: Alex Richert <[email protected]> --------- Signed-off-by: Alex Richert <[email protected]>
install_test.py: append to install-time test log for multiple test phases (spack#50477)
This PR is a proposed solution for #49200, where currently 'make installcheck' output overwrites 'make test'/'make check' output for autotools and makefile (and possibly other) packages. This PR modifies install_test.py to append to install-time-test-log.txt instead of overwriting when it's logged to by both check() and installcheck(). This in turn is achieved by allowing llnl/util/tty/log.py:log_output() to append to existing files.
I wouldn't mind if the check() output went to a different file from installcheck(), but I would ideally like some working solution sooner than later.
Fixes #49200