Sergey Ledniov
10/08/2024, 9:55 AMpact verify (verify consumers according to selectors)
• pact can-i-deploy (check if this provider version is safe for deploy)
If pact verify step fails when the provider breaks one of it's consumers and the pipeline invocation is interrupted - does it actually make sense to have pact can-i-deploy as the next step at all?
Is it a false assumption that both commands either pass or fail together?Bas Dijkstra
10/08/2024, 10:22 AMrecord-deployment or record-release step after successful deployment to update your broker with the latest versions in your target environment.Sergey Ledniov
10/08/2024, 1:09 PMcan-i-deploy is mostly for the consumer, whereas provider is guarded by failing verify task?Bas Dijkstra
10/08/2024, 1:14 PMMatt (pactflow.io / pact-js / pact-go)
deployedOrReleased pacts are passing, you may still decide to deploy to production.
This is where you need to map it onto your workflow.
But as a general rule, you want your verification task to be green before deploying. We also recommend running can-i-deploy directly prior to release, in case of any race conditions between steps where the situation on the consumer side has changed.