-
Notifications
You must be signed in to change notification settings - Fork 396
Closed
Labels
product enhancementNew feature or requestNew feature or request
Description
We are facing issues with azure/login being slow
Duration is from ~13 seconds to ~1½ minutes, we are using large runners (ubuntu-latest)
One of the most consistent findings is the command which takes about 11s
/usr/bin/az --version
let output: string = "";
const execOptions: any = {
listeners: {
stdout: (data: Buffer) => {
output += data.toString();
}
}
};
await this.executeAzCliCommand(["--version"], true, execOptions);
core.debug(`Azure CLI version used:\n${output}`);
We have been unable to reproduce the error outside of our existing workflows. but even considering that - it seems a bit redundant to execute a command and then disregard the output based on loglevel
Would it make sense to wrap the quoted code in a conditional block based on core.isDebug()
Details below
Usage in workflow:
- name: Az CLI login
uses: azure/login@v2
with:
client-id: ${{ inputs.azure_spn_id }}
tenant-id: ${{ inputs.azure_tenant_id }}
subscription-id: ${{ inputs.azure_subscription_id }}
Output from our log (With debug enabled)
2024-05-22T08:31:07.0288811Z ##[group]Run azure/login@v2
2024-05-22T08:31:07.0289280Z with:
... snip ...
2024-05-22T08:31:07.0293203Z env:
... snip ...
2024-05-22T08:31:07.0299672Z ##[endgroup]
2024-05-22T08:31:07.0688122Z ::add-mask::***
2024-05-22T08:31:07.0698936Z Running Azure CLI Login.
2024-05-22T08:31:07.0721267Z ##[debug]Azure CLI path: /usr/bin/az
2024-05-22T08:31:18.4592979Z ##[debug]Azure CLI version used:
2024-05-22T08:31:18.4593850Z ##[debug]azure-cli 2.60.0 *
... snip ...
2024-05-22T08:31:18.4608366Z ##[debug]
2024-05-22T08:31:18.4611258Z [command]/usr/bin/az cloud set -n azurecloud
2024-05-22T08:31:49.5759670Z Done setting cloud: "azurecloud"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
product enhancementNew feature or requestNew feature or request