Closed petermicuch closed 1 year ago
Hi @petermicuch this task does not support proxy at the moment - moving to azure-pipelines-tasks since it's related to the task itself.
Hi @anatolybolshakov which other task that does the same job do you propose to use? Or can fix for this issue be expected shortly? Thank you.
Hi @petermicuch, I'm investigating this issue now. And I tried to repro this, but task PublishTestResults finishes successfully for me. Also, I see that publishing of results completes through proxy, not directly. Could you please provide me output of task started with marked checkbox "Enable system diagnostic"? The checkbox is placed in the bottom of "Run pipeline" window.
Hi @EzzhevNikita,
here are the logs. Note that agent might have been updated in the meantime and we are actually having exception from proxy there right now. I would have to setup another one to test it without the bypass as this one is occupied with tests and I can not take it away from the team.
2021-09-30T10:28:01.0972392Z ##[debug]Evaluating condition for step: 'PublishTestResults'
2021-09-30T10:28:01.0976083Z ##[debug]Evaluating: SucceededNode()
2021-09-30T10:28:01.0977748Z ##[debug]Evaluating SucceededNode:
2021-09-30T10:28:01.0980273Z ##[debug]=> True
2021-09-30T10:28:01.0981747Z ##[debug]Result: True
2021-09-30T10:28:01.0983169Z ##[section]Starting: PublishTestResults
2021-09-30T10:28:01.1006476Z ##[debug]Extracting task PublishTestResults from /home/anonymuser/Az/CL_A01/_work/_taskzips/PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1_2.192.1.zip to /home/anonymuser/Az/CL_A01/_work/_tasks/PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1/2.192.1.
2021-09-30T10:28:01.3741157Z ==============================================================================
2021-09-30T10:28:01.3741829Z Task : Publish Test Results
2021-09-30T10:28:01.3742349Z Description : Publish test results to Azure Pipelines
2021-09-30T10:28:01.3742851Z Version : 2.192.1
2021-09-30T10:28:01.3743270Z Author : Microsoft Corporation
2021-09-30T10:28:01.3743990Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/test/publish-test-results
2021-09-30T10:28:01.3744728Z ==============================================================================
2021-09-30T10:28:01.3842951Z ##[debug]Using node path: /home/anonymuser/Az/CL_A01/externals/node10/bin/node
2021-09-30T10:28:01.5508982Z ##[debug]agent.TempDirectory=/home/anonymuser/Az/CL_A01/_work/_temp
2021-09-30T10:28:01.5543828Z ##[debug]loading inputs and endpoints
2021-09-30T10:28:01.5551312Z ##[debug]loading INPUT_TESTRUNNER
2021-09-30T10:28:01.5570072Z ##[debug]loading INPUT_TESTRESULTSFILES
2021-09-30T10:28:01.5572039Z ##[debug]loading INPUT_SEARCHFOLDER
2021-09-30T10:28:01.5573917Z ##[debug]loading INPUT_MERGETESTRESULTS
2021-09-30T10:28:01.5575416Z ##[debug]loading INPUT_FAILTASKONFAILEDTESTS
2021-09-30T10:28:01.5577327Z ##[debug]loading INPUT_TESTRUNTITLE
2021-09-30T10:28:01.5579314Z ##[debug]loading INPUT_PLATFORM
2021-09-30T10:28:01.5581288Z ##[debug]loading INPUT_PUBLISHRUNATTACHMENTS
2021-09-30T10:28:01.5583012Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2021-09-30T10:28:01.5586631Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2021-09-30T10:28:01.5588483Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2021-09-30T10:28:01.5595352Z ##[debug]loading SECRET_AZURE_BLOB_PASSWORD
2021-09-30T10:28:01.5596864Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2021-09-30T10:28:01.5599013Z ##[debug]loading SECRET_anonymCONTAINERREGISTRY_PWD
2021-09-30T10:28:01.5600522Z ##[debug]loading SECRET_AZURE_BLOB_USERNAME
2021-09-30T10:28:01.5602387Z ##[debug]loading SECRET_AZURE_NPM_TOKEN
2021-09-30T10:28:01.5604177Z ##[debug]loading SECRET_QUERY_BUNDLE_PRIVATE_KEY
2021-09-30T10:28:01.5605984Z ##[debug]loading SECRET_VSTS_PAT
2021-09-30T10:28:01.5607384Z ##[debug]loading SECRET_SHSDS_NPM_TOKEN
2021-09-30T10:28:01.5609992Z ##[debug]loading SECRET_SHUI_NPM_TOKEN
2021-09-30T10:28:01.5611380Z ##[debug]loaded 20
2021-09-30T10:28:01.5618436Z ##[debug]Agent.ProxyUrl=http://139.22.102.14:8888
2021-09-30T10:28:01.5619932Z ##[debug]Agent.ProxyUsername=undefined
2021-09-30T10:28:01.5621006Z ##[debug]Agent.ProxyPassword=undefined
2021-09-30T10:28:01.5622071Z ##[debug]Agent.ProxyBypassList=undefined
2021-09-30T10:28:01.5625156Z ##[debug]expose agent proxy configuration.
2021-09-30T10:28:01.5626527Z ##[debug]Agent.CAInfo=undefined
2021-09-30T10:28:01.5627802Z ##[debug]Agent.ClientCert=undefined
2021-09-30T10:28:01.5629099Z ##[debug]Agent.SkipCertValidation=undefined
2021-09-30T10:28:01.5727560Z ##[debug]check path : /home/anonymuser/Az/CL_A01/_work/_tasks/PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1/2.192.1/task.json
2021-09-30T10:28:01.5731231Z ##[debug]adding resource file: /home/anonymuser/Az/CL_A01/_work/_tasks/PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1/2.192.1/task.json
2021-09-30T10:28:01.5733971Z ##[debug]system.culture=en-US
2021-09-30T10:28:01.5752497Z ##[debug]testRunner=NUnit
2021-09-30T10:28:01.5754567Z ##[debug]testResultsFiles=test_results.xml
2021-09-30T10:28:01.5756632Z ##[debug]mergeTestResults=false
2021-09-30T10:28:01.5758594Z ##[debug]platform=anonym-nlp
2021-09-30T10:28:01.5760525Z ##[debug]configuration=undefined
2021-09-30T10:28:01.5762567Z ##[debug]testRunTitle=iTests NLP.QueryData (queries)
2021-09-30T10:28:01.5764470Z ##[debug]publishRunAttachments=true
2021-09-30T10:28:01.5766293Z ##[debug]failTaskOnFailedTests=true
2021-09-30T10:28:01.5768360Z ##[debug]searchFolder=/home/anonymuser/Az/CL_A01/_work/1/s
2021-09-30T10:28:01.5770398Z ##[debug]testRunner: NUnit
2021-09-30T10:28:01.5772445Z ##[debug]testResultsFiles: test_results.xml
2021-09-30T10:28:01.5774423Z ##[debug]mergeResults: false
2021-09-30T10:28:01.5776749Z ##[debug]platform: anonym-nlp
2021-09-30T10:28:01.5778900Z ##[debug]config: undefined
2021-09-30T10:28:01.5780871Z ##[debug]testRunTitle: iTests NLP.QueryData (queries)
2021-09-30T10:28:01.5782838Z ##[debug]publishRunAttachments: true
2021-09-30T10:28:01.5784747Z ##[debug]failTaskOnFailedTests: true
2021-09-30T10:28:01.5786773Z ##[debug]System.DefaultWorkingDirectory=/home/anonymuser/Az/CL_A01/_work/1/s
2021-09-30T10:28:01.5789375Z ##[debug]defaultRoot: '/home/anonymuser/Az/CL_A01/_work/1/s'
2021-09-30T10:28:01.5792226Z ##[debug]findOptions.allowBrokenSymbolicLinks: 'true'
2021-09-30T10:28:01.5794693Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
2021-09-30T10:28:01.5797057Z ##[debug]findOptions.followSymbolicLinks: 'true'
2021-09-30T10:28:01.5799248Z ##[debug]matchOptions.debug: 'false'
2021-09-30T10:28:01.5801517Z ##[debug]matchOptions.nobrace: 'true'
2021-09-30T10:28:01.5803873Z ##[debug]matchOptions.noglobstar: 'false'
2021-09-30T10:28:01.5806158Z ##[debug]matchOptions.dot: 'true'
2021-09-30T10:28:01.5808498Z ##[debug]matchOptions.noext: 'false'
2021-09-30T10:28:01.5810845Z ##[debug]matchOptions.nocase: 'false'
2021-09-30T10:28:01.5812924Z ##[debug]matchOptions.nonull: 'false'
2021-09-30T10:28:01.5814505Z ##[debug]matchOptions.matchBase: 'false'
2021-09-30T10:28:01.5816085Z ##[debug]matchOptions.nocomment: 'false'
2021-09-30T10:28:01.5818253Z ##[debug]matchOptions.nonegate: 'false'
2021-09-30T10:28:01.5819927Z ##[debug]matchOptions.flipNegate: 'false'
2021-09-30T10:28:01.5821468Z ##[debug]pattern: 'test_results.xml'
2021-09-30T10:28:01.5823096Z ##[debug]findPath: '/home/anonymuser/Az/CL_A01/_work/1/s/test_results.xml'
2021-09-30T10:28:01.5824998Z ##[debug]statOnly: 'true'
2021-09-30T10:28:01.5826257Z ##[debug]found 1 paths
2021-09-30T10:28:01.5827479Z ##[debug]applying include pattern
2021-09-30T10:28:01.5829127Z ##[debug]adjustedPattern: '/home/anonymuser/Az/CL_A01/_work/1/s/test_results.xml'
2021-09-30T10:28:01.5830546Z ##[debug]1 matches
2021-09-30T10:28:01.5831748Z ##[debug]1 final results
2021-09-30T10:28:01.5832997Z ##[debug]Detected 1 test result files
2021-09-30T10:28:01.5834449Z ##[debug]which 'dotnet'
2021-09-30T10:28:01.5859302Z ##[debug]not found
2021-09-30T10:28:01.5863614Z ##[debug]PublishTestResults.OverrideExeFlow=undefined
2021-09-30T10:28:01.5865082Z ##[debug]OS type: Linux
2021-09-30T10:28:15.4512951Z ##[debug]Object of TestLogStore created.
2021-09-30T10:28:15.4514771Z Result Attachments will be stored in LogStore
2021-09-30T10:28:15.4515722Z ##[debug]Object of TestResultsPublisher created.
2021-09-30T10:28:15.4784605Z ##[debug]Object of TestLogStore created.
2021-09-30T10:28:15.4785452Z Run Attachments will be stored in LogStore
2021-09-30T10:28:15.4786838Z ##[debug]Object of TestRunPublisher created.
2021-09-30T10:28:15.4789982Z ##[debug]Object of TestLogStore created.
2021-09-30T10:28:15.5075875Z ##[debug]Object of NUnitResultParser created.
2021-09-30T10:28:15.5084616Z ##[debug]Entering ParseTestResultFiles
2021-09-30T10:28:15.5088715Z ##[debug]runContext.ReleaseURI is null
2021-09-30T10:28:15.5089795Z ##[debug]runContext.ReleaseEnvironmentUri is null
2021-09-30T10:28:15.5114224Z ##[debug]Reading test results from file '/home/anonymuser/Az/CL_A01/_work/1/s/test_results.xml'.
2021-09-30T10:28:15.5409323Z ##[debug]Total test results: 110.
2021-09-30T10:28:15.5412983Z ##[debug]Leaving ParseTestResultFiles
2021-09-30T10:28:15.5444242Z ##[debug]Processed: ##vso[results.publish type=NUnit;mergeResults=false;platform=anonym-nlp;runTitle=iTests NLP.QueryData (queries);publishRunAttachments=true;resultFiles=/home/anonymuser/Az/CL_A01/_work/1/s/test_results.xml;failTaskOnFailedTests=true;testRunSystem=VSTS - PTR;]
2021-09-30T10:28:15.5446969Z ##[debug]runContext.ReleaseURI is null
2021-09-30T10:28:15.5448139Z ##[debug]task result: Succeeded
2021-09-30T10:28:15.5448237Z ##[debug]runContext.ReleaseEnvironmentUri is null
2021-09-30T10:28:15.5452586Z ##[debug]Processed: ##vso[task.complete result=Succeeded;]
2021-09-30T10:28:15.5454144Z ##[debug]Release.ReleaseUri=undefined
2021-09-30T10:28:15.5455602Z ##[debug]Release.ReleaseId=undefined
2021-09-30T10:28:15.5457038Z ##[debug]Build.BuildUri=vstfs:///Build/Build/7766
2021-09-30T10:28:15.5458716Z ##[debug]Build.Buildid=7766
2021-09-30T10:28:15.5488373Z ##[debug]Uploading build level attachements individually
2021-09-30T10:28:15.5515827Z ##[debug]Entering PublishToNewTestRunPerTestResultFileAsync
2021-09-30T10:28:15.5621821Z ##[debug]Entering CreateTestRunAsync
2021-09-30T10:28:15.5622753Z ##[debug]Leaving CreateTestRunAsync
2021-09-30T10:28:15.6041440Z ##[debug]Total build level attachments: 0.
2021-09-30T10:28:16.8087072Z ##[debug]Processed: ##vso[telemetry.publish area=TestExecution;feature=PublishTestResultsTask]{"builduri":"vstfs:///Build/Build/7766","buildid":"7766","osType":"Linux","testRunner":"NUnit","failTaskOnFailedTests":"true","mergeResultsUserPreference":"false","platform":"anonym-nlp","testResultsFilesCount":1,"dotnetVersion":"","subFeature":"publishTestResultsTaskConsolidatedCiEvent"}
2021-09-30T10:28:16.8134256Z ##[section]Async Command Start: Publish test results
2021-09-30T10:28:17.0743963Z ##[debug]Entering AddTestResultsAsync
2021-09-30T10:28:17.2936408Z Publishing test results to test run '1004286'.
2021-09-30T10:28:17.2981889Z TestResults To Publish 110, Test run id:1004286
2021-09-30T10:28:17.3039006Z Test results publishing 110, remaining: 0. Test run id: 1004286
2021-09-30T10:28:19.5504089Z ##[debug]Entering UploadTestRunStreamAsync
2021-09-30T10:28:20.5292516Z ##[debug]Blob name: Result-100003/GeneralAttachment/Standard_Console_Output.log .
2021-09-30T10:28:21.0152026Z ##[debug]Transfer Succeeds. stream -> Result-100003/GeneralAttachment/Standard_Console_Output.log.
2021-09-30T10:28:21.0435058Z ##[debug]File uploaded successsfully on LogStore Standard_Console_Output.log
2021-09-30T10:28:21.0458802Z ##[debug]Entering UploadTestRunStreamAsync
2021-09-30T10:28:21.0471010Z ##[debug]Blob name: Result-100009/GeneralAttachment/Standard_Console_Output.log .
2021-09-30T10:28:21.1066610Z ##[debug]Transfer Succeeds. stream -> Result-100009/GeneralAttachment/Standard_Console_Output.log.
2021-09-30T10:28:21.1281613Z ##[debug]File uploaded successsfully on LogStore Standard_Console_Output.log
2021-09-30T10:28:21.1282974Z ##[debug]Entering UploadTestRunStreamAsync
2021-09-30T10:28:21.1285821Z ##[debug]Blob name: Result-100010/GeneralAttachment/Standard_Console_Output.log .
2021-09-30T10:28:21.1771338Z ##[debug]Transfer Succeeds. stream -> Result-100010/GeneralAttachment/Standard_Console_Output.log.
2021-09-30T10:28:21.1969519Z ##[debug]File uploaded successsfully on LogStore Standard_Console_Output.log
2021-09-30T10:28:21.1975258Z ##[debug]Entering UploadTestRunStreamAsync
2021-09-30T10:28:21.1983934Z ##[debug]Blob name: Result-100036/GeneralAttachment/Standard_Console_Output.log .
2021-09-30T10:28:21.2557837Z ##[debug]Transfer Succeeds. stream -> Result-100036/GeneralAttachment/Standard_Console_Output.log.
2021-09-30T10:28:21.2760517Z ##[debug]File uploaded successsfully on LogStore Standard_Console_Output.log
2021-09-30T10:28:21.2764923Z ##[debug]Entering UploadTestRunStreamAsync
2021-09-30T10:28:21.2772676Z ##[debug]Blob name: Result-100039/GeneralAttachment/Standard_Console_Output.log .
2021-09-30T10:28:21.3280764Z ##[debug]Transfer Succeeds. stream -> Result-100039/GeneralAttachment/Standard_Console_Output.log.
2021-09-30T10:28:21.3479984Z ##[debug]File uploaded successsfully on LogStore Standard_Console_Output.log
2021-09-30T10:28:21.3483048Z ##[debug]Entering UploadTestRunStreamAsync
2021-09-30T10:28:21.3490702Z ##[debug]Blob name: Result-100053/GeneralAttachment/Standard_Console_Output.log .
2021-09-30T10:28:21.4034436Z ##[debug]Transfer Succeeds. stream -> Result-100053/GeneralAttachment/Standard_Console_Output.log.
2021-09-30T10:28:21.4231675Z ##[debug]File uploaded successsfully on LogStore Standard_Console_Output.log
2021-09-30T10:28:21.4234493Z ##[debug]Entering UploadTestRunStreamAsync
2021-09-30T10:28:21.4240654Z ##[debug]Blob name: Result-100070/GeneralAttachment/Standard_Console_Output.log .
2021-09-30T10:28:21.4772369Z ##[debug]Transfer Succeeds. stream -> Result-100070/GeneralAttachment/Standard_Console_Output.log.
2021-09-30T10:28:21.4974200Z ##[debug]File uploaded successsfully on LogStore Standard_Console_Output.log
2021-09-30T10:28:21.4976631Z ##[debug]Entering UploadTestRunStreamAsync
2021-09-30T10:28:21.4984040Z ##[debug]Blob name: Result-100091/GeneralAttachment/Standard_Console_Output.log .
2021-09-30T10:28:21.5515887Z ##[debug]Transfer Succeeds. stream -> Result-100091/GeneralAttachment/Standard_Console_Output.log.
2021-09-30T10:28:21.5714429Z ##[debug]File uploaded successsfully on LogStore Standard_Console_Output.log
2021-09-30T10:28:21.5787830Z ##[debug]Leaving AddTestResultsAsync
2021-09-30T10:28:21.5816772Z ##[debug]Entering UpdateTestRunAsync
2021-09-30T10:28:21.5817389Z ##[debug]Leaving UpdateTestRunAsync
2021-09-30T10:28:21.6647810Z ##[debug]Entering CreateTestRunAttachmentsAsync
2021-09-30T10:28:21.7159005Z ##[debug]Leaving CreateTestRunAttachmentsAsync
2021-09-30T10:28:21.7176514Z ##[debug]Uploading test run attachements individually
2021-09-30T10:28:21.7222542Z ##[debug]Entering UploadTestRunLogAsync
2021-09-30T10:28:21.7270722Z ##[debug]Blob name: GeneralAttachment/test_results.xml .
2021-09-30T10:28:21.8420246Z ##[debug]File uploaded successsfully on LogStore test_results.xml
2021-09-30T10:28:21.8458861Z Published Test Run : https://anonymized.visualstudio.com/anonym_Prototypes/_TestManagement/Runs?runId=1004286&_a=runCharts
2021-09-30T10:28:21.8472160Z ##[debug]Leaving PublishToNewTestRunPerTestResultFileAsync
2021-09-30T10:28:21.8828564Z ##[debug]RESOURCE_URIS:
2021-09-30T10:28:21.8862444Z ##[debug]Setting task variable METADATA_f6b99e5a-07a1-42b7-a5d9-be86805b7138: {"name":"19f262a1-d391-411a-a780-408a9f37b13b","resourceUris":[],"metadata":{"description":"","relatedUrls":[{"url":"https://dev.azure.com/anonymized/anonym_Prototypes/_build/results?buildId=7766","label":"pipeline-url"}],"humanReadableName":"Test Results from Publish Test Results utility","serializedPayload":"{\"testId\":\"PublishTestResults\",\"testTool\":\"NUnit\",\"testResultAttestation\":{\"total\":110,\"failed\":8,\"passed\":102,\"skipped\":0},\"testDurationSeconds\":0.0,\"testPassPercentage\":\"92.72727272727272\",\"relatedUrls\":[{\"url\":\"https://dev.azure.com/anonymized/anonym_Prototypes/_build/results?buildId=7766\",\"label\":\"pipeline-url\"}]}"}}
2021-09-30T10:28:24.9597391Z Flaky failed test results are opted out of pass percentage
2021-09-30T10:28:24.9612158Z ##[error]There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab.
2021-09-30T10:28:24.9872712Z ##[section]Async Command End: Publish test results
2021-09-30T10:28:24.9875153Z ##[section]Finishing: PublishTestResults
Adding also network activity for that last run:
root@ds-aipc-cl01-ln:/home/idsuser# sudo tcpdump -i lo -A
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 262144 bytes
11:31:39.530148 IP localhost.localdomain.47074 > localhost.domain: 20078+ [1au] A? etqtcmprodweu11.vstmrblob.vsassets.io. (66)
E..^..@.@.s{.......5...5.J..Nn...........etqtcmprodweu11 vstmrblob.vsassets.io.......)........
11:31:39.530193 IP localhost.localdomain.47074 > localhost.domain: 39555+ [1au] AAAA? etqtcmprodweu11.vstmrblob.vsassets.io. (66)
E..^..@.@.sz.......5...5.J...............etqtcmprodweu11 vstmrblob.vsassets.io.......)........
11:31:39.530542 IP localhost.localdomain.54678 > localhost.domain: 4062+ [1au] PTR? 53.0.0.127.in-addr.arpa. (52)
E..P..@.@.s........5...5.<...............53.0.0.127.in-addr.arpa.......)........
11:31:39.531206 IP localhost.domain > localhost.localdomain.54678: 4062 1/0/1 PTR localhost. (75)
E..gh:@.@......5.....5...S...............53.0.0.127.in-addr.arpa................. localhost...)........
11:31:39.643829 IP localhost.domain > localhost.localdomain.47074: 39555 3/0/1 CNAME vstmrblob-vsassets-io.b-0020.b-msedge.net., CNAME b-0020.b-msedge.net., AAAA 2620:1ec:a92::175 (163)
E...hN@.@......5.....5...................etqtcmprodweu11 vstmrblob.vsassets.io..............h.+.vstmrblob-vsassets-io.b-0020.b-msedge.net..C...........Y.Y..........& ..
..........u..)........
11:31:39.644029 IP localhost.domain > localhost.localdomain.47074: 20078 3/0/1 CNAME vstmrblob-vsassets-io.b-0020.b-msedge.net., CNAME b-0020.b-msedge.net., A 13.107.6.175 (151)
E...hO@.@......5.....5......Nn...........etqtcmprodweu11 vstmrblob.vsassets.io..............h.+.vstmrblob-vsassets-io.b-0020.b-msedge.net..C...........Y.Y...........k....)........
@petermicuch, thank you for providing these logs. But unfortunately, I don't see that this task failed due to the proxy configuration. You have mentioned that there is an exception for the agent machine to bypass proxy. Could you please share diagnostics logs for the task without proxy bypassing on the agent machine, since the current log doesn't give much information for an investigation?
@EzzhevNikita - you can ignore that test is failing or not. Important is the publish test results part, no matter if publishing of the failed or passed test. Here you have logs from the same client, but I asked our IT to remove exception from proxy for it. Exception seems a bit different than the one I posted very first time, but behavior is similar, except that instead of failing after 5 minutes, it now took 15 minutes to fail. So I guess the code was changed since I tried this the last time for this task. I tried with agent version 2.185.1 and later also with 2.192.0. Result is the same.
2021-10-04T09:24:25.1453211Z ##[debug]Evaluating condition for step: 'PublishTestResults'
2021-10-04T09:24:25.1456815Z ##[debug]Evaluating: SucceededNode()
2021-10-04T09:24:25.1458003Z ##[debug]Evaluating SucceededNode:
2021-10-04T09:24:25.1459909Z ##[debug]=> True
2021-10-04T09:24:25.1461022Z ##[debug]Result: True
2021-10-04T09:24:25.1462198Z ##[section]Starting: PublishTestResults
2021-10-04T09:24:25.1481004Z ##[debug]Extracting task PublishTestResults from /home/anonymuser/Az/CL_A01/_work/_taskzips/PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1_2.192.1.zip to /home/anonymuser/Az/CL_A01/_work/_tasks/PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1/2.192.1.
2021-10-04T09:24:25.4962745Z ==============================================================================
2021-10-04T09:24:25.4963599Z Task : Publish Test Results
2021-10-04T09:24:25.4964201Z Description : Publish test results to Azure Pipelines
2021-10-04T09:24:25.4964804Z Version : 2.192.1
2021-10-04T09:24:25.4965293Z Author : Microsoft Corporation
2021-10-04T09:24:25.4966175Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/test/publish-test-results
2021-10-04T09:24:25.4967042Z ==============================================================================
2021-10-04T09:24:25.5074413Z ##[debug]Using node path: /home/anonymuser/Az/CL_A01/externals/node10/bin/node
2021-10-04T09:24:25.7426211Z ##[debug]agent.TempDirectory=/home/anonymuser/Az/CL_A01/_work/_temp
2021-10-04T09:24:25.7476335Z ##[debug]loading inputs and endpoints
2021-10-04T09:24:25.7487172Z ##[debug]loading INPUT_TESTRUNNER
2021-10-04T09:24:25.7516283Z ##[debug]loading INPUT_TESTRESULTSFILES
2021-10-04T09:24:25.7519559Z ##[debug]loading INPUT_SEARCHFOLDER
2021-10-04T09:24:25.7522842Z ##[debug]loading INPUT_MERGETESTRESULTS
2021-10-04T09:24:25.7525343Z ##[debug]loading INPUT_FAILTASKONFAILEDTESTS
2021-10-04T09:24:25.7527969Z ##[debug]loading INPUT_TESTRUNTITLE
2021-10-04T09:24:25.7531940Z ##[debug]loading INPUT_PLATFORM
2021-10-04T09:24:25.7533792Z ##[debug]loading INPUT_PUBLISHRUNATTACHMENTS
2021-10-04T09:24:25.7536250Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2021-10-04T09:24:25.7539332Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2021-10-04T09:24:25.7542336Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2021-10-04T09:24:25.7551399Z ##[debug]loading SECRET_VSTS_PAT
2021-10-04T09:24:25.7554945Z ##[debug]loading SECRET_QUERY_BUNDLE_PRIVATE_KEY
2021-10-04T09:24:25.7556772Z ##[debug]loading SECRET_anonymCONTAINERREGISTRY_PWD
2021-10-04T09:24:25.7558895Z ##[debug]loading SECRET_AZURE_BLOB_USERNAME
2021-10-04T09:24:25.7563106Z ##[debug]loading SECRET_SHSDS_NPM_TOKEN
2021-10-04T09:24:25.7566008Z ##[debug]loading SECRET_AZURE_BLOB_PASSWORD
2021-10-04T09:24:25.7568616Z ##[debug]loading SECRET_AZURE_NPM_TOKEN
2021-10-04T09:24:25.7570647Z ##[debug]loading SECRET_SHUI_NPM_TOKEN
2021-10-04T09:24:25.7576292Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2021-10-04T09:24:25.7578095Z ##[debug]loaded 20
2021-10-04T09:24:25.7589463Z ##[debug]Agent.ProxyUrl=http://139.22.102.14:8888
2021-10-04T09:24:25.7593341Z ##[debug]Agent.ProxyUsername=undefined
2021-10-04T09:24:25.7594980Z ##[debug]Agent.ProxyPassword=undefined
2021-10-04T09:24:25.7597105Z ##[debug]Agent.ProxyBypassList=undefined
2021-10-04T09:24:25.7598805Z ##[debug]expose agent proxy configuration.
2021-10-04T09:24:25.7600414Z ##[debug]Agent.CAInfo=undefined
2021-10-04T09:24:25.7602561Z ##[debug]Agent.ClientCert=undefined
2021-10-04T09:24:25.7604176Z ##[debug]Agent.SkipCertValidation=undefined
2021-10-04T09:24:25.7771988Z ##[debug]check path : /home/anonymuser/Az/CL_A01/_work/_tasks/PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1/2.192.1/task.json
2021-10-04T09:24:25.7778716Z ##[debug]adding resource file: /home/anonymuser/Az/CL_A01/_work/_tasks/PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1/2.192.1/task.json
2021-10-04T09:24:25.7780644Z ##[debug]system.culture=en-US
2021-10-04T09:24:25.7816423Z ##[debug]testRunner=NUnit
2021-10-04T09:24:25.7820555Z ##[debug]testResultsFiles=test_results.xml
2021-10-04T09:24:25.7824979Z ##[debug]mergeTestResults=false
2021-10-04T09:24:25.7827365Z ##[debug]platform=anonym-nlp
2021-10-04T09:24:25.7828822Z ##[debug]configuration=undefined
2021-10-04T09:24:25.7830180Z ##[debug]testRunTitle=iTests NLP.QueryData (queries)
2021-10-04T09:24:25.7832818Z ##[debug]publishRunAttachments=true
2021-10-04T09:24:25.7834244Z ##[debug]failTaskOnFailedTests=true
2021-10-04T09:24:25.7835796Z ##[debug]searchFolder=/home/anonymuser/Az/CL_A01/_work/1/s
2021-10-04T09:24:25.7836895Z ##[debug]testRunner: NUnit
2021-10-04T09:24:25.7842224Z ##[debug]testResultsFiles: test_results.xml
2021-10-04T09:24:25.7843972Z ##[debug]mergeResults: false
2021-10-04T09:24:25.7845930Z ##[debug]platform: anonym-nlp
2021-10-04T09:24:25.7847432Z ##[debug]config: undefined
2021-10-04T09:24:25.7849307Z ##[debug]testRunTitle: iTests NLP.QueryData (queries)
2021-10-04T09:24:25.7850640Z ##[debug]publishRunAttachments: true
2021-10-04T09:24:25.7853727Z ##[debug]failTaskOnFailedTests: true
2021-10-04T09:24:25.7855803Z ##[debug]System.DefaultWorkingDirectory=/home/anonymuser/Az/CL_A01/_work/1/s
2021-10-04T09:24:25.7858267Z ##[debug]defaultRoot: '/home/anonymuser/Az/CL_A01/_work/1/s'
2021-10-04T09:24:25.7860381Z ##[debug]findOptions.allowBrokenSymbolicLinks: 'true'
2021-10-04T09:24:25.7864482Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
2021-10-04T09:24:25.7866713Z ##[debug]findOptions.followSymbolicLinks: 'true'
2021-10-04T09:24:25.7868456Z ##[debug]matchOptions.debug: 'false'
2021-10-04T09:24:25.7869714Z ##[debug]matchOptions.nobrace: 'true'
2021-10-04T09:24:25.7873357Z ##[debug]matchOptions.noglobstar: 'false'
2021-10-04T09:24:25.7875034Z ##[debug]matchOptions.dot: 'true'
2021-10-04T09:24:25.7876288Z ##[debug]matchOptions.noext: 'false'
2021-10-04T09:24:25.7877852Z ##[debug]matchOptions.nocase: 'false'
2021-10-04T09:24:25.7879093Z ##[debug]matchOptions.nonull: 'false'
2021-10-04T09:24:25.7880405Z ##[debug]matchOptions.matchBase: 'false'
2021-10-04T09:24:25.7883184Z ##[debug]matchOptions.nocomment: 'false'
2021-10-04T09:24:25.7884533Z ##[debug]matchOptions.nonegate: 'false'
2021-10-04T09:24:25.7885817Z ##[debug]matchOptions.flipNegate: 'false'
2021-10-04T09:24:25.7887076Z ##[debug]pattern: 'test_results.xml'
2021-10-04T09:24:25.7914156Z ##[debug]findPath: '/home/anonymuser/Az/CL_A01/_work/1/s/test_results.xml'
2021-10-04T09:24:25.7916389Z ##[debug]statOnly: 'true'
2021-10-04T09:24:25.7917397Z ##[debug]found 1 paths
2021-10-04T09:24:25.7918399Z ##[debug]applying include pattern
2021-10-04T09:24:25.7919818Z ##[debug]adjustedPattern: '/home/anonymuser/Az/CL_A01/_work/1/s/test_results.xml'
2021-10-04T09:24:25.7930449Z ##[debug]1 matches
2021-10-04T09:24:25.7934899Z ##[debug]1 final results
2021-10-04T09:24:25.7936336Z ##[debug]Detected 1 test result files
2021-10-04T09:24:25.7939518Z ##[debug]which 'dotnet'
2021-10-04T09:24:25.7955792Z ##[debug]not found
2021-10-04T09:24:25.7960036Z ##[debug]PublishTestResults.OverrideExeFlow=undefined
2021-10-04T09:24:25.7962274Z ##[debug]OS type: Linux
2021-10-04T09:24:33.5518858Z ##[debug]Object of TestLogStore created.
2021-10-04T09:24:33.5522561Z Result Attachments will be stored in LogStore
2021-10-04T09:24:33.5523741Z ##[debug]Object of TestResultsPublisher created.
2021-10-04T09:24:33.6056056Z ##[debug]Object of TestLogStore created.
2021-10-04T09:24:33.6057172Z Run Attachments will be stored in LogStore
2021-10-04T09:24:33.6058413Z ##[debug]Object of TestRunPublisher created.
2021-10-04T09:24:33.6062307Z ##[debug]Object of TestLogStore created.
2021-10-04T09:24:33.7196007Z ##[debug]Object of NUnitResultParser created.
2021-10-04T09:24:33.7212779Z ##[debug]Entering ParseTestResultFiles
2021-10-04T09:24:33.7218356Z ##[debug]runContext.ReleaseURI is null
2021-10-04T09:24:33.7219530Z ##[debug]runContext.ReleaseEnvironmentUri is null
2021-10-04T09:24:33.7260373Z ##[debug]Reading test results from file '/home/anonymuser/Az/CL_A01/_work/1/s/test_results.xml'.
2021-10-04T09:24:33.7793898Z ##[debug]Total test results: 110.
2021-10-04T09:24:33.7798352Z ##[debug]Leaving ParseTestResultFiles
2021-10-04T09:24:33.7843314Z ##[debug]runContext.ReleaseURI is null
2021-10-04T09:24:33.7844662Z ##[debug]Processed: ##vso[results.publish type=NUnit;mergeResults=false;platform=anonym-nlp;runTitle=iTests NLP.QueryData (queries);publishRunAttachments=true;resultFiles=/home/anonymuser/Az/CL_A01/_work/1/s/test_results.xml;failTaskOnFailedTests=true;testRunSystem=VSTS - PTR;]
2021-10-04T09:24:33.7845472Z ##[debug]runContext.ReleaseEnvironmentUri is null
2021-10-04T09:24:33.7848510Z ##[debug]task result: Succeeded
2021-10-04T09:24:33.7856509Z ##[debug]Processed: ##vso[task.complete result=Succeeded;]
2021-10-04T09:24:33.7858432Z ##[debug]Release.ReleaseUri=undefined
2021-10-04T09:24:33.7860157Z ##[debug]Release.ReleaseId=undefined
2021-10-04T09:24:33.7862494Z ##[debug]Build.BuildUri=vstfs:///Build/Build/7786
2021-10-04T09:24:33.7864220Z ##[debug]Build.Buildid=7786
2021-10-04T09:24:33.7909152Z ##[debug]Uploading build level attachements individually
2021-10-04T09:24:33.7937909Z ##[debug]Entering PublishToNewTestRunPerTestResultFileAsync
2021-10-04T09:24:33.8086896Z ##[debug]Entering CreateTestRunAsync
2021-10-04T09:24:33.8088188Z ##[debug]Leaving CreateTestRunAsync
2021-10-04T09:24:33.8578145Z ##[debug]Total build level attachments: 0.
2021-10-04T09:24:34.1874523Z ##[debug]Entering AddTestResultsAsync
2021-10-04T09:24:34.3049699Z Publishing test results to test run '1004296'.
2021-10-04T09:24:34.3117756Z TestResults To Publish 110, Test run id:1004296
2021-10-04T09:24:34.3201833Z Test results publishing 110, remaining: 0. Test run id: 1004296
2021-10-04T09:24:34.6722273Z ##[debug]Leaving AddTestResultsAsync
2021-10-04T09:24:34.6769675Z ##[debug]Entering UpdateTestRunAsync
2021-10-04T09:24:34.6772021Z ##[debug]Leaving UpdateTestRunAsync
2021-10-04T09:24:34.7605400Z ##[debug]Processed: ##vso[telemetry.publish area=TestExecution;feature=PublishTestResultsTask]{"builduri":"vstfs:///Build/Build/7786","buildid":"7786","osType":"Linux","testRunner":"NUnit","failTaskOnFailedTests":"true","mergeResultsUserPreference":"false","platform":"anonym-nlp","testResultsFilesCount":1,"dotnetVersion":"","subFeature":"publishTestResultsTaskConsolidatedCiEvent"}
2021-10-04T09:24:34.7690353Z ##[section]Async Command Start: Publish test results
2021-10-04T09:24:34.7693490Z ##[debug]Entering CreateTestRunAttachmentsAsync
2021-10-04T09:24:34.8127328Z ##[debug]Leaving CreateTestRunAttachmentsAsync
2021-10-04T09:24:34.8144195Z ##[debug]Uploading test run attachements individually
2021-10-04T09:24:34.8194976Z ##[debug]Entering UploadTestRunLogAsync
2021-10-04T09:24:35.0427710Z ##[debug]Blob name: GeneralAttachment/test_results.xml .
2021-10-04T09:39:09.7937794Z ##[warning]Failed to upload file test_results.xml to Blob Transfer exception with errorcode Unknown, exception message Microsoft.Azure.Storage.DataMovement.TransferException: The transfer failed.
---> Microsoft.Azure.Storage.StorageException: Network is unreachable
---> System.Net.Http.HttpRequestException: Network is unreachable
---> System.Net.Sockets.SocketException (101): Network is unreachable
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at Microsoft.Azure.Storage.Core.Executor.Executor.ExecuteAsync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext, CancellationToken token)
--- End of inner exception stack trace ---
at Microsoft.Azure.Storage.DataMovement.TransferControllers.BlockBlobWriter.HandleFetchAttributesResultAsync(Exception e)
at Microsoft.Azure.Storage.DataMovement.TransferControllers.BlockBlobWriter.FetchAttributesAsync()
at Microsoft.Azure.Storage.DataMovement.TransferControllers.BlockBlobWriter.DoWorkInternalAsync()
at Microsoft.Azure.Storage.DataMovement.TransferControllers.SyncTransferController.DoWorkInternalAsync()
at Microsoft.Azure.Storage.DataMovement.TransferControllers.TransferControllerBase.DoWorkAsync()
at Microsoft.Azure.Storage.DataMovement.TransferScheduler.ExecuteJobInternalAsync(TransferJob job, CancellationToken cancellationToken)
Request Information
RequestID:
RequestDate:
StatusMessage:
ErrorCode:
--- End of inner exception stack trace ---
at Microsoft.TeamFoundation.TestClient.PublishTestResults.TestLogStore._executeWithRetry(Func`1 action, Func`1 actionWithRename, Func`1 actionOnSasExpiry, Boolean allowDuplicate, Boolean allowRetryOnNetworkingError, TelemetryTracker telemetryTracker)
at Microsoft.TeamFoundation.TestClient.PublishTestResults.TestLogStore.UploadInternalAsync(Guid projectId, TestLogScope scope, Int32 buildId, Int32 runId, String logFileSourcePath, Stream stream, String fileName, TestLogType logType, Int32 testResultId, Int32 testSubResultId, Dictionary`2 metaData, TelemetryTracker telTracker, Boolean allowDuplicate, TestLogCompressionType logCompressionType, String originalFileContentType)
2021-10-04T09:39:09.8063377Z ##[debug]Failed to Upload on log store with error code TransferFailed
2021-10-04T09:39:09.8065132Z Failed to upload run logs to LogStore, Trying to upload to FileService
2021-10-04T09:39:10.5499582Z Failed to publish Telemetry Exception: Object reference not set to an instance of an object.
2021-10-04T09:39:13.0928578Z Published Test Run : https://anonym.visualstudio.com/anonym_Prototypes/_TestManagement/Runs?runId=1004296&_a=runCharts
2021-10-04T09:39:13.0944630Z ##[debug]Leaving PublishToNewTestRunPerTestResultFileAsync
2021-10-04T09:39:13.5884918Z ##[debug]RESOURCE_URIS:
2021-10-04T09:39:13.5933443Z ##[debug]Setting task variable METADATA_801ad287-a9d1-4de5-909e-77243e7405c6: {"name":"80ba4053-c4c0-4d73-bb23-a250b4437465","resourceUris":[],"metadata":{"description":"","relatedUrls":[{"url":"https://dev.azure.com/anonym/anonym_Prototypes/_build/results?buildId=7786","label":"pipeline-url"}],"humanReadableName":"Test Results from Publish Test Results utility","serializedPayload":"{\"testId\":\"PublishTestResults\",\"testTool\":\"NUnit\",\"testResultAttestation\":{\"total\":110,\"failed\":0,\"passed\":110,\"skipped\":0},\"testDurationSeconds\":0.0,\"testPassPercentage\":\"100\",\"relatedUrls\":[{\"url\":\"https://dev.azure.com/anonym/anonym_Prototypes/_build/results?buildId=7786\",\"label\":\"pipeline-url\"}]}"}}
2021-10-04T09:39:13.8608666Z ##[section]Async Command End: Publish test results
2021-10-04T09:39:13.8612080Z ##[section]Finishing: PublishTestResults
@petermicuch, thank you for providing detailed logs. I see from the logs that network connection is restricted for uploading process: "Failed to upload file test_results.xml ... StorageException: Network is unreachable". At the same time other operations from PublishTestResults task are fine. And there are no issues during using of exception for agent on proxy server. It looks like some service Microsoft URLs are blocked by proxy server. Just as example, blocking of URLs tcmproduks1.vstmr.visualstudio.com and vstmr.dev.azure.com can cause similar issue but with other error message. Please find full list of URLs and IPs used by Microsoft services below and make sure that they aren't blocked by proxy server. https://docs.microsoft.com/en-us/azure/devops/organizations/security/allow-list-ip-url https://docs.microsoft.com/en-us/visualstudio/install/install-and-use-visual-studio-behind-a-firewall-or-proxy-server
@EzzhevNikita I think we already do have all URLs in the whitelist, but I will ask to check again.
@EzzhevNikita guys checked proxy logs. There were no blocks noticed going out of this machine in the proxy.
@petermicuch, I can assure you that task PublishTaskResults works with proxy servers correctly. When exception for an agent is active, proxy isn't disabled for the agent. In this case traffic from the agent still goes through proxy server, but restriction rules declared on proxy server aren't used for this traffic. And I see in logs of successful attempt of task PublishTaskResults above that proxy used for task in this case, but rules from proxy server didn't block connections, so publish was successful. And I have question about exceptions granted on your proxy server. Is it allowing for ignoring of all rules declared by proxy server or declaring of some additional rules to allow some connections for the agent? If it's adding of additional rules then could you please share info about the rules to me? Maybe it can help in looking for root cause of the issue.
Error 101 presented in latest logs can be caused by restricted connection or network issues. At the same time we see that turning off all restrictions for the agent on proxy server fixes the issue. As additional ways to solve the issue I can suggest following:
@EzzhevNikita I understand what you are saying, but I also got info from our IT that observed logs of the proxy server and have not seen any blocked traffic for this proxy server. Could you maybe be a bit more specific about exact URL and ports that are used to publish that test_results.xml? That would help me to formulate more specific request to the IT on my side. Thank you in advance.
@EzzhevNikita just checked proxy logs and firewall logs. We can see, that during publishing of test results, all traffic is routed via proxy except of one URL: etqtcmprodweu11.vstmrblob.vsassets.io. This one never went over the proxy (we checked logs for last week) and we see in our firewall logs, that this is accessed directly. You can see in the picture below, that most of the traffic during publishing goes over our proxy http://139.22.102.14:8888 which is also seen as ##[debug]Agent.ProxyUrl=http://139.22.102.14:8888
in your diagnostic logs, but one request is not. 10.81.17.73
is the IP of the machine with the azure agent running the test:
So to simulate this on your side, you actually have to block all the traffic that does not go over the proxy and tries to access 443 directly bypassing the proxy. Then you should be able to reproduce this.
BTW - our proxy white lists also complete .vsassets.io
if that would be the question. Thanks.
I checked this issue, and found that 1 operation in task Publish Test Results doesn't use proxy for connection to MS services. And during investigation of root cause of issue I have found that this can be induced by interface from library Microsoft.VisualStudio.Services.Common. @SadagopanRajaram, I sent you details about the issue yesterday by email. Please take a look at this.
@upadhyayap can you look into this issue and help customer here.
Acknowledging the issue, We are trying to repro the issue at our end. Will share our findings here.
Hi @petermicuch , Apologies for delay in the resolution. Could you please provide access for the pipeline (triptijain@microsoft.com)
Hi @petermicuch , following up on the above request.
@triptijain2112 Any news about this? I'm having similar issue with pool with two on-prem agents where another one is able to publish test results but the other one is not. Both are using agent version 2.200.2. PublishTestResults -task gets stuck for 15 minutes. Both agents are using same proxy server.
@triptijain2112 sorry for very late response, I've been out of office for couple of months. Unfortunately that agent has been removed during my absence. But my colleague has agent that has the same issue. @marusinp could you please assist @triptijain2112 .
Hi @triptijain2112 unfortunately I'm unable to share the pipeline - corporate policy. However I also observed the issue w/ publishing the test results - currently the pipeline is stuck for a while while trying to upload logs to FileService since the LogStore upload failed. Sometimes FileService upload finishes successfully, sometimes not. I'll reach out via e-mail, maybe we could schedule a live session.
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
Can this issue be re-opened? I am seeing this issue with current release (3.220.2) of self-hosted Linux agent.
Have any fixes been proposed or released?
We are also seeing this issue. Has not been resolved from our side.
Yes, this was not fixed and no one contacted @marusinp further to investigate. Unfortunatelly there is no possibility for me to reopen this issue. @rasunkar could you please reopen this? It would be nice if this could be solved. There are obviously multiple people having the same problem.
@triptijain2112 Could you please reopen this bug? It was closed in error. I can confirm this issue is still present in 3.232.1.
Agent Version and Platform
2.185.1 (also tested with 2.181.0)
OS of the machine running the agent? Linux Ubuntu 18.04
Azure DevOps Type and Version
dev.azure.com (formerly visualstudio.com)
If dev.azure.com, what is your organization name? https://dev.azure.com/iii40
What's not working?
When running tests on selfhosted linux agent, tests are running fine, agent is online all the time, but the step to PublishTestResults fails. It hangs for a long time. We have proxy configured in our setup and agent was installed with
--proxyurl
option. Besides that alsoHTTP_PROXY
andHTTPS_PROXY
variables are set in the system correctly. However during publishing of test results, proxy settings are simply ignored and URLs are accessed directly.PublishTestResults output:
Communication captured on the agent:
Because of this I had to ask for temporal exception for our machine, so that I get direct internet access.
Agent and Worker's Diagnostic Logs
Agent_20210421-125145-utc.log:
Worker_20210421-125447-utc.log