Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can-i-deploy fails even when there is a successfull verification result #539

Closed
2 of 3 tasks
vblahoz opened this issue Jan 4, 2022 · 3 comments
Closed
2 of 3 tasks

Comments

@vblahoz
Copy link

vblahoz commented Jan 4, 2022

The can-i-deploy response contains single verification result in the matrix whitch is successful.
The summary claims there is one verification with success and one with unknown status.
The error says "There is no verified pact between the latest version of producer_app with tag production (036b8bcd3a43808f87e2cc22af63ae1e6bb65ab0) and version c1db00bd1a15c014826be2c79ec4fec94cff377b of consumer_app" which is clearly not true (see the matrix in the response)

I have already (please mark the applicable with an x):

  • Upgraded to the latest Pact Broker OR
  • Checked the CHANGELOG to see if the issue I am about to raise has been fixed
  • Created an executable example that demonstrates the issue using either a:
    • Dockerfile
    • Git repository with a Travis or Appveyor (or similar) build

Software versions

  • pact-broker docker version: 2.93.2.0
  • pact broker client details: pact-ruby-standalone CLI v 1.4.0

Expected behaviour

can-i-deploy check succeeds when there is successfull relevant verification between required versions of participants

Actual behaviour

can-i-deploy claims the consumer version is not deployable with an error even with successfull verification in the matrix

Relevant log files

can-i-reploy-result.txt

@bethesque
Copy link
Member

Hi. Apologies that it's taken me so long to reply to this. I can't do much to identify the issue without the correct data. Can you recreate the scenario using this please? https://github.com/pact-foundation/pact_broker/blob/master/ISSUES.md

@bethesque
Copy link
Member

Just having a quick look through the json, I think you have duplicate providers. In the error message, it says "producer_app", but in the links, I see "producer-app".

"There is no verified pact between the latest version of producer_app with tag production (036b8bcd3a43808f87e2cc22af63ae1e6bb65ab0) and version c1db00bd1a15c014826be2c79ec4fec94cff377b of consumer_app"
https://pactbroker.com/pacticipants/producer-app/versions/036b8bcd3a43808f87e2cc22af63ae1e6bb65ab0/tags/development

@YOU54F
Copy link
Member

YOU54F commented Jun 1, 2022

hi @vblahoz,

This should be resolved now, haven't had a chance to test, but have assigned myself so will do, and close off these issues

Relevant website documentation is here

https://docs.pact.io/pact_broker/configuration/features#checking-for-potential-duplicate-pacticipant-names

Thanks Beth!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants