Looking into in; not sure what's going on - I ran the tests locally before pushing..
On Fri, Jan 17, 2014 at 11:59 AM, Apache Jenkins Server < jenk...@builds.apache.org> wrote: > See <https://builds.apache.org/job/Aurora/54/changes> > > Changes: > > [mchucarroll] Get rid of ambiguities about exactly what object is being > used to send calls to the scheduler. (See AURORA-42). > > ------------------------------------------ > [...truncated 3291 lines...] > ============================= test session starts > ============================== > platform linux2 -- Python 2.7.3 -- pytest-2.5.1 -- /usr/bin/python2.7 > collecting ... collected 26 items > > src/test/python/apache/aurora/client/api/test_updater.py:735: > UpdaterTest.test_diff_unordered_configs PASSED > src/test/python/apache/aurora/client/api/test_updater.py:705: > UpdaterTest.test_failed_unretryable_do_not_cause_rollback ERROR:root:Failed > instances: set([0]) > ERROR:root:Failed instances: set([0]) > ERROR:root:Failed instances: set([0]) > WARNING:root:Not restarting failed instances [0], which exceeded maximum > allowed instance failure limit of 2 > PASSED > src/test/python/apache/aurora/client/api/test_updater.py:589: > UpdaterTest.test_finish_invalid_response ERROR:root:There was an error > finalizing the update: test > PASSED > src/test/python/apache/aurora/client/api/test_updater.py:253: > UpdaterTest.test_grow PASSED > src/test/python/apache/aurora/client/api/test_updater.py:273: > UpdaterTest.test_grow_fails_quota_check PASSED > src/test/python/apache/aurora/client/api/test_updater.py:378: > UpdaterTest.test_grow_with_instance_option PASSED > src/test/python/apache/aurora/client/api/test_updater.py:655: > UpdaterTest.test_instances_outside_range PASSED > src/test/python/apache/aurora/client/api/test_updater.py:602: > UpdaterTest.test_invalid_batch_size PASSED > src/test/python/apache/aurora/client/api/test_updater.py:609: > UpdaterTest.test_invalid_restart_threshold PASSED > src/test/python/apache/aurora/client/api/test_updater.py:616: > UpdaterTest.test_invalid_watch_secs PASSED > src/test/python/apache/aurora/client/api/test_updater.py:640: > UpdaterTest.test_job_does_not_exist PASSED > src/test/python/apache/aurora/client/api/test_updater.py:453: > UpdaterTest.test_noop_update PASSED > src/test/python/apache/aurora/client/api/test_updater.py:435: > UpdaterTest.test_patch_hole_with_instance_option PASSED > src/test/python/apache/aurora/client/api/test_updater.py:289: > UpdaterTest.test_shrink PASSED > src/test/python/apache/aurora/client/api/test_updater.py:396: > UpdaterTest.test_shrink_with_instance_option PASSED > src/test/python/apache/aurora/client/api/test_updater.py:581: > UpdaterTest.test_start_invalid_response PASSED > src/test/python/apache/aurora/client/api/test_updater.py:539: > UpdaterTest.test_update_after_restart ERROR:root:Failed instances: set([0, > 1, 2]) > PASSED > src/test/python/apache/aurora/client/api/test_updater.py:308: > UpdaterTest.test_update_and_grow PASSED > src/test/python/apache/aurora/client/api/test_updater.py:332: > UpdaterTest.test_update_and_shrink PASSED > src/test/python/apache/aurora/client/api/test_updater.py:568: > UpdaterTest.test_update_cron_job PASSED > src/test/python/apache/aurora/client/api/test_updater.py:355: > UpdaterTest.test_update_instances PASSED > src/test/python/apache/aurora/client/api/test_updater.py:623: > UpdaterTest.test_update_invalid_response PASSED > src/test/python/apache/aurora/client/api/test_updater.py:469: > UpdaterTest.test_update_rollback ERROR:root:Failed instances: set([0, 1, 2]) > ERROR:root:Failed instances: set([0, 1, 2]) > WARNING:root:Not restarting failed instances [0, 1, 2], which exceeded > maximum allowed instance failure limit of 1 > ERROR:root:3 failed instances observed, maximum allowed is 2 > ERROR:root:2 instance failures for instance 0, maximum allowed is 1 > ERROR:root:2 instance failures for instance 1, maximum allowed is 1 > ERROR:root:2 instance failures for instance 2, maximum allowed is 1 > ERROR:root:3 failed instances observed, maximum allowed is 2 > ERROR:root:2 instance failures for instance 0, maximum allowed is 1 > ERROR:root:2 instance failures for instance 1, maximum allowed is 1 > ERROR:root:2 instance failures for instance 2, maximum allowed is 1 > ERROR:root:3 failed instances observed, maximum allowed is 2 > ERROR:root:2 instance failures for instance 0, maximum allowed is 1 > ERROR:root:2 instance failures for instance 1, maximum allowed is 1 > ERROR:root:2 instance failures for instance 2, maximum allowed is 1 > WARNING:root:Update failures threshold reached > PASSED > src/test/python/apache/aurora/client/api/test_updater.py:498: > UpdaterTest.test_update_rollback_sorted ERROR:root:Failed instances: > set([2]) > ERROR:root:Failed instances: set([2]) > WARNING:root:Not restarting failed instances [2], which exceeded maximum > allowed instance failure limit of 1 > ERROR:root:1 failed instances observed, maximum allowed is 0 > ERROR:root:2 instance failures for instance 2, maximum allowed is 1 > ERROR:root:1 failed instances observed, maximum allowed is 0 > ERROR:root:2 instance failures for instance 2, maximum allowed is 1 > ERROR:root:1 failed instances observed, maximum allowed is 0 > ERROR:root:2 instance failures for instance 2, maximum allowed is 1 > WARNING:root:Update failures threshold reached > PASSED > src/test/python/apache/aurora/client/api/test_updater.py:670: > UpdaterTest.test_update_skips_unretryable ERROR:root:Failed instances: > set([0]) > ERROR:root:Failed instances: set([0]) > ERROR:root:Failed instances: set([0]) > WARNING:root:Not restarting failed instances [0], which exceeded maximum > allowed instance failure limit of 2 > PASSED > src/test/python/apache/aurora/client/api/test_updater.py:414: > UpdaterTest.test_update_with_instance_option PASSED > > ========================== 26 passed in 0.36 seconds > =========================== > ============================= test session starts > ============================== > platform linux2 -- Python 2.7.3 -- pytest-2.5.1 -- /usr/bin/python2.7 > collecting ... collected 6 items > > src/test/python/apache/aurora/client/api/test_quota_check.py:79: > QuotaCheckTest.test_fail PASSED > src/test/python/apache/aurora/client/api/test_quota_check.py:88: > QuotaCheckTest.test_fail_scheduler_call ERROR:root:Failed to get quota from > scheduler: test > PASSED > src/test/python/apache/aurora/client/api/test_quota_check.py:50: > QuotaCheckTest.test_pass PASSED > src/test/python/apache/aurora/client/api/test_quota_check.py:67: > QuotaCheckTest.test_pass_due_to_released PASSED > src/test/python/apache/aurora/client/api/test_quota_check.py:59: > QuotaCheckTest.test_pass_with_no_consumed PASSED > src/test/python/apache/aurora/client/api/test_quota_check.py:76: > QuotaCheckTest.test_skipped PASSED > > =========================== 6 passed in 0.06 seconds > =========================== > ============================= test session starts > ============================== > platform linux2 -- Python 2.7.3 -- pytest-2.5.1 -- /usr/bin/python2.7 > collecting ... collected 17 items > > src/test/python/apache/aurora/client/cli/test_create.py:122: > TestClientCreateCommand.test_create_job_delayed PASSED > src/test/python/apache/aurora/client/cli/test_create.py:147: > TestClientCreateCommand.test_create_job_failed Error executing command: Damn > PASSED > src/test/python/apache/aurora/client/cli/test_create.py:173: > TestClientCreateCommand.test_create_job_failed_invalid_config Error > executing command: Error loading job configuration: invalid syntax > (tmpzdDQ4p, line 9) > PASSED > src/test/python/apache/aurora/client/cli/test_create.py:89: > TestClientCreateCommand.test_simple_successful_create_job PASSED > src/test/python/apache/aurora/client/cli/test_kill.py:20: > TestInstancesParser.test_parse_instances PASSED > src/test/python/apache/aurora/client/cli/test_kill.py:25: > TestInstancesParser.test_parse_none PASSED > src/test/python/apache/aurora/client/cli/test_kill.py:39: > TestClientKillCommand.test_kill_job PASSED > src/test/python/apache/aurora/client/cli/test_kill.py:60: > TestClientKillCommand.test_kill_job_with_instances PASSED > src/test/python/apache/aurora/client/cli/test_kill.py:80: > TestClientKillCommand.test_kill_job_with_instances_deep_api PASSED > src/test/python/apache/aurora/client/cli/test_status.py:110: > TestJobStatus.test_status_wildcard Active tasks (3): > cpus: 2, ram: 2 MB, disk: 2 MB > 1970-11-23 18:58:46 RUNNING: Hi there > packages: cpus: 2, ram: 2 MB, disk: 2 MB > 1970-11-23 18:58:46 RUNNING: Hi there > packages: cpus: 2, ram: 2 MB, disk: 2 MB > 1970-11-23 18:58:46 RUNNING: Hi there > packages:Inactive tasks (0): > Active tasks (3): > cpus: 2, ram: 2 MB, disk: 2 MB > 1970-11-23 18:58:46 RUNNING: Hi there > packages: cpus: 2, ram: 2 MB, disk: 2 MB > 1970-11-23 18:58:46 RUNNING: Hi there > packages: cpus: 2, ram: 2 MB, disk: 2 MB > 1970-11-23 18:58:46 RUNNING: Hi there > packages:Inactive tasks (0): > > PASSED > src/test/python/apache/aurora/client/cli/test_status.py:138: > TestJobStatus.test_status_wildcard_two Active tasks (3): > cpus: 2, ram: 2 MB, disk: 2 MB > 1970-11-23 18:58:46 RUNNING: Hi there > packages: cpus: 2, ram: 2 MB, disk: 2 MB > 1970-11-23 18:58:46 RUNNING: Hi there > packages: cpus: 2, ram: 2 MB, disk: 2 MB > 1970-11-23 18:58:46 RUNNING: Hi there > packages:Inactive tasks (0): > > PASSED > src/test/python/apache/aurora/client/cli/test_status.py:97: > TestJobStatus.test_successful_status_deep Error executing command: <Mock > name='mock.scheduler.getTasksStatus().message' id='44913360'> > PASSED > src/test/python/apache/aurora/client/cli/test_status.py:85: > TestJobStatus.test_successful_status_shallow Active tasks (3): > cpus: 2, ram: 2 MB, disk: 2 MB > 1970-11-23 18:58:46 RUNNING: Hi there > packages: cpus: 2, ram: 2 MB, disk: 2 MB > 1970-11-23 18:58:46 RUNNING: Hi there > packages: cpus: 2, ram: 2 MB, disk: 2 MB > 1970-11-23 18:58:46 RUNNING: Hi there > packages:Inactive tasks (0): > > PASSED > src/test/python/apache/aurora/client/cli/test_status.py:156: > TestJobStatus.test_unsuccessful_status_shallow Error executing command: No > tasks found for query > PASSED > src/test/python/apache/aurora/client/cli/test_diff.py:123: > TestDiffCommand.test_diff_invalid_config Error executing command: Error > loading job configuration: invalid syntax (tmpn4d_fb, line 9) > PASSED > src/test/python/apache/aurora/client/cli/test_diff.py:150: > TestDiffCommand.test_diff_server_error Error executing command: Could not > find job to diff against > PASSED > src/test/python/apache/aurora/client/cli/test_diff.py:94: > TestDiffCommand.test_successful_diff PASSED > > ========================== 17 passed in 0.55 seconds > =========================== > ============================= test session starts > ============================== > platform linux2 -- Python 2.7.3 -- pytest-2.5.1 -- /usr/bin/python2.7 > collecting ... collected 24 items > > src/test/python/apache/aurora/client/commands/test_cancel_update.py:103: > TestClientCancelUpdateCommand.test_cancel_update_api_level PASSED > src/test/python/apache/aurora/client/commands/test_cancel_update.py:73: > TestClientCancelUpdateCommand.test_simple_successful_cancel_update PASSED > src/test/python/apache/aurora/client/commands/test_create.py:169: > TestClientCreateCommand.test_create_job_failed PASSED > src/test/python/apache/aurora/client/commands/test_create.py:233: > TestClientCreateCommand.test_create_job_failed_invalid_config PASSED > src/test/python/apache/aurora/client/commands/test_create.py:256: > TestClientCreateCommand.test_create_job_failed_invalid_config_two PASSED > src/test/python/apache/aurora/client/commands/test_create.py:136: > TestClientCreateCommand.test_create_job_wait_until_finished PASSED > src/test/python/apache/aurora/client/commands/test_create.py:201: > TestClientCreateCommand.test_delayed_job PASSED > src/test/python/apache/aurora/client/commands/test_create.py:92: > TestClientCreateCommand.test_simple_successful_create_job PASSED > src/test/python/apache/aurora/client/commands/test_diff.py:126: > TestDiffCommand.test_diff_invalid_config PASSED > src/test/python/apache/aurora/client/commands/test_diff.py:152: > TestDiffCommand.test_diff_server_error CRITICAL:root:Request failed, server > responded with "No tasks found for query" > PASSED > src/test/python/apache/aurora/client/commands/test_diff.py:91: > TestDiffCommand.test_successful_diff PASSED > src/test/python/apache/aurora/client/commands/test_kill.py:103: > TestClientKillCommand.test_kill_job_api_level PASSED > src/test/python/apache/aurora/client/commands/test_kill.py:131: > TestClientKillCommand.test_kill_job_api_level_with_shards PASSED > src/test/python/apache/aurora/client/commands/test_kill.py:68: > TestClientKillCommand.test_simple_successful_kill_job PASSED > src/test/python/apache/aurora/client/commands/test_listjobs.py:59: > TestListJobs.test_listjobs_badcluster CRITICAL:root:Unknown cluster: smoof > PASSED > src/test/python/apache/aurora/client/commands/test_listjobs.py:43: > TestListJobs.test_successful_listjobs west/mchucarroll/test/bar '<Mock > name='mock.cronSchedule' id='42041872'>' <Mock > name='mock.cronCollisionPolicy' id='42042896'> > west/mchucarroll/test/foo '<Mock name='mock.cronSchedule' > id='42041744'>' <Mock name='mock.cronCollisionPolicy' id='42041680'> > west/mchucarroll/test/baz '<Mock name='mock.cronSchedule' > id='42041552'>' <Mock name='mock.cronCollisionPolicy' id='42041424'> > PASSED > src/test/python/apache/aurora/client/commands/test_restart.py:143: > TestRestartCommand.test_restart_failed_restart ERROR:root:Error restarting > instances: Damn > PASSED > src/test/python/apache/aurora/client/commands/test_restart.py:117: > TestRestartCommand.test_restart_failed_status PASSED > src/test/python/apache/aurora/client/commands/test_restart.py:85: > TestRestartCommand.test_restart_simple PASSED > src/test/python/apache/aurora/client/commands/test_status.py:73: > TestListJobs.test_successful_status PASSED > src/test/python/apache/aurora/client/commands/test_status.py:93: > TestListJobs.test_unsuccessful_status PASSED > src/test/python/apache/aurora/client/commands/test_update.py:59: > TestUpdateCommand.test_update_command_line_succeeds PASSED > src/test/python/apache/aurora/client/commands/test_update.py:82: > TestUpdateCommand.test_update_invalid_config PASSED > src/test/python/apache/aurora/client/commands/test_update.py:193: > TestUpdateCommand.test_updater_simple PASSED > > ========================== 24 passed in 1.19 seconds > =========================== > ============================= test session starts > ============================== > platform linux2 -- Python 2.7.3 -- pytest-2.5.1 -- /usr/bin/python2.7 > collecting ... collected 1 items > > src/test/python/apache/aurora/client/commands/test_run.py:81: > TestRunCommand.test_successful_run slavehost: hello > slavehost: hello > slavehost: hello > FAILED > > =================================== FAILURES > =================================== > ______________________ TestRunCommand.test_successful_run > ______________________ > > self = <test_run.TestRunCommand testMethod=test_successful_run> > > def test_successful_run(self): > """Test the run command.""" > # Calls api.check_status, which calls scheduler_proxy.getJobs > mock_options = self.setup_mock_options() > (mock_api, mock_scheduler_proxy) = self.create_mock_api() > mock_scheduler_proxy.getTasksStatus.return_value = > self.create_status_response() > sandbox_args = {'slave_root': '/slaveroot', 'slave_run_directory': > 'slaverun'} > with contextlib.nested( > patch('apache.aurora.client.api.SchedulerProxy', > return_value=mock_scheduler_proxy), > patch('apache.aurora.client.factory.CLUSTERS', > new=self.TEST_CLUSTERS), > patch('apache.aurora.client.commands.run.CLUSTERS', > new=self.TEST_CLUSTERS), > patch('twitter.common.app.get_options', > return_value=mock_options), > > patch('apache.aurora.client.api.command_runner.DistributedCommandRunner.sandbox_args', > return_value=sandbox_args), > patch('subprocess.Popen', > return_value=self.create_mock_process())) as ( > mock_scheduler_proxy_class, > mock_clusters, > mock_clusters_runpatch, > options, > mock_runner_args_patch, > mock_subprocess): > run(['west/mchucarroll/test/hello', 'ls'], mock_options) > > # The status command sends a getTasksStatus query to the scheduler, > # and then prints the result. > > mock_scheduler_proxy.getTasksStatus.assert_called_with(TaskQuery(jobName='hello', > environment='test', owner=Identity(role='mchucarroll'), > statuses=set([ScheduleStatus.RUNNING, ScheduleStatus.KILLING, > ScheduleStatus.RESTARTING, > ScheduleStatus.PREEMPTING]))) > > # The mock status call returns 3 three ScheduledTasks, so three > commands should have been run > > assert mock_subprocess.call_count == 3 > E AssertionError: assert 2 == 3 > E + where 2 = <MagicMock name='Popen' id='57283280'>.call_count > > src/test/python/apache/aurora/client/commands/test_run.py:112: > AssertionError > !!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures > !!!!!!!!!!!!!!!!!!!! > =========================== 1 failed in 0.27 seconds > =========================== > Build operating on targets: > OrderedSet([PythonTestSuite(src/test/python/BUILD:all)]) > src.test.python.apache.aurora.admin.mesos_maintenance > ..... SUCCESS > src.test.python.apache.aurora.client.api.disambiguator > ..... SUCCESS > src.test.python.apache.aurora.client.api.instance_watcher > ..... SUCCESS > src.test.python.apache.aurora.client.api.job_monitor > ..... SUCCESS > src.test.python.apache.aurora.client.api.quota_check > ..... SUCCESS > src.test.python.apache.aurora.client.api.restarter > ..... SUCCESS > src.test.python.apache.aurora.client.api.scheduler_client > ..... SUCCESS > src.test.python.apache.aurora.client.api.updater > ..... SUCCESS > src.test.python.apache.aurora.client.binding_helper > ..... SUCCESS > src.test.python.apache.aurora.client.cli.job > ..... SUCCESS > src.test.python.apache.aurora.client.commands.core > ..... SUCCESS > src.test.python.apache.aurora.client.commands.run > ..... FAILURE > src.test.python.apache.aurora.client.config > ..... SUCCESS > Build step 'Execute shell' marked build as failure > Updating AURORA-42 > -- Mark Craig Chu-Carroll *** Software Engineer@Twitter, Software Tools/Programming Language/Math Geek *** Email:mchucarr...@twitter.com / mar...@gmail.com *** Blog: http://scientopia.org/blogs/goodmath