-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
checkpatch: update image (skip backports, add a check, suppress one report type) #15096
Conversation
74a0a1d
to
d02bf92
Compare
I have been made aware of another issue to fix on the checkpatch image, I'll update the image once more and then update this PR. |
d02bf92
to
eebaa08
Compare
Now ready for review again, I updated the test PRs too. |
52fd318
to
f26ccea
Compare
Update the checkpatch image tag (and switch to quay.io) to benefit from the following changes: - Skip checkpatch validation on backport branches - Suppress reports of type COMMIT_LOG_LONG_LINE - Add a repo-wide check on commit subject length - Use $GITHUB_REPOSITORY variable when retrieving commits For skipping backports we could instead update the conditions for running the job in the current repo, but that would be troublesome if we want to mark the action as required in the future. Therefore, we delegate the decision to the shell script in the checkpatch image: it returns early if a PR is not based on the 'master' branch. Signed-off-by: Quentin Monnet <quentin@isovalent.com>
f26ccea
to
cee1dbc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we also need to move this out of BPF checks given it now applies to all commits?
We could. I don't know if it's worth it, there's only one check that extends to all commit, the majority is still for bpf/. Do you have a suggestion? I'd rather avoid creating a new action just for that. |
Yeah, we have too many actions already... Let's postpone. |
Update the checkpatch image tag (and switch to quay.io) to benefit from the following changes:
COMMIT_LOG_LONG_LINE
For skipping backports we could instead update the conditions for running the job in the current repo, but that would be troublesome if we want to mark the action as required in the future. Therefore, we delegate the decision to the shell script in the checkpatch image: it returns early if a PR is not based on the 'master' branch.
Checkpatch updates available at https://github.com/cilium/image-tools/pull/104/files and https://github.com/cilium/image-tools/pull/109/files.
Tested here for the new check and the suppressed report, and there for skipping the backports.
Marking for backports for 1.9, where the checkpatch action is run but where we want to skip it.
No CI test needed, other than having the checkpatch verification still working.