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

@@ -61,6 +61,18 @@ pub fn cli_app() -> Command {
.long("continue_after_checks")
.action(ArgAction::SetTrue)
.help("Continue after checks (default false)"),
)
.arg(
Arg::new("log-dir")
.long("log-dir")
.action(ArgAction::Set)
.help("Set a path for logs of beacon nodes that run in this simulation."),
)
.arg(
Arg::new("disable-stdout-logging")
.long("disable-stdout-logging")
.action(ArgAction::SetTrue)
.help("Disables stdout logging."),
),
)
.subcommand(
@@ -120,6 +132,18 @@ pub fn cli_app() -> Command {
.long("continue_after_checks")
.action(ArgAction::SetTrue)
.help("Continue after checks (default false)"),
)
.arg(
Arg::new("log-dir")
.long("log-dir")
.action(ArgAction::Set)
.help("Set a path for logs of beacon nodes that run in this simulation."),
)
.arg(
Arg::new("disable-stdout-logging")
.long("disable-stdout-logging")
.action(ArgAction::SetTrue)
.help("Disables stdout logging."),
),
)
}