Skip to content

Conversation

@terrykong
Copy link
Contributor

@terrykong terrykong commented Sep 3, 2025

To encourage more local testing to avoid discovering issues in the merge-queue pipeline, this PR introduces pytest-testmon to only re-run tests affected by a code change.

By itself pytest-testmon doesn't help us rerun changes to @ray.remote decorated actors/tasks so this PR introduces a plugin to crudely detect that a test should be rerun because it depended on a module with @ray.remote by looking at the mtime.

The plugin is not perfect and still requires users to know that a test needs to be rerun because say, a static asset like a YAML, was changed that affects the tests, but this at least will make it easier to rerun.

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Sep 3, 2025
Signed-off-by: Terry Kong <[email protected]>
Signed-off-by: Terry Kong <[email protected]>
Signed-off-by: Terry Kong <[email protected]>
@terrykong terrykong added this pull request to the merge queue Sep 4, 2025
Merged via the queue into main with commit f17f331 Sep 4, 2025
21 checks passed
@terrykong terrykong deleted the tk/testmon-final branch September 4, 2025 17:08
wangshangsam pushed a commit that referenced this pull request Sep 4, 2025
guyueh1 pushed a commit to guyueh1/NeMo-RL that referenced this pull request Sep 15, 2025
PrinsYin pushed a commit to PrinsYin/RL that referenced this pull request Nov 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants