Skip to content

fix: validate optional release workflow pins without requiring unused files - #168

Merged
vitormattos merged 2 commits into
mainfrom
fix/optional-release-workflow-pins-20261122
Nov 22, 2026
Merged

vitormattos merged 2 commits into
mainfrom
fix/optional-release-workflow-pins-20261122

Conversation

@vitormattos

Copy link
Copy Markdown
Member

Problem

The Extract release preparation workflow invokes release:pipeline-verify with prepare-release.yml, release-metadata.yml, nightly-release.yml and appstore-build-publish.yml. The last two do not exist on either main or the stable branches. Release Tool 0.12.0 rejects the absent files before it can prepare a release PR (Extract Actions run 45076655337).

Solution

Use the existing GitRepository::fileExists contract before readFile. Ignore an optional file only if it is absent in both the candidate and trusted reference. Reject an unexpected addition or deletion even if neither side lists any tracked action pins. The remaining present workflows are still checked against the trusted main reference.

Evidence

  • PHPUnit: 318 tests, 1,142 assertions, PASS (PHP 8.5).
  • Reproduced release:pipeline-verify on Extract origin/stable33 against trusted origin/main with the full four-file list: aligned: true, without weakening the check on present workflows.
  • Three new negative/positive regression cases for missing optional files, unilateral additions and unilateral deletions.

Release integration

This fixes the first Extract release blocker; after merge publish a patch release of Release Tool, update the immutable action pins on Extract main/stables, then rerun its official prepare-release workflow. Preserve signed DCO commits; do not squash.

Compare presence before inspecting trusted release workflow pins.
Skip files absent from both revisions but reject unilateral additions
or removals, including files with no tracked action pins.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Publish the verified optional workflow pin checking fix as a patch
version for the Extract first-release pipeline.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
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.

1 participant