Skip to content
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 to improve checks and extend to all commits #16739

Merged
merged 1 commit into from Jul 2, 2021

Conversation

qmonnet
Copy link
Member

@qmonnet qmonnet commented Jul 1, 2021

Pull the changes from cilium/image-tools#121:

  • The checkpatch.pl script is now run for all commits of the PR, instead of just the commits touching files under bpf/. We do not want to check the code in directories other than bpf/; the interest here is to run the checks on the commit log messages. Therefore, pass commit logs without a diff to checkpatch for commits unrelated to bpf/. This makes more checks but note that passing checkpatch is not currently required by the CI for validating the PRs on the Cilium repository.

  • Format errors and warnings based on the available workflow commands for GitHub Actions. This should make the output easier to read on GitHub.

  • Update the checkpatch.pl patch itself (and its spelling file) from the version coming with kernel 5.12.

Pull the changes from cilium/image-tools#121:

- The checkpatch.pl script is now run for _all_ commits of the PR,
  instead of just the commits touching files under `bpf/`. We do not
  want to check the code in directories other than `bpf/`; the interest
  here is to run the checks on the commit log messages. Therefore, pass
  commit logs without a diff to checkpatch for commits unrelated to
  `bpf/`. This makes more checks but note that passing checkpatch is not
  currently required by the CI for validating the PRs on the Cilium
  repository.

- Format errors and warnings based on the available workflow commands
  for GitHub Actions. This should make the output easier to read on
  GitHub.

- Update the checkpatch.pl patch itself (and its spelling file) from the
  version coming with kernel 5.12.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
@qmonnet qmonnet added area/CI-improvement Topic or proposal to improve the Continuous Integration workflow release-note/misc This PR makes changes that have no direct user impact. labels Jul 1, 2021
@qmonnet qmonnet requested review from a team as code owners July 1, 2021 16:09
@qmonnet qmonnet added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jul 2, 2021
@pchaigno pchaigno merged commit 4fd2ee8 into cilium:master Jul 2, 2021
@qmonnet qmonnet deleted the pr/checkpatch-update-image branch July 2, 2021 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI-improvement Topic or proposal to improve the Continuous Integration workflow ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants