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

test for stderr before printing #212

Merged
merged 4 commits into from Nov 23, 2023
Merged

Conversation

tjgalvin
Copy link
Contributor

As discussed, sometimes an error is raised when there is no stderr attached to the process object. This will test to ensure it does exist before trying to read from it.

@vsoch
Copy link
Member

vsoch commented Nov 23, 2023

This looks very reasonable! Could you please bump the version in version.py and add a note in CHANGELOG.md?

@tjgalvin
Copy link
Contributor Author

Ok, I think I have done this.

@@ -5,7 +5,7 @@
# with this file, You can obtain one at http://mozilla.org/MPL/2.0/.


__version__ = "0.3.1"
__version__ = "0.3.2"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be 0.3.11

Not perfect semver, but allows for tiny changes like this one :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated :)

CHANGELOG.md Outdated
@@ -17,6 +17,7 @@ The client here will eventually be released as "spython" (and eventually to
singularity on pypi), and the versions here will coincide with these releases.

## [master](https://github.com/singularityhub/singularity-cli/tree/master)
- added check to enbsure stderr exists upon a non-zero return code when streaming (0.3.2)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- added check to enbsure stderr exists upon a non-zero return code when streaming (0.3.2)
- added check to enbsure stderr exists upon a non-zero return code when streaming (0.3.11)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha, yes. Ok. Fixed this as well :P

@vsoch vsoch merged commit ef53ca3 into singularityhub:master Nov 23, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants