Mohammed Ezzedine
08/09/2023, 11:19 AMMatt (pactflow.io / pact-js / pact-go)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Deleting them from the code was not enough to inform the broker that these contracts would be deleted and not to be validated in future checksYeah that isn’t going to work (existing contracts and verifications would still exist), stopping publishing pacts or verification results wouldn’t help there
Boris
08/10/2023, 1:11 AMMohammed Ezzedine
08/10/2023, 6:00 AMBoris
08/10/2023, 6:01 AMMohammed Ezzedine
08/10/2023, 6:14 AMMohammed Ezzedine
08/10/2023, 6:14 AMBoris
08/10/2023, 6:15 AMBoris
08/10/2023, 6:16 AMMohammed Ezzedine
08/10/2023, 6:18 AMMohammed Ezzedine
08/10/2023, 6:19 AMBoris
08/10/2023, 6:21 AMBoris
08/10/2023, 6:21 AMMohammed Ezzedine
08/10/2023, 6:25 AMBoris
08/10/2023, 6:25 AMBoris
08/10/2023, 6:25 AMBoris
08/10/2023, 6:26 AMBoris
08/10/2023, 6:27 AMBoris
08/10/2023, 6:28 AMMohammed Ezzedine
08/10/2023, 6:36 AMIf that's not happening, you may be generating them with a merge strategy, instead of cleaning up the old interactionsso you're saying, if the consumer stopped using a functionality, hence removed its pact files from its side and deployed to the broker, the new version of the contracts on the broker should squash the old one, i.e. the provider won't need to validate the contracts of the mentioned functionality anymore?
Boris
08/10/2023, 6:37 AMBoris
08/10/2023, 6:37 AMMohammed Ezzedine
08/10/2023, 6:38 AMBoris
08/10/2023, 6:38 AMMohammed Ezzedine
08/10/2023, 6:38 AMBoris
08/10/2023, 6:42 AMMohammed Ezzedine
08/10/2023, 6:44 AMMatt (pactflow.io / pact-js / pact-go)
so you’re saying, if the consumer stopped using a functionality, hence removed its pact files from its side and deployed to the broker, the new version of the contracts on the broker should squash the old one, i.e. the provider won’t need to validate the contracts of the mentioned functionality anymore?pact file = all of the interactions between a given consumer and provider pair. interaction = test case (basically) a. If the consumer no longer talks to the provider, you need to delete the integration from the Broker b. If the consumer no longer needs some of the interactions, the pact file should still be generated and sent to the broker, sans the interactions no longer required. It sounds like the scenario you’re running into is (b). If so, it sounds like you might not be using the most recent guidance for our CI/CD workflows (seen here: https://docs.pact.io/pact_nirvana)
Matt (pactflow.io / pact-js / pact-go)
Mohammed Ezzedine
08/10/2023, 8:57 AM