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

@azure-sdk azure-sdk requested a review from a team as a code owner October 21, 2025 01:31
@azure-sdk azure-sdk requested review from benbp and Copilot 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 for PR 12529, focusing on improving error handling and logging in stress test deployment scripts. The changes add defensive checks for empty package collections and conditionally display chart file information.

Key changes:

  • Added validation to exit gracefully when no stress test packages are found
  • Made chart file logging conditional to avoid errors when no files 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 early exit with warning when no stress test packages are discovered
eng/common/scripts/stress-testing/find-all-stress-packages.ps1 Wrapped chart file logging in conditional check to prevent errors

-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 script and may prevent proper cleanup or return value handling. Consider using return instead to allow the caller to handle the empty result gracefully, or throw an exception if this is truly an error condition.

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