Skip to contentSkip to conversation

doc: Add Maintainer Patch Review Checklist

RFC PATCH Superseded Petr Vorel 4 participants 7 messages Mar 17, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

RFC PATCH 1/1 doc: Add Maintainer Patch Review Checklist

---
 doc/maintainer-patch-review-checklist.txt | 32 +++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 doc/maintainer-patch-review-checklist.txt
doc/maintainer-patch-review-checklist.txt new file +32 -0
new file mode 100644
index 000000000..cfe3918c1
@@ -0,0 +1,32 @@
+# Maintainer Patch Review Checklist
+
+Patchset should be tested locally and ideally also in maintainer's fork in
+https://travis-ci.org/[Travis CI].
+
+Commit messages should have
+
+* author's `Signed-off-by` tag
+* committer's `Reviewed-by` or `Signed-off-by` tag
+* check also mailing lists for other reviewers / testers
+
+## New tests
+New test should have
+
+* record in runtest file
+* test run with more iteration (`-i 100`)
+
+### C tests
+* use new https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#22-writing-a-test-in-c[C API]
+* record in `.gitignore`
+* check coding style with `checkpatch.pl`
+(more in https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#131-c-coding-style[C coding style])
+* docparse documentation
+
+### Shell tests
+* use new https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#23-writing-a-testcase-in-shell[shell API]
+* check coding style with `checkbashism.pl`
+(more in https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#132-shell-coding-style[Shell coding style])
+
+## LTP library
+For patchset touching library please check also
+https://github.com/linux-test-project/ltp/wiki/LTP-Library-API-Writing-Guidelines[LTP Library API Writing Guidelines].
Signature · 1 line
2.30.2
author
#1 lore raw

RFC PATCH 1/1 doc: Add Maintainer Patch Review Checklist

Hi,

doc/maintainer-patch-review-checklist.txt line 16

Quoted 5 lines
doc/maintainer-patch-review-checklist.txt new file +5 -0
+## New tests
+New test should have
+
+* record in runtest file
+* test run with more iteration (`-i 100`)

sorry, plural (iterations) should be used.

Kind regards,
Petr

author
#2 lore raw

RFC PATCH 1/1 doc: Add Maintainer Patch Review Checklist

In reply to Petr Vorel

Hi,

...

doc/maintainer-patch-review-checklist.txt line 10

Quoted 12 lines

+++ b/doc/maintainer-patch-review-checklist.txt

doc/maintainer-patch-review-checklist.txt new file +10 -0
@@ -0,0 +1,32 @@
+# Maintainer Patch Review Checklist
+
+Patchset should be tested locally and ideally also in maintainer's fork in
+https://travis-ci.org/[Travis CI].
+
+Commit messages should have
+
+* author's `Signed-off-by` tag
+* committer's `Reviewed-by` or `Signed-off-by` tag
+* check also mailing lists for other reviewers / testers

Also add:
Please update patchset status in https://patchwork.ozlabs.org/project/ltp/list/[LTP patchwork].

doc/maintainer-patch-review-checklist.txt line 16

Quoted 6 lines
doc/maintainer-patch-review-checklist.txt new file +6 -0
+
+## New tests
+New test should have
+
+* record in runtest file
+* test run with more iteration (`-i 100`)

...

Kind regards,
Petr

#3 lore raw

RFC PATCH 1/1 doc: Add Maintainer Patch Review Checklist

Hi Petr,

Quoted 9 lines · Petr Vorel

Hi,

...

doc/maintainer-patch-review-checklist.txt line 3

Quoted 5 lines

+++ b/doc/maintainer-patch-review-checklist.txt

doc/maintainer-patch-review-checklist.txt new file +3 -0
@@ -0,0 +1,32 @@
+# Maintainer Patch Review Checklist
+
+Patchset should be tested locally and ideally also in maintainer's fork

in

Quoted 12 lines

doc/maintainer-patch-review-checklist.txt line 10

Quoted 7 lines
doc/maintainer-patch-review-checklist.txt new file +7 -0
+https://travis-ci.org/[Travis CI].
+
+Commit messages should have
+
+* author's `Signed-off-by` tag
+* committer's `Reviewed-by` or `Signed-off-by` tag
+* check also mailing lists for other reviewers / testers

Also add:
Please update patchset status in
https://patchwork.ozlabs.org/project/ltp/list/[LTP patchwork].

Also Add:

Please update LTP WIKI if touch doc/*.txt.
https://github.com/linux-test-project/ltp.wiki.git

Otherwise, LGTM.

Signature · 5 lines
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210317/13b53ac9/attachment.htm>
#4 lore raw

RFC PATCH 1/1 doc: Add Maintainer Patch Review Checklist

In reply to Petr Vorel

Hi!

Quoted 3 lines
 doc/maintainer-patch-review-checklist.txt | 32 +++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 doc/maintainer-patch-review-checklist.txt

Overall this is a good idea, a few notes below.

doc/maintainer-patch-review-checklist.txt line 4

Quoted 10 lines
doc/maintainer-patch-review-checklist.txt new file +4 -0
new file mode 100644
index 000000000..cfe3918c1
@@ -0,0 +1,32 @@
+# Maintainer Patch Review Checklist
+
+Patchset should be tested locally and ideally also in maintainer's fork in
+https://travis-ci.org/[Travis CI].

We should add something like this here:

Note: Travis does only build testing, passing the CI means only that the
test compiles fine on variety of different distributions and releases.

The test should be executed at least once locally and should PASS as well.

doc/maintainer-patch-review-checklist.txt line 16

Quoted 12 lines
doc/maintainer-patch-review-checklist.txt new file +11 -0
+Commit messages should have
+
+* author's `Signed-off-by` tag
+* committer's `Reviewed-by` or `Signed-off-by` tag
+* check also mailing lists for other reviewers / testers
+
+## New tests
+New test should have
+
+* record in runtest file
 
+* test run with more iteration (`-i 100`)

This is slightly confusing, it should probably be:

* Tests should work fine with more than one iteration (e.g. run with -i 100)

doc/maintainer-patch-review-checklist.txt line 21

Quoted 4 lines
doc/maintainer-patch-review-checklist.txt new file +4 -0
+### C tests
+* use new https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#22-writing-a-test-in-c[C API]
+* record in `.gitignore`
+* check coding style with `checkpatch.pl`

Checkpatch is distributed with linux kernel source code, please also use reasonably recent one.

doc/maintainer-patch-review-checklist.txt line 23

Quoted 2 lines
doc/maintainer-patch-review-checklist.txt new file +2 -0
+(more in https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#131-c-coding-style[C coding style])
+* docparse documentation

+ proper documentation comment
-- this should be explained somewhere and linked here

+ If a test is a regression test it should include tags -- this should be explained somewhere as well and linked here

doc/maintainer-patch-review-checklist.txt line 27

Quoted 3 lines
doc/maintainer-patch-review-checklist.txt new file +3 -0
+### Shell tests
+* use new https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#23-writing-a-testcase-in-shell[shell API]
+* check coding style with `checkbashism.pl`

I guess that we should add the link to debian devscripts here

Quoted 5 lines
doc/maintainer-patch-review-checklist.txt new file +5 -0
+(more in https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#132-shell-coding-style[Shell coding style])
+
+## LTP library
+For patchset touching library please check also
+https://github.com/linux-test-project/ltp/wiki/LTP-Library-API-Writing-Guidelines[LTP Library API Writing Guidelines].
Signature · 2 lines
Cyril Hrubis
[email protected]
author
#5 lore raw

RFC PATCH 1/1 doc: Add Maintainer Patch Review Checklist

Hi all,

Cyril, Li, Jan, thanks for your tips, I'll use them for v2. Few notes to some of Cyril's tips.

Quoted 7 lines

doc/maintainer-patch-review-checklist.txt line 21

Quoted 4 lines
doc/maintainer-patch-review-checklist.txt new file +4 -0
+### C tests
+* use new https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#22-writing-a-test-in-c[C API]
+* record in `.gitignore`
+* check coding style with `checkpatch.pl`

Checkpatch is distributed with linux kernel source code, please also use reasonably recent one.

I'd prefer not duplicate the info, that's why I linked it docs, which already mention this. Thus I'd prefer add "reasonably recent one" to doc/test-writing-guidelines.txt.

Quoted 5 lines

doc/maintainer-patch-review-checklist.txt line 23

Quoted 2 lines
doc/maintainer-patch-review-checklist.txt new file +2 -0
+(more in https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#131-c-coding-style[C coding style])
+* docparse documentation

+ proper documentation comment
-- this should be explained somewhere and linked here

Agree, but I'll probably skip this one.

Quoted 2 lines

+ If a test is a regression test it should include tags -- this should be explained somewhere as well and linked here

+1

Quoted 5 lines

doc/maintainer-patch-review-checklist.txt line 27

Quoted 3 lines
doc/maintainer-patch-review-checklist.txt new file +3 -0
+### Shell tests
+* use new https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#23-writing-a-testcase-in-shell[shell API]
+* check coding style with `checkbashism.pl`

I guess that we should add the link to debian devscripts here

Again, I wanted to remove duplicity, but just repeating link here does no harm.

Kind regards,
Petr

#6 lore raw

RFC PATCH 1/1 doc: Add Maintainer Patch Review Checklist

In reply to Petr Vorel

----- Original Message -----

Quoted 13 lines
---
 doc/maintainer-patch-review-checklist.txt | 32 +++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 doc/maintainer-patch-review-checklist.txt
doc/maintainer-patch-review-checklist.txt new file +0 -0
new file mode 100644
index 000000000..cfe3918c1

doc/maintainer-patch-review-checklist.txt line 10

Quoted 10 lines
doc/maintainer-patch-review-checklist.txt new file +10 -0
@@ -0,0 +1,32 @@
+# Maintainer Patch Review Checklist
+
+Patchset should be tested locally and ideally also in maintainer's fork in
+https://travis-ci.org/[Travis CI].
+
+Commit messages should have
+
+* author's `Signed-off-by` tag
+* committer's `Reviewed-by` or `Signed-off-by` tag
+* check also mailing lists for other reviewers / testers

Maybe "Fixes #" if it fixes github issue, so it's automatically closed?

Quoted 30 lines
doc/maintainer-patch-review-checklist.txt new file +9 -0
+
+## New tests
+New test should have
+
+* record in runtest file
+* test run with more iteration (`-i 100`)
+
+### C tests
+* use new

https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#22-writing-a-test-in-c[C
API]

doc/maintainer-patch-review-checklist.txt new file +3 -0
+* record in `.gitignore`
+* check coding style with `checkpatch.pl`
+(more in

https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#131-c-coding-style[C
coding style])

doc/maintainer-patch-review-checklist.txt new file +4 -0
+* docparse documentation
+
+### Shell tests
+* use new

https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#23-writing-a-testcase-in-shell[shell
API]

doc/maintainer-patch-review-checklist.txt new file +2 -0
+* check coding style with `checkbashism.pl`
+(more in

https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#132-shell-coding-style[Shell
coding style])

doc/maintainer-patch-review-checklist.txt new file +4 -0
+
+## LTP library
+For patchset touching library please check also
+https://github.com/linux-test-project/ltp/wiki/LTP-Library-API-Writing-Guidelines[LTP
Quoted 1 line

Library API Writing Guidelines].

One more things that comes to mind:

After patch is accepted or rejected, set correct state and archive in LTP patchwork instance: http://patchwork.ozlabs.org/project/ltp/list/