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

AA-226 Support 2-bundler (p2p tests) #36

Merged
merged 11 commits into from
Nov 13, 2023
Merged

AA-226 Support 2-bundler (p2p tests) #36

merged 11 commits into from
Nov 13, 2023

Conversation

drortirosh
Copy link
Contributor

@drortirosh drortirosh commented Oct 30, 2023

  • there are now 2 modes for running tests:
  • running for bundlers:
    • ./runall.sh bundlers/aabundler/aabundler.yml
    • (runs all tests in tests/single)
  • running "test environment",
    • ./runall.sh tests/skandha-skandha.env
    • (runs all tests in tests/p2p)

(note that this requires the "run2bundlers" branch on the test repo)

launcher script to start 2 bundlers.
"bundler" is the boot-node, and "bundler2" is a peer node, so it is
delayed until the bootnode is up.
added IP addresses.
note: currently addresses are hard-coded as 192.168.16.3 (boot) and
192.168.16.4 (peer), as these are their position in the "docker-compose"
environment.
- each p2p test is an "env" file under the tests folder.
- test file define the 1st and 2nd bundler to use, and possibly more env
params.

to run the test:
 P2P=1 ./runall.sh tests/skandha-skandha.env -k p2p

skandha-skandha.env - test file, specifying boot and peer nodes.

P2P=1 - the test is skipped otherwise (added so that normal tests won't
attempt to launch p2p tests)
-k p2p - launch only p2p tests in this run (thourhg it is possible to
run all others too, on the first (boot) bundler)
so that runall can work..
@drortirosh drortirosh requested a review from shahafn October 30, 2023 10:47
@drortirosh drortirosh changed the title Support 2-bundler (p2p tests) AA-226 Support 2-bundler (p2p tests) Oct 30, 2023
@drortirosh drortirosh merged commit c87c24f into master Nov 13, 2023
1 check failed
@drortirosh drortirosh deleted the run2bundlers branch December 6, 2023 16:10
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.

1 participant