Windows: hub-client author-attribution E2E writes its info file to /tmp
维护者通常 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 内容生成。
描述
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:
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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
quarto-dev/q2 的其他 Issue
-
bug testing windows
难度 2/5 1-3 小时 新手友好度 62/100
quarto-dev/q2#1347 ·
维护者通常 1 天内回复
-
bug testing windows
难度 2/5 1-3 小时 新手友好度 72/100
quarto-dev/q2#1344 ·
维护者通常 1 天内回复
-
bug testing windows
难度 2/5 1-3 小时 新手友好度 72/100
quarto-dev/q2#1343 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
quarto-dev/q2#1335 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
quarto-dev/q2#1324 · 2 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
area: cli good first issue type: feature
难度 2/5 1-3 小时 新手友好度 78/100
-
[Bug] Windows Ghidra provider rejects a PATH-only JDK: bare `java.exe` probe fails with Win32 87未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
renaming a provider to a taken name fails with a raw sql error可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭area:storage kind:bug priority:p3 ready
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bug bugfix
难度 2/5 1-3 小时 新手友好度 72/100
storytold/photocraft#16975 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复