test: add OverrideKmdConfig to libgoalFixture#6269
test: add OverrideKmdConfig to libgoalFixture#6269algorandskiy merged 7 commits intoalgorand:masterfrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6269 +/- ##
==========================================
- Coverage 51.78% 51.76% -0.02%
==========================================
Files 644 644
Lines 86697 86727 +30
==========================================
- Hits 44894 44893 -1
- Misses 38933 38966 +33
+ Partials 2870 2868 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
It seems strange that this becomes a property of the network, as opposed to a configuration when running KMD itself. They seem very different. Can our tests just start KMD is some special way? That way the |
|
Currently libgoalFixture uses |
|
Okay, now I recall why I went this road. We cannot create KMD config from outside since it has kmd dir and it is not known unless template instantiation moment. So |
|
Implemented netdeploy's |
gmalouf
left a comment
There was a problem hiding this comment.
Looks like one comment wants to get in, otherwise looks fine.
Co-authored-by: cce <51567+cce@users.noreply.github.com>
e5f179a
Summary
Sometimes e2e tests fail with
handle does not existerror. It ended up to be a wallet handle expiration issue: tests get a handle at the very beginning and keep using it till the end. Handle expiration is 60 seconds and a test can take longer. KMD starts a background thread that removes handles after expiration and there is no way to renew if it was removed.To solve this I added a newKmdJSONOverridefield to network templates (similar toConfigJSONOverride) to setSessionLifetimeSecsto 5 minutes. At the moment modified onlyTwoNodes50Each.jsonandTwoNodes50EachFuture.jsontemplates as the most common ones and ones with such failures.Solved with adding
OverrideKmdConfigtonetdeployand using it in libgoalFixture.This solves e2e-go tests but not expect or sub-e2e tests.
Test Plan
Run some existing e2e tests locally.