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

Đang mở Phù hợp với người mới
#1,956 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@2389400626lh-ops đang làm issue này rồi.

Từ ngày 30/11/2026.

  • #1958 của @2389400626lh-ops — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
build-system, ci-cd

Hướng nghiên cứu

Đọc apps/outreach/turbo.json và kiểm tra cách gen:types và lint khai báo đầu ra cũng như các phụ thuộc. Xác nhận astro check đồng bộ nội dung vào .astro/, sau đó chạy pnpm check với một thay đổi trong tài liệu để tái hiện tình trạng tranh chấp. Hoàn thành khi các tác vụ được sắp thứ tự và bước kiểm tra hoàn tất ổn định.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
119
Fork
19
Merge trung bình
1 ngày 18 giờ
Pull request đã merge (30 ngày)
60

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DouglasNeuroInformatics/OpenDataCapture

Tất cả issue của DouglasNeuroInformatics/OpenDataCapture

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.