Skip to content

测试耦合 uni_rl 私有符号 _discover_physical_cpu_groups #1589

Description

@TATP-233

背景

两处测试直接 patch uni_rl 的私有函数:

  • tests/algos/test_offpolicy_double_buffer_runner.py:374,401
  • tests/algos/test_offpolicy_dp_sync.py:726

patch 目标是 uni_rl.ipc.dp_launcher._discover_physical_cpu_groups。下划线私有符号正是上游清理(如 1.2.0→1.2.1 删除 FastSACRunner/FlashSACRunner 那样)会随时移除/改名的类型,届时 UniLab 测试会在升级时才暴露。

建议

与上游协商一个公开的注入点(如公开 seam 或参数化),测试改为 patch 公开接口;或在 uni_rl 侧为该函数加"被下游测试依赖"的备注。

发现于 unilab-rl 1.2.1 升级审计。

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions