boden winkel
10/14/2025, 12:08 PMYousaf Nabi (pactflow.io)
boden winkel
10/14/2025, 2:24 PMboden winkel
10/14/2025, 2:27 PMboden winkel
10/14/2025, 2:32 PMboden winkel
10/14/2025, 2:36 PMYousaf Nabi (pactflow.io)
boden winkel
10/14/2025, 2:38 PMboden winkel
10/14/2025, 2:38 PMboden winkel
10/14/2025, 2:40 PMYousaf Nabi (pactflow.io)
uuid() in your code?
That will generate a unique uuid each time. I think you should be able to provide a example, which means you will get a uuid matcher, but a fixed value that is used for contract comparison
(ideally you want the fixed data, so that the pact can be pre-verified if those contents have already have an existing verification)boden winkel
10/14/2025, 2:44 PMboden winkel
10/14/2025, 2:45 PMYousaf Nabi (pactflow.io)
boden winkel
10/14/2025, 2:47 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
boden winkel
10/14/2025, 2:50 PMYousaf Nabi (pactflow.io)
boden winkel
10/14/2025, 2:52 PMboden winkel
10/14/2025, 2:52 PMboden winkel
10/14/2025, 2:52 PMboden winkel
10/14/2025, 2:53 PMboden winkel
10/14/2025, 2:53 PMboden winkel
10/14/2025, 2:57 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
boden winkel
10/14/2025, 2:58 PMYousaf Nabi (pactflow.io)
auto-detect-version-properties flag which will pick up the git commit / branch and build url for you, if you use the cliboden winkel
10/14/2025, 2:59 PMYousaf Nabi (pactflow.io)
pact-broker publish <pacts> --auto-detect-version-propertiesYousaf Nabi (pactflow.io)
-rboden winkel
10/14/2025, 3:00 PMboden winkel
10/14/2025, 3:02 PMboden winkel
10/14/2025, 3:02 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
--version <git commit> --branch <git branch> --build-url <the link to your CI job> for you without you needing to do anything elseboden winkel
10/14/2025, 3:11 PMboden winkel
10/14/2025, 3:11 PMYousaf Nabi (pactflow.io)
--consumer-app-version value.
the issue with the version as semver.
if you take main and create two branches, with two different changes, both minors.
they will both have the same version, but potentially different contents, if both of them change an api client and therefore pact, if different ways.
also you are on a single branch, each commit might not change the semver value, but have different pact contents. this would stop you being able to overwrite the contents, as you would be publishing to the same semver versionboden winkel
10/14/2025, 3:56 PMboden winkel
10/14/2025, 3:56 PMboden winkel
10/14/2025, 3:57 PMboden winkel
10/14/2025, 4:24 PMMatt (pactflow.io / pact-js / pact-go)
just wondering what that will change, as we passing this semversion anyway which is uniquesemver doesn’t imply unique across commits. i.e. multiple commits might contribute to a semver release - you should use the git sha as the version (or incorporate it into the version, with your semver version). This way, each build won’t result in publishing over a previous version. This leaves you with the scenario of re-running an existing build for a particular version (e.g. a flaky build or something). That’s when you can address it with reducing random data in your tests
boden winkel
10/15/2025, 9:34 AMNON-GET button for the self relation, and sending a DELETE request to it.","status":409,"instance":"/","errors":[{"detail":"conflicts with existing value","pointer":"#/contract/content"}]}`boden winkel
10/15/2025, 9:34 AMboden winkel
10/15/2025, 10:01 AMMatt (pactflow.io / pact-js / pact-go)
IT is happening when for example pipeline fail and will be re-runnedthere reason that is happening is that you must have some dynamic values in your pact test, which means if you re-run an existing pact suite the generated pact changes. This is why you hit that problem. The solution is to find any dynamic values and make them statit
Matt (pactflow.io / pact-js / pact-go)
pactflow publish-provider-contract - which i am using for publishign that OAS spec does not support --auto-detect-version-propertiesThe new CLI (https://github.com/pact-foundation/pact-broker-cli - soon to replace the other in all the places) does support this
Matt (pactflow.io / pact-js / pact-go)
boden winkel
10/16/2025, 8:58 AMboden winkel
10/16/2025, 8:58 AMboden winkel
10/16/2025, 8:58 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
boden winkel
10/16/2025, 1:40 PMboden winkel
10/16/2025, 1:41 PMboden winkel
10/16/2025, 1:41 PM