Roger Liu
11/15/2023, 7:14 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
--latest in your can-i-deploy checks? If so, you should stop that 😛Roger Liu
11/15/2023, 7:35 AMRoger Liu
11/15/2023, 7:44 AMRoger Liu
11/15/2023, 7:49 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Roger Liu
11/16/2023, 12:51 AMMatt (pactflow.io / pact-js / pact-go)
All the other consumer versions that is using the same pact-version would be automatically verified is what I’m seeing in the matrix.correct, the pact contents is versioned independently of the application version. So if the contents are the same, any verification also applies to them
Matt (pactflow.io / pact-js / pact-go)
Coming back to the question of if this could have an affect if we accidentally published an earlier consumer software version to pact broker at a later date than the latest consumer software version - I guess the worst that it can do is either failing the provider build if the provider no longer supports this earlier pact version, or later provider versions not verifying against the latest consumer software version. I guess it should be transparent enough to fix manually? (edited)Yeah I think so. If you re-run an old build of a consumer version where (for some reason) the provider hasn’t verified that before (i.e. triggers the
contract_requiring_verification_published event) then it might fail a webhook build, but wouldn’t be the latest for the branch (so the main build wouldn’t fail. It wouldn’t fail can-i-deploy either if you’re deploying to an environment, because presumably it also isn’t in the target environment.
The resolution in most cases anyway, is to simply re-run the build for the latest version.