Merge lp:~hatch/juju-gui/1123291-update-hacking into lp:juju-gui/experimental

Proposed by Jeff Pihach
Status: Merged
Merged at revision: 384
Proposed branch: lp:~hatch/juju-gui/1123291-update-hacking
Merge into: lp:juju-gui/experimental
Diff against target: 79 lines (+43/-7)
1 file modified
HACKING (+43/-7)
To merge this branch: bzr merge lp:~hatch/juju-gui/1123291-update-hacking
Reviewer Review Type Date Requested Status
Juju GUI Hackers Pending
Review via email: mp+148016@code.launchpad.net

Description of the change

Added missing PPA's and packages

https://codereview.appspot.com/7322056/

To post a comment you must log in.
Revision history for this message
Jeff Pihach (hatch) wrote :

Reviewers: mp+148016_code.launchpad.net,

Message:
Please take a look.

Description:
Added missing PPA's and packages

https://code.launchpad.net/~hatch/juju-gui/1123291-update-hacking/+merge/148016

(do not edit description out of merge proposal)

Please review this at https://codereview.appspot.com/7322056/

Affected files:
   M HACKING
   A [revision details]

Index: HACKING
=== modified file 'HACKING'
--- HACKING 2013-01-30 17:48:54 +0000
+++ HACKING 2013-02-12 18:03:33 +0000
@@ -49,8 +49,10 @@
  locally::

    sudo add-apt-repository ppa:chris-lea/node.js
+ sudo add-apt-repository ppa:gophers/go
+ sudo add-apt-repository ppa:juju/pkgs
    sudo apt-get update
- sudo apt-get install nodejs npm imagemagick lbox python-sphinx
python-yaml python-tz python-virtualenv
+ sudo apt-get install nodejs npm imagemagick lbox python-sphinx
python-yaml python-tz python-virtualenv python-shelltoolbox

  The jshint linter will be installed locally per branch, but if you want
editor
  integration, you may want to install ``jshint`` globally in your system.
More

Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>

Revision history for this message
Brad Crittenden (bac) wrote :

Thanks for the changes Jeff. You can land as is or make the change I
ask about. It would be nice to have but it's up to you.

https://codereview.appspot.com/7322056/diff/1/HACKING
File HACKING (right):

https://codereview.appspot.com/7322056/diff/1/HACKING#newcode52
HACKING:52: sudo add-apt-repository ppa:gophers/go
I wonder if we should actually mention lbox here or perhaps later in a
new section about contributing code?

https://codereview.appspot.com/7322056/

Revision history for this message
Gary Poster (gary) wrote :

Land with changes.

I'm asking you for a few more fly-bys from what I noticed of your
adventures. Thanks!

Gary

https://codereview.appspot.com/7322056/diff/1/HACKING
File HACKING (right):

https://codereview.appspot.com/7322056/diff/1/HACKING#newcode14
HACKING:14: Before you get the GUI, first you need to get Juju. For
PyJuju, the original
Add:

...first you need to get Juju. We use the fresh one from the Juju PPA.
For PyJuju...

https://codereview.appspot.com/7322056/diff/1/HACKING#newcode15
HACKING:15: Python-based implementation, we use a custom branch of Juju
that supplies the
add "also":

...implementation, we also use...

https://codereview.appspot.com/7322056/diff/1/HACKING#newcode20
HACKING:20:
Add this here:

sudo add-apt-repository ppa:juju/pkgs

This will also be important for python-shelltoolbox if the dev is
running precise.

https://codereview.appspot.com/7322056/diff/1/HACKING#newcode49
HACKING:49: locally::
also add explanation "python-shelltoolbox and python-selenium for
browser tests, ..."

https://codereview.appspot.com/7322056/diff/1/HACKING#newcode52
HACKING:52: sudo add-apt-repository ppa:gophers/go
On 2013/02/12 21:40:56, bac wrote:
> I wonder if we should actually mention lbox here or perhaps later in a
new
> section about contributing code?

I like the simplicity of putting everything at the top. We explain it
in the text, for people who care.

https://codereview.appspot.com/7322056/diff/1/HACKING#newcode55
HACKING:55: sudo apt-get install nodejs npm imagemagick lbox
python-sphinx python-yaml python-tz python-virtualenv
python-shelltoolbox
add python-selenium please (see docs/browser-testing.rst if you are
curious about the source for these two deps)

https://codereview.appspot.com/7322056/

381. By Jeff Pihach

added in requested changes from review and added in section

Revision history for this message
Jeff Pihach (hatch) wrote :
Revision history for this message
Madison Scott-Clary (makyo) wrote :

Land with changes. Thanks, looks good.

https://codereview.appspot.com/7322056/diff/4001/HACKING
File HACKING (right):

https://codereview.appspot.com/7322056/diff/4001/HACKING#newcode96
HACKING:96: works well for our development
workflows. Here is a workflow that works well for our development.

https://codereview.appspot.com/7322056/diff/4001/HACKING#newcode98
HACKING:98: To set up the environment::
Commands below should be indented.

https://codereview.appspot.com/7322056/diff/4001/HACKING#newcode104
HACKING:104: bzr branch trunk/{featureBranchName}
bzr branch trunk yourUserName/{featureBranchName}

https://codereview.appspot.com/7322056/

Revision history for this message
Jeff Pihach (hatch) wrote :
Revision history for this message
Gary Poster (gary) wrote :

A few more suggestions.

Land with changes. (This means you I am saying you don't need to wait
for me to re-review, and I probably won't unless you ask me to
explicitly.)

Thanks

Gary

https://codereview.appspot.com/7322056/diff/7001/HACKING
File HACKING (right):

https://codereview.appspot.com/7322056/diff/7001/HACKING#newcode17
HACKING:17: will have a websocket API provided for us directly as part
of the software.)
Please get this <80 chars. Old fashioned, but it's habit and the rest
of the code base conforms to it wherever possible

https://codereview.appspot.com/7322056/diff/7001/HACKING#newcode59
HACKING:59: python-shelltoolbox and python-selenium
That comment was really for you, but if you like it go for it. If you
keep it, s/the source for/the reason for needing/

https://codereview.appspot.com/7322056/diff/7001/HACKING#newcode95
HACKING:95: Bazaar allows you to work in a lot of different workflows -
a workflow that
Bazaar allows you to work in a lot of different workflows. Here is one
that works well for our environment, if you are not already familiar
with bzr.

https://codereview.appspot.com/7322056/

Revision history for this message
Jeff Pihach (hatch) wrote :

*** Submitted:

Added missing PPA's and packages

R=bac, gary.poster, matthew.scott
CC=
https://codereview.appspot.com/7322056

https://codereview.appspot.com/7322056/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'HACKING'
2--- HACKING 2013-01-30 17:48:54 +0000
3+++ HACKING 2013-02-13 16:28:22 +0000
4@@ -11,13 +11,15 @@
5 Developer Install
6 =================
7
8-Before you get the GUI, first you need to get Juju. For PyJuju, the original
9-Python-based implementation, we use a custom branch of Juju that supplies the
10-websocket API we need. (GoJuju, the newer Go-based implementation, will have
11-a websocket API provided for us directly as part of the software.)
12+Before you get the GUI you need to get Juju. We use the fresh one from the Juju PPA.
13+For PyJuju, the original Python-based implementation, we also use a custom branch of Juju
14+that supplies the websocket API we need. (GoJuju, the newer Go-based implementation,
15+will have a websocket API provided for us directly as part of the software.)
16
17 ::
18
19+ sudo add-apt-repository ppa:juju/pkgs
20+ sudo apt-get update
21 sudo apt-get install juju zookeeper
22
23 Next you will also need to get the Juju branch that has API access.
24@@ -45,12 +47,16 @@
25 based development tools, so you will need ``nodejs`` and ``npm`` from Chris
26 Lea's node PPA. You also need ImageMagick for sprite generation, lbox to
27 propose branches, python-sphinx and python-yaml to build docs, PyTZ to make
28-releases, and python-virtualenv to build the Google Closure linter tools
29-locally::
30+releases, python-shelltoolbox and python-selenium for browser tests, and
31+python-virtualenv to build the Google Closure linter tools locally::
32
33 sudo add-apt-repository ppa:chris-lea/node.js
34+ sudo add-apt-repository ppa:gophers/go
35 sudo apt-get update
36- sudo apt-get install nodejs npm imagemagick lbox python-sphinx python-yaml python-tz python-virtualenv
37+ sudo apt-get install nodejs npm imagemagick lbox python-sphinx python-yaml python-tz python-virtualenv python-shelltoolbox python-selenium
38+
39+See docs/browser-testing.rst if you are curious about the source for
40+python-shelltoolbox and python-selenium
41
42 The jshint linter will be installed locally per branch, but if you want editor
43 integration, you may want to install ``jshint`` globally in your system. More
44@@ -83,6 +89,36 @@
45 while using the PyJuju rapi-rollup improv script, the password you should use
46 is "admin," despite the help text you see.
47
48+Typical Bzr workflow
49+=====================
50+
51+Bazaar allows you to work in a lot of different workflows - a workflow that
52+works well for our development
53+
54+To set up the environment::
55+
56+bzr init-repo juju-gui
57+cd juju-gui
58+bzr branch lp:juju-gui trunk
59+mkdir yourUseName
60+bzr branch trunk/{featureBranchName}
61+
62+To link branch to ticket::
63+
64+bzr commit --fixes=lp:{ticketNumber}
65+
66+To push code::
67+
68+bzr push lp:~{yourUserName}/juju-gui/{featureBranchName}
69+
70+To submit for review::
71+
72+lbox propose -cr
73+
74+After review, to merge into trunk::
75+
76+lbox submit
77+
78 Working with a Real Juju
79 ========================
80

Subscribers

People subscribed via source and target branches