Repository navigation
docs: tighten commit organization rules in electron-chromium-upgrade skill - #52681
Merged
MarshallOfSound merged 1 commit intoAug 7, 2026
Merged
Conversation
…skill Review feedback on #52567 flagged two commit-organization problems in agent-driven Chromium rolls, both traceable to gaps in this skill's commit guidelines: - Two commits for the same upstream CL (8131017): Phase One committed the patch-context fixes, then Phase Two hit build fallout from the same CL and the phase-two guidelines prescribed a fresh `{CL-Number}: {title}` commit without ever saying to check for an existing one. Fixed by requiring a `git log --grep` check before any CL-titled commit and folding into the existing commit with `git commit --fixup` + autosquash (keeping the lint-legal `fixup!` commit if the rebase conflicts). - Unrelated CLs (8171126 + 8131017) grouped into one commit because they dirtied the same .patch files and the guidelines' multi-Ref allowance had no "genuinely related" qualifier. Fixed by requiring per-CL staging with `git add -p` and narrowing when multiple Ref lines are appropriate. Also adds a final self-check step to the Phase Two workflow: scan full commit messages (`git log --format='%h %B'` — Ref lines live in bodies) and verify each CL maps to exactly one non-fixup commit. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Fbjy87RXmaLqHXr8nhofJU
MarshallOfSound
approved these changes
Aug 6, 2026
MarshallOfSound
marked this pull request as ready for review
August 6, 2026 22:37
jkleinsc
approved these changes
Aug 6, 2026
ckerr
approved these changes
Aug 7, 2026
|
No Release Notes |
MarshallOfSound
deleted the
docs/chromium-upgrade-skill-commit-organization
branch
August 7, 2026 05:39
Contributor
|
I have automatically backported this PR to "44-x-y", please check out #52690 |
Contributor
|
I have automatically backported this PR to "42-x-y", please check out #52691 |
Contributor
|
I have automatically backported this PR to "43-x-y", please check out #52692 |
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.
Requested by Samuel Attard · Slack thread
Description of Change
Addresses David Sanders' review feedback on the #52567 Chromium roll by closing the gaps in this skill's commit guidelines that caused it. The rules live in the skill (rather than the roll workflow's prompt) so every consumer gets them: the CI roll, local
e auto-roll/ interactive sessions, and — once backported — release-branch rolls. The CI side keeps only an informational duplicate-CL warning (companion change: electron/agent-workflows#32).Before / After (what a roll reviewer sees)
Before:
8131017: Delete V8 extensions registration infrastructure..patchfiles. In chore: bump chromium to 153.0.7982.0 (main) #52567: 5459107 combines the CL 8171126 clang-format reformat with CL 8131017'sAllowScriptExtensions()removal — no logical connection, just same-file proximity.After:
git commit --fixup+ autosquash rebase; if the rebase conflicts, the lint-legalfixup!commit stays, keeping the pairing visible.git add -p; multipleRef:lines are reserved for genuinely inseparable adaptations.How
references/phase-two-commit-guidelines.md: before creating any{CL-Number}: {title}commit, checkgit log --oneline --grep={CL-Number}for an existing commit for that CL (it may exist from Phase One, an earlier build-fix iteration, or from before a context compaction) and fold instead of duplicating; narrowed the "You may include multiple Ref links if required" allowance to genuinely related changes.references/phase-one-commit-guidelines.md: "Atomic Commits" now states one commit per upstream CL and requires per-CL hunk staging (git add -p) when a single patch file carries changes from unrelated CLs.SKILL.md: new final Phase Two step — scan full commit messages withgit log --format='%h %B'(full bodies, sinceRef:lines don't appear in titles) and verify each CL is referenced by exactly one non-fixup commit.Evidence
From the Actions run transcripts of the rolls behind the feedback (electron/agent-workflows runs; private repo):
Duplicate commit — run 30632784160 (the #52567 roll): Phase One committed patch-context fixes as
8131017: Delete V8 extensions registration infrastructure. In Phase Two, after the build broke onshell/rendererfiles, the agent readreferences/phase-two-commit-guidelines.md(transcript event 497), said "Committing the two Phase Two fixes now." and rangit add shell/renderer/... && git commit -m "8131017: Delete V8 extensions registration infrastructure ..."— a second commit for the same CL, exactly as the guidelines prescribed: they call for a fresh{CL-Number}: {title}commit and never say to check for an existing one.Same bug recurring — run 30911796144 (2026-08-04 roll): CL 8140059 committed twice, both in Phase Two, the second after a context compaction ("This session is being continued from a previous conversation that ran out of context.") — the compaction case the new
git log --grepcheck covers.Grouped commit — run 30632784160:
add_didinstallconditionalfeatures.patchandchore_expose_isolate_parameter_in_script_lifecycle_observers.patcheach carried hunks from two unrelated CLs (8171126 brace reformat + 8131017 API removal). The agent staged both whole files into one commit with twoRef:lines ("chore: update script lifecycle observer patches for upstream changes") — file-levelgit addcannot separate them, and the old multi-Ref allowance permitted it.Blast radius (per the team's ground rules, diffed against past rolls): under these rules, run 30632784160's 6 proposed commits become 5 single-CL commits; run 30911796144's 10 become 9 (second 8140059 folds cleanly — disjoint files); runs 31008231164 and 31103944271 produce identical output.
Checklist
Release Notes
Notes: none
Generated by Claude Code