plainbox: some tests run in wrong order

Bug #1238024 reported by Daniel Manrique
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
New
Undecided
Unassigned

Bug Description

Tests should be run in whitelist order unless that order doesn't make sense.

In the autotesting.whitelist, we want fwts_test to run first, and then, regardless of the result (even if fail), fwts_result.log should run to attach the whole log to the submission for later perusal. Thus, fwts_result.log can't really depends on fwts_test.

This is expressed in the whitelist order:

__miscellanea__
miscellanea/submission-resources
miscellanea/fwts_test
miscellanea/fwts_results.log
__networking__
networking/detect

However, fwts_results.log is failing because it's running *before* fwts_test and thus is unable to find the file it wants to attach:

__miscellanea__
miscellanea/submission-resources
miscellanea/fwts_test
miscellanea/fwts_results.log
__networking__
networking/detect

A possible workaround would be adding a *third* job to parse the results log for failures, then both fwts_results.log and (say) fwts_analyze can depend on fwts_test. Then we modify fwts_test to always exit with true, regardless of fwts exit code. This is a kludge however :(

Tags: plainbox
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Is this a dupe of the whitelist ordering bug or something new?

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

It may be a duplicate of https://bugs.launchpad.net/checkbox/+bug/1213893. That one says "whitelist ordering of jobs is not preserved by clients". If "plainbox sru" is considered a "client" then it would be a dupe.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Yeah, it's a dupe.

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.