• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PulpQE / pulp-smash / 421 / 3
63%
master: 63%

Build:
DEFAULT BRANCH: master
Ran 08 Apr 2016 07:24PM UTC
Files 6
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Apr 2016 01:17PM UTC coverage: 73.479%. Remained the same
421.3

push

travis-ci

Ichimonji10
Increase task polling timeout

When Pulp Smash receives an HTTP 202 "accepted" response from Pulp, it
polls each of the spawned tasks and waits for them to complete. (This is
the default behaviour.) Pulp Smash gives each individual task roughly
two minutes to complete before timing out and raising a
`TaskTimedOutError`. Timing out in this manner has value: we don't want
to let a single misbehaved task to block the test suite from executing,
and if a single task takes excessively long, this can be considered a
bug in its own right.

Unfortunately, real world test results show that a wide variety of tasks
occasionally take longer than two minutes. The failures occur at a low
rate, but are widely spread through the test suite. In one especially
bad test run, five of roughly eighty test cases failed.

There are at least two ways to deal with time-outs. One is to expand the
`poll_task` and `poll_spawned_tasks` methods, and make it possible to
specify a time-out when calling the method. For example:

    poll_spawned_tasks(server_config, call_report, timeout)

This is a good solution if we have a task or series of tasks that we
know will be especially long running. For example, if we ask Pulp to
calculate content applicability for ten hosts, we will want to extend
the timeout for that one series of tasks.

Another solution is to extend the default time-out for all task polling.
This latter solution has risks, as can be gleaned from the first
paragraph of this commit message. However, it is more appropriate if the
default time-out is too short in a wide variety of cases.

Extend the default timeout from two to three minutes.

302 of 411 relevant lines covered (73.48%)

0.73 hits per line

Source Files on job 421.3
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 421
  • Travis Job 421.3
  • d41e1706 on github
  • Prev Job for on master (#419.3)
  • Next Job for on master (#422.4)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc