Clicking the test button results in ReferenceError: outcome is not defined

Bug #1287395 reported by Daniel Manrique
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
checkbox (Ubuntu)
Won't Fix
High
Unassigned

Bug Description

file:///usr/share/checkbox-gui/qml/ManualInteractionDialog.qml:231: ReferenceError: outcome is not defined

This is on a trusty system with checkbox-ng packages at 0.1-1ubuntu1, plainbox at 0.4-4 and checkbox-gui at 0.17.6-0ubuntu1.

To reproduce, launch a job that requires the test button, then click "test".

We specifically tried something like:

plugin: manual
name: roadmr
command: echo "whee"; true
description: something

This exact job triggers the failure.

Related branches

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

I think this happened in this merge:

https://code.launchpad.net/~sylvain-pineau/checkbox/fix-1227684/+merge/202016

but I'm not sure :)

Ara Pulido (ara)
Changed in checkbox:
importance: Undecided → Critical
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

file:///usr/share/checkbox-gui/qml/ManualInteractionDialog.qml:231: ReferenceError: outcome is not defined

I simply forgot to adjust the name of the variable, it's no longer outcome but suggested_outcome line 231.

And please don't use Manual jobs with a command, that doesn't work, i.e. logs are not attached and the status not properly updated (from what I tested); prefer user-(interact|verify|interact-verify) instead.

Changed in checkbox:
status: New → Triaged
importance: Critical → High
Changed in checkbox:
importance: High → Critical
Changed in checkbox:
assignee: nobody → Brendan Donegan (brendan-donegan)
status: Triaged → In Progress
Revision history for this message
Daniel Manrique (roadmr) wrote :

Fixed here:

https://code.launchpad.net/~brendan-donegan/checkbox/bug1287395/+merge/209288

As Sylvain mentioned, using plugin: manual makes things not work, maybe we should outright reject manual jobs with a command; if they don't work, it's pointless to accept them.

Other than making the error disappear, and correctly updating the outcome based on test output, this magically made graphical commands (such as zenity) work on my test system \o/

Changed in checkbox:
status: In Progress → Fix Committed
milestone: none → 2014-mar-14
Daniel Manrique (roadmr)
Changed in checkbox (Ubuntu):
importance: Undecided → High
Changed in checkbox (Ubuntu):
status: New → In Progress
assignee: nobody → Sylvain Pineau (sylvain-pineau)
Daniel Manrique (roadmr)
Changed in checkbox (Ubuntu):
status: In Progress → Fix Committed
Daniel Manrique (roadmr)
Changed in checkbox-ihv-ng:
status: New → Fix Committed
importance: Undecided → Critical
milestone: none → version1.7
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:
assignee: nobody → Sylvain Pineau (sylvain-pineau)
Changed in checkbox-ihv-ng:
status: Fix Committed → Fix Released
Zygmunt Krynicki (zyga)
no longer affects: checkbox
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This doesn't seem to be actually fixed in Ubuntu. Because we cherry pick and squash fixes it's harder to see but nothing in the recent history in Ubuntu modifies the affected file

Changed in checkbox (Ubuntu):
status: Fix Released → Confirmed
Changed in checkbox (Ubuntu):
status: Confirmed → Won't Fix
assignee: Sylvain Pineau (sylvain-pineau) → 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.