Use httpclient to run "Daily build with Ruby head"#50911
Merged
rafaelfranca merged 1 commit intorails:mainfrom Jan 29, 2024
Merged
Use httpclient to run "Daily build with Ruby head"#50911rafaelfranca merged 1 commit intorails:mainfrom
httpclient to run "Daily build with Ruby head"#50911rafaelfranca merged 1 commit intorails:mainfrom
Conversation
This pull request addresses "Daily build with Ruby head" failure https://buildkite.com/rails/rails-nightly/builds/101#018d5285-b4de-4072-b7d3-61c19f21347a Action Mailbox needs `webmock` which depends on `httpclient`. `httpclient` master branch that added `mutex_m` as a dependency via nahi/httpclient#455 to support Ruby 3.4.0dev. ```ruby cd actionmailbox bundle exec rake test ``` ```ruby ... snip ... /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/gems/3.4.0+0/gems/webmock-3.19.1/lib/webmock/http_lib_adapters/httpclient_adapter.rb:234:in `alias_method': undefined method `do_get_block' for class `WebMockHTTPClient' (NameError) alias_method :do_get_block_without_webmock, :do_get_block ^^^^^^^^^^^^ from /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/gems/3.4.0+0/gems/webmock-3.19.1/lib/webmock/http_lib_adapters/httpclient_adapter.rb:234:in `<class:WebMockHTTPClient>' from /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/gems/3.4.0+0/gems/webmock-3.19.1/lib/webmock/http_lib_adapters/httpclient_adapter.rb:233:in `<top (required)>' from /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/gems/3.4.0+0/gems/webmock-3.19.1/lib/webmock.rb:52:in `require_relative' from /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/gems/3.4.0+0/gems/webmock-3.19.1/lib/webmock.rb:52:in `<top (required)>' from <internal:/home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/3.4.0+0/rubygems/core_ext/kernel_require.rb>:37:in `require' from <internal:/home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/3.4.0+0/rubygems/core_ext/kernel_require.rb>:37:in `require' from /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/3.4.0+0/bundled_gems.rb:74:in `block (2 levels) in replace_require' from /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/gems/3.4.0+0/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in `require' from /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/3.4.0+0/bundler/runtime.rb:60:in `block (2 levels) in require' from <internal:array>:52:in `each' from /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/3.4.0+0/bundler/runtime.rb:55:in `block in require' from <internal:array>:52:in `each' from /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/3.4.0+0/bundler/runtime.rb:44:in `require' from /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/3.4.0+0/bundler.rb:187:in `require' from /home/yahonda/src/github.com/rails/rails/actionmailbox/test/dummy/config/application.rb:7:in `<top (required)>' from /home/yahonda/src/github.com/rails/rails/actionmailbox/test/dummy/config/environment.rb:2:in `require_relative' from /home/yahonda/src/github.com/rails/rails/actionmailbox/test/dummy/config/environment.rb:2:in `<top (required)>' from /home/yahonda/src/github.com/rails/rails/actionmailbox/test/test_helper.rb:8:in `require_relative' from /home/yahonda/src/github.com/rails/rails/actionmailbox/test/test_helper.rb:8:in `<top (required)>' from /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/3.4.0+0/bundled_gems.rb:74:in `require' from /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/3.4.0+0/bundled_gems.rb:74:in `block (2 levels) in replace_require' from /home/yahonda/src/github.com/rails/rails/actionmailbox/test/controllers/ingresses/mailgun/inbound_emails_controller_test.rb:3:in `<top (required)>' from /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/3.4.0+0/bundled_gems.rb:74:in `require' from /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/3.4.0+0/bundled_gems.rb:74:in `block (2 levels) in replace_require' from /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/gems/3.4.0+0/gems/rake-13.1.0/lib/rake/rake_test_loader.rb:21:in `block in <main>' from /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/gems/3.4.0+0/gems/rake-13.1.0/lib/rake/rake_test_loader.rb:6:in `select' from /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/gems/3.4.0+0/gems/rake-13.1.0/lib/rake/rake_test_loader.rb:6:in `<main>' rake aborted! Command failed with status (1): [ruby -w -I"lib:test" /home/yahonda/.rbenv/versions/ruby-dev/lib/ruby/gems/3.4.0+0/gems/rake-13.1.0/lib/rake/rake_test_loader.rb "test/controllers/ingresses/mailgun/inbound_emails_controller_test.rb" "test/controllers/ingresses/mandrill/inbound_emails_controller_test.rb" "test/controllers/ingresses/postmark/inbound_emails_controller_test.rb" "test/controllers/ingresses/relay/inbound_emails_controller_test.rb" "test/controllers/ingresses/sendgrid/inbound_emails_controller_test.rb" "test/controllers/rails/action_mailbox/inbound_emails_controller_test.rb" "test/generators/mailbox_generator_test.rb" "test/jobs/incineration_job_test.rb" "test/migrations_test.rb" "test/models/table_name_test.rb" "test/unit/inbound_email/incineration_test.rb" "test/unit/inbound_email/message_id_test.rb" "test/unit/inbound_email_test.rb" "test/unit/mail_ext/address_equality_test.rb" "test/unit/mail_ext/address_wrapping_test.rb" "test/unit/mail_ext/addresses_test.rb" "test/unit/mailbox/bouncing_test.rb" "test/unit/mailbox/callbacks_test.rb" "test/unit/mailbox/notifications_test.rb" "test/unit/mailbox/routing_test.rb" "test/unit/mailbox/state_test.rb" "test/unit/relayer_test.rb" "test/unit/router_test.rb" "test/unit/test_helper_test.rb" ] <internal:array>:52:in `each' <internal:array>:52:in `each' /home/yahonda/.rbenv/versions/ruby-dev/bin/bundle:25:in `load' /home/yahonda/.rbenv/versions/ruby-dev/bin/bundle:25:in `<main>' Tasks: TOP => test (See full trace by running task with --trace) $ ```
Member
Author
|
Confirmed the original NameError has been addressed. There are other remaining failures/errors. Will take a look at them later. https://buildkite.com/rails/rails-nightly/builds/108#018d57ac-4e3b-4703-9dba-fd847ca0f5f2/1187-1196 https://buildkite.com/rails/rails-nightly/builds/108#018d57ac-4e6d-4d11-8741-4a2f6ca84fc8/1165-1205 https://buildkite.com/rails/rails-nightly/builds/108#018d57ac-4f2a-45f1-86b9-9015a7b0a463/1165-2002 |
Earlopain
added a commit
to Earlopain/rails
that referenced
this pull request
Oct 18, 2024
Followup to rails#50911 Not quite sure what happened here, the commit is still the latest. I simply ran `bundle lock --update=httpclient`. When running the railties tests: ```rb .........../home/earlopain/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/bundler/gems/httpclient-d57cc6d5ffee/lib/httpclient/auth.rb:11: warning: mutex_m was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0. You can add mutex_m to your Gemfile or gemspec to silence this warning. /home/earlopain/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/bundler/gems/httpclient-d57cc6d5ffee/lib/httpclient/auth.rb:11: warning: mutex_m was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0. You can add mutex_m to your Gemfile or gemspec to silence this warning. /home/earlopain/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/bundler/gems/httpclient-d57cc6d5ffee/lib/httpclient/auth.rb:11: warning: mutex_m was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0. You can add mutex_m to your Gemfile or gemspec to silence this warning. /home/earlopain/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/bundler/gems/httpclient-d57cc6d5ffee/lib/httpclient/auth.rb:11: warning: mutex_m was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0. You can add mutex_m to your Gemfile or gemspec to silence this warning. /home/earlopain/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/bundler/gems/httpclient-d57cc6d5ffee/lib/httpclient/auth.rb:11: warning: mutex_m was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0. You can add mutex_m to your Gemfile or gemspec to silence this warning. /home/earlopain/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/bundler/gems/httpclient-d57cc6d5ffee/lib/httpclient/auth.rb:11: warning: mutex_m was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0. You can add mutex_m to your Gemfile or gemspec to silence this warning. /home/earlopain/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/bundler/gems/httpclient-d57cc6d5ffee/lib/httpclient/auth.rb:11: warning: mutex_m was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0. You can add mutex_m to your Gemfile or gemspec to silence this warning. /home/earlopain/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/bundler/gems/httpclient-d57cc6d5ffee/lib/httpclient/auth.rb:11: warning: mutex_m was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0. You can add mutex_m to your Gemfile or gemspec to silence this warning. ./home/earlopain/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/bundler/gems/httpclient-d57cc6d5ffee/lib/httpclient/auth.rb:11: warning: mutex_m was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0. You can add mutex_m to your Gemfile or gemspec to silence this warning. ... ``` You get the idea. Not sure why strict warnings don't pick this up.
4 tasks
yahonda
added a commit
to yahonda/rails
that referenced
this pull request
Feb 22, 2025
httpclient 2.9.0 has been released that supports Ruby 3.4 changes: - making `mutex_m` as bundled gem nahi/httpclient#455 nahi/httpclient#472 - Chilled strings nahi/httpclient#471 Kind of reverting rails#50911
4 tasks
JuanVqz
pushed a commit
to JuanVqz/rails
that referenced
this pull request
Feb 24, 2025
httpclient 2.9.0 has been released that supports Ruby 3.4 changes: - making `mutex_m` as bundled gem nahi/httpclient#455 nahi/httpclient#472 - Chilled strings nahi/httpclient#471 Kind of reverting rails#50911
dkani
pushed a commit
to dkani/rails
that referenced
this pull request
Mar 3, 2025
httpclient 2.9.0 has been released that supports Ruby 3.4 changes: - making `mutex_m` as bundled gem nahi/httpclient#455 nahi/httpclient#472 - Chilled strings nahi/httpclient#471 Kind of reverting rails#50911
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.
Motivation / Background
This pull request addresses "Daily build with Ruby head" failure https://buildkite.com/rails/rails-nightly/builds/101#018d5285-b4de-4072-b7d3-61c19f21347a
Detail
Action Mailbox needs
webmockwhich depends onhttpclient.httpclientmaster branch that addedmutex_mas a dependency via nahi/httpclient#455 to support Ruby 3.4.0dev.Steps to reproduce
Without this commit
Additional information
httpclientgem that includes nahi/httpclient#455 has not been released to rubygems.org yet. In the meantime I want to make "Daily build with Ruby head" green. Once the newer versions of http client is released this commit can be reverted.Checklist
Before submitting the PR make sure the following are checked:
[Fix #issue-number]