Job: Test Parser did not Complete
Issue #1
resolved
While using the extension on a Bamboo (6.10.4 build 61009), the Job would not complete; the job had to be stopped manually.
Disabling the job step allowed it to run to completion.
I’ve included a sanitized logfile:
simple 12-Mar-2021 17:17:44 Updated source code to revision: <commit-id>
simple 12-Mar-2021 17:17:44 Finished task 'Get code' with result: Success
simple 12-Mar-2021 17:17:44 Running pre-build action: Artifactory Release Staging
simple 12-Mar-2021 17:17:44 Running pre-build action: VCS Version Collector
simple 12-Mar-2021 17:17:44 Starting task 'Parse test results' of type 'com.valens.bamboo-logparser-plugin:myGenericLogParserTask'
simple 12-Mar-2021 17:17:44 [^.* Fail .*$]
simple 12-Mar-2021 17:17:44 [^.* Pass .*$]
simple 12-Mar-2021 17:17:44 [.*]
simple 12-Mar-2021 17:17:44 [**/results*.txt]
simple 12-Mar-2021 17:17:44 [,]
simple 12-Mar-2021 17:17:44 [2]
simple 12-Mar-2021 17:17:44 Root directory: B:\<JOB-ID>
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 12975 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 3880 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 3168 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 2620 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 2323 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 1528 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 521 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 442 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 539 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 577 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 448 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 402 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 402 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 402 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 402 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 402 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 411 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 411 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 411 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 411 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 411 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 414 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 411 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 411 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 396 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 431 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 25489 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 1585 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 530 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 13571 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 558 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 613 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 509 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 390 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 435 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 838 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 431 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 651 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 737 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 649 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 679 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 1082 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 1018 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 616 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 934 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 6173 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 6050 successful, 1 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 1411 successful, 0 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 7035 successful, 102 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 9037 successful, 106 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 12587 successful, 213 failed, 0 skipped
simple 12-Mar-2021 17:17:45 File B:\<JOB-ID>\<COMPONENT>\tg_<path>\tp_<path>\ts_<path>\results.txt parsing result: 12908 successful, 213 failed, 0 skipped
simple 12-Mar-2021 17:17:45 Failing task since 635 failing test cases were found.
simple 12-Mar-2021 17:17:45 Finished task 'Parse test results' with result: Failed
simple 12-Mar-2021 17:17:45 Starting task 'Show files' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
command 12-Mar-2021 17:17:45 Beginning to execute external process for build '<Project> - Parse test - Test Parser #13 (<JOB-ID-##>)'\n ... running command line: \nC:\Users\<user>\bamboo-agent-home\temp\<JOB-ID-##>-ScriptBuildTask-5141673133661466391.bat\n ... in: B:\<JOB-ID>\n ... using extra environment variables: \nbamboo_planRepository_1_branch=test_result_scan\nbamboo_planRepository_1_branchDisplayName=test_result_scan\nbamboo_repository_revision_number=<commit-id>\nbamboo_repository_175247724_git_repositoryUrl=ssh://git@<bitbucket-url>:7999/<project>/<repository>.git\nbamboo_resultsUrl=https://<bitbucket-url>/browse/<JOB-ID-##>\nbamboo_capability_system_builder_msbuild_MSBuild_v4_0__32bit_=C:\windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe\nbamboo_capability_<REDACTED>=\nbamboo_build_working_directory=B:\<JOB-ID>\nbamboo_planRepository_1_name=<repository>\nbamboo_buildKey=<JOB-ID>\nbamboo_capability_<REDACTED>=\nbamboo_shortPlanName=Parse test\nbamboo_repository_175247724_git_branch=test_result_scan\nbamboo_capability_system_builder_msbuild_MSBuild_v3_5__64bit_=C:\windows\Microsoft.NET\Framework64\v3.5\MSBuild.exe\nbamboo_planRepository_name=<repository>\nbamboo_buildNumber=13\nbamboo_capability_system_jdk_JDK_1_8_0_252=C:\Program Files\Java\java-1.8.0_252\nbamboo_capability_system_jdk_JDK_1_8_0_241__JRE_=C:\Program Files\Java\jre1.8.0_241\nbamboo_shortJobName=Test Parser\nbamboo_buildResultsUrl=https://<bitbucket-url>/browse/<JOB-ID-##>\nbamboo_repository_175247724_name=<repository>\nbamboo_capability_system_builder_msbuild_MSBuild_v2_0__64bit_=C:\windows\Microsoft.NET\Framework64\v2.0.50727\MSBuild.exe\nbamboo_planRepository_repositoryUrl=ssh://git@<bitbucket-url>:7999/<project>/<repository>.git\nbamboo_capability_LDRA_9_4_6=\nbamboo_agentId=151552002\nbamboo_planName=<Project> - Parse test\nbamboo_shortPlanKey=PT\nbamboo_repository_175247724_git_username=\nbamboo_sAspire_usertoken_password=********\nbamboo_shortJobKey=JOB1\nbamboo_planRepository_revision=<commit-id>\nbamboo_buildTimeStamp=2021-03-12T17:17:38.120Z\nbamboo_repository_previous_revision_number=<commit-id>\nbamboo_planRepository_previousRevision=<commit-id>\nbamboo_sjdbc_password=********\nbamboo_repository_git_branch=test_result_scan\nbamboo_buildResultKey=<JOB-ID-##>\nbamboo_repository_branch_name=test_result_scan\nbamboo_repository_175247724_previous_revision_number=<commit-id>\nbamboo_buildPlanName=<Project> - Parse test - Test Parser\nbamboo_satt_password=********\nbamboo_planRepository_1_revision=<commit-id>\nbamboo_repository_175247724_revision_number=<commit-id>\nbamboo_capability_system_builder_msbuild_MSBuild_v2_0__32bit_=C:\windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe\nbamboo_repository_name=<repository>\nbamboo_capability_system_builder_msbuild_MSBuild_v3_5__32bit_=C:\windows\Microsoft.NET\Framework\v3.5\MSBuild.exe\nbamboo_dependenciesDisabled=false\nbamboo_capability_<REDACTED>=\nbamboo_buildFailed=true\nbamboo_planRepository_branch=test_result_scan\nbamboo_agentWorkingDirectory=B:\\nbamboo_jobFailed=true\nbamboo_capability_system_git_executable=C:\Program Files\Git\bin\git.exe\nbamboo_repository_git_username=\nbamboo_planRepository_1_previousRevision=<commit-id>\nbamboo_planRepository_branchDisplayName=test_result_scan\nbamboo_planRepository_1_type=bbserver\nbamboo_planRepository_branchName=test_result_scan\nbamboo_capability_<REDACTED>=\nbamboo_capability_system_jdk_JDK=C:\Program Files\Java\jre1.8.0_241\nbamboo_plan_storageTag=plan-175116743\nbamboo_hg_cache_directory=B:\_hg-repositories-cache\nbamboo_planRepository_1_username=\nbamboo_planRepository_type=bbserver\nbamboo_git_cache_directory=B:\_git-repositories-cache\nbamboo_ManualBuildTriggerReason_userName=<USERID>\nbamboo_repository_git_repositoryUrl=ssh://git@<bitbucket-url>:7999/<project>/<repository>.git\nbamboo_capability_system_builder_msbuild_MSBuild_v4_0__64bit_=C:\windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe\nbamboo_repository_175247724_branch_name=test_result_scan\nbamboo_tmp_directory=C:\Users\<user>\bamboo-agent-home\temp\nbamboo_working_directory=B:\<JOB-ID>\nbamboo_planKey=<PROJ>-PT\nbamboo_planRepository_1_repositoryUrl=ssh://git@<bitbucket-url>:7999/<project>/<repository>.git\nbamboo_planRepository_username=\nbamboo_capability_system_jdk_JDK_1_8=C:\Program Files\Java\jre1.8.0_241\nbamboo_planRepository_1_branchName=test_result_scan\n
build 12-Mar-2021 17:17:46
build 12-Mar-2021 17:17:46 B:\<JOB-ID>>REM dir <COMPONENT>\tg*\tp*\ts*
build 12-Mar-2021 17:17:46
build 12-Mar-2021 17:17:46 B:\<JOB-ID>>dir *
build 12-Mar-2021 17:17:46 Volume in drive B is Bamboo
build 12-Mar-2021 17:17:46 Volume Serial Number is <SN>
build 12-Mar-2021 17:17:46
build 12-Mar-2021 17:17:46 Directory of B:\<JOB-ID>
build 12-Mar-2021 17:17:46
build 12-Mar-2021 17:17:46 03/12/2021 11:17 AM <DIR> .
build 12-Mar-2021 17:17:46 03/12/2021 11:17 AM <DIR> ..
build 12-Mar-2021 17:17:46 03/12/2021 11:17 AM <DIR> <COMPONENT>
build 12-Mar-2021 17:17:46 03/12/2021 11:17 AM 148 README.md
build 12-Mar-2021 17:17:46 1 File(s) 148 bytes
build 12-Mar-2021 17:17:46 3 Dir(s) 1,975,842,803,712 bytes free
simple 12-Mar-2021 17:17:46 Finished task 'Show files' with result: Success
simple 12-Mar-2021 17:17:46 Running post build plugin 'Docker Container Cleanup'
simple 12-Mar-2021 17:17:46 Running post build plugin 'NCover Results Collector'
simple 12-Mar-2021 17:17:46 Running post build plugin 'Artifactory Release Management Staging'
simple 12-Mar-2021 17:17:46 Running post build plugin 'Artifactory Build Info Copier'
simple 12-Mar-2021 17:17:46 Running post build plugin 'Artifactory Gradle Properties Info Copier'
simple 12-Mar-2021 17:17:46 Running post build plugin 'Clover Results Collector'
simple 12-Mar-2021 17:17:46 Running post build plugin 'npm Cache Cleanup'
simple 12-Mar-2021 17:17:46 Running post build plugin 'Artifact Copier'
simple 12-Mar-2021 17:17:46 Finalising the build...
simple 12-Mar-2021 17:17:46 Stopping timer.
simple 12-Mar-2021 17:17:46 Build <JOB-ID-##> completed.
command 12-Mar-2021 17:19:58 Request to stop '<JOB-ID-##>' received from <USERID>
error 12-Mar-2021 17:20:58 Build <JOB-ID-##> had to be cancelled: agent had been requested to stop the build but sent no response
Comments (4)
-
repo owner -
reporter Ahh, I see! We had been hoping to have it represent all tests within each broader test result file, but maybe we need to preprocess this down to a single pass/fail per file for our larger suites. I’m also seeing that test results over 1000 entries might not get shown anyways, so having a few tens of thousands of tests might be a wee bit overkill.
Thanks so much for the fast response! A simple parser like this is exactly what we needed.
-
reporter - changed status to resolved
-
repo owner No problem Daniel, have a great weekend.
- Log in to comment
Hi Daniel, as far as I see you are treating every line as a test from very large result set. This will either spam bamboo database or crash the agent Try to filter using the regex a bit and go to some reasonable numbers. If you are sure of what you are doing it might be a ram limitation of the agent (think it has 250m by default try to take it to 2-4 gb)