Project

General

Profile

Actions

Bug #9138

closed

Intermittent HostTest/NIC integration test failures

Added by Dominic Cleal over 9 years ago. Updated over 8 years ago.

Status:
Duplicate
Priority:
High
Category:
Tests
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

test_develop has failed to run integration tests on two of the three runs:

HostTest::create new host page::NIC modal window::editing interfaces.test_0002_ok button updates overview table

Failed assertion, no message given. (test_0002_ok button updates overview table)
/var/lib/workspace/workspace/test_develop/database/postgresql/ruby/1.9.3/test/integration/host_test.rb:142

and

HostTest::create new host page::NIC modal window::adding interfaces.test_0003_setting primary updates host name

Failed assertion, no message given. (test_0003_setting primary updates host name)
/var/lib/workspace/workspace/test_develop/database/postgresql/ruby/2.0.0/test/integration/host_test.rb:192

HostTest::create new host page::NIC modal window::editing interfaces.test_0002_ok button updates overview table

Failed assertion, no message given. (test_0002_ok button updates overview table)
/var/lib/workspace/workspace/test_develop/database/postgresql/ruby/2.0.0/test/integration/host_test.rb:142

http://ci.theforeman.org/job/test_develop/1111/


Related issues 3 (0 open3 closed)

Related to Foreman - Refactor #7456: Extract primary interface from hostClosedGreg Sutcliffe09/16/2014Actions
Related to Foreman - Bug #14097: Only run DatabaseCleaner as 'truncation' on JS testsClosedDaniel Lobato Garcia03/08/2016Actions
Related to Foreman - Bug #15134: Intermittent HostJSTest::NIC modal window::adding interfaces.test_0003_setting primary updates host name failureClosedIvan Necas05/23/2016Actions
Actions #1

Updated by Dominic Cleal over 9 years ago

  • Related to Refactor #7456: Extract primary interface from host added
Actions #2

Updated by Dominic Cleal over 9 years ago

  • Status changed from New to Assigned
  • Assignee set to Tomáš Strachota
Actions #3

Updated by The Foreman Bot over 9 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2115 added
  • Pull request deleted ()
Actions #4

Updated by Dominic Cleal over 9 years ago

We just had the following failure in a plugin test, seemingly at random

undefined method `find' for nil:NilClass (NoMethodError)
/var/lib/workspace/workspace/test_plugin/foreman/test/integration/host_test.rb:230:in `block (4 levels) in <class:HostTest>'
Actions #5

Updated by Dominic Cleal over 9 years ago

The above comment was the "switch primary" test, also getting a lot of failures on "switch provisioning" below it.

Other common failures:

<3> expected but was
<2>. (test_0002_ok button adds new interface)
/var/lib/workspace/workspace/test_develop_pr_core/database/postgresql/ruby/2.0.0/test/integration/host_test.rb:163    
Firing a click at co-ordinates [848.5, 305] failed. Poltergeist detected another element with CSS selector 'html.no-js body.modal-open div#main div#content.container form#new_host.form-horizontal.well div.tab-content div#network.tab-pane.active fieldset#interfaces div#interfaceModal.modal.fade.in div.modal-dialog div.modal-content div.modal-body fieldset#interface div.clearfix div.form-group span.help-block.help-inline' at this position. It may be overlapping the element you are trying to interact with. If you don't care about overlapping elements, try using node.trigger('click'). (Capybara::Poltergeist::MouseEventFailed)
/usr/local/rvm/gems/ruby-2.0.0-p353@test_develop_pr_core-1/gems/poltergeist-1.6.0/lib/capybara/poltergeist/node.rb:23:in `rescue in command'
/usr/local/rvm/gems/ruby-2.0.0-p353@test_develop_pr_core-1/gems/poltergeist-1.6.0/lib/capybara/poltergeist/node.rb:17:in `command'
/usr/local/rvm/gems/ruby-2.0.0-p353@test_develop_pr_core-1/gems/poltergeist-1.6.0/lib/capybara/poltergeist/node.rb:116:in `click'
/usr/local/rvm/gems/ruby-2.0.0-p353@test_develop_pr_core-1/gems/capybara-2.4.4/lib/capybara/node/element.rb:133:in `block in click'
/usr/local/rvm/gems/ruby-2.0.0-p353@test_develop_pr_core-1/gems/capybara-2.4.4/lib/capybara/node/base.rb:84:in `synchronize'
/usr/local/rvm/gems/ruby-2.0.0-p353@test_develop_pr_core-1/gems/capybara-2.4.4/lib/capybara/node/element.rb:133:in `click'
/var/lib/workspace/workspace/test_develop_pr_core@2/database/postgresql/ruby/2.0.0/test/integration/host_test.rb:263:in `block (5 levels) in <class:HostTest>'
Actions #6

Updated by Dominic Cleal over 8 years ago

  • Related to Bug #14097: Only run DatabaseCleaner as 'truncation' on JS tests added
Actions #7

Updated by Dominic Cleal over 8 years ago

  • Status changed from Ready For Testing to Duplicate

Re-enabled and fixed via #14097 and others.

Actions #8

Updated by Dominic Cleal over 8 years ago

  • Related to Bug #15134: Intermittent HostJSTest::NIC modal window::adding interfaces.test_0003_setting primary updates host name failure added
Actions

Also available in: Atom PDF