Thomas K
10/31/2022, 1:25 PMpact-broker describe-version
command for a latest pacticipant in environment prod
, but am having trouble as it looks like you can only use a --tag
in the command, but we instead use branches and environments so when i do something like
pact-broker describe-version -a ProviderService --l prod
I get Pacticipant version not found
any ideas please?? πThomas K
10/31/2022, 2:18 PMrecord-support-ended
for previous release on provider side when we record-release
for new version, but getting the previous image tag (previous provider version in prod) is proving difficult due to our setup. Is it possible we could just do record-deployment
for prod environment here instead as that would auto undeploy
the previous version? would that work ok once we get to the next steps of can-i-deploy
etc ??Yousaf Nabi (pactflow.io)
record-deployment
also unmarks released
versions.
You could try in the Broker UI and filter by environment and pacticipant name in the matrix view.
It should be listed in the matrix, as to which version is in the environment πYousaf Nabi (pactflow.io)
Thomas K
10/31/2022, 8:23 PMrecord-support-ended
for it. Currently we only have access to .Values.image.tag
and not the previous one unless we do some refactoring.
Our consumer side is fine as we support all releases basically forever.
Provider service is backend though and we only ever support one version at a time, whatever the latest release in prod is.
Was thinking a potential easy solution/workaround is if we just record-deployment
to prod for provider instead of record-release
, then the previous version will get automatically undeployed by Pact and it saves us the hassle of figuring out how to retrieve and parse the previous image tag/provider version in prod, unless like u mention there is a relatively easy way via Broker API or similar.Thomas K
10/31/2022, 8:57 PMmain
and environment prod
π€Yousaf Nabi (pactflow.io)
Thomas K
10/31/2022, 9:05 PMrecord-release
and record-deployment
that record-release
doesnt automatically unrelease previous version? Are there any other differences that might affect can-i-deploy
for example?Yousaf Nabi (pactflow.io)
record-release
although it only ever has one live?Thomas K
10/31/2022, 9:07 PMYousaf Nabi (pactflow.io)
can-i-deploy
for consumer, it should list the all provider application versions deployed or released in the environmentThomas K
10/31/2022, 9:07 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
record-deployment
on provider for sure and record-release
on consumer side if the consumers are indefinitely supported πThomas K
10/31/2022, 9:09 PMcontract_requiring_verification_published
webhook and when it kicks off the provider side verification, its verifying against versions I donβt need to due to not doing record-support-ended
on previous provider releases to prodThomas K
10/31/2022, 9:10 PMrecord-release
on consumer side which we have already and then change to record-deployment
on provider side that might workYousaf Nabi (pactflow.io)
Thomas K
10/31/2022, 9:17 PMIf you want a way to cross over, once you find out the version number of the current prod that was marked as released, you can mark that application version as deployed.
unrecord the release, and then you are happy to move on forward.sorry im a bit confused, i still need to record the provider version in prod as a release, and then mark it as deployed? i cant just do
record-deployment
in prod for provider release?Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
deployed
to production,
You can test it out easily with a fresh pact broker on your local machine you get yourself in the same state πThomas K
10/31/2022, 9:21 PMrecord-deployment
for prod provider?Yousaf Nabi (pactflow.io)
Thomas K
10/31/2022, 9:22 PMYousaf Nabi (pactflow.io)
Thomas K
10/31/2022, 9:22 PMrecord-release
we would want to stop supporting previousThomas K
10/31/2022, 9:23 PMYousaf Nabi (pactflow.io)
Thomas K
10/31/2022, 9:24 PMThomas K
10/31/2022, 9:24 PMrecord-deployment
should suffice ?Yousaf Nabi (pactflow.io)
Thomas K
10/31/2022, 9:25 PMYousaf Nabi (pactflow.io)