Skip to content

[16.0-stable] evetest: add the evetest CI workflows and the fixes made to them on master - #7131

Merged
eriknordmark merged 56 commits into
lf-edge:16.0-stablefrom
milan-zededa:evetest-workflow-16.0
Nov 20, 2026
Merged

eriknordmark merged 56 commits into
lf-edge:16.0-stablefrom
milan-zededa:evetest-workflow-16.0

Conversation

@milan-zededa

@milan-zededa milan-zededa commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add the evetest CI workflows to 16.0-stable, together with the fixes that were
made to the workflows and to evetest itself on master after the evetest copy
of #6833 was taken. With this, evetest runs in the 16.0-stable CI: on PRs
(evetest-pr) and nightly (evetest-nightly).

This is the 16.0-stable counterpart of #7111 (the same set of commits), plus
the small sudo fix of #7127 and the bufcompat Yetus fix of #6276 (see below). All commits are cherry-picks
(git cherry-pick -x) of the master commits, taken from the 17.0-stable
backport.

Backport of #7111, #7127, #6276, #6680, #6968, #6970, #6975, #6978, #6988, #6989,
#7002, #7003, #7012, #7020, #7021, #7022, #7024, #7030, #7042, #7043, #7045,
#7079, #7084, #7085, #7097, #7099, #7103

Deviations from the original commits:

  • Ten commits are not included:
    • "collect Go coverage across nightly suites": 16.0-stable does not
      support coverage collection (there is no COVER build support in the
      Makefile or the pillar Dockerfile), so it would produce no data. It is
      not needed on this branch anyway. The coverage steps of evetest-run-suite
      are removed as well.
    • Seven commits only change code that 16.0-stable does not have, because
      eve-k support was removed from evetest on this branch: the K3s registry
      mirror reuse fix, the cluster readiness report fix, "form
      TestTieBreakerCluster's cluster from scratch", "don't reuse devices from a
      cluster with a tie-breaker", "keep a reused cluster's ID and join token",
      "expect the reboot out of cluster mode inherited through reuse", and the
      TestPNAC retest interval (TestPNAC is not part of 16.0-stable).
    • The qemu vCPU threads fix of the VGA passthrough test is already on the
      branch.
    • "mention 17.0-stable as the branch published by CI" is replaced by the
      same documentation change for 16.0-stable, made in the additional commit
      below.
  • In the commits that were kept, the parts referring to tests that do not
    exist in 16.0-stable are removed (the TestPNAC and NIC change cases of the
    test suites, the cluster commands in the evetest README).
  • The CI is adapted to what 16.0-stable has: it does not have the
    build-eve composite action, so build.yml tags the exported image with its
    build version and uploads the version artifact inline, pr-gate.yml and
    rerun-ci.yml get the evetest gate and /evetest comment handling on top of
    their 16.0-stable versions, and the nightly workflow does not build COVER=y
    images or collect coverage. Only the kvm image is
    staged on the brokers (and tagged with its build version in build.yml),
    since 16.0-stable has no eve-k evetest flavor.
    The per-build version tag and its helper script (.github/scripts/add_repo_tag.py)
    are temporary: they exist only because Eden still runs next to evetest on
    16.0-stable, and go away once Drop Eden, evetest replaces it #7108 (Drop Eden, evetest replaces it) is
    backported.
  • "yetus: Fix bufcompat parameters" (yetus: Fix bufcompat parameters #6276) is included, although it is not
    evetest-specific: evetest/buf.yaml declares two protobuf modules, so any PR
    that changes evetest/grpcapi/proto/broker.proto (as this one does) fails the
    bufcompat Yetus check with "input contained 2 images, whereas against
    contained 1 images" unless Yetus is pointed at evetest/grpcapi/proto only.
    The fix is already on master and 17.0-stable.
  • An additional commit ("adapt the backported CI and tests to 16.0-stable")
    contains these adaptations, including the removal of the eve-k only cluster
    and kuberegistration test suites that the cherry-picks would otherwise bring
    back, the removal of the eve-k flavor from the broker image CLI, and the
    update of the evetest docs to say that CI publishes the images of
    16.0-stable.
  • "evetest: fix deadlock when a suite subtest is skipped by EVETEST_SKIP"
    (evetest: push SDN image to a remote broker and fix a skipped-subtest deadlock #6968) is included as well. [17.0-stable] evetest: add the evetest CI workflows and the fixes made to them on master #7111 left it out on the assumption that the
    fix was already in the evetest copy of [17.0-stable] evetest: sync with master and adapt the tests to EVE 17.0 #6833, but that copy lacks it: a
    suite hangs forever after a subtest skipped via EVETEST_SKIP. It is
    backported to the other stable branches separately ([13.4-stable] evetest: fix deadlock when a suite subtest is skipped by EVETEST_SKIP #7178, [14.5-stable] evetest: fix deadlock when a suite subtest is skipped by EVETEST_SKIP #7179, [17.0-stable] evetest: fix deadlock when a suite subtest is skipped by EVETEST_SKIP #7180).

PR dependencies

None.

How to test and validate this PR

  • go build ./... and go vet ./... in evetest/ pass, and so do the
    evetest and evetest/broker unit tests.
  • The evetest workflows are exercised by the CI of this PR (evetest-pr, which
    needs the per-build version artifact added to build.yml), and by a manual
    dispatch of evetest-nightly on 16.0-stable after the merge.

Changelog notes

None. Test and CI changes only; no user-facing changes.

PR Backports

This PR is itself a backport to 16.0-stable.

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

For backport PRs (remove it if it's not a backport):

  • I've added a reference link to the original PR
  • PR's title follows the template

And the last but not least:

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

No device testing is needed: the changes affect only the evetest framework and
CI workflows.

🤖 Generated with Claude Code

@milan-zededa milan-zededa added the testing New test or test framework changes label Nov 16, 2026
@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 33.55%. Comparing base (00bfd6e) to head (4463b94).
⚠️ Report is 57 commits behind head on 16.0-stable.

Additional details and impacted files
@@               Coverage Diff                @@
##           16.0-stable    #7131       +/-   ##
================================================
+ Coverage             0   33.55%   +33.55%     
================================================
  Files                0       15       +15     
  Lines                0     2962     +2962     
================================================
+ Hits                 0      994      +994     
- Misses               0     1968     +1968     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@milan-zededa
milan-zededa marked this pull request as ready for review November 18, 2026 17:20
@milan-zededa
milan-zededa requested a review from rene November 18, 2026 17:22
@milan-zededa

Copy link
Copy Markdown
Contributor Author

@eriknordmark @rene evetest workflows are ready for 16.0-stable
Yetus failed only due to pre-existing problems with the perlcritic and bufcompat checkers.

@milan-zededa
milan-zededa marked this pull request as draft November 18, 2026 17:27
@milan-zededa
milan-zededa marked this pull request as ready for review November 18, 2026 17:30
@milan-zededa
milan-zededa force-pushed the evetest-workflow-16.0 branch 7 times, most recently from d1bc550 to 33f8f4c Compare November 18, 2026 17:42

@eriknordmark eriknordmark left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: the bufcompat Yetus failure is not a pre-existing problem. It is fixed on master and 17.0-stable but not on 16.0-stable, and this PR is the first to hit it because it changes evetest/grpcapi/proto/broker.proto.

.github/workflows/yetus.yml passes --buf-basedir=/workspace/src/evetest, and evetest/buf.yaml declares two modules (grpcapi/proto and grpcapi/eve-api/proto). The patched side therefore yields 2 images against the base's 1: Failure: input contained 2 images, whereas against contained 1 images.

Please include the fix from #6276 (master be781df8d, 17.0-stable 7e025c102) in this PR: --buf-basedir=/workspace/src/evetest/grpcapi/proto in yetus.yml, and the matching BUF_BASEDIR in .yetus/personality.sh (16.0-stable still has api/proto there). A pull_request Yetus run reads the workflow from the PR head, so it takes effect in this PR's own run. #7043 and #6968, which made the same broker.proto changes on master, passed bufcompat with it.

@milan-zededa

Copy link
Copy Markdown
Contributor Author

Changes requested: the bufcompat Yetus failure is not a pre-existing problem. It is fixed on master and 17.0-stable but not on 16.0-stable, and this PR is the first to hit it because it changes evetest/grpcapi/proto/broker.proto.

.github/workflows/yetus.yml passes --buf-basedir=/workspace/src/evetest, and evetest/buf.yaml declares two modules (grpcapi/proto and grpcapi/eve-api/proto). The patched side therefore yields 2 images against the base's 1: Failure: input contained 2 images, whereas against contained 1 images.

Please include the fix from #6276 (master be781df8d, 17.0-stable 7e025c102) in this PR: --buf-basedir=/workspace/src/evetest/grpcapi/proto in yetus.yml, and the matching BUF_BASEDIR in .yetus/personality.sh (16.0-stable still has api/proto there). A pull_request Yetus run reads the workflow from the PR head, so it takes effect in this PR's own run. #7043 and #6968, which made the same broker.proto changes on master, passed bufcompat with it.

@eriknordmark Fair point. Added the bufcompat fix and the yetus is down to only the perlcritic issue.

milan-zededa and others added 4 commits November 20, 2026 10:43
Adds evetest-pr.yml (per-PR run, against a freshly built-but-
unpublished PR image, gated on its build having succeeded for that
exact commit AND either the PR being approved or a CODEOWNER having
requested a run with an "/evetest" comment -- checked live by the PR
Gate, since a new build, a new review or a new comment can come first)
and evetest-nightly.yml (full run against a branch's tip, on a schedule/
manual dispatch, against whatever publish.yml already published for
that commit -- the full-coverage safety net for evetest-pr.yml's own
PR-time test skipping).

Shared per-suite execution lives in the evetest-run-suite composite
action: checkout/image loading, running the suite, formatting/
uploading results, and (when a suite fails) an EVETEST_PAUSE_ON_FAILURE
live investigation -- live-investigation-watcher.sh polls the suite
over evetest's own gRPC control plane and has Claude inspect the
still-running device/SDN directly (status, eve ssh/logs, collect-info,
sdn ssh) rather than post-mortem from collected artifacts, which often
can't find a root cause. Findings land in one claude-analysis.md per
suite, posted as a PR comment and prepended into a nightly failure
ledger (published alongside an Allure report on GitHub Pages) so a
recurring failure is recognized as such instead of re-investigated
from scratch every time.

On a PR, Claude is also asked up front which suites/tests can be
skipped as clearly unrelated or redundant with another already-kept
test, given the diff and each suite's own doc comments -- skipped
suites still get their own (immediately-resolved) status check rather
than never appearing at all.

A CODEOWNER controls what runs with a PR comment (rerun-ci.yml re-runs
the PR Gate, which reads the comment and tells evetest-pr.yml):
  /evetest               - run now, with Claude deciding what to skip
  /evetest all           - run every suite
  /evetest <name> ...    - run only the named suites/tests/variants
                           (select-tests.sh turns names into the
                           matrix and an EVETEST_SKIP list)

Signed-off-by: Milan Lenco <milan@zededa.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
(cherry picked from commit 259455f)
Add trigger-evetest-nightly.sh, which dispatches evetest-nightly.yml via
the GitHub API so it can be driven by any external scheduler with
Internet access, instead of relying on GitHub's best-effort schedule
trigger.

The target repository and branch are mandatory arguments, and the token
is read from the GH_TOKEN environment variable rather than stored in the
script.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit 6fc9331)
Add --registration-token, so a runner can be installed by someone who
was handed a short-lived registration token (from the GitHub UI or API)
instead of a PAT with repository Administration permission. --gh-pat is
now required only when no registration token is given.

With --destroy, --gh-pat becomes optional: without it the VM and its
cloud-init snippet are removed, but the runner stays registered on
GitHub and has to be removed there manually.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit edca7d1)
Name the GitHub runner exactly as given by --name, and the VM after it
by default, instead of prefixing both with "gh-runner-". A new optional
--vm-name sets the Proxmox VM name separately; pass it again with
--destroy. The cloud-init snippet file keeps its prefix so it cannot
clash with other snippets.

Without the prefix, a VM name could match the evetest broker VM or its
per-test "ev-*" VMs, which --destroy would then remove, so reject those
names.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit e93c1b1)
milan-zededa and others added 22 commits November 20, 2026 10:43
Every evetest CI job builds the evetest image when its sources are not
published yet, and each build downloaded all Go modules twice: in the
build stage and again in the final stage. With all suite jobs starting
together, proxy.golang.org often timed out ("TLS handshake timeout")
and the suite failed before running any test.

Copy the module cache from the build stage into the final image instead
of downloading it again, and retry the remaining download.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit a444d38)
Adam answers 400 for a known device until the device posts its
certificates, because its file backend reports the missing certs file
as a generic error. The harness counted every 400 as a failure and gave
up on the ECDH certificate after 11 polls (about 55s), well before
deviceAttestTimeout. On a slow host the device posted its certificates
73s after onboarding, and test setup failed.

Treat 400 as "not published yet", and raise deviceAttestTimeout from 2
to 5 minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit aa15de8)
The harness gave the broker 1 minute to power an EVE VM on or off or to
reboot it. On Proxmox each is a task that can wait about a minute on a
busy host: a VM start waited 61s for the storage lock held by a parallel
VM create, and the harness cancelled it 1s before the VM came up. The
broker also retries a failed task up to 3 times, which never fit in 1
minute.

Raise the three timeouts to 5 minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit 230a756)
Suites failed before running any test when a download in the suite's
setup failed once: "go install gotestfmt" timed out on
proxy.golang.org, and downloading the EVE image artifacts failed
despite the short retries of download-artifact itself.

Retry go install and the evetest CLI build (which downloads Go modules)
up to 3 times through a small retry.sh, and download the EVE image
artifacts once more after a minute if the first download fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit d000253)
Some evetest hosts have much slower storage and CPU, and the long
cluster suites take 2-3x longer there and tend to time out.

Add evetest.WithTags, an Init option that tags a test or a suite, and
the TagHeavyTest tag, which declares that it needs a powerful host. The
option has no effect at run time: list-tests reads it from the source,
shows the tags, and "make list-test-suites" prints those of each suite
after its name. The nightly and PR workflows run heavy suites only on
runners labelled evetest-runner, while all other suites may also use
runners labelled only evetest-runner-light.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit 27a85cc)
Post the failure analysis on a PR only for failures Claude judges
related to the PR (RELATED: yes|likely), based on the PR diff and the
nightly ledger. Unrelated failures stay visible through the red check
and the job summary, which still hold the full analysis.

Shorten the skipped-tests comment to a count and a link; the full list
of skipped tests and the reasoning moves to the run's job summary.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit 86fb231)
When a Proxmox host runs out of RAM the kernel killed the largest qemu
process, which once was the broker VM and failed every test that was
using it.

Add evetest-oom-hook.pl, a host hookscript that sets oom_score_adj on
guest post-start by role: the broker VM is best protected (-900), runner
VMs less (-500), and VMs created by the broker for tests are killed
first (+500). The role is taken from the VM's tags. The broker and
runner installers set the tag and attach the hookscript directly. A VM
has only one hookscript, so evetest-hook.pl, which the broker attaches
to test VMs, runs it for them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit 2d79309)
When a host has many light runners but very few full-size ones, the
full-size runners can be registered with only the evetest-runner label,
so that they never take light suites and stay free for heavy ones.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit 7cc6f9d)
The suite ran about two hours and was tagged heavy only because of that
runtime, although every test uses a single device. Split it by topic
into TestLocalNetworkInstanceSuite, TestSwitchNetworkInstanceSuite,
TestAppRoutingSuite and TestAppNICsSuite, none of them tagged heavy, so
that they can also run on the light runners and finish in 20-40 minutes
each. Each test keeps its own device requirements, so none depends on
its former neighbours.

Update the suite references in the tests' doc comments.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit 8d1b767)
The exported image was named after the PR number only, so a consumer
that caches images by name (the evetest broker) kept testing the first
build of a PR after later pushes. Also tag the image with its unique
build version; the evetest-run-suite loader derives the version to test
from that tag. The PR-number tag stays for Eden.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>

(cherry picked from commit 043466a)
Every suite job of a PR (or coverage nightly) run downloaded both EVE
image artifacts, about 2.4 GB, and loaded them into its own Docker, so a
run fetched them once per suite from the same two hosts.

Let the jobs share one upload per broker instead. A job asks the broker
for the right to upload an image ("evetest broker image claim-upload"):
it gets a ticket, or learns that the broker already has the image or that
another job is uploading it, in which case it waits and takes over if that
job fails. Only the claim winner downloads the artifact and uploads it
("image upload"); a claim lapses after 60 minutes if the upload does not
start and after 10 minutes without upload progress, and is released when the
upload ends or on request ("image release-claim").
The upload names the image by the ticket alone.

A test that needs the image in the runner's Docker (an EVE upgrade
target) loads it back from the broker with the new PullEVEContainerImage
when it cannot pull it.

The build publishes its image version as an artifact so that the jobs
know which image to ask for before downloading anything; evetest-pr.yml
accepts it only in the form of that PR's versions. The coverage nightly
takes the version from its build job outputs. The download-image-artifacts
path of evetest-run-suite is removed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>

(cherry picked from commit 733fefc)
The job summary heading was emitted as an HTML <h2> directly followed
by Claude's markdown report, so the report's first line (its title)
was swallowed into the HTML block and shown as literal text. Its
sub-headings also rendered at the same level as the section heading.

Write the section heading as markdown followed by a blank line, and
run the report through shift-headings.sh so its headings nest below it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit 9e884c7)
TestVolumes always ran on ext4, where volumes are files. On ZFS,
volumes are backed by zvols and go through a different volume handler
(zvol creation and destruction, dataset cleanup, iSCSI/vhost block
devices), which only the eden storage tests covered so far.

TestVolumes now takes the FILESYSTEM parameter, and TestStorageSuite
runs it once more on ZFS (TestVolumesOnZFS), grouped with the other ZFS
tests so they can share a device. On ZFS, the test also reboots the
device once the standalone volumes are created and checks that all of
them are reported as created again, i.e. that the zvols survive a
reboot and volumemgr picks them up at boot. Before the reboot, it sets
timer.gc.vdisk to its minimum (60s): volumemgr garbage-collects ZFS
datasets every timer.gc.vdisk/10 (6 minutes by default), and reads the
interval only at boot. After the reboot the GC thus runs every 6
seconds while the zvols exist. The test then creates an unused zvol
directly on the device, named like a volume EVE has no config for, and
checks that the GC destroys it while it keeps the zvols of all
configured volumes. The ext4 run keeps its name and does not reboot.

TestMountedVolumes and TestExtraDiskAttach were not given ZFS variants:
with coverage collection, they reached only one statement on ZFS that
TestVolumesOnZFS did not.

Signed-off-by: Milan Lenco <milan@zededa.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 7eedcf8)
A new controller epoch tells EVE that the controller may have lost its
state, so EVE must republish all of its info messages. Nothing in
evetest covered this.

TestDeviceInfo now re-applies its configuration with ControllerEpoch
incremented and waits for a new ZInfoHardware. EVE otherwise publishes
the hardware info only once after boot, so its arrival proves that the
full republish happened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit cebe939)
Apps read /eve/v1/network.json from the metadata server to learn the
external IP under which they are reachable, along with their own and the
device's identity. TestAppInstanceMetadata did not use this endpoint.

The test now fetches network.json from inside the app and asserts the
app instance UUID, the device UUID and name, and that external-ipv4
contains the IPv4 address of ethernet0, the port used by the app's
network instance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit 6a1353e)
Rewrite of the Eden local_datastore test. An app running in a Local
network instance advertises evetest-local-ds.local over mDNS and serves
a random file over HTTP. A standalone volume is then downloaded from
that ".local" datastore and verified by SHA256. A negative variant uses
a host name nobody advertises and expects "mDNS host not found".

The app is a new test app, lfedge/evetest-local-ds. HTTPStorage gets an
OmitPort option, because the downloader recognizes a local datastore by
the URL host ending with ".local", which a ":port" suffix would hide.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit d18718f)
Brings the latest Adam patch (lf-edge/adam#164), which stops the log
stream from silently losing entries. Previously Adam dropped published
entries once a subscriber's 100-entry channel was full, so a large log
chunk uploaded by the device (e.g. the hundreds of lines of a kernel
panic stack trace) could lose its tail even though it was stored. Adam
also flushed the stream response before subscribing, so entries
published in between could be missed.

Affected tests in the telemetry suite: TestKernelPanicReport and
TestDeviceLogs. Both failed intermittently because log lines present
in Adam's store never reached the live log watch.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit fc84110)
Since EVE images are staged on the broker once per host, the runner's
Docker no longer holds the PR build image up front. buildNetbootArtifacts
pulled it with a plain docker pull, which fails for PR images that are
published to no registry (TestBootstrapWithNetworkBoot: "pull access
denied for evebuild/pr").

Use pullEVEImage instead, which falls back to loading the image from the
broker when the registry pull fails, as the EVE upgrade path already does.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit d91d407)
A config that makes EVE reboot, such as withdrawing a node's cluster
config, is often confirmed only after the device boots again: the reboot
can come before zedagent publishes its next metrics. The 2-minute
confirm wait in ApplyConfig then expires during the boot, as seen in
TestClusterToSingleConversion, where the confirmation arrived a second
after the deadline.

Add deviceRebootTimeout to the wait while a reboot declared with
ExpectAdditionalReboots has not been observed yet, as Setup already does
for the config-fetch wait of a rebooted device.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit 6342f69)
make evetest mounts ~/.linuxkit/cache into the evetest container, which
runs as root (to create the SDN tunnel, TAP devices, bridges and dummy
interfaces, and to use /dev/kvm and the Docker socket). When
TestVGAPassthroughNoHostAccess compiles its bpftrace tracer there,
bpftrace-compiler creates cache/blobs/sha256 and rewrites index.json as
root. The user's linuxkit can then neither add blobs to the cache nor
update its index, and on CI the next job's "rm -fr ~/.linuxkit" fails
with "Permission denied", so the runner fails every suite it picks up
within seconds.

Chown the mounted linuxkit and bpftrace-compiler caches to the host
user whenever the entrypoint fixes the ownership of the artifacts. A
container killed before it gets to that still leaves root-owned files
behind, so CI also removes the cache with sudo, as it already does for
the workspace and the collected artifacts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit bc45470)
The commits backported from master assume the master CI and the eve-k
support, which 16.0-stable lacks:

- Keep the build-eve composite action out. 16.0-stable's build.yml builds
  the EVE images inline, so tag the exported image with its build version
  and upload the version artifact there instead (the helper script moves
  to .github/scripts/).
- Take pr-gate.yml and rerun-ci.yml with the evetest gate and the
  /evetest comment handling on top of the 16.0-stable versions.
- Drop the nightly COVER=y builds and coverage reporting, and look for a
  published kvm image only.
- Remove the cluster config builder, the cluster and kuberegistration
  suites and the eve-k hypervisor flavor of the broker image CLI, in line
  with the removal of eve-k from evetest.
- Publish the images of 16.0-stable in the evetest README.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
We use evetest as base directory for protobuf files, but inside evetest we
have more than one protbuf module:

- evetest/grpcapi/eve-api
- evetest/grpcapi/proto

Every time .proto files are touched on evetest, two images will be
merged into one but the bufcompat plugin will later check against each one
of the module, leading to the following error:

Failure: input contained 2 images, whereas against contained 1 images

Fix it by pointing only to evetest/grpcapi/proto (eve-api it's a separated
project, we don't need to check it here).

Signed-off-by: Renê de Souza Pinto <rene@renesp.com.br>
(cherry picked from commit be781df)
Signed-off-by: Milan Lenco <milan@zededa.com>
Init takes testM before checking EVETEST_SKIP for a suite subtest, but
the skip path called t.Skipf without releasing it. Skipf ends the
goroutine via runtime.Goexit, leaving testM held, so the next
testM.Lock() in RunTestSuite blocked forever and the run hung.

Unlock testM before skipping, like every other exit from this branch.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit 0711499)
@milan-zededa

Copy link
Copy Markdown
Contributor Author

@eriknordmark Please remove your "requested changes" block (the bufcompat failure was addressed), so that we can merge and test evetest CI on 16.0-stable over the weekend.

@eriknordmark
eriknordmark merged commit 6ada0c8 into lf-edge:16.0-stable Nov 20, 2026
35 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing New test or test framework changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants