Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REGRESSION]: PublishSymbolsV2 v2.246.1 task fails with "ScriptHalted" #20475

Open
4 of 7 tasks
chris-meuzelaar opened this issue Sep 26, 2024 · 23 comments
Open
4 of 7 tasks
Labels
Area: Artifacts bug regression This used to work, but a change in the service/tasks broke it. triage

Comments

@chris-meuzelaar
Copy link

New issue checklist

Task name

PublishSymbolsV2

Breaking task version

2.246.1

Last working task version

2.244.1

Regression Description

The task simply fails with ScriptHalted. The log (see below) implies that it was unable to find Newtonsoft.Json.dll. No changes to our pipelines were made.

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Windows Server 2019, Windows Server 2022

Relevant log output

2024-09-26T17:19:00.8280723Z ##[debug]Evaluating condition for step: 'Publish symbols path'
2024-09-26T17:19:00.8282018Z ##[debug]Evaluating: succeeded()
2024-09-26T17:19:00.8282251Z ##[debug]Evaluating succeeded:
2024-09-26T17:19:00.8282723Z ##[debug]=> True
2024-09-26T17:19:00.8283130Z ##[debug]Result: True
2024-09-26T17:19:00.8283531Z ##[section]Starting: Publish symbols path
2024-09-26T17:19:00.8295936Z ==============================================================================
2024-09-26T17:19:00.8296079Z Task         : Index sources and publish symbols
2024-09-26T17:19:00.8296171Z Description  : Index your source code and publish symbols to a file share or Azure Artifacts symbol server
2024-09-26T17:19:00.8296300Z Version      : 2.246.1
2024-09-26T17:19:00.8296363Z Author       : Microsoft Corporation
2024-09-26T17:19:00.8296455Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/index-sources-publish-symbols
2024-09-26T17:19:00.8296573Z ==============================================================================
2024-09-26T17:19:01.2825617Z ##[debug]Agent environment resources - Disk: D:\ Available 205356.06 MB out of 511983.00 MB, Memory: Used 3058.00 MB out of 8190.00 MB, CPU: Usage 65.00%
2024-09-26T17:19:02.4872346Z ##[debug]VstsTaskSdk 0.21.0 commit 9abb170036d3b4cc1781def2efa436d9b059104c
2024-09-26T17:19:02.7131550Z ##[debug]Entering D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\PublishSymbols.ps1.
2024-09-26T17:19:02.7240821Z ##[debug]Loading module from path 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\ps_modules\PowershellHelpers\PowershellHelpers.psm1'.
2024-09-26T17:19:02.7664658Z ##[debug]Loading resource strings from: D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\ps_modules\PowershellHelpers\module.json
2024-09-26T17:19:02.7878028Z ##[debug]Loaded 3 strings.
2024-09-26T17:19:02.7923910Z ##[debug]SYSTEM_CULTURE: 'en-US'
2024-09-26T17:19:02.7974276Z ##[debug]Loading resource strings from: D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\ps_modules\PowershellHelpers\Strings\resources.resjson\en-US\resources.resjson
2024-09-26T17:19:02.8174786Z ##[debug]Loaded 3 strings.
2024-09-26T17:19:02.8679455Z ##[debug]Exporting function 'Invoke-ActionWithRetries'.
2024-09-26T17:19:02.8705892Z ##[debug]Exporting function 'Get-TempDirectoryPath'.
2024-09-26T17:19:02.8733473Z ##[debug]Importing function 'Get-TempDirectoryPath'.
2024-09-26T17:19:02.8751504Z ##[debug]Importing function 'Invoke-ActionWithRetries'.
2024-09-26T17:19:02.8784601Z ##[debug]Loading resource strings from: D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\Task.json
2024-09-26T17:19:03.0076012Z ##[debug]Loaded 36 strings.
2024-09-26T17:19:03.0111374Z ##[debug]SYSTEM_CULTURE: 'en-US'
2024-09-26T17:19:03.0139795Z ##[debug]Loading resource strings from: D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\Strings\resources.resjson\en-US\resources.resjson
2024-09-26T17:19:03.0767906Z ##[debug]Loaded 36 strings.
2024-09-26T17:19:03.0802060Z ##[debug]Loading module from path 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\SymbolsCommon.psm1'.
2024-09-26T17:19:03.1326322Z ##[debug]Exporting function 'Get-PdbstrPath'.
2024-09-26T17:19:03.1349199Z ##[debug]Exporting function 'Get-DbghelpPath'.
2024-09-26T17:19:03.1372922Z ##[debug]Exporting function 'Get-SymStorePath'.
2024-09-26T17:19:03.1394103Z ##[debug]Importing function 'Get-DbghelpPath'.
2024-09-26T17:19:03.1409062Z ##[debug]Importing function 'Get-PdbstrPath'.
2024-09-26T17:19:03.1423875Z ##[debug]Importing function 'Get-SymStorePath'.
2024-09-26T17:19:03.1664947Z ##[debug]INPUT_SYMBOLSERVERTYPE: 'TeamServices'
2024-09-26T17:19:03.1693057Z ##[debug]INPUT_DETAILEDLOG: 'true'
2024-09-26T17:19:03.1729139Z ##[debug] Converted to bool: True
2024-09-26T17:19:03.1759253Z ##[debug]INPUT_SYMBOLEXPIRATIONINDAYS: '36530'
2024-09-26T17:19:03.1797118Z ##[debug] Converted to int: 36530
2024-09-26T17:19:03.1819982Z ##[debug]INPUT_INDEXSOURCES: 'true'
2024-09-26T17:19:03.1835634Z ##[debug] Converted to bool: True
2024-09-26T17:19:03.1855455Z ##[debug]INPUT_COMPRESSSYMBOLS: 'false'
2024-09-26T17:19:03.2298935Z ##[debug] Converted to bool: False
2024-09-26T17:19:03.2324896Z ##[debug]INPUT_TREATNOTINDEXEDASWARNING: 'false'
2024-09-26T17:19:03.2330381Z ##[debug] Converted to bool: False
2024-09-26T17:19:03.2389099Z ##[debug]BUILD_SOURCESDIRECTORY: 'D:\build\256\s'
2024-09-26T17:19:03.2421187Z ##[debug]INPUT_SYMBOLSFOLDER: 'D:\build\256\s'
2024-09-26T17:19:03.2442563Z ##[debug]INPUT_SEARCHPATTERN: '**\bin\**\*.pdb'
2024-09-26T17:19:03.2752793Z ##[debug]Entering Find-VstsMatch.
2024-09-26T17:19:03.2865921Z ##[debug]DefaultRoot: 'D:\build\256\s'
2024-09-26T17:19:03.2995265Z ##[debug]FindOptions.FollowSpecifiedSymbolicLink: 'True'
2024-09-26T17:19:03.3022700Z ##[debug]FindOptions.FollowSymbolicLinks: 'True'
2024-09-26T17:19:03.3131134Z ##[debug]MatchOptions.Dot: 'True'
2024-09-26T17:19:03.3160849Z ##[debug]MatchOptions.FlipNegate: 'False'
2024-09-26T17:19:03.3190958Z ##[debug]MatchOptions.MatchBase: 'False'
2024-09-26T17:19:03.3223850Z ##[debug]MatchOptions.NoBrace: 'True'
2024-09-26T17:19:03.3255106Z ##[debug]MatchOptions.NoCase: 'True'
2024-09-26T17:19:03.3285748Z ##[debug]MatchOptions.NoComment: 'False'
2024-09-26T17:19:03.3314423Z ##[debug]MatchOptions.NoExt: 'False'
2024-09-26T17:19:03.3342791Z ##[debug]MatchOptions.NoGlobStar: 'False'
2024-09-26T17:19:03.3372494Z ##[debug]MatchOptions.NoNegate: 'False'
2024-09-26T17:19:03.3399818Z ##[debug]MatchOptions.NoNull: 'False'
2024-09-26T17:19:03.4151503Z ##[debug]Pattern: '**\bin\**\*.pdb'
2024-09-26T17:19:03.5110679Z ##[debug]FindPath: 'D:\build\256\s'
2024-09-26T17:19:03.5140548Z ##[debug]StatOnly: 'False'
2024-09-26T17:19:05.4297955Z ##[debug]Found 5681 paths.
2024-09-26T17:19:05.4316188Z ##[debug]Applying include pattern.
2024-09-26T17:19:05.4345794Z ##[debug]AdjustedPattern: 'D:\build\256\s\**\bin\**\*.pdb'
2024-09-26T17:19:05.7160547Z ##[debug]101 matches
2024-09-26T17:19:05.7256615Z ##[debug]101 final results
2024-09-26T17:19:05.7285224Z ##[debug]Leaving Find-VstsMatch.
2024-09-26T17:19:05.7693191Z Found 101 files.
2024-09-26T17:19:05.7754578Z ##[debug]Loading module from path 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\IndexHelpers\IndexHelpers.psm1'.
2024-09-26T17:19:05.8811829Z ##[debug]Adding dbghelp native wrappers.
2024-09-26T17:19:06.2813084Z ##[debug]Agent environment resources - Disk: D:\ Available 205356.06 MB out of 511983.00 MB, Memory: Used 2976.00 MB out of 8190.00 MB, CPU: Usage 65.00%
2024-09-26T17:19:07.0233531Z ##[debug]Exporting function 'Invoke-IndexSources'.
2024-09-26T17:19:07.0253254Z ##[debug]Importing function 'Invoke-IndexSources'.
2024-09-26T17:19:07.0613129Z ##[debug]Entering Invoke-IndexSources.
2024-09-26T17:19:07.0664377Z ##[debug] TreatNotIndexedAsWarning: 'False'
2024-09-26T17:19:07.0873655Z ##[debug]Asserting leaf path exists: 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\pdbstr.exe'
2024-09-26T17:19:07.1047322Z ##[debug]Entering Add-DbghelpLibrary.
2024-09-26T17:19:07.1078768Z ##[debug]Asserting leaf path exists: 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\dbghelp.dll'
2024-09-26T17:19:07.1393357Z ##[debug]Entering Invoke-LoadLibrary.
2024-09-26T17:19:07.1409167Z ##[debug] LiteralPath: 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\dbghelp.dll'
2024-09-26T17:19:07.2242104Z ##[debug]Leaving Invoke-LoadLibrary.
2024-09-26T17:19:07.2299418Z ##[debug]Leaving Add-DbghelpLibrary.
2024-09-26T17:19:07.2397847Z ##[debug]Entering Get-SourceProvider.
2024-09-26T17:19:07.2448895Z ##[debug]BUILD_REPOSITORY_PROVIDER: 'TfsVersionControl'
2024-09-26T17:19:07.2471917Z ##[debug]BUILD_SOURCESDIRECTORY: 'D:\build\256\s'
2024-09-26T17:19:07.2519103Z ##[debug]SYSTEM_TEAMPROJECTID: '5fc254ed-6d6f-4958-9a75-eff0bd910d0c'
2024-09-26T17:19:07.2630056Z ##[debug]Entering Get-VstsTfsService.
2024-09-26T17:19:07.2649069Z ##[debug] TypeName: 'Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer'
2024-09-26T17:19:07.2706766Z ##[debug]SYSTEM_TEAMFOUNDATIONCOLLECTIONURI: 'https://dev.azure.com/tfsmadison/'
2024-09-26T17:19:07.2765599Z ##[debug]Entering Get-TfsClientCredentials.
2024-09-26T17:19:07.2782119Z ##[debug] OMDirectory: ''
2024-09-26T17:19:07.2880563Z ##[debug]ENDPOINT_URL_SystemVssConnection: 'https://dev.azure.com/tfsmadison/'
2024-09-26T17:19:07.2903662Z ##[debug]ENDPOINT_AUTH_SystemVssConnection: '********'
2024-09-26T17:19:07.2925608Z ##[debug]ENDPOINT_DATA_SystemVssConnection (empty)
2024-09-26T17:19:07.2977084Z ##[debug]Testing file path: 'Newtonsoft.Json.dll'
2024-09-26T17:19:07.2992899Z ##[debug]Not found. Rethrowing exception.
2024-09-26T17:19:07.3231485Z ##[debug]Leaving Get-TfsClientCredentials.
2024-09-26T17:19:07.3349534Z ##[debug]Leaving Get-VstsTfsService.
2024-09-26T17:19:07.3373451Z ##[debug]Leaving Get-SourceProvider.
2024-09-26T17:19:07.3404984Z ##[debug]Entering Remove-DbghelpLibrary.
2024-09-26T17:19:07.3428583Z ##[debug] HModule: '140735568543744'
2024-09-26T17:19:07.3497924Z ##[debug]Leaving Remove-DbghelpLibrary.
2024-09-26T17:19:07.3516113Z ##[debug]Leaving Invoke-IndexSources.
2024-09-26T17:19:07.3538092Z ##[debug]Leaving D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\PublishSymbols.ps1.
2024-09-26T17:19:07.3696211Z ##[debug]Caught exception from task script.
2024-09-26T17:19:07.3724527Z ##[debug]Error record:
2024-09-26T17:19:07.5500995Z ##[debug]Get-VstsTfsService : ScriptHalted
2024-09-26T17:19:07.5512854Z ##[debug]At D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\IndexHelpers\SourceProviderFunctions.ps1:22 char:37
2024-09-26T17:19:07.5523340Z ##[debug]+ ... rolServer = Get-VstsTfsService -TypeName 'Microsoft.TeamFoundation.Ve ...
2024-09-26T17:19:07.5534190Z ##[debug]+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-09-26T17:19:07.5544852Z ##[debug]    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
2024-09-26T17:19:07.5555145Z ##[debug]    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-VstsTfsService
2024-09-26T17:19:07.5566095Z ##[debug] 
2024-09-26T17:19:07.5584170Z ##[debug]Script stack trace:
2024-09-26T17:19:07.5621718Z ##[debug]at Get-TfsService, D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\ps_modules\VstsTaskSdk\ServerOMFunctions.ps1: line 252
2024-09-26T17:19:07.5634532Z ##[debug]at Get-SourceProvider, D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\IndexHelpers\SourceProviderFunctions.ps1: line 22
2024-09-26T17:19:07.5644457Z ##[debug]at Invoke-IndexSources, D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\IndexHelpers\IndexFunctions.ps1: line 34
2024-09-26T17:19:07.5654677Z ##[debug]at <ScriptBlock>, D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\PublishSymbols.ps1: line 144
2024-09-26T17:19:07.5664932Z ##[debug]at <ScriptBlock>, <No file>: line 1
2024-09-26T17:19:07.5675240Z ##[debug]at <ScriptBlock>, <No file>: line 22
2024-09-26T17:19:07.5685418Z ##[debug]at <ScriptBlock>, <No file>: line 18
2024-09-26T17:19:07.5695601Z ##[debug]at <ScriptBlock>, <No file>: line 1
2024-09-26T17:19:07.5714260Z ##[debug]Exception:
2024-09-26T17:19:07.5754326Z ##[debug]Microsoft.PowerShell.Commands.WriteErrorException: ScriptHalted
2024-09-26T17:19:07.6027962Z ##[error]ScriptHalted
2024-09-26T17:19:07.6028895Z ##[debug]Processed: ##vso[task.logissue type=error;source=TaskInternal;correlationId=d841dedf-e380-44a9-b158-7685e1b962da]ScriptHalted
2024-09-26T17:19:07.6034924Z ##[debug]Processed: ##vso[task.complete result=Failed]
2024-09-26T17:19:07.6434197Z ##[section]Finishing: Publish symbols path

Full task logs with system.debug enabled

UNSUCCESSFUL RUN
2024-09-26T17:19:00.8280723Z ##[debug]Evaluating condition for step: 'Publish symbols path'
2024-09-26T17:19:00.8282018Z ##[debug]Evaluating: succeeded()
2024-09-26T17:19:00.8282251Z ##[debug]Evaluating succeeded:
2024-09-26T17:19:00.8282723Z ##[debug]=> True
2024-09-26T17:19:00.8283130Z ##[debug]Result: True
2024-09-26T17:19:00.8283531Z ##[section]Starting: Publish symbols path
2024-09-26T17:19:00.8295936Z ==============================================================================
2024-09-26T17:19:00.8296079Z Task         : Index sources and publish symbols
2024-09-26T17:19:00.8296171Z Description  : Index your source code and publish symbols to a file share or Azure Artifacts symbol server
2024-09-26T17:19:00.8296300Z Version      : 2.246.1
2024-09-26T17:19:00.8296363Z Author       : Microsoft Corporation
2024-09-26T17:19:00.8296455Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/index-sources-publish-symbols
2024-09-26T17:19:00.8296573Z ==============================================================================
2024-09-26T17:19:01.2825617Z ##[debug]Agent environment resources - Disk: D:\ Available 205356.06 MB out of 511983.00 MB, Memory: Used 3058.00 MB out of 8190.00 MB, CPU: Usage 65.00%
2024-09-26T17:19:02.4872346Z ##[debug]VstsTaskSdk 0.21.0 commit 9abb170036d3b4cc1781def2efa436d9b059104c
2024-09-26T17:19:02.7131550Z ##[debug]Entering D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\PublishSymbols.ps1.
2024-09-26T17:19:02.7240821Z ##[debug]Loading module from path 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\ps_modules\PowershellHelpers\PowershellHelpers.psm1'.
2024-09-26T17:19:02.7664658Z ##[debug]Loading resource strings from: D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\ps_modules\PowershellHelpers\module.json
2024-09-26T17:19:02.7878028Z ##[debug]Loaded 3 strings.
2024-09-26T17:19:02.7923910Z ##[debug]SYSTEM_CULTURE: 'en-US'
2024-09-26T17:19:02.7974276Z ##[debug]Loading resource strings from: D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\ps_modules\PowershellHelpers\Strings\resources.resjson\en-US\resources.resjson
2024-09-26T17:19:02.8174786Z ##[debug]Loaded 3 strings.
2024-09-26T17:19:02.8679455Z ##[debug]Exporting function 'Invoke-ActionWithRetries'.
2024-09-26T17:19:02.8705892Z ##[debug]Exporting function 'Get-TempDirectoryPath'.
2024-09-26T17:19:02.8733473Z ##[debug]Importing function 'Get-TempDirectoryPath'.
2024-09-26T17:19:02.8751504Z ##[debug]Importing function 'Invoke-ActionWithRetries'.
2024-09-26T17:19:02.8784601Z ##[debug]Loading resource strings from: D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\Task.json
2024-09-26T17:19:03.0076012Z ##[debug]Loaded 36 strings.
2024-09-26T17:19:03.0111374Z ##[debug]SYSTEM_CULTURE: 'en-US'
2024-09-26T17:19:03.0139795Z ##[debug]Loading resource strings from: D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\Strings\resources.resjson\en-US\resources.resjson
2024-09-26T17:19:03.0767906Z ##[debug]Loaded 36 strings.
2024-09-26T17:19:03.0802060Z ##[debug]Loading module from path 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\SymbolsCommon.psm1'.
2024-09-26T17:19:03.1326322Z ##[debug]Exporting function 'Get-PdbstrPath'.
2024-09-26T17:19:03.1349199Z ##[debug]Exporting function 'Get-DbghelpPath'.
2024-09-26T17:19:03.1372922Z ##[debug]Exporting function 'Get-SymStorePath'.
2024-09-26T17:19:03.1394103Z ##[debug]Importing function 'Get-DbghelpPath'.
2024-09-26T17:19:03.1409062Z ##[debug]Importing function 'Get-PdbstrPath'.
2024-09-26T17:19:03.1423875Z ##[debug]Importing function 'Get-SymStorePath'.
2024-09-26T17:19:03.1664947Z ##[debug]INPUT_SYMBOLSERVERTYPE: 'TeamServices'
2024-09-26T17:19:03.1693057Z ##[debug]INPUT_DETAILEDLOG: 'true'
2024-09-26T17:19:03.1729139Z ##[debug] Converted to bool: True
2024-09-26T17:19:03.1759253Z ##[debug]INPUT_SYMBOLEXPIRATIONINDAYS: '36530'
2024-09-26T17:19:03.1797118Z ##[debug] Converted to int: 36530
2024-09-26T17:19:03.1819982Z ##[debug]INPUT_INDEXSOURCES: 'true'
2024-09-26T17:19:03.1835634Z ##[debug] Converted to bool: True
2024-09-26T17:19:03.1855455Z ##[debug]INPUT_COMPRESSSYMBOLS: 'false'
2024-09-26T17:19:03.2298935Z ##[debug] Converted to bool: False
2024-09-26T17:19:03.2324896Z ##[debug]INPUT_TREATNOTINDEXEDASWARNING: 'false'
2024-09-26T17:19:03.2330381Z ##[debug] Converted to bool: False
2024-09-26T17:19:03.2389099Z ##[debug]BUILD_SOURCESDIRECTORY: 'D:\build\256\s'
2024-09-26T17:19:03.2421187Z ##[debug]INPUT_SYMBOLSFOLDER: 'D:\build\256\s'
2024-09-26T17:19:03.2442563Z ##[debug]INPUT_SEARCHPATTERN: '**\bin\**\*.pdb'
2024-09-26T17:19:03.2752793Z ##[debug]Entering Find-VstsMatch.
2024-09-26T17:19:03.2865921Z ##[debug]DefaultRoot: 'D:\build\256\s'
2024-09-26T17:19:03.2995265Z ##[debug]FindOptions.FollowSpecifiedSymbolicLink: 'True'
2024-09-26T17:19:03.3022700Z ##[debug]FindOptions.FollowSymbolicLinks: 'True'
2024-09-26T17:19:03.3131134Z ##[debug]MatchOptions.Dot: 'True'
2024-09-26T17:19:03.3160849Z ##[debug]MatchOptions.FlipNegate: 'False'
2024-09-26T17:19:03.3190958Z ##[debug]MatchOptions.MatchBase: 'False'
2024-09-26T17:19:03.3223850Z ##[debug]MatchOptions.NoBrace: 'True'
2024-09-26T17:19:03.3255106Z ##[debug]MatchOptions.NoCase: 'True'
2024-09-26T17:19:03.3285748Z ##[debug]MatchOptions.NoComment: 'False'
2024-09-26T17:19:03.3314423Z ##[debug]MatchOptions.NoExt: 'False'
2024-09-26T17:19:03.3342791Z ##[debug]MatchOptions.NoGlobStar: 'False'
2024-09-26T17:19:03.3372494Z ##[debug]MatchOptions.NoNegate: 'False'
2024-09-26T17:19:03.3399818Z ##[debug]MatchOptions.NoNull: 'False'
2024-09-26T17:19:03.4151503Z ##[debug]Pattern: '**\bin\**\*.pdb'
2024-09-26T17:19:03.5110679Z ##[debug]FindPath: 'D:\build\256\s'
2024-09-26T17:19:03.5140548Z ##[debug]StatOnly: 'False'
2024-09-26T17:19:05.4297955Z ##[debug]Found 5681 paths.
2024-09-26T17:19:05.4316188Z ##[debug]Applying include pattern.
2024-09-26T17:19:05.4345794Z ##[debug]AdjustedPattern: 'D:\build\256\s\**\bin\**\*.pdb'
2024-09-26T17:19:05.7160547Z ##[debug]101 matches
2024-09-26T17:19:05.7256615Z ##[debug]101 final results
2024-09-26T17:19:05.7285224Z ##[debug]Leaving Find-VstsMatch.
2024-09-26T17:19:05.7693191Z Found 101 files.
2024-09-26T17:19:05.7754578Z ##[debug]Loading module from path 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\IndexHelpers\IndexHelpers.psm1'.
2024-09-26T17:19:05.8811829Z ##[debug]Adding dbghelp native wrappers.
2024-09-26T17:19:06.2813084Z ##[debug]Agent environment resources - Disk: D:\ Available 205356.06 MB out of 511983.00 MB, Memory: Used 2976.00 MB out of 8190.00 MB, CPU: Usage 65.00%
2024-09-26T17:19:07.0233531Z ##[debug]Exporting function 'Invoke-IndexSources'.
2024-09-26T17:19:07.0253254Z ##[debug]Importing function 'Invoke-IndexSources'.
2024-09-26T17:19:07.0613129Z ##[debug]Entering Invoke-IndexSources.
2024-09-26T17:19:07.0664377Z ##[debug] TreatNotIndexedAsWarning: 'False'
2024-09-26T17:19:07.0873655Z ##[debug]Asserting leaf path exists: 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\pdbstr.exe'
2024-09-26T17:19:07.1047322Z ##[debug]Entering Add-DbghelpLibrary.
2024-09-26T17:19:07.1078768Z ##[debug]Asserting leaf path exists: 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\dbghelp.dll'
2024-09-26T17:19:07.1393357Z ##[debug]Entering Invoke-LoadLibrary.
2024-09-26T17:19:07.1409167Z ##[debug] LiteralPath: 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\dbghelp.dll'
2024-09-26T17:19:07.2242104Z ##[debug]Leaving Invoke-LoadLibrary.
2024-09-26T17:19:07.2299418Z ##[debug]Leaving Add-DbghelpLibrary.
2024-09-26T17:19:07.2397847Z ##[debug]Entering Get-SourceProvider.
2024-09-26T17:19:07.2448895Z ##[debug]BUILD_REPOSITORY_PROVIDER: 'TfsVersionControl'
2024-09-26T17:19:07.2471917Z ##[debug]BUILD_SOURCESDIRECTORY: 'D:\build\256\s'
2024-09-26T17:19:07.2519103Z ##[debug]SYSTEM_TEAMPROJECTID: '5fc254ed-6d6f-4958-9a75-eff0bd910d0c'
2024-09-26T17:19:07.2630056Z ##[debug]Entering Get-VstsTfsService.
2024-09-26T17:19:07.2649069Z ##[debug] TypeName: 'Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer'
2024-09-26T17:19:07.2706766Z ##[debug]SYSTEM_TEAMFOUNDATIONCOLLECTIONURI: 'https://dev.azure.com/tfsmadison/'
2024-09-26T17:19:07.2765599Z ##[debug]Entering Get-TfsClientCredentials.
2024-09-26T17:19:07.2782119Z ##[debug] OMDirectory: ''
2024-09-26T17:19:07.2880563Z ##[debug]ENDPOINT_URL_SystemVssConnection: 'https://dev.azure.com/tfsmadison/'
2024-09-26T17:19:07.2903662Z ##[debug]ENDPOINT_AUTH_SystemVssConnection: '********'
2024-09-26T17:19:07.2925608Z ##[debug]ENDPOINT_DATA_SystemVssConnection (empty)
2024-09-26T17:19:07.2977084Z ##[debug]Testing file path: 'Newtonsoft.Json.dll'
2024-09-26T17:19:07.2992899Z ##[debug]Not found. Rethrowing exception.
2024-09-26T17:19:07.3231485Z ##[debug]Leaving Get-TfsClientCredentials.
2024-09-26T17:19:07.3349534Z ##[debug]Leaving Get-VstsTfsService.
2024-09-26T17:19:07.3373451Z ##[debug]Leaving Get-SourceProvider.
2024-09-26T17:19:07.3404984Z ##[debug]Entering Remove-DbghelpLibrary.
2024-09-26T17:19:07.3428583Z ##[debug] HModule: '140735568543744'
2024-09-26T17:19:07.3497924Z ##[debug]Leaving Remove-DbghelpLibrary.
2024-09-26T17:19:07.3516113Z ##[debug]Leaving Invoke-IndexSources.
2024-09-26T17:19:07.3538092Z ##[debug]Leaving D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\PublishSymbols.ps1.
2024-09-26T17:19:07.3696211Z ##[debug]Caught exception from task script.
2024-09-26T17:19:07.3724527Z ##[debug]Error record:
2024-09-26T17:19:07.5500995Z ##[debug]Get-VstsTfsService : ScriptHalted
2024-09-26T17:19:07.5512854Z ##[debug]At D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\IndexHelpers\SourceProviderFunctions.ps1:22 char:37
2024-09-26T17:19:07.5523340Z ##[debug]+ ... rolServer = Get-VstsTfsService -TypeName 'Microsoft.TeamFoundation.Ve ...
2024-09-26T17:19:07.5534190Z ##[debug]+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-09-26T17:19:07.5544852Z ##[debug]    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
2024-09-26T17:19:07.5555145Z ##[debug]    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-VstsTfsService
2024-09-26T17:19:07.5566095Z ##[debug] 
2024-09-26T17:19:07.5584170Z ##[debug]Script stack trace:
2024-09-26T17:19:07.5621718Z ##[debug]at Get-TfsService, D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\ps_modules\VstsTaskSdk\ServerOMFunctions.ps1: line 252
2024-09-26T17:19:07.5634532Z ##[debug]at Get-SourceProvider, D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\IndexHelpers\SourceProviderFunctions.ps1: line 22
2024-09-26T17:19:07.5644457Z ##[debug]at Invoke-IndexSources, D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\IndexHelpers\IndexFunctions.ps1: line 34
2024-09-26T17:19:07.5654677Z ##[debug]at , D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\PublishSymbols.ps1: line 144
2024-09-26T17:19:07.5664932Z ##[debug]at , : line 1
2024-09-26T17:19:07.5675240Z ##[debug]at , : line 22
2024-09-26T17:19:07.5685418Z ##[debug]at , : line 18
2024-09-26T17:19:07.5695601Z ##[debug]at , : line 1
2024-09-26T17:19:07.5714260Z ##[debug]Exception:
2024-09-26T17:19:07.5754326Z ##[debug]Microsoft.PowerShell.Commands.WriteErrorException: ScriptHalted
2024-09-26T17:19:07.6027962Z ##[error]ScriptHalted
2024-09-26T17:19:07.6028895Z ##[debug]Processed: ##vso[task.logissue type=error;source=TaskInternal;correlationId=d841dedf-e380-44a9-b158-7685e1b962da]ScriptHalted
2024-09-26T17:19:07.6034924Z ##[debug]Processed: ##vso[task.complete result=Failed]
2024-09-26T17:19:07.6434197Z ##[section]Finishing: Publish symbols path
SUCCESSFUL RUN
Not available at this time

Repro steps

variables:
- name: BuildParameters.solution
  value: '**\*.sln'
trigger:
  paths:
    include:
    - $/Audit Manager/Trunk
name: 1.9.0$(rev:.r)
resources:
  repositories:
  - repository: self
    type: git
    ref: $/Audit Manager/Trunk
jobs:
- job: Phase_1
  displayName: Build and test code
  timeoutInMinutes: 30
  cancelTimeoutInMinutes: 1
  pool:
    name: Default
  steps:
  - checkout: self
    clean: true
  - task: NuGetToolInstaller@1
    displayName: 'Use NuGet '
  - task: NuGetAuthenticate@1
    displayName: NuGet Authenticate
  - task: NuGetCommand@2
    displayName: NuGet restore
    inputs:
      solution: $(BuildParameters.solution)
      selectOrConfig: config
      feedRestore: 41ef47c7-a6d6-487a-b7a2-5b3744abf97a
      nugetConfigPath: $(build.sourcesDirectory)/nuget.config
  - task: VSBuild@1
    displayName: Build solution **\*.sln
    inputs:
      msbuildArgs: /p:VersionPrefix=$(Build.BuildNumber)
      platform: $(BuildPlatform)
      configuration: $(BuildConfiguration)
      maximumCpuCount: true
  - task: PublishSymbols@2
    displayName: Publish symbols path
    continueOnError: True
    inputs:
      SearchPattern: '**\bin\**\*.pdb'
      SymbolServerType: TeamServices
@chris-meuzelaar chris-meuzelaar added bug regression This used to work, but a change in the service/tasks broke it. labels Sep 26, 2024
@ocitrev
Copy link

ocitrev commented Sep 26, 2024

I am also hitting this issue with our build pipeline.
Is there a way to revert to version 2.244.1 to mitigate this issue ?

@RWTechLabs
Copy link

Hi,
Have same issue with same setting/setup with first post. Kindly help to fix.

Thank You in advance.

@v-schhabra
Copy link
Contributor

I am also hitting this issue with our build pipeline. Is there a way to revert to version 2.244.1 to mitigate this issue ?

Hi @ocitrev
You can specify the task version in yaml pipeline

@ocitrev
Copy link

ocitrev commented Sep 27, 2024

This is a TFVC build pipeline. I can't find a way to edit the YAML text itself.
The editor is only letting me choose from version 1.* or version 2.*

image

@gh-bk-eng
Copy link

gh-bk-eng commented Sep 27, 2024

This is a TFVC build pipeline. I can't find a way to edit the YAML text itself. The editor is only letting me choose from version 1.* or version 2.*

image

Our TFVC projects are having this issue as well. To edit the YAML directly the classic pipeline must be migrated to a YAML pipeline as specified here:
https://learn.microsoft.com/en-us/azure/devops/pipelines/release/from-classic-pipelines?view=azure-devops

Unfortunately it seems that projects must first be migrated from TFVC to git in order to use the newer YAML pipelines. Here is a developer community thread I found on the subject:
https://developercommunity.visualstudio.com/t/enable-yaml-for-tfvc-1/419818

------------------

Edit: We have found a temporary fix by simply changing the publish symbols task version from 2.* to 1.*

@rishu73
Copy link

rishu73 commented Sep 27, 2024

Our TFVC through ADO pipelines are also failing this way. Started about 48 hours ago (last two daily builds, plus all manual runs). Working around it by marking the task "Warn if failed" and "Continue on error".

@Th3C0d3M0nk3y
Copy link

We are experiencing the same error. Given our luck with having any of these errors with build tasks fixed in a timely manner (which is to say whoever "maintains" them clearly does not pay attention or care when they break lots of production builds) I do not assume it will be fixed anytime soon.

Surprise me...please.

@Th3C0d3M0nk3y
Copy link

@Deekshitha981 Can your openssl change be rolled back so the task works? ;-)

@v-schhabra
Copy link
Contributor

v-schhabra commented Sep 30, 2024

Hi @Th3C0d3M0nk3y
Deekshitha did openssl changes in 2.246.2 version of the task but you are having issues with 2.246.1 version.
This issue occurred due to some other changes.

@v-schhabra
Copy link
Contributor

@carl-tanner Could you or your team please check the issue?

@chris-meuzelaar
Copy link
Author

More information: v2.246.1 appears to work if you are not indexing sources. My YAML pipelines for GitHub-based code run just fine without any errors or specifying a downgraded version.

@manish2225
Copy link

I'm encountering the same issue with our TFVC build pipeline. I'm unable to edit the YAML file directly. The editor only provides the option to select between version 1.* or version 2., but I can't find a way to modify the YAML text itself manually.
after the selection of version 1.
it works for me.
image

@ocitrev
Copy link

ocitrev commented Oct 1, 2024

I was able to manually downgrade to 2.244.1 by copying the 2.244.1 files into the 2.246.1 folder on the build agent machine.

@Zain-Basit
Copy link

Anyone able to find any other work arounds? I was unable to find a way to downgrade specifically to 2.244.1 outside of what @ocitrev suggested above. Downgrading to 1.* is causing our pipelines to have other issues, so that isn't a viable workaround for us.

@chris-meuzelaar
Copy link
Author

Anyone able to find any other work arounds? I was unable to find a way to downgrade specifically to 2.244.1 outside of what @ocitrev suggested above. Downgrading to 1.* is causing our pipelines to have other issues, so that isn't a viable workaround for us.

Disabling indexing sources avoids the issue for us. Not the ideal solution, but it does publish the symbol files that way.

@bstewartSBR
Copy link

I'm having this problem as well. Currently can use the build pipeline output despite the warning, but would like to see the build succeed rather than finish with alerts.

@ocitrev
Copy link

ocitrev commented Oct 2, 2024

v2.246.3 fails with the same issue.

@Zain-Basit
Copy link

Failed for me as well

@RWTechLabs
Copy link

RWTechLabs commented Oct 2, 2024

Hi All,
Is work for my case to disable the "Index Sources" & enable "Publish Symbol with Symbol Server in this organization/collection (requires Azure Artifacts)".

image

Thank You

Regards,
Way Loon

@dpolikoff
Copy link

Same issue. Please fix and stop breaking things we depend upon to run our business.

@viralpandya
Copy link
Contributor

viralpandya commented Oct 3, 2024

Sorry for the inconvenience. Task is reverted with version pointing to 2.246.3 -> 2.244.1 and 2.246.1 -> 2.244.1. Issue is fixed and it should rollout soon

@bstewartSBR
Copy link

Confirming I can run builds now without issue. Thank you @viralpandya

@Zain-Basit
Copy link

Thank you @viralpandya

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Artifacts bug regression This used to work, but a change in the service/tasks broke it. triage
Projects
None yet
Development

No branches or pull requests