ARM Action incident - 18 June, 2021 #69
Unanswered
bishal-pdMSFT
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ARM Action RCA - 18 June, 2021
This document captures the RCA of the issue and how we plan to improve based on that.
Issue
Around 1 June 2021, the ARM deploy action started failing a major chunk of customers with error
The process 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd' failed because one or more lines were written to the STDERR stream
. This error meant that action was not able to do ARM deployment.This issue started after the Hosted runner image was updated with the latest version of Az CLI (2.24.1), and hence impacted customers who were using hosted runners. This impacted ~500 unique repos. It would also have impacted users with self hosted runners if they updated to the latest Az CLI version.
Impact was a drastic reduction in the success rate of the action runs (down from ~75% to ~25%).
Cause for this failure
ARM deploy action depends on Az CLI to invoke deployments (and validations) to ARM. Az cli's new version (2.24.1) had a bug where it is outputting an empty string in stderr stream. Once this version of Az cli was updated in hosted runners, the ARM deploy action started failing as the action fails if stderr contains any data.
Timeline
main
branch. Few customers reported that their workflow has started workingmain
branchv1
release (the official release) and published to marketplace on 18 JuneMitigation
The Action relies on core lib’s functionality to fail the execution if any data is written to stderr by a child process (az cli being the child process here). To fix this, a change was made to not depend on core lib to detect stderr failure, but rather look for any data being pushed to stderr listener and if any data is present and it is not empty, only then fail the action.
Fix (Repair Items)
Short term plan
Medium- Long term plan
Beta Was this translation helpful? Give feedback.
All reactions