Skip to content

Help With Ruby 3.4 test compatability #5219

Closed
@arielvalentin

Description

@arielvalentin

I am working on adding test converation for Ruby 3.4 to OTel Ruby and am running into some issues with our test setup and was wondering if you could take a look

https://github.com/open-telemetry/opentelemetry-ruby-contrib/actions/runs/13046294152/job/36397339951?pr=1347

/opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/gems/3.4.0/gems/graphql-2.0.18/lib/graphql/schema/interface.rb:74:in 'GraphQL::Schema::Interface::DefinitionMethods#included': Attach interfaces using `implements(Vehicle)`, not `include(Vehicle)` (RuntimeError)
  	from /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/gems/3.4.0/gems/graphql-2.0.18/lib/graphql/schema/member/has_interfaces.rb:20:in 'Module#include'
  	from /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/gems/3.4.0/gems/graphql-2.0.18/lib/graphql/schema/member/has_interfaces.rb:20:in 'block in GraphQL::Schema::Member::HasInterfaces#implements'
  	from /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/gems/3.4.0/gems/graphql-2.0.18/lib/graphql/schema/member/has_interfaces.rb:9:in 'Array#each'
  	from /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/gems/3.4.0/gems/graphql-2.0.18/lib/graphql/schema/member/has_interfaces.rb:9:in 'GraphQL::Schema::Member::HasInterfaces#implements'
  	from /home/runner/work/opentelemetry-ruby-contrib/opentelemetry-ruby-contrib/instrumentation/graphql/test/test_helper.rb:49:in '<class:Car>'
  	from /home/runner/work/opentelemetry-ruby-contrib/opentelemetry-ruby-contrib/instrumentation/graphql/test/test_helper.rb:48:in '<top (required)>'
  	from /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
  	from /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
  	from /home/runner/work/opentelemetry-ruby-contrib/opentelemetry-ruby-contrib/instrumentation/graphql/test/instrumentation/graphql/instrumentation_test.rb:7:in '<top (required)>'
  	from /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
  	from /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
  	from /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/gems/3.4.0/gems/rake-13.2.1/lib/rake/rake_test_loader.rb:21:in 'block in <main>'
  	from /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/gems/3.4.0/gems/rake-13.2.1/lib/rake/rake_test_loader.rb:6:in 'Array#select'
  	from /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/gems/3.4.0/gems/rake-13.2.1/lib/rake/rake_test_loader.rb:6:in '<main>'

Should we be setting our test types up differently here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions