Fábio Rodrigues
05/15/2024, 9:38 AMFábio Rodrigues
05/15/2024, 9:38 AMFábio Rodrigues
05/15/2024, 9:38 AMFábio Rodrigues
05/15/2024, 9:39 AMFábio Rodrigues
05/15/2024, 9:40 AMMatt (pactflow.io / pact-js / pact-go)
[2024-05-15T10:07:46Z] DEBUG: Webhook context {"base_url":"<https://outsystems.pactflow.io>","consumer_version_branch":"main","build_url":null,"consumer_version_tags":[],"event_name":"contract_requiring_verification_published","provider_version_number":"v1.315.416","provider_version_branch":"main","provider_version_descriptions":["deployed in dev","deployed in test"]}
[2024-05-15T10:07:42Z] DEBUG: Webhook context {"base_url":"<https://outsystems.pactflow.io>","consumer_version_branch":"main","build_url":null,"consumer_version_tags":[],"event_name":"contract_requiring_verification_published","provider_version_number":"v1.315.411","provider_version_branch":"refs/heads/main","provider_version_descriptions":["deployed in stage"]}
[2024-05-15T10:07:40Z] DEBUG: Webhook context {"base_url":"<https://outsystems.pactflow.io>","consumer_version_branch":"main","build_url":null,"consumer_version_tags":[],"event_name":"contract_requiring_verification_published","provider_version_number":"v1.315.401","provider_version_branch":"refs/heads/main","provider_version_descriptions":["deployed in ga"]}
[2024-05-15T10:07:37Z] DEBUG: Webhook context {"base_url":"<https://outsystems.pactflow.io>","consumer_version_branch":"main","build_url":null,"consumer_version_tags":[],"event_name":"contract_requiring_verification_published","provider_version_number":"v1.315.406","provider_version_branch":"refs/heads/main","provider_version_descriptions":["deployed in osrd","deployed in osall","deployed in ea"]}
[2024-05-15T10:07:33Z] DEBUG: Webhook context {"base_url":"<https://outsystems.pactflow.io>","consumer_version_branch":"main","build_url":null,"consumer_version_tags":[],"event_name":"contract_requiring_verification_published","provider_version_number":"v1.315.418","provider_version_branch":"main","provider_version_descriptions":["latest from main branch"]}Fábio Rodrigues
05/16/2024, 8:59 AMFábio Rodrigues
05/16/2024, 9:56 AMFábio Rodrigues
05/16/2024, 9:57 AMMatt (pactflow.io / pact-js / pact-go)
can you add this behavior to the documentation. Or, if it’s already there, make it more visible.Any thoughts on how you would reword this to make it clearer: https://docs.pact.io/pact_broker/webhooks#the-contract-requiring-verification-published-event
Matt (pactflow.io / pact-js / pact-go)
Fábio Rodrigues
05/17/2024, 9:31 AMFábio Rodrigues
05/17/2024, 9:31 AMFábio Rodrigues
05/17/2024, 9:32 AMFábio Rodrigues
05/17/2024, 9:32 AMFábio Rodrigues
05/17/2024, 9:38 AMThis event is supported from version 2.82.0 of the Pact Broker. It is a much smarter implementation of the contract_content_changed event, designed specifically for the recommended Pact webhook workflow. It triggers once for each of the following provider versions that are missing a verification result for the newly published pact:
the latest version from the provider's main branch
any version currently deployed to an environment
The provider versions are de-duplicated by version number, so that if the same provider version is the head, and/or deployed to multiple environments, the webhook will only trigger once for each provider version. The template parameter ${pactbroker.providerVersionDescriptions} will contain a description of which branch/stages that particular provider version number pertains to. eg. "latest from main branch, deployed in test"
-->
/info
Please then take notice that because of this several pipeline calls *will* be made to the provider service. For example in a provider service that is deployed in 3 environments (let's say dev, test, prod) and the same version of service is in 2 of them (dev and test for example) it will trigger 3 times. One for main branch, 1 for the version that is in dev/test and another for prod.
So, is our advice to use our template parameters to properly check against the necessary versions, have your test setup able to accommodate testing different versions and the necessary test execution setup and agents to run several pipelines at the same time
/info
<--Fábio Rodrigues
05/17/2024, 9:38 AM