Skip to content

ci: remove unreachable release/orchestration workflows from beta - #407

Merged
TKIPisalegacycipher merged 1 commit into
betafrom
ci/remove-unreachable-workflows-beta
Jun 10, 2026
Merged

ci: remove unreachable release/orchestration workflows from beta#407
TKIPisalegacycipher merged 1 commit into
betafrom
ci/remove-unreachable-workflows-beta

Conversation

@TKIPisalegacycipher

Copy link
Copy Markdown
Collaborator

Removes 5 workflows from beta that can only ever execute from the default branch (main), per GitHub's trigger semantics:

Workflow Trigger Why beta's copy never runs
create-release.yml workflow_run + workflow_dispatch workflow_run always uses the default-branch copy; dispatch automation passes no --ref, so it runs main's too
regenerate-library.yml workflow_dispatch main's copy is the sole orchestrator — it checks out beta via ref: and operates on it
publish-release.yml release + workflow_dispatch release event uses the default-branch copy
watch-openapi-release.yml schedule + workflow_dispatch schedule only fires on the default branch
enable-early-access.yml schedule + workflow_dispatch same

Why now

Beyond being unreachable, these copies had drifted into a stale, superseded architecture (e.g. watch-openapi's old 3-job graph writing deprecated repo variables). A manual UI dispatch against beta would run obsolete logic — an active footgun, not just dead weight. This supersedes the create-release sync (#405): single-sourcing on main is strictly better than keeping copies in lockstep.

Kept (branch-scoped — must exist per-branch)

test-pr.yml (push/PR), test-library.yml (workflow_call), test-library-generator.yml (push/PR), dependabot-auto-merge.yml (pull_request_target).

Verified no remaining workflow on beta references the deleted files.

🤖 Generated with Claude Code

These workflows are only ever executed from the default branch (main):

- create-release.yml      (workflow_run + dispatch; workflow_run always
                           uses main's copy, and dispatch automation passes
                           no --ref so it also runs main's)
- regenerate-library.yml  (dispatch only; main's copy is the sole
                           orchestrator and checks out beta via ref:)
- publish-release.yml     (release + dispatch; release event uses main's copy)
- watch-openapi-release.yml (schedule + dispatch; schedule only fires on
                           the default branch)
- enable-early-access.yml (schedule + dispatch; same)

Their beta copies could never fire from automation and had drifted into
a stale, superseded architecture (e.g. watch-openapi's old 3-job graph
writing deprecated repo variables), making a manual dispatch actively
harmful. Single-source them on main. Branch-scoped workflows (test-pr,
test-library, test-library-generator, dependabot-auto-merge) are kept.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@TKIPisalegacycipher
TKIPisalegacycipher merged commit db0ddfe into beta Jun 10, 2026
1 check passed
@TKIPisalegacycipher
TKIPisalegacycipher deleted the ci/remove-unreachable-workflows-beta branch June 10, 2026 21:03
TKIPisalegacycipher added a commit that referenced this pull request Jul 8, 2026
PRs #407/#408 deleted this workflow from beta/httpx as unreachable
orchestration, but it triggers on 'release: [created]', which runs the
workflow file from the TAGGED COMMIT's tree, not the default branch. Every
beta/dev release cut after 2026-06-10 created a GitHub Release but never
published to PyPI. Restoring it here so releases from this branch publish
again. create-release/watch/regenerate/enable-early-access stay single-sourced
on main (workflow_run/schedule/dispatch triggers use main's copy).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
TKIPisalegacycipher added a commit that referenced this pull request Jul 8, 2026
PRs #407/#408 deleted this workflow from beta/httpx as unreachable
orchestration, but it triggers on 'release: [created]', which runs the
workflow file from the TAGGED COMMIT's tree, not the default branch. Every
beta/dev release cut after 2026-06-10 created a GitHub Release but never
published to PyPI. Restoring it here so releases from this branch publish
again. create-release/watch/regenerate/enable-early-access stay single-sourced
on main (workflow_run/schedule/dispatch triggers use main's copy).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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