Repository navigation
[17.0-stable] evetest: let EdgeCluster.ApplyConfig skip waiting on named devices - #6709
Closed
andrewd-zededa wants to merge 1 commit into
Closed
andrewd-zededa wants to merge 1 commit into
andrewd-zededa wants to merge 1 commit into
Conversation
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)
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
Contributor
|
@andrewd-zededa Let's not backport anything evetest related just yet. |
Contributor
|
@andrewd-zededa , so per @milan-zededa 's comment, should we close this one? |
Contributor
|
@rene Yes, closing this one. I'm preparing evetests for 17.0... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Backport of #6558
EdgeCluster.ApplyConfigalways waited for every cluster device tofetch/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
excludeFromWaitparameter, following the same patternFindDeviceHostingAppalready uses: excluded devices still get the configpushed, just without waiting on either
waitUntilFetchedorwaitUntilConfirmed.Clean cherry-pick, no adaptation. On 17.0-stable no caller passes
excludeFromWaityet; on master its user isevetest/tests/cluster/dnidbackup_test.gofrom #6505, so this lands theharness 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.
excludeFromWaitis 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.:
GOOS=linux GOARCH=amd64 go vet ./...passes fromevetest/on this branch.Changelog notes
No user-facing changes. evetest is test tooling, not shipped device code.
PR Backports
This is the backport
Checklist
For backport PRs (remove it if it's not a backport):
And the last but not least:
check them.
Please, check the boxes above after submitting the PR in interactive mode.
🤖 Generated with Claude Code