Skip to content

Test exact release action candidates with Shelly - #3

Merged
Marius Storhaug (MariusStorhaug) merged 1 commit into
mainfrom
integration/shelly-release-cases
Nov 30, 2026
Merged

Marius Storhaug (MariusStorhaug) merged 1 commit into
mainfrom
integration/shelly-release-cases

Conversation

@MariusStorhaug

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

Copy link
Copy Markdown
Member

The release fixture tests the exact action commit that Shelly selects. Maintenance changes run the fixture tests but do not publish.

Internal: Bind fixture tests to the case and commit

Shelly opens a pull request with one synthetic case file. The fixture selects it by case ID and matches the push to its exact squash commit. Only the fixture Publish job can create test tags and releases.

Technical details
  • Pester 6.1.0: 15 tests passed. They cover case selection, stale case exclusion, labels, and release inventory changes.
  • The hosted maintenance run passed Prepare and CI. It skipped Calculate, Publish, and Verify. There are no fixture tags or releases.
  • Actionlint, yamllint, and PSScriptAnalyzer passed. Actionlint excludes the existing GitHub concurrency queue setting, which it does not yet support.
  • Local tests verified the missing-decision control and rejected a tag on the wrong commit. The producer driver accepted fixture-generated PR and squash reports and rejected a report for a different squash commit.
  • The Shelly-backed run remains pending until the driver and fixture workflow are on their default branches. This maintenance PR does not change approvals or GitHub App permissions.
Related links

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.

🔵 Needs a closer look

The coordinated producer/fixture rollout still awaits Shelly-backed end-to-end validation of candidate execution, bot report matching, and exact-squash publication under GitHub branch rules after both workflows reach their default branches.

No open issues 🎉

What changed in this PR

This PR binds release fixture runs to the exact action commit selected by Shelly and the fixture case’s squash commit. Maintenance changes run fixture tests without publishing.

Changes:

  • Replace the shared scenario marker with per-case JSON descriptors and a scenario contract.
  • Run the pinned candidate as a local action, gate publication on the selected case and tested commit, and emit schema 2 verification reports.
  • Add case-selection tests and update instructions for running and maintaining fixtures.
File Description
tests/​Scenario.txt Remove the shared idle scenario marker.
tests/​ReleaseCase.Tests.ps1 Test case selection, labels, candidate validation, and exact squash matching.
tests/​ReleaseCase.psm1 Select and validate Shelly fixture cases.
tests/​Invoke-ReleaseFixture.ps1 Prepare case-specific outputs and produce schema 2 verification reports.
tests/​FixtureContract.json Define supported scenarios and required release labels.
README.md Document the Shelly workflow, release baselines, and access boundaries.
.github/​workflows/​Release-Test.yml Execute exact action candidates and gate case-specific jobs and publication.

Review effort: Balanced

@MariusStorhaug
Marius Storhaug (MariusStorhaug) merged commit bea6604 into main Nov 30, 2026
16 checks passed
@MariusStorhaug
Marius Storhaug (MariusStorhaug) deleted the integration/shelly-release-cases branch November 30, 2026 14:57
Marius Storhaug (MariusStorhaug) added a commit that referenced this pull request Nov 30, 2026
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.
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