Project

General

Profile

Actions

Bug #16700

closed

Intermittent AboutIntegrationTest.test_0001_about page integration test failures

Added by Dominic Cleal about 8 years ago. Updated over 6 years ago.

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

Description

The About page integration tests are failing semi-regularly on test_develop with timeouts. One specifically listed the following:

Capybara::Poltergeist::StatusFailError: Request to 'http://127.0.0.1:37939/about' failed to reach server, check DNS and/or server status - Timed out with the following resources still waiting http://127.0.0.1:37939/compute_resources/304431216-another-ec2/ping,http://127.0.0.1:37939/compute_resources/980190962-bigcompute/ping,http://127.0.0.1:37939/compute_resources/30517511-gce123/ping,http://127.0.0.1:37939/compute_resources/367690737-mycompute/ping,http://127.0.0.1:37939/compute_resources/628705878-openstackcr/ping,http://127.0.0.1:37939/compute_resources/510899777-Ovirt/ping,http://127.0.0.1:37939/compute_resources/305613588-Vmware/ping,http://127.0.0.1:37939/compute_resources/932571420-yourcompute/ping,http://127.0.0.1:37939/assets/patternfly/PatternFlyIcons-webfont.ttf...

Others fail with:

RuntimeError: Requests did not finish in 60 seconds
    test/integration_test_helper.rb:104:in `block in <class:IntegrationTest>' (RuntimeError)
/usr/local/rvm/gems/ruby-2.2.3@test_develop-2/gems/capybara-2.9.1/lib/capybara/server.rb:93

Another unrelated test (RoutingIntegrationTest.test_0001_should go to v1 controller for /v1/ passed in URL) failed with a compute resource ping timeout:

Excon::Error::Timeout: connect_write timeout reached
    app/models/compute_resources/foreman/model/ec2.rb:68:in `regions'
    app/models/compute_resources/foreman/model/ec2.rb:77:in `test_connection'
    app/models/compute_resource.rb:104:in `ping'
    app/controllers/compute_resources_controller.rb:84:in `block (2 levels) in ping'
    app/controllers/compute_resources_controller.rb:83:in `ping'
    app/controllers/concerns/application_shared.rb:14:in `set_timezone'
    app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
    lib/middleware/catch_json_parse_errors.rb:8:in `call'
    lib/middleware/tagged_logging.rb:18:in `call' (Excon::Error::Timeout)
/usr/local/rvm/gems/ruby-2.3.0@test_develop-1/gems/excon-0.52.0/lib/excon/socket.rb:267

It looks likely that the smart proxies and compute resources being pinged from the about page via AJAX are not stubbed, so suffer from network timeouts.


Related issues 2 (0 open2 closed)

Related to Foreman - Refactor #16557: Move tests into test/models, controllers, helpers dirs.ClosedDominic Cleal09/14/2016Actions
Related to Foreman - Bug #18239: Intermittent AboutIntegrationTest.test_0002_about page failures, AJAX expectations not satisfiedClosedDominic Cleal01/25/2017Actions
Actions

Also available in: Atom PDF