test_cloudflare_mount_rejects_read_only_extra_path_grant fails on Windows: expected path is hard-coded POSIX

未关闭 适合新手
#5,529 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
88/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
python
领域
testing

调研方向

阅读 tests/extensions/sandbox/test_cloudflare.py 并检查 test_cloudflare_mount_rejects_read_only_extra_path_grant。使用 str(Path('/tmp/protected/data')) 构造预期路径,使断言使用平台原生分隔符,然后运行该测试和整个测试文件;在 Windows 上两者都通过后即完成。

由索引模型根据 Issue 内容生成。

描述

tests/extensions/sandbox/test_cloudflare.py::test_cloudflare_mount_rejects_read_only_extra_path_grant fails on Windows on current main:

- failed to write archive for path: /tmp/protected/data
+ failed to write archive for path: \tmp\protected\data

Cause. For a host-backed root, _raise_if_read_only_grant in sandbox/workspace_paths.py keeps the native Path, so the message and context['path'] use the platform separator. The test compares against a hard-coded POSIX string.

Proposed fix (test only). Build the expected value with str(Path('/tmp/protected/data')). The whole file then passes (96). Branch: https://github.com/Mahdi-Hasan/openai-agents-python/tree/fix/cloudflare-test-windows-paths

主要语言
Python
星标
30.5k
派生
5k
平均合并
18 小时 26 分钟
30 天内合并 PR
142

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

openai/openai-agents-python 的其他 Issue

查看 openai/openai-agents-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。