Launcher does not list ANY stock reports. Checkbox-ng generates them anyway.

Bug #1741116 reported by Jeff Lane 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Next Generation Checkbox (CLI)
Fix Released
Medium
Maciej Kisielewski

Bug Description

My launcher clearly does not generate any stock reports:

From the launcher tutorial, yet again...
stock_reports

Stock reports are shortcuts in creating common reports. Instead of having to specify exporter, transport and a report section in a launcher, you can use any number of the stock ones. In launchers version 1 there are 4 stock reports you may use:

text - print results as text on standard output
submission_files - write html, xlsx, json and tar.xz files to $XDG_DATA_HOME directory (or to ~/.local/share/ if $XDG_DATA_HOME is not defined.
certification - send results to certification site
certification-staging - send results to staging version of certification site
This field is a list; use commas or spaces to separate stock reports. The default value: text, certification, submission_files.

When using certification stock report, secure_id might be overridden by the launcher. To do this define secure_id in a transport:c3 section (this is the transport that’s used by the certification stock reports).

This indicates that stock_reports are OPTIONAL shortcuts.

My launcher does not define any:

[launcher]
app_id = com.canonical.certification:certification-server
launcher_version = 1

and despite this, it clearly creates all the stock submission reports...

☑ : Check syslog for call traces
 ☑ : Attach syslog if Call Trace appears
file:///home/bladernr/.local/share/checkbox-ng/submission_2018-01-03T20.41.11.822502.html
file:///home/bladernr/.local/share/checkbox-ng/submission_2018-01-03T20.41.11.822502.junit.xml
file:///home/bladernr/.local/share/checkbox-ng/submission_2018-01-03T20.41.11.822502.tar.xz
file:///home/bladernr/.local/share/checkbox-ng/submission_2018-01-03T20.41.11.822502.xlsx

Jeff Lane  (bladernr)
Changed in checkbox-ng:
assignee: nobody → Maciej Kisielewski (kissiel)
Revision history for this message
Maciej Kisielewski (kissiel) wrote :

So the crucial line is:
> The default value: text, certification, submission_files.
If you want to override this, do this:

[launcher]
stock_reports =

Just checked. Works.

Revision history for this message
Jeff Lane  (bladernr) wrote :

Perhaps, that's a fair workaround, but you shouldn't have to create an empty definition just to hide reports. Maybe adding a "None" option?

Or just by default if stock_reports isn't defined in the parser, it defaults to ''?

Revision history for this message
Maciej Kisielewski (kissiel) wrote :

Observing multiple new Checkbox users I really think the default should be to create those reports. They don't hurt much.

As for the syntax for disabling them, I'll sleep on it.
Considering it follows stupid RFC syntax, I feel like "Value =" is not really a workaround :P.

For now I'm leaning towards "stock_reports = None".

Changed in checkbox-ng:
status: New → In Progress
importance: Undecided → Medium
milestone: none → 0.36.0
Changed in checkbox-ng:
status: In Progress → Fix Committed
Changed in checkbox-ng:
milestone: 0.36.0 → 1.0.0
Changed in checkbox-ng:
status: Fix Committed → Fix Released
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.