You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cdec6d9
Browse filesBrowse the repository at this point in the historyBrowse files
ci: report a crash of the cloud-deploy-action check as a check that could not run
An unexpected error exited with Node's default code 1, which this script uses for an incompatible CLI, so the dev-build alert would have blamed the action. The docs now also name the version output the action's test relies on, and link the follow-up issue.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Copy file name to clipboardExpand all lines: docs/oss/release-automation.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ The pull request check is part of the `Test` job because that check is already r
38
38
39
39
- The test is `tests/prisma-cli.test.mjs`, and it needs no install: it imports only `../cli.mjs` and Node built-ins.
40
40
- The test reads the executable to test from the `PRISMA_CLI_BINS` environment variable.
41
+
- The test reads the CLI's version from the output of `prisma --version`, which must start with the version number.
41
42
- The script finds the two deploy cases by their titles (`... accepts the deploy arguments for production` and for a named environment) and exits 2 unless both ran. Without an executable the test runs no cases and passes, so a renamed variable or renamed titles would otherwise go unnoticed. Any failed case makes it exit 1. The destroy case may be skipped, because CLIs without a `destroy` command skip it.
42
43
- The test reads this CLI's error codes: `CLI.INVALID_ARGUMENTS`, `CLI.COMMAND_MOVED` or `CLI.UNKNOWN_COMMAND` for rejected arguments, and `CLI.CREDENTIALS_REQUIRED` or `CLI.CONFIG_SECTION_INVALID` as the first check after the arguments are parsed.
43
44
@@ -55,7 +56,7 @@ When a product changes the arguments:
55
56
56
57
When the change is made in this repository itself, the pull request's CLI reports the last release's version, so the action sends it the old arguments and the check fails. Release the action first with a rule for the next version, and bump the version (`pnpm bump-version`) in the same pull request.
57
58
58
-
Making the action detect the arguments without relying on the version number is tracked as follow-up in `prisma/cloud-deploy-action`.
59
+
Making the action detect the arguments without relying on the version number is tracked in [prisma/cloud-deploy-action#27](https://github.com/prisma/cloud-deploy-action/issues/27).
0 commit comments