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
1=== modified file 'docs/tutorial.md'
2--- docs/tutorial.md 2015-11-24 21:08:07 +0000
3+++ docs/tutorial.md 2015-12-04 23:10:29 +0000
4@@ -1,18 +1,17 @@
5-Title: Getting Started with Snappy Product Integration
6-Version: 20151030
7+Title: Getting Started with Product Integration in Ubuntu Core
8+Version: 20151103
9
10-Snappy Product Integration (SPI) is a system for automated integration
11-testing of products built upon Ubuntu Core. Once configured, SPI will
12-monitor for updates to components of your product and run automated
13-tests against target devices to determine if those updates are
14-compatible, and allow you to control the flow of those updates to your
15-customers.
16+Ubuntu Core includes a system for automated integration testing of products
17+built upon it. Once configured, this will monitor for updates to components of
18+your product and run automated tests against target devices to ensure those
19+updates are compatible, and allow you to control the flow of those updates to
20+your customers.
21
22 This tutorial will guide you step-by-step to create a snap for an application,
23 define a product that includes that application, create a laboratory
24 environment where integration tests for that product can run, and set up the
25-SPI system so that it automatically executes tests in that laboratory when new
26-versions of the snap become available.
27+product integration system so that it automatically executes tests in that
28+laboratory when new versions of the snap become available.
29
30 The document is organized as follows:
31
32@@ -43,25 +42,26 @@
33 - A 4GB (minimum) Micro SDHC card.
34 - The host computer and Raspberry Pi connected on the same local ethernet network.
35 - Access to the Internet from the host computer.
36-- An optional serial USB cable, for debugging the RPI boot sequence.
37-- OAuth credentials tied to an SPI Organization. This will be covered below
38- during [Lab setup](#lab-setup).
39+- An optional serial USB cable, for debugging the Raspberry Pi boot sequence.
40+- OAuth credentials tied to an Ubuntu Core Organization. This will be
41+ covered below during [Lab setup](#lab-setup).
42
43 ## Lab setup
44
45-In order to run tests on your product, SPI needs a host computer to serve as a
46-bridge between your device and itself. This computer can be as simple as your
47-desktop, or part of a full device laboratory.
48+The product integration tests are communicated to your device via a host
49+computer. This computer can be as simple as your desktop, or part of a full
50+device laboratory.
51
52 For the purposes of this tutorial, your desktop computer will serve as the
53 host and you will use a Raspberry Pi as the product device. The host computer
54-will run a small application called the SPI Agent, which will communicate with
55+will run a small application called the Agent, which will communicate with
56 Canonical's servers and manage integration tests on the Raspberry Pi.
57
58 ### Setting up the host computer
59
60-You will first need to install and configure the SPI Agent. The most recent
61-release of the Agent can always be found at [this location](https://spi.canonical.com/assets/agent.tar.gz).
62+You will first need to install and configure the Agent. The most recent release
63+of the Agent can always be found at
64+[this location](https://spi.canonical.com/assets/agent.tar.gz).
65
66 Download and install the Agent from your host computer as follows:
67
68@@ -101,11 +101,13 @@
69
70 ### Setting up your organization
71
72-All users of SPI are each part of an Organization. Your Agents need to be
73-registered using a named reference of your physical organization, an Organization ID.
74-Organization IDs can only contain lowercase ASCII letters, numbers and hyphens (-). Hyphens can not occur at the start or end of the chosen value.
75-Maximum length for an Organization ID is 20 characters.
76-For example, if your company name is "Widgets R' Us", you could create an organization ID of "widgets-r-us"
77+All users of Ubuntu Core are each part of an Organization. Your Agents need to
78+be registered using an Organisation ID, a named reference of your physical
79+organization. Organization IDs can only contain lowercase ASCII letters,
80+numbers and hyphens (-). Hyphens can not occur at the start or end of the
81+chosen value. Maximum length for an Organization ID is 20 characters.
82+For example, if your company name is "Widgets R' Us", you could create an
83+organization ID of "widgets-r-us"
84
85 To set up or add users to an Organization:
86
87@@ -165,18 +167,19 @@
88
89 ## Product update testing
90
91-Now it is time to create your first product based on Ubuntu Core. On your host computer, first install the latest Snappy tools:
92+Now it is time to create your first product based on Ubuntu Core. On your host
93+computer, first install the latest command-line tools:
94
95 sudo add-apt-repository ppa:snappy-dev/tools
96 sudo apt-get update
97- sudo apt-get dist-upgrade
98 sudo apt-get install snappy-tools
99
100-See [Snappy Getting Started Guide](https://developer.ubuntu.com/en/snappy/start/) for further details.
101+See the [Getting Started Guide](https://developer.ubuntu.com/en/snappy/start/) for further details.
102
103 ### Creating a product image
104
105-Next, you will create an image for RPI2 from the rolling/edge channel, with our test-snap pre-installed:
106+Next, you will create an image for Raspberry Pi from the rolling/edge channel,
107+with our test-snap pre-installed:
108
109 wget https://spi.canonical.com/assets/test-snap_1_all.snap
110 sudo ubuntu-device-flash core rolling --channel edge --oem pi2.canonical --device raspi2_armhf \
111@@ -204,7 +207,7 @@
112 <div class="panel-body">
113 When working with a real product, you will substitute in your custom OEM
114 and application snaps. See the <a
115- href="https://developer.ubuntu.com/en/snappy/guides/oem/">Snappy OEM
116+ href="https://developer.ubuntu.com/en/snappy/guides/oem/">OEM
117 documentation</a> for more information.
118 </div>
119 </div>
120@@ -255,14 +258,18 @@
121
122 ### Product and test setup
123
124-For SPI to generate tests in case of new snap revisions, some configuration needs to be done.
125+To generate tests in response to new snap revisions, some configuration needs
126+to be done.
127
128-The 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.
129+The Manifest will describe how your product is built, and has the basic
130+information that allows detection of changes which affect your product. When
131+this happens, the information in the Test Specification will be used to trigger
132+the corresponding tests.
133
134 To create a Manifest, you need to issue an HTTP request specifying the following:
135
136 - ```image_name```: the name of the image you will be testing, to relate the Manifest to the Test Specs we will be creating later
137-- ```release```: the Ubuntu Core release this products aims for (currently "15.04-core" or "rolling-core" as known by the Snappy Store)
138+- ```release```: the Ubuntu Core release this products aims for (currently "15.04-core" or "rolling-core" as known by the Ubuntu Core Store)
139 - ```base_image_reference```: a pointer to the base image, in this case a URL pointing to the image binary
140 - ```snaps```: the list of snaps that that comprise the product
141
142@@ -300,13 +307,13 @@
143 }
144 }'
145
146-At this point SPI is configured for your product and tests, and will supervise
147-the Snappy Store for new versions of the snaps listed in your Manifest.
148+At this point your product and tests are configured. The Ubuntu Core Store will
149+be supervised for new versions of the snaps listed in your Manifest.
150
151 ### Triggering your first test run
152
153 Normally the system will automatically detect new revisions of snaps as they
154-are published to the Store, and manual steps will not be required. However, for
155+are published to the Ubuntu Core Store, and manual steps will not be required. However, for
156 the sake of having an update event to work with as part of this tutorial, we
157 can manually notify the system that a new version of our snap is available:
158
159@@ -414,7 +421,7 @@
160
161 ./api_example.py config.ini https://spi.canonical.com/orgs/$ORGANIZATION/tests/events
162
163-All tests containing 'RESULT_POSTED' events will have results to be retrieved from SPI:
164+All tests containing 'RESULT_POSTED' events will have results to be retrieved:
165
166 ./api_example.py config.ini https://spi.canonical.com/orgs/$ORGANIZATION/results
167

Subscribers

People subscribed via source and target branches

to all changes: