Detect hidden PowerShell Gallery versions before publish#180
Detect hidden PowerShell Gallery versions before publish#180PrzemyslawKlys merged 1 commit intomainfrom
Conversation
|
PR Review - Detect hidden PowerShell Gallery versions before publish. Overall this is a well-motivated fix. Full review details below. |
PR Review: Detect hidden PowerShell Gallery versions before publishThis is a well-motivated fix for a real problem. Querying the raw OData feed is the right approach to detect unlisted versions invisible to Find-PSResource. Here are my observations: Bugs / Correctness1. Brittle unlisted-version detection via magic date string In 2. Subtle usedUnlisted tracking In Code Quality3. Synchronous HTTP via .GetAwaiter().GetResult()
4. Significant test infrastructure duplication
5. Visibility widened for test access
6. Unused _logger field
Missing Test Coverage
Minor Nits
Summary
The feature is valuable and the regression test covers the primary scenario. The two most important items to address: (1) fix the brittle string comparison for unlisted detection, (2) deduplicate test infrastructure. |
Summary
Validation
dotnet test .\PowerForge.Tests\PowerForge.Tests.csproj -c Release --filter "ModuleVersionStepperTests|ModulePublisherRepositoryVersionTests|ModulePipelineRegressionParityTests|ModulePublisherRequiredModulesTests"pwsh .\Module\Build\Build-Module.ps1 -NoSign