cdk(bootstrap): bootstrap:generate fetches an unpinned tsx via npx and prompts in non-interactive runs
Maintainer thường phản hồi trong vòng 1 ngày
Đá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ệ
- node.js, typescript
- Lĩnh vực
- build-system, devops
Hướng nghiên cứu
Đọc cdk/mise.toml và cdk/package.json, sau đó kiểm tra tác vụ bootstrap:generate gọi hai script như thế nào và tsx được khai báo trong workspace ra sao. Issue đề xuất thêm một devDependency tsx được khóa phiên bản và cập nhật cấu hình knip. Hoàn tất khi tác vụ chạy với stdin đã đóng, sử dụng dependency đã cài đặt và tạo lại các artifact giống hệt từng byte.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Component: CDK / infrastructure (bootstrap tasks)
Describe the bug
mise //cdk:bootstrap depends on //cdk:bootstrap:generate, which runs npx tsx scripts/generate-bootstrap-artifacts.ts && npx tsx scripts/generate-bootstrap-template.ts. tsx is not declared in any package.json, so every bootstrap makes npx download the newest published tsx at run time. The comment above [tasks."preflight:log-delivery"] in cdk/mise.toml already calls this out as unacceptable on the deploy path, but bootstrap:generate still does it.
Two consequences:
- Unpinned download on the bootstrap path. The version of a tool that generates the IAM policy artifacts is whatever npm serves that day, not what
yarn.lockpins. It also fails outright with no network. - Hangs/aborts in non-interactive runs.
npxasksNeed to install the following packages: [email protected] Ok to proceed? (y). With stdin not attached (CI, wrappers, scripts that capture output), the prompt either aborts the task or waits.
Expected behavior
mise //cdk:bootstrap runs only locked dependencies installed by yarn install and never prompts.
Current behavior
[//cdk:bootstrap:generate] $ npx tsx scripts/generate-bootstrap-artifacts.ts && npx tsx scripts/generate-bootstrap-template.ts
Need to install the following packages:
[email protected]
Ok to proceed? (y)
Reproduction steps
- Fresh clone,
mise run install(oryarn install). - Confirm
node_modules/.bin/tsxdoes not exist. MISE_EXPERIMENTAL=1 mise //cdk:bootstrap:generate </dev/null→ prompt / abort.
Possible solution
Declare tsx as a devDependency of cdk/package.json (and add it to knip's ignoreDependencies for the cdk workspace, since it is only used from mise.toml). npx tsx then resolves the locked local binary. Switching to node --experimental-strip-types (as the preflight did) is not a drop-in: these scripts import src/bootstrap/policies as a directory, which Node's ESM loader rejects (ERR_UNSUPPORTED_DIR_IMPORT). Verified locally: with tsx declared, bootstrap:generate runs with stdin closed and regenerates byte-identical artifacts. Happy to open the PR.
Environment
- Node 22.14.0 (mise) · mise 2026.10.18 macos-arm64 · Yarn 1.22.22
- Commit
6dad935f(main)
- Ngôn ngữ chính
- TypeScript
- Star
- 165
- Fork
- 50
- Merge trung bình
- 6 giờ 18 phút
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của aws-samples/sample-autonomous-cloud-coding-agents
-
cdk: support Docker-compatible engines such as Finch (clean:disk hard-codes docker)Có thể đã có người làm @alvarohare đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
aws-samples/sample-autonomous-cloud-coding-agents#969 · 1 bình luận · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
aws-samples/sample-autonomous-cloud-coding-agents#968 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
aws-samples/sample-autonomous-cloud-coding-agents#908 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug v1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
aws-samples/sample-autonomous-cloud-coding-agents#886 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug v1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
aws-samples/sample-autonomous-cloud-coding-agents#861 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của aws-samples/sample-autonomous-cloud-coding-agents
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Northeastern-Electric-Racing/FinishLine#4660 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
excaliburjs/Excalibur#3895 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
infer_audio_type only recognises one MPEG Layer III frame header, so most MP3 files are rejectedCó thể đã có người làm @Steve-20-ai đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Earn report crashes with "RangeError: Invalid time value" when a report row has an unparsable timestampCó thể đã có người làm @Gurkaran18 đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
joinmarket-webui/jam#1588 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
BeOS .json missingĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
mihaip/infinite-mac#475 ·