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
pact-node doesn't error if there is an error in the ruby process #304
Comments
@bethesque this looks like the Ruby CLI is returning an exit status of I've just replicated by running this test with the following env var It all works, except for when it tries to publish the results back:
Unsetting |
I’m fairly sure that Pact-node does fail the promise if it’s non-zero (although possibly one or more of the binaries don’t). Also if there’s any output on standard error it is considered an error log (but does not fail the promise). (This may not be the behaviour in the last pact-node release. But I think it is, because I touched that code for GitHub actions). |
That debug log looks like it’s ours, though. I’ll take a look |
Yep, I'm pretty sure it's in the Ruby CLI (the debug is us, yes) |
That Thor bug has been fixed. Someone submitted a PR to upgrade Thor without addressing that issue, and it slipped through. Update the standalone and it will be fine. |
Ah great, thanks Beth. |
I will mark this as fixed in .... some version. |
Software versions
node --version
Expected behaviour
See https://pact-foundation.slack.com/archives/C9VBGLUM9/p1626095803481000
Pact node should throw an error and return a rejected promise.
Actual behaviour
Error is swallowed and visible as
DEBUG
logs:Steps to reproduce
Provider both a bearer token in the environment (
export PACT_BROKER_TOKEN=xyz
) and explicitly set username/password in the verifier.The text was updated successfully, but these errors were encountered: