Skip to content

ci: compare PR merge commits with their current base#73

Merged
Rockdu merged 2 commits into
mainfrom
ci/fix-docker-path-detection
Jul 27, 2026
Merged

ci: compare PR merge commits with their current base#73
Rockdu merged 2 commits into
mainfrom
ci/fix-docker-path-detection

Conversation

@Rockdu

@Rockdu Rockdu commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

What

Compare the checked-out PR merge commit with its first parent (HEAD^1) when detecting Docker input changes.

Why

The merge commit already includes current main; diffing it against github.event.pull_request.base.sha can include unrelated changes that landed on main (e.g., Dockerfile changes) and trigger unnecessary image builds.

Test plan

ci-sglang-repo: sgl-project/sglang
ci-sglang-pr: #32420

@Rockdu Rockdu added run-ci-e2e Run e2e metric-regression tests on this PR and removed run-ci-e2e Run e2e metric-regression tests on this PR labels Jul 27, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
@Rockdu Rockdu changed the title ci: detect docker changes from the PR's own files, not a base..HEAD diff ci: compare PR merge commits with their current base Jul 27, 2026
@Rockdu
Rockdu merged commit 0533c99 into main Jul 27, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-ci-e2e Run e2e metric-regression tests on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant