Skip to content

pr-text: preserve already-published U-Boot history - #13

Merged
RyanTheTide merged 1 commit into
mainfrom
fix/pr-text-uboot-76-history
Nov 26, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
fix/pr-text-uboot-76-history

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

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 of 5445237f1dcb0d30213741f85158816d04d65aa7, 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

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 satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.txt are unique, exist in aurora-silicon/u-boot#76 (c2a5cbc629a69066ac8b79ec0d700b172c19d1bf, 151 total commits; 86 authored by PR author, 41 remaining after filtering), and sample ancestor checks against 5445237f1dcb (u-boot#50 merge) confirm behind_by=0.
  • Fail-closed workflow filtering: .github/workflows/pr-text.yml uses shell: bash (-eo pipefail), reads the allowlist strictly from .canon-policy keyed by exact $GITHUB_REPOSITORY/$PR/$HEAD_SHA (falling back to /dev/null), and uses gh 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 96c30d77c428 carries Signed-off-by:; CI tests and this-pr / pr-text are both SUCCESS.

@RyanTheTide RyanTheTide 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.

Verdict: MERGE at 96c30d77

Blockers: none.

Checked:

  • All 45 listed IDs are ancestors of the U-Boot #50 merge 5445237f: compare API status ahead/behind_by 0 for each one. All 45 are also among U-Boot #76's commits.
  • The list is read from .canon-policy, the aurora-silicon/.github checkout at the caller's tool-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; tests and pr-text pass.

@RyanTheTide
RyanTheTide merged commit 228f0fe into main Nov 26, 2026
2 checks passed
@RyanTheTide
RyanTheTide deleted the fix/pr-text-uboot-76-history branch November 27, 2026 13:22
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.

2 participants