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:32
@azure-sdk azure-sdk requested review from benbp and Copilot October 21, 2025 01:32
@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 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 changes from azure-sdk-tools PR 12529, focusing on improving error handling and logging in stress test deployment scripts. The changes add early exit conditions and conditional logging to prevent misleading output when no stress test packages are found.

Key Changes

  • Added early exit when no stress test packages are found, with a warning message
  • Added conditional logging to only display chart files 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 and early exit with warning when no packages found
eng/common/scripts/stress-testing/find-all-stress-packages.ps1 Added conditional check to only log chart files when they exist

Comment on lines +175 to +177
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.

The warning message references $searchDirectory, but this variable doesn't appear to be defined in the visible context. The correct variable name should be $Directory based on the function's parameter name (visible at line 172 where it's passed to Get-ChildItem).

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