Repository navigation
Conversation
Runs the pact-compatibility-suite features/V4/plugins scenarios with cucumber via compatibility-suite/run-plugins.sh (skips when PACT_COMPAT_SUITE is unset). Each scenario uses the pact-ruby DSL where it can express the scenario and falls back to the FFI bindings otherwise; per-feature DSL/FFI counts are printed at the end. 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 compatibility-suite/run-plugins.sh. It runs on PRs to any base. 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 a cucumber runner for the V4 plugin features to pact-ruby v2:
compatibility-suite/run-plugins.shandcompatibility-suite/plugins/.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.PACT_COMPAT_PATH_REPORT=<file>writes the DSL/FFI path counts for each feature as JSON.Results
lib/changes. The existing plugin specs are unchanged.with_plugin/with_plugin_contentswith_transportThis is the first pact-ruby v2 compatibility runner. The core V1–V4 features aren't covered yet.
Limitations (none raised)
DSL gaps
with_pluginrequires a version.Bugs
MockServer#cleanup_plugins/#free_pact_handlepass the port instead of the pact handle, so plugins are never released.ensureraises before cleanup. That leaks the mock server and the plugin.mismatches_error_msgneedsRSpec.current_example.matched?on a nil mock server.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, unliketest.yml.🤖 Generated with Claude Code