Skip to content

Conversation

@danieljurek
Copy link
Member

@danieljurek danieljurek commented Oct 3, 2025

@danieljurek danieljurek moved this from 🤔 Triage to 🔬 Dev in PR in Azure SDK EngSys 📆🎇 Oct 3, 2025
@danieljurek danieljurek marked this pull request as ready for review October 3, 2025 02:38
Copilot AI review requested due to automatic review settings October 3, 2025 02:38
@danieljurek danieljurek enabled auto-merge (squash) October 3, 2025 02:38
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 implements a temporary fix to improve error handling in PowerShell build scripts by adding explicit exit code checks after command execution. The changes ensure that failures in cargo commands and other build tools are properly detected and cause script termination.

Key changes:

  • Replace direct Invoke-LoggedCommand calls with pattern that stores command in variable and checks $LastExitCode
  • Add Write-Error calls when commands fail to ensure proper script termination
  • Apply consistent error handling pattern across multiple cargo operations

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
eng/scripts/Test-Packages.ps1 Added error checking for cargo build and test commands to ensure failures are properly handled
eng/scripts/Analyze-Code.ps1 Added error checking for all cargo commands, rustup, and dependency verification scripts

@danieljurek danieljurek merged commit 2cc1aec into main Oct 3, 2025
17 checks passed
@danieljurek danieljurek deleted the djurek/fix-test-errors branch October 3, 2025 17:18
danieljurek added a commit that referenced this pull request Oct 6, 2025
danieljurek added a commit that referenced this pull request Oct 7, 2025
@weshaggard
Copy link
Member

@danieljurek this shouldn't be the short-term fix this should be the real fix.

@kurtzeborn kurtzeborn moved this from 🔬 Dev in PR to 🎊 Closed in Azure SDK EngSys 📆🎇 Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants