Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

MarathonSchedulerActorTest is Unstable #4933

Closed
aquamatthias opened this issue Jan 10, 2017 · 4 comments
Closed

MarathonSchedulerActorTest is Unstable #4933

aquamatthias opened this issue Jan 10, 2017 · 4 comments
Assignees

Comments

@aquamatthias
Copy link
Contributor

aquamatthias commented Jan 10, 2017

See:
#4922 (comment)

Tests: succeeded 2742, failed 1, canceled 0, ignored 1, pending 2
*** 1 TEST FAILED ***
MarathonSchedulerActorTest:

- Restart deployments after failover *** FAILED *** (31 milliseconds)
  java.lang.AssertionError: assertion failed: expected class mesosphere.marathon.MarathonSchedulerActor$CommandFailed, found class mesosphere.marathon.MarathonSchedulerActor$DeploymentStarted (DeploymentStarted(DeploymentPlan id=1f970f2e-215d-4859-83d3-bd7d62bda0fe,2017-01-10T00:29:53.655Z
step 1:
  * Start(App(app1, cmd="cmd"List())), instances=0)
step 2:
  * Scale(App(app1, cmd="cmd"List())), instances=2)
))
  at scala.Predef$.assert(Predef.scala:170)
  at akka.testkit.TestKitBase$class.expectMsgClass_internal(TestKit.scala:473)
  at akka.testkit.TestKitBase$class.expectMsgType(TestKit.scala:445)
  at mesosphere.marathon.MarathonSchedulerActorTest.expectMsgType(MarathonSchedulerActorTest.scala:37)
  at mesosphere.marathon.MarathonSchedulerActorTest$$anonfun$16.apply(MarathonSchedulerActorTest.scala:459)
  at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
  at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
  at org.scalatest.Transformer.apply(Transformer.scala:22)
  at org.scalatest.Transformer.apply(Transformer.scala:20)
  at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:186)
  at org.scalatest.TestSuite$class.withFixture(TestSuite.scala:196)
  at mesosphere.marathon.MarathonSchedulerActorTest.withFixture(MarathonSchedulerActorTest.scala:37)
  at org.scalatest.FunSuiteLike$class.invokeWithFixture$1(FunSuiteLike.scala:183)
  at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:196)
  at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:196)
  at org.scalatest.SuperEngine.runTestImpl(Engine.scala:289)
  at org.scalatest.FunSuiteLike$class.runTest(FunSuiteLike.scala:196)
  at mesosphere.marathon.MarathonSchedulerActorTest.org$scalatest$BeforeAndAfter$$super$runTest(MarathonSchedulerActorTest.scala:37)
  at org.scalatest.BeforeAndAfter$class.runTest(BeforeAndAfter.scala:203)
  at mesosphere.marathon.MarathonSchedulerActorTest.runTest(MarathonSchedulerActorTest.scala:37)
  at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:229)
  at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:229)
  at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:396)
  at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:384)
  at scala.collection.immutable.List.foreach(List.scala:381)
  at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384)
  at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:379)
  at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:461)
  at org.scalatest.FunSuiteLike$class.runTests(FunSuiteLike.scala:229)
  at mesosphere.marathon.MarathonSchedulerActorTest.runTests(MarathonSchedulerActorTest.scala:37)
  at org.scalatest.Suite$class.run(Suite.scala:1147)
  at mesosphere.marathon.MarathonSchedulerActorTest.org$scalatest$FunSuiteLike$$super$run(MarathonSchedulerActorTest.scala:37)
  at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:233)
  at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:233)
  at org.scalatest.SuperEngine.runImpl(Engine.scala:521)
  at org.scalatest.FunSuiteLike$class.run(FunSuiteLike.scala:233)
  at mesosphere.marathon.MarathonSchedulerActorTest.org$scalatest$BeforeAndAfter$$super$run(MarathonSchedulerActorTest.scala:37)
  at org.scalatest.BeforeAndAfter$class.run(BeforeAndAfter.scala:258)
  at mesosphere.marathon.MarathonSchedulerActorTest.org$scalatest$BeforeAndAfterAll$$super$run(MarathonSchedulerActorTest.scala:37)
  at org.scalatest.BeforeAndAfterAll$class.liftedTree1$1(BeforeAndAfterAll.scala:213)
  at org.scalatest.BeforeAndAfterAll$class.run(BeforeAndAfterAll.scala:210)
  at mesosphere.marathon.MarathonSchedulerActorTest.run(MarathonSchedulerActorTest.scala:37)
  at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:314)
  at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:480)
  at sbt.ForkMain$Run$2.call(ForkMain.java:296)
  at sbt.ForkMain$Run$2.call(ForkMain.java:286)
  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  at java.lang.Thread.run(Thread.java:745)
[info] ScalaTest
[info] Run completed in 2 minutes, 58 seconds.
[info] Total number of tests run: 2743
[info] Suites: completed 239, aborted 0
[info] Tests: succeeded 2742, failed 1, canceled 0, ignored 1, pending 2
[info] *** 1 TEST FAILED ***

@HackToday
Copy link

Looking forward this fix, BTW. how can build the jars while ignoring the sbt failed test ? I want to build jars. but always blocked by failed sbt test. Thanks

@timcharper
Copy link
Contributor

A possible workaround is to just delete the test that is failing.

aquamatthias added a commit that referenced this issue Jan 11, 2017
Summary: #4933

Test Plan: sbt test

Reviewers: meichstedt

Subscribers: jenkins, marathon-team

Differential Revision: https://phabricator.mesosphere.com/D409
aquamatthias added a commit that referenced this issue Jan 11, 2017
Summary: #4933

Test Plan: sbt test

Reviewers: meichstedt

Subscribers: jenkins, marathon-team

Differential Revision: https://phabricator.mesosphere.com/D409

(cherry picked from commit 15aef32)
@aquamatthias aquamatthias modified the milestone: Marathon 1.4 Jan 16, 2017
@aquamatthias aquamatthias added ready and removed ready labels Jan 18, 2017
@zen-dog zen-dog added in progress and removed ready labels Jan 19, 2017
@HackToday
Copy link

@aquamatthias Just pull latest code, still have test failed

nated(Actor[akka://default/user]),Actor[akka://default/user])
[DEBUG] [01/22/2017 08:44:35.325] [default-akka.actor.default-dispatcher-7] [EventStream] shutting down: StandardOutLogger started
Run completed in 2 minutes, 44 seconds.
Total number of tests run: 2758
Suites: completed 239, aborted 0
Tests: succeeded 2757, failed 1, canceled 0, ignored 1, pending 2
*** 1 TEST FAILED ***
MarathonSchedulerActorTest:

- Restart deployments after failover *** FAILED *** (28 milliseconds)
  java.lang.AssertionError: assertion failed: expected class mesosphere.marathon.MarathonSchedulerActor$CommandFailed, found class mesosphere.marathon.MarathonSchedulerActor$DeploymentStarted (DeploymentStarted(DeploymentPlan id=f91ef6f1-5227-4889-840c-d77c575beee6,2017-01-22T00:44:08.152Z
step 1:
  * Start(App(app1, cmd="cmd"List())), instances=0)
step 2:
  * Scale(App(app1, cmd="cmd"List())), instances=2)
))
  at scala.Predef$.assert(Predef.scala:170)
  at akka.testkit.TestKitBase$class.expectMsgClass_internal(TestKit.scala:473)
  at akka.testkit.TestKitBase$class.expectMsgType(TestKit.scala:445)
  at mesosphere.marathon.MarathonSchedulerActorTest.expectMsgType(MarathonSchedulerActorTest.scala:38)
  at mesosphere.marathon.MarathonSchedulerActorTest$$anonfun$18.apply(MarathonSchedulerActorTest.scala:450)
  at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
  at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
  at org.scalatest.Transformer.apply(Transformer.scala:22)
  at org.scalatest.Transformer.apply(Transformer.scala:20)
  at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:186)
  at org.scalatest.TestSuite$class.withFixture(TestSuite.scala:196)
  at mesosphere.marathon.MarathonSchedulerActorTest.withFixture(MarathonSchedulerActorTest.scala:38)
  at org.scalatest.FunSuiteLike$class.invokeWithFixture$1(FunSuiteLike.scala:183)
  at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:196)
  at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:196)
  at org.scalatest.SuperEngine.runTestImpl(Engine.scala:289)
  at org.scalatest.FunSuiteLike$class.runTest(FunSuiteLike.scala:196)
  at mesosphere.marathon.MarathonSchedulerActorTest.org$scalatest$BeforeAndAfter$$super$runTest(MarathonSchedulerActorTest.scala:38)
  at org.scalatest.BeforeAndAfter$class.runTest(BeforeAndAfter.scala:203)
  at mesosphere.marathon.MarathonSchedulerActorTest.runTest(MarathonSchedulerActorTest.scala:38)
  at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:229)
  at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:229)
  at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:396)
  at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:384)
  at scala.collection.immutable.List.foreach(List.scala:381)
  at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384)
  at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:379)
  at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:461)
  at org.scalatest.FunSuiteLike$class.runTests(FunSuiteLike.scala:229)
  at mesosphere.marathon.MarathonSchedulerActorTest.runTests(MarathonSchedulerActorTest.scala:38)
  at org.scalatest.Suite$class.run(Suite.scala:1147)
  at mesosphere.marathon.MarathonSchedulerActorTest.org$scalatest$FunSuiteLike$$super$run(MarathonSchedulerActorTest.scala:38)
  at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:233)
  at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:233)
  at org.scalatest.SuperEngine.runImpl(Engine.scala:521)
  at org.scalatest.FunSuiteLike$class.run(FunSuiteLike.scala:233)
  at mesosphere.marathon.MarathonSchedulerActorTest.org$scalatest$BeforeAndAfter$$super$run(MarathonSchedulerActorTest.scala:38)
  at org.scalatest.BeforeAndAfter$class.run(BeforeAndAfter.scala:258)
  at mesosphere.marathon.MarathonSchedulerActorTest.org$scalatest$BeforeAndAfterAll$$super$run(MarathonSchedulerActorTest.scala:38)
  at org.scalatest.BeforeAndAfterAll$class.liftedTree1$1(BeforeAndAfterAll.scala:213)
  at org.scalatest.BeforeAndAfterAll$class.run(BeforeAndAfterAll.scala:210)
  at mesosphere.marathon.MarathonSchedulerActorTest.run(MarathonSchedulerActorTest.scala:38)
  at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:314)
  at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:480)
  at sbt.ForkMain$Run$2.call(ForkMain.java:296)
  at sbt.ForkMain$Run$2.call(ForkMain.java:286)
  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  at java.lang.Thread.run(Thread.java:745)
[info] ScalaTest
[info] Run completed in 2 minutes, 44 seconds.
[info] Total number of tests run: 2758
[info] Suites: completed 239, aborted 0
[info] Tests: succeeded 2757, failed 1, canceled 0, ignored 1, pending 2
[info] *** 1 TEST FAILED ***
[error] Failed: Total 2758, Failed 1, Errors 0, Passed 2757, Ignored 1, Pending 2
[error] Failed tests:
[error] 	mesosphere.marathon.MarathonSchedulerActorTest
[error] (marathon/test:test) sbt.TestsFailedException: Tests unsuccessful

@zen-dog
Copy link
Contributor

zen-dog commented Jan 23, 2017

@HackToday Interesting, I can't make it fail locally. Could you pls attach the complete log?

unterstein pushed a commit that referenced this issue Mar 1, 2017
…s stable again

Summary:
Couldn't find anything wrong with the test, so let's see how it behaves when marked as stable again.
If it fails we'll have more logs and I'll take a look at it again.

Fixes: #4933

Test Plan: unit-test

Reviewers: jeschkies, unterstein

Reviewed By: jeschkies, unterstein

Subscribers: jenkins, marathon-team

Differential Revision: https://phabricator.mesosphere.com/D429
unterstein pushed a commit that referenced this issue Mar 3, 2017
…s stable again

Summary:
Couldn't find anything wrong with the test, so let's see how it behaves when marked as stable again.
If it fails we'll have more logs and I'll take a look at it again.

Fixes: #4933

Test Plan: unit-test

Reviewers: jeschkies, unterstein

Reviewed By: jeschkies, unterstein

Subscribers: jenkins, marathon-team

Differential Revision: https://phabricator.mesosphere.com/D429
unterstein pushed a commit that referenced this issue Mar 6, 2017
…s stable again

Summary:
Couldn't find anything wrong with the test, so let's see how it behaves when marked as stable again.
If it fails we'll have more logs and I'll take a look at it again.

Fixes: #4933

Test Plan: unit-test

Reviewers: jeschkies, unterstein

Reviewed By: jeschkies, unterstein

Subscribers: jenkins, marathon-team

Differential Revision: https://phabricator.mesosphere.com/D429
@d2iq-archive d2iq-archive locked and limited conversation to collaborators Mar 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants