From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 2DAF2A00E6 for ; Fri, 19 Apr 2019 18:21:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D5E531BC07; Fri, 19 Apr 2019 18:21:47 +0200 (CEST) Received: from mail-ot1-f67.google.com (mail-ot1-f67.google.com [209.85.210.67]) by dpdk.org (Postfix) with ESMTP id 8FA7D1BC04 for ; Fri, 19 Apr 2019 18:21:46 +0200 (CEST) Received: by mail-ot1-f67.google.com with SMTP id c16so4731118otn.4 for ; Fri, 19 Apr 2019 09:21:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3wWsr+dca55Q/kYXrt0fr++bPn0XJGjEtTjV05/Zxa0=; b=CJtZ3PnDdIg2NkupvD+KetwHgDndXmeMgOBaq6ks4zatFo0byYRabSqYvylJQaX51e kD3P7uRco+w5RtX73mVIgXDS2onuxejJxg0ES+rYXYdniatQkUy2nzkFpHEIjHZd5W6E 5mr5XM412a70U3r/paIapDnqjS5QtvjQp9WDc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3wWsr+dca55Q/kYXrt0fr++bPn0XJGjEtTjV05/Zxa0=; b=GCWV64es2OU3L/3RgSSHccSyyQHfd+8+VMhE8IIP79Uf7kmZJECuV0A0EmbwpNRK+H 7KiLxJJYLIBU/46hBYnmNNe3Pg6fk7uMdj4CouHtPc9EoxTOd6K1sbBsVl4fzgXiv4Ft bK1RcWbNqF8AFsCKMcaTzfbyVXg9L1ZqOstVbUTzPZc3qJUS8rKLX9gJdicHiEhHXnGO O4DUANq+jytRkzwKvn+Xn6IXbxtYJjSW23+LzZhYA57WqP2TYsHQKmPWaK7+CJoYevBR WyovLIQ+nZdf6qmHXVR42Wmgmt6DjLkz8ilJ4ziOAFpRvot2s4QdCjT8u145w6hSH0O0 QWjA== X-Gm-Message-State: APjAAAW8HWCllL4CDA8FXURwdtDFQXcIkqT3rlvr2FBf51NSSkegfv7C vwzfWuDlWuJnYTEefyXaLNcZgdpYUY4g37vEX/4nbA== X-Google-Smtp-Source: APXvYqyvgT/UvcXT6CTagr5xUVQDvwF14M0gIzPu55FCnmNI27fzN/3woglcFaeoTVKqSgdbLHta2d5Z4+VvNoxbAEs= X-Received: by 2002:a9d:7749:: with SMTP id t9mr2578557otl.229.1555690905721; Fri, 19 Apr 2019 09:21:45 -0700 (PDT) MIME-Version: 1.0 References: <20190216160206.11957-1-alialnu@mellanox.com> <20190409161237.28405-1-alialnu@mellanox.com> In-Reply-To: From: Jeremy Plsek Date: Fri, 19 Apr 2019 12:21:09 -0400 Message-ID: To: Ali Alnubani Cc: "ferruh.yigit@intel.com" , Thomas Monjalon , "ci@dpdk.org" Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-ci] [PATCH v4] add script to decide best tree match for patches X-BeenThere: ci@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK CI discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ci-bounces@dpdk.org Sender: "ci" We've switched to using it a few days ago. Some examples of it switching branches: https://lab.dpdk.org/results/dashboard/patchsets/5503/ https://lab.dpdk.org/results/dashboard/patchsets/5499/ https://lab.dpdk.org/results/dashboard/patchsets/5498/ On Thu, Apr 18, 2019 at 4:16 AM Ali Alnubani wrote: > > Hi, > > > -----Original Message----- > > From: ci On Behalf Of Ali Alnubani > > Sent: Tuesday, April 9, 2019 7:13 PM > > To: ci@dpdk.org > > Cc: Thomas Monjalon ; ferruh.yigit@intel.com; > > jplsek@iol.unh.edu; Ori Kam > > Subject: [dpdk-ci] [PATCH v4] add script to decide best tree match for > > patches > > > > The information provided in the MAINTAINERS file is used to find the tree > > that matches the files changed in patches as follows: > > - For each file, it first tries to find a matching unix shell-style > > pattern. If one was found, it looks for a tree specified in the > > subsection containing the pattern, and that tree is returned. > > If no tree was found in that subsection, the script tries to > > find a tree specified under the name of the section containing > > the pattern. > > - If more than one tree was matched (for multiple files), > > a tree matching the common prefix of all these trees will be > > returned. > > - The main repo 'dpdk' will be returned if no other match was found. > > > > Results can be further improved by adding more information to the > > MAINTAINERS file or by using the subject of the series/patch for matching > > too. > > > > Bugzilla ID: 166 > > > > Suggested-by: Thomas Monjalon > > Signed-off-by: Ali Alnubani > > Signed-off-by: Ori Kam > > --- > > Changes in v2: > Typo. > s/v2/v4/ > > - Refactored the script to use classes, which makes it easier > > to be used inside other scripts. > > - Renamed the script so that it can be imported. > > - The script will always return a single tree. > > If multiple trees were matched (for multiple files), > > a tree matching the common prefix of all these trees will be > > returned. > > - Main repo is now reported if no other matches were found. > > - Only tree name will be returned without the full url. > > - Updated description and usage info. > > > > Did you guys get a chance to test this version? > > Thanks, > Ali -- Jeremy Plsek UNH InterOperability Laboratory