Skip to content

[tmpnet] Enable runtime-specific restart behavior #3882

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

Open
wants to merge 1 commit into
base: tmpnet-move-monitoring-label-handling
Choose a base branch
from

Conversation

maru-ava
Copy link
Contributor

@maru-ava maru-ava commented Apr 12, 2025

Why this should be merged

Delegate responsibility for restart to the node runtime to allow the process runtime to continue to start/stop and the kube runtime to scale down/scale up.

How this was tested

CI

Need to be documented in RELEASES.md?

N/A

TODO

@maru-ava maru-ava self-assigned this Apr 12, 2025
@maru-ava maru-ava added testing This primarily focuses on testing tooling Build, test and development tooling labels Apr 12, 2025
@maru-ava maru-ava moved this from Backlog 🗄️ to In Progress 🏗 in Platform Engineering Group Apr 12, 2025
@maru-ava maru-ava force-pushed the tmpnet-final-refactor branch 3 times, most recently from 5b18b7a to fd9bace Compare April 12, 2025 04:31
@maru-ava maru-ava force-pushed the tmpnet-implicit-data-dir branch 3 times, most recently from ca83ff8 to 465cd68 Compare April 12, 2025 22:22
@maru-ava maru-ava force-pushed the tmpnet-final-refactor branch 2 times, most recently from b768168 to bcf4146 Compare April 12, 2025 23:09
@maru-ava maru-ava force-pushed the tmpnet-implicit-data-dir branch from 465cd68 to f0440ce Compare April 13, 2025 22:29
@maru-ava maru-ava force-pushed the tmpnet-final-refactor branch from bcf4146 to 11caceb Compare April 13, 2025 22:32
@maru-ava maru-ava force-pushed the tmpnet-implicit-data-dir branch from f0440ce to 1c1ab28 Compare April 14, 2025 18:10
@maru-ava maru-ava force-pushed the tmpnet-final-refactor branch from 11caceb to 3661417 Compare April 14, 2025 18:11
@maru-ava maru-ava force-pushed the tmpnet-implicit-data-dir branch from 1c1ab28 to 3b43707 Compare April 17, 2025 00:32
Base automatically changed from tmpnet-implicit-data-dir to master April 17, 2025 01:04
@maru-ava maru-ava force-pushed the tmpnet-final-refactor branch from 3661417 to 36f1837 Compare April 17, 2025 01:49
@maru-ava maru-ava changed the base branch from master to tmpnet-rename-node-process April 17, 2025 01:50
@maru-ava maru-ava moved this from In Progress 🏗 to In Review 👀 in Platform Engineering Group Apr 17, 2025
@maru-ava maru-ava removed the testing This primarily focuses on testing label Apr 17, 2025
Base automatically changed from tmpnet-rename-node-process to master April 17, 2025 14:51
@maru-ava maru-ava moved this from In Review 👀 to In Progress 🏗 in Platform Engineering Group Apr 17, 2025
@maru-ava maru-ava force-pushed the tmpnet-final-refactor branch from 36f1837 to fa68cad Compare April 17, 2025 15:44
@maru-ava maru-ava changed the base branch from master to tmpnet-flagsmap-string-values April 17, 2025 15:54
@maru-ava maru-ava force-pushed the tmpnet-final-refactor branch from 95041b1 to db7e645 Compare April 17, 2025 17:33
@maru-ava maru-ava changed the title [tmpnet] Refactor in preparation for kube [tmpnet] Refactor in preparation for addition of kube runtime Apr 17, 2025
@maru-ava maru-ava moved this from In Progress 🏗 to In Review 👀 in Platform Engineering Group Apr 17, 2025
@maru-ava maru-ava changed the title [tmpnet] Refactor in preparation for addition of kube runtime [tmpnet] Refactor node behavior in preparation for addition of kube runtime Apr 17, 2025
@maru-ava maru-ava changed the title [tmpnet] Refactor node behavior in preparation for addition of kube runtime [tmpnet] Refactor node in preparation for addition of kube runtime Apr 17, 2025
@maru-ava maru-ava force-pushed the tmpnet-final-refactor branch from db7e645 to 59a0074 Compare April 18, 2025 00:37
@maru-ava maru-ava changed the title [tmpnet] Refactor node in preparation for addition of kube runtime [tmpnet] Enable runtime-specific restart behavior Apr 18, 2025
@maru-ava maru-ava changed the base branch from tmpnet-flagsmap-string-values to tmpnet-move-monitoring-label-handling April 18, 2025 00:39
@maru-ava maru-ava marked this pull request as ready for review April 18, 2025 00:39
Copy link

@Copilot 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 enables runtime-specific restart behavior for tmpnet by delegating restart responsibilities to the node runtime.

  • Added a Restart method and corresponding saveAPIPort helper in ProcessRuntime to handle runtime-specific restart behavior.
  • Updated the Node interface and implementation to wrap the ProcessRuntime.Restart method, and removed the standalone SaveAPIPort method.
  • Refactored network restart logic by introducing the restartNodes helper and using WaitForHealthyNodes to ensure nodes are healthy after restart.

Reviewed Changes

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

File Description
tests/fixture/tmpnet/process_runtime.go Added Restart and saveAPIPort methods to implement runtime-specific restart logic.
tests/fixture/tmpnet/node.go Added Restart method for Node that wraps ProcessRuntime.Restart and removed SaveAPIPort.
tests/fixture/tmpnet/network.go Replaced RestartNode calls with the restartNodes helper and updated node restart flow.

@maru-ava maru-ava force-pushed the tmpnet-move-monitoring-label-handling branch from 5ccfadb to 324a27a Compare April 19, 2025 00:11
Delegate responsibility for restart to the node runtime to allow the
process runtime to continue to start/stop and the kube runtime to
scale down/scale up.
@maru-ava maru-ava force-pushed the tmpnet-final-refactor branch from 59a0074 to 74c3f11 Compare April 19, 2025 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tooling Build, test and development tooling
Projects
Status: In Review 👀
Development

Successfully merging this pull request may close these issues.

2 participants