~psivaa/ubuntu-ci-services-itself/speedup-imagebuild-tr

« back to all changes in this revision

Viewing changes to test_runner/tstrun/resources/v1.py

  • Committer: Chris Johnston
  • Author(s): Andy Doan
  • Date: 2014-03-11 19:25:30 UTC
  • mfrom: (341.1.5 cancel-url)
  • Revision ID: chris_johnston-20140311192530-czr8bc86hyk9wenj
[r=PS Jenkins bot, Evan Dandrea, Vincent Ladeuil] lander: pass a "cancel_url" to the workers

This passes a new "cancel_url" down to each worker. Currently,
the URL is a link to the jenkins JSON API for the job. Which
includes a "building" attribute so a worker could determine if
a job has been cancelled or not.

In the future this URL could be to the ticket (or maybe not needed
at all).

NOTE: The workers do nothing with this parameter. Its just adding
the hook for them to do so if they choose.  from Andy Doan

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    return restish_utils.json_ok(status.results)
39
39
 
40
40
 
41
 
def _test_image(ticket_id, image_id, package_list, progress_trigger):
 
41
def _test_image(ticket_id, cancel_url, image_id, package_list,
 
42
                progress_trigger):
42
43
    params = dict(ticket_id=ticket_id,
 
44
                  cancel_url=cancel_url,
43
45
                  image_id=image_id,
44
46
                  package_list=package_list,
45
47
                  progress_trigger=progress_trigger)