Skip to content

Store the libp2p/discv5 logs when stopping local-testnet #7579

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

Merged
merged 2 commits into from
Jun 8, 2025

Conversation

ackintosh
Copy link
Member

@ackintosh ackintosh commented Jun 7, 2025

Issue Addressed

The libp2p/discv5 logs are not stored when stopping local-testnet.

Proposed Changes

Store the beacon/logs directory to Kurtosis Files Artifacts so that they are downloaded locally by kurtosis enclave dump.

Additional Info

The libp2p/discv5 logs are located in the files directory.

# Stop local-testnet.
$ ./stop_local_testnet.sh
INFO[2025-06-07T21:26:15+09:00] Files with artifact name 'cl-1-lighthouse-geth-logs' uploaded with artifact UUID '3bda190d6af84de999f413750b5108ef'
INFO[2025-06-07T21:26:20+09:00] Files with artifact name 'cl-2-lighthouse-geth-logs' uploaded with artifact UUID '823e31f14a974dbe83d2f6bafae508cd'
INFO[2025-06-07T21:26:24+09:00] Files with artifact name 'cl-3-lighthouse-geth-logs' uploaded with artifact UUID '1d3da899abe549689c0e154771080f19'
INFO[2025-06-07T21:26:28+09:00] Files with artifact name 'cl-4-lighthouse-geth-logs' uploaded with artifact UUID 'daaac0df98e7454db9c322d390fabc2e'
INFO[2025-06-07T21:26:30+09:00] Dumped enclave 'local-testnet' to directory '/Users/akihito/src/github.com/ackintosh/lighthouse/scripts/local_testnet/logs/local-testnet'
Local testnet logs stored to /Users/akihito/src/github.com/ackintosh/lighthouse/scripts/local_testnet/logs/local-testnet.
The lighthouse nodes logs (including dependency logs) can be found in /Users/akihito/src/github.com/ackintosh/lighthouse/scripts/local_testnet/logs/local-testnet/files/cl-*-lighthouse-geth-logs.
INFO[2025-06-07T21:26:30+09:00] Destroying enclaves...
INFO[2025-06-07T21:26:34+09:00] Enclaves successfully destroyed
INFO[2025-06-07T21:26:34+09:00] Stopping Kurtosis engine...
INFO[2025-06-07T21:26:39+09:00] Kurtosis engine successfully stopped
Local testnet stopped.

# Check the libp2p/discv5 logs.
$ ll logs/local-testnet/files/cl-1-lighthouse-geth-logs/
Permissions Size User    Date Modified Name
.rw-------  2.9M akihito  7 6  21:26   beacon.log
.rw-------  2.3M akihito  7 6  21:26   discv5.log
.rw-------   35M akihito  7 6  21:26   libp2p.log

@ackintosh ackintosh marked this pull request as ready for review June 7, 2025 21:58
@ackintosh ackintosh added test improvement Improve tests ready-for-review The code is ready for review labels Jun 7, 2025
Copy link
Member

@jimmygchen jimmygchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @ackintosh

@jimmygchen jimmygchen added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Jun 8, 2025
@mergify mergify bot merged commit 170cd0f into sigp:unstable Jun 8, 2025
32 checks passed
@ackintosh ackintosh deleted the dependency-logs-local-testnet branch June 8, 2025 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge. test improvement Improve tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants