subprocess 子进程创建、控制、通信及常量。
固定源码版本:2f2318653f6f794dddd321eff7c9d4b7b174643f。本表共 69 条静态出现记录;不是运行次数。
同一个直接 API 表达式只记为 api_call 或 api_reference 中的一类。实例候选不计入直接原生 API 总数。
| ID | 位置 / 快照 | 所属符号 | 种类 | API / 语法 | 来源判定 | 源码行 |
|---|---|---|---|---|---|---|
| occ-000205 | examples/retool/tool_sandbox.py:14 · 快照 | <module> | import | subprocess | explicit_import | import subprocess |
| occ-000210 | examples/retool/tool_sandbox.py:267 · 快照 | PythonSandbox.execute_code | api_call | subprocess.Popen | lexical_import_resolution | process = subprocess.Popen( |
| occ-000211 | examples/retool/tool_sandbox.py:269 · 快照 | PythonSandbox.execute_code | api_reference | subprocess.PIPE | lexical_import_resolution | stdout=subprocess.PIPE, |
| occ-000212 | examples/retool/tool_sandbox.py:270 · 快照 | PythonSandbox.execute_code | api_reference | subprocess.PIPE | lexical_import_resolution | stderr=subprocess.PIPE, |
| occ-000214 | examples/retool/tool_sandbox.py:285 · 快照 | PythonSandbox.execute_code | api_reference | subprocess.TimeoutExpired | lexical_import_resolution | except subprocess.TimeoutExpired: |
| occ-000274 | examples/strands_sglang/subprocess_interpreter.py:27 · 快照 | <module> | import | subprocess | explicit_import | import subprocess |
| occ-000276 | examples/strands_sglang/subprocess_interpreter.py:228 · 快照 | SubprocessInterpreter.run_file | api_call | subprocess.Popen | lexical_import_resolution | proc = subprocess.Popen( |
| occ-000277 | examples/strands_sglang/subprocess_interpreter.py:230 · 快照 | SubprocessInterpreter.run_file | api_reference | subprocess.PIPE | lexical_import_resolution | stdout=subprocess.PIPE, |
| occ-000278 | examples/strands_sglang/subprocess_interpreter.py:231 · 快照 | SubprocessInterpreter.run_file | api_reference | subprocess.PIPE | lexical_import_resolution | stderr=subprocess.PIPE, |
| occ-000280 | examples/strands_sglang/subprocess_interpreter.py:239 · 快照 | SubprocessInterpreter.run_file | api_reference | subprocess.TimeoutExpired | lexical_import_resolution | except subprocess.TimeoutExpired: |
| occ-000285 | examples/strands_sglang/subprocess_interpreter.py:416 · 快照 | SubprocessInterpreter._is_command_available | api_call | subprocess.check_call | lexical_import_resolution | subprocess.check_call( |
| occ-000286 | examples/strands_sglang/subprocess_interpreter.py:423 · 快照 | SubprocessInterpreter._is_command_available | api_reference | subprocess.CalledProcessError | lexical_import_resolution | except subprocess.CalledProcessError: |
| occ-000287 | examples/strands_sglang/subprocess_interpreter.py:429 · 快照 | SubprocessInterpreter._is_command_available | api_call | subprocess.check_call | lexical_import_resolution | subprocess.check_call( |
| occ-000288 | examples/strands_sglang/subprocess_interpreter.py:436 · 快照 | SubprocessInterpreter._is_command_available | api_reference | subprocess.CalledProcessError | lexical_import_resolution | except subprocess.CalledProcessError: |
| occ-000289 | examples/strands_sglang/subprocess_interpreter.py:467 · 快照 | SubprocessInterpreter.execute_command | api_call | subprocess.Popen | lexical_import_resolution | proc = subprocess.Popen( |
| occ-000290 | examples/strands_sglang/subprocess_interpreter.py:469 · 快照 | SubprocessInterpreter.execute_command | api_reference | subprocess.PIPE | lexical_import_resolution | stdout=subprocess.PIPE, |
| occ-000291 | examples/strands_sglang/subprocess_interpreter.py:470 · 快照 | SubprocessInterpreter.execute_command | api_reference | subprocess.PIPE | lexical_import_resolution | stderr=subprocess.PIPE, |
| occ-001091 | slime/rollout/rm_hub/ifbench.py:6 · 快照 | <module> | import | subprocess | explicit_import | import subprocess |
| occ-001092 | slime/rollout/rm_hub/ifbench.py:27 · 快照 | _ensure_ifbench_repo | api_call | subprocess.run | lexical_import_resolution | subprocess.run(clone_cmd, check=True, capture_output=True) |
| occ-001093 | slime/rollout/rm_hub/ifbench.py:62 · 快照 | _ensure_ifbench_dependencies | api_call | subprocess.run | lexical_import_resolution | subprocess.run(install_cmd, check=True) |
| occ-001214 | slime/utils/external_utils/command_utils.py:9 · 快照 | <module> | import | subprocess | explicit_import | import subprocess |
| occ-001215 | slime/utils/external_utils/command_utils.py:117 · 快照 | execute_train | api_call | subprocess.run | lexical_import_resolution | subprocess.run( |
| occ-001216 | slime/utils/external_utils/command_utils.py:118 · 快照 | execute_train | api_reference | subprocess.DEVNULL | lexical_import_resolution | [“ray”, “status”], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, timeout=30 |
| occ-001217 | slime/utils/external_utils/command_utils.py:118 · 快照 | execute_train | api_reference | subprocess.DEVNULL | lexical_import_resolution | [“ray”, “status”], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, timeout=30 |
| occ-001272 | slime/utils/misc.py:2 · 快照 | <module> | import | subprocess | explicit_import | import subprocess |
| occ-001273 | slime/utils/misc.py:83 · 快照 | exec_command | api_call | subprocess.run | lexical_import_resolution | result = subprocess.run( |
| occ-001274 | slime/utils/misc.py:90 · 快照 | exec_command | api_reference | subprocess.CalledProcessError | lexical_import_resolution | except subprocess.CalledProcessError as e: |
| occ-001364 | tests/ci/gpu_lock_exec.py:7 · 快照 | <module> | import | subprocess | explicit_import | import subprocess |
| occ-001368 | tests/ci/gpu_lock_exec.py:43 · 快照 | _run_command | api_call | subprocess.Popen | lexical_import_resolution | child = subprocess.Popen(cmd, start_new_session=True) |
| occ-001372 | tests/ci/gpu_lock_exec.py:51 · 快照 | _run_command.terminate_child | api_reference | subprocess.TimeoutExpired | lexical_import_resolution | except subprocess.TimeoutExpired: |
| occ-001375 | tests/ci/gpu_lock_exec.py:60 · 快照 | _run_command.terminate_child | api_reference | subprocess.TimeoutExpired | lexical_import_resolution | except subprocess.TimeoutExpired: |
| occ-001847 | tests/test_glm52_6layer_deterministic_e2e.py:31 · 快照 | <module> | import | subprocess | explicit_import | import subprocess |
| occ-001848 | tests/test_glm52_6layer_deterministic_e2e.py:72 · 快照 | _iface_ipv4 | api_call | subprocess.run | lexical_import_resolution | out = subprocess.run([“ip”, “-o”, “-4”, “addr”, “show”, ifname], capture_output=True, text=True).stdout.split() |
| occ-001849 | tests/test_glm52_6layer_deterministic_e2e.py:124 · 快照 | _skip_reason | api_call | subprocess.run | lexical_import_resolution | visible = subprocess.run( |
| occ-001850 | tests/test_glm52_6layer_deterministic_e2e.py:132 · 快照 | _skip_reason | api_call | subprocess.run | lexical_import_resolution | probe = subprocess.run([sys.executable, “-c”, _PREREQ_PROBE], capture_output=True, text=True, env=probe_env) |
| occ-001851 | tests/test_glm52_6layer_deterministic_e2e.py:153 · 快照 | _download_ci_asset | api_call | subprocess.run | lexical_import_resolution | subprocess.run(command, check=True) |
| occ-001853 | tests/test_glm52_6layer_deterministic_e2e.py:398 · 快照 | _run | api_call | subprocess.run | lexical_import_resolution | r = subprocess.run(cmd, env=env, cwd=cwd, capture_output=True, text=True) |
| occ-001854 | tests/test_glm52_6layer_deterministic_e2e.py:402 · 快照 | _run | api_call | subprocess.Popen | lexical_import_resolution | proc = subprocess.Popen(cmd, env=env, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True) |
| occ-001855 | tests/test_glm52_6layer_deterministic_e2e.py:402 · 快照 | _run | api_reference | subprocess.PIPE | lexical_import_resolution | proc = subprocess.Popen(cmd, env=env, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True) |
| occ-001856 | tests/test_glm52_6layer_deterministic_e2e.py:402 · 快照 | _run | api_reference | subprocess.STDOUT | lexical_import_resolution | proc = subprocess.Popen(cmd, env=env, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True) |
| occ-001859 | tests/test_optional_straw.py:4 · 快照 | <module> | import | subprocess | explicit_import | import subprocess |
| occ-001861 | tests/test_optional_straw.py:144 · 快照 | test_default_rollout_and_training_work_without_straw | api_call | subprocess.run | lexical_import_resolution | subprocess.run( |
| occ-001872 | tests/test_qwen2.5_0.5B_opd_sglang.py:2 · 快照 | <module> | import | subprocess | explicit_import | import subprocess |
| occ-001875 | tests/test_qwen2.5_0.5B_opd_sglang.py:39 · 快照 | _launch_teacher_server | api_call | subprocess.Popen | lexical_import_resolution | process = subprocess.Popen( |
| occ-001876 | tests/test_qwen2.5_0.5B_opd_sglang.py:57 · 快照 | _launch_teacher_server | api_reference | subprocess.STDOUT | lexical_import_resolution | stderr=subprocess.STDOUT, |
| occ-001883 | tests/test_qwen2.5_0.5B_rollout_health.py:7 · 快照 | <module> | import | subprocess | explicit_import | import subprocess |
| occ-001884 | tests/test_qwen2.5_0.5B_rollout_health.py:82 · 快照 | execute | api_call | subprocess.run | lexical_import_resolution | subprocess.run([“ray”, “stop”, “–force”], check=True) |
| occ-001886 | tests/test_qwen2.5_0.5B_training_recovery.py:7 · 快照 | <module> | import | subprocess | explicit_import | import subprocess |
| occ-001889 | tests/test_qwen2.5_0.5B_training_recovery.py:169 · 快照 | execute | api_call | subprocess.run | lexical_import_resolution | subprocess.run( |
| occ-001895 | tests/test_qwen2.5_0.5B_training_recovery.py:374 · 快照 | execute | api_call | subprocess.run | lexical_import_resolution | subprocess.run([“ray”, “stop”, “–force”], check=True) |
| occ-001896 | tests/test_qwen3_4B_external_pd.py:21 · 快照 | <module> | import | subprocess | explicit_import | import subprocess |
| occ-001898 | tests/test_qwen3_4B_external_pd.py:54 · 快照 | _get_bond_ipv4 | api_call | subprocess.check_output | lexical_import_resolution | output = subprocess.check_output([“ip”, “-o”, “-4”, “addr”, “show”, “dev”, iface], text=True) |
| occ-001899 | tests/test_qwen3_4B_external_pd.py:55 · 快照 | _get_bond_ipv4 | api_reference | subprocess.CalledProcessError | lexical_import_resolution | except (OSError, subprocess.CalledProcessError): |
| occ-001902 | tests/test_qwen3_4B_external_pd.py:157 · 快照 | <module> | api_reference | subprocess.Popen | lexical_import_resolution | ) -> subprocess.Popen: |
| occ-001904 | tests/test_qwen3_4B_external_pd.py:190 · 快照 | _launch_sglang_server | api_call | subprocess.Popen | lexical_import_resolution | process = subprocess.Popen(cmd, env=env, stdout=log_file, stderr=subprocess.STDOUT) |
| occ-001905 | tests/test_qwen3_4B_external_pd.py:190 · 快照 | _launch_sglang_server | api_reference | subprocess.STDOUT | lexical_import_resolution | process = subprocess.Popen(cmd, env=env, stdout=log_file, stderr=subprocess.STDOUT) |
| occ-001909 | tests/test_qwen3_4B_external_pd.py:222 · 快照 | execute | api_reference | subprocess.Popen | lexical_import_resolution | processes: list[subprocess.Popen] = [] |
| occ-001948 | tests/test_rollout_straw_transport.py:3 · 快照 | <module> | import | subprocess | explicit_import | import subprocess |
| occ-001949 | tests/test_rollout_straw_transport.py:102 · 快照 | test_cpu_rollout_imports_do_not_require_sglang | api_call | subprocess.run | lexical_import_resolution | subprocess.run( |
| occ-001950 | tests/test_rollout_straw_transport.py:261 · 快照 | test_payload_reference_is_small_and_readable_by_independent_process | api_call | subprocess.run | lexical_import_resolution | subprocess.run( |
| occ-001972 | tests/test_rollout_straw_transport.py:1418 · 快照 | test_checkpoint_lock_released_when_controller_process_is_killed | api_call | subprocess.Popen | lexical_import_resolution | process = subprocess.Popen( |
| occ-001973 | tests/test_rollout_straw_transport.py:1432 · 快照 | test_checkpoint_lock_released_when_controller_process_is_killed | api_reference | subprocess.PIPE | lexical_import_resolution | stdin=subprocess.PIPE, |
| occ-001974 | tests/test_rollout_straw_transport.py:1433 · 快照 | test_checkpoint_lock_released_when_controller_process_is_killed | api_reference | subprocess.PIPE | lexical_import_resolution | stdout=subprocess.PIPE, |
| occ-001975 | tests/test_rollout_straw_transport.py:1434 · 快照 | test_checkpoint_lock_released_when_controller_process_is_killed | api_reference | subprocess.PIPE | lexical_import_resolution | stderr=subprocess.PIPE, |
| occ-002059 | tests/test_straw_fully_async_recovery.py:13 · 快照 | <module> | import | subprocess | explicit_import | import subprocess |
| occ-002085 | tests/test_straw_fully_async_recovery.py:257 · 快照 | test_fully_async_sigkill_and_restart_preserves_results_and_prefixes | api_call | subprocess.Popen | lexical_import_resolution | process = subprocess.Popen( |
| occ-002086 | tests/test_straw_fully_async_recovery.py:261 · 快照 | test_fully_async_sigkill_and_restart_preserves_results_and_prefixes | api_reference | subprocess.STDOUT | lexical_import_resolution | stderr=subprocess.STDOUT, |
| occ-002229 | tests/test_training_recovery.py:291 · 快照 | test_recovery_e2e_contacts_dashboard_without_proxy | import | subprocess | explicit_import | import subprocess |
| occ-002232 | tests/test_training_recovery.py:326 · 快照 | test_recovery_e2e_contacts_dashboard_without_proxy | api_reference | subprocess | lexical_import_resolution | monkeypatch.setattr(subprocess, “run”, lambda *a, **kw: started.append(dict(os.environ))) |