-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
spack-python does not exit failure on exceptions #34489
Comments
Jordan474
added
bug
Something isn't working
triage
The issue needs to be prioritized
labels
Dec 13, 2022
Jordan474
changed the title
spack-python does not report exceptions
spack-python does not exit failure on exceptions
Dec 13, 2022
alalazo
added
impact-medium
and removed
triage
The issue needs to be prioritized
labels
Dec 15, 2022
alalazo
added a commit
to alalazo/spack
that referenced
this issue
Dec 15, 2022
fixes spack#34489 Customize sys.excepthook to raise SystemExit when any unhandled exception reaches the hook.
alalazo
added a commit
that referenced
this issue
Dec 15, 2022
fixes #34489 Customize sys.excepthook to raise SystemExit when any unhandled exception reaches the hook.
benkirk
pushed a commit
to benkirk/spack
that referenced
this issue
Dec 16, 2022
fixes spack#34489 Customize sys.excepthook to raise SystemExit when any unhandled exception reaches the hook.
haampie
pushed a commit
that referenced
this issue
Dec 22, 2022
fixes #34489 Customize sys.excepthook to raise SystemExit when any unhandled exception reaches the hook.
haampie
pushed a commit
that referenced
this issue
Dec 23, 2022
fixes #34489 Customize sys.excepthook to raise SystemExit when any unhandled exception reaches the hook.
haampie
pushed a commit
that referenced
this issue
Jan 18, 2023
fixes #34489 Customize sys.excepthook to raise SystemExit when any unhandled exception reaches the hook.
haampie
pushed a commit
that referenced
this issue
Jan 24, 2023
fixes #34489 Customize sys.excepthook to raise SystemExit when any unhandled exception reaches the hook.
haampie
pushed a commit
that referenced
this issue
Feb 7, 2023
fixes #34489 Customize sys.excepthook to raise SystemExit when any unhandled exception reaches the hook.
alalazo
added a commit
that referenced
this issue
Feb 7, 2023
fixes #34489 Customize sys.excepthook to raise SystemExit when any unhandled exception reaches the hook.
amd-toolchain-support
pushed a commit
to amd-toolchain-support/spack
that referenced
this issue
Feb 16, 2023
fixes spack#34489 Customize sys.excepthook to raise SystemExit when any unhandled exception reaches the hook.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
Spack-python could be powerful tool to easily write scripts, but it ignores exceptions, which makes writing reliable scripts impossible.
For example:
Its exit status is 0 instead of non-zero.
It seems
spack-python
actually runs an interactive console, I'm not sure this is appropriate for this use-case (described inbin/spack-python
file) ?Error message
Spack-python should exit with a non-zero status on errors.
Information on your system
General information
spack debug report
and reported the version of Spack/Python/PlatformThe text was updated successfully, but these errors were encountered: