Skip to content

fix(ci): avoid concurrent builds on release tag pushes - #3089

Merged
bokelley merged 2 commits into
mainfrom
bokelley/fix-release-tag-push
Oct 1, 2026
Merged

bokelley merged 2 commits into
mainfrom
bokelley/fix-release-tag-push

Conversation

@bokelley

@bokelley bokelley commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Skip the local formatting, typecheck, and build hook for tag-only pushes. Changesets pushes package release tags concurrently after the release build and PR CI have passed; the three hooks were rebuilding the same dist directory at once and racing on file removal.
  • Keep the existing validation for every push that includes a branch ref. Upgrade already installed hooks to this version.
  • Add an empty changeset because this is release tooling and does not change package contents.

The @adcp/[email protected] publish run reported package publication but failed while pushing its three tags: https://github.com/adcontextprotocol/adcp-client/actions/runs/36861187994

Verification

  • Installed the generated hook and simulated a tag-only push: it exited without calling npm.
  • Simulated a branch push with an npm stub: formatting, typecheck, and build were all invoked.
  • node --check scripts/install-hooks.js, Prettier, diff check, and the normal pre-push formatting, TypeScript, and library build passed.
  • npx changeset status --since=origin/main

@bokelley
bokelley enabled auto-merge (squash) October 1, 2026 12:38
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Oct 1, 2026

@aao-secretariat aao-secretariat Bot 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.

Ladon verdict: Approve

Approve — one-file fix to the generated pre-push hook in scripts/install-hooks.js that skips format/typecheck/build on tag-only pushes, resolving the concurrent shared-dist rebuild race during Changesets' three-tag release push.

Checked:

  • Bash shape is correct (loop reads stdin directly, no subshell; fail-closed on empty stdin; mixed branch+tag pushes still validate).
  • Upgrade-detection string matches the emitted hook text.
  • No changeset required — dev-only tooling, not in package.json files, no published artifact.

No blocking or Medium findings. high_risk is false, gated_paths is false, and no no-auto-approve team match. Falls through to row 9.

@aao-secretariat aao-secretariat Bot 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.

Re-approval: no reviewable delta since the prior approval; re-submitting after stale-review dismissal.

@bokelley
bokelley merged commit 2ca6c46 into main Oct 1, 2026
40 checks passed
@bokelley
bokelley deleted the bokelley/fix-release-tag-push branch October 1, 2026 12:55
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