Repository navigation
fix(ci): drop the sections main already holds when the train resolves a stacked PR's ARCHITECTURE.md - #415
Merged
Conversation
… a stacked PR's ARCHITECTURE.md A PR stacked on another carries the lower PR's ARCHITECTURE.md sections; once that PR squash-lands, merging main into the upper one conflicts where both appended, and arch.py resolve appended main's copy and then the PR's, so the section came twice and the Spec coverage job's order check failed (#388 had two §7au on 2026-10-27). resolve now drops each whole section of the PR's side that main's file already holds word for word.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8df19673a0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…s whole sections Codex on #415: the substring test dropped a PR section whose text is a prefix of main's ("Decoded records: 10" against main's "100"). resolve now splits main's file into whole sections, heading to the next heading, and drops only a PR section equal to one of them; a differing copy is kept, and the order check then names the repeated suffix for a person to settle.
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.
Summary
tools/maintainer/train/arch.py resolvenow drops every##section on the PR's side of an append conflict that main's file already holds word for word.A PR stacked on another PR carries the lower PR's ARCHITECTURE.md sections. Once the lower PR squash-lands, merging main into the upper PR conflicts where both sides appended. The resolver kept main's copy and then the PR's, so the section appeared twice and the Spec coverage job's "numbered sections run in order" step failed. This happened to #388 on 2026-10-27: it carried #384's pre-squash §7au, and CI run 40573732934 failed with
section 7au where 7av belongs. I removed that duplicate by hand in aa957ef.The unp, table and R13 stacks are all stacked this way and would hit the same failure as each lower PR lands. The running train has used this resolver since 4:05 PM.
Spec reference
Maintainer tooling only.
Test plan
arch.py resolveleaves the headings 7a, 7b, 7c, 7d with 7c once.arch.py checkpasses.python3 -I -m py_compile.Source-provenance declaration
By submitting this PR I certify that my contribution does not incorporate executable code from any source whose license is incompatible with Apache-2.0. Specifically:
CLEANROOM.md).dwg-rsis Apache-2.0 and must remain compatible.My contribution is based on:
CLEANROOM.md.See
CLEANROOM.mdfor the full allowed/forbidden source list and the honest scope of what "clean-room" means for this project.Developer Certificate of Origin
By submitting this PR, I certify that the contribution complies with the
Developer Certificate of Origin 1.1.
Specifically, I affirm that the contribution is my own work (or rightfully
licensed to me) and that it can be distributed under the project's Apache-2.0
license.
I will sign off commits with
git commit -swhen asked, which adds aSigned-off-bytrailer to the commit message asserting the DCO.