Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jRdby-0000OE-OD for mharc-grub-devel@gnu.org; Thu, 23 Apr 2020 11:17:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47028) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRdbv-0000NF-SD for grub-devel@gnu.org; Thu, 23 Apr 2020 11:17:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRdbr-0002ky-AM for grub-devel@gnu.org; Thu, 23 Apr 2020 11:17:54 -0400 Received: from orion.archlinux.org ([2a01:4f8:160:6087::1]:47662) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jRdbp-0002bu-Jm for grub-devel@gnu.org; Thu, 23 Apr 2020 11:17:50 -0400 Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 893441B335D35B for ; Thu, 23 Apr 2020 15:17:44 +0000 (UTC) Received: from [IPv6:2600:1700:57f0:ca20:763a:c795:fcf6:91ea] (unknown [IPv6:2600:1700:57f0:ca20:763a:c795:fcf6:91ea]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: eschwartz) by orion.archlinux.org (Postfix) with ESMTPSA id 34F981B335D35A for ; Thu, 23 Apr 2020 15:17:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1587655064; bh=yA4htJe6GJwas9XXHtLq12ctdoZC6ZRYUzUhv3lPnis=; h=Subject:To:References:From:Date:In-Reply-To; b=X1OePA2xIPxyDI7DmGgudxbMPXxRXX5VfsySoBlN8E2X5hubp+3KDcOXHDTBHB7tq WFTq4RqtKygqiioChdRg09/6FlUQO9CaoNs3mp+lI9q2vWO3j6zcALzKor4q8U2vgS VxrHmXYHrZs2UcvrEKb/gKRSiu/2doQbZty2UgBwV7i/aCT30Lx3HE3SSiQS1SjLjH h0Q5XOx9BKEF9/uLywrrHRAPGOAT0hSJuycMezDQOoxsUob1GmbBxBHTOQE+d8W0z3 pYB5A4vm5dMO9y8l+XEUWtYTJUP4+gkx7OeJBEycFkiRr8eKAplvxADZd7bMZT8ZHb /XJ5t1ViUZlrfIujkfRsc5eT5kzgVI/0xwTgbVKxcQHROIbOcnv/rN3TqHF+dR+VAf JjQa8AB+z8Z5s1D+BqMoZZqN1oDYmd3W/vra6gX26OJ+6oWRbB9r/6e/eeLhJL+SY3 /F2iYDNeVzkKZ6zmU2F0kyaNRw5EgPjW/kwFzM17yimXI6EiO0BverBx9VYgszygvl jaokX4IyvMpE/k7f9IRiLHFI9Oq9GCCZDb1qH6uw8jB36tvSyITlIQXEqCbqXsOYlr pOpN0B3XHBUTk/j5M/aa/Den8WYROklOfqLf3pc5cMdYBvWB5WernovMprIYUoJsUU YS64gV28raRB8ZWau5s6gfKA= Subject: Re: How to submit patches and patchsets via grub-devel To: grub-devel@gnu.org References: <20200423162048.4c7a4b19@n-dimensional.de> From: Eli Schwartz X-Clacks-Overhead: GNU Terry Pratchett Message-ID: Date: Thu, 23 Apr 2020 11:17:40 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200423162048.4c7a4b19@n-dimensional.de> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mj6sQWuPYXptUfGSol0a1eyjeXW8zwOlm" Received-SPF: pass client-ip=2a01:4f8:160:6087::1; envelope-from=eschwartz@archlinux.org; helo=orion.archlinux.org X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2a01:4f8:160:6087::1 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2020 15:17:57 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --mj6sQWuPYXptUfGSol0a1eyjeXW8zwOlm Content-Type: multipart/mixed; boundary="k9GsYlQhXOO1gBJUL6If6Xtq9JzhMrf0z" --k9GsYlQhXOO1gBJUL6If6Xtq9JzhMrf0z Content-Type: text/plain; charset=utf-8 Content-Language: en-US-large Content-Transfer-Encoding: quoted-printable On 4/23/20 10:20 AM, Hans Ulrich Niedermann wrote: > Hello, >=20 > as I am continuing to flood this mailing list with patches, I am > realizing that I am missing some general rules for how things work on > grub-devel. Sorry for the inconvenience caused by that. >=20 > Anyway, here are a few questions I am beginning realize I should know > the answers to before posting patches to grub-devel: >=20 > * What to put into the cover letter (git send-email --compose)? >=20 > * How to format commit messages? >=20 > * What about those special lines within commit messages? >=20 > * Signed-off-by: > * Reviewed-by: >=20 > Who adds these special lines and when? If Daniel replies to me > posting a patch with "Reviewed-by: Daniel", does that mean I should= > include that in my next iteration of that patch? Does it mean > Daniel approves of the patch and plans to merge it to master > himself with or without adding the Reviewed-by by himself? >=20 > Are there other special lines I need to be aware of? https://git.wiki.kernel.org/index.php/CommitMessageConventions#Trailers Different projects mean different things, but Signed-off-by is a common one: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#si= gn-your-work-the-developer-s-certificate-of-origin Reviewed-by is another convention originating in the kernel -- it indicates Daniel thinks the patch is good, and the person (in this case himself) who takes that patch and commits it to the project (or to the kernel subsystem for later merging into torvalds/linux.git) will include that line when committing -- there's no need to submit a v2/v3/etc patch with just this modification to the commit message. > * How are reviews done? Is there a formal definition of preconditions= > which must be satisfied before something is actually committed to > the master branch? I'm not entirely sure what you're asking, but I'd guess "one or more project maintainers will reply to the patch, either approving the patch or asking for changes". But of course they're unlikely to approve a non-documentation patch without giving it a trial run and seeing it work.= Is your question about what type of testing is done? > I presume a good place to write those down for grub would be > docs/grub-dev.texi. I had not intended to touch grub-dev.texi much > before 2.06, but apparently this needs to be done first so I can > properly do the other things for 2.06. Am I wrong in this presumption > and just missing the place where the general rules on how to contribute= > patches are written down? I think it's more or less: - Some of these rules are passed along by word of mouth due to being de facto rules, and, while preferred, aren't hard requirements. - Some of these rules are commonly used in various projects, so people automatically assume everyone knows them, even though they don't. Then when someone asks "but what are the rules, anyway" there's a mad scramble to hunt down a description in someone else's documentation, often from kernel.org - Often, documentation doesn't get written down because it's obvious to the people who write documentation, and the people who need the docs don't know it. And in the case of procedural rules this is even more egregious, because you don't have code to point at to prove that it isn't documented. Then eventually someone who was unfamiliar with the process says "how about we document this" and everyone else is like "oh uh, yeah, that makes sense, we probably should have done this a long time ago". It's always nice to find a documentation file such as 'doc/submitting-patches.asciidoc' (or reStructuredText or texinfo or whatever the project uses) documenting the conventions, as well as any project-specific guidance. It will also usually tell you the email address for the appropriate mailing list. One example can be found here: https://www.archlinux.org/pacman/submitting-patches.html source: https://git.archlinux.org/pacman.git/tree/doc/submitting-patches.asciidoc= Currently the grub-dev manual talks a lot about the coding style (similar in spirit to my HACKING.asciidoc/HACKING.html) and very little about how to submit patches. This information is definitely missing and I believe a patch to update it would be very appropriate. --=20 Eli Schwartz Arch Linux Bug Wrangler and Trusted User --k9GsYlQhXOO1gBJUL6If6Xtq9JzhMrf0z-- --mj6sQWuPYXptUfGSol0a1eyjeXW8zwOlm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEvSewel70XCra9w4EhIGKaBmvSpsFAl6hsZQACgkQhIGKaBmv SptvOg//cF48K0N3V1yBF2PQo2nCxw2ZyAIjw4rkToZmvkQ2nYZl9sF+RTTXOWgm j77L3dOfDMjFW/i37iXDYWGKqaChveo7clBU9rgEABc5Ch2FlvMVWxjpw8cm1H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