Merge lp:~jameinel/juju-core/disable-testmanagestateservesapi-1219661 into lp:~go-bot/juju-core/trunk

Proposed by John A Meinel
Status: Merged
Approved by: John A Meinel
Approved revision: no longer in the source branch.
Merged at revision: 1742
Proposed branch: lp:~jameinel/juju-core/disable-testmanagestateservesapi-1219661
Merge into: lp:~go-bot/juju-core/trunk
Diff against target: 16 lines (+5/-0)
1 file modified
cmd/jujud/machine_test.go (+5/-0)
To merge this branch: bzr merge lp:~jameinel/juju-core/disable-testmanagestateservesapi-1219661
Reviewer Review Type Date Requested Status
Juju Engineering Pending
Review via email: mp+183384@code.launchpad.net

Commit message

cmd/jujud: Disable flaky test

TestManageStateServesAPI is failing about half the time on the bot. I'd love to
have a fix, but until we do I don't want to reject peoples patches incorrectly.

https://codereview.appspot.com/13253045/

Description of the change

cmd/jujud: Disable flaky test

TestManageStateServesAPI is failing about half the time on the bot. I'd love to
have a fix, but until we do I don't want to reject peoples patches incorrectly.

https://codereview.appspot.com/13253045/

To post a comment you must log in.
Revision history for this message
John A Meinel (jameinel) wrote :

Reviewers: mp+183384_code.launchpad.net,

Message:
Please take a look.

Description:
cmd/jujud: Disable flaky test

TestManageStateServesAPI is failing about half the time on the bot. I'd
love to
have a fix, but until we do I don't want to reject peoples patches
incorrectly.

https://code.launchpad.net/~jameinel/juju-core/disable-testmanagestateservesapi-1219661/+merge/183384

(do not edit description out of merge proposal)

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

Affected files:
   A [revision details]
   M cmd/jujud/machine_test.go

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: tarmac-20130902034049-oech4u0m5spe4r02
+New revision: <email address hidden>

Index: cmd/jujud/machine_test.go
=== modified file 'cmd/jujud/machine_test.go'
--- cmd/jujud/machine_test.go 2013-08-29 05:36:08 +0000
+++ cmd/jujud/machine_test.go 2013-09-02 07:28:00 +0000
@@ -374,7 +374,11 @@
   }
  }

-func (s *MachineSuite) TestManageStateServesAPI(c *gc.C) {
+// TODO(jam): 2013-09-02 http://pad.lv/1219661
+// This test has been failing regularly on the Bot. Until someone fixes it
so
+// it doesn't crash, it isn't worth having as we can't tell when someone
+// actually breaks something.
+func (s *MachineSuite) DONT_TestManageStateServesAPI(c *gc.C) {
   s.assertJobWithState(c, state.JobManageState, func(conf agent.Config,
agentState *state.State) {
    st, _, err := conf.OpenAPI(fastDialOpts)
    c.Assert(err, gc.IsNil)

Revision history for this message
Andrew Wilkins (axwalk) wrote :

LGTM

https://codereview.appspot.com/13253045/diff/1/cmd/jujud/machine_test.go
File cmd/jujud/machine_test.go (right):

https://codereview.appspot.com/13253045/diff/1/cmd/jujud/machine_test.go#newcode381
cmd/jujud/machine_test.go:381: func (s *MachineSuite)
DONT_TestManageStateServesAPI(c *gc.C) {
I think it would be better to use c.Skip, just so it's in everybody's
faces.

https://codereview.appspot.com/13253045/

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

Please take a look.

https://codereview.appspot.com/13253045/diff/1/cmd/jujud/machine_test.go
File cmd/jujud/machine_test.go (right):

https://codereview.appspot.com/13253045/diff/1/cmd/jujud/machine_test.go#newcode381
cmd/jujud/machine_test.go:381: func (s *MachineSuite)
DONT_TestManageStateServesAPI(c *gc.C) {
On 2013/09/02 08:27:00, axw1 wrote:
> I think it would be better to use c.Skip, just so it's in everybody's
faces.

Done.

https://codereview.appspot.com/13253045/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'cmd/jujud/machine_test.go'
2--- cmd/jujud/machine_test.go 2013-08-29 05:36:08 +0000
3+++ cmd/jujud/machine_test.go 2013-09-02 08:35:45 +0000
4@@ -374,7 +374,12 @@
5 }
6 }
7
8+// TODO(jam): 2013-09-02 http://pad.lv/1219661
9+// This test has been failing regularly on the Bot. Until someone fixes it so
10+// it doesn't crash, it isn't worth having as we can't tell when someone
11+// actually breaks something.
12 func (s *MachineSuite) TestManageStateServesAPI(c *gc.C) {
13+ c.Skip("does not pass reliably on the bot (http://pad.lv/1219661")
14 s.assertJobWithState(c, state.JobManageState, func(conf agent.Config, agentState *state.State) {
15 st, _, err := conf.OpenAPI(fastDialOpts)
16 c.Assert(err, gc.IsNil)

Subscribers

People subscribed via source and target branches

to status/vote changes: