Repository navigation
Conversation
…ublished When verification results were not published, the stage used to select the broker notices was inverted for pending errors: a clean run showed the `success_false_published_false` notices, and a run with only pending failures showed the `success_true_published_false` ones. The condition was missing a `!` (`pending_errors.is_empty()` instead of `!pending_errors.is_empty()`). The stage is now selected by a single function used for both the published and not-published cases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
After verifying each pact, the verifier shows the broker notices (from
verificationProperties.notices) for the matchingafter_verification:*stage. When results were not published, the condition was missing a!:So when publishing is off, which is the normal local workflow:
success_false_published_falsesuccess_true_published_falsesuccess_true_published_falsesuccess_false_published_falsesuccess_false_published_falseThe published branch already had the correct condition.
Change
The stage is now picked by
after_verification_notice_stage(success, published), and both branches use it, so the two conditions can no longer drift apart. A unit test covers all four stages.Separate from #611, which stops publishing results when interactions were filtered out. That PR sends more runs down the not-published path, so this fix affects more users once it lands. The two PRs merge cleanly in either order.
🤖 Generated with Claude Code