-
Notifications
You must be signed in to change notification settings - Fork 995
resolves feedback on implementation of Ephemery auto restart feature,… #9210
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
base: main
Are you sure you want to change the base?
Conversation
… fixes issue hyperledger#9083 and hyperledger#8180 Signed-off-by: Ellie Anvary <ellie.xyz1991@gmail.com>
…t feature, fixes issue hyperledger#9083 and hyperledger#8180 Signed-off-by: Ellie Anvary <ellie.xyz1991@gmail.com>
…sue(s) hyperledger#9083 and hyperledger#8180 Signed-off-by: Ellie Anvary <ellie.xyz1991@gmail.com>
…and hyperledger#8180 Signed-off-by: Ellie Anvary <ellie.xyz1991@gmail.com>
|
description for commit : ephemeryReset:optimize restart lifecycle and improve logging. I reviewed my last PROn ephemery restart, several initialization steps are now skipped since their
Improvement changes on logs:
Refactor changes:
|
|
description for commit : Tests for Ephemery restart feature, related issue(s) #9083 #8180 Tests for EphemeryThese tests are written specifically for the Ephemery feature and shouldn't run in parallel due to DB concurrent policy. For running tests, comment out the disable annotation and run each test one by one. This way, other contributors working on the codebase won't be confused. |
|
@jflo can you provide Product Owner input as to whether we want this feature in besu itself? |
…olves issue hyperledger#9083 and hyperledger#8180 Signed-off-by: Ellie Anvary <ellie.xyz1991@gmail.com>
Signed-off-by: Ellie Anvary <ellie.xyz1991@gmail.com>
Pr description for Enables Besu become a bootnode, preserves the key over every cycleThis PR is going to keep the key throughout the ephemery startup and reserves the same key over every cycle of ephemery restart. Without this PR, the key is already the same throughout the running node if one doesn't stop the Besu. There are two ways to implement it.
I went with the second option. Would like to hear your opinion. (It sounds like this pr unintentionally changed name of ephemery.json file which I didn't add to the commit and honestly dot know how it got itself inside the pr. I'm sorry, I already added another pr to fix it) |
jflo
left a comment
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.
From a product perspective, this is a good feature we should have in Besu. It will improve the UX and encourage Ephemery network users to stick around after resets.
|
|
||
| /** Tests for {@link BesuCommand}. */ | ||
| @ExtendWith(MockitoExtension.class) | ||
| @Disabled("needs to run each test on a single-run") |
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.
This is going to be a problem, because nobody will remember to do this. If this can't be run via CI/CD, it won't actually be checking for regressions.
…s, related issue hyperledger#9083 and hyperledger#8180 Signed-off-by: Ellie Anvary <ellie.xyz1991@gmail.com>
Pr description for test(ephemery): enable CI/CD with in-memory storage plus keypair test…This PR mainly fixes database lock errors that prevented tests from running and also includes tests for keypair persistence validation:
|
Signed-off-by: Ellie Anvary <ellie.xyz1991@gmail.com>
…ery implementations Signed-off-by: Ellie Anvary <ellie.xyz1991@gmail.com>
|
Seems like this addresses issues raised on #9084 so suggest closing 9084 |
… BootNodesGenesisSetupTest Signed-off-by: Ellie Anvary <ellie.xyz1991@gmail.com>



Implementation of Ephemery auto restart feature
Fixes Issue(s) #9083 and #8180
This PR is going to resolve feedback on my last PR here.
In order not to add up any more overhead to
BesuCommand.javathe main implementation has been handled insideRunner.java.The implementation had an eye on not changing the codebase of
BesuCommand.javawhile not making a big change onRunner.javaas well.Almost every change is under
IfNetworkEphemerywith no change on other networks or mainnet that we care about the most.I appreciate your feedback!
./gradlew spotlessApply./gradlew build./gradlew acceptanceTest./gradlew integrationTest./gradlew ethereum:referenceTests:referenceTests