Repository navigation
Fix PSScriptAnalyzer identified issues - #948
Merged
Merged
Conversation
Replace literal superscript digits with Unicode escapes in the reserved device-name regex, preserving validation while keeping the source ASCII-only.
Update the runtime matrix, syntax checks, and support documentation while retaining Windows PowerShell 5.1 support. Add ShouldProcess coverage for proxy removal and cache updates, including WhatIf safety and confirmation handling.
Add -WhatIf and -Confirm to Update-Evergreen, with approval covering the full cache operation, and document the new behavior. Also adjust PowerShell compatibility suppressions, date parsing defaults, proxy cleanup, and retry-response diagnostics.
Test Results 6 files ± 0 2 296 suites +37 7m 52s ⏱️ -56s Results for commit a595ae9. ± Comparison against base commit 222e18b. This pull request removes 195 and adds 224 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Replace network-dependent update tests with mocked cache and hash-validation scenarios. Add coverage for CAB rollback, HTTP options and TLS restoration, and download failures; include update tests in the default run.
Clear module-scoped proxy settings after each test and verify subsequent REST and web requests receive no proxy settings or credentials.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Warning
The module now requires Windows PowerShell 5.1 or PowerShell 7.4 or later on Windows, macOS, or Linux; PowerShell 4.0 or PowerShell 6/7.0-7.3 are no longer supported.
Update-Evergreen,Remove-ProxyEnv: Add-WhatIfand-Confirmsupport. Guard the entire cache update before downloads or cache changes, and guard each proxy variable removal. Add regression coverage and document cache update confirmation behavior.Save-EvergreenApp,Update-Evergreen: Warn when retry-response status codes orRetry-Afterheaders cannot be parsed, and route cache hash-validation failures throughWrite-Messagewith the appropriate message type.