Skip to content

feat: add V4 plugin features (content-type and transport plugins) - #1

Draft
YOU54F wants to merge 3 commits into
mainfrom
feat/plugin-features
Draft

YOU54F wants to merge 3 commits into
mainfrom
feat/plugin-features

Conversation

@YOU54F

@YOU54F YOU54F commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds V4 plugin features under features/V4/plugins: 5 files, 48 scenarios. Tags are @plugin, @plugin:<name> and @transport:<name>.

file scenarios plugins
plugin_http 14 matt, csv, avro
plugin_message 10 matt, avro
plugin_sync_message 6 matt, protobuf
plugin_transport 13 matt (TCP), protobuf (gRPC)
plugin_lifecycle 5 matt, csv, none

Plugins tested: matt 0.1.1, csv 0.0.6, avro 0.1.3, protobuf 0.8.0.

The two fix: commits change mismatch texts to match what the plugins actually report:

  • matt HTTP mismatches
  • csv: column: 1 -> Expected 'abc' to match a number
  • protobuf: Expected to not be empty (the path is reported in a separate field)

Note: this fork's main is 15 upstream commits behind pact-foundation/pact-compatibility-suite main, so those commits also show in this diff. Only the last 3 commits are new.

Runners proven against these features (all 48/48, draft PRs on YOU54F forks)

runner branch result how it drives plugins
pact-reference FFI (C API) YOU54F/pact-reference#16 48/48 on FFI 0.5.4 FFI (reference runner)
pact-reference Rust YOU54F/pact-reference#18 48/48 pact_consumer, plus plugin driver for transports
pact-php YOU54F/pact-php#5 48/48 PhpPact\FFI\Client
pact-python YOU54F/pact-python#4 48/48 with_plugin, plus pact_ffi
pact-ruby v2 YOU54F/pact-ruby#2 48/48 15 DSL / 33 FFI
pact-net YOU54F/pact-net#41 (current interface), YOU54F/pact-net#42 (stacked plugin PRs) 48/48 on each pass DSL count goes 0 → 17 with the stacked plugin PRs

The runner PRs list each language's limitations. Not covered yet: go, jvm and js.

Limitations

  • The FFI has no way to set an interaction's transport outside a mock server. For that reason, the provider transport scenarios write transport straight into the pact file.
  • The protobuf plugin mock server listens on ::1 only, so clients have to fall back from 127.0.0.1.
  • A plugin can report its transport as a catalogue key (transport/matt). Runners normalise it to the last segment.
  • Running these features in CI needs all four plugins installed.

🤖 Generated with Claude Code

YOU54F and others added 3 commits October 29, 2026 13:32
Adds features/V4/plugins with scenarios for HTTP, async message and sync
message interactions whose contents are handled by a plugin, plus plugin
lifecycle and plugin transport (matt over TCP, gRPC over protobuf).

matt is the baseline in every column; csv and avro cover HTTP and async
messages, protobuf covers sync messages and gRPC. Scenarios are tagged
@plugin, @plugin:<name> and @transport:<name> so runners can opt in one
plugin at a time. Provider bodies are shipped pre-encoded in
fixtures/plugins, so runners need no avro or protobuf codegen.

Refs pact-foundation#7

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…utput

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@YOU54F YOU54F closed this Oct 29, 2026
@YOU54F YOU54F reopened this Oct 29, 2026
YOU54F added a commit to YOU54F/pact-python that referenced this pull request Oct 29, 2026
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>
YOU54F added a commit to YOU54F/pact-ruby that referenced this pull request Oct 29, 2026
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
compatibility-suite/run-plugins.sh. It runs on PRs to any base.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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