You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aurora.apache.org by Apache Jenkins Server <je...@builds.apache.org> on 2014/04/26 07:59:35 UTC

Build failed in Jenkins: Aurora #334

See <https://builds.apache.org/job/Aurora/334/>

------------------------------------------
[...truncated 4141 lines...]
collecting ... collected 2 items

src/test/python/apache/aurora/common/test_cluster_option.py:36: test_constructors PASSED
src/test/python/apache/aurora/common/test_cluster_option.py:50: test_parsable PASSED

=========================== 2 passed in 0.07 seconds ===========================
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- py-1.4.20 -- pytest-2.5.2 -- /usr/bin/python2.7
plugins: cov
collecting ... collected 3 items

src/test/python/apache/aurora/common/test_http_signaler.py:44: TestHttpSignaler.test_all_calls_ok PASSED
src/test/python/apache/aurora/common/test_http_signaler.py:71: TestHttpSignaler.test_exception PASSED
src/test/python/apache/aurora/common/test_http_signaler.py:60: TestHttpSignaler.test_health_not_ok WARNING:root:Response differs from expected response (expected "ok", got "not ok")
PASSED

=========================== 3 passed in 0.07 seconds ===========================
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- py-1.4.20 -- pytest-2.5.2 -- /usr/bin/python2.7
plugins: cov
collecting ... collected 1 items

src/test/python/apache/aurora/common/test_shellify.py:4: test_shellify PASSED

=========================== 1 passed in 0.02 seconds ===========================
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- py-1.4.20 -- pytest-2.5.2 -- /usr/bin/python2.7
plugins: cov
collecting ... collected 7 items

src/test/python/apache/aurora/config/test_base.py:38: test_all_static PASSED
src/test/python/apache/aurora/config/test_base.py:46: test_binding PASSED
src/test/python/apache/aurora/config/test_base.py:54: test_cycle PASSED
src/test/python/apache/aurora/config/test_base.py:148: test_empty_config PASSED
src/test/python/apache/aurora/config/test_base.py:156: test_simple_config PASSED
src/test/python/apache/aurora/config/test_base.py:181: test_ports PASSED
src/test/python/apache/aurora/config/test_base.py:202: test_static_port_aliasing PASSED

=========================== 7 passed in 1.72 seconds ===========================
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- py-1.4.20 -- pytest-2.5.2 -- /usr/bin/python2.7
plugins: cov
collecting ... collected 1 items

src/test/python/apache/aurora/config/test_constraint_parsing.py:23: test_parsing_constraints limit:a is not a valid limit value, must be integer
PASSED

=========================== 1 passed in 0.14 seconds ===========================
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- py-1.4.20 -- pytest-2.5.2 -- /usr/bin/python2.7
plugins: cov
collecting ... collected 6 items

src/test/python/apache/aurora/config/test_loader.py:49: test_enoent PASSED
src/test/python/apache/aurora/config/test_loader.py:55: test_bad_config PASSED
src/test/python/apache/aurora/config/test_loader.py:63: test_empty_config PASSED
src/test/python/apache/aurora/config/test_loader.py:69: test_load_json PASSED
src/test/python/apache/aurora/config/test_loader.py:82: test_load PASSED
src/test/python/apache/aurora/config/test_loader.py:95: test_pick PASSED

=========================== 6 passed in 0.18 seconds ===========================
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- py-1.4.20 -- pytest-2.5.2 -- /usr/bin/python2.7
plugins: cov
collecting ... collected 10 items

src/test/python/apache/aurora/config/test_thrift.py:62: test_simple_config PASSED
src/test/python/apache/aurora/config/test_thrift.py:86: test_config_with_options PASSED
src/test/python/apache/aurora/config/test_thrift.py:111: test_config_with_ports PASSED
src/test/python/apache/aurora/config/test_thrift.py:125: test_config_with_bad_resources PASSED
src/test/python/apache/aurora/config/test_thrift.py:151: test_config_with_task_links PASSED
src/test/python/apache/aurora/config/test_thrift.py:172: test_unbound_references PASSED
src/test/python/apache/aurora/config/test_thrift.py:186: test_cron_policy_alias PASSED
src/test/python/apache/aurora/config/test_thrift.py:210: test_metadata_in_config PASSED
src/test/python/apache/aurora/config/test_thrift.py:221: test_task_instance_from_job PASSED
src/test/python/apache/aurora/config/test_thrift.py:226: test_identifier_validation PASSED

========================== 10 passed in 1.55 seconds ===========================
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- py-1.4.20 -- pytest-2.5.2 -- /usr/bin/python2.7
plugins: cov
collecting ... collected 4 items

src/test/python/apache/aurora/executor/test_executor_detector.py:37: test_find_root PASSED
src/test/python/apache/aurora/executor/test_executor_detector.py:59: test_match_inverse PASSED
src/test/python/apache/aurora/executor/test_executor_detector.py:64: test_bad_match PASSED
src/test/python/apache/aurora/executor/test_executor_detector.py:68: test_integration PASSED

=========================== 4 passed in 0.06 seconds ===========================
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- py-1.4.20 -- pytest-2.5.2 -- /usr/bin/python2.7
plugins: cov
collecting ... collected 4 items

src/test/python/apache/aurora/executor/test_executor_vars.py:22: test_release_from_tag PASSED
src/test/python/apache/aurora/executor/test_executor_vars.py:35: test_extract_pexinfo PASSED
src/test/python/apache/aurora/executor/test_executor_vars.py:46: test_init PASSED
src/test/python/apache/aurora/executor/test_executor_vars.py:54: test_sample PASSED

=========================== 4 passed in 0.19 seconds ===========================
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- py-1.4.20 -- pytest-2.5.2 -- /usr/bin/python2.7
plugins: cov
collecting ... collected 5 items

src/test/python/apache/aurora/executor/test_thermos_task_runner.py:109: TestThermosTaskRunnerIntegration.test_integration_success Writing log files to disk in /tmp/tmpkyv9Sg
Build operating on targets: OrderedSet([PythonBinary(src/main/python/apache/aurora/executor/bin/BUILD:thermos_runner)])
Building PythonBinary PythonBinary(src/main/python/apache/aurora/executor/bin/BUILD:thermos_runner):
Wrote <https://builds.apache.org/job/Aurora/ws/dist/thermos_runner.pex>
Writing log files to disk in /tmp/tmpkyv9Sg
PASSED
src/test/python/apache/aurora/executor/test_thermos_task_runner.py:125: TestThermosTaskRunnerIntegration.test_integration_failed Writing log files to disk in /tmp/tmpkyv9Sg
PASSED
src/test/python/apache/aurora/executor/test_thermos_task_runner.py:141: TestThermosTaskRunnerIntegration.test_integration_stop Writing log files to disk in /tmp/tmpkyv9Sg
PASSED
src/test/python/apache/aurora/executor/test_thermos_task_runner.py:153: TestThermosTaskRunnerIntegration.test_integration_lose Writing log files to disk in /tmp/tmpkyv9Sg
PASSED
src/test/python/apache/aurora/executor/test_thermos_task_runner.py:166: TestThermosTaskRunnerIntegration.test_integration_quitquitquit Writing log files to disk in /tmp/tmpkyv9Sg
ERROR] Could not quitquitquit runner: Cannot take control of a task in terminal state.
ERROR] Caught exception in self.control(): Cannot finalize task with no "active" record!
ERROR]   Traceback (most recent call last):
  File "<https://builds.apache.org/job/Aurora/ws/dist/thermos_runner.pex/apache/thermos/core/runner.py",> line 558, in control
    yield
  File "<https://builds.apache.org/job/Aurora/ws/dist/thermos_runner.pex/apache/thermos/core/runner.py",> line 892, in kill
    self._run()
  File "<https://builds.apache.org/job/Aurora/ws/dist/thermos_runner.pex/apache/thermos/core/runner.py",> line 858, in _run
    self._set_task_status(runner.transition_to())
  File "<https://builds.apache.org/job/Aurora/ws/dist/thermos_runner.pex/apache/thermos/core/runner.py",> line 634, in _set_task_status
    self._dispatcher.dispatch(self._state, runner_ckpt, self._recovery)
  File "<https://builds.apache.org/job/Aurora/ws/dist/thermos_runner.pex/apache/thermos/common/ckpt.py",> line 353, in dispatch
    self._run_task_dispatch(new_state, runner_ckpt.task_status)
  File "<https://builds.apache.org/job/Aurora/ws/dist/thermos_runner.pex/apache/thermos/common/ckpt.py",> line 223, in _run_task_dispatch
    getattr(handler, handler_function)(task_update)
  File "<https://builds.apache.org/job/Aurora/ws/dist/thermos_runner.pex/apache/thermos/core/runner.py",> line 204, in on_killed
    self._cleanup()
  File "<https://builds.apache.org/job/Aurora/ws/dist/thermos_runner.pex/apache/thermos/core/runner.py",> line 222, in _cleanup
    TaskRunnerHelper.finalize_task(self._pathspec)
  File "<https://builds.apache.org/job/Aurora/ws/dist/thermos_runner.pex/apache/thermos/core/helper.py",> line 398, in finalize_task
    raise cls.Error('Cannot finalize task with no "active" record!')
Error: Cannot finalize task with no "active" record!

FAILED

=================================== FAILURES ===================================
________ TestThermosTaskRunnerIntegration.test_integration_quitquitquit ________

self = <test_thermos_task_runner.TestThermosTaskRunnerIntegration object at 0x1e8e9d0>

    def test_integration_quitquitquit(self):
      ignorant_script = ';'.join([
          'import time, signal',
          'signal.signal(signal.SIGTERM, signal.SIG_IGN)',
          'time.sleep(1000)'
      ])
    
      class ShortPreemptionThermosTaskRunner(ThermosTaskRunner):
        THERMOS_PREEMPTION_WAIT = Amount(1, Time.SECONDS)
    
      with self.yield_runner(
          ShortPreemptionThermosTaskRunner,
          command="%s -c '%s'" % (sys.executable, ignorant_script)) as task_runner:
    
        task_runner.start()
        task_runner.forked.wait()
>       task_runner.stop(timeout=Amount(5, Time.SECONDS))

src/test/python/apache/aurora/executor/test_thermos_task_runner.py:182: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_thermos_task_runner.ShortPreemptionThermosTaskRunner object at 0x1e8e410>
timeout = Amount(5, secs)

    def stop(self, timeout=MAX_WAIT):
      """Stop the runner.  If it's already completed, no-op.  If it's still running, issue a kill."""
      log.info('ThermosTaskRunner is shutting down.')
    
      if not self.forking.is_set():
        raise TaskError('Failed to call TaskRunner.start.')
    
      log.info('Invoking runner HTTP teardown.')
      self._terminate_http()
    
      log.info('Invoking runner.kill')
      self.kill()
    
      waited = Amount(0, Time.SECONDS)
      while self.is_alive and waited < timeout:
        self._clock.sleep(self.POLL_INTERVAL.as_(Time.SECONDS))
        waited += self.POLL_INTERVAL
    
      if not self.is_alive and self.task_state() != TaskState.ACTIVE:
        return
    
      log.info('Thermos task did not shut down cleanly, rebinding to kill.')
      self.quitquitquit()
    
      while not self._monitor.finished and waited < timeout:
        self._clock.sleep(self.POLL_INTERVAL.as_(Time.SECONDS))
        waited += self.POLL_INTERVAL
    
      if not self._monitor.finished:
>       raise TaskError('Task did not stop within deadline.')
E       TaskError: Task did not stop within deadline.

/tmp/tmpam8Ik8/apache/aurora/executor/thermos_task_runner.py:298: TaskError
!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!
===================== 1 failed, 4 passed in 26.57 seconds ======================
Build operating on targets: OrderedSet([PythonTestSuite(src/test/python/BUILD:all)])
src.test.python.apache.aurora.admin.host_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.sla                                    .....   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.bridge                                 .....   SUCCESS
src.test.python.apache.aurora.client.cli.help                                   .....   SUCCESS
src.test.python.apache.aurora.client.cli.job                                    .....   SUCCESS
src.test.python.apache.aurora.client.cli.logging                                .....   SUCCESS
src.test.python.apache.aurora.client.cli.plugins                                .....   SUCCESS
src.test.python.apache.aurora.client.cli.quota                                  .....   SUCCESS
src.test.python.apache.aurora.client.cli.sla                                    .....   SUCCESS
src.test.python.apache.aurora.client.cli.task                                   .....   SUCCESS
src.test.python.apache.aurora.client.commands.admin                             .....   SUCCESS
src.test.python.apache.aurora.client.commands.core                              .....   SUCCESS
src.test.python.apache.aurora.client.commands.hooks                             .....   SUCCESS
src.test.python.apache.aurora.client.commands.maintenance                       .....   SUCCESS
src.test.python.apache.aurora.client.commands.run                               .....   SUCCESS
src.test.python.apache.aurora.client.commands.ssh                               .....   SUCCESS
src.test.python.apache.aurora.client.config                                     .....   SUCCESS
src.test.python.apache.aurora.client.hooks.hooked_api                           .....   SUCCESS
src.test.python.apache.aurora.client.hooks.non_hooked_api                       .....   SUCCESS
src.test.python.apache.aurora.common.test_aurora_job_key                        .....   SUCCESS
src.test.python.apache.aurora.common.test_cluster                               .....   SUCCESS
src.test.python.apache.aurora.common.test_cluster_option                        .....   SUCCESS
src.test.python.apache.aurora.common.test_clusters                              .....   SUCCESS
src.test.python.apache.aurora.common.test_http_signaler                         .....   SUCCESS
src.test.python.apache.aurora.common.test_shellify                              .....   SUCCESS
src.test.python.apache.aurora.config.test_base                                  .....   SUCCESS
src.test.python.apache.aurora.config.test_constraint_parsing                    .....   SUCCESS
src.test.python.apache.aurora.config.test_loader                                .....   SUCCESS
src.test.python.apache.aurora.config.test_thrift                                .....   SUCCESS
src.test.python.apache.aurora.executor.executor_detector                        .....   SUCCESS
src.test.python.apache.aurora.executor.executor_vars                            .....   SUCCESS
src.test.python.apache.aurora.executor.thermos_task_runner                      .....   FAILURE
Build step 'Execute shell' marked build as failure

Jenkins build is back to normal : Aurora #335

Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://builds.apache.org/job/Aurora/335/changes>