Merge ~raharper/cloud-init:doc/update-hacking-docs into cloud-init:master

Proposed by Ryan Harper
Status: Merged
Approved by: Chad Smith
Approved revision: 72b25f05d4c0ff35e6c370244b1069c2c7fcfc18
Merge reported by: Server Team CI bot
Merged at revision: not available
Proposed branch: ~raharper/cloud-init:doc/update-hacking-docs
Merge into: cloud-init:master
Diff against target: 167 lines (+54/-38)
2 files modified
HACKING.rst (+52/-36)
doc/rtd/topics/tests.rst (+2/-2)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Approve
Chad Smith Approve
Review via email: mp+375297@code.launchpad.net

Commit message

doc: update launchpad git refs to github

To post a comment you must log in.
Revision history for this message
Chad Smith (chad.smith) wrote :

minor corrections here. thanks!

review: Needs Fixing
Revision history for this message
Server Team CI bot (server-team-bot) wrote :

PASSED: Continuous integration, rev:3776f25d65c2eacce6ad244c3fd37c168782ccfb
https://jenkins.ubuntu.com/server/job/cloud-init-ci/1278/
Executed test runs:
    SUCCESS: Checkout
    SUCCESS: Unit & Style Tests
    SUCCESS: Ubuntu LTS: Build
    SUCCESS: Ubuntu LTS: Integration
    IN_PROGRESS: Declarative: Post Actions

Click here to trigger a rebuild:
https://jenkins.ubuntu.com/server/job/cloud-init-ci/1278//rebuild

review: Approve (continuous-integration)
72b25f0... by Ryan Harper

Tell users to fork from GitHub account first, fix clone url

Revision history for this message
Chad Smith (chad.smith) wrote :

Perfect.

review: Approve
Revision history for this message
Server Team CI bot (server-team-bot) wrote :

PASSED: Continuous integration, rev:72b25f05d4c0ff35e6c370244b1069c2c7fcfc18
https://jenkins.ubuntu.com/server/job/cloud-init-ci/1279/
Executed test runs:
    SUCCESS: Checkout
    SUCCESS: Unit & Style Tests
    SUCCESS: Ubuntu LTS: Build
    SUCCESS: Ubuntu LTS: Integration
    IN_PROGRESS: Declarative: Post Actions

Click here to trigger a rebuild:
https://jenkins.ubuntu.com/server/job/cloud-init-ci/1279//rebuild

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/HACKING.rst b/HACKING.rst
2index fcdfa4f..8c8e518 100644
3--- a/HACKING.rst
4+++ b/HACKING.rst
5@@ -3,18 +3,40 @@ Hacking on cloud-init
6 *********************
7
8 This document describes how to contribute changes to cloud-init.
9-It assumes you have a `Launchpad`_ account, and refers to your launchpad user
10-as ``LP_USER`` throughout.
11+It assumes you have a `GitHub`_ account, and refers to your GitHub user
12+as ``GH_USER`` throughout.
13
14 Do these things once
15 ====================
16
17 * To contribute, you must sign the Canonical `contributor license agreement`_
18
19- If you have already signed it as an individual, your Launchpad user will be listed in the `contributor-agreement-canonical`_ group. Unfortunately there is no easy way to check if an organization or company you are doing work for has signed. If you are unsure or have questions, email `Josh Powers <mailto:josh.powers@canonical.com>`_ or ping powersj in ``#cloud-init`` channel via freenode.
20+ If you have already signed it as an individual, your Launchpad user will be
21+ listed in the `contributor-agreement-canonical`_ group. Unfortunately there
22+ is no easy way to check if an organization or company you are doing work for
23+ has signed. When signing the CLA and prompted for 'Project contact' or
24+ 'Canonical Project Manager' enter 'Josh Powers'.
25
26- When prompted for 'Project contact' or 'Canonical Project Manager' enter
27- 'Josh Powers'.
28+ For existing contributors who've already signed the agreement, we can verify
29+ the link between your `Launchpad`_ account and your `GitHub`_ account by
30+ creating a branch with both your Launchpad and GitHub usernames into both
31+ Launchpad and GitHub cloud-init repositories. We've added a tool
32+ (tools/migrate-lp-user-to-github) to the cloud-init repository to handle this
33+ migration as automatically as possible.
34+
35+ The cloud-init team will review the two merge proposals and verify
36+ that the CLA has been signed for the Launchpad user and record the
37+ associated GitHub account. We will reply to the email address
38+ associated with your Launchpad account that you've been clear to
39+ contribute to cloud-init on GitHub.
40+
41+ If your company has signed the CLA for you, please contact us to help
42+ in verifying which launchad/GitHub accounts are associated with the
43+ company. For any questions or help with the process, please email:
44+
45+ `Josh Powers <mailto:josh.powers@canonical.com>`_ with the subject: Cloud-Init CLA
46+
47+ You also may contanct user ``powersj`` in ``#cloud-init`` channel via IRC freenode.
48
49 * Configure git with your email and name for commit messages.
50
51@@ -24,26 +46,24 @@ Do these things once
52 git config user.name "Your Name"
53 git config user.email "Your Email"
54
55-* Clone the upstream `repository`_ on Launchpad::
56+* Sign into your `GitHub`_ account
57
58- git clone https://git.launchpad.net/cloud-init
59- cd cloud-init
60-
61- There is more information on Launchpad as a git hosting site in
62- `Launchpad git documentation`_.
63+* Fork the upstream `repository`_ on Github and clicking on the ``Fork`` button
64
65-* Create a new remote pointing to your personal Launchpad repository.
66- This is equivalent to 'fork' on github.
67+* Create a new remote pointing to your personal GitHub repository.
68
69 .. code:: sh
70
71- git remote add LP_USER ssh://LP_USER@git.launchpad.net/~LP_USER/cloud-init
72- git push LP_USER master
73+ git clone git://github.com/canonical/cloud-init
74+ cd cloud-init
75+ git remote add GH_USER git@github.com:GH_USER/cloud-init.git
76+ git push GH_USER master
77
78-.. _repository: https://git.launchpad.net/cloud-init
79+.. _GitHub: https://github.com
80+.. _Launchpad: https://launchpad.net
81+.. _repository: https://github.com/canonical/cloud-init
82 .. _contributor license agreement: http://www.canonical.com/contributors
83 .. _contributor-agreement-canonical: https://launchpad.net/%7Econtributor-agreement-canonical/+members
84-.. _Launchpad git documentation: https://help.launchpad.net/Code/Git
85
86 Do these things for each feature or bug
87 =======================================
88@@ -61,29 +81,21 @@ Do these things for each feature or bug
89
90 tox
91
92-* Push your changes to your personal Launchpad repository::
93+* Push your changes to your personal GitHub repository::
94
95- git push -u LP_USER my-topic-branch
96+ git push -u GH_USER my-topic-branch
97
98 * Use your browser to create a merge request:
99
100- - Open the branch on Launchpad.
101+ - Open the branch on GitHub
102
103 - You can see a web view of your repository and navigate to the branch at:
104
105- ``https://code.launchpad.net/~LP_USER/cloud-init/``
106-
107- - It will typically be at:
108-
109- ``https://code.launchpad.net/~LP_USER/cloud-init/+git/cloud-init/+ref/BRANCHNAME``
110-
111- for example, here is larsks move-to-git branch: https://code.launchpad.net/~larsks/cloud-init/+git/cloud-init/+ref/feature/move-to-git
112+ ``https://github.com/GH_USER/cloud-init/tree/my-topic-branch``
113
114- - Click 'Propose for merging'
115- - Select 'lp:cloud-init' as the target repository
116- - Type '``master``' as the Target reference path
117- - Click 'Propose Merge'
118- - On the next page, hit 'Set commit message' and type a git combined git style commit message like::
119+ - Click 'Pull Request`
120+ - Fill out the pull request title, summarizing the change and a longer
121+ message indicating important details about the changes included, like ::
122
123 Activate the frobnicator.
124
125@@ -100,12 +112,16 @@ Do these things for each feature or bug
126
127 LP: #1
128
129-Then, someone in the `cloud-init-dev`_ group will review your changes and
130-follow up in the merge request.
131+ Note that the project continues to use LP: #NNNNN format for closing
132+ launchpad bugs rather than GitHub Issues.
133+
134+ - Click 'Create Pull Request`
135+
136+Then, someone in the `Ubuntu Server`_ team will review your changes and
137+follow up in the pull request.
138
139 Feel free to ping and/or join ``#cloud-init`` on freenode irc if you
140 have any questions.
141
142 .. _tox: https://tox.readthedocs.io/en/latest/
143-.. _Launchpad: https://launchpad.net
144-.. _cloud-init-dev: https://launchpad.net/~cloud-init-dev/+members#active
145+.. _Ubuntu Server: https://github.com/orgs/canonical/teams/ubuntu-server
146diff --git a/doc/rtd/topics/tests.rst b/doc/rtd/topics/tests.rst
147index b83bd89..a2c703a 100644
148--- a/doc/rtd/topics/tests.rst
149+++ b/doc/rtd/topics/tests.rst
150@@ -23,7 +23,7 @@ configuration users can run the integration tests via tox:
151
152 .. code-block:: shell-session
153
154- $ git clone https://git.launchpad.net/cloud-init
155+ $ git clone https://github.com/canonical/cloud-init
156 $ cd cloud-init
157 $ tox -e citest -- -h
158
159@@ -53,7 +53,7 @@ explaining how to run one or the other independently.
160
161 .. code-block:: shell-session
162
163- $ git clone https://git.launchpad.net/cloud-init
164+ $ git clone https://github.com/canonical/cloud-init
165 $ cd cloud-init
166 $ tox -e citest -- run --verbose \
167 --os-name stretch --os-name xenial \

Subscribers

People subscribed via source and target branches