Revert pending test markers and fix Update-Help tests with retry logic#26808
Revert pending test markers and fix Update-Help tests with retry logic#26808Copilot wants to merge 4 commits intorelease/v7.4from
Conversation
…te-Help tests Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
| Import-Module HelpersCommon | ||
|
|
||
| # Helper function to retry operations that may have intermittent failures | ||
| function Invoke-WithRetry { |
There was a problem hiding this comment.
This should probably be in
test\tools\Modules\HelpersCommon\HelpersCommon.psm1
There was a problem hiding this comment.
Moved to test\tools\Modules\HelpersCommon\HelpersCommon.psm1 in commit 1753fc0. Added comprehensive comment-based help and made the function available for reuse across all tests.
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
|
@copilot analyze the pester test failure and fix them |
I've analyzed the test setup. The When tests run through the CI infrastructure ( Could you provide more details about the specific test failures you're seeing? For example:
This will help me identify and fix the exact issue. |
The function was added to HelpersCommon.psm1 but was not included in the FunctionsToExport list in HelpersCommon.psd1, causing it to not be available when the module was imported. This was the root cause of test failures. Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
|
This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 15 days. It will be closed if no further activity occurs within 10 days of this comment. |
Reverts PR #26805 which disabled flaky Update-Help tests. Implements retry logic for transient network failures instead.
Changes
UpdatableHelpSystem.Tests.ps1(8 test invocations)Invoke-WithRetryfunction toHelpersCommon.psm1with configurable attempts/intervalsUpdate-Help,Save-Help) with retry logic (3 attempts, 2s intervals)Invoke-WithRetrytoFunctionsToExportinHelpersCommon.psd1Implementation
Critical Fix
The function was initially not exported from the module manifest, causing
The term 'Invoke-WithRetry' is not recognizedfailures. Added toFunctionsToExportarray in.psd1.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.