Project

General

Profile

Bug #25824

Test failure with latest Sinatra: can't dup NilClass (TypeError)

Added by Lukas Zapletal 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Category:
BMC
Target version:
-

Description

Recent change in Sinatra codebase fails one of our tests:

https://github.com/sinatra/sinatra/pull/1479#issuecomment-453034886

can't dup NilClass (TypeError)
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/sinatra-2.0.5/lib/sinatra/base.rb:1092:in `dup'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/sinatra-2.0.5/lib/sinatra/base.rb:1092:in `block in dispatch!'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/sinatra-2.0.5/lib/sinatra/base.rb:1092:in `each'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/sinatra-2.0.5/lib/sinatra/base.rb:1092:in `dispatch!'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/sinatra-2.0.5/lib/sinatra/base.rb:924:in `block in call!'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/sinatra-2.0.5/lib/sinatra/base.rb:1076:in `block in invoke'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/sinatra-2.0.5/lib/sinatra/base.rb:1076:in `catch'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/sinatra-2.0.5/lib/sinatra/base.rb:1076:in `invoke'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/sinatra-2.0.5/lib/sinatra/base.rb:924:in `call!'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/sinatra-2.0.5/lib/sinatra/base.rb:913:in `call'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/rack-protection-2.0.5/lib/rack/protection/xss_header.rb:18:in `call'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/rack-protection-2.0.5/lib/rack/protection/path_traversal.rb:16:in `call'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/rack-protection-2.0.5/lib/rack/protection/json_csrf.rb:26:in `call'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/rack-protection-2.0.5/lib/rack/protection/base.rb:50:in `call'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/rack-protection-2.0.5/lib/rack/protection/base.rb:50:in `call'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/rack-protection-2.0.5/lib/rack/protection/frame_options.rb:31:in `call'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/rack-2.0.6/lib/rack/null_logger.rb:9:in `call'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/rack-2.0.6/lib/rack/head.rb:12:in `call'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/sinatra-2.0.5/lib/sinatra/base.rb:194:in `call'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/sinatra-2.0.5/lib/sinatra/base.rb:1957:in `call'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/rack-test-1.1.0/lib/rack/mock_session.rb:29:in `request'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/rack-test-1.1.0/lib/rack/test.rb:266:in `process_request'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/rack-test-1.1.0/lib/rack/test.rb:129:in `custom_request'
/usr/local/rvm/gems/ruby-2.3.5@test_proxy_develop_pr_core-1/gems/rack-test-1.1.0/lib/rack/test.rb:58:in `get'
/usr/local/rvm/rubies/ruby-2.3.5/lib/ruby/2.3.0/forwardable.rb:204:in `get'
/var/lib/workspace/workspace/test_proxy_develop_pr_core/puppet/4.10.0/ruby/2.3/test/bmc/bmc_api_test.rb:179:in `test_api_recovers_from_nil_provider'

Associated revisions

Revision 515a57ce (diff)
Added by Lukas Zapletal 5 months ago

Fixes #25824 - BMC provider nil exception test fixed

History

#1 Updated by The Foreman Bot 5 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/smart-proxy/pull/628 added

#2 Updated by The Foreman Bot 5 months ago

  • Pull request https://github.com/theforeman/smart-proxy/pull/629 added

#3 Updated by The Foreman Bot 5 months ago

  • Pull request https://github.com/theforeman/smart-proxy/pull/630 added

#4 Updated by The Foreman Bot 5 months ago

  • Pull request https://github.com/theforeman/smart-proxy/pull/631 added

#5 Updated by Anonymous 5 months ago

  • Status changed from Ready For Testing to Closed

#6 Updated by Michael Moll 4 months ago

  • Fixed in Releases 1.20.2, 1.21.0 added

#7 Updated by Tomer Brisker 4 months ago

  • Fixed in Releases deleted ()

With 1.21 due soon, there will likely not be a 1.19.2 release. Removing.

Also available in: Atom PDF