-
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
Implement az-cli warmup on ubuntu #11173
Conversation
03a8b0d
to
d7aef1b
Compare
d7aef1b
to
10f8ea2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for your contribution @lanni-energinet .
We are merging this PR based on our internal test results.
This change breaks |
|
||
# AZURE_CONFIG_DIR shell variable defines where the CLI configuration file for managing behavior are stored | ||
# https://learn.microsoft.com/en-us/cli/azure/azure-cli-configuration#cli-configuration-file | ||
# This path SHOULD be different from the installation directory /opt/az/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The configuration directory of Azure CLI on an agent is /home/runner/.azure
.
You may see this using this action:
name: Run Azure Login
on:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-24.04
steps:
- uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- run: az account get-access-token --debug
The debug log shows:
DEBUG: cli.azure.cli.core.auth.persistence: build_persistence: location='/home/runner/.azure/service_principal_entries.json', encrypt=False
|
This reverts commit ffe7e6a.
Thanks for quickly reverting the PR - the goal was to make the ship sail faster, not sink it. As @jiasli points out there's probably even more actions that assumes @subir0071 @kishorekumar-anchala @jiasli If you could lend you knowledge in any way to fix the original issue it would be much appreciated |
This statement is not 100% true. As I pointed out in #11173 (comment), the configuration directory of Azure CLI on an agent is As for why |
@jiasli Calling Here is the context After investigating and looking through https://github.com/Azure/azure-cli and https://github.com/microsoft/knack it looks like the issue is related to the generation of commandIndex.json or close by. As I've only been able to reproduce this on the first command invocation. But only on github runners, never my local machine Edit: attached log example 42secs.log Try running this workflow - it will show how inconsistent it is
|
Description
This PR fixes #10110.
Related issue:
#10110
Check list