wishlist - c-c-s should be able to redo the "submit to C3" part via command line switch

Bug #1306790 reported by Jeff Lane 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Next Generation Checkbox (CLI)
Fix Released
Wishlist
Unassigned

Bug Description

At the end of a test run via canonical-certification-server, the harness is capable of submitting results to C3.

However, this could fail for any number of reasons, including screwed up networking after testing, transient network issues, or who knows what.

We already have checkbox-certification-submit that can submit results to C3, BUT that requires installing a separate package and dependencies (one of which is the old Checkbox packages).

It would be awesome if in a future release I could do this:

canonical-certification-server --submit-results-only ~/.local/plainbox/submission.xml --hwid=SECURE_ID

with --hwid only being required if there's none specified in the sru section of the conf file.

OR perhaps simply re-running the routine that runs at the end of a testing run that prompts the user "Do you want to submit results [y, n]?"

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

A workaround I can suggest is using curl; it's about as easy as the sample you posted:

curl -v -F <email address hidden> -H "X-HARDWARE-ID: your-secure-id" https://certification.canonical.com/submissions/submit/

wrapping this in c-c-s has the advantage of being transparent if we ever change the way to submit to c3. But as-is, a canonical-certification-submit tool would be more easily implemented as a shell script wrapping curl (it'd be about 5 lines heh).

Revision history for this message
Zygmunt Krynicki (zyga) wrote : Re: [Bug 1306790] Re: wishlist - c-c-s should be able to redo the "submit to C3" part via command line switch

I strongly believe this is a part of a bigger story about using multiple
session APIs everywhere so that we can see all (?) past sessions and use
the meta-data flags field to indicate that a particular session was sent
successfully somewhere.

On Fri, Apr 11, 2014 at 10:45 PM, Daniel Manrique <
<email address hidden>> wrote:

> A workaround I can suggest is using curl; it's about as easy as the
> sample you posted:
>
> curl -v -F <email address hidden> -H "X-HARDWARE-ID: your-secure-id"
> https://certification.canonical.com/submissions/submit/
>
> wrapping this in c-c-s has the advantage of being transparent if we ever
> change the way to submit to c3. But as-is, a canonical-certification-
> submit tool would be more easily implemented as a shell script wrapping
> curl (it'd be about 5 lines heh).
>
>
> ** Also affects: checkbox-ng
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of Checkbox
> Bug Wranglers, which is subscribed to checkbox.
> https://bugs.launchpad.net/bugs/1306790
>
> Title:
> wishlist - c-c-s should be able to redo the "submit to C3" part via
> command line switch
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/checkbox/+bug/1306790/+subscriptions
>

Zygmunt Krynicki (zyga)
Changed in checkbox-ng:
importance: Undecided → Wishlist
no longer affects: checkbox
Revision history for this message
Daniel Manrique (roadmr) wrote :

I think Sylvain is working on a subcommand to do this; since the work statement is clear, setting to triaged.

Changed in checkbox-ng:
status: New → Triaged
Changed in checkbox-ng:
status: Triaged → 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.