Skip to content

{CognitiveService} Fix block issues for release tasks#32411

Closed
kairu-ms wants to merge 1 commit intodevfrom
fix-cognitive-service-ci-issues
Closed

{CognitiveService} Fix block issues for release tasks#32411
kairu-ms wants to merge 1 commit intodevfrom
fix-cognitive-service-ci-issues

Conversation

@kairu-ms
Copy link
Contributor

@kairu-ms kairu-ms commented Nov 11, 2025

Related command

Description

  • Move the test input_data files under the data/ folder so that it can be packaged by the CI.
  • Suppress the credential scan errors for those files.

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.

@kairu-ms kairu-ms requested a review from jiasli as a code owner November 11, 2025 08:27
Copilot AI review requested due to automatic review settings November 11, 2025 08:27
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Nov 11, 2025

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

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

azure-client-tools-bot-prd bot commented Nov 11, 2025

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

@kairu-ms kairu-ms self-assigned this Nov 11, 2025
@yonzhan
Copy link
Collaborator

yonzhan commented Nov 11, 2025

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

@github-actions
Copy link

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>

teresaritorto
teresaritorto previously approved these changes Nov 11, 2025
evelyn-ys
evelyn-ys previously approved these changes Nov 11, 2025
Copy link
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 block issues for CognitiveServices release tasks by reorganizing test data files and updating test file references. The primary purpose is to move connection test data from an incorrect directory structure to the proper location.

  • Changed the INPUT_DATA_PATH from 'connections' to 'data' subdirectory in test files
  • Added comprehensive YAML test data files for various connection types (Azure OpenAI, AI Services, Content Safety, Speech Services, Search, blob storage, databases, etc.)
  • Updated CredScan suppressions to allow test files containing dummy passwords

Reviewed Changes

Copilot reviewed 3 out of 42 changed files in this pull request and generated 1 comment.

File Description
test_project_connections.py Updated INPUT_DATA_PATH to point to 'data' subdirectory instead of 'connections'
test_account_connections.py Updated INPUT_DATA_PATH references (2 occurrences) to point to 'data' subdirectory
input_data/data/*.yaml Added 45+ YAML test data files for various connection types including Azure services, databases, and third-party integrations
CredScanSuppressions.json Added suppressions for 7 test files containing dummy passwords for testing purposes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

class CognitiveServicesProjectConnectionsTests(ScenarioTest):

INPUT_DATA_PATH=os.path.join(TEST_DIR, 'input_data', 'connections')
INPUT_DATA_PATH=os.path.join(TEST_DIR, 'input_data', 'data')
Copy link

Copilot AI Nov 11, 2025

Choose a reason for hiding this comment

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

The assignment operator should have spaces around it for consistency with PEP 8 style guidelines and to match the identical attribute definition in test_account_connections.py (lines 15, 27). Consider also adding the type annotation : str for consistency.

Suggested change:

INPUT_DATA_PATH: str = os.path.join(TEST_DIR, 'input_data', 'data')

Copilot uses AI. Check for mistakes.
wangzelin007
wangzelin007 previously approved these changes Nov 11, 2025
@kairu-ms kairu-ms force-pushed the fix-cognitive-service-ci-issues branch from a5b0f33 to 415dbce Compare November 11, 2025 09:02
@naga-nandyala naga-nandyala self-requested a review November 11, 2025 10:47
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.

7 participants