Repository navigation
fix(flame): quiet deploy --silent on node and warn about --ci without --docker - #469
Conversation
… --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.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
ℹ️ 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/infonow return early throughguard("info", …). I checked thatlogger.tsloads only through the lazyimport("./build.impl")indeploy.shared.ts, afterrunBuild()has setLOG_LEVEL=error.deploy.node.ts→deploy.shared.ts→paths.tsnever imports the logger, so the levelcurrentLevelreads when the module loads iserror. JSON mode now writesinfoentries instead of ANSI cursor codes, which also fixesLOG_FORMAT=jsonoutput forbuild,cleanandpreviewon Bun. - Vite
logLevel: "error"underFLAME_BUILD_SILENT.runClientBuild()inhydrate.node.tsnow reads this env var, whichdeploy.shared.tswas already setting but nothing used. Errors still come through. --ciwithout--dockerwarning. It is emitted after the Bun re-exec inbin/cli.js, so only one process prints it. The wording is accurate: bothdeploy.tsanddeploy.shared.tsreadisCionly inside theisDockerbranch.- Tests. I ran
cli.test.tsandlogger.test.tslocally under Node and both pass (23 tests). Thedeploy flagsspawns 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.
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.
There was a problem hiding this comment.
ℹ️ 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 --forcesmoke steps for Node and Deno in theruntime-smokejob. They fail if any output shows up. I checked that--forcereachesbuild.impl.ts: the CLI imports the deploy entry in-process, soparseArgs()sees the sameprocess.argv. I also checked that.docu/libwas already compiled by the step before, so the lazy "precompiling" line cannot cause a false failure. One side effect:Browser smokenow serves the dist fromdeploy, which adds.nojekylland_headers. The repodocu.jsonhas noexperimental.pages, soFLAME_STANDALONEdoes not change the pages it checks.
Top priorities: (1) print the captured output when deploy exits non-zero (inline).
claude-opus-5-5 | 𝕏
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.
There was a problem hiding this comment.
✅ 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 --forcesteps now run|| { printf '%s\n' "$out"; exit 1; }.outis assigned before the||branch runs, so a non-zero exit underbash -eprints the capturedDeploy failed: …output before the step fails. This fixes the earlier LOW finding on both steps, and that thread is now resolved.
Top priorities: none.
claude-opus-5-5 | 𝕏

Summary
Fixes two
flame deployflag bugs found while auditing the deploy flags withexperimental.pagesoff and on. Both bugs were already on main before the recent changes.--silentprinted over a hundred lines on Node and Denodeployalready setFLAME_BUILD_SILENTfor that build, but nothing read it. The client bundle build inhydrate.node.tsnow uses Vite'serrorlog level when it is set.logger.tswrote straight to stdout and ignoredLOG_LEVELandLOG_FORMAT. It now goes through the logger'sguard(). It stays quiet when info is filtered out, and it writes JSON entries underLOG_FORMAT=jsoninstead of terminal control codes.--ciwithout--dockerwas ignored silently--cionly adds.github/workflows/deploy-docker.yml. Without--docker, flame dropped it without a word and wrote the GitHub Pages workflow.bin/cli.jsnow warns once, even under--silent, and points toflame deploy --docker --ci. Behavior is otherwise unchanged.Verification
Template project,
flame deployon each runtime:--silent--docker --silent--ci--silentwith an invalidmeta.basePath--ciwarning: it fires once, still fires with--silent, and does not fire for--docker --cior for other commands.LOG_LEVEL=error, output at the default level, valid JSON underLOG_FORMAT=json.tsc,oxlintand the pre-push hook pass.