Merge lp:~matsubara/maas/invalid-syntax-fix into lp:~maas-committers/maas/trunk

Proposed by Diogo Matsubara
Status: Merged
Approved by: Scott Moser
Approved revision: no longer in the source branch.
Merged at revision: 1019
Proposed branch: lp:~matsubara/maas/invalid-syntax-fix
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 12 lines (+1/-1)
1 file modified
src/provisioningserver/tests/test_kernel_opts.py (+1/-1)
To merge this branch: bzr merge lp:~matsubara/maas/invalid-syntax-fix
Reviewer Review Type Date Requested Status
Scott Moser (community) Approve
Review via email: mp+125067@code.launchpad.net

Commit message

fix invalid syntax in test_kernel_opts.py

Description of the change

Fix invalid syntax in test_kernel_opts.py introduce in the previous revision.

To post a comment you must log in.
Revision history for this message
Scott Moser (smoser) wrote :

Thank you

review: Approve
Revision history for this message
John A Meinel (jameinel) wrote :

How did it get landed if it had a syntax error? nose was just not loading the file and not failing the test suite? Is there a way to teach nose that it should treat syntax errors as failures?

Revision history for this message
Gavin Panella (allenap) wrote :

On 19 Sep 2012 06:57, "John A Meinel" <email address hidden> wrote:
> How did it get landed if it had a syntax error? nose was just not loading
the file and not failing the test suite? Is there a way to teach nose that
it should treat syntax errors as failures?

Tests were failing, but landing to trunk is not gated on the test suite
passing; Jenkins is set up to only tests things once they're in.

Tarmac could do this for us, but we'd need to move it to a different host,
or otherwise isolate it. IIRC, it's running on carob, under Julian's
account.

Or, we could follow the Launchpad model and have a stable branch which
feeds from trunk via Jenkins.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

On Wednesday 19 September 2012 06:19:41 you wrote:
> On 19 Sep 2012 06:57, "John A Meinel" <email address hidden> wrote:
> > How did it get landed if it had a syntax error? nose was just not loading
>
> the file and not failing the test suite? Is there a way to teach nose that
> it should treat syntax errors as failures?
>
> Tests were failing, but landing to trunk is not gated on the test suite
> passing; Jenkins is set up to only tests things once they're in.
>
> Tarmac could do this for us, but we'd need to move it to a different host,
> or otherwise isolate it. IIRC, it's running on carob, under Julian's
> account.

It is. I want to use canonistack to run it, but that is currently too
unreliable and there's no way I am running arbitrary code under my account on
carob.

> Or, we could follow the Launchpad model and have a stable branch which
> feeds from trunk via Jenkins.

This is a joke? :)

Revision history for this message
Gavin Panella (allenap) wrote :

On 19 September 2012 11:01, Julian Edwards <email address hidden> wrote:
>> Or, we could follow the Launchpad model and have a stable branch which
>> feeds from trunk via Jenkins.
>
> This is a joke? :)

Only half :) For the sake of development in a smallish team I think
it's good to land quickly and work on honour. For the sake of packages
it's good to build from something known to be reproducibly tested.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/provisioningserver/tests/test_kernel_opts.py'
2--- src/provisioningserver/tests/test_kernel_opts.py 2012-09-18 20:48:08 +0000
3+++ src/provisioningserver/tests/test_kernel_opts.py 2012-09-18 22:55:22 +0000
4@@ -125,7 +125,7 @@
5 "root=LABEL=cloudimg-rootfs",
6 "iscsi_initiator=",
7 "overlayroot=tmpfs",
8- "ip=dhcp")
9+ "ip=dhcp"]))
10
11 def test_compose_kernel_command_line_inc_common_opts(self):
12 # Test that some kernel arguments appear on both commissioning