Skip to content

fix(verifier): show the correct broker notices when results are not published - #612

Open
YOU54F wants to merge 1 commit into
masterfrom
fix/no-publish-notices-condition
Open

YOU54F wants to merge 1 commit into
masterfrom
fix/no-publish-notices-condition

Conversation

@YOU54F

@YOU54F YOU54F commented Nov 25, 2026

Copy link
Copy Markdown
Member

Problem

After verifying each pact, the verifier shows the broker notices (from verificationProperties.notices) for the matching after_verification:* stage. When results were not published, the condition was missing a !:

if !errors.is_empty() || pending_errors.is_empty() {   // should be !pending_errors.is_empty()

So when publishing is off, which is the normal local workflow:

Run outcome Notices shown Should be
No errors, no pending errors success_false_published_false success_true_published_false
Only pending errors success_true_published_false success_false_published_false
Errors success_false_published_false (correct)

The 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

…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

No deployments
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

Successfully merging this pull request may close these issues.

1 participant