Choose the deploy arguments without relying on the CLI's release version
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- github-actions, javascript, node.js
- Lĩnh vực
- build-system, devops
Hướng nghiên cứu
Start in cli.mjs, where takesEntryFlag and takesEnvironmentFlag pick the arguments for prisma deploy from the package version, and see how the -dev.N suffix is dropped. Try a dev version such as 8.0.0-rc.34-dev.189 to reproduce the wrong choice. Done means dev builds at or after the changed argument get the right flag, and tests/prisma-cli.test.mjs passes. The README note about the path, PRISMA_CLI_BINS and test titles is a second part of the work.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The action chooses the arguments for prisma deploy from the version of the installed prisma package (cli.mjs: takesEntryFlag, takesEnvironmentFlag). For example, it passes --environment to 8.0.0-rc.30 and later, and --stage before that.
A dev build of the CLI has the version of the last release plus -dev.N, for example 8.0.0-rc.34-dev.189. The rule ignores the -dev.N part. So when a deploy argument changes in a dev build, the action cannot tell that build from the unchanged release with the same base version.
Why it matters
prisma/prisma-cli#394 makes prisma-cli run this repository's tests/prisma-cli.test.mjs against every dev build it publishes. After an argument change, that check stays red, and alerts on every merge to prisma-cli's main, until the next CLI release has a version the action's rule can name. The action can only be fixed for the next release number, not for the dev builds that already have the change.
Options
- Compare the
-dev.Nnumber as well. Dev build numbers only go up, so "rc.34-dev.200 or later" is a precise rule. - Ask the CLI what it accepts, for example by reading
prisma deploy --help, and stop relying on the version.
Also
prisma-cli depends on two things here: the path tests/prisma-cli.test.mjs, and the PRISMA_CLI_BINS variable it reads. It also finds the deploy cases by their test titles. The README should say so, so that nobody renames them without changing prisma-cli's scripts/check-cloud-deploy-action.mjs.
- Ngôn ngữ chính
- JavaScript
- Star
- 2
- Fork
- 6
- Merge trung bình
- 6 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 prisma/cloud-deploy-action
-
Two jobs of one workflow run report to the same build record, and the second is refused with 409Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
Tất cả issue của prisma/cloud-deploy-action
Issue tương tự
-
Java Edition Tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
JSPrismarine/JSPrismarine#4178 · 1 bình luận · 1 reaction ·
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
Maintainer thường phản hồi trong vòng 1 ngày
-
comp-ai-tooling
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
ClickHouse/ClickHouse#137642 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
todo type: feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
RocketChat/Rocket.Chat#44190 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
javascript priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
LearningCircuit/local-deep-research#10384 ·
Maintainer thường phản hồi trong vòng 1 ngày