Open trevors20 opened 3 months ago
I'm attaching the azurepowershell_error.txt logs as a file to this comment.
This is happening 80% of the time. For the 20% of the time, it does work. I'm uploading an example of logging when the task does actually work to this comment. azurepowershell_working.txt
Please help. Thanks muchly!
We have decided to pin to an old version of AzurePowerShell@5 until this is fixed or figured out. That works great.
Hi @trevors20 Thanks for reporting this issue. We are investigating on it.
It'd heavily impacted our VS builds across pipelines before we pinned to the old version as a workaround to unblock folks.
You can get all the failed build IDs from below query if comment out the last line (| summarize) if that helps:
Go to Log Analytics and run query
let _start = datetime('2024-07-12T00:00:00Z'); let _end = datetime('2024-07-17T00:00:00Z'); customEvents | extend BuildDefinitionId = tostring(customDimensions.BuildDefinitionId) | extend BuildDefinitionName = tostring(customDimensions.BuildDefinitionName) | extend BuildId = tostring(customDimensions.BuildId) |where timestamp between(_start .. _end) | where customDimensions.RecordName == "Layout BuildArtifacts" and customDimensions.Message contains "PowerShell exited with code '57005'" | distinct BuildDefinitionId, BuildDefinitionName, BuildId | summarize FailedCount = count() by BuildDefinitionId, BuildDefinitionName
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
BuildDefinitionId | BuildDefinitionName | FailedCount -- | -- | -- 10310 | DD-CB-PR | 41 10289 | DD-CB-TestSignVS | 13 11051 | DD-CB-EUCU-TestSignVS | 1
New issue checklist
Task name
AzurePowerShell
Task version
5.242.1
Issue Description
We are seeing a lot of Exit 57005 build breaks when using AzurePowerShell@5. It looks like from the logs there is a StackOverflowException exception that is happening. Was wondering if you might be able to help debug and fix this and/or help diagnose why this might be happening and provide a workaround or anything like that. Much appreciated.
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows 2022
Relevant log output
Full task logs with system.debug enabled
Repro steps