Repository navigation
test: add required Bun-only and outdated Node integration coverage - #7899
Conversation
[Low impact] The PR appears safe to merge; no new blocking issues were found. SummaryAdds required Bun startup coverage on Linux, macOS, and Windows.
Previous threads:
Reviews (6) · Last reviewed commit: "Merge branch 'main' into bun" · Reviewed by Greptile |
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
Merging this PR will degrade performance by 6.35%3 warnings
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
There was a problem hiding this comment.
All reported issues were addressed across 2 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
- One fixture runs each test with no node and with an outdated node. It pins get_node_version to the scenario, because the per-process cache can hold a value probed under another PATH (telemetry fills it first). - The fixture asserts Reflex's own executor: plain bun with no node, and `bun --bun` over an outdated node, so the two cases are told apart. - Add a prod test: the production build must run and serve the page. - The dev test checks the compiled route module holds the app's text. - One `_require` helper skips, or fails in the dedicated job. - The job reads the Bun version from constants.Bun.VERSION and sets REFLEX_USE_SYSTEM_BUN, so Reflex runs the provisioned bun.
There was a problem hiding this comment.
All reported issues were addressed across 2 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
View guided diff | Re-trigger cubic
Inside echo, a failed command substitution does not stop bash -e, so an empty version reached setup-bun, which then installs the latest Bun.
All Submissions:
Type of change
Please delete options that are not relevant.
New Feature Submission:
Changes To Core Features:
Closes #7896
Add a dedicated
bun-only-startupjob on Linux, macOS and Windows. It runstests/integration/test_nodeless_frontend.pyin two scenarios: no Node on PATH, and an outdated Node (20) on PATH.bun_runtimefixture asserts Reflex's own runtime choice: plainbunwith no Node, andbun --bunover an outdated Node. It pinsget_node_versionto the scenario, because the per-process cache can hold a value that was probed under another PATH.test_dev_frontend_serves: the dev server starts withbun --conditions=development, serves the document, and compiles the page's route module.test_prod_frontend_serves: the production build (bun [--bun] run export) runs and serves the prerendered page.-rs).constants.Bun.VERSIONand setsREFLEX_USE_SYSTEM_BUN=1, so Reflex runs that Bun. It also records the runtime versions and paths.On Linux and macOS, the pre-#7895 dev command starts fine, so only the argv assertion catches a revert there. The original restart-guard failure happens only on Windows.