mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
simulator: Persist beacon logs (#7394)
Beacon logs in the simulator are printed only to stdout. The logs are usually large, so persisting them would be helpful for debugging. Added `--log-dir` parameter to the simulators and a step to upload the logs to Artifacts. (Update) Added `--disable-stdout-logging` to disable stdout logging, making the CI page cleaner.
This commit is contained in:
18
.github/workflows/test-suite.yml
vendored
18
.github/workflows/test-suite.yml
vendored
@@ -295,8 +295,15 @@ jobs:
|
||||
with:
|
||||
channel: stable
|
||||
cache-target: release
|
||||
- name: Create log dir
|
||||
run: mkdir ${{ runner.temp }}/basic_simulator_logs
|
||||
- name: Run a basic beacon chain sim that starts from Deneb
|
||||
run: cargo run --release --bin simulator basic-sim
|
||||
run: cargo run --release --bin simulator basic-sim --disable-stdout-logging --log-dir ${{ runner.temp }}/basic_simulator_logs
|
||||
- name: Upload logs
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: basic_simulator_logs
|
||||
path: ${{ runner.temp }}/basic_simulator_logs
|
||||
fallback-simulator-ubuntu:
|
||||
name: fallback-simulator-ubuntu
|
||||
needs: [check-labels]
|
||||
@@ -309,8 +316,15 @@ jobs:
|
||||
with:
|
||||
channel: stable
|
||||
cache-target: release
|
||||
- name: Create log dir
|
||||
run: mkdir ${{ runner.temp }}/fallback_simulator_logs
|
||||
- name: Run a beacon chain sim which tests VC fallback behaviour
|
||||
run: cargo run --release --bin simulator fallback-sim
|
||||
run: cargo run --release --bin simulator fallback-sim --disable-stdout-logging --log-dir ${{ runner.temp }}/fallback_simulator_logs
|
||||
- name: Upload logs
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: fallback_simulator_logs
|
||||
path: ${{ runner.temp }}/fallback_simulator_logs
|
||||
execution-engine-integration-ubuntu:
|
||||
name: execution-engine-integration-ubuntu
|
||||
needs: [check-labels]
|
||||
|
||||
Reference in New Issue
Block a user