From 86ac4d1286e8fe849a0585b5174890a5d68d3d78 Mon Sep 17 00:00:00 2001 From: Hal <22532613+HalRiveria@users.noreply.github.com> Date: Tue, 1 Dec 2026 10:53:00 -0500 Subject: [PATCH 1/3] Run the soak test on GitHub before each release Two jobs, Windows PowerShell 5.1 and PowerShell 7, on a push to a release branch, on a pull request that changes the soak test, and by hand. Not a required check. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/soak.yml | 43 ++++++++++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/soak.yml diff --git a/.github/workflows/soak.yml b/.github/workflows/soak.yml new file mode 100644 index 0000000..4db8e32 --- /dev/null +++ b/.github/workflows/soak.yml @@ -0,0 +1,43 @@ +name: Soak + +# The soak test, before a release only: a version PR's branch is release/X.Y. +# Also on a pull request that changes the test or this file, and by hand. Not a +# required check, so an ordinary pull request doesn't wait for it. +on: + push: + branches: ['release/**'] + pull_request: + paths: + - 'Testing/soak/**' + - '.github/workflows/soak.yml' + workflow_dispatch: + +permissions: + contents: read + +jobs: + soak: + name: Soak + runs-on: windows-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v4 + + - name: Run Testing/soak/run.ps1 + shell: powershell + run: | + & powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\Testing\soak un.ps1 + exit $LASTEXITCODE + + soak-pwsh: + name: Soak (PowerShell 7) + runs-on: windows-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v4 + + - name: Run Testing/soak/run.ps1 under pwsh + shell: pwsh + run: | + & pwsh -NoProfile -ExecutionPolicy Bypass -File .\Testing\soak un.ps1 + exit $LASTEXITCODE diff --git a/README.md b/README.md index d114d1c..e7d2f61 100644 --- a/README.md +++ b/README.md @@ -641,7 +641,7 @@ powershell -NoProfile -File .\ParallelKit.Harness.ps1 It takes about five and a half minutes. It prints a `[PASS]`/`[FAIL]` line per check and exits 0 only if everything passed. A few checks send real Ctrl+C, Ctrl+Break and window-close events to child PowerShell processes in hidden consoles of their own, never to yours. Where a machine can't deliver those, they print `[SKIP]` with the reason instead; set `PK_HARNESS_NO_SKIP=1` to count skips as failures. A few `message handler failed` lines in the output are expected: some checks break the message handler on purpose to test the fallback. `-Section AO,BB` runs only those sections (and A, the setup), for working on one area; it isn't a full pass, and its last line says so. -GitHub runs the same harness on Windows PowerShell 5.1 and on PowerShell 7 for every pull request and every change to `main`. The harness is the only test GitHub runs: the scripts in `Testing/` below are run by hand. +GitHub runs the same harness on Windows PowerShell 5.1 and on PowerShell 7 for every pull request and every change to `main`. It also runs the soak test below on both before each release ([runs](https://github.com/HalRiveria/PowerShell-ParallelKit/actions/workflows/soak.yml)). The other scripts in `Testing/` are run by hand. `Testing/` holds the longer stress tests and checks behind some of what this README says. They aren't part of the test suite and aren't needed to use the kit: From dbc5edd1138ed4f10c4753c27821b3fda849ff7e Mon Sep 17 00:00:00 2001 From: Hal <22532613+HalRiveria@users.noreply.github.com> Date: Tue, 1 Dec 2026 10:53:13 -0500 Subject: [PATCH 2/3] Fix the script path in the soak workflow Co-Authored-By: Claude Opus 5.5 --- .github/workflows/soak.yml | 86 +++++++++++++++++++------------------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/.github/workflows/soak.yml b/.github/workflows/soak.yml index 4db8e32..4ca8792 100644 --- a/.github/workflows/soak.yml +++ b/.github/workflows/soak.yml @@ -1,43 +1,43 @@ -name: Soak - -# The soak test, before a release only: a version PR's branch is release/X.Y. -# Also on a pull request that changes the test or this file, and by hand. Not a -# required check, so an ordinary pull request doesn't wait for it. -on: - push: - branches: ['release/**'] - pull_request: - paths: - - 'Testing/soak/**' - - '.github/workflows/soak.yml' - workflow_dispatch: - -permissions: - contents: read - -jobs: - soak: - name: Soak - runs-on: windows-latest - timeout-minutes: 30 - steps: - - uses: actions/checkout@v4 - - - name: Run Testing/soak/run.ps1 - shell: powershell - run: | - & powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\Testing\soak un.ps1 - exit $LASTEXITCODE - - soak-pwsh: - name: Soak (PowerShell 7) - runs-on: windows-latest - timeout-minutes: 30 - steps: - - uses: actions/checkout@v4 - - - name: Run Testing/soak/run.ps1 under pwsh - shell: pwsh - run: | - & pwsh -NoProfile -ExecutionPolicy Bypass -File .\Testing\soak un.ps1 - exit $LASTEXITCODE +name: Soak + +# The soak test, before a release only: a version PR's branch is release/X.Y. +# Also on a pull request that changes the test or this file, and by hand. Not a +# required check, so an ordinary pull request doesn't wait for it. +on: + push: + branches: ['release/**'] + pull_request: + paths: + - 'Testing/soak/**' + - '.github/workflows/soak.yml' + workflow_dispatch: + +permissions: + contents: read + +jobs: + soak: + name: Soak + runs-on: windows-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v4 + + - name: Run Testing/soak/run.ps1 + shell: powershell + run: | + & powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\Testing\soak\run.ps1 + exit $LASTEXITCODE + + soak-pwsh: + name: Soak (PowerShell 7) + runs-on: windows-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v4 + + - name: Run Testing/soak/run.ps1 under pwsh + shell: pwsh + run: | + & pwsh -NoProfile -ExecutionPolicy Bypass -File .\Testing\soak\run.ps1 + exit $LASTEXITCODE From 7b6c41c059a3fb712717e719e53ef9ef09c29a62 Mon Sep 17 00:00:00 2001 From: Hal <22532613+HalRiveria@users.noreply.github.com> Date: Tue, 1 Dec 2026 10:53:44 -0500 Subject: [PATCH 3/3] Run the soak test for version/ branches too, and note the two jobs are copies Co-Authored-By: Claude Opus 5.5 --- .github/workflows/soak.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/soak.yml b/.github/workflows/soak.yml index 4ca8792..c757a45 100644 --- a/.github/workflows/soak.yml +++ b/.github/workflows/soak.yml @@ -1,11 +1,11 @@ name: Soak -# The soak test, before a release only: a version PR's branch is release/X.Y. -# Also on a pull request that changes the test or this file, and by hand. Not a -# required check, so an ordinary pull request doesn't wait for it. +# The soak test. It runs before a release (a version's branch is release/X.Y or +# version/X.Y), on a pull request that changes the test or this file, and by +# hand. Not a required check, so other pull requests don't wait for it. on: push: - branches: ['release/**'] + branches: ['release/**', 'version/**'] pull_request: paths: - 'Testing/soak/**' @@ -16,6 +16,8 @@ permissions: contents: read jobs: + # Windows PowerShell 5.1. soak-pwsh is the same on PowerShell 7: keep the two + # in step. soak: name: Soak runs-on: windows-latest @@ -29,6 +31,7 @@ jobs: & powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\Testing\soak\run.ps1 exit $LASTEXITCODE + # PowerShell 7. Keep in step with soak. soak-pwsh: name: Soak (PowerShell 7) runs-on: windows-latest