已关闭
Python SDK 对外契约与实现不一致,文档示例会直接失败 #5
zhaoyifan28创建于  4月23日关闭于  7月6日
zhaoyifan28成员
4月23日 创建

问题:

  • 文档公开了 execute(timeout=..., user=...) 这样的调用方式。
  • Sandbox.execute() 也确实向下传递了 timeout 和 user。
  • 但底层 AgentClient.start_process() 根本不接受这两个参数,结果是客户端本地直接报 TypeError。

关键证据:

建议修复方向:

  • 二选一:
    • 真正把 timeout / user 做到 SDK -> proto -> agent 端;
    • 或者从 SDK 和文档中删除这些未实现能力。
  • 修完后补一个直接覆盖文档示例的测试。
likedislike
openeuler-ci-botopeneuler-ci-bot成员
4月23日 添加了label:sig/sig-CloudNative
openeuler-ci-bot
openeuler-ci-bot成员
4月23日 评论:

Welcome To openEuler Community

Hey @zhaoyifan28 , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: sig-CloudNative ,
and any of the maintainers: @duguhaotian, @jimmieme, @lu-wei-army, @taotao-sauce, @weibaohui, @wonleing, @yangzhao_kl, @zmr_2020 ,
and any of the committers: @liuxu180400617 .

likedislike
chantsztungchantsztung
4月27日 关联了pull request:[WIP][sdk] fix inconsistency between Python SDK interface and implementation
chantsztung
chantsztung
4月30日 评论:

issue问题已解决,pr已合入
https://atomgit.com/openeuler/Conch/pull/78

likedislike
zhaoyifan28成员
7月6日 评论:

/close

likedislike
zhaoyifan28成员
7月6日 评论:

/close

likedislike
openeuler-ci-botopeneuler-ci-bot成员
7月6日 issue状态由 待办的 改变为 已完成
openeuler-ci-botopeneuler-ci-bot成员
7月6日 关闭了 issue