Skip to content

[CI] Collect CPU-safe RL tests - #4864

Closed
ajaykr0905 wants to merge 3 commits into
pytorch:mainfrom
ajaykr0905:fix/rl-cpu-test-collection
Closed

ajaykr0905 wants to merge 3 commits into
pytorch:mainfrom
ajaykr0905:fix/rl-cpu-test-collection

Conversation

@ajaykr0905

@ajaykr0905 ajaykr0905 commented Sep 24, 2026 •

Copy link
Copy Markdown

Summary

  • collect 10 dependency-light RL test modules in the standard tests/unit_tests/cpu/rl lane
  • lazy-load package-level vLLM exports while retaining their public API
  • follow upstream's new tests/rl/unit_tests/{cpu,gpu} layout for tests requiring RL extras

This is the CPU-safe first step proposed in #4828. The controller tests remain in the specialized RL lane because their current recipe imports require CuTeDSL. No tests were deleted or weakened.

Verification after updating to current main

  • python -m pytest tests/unit_tests/cpu/rl -q: 124 passed
  • File-scoped Flake8, ufmt, pydoclint, codespell, licensing and structural hooks passed
  • Compilation and git diff --check passed
  • Full-project Pyrefly has the same 11 errors on untouched upstream main and this branch, with identical diagnostics
  • Full CPU collection encounters the same 23 environment/dependency errors on upstream main and this branch (including missing Triton, CuTeDSL, Transformers, and current torch_checkpointing APIs)

No unrelated suppressions were changed. GPU and specialized RL checks still require the upstream CI environment and maintainer approval.

Move the RL tests that run with core CPU dependencies under the existing CPU unit-test tree. Keep the vLLM-backed package exports lazy so importing CPU-only RL modules does not require the inference runtime, and document the test split.
@pytorch-bot pytorch-bot Bot added ciflow/fake-pg Run 1-GPU Fake PG integration tests ciflow/rl labels Sep 24, 2026
@meta-cla

meta-cla Bot commented Sep 24, 2026

Copy link
Copy Markdown

Hi @ajaykr0905!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@pytorch-bot

pytorch-bot Bot commented Sep 24, 2026

Copy link
Copy Markdown

The following ciflow label(s) have been added but CI has not been triggered yet because the workflows are awaiting approval:

  • ciflow/rl
  • ciflow/fake-pg

Once a maintainer approves the workflows (scroll to the bottom of the PR page), the corresponding CI jobs will be triggered automatically. Please ping one of the reviewers if you do not have access to approve and run workflows.

1 similar comment
@pytorch-bot

pytorch-bot Bot commented Sep 24, 2026

Copy link
Copy Markdown

The following ciflow label(s) have been added but CI has not been triggered yet because the workflows are awaiting approval:

  • ciflow/rl
  • ciflow/fake-pg

Once a maintainer approves the workflows (scroll to the bottom of the PR page), the corresponding CI jobs will be triggered automatically. Please ping one of the reviewers if you do not have access to approve and run workflows.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 24, 2026
@meta-cla

meta-cla Bot commented Sep 24, 2026

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@ajaykr0905

Copy link
Copy Markdown
Author

@wwwjn The branch is now synced with current main and GitHub reports it as mergeable. Local validation: pytest -q tests/unit_tests/cpu/rl → 147 passed; the formatting, lint, documentation, and link hooks passed. The remaining ciflow/rl and ciflow/fake-pg workflows are awaiting maintainer approval. When convenient, could you approve the workflows and review the PR? Thank you!

@wwwjn

wwwjn commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Thanks for contributing. I have a PR for RL #4889 to enable the RL unit test, so we don't need to skip the GPU unit test now, could you help check if that sounds good for you? Closing this PR for now, we can reopen it if we need to working on this again

@wwwjn wwwjn closed this Oct 2, 2026
@ajaykr0905

Copy link
Copy Markdown
Author

Thanks @wwwjn, I'm happy to leave this closed. I checked #4889, and the dedicated RL CPU and GPU workflows address the test-discovery gap I was targeting here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/fake-pg Run 1-GPU Fake PG integration tests ciflow/rl CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants