Repository navigation
ci(actions): diff a merge group from its merge base, not the group ahead - #2356
Merged
Merged
Conversation
Changed areas and the protobuf wire-compatibility check read a merge group's base_sha, which inside the queue is the group commit of the entry queued ahead, not the base branch: a group whose last entry touched one client ran only that client's jobs and merged the failed entries ahead of it. Both now diff from the merge base with origin/<base_ref>, and tests/hygiene refuses any read of merge_group.base_sha. Co-Authored-By: jason.han <hanhuijun@gmail.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Contributor
Author
There was a problem hiding this comment.
Note
Newer findings are available below. Devin Review posted a newer report on this PR, in addition to the findings presented here.
Devin Review found 3 findings. Devin automatically fixed all 3 findings.
Fixed by Devin (3)
- Area-selection comment exceeds repository limit — Area-selection comment cut to two lines.
- Wire-compatibility comment exceeds repository limit — Wire-compatibility comment cut to two lines.
- Area-selection test comment exceeds repository limit — Hygiene test comments (all three touched) cut to two lines each.
…f-base develop is over the browser REPL gzip budget since #2257 landed, so this PR's own WebAssembly gate cannot pass without the raise it is queued behind.
…develop Co-Authored-By: jason.han <hanhuijun@gmail.com>
github-merge-queue
Bot
removed this pull request from the merge queue due to invalid changes in the merge commit
Nov 17, 2026
devin-ai-integration Bot
added a commit
that referenced
this pull request
Nov 18, 2026
…ow-end-feature-name-variable Conflicts: the api-json differential (index and six fragments both PRs re-recorded), one Turtle golden digest, the adjudication prose and the api-json form test file, where #2359 and this branch each appended a paragraph and a test — both kept, develop's first. Re-recorded by tool on the merged tree: tests/export goldens (-update), the structure differential (-update-structure-differential), the api-json differential (pilot-apijson-diff -update; -check reproduces). The movement against develop is this branch's alone: FeatureMembership.memberName oursMissing -> presentEqual in the same 11 fragments, 92 values (presentEqual 2106153 -> 2106245, oursMissing 302536 -> 302444), restated in docs/project/api-json-differential.md. derived-census -check reproduces. Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
…n the tier script The self-model asserts pr.yml runs scripts/ci-changed-areas.sh on one line, so the remote-ref mapping moves from the step into the script. Co-Authored-By: jason.han <hanhuijun@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
In
.github/workflows/pr.yml, "Decide which areas to run" setDIFF_BASEtogithub.event.merge_group.base_shafor merge-group runs. Inside the merge queue that SHA is the group commit of the entry queued ahead, not the base branch, so a group's diff held only the files of its own last entry. On 2026-11-17 the group for #2350 (a Maven dependency bump) diffed629b56b1e1..65d6c25003, gotgo=false, skipped the Go shards, the WebAssembly size gate and the baseline checks, passed on the client jobs alone, and GitHub merged the group commit, landing #2257, #2334, #2291 and #2352 ahead of it, each of whose own groups had failed the WebAssembly gate.Changes:
DIFF_BASEcarries the base ref (merge_group.base_reforgithub.base_ref); the step turns it intoorigin/<branch>andscripts/ci-changed-areas.shtakes the merge base with the head as it already did for pull requests. A dispatch keepsHEAD(no diff, every area runs).BASE_SHAand always compares againstgit merge-base origin/$BASE_REF $HEAD_SHA, for the same reason.tests/hygiene/merge_group_workflow_test.goencodes the corrected contract and addsTestPRWorkflowNeverDiffsFromMergeGroupBaseSHA, which fails on any read ofmerge_group.base_shain the workflow.The two existing hygiene tests pinned the previous (wrong) base and were changed deliberately; their comments say why.
This branch merges #2355 (the browser REPL gzip budget raise):
developis over that budget since #2257 landed through the bypass above, so this PR's own WebAssembly gate cannot pass without it. Merge #2355 first; this PR then carries no change of its own beyond the three files listed.How it was verified
go test -count=1 ./tests/hygienefails ondevelop'spr.ymlwith the new test and passes here;go vet ./tests/hygiene,gofmt -lempty.actionlint .github/workflows/pr.ymlreports nothing new (the two pre-existing shellcheck style notes are unchanged).python3 scripts/changelog.py checkclean.DIFF_BASE 629b56b1e1/DIFF_HEAD 65d6c25003and onlypython,java,mdk,sysontrue.Checklist
make testandmake lintpass locally (the affected test package and lints; the workflow change itself runs on this PR)changes/unreleased/<slug>.<section>.md, not as an edit toCHANGELOG.mdmake docs-countsrun if a gate count moved (not applicable)F4,K5) in the body, docs, or changelogLink to Devin session: https://nasa-jpl-demo.devinenterprise.com/sessions/b755ad469d6d4fce894a453264216139
Open in Devin Desktop: https://nasa-jpl-demo.devinenterprise.com/desktop/session/b755ad469d6d4fce894a453264216139?variant=devin
Requested by: @HuiJun
🟢 Devin Review found nothing to fix · View findings · Follow Devin's work