Skip to content

Conversation

@azure-sdk
Copy link
Collaborator

Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#12529 See eng/common workflow

@Copilot Copilot AI review requested due to automatic review settings October 21, 2025 01:31
@azure-sdk azure-sdk requested a review from a team as a code owner October 21, 2025 01:31
@azure-sdk azure-sdk requested a review from benbp October 21, 2025 01:31
@azure-sdk azure-sdk added EngSys This issue is impacting the engineering system. Central-EngSys This issue is owned by the Engineering System team. labels Oct 21, 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 syncs the eng/common directory with azure-sdk-tools PR 12529, adding validation and logging improvements to stress testing deployment scripts. The changes enhance error handling by checking for empty package lists and conditionally logging chart file discovery.

  • Added validation to exit gracefully when no stress test packages are found
  • Added conditional guard for logging chart files only when they exist

Reviewed Changes

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

File Description
eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 Added validation check for empty package list with early exit
eng/common/scripts/stress-testing/find-all-stress-packages.ps1 Added conditional guard around chart files logging

-MatrixNonSparseParameters $MatrixNonSparseParameters)
if (!$pkgs -or !$pkgs.Length) {
Write-Warning "No stress test packages found in $searchDirectory"
exit 0
Copy link

Copilot AI Oct 21, 2025

Choose a reason for hiding this comment

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

Using exit 0 directly terminates the entire PowerShell process, which may not be appropriate if this function is called from another script or module. Consider using return instead to exit only the function scope, or throw an error to let the caller decide how to handle this case.

Suggested change
exit 0
return

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Central-EngSys This issue is owned by the Engineering System team. EngSys This issue is impacting the engineering system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants