Source: ruby-omniauth-oauth2-generic
Version: 0.2.8-1
Severity: serious
User: debian...@lists.debian.org
Usertags: regression

Dear maintainer(s),

Your package has an autopkgtest, great. However, it fails since early 2025. Can you please investigate the situation and fix it? I copied some of the output at the bottom of this report.

The release team has announced [1] that failing autopkgtest on amd64 and arm64 are considered RC in testing.

More information about this bug and the reason for filing it can be found on https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

With my Release Team member hat on I allow you to tag this bug as trixie-ignore if this is nearly completely a test issue as it's so late in the freeze and it's not worth removing the package from trixie because of a failing test at this moment unless it exposes a much bigger issue. Having said that, if this is a test only issue and a fix is possible without fully removing the autopkgtest and without making the test superficial, it's still welcome, but it would need to happen soon.

Paul

[1] https://lists.debian.org/debian-devel-announce/2019/07/msg00002.html

https://ci.debian.net/data/autopkgtest/testing/amd64/r/ruby-omniauth-oauth2-generic/61535243/log.gz

30s autopkgtest [15:33:45]: test gem2deb-test-runner: [-----------------------
 30s
30s ┌──────────────────────────────────────────────────────────────────────────────┐ 30s │ Checking Rubygems dependency resolution on ruby3.3 │ 30s └──────────────────────────────────────────────────────────────────────────────┘
 30s
 30s RUBYLIB=. GEM_PATH= ruby3.3 -e gem\ \"omniauth-oauth2-generic\"
 30s mv lib ./.gem2deb.lib
 30s mv Gemfile.lock ./.gem2deb.Gemfile.lock
 30s mv ./.gem2deb.lib lib
 30s mv ./.gem2deb.Gemfile.lock Gemfile.lock
 30s
30s ┌──────────────────────────────────────────────────────────────────────────────┐ 30s │ Run tests for ruby3.3 from debian/ruby-tests.rake │ 30s └──────────────────────────────────────────────────────────────────────────────┘
 30s
30s RUBYLIB=. GEM_PATH= ruby3.3 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake
 30s mv lib ./.gem2deb.lib
 30s mv Gemfile.lock ./.gem2deb.Gemfile.lock
31s /usr/bin/ruby3.3 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation
 32s
 32s OmniAuth::Strategies::OAuth2Generic
 32s   using default options
 32s     responds to the default auth URL (oauth2_generic) (FAILED - 1)
 32s   with custom provider settings
 32s     the auth endpoint (/auth/{name})
 32s       responds to the custom auth URL (FAILED - 2)
32s runs lambdas in authorize_params option and includes the result (FAILED - 3)
 32s       redirects to the correct custom authorize URL (FAILED - 4)
 32s       passes the correct redirect URL (FAILED - 5)
 32s     the callback (/auth/{name}/callback)
32s D, [2025-06-26T15:33:47.199209 #1802] DEBUG -- omniauth: (custom) Callback phase initiated. 32s responds to the custom callback URL and fetches a token from the custom token path 32s D, [2025-06-26T15:33:47.218493 #1802] DEBUG -- omniauth: (custom) Callback phase initiated.
 32s       fetches user info from the custom user info path
32s D, [2025-06-26T15:33:47.236742 #1802] DEBUG -- omniauth: (custom) Callback phase initiated.
 32s       sets up the auth hash for the client app
32s D, [2025-06-26T15:33:47.255092 #1802] DEBUG -- omniauth: (custom) Callback phase initiated.
 32s       parses user info correctly from the custom format
 32s
 32s Failures:
 32s
32s 1) OmniAuth::Strategies::OAuth2Generic using default options responds to the default auth URL (oauth2_generic)
 32s      Failure/Error: expect(last_response).to be_redirect
32s expected `#<Rack::MockResponse:0x00007fd154293e98 @original_headers={"Content-Type"=>"text/plain"}, @errors="",...1.12/lib/rack/response.rb:359>, @block=nil, @body=["false"], @buffered=true, @length=5, @cookies={}>.redirect?` to be truthy, got false 32s # ./spec/strategies/oauth2_generic_spec.rb:19:in `block (3 levels) in <top (required)>' 32s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
 32s
32s 2) OmniAuth::Strategies::OAuth2Generic with custom provider settings the auth endpoint (/auth/{name}) responds to the custom auth URL
 32s      Failure/Error: expect(last_response).to be_redirect
32s expected `#<Rack::MockResponse:0x00007fd154126c40 @original_headers={"Content-Type"=>"application/json"}, @erro....1.12/lib/rack/response.rb:359>, @block=nil, @body=["null"], @buffered=true, @length=4, @cookies={}>.redirect?` to be truthy, got false 32s # ./spec/strategies/oauth2_generic_spec.rb:51:in `block (4 levels) in <top (required)>' 32s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
 32s
32s 3) OmniAuth::Strategies::OAuth2Generic with custom provider settings the auth endpoint (/auth/{name}) runs lambdas in authorize_params option and includes the result 32s Failure/Error: redirect = URI.parse(last_response.headers['Location'])
 32s
 32s      URI::InvalidURIError:
 32s        bad URI(is not URI?): nil
32s # ./spec/strategies/oauth2_generic_spec.rb:55:in `block (4 levels) in <top (required)>' 32s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
 32s      # ------------------
 32s      # --- Caused by: ---
 32s      # NoMethodError:
 32s      #   undefined method `to_str' for nil
32s # ./spec/strategies/oauth2_generic_spec.rb:55:in `block (4 levels) in <top (required)>'
 32s
32s 4) OmniAuth::Strategies::OAuth2Generic with custom provider settings the auth endpoint (/auth/{name}) redirects to the correct custom authorize URL
 32s      Failure/Error:
 32s        expect(last_response.headers['Location'])
32s .to match(%r{\Ahttps://custom.example.com/custom/authorize/path\?})
 32s
32s expected nil to match /\Ahttps:\/\/custom.example.com\/custom\/authorize\/path\?/ 32s # ./spec/strategies/oauth2_generic_spec.rb:60:in `block (4 levels) in <top (required)>' 32s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
 32s
32s 5) OmniAuth::Strategies::OAuth2Generic with custom provider settings the auth endpoint (/auth/{name}) passes the correct redirect URL
 32s      Failure/Error:
 32s        expect(last_response.headers['Location'])
32s .to match(/redirect_uri=https%3A%2F%2Fmy_server.com%2Foauth%2Fcallback&/)
 32s
32s expected nil to match /redirect_uri=https%3A%2F%2Fmy_server.com%2Foauth%2Fcallback&/ 32s # ./spec/strategies/oauth2_generic_spec.rb:65:in `block (4 levels) in <top (required)>' 32s # /usr/share/rubygems-integration/all/gems/webmock-3.25.1/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
 32s
 32s Finished in 0.1711 seconds (files took 0.70828 seconds to load)
 32s 9 examples, 5 failures
 32s
 32s Failed examples:
 32s
32s rspec ./spec/strategies/oauth2_generic_spec.rb:17 # OmniAuth::Strategies::OAuth2Generic using default options responds to the default auth URL (oauth2_generic) 32s rspec ./spec/strategies/oauth2_generic_spec.rb:50 # OmniAuth::Strategies::OAuth2Generic with custom provider settings the auth endpoint (/auth/{name}) responds to the custom auth URL 32s rspec ./spec/strategies/oauth2_generic_spec.rb:54 # OmniAuth::Strategies::OAuth2Generic with custom provider settings the auth endpoint (/auth/{name}) runs lambdas in authorize_params option and includes the result 32s rspec ./spec/strategies/oauth2_generic_spec.rb:59 # OmniAuth::Strategies::OAuth2Generic with custom provider settings the auth endpoint (/auth/{name}) redirects to the correct custom authorize URL 32s rspec ./spec/strategies/oauth2_generic_spec.rb:64 # OmniAuth::Strategies::OAuth2Generic with custom provider settings the auth endpoint (/auth/{name}) passes the correct redirect URL
 32s
32s /usr/bin/ruby3.3 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
 32s mv ./.gem2deb.lib lib
 32s mv ./.gem2deb.Gemfile.lock Gemfile.lock
32s autopkgtest [15:33:47]: test gem2deb-test-runner: -----------------------]

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers

Reply via email to