Adam Witko
08/12/2022, 10:14 AMpublishVerificationResult
is false panic kermit ?Matt (pactflow.io / pact-js / pact-go)
Yousaf Nabi (pactflow.io)
Matt (pactflow.io / pact-js / pact-go)
Yousaf Nabi (pactflow.io)
if (brokerUrl && opts.provider) {
ffi.pactffiVerifierBrokerSourceWithSelectors(
handle,
brokerUrl,
opts.pactBrokerUsername || process.env.PACT_BROKER_USERNAME || '',
opts.pactBrokerPassword || process.env.PACT_BROKER_PASSWORD || '',
opts.pactBrokerToken || process.env.PACT_BROKER_TOKEN || '',
opts.enablePending || false,
opts.includeWipPactsSince || '',
opts.providerVersionTags || [],
opts.providerBranch || '',
opts.consumerVersionSelectors
? objArrayToStringArray(opts.consumerVersionSelectors)
: [],
opts.consumerVersionTags || []
);
}
Yousaf Nabi (pactflow.io)
opts.publishVerificationResult
isn’t passed into when we call pactffiVerifierSetPublishOptions
// TODO: extract these options into its own subtype, and check keyof
if (
opts.publishVerificationResult ||
opts.providerVersion ||
opts.buildUrl ||
opts.disableSslVerification ||
opts.timeout ||
opts.providerVersionTags
) {
ffi.pactffiVerifierSetPublishOptions(
handle,
opts.providerVersion || '',
opts.buildUrl || '',
opts.providerVersionTags || [],
opts.providerBranch || '',
);
}
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
false
https://github.com/pact-foundation/pact-js/blob/25dc07e3f3f710b77526d8be315ef7ee772ff747/examples/v3/e2e/test/provider.spec.js#L97
Run npm run test:provider
Local run published verification result here
https://test.pactflow.io/hal-browser/browser.html#https://test.pactflow.io/pacts/provider/Animal%[…]fe03a975f94e4c33c0e85/verification-results/84232Yousaf Nabi (pactflow.io)
Adam Witko
08/12/2022, 10:57 AMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
It was beautiful, it was great, it was merged into master……..notThis made me laugh 😂 we’ve all got this kind of story
Matt (pactflow.io / pact-js / pact-go)
Yousaf Nabi (pactflow.io)
chore: fdfsd
or docs: foo
might work, if you update the release process docs 😅 (even tho the message says fix/feat)
Or feat to bump a minor a version change in case the merge does cause further issues (which we want to iron out)
I’ve never checked out to cause a breaking change bump in a commit message yet, I am going to go find out now 😅Yousaf Nabi (pactflow.io)
Timothy Jones
08/12/2022, 11:53 AMTimothy Jones
08/12/2022, 11:55 AMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Examples ofIs there bug fixes/dep updates, we wouldn’t want users to know about? as it says may here. wonder what they would be classified asinclude bug fixes and dependency bumps that users of pact-js may want to know about.fix
chore (deps):
?Yousaf Nabi (pactflow.io)
It’s quite possible this will result in some upstream issues in Pact JS, because it does some additional validation on the arguments that may not have been there before. But they should be useful validations, catching potentially hidden bugs in the configHmm, so in this instance, would be want a minor bump on pact-js when consuming pact-js-core, but pact-js-core went out as a minor, which would maybe force consumers of it to think it wouldn’t have potential regressions. idk 😄
Matt (pactflow.io / pact-js / pact-go)
Why do you want to release something that isn’t a fix or feat?It’s an important refactor, why shouldn’t I be able to release a refactor?
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Hmm, so in this instance, would be want a minor bump on pact-js when consuming pact-js-core, but pact-js-core went out as a minor, which would maybe force consumers of it to think it wouldn’t have potential regressions. idkthe types are the same, but the validation under the hood has been improved as has the way the properties are wired in. It’s a potential behavioural breaking change, but we don’t have a regression suite thorough enough to catch that sort of thing
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
### Commit messages
Pact JS uses the [Conventional Changelog](<https://github.com/bcoe/conventional-changelog-standard/blob/master/convention.md>)
commit message conventions. Please ensure you follow the guidelines, as they
help us automate our release process.
You can take a look at the git history (`git log`) to get the gist of it.
If you have questions, feel free to reach out in `#pact-js` in our [slack
community](<https://pact-foundation.slack.com/>).
If you'd like to get some CLI assistance, getting setup is easy:
```shell
npm install commitizen -g
npm i -g cz-conventional-changelog
git cz
to commit and commitizen will guide you.```
I actually don’t use that anymore, but keen to know if you do?Timothy Jones
08/12/2022, 2:06 PMfix
, as it fixes something that users want to know about.
The point of the commit message guidelines is to be intentional about what goes in the release notes. As a user, it's frustrating to read empty change logs if you're trying to work out what changed- so I forbade them in the release scripts.Timothy Jones
08/12/2022, 2:09 PMTimothy Jones
08/12/2022, 2:12 PMMatt (pactflow.io / pact-js / pact-go)
Timothy Jones
08/13/2022, 5:30 AMTimothy Jones
08/13/2022, 5:31 AMTimothy Jones
08/13/2022, 5:32 AMMatt (pactflow.io / pact-js / pact-go)
Timothy Jones
08/14/2022, 11:57 PMTimothy Jones
08/14/2022, 11:59 PM