Sorting jobs is time consuming
Bug #564703 reported by
Marc Legris
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox |
Fix Released
|
Wishlist
|
Javier Collado |
Bug Description
Feature request:
When checkbox runs initially it gathers information on the machine it is running on. If this information could be stored so it only runs once this would save time. Some machines take as long as 10 minutes to run this task.
Related branches
lp:~oem-qa/checkbox/patch_selection_dialog_sooner_and_whitelist_ordering
Rejected
for merging
into
lp:checkbox
- Daniel Manrique (community): Disapprove
- Marc Tardif: Pending requested
-
Diff: 205 lines (+116/-19)4 files modifiedcheckbox/job.py (+101/-19)
plugins/jobs_info.py (+3/-0)
plugins/jobs_prompt.py (+9/-0)
plugins/suites_prompt.py (+3/-0)
Changed in oem-qa-checkbox: | |
assignee: | nobody → Javier Collado (javier.collado) |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
affects: | oem-qa-checkbox → checkbox |
visibility: | private → public |
Changed in checkbox: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
The time spent during initial data gathering is mostly split between resources and jobs. As far as resources are concerned, you might like to run each of the commands under the resources.txt* file in the base checkbox package. If these are reasonably quick, then the problem is not with the resources. As far as jobs are concerned, the current algorithm for topologically sorting jobs has an order of growth of O(n^2), ie quadratic. This means that Checkbox becomes significantly slower as the number of jobs increases.
Please let me know if any of the resource commands take a significant amount of time to make sure that the problem is really with the gathering of jobs. Thanks!