Skip to content

ci(actions): diff a merge group from its merge base, not the group ahead - #2356

Merged
HuiJun merged 6 commits into
developfrom
ci/merge-group-diff-base
Nov 18, 2026
Merged

HuiJun merged 6 commits into
developfrom
ci/merge-group-diff-base

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What and why

In .github/workflows/pr.yml, "Decide which areas to run" set DIFF_BASE to github.event.merge_group.base_sha for 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) diffed 629b56b1e1..65d6c25003, got go=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_BASE carries the base ref (merge_group.base_ref or github.base_ref); the step turns it into origin/<branch> and scripts/ci-changed-areas.sh takes the merge base with the head as it already did for pull requests. A dispatch keeps HEAD (no diff, every area runs).
  • "Check the protobuf schema for breaking changes" drops BASE_SHA and always compares against git merge-base origin/$BASE_REF $HEAD_SHA, for the same reason.
  • tests/hygiene/merge_group_workflow_test.go encodes the corrected contract and adds TestPRWorkflowNeverDiffsFromMergeGroupBaseSHA, which fails on any read of merge_group.base_sha in 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): develop is 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/hygiene fails on develop's pr.yml with the new test and passes here; go vet ./tests/hygiene, gofmt -l empty.
  • actionlint .github/workflows/pr.yml reports nothing new (the two pre-existing shellcheck style notes are unchanged).
  • python3 scripts/changelog.py check clean.
  • Evidence for the diagnosis: the "Changed areas" log of merge-group run 44071575670 shows DIFF_BASE 629b56b1e1 / DIFF_HEAD 65d6c25003 and only python, java, mdk, syson true.

Checklist

  • make test and make lint pass locally (the affected test package and lints; the workflow change itself runs on this PR)
  • Tests added or updated for the change
  • Documentation extended where it already covers the surface (CONTRIBUTING's GitHub Actions section describes tiers, not the diff base)
  • Changelog entry added as changes/unreleased/<slug>.<section>.md, not as an edit to CHANGELOG.md
  • baselines regenerated and make docs-counts run if a gate count moved (not applicable)
  • No internal work-item labels (waves, slices, F4, K5) in the body, docs, or changelog

Link 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

Devin Review

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>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

Co-Authored-By: jason.han <hanhuijun@gmail.com>

@devin-ai-integration devin-ai-integration Bot left a comment •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

View findings in Devin Review · Follow Devin's work

Devin Review

…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.
devin-ai-integration[bot]

This comment was marked as resolved.

…develop

Co-Authored-By: jason.han <hanhuijun@gmail.com>
@HuiJun
HuiJun added this pull request to the merge queue Nov 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to invalid changes in the merge commit Nov 17, 2026
@HuiJun
HuiJun added this pull request to the merge queue Nov 17, 2026
@HuiJun
HuiJun removed this pull request from the merge queue due to a manual request Nov 17, 2026
@HuiJun
HuiJun added this pull request to the merge queue Nov 17, 2026
@HuiJun
HuiJun removed this pull request from the merge queue due to a manual request Nov 18, 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>
devin-ai-integration Bot and others added 2 commits November 18, 2026 04:28
…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>
@HuiJun
HuiJun added this pull request to the merge queue Nov 18, 2026
Merged via the queue into develop with commit 0823104 Nov 18, 2026
32 of 56 checks passed
@HuiJun
HuiJun deleted the ci/merge-group-diff-base branch November 18, 2026 17:03
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