Build: #354 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

Build log

The build generated 506 lines of output. Download or view full build log

19-Jul-2016 17:52:10 Build FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354) started building on agent Default Agent
19-Jul-2016 17:52:10
19-Jul-2016 17:52:10 Build working directory is /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1
19-Jul-2016 17:52:10 Executing build FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354)
19-Jul-2016 17:52:10 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
19-Jul-2016 17:52:10 Build always requires a clean checkout
19-Jul-2016 17:52:10 Cleaning build directory '/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1'
19-Jul-2016 17:52:10 Updating source code to revision: b524294ccde3d9bb69090107037cfb4f00733fbc
19-Jul-2016 17:52:10 Fetching 'refs/heads/master' from 'ssh://git@localhost:7999/fe/propertyservice.git'.
19-Jul-2016 17:52:10 Warning: Permanently added '[127.0.0.1]:36628' (RSA) to the list of known hosts.
19-Jul-2016 17:52:11 Checking out revision b524294ccde3d9bb69090107037cfb4f00733fbc.
19-Jul-2016 17:52:11 Creating local git repository in '/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/.git'.
19-Jul-2016 17:52:11 Cloning into '/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1'...
19-Jul-2016 17:52:11 Already on 'master'
19-Jul-2016 17:52:11 Your branch is up-to-date with 'origin/master'.
19-Jul-2016 17:52:11 Updated source code to revision: b524294ccde3d9bb69090107037cfb4f00733fbc
19-Jul-2016 17:52:11 Finished task 'Checkout Default Repository' with result: Success
19-Jul-2016 17:52:11 Running pre-build action: VCS Version Collector
19-Jul-2016 17:52:12 Running pre-build action: Sauce OnDemand Build Configurator
19-Jul-2016 17:52:12 Starting task 'Build' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
19-Jul-2016 17:52:12
Beginning to execute external process for build 'FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354)'
... running command line:
/bin/sh ./build.sh
... in: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1
... using extra environment variables:
bamboo_planRepository_1_branch=master
bamboo_dependency_parent_0=INFRA-BASE-314
bamboo_dependency_parent_total=1
bamboo_repository_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-354
bamboo_planRepository_1_name=propertyservice
bamboo_build_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1
bamboo_buildKey=INFRA-PROP-JOB1
bamboo_capability_system_builder_command_Docker_Compose=/usr/local/bin/docker-compose
bamboo_shortPlanName=propertyservice
bamboo_planRepository_name=propertyservice
bamboo_buildNumber=354
bamboo_shortJobName=Default Job
bamboo_capability_system_builder_command_Virtual_Frambuffer_run=/usr/bin/xvfb-run
bamboo_buildResultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-354
bamboo_repository_2785292_branch_name=master
bamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_agentId=131073
bamboo_planName=FLARECAST - propertyservice
bamboo_shortPlanKey=PROP
bamboo_repository_2785292_git_username=
bamboo_shortJobKey=JOB1
bamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_planRepository_revision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_buildTimeStamp=2016-07-19T17:52:03.923+02:00
bamboo_planRepository_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_2785292_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_capability_system_builder_command_pytest=/usr/local/bin/py.test
bamboo_buildResultKey=INFRA-PROP-JOB1-354
bamboo_capability_system_builder_command_Docker=/usr/bin/docker
bamboo_repository_git_branch=master
bamboo_repository_branch_name=master
bamboo_buildPlanName=FLARECAST - propertyservice - Default Job
bamboo_planRepository_1_revision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_name=propertyservice
bamboo_repository_2785292_git_branch=master
bamboo_repository_2785292_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_planRepository_branch=master
bamboo_agentWorkingDirectory=/var/atlassian/application-data/bamboo/xml-data/build-dir
bamboo_capability_system_git_executable=/usr/bin/git
bamboo_planRepository_1_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_git_username=
bamboo_planRepository_1_type=stash-rep
bamboo_planRepository_branchName=master
bamboo_capability_system_jdk_JDK=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_repository_2785292_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_planRepository_type=stash-rep
bamboo_planRepository_1_username=
bamboo_repository_2785292_name=propertyservice
bamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1
bamboo_planKey=INFRA-PROP
bamboo_planRepository_1_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_planRepository_username=
bamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_planRepository_1_branchName=master
19-Jul-2016 17:52:12 Sending build context to Docker daemon 137.7 kB
19-Jul-2016 17:52:12
19-Jul-2016 17:52:12 Step 1 : FROM flarecast/python-base
19-Jul-2016 17:52:12 ---> 8bd20b588913
19-Jul-2016 17:52:12 Step 2 : MAINTAINER i4Ds
19-Jul-2016 17:52:12 ---> Using cache
19-Jul-2016 17:52:12 ---> 2e1c52b4efbd
19-Jul-2016 17:52:12 Step 3 : COPY . ./property_service
19-Jul-2016 17:52:12 ---> 69f10f66dcb4
19-Jul-2016 17:52:12 Removing intermediate container c3e2d102b9af
19-Jul-2016 17:52:12 Step 4 : WORKDIR ./property_service
19-Jul-2016 17:52:12 ---> Running in ee5eacdf7c31
19-Jul-2016 17:52:12 ---> 1a031d85c198
19-Jul-2016 17:52:12 Removing intermediate container ee5eacdf7c31
19-Jul-2016 17:52:12 Step 5 : LABEL eu.flarecast.type "system" eu.flarecast.name "propertyservice"
19-Jul-2016 17:52:12 ---> Running in 352ffb91213c
19-Jul-2016 17:52:12 ---> 975366c5856e
19-Jul-2016 17:52:12 Removing intermediate container 352ffb91213c
19-Jul-2016 17:52:12 Step 6 : CMD uwsgi --http :8002 -w main -p 16
19-Jul-2016 17:52:12 ---> Running in 7be3d056f268
19-Jul-2016 17:52:12 ---> ac2ab262c26c
19-Jul-2016 17:52:12 Removing intermediate container 7be3d056f268
19-Jul-2016 17:52:12 Successfully built ac2ab262c26c
19-Jul-2016 17:52:12 Finished task 'Build' with result: Success
19-Jul-2016 17:52:12 Starting task 'Run tests' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
19-Jul-2016 17:52:12
Beginning to execute external process for build 'FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354)'
... running command line:
/bin/sh /opt/atlassian/bamboo/temp/INFRA-PROP-JOB1-354-ScriptBuildTask-4989961792435574524.sh
... in: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests
... using extra environment variables:
bamboo_planRepository_1_branch=master
bamboo_dependency_parent_0=INFRA-BASE-314
bamboo_dependency_parent_total=1
bamboo_repository_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-354
bamboo_planRepository_1_name=propertyservice
bamboo_build_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1
bamboo_buildKey=INFRA-PROP-JOB1
bamboo_capability_system_builder_command_Docker_Compose=/usr/local/bin/docker-compose
bamboo_shortPlanName=propertyservice
bamboo_planRepository_name=propertyservice
bamboo_buildNumber=354
bamboo_shortJobName=Default Job
bamboo_capability_system_builder_command_Virtual_Frambuffer_run=/usr/bin/xvfb-run
bamboo_buildResultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-354
bamboo_repository_2785292_branch_name=master
bamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_agentId=131073
bamboo_planName=FLARECAST - propertyservice
bamboo_shortPlanKey=PROP
bamboo_repository_2785292_git_username=
bamboo_shortJobKey=JOB1
bamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_planRepository_revision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_buildTimeStamp=2016-07-19T17:52:03.923+02:00
bamboo_planRepository_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_2785292_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_script_2=/bin/sh ./build.sh
bamboo_capability_system_builder_command_pytest=/usr/local/bin/py.test
bamboo_buildResultKey=INFRA-PROP-JOB1-354
bamboo_capability_system_builder_command_Docker=/usr/bin/docker
bamboo_repository_git_branch=master
bamboo_repository_branch_name=master
bamboo_buildPlanName=FLARECAST - propertyservice - Default Job
bamboo_planRepository_1_revision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_name=propertyservice
bamboo_repository_2785292_git_branch=master
bamboo_repository_2785292_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_planRepository_branch=master
bamboo_agentWorkingDirectory=/var/atlassian/application-data/bamboo/xml-data/build-dir
bamboo_capability_system_git_executable=/usr/bin/git
bamboo_planRepository_1_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_git_username=
bamboo_planRepository_1_type=stash-rep
bamboo_planRepository_branchName=master
bamboo_capability_system_jdk_JDK=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_repository_2785292_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_planRepository_type=stash-rep
bamboo_planRepository_1_username=
bamboo_repository_2785292_name=propertyservice
bamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1
bamboo_planKey=INFRA-PROP
bamboo_planRepository_1_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_planRepository_username=
bamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_planRepository_1_branchName=master
19-Jul-2016 17:52:34 ============================= test session starts ==============================
19-Jul-2016 17:52:34 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
19-Jul-2016 17:52:34 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile:
19-Jul-2016 17:52:34 plugins: pep8-1.0.6
19-Jul-2016 17:52:34 collected 4 items
19-Jul-2016 17:52:34
19-Jul-2016 17:52:34 provenance_tests.py ....
19-Jul-2016 17:52:34
19-Jul-2016 17:52:34 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_provenance_tests.xml
19-Jul-2016 17:52:34 =========================== 4 passed in 0.20 seconds ===========================
19-Jul-2016 17:52:34 ============================= test session starts ==============================
19-Jul-2016 17:52:34 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
19-Jul-2016 17:52:34 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile:
19-Jul-2016 17:52:34 plugins: pep8-1.0.6
19-Jul-2016 17:52:34 collected 2 items
19-Jul-2016 17:52:34
19-Jul-2016 17:52:34 property_group_tests.py FF
19-Jul-2016 17:52:34
19-Jul-2016 17:52:34 =================================== FAILURES ===================================
19-Jul-2016 17:52:34 _____________ PropertyGroupTests.test_add_multiple_property_groups _____________
19-Jul-2016 17:52:34
19-Jul-2016 17:52:34 self = <tests.property_group_tests.PropertyGroupTests testMethod=test_add_multiple_property_groups>
19-Jul-2016 17:52:34
19-Jul-2016 17:52:34     def test_add_multiple_property_groups(self):
19-Jul-2016 17:52:34         result = self.client.insert_regions(
19-Jul-2016 17:52:34             TEST_DATASET,
19-Jul-2016 17:52:34             [TEST_PGT_OBJECT, TEST_PGT_OBJECT_WITH_DATA]
19-Jul-2016 17:52:34         )
19-Jul-2016 17:52:34 >       self.assertEqual(2, len(result))
19-Jul-2016 17:52:34 E       AssertionError: 2 != 1
19-Jul-2016 17:52:34
19-Jul-2016 17:52:34 property_group_tests.py:25: AssertionError
19-Jul-2016 17:52:34 ________________ PropertyGroupTests.test_add_one_property_group ________________
19-Jul-2016 17:52:34
19-Jul-2016 17:52:34 self = <tests.property_group_tests.PropertyGroupTests testMethod=test_add_one_property_group>
19-Jul-2016 17:52:34
19-Jul-2016 17:52:34     def test_add_one_property_group(self):
19-Jul-2016 17:52:34         result = self.client.add_region(
19-Jul-2016 17:52:34             TEST_DATASET,
19-Jul-2016 17:52:34 >           time_start=TEST_PGT_TIME_START
19-Jul-2016 17:52:34         )
19-Jul-2016 17:52:34
19-Jul-2016 17:52:34 property_group_tests.py:16:
19-Jul-2016 17:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Jul-2016 17:52:34 /home/bamboo/.local/lib/python2.7/site-packages/flarecast/utils/property_service_client.py:83: in add_region
19-Jul-2016 17:52:34     return self.__post_request(url, group)
19-Jul-2016 17:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Jul-2016 17:52:34
19-Jul-2016 17:52:34 url = 'http://localhost:8002/region/test_ds'
19-Jul-2016 17:52:34 payload = {'time_start': '2002-01-01T00:00:00Z'}
19-Jul-2016 17:52:34
19-Jul-2016 17:52:34     @staticmethod
19-Jul-2016 17:52:34     def __post_request(url, payload):
19-Jul-2016 17:52:34         headers = {'Content-Type': 'application/json'}
19-Jul-2016 17:52:34         r = requests.post(url, json=payload, headers=headers)
19-Jul-2016 17:52:34    
19-Jul-2016 17:52:34         if r.status_code != 200:
19-Jul-2016 17:52:34 >           raise RestException(r)
19-Jul-2016 17:52:34 E           RestException: {
19-Jul-2016 17:52:34 E             "status": 500,
19-Jul-2016 17:52:34 E             "type": "about:blank",
19-Jul-2016 17:52:34 E             "detail": "The server encountered an internal error and was unable to complete your request.  Either the server is overloaded or there is an error in the application.",
19-Jul-2016 17:52:34 E             "title": "Internal Server Error"
19-Jul-2016 17:52:34 E           }
19-Jul-2016 17:52:34
19-Jul-2016 17:52:34 /home/bamboo/.local/lib/python2.7/site-packages/flarecast/utils/property_service_client.py:196: RestException
19-Jul-2016 17:52:34 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_group_tests.xml
19-Jul-2016 17:52:34 =========================== 2 failed in 0.12 seconds ===========================
19-Jul-2016 17:52:35 ============================= test session starts ==============================
19-Jul-2016 17:52:35 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
19-Jul-2016 17:52:35 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile:
19-Jul-2016 17:52:35 plugins: pep8-1.0.6
19-Jul-2016 17:52:35 collected 4 items
19-Jul-2016 17:52:35
19-Jul-2016 17:52:35 property_tests.py ...s
19-Jul-2016 17:52:35
19-Jul-2016 17:52:35 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_tests.xml
19-Jul-2016 17:52:35 ===================== 3 passed, 1 skipped in 0.16 seconds ======================
19-Jul-2016 17:52:35 ============================= test session starts ==============================
19-Jul-2016 17:52:35 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
19-Jul-2016 17:52:35 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile:
19-Jul-2016 17:52:35 plugins: pep8-1.0.6
19-Jul-2016 17:52:35 collected 0 items
19-Jul-2016 17:52:35
19-Jul-2016 17:52:35 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_type_tests.xml
19-Jul-2016 17:52:35 ===============================  in 0.05 seconds ===============================
19-Jul-2016 17:52:35 ============================= test session starts ==============================
19-Jul-2016 17:52:35 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
19-Jul-2016 17:52:35 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile:
19-Jul-2016 17:52:35 plugins: pep8-1.0.6
19-Jul-2016 17:52:35 collected 2 items
19-Jul-2016 17:52:35
19-Jul-2016 17:52:35 link_tests.py Fs
19-Jul-2016 17:52:35
19-Jul-2016 17:52:35 =================================== FAILURES ===================================
19-Jul-2016 17:52:35 ___________________________ LinkTests.test_add_link ____________________________
19-Jul-2016 17:52:35
19-Jul-2016 17:52:35 self = <tests.link_tests.LinkTests testMethod=test_add_link>
19-Jul-2016 17:52:35
19-Jul-2016 17:52:35     def test_add_link(self):
19-Jul-2016 17:52:35         result = self.client.add_link(self.flarecast_ids[0],
19-Jul-2016 17:52:35 >                                     self.flarecast_ids[1],
19-Jul-2016 17:52:35                                       'test link',
19-Jul-2016 17:52:35                                       'test description')
19-Jul-2016 17:52:35 E       IndexError: list index out of range
19-Jul-2016 17:52:35
19-Jul-2016 17:52:35 link_tests.py:19: IndexError
19-Jul-2016 17:52:35 ----------------------------- Captured stdout call -----------------------------
19-Jul-2016 17:52:35 [u'flarecast-test_ds-cf3d6bb6-4dc8-11e6-a7e6-0242ac110003']
19-Jul-2016 17:52:35 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_link_tests.xml
19-Jul-2016 17:52:35 ===================== 1 failed, 1 skipped in 0.08 seconds ======================
19-Jul-2016 17:52:36 ============================= test session starts ==============================
19-Jul-2016 17:52:36 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
19-Jul-2016 17:52:36 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile:
19-Jul-2016 17:52:36 plugins: pep8-1.0.6
19-Jul-2016 17:52:36 collected 3 items
19-Jul-2016 17:52:36
19-Jul-2016 17:52:36 query_tests.py FF.
19-Jul-2016 17:52:36
19-Jul-2016 17:52:36 =================================== FAILURES ===================================
19-Jul-2016 17:52:36 ___________________ QueryTests.test_get_all_property_groups ____________________
19-Jul-2016 17:52:36
19-Jul-2016 17:52:36 self = <tests.query_tests.QueryTests testMethod=test_get_all_property_groups>
19-Jul-2016 17:52:36
19-Jul-2016 17:52:36     def test_get_all_property_groups(self):
19-Jul-2016 17:52:36         groups = self.client.get_properties(TEST_DATASET)
19-Jul-2016 17:52:36 >       self.assertEqual(3, len(groups))
19-Jul-2016 17:52:36 E       AssertionError: 3 != 1
19-Jul-2016 17:52:36
19-Jul-2016 17:52:36 query_tests.py:18: AssertionError
19-Jul-2016 17:52:36 _______________ QueryTests.test_get_all_property_groups_with_eq ________________
19-Jul-2016 17:52:36
19-Jul-2016 17:52:36 self = <tests.query_tests.QueryTests testMethod=test_get_all_property_groups_with_eq>
19-Jul-2016 17:52:36
19-Jul-2016 17:52:36     def test_get_all_property_groups_with_eq(self):
19-Jul-2016 17:52:36         groups = self.client.get_properties(TEST_DATASET,
19-Jul-2016 17:52:36                                             'test1=eq(500)')
19-Jul-2016 17:52:36 >       self.assertEqual(2, len(groups))
19-Jul-2016 17:52:36 E       AssertionError: 2 != 1
19-Jul-2016 17:52:36
19-Jul-2016 17:52:36 query_tests.py:28: AssertionError
19-Jul-2016 17:52:36 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_query_tests.xml
19-Jul-2016 17:52:36 ====================== 2 failed, 1 passed in 0.13 seconds ======================
19-Jul-2016 17:52:38 Finished task 'Run tests' with result: Success
19-Jul-2016 17:52:38 Starting task 'Pep8 tests' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.command'
19-Jul-2016 17:52:38
Beginning to execute external process for build 'FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354)'
... running command line:
/usr/local/bin/py.test --pep8 -m pep8 --junitxml pep8_results.xml
... in: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1
... using extra environment variables:
bamboo_planRepository_1_branch=master
bamboo_dependency_parent_0=INFRA-BASE-314
bamboo_dependency_parent_total=1
bamboo_repository_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-354
bamboo_planRepository_1_name=propertyservice
bamboo_build_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1
bamboo_buildKey=INFRA-PROP-JOB1
bamboo_capability_system_builder_command_Docker_Compose=/usr/local/bin/docker-compose
bamboo_shortPlanName=propertyservice
bamboo_planRepository_name=propertyservice
bamboo_buildNumber=354
bamboo_shortJobName=Default Job
bamboo_capability_system_builder_command_Virtual_Frambuffer_run=/usr/bin/xvfb-run
bamboo_buildResultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-354
bamboo_repository_2785292_branch_name=master
bamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_agentId=131073
bamboo_planName=FLARECAST - propertyservice
bamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_script_7=/bin/sh /opt/atlassian/bamboo/temp/INFRA-PROP-JOB1-354-ScriptBuildTask-4989961792435574524.sh
bamboo_shortPlanKey=PROP
bamboo_repository_2785292_git_username=
bamboo_shortJobKey=JOB1
bamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_planRepository_revision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_buildTimeStamp=2016-07-19T17:52:03.923+02:00
bamboo_planRepository_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_2785292_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_script_2=/bin/sh ./build.sh
bamboo_capability_system_builder_command_pytest=/usr/local/bin/py.test
bamboo_buildResultKey=INFRA-PROP-JOB1-354
bamboo_capability_system_builder_command_Docker=/usr/bin/docker
bamboo_repository_git_branch=master
bamboo_repository_branch_name=master
bamboo_buildPlanName=FLARECAST - propertyservice - Default Job
bamboo_planRepository_1_revision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_name=propertyservice
bamboo_repository_2785292_git_branch=master
bamboo_repository_2785292_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_planRepository_branch=master
bamboo_agentWorkingDirectory=/var/atlassian/application-data/bamboo/xml-data/build-dir
bamboo_capability_system_git_executable=/usr/bin/git
bamboo_planRepository_1_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_git_username=
bamboo_planRepository_1_type=stash-rep
bamboo_planRepository_branchName=master
bamboo_capability_system_jdk_JDK=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_repository_2785292_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_planRepository_type=stash-rep
bamboo_planRepository_1_username=
bamboo_repository_2785292_name=propertyservice
bamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1
bamboo_planKey=INFRA-PROP
bamboo_planRepository_1_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_planRepository_username=
bamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_planRepository_1_branchName=master
19-Jul-2016 17:52:38 ============================= test session starts ==============================
19-Jul-2016 17:52:38 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
19-Jul-2016 17:52:38 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1, inifile:
19-Jul-2016 17:52:38 plugins: pep8-1.0.6
19-Jul-2016 17:52:38 collected 27 items
19-Jul-2016 17:52:38
19-Jul-2016 17:52:38 main.py .
19-Jul-2016 17:52:38 propertyservice/__init__.py .
19-Jul-2016 17:52:38 propertyservice/config.py .
19-Jul-2016 17:52:38 propertyservice/util.py .
19-Jul-2016 17:52:38 propertyservice/data/__init__.py .
19-Jul-2016 17:52:38 propertyservice/data/extended_queries.py .
19-Jul-2016 17:52:38 propertyservice/data/property_db_data_source.py .
19-Jul-2016 17:52:38 propertyservice/data/property_db_query_engine.py .
19-Jul-2016 17:52:38 propertyservice/data/type_evaluator.py .
19-Jul-2016 17:52:38 propertyservice/routes/__init__.py .
19-Jul-2016 17:52:38 propertyservice/routes/dataset.py .
19-Jul-2016 17:52:38 propertyservice/routes/link.py .
19-Jul-2016 17:52:38 propertyservice/routes/property.py .
19-Jul-2016 17:52:38 propertyservice/routes/property_group.py .
19-Jul-2016 17:52:38 propertyservice/routes/property_type.py .
19-Jul-2016 17:52:38 propertyservice/routes/query.py .
19-Jul-2016 17:52:38 propertyservice/routes/query_builder.py .
19-Jul-2016 17:52:38 tests/__init__.py .
19-Jul-2016 17:52:38 tests/base_test_case.py .
19-Jul-2016 17:52:38 tests/cleanup_docker_env.py .
19-Jul-2016 17:52:38 tests/link_tests.py .
19-Jul-2016 17:52:38 tests/property_group_tests.py .
19-Jul-2016 17:52:38 tests/property_tests.py .
19-Jul-2016 17:52:38 tests/property_type_tests.py .
19-Jul-2016 17:52:38 tests/provenance_tests.py .
19-Jul-2016 17:52:38 tests/query_tests.py .
19-Jul-2016 17:52:38 tests/setup_docker_env.py .
19-Jul-2016 17:52:38
19-Jul-2016 17:52:38 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/pep8_results.xml
19-Jul-2016 17:52:38 ========================== 27 passed in 0.18 seconds ===========================
19-Jul-2016 17:52:38 Finished task 'Pep8 tests' with result: Success
19-Jul-2016 17:52:38 Starting task 'Parse pytest output' of type 'com.atlassian.bamboo.plugins.testresultparser:task.testresultparser.junit'
19-Jul-2016 17:52:38 Parsing test results under /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1...
19-Jul-2016 17:52:38 Failing task since 5 failing test cases were found.
19-Jul-2016 17:52:38 Finished task 'Parse pytest output' with result: Failed
19-Jul-2016 17:52:38 Running post build plugin 'NCover Results Collector'
19-Jul-2016 17:52:38 Running post build plugin 'Artifact Copier'
19-Jul-2016 17:52:38 Running post build plugin 'Sauce OnDemand Post Runner'
19-Jul-2016 17:52:38 Running post build plugin 'npm Cache Cleanup'
19-Jul-2016 17:52:38 Running post build plugin 'Clover Results Collector'
19-Jul-2016 17:52:38 Running post build plugin 'Docker Container Cleanup'
19-Jul-2016 17:52:38 Finalising the build...
19-Jul-2016 17:52:38 Stopping timer.
19-Jul-2016 17:52:38 Build INFRA-PROP-JOB1-354 completed.
19-Jul-2016 17:52:38 Running on server: post build plugin 'NCover Results Collector'
19-Jul-2016 17:52:38 Running on server: post build plugin 'Build Hanging Detection Configuration'
19-Jul-2016 17:52:38 Running on server: post build plugin 'Clover Delta Calculator'
19-Jul-2016 17:52:38 Running on server: post build plugin 'Maven Dependencies Postprocessor'
19-Jul-2016 17:52:38 All post build plugins have finished
19-Jul-2016 17:52:38 Generating build results summary...
19-Jul-2016 17:52:38 Saving build results to disk...
19-Jul-2016 17:52:38 Logging substituted variables...
19-Jul-2016 17:52:38 Indexing build results...
19-Jul-2016 17:52:38 Finished building INFRA-PROP-JOB1-354.
19-Jul-2016 18:14:29 Build FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354) started building on agent Default Agent
19-Jul-2016 18:14:29
19-Jul-2016 18:14:29 Build working directory is /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1
19-Jul-2016 18:14:29 Executing build FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354)
19-Jul-2016 18:14:29 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
19-Jul-2016 18:14:29 Build always requires a clean checkout
19-Jul-2016 18:14:29 Cleaning build directory '/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1'
19-Jul-2016 18:14:29 Updating source code to revision: b524294ccde3d9bb69090107037cfb4f00733fbc
19-Jul-2016 18:14:30 Fetching 'refs/heads/master' from 'ssh://git@localhost:7999/fe/propertyservice.git'.
19-Jul-2016 18:14:30 Warning: Permanently added '[127.0.0.1]:36628' (RSA) to the list of known hosts.
19-Jul-2016 18:14:30 Checking out revision b524294ccde3d9bb69090107037cfb4f00733fbc.
19-Jul-2016 18:14:30 Creating local git repository in '/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/.git'.
19-Jul-2016 18:14:30 Cloning into '/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1'...
19-Jul-2016 18:14:30 Already on 'master'
19-Jul-2016 18:14:30 Your branch is up-to-date with 'origin/master'.
19-Jul-2016 18:14:30 Updated source code to revision: b524294ccde3d9bb69090107037cfb4f00733fbc
19-Jul-2016 18:14:30 Finished task 'Checkout Default Repository' with result: Success
19-Jul-2016 18:14:30 Running pre-build action: VCS Version Collector
19-Jul-2016 18:14:30 Running pre-build action: Sauce OnDemand Build Configurator
19-Jul-2016 18:14:30 Starting task 'Build' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
19-Jul-2016 18:14:30
Beginning to execute external process for build 'FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354)'
... running command line:
/bin/sh ./build.sh
... in: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1
... using extra environment variables:
bamboo_planRepository_1_branch=master
bamboo_dependency_parent_0=INFRA-BASE-314
bamboo_dependency_parent_total=1
bamboo_repository_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-354
bamboo_planRepository_1_name=propertyservice
bamboo_build_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1
bamboo_buildKey=INFRA-PROP-JOB1
bamboo_capability_system_builder_command_Docker_Compose=/usr/local/bin/docker-compose
bamboo_shortPlanName=propertyservice
bamboo_planRepository_name=propertyservice
bamboo_buildNumber=354
bamboo_shortJobName=Default Job
bamboo_capability_system_builder_command_Virtual_Frambuffer_run=/usr/bin/xvfb-run
bamboo_buildResultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-354
bamboo_repository_2785292_branch_name=master
bamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_agentId=131073
bamboo_planName=FLARECAST - propertyservice
bamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_script_7=/bin/sh /opt/atlassian/bamboo/temp/INFRA-PROP-JOB1-354-ScriptBuildTask-4989961792435574524.sh
bamboo_shortPlanKey=PROP
bamboo_repository_2785292_git_username=
bamboo_shortJobKey=JOB1
bamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_planRepository_revision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_buildTimeStamp=2016-07-19T18:14:29.076+02:00
bamboo_planRepository_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_2785292_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_script_2=/bin/sh ./build.sh
bamboo_capability_system_builder_command_pytest=/usr/local/bin/py.test
bamboo_buildResultKey=INFRA-PROP-JOB1-354
bamboo_capability_system_builder_command_Docker=/usr/bin/docker
bamboo_repository_git_branch=master
bamboo_repository_branch_name=master
bamboo_buildPlanName=FLARECAST - propertyservice - Default Job
bamboo_planRepository_1_revision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_name=propertyservice
bamboo_repository_2785292_git_branch=master
bamboo_repository_2785292_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_planRepository_branch=master
bamboo_agentWorkingDirectory=/var/atlassian/application-data/bamboo/xml-data/build-dir
bamboo_capability_system_git_executable=/usr/bin/git
bamboo_repository_git_username=
bamboo_planRepository_1_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_planRepository_1_type=stash-rep
bamboo_planRepository_branchName=master
bamboo_capability_system_jdk_JDK=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_repository_2785292_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_planRepository_type=stash-rep
bamboo_planRepository_1_username=
bamboo_repository_2785292_name=propertyservice
bamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_DependencyTriggerReason_triggeringBuildResultKey=INFRA-BASE-314
bamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_command_6=/usr/local/bin/py.test --pep8 -m pep8 --junitxml pep8_results.xml
bamboo_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1
bamboo_planKey=INFRA-PROP
bamboo_planRepository_1_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_planRepository_username=
bamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_planRepository_1_branchName=master
19-Jul-2016 18:14:30 Sending build context to Docker daemon 137.7 kB
19-Jul-2016 18:14:30
19-Jul-2016 18:14:30 Step 1 : FROM flarecast/python-base
19-Jul-2016 18:14:30 ---> 8bd20b588913
19-Jul-2016 18:14:30 Step 2 : MAINTAINER i4Ds
19-Jul-2016 18:14:30 ---> Using cache
19-Jul-2016 18:14:30 ---> 2e1c52b4efbd
19-Jul-2016 18:14:30 Step 3 : COPY . ./property_service
19-Jul-2016 18:14:31 ---> 73c95b2fad97
19-Jul-2016 18:14:31 Removing intermediate container db796da9b6b1
19-Jul-2016 18:14:31 Step 4 : WORKDIR ./property_service
19-Jul-2016 18:14:31 ---> Running in d79ce52fa9ae
19-Jul-2016 18:14:31 ---> af82101321ea
19-Jul-2016 18:14:31 Removing intermediate container d79ce52fa9ae
19-Jul-2016 18:14:31 Step 5 : LABEL eu.flarecast.type "system" eu.flarecast.name "propertyservice"
19-Jul-2016 18:14:31 ---> Running in b777f0a76d92
19-Jul-2016 18:14:31 ---> 29cb96eecb71
19-Jul-2016 18:14:31 Removing intermediate container b777f0a76d92
19-Jul-2016 18:14:31 Step 6 : CMD uwsgi --http :8002 -w main -p 16
19-Jul-2016 18:14:31 ---> Running in e79138aa4ee7
19-Jul-2016 18:14:31 ---> 584e5f0337e4
19-Jul-2016 18:14:31 Removing intermediate container e79138aa4ee7
19-Jul-2016 18:14:31 Successfully built 584e5f0337e4
19-Jul-2016 18:14:32 Finished task 'Build' with result: Success
19-Jul-2016 18:14:32 Starting task 'Run tests' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
19-Jul-2016 18:14:32
Beginning to execute external process for build 'FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354)'
... running command line:
/bin/sh /opt/atlassian/bamboo/temp/INFRA-PROP-JOB1-354-ScriptBuildTask-254362499466697886.sh
... in: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests
... using extra environment variables:
bamboo_planRepository_1_branch=master
bamboo_dependency_parent_0=INFRA-BASE-314
bamboo_dependency_parent_total=1
bamboo_repository_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-354
bamboo_planRepository_1_name=propertyservice
bamboo_build_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1
bamboo_buildKey=INFRA-PROP-JOB1
bamboo_capability_system_builder_command_Docker_Compose=/usr/local/bin/docker-compose
bamboo_shortPlanName=propertyservice
bamboo_planRepository_name=propertyservice
bamboo_buildNumber=354
bamboo_shortJobName=Default Job
bamboo_capability_system_builder_command_Virtual_Frambuffer_run=/usr/bin/xvfb-run
bamboo_buildResultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-354
bamboo_repository_2785292_branch_name=master
bamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_agentId=131073
bamboo_planName=FLARECAST - propertyservice
bamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_script_7=/bin/sh /opt/atlassian/bamboo/temp/INFRA-PROP-JOB1-354-ScriptBuildTask-4989961792435574524.sh
bamboo_shortPlanKey=PROP
bamboo_repository_2785292_git_username=
bamboo_shortJobKey=JOB1
bamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_planRepository_revision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_buildTimeStamp=2016-07-19T18:14:29.076+02:00
bamboo_planRepository_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_2785292_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_script_2=/bin/sh ./build.sh
bamboo_capability_system_builder_command_pytest=/usr/local/bin/py.test
bamboo_buildResultKey=INFRA-PROP-JOB1-354
bamboo_capability_system_builder_command_Docker=/usr/bin/docker
bamboo_repository_git_branch=master
bamboo_repository_branch_name=master
bamboo_buildPlanName=FLARECAST - propertyservice - Default Job
bamboo_planRepository_1_revision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_name=propertyservice
bamboo_repository_2785292_git_branch=master
bamboo_repository_2785292_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_planRepository_branch=master
bamboo_agentWorkingDirectory=/var/atlassian/application-data/bamboo/xml-data/build-dir
bamboo_capability_system_git_executable=/usr/bin/git
bamboo_repository_git_username=
bamboo_planRepository_1_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_planRepository_1_type=stash-rep
bamboo_planRepository_branchName=master
bamboo_capability_system_jdk_JDK=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_repository_2785292_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_planRepository_type=stash-rep
bamboo_planRepository_1_username=
bamboo_repository_2785292_name=propertyservice
bamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_DependencyTriggerReason_triggeringBuildResultKey=INFRA-BASE-314
bamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_command_6=/usr/local/bin/py.test --pep8 -m pep8 --junitxml pep8_results.xml
bamboo_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1
bamboo_planKey=INFRA-PROP
bamboo_planRepository_1_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_planRepository_username=
bamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_planRepository_1_branchName=master
19-Jul-2016 18:14:53 ============================= test session starts ==============================
19-Jul-2016 18:14:53 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
19-Jul-2016 18:14:53 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile:
19-Jul-2016 18:14:53 plugins: pep8-1.0.6
19-Jul-2016 18:14:53 collected 4 items
19-Jul-2016 18:14:53
19-Jul-2016 18:14:53 provenance_tests.py ....
19-Jul-2016 18:14:53
19-Jul-2016 18:14:53 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_provenance_tests.xml
19-Jul-2016 18:14:53 =========================== 4 passed in 0.15 seconds ===========================
19-Jul-2016 18:14:53 ============================= test session starts ==============================
19-Jul-2016 18:14:53 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
19-Jul-2016 18:14:53 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile:
19-Jul-2016 18:14:53 plugins: pep8-1.0.6
19-Jul-2016 18:14:53 collected 2 items
19-Jul-2016 18:14:53
19-Jul-2016 18:14:54 property_group_tests.py FF
19-Jul-2016 18:14:54
19-Jul-2016 18:14:54 =================================== FAILURES ===================================
19-Jul-2016 18:14:54 _____________ PropertyGroupTests.test_add_multiple_property_groups _____________
19-Jul-2016 18:14:54
19-Jul-2016 18:14:54 self = <tests.property_group_tests.PropertyGroupTests testMethod=test_add_multiple_property_groups>
19-Jul-2016 18:14:54
19-Jul-2016 18:14:54     def test_add_multiple_property_groups(self):
19-Jul-2016 18:14:54         result = self.client.insert_regions(
19-Jul-2016 18:14:54             TEST_DATASET,
19-Jul-2016 18:14:54             [TEST_PGT_OBJECT, TEST_PGT_OBJECT_WITH_DATA]
19-Jul-2016 18:14:54         )
19-Jul-2016 18:14:54 >       self.assertEqual(2, len(result))
19-Jul-2016 18:14:54 E       AssertionError: 2 != 1
19-Jul-2016 18:14:54
19-Jul-2016 18:14:54 property_group_tests.py:25: AssertionError
19-Jul-2016 18:14:54 ________________ PropertyGroupTests.test_add_one_property_group ________________
19-Jul-2016 18:14:54
19-Jul-2016 18:14:54 self = <tests.property_group_tests.PropertyGroupTests testMethod=test_add_one_property_group>
19-Jul-2016 18:14:54
19-Jul-2016 18:14:54     def test_add_one_property_group(self):
19-Jul-2016 18:14:54         result = self.client.add_region(
19-Jul-2016 18:14:54             TEST_DATASET,
19-Jul-2016 18:14:54 >           time_start=TEST_PGT_TIME_START
19-Jul-2016 18:14:54         )
19-Jul-2016 18:14:54
19-Jul-2016 18:14:54 property_group_tests.py:16:
19-Jul-2016 18:14:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Jul-2016 18:14:54 /home/bamboo/.local/lib/python2.7/site-packages/flarecast/utils/property_service_client.py:83: in add_region
19-Jul-2016 18:14:54     return self.__post_request(url, group)
19-Jul-2016 18:14:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Jul-2016 18:14:54
19-Jul-2016 18:14:54 url = 'http://localhost:8002/region/test_ds'
19-Jul-2016 18:14:54 payload = {'time_start': '2002-01-01T00:00:00Z'}
19-Jul-2016 18:14:54
19-Jul-2016 18:14:54     @staticmethod
19-Jul-2016 18:14:54     def __post_request(url, payload):
19-Jul-2016 18:14:54         headers = {'Content-Type': 'application/json'}
19-Jul-2016 18:14:54         r = requests.post(url, json=payload, headers=headers)
19-Jul-2016 18:14:54    
19-Jul-2016 18:14:54         if r.status_code != 200:
19-Jul-2016 18:14:54 >           raise RestException(r)
19-Jul-2016 18:14:54 E           RestException: {
19-Jul-2016 18:14:54 E             "status": 500,
19-Jul-2016 18:14:54 E             "type": "about:blank",
19-Jul-2016 18:14:54 E             "detail": "The server encountered an internal error and was unable to complete your request.  Either the server is overloaded or there is an error in the application.",
19-Jul-2016 18:14:54 E             "title": "Internal Server Error"
19-Jul-2016 18:14:54 E           }
19-Jul-2016 18:14:54
19-Jul-2016 18:14:54 /home/bamboo/.local/lib/python2.7/site-packages/flarecast/utils/property_service_client.py:196: RestException
19-Jul-2016 18:14:54 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_group_tests.xml
19-Jul-2016 18:14:54 =========================== 2 failed in 0.13 seconds ===========================
19-Jul-2016 18:14:54 ============================= test session starts ==============================
19-Jul-2016 18:14:54 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
19-Jul-2016 18:14:54 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile:
19-Jul-2016 18:14:54 plugins: pep8-1.0.6
19-Jul-2016 18:14:54 collected 4 items
19-Jul-2016 18:14:54
19-Jul-2016 18:14:54 property_tests.py ...s
19-Jul-2016 18:14:54
19-Jul-2016 18:14:54 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_tests.xml
19-Jul-2016 18:14:54 ===================== 3 passed, 1 skipped in 0.19 seconds ======================
19-Jul-2016 18:14:54 ============================= test session starts ==============================
19-Jul-2016 18:14:54 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
19-Jul-2016 18:14:54 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile:
19-Jul-2016 18:14:54 plugins: pep8-1.0.6
19-Jul-2016 18:14:54 collected 0 items
19-Jul-2016 18:14:54
19-Jul-2016 18:14:54 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_type_tests.xml
19-Jul-2016 18:14:54 ===============================  in 0.05 seconds ===============================
19-Jul-2016 18:14:55 ============================= test session starts ==============================
19-Jul-2016 18:14:55 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
19-Jul-2016 18:14:55 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile:
19-Jul-2016 18:14:55 plugins: pep8-1.0.6
19-Jul-2016 18:14:55 collected 2 items
19-Jul-2016 18:14:55
19-Jul-2016 18:14:55 link_tests.py Fs
19-Jul-2016 18:14:55
19-Jul-2016 18:14:55 =================================== FAILURES ===================================
19-Jul-2016 18:14:55 ___________________________ LinkTests.test_add_link ____________________________
19-Jul-2016 18:14:55
19-Jul-2016 18:14:55 self = <tests.link_tests.LinkTests testMethod=test_add_link>
19-Jul-2016 18:14:55
19-Jul-2016 18:14:55     def test_add_link(self):
19-Jul-2016 18:14:55         result = self.client.add_link(self.flarecast_ids[0],
19-Jul-2016 18:14:55 >                                     self.flarecast_ids[1],
19-Jul-2016 18:14:55                                       'test link',
19-Jul-2016 18:14:55                                       'test description')
19-Jul-2016 18:14:55 E       IndexError: list index out of range
19-Jul-2016 18:14:55
19-Jul-2016 18:14:55 link_tests.py:19: IndexError
19-Jul-2016 18:14:55 ----------------------------- Captured stdout call -----------------------------
19-Jul-2016 18:14:55 [u'flarecast-test_ds-ed832fc2-4dcb-11e6-9027-0242ac110003']
19-Jul-2016 18:14:55 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_link_tests.xml
19-Jul-2016 18:14:55 ===================== 1 failed, 1 skipped in 0.07 seconds ======================
19-Jul-2016 18:14:55 ============================= test session starts ==============================
19-Jul-2016 18:14:55 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
19-Jul-2016 18:14:55 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile:
19-Jul-2016 18:14:55 plugins: pep8-1.0.6
19-Jul-2016 18:14:55 collected 3 items
19-Jul-2016 18:14:55
19-Jul-2016 18:14:55 query_tests.py FF.
19-Jul-2016 18:14:55
19-Jul-2016 18:14:55 =================================== FAILURES ===================================
19-Jul-2016 18:14:55 ___________________ QueryTests.test_get_all_property_groups ____________________
19-Jul-2016 18:14:55
19-Jul-2016 18:14:55 self = <tests.query_tests.QueryTests testMethod=test_get_all_property_groups>
19-Jul-2016 18:14:55
19-Jul-2016 18:14:55     def test_get_all_property_groups(self):
19-Jul-2016 18:14:55         groups = self.client.get_properties(TEST_DATASET)
19-Jul-2016 18:14:55 >       self.assertEqual(3, len(groups))
19-Jul-2016 18:14:55 E       AssertionError: 3 != 1
19-Jul-2016 18:14:55
19-Jul-2016 18:14:55 query_tests.py:18: AssertionError
19-Jul-2016 18:14:55 _______________ QueryTests.test_get_all_property_groups_with_eq ________________
19-Jul-2016 18:14:55
19-Jul-2016 18:14:55 self = <tests.query_tests.QueryTests testMethod=test_get_all_property_groups_with_eq>
19-Jul-2016 18:14:55
19-Jul-2016 18:14:55     def test_get_all_property_groups_with_eq(self):
19-Jul-2016 18:14:55         groups = self.client.get_properties(TEST_DATASET,
19-Jul-2016 18:14:55                                             'test1=eq(500)')
19-Jul-2016 18:14:55 >       self.assertEqual(2, len(groups))
19-Jul-2016 18:14:55 E       AssertionError: 2 != 1
19-Jul-2016 18:14:55
19-Jul-2016 18:14:55 query_tests.py:28: AssertionError
19-Jul-2016 18:14:55 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_query_tests.xml
19-Jul-2016 18:14:55 ====================== 2 failed, 1 passed in 0.12 seconds ======================
19-Jul-2016 18:14:56 Finished task 'Run tests' with result: Success
19-Jul-2016 18:14:56 Starting task 'Pep8 tests' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.command'
19-Jul-2016 18:14:56
Beginning to execute external process for build 'FLARECAST - propertyservice - Default Job #354 (INFRA-PROP-JOB1-354)'
... running command line:
/usr/local/bin/py.test --pep8 -m pep8 --junitxml pep8_results.xml
... in: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1
... using extra environment variables:
bamboo_planRepository_1_branch=master
bamboo_dependency_parent_0=INFRA-BASE-314
bamboo_dependency_parent_total=1
bamboo_repository_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-354
bamboo_planRepository_1_name=propertyservice
bamboo_build_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1
bamboo_buildKey=INFRA-PROP-JOB1
bamboo_capability_system_builder_command_Docker_Compose=/usr/local/bin/docker-compose
bamboo_shortPlanName=propertyservice
bamboo_planRepository_name=propertyservice
bamboo_buildNumber=354
bamboo_shortJobName=Default Job
bamboo_capability_system_builder_command_Virtual_Frambuffer_run=/usr/bin/xvfb-run
bamboo_buildResultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-354
bamboo_repository_2785292_branch_name=master
bamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_agentId=131073
bamboo_planName=FLARECAST - propertyservice
bamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_script_7=/bin/sh /opt/atlassian/bamboo/temp/INFRA-PROP-JOB1-354-ScriptBuildTask-254362499466697886.sh
bamboo_shortPlanKey=PROP
bamboo_repository_2785292_git_username=
bamboo_shortJobKey=JOB1
bamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_planRepository_revision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_buildTimeStamp=2016-07-19T18:14:29.076+02:00
bamboo_planRepository_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_2785292_previous_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_script_2=/bin/sh ./build.sh
bamboo_capability_system_builder_command_pytest=/usr/local/bin/py.test
bamboo_buildResultKey=INFRA-PROP-JOB1-354
bamboo_capability_system_builder_command_Docker=/usr/bin/docker
bamboo_repository_git_branch=master
bamboo_repository_branch_name=master
bamboo_buildPlanName=FLARECAST - propertyservice - Default Job
bamboo_planRepository_1_revision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_repository_name=propertyservice
bamboo_repository_2785292_git_branch=master
bamboo_repository_2785292_revision_number=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_planRepository_branch=master
bamboo_agentWorkingDirectory=/var/atlassian/application-data/bamboo/xml-data/build-dir
bamboo_capability_system_git_executable=/usr/bin/git
bamboo_repository_git_username=
bamboo_planRepository_1_previousRevision=b524294ccde3d9bb69090107037cfb4f00733fbc
bamboo_planRepository_1_type=stash-rep
bamboo_planRepository_branchName=master
bamboo_capability_system_jdk_JDK=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_repository_2785292_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_planRepository_type=stash-rep
bamboo_planRepository_1_username=
bamboo_repository_2785292_name=propertyservice
bamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_DependencyTriggerReason_triggeringBuildResultKey=INFRA-BASE-314
bamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_command_6=/usr/local/bin/py.test --pep8 -m pep8 --junitxml pep8_results.xml
bamboo_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1
bamboo_planKey=INFRA-PROP
bamboo_planRepository_1_repositoryUrl=ssh://git@localhost:7999/fe/propertyservice.git
bamboo_planRepository_username=
bamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64
bamboo_planRepository_1_branchName=master
19-Jul-2016 18:14:57 ============================= test session starts ==============================
19-Jul-2016 18:14:57 platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
19-Jul-2016 18:14:57 rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1, inifile:
19-Jul-2016 18:14:57 plugins: pep8-1.0.6
19-Jul-2016 18:14:57 collected 27 items
19-Jul-2016 18:14:57
19-Jul-2016 18:14:57 main.py .
19-Jul-2016 18:14:57 propertyservice/__init__.py .
19-Jul-2016 18:14:57 propertyservice/config.py .
19-Jul-2016 18:14:57 propertyservice/util.py .
19-Jul-2016 18:14:57 propertyservice/data/__init__.py .
19-Jul-2016 18:14:57 propertyservice/data/extended_queries.py .
19-Jul-2016 18:14:57 propertyservice/data/property_db_data_source.py .
19-Jul-2016 18:14:57 propertyservice/data/property_db_query_engine.py .
19-Jul-2016 18:14:57 propertyservice/data/type_evaluator.py .
19-Jul-2016 18:14:57 propertyservice/routes/__init__.py .
19-Jul-2016 18:14:57 propertyservice/routes/dataset.py .
19-Jul-2016 18:14:57 propertyservice/routes/link.py .
19-Jul-2016 18:14:57 propertyservice/routes/property.py .
19-Jul-2016 18:14:57 propertyservice/routes/property_group.py .
19-Jul-2016 18:14:57 propertyservice/routes/property_type.py .
19-Jul-2016 18:14:57 propertyservice/routes/query.py .
19-Jul-2016 18:14:57 propertyservice/routes/query_builder.py .
19-Jul-2016 18:14:57 tests/__init__.py .
19-Jul-2016 18:14:57 tests/base_test_case.py .
19-Jul-2016 18:14:57 tests/cleanup_docker_env.py .
19-Jul-2016 18:14:57 tests/link_tests.py .
19-Jul-2016 18:14:57 tests/property_group_tests.py .
19-Jul-2016 18:14:57 tests/property_tests.py .
19-Jul-2016 18:14:57 tests/property_type_tests.py .
19-Jul-2016 18:14:57 tests/provenance_tests.py .
19-Jul-2016 18:14:57 tests/query_tests.py .
19-Jul-2016 18:14:57 tests/setup_docker_env.py .
19-Jul-2016 18:14:57
19-Jul-2016 18:14:57 generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/pep8_results.xml
19-Jul-2016 18:14:57 ========================== 27 passed in 0.19 seconds ===========================
19-Jul-2016 18:14:57 Finished task 'Pep8 tests' with result: Success
19-Jul-2016 18:14:57 Starting task 'Parse pytest output' of type 'com.atlassian.bamboo.plugins.testresultparser:task.testresultparser.junit'
19-Jul-2016 18:14:57 Parsing test results under /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1...
19-Jul-2016 18:14:57 Failing task since 5 failing test cases were found.
19-Jul-2016 18:14:57 Finished task 'Parse pytest output' with result: Failed
19-Jul-2016 18:14:57 Running post build plugin 'NCover Results Collector'
19-Jul-2016 18:14:57 Running post build plugin 'Artifact Copier'
19-Jul-2016 18:14:57 Running post build plugin 'Sauce OnDemand Post Runner'
19-Jul-2016 18:14:57 Running post build plugin 'npm Cache Cleanup'
19-Jul-2016 18:14:57 Running post build plugin 'Clover Results Collector'
19-Jul-2016 18:14:57 Running post build plugin 'Docker Container Cleanup'
19-Jul-2016 18:14:57 Finalising the build...
19-Jul-2016 18:14:57 Stopping timer.
19-Jul-2016 18:14:57 Build INFRA-PROP-JOB1-354 completed.
19-Jul-2016 18:14:57 Running on server: post build plugin 'NCover Results Collector'
19-Jul-2016 18:14:57 Running on server: post build plugin 'Build Hanging Detection Configuration'
19-Jul-2016 18:14:57 Running on server: post build plugin 'Clover Delta Calculator'
19-Jul-2016 18:14:57 Running on server: post build plugin 'Maven Dependencies Postprocessor'
19-Jul-2016 18:14:57 All post build plugins have finished
19-Jul-2016 18:14:57 Generating build results summary...
19-Jul-2016 18:14:57 Saving build results to disk...
19-Jul-2016 18:14:57 Logging substituted variables...
19-Jul-2016 18:14:57 Indexing build results...
19-Jul-2016 18:14:57 Finished building INFRA-PROP-JOB1-354.