Alex Kaufman
07/03/2024, 7:45 PMComputer says no ¯\_(ツ)_/¯
CONSUMER | C.VERSION | PROVIDER | P.VERSION | SUCCESS? | RESULT#
-----------|-----------|-----------------|-----------|----------|--------
hl-console | 1.6.7 | hiddenlayer-sor | 1.0.1 | false | 1
VERIFICATION RESULTS
--------------------
1. <https://hiddenlayer.pactflow.io/contracts/bi-directional/provider/hiddenlayer-sor/version/1.0.1/consumer/hl-console/version/1.6.7/cross-contract-verification-results> (failure)
The cross contract comparison between the pact for version 1.6.7 of hl-console and the oas for the version of hiddenlayer-sor currently in stage (1.0.1) failed
Computer says no ¯\_(ツ)_/¯
CONSUMER | C.VERSION | PROVIDER | P.VERSION | SUCCESS? | RESULT#
-----------|-----------|-----------------|-----------|----------|--------
hl-console | 1.6.6 | hiddenlayer-sor | 1.0.2 | false | 1
VERIFICATION RESULTS
--------------------
1. <https://hiddenlayer.pactflow.io/contracts/bi-directional/provider/hiddenlayer-sor/version/1.0.2/consumer/hl-console/version/1.6.6/cross-contract-verification-results> (failure)
The cross contract comparison between the pact for the version of hl-console currently in stage (1.6.6) and the oas for version 1.0.2 of hiddenlayer-sor failed
I'm trying to wire up my pipelines so on merge of PR it auto deploys but neither of them say they can deploy. Even though both versions 1.6.7 and 1.0.2 work together. Am I misunderstanding how to use can-i-deploy with CD or am I doing it wrong?Alex Kaufman
07/03/2024, 7:54 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Alex Kaufman
07/03/2024, 7:59 PMAlex Kaufman
07/03/2024, 8:00 PMYousaf Nabi (pactflow.io)
[--dry-run], [--no-dry-run]
# When dry-run is enabled, always exit process with a success
code. Can also be enabled by setting the environment variable
PACT_BROKER_CAN_I_DEPLOY_DRY_RUN=true. This mode is useful when
setting up your CI/CD pipeline for the first time, or in a
'break glass' situation where you need to knowingly deploy what
Pact considers a breaking change. For the second scenario, it
is recommended to use the environment variable and just set it
for the build required to deploy that particular version, so
you don't accidentally leave the dry run mode enabled.
makes sense, seems like my easiest course of action is to delete the old contractsYeah that is certainly one approach. Hopefully you've been surfaced enough information to move forward but that would be my reading of those results, but it looks like you are using c-i-d tool correctly. Tiny piece of advice, always useful to share the can-i-deploy flags you've used as well as the output (👏 ) thanks for thank, as it's extra helpful for diagnosis!
Yousaf Nabi (pactflow.io)