Repository navigation
feat: add target manifest inspection and unmanaged updates; stabilize cross-platform CI - #7
Conversation
…ckage-not-found handling (#6) * feat: implement Get-ProviderDiscoveryParameter function and associated tests * feat: normalize PackageNotFound error handling and update related tests * feat: Add PMU testing helpers and integration tests for manifest inspection - Introduced Initialize-PMULocalProviderStart and Initialize-PMUManifestFixture functions for setting up local provider and manifest fixtures. - Created Invoke-PMUManifestFixture to streamline the invocation of manifest fixtures. - Implemented various tests for manifest inspection, including Assert-InspectedManifest, Assert-ManifestReadHash, and Assert-ManifestWorkerResult. - Added tests for handling manifest inspection errors and ensuring proper cleanup of resources. - Developed integration tests for Get-PSModuleUpdateTargetManifest, validating the behavior of the module update process under various conditions. - Ensured that all tests adhere to the expected error handling and state management for PMU operations. * fix: add tests for exact-target inspection native fixture and update skip policy * feat: Add support for replacing unmanaged installations with explicit consent - Introduced `Install-PSModuleUpdate -ReplaceUnmanagedInstallation` to allow updates for manually copied installations lacking root `PSGetModuleInfo.xml`. - Enhanced documentation in CHANGELOG.md, README.md, and RELEASE_NOTE.md to reflect new functionality. - Updated cmdlet parameters and examples in Install-PSModuleUpdate.md to include the new switch. - Implemented new helper functions: Get-NativeSnapshotPath, Get-NativeInstallParameter, Get-NativeSelectedSource, and Test-UnmanagedInstallation to support the new feature. - Added tests to ensure correct behavior for unmanaged installations and consent handling. * fix: update CodeScene exception comment for clarity on parameter handling
- Implement shared `powershell-ci` workflows for contributor tests, security checks, and publishing. - Update `Run-Platform-Matrix.yml` to manage platform-specific CI lanes. - Remove legacy scripts for CodeScene analysis and NovaModuleTools CI. - Introduce `Security.yml` for unified security checks and dependency reviews. - Add `dependabot.yml` for automated dependency updates on a weekly schedule. - Enhance documentation on security models and workflow maps. - Update tests to validate new workflow structures and shared contracts.
- Updated Invoke-PlatformLane.ps1 to streamline phase invocation by using hashtables for phase parameters. - Introduced new functions for initializing phase launch and handling child processes. - Enhanced error handling and logging for CI phases. - Refactored QualificationProcess.ps1 to improve child process initialization and result handling. - Simplified QualificationScenario.ps1 by modularizing plan installation and validation. - Improved test scripts to validate CI workflows and ensure proper dependency isolation. - Updated tests to reflect changes in the CI lane manifest structure and phase invocation.
…ress and Linux clock frequency - Implemented `Get-InstallationProgressHost` to retrieve host state information regarding output redirection and interactivity. - Created `Write-InstallationProgress` to manage progress reporting during installation phases. - Introduced `Get-LinuxClockTickFrequency` to fetch the Linux process clock frequency, with error handling for command failures. - Added tests for the new functions to ensure correct behavior and error handling. - Enhanced existing tests across various modules to improve coverage and validate edge cases, including: - Validating directory requests and handling of empty required fields in metadata. - Ensuring correct behavior when dealing with repository receipts and package sources. - Testing for proper handling of staging and recovery processes.
…ModuleInstallationRoot for improved path resolution
Provision exact PSGallery PowerShellGet 2.2.5 only inside owned runtime extractions and verify its actual child-process import. Preserve engine checksums, runtime identity, the original test topology and the 95% coverage target. Require native-provider provenance at the aggregate CI gate and cover provisioning, rejection and cleanup contracts.
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
There was a problem hiding this comment.
Gates Passed
6 Quality Gates Passed
See analysis details in CodeScene
Code Health Directives
1 new code health directive
Quality Gate Profile: Pay Down Tech Debt
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.
There was a problem hiding this comment.
Code Coverage Gates Passed
Overall Coverage: 96.6%
(required = 95%)
New & Changed Code Coverage: 99.5%
(required = 99%)
Review details by gate
-
Overall Coverage
- Pass/Fail Reason:
The overall coverage gate was checked for all code and meets the goal: 96.6% covered >= threshold = 95% - Action:
You have 259 files with a sum of 1655 covered and 58 uncovered lines of code.
- Pass/Fail Reason:
-
New & Changed Code Coverage
- Pass/Fail Reason:
New or changed code meets coverage goal: 99.5% covered >= threshold = 99% - Action:
You modified 42 files, and covered 181 added/modified lines of code.
- Pass/Fail Reason:
Summary
Get-PSModuleUpdateTargetManifestto inspect the exact planned package without installing or importing it. Reject manifest changes between inspection and installation, including same-version republishing.Install-PSModuleUpdate -ReplaceUnmanagedInstallationopt-in for manually copied modules without installation metadata, preserving verification and recovery safeguards.PMU.PackageNotFound, without fallback queries or raw provider diagnostics.powershell-ci@0.2.0workflows for tests, security and publishing while retaining the local six-lane platform matrix.maintodevelop, not only the latest CI repair. Follow-up to Add target manifest inspection, unmanaged installation opt-in, and package-not-found handling #6.Affected area
Review guidance
src/private/inspection/, then review the unmanaged-installation opt-in and native worker paths.scripts/build/ci/, especially containment, cleanup and exact provider versions.Publish.yml: merging intomaintriggers publishing. Publishing itself was not executed during verification.develop; the actual callers now use@0.2.0.Validation
Invoke-NovaBuildTest-NovaBuildValidation notes:
Documentation and release follow-up
README.mdreviewed and updated if neededCONTRIBUTING.mdreviewed and updated if neededCHANGELOG.mdreviewed and updated if neededRELEASE_NOTE.mdreviewed and updated if neededMaintainability, compatibility, and risk
Risk, rollout, or rollback notes: