checkbox-gui runs whitelists I did not select (default whitelist selection broken)

Bug #1287389 reported by Daniel Manrique
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox GUI (Legacy)
Fix Released
High
Sylvain Pineau
checkbox (Ubuntu)
Fix Released
High
Sylvain Pineau

Bug Description

This is a trusty system with checkbox-gui -0.17.6-0ubuntu1.

How to reproduce:

1- Launch checkbox-gui
2- Select the sniff whitelist

Expected result:
- only sniff tests

Actual result:
- sniff tests *plus* all the tests in the default whitelist.

I think the code attempts to select the default whitelist, but it only updates the internal state, not the visual representation (default should have a check mark). If started from console, I can see it changing all whitelists to "false" and at the end saying:

'default' "/plainbox/whitelist/default" check changed to true

But again, this is not reflected visually in the window. Thus, it's confusing when I select the sniff whitelist thinking I'll get only sniff tests, but internally checkbox-gui did select default too and gives me a union of tests.

A workaround is to select the whitelist I want (say, sniff), then selecting and deselecting "default" again, this updates the internal state correctly and runs only what I need.

Tags: patch

Related branches

Revision history for this message
Daniel Manrique (roadmr) wrote :

I think this bug snuck in when we made the default whitelist selected by default:

https://code.launchpad.net/~sylvain-pineau/checkbox-ihv-ng/only_one_suite_selected/+merge/203089

setting the check property to true in the whitelistModel doesn't seem to update the visual representation :(

Changed in checkbox:
assignee: nobody → Sylvain Pineau (sylvain-pineau)
Changed in checkbox (Ubuntu):
assignee: nobody → Sylvain Pineau (sylvain-pineau)
Changed in checkbox:
status: New → In Progress
Changed in checkbox (Ubuntu):
status: New → In Progress
Changed in checkbox:
importance: Undecided → High
Changed in checkbox (Ubuntu):
importance: Undecided → High
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

Added checkbox-ihv even if the symptom is a bit different, the ok button is enabled even if there's no whitelists selected. The root cause is obviously the same.

Changed in checkbox-ihv-ng:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Sylvain Pineau (sylvain-pineau)
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :
Changed in checkbox-ihv-ng:
status: In Progress → Fix Committed
Changed in checkbox:
status: In Progress → Fix Committed
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "1287389.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Changed in checkbox-ihv-ng:
milestone: none → version1.7
Daniel Manrique (roadmr)
Changed in checkbox (Ubuntu):
status: In Progress → Fix Committed
Daniel Manrique (roadmr)
Changed in checkbox:
milestone: none → 2014-mar-14
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package checkbox - 0.17.6-0ubuntu2

---------------
checkbox (0.17.6-0ubuntu2) trusty; urgency=low

  [Sylvain Pineau]
  * Update the default whitelist selection check mark on startup (LP: #1287389)
  * Properly set the suggested outcome for user-interact type jobs. Due to a
    variable name change, the outcome wasn't getting set (LP: #1287395)
 -- Sylvain Pineau <email address hidden> Wed, 05 Mar 2014 15:34:29 +0100

Changed in checkbox (Ubuntu):
status: Fix Committed → Fix Released
Changed in checkbox-ihv-ng:
status: Fix Committed → Fix Released
Zygmunt Krynicki (zyga)
no longer affects: checkbox
Changed in checkbox-gui:
status: New → Fix Released
importance: Undecided → High
assignee: nobody → Sylvain Pineau (sylvain-pineau)
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.