Skip to content

ci: deploy Pages once per merge batch on main - #91

Merged
arminazimi merged 2 commits into
mainfrom
chore/52-pages-once-per-batch
Nov 14, 2026
Merged

arminazimi merged 2 commits into
mainfrom
chore/52-pages-once-per-batch

Conversation

@arminazimi

@arminazimi arminazimi commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Closes #52

What changed

Pages no longer shares one concurrency group across every push to main (which cancels intermediate pending runs). A tip job waits briefly for a merge batch to settle, then only the tip of main builds and deploys; superseded commits exit successfully. Deploy still serializes with cancel-in-progress: false so two tips cannot race the Pages backend.

Workflow changes

  • Reason: stop Pages deployments from cancelling one another when several commits land on main in a short burst (merge-queue batch or rapid merges); deploy once per batch tip instead of once per commit.
  • Budget effect: none

Quality bar

Read docs/QUALITY.md before you change code, data, or docs. CI enforces its nine criteria: add no new debt, and allowlist existing debt only with an expiry.

Checks CI cannot make

  • Tests added or updated for changed behavior (workflow-only; tip gate is exercised on main after merge)
  • Changelog fragment not needed (ci change)

Verification

  • npm ci
  • npm run check

Notes for reviewers

Superseded tip jobs sleep 60s then skip; that is intentional so a typical merge-queue burst collapses to one deploy without cancelling runs. The pull-request runner-minute budget is unchanged because pages.yml does not run on pull requests.

arminazimi and others added 2 commits November 14, 2026 20:30
Skip superseded main pushes after a short settle wait so only the tip
builds and deploys, instead of cancelling intermediate Pages runs.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@arminazimi
arminazimi merged commit c3ad95d into main Nov 14, 2026
17 checks passed
@arminazimi
arminazimi deleted the chore/52-pages-once-per-batch branch November 15, 2026 18:15
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.

Deploy Pages once per merge batch instead of per commit

1 participant