Repository navigation
Automate deterministic release fixture testing - #125
Open
Marius Storhaug (MariusStorhaug) wants to merge 11 commits into
Open
Marius Storhaug (MariusStorhaug) wants to merge 11 commits into
Marius Storhaug (MariusStorhaug) wants to merge 11 commits into
Conversation
Include hidden paths, compare paths by ordinal case, check the case head before merge, and exempt the vendored seed from whitespace checks.
Marius Storhaug (MariusStorhaug)
marked this pull request as ready for review
December 2, 2026 13:19
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The unattended merge paths depend on a fixture-only ruleset bypass that is not yet authorized, requiring owner verification of its scope and a live merge/report run beyond mocked tests.
No open issues 🎉
What changed in this PR
Automates release fixture orchestration in the static test repository, independently of #109, without changing production release behavior.
Changes:
- Adds single-dispatch scenario, legacy, and paired runs with head-bound merges and bounded evidence polling.
- Versions the trusted fixture seed and checks for drift before case creation and merging.
- Expands tests and documents setup, recovery, and the remaining automatic-matrix work.
| File | Description |
|---|---|
tests/ReleaseFixturePair.Tests.ps1 |
Adds seed-aware pair mocks. |
tests/ReleaseFixtureMerge.Tests.ps1 |
Tests merge gates, orchestration, and anonymous reads. |
tests/ReleaseFixture.Tests.ps1 |
Tests seed parity and drift rejection. |
tests/Get-TestSeedTree.ps1 |
Builds mock seed tree responses. |
fixtures/release-fixture/seed/tests/ReleaseInventory.Tests.ps1 |
Seeds inventory assertion tests. |
fixtures/release-fixture/seed/tests/ReleaseInventory.psm1 |
Seeds release and tag verification. |
fixtures/release-fixture/seed/tests/ReleaseCase.Tests.ps1 |
Seeds candidate case-selection tests. |
fixtures/release-fixture/seed/tests/ReleaseCase.psm1 |
Seeds candidate case validation. |
fixtures/release-fixture/seed/tests/LegacyCase.Tests.ps1 |
Seeds legacy guard and workflow tests. |
fixtures/release-fixture/seed/tests/LegacyCase.psm1 |
Seeds legacy validation and tag expectations. |
fixtures/release-fixture/seed/tests/Invoke-ReleaseFixture.ps1 |
Seeds candidate preparation and reporting. |
fixtures/release-fixture/seed/tests/Invoke-LegacyFixture.ps1 |
Seeds legacy publication gates and reporting. |
fixtures/release-fixture/seed/tests/FixtureContract.json |
Seeds scenario-to-label mappings. |
fixtures/release-fixture/seed/tests-baseline/LegacyBaseline.Tests.ps1 |
Seeds pinned legacy behavior tests. |
fixtures/release-fixture/seed/tests-baseline/LegacyAction.psm1 |
Seeds simulated legacy execution helpers. |
fixtures/release-fixture/seed/.github/workflows/Release-Test.yml |
Seeds candidate integration workflow. |
fixtures/release-fixture/seed/.github/workflows/Legacy-Release-Test.yml |
Seeds legacy integration workflow. |
fixtures/release-fixture/seed/.github/workflows/Legacy-Baseline.yml |
Seeds baseline simulation and preview workflow. |
docs/Fixture-Test.md |
Documents automated lanes and prerequisites. |
docs/Fixture-Acceptance-Spec.md |
Records acceptance goals and implementation gaps. |
.github/workflows/Linter.yml |
Excludes byte-preserved seed files. |
.github/workflows/Fixture-Test.yml |
Runs a scenario through completion. |
.github/workflows/Fixture-Pair-Test.yml |
Adds automated pair and legacy modes. |
.github/workflows/Fixture-Driver-Test.yml |
Includes merge tests in CI. |
.github/scripts/ReleaseFixture.psm1 |
Adds seed checks, evidence gates, and orchestration. |
.github/scripts/Invoke-ReleaseFixture.ps1 |
Exposes new modes and summaries. |
.gitattributes |
Preserves exact fixture seed bytes. |
Review effort: Balanced
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.
Summary
Adds deterministic, automated fixture testing of the release action against the static test repository
PSModule/Release-GHRepository-Test. It needs no per-run approval and no inference. It is separate from #109 and lands before it.run-pair,run-legacyand one-dispatch Fixture Test lanes. They merge fixture pull requests with the scoped Shelly token and an exact head SHA. Candidate code never receives that token.Release-Test.ymlruns for the exact PR, head and branch. It reads check runs anonymously with GET only and a bounded poll budget.fixtures/release-fixture/seed, copied from fixture maind1a37576. A preflight rejects missing or drifted trusted files before a write and before a merge, including a resumed case.docs/Fixture-Acceptance-Spec.mdand updatesdocs/Fixture-Test.md.Not in this change
No producer release behavior change, no change to #109, no fixture dispatch, and no fixture setting change. Fixture PR 6 is untouched.
Verification
d1a37576: passed.