Skip to content
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

Ruby 3.1.2 Traveling Ruby + Package with 3.1.4 #105

Closed
wants to merge 27 commits into from

Conversation

YOU54F
Copy link
Member

@YOU54F YOU54F commented May 11, 2023

Aim

  • Use Ruby 3.1.2 traveling-ruby due to errors in 3.2.2 seen in pact_mock-service
  • Identify all consumers of pact-ruby-standalone
  • Document "Rube Goldberg" machine for
    • Pact Ruby Reference Core as referenced here in the dependency graph of doom
  • Update all affected repos
  • Test all affected repos

Note:- For full background, multi-repo tracking, see pact-foundation/roadmap#10

Why?

  • Users of our pact-ruby-standalone project, have been stuck on a packaged Ruby 2.4 run-time due to the build system traveling-ruby, being out-of-maintainence. It has been revived by your very own Devo Avo, into the 21st century with
    • Update to Ruby 3.1.2 & 3.2.2
    • Support for Arm64 Darwin
    • Support for Aarch64 Linux
    • Support for x86 and x64 windows

What happened?

  • pact-ruby-standlaone 2.0.0 was released
  • Issues identified by users / maintainers
    • Requirement to install libyaml-dev for debian based users
  • Error when writing pact files for pact-go-v1 where users are asked to pin the version of the standalone, but provided a script which returns the latest.

Root cause?

  • An error in pact_mock-service was reproducible in CI, when using Ruby 3.2.2
    • Downgrading to Ruby 3.1.2 resolved the issue.

Related issues

What is this PR doing?

  • Releasing pact-ruby-standalone with ruby 3.1.2
  • Updated the release note process so we
    • Provide install support via our script for windows users
    • Provide a more complete autogenerated README, which is committed back to the repo at release time

Ruby Goldberg Machine

graph TD;
    pact-support;
    pact-support-->pact-mock_service;
    pact-support-->pact-message;
    pact-mock_service-->pact-message;
    pact-message-->pact-provider-verifier;
    pact-->pact-provider-verifier;
    pact_broker-client;
    pact-->pact-ruby-standalone;
    pact-mock_service-->pact-ruby-standalone;
    pact-support-->pact-ruby-standalone;
    pact-provider-verifier-->pact-ruby-standalone;
    pact_broker-client-->pact-ruby-standalone;
    pact-message-->pact-ruby-standalone;
    pact-->pact-ruby-cli;
    pact-ruby-standalone-->homebrew-pact-ruby-standalone;
    pact-ruby-standalone-->pact-python;
    pact-ruby-standalone-->pact-php;
    pact-ruby-standalone-->pact-node-->pact-js-v9;
    pact-js-v9-->jest-pact;
    pact-js-v9-->mocha-pact;
    pact-js-v9-->nestjs-pact;
    pact-ruby-standalone-->pact-go-v1;
    pact-ruby-standalone-->pact-net;
    pact-ruby-standalone-->pact-consumer-swift;
Loading

Ruby Standalone Consumers Goldberg Machine

graph TD;
    pact-->pact-ruby-standalone;
    pact-mock_service-->pact-ruby-standalone;
    pact-support-->pact-ruby-standalone;
    pact-provider-verifier-->pact-ruby-standalone;
    pact_broker-client-->pact-ruby-standalone;
    pact-message-->pact-ruby-standalone;
    pact-ruby-standalone-->homebrew-pact-ruby-standalone;
    pact-ruby-standalone-->pact-python;
    pact-ruby-standalone-->pact-php;
    pact-ruby-standalone-->pact-node-->pact-js-v9;
    pact-js-v9-->jest-pact;
    pact-js-v9-->mocha-pact;
    pact-js-v9-->nestjs-pact;
    pact-ruby-standalone-->pact-go-v1;
    pact-ruby-standalone-->pact-net;
    pact-ruby-standalone-->pact-consumer-swift;
Loading

Pact Ruby Standalone components

Pact Ruby Standalone Consumers

Versions

Tested using

Test runs

Pull requests to consume new 3.1.2 package

note - Some PR's are merged to consumer the 3.2.2 runtime and will be updated, and raised as new PR's to consume this 3.1.2 runtime

@YOU54F
Copy link
Member Author

YOU54F commented May 18, 2023

Closing this as no longer required as we have fixed forward with Ruby 3.2.2

Will pull out some of the other changes separately as there is still some relevant stuff in here (developer docs, user facing docker images)

@YOU54F YOU54F closed this May 18, 2023
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