A docs change can fail pnpm check, because outreach lint and gen:types both write .astro/ at once

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

维护者通常 1 天内回复

@2389400626lh-ops 已经在做这个了。

开始于 2026年11月30日。

  • #1958 来自 @2389400626lh-ops —— 未关闭

评估

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

调研方向

阅读 apps/outreach/turbo.json,检查 gen:types 和 lint 如何声明其输出和依赖项。确认 astro check 会将内容同步到 .astro/,然后修改文档并运行 pnpm check,以复现竞态。任务顺序正确且检查能稳定完成,即为完成。

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

描述

Area: Infrastructure Area: Outreach Bug Difficulty: Low Good First Issue Priority: Low

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 模板
  • 阅读贡献指南

从这里开始

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

DouglasNeuroInformatics/OpenDataCapture 的其他 Issue

查看 DouglasNeuroInformatics/OpenDataCapture 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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