Ksawery Karwacki
10/27/2023, 11:32 PMfeature/abc
containing first contract between two services. I cannot merge consumer as it will fail can-i-deploy
(provider supporting contract is not yet deployed on target environment). If I merge provider it won't record deployment as contract selector looks for main branch and release/deployed pacts. Pending pacts and WIP pacts won't help as this contract was already verified from branch so selector returns no contracts when run from main branch after merge, it won't fail build just because the annotation @IgnoreNoPactsToVerify
. It seems that I have to manually verify against branch feature/abc
, rerun deployment pipeline to register deployment and then I can start merging consumer. Is there any valid way to do that without the need to manually running verification or hardcoding branch feature/abc
in the selector?
Did I miss something?Ulises Cervino
10/28/2023, 11:33 AMfeature/abc
implements consuming data from a new endpoint. What’s the danger in rolling out (and recording the act) of your provider’s branch feature/abc
assuming that it doesn’t break contracts of already rolled out consumers?Ulises Cervino
10/28/2023, 11:34 AMUlises Cervino
10/28/2023, 11:34 AMfeature/abc
in both sides. That’s a trickier problem, and my general reaction is “don’t introduce breaking changes”Ksawery Karwacki
10/29/2023, 9:57 PMfeature/abc
of the consumer. So verification will verify against zero contracts so provider version won't be registered in pact broker. Therefore you cannot register deployment of this version as it was never created in the pact broker.Ulises Cervino
10/30/2023, 6:47 AMKsawery Karwacki
10/30/2023, 8:45 AMUlises Cervino
10/30/2023, 9:44 AMUlises Cervino
10/30/2023, 9:45 AMKsawery Karwacki
10/30/2023, 9:50 AMUlises Cervino
10/30/2023, 5:24 PMfeature/abs
, and you record the rollout, then the consumer should be able to roll out as well (branch feature/abc
), no?Ksawery Karwacki
10/30/2023, 6:04 PMKsawery Karwacki
10/30/2023, 6:05 PMUlises Cervino
10/30/2023, 6:21 PM