Merge lp:~benji/charms/precise/juju-gui/second into lp:~juju-gui/charms/precise/juju-gui/trunk
| Status: | Merged |
|---|---|
| Merged at revision: | 4 |
| Proposed branch: | lp:~benji/charms/precise/juju-gui/second |
| Merge into: | lp:~juju-gui/charms/precise/juju-gui/trunk |
| Diff against target: |
118 lines (+98/-0) 4 files modified
README.txt (+71/-0) tests/functional-noop.test (+8/-0) tests/test_addition.py (+13/-0) tests/unit.test (+6/-0) |
| To merge this branch: | bzr merge lp:~benji/charms/precise/juju-gui/second |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Juju GUI Hackers | 2012-11-14 | Pending | |
|
Review via email:
|
|||
Description of the Change
Initial project structure, mostly testing.
| Brad Crittenden (bac) wrote : | # |
| Gary Poster (gary) wrote : | # |
Looks good, thank you! Maybe make the os.path change I mention, and
look at my logs and make sure they are healthy.
Otherwise approved.
Gary
https:/
File README.txt (right):
https:/
README.txt:21:
On 2012/11/19 18:57:34, bac wrote:
> This doesn't actually work as unit.test has '.discover('.') but is
being run
> from above. Either unit.test should read '.discover(
should be
> run from within the tests directory.
Maybe better would be to .discover(
https:/
README.txt:42: autoreconf
Before this I needed to sudo apt-get install libtool autoconf (and maybe
some other bits too)
https:/
README.txt:46:
On 2012/11/19 18:57:34, bac wrote:
> Has anyone talked to Jim about packaging this into a PPA?
It is supposed to land...sometime...
https:/
README.txt:69:
On 2012/11/19 18:57:34, bac wrote:
> Ugh, I seem to have lxc issues since upgrading to Quantal, so I cannot
get it to
> start now.
If you want to pay, ec2 works, I think.
The unit tests seem to run in a separate machine, which is seems
unnecessarily annoying. Not a huge deal, and maybe I'm misinterpreting:
http://
Wow, running the tests is slow. :-/ I'd forgotten about this.
My lxc results were as follows. They seem to show some unexpected
problems. Are they OK? http://
https:/
README.txt:71: "setup-environment" is an easy way to get started.
Maybe it would be worth mentioning that you might want to set your
default environment to lxc?
Maybe it would be worth mentioning that using an lxc environment
requires that you install the apt-cacher-ng and lxc packages?
Your call.
https:/
File tests/unit.test (right):
https:/
tests/unit.test:6:
sys.exit(
On 2012/11/19 18:57:34, bac wrote:
> See comment in README
Mine too :-)
| Nicola Larosa (teknico) wrote : | # |
FWIW, some of the raised points are addressed in a subsequent branch:
https:/
https:/
File README.txt (right):
https:/
README.txt:21:
> Maybe better would be to .discover(
Yes, that's better.
https:/
README.txt:42: autoreconf
> Before this I needed to sudo apt-get install libtool autoconf (and
maybe some
> other bits too)
Yes, good idea mentioning it too.
https:/
README.txt:43: ./configure --prefix=/home/USER
> --prefix=$HOME is simpler
It can actually be any directory on $PATH, or left out if one is
comfortable with /usr/local. Whatever path is chosen, the subdirs bin/
and share/ will be created inside it, if not already there.
https:/
README.txt:46:
>> Has anyone talked to Jim about packaging this into a PPA?
> It is supposed to land...sometime...
Yes, it should become part of Jitsu eventually.
https:/
README.txt:62:
> You should mention the cwd must be the top of the charm, which is
unintuitive
> since you pass it as a parameter.
Good idea mentioning it too.
https:/
README.txt:69:
> My lxc results were as follows. They seem to show some unexpected
problems.
> Are they OK? http://
The failure of collecting logs is a known problem, and we forgot making
the assertion succeed again. :-)
https:/
File tests/test_
https:/
tests/test_
> Passing or Unpassing?
Eh. We forgot to put the expected value back to 2. :-)
- 5. By Benji York on 2012-11-21
-
review fixes

Hi Nicola and Benji,
This looks like a good start. I tried to work through your instructions
and ran into some problems that I have noted. Ultimately I failed due
to Quantal and LXC. I need to revisit it after sorting out those
problems.
So, consider this a tepid +1.
https:/ /codereview. appspot. com/6850052/ diff/1/ README. txt
File README.txt (right):
https:/ /codereview. appspot. com/6850052/ diff/1/ README. txt#newcode21 './tests' ) or
README.txt:21:
This doesn't actually work as unit.test has '.discover('.') but is being
run from above. Either unit.test should read '.discover(
it should be run from within the tests directory.
https:/ /codereview. appspot. com/6850052/ diff/1/ README. txt#newcode43
README.txt:43: ./configure --prefix=/home/USER
--prefix=$HOME is simpler
https:/ /codereview. appspot. com/6850052/ diff/1/ README. txt#newcode46
README.txt:46:
Has anyone talked to Jim about packaging this into a PPA?
https:/ /codereview. appspot. com/6850052/ diff/1/ README. txt#newcode62
README.txt:62:
You should mention the cwd must be the top of the charm, which is
unintuitive since you pass it as a parameter.
https:/ /codereview. appspot. com/6850052/ diff/1/ README. txt#newcode69
README.txt:69:
Ugh, I seem to have lxc issues since upgrading to Quantal, so I cannot
get it to start now.
https:/ /codereview. appspot. com/6850052/ diff/1/ tests/test_ addition. py addition. py (right):
File tests/test_
https:/ /codereview. appspot. com/6850052/ diff/1/ tests/test_ addition. py#newcode10 addition. py:10:
tests/test_
Passing or Unpassing?
https:/ /codereview. appspot. com/6850052/ diff/1/ tests/unit. test
File tests/unit.test (right):
https:/ /codereview. appspot. com/6850052/ diff/1/ tests/unit. test#newcode6 unittest. TextTestRunner( ).run(unittest. TestLoader( ).discover( '.')))
tests/unit.test:6:
sys.exit(
See comment in README
https:/ /codereview. appspot. com/6850052/