gnuboot/website/pages
Denis 'GNUtoo' Carikli c6d776f2dc
Add checkpatch.scm script and require maintainers to run it.
The goal of this script is similar to Linux's checkpatch.pl: it is
meant to check patch before sending them.

Right now it only tests if a signed-off-by is missing, and if the
commit information (commit message, author, date, etc but not the
diff) is too big as a workaround to the bug #66268[1], but over time
more checks can be added.

The report of the bug #66268[1] mention that what tend to trigger the
issue is commits "with a large (4kB) commit message".

[1]https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66268

So we want to avoid such commits to avoid breaking "guix git
authenticate" in the future.

To do that, checkpatch.scm reports an error if the size of the patch
from the beginning of the patch file until the point where the diff
starts is less than 2500 Bytes.

A lower threshold has been chosen as the commit object size can be
bigger than the patch file without the diff, as there are at least
signatures inside the commit objects.

The last commit GNUtoo signed at the time of writing is the commit
83f955870a ("website/docs/build: mark
the Trisquel bug as solved and clarify the Guix one") and this is done
with an RSA GPG key of 4096 bits and in this case the signature is
about 855 bytes. This was calculated with 'git cat-file -p 83f95587'.

As GNU Boot is looking for contributions, including contributions by
less technical users, we do not require its use by people sending
patches, however it is still a good idea to require its use by the GNU
Boot maintainers as we want to spot the most important issues that
cannot be fixed later on.

Thanks to neox for the research and the calculation on the git commit
signature size.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Acked-by: Adrien 'neox' Bourmault <neox@gnu.org>
2024-11-27 22:35:56 +01:00
..
docs Add a minimal GNU Boot manual. 2024-11-25 16:39:16 +01:00
tasks images: remove 'libgfxinit' from the image names. 2024-10-05 11:37:59 +02:00
COPYING Merge website and website-build. 2024-06-11 20:29:47 +02:00
contact.md Replaced broken contact links with ones to lists.gnu.org 2024-08-26 17:12:02 +02:00
contribute.md Add checkpatch.scm script and require maintainers to run it. 2024-11-27 22:35:56 +01:00
download.md website: move contrib.md in history, rename git.md to contribute.md. 2024-11-12 12:16:39 +01:00
faq.md website: move contrib.md in history, rename git.md to contribute.md. 2024-11-12 12:16:39 +01:00
footer.include.tmpl website: move contrib.md in history, rename git.md to contribute.md. 2024-11-12 12:16:39 +01:00
git.es.md Merge website and website-build. 2024-06-11 20:29:47 +02:00
global.css website: pages: global.css: Add copyright header. 2024-10-05 11:27:35 +02:00
index.es.md website: main page: clarify that GNU Boot is a distribution. 2024-06-16 12:55:14 +02:00
index.md website: main page: clarify that GNU Boot is a distribution. 2024-06-16 12:55:14 +02:00
license.md Merge website and website-build. 2024-06-11 20:29:47 +02:00
logo-license.md Remove old logos, and make the website point to the new ones. 2024-06-16 12:55:14 +02:00
news.md website: Remove news generation. 2024-09-08 17:37:11 +02:00
robots.txt Merge website and website-build. 2024-06-11 20:29:47 +02:00
sitemap.include Merge website and website-build. 2024-06-11 20:29:47 +02:00
status.es.md website: status: 0.1 RC1,RC2: D945GCLF2D fails to boot. 2024-11-22 17:25:00 +01:00
status.md website: status: 0.1 RC1,RC2: D945GCLF2D fails to boot. 2024-11-22 17:25:00 +01:00
template-license.md Merge website and website-build. 2024-06-11 20:29:47 +02:00
template.include website: move contrib.md in history, rename git.md to contribute.md. 2024-11-12 12:16:39 +01:00
template.original Merge website and website-build. 2024-06-11 20:29:47 +02:00