public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] git update hook: detecting missing Manifest DIST entries
Date: Mon, 7 Dec 2015 19:36:17 +0000	[thread overview]
Message-ID: <robbat2-20151207T192808-009660520Z@orbis-terrarum.net> (raw)
In-Reply-To: <CAEdQ38GDEbhK2JR6FHFzVWEfONAosK8SFVazNeNyL+Fm1cgsZg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1566 bytes --]

On Mon, Dec 07, 2015 at 11:20:48AM -0800, Matt Turner wrote:
> >> This is happening with some frequency. Could we install a server-side
> >> git hook that prevents pushes if an ebuild is added without a Manifest
> >> change? It wouldn't have to verify anything more than that to catch
> >> nearly all of these problems.
> > That would not work for ebuilds which do not have any distfiles
> > associated with them.
> 
> Good point.
> 
> It *would* have to be somewhat more involved then...
I have given a lot of thought to it as well, because I've fixed it a
couple of times already or poked people to, and here's the best we can
do for the moment:

1. Script #1 (helper), that given an ebuild, spits out the filenames of the
   distfiles. 
   - Use an explicitly specified PORTDIR for eclasses.
   - Must NOT rely on the ebuild directory structure (i'd love to give
	 it the ebuild via stdin and tell it the path).
2. Script #2 (git update hook), check that filenames of distfiles are in
   the Manifest
3. Abort if #2 fails.

Potential problems:
It'll have to rely on a potentially less up to date set of eclasses.
So if there is an eclass change shortly followed by an ebuild change,
and the eclass change influences the distfiles, it MIGHT get it wrong
(in either direction).

I have existing code similar to script #2, so we just need script #1.

-- 
Robin Hugh Johnson
Gentoo Linux: Developer, Infrastructure Lead, Foundation Trustee
E-Mail     : robbat2@gentoo.org
GnuPG FP   : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 445 bytes --]

  reply	other threads:[~2015-12-07 19:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1449465322.37c1ec7ef31a51206421f03a2df489ec7d7ca244.cardoe@gentoo>
2015-12-07 18:19 ` [gentoo-dev] Re: [gentoo-commits] repo/gentoo:master commit in: app-emulation/runc/ Robin H. Johnson
2015-12-07 18:26   ` Matt Turner
2015-12-07 18:49     ` Michael Orlitzky
2015-12-07 18:58     ` Mike Gilbert
2015-12-07 19:20       ` Matt Turner
2015-12-07 19:36         ` Robin H. Johnson [this message]
2015-12-08  0:47           ` [gentoo-dev] git update hook: detecting missing Manifest DIST entries Peter Stuge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=robbat2-20151207T192808-009660520Z@orbis-terrarum.net \
    --to=robbat2@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox