-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: add OverrideKmdConfig to libgoalFixture #6269
test: add OverrideKmdConfig to libgoalFixture #6269
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like one comment wants to get in, otherwise looks fine.
Co-authored-by: cce <[email protected]>
e5f179a
Summary
Sometimes e2e tests fail with
handle does not exist
error. 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 newKmdJSONOverride
field to network templates (similar toConfigJSONOverride
) to setSessionLifetimeSecs
to 5 minutes. At the moment modified onlyTwoNodes50Each.json
andTwoNodes50EachFuture.json
templates as the most common ones and ones with such failures.Solved with adding
OverrideKmdConfig
tonetdeploy
and using it in libgoalFixture.This solves e2e-go tests but not expect or sub-e2e tests.
Test Plan
Run some existing e2e tests locally.