-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Unexpected change in image ubuntu-22.04 20240126.1.0 breaking CI #9259
Comments
Hello @Arlodotexe! |
My organization is also seeing this failure behavior in Azure DevOps, specifically on jobs using the Notably, other jobs use the same variable but run using the Adding a step to manually downgrade to Powershell 7.2.x (using the steps in #9115) on jobs using |
@erik-bershel Looks like your hunch was correct. I was able to reproduce the issue locally on Windows (7.4.0) and a similar issue on Linux (7.4.1). Since Windows still ships inbox with PowerShell 5.1, we need to maintain compatibility across both and have opted to just remove the quotes which are being escaped in newer versions of PowerShell. We'll pass this on to the PowerShell team. Since there's nothing for the runner team to do here, I'll close this for now. Thanks! |
As a WA for @areifert and @Arlodotexe cases also could be used PS7.4 with the "PSWindowsNativeCommandArgPassing = Legacy" option enabled. See doc here:https://learn.microsoft.com/en-us/powershell/scripting/learn/experimental-features?view=powershell-7.4 |
This is a much better workaround than manually downgrading Powershell, thanks for the suggestion. |
Description
The runner image in our CI is being updated to 20240126.1.0, and has introduced an unexpected change in behavior from the previous version 20240122.3.0.
Quotes are being included and escaped where they weren't before, with no changes except for the runner image being updated.
The code which generates the command being run is found here, and does not behave consistently between these two runner images.
Platforms affected
Runner images affected
Image version and build link
Failing under runner image 20240126.1.0: https://github.com/CommunityToolkit/Windows/actions/runs/7716374360/job/21033016594
No failure under runner image 20240122.3.0: https://github.com/CommunityToolkit/Windows/actions/runs/7716461243/job/21033317974?pr=328
Is it regression?
Yes
Expected behavior
Consistent behavior between runner images
Actual behavior
With the new runner images, quotes are being included and escaped where they weren't before.
Repro steps
Should be reproducible by invoking a PowerShell command built similar to this:
The text was updated successfully, but these errors were encountered: