A docs change can fail pnpm check, because outreach lint and gen:types both write .astro/ at once
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- build-system, ci-cd
调研方向
阅读 apps/outreach/turbo.json,检查 gen:types 和 lint 如何声明其输出和依赖项。确认 astro check 会将内容同步到 .astro/,然后修改文档并运行 pnpm check,以复现竞态。任务顺序正确且检查能稳定完成,即为完成。
由索引模型根据 Issue 内容生成。
描述
apps/outreach's lint (astro check) and gen:types (astro sync) both write to apps/outreach/.astro/, and nothing orders one after the other. When both miss the cache they run at the same time, and one can fail on the other's temporary file. Both tasks hash docs/** and blog/** along with the package, so any edit there causes a miss.
@opendatacapture/outreach:gen:types: [UnknownFilesystemError]
@opendatacapture/outreach:gen:types: Caused by:
@opendatacapture/outreach:gen:types: ENOENT: no such file or directory, rename '…/apps/outreach/.astro/content-assets.mjs.tmp' -> '…/apps/outreach/.astro/content-assets.mjs'
Failed: @opendatacapture/outreach#gen:types
It stops pnpm check at lint, four seconds in, and reads like a real failure. A rerun passes once gen:types has run on its own and been cached. Seen on a branch off main @ e8683b67f whose only docs/ change was one paragraph in docs/en/3-guides/3.3-how-to-upload-data.mdx.
Where
apps/outreach/turbo.json: gen:types declares outputs: [".astro/**"], and lint declares only dependsOn: ["^build"]. astro check syncs content before it checks, so it writes the same directory.
Suggested fix
Add "gen:types" to lint's dependsOn in apps/outreach/turbo.json. astro check then starts from synced content, and the two never overlap.
Related: #1925 describes the same kind of race between runtime-core's lint and build.
- 主要语言
- TypeScript
- 星标
- 119
- 派生
- 19
- 平均合并
- 1 天 18 小时
- 30 天内合并 PR
- 60
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DouglasNeuroInformatics/OpenDataCapture 的其他 Issue
-
Area: Infrastructure Chore Difficulty: Low Priority: Low
难度 2/5 1-3 小时 新手友好度 72/100
DouglasNeuroInformatics/OpenDataCapture#1948 ·
维护者通常 1 天内回复
-
apps/web preview overwrites newly built dist/index.html with stale dist/index.html.bak across builds未关闭Area: Infrastructure Area: Web Bug Difficulty: Low Priority: Medium
难度 2/5 1-3 小时 新手友好度 82/100
DouglasNeuroInformatics/OpenDataCapture#1938 ·
维护者通常 1 天内回复
-
Area: API Bug Difficulty: Low Priority: Low
难度 2/5 1-3 小时 新手友好度 62/100
DouglasNeuroInformatics/OpenDataCapture#1937 ·
维护者通常 1 天内回复
-
Area: Infrastructure Bug Difficulty: Low Priority: Medium Security
难度 2/5 1-3 小时 新手友好度 72/100
DouglasNeuroInformatics/OpenDataCapture#1916 ·
维护者通常 1 天内回复
-
Area: Infrastructure Chore Difficulty: Low Priority: Medium
难度 2/5 1-3 小时 新手友好度 70/100
DouglasNeuroInformatics/OpenDataCapture#1835 ·
维护者通常 1 天内回复
查看 DouglasNeuroInformatics/OpenDataCapture 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
super-productivity/super-productivity#12128 · 2 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
`getClientCredentialsToken()` sends `scopes` (comma-joined) instead of the OAuth `scope` parameter未关闭
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 1/5 1-3 小时 新手友好度 72/100
justyns/silverbullet-ai#199 ·
-
bug
难度 2/5 1-3 小时 新手友好度 83/100
spartan-ng/spartan#1931 ·
维护者通常 2 天内回复