Repository navigation
fix(release): restore Changesets v2 git pushes - #6658
Conversation
There was a problem hiding this comment.
Ladon verdict: Request changes
Request changes — 1 blocking finding.
Blocking findings
.github/workflows/release.yml:119— changesets/action@v2 input contract unverified; wrong key fails release closed. The workflow flips to@v2and renames every input to kebab-case, moving the token from env to awith:input. GitHub Actions silently drops unknownwith:inputs, so any name mismatch fails closed at release time. The correctness hinges entirely on v2 honoring these exact input names, and this is unverified against the action's actual contract.
Medium findings
tests/release-workflow-immutability.test.cjs:74— Test only string-matches the workflow YAML, not the action's behavior; it cannot catch an input-name mismatch that the action itself would silently drop..changeset/restore-changesets-v2-git-pushes.md:1— Empty-frontmatter changeset on an operational-only PR; an empty changeset added to satisfy CI is the wrong fix.
Row 1 of the decision table fires on the high finding → request-changes. Note also that gated_paths is true (.github/workflows/release.yml) with review_decision: REVIEW_REQUIRED, so this PR cannot auto-approve regardless; a real human/CODEOWNERS approval is required before merge.
Blocking findings
- .github/workflows/release.yml:119 — changesets/action@v2 input contract unverified; wrong key fails release closed
Medium findings
- tests/release-workflow-immutability.test.cjs:74 — Test only string-matches the workflow YAML, not the action's behavior
- .changeset/restore-changesets-v2-git-pushes.md:1 — Empty-frontmatter changeset on an operational-only PR
523e29a to
92776d9
Compare
There was a problem hiding this comment.
Ladon verdict: Request changes
Request changes — 1 blocking finding.
This is a subsequent review. The developer resolved prior finding #3 (the empty-frontmatter changeset now carries real frontmatter and is correctly protocol-scoped per check-changeset-protocol-scope.cjs). Credit for that iteration. However, a high-severity finding on the load-bearing release path remains.
Blocking findings
- .github/workflows/release.yml:124 — changesets/action input contract unverified; GITHUB_TOKEN env removed. The renamed input keys plus the new token wiring are the load-bearing risk on the release path; a wrong key fails the release closed. This is the same class of blocker carried over from the prior run and is not yet resolved.
Medium findings
- tests/release-workflow-immutability.test.cjs:77 — Workflow test is a change-detector (YAML deepStrictEqual), not a contract check; it cannot catch a wrong action input key.
Row 1 of the decision table fires on the high-severity finding → request-changes. Note: gated_paths is true (release.yml matches .github/workflows/**) and review_decision is CHANGES_REQUESTED, so an approve would be barred regardless; the high finding is the operative blocker here.
Blocking findings
- .github/workflows/release.yml:124 — changesets/action input contract unverified; GITHUB_TOKEN env removed; wrong key fails release closed
Medium findings
- tests/release-workflow-immutability.test.cjs:77 — Workflow test is a change-detector, not a contract check
92776d9 to
7aee8fc
Compare
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated-paths hard gate not satisfied (release.yml under .github/workflows/**, review_decision=CHANGES_REQUESTED).
The developer resolved the prior HIGH: changesets/action is now pinned to a SHA (v2.1.0), inputs renamed to the v2 kebab contract, and CI live-asserts against the pinned action.yml/src/index.ts to machine-verify the input contract. No critical/high findings remain in this pass.
However, this PR modifies .github/workflows/release.yml, which is a gated path, and review_decision is CHANGES_REQUESTED (not APPROVED). Per decision table row 2, the outcome must be escalate — a human/CODEOWNERS approval is required before merge.
Medium findings (non-blocking):
- tests/release-workflow-immutability.test.cjs:47 — Live curl to raw.githubusercontent.com at test module top-level makes the npm test gate network-dependent.
Escalation reason:
.github/workflows/release.yml(modified) is under the hard approval gate.github/workflows/**; requires human/CODEOWNERS review before merge.
Medium findings
- tests/release-workflow-immutability.test.cjs:47 — Live curl to raw.githubusercontent.com at test module top-level makes npm test gate network-dependent
Why human review
- Gated path
.github/workflows/release.yml(modified) is under the hard approval gate.github/workflows/**and review_decision is CHANGES_REQUESTED, not APPROVED — human/CODEOWNERS review required before merge. - This PR touches a path under a hard, non-overridable approval gate (.github/workflows/release.yml (modified) matches
.github/workflows/**) and the current GitHub review decision is 'CHANGES_REQUESTED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
7aee8fc to
acd4283
Compare
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated path requires human/CODEOWNERS approval.
This PR modifies .github/workflows/release.yml, which matches the hard approval gate .github/workflows/** (gated_paths: true). The current review_decision is CHANGES_REQUESTED, not APPROVED, so the gate is not satisfied (decision rule row 2). Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
Note on iteration: the developer resolved the sole prior Medium finding (live curl to raw.githubusercontent.com at test module top-level) by vendoring the changesets/action v2.1.0 fixtures and verifying them via sha256 + input-contract checks. The current run surfaces no blocking or Medium findings — the workflow migration from changesets/action@v1 to SHA-pinned v2.1.0 is wire-safe, the token conflict check clears, and the changeset is protocol-scoped and correctly patch-bumped. The escalation here is purely the deterministic gated-path gate, not a code concern.
Escalation reasons
.github/workflows/release.yml(modified) is under the hard, non-overridable approval gate.github/workflows/**andreview_decisionisCHANGES_REQUESTED, notAPPROVED— human/CODEOWNERS approval required before merge.
Why human review
- Gated path
.github/workflows/release.yml(modified) matches the hard approval gate.github/workflows/**and review_decision is CHANGES_REQUESTED, not APPROVED — human/CODEOWNERS review required before merge. - This PR touches a path under a hard, non-overridable approval gate (.github/workflows/release.yml (modified) matches
.github/workflows/**) and the current GitHub review decision is 'CHANGES_REQUESTED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
Superseded by subsequent commits and Ladon review on acd4283, which reports no blocking or medium findings. All associated review threads are resolved.
What changed
changesets/action@v2and its Changesets v3-compatible input names.push-with-git-cliso beta-scale generated release commits avoid GitHub's API payload limit.Why
The release workflow failed before creating the beta.1 Version Packages PR because action v1 interpreted the CLI v3
.changeset/pre/archive as a legacy changeset directory and tried to read.changeset/pre/changes.md. The earlier v2 rollback avoided a large GraphQL payload, but current v2 supports git-CLI pushes directly.Validation
npm run test:release-workflownpx --yes @changesets/cli@^3.0.0 status --since=origin/maingit diff --check