-
Notifications
You must be signed in to change notification settings - Fork 904
simulator: Persist beacon logs #7394
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great change! One thing we could consider is turning off stdout logging for CI as well, since the logs get truncated anyway.
Thanks for your feedback! That makes sense. I'll go ahead and add |
Done. It looks much cleaner. ✨ |
This pull request has merge conflicts. Could you please resolve them @ackintosh? 🙏 |
# Conflicts: # .github/workflows/test-suite.yml # testing/simulator/src/basic_sim.rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This PR relates to: - #7199 - -> workspace_filter has been enabled (dependency logging has been disabled) - #7394 - -> file logging has been optionally enabled Building on these, this PR enables dependency logging for the simulators. The logs are written to separate files. The libp2p/discv5 logs: - are saved to the directory specified with `--log-dir` - respects the `RUST_LOG` environment variable for log level configuration
Issue Addressed
Beacon logs in the simulator are printed only to stdout. The logs are usually large, so persisting them would be helpful for debugging.
Proposed Changes
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.Additional Info
I have checked that the CI works and the beacon logs are available for download.