Hi,
On foreman-tasks, we're seeing failures on postgres and mysql for the Usergroup controller: http://ci.theforeman.org/job/test_plugin_matrix/921/database=mysql,ruby=2.1,slave=fast/console
I've run the tests several times, and the failures seem consistent, and not transient like some of the other things we've seen post-rails 4. Locally works fine, any ideas?
Is it possible to get access to logs and such from jenkins? I know it's somehow possible, but I can't remember - I'd like to see the test.log, and maybe even grab the Gemfile.lock to reproduce the environment fully.
Here's the errors we see:
12:12:02 Finished in 577.323481s, 5.8044 runs/s, 13.4725 assertions/s.
12:12:02
12:12:02 1) Failure:
12:12:02 UsergroupsControllerTest::GET #edit#test_0001_assigns the found object to an instance variable [/var/lib/workspace/workspace/test_plugin_matrix/database/mysql/ruby/2.1/slave/fast/foreman/test/functional/shared/basic_rest_response_test.rb:32]:
12:12:02 — expected
12:12:02 +++ actual
12:12:02 @@ -1 +1 @@
12:12:02 -#<Usergroup id: 1, name: "usergroup1", created_at: "2016-01-18 12:01:25", updated_at: "2016-01-18 12:01:25", admin: false>
12:12:02 +nil
12:12:02
12:12:02
12:12:02
12:12:02 2) Failure:
12:12:02 UsergroupsControllerTest::GET #edit#test_: UsergroupsController::GET #edit should render template edit. [/usr/local/rvm/gems/ruby-2.1.5@test_plugin_matrix-0/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:344]:
12:12:02 expecting <"edit"> but rendering with <["common/404", "layouts/base", "layouts/application"]>
12:12:02
12:12:02
12:12:02 3) Failure:
12:12:02 UsergroupsControllerTest::GET #edit#test_: UsergroupsController::GET #edit should respond with 200. [/usr/local/rvm/gems/ruby-2.1.5@test_plugin_matrix-0/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:344]:
12:12:02 Expected response to be a 200, but was 404
12:12:02
12:12:02 3351 runs, 7778 assertions, 3 failures, 0 errors, 0 skips
A-OK locally:
Running:
…
Finished in 19.923396s, 1.6062 runs/s, 2.0077 assertions/s.
32 runs, 40 assertions, 0 failures, 0 errors, 0 skips
Coverage report generated for Functional Tests to /home/vagrant/foreman/coverage. 7305 / 27887 LOC (26.2%) covered.