Skip to content

Refactor and extract RolloutHealthMonitor - #21

Merged
fzyzcjy merged 6 commits into
mainfrom
feat/refactor_health
Oct 11, 2025
Merged

Refactor and extract RolloutHealthMonitor#21
fzyzcjy merged 6 commits into
mainfrom
feat/refactor_health

Conversation

@fzyzcjy

@fzyzcjy fzyzcjy commented Oct 11, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@fzyzcjy
fzyzcjy merged commit da8fd5c into main Oct 11, 2025
1 check passed
fzyzcjy added a commit that referenced this pull request Mar 19, 2026
JD-ETH pushed a commit to JensenFire/miles that referenced this pull request Apr 11, 2026
GuanxingLu pushed a commit to GuanxingLu/miles that referenced this pull request Apr 21, 2026
fzyzcjy added a commit that referenced this pull request Jul 8, 2026
Group the fault-tolerance work into folders instead of scattering it
across miles/utils and megatron_utils:

- miles/utils/ft_utils/: control_server, health_checker, heartbeat_utils,
  indep_dp, mini_ft_controller, process_group_utils
- miles/utils/audit_utils/: event_analyzer, event_logger, witness,
  checksum_utils, process_identity
- miles/utils/tracking_utils/: structured_log
- miles/utils/test_utils/: clock, det_process_group
- miles/backends/megatron_utils/ft/: checkpoint_transfer,
  in_memory_checkpoint, indep_dp, types

The tracking facade moves from tracking_utils/__init__.py to
tracking_utils/tracking.py (callers import the submodule) so that
importing tracking_utils.structured_log does not run a package
__init__ that circularly imports the event logger.

Pure relocation: git-mv moves, empty package __init__ files, dotted
import-path rewrites, and dot-depth fixes for the relative imports
that cross a moved path (plus isort reordering). No code changes.

Script: ft_restructure_transform.py (attached to the PR); reproduce via
verify_mechanical_refactor(base, target, transform) — byte-identical.

ci-sglang-pr: #28524
ci-megatron-pr: #21
fzyzcjy added a commit that referenced this pull request Jul 8, 2026
Group the fault-tolerance work into folders instead of scattering it
across miles/utils and megatron_utils:

- miles/utils/ft_utils/: control_server, health_checker, heartbeat_utils,
  indep_dp, mini_ft_controller, process_group_utils
- miles/utils/audit_utils/: event_analyzer, event_logger, witness,
  checksum_utils, process_identity
- miles/utils/tracking_utils/: structured_log
- miles/utils/test_utils/: clock, det_process_group
- miles/backends/megatron_utils/ft/: checkpoint_transfer,
  in_memory_checkpoint, indep_dp, types

The tracking facade moves from tracking_utils/__init__.py to
tracking_utils/tracking.py (callers import the submodule) so that
importing tracking_utils.structured_log does not run a package
__init__ that circularly imports the event logger.

Pure relocation: git-mv moves, empty package __init__ files, dotted
import-path rewrites, and dot-depth fixes for the relative imports
that cross a moved path (plus isort reordering). No code changes.

Script: ft_restructure_transform.py (attached to the PR); reproduce via
verify_mechanical_refactor(base, target, transform) — byte-identical.

ci-sglang-pr: #28524
ci-megatron-pr: #21
fzyzcjy added a commit that referenced this pull request Jul 9, 2026
Group the fault-tolerance work into folders instead of scattering it
across miles/utils and megatron_utils:

- miles/utils/ft_utils/: control_server, health_checker, heartbeat_utils,
  indep_dp, mini_ft_controller, process_group_utils
- miles/utils/audit_utils/: event_analyzer, event_logger, witness,
  checksum_utils, process_identity
- miles/utils/tracking_utils/: structured_log
- miles/utils/test_utils/: clock, det_process_group
- miles/backends/megatron_utils/ft/: checkpoint_transfer,
  in_memory_checkpoint, indep_dp, types

The tracking facade moves from tracking_utils/__init__.py to
tracking_utils/tracking.py (callers import the submodule) so that
importing tracking_utils.structured_log does not run a package
__init__ that circularly imports the event logger.

Pure relocation: git-mv moves, empty package __init__ files, dotted
import-path rewrites, and dot-depth fixes for the relative imports
that cross a moved path (plus isort reordering). No code changes.

Script: ft_restructure_transform.py (attached to the PR); reproduce via
verify_mechanical_refactor(base, target, transform) — byte-identical.

ci-sglang-pr: #28524
ci-megatron-pr: #21
fzyzcjy added a commit that referenced this pull request Jul 9, 2026
Group the fault-tolerance work into folders instead of scattering it
across miles/utils and megatron_utils:

- miles/utils/ft_utils/: control_server, health_checker, heartbeat_utils,
  indep_dp, mini_ft_controller, process_group_utils
- miles/utils/audit_utils/: event_analyzer, event_logger, witness,
  checksum_utils, process_identity
- miles/utils/tracking_utils/: structured_log
- miles/utils/test_utils/: clock, det_process_group
- miles/backends/megatron_utils/ft/: checkpoint_transfer,
  in_memory_checkpoint, indep_dp, types

The tracking facade moves from tracking_utils/__init__.py to
tracking_utils/tracking.py (callers import the submodule) so that
importing tracking_utils.structured_log does not run a package
__init__ that circularly imports the event logger.

Pure relocation: git-mv moves, empty package __init__ files, dotted
import-path rewrites, and dot-depth fixes for the relative imports
that cross a moved path (plus isort reordering). No code changes.

Script: ft_restructure_transform.py (attached to the PR); reproduce via
verify_mechanical_refactor(base, target, transform) — byte-identical.

ci-sglang-pr: #28524
ci-megatron-pr: #21
fzyzcjy added a commit that referenced this pull request Jul 9, 2026
Group the fault-tolerance work into folders instead of scattering it
across miles/utils and megatron_utils:

- miles/utils/ft_utils/: control_server, health_checker, heartbeat_utils,
  indep_dp, mini_ft_controller, process_group_utils
- miles/utils/audit_utils/: event_analyzer, event_logger, witness,
  checksum_utils, process_identity
- miles/utils/tracking_utils/: structured_log
- miles/utils/test_utils/: clock, det_process_group
- miles/backends/megatron_utils/ft/: checkpoint_transfer,
  in_memory_checkpoint, indep_dp, types

The tracking facade moves from tracking_utils/__init__.py to
tracking_utils/tracking.py (callers import the submodule) so that
importing tracking_utils.structured_log does not run a package
__init__ that circularly imports the event logger.

Pure relocation: git-mv moves, empty package __init__ files, dotted
import-path rewrites, and dot-depth fixes for the relative imports
that cross a moved path (plus isort reordering). No code changes.

Script: ft_restructure_transform.py (attached to the PR); reproduce via
verify_mechanical_refactor(base, target, transform) — byte-identical.

ci-sglang-pr: #28524
ci-megatron-pr: #21
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.

1 participant