Choose the deploy arguments without relying on the CLI's release version
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- github-actions, javascript, node.js
- 領域
- build-system, devops
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- JavaScript
- スター
- 2
- フォーク
- 6
- 平均マージ
- 6日 8時間
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
prisma/cloud-deploy-action のほかの issue
-
Two jobs of one workflow run report to the same build record, and the second is refused with 409オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
prisma/cloud-deploy-action の issue をすべて見る
似ている issue
-
Java Edition Tests
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
JSPrismarine/JSPrismarine#4178 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
comp-ai-tooling
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
ClickHouse/ClickHouse#137642 ·
メンテナーはふだん 1 日以内に返信
-
todo type: feature
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
RocketChat/Rocket.Chat#44190 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
javascript priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
LearningCircuit/local-deep-research#10384 ·
メンテナーはふだん 1 日以内に返信