lp:~javier.collado/checkbox/bug990075-2
- Get this branch:
- bzr branch lp:~javier.collado/checkbox/bug990075-2
Branch merges
- Marc Tardif (community): Disapprove
- Brendan Donegan (community): Needs Information
-
Diff: 222 lines (+123/-29)3 files modifiedcheckbox/job.py (+0/-15)
debian/changelog (+3/-0)
plugins/jobs_info.py (+120/-14)
Related bugs
Related blueprints
Branch information
Recent revisions
- 1444. By Javier Collado
-
Removed custom code to provide readable output and replaced with difflib
Instead of keeping track of broken dependencies, difflib is used against the
original whitelist and the new whitelist after the job reordering to provide a
diff style output that is much more readable to the user. - 1443. By Javier Collado
-
Updated whitelist error message to display detailed information properly
This change needs the fix for bug1012052 to work fine.
- 1441. By Javier Collado
-
Implemented new algorithm to order jobs
The new algorithm no longer uses a standard topological ordering algorithm
because of the lack of information available in job descriptions. For example,
most of the jobs are expected to be executed before suspend/suspend_ advanced,
but they are not listed as a dependency for this job. Instead, just the jobs
that are expected to be executed after suspend depend on
suspend/suspend_ advanced. To address this problem, it's assumed that the whitelist is already almost
fine, but there are just a few test cases that are out of order (if this is not
the case, the final ordering will probably not be valid). After that, a list of
dependencies and reverse dependencies is created and an attempt to order all
the messages in the whitelist one by one is made. If the order in the whitelist
is fine, then the messsage is added to the list of sorted jobs, if that's not
the case, the message is cached and added as soon as the missing dependencies
have been added as well. - 1439. By Javier Collado
-
Removed unused code to delete duplicates from job store
jobs_info.py plugin now takes care of the duplicates by updating the message
list before any message is added to the store. Hence, the code to remove files
from store for duplicated message is no longer needed. - 1438. By Javier Collado
-
Fixed report-message callback to update existing messages
In the past messages for the same job were added multiple times and it looks
like the store took care of removing duplicates. Now, given that jobs are
already ordered, they can be updated in place before adding them to the store. - 1437. By Javier Collado
-
Added topological sort implementation
Unfortunately, this breaks the selection dialog and the test cases
are no long displayed under their test suites.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:checkbox