Skip to content

Conversation

@emmettbutler
Copy link
Contributor

@emmettbutler emmettbutler commented Jan 10, 2022

This pull request causes most streamparse subprocesses to raise exceptions when they return nonzero exit codes. Combined with Parsely/fabric#4, this causes streamparse-based topology deployments to exit when the virtualenv installation fails on one or more hosts.

else sudo(cmd, user=user, **kwargs)
)
if command_result.return_code != 0:
raise ValueError()
Copy link
Contributor

@abelsonlive abelsonlive Jan 10, 2022

Choose a reason for hiding this comment

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

I wonder if changing this to a SystemExit would allow us to not have to modify how fabric works?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just tried this locally, and unfortunately it results in the deploy command not exiting

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it, I changed this to the more standard RuntimeError

@abelsonlive abelsonlive merged commit 95cb598 into master Jan 10, 2022
@abelsonlive
Copy link
Contributor

@emmett9001 streamparse==4.1.2 is now published on PyPI!

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.

3 participants