SoftwareTestPilot
All discussions
Sam OkaforJun 23

Sane pattern for consumer-driven contracts with Pact broker

We have 5 consumers and 2 providers. Provider verification runs on every provider PR and takes forever. Want to move to can-i-deploy + tags but scared of blocking releases. What is your Pact broker flow that actually holds up?

apipactcontract-testing
Related learningExplore Academy skill paths

1 answer

Accepted solution

Aiko TanakaJun 24

What worked for us with 6 consumers: version pacts with the git SHA, tag with the branch, and gate merges with pact-broker can-i-deploy. Provider verification runs against the "main" tag on every provider PR - fast, deterministic. Consumers only trigger provider verification when their pact actually changes.