Dmitry Munda
12/15/2022, 9:27 AMRecording support ended for a release
When a released application is deemed to be no longer supported, call pact-broker record-support-ended. This will stop all pacts for this version being returned for verification by its providers, and remove it from consideration when checking if an integrated application is safe to deploy.
does this mean, that this version also will be considered as not deployed ?
use case - we have 3 components
⢠all 3 were deployed ( deployedOrReleased returns all 3 )
⢠1 was marked as released ( deployedOrReleased returns all 3(+1 but still 3 ) )
⢠released component was marked as record-support-ended
will deployedOrReleased still return all 3 components ?Dmitry Munda
12/15/2022, 9:31 AMand remove it from consideration when checking if an integrated application is safe to deploy.
Yousaf Nabi (pactflow.io)
deployedOrReleased
selector for most use cases in provider verifications so the provider doesn't need to know in advance which style the consumer is usingYousaf Nabi (pactflow.io)
Dmitry Munda
12/15/2022, 12:38 PMDmitry Munda
12/15/2022, 12:38 PMDmitry Munda
12/15/2022, 12:39 PM⢠recording a deployment will undeploy all deployed applicationthats understandable ( making something like âlatestâ )
Dmitry Munda
12/15/2022, 12:39 PM⢠Unrecording a release wont unrecord deployments.this would be nice to add to docs because it a little bit contradicts with
Copy codeand remove it from consideration when checking if an integrated application is safe to deploy.
Dmitry Munda
12/15/2022, 12:40 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
record-deployment
and record-release
is that
⢠record-deployment
is used to model the real life scenario where a deployment causes the previous version of an application to be replaced by a new version. It is used for APIs and consumer applications that are deployed to known instances. When called, it automatically marks the previously deployed version as undeployed.
⢠record-release
models the real life scenario where the release of a new version of an artifact does not cause the previously released versions of the artifact to become unavailable. It is used for mobile applications and libraries that are made publicly available via an application store or repository. When called, it does NOT change the status of any previously released version.
âDeployed versionsâ and âreleased versionsâ are different resource types in the Pact Broker, and an application version may be both deployed and released. For example, a mobile phone application version may be recorded as deployed to a mobile device for automated testing in a test environment, and then recorded as released to an app store in a production environment.
Deployments and release lifecycles are completely independent of each other. Ending support for a release will not cause a currently deployed version to be marked as undeployed, and marking a version as undeployed will not end support for a release.Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
use case - we have 3 components
⢠all 3 were deployed ( deployedOrReleased returns all 3 )
⢠1 was marked as released ( deployedOrReleased returns all 3(+1 but still 3 ) )
⢠released component was marked as record-support-ended
will deployedOrReleased still return all 3 components ? (edited)Yes, all 3 will still be returned.
Beth (pactflow.io/Pact Broker/pact-ruby)
Dmitry Munda
12/16/2022, 7:53 AMwhy was the same version marked as deployed and released?yes
Iâm confused about which bits contradict each other
call pact-broker record-support-ended. This will stop all pacts for this version being returned for verification by its providers
it sounds like call record-support-ended ... version is removed from verifications
Dmitry Munda
12/16/2022, 7:56 AMEnding support for a release will not cause a currently deployed version to be marked as undeployed, and marking a version as undeployed will not end support for a release.makes everything clear
Dmitry Munda
12/16/2022, 7:56 AM