Skip to content

Conversation

@danieljurek
Copy link
Member

@danieljurek danieljurek commented Oct 6, 2025

@danieljurek danieljurek self-assigned this Oct 6, 2025
@danieljurek danieljurek marked this pull request as ready for review October 6, 2025 18:13
Copilot AI review requested due to automatic review settings October 6, 2025 18:13
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 reverts a previous change that added error handling with Write-Error calls to PowerShell scripts. The revert removes the explicit error checking and Write-Error statements that were intended to make the scripts exit immediately on failure.

Key changes:

  • Removes manual error checking after each Invoke-LoggedCommand call
  • Eliminates Write-Error statements and intermediate $command variables
  • Returns to direct Invoke-LoggedCommand calls without explicit error handling

Reviewed Changes

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

File Description
eng/scripts/Test-Packages.ps1 Reverted cargo build and test commands to use direct Invoke-LoggedCommand calls without manual error checking
eng/scripts/Analyze-Code.ps1 Reverted all cargo commands and dependency verification to use direct Invoke-LoggedCommand calls without manual error checking

@danieljurek
Copy link
Member Author

@heaths, @hallipr -- This PR reverts the narrow fix from last week after I put https://github.com/Azure/azure-sdk-tools/pull/12337/files into main

@danieljurek danieljurek force-pushed the revert-3106-djurek/fix-test-errors branch from 1320fad to 3bacc34 Compare October 7, 2025 20:30
@danieljurek danieljurek enabled auto-merge (squash) October 7, 2025 20:32
Copy link
Member

@heaths heaths left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see nothing wrong here, but I can't see any changes to eng/common that were made that would go along with this, so I'm taking it on faith somewhat.

@danieljurek
Copy link
Member Author

I see nothing wrong here, but I can't see any changes to eng/common that were made that would go along with this, so I'm taking it on faith somewhat.

eng/common change is here: https://github.com/Azure/azure-sdk-for-rust/pull/3111/files

@heaths
Copy link
Member

heaths commented Oct 7, 2025

eng/common change is here: https://github.com/Azure/azure-sdk-for-rust/pull/3111/files

So still not using default PowerShell behaviors. As long as those functions correctly catch this case, though, I suppose that'll work.

@danieljurek danieljurek merged commit c8ab286 into main Oct 7, 2025
17 checks passed
@danieljurek danieljurek deleted the revert-3106-djurek/fix-test-errors branch October 7, 2025 21:02
@weshaggard
Copy link
Member

@danieljurek @hallipr why did you revert this? This is the correct fix over Azure/azure-sdk-tools#12337, we should not be relying on write-error we should be handling exit codes correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants