Fix the action against the current prisma CLI (top-level deploy, 8.0.0-rc.9) - #12
Merged
Conversation
Since prisma 8.0.0-rc.8 the Composer commands are top-level: the former `prisma composer deploy` is now `prisma deploy`, and the `composer` subcommand was removed. Running the old form against a current CLI fails with CLI.UNKNOWN_COMMAND. Drop the prefix in both invocations and bump the bunx fallback default to 8.0.0-rc.9. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Bun <= 1.3.9 omits Content-Length on the CLI's presigned-URL artifact upload, so every deploy fails with an opaque "Prisma artifact upload failed (HTTP 411)" — the failure that broke deploys when 8.0.0-rc.9's effect bump made the upload sensitive to it. Runners get old Bun from pins (package.json packageManager, .bun-version, setup-bun's bun-version input) even though setup-bun defaults to latest. Check `bun --version` up front and fail with the cause and the fix; an unreadable version only warns. Also syncs main.mjs's inline prisma-version fallback (dead in real runs, where action.yml always populates the input) to 8.0.0-rc.9. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Document the top-level `prisma deploy` command (the `composer` prefix was removed in 8.0.0-rc.8), the bumped 8.0.0-rc.9 fallback, the bun >= 1.3.10 requirement (older Bun fails uploads with HTTP 411), and the known limitation that destroy has no CLI command to invoke on 8.0.0-rc.9. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
kristof-siket
force-pushed
the
fix/current-prisma-cli
branch
from
August 25, 2026 10:14
0f2a5c4 to
e81bbfd
Compare
Collaborator
Author
|
Reworked after root-causing: the HTTP 411 was a Bun <= 1.3.9 bug (Content-Length omitted on the upload), not a CLI-side issue. The temporary Node invocation is gone — the action stays on Bun and instead enforces bun >= 1.3.10 with an error naming the bug. Pipeline re-verification under Bun is running now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Every released tag (v1.0.0–v1.5.0, the floating v1) and main are broken against the current
prismaCLI. This PR makes the action work again, staying fully on Bun:8.0.0-rc.8the deploy commands are top-level (prisma deploy); thecomposersubcommand family was removed, so the old invocation fails instantly withCLI.UNKNOWN_COMMANDin any repository with a currentprismadevDependency (the action prefers the local bin).8.0.0-rc.7(the last version with the old commands) to8.0.0-rc.9, and sync the dead inline fallback inmain.mjs.<= 1.3.9omits Content-Length on the CLI's presigned-URL artifact upload, so every deploy fails with an opaque "Prisma artifact upload failed (HTTP 411)" (fixed in Bun 1.3.10). Runners get an old Bun from pins — package.jsonpackageManager,.bun-version, or setup-bun'sbun-versioninput — even thoughsetup-bundefaults to latest. The action now checksbun --versionup front and fails with the cause and the fix; an unreadable version only warns.Verified
node --test tests/*.test.mjs).bunx -p prisma@8.0.0-rc.9 prisma --helpconfirms the top-leveldeploycommand shape.bun@1.3.9fixture reproduced the HTTP 411.Known issue (intentionally not addressed here)
mode: destroycannot work against the current CLI:8.0.0-rc.9has no top-leveldestroyand nobranch delete. The invocation is kept updated in form and the README documents the limitation; the teardown story is being followed up separately. In practice, Console-connected repositories get preview teardown from the platform's branch automation on branch deletion.Follow-up
#13 (stacked on this) adds the release-policy guardrails: CLI version validation with a clear error, a canary workflow against
prisma@next, and a compatibility matrix.🤖 Generated with Claude Code