Has anyone run into an issue with Pactflow where i...
# pactflow
w
Has anyone run into an issue with Pactflow where in Pactflow, the contract compatibility returns , but can-i-deploy fails? I get the generic failure message, but on verbose, it says verificationStatus failed. Clicking the link to the failure though brings me to the Pactflow verification results, that say it passed. The matrix view also shows no failures. Strangely though, no contract changes have been made either. Just randomly blocking our pipeline starting today
h
Just some thoughts, maybe the consumer selectors is a good start if this is a provider. Are you doing can-i-deploy with tags or environment? The hal browser might also help determine what fails the check.
m
Can you please share the output of can I deploy?
w
Copy code
Computer says no ¯_(ツ)_/¯

CONSUMER    | C.VERSION  | PROVIDER           | P.VERSION  | SUCCESS? | RESULT#
------------|------------|--------------------|------------|----------|--------
api-gateway | cf9445f... | payment-processing | 3fe42ae... | true     | 1      
api-gateway | cf9445f... | rates-engine       | 3ab4234... | false    | 2      

VERIFICATION RESULTS
--------------------
1. <https://uship.pactflow.io/contracts/bi-directional/provider/payment-processing/version/3fe42ae73ad7ee326ea772f6c3d31b06609ea6ed/consumer/api-gateway/version/cf9445f6c6fd57e7735ee2c45443633ceb92ce49/cross-contract-verification-results> (success)
2. <https://uship.pactflow.io/contracts/bi-directional/provider/rates-engine/version/3ab42341e5be6236f6f7f8938ebd433d283f058e/consumer/api-gateway/version/cf9445f6c6fd57e7735ee2c45443633ceb92ce49/cross-contract-verification-results> (failure)

The cross contract verification between the pact for the latest version of api-gateway (cf9445f6c6fd57e7735ee2c45443633ceb92ce49) and the oas for the version of rates-engine currently in dev (3ab42341e5be6236f6f7f8938ebd433d283f058e) failed
Using HAL browser, the failure link returns a 404 for BOTH ironically The other weird thing I'm seeing is if I purge the contracts and reupload them via our pipelines, the reverse order happens. The payment processing contract fails but the rates-engine contract passes
Copy code
I also see:
1. <https://uship.pactflow.io/contracts/bi-directional/provider/rates-engine/version/3ab42341e5be6236f6f7f8938ebd433d283f058e/consumer/api-gateway/version/79d67e9839b7cbec13d5a94de788937ad9ab10f1/cross-contract-verification-results> (success)
All required verification results are published and successful
but clicking on that link returns this:
Copy code
CONSUMER    | C.VERSION  | PROVIDER           | P.VERSION  | SUCCESS? | RESULT#
------------|------------|--------------------|------------|----------|--------
api-gateway | fca0c9f... | rates-engine       | 28be355... | true     | 1      
api-gateway | fca0c9f... | payment-processing | 838e679... | false    | 2      

VERIFICATION RESULTS
--------------------
1. <https://uship.pactflow.io/contracts/bi-directional/provider/rates-engine/version/28be355f626442bc5740048ed09a650c0ffe66bd/consumer/api-gateway/version/fca0c9f34255d12343c6a996c24523b1f9846e6d/cross-contract-verification-results> (success)
2. <https://uship.pactflow.io/contracts/bi-directional/provider/payment-processing/version/838e679b59b1e183a9c7dc654bc041c829a2a37b/consumer/api-gateway/version/fca0c9f34255d12343c6a996c24523b1f9846e6d/cross-contract-verification-results> (failure)
It just seems like now it's whichever the 2nd pact test is in the list fails. This one also returns a failure after we deleted everything and reset the contracts but following the link shows success
m
Hi Wayne. We saw the bounced support ticket over the weekend. We’ll find a way to transfer this to ensure it doesn’t get lost. Please expect a contact from us shortly
i
Hi Wayne, I am the Engineering Manager from Pactflow, I can see the issue you found has come thru our support system to our team, we will start looking into it, and advise soon (this conversation has all been recorded in our ticketing system). Just want to apologies for the delay, and the bounce backs you have received in the last few days
🙏 3
j
I'm having the same issue as well. Using Can I Deploy in the Pactflow UI shows verification failed, but if you click on it, it takes you to a successfully verified pact.
🤔 1
w
Looks like whatever new build was pushed out recently fixed it. Things are back to normal for us again at least