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
[Merged by Bors] - Fix errors from local testnet scripts on MacOS #2919
Conversation
… MacOS "&>>" is supported since bash v4 but the bash version bundled in macOS(11.6.1) is v3.
7b61439
to
855745d
Compare
855745d
to
f4dad6f
Compare
The error occured in setup.sh. https://github.com/sigp/lighthouse/runs/4854687564?check_suite_focus=true
This is due to call The ideal solution is to wait until the port (http://localhost:8545) is available, but this is a bit of a pain. A simple solution is to extend the sleep time. |
It is in order to ensure that ganache has started to listening for requests. sigp#2919 (comment)
This PR is ready for review. 🙆♂️ |
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 great, thank you! 🙏
bors r+ |
1 similar comment
bors r+ |
## Issue Addressed Resolves #2763 ## Proposed Changes - Add a workflow which tests that local testnet starts successfully - Added `set` option into the scripts in order to fail fast so that we can notice errors during starting local testnet. - Fix errors on MacOS - The redirect `&>>` is supported since bash v4 but the version bundled in macOS(11.6.1) is v3. a54f119
Pull request successfully merged into unstable. Build succeeded: |
A few of the local-testnet CI runs seem to be failing on macOS: https://github.com/sigp/lighthouse/runs/4962371601?check_suite_focus=true I'm not sure what's causing it yet |
Hmm... I think, to consider from the log below, https://github.com/sigp/lighthouse/runs/4962371601?check_suite_focus=true#step:7:52
https://github.com/sigp/lighthouse/runs/4962371601?check_suite_focus=true#step:7:29
https://github.com/sigp/lighthouse/runs/4962371601?check_suite_focus=true#step:7:66
this is due to calling boot_node.sh , validator_client.sh before setup.sh has completed. 🤔 |
I believe executing setup.sh foreground instead of background would be a solution. I will file a PR soon. |
## Issue Addressed Resolves #2919 (comment) ## Proposed Changes - Run setup.sh foreground in order to avoid timing issues
Issue Addressed
Resolves #2763
Proposed Changes
set
option into the scripts in order to fail fast so that we can notice errors during starting local testnet.&>>
is supported since bash v4 but the version bundled in macOS(11.6.1) is v3. a54f119