Skip to content

build: add HV=k package build to PR workflow#5702

Merged
eriknordmark merged 1 commit intolf-edge:masterfrom
europaul:fix/build-k-pkgs
Mar 25, 2026
Merged

build: add HV=k package build to PR workflow#5702
eriknordmark merged 1 commit intolf-edge:masterfrom
europaul:fix/build-k-pkgs

Conversation

@europaul
Copy link
Copy Markdown
Contributor

Description

When building EVE with HV=k, the Makefile includes additional packages
(kube, external-boot-image) and builds pillar with build-k.yml instead
of build.yml. Without a separate package build step for HV=k, the eve job
fails because these packages are missing from the linuxkit cache.

This PR adds an amd64/generic/k entry to the packages matrix so that
k-specific packages are built and cached separately, and updates all cache keys
to include the hv dimension (default for non-k builds, k for the
kubernetes variant).

How to test and validate this PR

  • Verify the packages job matrix now includes an amd64/generic/k entry that
    builds with HV=k
  • Verify the eve job with HV=k restores the correct cache with -k suffix
  • Confirm existing non-k builds are unaffected (cache keys get -default suffix)
  • Run the PR build workflow and confirm the eve HV=k job succeeds

Changelog notes

No user-facing changes. This is a CI-only fix for the PR build workflow.

PR Backports

  • 16.0-stable: No, CI workflow change only relevant to master.
  • 14.5-stable: No.
  • 13.4-stable: No.

Checklist

  • I've provided a proper description

  • I've added the proper documentation

  • I've tested my PR on amd64 device

  • I've tested my PR on arm64 device

  • I've written the test verification instructions

  • I've set the proper labels to this PR

  • I've checked the boxes above, or I've provided a good reason why I didn't
    check them.

CI-only change — no device testing or additional documentation needed.

When building EVE with HV=k, the Makefile includes additional packages
(kube, external-boot-image) and builds pillar with build-k.yml instead
of build.yml. Without a separate package build step for HV=k, the eve
job fails because these packages are missing from the linuxkit cache.

Add an amd64/generic/k entry to the packages matrix so that k-specific
packages are built and cached separately. Update all cache keys to
include the hv dimension (using 'default' for non-k builds and 'k' for
the kubernetes variant).

Signed-off-by: Paul Hendry <phendry@zededa.com>

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Paul Gaiduk <paulg@zededa.com>
@europaul
Copy link
Copy Markdown
Contributor Author

Since there is no change to the actual source code the build jobs don't run. So I started a test CI job here https://github.com/lf-edge/eve/actions/runs/23557580309/job/68588524852?pr=5693.
Let's monitor it.

Copy link
Copy Markdown
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eriknordmark eriknordmark merged commit 4c31339 into lf-edge:master Mar 25, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants