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

[WIP] Fix warnings raised by URI 1.0.1 #23261

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

miq-bot pushed a commit to ManageIQ/manageiq-cross_repo-tests that referenced this pull request Nov 8, 2024
@jrafanie
Copy link
Member Author

jrafanie commented Nov 8, 2024

ok, cross repo: ManageIQ/manageiq-cross_repo-tests#928 is green other than an issue requiring qpid_proton in nuage and openstack:

    1) OpenstackStfEventMonitor connecting to STF service URL prepare QDR endpoint
       Failure/Error: require 'qpid_proton'
  
       ArgumentError:
         wrong number of arguments (given 1, expected 0)
       # ./spec/legacy/events/openstack_stf_event_monitor_spec.rb:5:in `block (2 levels) in <top (required)>'

...  

https://github.com/ManageIQ/manageiq-cross_repo-tests/actions/runs/11749197033/job/32736846677?pr=928

    1) ManageIQ::Providers::Nuage::NetworkManager::EventCatcher::Runner .event_monitor_handle
       Failure/Error: require 'qpid_proton'
  
       ArgumentError:
         wrong number of arguments (given 1, expected 0)
       # ./app/models/manageiq/providers/nuage/network_manager/event_catcher/stream.rb:25:in `initialize'
       # ./app/models/manageiq/providers/nuage/network_manager/event_catcher/runner.rb:7:in `new'
       # ./app/models/manageiq/providers/nuage/network_manager/event_catcher/runner.rb:7:in `event_monitor_handle'
       # ./spec/models/manageiq/providers/nuage/network_manager/event_catcher/runner_spec.rb:12:in `block (2 levels) in <top (required)>'

https://github.com/ManageIQ/manageiq-cross_repo-tests/actions/runs/11749197033/job/32736846113?pr=928

@agrare Have you seen this before?

@jrafanie jrafanie force-pushed the fix-uri-1-0-1-warnings branch from e4e6169 to b1a2248 Compare November 11, 2024 14:48
@kbrock
Copy link
Member

kbrock commented Nov 11, 2024

Looks like legit issues with nuage, openstack: number of args to constructor

@jrafanie
Copy link
Member Author

Looks like legit issues with nuage, openstack: number of args to constructor

yeah, thanks, I was meaning to look at those again today

@jrafanie jrafanie added the wip label Nov 11, 2024
@jrafanie
Copy link
Member Author

jrafanie commented Nov 11, 2024

Looks like legit issues with nuage, openstack: number of args to constructor

I wonder if the warnings about uri 1.0.1 are an indicator it's related to 1.0.1

  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/qpid_proton-0.37.0/lib/core/uri.rb:32: warning: already initialized constant URI::AMQP::DEFAULT_PORT
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/qpid_proton-0.37.0/lib/core/uri.rb:32: warning: previous definition of DEFAULT_PORT was here
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/uri-1.0.1/lib/uri/common.rb:108: warning: already initialized constant URI::Schemes::AMQP
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/uri-1.0.1/lib/uri/common.rb:108: warning: previous definition of AMQP was here
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/qpid_proton-0.37.0/lib/core/uri.rb:41: warning: already initialized constant URI::AMQPS::DEFAULT_PORT
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/qpid_proton-0.37.0/lib/core/uri.rb:41: warning: previous definition of DEFAULT_PORT was here
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/uri-1.0.1/lib/uri/common.rb:108: warning: already initialized constant URI::Schemes::AMQPS
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/uri-1.0.1/lib/uri/common.rb:108: warning: previous definition of AMQPS was here
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/qpid_proton-0.37.0/lib/core/uri.rb:32: warning: already initialized constant URI::AMQP::DEFAULT_PORT
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/qpid_proton-0.37.0/lib/core/uri.rb:32: warning: previous definition of DEFAULT_PORT was here
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/uri-1.0.1/lib/uri/common.rb:108: warning: already initialized constant URI::Schemes::AMQP
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/uri-1.0.1/lib/uri/common.rb:108: warning: previous definition of AMQP was here
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/qpid_proton-0.37.0/lib/core/uri.rb:41: warning: already initialized constant URI::AMQPS::DEFAULT_PORT
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/qpid_proton-0.37.0/lib/core/uri.rb:41: warning: previous definition of DEFAULT_PORT was here
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/uri-1.0.1/lib/uri/common.rb:108: warning: already initialized constant URI::Schemes::AMQPS
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/uri-1.0.1/lib/uri/common.rb:108: warning: previous definition of AMQPS was here
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/qpid_proton-0.37.0/lib/core/uri.rb:32: warning: already initialized constant URI::AMQP::DEFAULT_PORT
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/qpid_proton-0.37.0/lib/core/uri.rb:32: warning: previous definition of DEFAULT_PORT was here
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/uri-1.0.1/lib/uri/common.rb:108: warning: already initialized constant URI::Schemes::AMQP
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/uri-1.0.1/lib/uri/common.rb:108: warning: previous definition of AMQP was here
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/qpid_proton-0.37.0/lib/core/uri.rb:41: warning: already initialized constant URI::AMQPS::DEFAULT_PORT
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/qpid_proton-0.37.0/lib/core/uri.rb:41: warning: previous definition of DEFAULT_PORT was here
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/uri-1.0.1/lib/uri/common.rb:108: warning: already initialized constant URI::Schemes::AMQPS
  /home/runner/work/manageiq-cross_repo-tests/manageiq-cross_repo-tests/repos/ManageIQ/manageiq-providers-nuage@3c618859dc3655db13b3a59ae6ab1a41d237162b/vendor/bundle/ruby/3.0.0/gems/uri-1.0.1/lib/uri/common.rb:108: warning: previous definition of AMQPS was here

@jrafanie jrafanie force-pushed the fix-uri-1-0-1-warnings branch from b1a2248 to 8b65989 Compare November 20, 2024 20:11
@jrafanie jrafanie closed this Dec 10, 2024
@jrafanie jrafanie reopened this Dec 10, 2024
@Fryguy Fryguy self-assigned this Dec 10, 2024
@Fryguy
Copy link
Member

Fryguy commented Dec 10, 2024

@jrafanie What is the impetus to upgrade to 1.0? (I noticed that the default gem in Ruby 3.3.6 is 0.13, and in Ruby 3.4.0 preview, it's also 0.13)

@jrafanie
Copy link
Member Author

@jrafanie What is the impetus to upgrade to 1.0? (I noticed that the default gem in Ruby 3.3.6 is 0.13, and in Ruby 3.4.0 preview, it's also 0.13)

We didn't previously have a version constraint on it and upgrading to 1.0 broke developers locally. There isn't a real backward compatible way to make pre-1.0 changes work without warnings in 1.0 so I was going to upgrade after backports were dying down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants