Whitelist generation without broken dependencies

Bug #1020877 reported by Javier Collado
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Editor
Triaged
High
Unassigned

Bug Description

When generating a whitelist, checkbox-editor makes sure that some conditions are met to avoid breaking dependencies:

- When a test case is selected the test suite that contains it is selected as well.
- When a test case is selected all the test cases in the `depends` field are also selected.
- When a test case is deselected, the test suite that contains the test case is deselected if no other jobs are selected.
- When a test case is deselected, any reverse dependencies (test cases depending on the test case being deselected) are deselected as well.

However, there are a couple of things regarding ordering that could be improved to get whitelists that don't need to be reordered when checkbox is executed:
- Resource jobs should always be at the top of the whitelist
- Dependencies that are found in different test suites aren't automatically selected and that can be used to generate whitelists with wrong ordering.

For example, when clicking on `keys/sleep` test, `suspend/suspend_advanced` isn't selected. Besides this, if `suspend/suspend_advanced` is selected later, then it's appended to the whitelist even though `keys/sleep` test depends on it and this generates a wrongly ordered whitelist.

Changed in checkbox-editor:
assignee: nobody → Javier Collado (javier.collado)
importance: Undecided → High
status: New → Triaged
status: Triaged → In Progress
Changed in checkbox-editor:
status: In Progress → Triaged
assignee: Javier Collado (javier.collado) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.