-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wire protocol broke backwards compatibility for docstrings #1183
Comments
This is intended to help reproduce and diagnose cucumber/cucumber-ruby#1183.
This is intended to help reproduce and diagnose cucumber/cucumber-ruby#1183.
This is intended to help reproduce and diagnose cucumber/cucumber-ruby#1183.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. |
The issue still exists, I don't have the ruby chops to fix it, but it's still relevant. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. |
This issue has been automatically closed because of inactivity. You can support the Cucumber core team on opencollective. |
Problem still exists. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. |
ping |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. |
@raphaelmeyer was it this you mentioned today? |
This is intended to help reproduce and diagnose cucumber/cucumber-ruby#1183.
This is intended to help reproduce and diagnose cucumber/cucumber-ruby#1183.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Starting from no later than cucumber 2.0 backwards compatibility of the wireprotocol got broken for passing docstrings.
Given this step definition (cucumber-cpp):
and this feature:
Expected Behavior
I expect the step definition to be called and passed the doc string. This requires this bit of JSON to fly across the wire (the
id
field is an example):Current Behavior
With cucumber 1.3.8 (delivered with Ubuntu Trusty 14.04) the expectation is met, with Cucumber 2.0.0 (delivered with Ubuntu Xenial 16.04) however this fails. Instead an exception is thrown, from the implementation of the
REGEX_PARAM
macro, carrying the message "Parameter not found". This is the result of the transmitted JSON not being usable anymore, because it now looks like this instead:Possible Solution
This seems to be the cause of serializing Delegator structures internally.
Steps to Reproduce (for bugs)
Running the FeatureShowcase example on the docstring-wire-bug branch of muggenhor/cucumber-cpp with cucumber 1.3.8 will succeed, with 2.0 it will fail.
Context & Motivation
This keeps my company from being able to upgrade our CI infrastructure to more recent Ubuntu versions as it ships with Cucumber 2.0.
Your Environment
Ubuntu Xenial 16.04 with Cucumber 2.0, cucumber-cpp HEAD.
The text was updated successfully, but these errors were encountered: