Skip to content

fix(flame): quiet deploy --silent on node and warn about --ci without --docker - #469

Merged
gitfromwildan merged 3 commits into
mainfrom
fix/flame-deploy-silent-ci
Nov 5, 2026
Merged

gitfromwildan merged 3 commits into
mainfrom
fix/flame-deploy-silent-ci

Conversation

@gitfromwildan

Copy link
Copy Markdown
Member

Summary

Fixes two flame deploy flag bugs found while auditing the deploy flags with experimental.pages off and on. Both bugs were already on main before the recent changes.

--silent printed over a hundred lines on Node and Deno

  • On Node and Deno the build runs in-process. Vite's reporter printed the chunk table and the chunk-size advice. deploy already set FLAME_BUILD_SILENT for that build, but nothing read it. The client bundle build in hydrate.node.ts now uses Vite's error log level when it is set.
  • The progress spinner in logger.ts wrote straight to stdout and ignored LOG_LEVEL and LOG_FORMAT. It now goes through the logger's guard(). It stays quiet when info is filtered out, and it writes JSON entries under LOG_FORMAT=json instead of terminal control codes.

--ci without --docker was ignored silently

--ci only adds .github/workflows/deploy-docker.yml. Without --docker, flame dropped it without a word and wrote the GitHub Pages workflow. bin/cli.js now warns once, even under --silent, and points to flame deploy --docker --ci. Behavior is otherwise unchanged.

Verification

Template project, flame deploy on each runtime:

Case Node Bun
--silent 0 lines, exit 0 (was 120) 0 lines, exit 0
--docker --silent 0 lines, exit 0 0 lines, exit 0
no flags unchanged, Vite output shown unchanged
--ci one warning, no Docker workflow one warning, no Docker workflow
--silent with an invalid meta.basePath error shown, exit 1 "Build failed", exit 1
  • New CLI tests cover the --ci warning: it fires once, still fires with --silent, and does not fire for --docker --ci or for other commands.
  • New logger tests cover the spinner: no output at LOG_LEVEL=error, output at the default level, valid JSON under LOG_FORMAT=json.
  • 802 tests pass. tsc, oxlint and the pre-push hook pass.

… --docker

flame deploy --silent:

- On Node and Deno the build runs in-process, and Vite's reporter printed
  the chunk table and the chunk-size advice, over a hundred lines.
  deploy sets FLAME_BUILD_SILENT for that build, but nothing read it. The
  client bundle build now uses Vite's "error" log level when it is set.
- The progress spinner wrote straight to stdout and ignored LOG_LEVEL and
  LOG_FORMAT. It now goes through the logger's guard: silent when info is
  filtered out, JSON entries under LOG_FORMAT=json.
- Node and Bun now print nothing on success. A failing build still shows
  its error and exits 1.

flame deploy --ci:

- --ci only adds the Docker image workflow, so without --docker it was
  dropped without a word and the GitHub Pages workflow was written. The CLI
  now warns once, even with --silent, and points to --docker --ci.
@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docu Ignored Ignored Preview Nov 5, 2026 3:34pm UTC

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — one minor test suggestion inline.

Reviewed changes

Reviewed the whole PR (mode: senior, since it touches the deploy path). It routes the progress spinner through the logger's level and format filters, quiets Vite on the in-process Node/Deno deploy build, and adds a CLI warning for --ci without --docker. Verdict: READY WITH MINOR FIXES. The fixes are correct. The only finding is a LOW test-quality issue.

  • Spinner honours LOG_LEVEL / LOG_FORMAT. Spinner.start/stop/info now return early through guard("info", …). I checked that logger.ts loads only through the lazy import("./build.impl") in deploy.shared.ts, after runBuild() has set LOG_LEVEL=error. deploy.node.ts → deploy.shared.ts → paths.ts never imports the logger, so the level currentLevel reads when the module loads is error. JSON mode now writes info entries instead of ANSI cursor codes, which also fixes LOG_FORMAT=json output for build, clean and preview on Bun.
  • Vite logLevel: "error" under FLAME_BUILD_SILENT. runClientBuild() in hydrate.node.ts now reads this env var, which deploy.shared.ts was already setting but nothing used. Errors still come through.
  • --ci without --docker warning. It is emitted after the Bun re-exec in bin/cli.js, so only one process prints it. The wording is accurate: both deploy.ts and deploy.shared.ts read isCi only inside the isDocker branch.
  • Tests. I ran cli.test.ts and logger.test.ts locally under Node and both pass (23 tests). The deploy flags spawns take about 0.4s each, even without .docu/lib.

Top priorities: (1) replace or drop the source-text test in cli.test.ts. Nothing else is blocking.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using claude-opus-5-5 | 𝕏

Replace the test that grepped hydrate.node.ts and deploy.shared.ts for the
FLAME_BUILD_SILENT wiring with a behavior check. The runtime smoke jobs now
run `flame deploy --silent --force` on Node and Deno and fail if it prints
anything. --force rebuilds the client bundle, so Vite runs. With the Vite
log level fix reverted, the Node step prints 140 lines and fails.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues. The earlier finding is fixed, and there is one minor CI suggestion inline.

Reviewed changes

Reviewed 558e2f3 (mode: standard, CI and test changes only). Verdict: READY WITH MINOR FIXES. Nothing blocks the merge.

  • Dropped the source-text test in cli.test.ts. This fixes the earlier LOW finding, and that thread is now resolved.
  • Added flame deploy --silent --force smoke steps for Node and Deno in the runtime-smoke job. They fail if any output shows up. I checked that --force reaches build.impl.ts: the CLI imports the deploy entry in-process, so parseArgs() sees the same process.argv. I also checked that .docu/lib was already compiled by the step before, so the lazy "precompiling" line cannot cause a false failure. One side effect: Browser smoke now serves the dist from deploy, which adds .nojekyll and _headers. The repo docu.json has no experimental.pages, so FLAME_STANDALONE does not change the pages it checks.

Top priorities: (1) print the captured output when deploy exits non-zero (inline).

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using claude-opus-5-5 | 𝕏

Comment thread .github/workflows/ci.yml Resolved
Print what a failing `flame deploy --silent --force` captured before the
runtime smoke step fails. Steps run under `bash -e`, so a non-zero exit
inside `out=$(...)` aborted the step before the output was printed, and
the log only showed the exit code.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found. The last open finding is fixed.

Reviewed changes

Reviewed 7127b11 (mode: standard, CI only). Verdict: READY. No findings are open.

  • Deploy errors now show in the smoke step logs. The Node and Deno flame deploy --silent --force steps now run || { printf '%s\n' "$out"; exit 1; }. out is assigned before the || branch runs, so a non-zero exit under bash -e prints the captured Deploy failed: … output before the step fails. This fixes the earlier LOW finding on both steps, and that thread is now resolved.

Top priorities: none.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@gitfromwildan
gitfromwildan merged commit b587c7e into main Nov 5, 2026
21 of 22 checks passed
@gitfromwildan
gitfromwildan deleted the fix/flame-deploy-silent-ci branch November 5, 2026 15:46
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