Repository navigation
Conversation
Run the V4 plugin features (HTTP, async/sync messages, lifecycle and plugin transports) from an external compatibility suite checkout given by PACT_COMPAT_SUITE. The module is skipped when the variable is unset or the features are missing, and @wip scenarios are not collected. Plugin and transport tags are not turned into pytest markers, as tags like `@plugin:matt` are not valid marker names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds a workflow that checks out the suite branch with features/V4/plugins (YOU54F/pact-compatibility-suite#1), installs the matt, csv, avro and protobuf plugins with the Pact CLI, and runs test_v4_plugins.py. It runs on draft PRs and PRs to any base, which test.yml skips. 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.
Summary
Adds the V4 plugin features to the pact-python compatibility suite:
tests/compatibility_suite/test_v4_plugins.py.A
pytest_bdd_apply_taghook inconftest.pystops the@plugin:*/@transport:*tags becoming unknown markers.Depends on the suite branch
feat/plugin-features(YOU54F/pact-compatibility-suite#1). Its features are read fromPACT_COMPAT_SUITE, and the run is skipped when that is unset or has nofeatures/V4/plugins. Needs plugins matt 0.1.1, csv 0.0.6, avro 0.1.3 and protobuf 0.8.0 installed.Results
src/changes.Limitations
with_plugin/with_plugin_contentsare generic, but there's no public API for plugin-transport mock servers or raw mismatches. The runner usespact_ffi.create_mock_server_for_transportandmock_server_mismatchesthrough the privatePact._handle.using_pluginload errors leave out the reason, so the runner appendsget_error_message().::1only.Core suite gaps (not in this PR): 12 skipped, 12 scenarios not collected
--container.V4/synchronous_message_consumer(11) andV4/v4(1).CI
.github/workflows/compat-plugins.ymlchecks outYOU54F/pact-compatibility-suite@feat/plugin-features(overridable withworkflow_dispatchinputssuite-repository/suite-ref), installs matt 0.1.1, csv 0.0.6, avro 0.1.3 and protobuf 0.8.0, and runs the 48 plugin scenarios withPACT_COMPAT_SUITEset. It has no PR base filter and runs on drafts, unliketest.yml.It pins
pytest<9.2: pytest-bdd 9.0 callsFixtureManager._arg2fixturedefs, which pytest 9.2 removed. The same break probably affectstest.yml.🤖 Generated with Claude Code