Repository navigation
Conversation
…were filtered out Results were published for every pact fetched whenever publish options were set, even if a filter (FilterInfo / PACT_DESCRIPTION / PACT_PROVIDER_STATE) meant only some, or none, of a pact's interactions were verified. The broker records these as a verification of the whole pact, so a pact where nothing ran was published as successful, and a later passing filtered run could override an earlier failure for the same provider version, making it deployable. Results are now only published for a pact when every interaction in it was verified, matching pact-ruby (0c56752). Otherwise a warning is logged and nothing is published for that pact, including tags and branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
YOU54F
added a commit
to YOU54F/pact-net
that referenced
this pull request
Nov 25, 2026
Reproduces the setup from the community thread "HTTP error 429 Too Many Requests to PactFlow": one filtered PactVerifier per xUnit fact, each fetching all pacts from the broker and publishing results. Shows the broker request volume and the misleading verification results this produces (including a masked failure passing can-i-deploy), next to the recommended single unfiltered verifier with a provider-state URL. Refs pact-foundation/pact-ruby#143, pact-foundation/pact-reference#611 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
verify_provider_asyncpublishes results for every pact fetched whenever publish options are set. It does not check whether a filter (FilterInfo,PACT_DESCRIPTION,PACT_PROVIDER_STATE) meant only some of a pact's interactions were verified. The broker records each of those results as a verification of the whole pact, so:success=true, because "all results passed" is vacuously true for an empty set.This was handled in pact-ruby by pact-foundation/pact-ruby@0c56752. That behaviour was not carried over to the Rust core.
Reported via https://community.smartbear.com/t/http-error-429-too-many-requests-to-pactflow/893. The request volume from that setup is what triggered the 429s, and it also produced misleading results.
Change
Results for a pact are now published only when every interaction in it was verified, which matches pact-ruby. Otherwise the verifier logs this warning and skips publishing for that pact, including tags and branch:
This also stops a pact that failed verification internally (no results at all) from being published as successful.
Tests
all_interactions_verified.libpact_ffibuilt from this branch). Filtered per-test runs no longer publish partial results, and the failing provider version stays non-deployable. Unfiltered runs are unchanged.🤖 Generated with Claude Code