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:
Akihito Nakano
2025-05-09 19:50:08 +09:00
committed by GitHub
parent a497ec601c
commit e0c1f27e13
4 changed files with 97 additions and 16 deletions

View File

@@ -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]