Closed aes-charts closed 8 years ago
Which version of Xplat agent are you using?
Can you give Test Results Files = TEST*-.xml
no need to append _work/s/ folder
Test results file is kept under _work/s/ folder. TEST-report1.zip I will let you know the version of xplat details.
@aes-charts, by default this this path is prefixed. so you don't need to add this. The filter which I mentioned should do the job.
@nigurr @aes-charts the agent version is 1.999.0
That's not the one. Go to Build Agent folder and you will find packages.json file
"version": "0.5.9" //similar to this.
@nigurr - Is this visible on the agent capabilities page at all or can you only see this in packages.json?
@nigurr - changing the filter to Test Results Files = TEST*-.xml did not work. Still complaints the test results file not found. See the log below...
2016-04-18T08:31:10.480Z: [command]/usr/bin/bash /home/AspectAdmin/aspectagent01/_work/13/s/vsts-experiments/vsts-logparser-wrapper.sh tests_console_output.txt TEST-report.xml
2016-04-18T08:31:15.149Z:
2016-04-18T08:31:15.149Z: Start: Results.Publish async Command
2016-04-18T08:31:15.149Z: [warning]Failed to publish test results: Could not read file (): ENOENT: no such file or directory, open ''
2016-04-18T08:31:15.149Z: End: Results.Publish async Command
2016-04-18T08:31:15.149Z:
@tarunaroraonline it's available only in packages.json please let me know the same
Can you try using this in "test results files" field **/TEST-*.xml
@tanvi-soni - Using */Test-.xml makes no difference.
2016-04-18T09:36:45.340Z: [command]/usr/bin/bash /home/AspectAdmin/aspectagent01/_work/10/s/vsts-experiments/vsts-logparser-wrapper.sh tests_console_output.txt TEST-report.xml
2016-04-18T09:36:50.040Z:
2016-04-18T09:36:50.040Z: Start: Results.Publish async Command
2016-04-18T09:36:50.040Z: [warning]Failed to publish test results: Could not read file (): ENOENT: no such file or directory, open ''
2016-04-18T09:36:50.040Z: End: Results.Publish async Command
2016-04-18T09:36:50.040Z:
Can you please tell me the agent version?
It is 0.5.9 @nigurr
Latest test changes we're in 0.6.x
How can I upgrade?
--Tarun
On 18 Apr 2016, at 18:21, Bryan MacFarlane notifications@github.com wrote:
Latest test changes we're in 0.6.x
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub
The docs cover that
Bryan - can I update the agent from the agent control panel by right clicking the agent pool and choosing update all agents? Or do I need to reinstall the agent to upgrade?
The docs cover it under the setup section: https://github.com/Microsoft/vso-agent/blob/master/README.md
@tarunaroraonline, you can't upgrade via UI. Reinstall or upgrade as per the doc.
There's compat issue with task version to agent version, which is fixed in latest 0.6 branch and will be released by today. after that try this out.
@nigurr @bryanmacfarlane @tanvi-soni Thank you all. Upgrading the agent to the latest available version fixed the issue with test results not publishing. I am however disappointed that the functionality broke in the previous version and that we had no visibility that we were operating on an older version of the agent.
Awesome. Glad it's fixed.
The replacement for this agent will support updates. We are releasing a new preview tomorrow or early next week. It already has more features than this one
Hi @bryanmacfarlane, this issue is still there or might have come back in the latest release. My builds are failing for same reason after updating the agents to 2.124.0 version. Could you please help?
Following are the messages in the log:
2017-11-21T20:17:54.5822126Z ##[debug]Agent.Version=2.124.0
2017-11-21T20:17:54.5822126Z ##[debug]Unable to publish telemetry due to lower agent version.
2017-11-21T20:17:54.5822126Z ##[debug]task result: Failed
2017-11-21T20:17:54.5832125Z ##[error]VsTest task failed.
2017-11-21T20:17:54.5832125Z ##[debug]Processed: ##vso[task.issue type=error;]VsTest task failed.
2017-11-21T20:17:54.5832125Z ##[debug]Processed: ##vso[task.complete result=Failed;]VsTest task failed.
Hi There,
We have created build step "Publish Test Results" with input parameter Junit test result file in xml format.
Here is the log out.
[Debug] 2016-04-17T07:12:57.924Z: testRunner: JUnit
[Debug] 2016-04-17T07:12:57.925Z: testResultsFiles: /_work/10/s/TEST-*.xml
[Debug] 2016-04-17T07:12:57.925Z: mergeTestResults: false
[Debug] 2016-04-17T07:12:57.925Z: testRunTitle: Unit Test
[Debug] 2016-04-17T07:12:57.925Z: platform:
[Debug] 2016-04-17T07:12:57.925Z: configuration:
[Debug] 2016-04-17T07:12:57.925Z: publishRunAttachments: true
[Debug] 2016-04-17T07:12:57.925Z:
[Debug] 2016-04-17T07:12:57.926Z: cwd: /home//_work/10/s
[Debug] 2016-04-17T07:12:58.239Z: loading inputs and endpoints
[Debug] 2016-04-17T07:12:58.247Z: loading INPUT_TESTRUNNER
[Debug] 2016-04-17T07:12:58.248Z: loading INPUT_TESTRESULTSFILES
[Debug] 2016-04-17T07:12:58.249Z: loading INPUT_MERGETESTRESULTS
[Debug] 2016-04-17T07:12:58.249Z: loading INPUT_TESTRUNTITLE
[Debug] 2016-04-17T07:12:58.249Z: loading INPUT_PUBLISHRUNATTACHMENTS
[Debug] 2016-04-17T07:12:58.249Z: loaded 5
[Debug] 2016-04-17T07:12:58.250Z: testRunner=JUnit
[Debug] 2016-04-17T07:12:58.250Z: testResultsFiles=/home/_work/10/s/TEST-*.xml
[Debug] 2016-04-17T07:12:58.251Z: mergeTestResults=false
[Debug] 2016-04-17T07:12:58.251Z: platform=null
[Debug] 2016-04-17T07:12:58.251Z: configuration=null
[Debug] 2016-04-17T07:12:58.252Z: testRunTitle=Unit Test
[Debug] 2016-04-17T07:12:58.252Z: publishRunAttachments=true
[Debug] 2016-04-17T07:12:58.252Z: testRunner: JUnit
[Debug] 2016-04-17T07:12:58.252Z: testResultsFiles: /home/_work/10/s/TEST-*.xml
[Debug] 2016-04-17T07:12:58.252Z: mergeResults: false
[Debug] 2016-04-17T07:12:58.252Z: platform: null
[Debug] 2016-04-17T07:12:58.252Z: config: null
[Debug] 2016-04-17T07:12:58.253Z: testRunTitle: Unit Test
[Debug] 2016-04-17T07:12:58.262Z: publishRunAttachments: true
[Debug] 2016-04-17T07:12:58.262Z: Pattern found in testResultsFiles parameter
[Debug] 2016-04-17T07:12:58.262Z: agent.buildDirectory=/home/_work/10
[Debug] 2016-04-17T07:13:01.122Z: find /home/_work/10
[Debug] 2016-04-17T07:13:01.122Z: 51986 matches.
2016-04-17T07:13:01.935Z:
2016-04-17T07:13:01.936Z: Start: Results.Publish async Command 2016-04-17T07:13:01.936Z: [warning]Failed to publish test results: Could not read file (): ENOENT: no such file or directory, open '' 2016-04-17T07:13:01.936Z: End: Results.Publish async Command 2016-04-17T07:13:01.936Z:
Regards,
Madhu