chore(workflows): drop staging-branch triggers (Phase 3b of internal#81) #109
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "chore/trunk-based-drop-staging-from-workflow-triggers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 3b of internal#81. Lands after PR #108 (Phase 3a — promote staging-only commits to main).
Diff
4 workflow files. Each just drops
stagingfrom a triggers list:e2e-staging-canvas.ymlbranches: [main, staging]→[main](push + PR)e2e-staging-external.ymlbranches: [staging, main]→[main](push + PR)e2e-staging-saas.ymlredeploy-tenants-on-staging.ymlworkflow_run.branches: [staging]→[main](tenant redeploy fires when publish-workspace-server-image runs on main, not on staging)Net diff: 11 insertions, 12 deletions across 4 YAML files. All four still validate as YAML (verified locally).
Why these 4 only
Other staging-named workflows are NOT touched because their
stagingreferences are environmental, not branch-related:canary-staging.yml(cron): runs against staging-api.moleculesai.app tenant fleet; cron has no branch refe2e-staging-sanity.yml(cron): sameWorkflows that ARE pure-promote/sync machinery (
auto-promote-staging,auto-promote-on-e2e,auto-sync-main-to-staging,retarget-main-to-staging, …) are deleted in Phase 3c, after we no-op-verify Phases 3a and 3b green.Phase 3 sequence
stagingbranch + update agent prompts + runbooksTrunk-based migration: main is the only branch. Update 4 workflows that fired on staging-branch pushes to fire on main instead. - e2e-staging-canvas.yml: drop staging from push + pull_request - e2e-staging-external.yml: drop staging from push + pull_request - e2e-staging-saas.yml: drop staging from push + pull_request, update header comment that references the (now-obsolete) staging→main auto-promote flow - redeploy-tenants-on-staging.yml: workflow_run.branches changes from [staging] to [main] so the tenant redeploy fires when publish-workspace-server-image runs on main Workflows that target the staging tenant FLEET (canary-staging.yml, e2e-staging-sanity.yml) are not changed — they fire on cron, the word "staging" in their filenames refers to the deployment target environ- ment, not the git branch. Lands as Phase 3b after #108 promotes the 5 staging-only feature PRs (Phase 3a). Phase 3c deletes the obsolete promote/sync workflows (auto-promote-staging, auto-sync-main-to-staging, etc.) plus the staging branch itself, after we no-op-verify both Phase 3a and 3b green. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>LGTM — drops staging-branch triggers from 4 workflows per Phase 3b of internal#81. YAML validated locally; main is the new trigger; trunk-based migration progressing.