Skip to content
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

imp(tests): improvements to local node script #1805

Merged
merged 6 commits into from
Sep 29, 2023

Conversation

MalteHerrmann
Copy link
Contributor

Description

This PR adds the following improvements to the local_node.sh script:

  • reuse same seed phrases as in E2E test script, so that the testing addresses are not overwritten everytime (helps with reproducibility of testing flows)
  • add flag parsing
    • -y: overwrite existing chain data and reset everything
    • -n: do not overwrite existing chain data, continue from last block
    • --no-install: skip installation of the binary (useful if correct version is already installed)

Closes ENG-2034

@MalteHerrmann MalteHerrmann requested a review from a team as a code owner September 26, 2023 20:11
@MalteHerrmann MalteHerrmann requested review from Vvaradinov and facs95 and removed request for a team September 26, 2023 20:11
@linear
Copy link

linear bot commented Sep 26, 2023

ENG-2034 Add flags to local node script

Context

The local_node.sh script is an invaluable helper to run simple development tests locally. It contains the option to continue the chain from an existing database or remove all prior data and restart from scratch.

Expected

For copy-pasteable instructions it would be great to be able to pass flags like --no-install or --overwrite to remove the option for users to choose manually. This would make prepared testing documents much less error-prone and easy to follow.

Copy link
Contributor

@Vvaradinov Vvaradinov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @MalteHerrmann this would prove very useful!

Copy link
Contributor

@GAtom22 GAtom22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK! Great work @MalteHerrmann!!
Left one small fix to address

local_node.sh Outdated Show resolved Hide resolved
@GAtom22 GAtom22 merged commit cffda8f into main Sep 29, 2023
25 checks passed
@GAtom22 GAtom22 deleted the malte/use-fixed-addresses-in-local-node branch September 29, 2023 14:08
@MalteHerrmann
Copy link
Contributor Author

@Mergifyio backport release/v14.2.x

@mergify
Copy link
Contributor

mergify bot commented Oct 11, 2023

backport release/v14.2.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Oct 11, 2023
* use preconfigured keys

* add flags to local node script

* address linter

* Update local_node.sh

---------

Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
(cherry picked from commit cffda8f)
MalteHerrmann added a commit that referenced this pull request Oct 11, 2023
imp(tests): improvements to local node script (#1805)

* use preconfigured keys

* add flags to local node script

* address linter

* Update local_node.sh

---------

Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
(cherry picked from commit cffda8f)

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants