From patchwork Thu Aug 1 02:46:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Atharva Lele X-Patchwork-Id: 1140198 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="KAqRrdZW"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45zZSj41Lmz9sMr for ; Thu, 1 Aug 2019 12:46:58 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4114B85FA8; Thu, 1 Aug 2019 02:46:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XdXBXz8rohwi; Thu, 1 Aug 2019 02:46:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9AC7D85FAA; Thu, 1 Aug 2019 02:46:54 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 15EC71BF59D for ; Thu, 1 Aug 2019 02:46:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 12AFF87E19 for ; Thu, 1 Aug 2019 02:46:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zXAzbVOf9jTB for ; Thu, 1 Aug 2019 02:46:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by hemlock.osuosl.org (Postfix) with ESMTPS id 4F26287E14 for ; Thu, 1 Aug 2019 02:46:52 +0000 (UTC) Received: by mail-pl1-f194.google.com with SMTP id 4so24420291pld.10 for ; Wed, 31 Jul 2019 19:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BtSDZBxUviOVZVMoRSoAMACgwQrvy1VNha5yr+azT4A=; b=KAqRrdZW4NOY+jRLE9+5TfyJe+OcNR5C/l46yxV2w6tGBvdwwLb7IZktoi8R5P2m2B Pa3kd38Q62gC6/jcKMXkYCsLSup5X0nM0KJ1CtwbPqALle6esgMcSGLc/oQ45/xoUPhs eASxVPRu3IwQJ+ErxqOUms8SjwPoL59Qf/1w1z6zTHk7Q5Q4CZ9Y7BSi6uYjYCfInPk/ pjQ2BFM0IqUEE7DfUHuinfkEikcR0uEffj6GnW3WgIE9VVS+DQ3g/UQTuVAmupIwI5Ni zhLK+bqk3JM/vKhFsFEyZ+GFDuuc+2DiUb8RV5YSyBa8cTPr3JS2ieJdOcoxl/vmAcb0 kGWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BtSDZBxUviOVZVMoRSoAMACgwQrvy1VNha5yr+azT4A=; b=Udq6+vTaZn6Wl5BTzGWCsPWsM0PtgYk5zKrUeBZ5VUYkJzFhPDpLJuLDPDqUsQxZEL f5tITC2SzNnT28L1oWAMf6epwTExfasysgSi5Ri+YxaOWCcqk76SoCpl3eh4XGbg6xxm v9HZ44T9fxQNvb8R440nPm3dm4xwQ6/rmJ4KyYkTB1V3lCZTVBF8AF1mbleCyMcYAzrl izjYd6kPm13KR/Rb4eFEbE8wYxXfIJjPlzULVtfTmPiPwtnXRNAaLj5a8Js1T03ExCHI rinGR5dMqLACA5n8PvvIA+EbjzUTpBUt7brtwGOzUpaUlB6bhivWBsh69ZN9PNgc0+CU iKFQ== X-Gm-Message-State: APjAAAXlNQssWIj4IX8qtTa7PNHMNk9IwGep+330zt8JVHlYUlcR2cgu eeMiEghRoRt4nMW9tpKyHIibffSS2to= X-Google-Smtp-Source: APXvYqyodgLQIpQS7G7h2LKJhqCWU+C5o6/7vLfx5oynAHSNcmvWw3wtzr3EongKsIXKz1ZjadJOUA== X-Received: by 2002:a17:902:fe14:: with SMTP id g20mr116491983plj.54.1564627611529; Wed, 31 Jul 2019 19:46:51 -0700 (PDT) Received: from localhost.localdomain ([123.201.36.76]) by smtp.gmail.com with ESMTPSA id 185sm79857669pfa.170.2019.07.31.19.46.49 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 31 Jul 2019 19:46:51 -0700 (PDT) From: Atharva Lele To: buildroot@buildroot.org Date: Thu, 1 Aug 2019 08:16:13 +0530 Message-Id: <20190801024643.11024-1-itsatharva@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v4 00/30] builder-class series cover letter X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Atharva Lele , yann.morin.1998@free.fr, thomas.petazzoni@bootlin.com Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Since various functions in the autobuilder script use a lot of common data, we introduce a Builder class to house these variables. I have also included modified versions of Thomas's commits after adapting them to work with Builder class. I created a v4 to change the order of one patch, and to delete another patch. No other changes have been made. RFC: Few patches, namely patches 25, 27-30 have not been reviewed yet. I'd like some feedback on them, if any, so that necessary modifications can be done and it can be merged as soon as possible. Atharva Lele (28): autobuild-run: introduce Builder class autobuild-run: move instance variable from kwargs to Builder class autobuild-run: move njobs from kwargs to Builder class autobuild-run: move sysinfo from kwargs to Builder class autobuild-run: move http variables from kwargs to Builder class autobuild-run: move submitter from kwargs to Builder class autobuild-run: move make_opts from kwargs to Builder class autobuild-run: move niceness from kwargs to Builder class autobuild-run: move toolchains_csv from kwargs to Builder class autobuild-run: move repo from kwargs to Builder class autobuild-run: move upload variable from kwargs to Builder class autobuild-run: move buildpid from kwargs to Builder class autobuild-run: move debug from kwargs to Builder class autobuild-run: define instance directory as a part of Builder class autobuild-run: move log variable to Builder class autobuild-run: remove kwargs argument from function calls and definitions autobuild-run: define source directory as part of Builder class autobuild-run: define download directory as part of Builder class autobuild-run: define output directory as part of Builder class autobuild-run: define results directory as part of Builder class autobuild-run: move check_version() to Builder class autobuild-run: move get_branch() to Builder class autobuild-run: create reason file on build failures web/import.inc.php: support reading failure reason from reason file autobuild-run: modify do_build() to accept outputdir as argument autobuild-run: define different output directory for reproducible builds autobuild-run: use different output directories for reproducible builds testing autobuild-run: make prepare_build() clean the output directory used for reproducibility testing Thomas Petazzoni (2): scripts/autobuild-run: make the HTTP URL really configurable scripts/autobuild-run: support changing repo scripts/autobuild-run | 943 +++++++++++++++++++++--------------------- web/import.inc.php | 26 +- 2 files changed, 488 insertions(+), 481 deletions(-)