Skip to content

[17.0-stable] evetest: let EdgeCluster.ApplyConfig skip waiting on named devices - #6709

Closed
andrewd-zededa wants to merge 1 commit into
lf-edge:17.0-stablefrom
andrewd-zededa:pr6558-17.0-stable
Closed

andrewd-zededa wants to merge 1 commit into
lf-edge:17.0-stablefrom
andrewd-zededa:pr6558-17.0-stable

Conversation

@andrewd-zededa

Copy link
Copy Markdown
Contributor

Description

Backport of #6558

EdgeCluster.ApplyConfig always waited for every cluster device to
fetch/confirm a pushed config when asked to, with no way to exempt one --
so pushing a config change while a device is deliberately powered off for a
test (e.g. to exercise it going down) blocks until deviceApplyConfigTimeout,
even though the harness knows that device cannot respond.

Adds a variadic excludeFromWait parameter, following the same pattern
FindDeviceHostingApp already uses: excluded devices still get the config
pushed, just without waiting on either waitUntilFetched or
waitUntilConfirmed.

Clean cherry-pick, no adaptation. On 17.0-stable no caller passes
excludeFromWait yet; on master its user is
evetest/tests/cluster/dnidbackup_test.go from #6505, so this lands the
harness support ahead of that backport.

How to test and validate this PR

evetest-only change to the test harness itself (EdgeCluster.ApplyConfig),
not device or pillar behavior. excludeFromWait is purely additive (variadic,
defaults to none excluded), so every existing call site's behavior is
unchanged; validated by the existing cluster test suite continuing to pass,
e.g.:

make evetest NAME=TestNodeClusterSuite

GOOS=linux GOARCH=amd64 go vet ./... passes from evetest/ on this branch.

Changelog notes

No user-facing changes. evetest is test tooling, not shipped device code.

PR Backports

This is the backport

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.

Please, check the boxes above after submitting the PR in interactive mode.

🤖 Generated with Claude Code

ApplyConfig always waited for every cluster device to fetch/confirm a
pushed config when asked to, with no way to exempt one -- so pushing a
config change while a device is deliberately powered off for a test
(e.g. to exercise it going down) blocks until deviceApplyConfigTimeout,
even though the harness knows that device cannot respond.

Add excludeFromWait, following the same variadic-device-name pattern
FindDeviceHostingApp already uses: those devices still get the config,
just without waiting on either flag.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Andrew Durbin <andrewd@zededa.com>
(cherry picked from commit 6db9063)
@andrewd-zededa andrewd-zededa added the next-17.0.x-rc PR must be present in the next 17.0.x-lts release label Oct 6, 2026
@codecov

codecov Bot commented Oct 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 22.73%. Comparing base (0947873) to head (a04fee7).

Additional details and impacted files
@@               Coverage Diff               @@
##           17.0-stable    #6709      +/-   ##
===============================================
+ Coverage        22.36%   22.73%   +0.37%     
===============================================
  Files              508      518      +10     
  Lines            94338    96036    +1698     
===============================================
+ Hits             21098    21834     +736     
- Misses           71438    72219     +781     
- Partials          1802     1983     +181     

☔ 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

Copy link
Copy Markdown
Contributor

@andrewd-zededa Let's not backport anything evetest related just yet.
My plan is to backport only test files eventually (soon), which will use evetest container built from master -- no need to have the entire evetest framework backported.

@rene

rene commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

@andrewd-zededa , so per @milan-zededa 's comment, should we close this one?

@milan-zededa

Copy link
Copy Markdown
Contributor

@rene Yes, closing this one. I'm preparing evetests for 17.0...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

next-17.0.x-rc PR must be present in the next 17.0.x-lts release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants