Skip to content

fix(worker-turbo): deployTokenEnv's fallback message breaks bash (0.24.1) - #28

Merged
vijayakrishnans merged 1 commit into
mainfrom
fix/deploy-token-quote
Nov 30, 2026
Merged

vijayakrishnans merged 1 commit into
mainfrom
fix/deploy-token-quote

Conversation

@vijayakrishnans

Copy link
Copy Markdown
Contributor

The bug (in 0.24.0, #27). The fallback message for an empty deployTokenEnv variable had an apostrophe (this component's secretEnv) inside ${!token_var:?…} within double quotes. Bash reads that ' as an opening quote, so every opted-in Cloudflare step fails to parse on the runner: unexpected EOF while looking for matching '.

The first consumer hit it: Pagewell's pdf-jobs-worker pre-deploy, on stage and prod. Nothing was deployed, so the worker kept its previous version, and components that don't opt in are unaffected. 0.24.0's render check passed, because nothing ran bash on the rendered steps.

The fix

  • The message no longer has the apostrophe.
  • verify.sh runs bash -n on the pre-deploy, migrate, deploy and secrets-live steps of both fixtures (opted in and default). The fixtures now set preDeployCommand and migrationCommand, as real components do; orun doesn't copy schema defaults, so they rendered <no value>.
  • Checked both ways: verify.sh passes with the fix, and with the 0.24.0 line restored the new check fails (pre-deploy (opted-in) does not parse as bash).
  • stack.yaml is 0.24.1.

🤖 Generated with Claude Code

…4.1)

0.24.0's message for an empty deployTokenEnv variable had an apostrophe
("this component's secretEnv") inside ${...:?...} in double quotes, where
bash reads it as an opening quote: every opted-in step failed to parse
("unexpected EOF while looking for matching '"). The render check passed;
nothing ran bash on it. The message has no apostrophe now, and verify.sh runs
bash -n on every Cloudflare step of both fixtures (which now set their
pre-deploy and migration commands, as real components do). With the old line
restored, the new check fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T18:26:45.400171Z 7426597 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@vijayakrishnans
vijayakrishnans merged commit ca15901 into main Nov 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant