Skip to content

Conversation

@GTC6244
Copy link
Contributor

@GTC6244 GTC6244 commented Nov 26, 2025

Pull request overview

This PR restores previously commented-out version upgrade tests by refactoring them to use the standardized TestSetupBuilder pattern instead of manual test setup code.

  • Refactored three version upgrade tests to use TestSetupBuilder for cleaner, more consistent test initialization
  • Removed manual contract and validator setup boilerplate code
  • Updated NetworkIntegrityChecker instantiation to use the new API signature requiring both end_user and actions parameters

WARNING !

The main test now proves that code is backwards compatible to a given branch/release.. It does NOT prove that a particular methodology for upgrading nodes work - outside of deploying new nodes with new stakers and dealing them in, while dealing out old nodes.

@GTC6244 GTC6244 self-assigned this Nov 26, 2025
@github-actions
Copy link

github-actions bot commented Nov 26, 2025

PASS [ 43.556s] (3/3) lit_node::test toxiproxy::perf_tests::load_with_no_latency
PASS [ 43.709s] (2/3) lit_node::test toxiproxy::perf_tests::load_with_50ms_latency_single_link
PASS [ 93.192s] (1/3) lit_node::test toxiproxy::perf_tests::load_with_50ms_latency_all_links

@GTC6244 GTC6244 requested a review from Copilot November 26, 2025 02:54
Copilot finished reviewing on behalf of GTC6244 November 26, 2025 02:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR restores previously commented-out version upgrade tests by refactoring them to use the standardized TestSetupBuilder pattern instead of manual test setup code.

  • Refactored three version upgrade tests to use TestSetupBuilder for cleaner, more consistent test initialization
  • Removed manual contract and validator setup boilerplate code
  • Updated NetworkIntegrityChecker instantiation to use the new API signature requiring both end_user and actions parameters

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
rust/lit-node/lit-node/tests/upgrades/version_upgrades.rs Refactored three version upgrade tests to use TestSetupBuilder, removed manual setup code, updated API calls, but missing custom_binary_path usage for the third test
rust/lit-node/lit-node/tests/test.rs Re-enabled the upgrades test module by uncommenting it
rust/lit-node/lit-node/src/git_info.rs Updated git commit hash to reflect current commit

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@GTC6244 GTC6244 requested review from glitch003 and hwrdtm November 27, 2025 05:04
@GTC6244 GTC6244 marked this pull request as ready for review November 27, 2025 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants