Merge lp:~fginther/ubuntu-ci-services-itself/testrunner-doc-update into lp:ubuntu-ci-services-itself

Proposed by Francis Ginther
Status: Work in progress
Proposed branch: lp:~fginther/ubuntu-ci-services-itself/testrunner-doc-update
Merge into: lp:ubuntu-ci-services-itself
Diff against target: 122 lines (+77/-1) (has conflicts)
1 file modified
docs/components/test-runner.rst (+77/-1)
Text conflict in docs/components/test-runner.rst
To merge this branch: bzr merge lp:~fginther/ubuntu-ci-services-itself/testrunner-doc-update
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+206937@code.launchpad.net

Commit message

Formatting and progress message updates for the test-runner.

Description of the change

Formatting and progress message updates for the test-runner.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:137
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/167/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/167/rebuild

review: Needs Fixing (continuous-integration)

Unmerged revisions

137. By Francis Ginther

Formatting and progress message updates.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'docs/components/test-runner.rst'
2--- docs/components/test-runner.rst 2014-02-06 15:29:01 +0000
3+++ docs/components/test-runner.rst 2014-02-18 14:05:04 +0000
4@@ -5,7 +5,7 @@
5 Purpose
6 =======
7
8-* Performs package testing on a given image.
9+Performs package testing on a given image.
10
11 Future
12 ======
13@@ -26,13 +26,31 @@
14 This run the DEP8 tests for each package in 'package_list' on 'image_id' and
15 is sent by the 'Lander'.
16
17+*URL Pattern*
18+
19+ http://test-runner-url:8080/api/v1/test_image (HTTP POST)
20+
21+*Parameters*
22+
23+ * test_request_id: The ticket identifier for this request.
24+ * image_url: The location of the image to be tested.
25+ * package_name: A list of binary packages to test.
26+
27+*Example*
28 .. code-block:: none
29
30+<<<<<<< TREE
31 test_image(ticket_id, image_id, package_list, progress_trigger)
32+=======
33+ curl --dump-header - -H "Content-Type: application/json" -X POST --data '{"test_request_id": "1", "image_url": "http://image-store-url/ticket-1-image.img", "package_name": ["libfoo", "baz-utils"], "progress_trigger": "ticket-1-test-runner"}' http://test-runner-url:8080/api/v1/test_image
34+>>>>>>> MERGE-SOURCE
35
36+<<<<<<< TREE
37 The caller is responsible for providing a unique 'progress_trigger'
38 identifier. This unique identifier is used to define the rabbit queue and
39 the data store container.
40+=======
41+>>>>>>> MERGE-SOURCE
42
43 This is composed of:
44 * boots the image from 'image_id',
45@@ -45,6 +63,7 @@
46 with the 'Lander'.
47
48
49+<<<<<<< TREE
50 done
51 ----
52
53@@ -59,12 +78,69 @@
54
55 progress
56 --------
57+=======
58+Progress is communicated to the lander at regular intervals using the following
59+messages:
60+
61+*Completed*
62+
63+This ends the processing of a 'done' request when all tests pass and is sent to
64+the 'Lander'.
65+
66+.. code-block:: none
67+
68+ {
69+ "state": "COMPLETED",
70+ "exit": True
71+ "test_request_id": test_request_id,
72+ "image_url": image_url,
73+ "package_name": pakage_name,
74+ "progress_trigger": progress_trigger,
75+ "test_result": test_result,
76+ "artifacts": artifacts
77+ }
78+
79+*Failed*
80+
81+This ends the processing of a 'done' request when a test fails and is sent to
82+the 'Lander'.
83+
84+.. code-block:: none
85+
86+ {
87+ "state": "FAILED",
88+ "exit": True
89+ "test_request_id": test_request_id,
90+ "image_url": image_url,
91+ "package_name": pakage_name,
92+ "progress_trigger": progress_trigger,
93+ "test_result": test_result,
94+ "artifacts": artifacts
95+ }
96+
97+*In Progress*
98+>>>>>>> MERGE-SOURCE
99
100 This is sent to the 'Lander' to provide feedback during the test run.
101
102 .. code-block:: none
103
104+<<<<<<< TREE
105 progress(progress_trigger, message='% or ETA', current, total)
106+=======
107+ {
108+ "state": "STATUS",
109+ "test_request_id": test_request_id,
110+ "image_url": image_url,
111+ "package_name": pakage_name,
112+ "progress_trigger": progress_trigger,
113+ "message" = "% or ETA",
114+ "current" = current,
115+ "total" = total
116+ }
117+
118+ test_request_id, message='% or ETA', current, total)
119+>>>>>>> MERGE-SOURCE
120
121
122 Based on test execution feedback, a progress message is sent at regular

Subscribers

People subscribed via source and target branches