Skip to content

ci: match dependency branch by head_ref on pull_request events (lib-tests)#94

Merged
Jammy2211 merged 1 commit into
mainfrom
claude/pyautoconf-pyautonerves-rename-ik0cgu
Jul 19, 2026
Merged

ci: match dependency branch by head_ref on pull_request events (lib-tests)#94
Jammy2211 merged 1 commit into
mainfrom
claude/pyautoconf-pyautonerves-rename-ik0cgu

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

What

lib-tests.yml computed the dependency branch as github.ref_name, which on pull_request events is the PR merge ref (e.g. 1395/merge), not the source branch. So it never found the matching sibling branch and fell back to each dependency's main. Use github.head_ref || github.ref_name — matching docs-build.yml and smoke-tests.yml, which already do this.

Why

Breaks coordinated cross-repo PRs: e.g. a library PR that pins a renamed dependency (autonerves) present only on the sibling PyAutoConf branch — the PR-context run cloned PyAutoConf main (still autoconf) and failed to resolve autonerves. Push runs already passed (they use ref_name correctly); this makes the PR runs correct too.

🤖 Generated with Claude Code

https://claude.ai/code/session_013ciVftxvYpefh59wSkR7jN


Generated by Claude Code

…ests)

lib-tests.yml computed the dependency-branch as `github.ref_name`, which on
pull_request events is the PR merge ref (e.g. `1395/merge`), not the source
branch — so it never found the matching sibling branch and fell back to each
dep's main. This breaks coordinated cross-repo PRs (e.g. a library that pins a
renamed dependency present only on the sibling branch). Use
`github.head_ref || github.ref_name`, matching docs-build.yml and
smoke-tests.yml, which already do this.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013ciVftxvYpefh59wSkR7jN
@Jammy2211
Jammy2211 merged commit cc19fdb into main Jul 19, 2026
4 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