Project

General

Profile

Bug #25867

Repository controller transient test failures

Added by Justin Sherrill 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Category:
Tests
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Expected response to be a <2XX: success>, but was a <500: Internal Server Error>
Response body: {"displayMessage":"Fatal Error: See logs for details or contact system administrator","errors":["stack level too deep"]} (Minitest::Assertion)
/var/lib/workspace/workspace/katello-pr-test/test/controllers/api/v2/repositories_controller_test.rb:58

Caused by:

2019-01-11T21:26:25 [E|app|] SystemStackError: stack level too deep
 | /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-4335/gems/activesupport-5.2.1/lib/active_support/core_ext/object/json.rb:171:in `dup'
 | /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-4335/gems/activesupport-5.2.1/lib/active_support/core_ext/object/json.rb:171:in `block in as_json'
 | /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-4335/gems/activesupport-5.2.1/lib/active_support/core_ext/object/json.rb:171:in `each'
 | /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-4335/gems/activesupport-5.2.1/lib/active_support/core_ext/object/json.rb:171:in `map'

SNIP

 | /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-4335/gems/activesupport-5.2.1/lib/active_support/core_ext/object/json.rb:56:in `as_json'
 | /var/lib/workspace/workspace/katello-pr-test/app/services/katello/repository_type.rb:33:in `as_json'
 | /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-4335/gems/activesupport-5.2.1/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'
 | /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-4335/gems/activesupport-5.2.1/lib/active_support/core_ext/object/json.rb:152:in `map'
 | /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-4335/gems/activesupport-5.2.1/lib/active_support/core_ext/object/json.rb:152:in `as_json'
 | /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-4335/gems/activesupport-5.2.1/lib/active_support/json/encoding.rb:35:in `encode'
 | /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-4335/gems/activesupport-5.2.1/lib/active_support/json/encoding.rb:22:in `encode'
 | /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-4335/gems/activesupport-5.2.1/lib/active_support/core_ext/object/json.rb:41:in `to_json'
 | /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-4335/gems/actionpack-5.2.1/lib/action_controller/metal/renderers.rb:157:in `block in <module:Renderers>'
 | /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-4335/gems/actionpack-5.2.1/lib/action_controller/metal/renderers.rb:150:in `block in _render_to_body_with_renderer'
 | /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-4335/gems/activesupport-5.2.1/lib/active_support/core_ext/benchmark.rb:14:in `ms'
 | /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-4335/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:46:in `block in render'
 | /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-4335/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
 | /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-4335/gems/activerecord-5.2.1/lib/active_record/railties/controller_runtime.rb:31:in `cleanup_view_runtime'
 | /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-4335/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:45:in `render'
 | /var/lib/workspace/workspace/katello-pr-test/app/controllers/katello/api/v2/repositories_controller.rb:231:in `repository_types'

Associated revisions

Revision a137467e (diff)
Added by Justin Sherrill 2 months ago

Fixes #25867 - do not serialize all of repo types

a previous change added attributes to the
repository type class which included class
references, appearing to sometimes cause
circular json serialization.

History

#1 Updated by The Foreman Bot 2 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7926 added

#2 Updated by Andrew Kofink 2 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.12.0

#3 Updated by Justin Sherrill 2 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Jonathon Turel about 2 months ago

  • Target version changed from Katello 3.12.0 to Katello 3.11.0

Also available in: Atom PDF