Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions scripts/regression_test/extension_regression_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
- bash: |
- task: AzureCLI@2
displayName: 'checkout branch'
inputs:
connectedServiceNameARM: $(azure-cli-live-test-msft-connected-service)
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
set -ev
pwd
git clone https://github.com/Azure/azure-cli-extensions.git
Expand All @@ -34,7 +40,6 @@ jobs:
git remote add azclibot https://azclibot:${GITHUB_TOKEN}@github.com/azclibot/azure-cli-extensions.git
git checkout -b regression_test_$(Build.BuildId)
git push --set-upstream azclibot regression_test_$(Build.BuildId)
displayName: 'checkout branch'

- job: CLIExtensionRegressionTest
displayName: CLI Extension Regression Test
Expand Down Expand Up @@ -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.
- bash: |
- task: AzureCLI@2
displayName: 'checkout cli and extension repo'
inputs:
connectedServiceNameARM: $(azure-cli-live-test-msft-connected-service)
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
set -ev
pwd
if [[ -n "$(CUSTOM_CLI_REPO)" && -n "$(CUSTOM_CLI_BRANCH)" ]]; then
Expand All @@ -94,7 +105,6 @@ jobs:

git fetch azclibot
git checkout -b regression_test_$(Build.BuildId) azclibot/regression_test_$(Build.BuildId)
displayName: 'checkout cli and extension repo'
- template: ../../.azure-pipelines/templates/azdev_setup.yml
parameters:
CLIExtensionRepoPath: ./azure-cli-extensions
Expand Down Expand Up @@ -153,7 +163,13 @@ jobs:
pool:
name: ${{ variables.ubuntu_pool }}
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.
inputs:
connectedServiceNameARM: $(azure-cli-live-test-msft-connected-service)
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
set -ev

# git config
Expand Down Expand Up @@ -195,4 +211,3 @@ jobs:

sleep 5
done
displayName: 'Result Summary'
26 changes: 21 additions & 5 deletions scripts/regression_test/regression_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
- bash: |
- task: AzureCLI@2
displayName: 'update version'
inputs:
connectedServiceNameARM: $(azure-cli-live-test-msft-connected-service)
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
set -ev

# git config
Expand Down Expand Up @@ -53,7 +59,6 @@ jobs:
git add .
git commit -m "update version"
git push --set-upstream azclibot regression_test_$(Build.BuildId)
displayName: 'update version'

- job: RerunTests
displayName: CLI Regression tests
Expand Down Expand Up @@ -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.
- bash: |
- task: AzureCLI@2
displayName: 'Checkout Target Branch'
inputs:
connectedServiceNameARM: $(azure-cli-live-test-msft-connected-service)
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
set -ev
# git config
if [[ -n "$(CUSTOM_REPO)" && -n "$(CUSTOM_BRANCH)" && -n "$(CUSTOM_GITHUB_TOKEN)" ]]; then
Expand All @@ -104,7 +115,6 @@ jobs:
git fetch ${GITHUB_REPO} ${GITHUB_BRANCH}

git checkout -b ${GITHUB_BRANCH} ${GITHUB_REPO}/${GITHUB_BRANCH}
displayName: 'Checkout Target Branch'
- template: ../../.azure-pipelines/templates/azdev_setup.yml
- task: AzureCLI@2
displayName: 'Rerun tests'
Expand Down Expand Up @@ -137,7 +147,13 @@ jobs:
pool:
name: ${{ variables.ubuntu_pool }}
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.
inputs:
connectedServiceNameARM: $(azure-cli-live-test-msft-connected-service)
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
set -ev
# git config
if [[ -n "$(CUSTOM_REPO)" && -n "$(CUSTOM_BRANCH)" && -n "$(CUSTOM_GITHUB_TOKEN)" ]]; then
Expand Down
Loading