From patchwork Mon Feb 17 22:06:15 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 57478 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B060C021AE for ; Mon, 17 Feb 2025 22:06:35 +0000 (UTC) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mx.groups.io with SMTP id smtpd.web11.5927.1739829991815703470 for ; Mon, 17 Feb 2025 14:06:32 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=zo1RCCB4; spf=pass (domain: smile.fr, ip: 209.85.128.46, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4397dff185fso15997225e9.2 for ; Mon, 17 Feb 2025 14:06:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1739829990; x=1740434790; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=BDGrqOXg0BMRvazmgQ4KUvlcJ3e+vlddW8mkWiveyf8=; b=zo1RCCB40gY5lz+EIyMNpnNsLLiep6UNG+YWnEaMfs3TGRFfJmzYKDZEWbN1yhIJM2 Y2Oe4vqCkDvaXxOwF9dcgBBmgEt8wplIJcXe0ws2RRVYmiXsmZU0WIx8279DHE894DwK Owrt+Xuw1ADOWvAykhdtMeyI+z0oIZVU5iQJc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739829990; x=1740434790; 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=BDGrqOXg0BMRvazmgQ4KUvlcJ3e+vlddW8mkWiveyf8=; b=VrgP69cgl11ia+Tghy5ha7fgwL/JdXAW0QPruqc7ti7g0QtbUTwVH9SnixrZhkKlFx iMgh+s8cEKvC2A1g9mGExRhDDjgdNnnYqG5/U9vVzSSESY4AZRI9q/BMNt+VKh5NU7Gu 4xI9HsAghuO3fb5mr/Mq2Y3JPl62emR9HhszMf3KVvkKUnuzxOlTzf8LqOlCmM3yhSyn L29U255IEeZOvTJ6yuWX5jEWzejQTrDlYg8XznUfNf1DACevCwashB9zZzIE4Hqqshjj qXncxuzSviFNBbxHRE/8jtnA4bniS9bs9BEvwz62CfhP+lXL+6ywK7OmoloideYvN41Z CBEw== X-Gm-Message-State: AOJu0YwUA3Q+5qIiCxCrrYhNP8dpVf6VAFhn38jTh8XOjjltTmpmnsJN SX0gyrHC3fIUq2/LyscbgqDjwv1L2IOPrcwYqROxMul42qCSOZrI933kDDg1PaHhlQHvKkOG2tl K X-Gm-Gg: ASbGncuL+JxQv3Lce/TYKX+edZNVAMmKXYJrtfp6L9GbPJ7OLXdCIiwT/3Z/+4riItf Ksrsm76uqe6V2pC06X5gSuMAUXBet/e3212R50VbPRB6yjDwIy1E0M9L/k5j/GJm/KiDVRqxwaf X+pLcwy/3bKijVEk+Z48xYqalFN/E0gWYdx5uO4+gkBq7SxbSd3dmpQQdKLKN2viPUiZgw2/RR+ jbzAsxgNYAA2RSmwOiYNSvIJAvPm1zqZMXkVHwkZiO6MTjbsiA5ZjtqafyFi5uJPnVSBZPpHWWG Ltj++b/t6gaBKx71zFXCSA6DBmAHDXC9leSp2SPuT0Q0cYps5yXZnyrssNQkyCmy0NZVTEsxnJa 0bxXLUK9BjuqXOmj7mpmu0+A= X-Google-Smtp-Source: AGHT+IFuAqzejFAY6rxDmH4eKYfZIdtPvoxgNn5b9pMAXwIWwwnt2zsVtOD9t82ScN1dWwluVAkRmw== X-Received: by 2002:a05:600c:3b0f:b0:439:8c6d:7ad9 with SMTP id 5b1f17b1804b1-4398c6d7da4mr36367225e9.31.1739829989678; Mon, 17 Feb 2025 14:06:29 -0800 (PST) Received: from P-ASN-ECS-830T8C3.local (2a01cb000deef000fa5d724a12d076e5.ipv6.abo.wanadoo.fr. [2a01:cb00:dee:f000:fa5d:724a:12d0:76e5]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38f259f7987sm13033958f8f.87.2025.02.17.14.06.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Feb 2025 14:06:29 -0800 (PST) From: Yoann Congal To: docs@lists.yoctoproject.org Cc: Yoann Congal , Guillaume Swaenepoel , Quentin Schulz Subject: [PATCH v6 1/4] ref-manual/variables: document OEQA_REPRODUCIBLE_TEST_LEAF_TARGETS Date: Mon, 17 Feb 2025 23:06:15 +0100 Message-Id: <20250217220618.1999362-1-yoann.congal@smile.fr> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 17 Feb 2025 22:06:35 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/6406 From: Yoann Congal This documents the variable used in the "automate testing a single recipe's reproducibility" feature [YOCTO #15701] Signed-off-by: Yoann Congal Reviewed-by: Guillaume Swaenepoel Reviewed-by: Quentin Schulz --- v5->v6: Quentin's review: * Proper highliting (:term:, :ref: and ``) * s/varflags/varflag/ * Reviewed-by: Quentin Schulz (Thanks!) v3->v4: Quentin's Review * make missing dependencies more explicit Guillaume's Reviewed-By v2->v3: Quentin's review: * s/target/target(s)/ * Removed Guillaume Reviewed-by (given privately) --- documentation/ref-manual/variables.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index adbef69d8..e91568cb8 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst @@ -5807,6 +5807,15 @@ system and gives an overview of their function and contents. For additional information on how this variable is used, see the initialization script. + :term:`OEQA_REPRODUCIBLE_TEST_LEAF_TARGETS` + Set build target(s) for build reproducibility testing but activate + :ref:`shared state ` build + for most dependencies (i.e. the ones explicitly listed in + :term:`DEPENDS`, which may not be all dependencies, c.f. :ref:`[depends] + varflag `, + ``PACKAGE_DEPENDS`` and other implementations). See + :doc:`/test-manual/reproducible-builds`. + :term:`OEQA_REPRODUCIBLE_TEST_PACKAGE` Set the package manager(s) for build reproducibility testing. See :yocto_git:`reproducible.py ` From patchwork Mon Feb 17 22:06:16 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 57479 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B030C021AD for ; Mon, 17 Feb 2025 22:06:35 +0000 (UTC) Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by mx.groups.io with SMTP id smtpd.web10.5900.1739829992632461261 for ; Mon, 17 Feb 2025 14:06:32 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=mgh55H7Z; spf=pass (domain: smile.fr, ip: 209.85.221.53, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-38f3486062eso1888690f8f.0 for ; Mon, 17 Feb 2025 14:06:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1739829991; x=1740434791; darn=lists.yoctoproject.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=RB9teFL5hakUyyfc94DwlHzfuR1uVHy6s6ZC0Xah/P8=; b=mgh55H7Z1UCUcA7KfNXu4P/wnkl5MAPzCysWcZ3RyqGFwDrVH4dFJ8jnsDfQRx14w/ TMIbrHpto8d/53fDzfREDj9fxkpkZv/wD+lpu3NH2wDLrwFg5WA7E9f4G5rS3f1ATUQp gMo7Koi0wJOOlqUiQalAQuHNafyUsrgvvF5iU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739829991; x=1740434791; 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=RB9teFL5hakUyyfc94DwlHzfuR1uVHy6s6ZC0Xah/P8=; b=DbLmNVqAHoX72mwmH5MvK119IXBLfXzqRfB8B1XtWYdQpA+olwwxSNh1++BzqCgl6L LNVWJqmj5GtosAyQhHfeCCW3MA8OWAtxEv2HGkPlE3gfbv8dOiyLaFC6phnf2WwzJd3j frjcW8fB8n7G5trzlzPI5vb7kYPG1fsYE1FrEv92bCV1ITZAAgrxTGR0OofLdf5QaXdd A+fO3GCMwP922K+W3lwLC2DpzvajZEH1FuB1EAk4ZRkzvJIehqvwgsur0jspsoNTBSOu ST7otKnhlSHQGugUK9KaOk0KDHWoJsa6oyftYKoawGjrUF1c7H1v6bNx5luds3rHHDmn qTQw== X-Gm-Message-State: AOJu0YzJLdJEndkzK6kHXbU67WJ5Ijezd1L7xh0+FnQUfYxdofvVy9E1 nAyZshlxlYwQwrGhTXEr5uLNGoWbkLXGaeg8KzIr4ZDn6URBR30B8TLmySebPVu5SlZlnQzsh1k d X-Gm-Gg: ASbGncszAFVRjIjsXiWVN5vdOZ+WYPtcaVW8f4Zkxp3zEMfCVcOa2hHmpufWdb4r/ui AcexhEoye6WdLTts6lmvcu0GUpJ7KI+jvqKuCXjA1yE+Sr72ZgJWV19G2qCcgAn3kD0fBAlKcKX kEOdGjQ8ZJuF/pYfnWPeXjih2sRIAS1iMPULYr8YLV4cBfbyGNMh+L8TBmUyU2igkqzC7R8PT7R fTa/fZwh0Qtmuw0oGJrm2Vtvqlcq86MMuoeIlXCrYgVd+nVCA64+7+jgxR9UZ3HJzJkUKzS5WcX sqgHyTOp3jj1ta6kZR4CNO4hLS27i+QyJoxBih/AOUZ2lp/o1vCL3bYvtEDolEnimEK0Y9Un9IN TatpmvKjbOqlW+E1Nz9loKx0= X-Google-Smtp-Source: AGHT+IH2P8n72uqicq0ZKUmNNx2XwriV5drkXSbheVU6uijY6+JzrhbhvQMryEFap+feOLfUEA1+nw== X-Received: by 2002:a5d:4651:0:b0:38d:a8f7:cb73 with SMTP id ffacd0b85a97d-38f33f43850mr9755504f8f.40.1739829990824; Mon, 17 Feb 2025 14:06:30 -0800 (PST) Received: from P-ASN-ECS-830T8C3.local (2a01cb000deef000fa5d724a12d076e5.ipv6.abo.wanadoo.fr. [2a01:cb00:dee:f000:fa5d:724a:12d0:76e5]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38f259f7987sm13033958f8f.87.2025.02.17.14.06.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Feb 2025 14:06:29 -0800 (PST) From: Yoann Congal To: docs@lists.yoctoproject.org Cc: Yoann Congal , Guillaume Swaenepoel , Quentin Schulz Subject: [PATCH v6 2/4] reproducible-builds: change/add titles in the "How" section Date: Mon, 17 Feb 2025 23:06:16 +0100 Message-Id: <20250217220618.1999362-2-yoann.congal@smile.fr> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250217220618.1999362-1-yoann.congal@smile.fr> References: <20250217220618.1999362-1-yoann.congal@smile.fr> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 17 Feb 2025 22:06:35 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/6407 From: Yoann Congal This is preparation work for the following commit. Signed-off-by: Yoann Congal Reviewed-by: Guillaume Swaenepoel Reviewed-by: Quentin Schulz --- v3->v4: Reviewed-by: Guillaume v2->v3: Quentin's review: * Removed Guillaume Reviewed-by (given privately) --- documentation/test-manual/reproducible-builds.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/documentation/test-manual/reproducible-builds.rst b/documentation/test-manual/reproducible-builds.rst index aaf2e4541..b9f671d68 100644 --- a/documentation/test-manual/reproducible-builds.rst +++ b/documentation/test-manual/reproducible-builds.rst @@ -122,9 +122,12 @@ The project's current reproducibility status can be seen at You can also check the reproducibility status on the Autobuilder: :yocto_ab:`/valkyrie/#/builders/reproducible`. -=============================== -Can I test my layer or recipes? -=============================== +=================================== +How can I test my layer or recipes? +=================================== + +With world build +~~~~~~~~~~~~~~~~ Once again, you can run a ``world`` test using the :ref:`oe-selftest ` @@ -132,6 +135,9 @@ command provided above. This functionality is implemented in :oe_git:`meta/lib/oeqa/selftest/cases/reproducible.py `. +Subclassing the test +~~~~~~~~~~~~~~~~~~~~ + You could subclass the test and change ``targets`` to a different target. You may also change ``sstate_targets`` which would allow you to "pre-cache" some From patchwork Mon Feb 17 22:06:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 57477 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E789C021AA for ; Mon, 17 Feb 2025 22:06:35 +0000 (UTC) Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by mx.groups.io with SMTP id smtpd.web11.5929.1739829993820609931 for ; Mon, 17 Feb 2025 14:06:34 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=IM4Zv2vI; spf=pass (domain: smile.fr, ip: 209.85.221.46, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-38f22fe889aso3798791f8f.3 for ; Mon, 17 Feb 2025 14:06:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1739829992; x=1740434792; darn=lists.yoctoproject.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=qNL1Ir+vyJQD7W6nRY42cK4BaBh4vTRIDlqSl/3C1Cg=; b=IM4Zv2vITrBEw4AI3nVdqZkC6yEWpPiewdFwtKK0mKALOGEIjN0z5CIxK1x7b/VOw3 7huJ3ns+sQzoOG/Z+cbGss64qotRyGgtokfNQYQ0fU7k/Z5Ir+JIjcErDD1Qxv/hkyrO HUWRSX2UfeqB4TuS08vYFxgZ0jxmrbZ8/l7p0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739829992; x=1740434792; 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=qNL1Ir+vyJQD7W6nRY42cK4BaBh4vTRIDlqSl/3C1Cg=; b=H+VKpUfLH3pF3Psj4+CPEulvF+M6k43DZXTYVo/xEZkmCEk3GiJb1kbLWl1icjOLOS abXQIcjNG3znGOCHue+oPSw4IjrbsOcAhVeU9EBYmxtpgVFfO6zBKHr2h6MgASKwXnGf EKrk38WJbtCYecM+M7GQ/j9J/5IYhl1Mf82/dJoXEsMReXBxdSXI1QVYQ0MT/buOWDfX Gosc00uIan1ZxhdtK4rMlSXrBfJbcjd5Gesi4AWIiD9B3/x8JZETTTsJTsCOqTQSNF76 V/v7wztCPuvdzGptiSmtdBU8FBvQAIgnsixwX/QKuG61tYdMJ6uEvJZHX7GNi312gsn+ Ck1g== X-Gm-Message-State: AOJu0Yx+wknwxBckvjdJyHE8u7DaawmD3AjQavU1P8HJRSSb7rPipvlf /oiNd02ok19gghEvPu33mUd4YH8zvufAaZ+jS9n/N03oWgg47IYgtDnpA0ChuWxa8u/4nI2l9T8 Z X-Gm-Gg: ASbGnctNKPFm/FpD5kiNARh95qwWk09uNuHnq5hnU4Dtq/gt5t4kdpGaeZN3u5ZanCC Mb7FLPpcXQmGtUEcILb6ttXBdU8R7CufYDwwW90dkFu+gC8D9L7MGus6oseYMSpphWawJA6AmCP MHv1OX27RcNuZ7V6v9oSgSJT4XQt4LRE1/zGcMc4fka06xQum8GbeCCau/85X0RQ8/Bml9d1uD7 UtrmMoWkb0XYi6XbqQ4ehYj2qhh8+v4hLmcul1eSjbJ4OIFYjFAsyljUPDy333saQFiE1YD9Y8J /JtuPt+zzP7ReDk6Nhocf//PCxtMSmPkqxjGZoosZS6U36yVF51vfo8yw87AqY7HDEuN+lZZLoN SXHFzsst5UsE+P5jZovj2LXE= X-Google-Smtp-Source: AGHT+IFSxF6af2jmmeTIir5kfobHx5EvxgiLTYH6upMn5a6aHR2VMXJqxJaiUL/8J7ScRAMbL4oKDA== X-Received: by 2002:a5d:5f4a:0:b0:38f:4244:68cb with SMTP id ffacd0b85a97d-38f42446bfbmr5651807f8f.12.1739829991643; Mon, 17 Feb 2025 14:06:31 -0800 (PST) Received: from P-ASN-ECS-830T8C3.local (2a01cb000deef000fa5d724a12d076e5.ipv6.abo.wanadoo.fr. [2a01:cb00:dee:f000:fa5d:724a:12d0:76e5]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38f259f7987sm13033958f8f.87.2025.02.17.14.06.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Feb 2025 14:06:31 -0800 (PST) From: Yoann Congal To: docs@lists.yoctoproject.org Cc: Yoann Congal , Guillaume Swaenepoel , Quentin Schulz Subject: [PATCH v6 3/4] reproducible-builds: add a "How to" section with OEQA* variables Date: Mon, 17 Feb 2025 23:06:17 +0100 Message-Id: <20250217220618.1999362-3-yoann.congal@smile.fr> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250217220618.1999362-1-yoann.congal@smile.fr> References: <20250217220618.1999362-1-yoann.congal@smile.fr> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 17 Feb 2025 22:06:35 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/6408 From: Yoann Congal Shows an example of the new variable OEQA_REPRODUCIBLE_TEST_LEAF_TARGETS and still mention OEQA_REPRODUCIBLE_TEST_TARGET/SSTATE_TARGETS that were shown earlier. Signed-off-by: Yoann Congal Reviewed-by: Guillaume Swaenepoel Reviewed-by: Quentin Schulz --- v5->v6: Quentin's review * Proper highliting (:term:, :ref: and ``) * s/varflags/varflag/ * Reviewed-by: Quentin Schulz (Thanks!) v4->v5: Quentin's review: * use :term: link in title v3->v4: Quentin's Review * make missing dependencies more explicit Guillaume's Reviewed-by v2->v3: Quentin's review * Double tick quote variable in title * Removed Guillaume Reviewed-by (given privately) v1->v2: Quentin's review * tick-quote variable in title * a set of recipeS * 3 spaces to align a code block (not 4) --- --- .../test-manual/reproducible-builds.rst | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/documentation/test-manual/reproducible-builds.rst b/documentation/test-manual/reproducible-builds.rst index b9f671d68..8559cbcf0 100644 --- a/documentation/test-manual/reproducible-builds.rst +++ b/documentation/test-manual/reproducible-builds.rst @@ -145,3 +145,24 @@ set of recipes before the test, meaning they are excluded from reproducibility testing. As a practical example, you could set ``sstate_targets`` to ``core-image-sato``, then setting ``targets`` to ``core-image-sato-sdk`` would run reproducibility tests only on the targets belonging only to ``core-image-sato-sdk``. + +Using :term:`OEQA_REPRODUCIBLE_TEST_* ` variables +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +If you want to test the reproducibility of a set of recipes, you can define +:term:`OEQA_REPRODUCIBLE_TEST_LEAF_TARGETS`, in your local.conf:: + + OEQA_REPRODUCIBLE_TEST_LEAF_TARGETS = "my-recipe" + +This will test the reproducibility of ``my-recipe`` but will use the +:ref:`Shared State ` for most of its +dependencies (i.e. the ones explicitly listed in :term:`DEPENDS`, which may not +be all dependencies, c.f. :ref:`[depends] varflag +`, +``PACKAGE_DEPENDS`` and other implementations). + +You can have finer control on the test with: + +- :term:`OEQA_REPRODUCIBLE_TEST_TARGET`: lists recipes to be built, +- :term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS`: lists recipes that will + be built using :ref:`Shared State `. From patchwork Mon Feb 17 22:06:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 57480 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D02DC021A9 for ; Mon, 17 Feb 2025 22:06:35 +0000 (UTC) Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by mx.groups.io with SMTP id smtpd.web11.5931.1739829994007545311 for ; Mon, 17 Feb 2025 14:06:34 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=lf0Mz2es; spf=pass (domain: smile.fr, ip: 209.85.221.45, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-38de1a5f039so4674369f8f.2 for ; Mon, 17 Feb 2025 14:06:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1739829992; x=1740434792; darn=lists.yoctoproject.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=hntcLj3lxsMzAkSDPSSMZaeGGgCUlrL7e1g7Rfwghsc=; b=lf0Mz2eseM0uE5oGuVNzwXmuGnXlziBQWBQRTUDUxr0CaObRVED7Oo4ZARDdPVaoSs UEJV2brkiMg7HKN9mxRi9pJ08R92xIEIwbG691jJSBUGuOOrlin0BQw/G8aMnnB+7gEO BU23XvgyLyWA/lwf6Q+154CKI8hC1WPoA63ss= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739829992; x=1740434792; 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=hntcLj3lxsMzAkSDPSSMZaeGGgCUlrL7e1g7Rfwghsc=; b=kkCs1ycN3a87n7auYdkZcb3TB80cTr9Th6r4M5EJc0Ohn0+eqqkXUxatrgPR4470jV vUpPQB+dkAIOg/S8dR8TFj25MZpyPJNGTg9yDI1K/8UFBMF3ET1ya+C6KGKP+XQ6tnXZ ocFPV20mnSdrDsTns5zgWID7DZDJgoEDjE/HWnxSugX+lhZZooPir7gNhtWSWrI17tMI DPs7JTcR01R3ZhmS2NwsM1bwOLSdf74fda2zAJX53LV0zvU/6pktBDQCzw5iY3xMFNd0 HKZA6PgUtF6TF6icufjJl1bN+LJ7RQ1AcuyRC/hRcLfJ2FnYc41xMwWKewTgLoJxnQNv 7S3A== X-Gm-Message-State: AOJu0Yzbb3FD25aF7nNKJHUHE0JevL85S9NsbzAs4pMOCUFSsVq0B/GU 7mPQXxx49BP513rx6lcII/u5ZkDTMveSUJseIQ2woNcywJaCSM6YABqdLlr637iM6ZiAiULPAY+ o X-Gm-Gg: ASbGncuFBaxokD6Txv8YEDPm9NpoVrDTnnTs2/9jtkhiC3SCtHjD500qOQzglAoGmOm pvBsoy+j497X3ojSyAURePsy2BzXouv3EPQcZDI0uiFQL0tBavdLInpSZF4ZloPwhoWYnIJey/8 Ri0QUgScBN/Cb2d4ZbNmN4SaEa8FW0TtdQGOJ+eXdB6NoU9Editnz9LCgLP57chPdK4YRweeVlU WPjmjFfVdrjSw0s7rZtfZC5RwEJmFWvVXVwycvnxuj5BSaJH3WFboGdZQfZ0/u1DqqbdPRmoAU8 q/IzAfbgs7Qmj1zlZRVltOpotUjMDRfW5l0LkoEeQaZeIq13WKZeMPNexSXS9rvIlxC4ox07K5M D6VVt9+RagM72ikeU5YLMnUg= X-Google-Smtp-Source: AGHT+IFqC9gO21jbySYB+B5sLHs5JF0M924bfALt51TiD9e3wW24T92BYZSFUuha9yiRC9uBHWAoHw== X-Received: by 2002:a5d:64e6:0:b0:38d:c9da:d0d7 with SMTP id ffacd0b85a97d-38f33f125ebmr9722806f8f.2.1739829992102; Mon, 17 Feb 2025 14:06:32 -0800 (PST) Received: from P-ASN-ECS-830T8C3.local (2a01cb000deef000fa5d724a12d076e5.ipv6.abo.wanadoo.fr. [2a01:cb00:dee:f000:fa5d:724a:12d0:76e5]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38f259f7987sm13033958f8f.87.2025.02.17.14.06.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Feb 2025 14:06:31 -0800 (PST) From: Yoann Congal To: docs@lists.yoctoproject.org Cc: Yoann Congal , Guillaume Swaenepoel , Quentin Schulz Subject: [PATCH v6 4/4] release-notes-5.2: Add new variable OEQA_REPRODUCIBLE_TEST_LEAF_TARGETS Date: Mon, 17 Feb 2025 23:06:18 +0100 Message-Id: <20250217220618.1999362-4-yoann.congal@smile.fr> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250217220618.1999362-1-yoann.congal@smile.fr> References: <20250217220618.1999362-1-yoann.congal@smile.fr> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 17 Feb 2025 22:06:35 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/6409 From: Yoann Congal Add mention of OEQA_REPRODUCIBLE_TEST_LEAF_TARGETS to release-notes-5.2 so users can use it after upgrading. Signed-off-by: Yoann Congal Reviewed-by: Guillaume Swaenepoel Reviewed-by: Quentin Schulz --- v5->v6: Quentin's review * s/to/so/ * Reviewed-by: Quentin Schulz (Thanks) v3->v4: * Quentin's review: * s/single recipe/recipes/ * link to sstate * Reviewed-by: Guillaume v2->v3: Antonin's Review: * Add OEQA_REPRODUCIBLE_TEST_LEAF_TARGETS ot release-notes-5.2 --- documentation/migration-guides/release-notes-5.2.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/documentation/migration-guides/release-notes-5.2.rst b/documentation/migration-guides/release-notes-5.2.rst index b0e538700..417b202cd 100644 --- a/documentation/migration-guides/release-notes-5.2.rst +++ b/documentation/migration-guides/release-notes-5.2.rst @@ -17,6 +17,10 @@ New Features / Enhancements in |yocto-ver| - ``linux-firmware``: Add the :term:`FIRMWARE_COMPRESSION` variable which allows compression the firmwares provided by the ``linux-firmware`` recipe. Possible values are ``xz`` and ``zst``. + - reproducibility: Add the :term:`OEQA_REPRODUCIBLE_TEST_LEAF_TARGETS` + variable which enables a reproducibility test on recipes using + :ref:`Shared State ` for the + dependencies. See :doc:`/test-manual/reproducible-builds`. - Kernel-related changes: