gitlab: add jobs for checking paches
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | gitlab: add a CI job for running checkpatch.pl.gitlab-ci.d/ .gitlab-ci.yml | +60 | 3 replies | |
| 2/3 | gitlab: add a CI job to validate the DCO sign off.gitlab-ci.d/ .gitlab-ci.yml | +104 | 0 replies | |
| 3/3 | gitlab: assign python helper files to GitLab maintainers sectionMAINTAINERS | +1 | 1 reply |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Philippe Mathieu-Daudé |
|---|---|
| 1/3 | |
| 2/3 | |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] gitlab: add jobs for checking paches
This introduces two new jobs to GitLab. The first runs "checkpatch.pl" across all patches, while the second is a dedicated DCO signoff check.
While checkpatch.pl does validate DCO signoff, it is sub-optimal as we need to allow the checkpatch.pl job to fail as there are always patches which intentionally violate some rules, and we've no mechanism for marking permitted exceptions in code. Thus the checkpatch.pl jobs needs to be non-fatal allowing failure.
By having a separate DCO job, we can make that particular job mandatory.
Checking patches themselves in GitLab CI is a little difficult, as the CI job receives no indication of what the base ancestor was for the branch being tested. To work around this, we add the master QEMU git repo as a new remote and ask git to find the common ancestor vs the branch being tested.
An example pipeline showing failure of these two jobs is here:
https://gitlab.com/berrange/qemu/-/pipelines/191219666
The checkpatch.pl job failure output:
https://gitlab.com/berrange/qemu/-/jobs/743439455
And the DCO signoff job failure output:
https://gitlab.com/berrange/qemu/-/jobs/743439456
I think the latter shows the benefit of having a dedicated DCO signoff job checker, as the info presented to the user is much clearer about what they did wrong and how & why they must address it.
_+# base: master
Daniel P. Berrangé (3):
gitlab: add a CI job for running checkpatch.pl
gitlab: add a CI job to validate the DCO sign off
gitlab: assign python helper files to GitLab maintainers section
.gitlab-ci.d/check-dco.py | 94 +++++++++++++++++++++++++++++++++++++ .gitlab-ci.d/check-patch.py | 48 +++++++++++++++++++ .gitlab-ci.yml | 22 +++++++++ MAINTAINERS | 1 + 4 files changed, 165 insertions(+) create mode 100755 .gitlab-ci.d/check-dco.py create mode 100755 .gitlab-ci.d/check-patch.py
Signature · 1 line
2.26.2