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

Open Beginner friendly
#1,956 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@2389400626lh-ops is already working on this.

Since Nov 30, 2026.

  • #1958 by @2389400626lh-ops — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript

Research direction

Read apps/outreach/turbo.json and check how gen:types and lint declare their outputs and dependencies. Confirm that astro check syncs content into .astro/, then run pnpm check with a docs change to reproduce the race. Done means the tasks are ordered and the check completes reliably.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
119
Forks
19
Avg merge
1d 18h
Merged PRs (30d)
60

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DouglasNeuroInformatics/OpenDataCapture

All issues in DouglasNeuroInformatics/OpenDataCapture

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.