Skip to content

Conversation

@maru-ava
Copy link
Contributor

@maru-ava maru-ava commented Dec 5, 2025

Why this should be merged

tmpnet used to have working support for creating subnets after network bootstrap. Subsequently, that code path has degraded due to subnet creation only being performed as part of bootstrap to both speed up suite setup and avoid disruptive node restart during test execution.

Rather than maintain the unused ability to create subnets post-bootstrap, Network.CreateSubnets is updated to return the set of nodes affected by subnet creation (so they can be restarted if they are already running) rather than taking any responsibility for node restart.

How this was tested

CI

Need to be documented in RELEASES.md?

N/A

@maru-ava maru-ava self-assigned this Dec 5, 2025
@maru-ava maru-ava requested a review from joshua-kim as a code owner December 5, 2025 14:57
Copilot AI review requested due to automatic review settings December 5, 2025 14:57
@maru-ava maru-ava added the testing This primarily focuses on testing label Dec 5, 2025
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 simplifies the CreateSubnets method by removing the optional node restart functionality and making it the caller's responsibility to restart nodes after subnet creation. This change acknowledges that the post-bootstrap subnet creation code path has degraded and is no longer actively used, so maintaining the automatic restart capability is unnecessary.

Key changes:

  • Removed the restartRequired boolean parameter from CreateSubnets
  • Eliminated the conditional node restart logic within CreateSubnets
  • Updated function documentation to explicitly state that node restart is the caller's responsibility

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

@maru-ava maru-ava force-pushed the maru/tmpnet-create-subnets-only-on-bootstrap branch 2 times, most recently from dd1b701 to 95ebd93 Compare December 5, 2025 15:15
@maru-ava maru-ava requested a review from PlatCore December 5, 2025 15:16
@maru-ava maru-ava changed the title [tmpnet] Update Network.CreateSubnets to require explicit node restart [tmpnet] Update Network.CreateSubnets to return IDs of affected validators Dec 5, 2025
@maru-ava maru-ava changed the title [tmpnet] Update Network.CreateSubnets to return IDs of affected validators [tmpnet] Remove node restart from Network.CreateSubnets Dec 5, 2025
@maru-ava maru-ava moved this to Ready 🚦 in avalanchego Dec 5, 2025
@maru-ava maru-ava force-pushed the maru/tmpnet-create-subnets-only-on-bootstrap branch 3 times, most recently from 6e6dc72 to d3cd9b7 Compare December 9, 2025 13:35
@maru-ava maru-ava force-pushed the maru/tmpnet-create-subnets-only-on-bootstrap branch from d3cd9b7 to da4c680 Compare December 9, 2025 13:35
@maru-ava maru-ava force-pushed the maru/tmpnet-create-subnets-only-on-bootstrap branch from 0b16d9a to f531365 Compare December 9, 2025 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing This primarily focuses on testing

Projects

Status: Ready 🚦

Development

Successfully merging this pull request may close these issues.

2 participants