Closed jessehouwing closed 9 months ago
it looks like moving complexity from Azure CLI to runner images, can this be addressed on Azure CLI (which I believe makes more sense)
Not sure how actually, they optimize for a different goal than you.
az
stuff to the user's profile by default.So the bits that redirect the caching folder should be in the runner image.
The installation of keyring, I completely agree should be in az devops
by default, but as long as they make it optional, the runner should trigger that option.
The Python warm-up thing, is something I feel they should just stick in the installer.
I've files issues with the az team, but it's been hard getting through to them.
For now, this is a 30 line fix. You could probably skip the az --help
calls, since python is already much faster on ubuntu and make it a 15 line fix. Not sure it'll ever be much smaller.
initially I thought that we would keep warm up for Windows no longer than it will be implemented on Azure CLI side.
Yeah, the calls to az --help
and az devops --help
should probably be the thing that can go if it is implemented in az
. But for now, extension installation doesn't trigger any code in the extension. And that might be a security feature, I haven't checked, but not immediately executing code downloaded from the webs is probably a good thing.
With regards to the perf on Windows, it's a shame that Python is a lot slower on Windows than it is on linux. The Windows image clearly has a lot more to gain. Then again... 13s... It's another 13s.
Closing as commented at https://github.com/actions/runner-images/pull/8441#issuecomment-1849075087
@mikhailkoliada if I remove the folder redirection? I think this should be possible on Linux. The behavior on windows would differ from linux thiugh, since windows does set all these environment variables.
Would it make sense to keep the cleanup routine? Cause now running the tests leaves telemetry and command history data from provisioning.
Description
See:
Platforms affected
Runner images affected
Image version and build link
Image: ubuntu-22.04 Version: 20230924.1.0 Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20230924.1/images/linux/Ubuntu2204-Readme.md Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20230924.1
Is it regression?
No
Expected behavior
No rebuild of the command cache when running
az
command for the first timeLogs should read:
No installation of keychain when running
az devops login
for the first timeLogs should read:
Actual behavior
Calling
az devops login
results in a command index rebuild:And installation of
keychain
:Repro steps
In Azure Pipelines run the following workflow: