Windows: hub-client author-attribution E2E writes its info file to /tmp

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
testing-qa

调研方向

失败的常量是 hub-client/e2e-author/setup.ts 中(约第 25 行)的 AUTHOR_E2E_INFO_PATH,它被第 250 行的 globalSetup 和 author-attribution.spec.ts 读取。请将它与 e2e/helpers/globalSetup.ts 使用 tmpdir() 和 join() 构建路径的方式进行比较。在 Windows 上运行 author-attribution E2E,或检查该路径是否解析到操作系统的临时目录下。当信息文件在 Windows 和 Ubuntu 上都能被正确写入和读取时,即完成。

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

描述

bug testing windows

The author-attribution E2E crashes in its global setup on windows-latest, before any test runs:

https://github.com/quarto-dev/q2/actions/runs/45607179507

Error: ENOENT: no such file or directory, open 'D:\tmp\hub-author-e2e.json'
> 250 |     writeFileSync(AUTHOR_E2E_INFO_PATH, JSON.stringify(info));
    at globalSetup (D:\a\q2\q2\hub-client\e2e-author\setup.ts:250:5)

The path is a literal /tmp, which on Windows resolves to D:\tmp, a directory that doesn't exist:

https://github.com/quarto-dev/q2/blob/49036fc2d6f8dfc4eeddb7b44f3ad69be313aad2/hub-client/e2e-author/setup.ts#L25

author-attribution.spec.ts reads the same constant. #1295 fixed this class of error for hub-e2e-server.json in e2e/helpers/globalSetup.ts, and that error is gone in this run, but it didn't touch e2e-author. Ubuntu passes because /tmp exists there.

We could build the path with join(tmpdir(), 'hub-author-e2e.json') like the other helper. I haven't run the fix.

Related: #1295, #1275.

主要语言
Rust
星标
316
派生
23
平均合并
8 小时 19 分钟
30 天内合并 PR
244

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

quarto-dev/q2 的其他 Issue

查看 quarto-dev/q2 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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