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

Make nsq-cluster work on ruby 2.7-3.2 / arm64 #19

Merged
merged 3 commits into from
Nov 28, 2023

Conversation

chen-anders
Copy link
Contributor

@chen-anders chen-anders commented Nov 27, 2023

This PR contains changes to make nsq-cluster work on newer Ruby versions / arm machines (or at least make the specs fully runnable on these versions).

@chen-anders chen-anders force-pushed the anders/make-work-on-modern-ruby branch 2 times, most recently from f513791 to 5ddd9b4 Compare November 27, 2023 11:06
Copy link

@michaelorr michaelorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No concerns, just a few questions.

@@ -19,5 +20,5 @@
end

RSpec.configuration.before :each do
FakeWeb.allow_net_connect = %r[^https?://#{Regexp.escape('127.0.0.1')}.*]
#FakeWeb.allow_net_connect = %r[^https?://#{Regexp.escape('127.0.0.1')}.*]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just remove this block instead of commenting?

@@ -10,7 +11,7 @@

require 'nsq-cluster'

require 'fakeweb'
#require 'fakeweb'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove dead code?

shell: bash
run: |
set -euo pipefail
which nsqd

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to be suspicious of the prior step?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah - there was some debugging I had to do - I think the tests that ran in the subsequent step weren't accepting the modified PATH (vs installing NSQ binaries into the /usr/local/bin path) in parts of my debugging - I think I can get rid of the step

@chen-anders chen-anders force-pushed the anders/make-work-on-modern-ruby branch from 15bf525 to 3d91ce7 Compare November 27, 2023 17:38
@chen-anders chen-anders merged commit 4318b41 into master Nov 28, 2023
4 checks passed
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.

2 participants