subprocess 子进程创建、控制、通信及常量。

固定源码版本:2f2318653f6f794dddd321eff7c9d4b7b174643f。本表共 69 条静态出现记录;不是运行次数。

同一个直接 API 表达式只记为 api_call 或 api_reference 中的一类。实例候选不计入直接原生 API 总数。

总览 · 完整文件索引 · JSON · TSV

ID位置 / 快照所属符号种类API / 语法来源判定源码行
occ-000205examples/retool/tool_sandbox.py:14 · 快照<module>importsubprocessexplicit_importimport subprocess
occ-000210examples/retool/tool_sandbox.py:267 · 快照PythonSandbox.execute_codeapi_callsubprocess.Popenlexical_import_resolutionprocess = subprocess.Popen(
occ-000211examples/retool/tool_sandbox.py:269 · 快照PythonSandbox.execute_codeapi_referencesubprocess.PIPElexical_import_resolutionstdout=subprocess.PIPE,
occ-000212examples/retool/tool_sandbox.py:270 · 快照PythonSandbox.execute_codeapi_referencesubprocess.PIPElexical_import_resolutionstderr=subprocess.PIPE,
occ-000214examples/retool/tool_sandbox.py:285 · 快照PythonSandbox.execute_codeapi_referencesubprocess.TimeoutExpiredlexical_import_resolutionexcept subprocess.TimeoutExpired:
occ-000274examples/strands_sglang/subprocess_interpreter.py:27 · 快照<module>importsubprocessexplicit_importimport subprocess
occ-000276examples/strands_sglang/subprocess_interpreter.py:228 · 快照SubprocessInterpreter.run_fileapi_callsubprocess.Popenlexical_import_resolutionproc = subprocess.Popen(
occ-000277examples/strands_sglang/subprocess_interpreter.py:230 · 快照SubprocessInterpreter.run_fileapi_referencesubprocess.PIPElexical_import_resolutionstdout=subprocess.PIPE,
occ-000278examples/strands_sglang/subprocess_interpreter.py:231 · 快照SubprocessInterpreter.run_fileapi_referencesubprocess.PIPElexical_import_resolutionstderr=subprocess.PIPE,
occ-000280examples/strands_sglang/subprocess_interpreter.py:239 · 快照SubprocessInterpreter.run_fileapi_referencesubprocess.TimeoutExpiredlexical_import_resolutionexcept subprocess.TimeoutExpired:
occ-000285examples/strands_sglang/subprocess_interpreter.py:416 · 快照SubprocessInterpreter._is_command_availableapi_callsubprocess.check_calllexical_import_resolutionsubprocess.check_call(
occ-000286examples/strands_sglang/subprocess_interpreter.py:423 · 快照SubprocessInterpreter._is_command_availableapi_referencesubprocess.CalledProcessErrorlexical_import_resolutionexcept subprocess.CalledProcessError:
occ-000287examples/strands_sglang/subprocess_interpreter.py:429 · 快照SubprocessInterpreter._is_command_availableapi_callsubprocess.check_calllexical_import_resolutionsubprocess.check_call(
occ-000288examples/strands_sglang/subprocess_interpreter.py:436 · 快照SubprocessInterpreter._is_command_availableapi_referencesubprocess.CalledProcessErrorlexical_import_resolutionexcept subprocess.CalledProcessError:
occ-000289examples/strands_sglang/subprocess_interpreter.py:467 · 快照SubprocessInterpreter.execute_commandapi_callsubprocess.Popenlexical_import_resolutionproc = subprocess.Popen(
occ-000290examples/strands_sglang/subprocess_interpreter.py:469 · 快照SubprocessInterpreter.execute_commandapi_referencesubprocess.PIPElexical_import_resolutionstdout=subprocess.PIPE,
occ-000291examples/strands_sglang/subprocess_interpreter.py:470 · 快照SubprocessInterpreter.execute_commandapi_referencesubprocess.PIPElexical_import_resolutionstderr=subprocess.PIPE,
occ-001091slime/rollout/rm_hub/ifbench.py:6 · 快照<module>importsubprocessexplicit_importimport subprocess
occ-001092slime/rollout/rm_hub/ifbench.py:27 · 快照_ensure_ifbench_repoapi_callsubprocess.runlexical_import_resolutionsubprocess.run(clone_cmd, check=True, capture_output=True)
occ-001093slime/rollout/rm_hub/ifbench.py:62 · 快照_ensure_ifbench_dependenciesapi_callsubprocess.runlexical_import_resolutionsubprocess.run(install_cmd, check=True)
occ-001214slime/utils/external_utils/command_utils.py:9 · 快照<module>importsubprocessexplicit_importimport subprocess
occ-001215slime/utils/external_utils/command_utils.py:117 · 快照execute_trainapi_callsubprocess.runlexical_import_resolutionsubprocess.run(
occ-001216slime/utils/external_utils/command_utils.py:118 · 快照execute_trainapi_referencesubprocess.DEVNULLlexical_import_resolution[“ray”, “status”], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, timeout=30
occ-001217slime/utils/external_utils/command_utils.py:118 · 快照execute_trainapi_referencesubprocess.DEVNULLlexical_import_resolution[“ray”, “status”], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, timeout=30
occ-001272slime/utils/misc.py:2 · 快照<module>importsubprocessexplicit_importimport subprocess
occ-001273slime/utils/misc.py:83 · 快照exec_commandapi_callsubprocess.runlexical_import_resolutionresult = subprocess.run(
occ-001274slime/utils/misc.py:90 · 快照exec_commandapi_referencesubprocess.CalledProcessErrorlexical_import_resolutionexcept subprocess.CalledProcessError as e:
occ-001364tests/ci/gpu_lock_exec.py:7 · 快照<module>importsubprocessexplicit_importimport subprocess
occ-001368tests/ci/gpu_lock_exec.py:43 · 快照_run_commandapi_callsubprocess.Popenlexical_import_resolutionchild = subprocess.Popen(cmd, start_new_session=True)
occ-001372tests/ci/gpu_lock_exec.py:51 · 快照_run_command.terminate_childapi_referencesubprocess.TimeoutExpiredlexical_import_resolutionexcept subprocess.TimeoutExpired:
occ-001375tests/ci/gpu_lock_exec.py:60 · 快照_run_command.terminate_childapi_referencesubprocess.TimeoutExpiredlexical_import_resolutionexcept subprocess.TimeoutExpired:
occ-001847tests/test_glm52_6layer_deterministic_e2e.py:31 · 快照<module>importsubprocessexplicit_importimport subprocess
occ-001848tests/test_glm52_6layer_deterministic_e2e.py:72 · 快照_iface_ipv4api_callsubprocess.runlexical_import_resolutionout = subprocess.run([“ip”, “-o”, “-4”, “addr”, “show”, ifname], capture_output=True, text=True).stdout.split()
occ-001849tests/test_glm52_6layer_deterministic_e2e.py:124 · 快照_skip_reasonapi_callsubprocess.runlexical_import_resolutionvisible = subprocess.run(
occ-001850tests/test_glm52_6layer_deterministic_e2e.py:132 · 快照_skip_reasonapi_callsubprocess.runlexical_import_resolutionprobe = subprocess.run([sys.executable, “-c”, _PREREQ_PROBE], capture_output=True, text=True, env=probe_env)
occ-001851tests/test_glm52_6layer_deterministic_e2e.py:153 · 快照_download_ci_assetapi_callsubprocess.runlexical_import_resolutionsubprocess.run(command, check=True)
occ-001853tests/test_glm52_6layer_deterministic_e2e.py:398 · 快照_runapi_callsubprocess.runlexical_import_resolutionr = subprocess.run(cmd, env=env, cwd=cwd, capture_output=True, text=True)
occ-001854tests/test_glm52_6layer_deterministic_e2e.py:402 · 快照_runapi_callsubprocess.Popenlexical_import_resolutionproc = subprocess.Popen(cmd, env=env, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
occ-001855tests/test_glm52_6layer_deterministic_e2e.py:402 · 快照_runapi_referencesubprocess.PIPElexical_import_resolutionproc = subprocess.Popen(cmd, env=env, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
occ-001856tests/test_glm52_6layer_deterministic_e2e.py:402 · 快照_runapi_referencesubprocess.STDOUTlexical_import_resolutionproc = subprocess.Popen(cmd, env=env, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
occ-001859tests/test_optional_straw.py:4 · 快照<module>importsubprocessexplicit_importimport subprocess
occ-001861tests/test_optional_straw.py:144 · 快照test_default_rollout_and_training_work_without_strawapi_callsubprocess.runlexical_import_resolutionsubprocess.run(
occ-001872tests/test_qwen2.5_0.5B_opd_sglang.py:2 · 快照<module>importsubprocessexplicit_importimport subprocess
occ-001875tests/test_qwen2.5_0.5B_opd_sglang.py:39 · 快照_launch_teacher_serverapi_callsubprocess.Popenlexical_import_resolutionprocess = subprocess.Popen(
occ-001876tests/test_qwen2.5_0.5B_opd_sglang.py:57 · 快照_launch_teacher_serverapi_referencesubprocess.STDOUTlexical_import_resolutionstderr=subprocess.STDOUT,
occ-001883tests/test_qwen2.5_0.5B_rollout_health.py:7 · 快照<module>importsubprocessexplicit_importimport subprocess
occ-001884tests/test_qwen2.5_0.5B_rollout_health.py:82 · 快照executeapi_callsubprocess.runlexical_import_resolutionsubprocess.run([“ray”, “stop”, “–force”], check=True)
occ-001886tests/test_qwen2.5_0.5B_training_recovery.py:7 · 快照<module>importsubprocessexplicit_importimport subprocess
occ-001889tests/test_qwen2.5_0.5B_training_recovery.py:169 · 快照executeapi_callsubprocess.runlexical_import_resolutionsubprocess.run(
occ-001895tests/test_qwen2.5_0.5B_training_recovery.py:374 · 快照executeapi_callsubprocess.runlexical_import_resolutionsubprocess.run([“ray”, “stop”, “–force”], check=True)
occ-001896tests/test_qwen3_4B_external_pd.py:21 · 快照<module>importsubprocessexplicit_importimport subprocess
occ-001898tests/test_qwen3_4B_external_pd.py:54 · 快照_get_bond_ipv4api_callsubprocess.check_outputlexical_import_resolutionoutput = subprocess.check_output([“ip”, “-o”, “-4”, “addr”, “show”, “dev”, iface], text=True)
occ-001899tests/test_qwen3_4B_external_pd.py:55 · 快照_get_bond_ipv4api_referencesubprocess.CalledProcessErrorlexical_import_resolutionexcept (OSError, subprocess.CalledProcessError):
occ-001902tests/test_qwen3_4B_external_pd.py:157 · 快照<module>api_referencesubprocess.Popenlexical_import_resolution) -> subprocess.Popen:
occ-001904tests/test_qwen3_4B_external_pd.py:190 · 快照_launch_sglang_serverapi_callsubprocess.Popenlexical_import_resolutionprocess = subprocess.Popen(cmd, env=env, stdout=log_file, stderr=subprocess.STDOUT)
occ-001905tests/test_qwen3_4B_external_pd.py:190 · 快照_launch_sglang_serverapi_referencesubprocess.STDOUTlexical_import_resolutionprocess = subprocess.Popen(cmd, env=env, stdout=log_file, stderr=subprocess.STDOUT)
occ-001909tests/test_qwen3_4B_external_pd.py:222 · 快照executeapi_referencesubprocess.Popenlexical_import_resolutionprocesses: list[subprocess.Popen] = []
occ-001948tests/test_rollout_straw_transport.py:3 · 快照<module>importsubprocessexplicit_importimport subprocess
occ-001949tests/test_rollout_straw_transport.py:102 · 快照test_cpu_rollout_imports_do_not_require_sglangapi_callsubprocess.runlexical_import_resolutionsubprocess.run(
occ-001950tests/test_rollout_straw_transport.py:261 · 快照test_payload_reference_is_small_and_readable_by_independent_processapi_callsubprocess.runlexical_import_resolutionsubprocess.run(
occ-001972tests/test_rollout_straw_transport.py:1418 · 快照test_checkpoint_lock_released_when_controller_process_is_killedapi_callsubprocess.Popenlexical_import_resolutionprocess = subprocess.Popen(
occ-001973tests/test_rollout_straw_transport.py:1432 · 快照test_checkpoint_lock_released_when_controller_process_is_killedapi_referencesubprocess.PIPElexical_import_resolutionstdin=subprocess.PIPE,
occ-001974tests/test_rollout_straw_transport.py:1433 · 快照test_checkpoint_lock_released_when_controller_process_is_killedapi_referencesubprocess.PIPElexical_import_resolutionstdout=subprocess.PIPE,
occ-001975tests/test_rollout_straw_transport.py:1434 · 快照test_checkpoint_lock_released_when_controller_process_is_killedapi_referencesubprocess.PIPElexical_import_resolutionstderr=subprocess.PIPE,
occ-002059tests/test_straw_fully_async_recovery.py:13 · 快照<module>importsubprocessexplicit_importimport subprocess
occ-002085tests/test_straw_fully_async_recovery.py:257 · 快照test_fully_async_sigkill_and_restart_preserves_results_and_prefixesapi_callsubprocess.Popenlexical_import_resolutionprocess = subprocess.Popen(
occ-002086tests/test_straw_fully_async_recovery.py:261 · 快照test_fully_async_sigkill_and_restart_preserves_results_and_prefixesapi_referencesubprocess.STDOUTlexical_import_resolutionstderr=subprocess.STDOUT,
occ-002229tests/test_training_recovery.py:291 · 快照test_recovery_e2e_contacts_dashboard_without_proxyimportsubprocessexplicit_importimport subprocess
occ-002232tests/test_training_recovery.py:326 · 快照test_recovery_e2e_contacts_dashboard_without_proxyapi_referencesubprocesslexical_import_resolutionmonkeypatch.setattr(subprocess, “run”, lambda *a, **kw: started.append(dict(os.environ)))

返回分类索引 · 返回学习首页