-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): Add log level option in e2e generator and manual debug wor…
…kflow (backport #3881) (#3887) close: #3880 #### PR checklist - [ ] Tests written/updated - [X] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [X] Updated relevant documentation (`docs/` or `spec/`) and code comments <hr>This is an automatic backport of pull request #3881 done by [Mergify](https://mergify.com). Co-authored-by: Andy Nogueira <me@andynogueira.dev>
- Loading branch information
1 parent
49a80fd
commit 50564cf
Showing
6 changed files
with
74 additions
and
5 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
.changelog/unreleased/improvements/3880-e2e-generator-debug.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- `[e2e]` Add log level option in e2e generator | ||
([\#3880](https://github.com/cometbft/cometbft/issues/3880)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Runs randomly generated E2E testnets nightly on main with debug logs (but p2p module only info log since it's too verbose) | ||
# manually run e2e tests with debug logs | ||
name: e2e-manual-debug | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
e2e-nightly-test: | ||
# Run parallel jobs for the listed testnet groups (must match the | ||
# ./build/generator -g flag) | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
group: ['00', '01', '02', '03', '04', '05'] | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- run: echo "GO_VERSION=$(cat .github/workflows/go-version.env | grep GO_VERSION | cut -d '=' -f2)" >> $GITHUB_ENV | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Build | ||
working-directory: test/e2e | ||
# Run make jobs in parallel, since we can't run steps in parallel. | ||
run: make -j2 docker generator runner tests | ||
|
||
- name: Generate testnets | ||
if: matrix.group != 5 | ||
working-directory: test/e2e | ||
# When changing -g, also change the matrix groups above | ||
run: ./build/generator -g 5 -d networks/nightly/ -p -l "debug,p2p:info" | ||
|
||
- name: Run p2p testnets (${{ matrix.group }}) | ||
if: matrix.group != 5 | ||
working-directory: test/e2e | ||
run: ./run-multiple.sh networks/nightly/*-group${{ matrix.group }}-*.toml | ||
|
||
- name: Run p2p testnets (regression) | ||
if: matrix.group == 5 | ||
working-directory: test/e2e | ||
run: ./run-multiple.sh networks_regressions/*.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters