Patches for Yocto layers and components that do not have their own list
 help / color / mirror / Atom feed
From: tim.orling@konsulko.com
To: yocto-patches@lists.yoctoproject.org
Subject: [yocto-autobuilder2][PATCH v3 0/6] Implement 'containers' jobs
Date: Fri,  5 Jun 2026 19:51:14 -0700	[thread overview]
Message-ID: <cover.1780710041.git.tim.orling@konsulko.com> (raw)

From: Tim Orling <tim.orling@konsulko.com>

This series builds on top of the patches already merged from v2.

This series contains the 'yocto-autobuilder-helper' patches to enable:
* building, testing and publishing of 'vcontainer-tarball'
  - vcontainer-tests job
* building and pushing containers from:
  - meta-virtualization
* containers are pushed when the push_containers boolean is set in the
  AutoBuilder UI
  - regstries are set with CONTAINER_REGISTRIES variable
* authentication uses local user credentials (e.g. ~/.docker/config.json
  or .../auth.json for podman)
* containers are tagged with PV_MAJOR, PV_MAJOR.PV_MINOR, DISTRO_CODENAME
  and yocto-x.y release (yocto-x.y.z for release builds).

Additional features, such as container signing and attaching SLSA provenance
attestations will come in a future series, once this initial functionality
is agreed upon an stable.

Concerns about the possible infinite loop around the tarball extraction
"while True, try, expect OSError" code [1] are addressed separately [2],
since the original patch has been merged.

This series relies on the resolution of [3] and [4].

[1] https://lore.kernel.org/yocto-patches/02f0c35f16a8a51bbe0e89145353008f67180a84.camel@pbarker.dev/
[2] https://lore.kernel.org/yocto-patches/20260606011918.61582-1-tim.orling@konsulko.com/
[3] https://lore.kernel.org/yocto-meta-virtualization/aiJDIinJWZhO4Jid@gmail.com/T/#t
[4] https://lore.kernel.org/yocto-meta-virtualization/20260604001931.96550-1-tim.orling@konsulko.com/T/#u

Changes in v2:
* Simplify by  merging vdkr-tests and vpdmn-tests into vcontainer-tests
* Simplify by building containers from meta-virtualization:
- Depends on resolution of: https://lists.yoctoproject.org/g/meta-virtualization/message/9826
* Workaround for recent (since Friday May 29, 2026) errors:
  Error: reading blob sha256:<hash>: file integrity checksum failed for "<file>"
  - This is probably related to either sstate changes or recent changes in vcontainer-common...

Changes in v3:
* vcontainer-tarball is installed in jobs that set "vcontainer" similar to "extratools", instead
  of the more global "buildtools" behavior.
* The (rather large amount of) code for pushing containers in run-config is broken out into
  a dedicated run-push-containers script.
* Workaround for pushing containers is moved to run-push-containers. The most recent
  behavior (on top of meta-virt master-next) showed a different error pattern:
  Error: reading blob sha256:<hash>: EOF
  The workaround simply removes all container images from the VM's container-registry before
  importing or pushing new container images. The commit message was reworded accordingly.
* Rather than installing latest versions of pip, setuptools and wheel, silence the pip
  warning with PIP_DISABLE_PIP_VERSION_CHECK=1
* Rather than installing the latest versions of pytest, pytest-timeout and pexpect, install
  from meta-virtualization/tests/requirements.txt (pending).
* Refactor run-vcontainer-tests script to use optargs instead of a mix of positional args
  and env vars.

The following changes since commit 07887d0ace65c873aa929ef31cae52c4c1a8e5c5:

  script/utils: Remove prefix from sha256 parameter if present (2026-06-05 23:41:35 +0100)

are available in the Git repository at:

  https://git.yoctoproject.org/yocto-autobuilder-helper contrib/timo/containers-upstream-v3
  https://git.yoctoproject.org/yocto-autobuilder-helper/log/?h=contrib/timo/containers-upstream-v3

for you to fetch changes up to c21fe441965ef9fd801338f017109592dba8b9e0:

  scripts/run-push-containers: remove all images before push (2026-06-05 18:20:07 -0700)

----------------------------------------------------------------

Tim Orling (6):
  scripts: add vcontainer-tarball setup, integration, and publishing
  config.json: add vcontainer-tarball build target
  scripts: add run-vcontainer-tests for meta-virtualization
  scripts: add container registry push, auth, tagging, runtime selection
  config.json: add 'containers-library' build job
  scripts/run-push-containers: remove all images before push

 config.json                  | 118 +++++++++++++++++++
 scripts/publish-artefacts    |   5 +
 scripts/run-config           |  23 ++++
 scripts/run-push-containers  | 167 +++++++++++++++++++++++++++
 scripts/run-vcontainer-tests | 212 +++++++++++++++++++++++++++++++++++
 scripts/utils.py             |  20 +++-
 6 files changed, 541 insertions(+), 4 deletions(-)
 create mode 100755 scripts/run-push-containers
 create mode 100755 scripts/run-vcontainer-tests

-- 
2.43.0



             reply	other threads:[~2026-06-06  2:51 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-06  2:51 tim.orling [this message]
2026-06-06  2:51 ` [yocto-autobuilder2][PATCH v3 1/6] scripts: add vcontainer-tarball setup, integration, and publishing tim.orling
2026-06-06  2:51 ` [yocto-autobuilder2][PATCH v3 2/6] config.json: add vcontainer-tarball build target tim.orling
2026-06-06  2:51 ` [yocto-autobuilder2][PATCH v3 3/6] scripts: add run-vcontainer-tests for meta-virtualization tim.orling
2026-06-06  2:51 ` [yocto-autobuilder2][PATCH v3 4/6] scripts: add container registry push, auth, tagging, runtime selection tim.orling
2026-06-06  2:51 ` [yocto-autobuilder2][PATCH v3 5/6] config.json: add 'containers-library' build job tim.orling
2026-06-06  2:51 ` [yocto-autobuilder2][PATCH v3 6/6] scripts/run-push-containers: remove all images before push tim.orling
2026-07-06 22:05 ` [yocto-autobuilder-helper][PATCH v4 00/11] Implement 'containers' jobs Tim Orling
2026-07-06 22:05   ` [yocto-autobuilder-helper][PATCH v4 01/11] scripts: add vcontainer-tarball setup, integration, and publishing Tim Orling
2026-07-06 22:05   ` [yocto-autobuilder-helper][PATCH v4 02/11] config.json: add vcontainer-tarball build target Tim Orling
2026-07-06 22:05   ` [yocto-autobuilder-helper][PATCH v4 03/11] scripts: add run-vcontainer-tests for meta-virtualization Tim Orling
2026-07-15 19:09     ` [yocto-patches] " Paul Barker
2026-07-16 15:20       ` Tim Orling
2026-07-06 22:05   ` [yocto-autobuilder-helper][PATCH v4 04/11] scripts: add container registry push, auth, tagging, runtime selection Tim Orling
2026-07-06 22:05   ` [yocto-autobuilder-helper][PATCH v4 05/11] config.json: add 'containers-library' build job Tim Orling
2026-07-06 22:05   ` [yocto-autobuilder-helper][PATCH v4 06/11] scripts/run-push-containers: push multiarch containers with skopeo-native Tim Orling
2026-07-06 22:05   ` [yocto-autobuilder-helper][PATCH v4 07/11] containers-library: switch to multiarch; add alpine single-arch Tim Orling
2026-07-06 22:05   ` [yocto-autobuilder-helper][PATCH v4 08/11] run-push-containers: conditionally sign pushed containers with cosign Tim Orling
2026-07-06 22:05   ` [yocto-autobuilder-helper][PATCH v4 09/11] scripts/run-push-containers: add SPDX SBOM attestation Tim Orling
2026-07-06 22:05   ` [yocto-autobuilder-helper][PATCH v4 10/11] config.json: add -dev container builds to containers-library Tim Orling
2026-07-06 22:05   ` [yocto-autobuilder-helper][PATCH v4 11/11] run-push-containers: optionally push -dev tagged containers Tim Orling
2026-07-28  1:40   ` [yocto-autobuilder-helper][PATCH v5 00/12] Implement 'containers' jobs Tim Orling
2026-07-28  1:40     ` [yocto-autobuilder-helper][PATCH v5 01/12] scripts: add vcontainer-tarball setup, integration, and publishing Tim Orling
2026-07-28  1:40     ` [yocto-autobuilder-helper][PATCH v5 02/12] config.json: add vcontainer-tarball build target Tim Orling
2026-07-28  1:40     ` [yocto-autobuilder-helper][PATCH v5 03/12] scripts: add run-vcontainer-tests for meta-virtualization Tim Orling
2026-07-28  1:40     ` [yocto-autobuilder-helper][PATCH v5 04/12] scripts: add container registry push, auth, tagging, runtime selection Tim Orling
2026-07-28  1:40     ` [yocto-autobuilder-helper][PATCH v5 05/12] config.json: add 'containers-library' build job Tim Orling
2026-07-28  1:40     ` [yocto-autobuilder-helper][PATCH v5 06/12] scripts/run-push-containers: push multiarch containers with skopeo-native Tim Orling
2026-07-28  1:40     ` [yocto-autobuilder-helper][PATCH v5 07/12] containers-library: switch to multiarch Tim Orling
2026-07-28  1:40     ` [yocto-autobuilder-helper][PATCH v5 08/12] run-push-containers: conditionally sign pushed containers with cosign Tim Orling
2026-07-28  1:40     ` [yocto-autobuilder-helper][PATCH v5 09/12] scripts/run-push-containers: add SPDX SBOM attestation Tim Orling
2026-07-28  1:40     ` [yocto-autobuilder-helper][PATCH v5 10/12] config.json: add -dev container builds to containers-library Tim Orling
2026-07-28  1:40     ` [yocto-autobuilder-helper][PATCH v5 11/12] run-push-containers: optionally push -dev tagged containers Tim Orling
2026-07-28  1:40     ` [yocto-autobuilder-helper][PATCH v5 12/12] config.json: set VCONTAINER_TARBALL_URL Tim Orling

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1780710041.git.tim.orling@konsulko.com \
    --to=tim.orling@konsulko.com \
    --cc=yocto-patches@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox