Skip to content

{Pipeline} Live test BAMI#31614

Merged
wangzelin007 merged 73 commits intodevfrom
live-test
Jun 18, 2025
Merged

{Pipeline} Live test BAMI#31614
wangzelin007 merged 73 commits intodevfrom
live-test

Conversation

@Jing-song
Copy link
Copy Markdown
Contributor

Related command

Description

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.

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

azure-client-tools-bot-prd bot commented Jun 9, 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 Jun 9, 2025

❌AzureCLI-BreakingChangeTest
❌appconfig
rule cmd_name rule_message suggest_message
1007 - ParaRemove appconfig kv delete cmd appconfig kv delete removed parameter tags please add back parameter tags for cmd appconfig kv delete
1007 - ParaRemove appconfig kv export cmd appconfig kv export removed parameter dest_tags please add back parameter dest_tags for cmd appconfig kv export
1007 - ParaRemove appconfig kv export cmd appconfig kv export removed parameter tags please add back parameter tags for cmd appconfig kv export
1007 - ParaRemove appconfig kv import cmd appconfig kv import removed parameter src_tags please add back parameter src_tags for cmd appconfig kv import
1007 - ParaRemove appconfig kv import cmd appconfig kv import removed parameter tags please add back parameter tags for cmd appconfig kv import
1007 - ParaRemove appconfig kv list cmd appconfig kv list removed parameter tags please add back parameter tags for cmd appconfig kv list
1007 - ParaRemove appconfig kv restore cmd appconfig kv restore removed parameter tags please add back parameter tags for cmd appconfig kv restore
1007 - ParaRemove appconfig revision list cmd appconfig revision list removed parameter tags please add back parameter tags for cmd appconfig revision list

Please submit your Breaking Change Pre-announcement ASAP if you haven't already. Please note:

  • Breaking changes can only be merged during the designated breaking change window
  • A pre-announcement must be released at least one month in advance

For more details on how to introduce breaking changes, refer to the documentation: azure-cli/doc/how_to_introduce_breaking_changes.md

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Jun 9, 2025

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

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 9, 2025

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>

@Jing-song Jing-song changed the title Live test BAMI {Pipeline} Live test BAMI Jun 18, 2025
@Jing-song Jing-song marked this pull request as ready for review June 18, 2025 07:23
Copilot AI review requested due to automatic review settings June 18, 2025 07:23
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 refactors the live test pipeline scripts to use token-based authentication, parameterizes key settings (storage account, static web URL, branches), and updates the Azure Pipelines YAML to accept parameters and streamline test execution.

  • Swapped hardcoded storage/Kusto credentials for DefaultAzureCredential and new ACCOUNT_NAME/IDENTITY_CLIENT_ID env vars in Python scripts
  • Simplified generate_index.py by removing blob list parsing, introducing STATIC_WEB_URL, and consolidating uploads to $web
  • Converted CLITest.yml to parameterized pipeline with userTarget, pythonVersion, parallelism, staticWebUrl, and updated task inputs/timeouts

Reviewed Changes

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

File Description
scripts/live_test/sendemail.py Replaced AAD app key auth with token provider, added ACCOUNT_NAME & IDENTITY_CLIENT_ID env vars
scripts/live_test/generate_index.py Removed manual blob list parsing, added STATIC_WEB_URL, refactored generate and render
scripts/live_test/clean.py Invokes clean_resource_group earlier, added print statements for keyvault and resource groups
scripts/live_test/CLITest.yml Introduced pipeline parameters, updated job timeouts/parallelism, and AzureCLI task inputs
Comments suppressed due to low confidence (2)

scripts/live_test/sendemail.py:43

  • The IDENTITY_CLIENT_ID variable is declared but not used anywhere in this file. Consider removing it or integrating it into the authentication flow.
IDENTITY_CLIENT_ID = os.environ.get('IDENTITY_CLIENT_ID')

scripts/live_test/generate_index.py:16

  • The module uses os.environ but os is not imported. Add import os at the top to avoid a NameError at runtime.
STATIC_WEB_URL = os.environ.get('STATIC_WEB_URL')



def generate(container, container_url, testdata, USER_REPO, USER_BRANCH, COMMIT_ID, USER_LIVE, USER_TARGET, ACCOUNT_KEY, USER_REPO_EXT, USER_BRANCH_EXT):
def generate(ACCOUNT_NAME, container, testdata, USER_REPO, USER_BRANCH, COMMIT_ID, USER_LIVE, USER_REPO_EXT, USER_BRANCH_EXT):
Copy link

Copilot AI Jun 18, 2025

Choose a reason for hiding this comment

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

Function parameter ACCOUNT_NAME is uppercase, but according to coding guidelines parameters should use snake_case. Consider renaming it to account_name.

Copilot uses AI. Check for mistakes.
<td>{}</td>
</tr>
""".format(module, passed, failed, rate, reports)
""".format('<a href="{}">{}</a> '.format(STATIC_WEB_URL+module+'.report.html', module),
Copy link

Copilot AI Jun 18, 2025

Choose a reason for hiding this comment

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

Operators + should be surrounded by spaces for readability. Change STATIC_WEB_URL+module+'.report.html' to STATIC_WEB_URL + module + '.report.html'.

Copilot uses AI. Check for mistakes.
@wangzelin007 wangzelin007 merged commit 6524617 into dev Jun 18, 2025
94 checks passed
@wangzelin007 wangzelin007 deleted the live-test branch June 18, 2025 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants