Thai Le
08/23/2022, 4:10 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Beth (pactflow.io/Pact Broker/pact-ruby)
pact-broker can-i-deploy --pacticipant monorepo-consumer-1 --version 1 --pacticipant monorepo-consumer-2 --version 1 --to-environment production
Computer says no ¯_(ツ)_/¯
#
CONSUMER | C.VERSION | PROVIDER | P.VERSION | SUCCESS? | RESULT#
--------------------|-----------|------------|-----------|----------|--------
monorepo-consumer-1 | 1 | provider-1 | 1 | false | 1
monorepo-consumer-2 | 1 | provider-2 | 1 | true | 2
#
VERIFICATION RESULTS
--------------------
1. <http://localhost:9292/pacts/provider/provider-1/consumer/monorepo-consumer-1/pact-version/6e0b1c114e7b8a4775ff584af54bac734408e31a/metadata/Y3ZuPTE/verification-results/109> (failure)
2. <http://localhost:9292/pacts/provider/provider-2/consumer/monorepo-consumer-2/pact-version/dd1edab05d6a9f4ff7dc4f17dbf3ea585c8220cb/metadata/Y3ZuPTE/verification-results/110> (success)
#
The verification for the pact between version 1 of monorepo-consumer-1 and the version of provider-1 currently deployed or released to production (1) failed
Beth (pactflow.io/Pact Broker/pact-ruby)
--to-environment
flag ensures that you are backwards compatible with all the applications that are already deployed in that environment. It may get confused if you have a bi-directional dependency between two apps within the monorepo, and each has a change that depends on the other. In that case, you may want to list each dependency explicitly and not use the --to-environment.Beth (pactflow.io/Pact Broker/pact-ruby)
pact-broker can-i-deploy \
--pacticipant monorepo-consumer-1 --version 1 \
--pacticipant monorepo-consumer-2 --version 1 \
--pacticipant provider-1 --environment production \
--pacticipant provider-2 --environment production
Matt (pactflow.io / pact-js / pact-go)
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)
pact-broker can-i-deploy --pacticipant monorepo-app-1 --version 2 --pacticipant monorepo-app-2 --version 2 --to-environment production
Beth (pactflow.io/Pact Broker/pact-ruby)
Thai Le
08/24/2022, 7:59 PMBeth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Timothy Jones
08/24/2022, 11:32 PMBeth (pactflow.io/Pact Broker/pact-ruby)
Thai Le
08/26/2022, 1:50 PM