James Weng
05/27/2022, 5:32 AMTimothy Jones
05/27/2022, 5:48 AMbut conversely if i try to deploy provider first without consumer run it will also fail becauseI think this depends. Personally, I think the consumer needs the provider, but the provider doesn't need the consumer. So, I would expect
can-i-deploy
for a provider with no verified consumers to pass.Timothy Jones
05/27/2022, 5:51 AMJames Weng
05/27/2022, 5:51 AMTimothy Jones
05/27/2022, 5:51 AM"can i deploy"I would run can-I-deploy right before you deploy, whenever that is
Timothy Jones
05/27/2022, 5:52 AMTimothy Jones
05/27/2022, 5:53 AMTimothy Jones
05/27/2022, 5:53 AMcontract_requiring_verification_published
-> run provider verificationTimothy Jones
05/27/2022, 5:53 AMprovider verification succeeded
-> retry pending deploys or similarTimothy Jones
05/27/2022, 5:54 AMTimothy Jones
05/27/2022, 5:55 AMcan-i-deploy
in a job all on its own, so that you can tell the difference between something broken in CI and a "hold off on this one for a bit" deploymentTimothy Jones
05/27/2022, 5:56 AM--retry-while-unknown=TIMES
to have can-i-deploy
keep waiting on the verification statusTimothy Jones
05/27/2022, 5:57 AMTimothy Jones
05/27/2022, 5:58 AMJames Weng
05/27/2022, 5:59 AMTimothy Jones
05/27/2022, 5:59 AMJames Weng
05/27/2022, 6:00 AMTimothy Jones
05/27/2022, 6:01 AMrecord-deployment
)Timothy Jones
05/27/2022, 6:01 AMTimothy Jones
05/27/2022, 6:02 AMCI job can-i-deploy failed
and CI job deploy failed
James Weng
05/27/2022, 6:02 AMTimothy Jones
05/27/2022, 6:03 AMcan-i-deploy
as the first line in a job called deploy
then sometimes you will get failures you're expectingTimothy Jones
05/27/2022, 6:03 AMTimothy Jones
05/27/2022, 6:03 AMJames Weng
05/27/2022, 6:04 AMTimothy Jones
05/27/2022, 6:04 AMcan-i-deploy
fails.James Weng
05/27/2022, 6:05 AMJames Weng
05/27/2022, 6:06 AMJames Weng
05/27/2022, 6:06 AMJames Weng
05/27/2022, 6:06 AMTimothy Jones
05/27/2022, 6:06 AMcan-i-deploy
what you're asking aboutTimothy Jones
05/27/2022, 6:07 AMJames Weng
05/27/2022, 6:08 AMTimothy Jones
05/27/2022, 6:08 AMJames Weng
05/27/2022, 6:08 AMTimothy Jones
05/27/2022, 6:10 AMpact-broker can-i-deploy /
--pacticipant="$CONSUMER_NAME" /
--version="$CONSUMER_VERSION" /
--to-environment=production
James Weng
05/27/2022, 6:11 AMTimothy Jones
05/27/2022, 6:11 AMJames Weng
05/27/2022, 6:12 AMTimothy Jones
05/27/2022, 6:12 AMTimothy Jones
05/27/2022, 6:13 AMJames Weng
05/27/2022, 6:13 AMTimothy Jones
05/27/2022, 6:13 AMJames Weng
05/27/2022, 6:15 AMTimothy Jones
05/27/2022, 6:17 AMTimothy Jones
05/27/2022, 6:17 AMTimothy Jones
05/27/2022, 6:18 AMJames Weng
05/27/2022, 6:19 AMTimothy Jones
05/27/2022, 6:21 AMJames Weng
05/27/2022, 6:22 AMJames Weng
05/27/2022, 6:23 AMTimothy Jones
05/27/2022, 6:23 AMIn your opinion do you see any drawback / unsuitable scenarios in using contract testingCurrently (as you're experiencing) the effort required to understand it is high. Specifically consumer driven contract testing is not a good fit if you don't know who your consumers are (eg, for a public API). I think it's absolutely essential if you have any kind of complex architecture (eg, more than 2 services)
Timothy Jones
05/27/2022, 6:26 AMTimothy Jones
05/27/2022, 6:26 AMTimothy Jones
05/27/2022, 6:28 AMTimothy Jones
05/27/2022, 6:28 AMJames Weng
05/27/2022, 6:42 AMBeth (pactflow.io/Pact Broker/pact-ruby)
James Weng
05/27/2022, 6:46 AM