features: terminate installs on ctrl-c and --fail-fast failures#15295
Conversation
9f1ca54 to
f2ae3ab
Compare
|
@wortiz Does this fix PR fix your |
|
Yes it appears to allow |
4818e87 to
188b3e3
Compare
|
Split the two features into two separate commits. |
|
@scheibelp I'm done with the split into two commits and the tests passed. |
scheibelp
left a comment
There was a problem hiding this comment.
I have a question and a few requests
|
@scheibelp Given your feedback involves changes to each of the separate features/commits, I'll assume that I need to split one of them -- the smaller is |
You can do that. Another option is to start by just tacking on the fixes, then (assuming the commits can be grouped cleanly) you can rebase and treat the new commits as "fixup". Both this and extracting into another PR work fine. |
I've been using |
Git was telling me there were differences when I checked the branch out again so I did a |
188b3e3 to
fd69994
Compare
|
@scheibelp ping |
44c5117 to
10bc92d
Compare
|
@tldahlgren I ran into this issue today. So I am supportive of your work in this PR. Note: on MacOS, hitting |
|
And I confirm that this PR works for me. |
|
Closing as part of re-triggering the tests. |
|
Re-opening to trigger the tests. |
|
@scheibelp @becker33 ping |
|
Has #15295 (comment) been addressed yet? I haven't seen a comment on it. |
|
I will merge the last 2 commits once the tests pass. |
d84534c to
182e96a
Compare
|
@becker33 @scheibelp The PR tests passed so I rebased the third commit (test change) into the second. So, once the tests pass, this PR can be pushed to |
Fixes #15182
Fixes #15684
This change restores the ability to terminate
spack installusingctrl-c*.It also adds support for a
--fail-fastinstall option. Instead of proceeding with a "best effort" installation of packages associated with aspack install,spack install --fail-fastwill terminate the installation process upon detection of an install failure (i.e., by the process or another, overlapping install process).*Note that I am able to successfully terminate an installation using
developby enteringctrl-ctwice in a row. This PR reduces the number of times it needs to be entered to one.TODO
Follow-On Work
environment.pywill need to be modified to support--fast-fail