github-actions: validate linux-next cherry-picks - #540
Conversation
|
A handful of Claude findings: The regex widening in 1. The rescue path is unreachable under
|
|
Another pass with Claude on the follow-up commit. Restructure verified end-to-end — the earlier repro now exits 0 and validates by Three small leftovers:
None of these block. |
linux-next cherry-picks carry "(cherry picked from commit <sha> linux-next)". That SHA is not a stable reference: linux-next is rebuilt daily and its objects are not reachable from the origin/linux ref patchscan fetches, so the digest must key off the patch URL rather than the commit object. - Accept the " linux-next" trailer form in get_cherry_pick_sha(). - Validate those commits against their Link: patch URL via b4, bypassing SHA resolution and is_equivalent_replay() entirely, and describe the SoB chain with describe_sob_chain_backport(). - Prefer the last patch.msgid.link Link: trailer. Maintainers append it at apply time, while earlier Link: trailers reference reports or discussions. - Distinguish a b4 fetch failure from a patch-ID mismatch, and return None rather than a traceback when b4 is absent, unrunnable, or times out. - Point an unresolvable linux-next SHA at the missing Link: trailer instead of at the SHA, which is not the actionable part. - Cover the trailer form, URL-based validation, Link: selection, fetch failure, absent b4, and the no-Link: case in the self-tests.
3d02064 to
437106c
Compare
|
Thanks @jamieNguyenNVIDIA , valid findings. Updated the PR. |
|
|
ianm-nv
left a comment
There was a problem hiding this comment.
LGTM!
Acked-by: Ian May <ianm@nvidia.com>
Summary
(cherry picked from commit <sha> linux-next)as an upstream reference.Link:trailer instead of resolving the SHA. linux-next is rebuilt daily and its
objects are not reachable from the
origin/linuxref patchscan fetches, soSHA resolution cannot succeed in CI.
patch.msgid.linktrailer, which maintainers append at apply time,over earlier
Link:trailers pointing at reports or discussions.Link:trailer, and a patch-ID mismatchas distinct errors rather than folding them together.
Link:selection, fetch failure, and absent b4.
This fixes the validation errors reported on NVIDIA/NV-Kernels#539.
Validation
python3 .github/scripts/test_validate_pr.py -v— 22 tests passed.intentionally adjusted SETAASA patch is reported as
annotated. (Run againstthe pre-restructure revision; [26.04_linux-nvidia-bos] Backport Vera I3C v7 support #539 stays red until this merges, since
patchscan.ymlpullsvalidate-prfromorigin/github-actions.)