-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
When publishing verification results, only the errors are sent #1266
Comments
On which version did this start to happen? |
Not sure, but it has been reported with 4.0.10 and 4.1.8. |
4.1.12 released |
Hi, thanks for fixing this ^ I've just opened #1276 to fix a small part of the refactor which came from this issue. |
@uglyog I'm still seeing something related to this in 4.1.14.
Which in pact broker marks all interactions as failed even when all individual tests for the interaction marked as master are marked green and passing. This leads to can-i-deploy failing the build even when master pacts are passing. When I use pact 4.1.6, the results are published one by one and I don't hit this problem. |
#1266 (comment) More logs of the issue above: With Pact 4.1.14: https://pastebin.com/cTqBdx4V |
@Rafaesp the pastebin logs appear to have been removed, are you able to please re-add them? |
@mefellows Done! |
@Rafaesp are you using JUnit 4 or 5? |
JUnit5
|
@Rafaesp I've released 4.1.19 which hopefully resolves your issue |
@uglyog Thank you very much. We have upgraded to the latest and made a few tests. The issue is hard to reproduce, the current status of our pacts is stable and we don't have new contracts so we can't be 100% sure it was fixed. However, we can still see the following behaviour in the Pact Broker that I expected 4.1.19 to have fixed:
As you can see, Pact Broker doesn't know about the status of the interactions and I'm concerned this could lead to the same problem we were seeing when we had new contracts and pending pacts. |
Unknown status means the broker did not receive a result for that interaction. |
@uglyog I can confirm that's still happening with 4.1.19 😞 |
Does that make sense? The broker has marked the pact as verified (it's shown in the screenshot) and the logs show that the verifications have been published. But still, all individual interactions are marked as unknown. @bethesque @mefellows Did you expect that? All interactions in our Pactflow instance (https://imanage.pact.dius.com.au/) are marked as unknown. However, can-i-deploy works as expected but this is very concerning :( |
I can't speak for the implementation details of Pact JVM. I'm hopeful that perhaps there is a bug or detail I'm missing about why interaction level success/fail is not sent through, but I would assume the overall verification cannot be "successful" if the requests are not satisfied. This feedback aside, are you seeing any evidence of the pact verification actually failing but still passing |
@mefellows When verifications fail, can-i-deploy also fails. That works as expected. |
This is actually a Pactflow issue. The verification results have a status for the verification, and then a status for each interaction. The UI is displaying an unknown result where the overall verification is a success, which does not make sense to me. If the overall verification is a success, all the interactions have to be successful, regardless if they have an individual status or not. |
I've made a Pactflow trello card to fix this. |
I believe this is fixed now, are you able to confirm? |
I can confirm the verification status is not unknown anymore! thanks! |
Awesome, thanks Rafa! |
When publishing verification results, only the errors are being sent. This causes the Pact broker to see the passing interactions as un-verified.
For a test with 3 interactions, if two pass and one fails, the following entries are logged:
Then when the results are published:
Only the error is sent.
The text was updated successfully, but these errors were encountered: