Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
94f90e9 to
d1f202f
Compare
clabby
left a comment
There was a problem hiding this comment.
very nice. g2g if CI passes
4990f3f to
b0e904d
Compare
d1f202f to
e085998
Compare
2923d27 to
e99a0fb
Compare
e085998 to
adf8e72
Compare
e03cc19 to
8c886a3
Compare
adf8e72 to
15d28cf
Compare
15d28cf to
efbb929
Compare
There was a problem hiding this comment.
Pull Request Overview
Adds restart tests to validate that nodes can recover from stopping and restarting after extended periods. These tests ensure node resilience and proper p2p reconnection capabilities after downtime.
- Introduces
TestRestartSyncto verify nodes can resync after 2-minute downtime - Adds
TestRestartP2pto confirm p2p connections are re-established after restart - Implements node stop/start functionality using Kurtosis CLI commands
- Enables dev RPC endpoints across all test network configurations for enhanced testing capabilities
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/node/restart_test.go | New test file with sync and p2p restart validation tests |
| tests/node/mod.go | Utility functions for node control, WebSocket handling, and dev RPC support |
| tests/node/engine_test.go | New engine queue monitoring test using dev RPC endpoints |
| tests/node/rpc_test.go | Simplified peer selection logic removing connectedness check |
| tests/justfile | Extended test timeout and added filtered test execution capability |
| tests/devnets/*.yaml | Enabled dev RPC endpoints for all Kona node configurations |
Comments suppressed due to low confidence (1)
tests/node/mod.go:49
- [nitpick] The generic type parameter
Outis not descriptive. Consider using a more specific name likeResultTypeorTResultto improve readability.
Result Out `json:"result"`
tests/node/restart_test.go
Outdated
| var wg sync.WaitGroup | ||
| for _, node := range nodes { | ||
| if node == ref { | ||
| t.Log("skipping reference node %s", node.Escape().ID().Key()) |
There was a problem hiding this comment.
The Log statement uses incorrect format specifier. It should use t.Logf with the format string or remove the format placeholder.
| t.Log("skipping reference node %s", node.Escape().ID().Key()) | |
| t.Logf("skipping reference node %s", node.Escape().ID().Key()) |
tests/node/restart_test.go
Outdated
| found := false | ||
| for _, peer := range peers.Peers { | ||
| if peer.NodeID == refId { | ||
| t.Log("node %s is connected to reference node %s", clName, ref.Escape().ID().Key()) |
There was a problem hiding this comment.
The Log statement uses incorrect format specifier. It should use t.Logf with the format string or remove the format placeholder.
| t.Log("node %s is connected to reference node %s", clName, ref.Escape().ID().Key()) | |
| t.Logf("node %s is connected to reference node %s", clName, ref.Escape().ID().Key()) |
80d3bc4 to
76e2fa6
Compare
76e2fa6 to
3542838
Compare
|
It seems that manually restarting the kurtosis services cause segfault errors in the devstack... Going to close this one until we integrate kona in sysgo |
Pull request was closed
## Description This PR adds back the connection drop test and the restart test inside our e2e testing suite See op-rs/kona#2554 and op-rs/kona#2553
Description
Adds a couple of restart tests to ensure that nodes can recover from stopping and restarting after some time