Skip to content

fix(ci): the on-demand deploy deploys - #29

Merged
ruehowl merged 1 commit into
mainfrom
orun/DSP-1-dispatch-deploys
Oct 29, 2026
Merged

ruehowl merged 1 commit into
mainfrom
orun/DSP-1-dispatch-deploys

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Task DSP-1. The CI workflow's on-demand deploy (workflow_dispatch, inputs component and environment) planned the named component but never deployed it.

Why

No component's profileRules named the github-dispatch trigger. So every stage and prod subscription fell back to its default profile:

  • Workers: verify, which is build, typecheck and wrangler deploy --dry-run.
  • Terraform: plan-only.

The dispatch went green and deployed nothing. That cost a round trip today when a newly set CMS_SETUP_TOKEN had to reach a CMS Worker.

What changes

  • The fix. Every subscription that deploys or applies on github-push-main now does the same on github-dispatch: 42 rules across 21 components. Pull requests keep their verify and plan-only profiles.
  • intent.yaml: the dispatch binding's comment explains the rule, and says a new component needs it too.
  • Docs: the CMS runbook and the operations guide now say the setup token reaches the Worker through a dispatch of cms, and that re-running an earlier run reuses its recorded result.

Verified

With orun plan on simulated events, before and after the change:

Event Before After
Dispatch cms → stage 8-step verify (dry run) 13-step deploy: wire-live, deploy, secrets-live, smoke
Dispatch supabase → prod Plan only Plan + Apply
Pull request (this diff, 57 jobs) — cms still the dry run; supabase still plan only

After merge, a dispatch of cms to stage should show the deploy and smoke steps in its log.

Note

This PR touches every component file. Its own CI verifies the whole fleet, and the merge redeploys every component to stage and prod with unchanged code.


Generated by Claude Code

A workflow_dispatch of CI (component, environment) planned the named
component, but no component's profileRules named github-dispatch, so each
stage and prod subscription fell back to its default profile: verify for
Workers (build, typecheck, wrangler --dry-run) and plan-only for Terraform.
The dispatch went green and deployed nothing.

Every subscription that deploys or applies on github-push-main now does the
same on github-dispatch: 42 rules across 21 components. Pull requests keep
their verify and plan-only profiles. Checked with orun plan on simulated
events: a dispatch of cms to stage plans the 13-step deploy (wire-live,
deploy, secrets-live, smoke), supabase to prod plans Apply, and a pull
request still plans the dry run and the plan.

The intent's dispatch comment and the CMS runbook and operations guide
say so (the setup token reaches the Worker by a dispatch of cms).

Orun-Task: DSP-1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013JuHbkZCjDrGgHdzCrCRqG
@ruehowl
ruehowl marked this pull request as ready for review October 29, 2026 09:53
@ruehowl
ruehowl merged commit 4e8f28d into main Oct 29, 2026
70 checks passed
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.

2 participants