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 repository changes from PR 12529, improving error handling and logging in stress test deployment scripts.

  • Adds validation to exit gracefully when no stress test packages are found
  • Adds conditional logging to prevent unnecessary output when no chart 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 Adds validation to check if stress test packages exist and exits early with a warning if none are found
eng/common/scripts/stress-testing/find-all-stress-packages.ps1 Wraps chart files logging in a conditional check to only display when files are present

-MatrixReplace $MatrixReplace `
-MatrixNonSparseParameters $MatrixNonSparseParameters)
if (!$pkgs -or !$pkgs.Length) {
Write-Warning "No stress test packages found in $searchDirectory"
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.

The error message references an undefined variable $searchDirectory. Based on the function signature, this should be $SearchDirectory (capitalized). This will result in an incomplete error message that doesn't show the directory path where packages were searched.

Suggested change
Write-Warning "No stress test packages found in $searchDirectory"
Write-Warning "No stress test packages found in $SearchDirectory"

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