Skip to content

Feat/cpu ci bootstrap#5

Open
Rockdu wants to merge 4 commits into
radixark:mainfrom
Rockdu:feat/cpu-ci-bootstrap
Open

Feat/cpu ci bootstrap#5
Rockdu wants to merge 4 commits into
radixark:mainfrom
Rockdu:feat/cpu-ci-bootstrap

Conversation

@Rockdu
Copy link
Copy Markdown
Collaborator

@Rockdu Rockdu commented Jun 4, 2026

No description provided.

Rockdu and others added 3 commits May 28, 2026 20:26
Port the AST-discovered test framework, reusable workflow, pre-commit
config, and seed tests from the miles main repo, trimmed to CPU-only.

Framework (direct copy, tests/ci/):
- ci_register.py / ci_utils.py / run_suite.py — AST-parsed register_cpu_ci
  markers + LPT partitioning + pytest invocation
- cpu_stubs/sgl_kernel — MagicMock stub so sglang's import chain succeeds
  on ubuntu-latest where sgl_kernel (GPU-only) cannot install

Adaptations for miles-D:
- labels.py: rewritten KNOWN_LABELS for miles-D domains (sglang-diffusion,
  fsdp, rollout, ray, router, arguments, model-scripts); dropped main's
  megatron / lora / ckpt / precision / short / long
- run_suite.py: PER_COMMIT_SUITES[HWBackend.CUDA] = [] (no GPU runners yet)
- _run-ci.yml: stripped GPU run: job, runs_on / container_image /
  skip_dependency_install / cpu_runner inputs; dropped Megatron checkout
  + install (miles-D source has zero `from megatron` imports); dropped
  ci-megatron-pr PR-body parsing
- pr-test.yml: removed all GPU stages + resolve-ci-image job; added
  opened/reopened pull_request types so first push triggers CI
- .pre-commit-config.yaml: dropped ban-mpu-get local pygrep hook
  (miles-D has zero mpu.get_* calls)
- pyproject.toml: added asyncio_mode = "auto" under pytest config
- Python 3.11 → 3.10 (matches miles-D's setup.py python_requires)

Seed tests (tests/fast/utils/):
- test_misc.py: should_run_periodic_action edge cases
- test_iter_utils.py: group_by + _chunk_by_size

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Rockdu
Copy link
Copy Markdown
Collaborator Author

Rockdu commented Jun 4, 2026

/run-lint

@Rockdu Rockdu requested a review from guapisolo as a code owner June 4, 2026 07:50
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