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

Add CI for testnode that starts up nitro test node and rans l2 transa… #38

Closed
wants to merge 13 commits into from

Conversation

anodar
Copy link
Contributor

@anodar anodar commented Feb 9, 2024

…ctions

@anodar anodar changed the base branch from release to master February 9, 2024 16:07
@anodar anodar marked this pull request as ready for review February 9, 2024 16:16
test-node.bash Outdated
@@ -38,6 +38,7 @@ l3_token_bridge=false
batchposters=1
devprivkey=b6b15c8cb491557369f3c7d2c287b053eb229daa9c22138887752191c9520659
l1chainid=1337
runL2Txs=false
Copy link
Collaborator

Choose a reason for hiding this comment

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

I prefer not to add options here if we can avoid it.. already messy enough

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

# The script starts up the test node (with timeout 1 minute), with option to
# run l2 transactions to make sure node is working

timeout 60 ${{ github.workspace }}/nitro-testnode/test-node.bash --init --dev || exit_status=$?
Copy link
Collaborator

Choose a reason for hiding this comment

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

this doesn't use runl2Txs
Also - better if we can have all relevant logic here.
you can:

  • add --detach when first callinf test-node
  • wait for a little with sleep
  • call e.g. test-node.sh script send-l2 --ethamount 100 --to user_l2user --wait

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@anodar
Copy link
Contributor Author

anodar commented Feb 26, 2024

Moved this to new pull request

@anodar anodar closed this Feb 26, 2024
@anodar anodar deleted the nitro-testnode-ci branch February 26, 2024 13:31
Ferret-san pushed a commit to celestiaorg/nitro-testnode that referenced this pull request Aug 27, 2024
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.

2 participants