Merge lp:~ev/tanuki-agent/red-pen into lp:tanuki-agent

Proposed by Evan
Status: Merged
Approved by: Evan
Approved revision: 166
Merged at revision: 182
Proposed branch: lp:~ev/tanuki-agent/red-pen
Merge into: lp:tanuki-agent
Diff against target: 166 lines (+43/-36)
1 file modified
docs/tutorial.md (+43/-36)
To merge this branch: bzr merge lp:~ev/tanuki-agent/red-pen
Reviewer Review Type Date Requested Status
Celso Providelo (community) Approve
Thomi Richards (community) Approve
Review via email: mp+276611@code.launchpad.net

Commit message

Change Snappy to Ubuntu Core. 🔥

Description of the change

https://trello.com/c/c5j3AJfx/1-epic-docs

"Edit naming in the doc to be Ubuntu Core, not Snappy, and Product Integration, not Snappy Product Integration/SPI"

To post a comment you must log in.
Revision history for this message
Thomi Richards (thomir-deactivatedaccount) wrote :

Looks mostly good - I added a few diff comments. Feel free to land whenever you like.

review: Approve
Revision history for this message
Celso Providelo (cprov) wrote :

Evan,

I've just confirmed these changes are still relevant for https://spi.staging.canonical.com/assets/tutorial.html. Somehow I thought they were already addressed on the current tutorial, but it's only fixed in the org-less tutorial(2) candidate.

I think we should fix the current document, specially because it will continue to be consulted (and supported) for some time.

I am happy to see this landed when Thomi's comments get addressed. Pre-approving.

review: Approve
lp:~ev/tanuki-agent/red-pen updated
160. By Evan

Merge with trunk.

161. By Evan

Remove references to 'Product Integration' and instead use 'Ubuntu Core' or reword to drop the product reference.

162. By Evan

s,determine if,ensure, - thanks Thomi.

163. By Evan

Fix sentence to drop spurious 'itself'.

164. By Evan

Swap around org ID and named ref

165. By Evan

dist-upgrade is not needed

166. By Evan

Drop 'when a new snap rev is available.'

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'docs/tutorial.md'
--- docs/tutorial.md 2015-11-24 21:08:07 +0000
+++ docs/tutorial.md 2015-12-04 23:10:29 +0000
@@ -1,18 +1,17 @@
1Title: Getting Started with Snappy Product Integration1Title: Getting Started with Product Integration in Ubuntu Core
2Version: 201510302Version: 20151103
33
4Snappy Product Integration (SPI) is a system for automated integration4Ubuntu Core includes a system for automated integration testing of products
5testing of products built upon Ubuntu Core. Once configured, SPI will5built upon it. Once configured, this will monitor for updates to components of
6monitor for updates to components of your product and run automated6your product and run automated tests against target devices to ensure those
7tests against target devices to determine if those updates are7updates are compatible, and allow you to control the flow of those updates to
8compatible, and allow you to control the flow of those updates to your8your customers.
9customers.
109
11This tutorial will guide you step-by-step to create a snap for an application,10This tutorial will guide you step-by-step to create a snap for an application,
12define a product that includes that application, create a laboratory11define a product that includes that application, create a laboratory
13environment where integration tests for that product can run, and set up the12environment where integration tests for that product can run, and set up the
14SPI system so that it automatically executes tests in that laboratory when new13product integration system so that it automatically executes tests in that
15versions of the snap become available.14laboratory when new versions of the snap become available.
1615
17The document is organized as follows:16The document is organized as follows:
1817
@@ -43,25 +42,26 @@
43- A 4GB (minimum) Micro SDHC card.42- A 4GB (minimum) Micro SDHC card.
44- The host computer and Raspberry Pi connected on the same local ethernet network.43- The host computer and Raspberry Pi connected on the same local ethernet network.
45- Access to the Internet from the host computer.44- Access to the Internet from the host computer.
46- An optional serial USB cable, for debugging the RPI boot sequence.45- An optional serial USB cable, for debugging the Raspberry Pi boot sequence.
47- OAuth credentials tied to an SPI Organization. This will be covered below46- OAuth credentials tied to an Ubuntu Core Organization. This will be
48 during [Lab setup](#lab-setup).47 covered below during [Lab setup](#lab-setup).
4948
50## Lab setup49## Lab setup
5150
52In order to run tests on your product, SPI needs a host computer to serve as a51The product integration tests are communicated to your device via a host
53bridge between your device and itself. This computer can be as simple as your52computer. This computer can be as simple as your desktop, or part of a full
54desktop, or part of a full device laboratory.53device laboratory.
5554
56For the purposes of this tutorial, your desktop computer will serve as the55For the purposes of this tutorial, your desktop computer will serve as the
57host and you will use a Raspberry Pi as the product device. The host computer56host and you will use a Raspberry Pi as the product device. The host computer
58will run a small application called the SPI Agent, which will communicate with57will run a small application called the Agent, which will communicate with
59Canonical's servers and manage integration tests on the Raspberry Pi.58Canonical's servers and manage integration tests on the Raspberry Pi.
6059
61### Setting up the host computer60### Setting up the host computer
6261
63You will first need to install and configure the SPI Agent. The most recent62You will first need to install and configure the Agent. The most recent release
64release of the Agent can always be found at [this location](https://spi.canonical.com/assets/agent.tar.gz).63of the Agent can always be found at
64[this location](https://spi.canonical.com/assets/agent.tar.gz).
6565
66Download and install the Agent from your host computer as follows:66Download and install the Agent from your host computer as follows:
6767
@@ -101,11 +101,13 @@
101101
102### Setting up your organization102### Setting up your organization
103103
104All users of SPI are each part of an Organization. Your Agents need to be104All users of Ubuntu Core are each part of an Organization. Your Agents need to
105registered using a named reference of your physical organization, an Organization ID.105be registered using an Organisation ID, a named reference of your physical
106Organization IDs can only contain lowercase ASCII letters, numbers and hyphens (-). Hyphens can not occur at the start or end of the chosen value.106organization. Organization IDs can only contain lowercase ASCII letters,
107Maximum length for an Organization ID is 20 characters.107numbers and hyphens (-). Hyphens can not occur at the start or end of the
108For example, if your company name is "Widgets R' Us", you could create an organization ID of "widgets-r-us"108chosen value. Maximum length for an Organization ID is 20 characters.
109For example, if your company name is "Widgets R' Us", you could create an
110organization ID of "widgets-r-us"
109111
110To set up or add users to an Organization:112To set up or add users to an Organization:
111113
@@ -165,18 +167,19 @@
165167
166## Product update testing168## Product update testing
167169
168Now it is time to create your first product based on Ubuntu Core. On your host computer, first install the latest Snappy tools:170Now it is time to create your first product based on Ubuntu Core. On your host
171computer, first install the latest command-line tools:
169172
170 sudo add-apt-repository ppa:snappy-dev/tools173 sudo add-apt-repository ppa:snappy-dev/tools
171 sudo apt-get update174 sudo apt-get update
172 sudo apt-get dist-upgrade
173 sudo apt-get install snappy-tools175 sudo apt-get install snappy-tools
174176
175See [Snappy Getting Started Guide](https://developer.ubuntu.com/en/snappy/start/) for further details.177See the [Getting Started Guide](https://developer.ubuntu.com/en/snappy/start/) for further details.
176178
177### Creating a product image179### Creating a product image
178180
179Next, you will create an image for RPI2 from the rolling/edge channel, with our test-snap pre-installed:181Next, you will create an image for Raspberry Pi from the rolling/edge channel,
182with our test-snap pre-installed:
180183
181 wget https://spi.canonical.com/assets/test-snap_1_all.snap184 wget https://spi.canonical.com/assets/test-snap_1_all.snap
182 sudo ubuntu-device-flash core rolling --channel edge --oem pi2.canonical --device raspi2_armhf \185 sudo ubuntu-device-flash core rolling --channel edge --oem pi2.canonical --device raspi2_armhf \
@@ -204,7 +207,7 @@
204 <div class="panel-body">207 <div class="panel-body">
205 When working with a real product, you will substitute in your custom OEM208 When working with a real product, you will substitute in your custom OEM
206 and application snaps. See the <a209 and application snaps. See the <a
207 href="https://developer.ubuntu.com/en/snappy/guides/oem/">Snappy OEM210 href="https://developer.ubuntu.com/en/snappy/guides/oem/">OEM
208 documentation</a> for more information.211 documentation</a> for more information.
209 </div>212 </div>
210</div>213</div>
@@ -255,14 +258,18 @@
255258
256### Product and test setup259### Product and test setup
257260
258For SPI to generate tests in case of new snap revisions, some configuration needs to be done.261To generate tests in response to new snap revisions, some configuration needs
262to be done.
259263
260The Manifest will describe how your product is built, and has the basic information that allows SPI to detect changes that affect your product when a new snap revision is available. When this happens, SPI will use the information in the Test Specification to trigger the corresponding tests.264The Manifest will describe how your product is built, and has the basic
265information that allows detection of changes which affect your product. When
266this happens, the information in the Test Specification will be used to trigger
267the corresponding tests.
261268
262To create a Manifest, you need to issue an HTTP request specifying the following:269To create a Manifest, you need to issue an HTTP request specifying the following:
263270
264- ```image_name```: the name of the image you will be testing, to relate the Manifest to the Test Specs we will be creating later271- ```image_name```: the name of the image you will be testing, to relate the Manifest to the Test Specs we will be creating later
265- ```release```: the Ubuntu Core release this products aims for (currently "15.04-core" or "rolling-core" as known by the Snappy Store)272- ```release```: the Ubuntu Core release this products aims for (currently "15.04-core" or "rolling-core" as known by the Ubuntu Core Store)
266- ```base_image_reference```: a pointer to the base image, in this case a URL pointing to the image binary273- ```base_image_reference```: a pointer to the base image, in this case a URL pointing to the image binary
267- ```snaps```: the list of snaps that that comprise the product274- ```snaps```: the list of snaps that that comprise the product
268275
@@ -300,13 +307,13 @@
300 }307 }
301 }'308 }'
302309
303At this point SPI is configured for your product and tests, and will supervise310At this point your product and tests are configured. The Ubuntu Core Store will
304the Snappy Store for new versions of the snaps listed in your Manifest.311be supervised for new versions of the snaps listed in your Manifest.
305312
306### Triggering your first test run313### Triggering your first test run
307314
308Normally the system will automatically detect new revisions of snaps as they315Normally the system will automatically detect new revisions of snaps as they
309are published to the Store, and manual steps will not be required. However, for316are published to the Ubuntu Core Store, and manual steps will not be required. However, for
310the sake of having an update event to work with as part of this tutorial, we317the sake of having an update event to work with as part of this tutorial, we
311can manually notify the system that a new version of our snap is available:318can manually notify the system that a new version of our snap is available:
312319
@@ -414,7 +421,7 @@
414421
415 ./api_example.py config.ini https://spi.canonical.com/orgs/$ORGANIZATION/tests/events422 ./api_example.py config.ini https://spi.canonical.com/orgs/$ORGANIZATION/tests/events
416423
417All tests containing 'RESULT_POSTED' events will have results to be retrieved from SPI:424All tests containing 'RESULT_POSTED' events will have results to be retrieved:
418425
419 ./api_example.py config.ini https://spi.canonical.com/orgs/$ORGANIZATION/results426 ./api_example.py config.ini https://spi.canonical.com/orgs/$ORGANIZATION/results
420427

Subscribers

People subscribed via source and target branches

to all changes: