From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wLZwGB82AmE3PQEAgWs5BA (envelope-from ) for ; Thu, 29 Jul 2021 07:01:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GCUTFB82AmGgNAAAB5/wlQ (envelope-from ) for ; Thu, 29 Jul 2021 05:01:19 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0567E13BD5 for ; Thu, 29 Jul 2021 07:01:18 +0200 (CEST) Received: from localhost ([::1]:37320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8yAX-0007HU-4d for larch@yhetil.org; Thu, 29 Jul 2021 01:01:17 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Ryan Sundberg X-ACL-Warn: , Ryan Sundberg via Guix-patches From: Ryan Sundberg via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627534879; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=3N7y/or1gZJH1cosfYdY+d/Vgmb+6Yx1bsWT/DMqbiE=; b=d2KA5CbVpZoGplwnQ9i/SMc2BriTCjAdYbZJV0U18CGwh6whX70ZQJEhYgl5dSAMhL6z0b UraoKPs4gJ+6061R8zar7Y5dLMIUE/k0vTG5kdEJ0TYk/eR71nEfqgjQkiklg8wb3cl2sK lMAK/WhOtWyv3qZmMRWJ99ziAWOTEDf/m0bIiu0HIemG+G2ZwL0nT/BHuUkkvECYJ0HFLN WgFyqFd+A7KnjkG8aWC33ZRmLF4v9VMAgYjsqFf3MU9Gu/xrkz2gEOo9928HRHDy4JWYAd i9N+Pveubbbo7/CbJyupG6BLwJFJkWJlke+07fdiTrWAaS9gYHIHr0zqYCalag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627534879; a=rsa-sha256; cv=none; b=iL1hn4ZvVVzChSzhYhNJTQxqRyjPY5sJUJLYqiY5HNJ9CnxsgmMkgDClEswXaZ32u0O279 ilg5fvSBpcczSU/SLezQCP9I8aFQ5nbL7Gywlq1iqZMifZNPbFkWmVkgmwx9Xw2oe6NIko SVEdPHXECXvYEhr3eYgd2ug3+96U4nBZcxPeOUNfH077mPdPbBsBjID7jOnI85DktRGolS PXtnf2uPY4WdRK/xiWeITOV1Rgihx9+oce6YF0t5ukjEaOHE+54qccJgCSdlQ9l4k3Hklg VFfTERehpZNNY/s7P01TMiWFVz1MsXwWlac/il/Pbu6cHba1VeEEzU8TGu5osQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=arctype.co header.s=mail header.b="uPC/NwV1"; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 1.08 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=arctype.co header.s=mail header.b="uPC/NwV1"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 0567E13BD5 X-Spam-Score: 1.08 X-Migadu-Scanner: scn0.migadu.com X-TUID: uY/KVhyB3GI6 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) -- 2.31.1