Render build fails on corepack enable; record the hosting ADR #240
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
spec
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amaurycoudr/chess-project#240
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem Statement
PR #235 (spec #233) merged, and Render's production deploy of
c4be632failed twice, about 7 s into the build:Render's native Node image ships its own pnpm in a read-only
/usr/bin, and the blueprint'scorepack enabletries to replace that symlink. Nothing is live.Three smaller gaps came out of the same deploy:
https://chess-project-84ph.onrender.com.README.md, the wizard'sDEFAULT_URL(scripts/setup-render.sh) and the comment inapps/front/src/room/api/client.ts("There is no deployment yet…") still describe the unsuffixed or missing deployment.Solution
One PR, which the owner asked for, including the ADR changes:
render.yaml:buildCommand: corepack pnpm install --frozen-lockfile && corepack pnpm build. This writes no symlink and still honourspackageManager. Add env varCOREPACK_ENABLE_DOWNLOAD_PROMPT: "0"so corepack never blocks on a download prompt.https://chess-project-84ph.onrender.cominREADME.md, inscripts/setup-render.shDEFAULT_URL(the STAGES part only; the library stays byte-identical to the wizard template), and in theclient.tscomment./rpcfrom one origin, with a preview per PR.RoomRegistryneeds a single process, and the front calls same-origin/rpc.docs/adr/README.md.Testing Decisions
CONTRIBUTING.md, plusbash -nand shellcheck on the wizard.mainonce CI is green, then the owner re-runsscripts/setup-render.shfor the stage-6 smoke test and the stage-7 preview check./usr/bin/pnpmfor per-package scripts (harmless), and whetherstartCommand's${ORIGIN_ALLOWLIST:-$RENDER_EXTERNAL_URL}runs through a shell. Stage 6 proves the second.Out of Scope
mentioned in commit
074e3caa73mentioned in commit
7927002a22mentioned in commit
f0862e3b2bmentioned in commit
3bb1ab6034mentioned in commit
b87944df82mentioned in commit
92d93b25a8