Skip to content

Add the legacy release lane and a v2.0.3 baseline - #4

Merged
Marius Storhaug (MariusStorhaug) merged 5 commits into
mainfrom
legacy-release-fixture-lane
Nov 30, 2026
Merged

Marius Storhaug (MariusStorhaug) merged 5 commits into
mainfrom
legacy-release-fixture-lane

Conversation

@MariusStorhaug

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

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 provisioned PSModule/Release-GHRepository-Test-Legacy. Read-only jobs select, test and gate. Only Publish has contents: write and uses only GITHUB_TOKEN. It runs the pinned v2.0.3 composite and reports a schema 2 release-fixture-result.
  • Legacy-Baseline.yml + tests-baseline/: credential-free PR verification of the published v2.0.3 (750abed0ecab02394554b610dc3aa191e75e3248).
    • Simulated: unchanged src/main.ps1 on synthetic merged-PR events with gh/git doubles.
    • WhatIf: real composite with a contents: read token. It checks the release and tag inventory did not change.
  • README: legacy lane rules and baseline evidence, with candidate-only cases spelled out.

Findings from the baseline (v2.0.3)

  • With AutoPatching off (the lane setting) and no deciding label, the "Skipping release creation" branch does not stop the script. It attempts the unchanged version (v0.0.0 on 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:skip is unknown to v2.0.3. Auto-patching still releases.
  • An unnamespaced major label overrides release:patch. The legacy lane requires release:patch as 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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread .github/workflows/Legacy-Baseline.yml Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread .github/workflows/Legacy-Baseline.yml Resolved
Copilot AI previously approved these changes Nov 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approved

No active review issues remain for the pinned baseline and guarded legacy release-lane changes.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@MariusStorhaug
Marius Storhaug (MariusStorhaug) marked this pull request as ready for review November 30, 2026 11:47
Base automatically changed from integration/shelly-release-cases to main November 30, 2026 14:57
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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approved

No active review issues are recorded for the release-fixture and guarded legacy-publication changes.

No open issues 🎉

Review effort: Balanced

@MariusStorhaug
Marius Storhaug (MariusStorhaug) merged commit ffae947 into main Nov 30, 2026
8 checks passed
@MariusStorhaug
Marius Storhaug (MariusStorhaug) deleted the legacy-release-fixture-lane branch November 30, 2026 21:51
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants