From patchwork Fri Nov 8 21:31:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 2978 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4736D27BBEA; Fri, 8 Nov 2024 21:32:16 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3C0DB27BBE2 for ; Fri, 8 Nov 2024 21:32:14 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9WaK-0001zx-Kt; Fri, 08 Nov 2024 16:32:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9WaI-0001zm-N5 for guix-patches@gnu.org; Fri, 08 Nov 2024 16:32:02 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t9WaI-00009x-EO for guix-patches@gnu.org; Fri, 08 Nov 2024 16:32:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=XdZuw1r1v94DM9SHsl6sJItrDpDIVCimXjpvF6rw9As=; b=aVoF+T5ld+N6cn8vwTT8+OUC4jeFuu6EmXtYjX75RRt38HpIw3bHsegMtBz2WRdunCngBgBTqe0x0QVo88NygwY4yGXwf4lM8DeXIj4+PUDMJz6bvwd06JfK9DFYoiixaR17Dg7xGmQBJ9zd9V8YAPM7WPsULcidTSxwyLeHSIAXCwLPahXzAtjs54g3vk9I4X07vYgZ2PK+0DJZJJcNpQvxp3OhByF74X94JHaM1HrpbgRc98Fk0qOLxvClQBhJEObMY+wGi1XNwvyPX7YRgOJqQQs3afDKTLNmGuHfGri9Avz8w7/fG1KOJ1KoZ5icSKKWzh4dC6y/TVABDVwAxg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t9WaI-0003qS-98 for guix-patches@gnu.org; Fri, 08 Nov 2024 16:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74268] [PATCH 0/1] teams: Add packages stats script. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Nov 2024 21:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74268 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74268@debbugs.gnu.org Cc: Sharlatan Hellseher X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173110149114735 (code B ref -1); Fri, 08 Nov 2024 21:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Nov 2024 21:31:31 +0000 Received: from localhost ([127.0.0.1]:52360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9WZm-0003pa-Pu for submit@debbugs.gnu.org; Fri, 08 Nov 2024 16:31:31 -0500 Received: from lists.gnu.org ([209.51.188.17]:45356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9WZk-0003pR-I8 for submit@debbugs.gnu.org; Fri, 08 Nov 2024 16:31:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9WZk-0001xS-2b for guix-patches@gnu.org; Fri, 08 Nov 2024 16:31:28 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t9WZi-0008US-Cs for guix-patches@gnu.org; Fri, 08 Nov 2024 16:31:27 -0500 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-43152b79d25so21659925e9.1 for ; Fri, 08 Nov 2024 13:31:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731101484; x=1731706284; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=XdZuw1r1v94DM9SHsl6sJItrDpDIVCimXjpvF6rw9As=; b=HWxYcfIBH7KDOpIfItjWt8W56jqG2A+pOap7wYx6XQ2Y6xw/CI/PMNbUUZsTagwYaC McGfSofRhUXhXxYzkWnzckWH0NjWTswMZf/IxYsZSnsuBnVBWSWsvagyJBnAyQHitUE8 SlwWH9Mq8MVRzNalv4vXcfP79M9SzRwLiv0Cs0Rxz9ejVnAjCowJW5Tdx3aF58HAYow1 jh6S5ef+nP/WW59PyJiFTqAFemS0uNK6bLnd4JkjuBKy0GV8vckfpZGcE3CwiaCBZj57 MKKpNc/R6lSS8N4x3EZ9r8fBXeoDaROsRbMscaaLPs5WC6DDqvWKG8S+MVeDosWCDDTH Fi4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731101484; x=1731706284; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XdZuw1r1v94DM9SHsl6sJItrDpDIVCimXjpvF6rw9As=; b=TBuv/jQBM2aLw96xgBMgHZMUfHte6bE/tG/iH16sIWDb75U9mXMLXWxPelRmkDYgKt Y3GbLhElMWrh3ljvclNLBUyrajU7SP53J7RQ8h5It1+Rv/JQK9DX4aGe4LjCoilMqgT0 CaEJWvmmYSUaHPng1SYLd8dHCUFHYuamLdtwUVgLCPBlPFWVRGfQcDWv9nnCmLvlhK+R V7u58t7i1JIEXWLdQv4Y0zDrOJb8byqw+Czz6RcsfyFtw0JZfIMZJxRpsvwyDovHX4xs nwZW948+8C19sFhBLX65wppskhOkWuXeD7+ru0Ena4UwyceOveHenb47Zbug5jJ3H8sT LFTQ== X-Gm-Message-State: AOJu0Yy3J3wtMaSG1IjtztAplIekpQ7/x6/5j/u4rEd1hQWKbErEQhYL xdH615xiCla9XwA1LoPHO4JeXfGr/7w1JfuaHTkSKmVzCP8A1azt3anUUQ0y X-Google-Smtp-Source: AGHT+IE1n2nvg9Kl+rQMRrzpRa8QL8ixxs3dKu80LpBDkOLZX6U9dGWRVAWCnwqmSLb288pjQbQGwA== X-Received: by 2002:a05:600c:4f4e:b0:431:57d2:d7b4 with SMTP id 5b1f17b1804b1-432b751726emr37887635e9.26.1731101483965; Fri, 08 Nov 2024 13:31:23 -0800 (PST) Received: from guxtil.incerto.xyz (cpc100684-bagu15-2-0-cust967.1-3.cable.virginm.net. [86.8.111.200]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432aa6c11f8sm117286535e9.25.2024.11.08.13.31.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2024 13:31:23 -0800 (PST) From: Sharlatan Hellseher Date: Fri, 8 Nov 2024 21:31:20 +0000 Message-ID: X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=sharlatanus@gmail.com; helo=mail-wm1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hi Guix! During working on python-team branch I aimed to fix as much packages as possible to prepare it for the upcoming merge to master. I faced with a fact that there is no (or maybe I do not know about) tooling providing some larger scale stats for packages within team scope. Just a simple reasoning: Which N packages may be updated without triggering larger scale rebuilds? Which packages need to be update on team branch? Which affect ratio does this package has? Which type of package modification would trigger the rebuild of dependent (it was suprise that order of inputs does trigger...)? So... > ./pre-inst-env etc/teams-package-stats.scm stats python Will generate a list of all packages for python team (defined for now as any package which build-system is pyton or pyproject). - module-file-name - build-system-name - package-name - package-guix-version - package-upstream-version - all-inputs-count - dependents-count - affect-ratio" Command `column' may be used to produce JSON for the farther analysys and preparation. e.g. some packages which have 0 impact if they are refreshed: --8<---------------cut here---------------start------------->8--- > column -s, -t 1731089576-python-team | sort -k8 -n | head -n20 deprecated-package pyproject python-language-server 1.11.0 nil 23 0 0.0 deprecated-package python beets-next 1.6.0 nil 31 0 0.0 deprecated-package python python-trytond-purchase 6.2.3 nil 21 0 0.0 gnu/packages/android.scm python fdroidserver 1.1.9 nil 21 0 0.0 gnu/packages/astronomy.scm pyproject ginga-qt5 5.1.0 nil 22 0 0.0 gnu/packages/astronomy.scm pyproject python-poliastro 0.17.0 nil 20 0 0.0 gnu/packages/bioinformatics.scm pyproject fanc 0-1.354401e nil 29 0 0.0 gnu/packages/bioinformatics.scm pyproject python-baltica 1.1.2 nil 27 0 0.0 gnu/packages/bioinformatics.scm pyproject python-episcanpy 0.4.0 nil 25 0 0.0 gnu/packages/bioinformatics.scm pyproject python-fanc 0.9.25 nil 26 0 0.0 gnu/packages/bioinformatics.scm pyproject python-hicexplorer 3.7.4 nil 27 0 0.0 gnu/packages/bioinformatics.scm pyproject python-liana-py 1.1.0 nil 25 0 0.0 gnu/packages/bioinformatics.scm pyproject python-metacells 0.9.4 nil 26 0 0.0 gnu/packages/bittorrent.scm python deluge 2.1.1 nil 21 0 0.0 gnu/packages/bootloaders.scm pyproject patman 2024.01 nil 20 0 0.0 gnu/packages/databases.scm pyproject datasette 1.0a7 nil 29 0 0.0 gnu/packages/databases.scm python python-pyarrow 0.16.0 nil 28 0 0.0 gnu/packages/finance.scm python electron-cash 4.4.1 nil 23 0 0.0 gnu/packages/genealogy.scm python gramps 5.1.4 nil 23 0 0.0 gnu/packages/gnome.scm python terminator 2.1.4 nil 20 0 0.0 --8<---------------cut here---------------end--------------->8--- I'm not confident in my Guile Scheme ;-) any review points are welcome. CC core team for wider spread within teams. Sharlatan Hellseher (1): etc: Add teams-packages-stats script. etc/teams-packages-stats.scm | 218 +++++++++++++++++++++++++++++++++++ 1 file changed, 218 insertions(+) create mode 100755 etc/teams-packages-stats.scm base-commit: 2a6d96425eea57dc6dd48a2bec16743046e32e06