Skip to content

fix(release): restore Changesets v2 git pushes - #6658

Merged
bokelley merged 1 commit into
mainfrom
fix/changesets-v2-git-cli
Aug 18, 2026
Merged

bokelley merged 1 commit into
mainfrom
fix/changesets-v2-git-cli

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

What changed

  • Restore changesets/action@v2 and its Changesets v3-compatible input names.
  • Enable push-with-git-cli so beta-scale generated release commits avoid GitHub's API payload limit.
  • Add a release-workflow regression check for both requirements.

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-workflow
  • npx --yes @changesets/cli@^3.0.0 status --since=origin/main
  • pre-commit suite: 1,046 unit tests, dynamic-import lint, format identity lint, call API lint, and TypeScript typecheck
  • git diff --check

@bokelley
bokelley requested a review from bmilekic August 18, 2026 21:25
@bokelley
bokelley enabled auto-merge (squash) August 18, 2026 21:25
Comment thread .github/workflows/release.yml Resolved

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 @v2 and renames every input to kebab-case, moving the token from env to a with: input. GitHub Actions silently drops unknown with: 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

@bokelley
bokelley force-pushed the fix/changesets-v2-git-cli branch from 523e29a to 92776d9 Compare August 18, 2026 21:32
Comment thread .github/workflows/release.yml Resolved

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@bokelley
bokelley force-pushed the fix/changesets-v2-git-cli branch from 92776d9 to 7aee8fc Compare August 18, 2026 21:39

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Aug 18, 2026
@bokelley
bokelley force-pushed the fix/changesets-v2-git-cli branch from 7aee8fc to acd4283 Compare August 18, 2026 21:46

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/** and review_decision is CHANGES_REQUESTED, not APPROVED — 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.

@bokelley
bokelley disabled auto-merge August 18, 2026 21:56
@bokelley
bokelley dismissed stale reviews from aao-secretariat[bot] and aao-secretariat[bot] August 18, 2026 21:58

Superseded by subsequent commits and Ladon review on acd4283, which reports no blocking or medium findings. All associated review threads are resolved.

@bokelley
bokelley enabled auto-merge (squash) August 18, 2026 21:58
@bokelley
bokelley disabled auto-merge August 18, 2026 21:59
@bokelley
bokelley merged commit 39290c4 into main Aug 18, 2026
29 checks passed
@bokelley
bokelley deleted the fix/changesets-v2-git-cli branch August 18, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ladon/needs-human-review Ladon has escalated this PR for human review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant