patchscan: fix PR body quoting and provenance checks#410
Merged
ianm-nv merged 4 commits intoMay 11, 2026
Conversation
Two improvements addressing false-positive failures on tracked-branch PRs: 1. Launchpad bug link: drop the requirement that the URL appear on a line prefixed with 'BugLink:' or 'LP:'. The check now only ensures a https://bugs.launchpad.net/... URL exists somewhere in the PR body. Avoids false negatives when authors paste the link in prose. 2. UBUNTU-local commits (e.g. 'UBUNTU: [Config] ...', 'UBUNTU: [Packaging] ...', 'UBUNTU: SAUCE: ...') have no upstream equivalent and previously triggered R6 ("not SAUCE/Revert but has no upstream reference trailer"). Add an is_ubuntu_local() helper that matches the 'UBUNTU: ' prefix; exempt those commits from R6 and R9, label them [UBUNTU] in the digest table, and verify only the Signed-off-by trailer is present. Signed-off-by: Nirmoy Das <nirmoyd@nvidia.com>
ianm-nv
reviewed
May 11, 2026
Collaborator
ianm-nv
left a comment
There was a problem hiding this comment.
LGTM
Acked-by: Ian May <ianm@nvidia.com>
This was referenced May 11, 2026
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.
Fix PR Validation false failures reported from #407 and confirmed against #409.
References from PR #407:
validate-prreported6b97c1b33bef ("vfio/hisi: Convert to the get_region_info op")as missing upstream provenance even though the commit has(backported from commit e238f147d517...).get_region_info.Changes:
gh apiand extracting fields withjq, instead of embedding${{ github.event.pull_request.body }}directly into the shell script.validate-prto recognize(backported from commit <sha>)andUpstream commit <sha>as upstream SHA provenance.UBUNTU: ...local commits, such asUBUNTU: [Config] ..., as local-only so they do not require upstream provenance.https://bugs.launchpad.net/...link anywhere in the PR body.Validation:
python3 -m py_compile .github/scripts/validate-prgit diff --check upstream/github-actions..HEAD