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

Adapt logic to use e2e runner's start and stop commands #16

Merged
merged 2 commits into from
May 17, 2023

Conversation

sergio-mena
Copy link
Contributor

@sergio-mena sergio-mena commented May 16, 2023

This takes advantage of cometbft/cometbft#846

Sample output (you can see typical "e2e" logs, mixed with ansible output):

qa-infra % make start-network
go run github.com/cometbft/cometbft/test/e2e/runner@d842aeede start -f ./ansible/testnet.toml --infrastructure-type digital-ocean --infrastructure-data ansible/testnet/infrastructure-data.json
I[2023-05-05|18:19:59.514] Starting initial network nodes...
COMMAND_VERBOSE: [ansible-playbook ansible/testnet/systemd-action.yml -f 50 -u root --inventory 64.226.102.154,165.22.26.15,64.226.102.4,165.22.28.132,]

PLAY [start testapp] ************************************************************************************************************************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************************************************************
ok: [64.226.102.4]
ok: [165.22.26.15]
ok: [64.226.102.154]
ok: [165.22.28.132]

TASK [operate on the systemd-unit] **********************************************************************************************************************************************************************************
changed: [165.22.26.15]
changed: [64.226.102.154]
changed: [64.226.102.4]
changed: [165.22.28.132]

PLAY RECAP **********************************************************************************************************************************************************************************************************
165.22.26.15               : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
165.22.28.132              : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
64.226.102.154             : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
64.226.102.4               : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0

I[2023-05-05|18:20:05.434] start                                        msg="Node seed01 up on http://64.226.102.154:26657"
I[2023-05-05|18:20:06.223] start                                        msg="Node validator00 up on http://165.22.26.15:26657"
I[2023-05-05|18:20:06.318] start                                        msg="Node validator01 up on http://64.226.102.4:26657"
I[2023-05-05|18:20:06.401] start                                        msg="Node validator02 up on http://165.22.28.132:26657"
I[2023-05-05|18:20:06.401] Waiting for initial height                   height=1 nodes=4 pending=1
I[2023-05-05|18:20:12.603] Waiting for network to advance before starting catch up node node=validator03 height=10
I[2023-05-05|18:20:37.898] Starting catch up node                       node=validator03 height=10
COMMAND_VERBOSE: [ansible-playbook ansible/testnet/systemd-action.yml -f 50 -u root --inventory 64.226.102.166,]

PLAY [start testapp] ************************************************************************************************************************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************************************************************
ok: [64.226.102.166]

TASK [operate on the systemd-unit] **********************************************************************************************************************************************************************************
changed: [64.226.102.166]

PLAY RECAP **********************************************************************************************************************************************************************************************************
64.226.102.166             : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0

I[2023-05-05|18:20:45.061] start                                        msg="Node validator03 up on http://64.226.102.166:26657 at height 12"
qa-infra %

@sergio-mena sergio-mena self-assigned this May 16, 2023
@sergio-mena sergio-mena changed the title Adapt for logic to use start command of e2e runner Adapt logic to use e2e runner's start and stop commands May 16, 2023
Copy link
Member

@hvanz hvanz left a comment

Choose a reason for hiding this comment

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

LGTM

@sergio-mena sergio-mena merged commit 496bb8a into main May 17, 2023
@sergio-mena sergio-mena deleted the sergio/adapt-for-runner-start branch May 17, 2023 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants