-
Notifications
You must be signed in to change notification settings - Fork 150
Sync eng/common directory with azure-sdk-tools for PR 13561 #6910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync eng/common directory with azure-sdk-tools for PR 13561 #6910
Conversation
There was a problem hiding this 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 synchronizes the eng/common directory with changes from azure-sdk-tools PR #13561. The changes improve the robustness of the MCP tool installation script by adding error handling for file copy operations and proper cleanup of temporary directories.
Changes:
- Added error handling with graceful fallback when updating the executable fails in MCP mode
- Implemented cleanup of temporary installation directory after copy operation
- Modified success logging to only occur when the update actually succeeds
Comments suppressed due to low confidence (1)
eng/common/mcp/azure-sdk-mcp.ps1:178
- When the executable update fails in MCP mode (line 149-152), the script falls back to the existing installed version but doesn't verify that
$exeDestinationactually exists before attempting to start it on line 178. If no previous version exists, this will cause an error. Consider adding a check likeif (Test-Path $exeDestination)before the Start-Process call, or ensure the fallback message indicates the executable must already exist.
Start-Process -WorkingDirectory $RunDirectory -FilePath $exeDestination -ArgumentList 'start' -NoNewWindow -Wait
| } | ||
|
|
||
| if ($updateSucceeded) { | ||
| log "Executable $package is installed at $exeDestination" |
Copilot
AI
Jan 15, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable reference $package uses lowercase, but the parameter is defined as $Package (uppercase P) on line 8. PowerShell is case-insensitive for variables, but for consistency and readability, the casing should match the parameter definition. Change $package to $Package.
| log "Executable $package is installed at $exeDestination" | |
| log "Executable $Package is installed at $exeDestination" |
Co-authored-by: Copilot <[email protected]>
8af8d18 to
0c1bfb9
Compare
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#13561 See eng/common workflow