Repository navigation
Test, check and pack the module before a release - #101
Merged
Merged
Conversation
Two of the batch's own closures called Complete-PkProcess and Write-PkMessage by name. A .GetNewClosure() block only sees global functions, so a batch failed with "'Complete-PkProcess' is not recognized" when the kit was loaded for one module only. They're captured up front now, like the private helpers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A worker given the function (-SharedFunctionNames takes it) could set a handler made in its own runspace, which the main thread then ran for every message. Running another runspace's scriptblock can hang or crash PowerShell. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It only looked for an abort after its first 200 ms wait, so a program that finished sooner ran to the end and returned normally, and a slower one ran for about 200 ms before it was killed. It now throws before starting the program, unless -IgnoreAbort is given. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… GetNewClosure
DelegateCast missed a scriptblock passed to .NET as ({ 1 }), { 1 }.GetNewClosure(),
[scriptblock]{ 1 } and the like, in the call or through a variable.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Invoke-PkRunspaceJobs is Invoke-PkRunspaceBatch, and 13 private functions lose their plural names. -MaxConcurrent and -AbortTimeoutSeconds are the only names on every engine: -MaxParallel and -DrainTimeoutSeconds are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # README.md
Initialize-ParallelKit loses -MaxConcurrentProcesses and ThreadPool, and the dispatcher its -AbortPollCallback alias. Code nothing reaches goes too. The stale-types message says "a different version". Two functions declare their output type. The comments are shorter and checked against the code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # ParallelKit.Harness.ps1 # ParallelKit.ps1
Build/New-ParallelKitModule.ps1 makes ParallelKit.psm1 and its manifest from ParallelKit.ps1. The harness can run on that module (-AsModule), and CI runs the sections where loading can matter on it. The README covers the module. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new workflow runs the harness on the module, checks that it builds the same under 5.1 and 7 and that PSScriptAnalyzer reports no errors, and keeps the packed module with the run. It publishes nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # README.md
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.
A workflow that tests the kit built as a module and packs it for the PowerShell Gallery. It publishes nothing and needs no key: the package is kept with the run, for a person to publish.
.github/workflows/module.ymlrelease/**orversion/**), on a published release, by hand (optionally for a tag), and on a pull request that changesBuild/or the workflow. It isn't a required check.-AsModule, on Windows PowerShell 5.1 and PowerShell 7. That's the whole harness on a version's branch and-Section MODULEotherwise.ParallelKit.ps1, builds the module under 5.1 and under 7 and checks the two are identical, runsTest-ModuleManifest, checks for PSScriptAnalyzer errors, packs it withCompress-PSResource, and keeps the package with its SHA-256 sums.The README's testing section says what it runs.
Tests
🤖 Generated with Claude Code