Project

General

Profile

Actions

Bug #14340

closed

Icons loading causes intermittent issues in integration tests (especially under heavier load of the test machine)

Added by Ivan Necas about 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tests
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

While debugging #13293, I've noticed, that it can take a while to load icons, when the machine
is under load. This can potentially lead to layout change (see the screenshots), that leads
https://github.com/teampoltergeist/poltergeist#mouseeventfailed-errors.

Debugging notes:

The issue is pretty hard to debug. Here are some hints to get some additional
tricks that can help to detect the issue:

I've used this snippet so see and compare how the page
looks right before the click event should happen

20.times do
  visit edit_host_path(host)
  assert page.has_link?('Parameters', :href => '#params')
  click_link 'Parameters'
  save_screenshot
end

Another good thing was looking into output of the `click` method
(it returns the coordinates that were clicked). Tracking that
for a while showed this:

2016-03-23T19:14:37 [app] [D] ====== click: {"position"=>{"x"=>851, "y"=>385}}
2016-03-23T19:15:20 [app] [D] ====== click: {"position"=>{"x"=>851, "y"=>385}}
2016-03-23T19:15:48 [app] [D] ====== click: {"position"=>{"x"=>851, "y"=>365}}

The coordinates of the event when the failure happened were different to the usual
values, which was a good indication that something is wrong with the layout.

Also, running it inside VM with 2GB of RAM and running 2 more tests suites in parallel
to simulate the load in Jenkins helped to reproduce the issue.


Files

without-icons.png View without-icons.png 42.8 KB Layout when the icons are not loaded yet Ivan Necas, 03/24/2016 05:16 AM
with-icons.png View with-icons.png 44.6 KB Layout after the icons are loaded - the position of the remove button changes Ivan Necas, 03/24/2016 05:16 AM

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #13293: Intermittent host#edit parameter integration test failures after timeoutResolvedDaniel Lobato Garcia01/20/2016Actions
Actions #1

Updated by Ivan Necas about 8 years ago

  • Related to Bug #13293: Intermittent host#edit parameter integration test failures after timeout added
Actions #2

Updated by Marek Hulán about 8 years ago

  • Category set to Tests
Actions #4

Updated by Ivan Necas about 8 years ago

  • Status changed from New to Assigned
Actions #5

Updated by The Foreman Bot about 8 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3364 added
Actions #6

Updated by Ivan Necas about 8 years ago

  • Description updated (diff)
Actions #7

Updated by Ivan Necas about 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #8

Updated by Dominic Cleal almost 8 years ago

  • translation missing: en.field_release set to 136
Actions

Also available in: Atom PDF