Siim Mardus
11/01/2024, 1:43 PMcan-i-deploy checks.
Currently I have set up as follows:
Consumer CI pipeline:
1. Run contract tests & publish pacts
2. (if contract_requiring_verification, also run provider verification via webhook)
3. can-i-deploy checks for beta & productions envs
Consumer Deploy pipeline
1. Run contract tests & publish pacts
2. can-i-deploy checks for beta
3. Deploy to beta
4. record-deployment for beta
5. Deploy to production
6. record-deployment for production
Provider CI/CD is pretty much the same, besides provider verification job step.
However, I ran into an issue...
I wanted to change a Provider state setup. To do that I first added a new provider state, then deployed it to production. This new provider state is not yet used at this point.
Then I wanted to deploy Consumer to make an existing test use this new improved provider state, but Step (3) of Consumer CI pipeline fails, because There is no verified pact between version between version x of consumer and version of provider currently in beta ...
What can I do to resolve this? Should I not run can-i-deploy checks in some conditions? Does solution to this situation have something to do with pending or wip pacts (I have pending pacts enabled, but not wip)?Yousaf Nabi (pactflow.io)
Then I wanted to deploy Consumer to make an existing test use this new improved provider state, but Step (3) of Consumer CI pipeline fails,What was the result of the verification triggered by the webhook, this should have triggered for main line and deployed/released versions of that provider
Siim Mardus
11/04/2024, 7:25 AMWhat was the result of the verification triggered by the webhook in step 2It succeeded and reported that this pact is verified.
Siim Mardus
11/04/2024, 7:29 AMthis should have triggered for main line and deployed/released versions of that providerOh so what you are saying is that the second step should trigger provider verification jobs between my new consumer version and all environments? So if I have beta and production environment, it should run 2 (or 3) jobs. • with version currently in beta • with version currently in prod • (maybe also with version currently in master, which I currently do)
Yousaf Nabi (pactflow.io)
Siim Mardus
11/04/2024, 7:38 AM