Skip to content

ci: remove unreachable release/orchestration workflows from httpx - #408

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

ci: remove unreachable release/orchestration workflows from httpx#408
TKIPisalegacycipher merged 1 commit into
httpxfrom
ci/remove-unreachable-workflows-httpx

Conversation

@TKIPisalegacycipher

Copy link
Copy Markdown
Collaborator

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

Workflow Trigger Why httpx'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 httpx 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

(httpx has no enable-early-access.yml.)

Why now

Beyond being unreachable, these copies had drifted into a stale, superseded architecture. A manual UI dispatch against httpx would run obsolete logic — an active footgun. This supersedes the create-release sync (#406): 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 httpx 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 httpx 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)

Their httpx copies could never fire from automation and had drifted into
a stale, superseded architecture, 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.
(httpx has no enable-early-access.yml.)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@TKIPisalegacycipher
TKIPisalegacycipher merged commit 1f84868 into httpx Jun 10, 2026
1 check passed
@TKIPisalegacycipher
TKIPisalegacycipher deleted the ci/remove-unreachable-workflows-httpx 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