Skip to content
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

Backports 0.19.1 #33966

Merged
merged 27 commits into from
Feb 7, 2023
Merged

Backports 0.19.1 #33966

merged 27 commits into from
Feb 7, 2023

Conversation

@spackbot-app spackbot-app bot added core PR affects Spack core functionality documentation Improvements or additions to documentation tests General test capability(ies) utilities labels Nov 17, 2022
@haampie haampie added this to the v0.19.1 milestone Dec 23, 2022
@haampie haampie force-pushed the backports/v0.19.1 branch 3 times, most recently from 2eb6ce7 to b43987c Compare January 18, 2023 12:42
@haampie haampie force-pushed the backports/v0.19.1 branch 3 times, most recently from fb049db to e911fa3 Compare January 25, 2023 09:26
@spackbot-app spackbot-app bot added the gitlab Issues related to gitlab integration label Feb 7, 2023
haampie and others added 9 commits February 7, 2023 10:48
Revamp the timer so we always have a designated begin and end.

Fix a bug where the phase timer was stopped before the phase started,
resulting in incorrect timing reports in timers.json.
* uninstall: fix accidental cubic complexity

Currently spack uninstall runs in worst case cubic time complexity
thanks to traversal during traversal during traversal while collecting
the specs to be uninstalled.

Also brings down the number of error messages printed to something
linear in the amount of matching specs instead of quadratic.
haampie and others added 17 commits February 7, 2023 10:48
Avoid text decoding and encoding when combining log files, instead
combine in binary mode.

Also do a buffered copy which is sometimes faster for large log files.
* Add a regression test for 33928

* PackageBase should not set `(build|install)_time_test_callbacks`

* Fix audits by preserving the current semantic

Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
fixes #34518

Fix an issue due to the MRO chain of the package wrapper
during build. Before this PR we were always returning
False when the builder object was created before the
run_tests method was monkey patched.
…g build env (#34059)

This fixes an issue introduced in #32340, which changed the semantics of the "module"
object passed to the "setup_dependent_package" callback.
fixes #34489

Customize sys.excepthook to raise SystemExit when
any unhandled exception reaches the hook.
These experimental features were removed in #31130, but the docs were not.

- [x] remove the `spack monitor` and `spack analyze` docs
The code in FileCache for write_transaction attempts to delete the temporary file when an exception occurs under the context by calling shutil.rmtree. However, rmtree only operates on directories while the rest of FileCache uses normal files. This causes an empty file to be written to the cache key when unneeded.

Use os.remove instead which operates on normal files.

Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
spack mirror create cannot work with urls, so it shouldn't promote local
paths to file urls.
Currently we print 3 lines of "file exist" warning per tarball, this is
a bit excessive. Instead, it can be a simple single-line tty.warn
message.
Since legit regular expressions are matched, do not pass string=True
to the filter

Refs #34897
At least with ZSH, prefix inspections containing `./bin` result in a
`$PREFIX/./bin` and result in strange `$PATH` handling.

I.e., `module load git` will prepend `/path/to/git/./bin`, `which git`
will find the right executable, but `git --version` will print the
system one. Normalize the relative path to avoid this behavior.

See also #31867.
@alalazo alalazo merged commit 0d26a4a into releases/v0.19 Feb 7, 2023
@alalazo alalazo deleted the backports/v0.19.1 branch February 7, 2023 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binary-packages build-environment build-systems commands core PR affects Spack core functionality documentation Improvements or additions to documentation gitlab Issues related to gitlab integration tests General test capability(ies) utilities workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet