From patchwork Thu Jul 29 05:00:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Sundberg X-Patchwork-Id: 31641 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 B423727BC78; Thu, 29 Jul 2021 06:01:16 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 839DA27BC6B for ; Thu, 29 Jul 2021 06:01:16 +0100 (BST) Received: from localhost ([::1]:37320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8yAV-0007HU-Kh for patchwork@mira.cbaines.net; Thu, 29 Jul 2021 01:01:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8yAM-0007H4-AR for guix-patches@gnu.org; Thu, 29 Jul 2021 01:01:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m8yAI-0005gk-F8 for guix-patches@gnu.org; Thu, 29 Jul 2021 01:01:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m8yAI-0005Oi-C4 for guix-patches@gnu.org; Thu, 29 Jul 2021 01:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49766] [PATCH] gnu: rocksdb: set TEST_TMPDIR for faster test i/o. Resent-From: Ryan Sundberg Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 29 Jul 2021 05:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49766 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49766@debbugs.gnu.org Cc: Ryan Sundberg X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162753485320722 (code B ref -1); Thu, 29 Jul 2021 05:01:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Jul 2021 05:00:53 +0000 Received: from localhost ([127.0.0.1]:56272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8yA9-0005O9-60 for submit@debbugs.gnu.org; Thu, 29 Jul 2021 01:00:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:53056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8yA7-0005O2-PE for submit@debbugs.gnu.org; Thu, 29 Jul 2021 01:00:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8yA5-0007Gq-MX for guix-patches@gnu.org; Thu, 29 Jul 2021 01:00:49 -0400 Received: from mail.arctype.co ([138.68.9.245]:42175) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m8yA2-0005Q8-Hf for guix-patches@gnu.org; Thu, 29 Jul 2021 01:00:49 -0400 Received: from authenticated-user (mail.arctype.co [138.68.9.245]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mail.arctype.co (Postfix) with ESMTPSA id 49D2713CD24; Thu, 29 Jul 2021 05:00:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=arctype.co; s=mail; t=1627534841; bh=cZEN9LSHWvHGpyt2Vs9ZrfMUG2u+iMa3ZVTSOQ/+YTY=; h=From:To:Cc:Subject:Date:From; b=uPC/NwV1Bib1uZeCOj4nUtHb6w+DXQTdBf358dX1Tm9NmhnjKbzrtSQyLJ/BSRYtq 8xNMIJ9XBcdwZ0Ys2fnYfdPFT9P/SAYJqf+EtiVfmU5lfnWE7prWr4u0w/8fH9aYYV 5Uj7XjCby1ONC8K8wfFnm/qIeDI9CO+OwS1QRrPknsfEFLsodlisx7urTQ3z8mHSJh V+imV7FaS2Fhf6deT+GIwjYmzAtJKppddzDfQPgCv5XQdrWueL3MuP+cl69/emaijo cnU+nTgVForPTuXxpEKY0jvBQFMqI0dYIrdkNbUtc0zdE2rCS8v259RewYpyoqbAdM unQ1YDypxHARA== Date: Wed, 28 Jul 2021 22:00:26 -0700 Message-Id: <20210729050026.18416-1-ryan@arctype.co> MIME-Version: 1.0 Received-SPF: pass client-ip=138.68.9.245; envelope-from=ryan@arctype.co; helo=mail.arctype.co 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, SPF_HELO_PASS=-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" Reply-to: Ryan Sundberg X-ACL-Warn: , Ryan Sundberg via Guix-patches X-Patchwork-Original-From: Ryan Sundberg via Guix-patches via From: Ryan Sundberg X-getmail-retrieved-from-mailbox: Patches The rocksdb test can take an egregious amount of time on a spinning HDD. This will inherit guixbuild's /tmp mount for the rocksdb testing directory. * gnu/packages/databases.scm (rocksdb)[arguments]: set TEST_TMPDIR for check phase --- gnu/packages/databases.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 5de79de955..cd19d14950 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -1395,10 +1395,19 @@ including field and record folding."))) (("install: install-static") "install: install-shared") (("#!/bin/sh") (string-append "#!" (which "sh")))) - #t)) + #t)) (delete 'configure) ;; The default target is only needed for tests and built on demand. (delete 'build) + (add-before 'check 'mount-tmp + ;; Use the provided workspace directory for test files. + ;; Otherwise, /tmp is used which is a mount namespace on /gnu/store. + ;; This speeds up the build when the host /tmp is a proper tmpfs or + ;; other fast filesystem, as opposed to /gnu which may be a HDD. + (lambda _ + (let ((test-dir (string-append (getcwd) "/../test"))) + (mkdir test-dir) + (setenv "TEST_TMPDIR" (canonicalize-path test-dir))))) (add-before 'check 'disable-optimizations (lambda _ ;; Prevent the build from passing '-march=native' to the compiler. @@ -1429,6 +1438,7 @@ including field and record folding."))) ("perl" ,perl) ("procps" ,procps) ("python" ,python-2) + ("util-linux" ,util-linux) ("which" ,which))) (inputs `(("bzip2" ,bzip2)