Repository navigation
Add the legacy release lane and a v2.0.3 baseline - #4
Merged
Marius Storhaug (MariusStorhaug) merged 5 commits intoNov 30, 2026
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The workflow can accept an incomplete inventory when a successful tags read masks a failed releases read, allowing the preview comparison to falsely report no changes.
1 open issue
What changed in this PR
Adds a pinned v2.0.3 baseline alongside the existing candidate release fixture, preparing for later comparison with the legacy action.
Changes:
- Adds simulated baseline tests and a read-only composite preview with inventory checks.
- Introduces a guarded publication workflow for the separate, not-yet-provisioned legacy repository, with exact-squash verification and schema 2 reports.
- Documents legacy behavior, repository setup requirements, and evidence limits.
| File | Description |
|---|---|
tests/LegacyCase.Tests.ps1 |
Tests case validation, publication gates, inventory checks, and workflow restrictions. |
tests/LegacyCase.psm1 |
Validates legacy cases and expected publication results. |
tests/Invoke-LegacyFixture.ps1 |
Implements case selection, publication gating, verification, and reporting. |
tests-baseline/LegacyBaseline.Tests.ps1 |
Tests pinned v2.0.3 behavior and intentional differences from the candidate. |
tests-baseline/LegacyAction.psm1 |
Supplies synthetic events and command doubles for baseline tests. |
README.md |
Explains baseline evidence, legacy setup, and operational limits. |
.github/workflows/Legacy-Release-Test.yml |
Adds the isolated legacy publication and verification workflow. |
.github/workflows/Legacy-Baseline.yml |
Runs simulated tests and read-only preview inventory checks. |
Review effort: Balanced
There was a problem hiding this comment.
🟡 Changes recommended
The second Invoke-Pester invocation reloads shared baseline containers without LEGACY_ACTION_PATH, causing BeforeAll to throw and the Simulated step to fail even when the first run passed.
1 open issue
1 resolved since last review
Review effort: Balanced
Marius Storhaug (MariusStorhaug)
marked this pull request as ready for review
November 30, 2026 11:47
Marius Storhaug (MariusStorhaug)
dismissed
Copilot’s stale review
November 30, 2026 14:57
The base branch was changed.
Guarded workflow, case validation, gate and verdict tests for the pinned v2.0.3 composite.
v2.0.3 also reads unnamespaced bump labels and a configuration file that overrides inputs.
Run the pinned src/main.ps1 against synthetic events and doubles, plus a read-only WhatIf composite smoke job.
Marius Storhaug (MariusStorhaug)
force-pushed
the
legacy-release-fixture-lane
branch
from
November 30, 2026 21:29
8d281ad to
09a3ff6
Compare
Marius Storhaug (MariusStorhaug)
deleted the
legacy-release-fixture-lane
branch
November 30, 2026 21:51
5 tasks done
Marius Storhaug (MariusStorhaug)
added a commit
to PSModule/Release-GHRepository
that referenced
this pull request
Dec 2, 2026
Maintainers can start and verify release integration cases at an exact producer commit. The driver rejects incompatible action metadata before it requests a fixture write token. It leaves review and squash merge to fixture reviewers. <!-- ANNOUNCEMENT STOP --> ## Internal: Drive release cases from producer main The driver checks the candidate's declared inputs and outputs without running candidate code. An unrelated pull request does not stop a fixture case. The driver verifies the fixture report for the exact pull request event or squash commit. It does not publish a producer release. <details> <summary>Migration guide</summary> 1. The fixture harness landed in [PSModule/Release-GHRepository-Test#3](PSModule/Release-GHRepository-Test#3), then [PSModule/Release-GHRepository-Test#4](PSModule/Release-GHRepository-Test#4). Merge this driver next. Do not start a fixture case yet. 2. Merge the [baseline comparison driver](#123). Follow its procedure to verify the published action before you test the candidate with the same case. 3. Wait until both comparison runs pass verification before you start an ordinary fixture case. This keeps the fixture release inventory available for the comparison. 4. For an ordinary case, set `candidate_pr` to an open, compatible pull request from this repository to `main`. Omit `candidate_pr` only after producer `main` supports the fixture contract. After an independent squash merge, verify the push with `fixture_pr`. </details> <details> <summary>Technical details</summary> - The driver tests reproduced both review findings before the fix. All 35 tests pass with Pester 5.7.1 and 6.1.0 without credentials. A metadata check rejected producer `main` at `0fbca9f0c422d1d8f79e97b3b9fe1d50e106feab` and accepted #109 at `3f22cf227aee5709f430eeb79885a2121807a629`. - The driver accepted fixture-generated pull request and squash reports in a local contract test. It rejected a report for a different squash commit. - The current head is `4d34fc6f3530475a28e7cd87ecc35581d0d03c92`. It merges cleanly with #109. The updated comparison PR includes this head and passes all 64 credential-free tests at `69a92bd5fd21b546f61c57ca417847ba5aa95bc2`. - All 18 hosted checks passed on the current head. See [driver tests](https://github.com/PSModule/Release-GHRepository/actions/runs/46546713504), [action tests](https://github.com/PSModule/Release-GHRepository/actions/runs/46546713453), [linters](https://github.com/PSModule/Release-GHRepository/actions/runs/46546713510), and the [clean automated review](#122 (review)). - The scoped task plan is complete. The issue convergence search covered open fixture, integration, and release-workflow issues in this repository. No other issue is fully resolved by this diff. - The live workflow has not run. The first credentialed comparison requires both producer changes on `main`. This PR does not change `action.yml`, `src`, or the existing release workflow. It changes no versioned action or consumer template. | Changed surface | Standards checked | Framework docs checked | Result | | --- | --- | --- | --- | | `.github/scripts/*.ps1`, `.github/scripts/ReleaseFixture.psm1` | [PowerShell](https://github.com/MSXOrg/docs/blob/main/src/docs/Coding-Standards/PowerShell/index.md) | [GitHub REST contents](https://docs.github.com/en/rest/repos/contents#get-repository-content) and [fixture workflow](https://github.com/PSModule/Release-GHRepository-Test/blob/d1a37576ffdb4be89cc183df6a5700d3e2769d9c/.github/workflows/Release-Test.yml) | Fixed in this PR | | `.github/workflows/Fixture-Test.yml` | [GitHub Actions](https://github.com/MSXOrg/docs/blob/main/src/docs/Coding-Standards/GitHub-Actions.md), YAML | [App token scope](https://github.com/actions/create-github-app-token#inputs) and [Ubuntu 24.04 tools](https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md) | Aligned. The scoped Checkov exception applies to case selection, not producer build inputs. | | `.github/workflows/Fixture-Driver-Test.yml`, `tests/ReleaseFixture.Tests.ps1` | [Testing](https://github.com/MSXOrg/docs/blob/main/src/docs/Coding-Standards/Testing.md), GitHub Actions, YAML, PowerShell | [Pester commands](https://pester.dev/docs/commands/Invoke-Pester) and the schema-2 fixture report contract | Aligned | | `docs/Fixture-Test.md` | [Technical Writing Guide](https://github.com/MSXOrg/docs/blob/main/src/docs/Coding-Standards/Writing-Guide.md), Markdown | Driver dispatch inputs and fixture contract | Fixed in this PR | </details> <details> <summary>Related links</summary> - Resolves #124 - Depends on PSModule/Release-GHRepository-Test#3 and PSModule/Release-GHRepository-Test#4 for the fixture contract. - Followed by #123 for the baseline comparison. - References #109 as the first action candidate. </details>
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.


Fixture layer that follows #3. It comes before the producer layers and the live comparison.
What changes
Legacy-Release-Test.yml: guarded lane for the separate, not yet provisionedPSModule/Release-GHRepository-Test-Legacy. Read-only jobs select, test and gate. OnlyPublishhascontents: writeand uses onlyGITHUB_TOKEN. It runs the pinned v2.0.3 composite and reports a schema 2release-fixture-result.Legacy-Baseline.yml+tests-baseline/: credential-free PR verification of the published v2.0.3 (750abed0ecab02394554b610dc3aa191e75e3248).Simulated: unchangedsrc/main.ps1on synthetic merged-PR events withgh/gitdoubles.WhatIf: real composite with acontents: readtoken. It checks the release and tag inventory did not change.Findings from the baseline (v2.0.3)
AutoPatchingoff (the lane setting) and no deciding label, the "Skipping release creation" branch does not stop the script. It attempts the unchanged version (v0.0.0on an empty inventory). This is command evidence from the doubles. The released defaults patch without a label. The candidate requires a decision on purpose.release:skipis unknown to v2.0.3. Auto-patching still releases.majorlabel overridesrelease:patch. The legacy lane requiresrelease:patchas the only label.Evidence limits
The doubles prove the logic, not GitHub permissions, tag targets or the git push. Hosted write evidence (one stable tag at the exact squash) comes only from a merged, approved case in the isolated legacy repository. Nothing here publishes, provisions a repository or changes permissions. The legacy staged plan and push CI gate have no equivalent, so they are not covered.
CI on the stack also runs ests/LegacyCase.Tests.ps1 in the Simulated job. The WhatIf job fails if either inventory read fails.