From nobody Sat Nov 23 22:54:48 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1729683567846742.9070935347153; Wed, 23 Oct 2024 04:39:27 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id BE5681A7A; Wed, 23 Oct 2024 07:39:26 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 3C5591AED; Wed, 23 Oct 2024 07:34:16 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id C2B7F19F0; Wed, 23 Oct 2024 07:34:12 -0400 (EDT) Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id B051219DD for ; Wed, 23 Oct 2024 07:34:11 -0400 (EDT) Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5c94b0b466cso7542051a12.0 for ; Wed, 23 Oct 2024 04:34:11 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9a912d62e4sm461595266b.7.2024.10.23.04.34.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 04:34:07 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 283C55F8B5; Wed, 23 Oct 2024 12:34:07 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729683250; x=1730288050; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lRYAOn92MElnY+r7ZLHmtJJWBk1GGo3GQl/0Duq+UXc=; b=OeWr7IMXd0TIbJO7NJ0G6StKX0EP2IvUc9Ir+LlbdbcgrcBdfssS1cB+JA58GN5Y/G iBclS77Nq/h8YZXB3vU9YuftfjM4MFqYNfzLXsrXinNfl3sAjY5jMfXB4xvx1gnJjEzh AXdr/oTVZRezJz0XZ/2XKEyf7j1iRyUX59Qm8gyp75LjwSlV7cZL5V0pk12fnvBvnRR4 OsxqwQlih4duIsDb6+2PDj+tvtf+mtkKa+PS05Kvw1rvoN64PhacvsLE0Yrm2INZ6ZRK +tjFXjlUcLbHI7IG2klGx2tgiso8NDsCEL+MWEP0HZ6EuMaY/JimJzj4p3PinBoqKlBs 4xAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729683250; x=1730288050; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lRYAOn92MElnY+r7ZLHmtJJWBk1GGo3GQl/0Duq+UXc=; b=tPR/B8X/KfqtqPPBmPKroBzKBHXKdPNU+W1+8Jbj2srDYkszmNSibskCzEeSVqnEQ5 7bWYwE3a9tIK6eH3smfujccQD1BZM6GGeGVnzuD7Ggydluh07B30h3cR/81N2AR1Ht3K UtM2xBID9VxDiIVUmF2yteTvzvVN8waG5m4gvCfYmQjX96k8uokd2O10KbC4GeGeD8Uf wO3poXzPIzRqDhkF7qwndiFCRZOKgp7HJq3PZyK/xSdkjn41QbJSjqoApnG+0M+l8Cl4 ZDNOc0mnZt7n02iQAhYAwreWEL0bwBieHmvd6o5RZ93EQfEwLuw2WVgoL357jq5NshSQ flnQ== X-Forwarded-Encrypted: i=1; AJvYcCXMm241alUwHo2b4igvj04G6x8uTrHIBS20FiCmKdEUM9wKNBTcxWQOdoGmxbTFsp5HzQOfvQ==@lists.libvirt.org X-Gm-Message-State: AOJu0YxdOclVfH1dMTKz7jWxmTOFmjkR4wlwL//GIWgwIM4RUnIzmSpc yorZ+IT+74+0GyBUDj8E81smZFRxpw7j8y9h8k4jlVFGNuLi4ZwwdJY6WTFsjcA= X-Google-Smtp-Source: AGHT+IG9ed8D/XA3RQ+vEybFyxLY6xveuq9hk50ZZpmXX0BS0cBlAFS0roggteE+iw+87DvUNNlLRQ== X-Received: by 2002:a17:907:7291:b0:a9a:9ab:6233 with SMTP id a640c23a62f3a-a9abf8a7feemr201487366b.34.1729683250497; Wed, 23 Oct 2024 04:34:10 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 02/18] tests/docker: add NOFETCH env variable for testing Date: Wed, 23 Oct 2024 12:33:50 +0100 Message-Id: <20241023113406.1284676-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241023113406.1284676-1-alex.bennee@linaro.org> References: <20241023113406.1284676-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: 5XE2FRT6O5URLAM4762DAWPYEX2ET5T4 X-Message-ID-Hash: 5XE2FRT6O5URLAM4762DAWPYEX2ET5T4 X-MailFrom: alex.bennee@linaro.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0 CC: Zhao Liu , Eduardo Habkost , Pierrick Bouvier , Peter Maydell , Yanan Wang , John Snow , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , devel@lists.libvirt.org, Marcelo Tosatti , Riku Voipio , Wainer dos Santos Moschetta , Marcel Apfelbaum , Paolo Bonzini , Mahmoud Mandour , Laurent Vivier , Jiaxun Yang , "Edgar E. Iglesias" , Richard Henderson , Alexandre Iooss , qemu-arm@nongnu.org, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Cleber Rosa , kvm@vger.kernel.org, Beraldo Leal , Thomas Huth , =?UTF-8?q?Al ex=20Benn=C3=A9e?= X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1729683569492116600 Content-Type: text/plain; charset="utf-8" Testing non-auto built docker containers (i.e. custom built compilers) is a bit fiddly as you couldn't continue a build with a previously locally built container. While you can play games with REGISTRY its simpler to allow a NOFETCH that will go through the cached build process when you run the tests. Message-Id: <20241022105614.839199-3-alex.bennee@linaro.org> Reviewed-by: Pierrick Bouvier Signed-off-by: Alex Benn=C3=A9e --- tests/docker/Makefile.include | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 681feae744..fead7d3abe 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -92,10 +92,10 @@ endif docker-image-alpine: NOUSER=3D1 =20 debian-toolchain-run =3D \ - $(if $(NOCACHE), \ + $(if $(NOCACHE)$(NOFETCH), \ $(call quiet-command, \ $(DOCKER_SCRIPT) build -t qemu/$1 -f $< \ - $(if $V,,--quiet) --no-cache \ + $(if $V,,--quiet) $(if $(NOCACHE),--no-cache) \ --registry $(DOCKER_REGISTRY) --extra-files \ $(DOCKER_FILES_DIR)/$1.d/build-toolchain.sh, \ "BUILD", $1), \ @@ -177,6 +177,7 @@ docker: @echo ' NETWORK=3D$$BACKEND Enable virtual network interface with = $$BACKEND.' @echo ' NOUSER=3D1 Define to disable adding current user t= o containers passwd.' @echo ' NOCACHE=3D1 Ignore cache when build images.' + @echo ' NOFETCH=3D1 Do not fetch from the registry.' @echo ' EXECUTABLE=3D Include executable in image.' @echo ' EXTRA_FILES=3D" [... ]"' @echo ' Include extra files in image.' --=20 2.39.5