Skip to content

{CI} Fix cli login issue for regression test pipeline#31940

Merged
evelyn-ys merged 1 commit intoAzure:devfrom
evelyn-ys:fix_regression_test_pipeline_auth
Aug 13, 2025
Merged

{CI} Fix cli login issue for regression test pipeline#31940
evelyn-ys merged 1 commit intoAzure:devfrom
evelyn-ys:fix_regression_test_pipeline_auth

Conversation

@evelyn-ys
Copy link
Copy Markdown
Member

@evelyn-ys evelyn-ys commented Aug 13, 2025

Related command

Description

In #31760, some CLI tasks were mistakenly updated to simple bash tasks. Actually there's az keyvault secret show within the bash script to fetch github token which needs CLI environment. This PR will fix the issue

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


This checklist is used to make sure that common guidelines for a pull request are followed.

Copilot AI review requested due to automatic review settings August 13, 2025 04:59
@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Aug 13, 2025

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.9
️✔️acs
️✔️latest
️✔️3.12
️✔️3.9
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.9
️✔️ams
️✔️latest
️✔️3.12
️✔️3.9
️✔️apim
️✔️latest
️✔️3.12
️✔️3.9
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.9
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.9
️✔️aro
️✔️latest
️✔️3.12
️✔️3.9
️✔️backup
️✔️latest
️✔️3.12
️✔️3.9
️✔️batch
️✔️latest
️✔️3.12
️✔️3.9
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.9
️✔️billing
️✔️latest
️✔️3.12
️✔️3.9
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.9
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.9
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.9
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.9
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.9
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.9
️✔️config
️✔️latest
️✔️3.12
️✔️3.9
️✔️configure
️✔️latest
️✔️3.12
️✔️3.9
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.9
️✔️container
️✔️latest
️✔️3.12
️✔️3.9
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.9
️✔️core
️✔️latest
️✔️3.12
️✔️3.9
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.9
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.9
️✔️dls
️✔️latest
️✔️3.12
️✔️3.9
️✔️dms
️✔️latest
️✔️3.12
️✔️3.9
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.9
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.9
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.9
️✔️find
️✔️latest
️✔️3.12
️✔️3.9
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.9
️✔️identity
️✔️latest
️✔️3.12
️✔️3.9
️✔️iot
️✔️latest
️✔️3.12
️✔️3.9
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.9
️✔️lab
️✔️latest
️✔️3.12
️✔️3.9
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.9
️✔️maps
️✔️latest
️✔️3.12
️✔️3.9
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.9
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.9
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.9
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.9
️✔️network
️✔️latest
️✔️3.12
️✔️3.9
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.9
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.9
️✔️profile
️✔️latest
️✔️3.12
️✔️3.9
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.9
️✔️redis
️✔️latest
️✔️3.12
️✔️3.9
️✔️relay
️✔️latest
️✔️3.12
️✔️3.9
️✔️resource
️✔️latest
️✔️3.12
️✔️3.9
️✔️role
️✔️latest
️✔️3.12
️✔️3.9
️✔️search
️✔️latest
️✔️3.12
️✔️3.9
️✔️security
️✔️latest
️✔️3.12
️✔️3.9
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.9
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.9
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.9
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.9
️✔️sql
️✔️latest
️✔️3.12
️✔️3.9
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.9
️✔️storage
️✔️latest
️✔️3.12
️✔️3.9
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.9
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.9
️✔️util
️✔️latest
️✔️3.12
️✔️3.9
️✔️vm
️✔️latest
️✔️3.12
️✔️3.9

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Aug 13, 2025

️✔️AzureCLI-BreakingChangeTest
️✔️Non Breaking Changes

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Aug 13, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link
Copy Markdown

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes CLI login issues in Azure DevOps regression test pipelines by converting bash tasks to AzureCLI@2 tasks. The issue arose from a previous PR that mistakenly converted CLI tasks to simple bash tasks, breaking authentication for commands that require Azure CLI context like az keyvault secret show.

  • Converts bash tasks to AzureCLI@2 tasks to provide proper Azure CLI authentication context
  • Maintains the same script logic while ensuring CLI commands can execute with proper credentials
  • Fixes authentication issues that were preventing GitHub token retrieval from Azure Key Vault

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
scripts/regression_test/regression_test.yml Converts three bash tasks to AzureCLI@2 tasks for proper CLI authentication
scripts/regression_test/extension_regression_test.yml Converts four bash tasks to AzureCLI@2 tasks for proper CLI authentication

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@@ -22,7 +22,13 @@ jobs:
inputs:
versionSpec: '3.12'
displayName: "Use Python 3.12"
Copy link

Copilot AI Aug 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The displayName is moved inside the task inputs section but should be at the task level. Move 'displayName: 'update version'' to be a direct property of the task, not under inputs.

Suggested change
displayName: "Use Python 3.12"
displayName: "Use Python 3.12"
inputs:
versionSpec: '3.12'

Copilot uses AI. Check for mistakes.
@@ -86,7 +91,13 @@ jobs:
inputs:
versionSpec: '3.12'
displayName: "Use Python 3.12"
Copy link

Copilot AI Aug 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The displayName is moved inside the task inputs section but should be at the task level. Move 'displayName: 'Checkout Target Branch'' to be a direct property of the task, not under inputs.

Suggested change
displayName: "Use Python 3.12"
displayName: "Use Python 3.12"
inputs:
versionSpec: '3.12'

Copilot uses AI. Check for mistakes.
steps:
- bash: |
- task: AzureCLI@2
displayName: 'Create PR'
Copy link

Copilot AI Aug 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The displayName is moved inside the task inputs section but should be at the task level. Move 'displayName: 'Create PR'' to be a direct property of the task, not under inputs.

Copilot uses AI. Check for mistakes.
@@ -21,7 +21,13 @@ jobs:
inputs:
versionSpec: '3.12'
displayName: "Use Python 3.12"
Copy link

Copilot AI Aug 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The displayName is moved inside the task inputs section but should be at the task level. Move 'displayName: 'checkout branch'' to be a direct property of the task, not under inputs.

Suggested change
displayName: "Use Python 3.12"
displayName: "Use Python 3.12"
inputs:
versionSpec: '3.12'

Copilot uses AI. Check for mistakes.
@@ -74,7 +79,13 @@ jobs:
inputs:
versionSpec: '3.12'
displayName: "Use Python 3.12"
Copy link

Copilot AI Aug 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The displayName is moved inside the task inputs section but should be at the task level. Move 'displayName: 'checkout cli and extension repo'' to be a direct property of the task, not under inputs.

Suggested change
displayName: "Use Python 3.12"
displayName: "Use Python 3.12"
inputs:
versionSpec: '3.12'

Copilot uses AI. Check for mistakes.
steps:
- bash: |
- task: AzureCLI@2
displayName: 'Result Summary'
Copy link

Copilot AI Aug 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The displayName is moved inside the task inputs section but should be at the task level. Move 'displayName: 'Result Summary'' to be a direct property of the task, not under inputs.

Copilot uses AI. Check for mistakes.
@evelyn-ys evelyn-ys merged commit fd1355c into Azure:dev Aug 13, 2025
56 checks passed
@evelyn-ys evelyn-ys assigned evelyn-ys and unassigned wangzelin007 Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot CI CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants