Choose the deploy arguments without relying on the CLI's release version
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 42/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- github-actions, javascript, node.js
- Ambito
- build-system, devops
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- JavaScript
- Stelle
- 2
- Fork
- 6
- Merge medio
- 6g 8h
- PR unite (30g)
- 2
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di prisma/cloud-deploy-action
-
Two jobs of one workflow run report to the same build record, and the second is refused with 409Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
Tutte le issue di prisma/cloud-deploy-action
Issue simili
-
Java Edition Tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
JSPrismarine/JSPrismarine#4178 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
comp-ai-tooling
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
ClickHouse/ClickHouse#137642 ·
I maintainer di solito rispondono entro 1 giorno
-
todo type: feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
RocketChat/Rocket.Chat#44190 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
javascript priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
LearningCircuit/local-deep-research#10384 ·
I maintainer di solito rispondono entro 1 giorno