Repository navigation
pr-text: preserve already-published U-Boot history - #13
Merged
Merged
Conversation
Filter the approved commit IDs only for the matching repository, pull request and exact head. Continue checking the current text and all other author commits, and fail when commit collection fails. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
satchlj
approved these changes
Nov 25, 2026
satchlj
left a comment
Member
There was a problem hiding this comment.
Verdict: MERGE at 96c30d77c428
Blockers: none
Checked: Full 2-file diff (.github/workflows/pr-text.yml and .github/aurora/published-history/aurora-silicon/u-boot/76/c2a5cbc629a69066ac8b79ec0d700b172c19d1bf.txt), paginated verification of all 45 commit SHAs against aurora-silicon/u-boot#76 and ancestry under u-boot#50 (5445237f1dcb), jq pagination/fail-closed behavior, DCO sign-off, and CI checks.
Evidence
- Scoped published-history allowlist: All 45 SHAs in
c2a5cbc629a69066ac8b79ec0d700b172c19d1bf.txtare unique, exist inaurora-silicon/u-boot#76(c2a5cbc629a69066ac8b79ec0d700b172c19d1bf, 151 total commits; 86 authored by PR author, 41 remaining after filtering), and sample ancestor checks against5445237f1dcb(u-boot#50merge) confirmbehind_by=0. - Fail-closed workflow filtering:
.github/workflows/pr-text.ymlusesshell: bash(-eo pipefail), reads the allowlist strictly from.canon-policykeyed by exact$GITHUB_REPOSITORY/$PR/$HEAD_SHA(falling back to/dev/null), and usesgh api ... --paginate | jq -rs --rawfile published "$published"([][]flattens single or multi-page arrays) to exclude only exact full-SHA matches while still checking PR title, body, and all other author commits. - DCO & CI: Commit
96c30d77c428carriesSigned-off-by:; CItestsandthis-pr / pr-textare bothSUCCESS.
RyanTheTide
commented
Nov 26, 2026
RyanTheTide
left a comment
Contributor
Author
There was a problem hiding this comment.
Verdict: MERGE at 96c30d77
Blockers: none.
Checked:
- All 45 listed IDs are ancestors of the U-Boot #50 merge
5445237f: compare API statusahead/behind_by 0for each one. All 45 are also among U-Boot #76's commits. - The list is read from
.canon-policy, theaurora-silicon/.githubcheckout at the caller'stool-ref, never from the PR under check. A PR can't add its own exception. - The exception applies only to one repository, PR and head SHA. Any other head falls back to
/dev/null. IDs match as whole lines, and every other commit, the title and the body are still checked. - Satya's approval is at this head;
testsandpr-textpass.
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: Let the canonical PR text check recognize the approved published-history exception for U-Boot #76 at its exact head. A canonical list names the 45 commit IDs already published through U-Boot #50 before the rule took effect.
Tested: No Mac runtime change. All 22 existing text-check tests passed. Seven local workflow replays verified the matching exception, head/PR/repository mismatches, an unlisted trailer, an empty PR body, and a failed GitHub API call.
Risk: Two-way door · workflow only. Reverting restores the prior commit collection. The exception is keyed by repository, PR number and head, and the checker still sees the title, body and every other applicable commit.
Not yet: Hosted workflow checks and a rerun of the two existing U-Boot #76 text checks after this lands.
Details
The exception covers only U-Boot #76 at
c2a5cbc629a69066ac8b79ec0d700b172c19d1bf. All listed commits are ancestors of5445237f1dcb0d30213741f85158816d04d65aa7, the public merge of U-Boot #50 on 21 November. The reusable workflow takes the list from its trusted policy checkout and matches whole commit IDs against GitHub's structured response.Evidence
The canonical text check rejected 58 historical trailer occurrences in the unfiltered input. It checked 41 remaining commit messages and passed using the exact list. Changing the repository, PR or head restored all 86 messages. A new unlisted trailer and an empty body still failed. A failed API collection returned failure before the text check. The U-Boot branches and their Git history stay intact.
U-Boot integration · Earlier public merge