Repository navigation
Run release integration tests with Shelly - #122
Merged
Merged
Conversation
This was referenced Nov 29, 2026
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The credentialed cross-repository flow remains untested and the companion fixture workflow is unmerged, requiring maintainer validation of installation permissions and the live PR-to-squash report flow.
No open issues 🎉
What changed in this PR
Adds a maintainer-triggered driver for release integration tests in the public fixture repository. It pins producer candidates to exact commits, uses fixture-scoped Shelly tokens, and leaves approval and squash merging to independent reviewers.
Changes:
- Adds separate workflows for starting or verifying fixture cases and running credential-free driver tests.
- Implements candidate resolution, fixture PR creation, and report validation for PR events and exact squash commits.
- Adds unit tests and documentation for setup, scenarios, and the two-stage verification process.
| File | Description |
|---|---|
tests/ReleaseFixture.Tests.ps1 |
Tests candidate validation, case creation, report matching, and merged-case checks. |
docs/Fixture-Test.md |
Documents dispatch inputs, reviewer steps, and local testing. |
.github/workflows/Fixture-Test.yml |
Runs main-only dispatch jobs with fixture-scoped write or read tokens. |
.github/workflows/Fixture-Driver-Test.yml |
Runs credential-free Pester tests on pull requests. |
.github/scripts/ReleaseFixture.psm1 |
Implements fixture API operations and case/report validation. |
.github/scripts/Invoke-ReleaseFixture.ps1 |
Coordinates resolve, start, and verify modes and writes job summaries. |
Review effort: Balanced
Marius Storhaug (MariusStorhaug)
marked this pull request as ready for review
November 30, 2026 11:26
5 tasks done
Marius Storhaug (MariusStorhaug)
marked this pull request as ready for review
December 1, 2026 00:44
Marius Storhaug (MariusStorhaug)
added a commit
that referenced
this pull request
Dec 2, 2026
Maintainers can run one comparison from the action repository's `main` branch. It verifies a release with published v2.0.3 before it opens a fixture case for the exact candidate SHA. This change affects only the fixture test harness. <!-- ANNOUNCEMENT STOP --> ## Internal: Fixture tests compare the published baseline with a candidate The pair uses one initially empty fixture repository. It tests the same `one-step` scenario with `release:patch` twice. The first release must be `v0.0.1`. The candidate must add one patch, and each tag must point to its own squash commit. The comparison does not cover the staged handoff or the intentional CI failure case. Run the pair once before the candidate action pull request merges. Keep the two fixture releases as evidence. Use the ordinary `Fixture Test` workflow for later integration cases. <details> <summary>Migration guide</summary> Merge this pull request first. Open [Fixture Pair Test](https://github.com/PSModule/Release-GHRepository/actions/workflows/Fixture-Pair-Test.yml) in `PSModule/Release-GHRepository`. Select **Run workflow** and branch `main` for each step. The workflow runs only on producer `main`. Make sure the fixture has no releases, tags, or open fixture cases. Make sure Shelly has access to the fixture and the `release:patch` label exists. Do not update the case branches or merge other fixture pull requests during the comparison. 1. Dispatch `start-legacy` with no pull request numbers. Find the fixture pull request in the job summary. Use normal independent review and squash merge. 2. Wait for the successful legacy report. Dispatch `start-candidate` with the open producer pull request number (`candidate_pr`) and the merged legacy fixture pull request number (`legacy_pr`). For the first comparison, keep #109 open. 3. Wait for the `start-candidate` run to verify the open fixture case. Use normal independent review and squash merge on that fixture pull request. 4. Dispatch `compare` with `legacy_pr` and `candidate_fixture_pr`. Check the job summary for the exact action SHAs, run links, squash commits, and tag results. If a start run fails at the label step, find the open fixture pull request in the job summary. Close it without a merge before you retry the start step. </details> <details> <summary>Technical details</summary> - The producer checks out its trusted workflow commit. It resolves the open same-repository candidate pull request without checking out or running candidate code. - The driver verifies the fixture repository name, ID, and default branch. Each start job requests a write token for the fixture repository only. `compare` uses a read-only token. - The candidate gate requires the exact v2.0.3 report and a stable `v0.0.1` tag at the legacy squash. The original case and its squash must have the same parent. The fixture `main` and inventory must still match the legacy result. - The final comparison binds both reports to their exact sources. It checks the tag targets, the patch increment, and that the candidate squash directly follows the legacy squash. - All 66 credential-free driver tests pass locally. The added tests cover a legacy squash on a changed base and an open pull request left by a failed label request. The [fixture's v2.0.3 baseline check](https://github.com/PSModule/Release-GHRepository-Test/actions/runs/46539940401) passed without publication. No live pair has run. - The producer `Release` workflow only processes changes to `action.yml` or `src/`. This PR changes neither path. The scope check found no other open issue that this PR closes. | Changed surface | Standards checked | Framework docs checked | Result | | --- | --- | --- | --- | | Driver and regression tests | PowerShell, Testing | [GitHub REST Git commits](https://docs.github.com/en/rest/git/commits#get-a-commit) | Detects drift before the legacy squash | | Fixture workflows | GitHub Actions, YAML | [GitHub manual dispatch](https://docs.github.com/en/actions/how-tos/manage-workflow-runs/manually-run-a-workflow) | Runs only from producer `main` | | Operator guide | Technical Writing Guide | The merged fixture contract | Gives the three dispatches in order | </details> <details> <summary>Related links</summary> - Follows #122. - Depends on PSModule/Release-GHRepository-Test#5. - 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.
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.
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.
Migration guide
candidate_prto an open, compatible pull request from this repository tomain. Omitcandidate_pronly after producermainsupports the fixture contract. After an independent squash merge, verify the push withfixture_pr.Technical details
mainat0fbca9f0c422d1d8f79e97b3b9fe1d50e106feaband accepted Release-GHRepository requires a release label or a configured bump #109 at3f22cf227aee5709f430eeb79885a2121807a629.4d34fc6f3530475a28e7cd87ecc35581d0d03c92. It merges cleanly with Release-GHRepository requires a release label or a configured bump #109. The updated comparison PR includes this head and passes all 64 credential-free tests at69a92bd5fd21b546f61c57ca417847ba5aa95bc2.main. This PR does not changeaction.yml,src, or the existing release workflow. It changes no versioned action or consumer template..github/scripts/*.ps1,.github/scripts/ReleaseFixture.psm1.github/workflows/Fixture-Test.yml.github/workflows/Fixture-Driver-Test.yml,tests/ReleaseFixture.Tests.ps1docs/Fixture-Test.mdRelated links