Fixes: #4777
Needs to be cherry picked in releases/1.4
aquamatthias | |
meichstedt | |
jeschkies |
Fixes: #4777
Needs to be cherry picked in releases/1.4
none
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Build has FAILED
Link to build: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/524/
See console output for more information: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/524/console
Thanks, LGTM – 2 minor comments that should be addressed though.
src/main/scala/mesosphere/marathon/MarathonSchedulerActor.scala | ||
---|---|---|
540–541 | Can you please rename *task* to *instance*? | |
src/test/scala/mesosphere/marathon/MarathonSchedulerActorTest.scala | ||
268 ↗ | (On Diff #1092) | Thanks for the test! How about a test that also verifies that no instances are added to the launch queue when either
The latter is clearly a failure scenario, probably of another component. Yet adding -3 to the launch queue wouldn't make sense so we should verify that it works for that scenario as well. |
Build has FAILED
Link to build: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/533/
See console output for more information: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/533/console
Build has FAILED
Link to build: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/540/
See console output for more information: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/540/console
Build has FAILED
Link to build: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/543/
See console output for more information: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/543/console
Build has FAILED
Link to build: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/546/
See console output for more information: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/546/console
src/test/scala/mesosphere/marathon/MarathonSchedulerActorTest.scala | ||
---|---|---|
293 ↗ | (On Diff #1109) | This means it will wait for 5 seconds to verify queue.add wasn't called. Following the pattern these (older) tests normally use, please write noMoreInteractions(queue). Yet, why does this code test the actor anyways? the def scale(runSpec: RunSpec): Unit is defined in the SchedulerActions class, so you can should test this in the associated SchedulerActionsTest – sorry for not realizing this earlier. Benefit is it doesn't use an actor system. |
src/test/scala/mesosphere/marathon/MarathonSchedulerActorTest.scala | ||
---|---|---|
293 ↗ | (On Diff #1109) | Oh, I didn't see those. Yes, SchedulerActionsTest is a much better place for these tests. |
Build has FAILED
Link to build: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/557/
See console output for more information: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/557/console
Build has FAILED
Link to build: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/560/
See console output for more information: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/560/console
Build has FAILED
Link to build: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/561/
See console output for more information: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/561/console
Build has FAILED
Link to build: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/562/
See console output for more information: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/562/console
Build has FAILED
Link to build: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/563/
See console output for more information: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/563/console
Build has FAILED
Link to build: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/571/
See console output for more information: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/571/console
Build has FAILED
Link to build: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/573/
See console output for more information: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/573/console
Build has FAILED
Link to build: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/574/
See console output for more information: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/574/console
Build has FAILED
Link to build: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/575/
See console output for more information: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/575/console
Build has FAILED
Link to build: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/576/
See console output for more information: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/576/console
Build is green https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/578/ for more details.
Can you please rename *task* to *instance*?