Skip to content

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

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

ruehowl merged 2 commits 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. The same fix went to lumen-payload in sourceplane/lumen-payload#29.

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.

Run 40819478009 (cms to prod) went green and was a dry run. Getting a new CMS_SETUP_TOKEN onto the Worker then took a docs PR under apps/cms (#23).

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, including the new cloudflare-r2-cms. 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, on this branch merged with current main:

Event Before After
Dispatch cms → stage or prod 8-step verify (dry run) 13-step deploy: wire-live, deploy, secrets-live, smoke
Dispatch cloudflare-r2-cms → stage Plan only Plan + Apply
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. I'll merge it only after the media deploy (#25) has finished on main.


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 (run 40819478009: cms on prod,
a dry run).

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:56
@ruehowl
ruehowl merged commit 3527720 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