Repository navigation
Conversation
Adds a `plugins` cucumber target covering the plugin lifecycle, HTTP, message, synchronous message and transport features (48 scenarios, all passing with the matt, csv, avro and protobuf plugins). The features are read from PACT_COMPAT_SUITE until they reach the suite subtree; the target skips itself when they are missing. Transport mock servers are driven through the plugin driver directly, as PluginMockServer::url() panics on matt's address and its drop does not see matt's mismatches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Checks out YOU54F/pact-compatibility-suite feat/plugin-features (overridable on workflow_dispatch), installs the matt, csv, avro and protobuf plugins and runs compatibility-suite's plugins test. Runs on draft PRs and PRs to any base. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
matt is not in the pact plugin repository index, so `pact plugin install matt` exits 1 without output. Install it from the mefellows/pact-matt-plugin v0.1.1 release instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 Rust compatibility suite runner:
compatibility-suite/tests/plugins.rs, a newpluginstest target.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
48/48 pass locally.
CI
.github/workflows/compat-plugins.yml(jobRust plugins (ubuntu-latest)) checks out YOU54F/pact-compatibility-suite atfeat/plugin-features(both overridable onworkflow_dispatch), installs the four plugins with the Pact CLI and runscargo test --test pluginswithPACT_COMPAT_SUITEpointing at that checkout. Unliketest.yml, it runs on draft PRs, so it runs on this one. Linux only.test.yml'scargo testis unaffected until the subtree has the plugin features.Limitations (pact_consumer gaps; no library changes made, none raised)
using_pluginpanics when a plugin can't load. The lifecycle steps call the driver'sload_pluginfirst to get the error.start_mock_server_v2,get_mock_server_results,shutdown_mock_server), notstart_mock_server_async, because:PluginMockServer::url()panics withEmptyHoston matt's address.get_mock_server_results, so they are missed.transport/matt), so the runner normalises it to the last segment.::1only, so the TCP/gRPC clients fall back from 127.0.0.1 to ::1. gRPC is driven with h2c framing through theh2crate.Core (non-plugin) gap: the Windows CRLF multipart bug pattern is still at
compatibility-suite/tests/shared_steps/mod.rs:239. It's fixed in the FFI runner (6354c12).🤖 Generated with Claude Code