Repository navigation
Conversation
The overview needs the project graph, the script targets `list` already reads and the run summaries under `.vis/runs`; none of it needs a task graph. The binary now prints the text view and `--json` in a CI run off a terminal, byte for byte as the Node handler does. The runtime findings compare the root manifest and `.nvmrc` with the running Node, which the binary is not, so a root with `engines`, `devEngines`, `packageManager` or a Node version file goes to Node, as do the cases `list` leaves to Node (a config file, an inference detector, a project without scripts). A run summary that is not strict JSON, a `retryAttempts` or `stats` count whose JavaScript behaviour depends on its type, and a task without a target are handed to Node before anything is printed. The hit rate rounds a tie up, as `toFixed(0)` does. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
ⓘ Qodo did not review this PR because this workspace reached its daily trial limit of 100 reviews. Reviews start again at 00:00 UTC. Choose a plan to continue now. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
Thank you for following the naming conventions! 🙏 |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Merging this PR will not alter performance
Performance Changes
Comparing Footnotes
|
What
vis status(text and--json) now runs in the native binary in a CI run off a terminal, with output byte for byte equal to the Node handler's, colour codes included.Why it was thought to be blocked, and is not
statusreads no task graph. Its numbers come from the project graph (graph.rs), the script targetslistalready extracts (list::unique_target_count, a small export), and the run summaries under.vis/runs(flaky task count and cache hit rate), which the newstatus.rsreads. The base isnext; this PR is independent of thegraphPR (#260).What stays Node
Each of these is decided before anything is printed (the parity suite checks exit 70 and an untouched tree for every one):
engines,devEnginesorpackageManagerinpackage.json, or a.nvmrc/.node-version: the runtime findings compare these with the running Node, which the binary is not. Every other root has no findings. (A native answer for pinned roots needs a decision on which Node's version counts once Node is no longer the host; raising it as an open question.)listleaves to Node: avis.config.*(so constraints, which live in the config, are always 0 here), an inference detector in a project, a project without scripts,project.json, overlays, non-ASCII names, non-pnpm rootsretryAttemptsorstats.cached/totalthat is not a number ornull(JavaScript would coerce), anullsummary, a task without atargetor a non-string id, a.vis/runsthat is a file, a*.jsonentry that is a directory or has a non-UTF-8 / non-ASCII name--jsononce is the only one), extra arguments, a terminal, a colour flag, WindowsDetails worth a look
toFixed(0)(1/8is13%, not the12%of round-half-even); unit-tested and checked against Node.exitCode: nullcounts as a failure andretryAttempts: nullas none, as inanalyzeFlakiness.loadRunSummariesfalls back to.vis/last-summary.jsononly when no run file parsed; same here.Routing
bin/route.mjs,route.rs,routing.json(the oldstatus --jsonrow stays for the non-CI shape) and the route snapshot are updated together.Tests
__tests__/native/status-parity.test.ts(98 cases, text and JSON, plus colour environments and a run from a project directory) uses the workspace harness: from-scratch environment, exit 70 for declined runs without the Node entry, tree snapshot unchanged.status.rs;cargo fmt --all --check,cargo clippy --all-targets -- -D warnings,cargo test -p vis-cliclean;list-parity,routing-fixture,routestill pass. All withFORCE_COLOR=3 CI=1 GITHUB_ACTIONS=true TERM=xterm-256color.Unverified locally: Linux (non-UTF-8 file names are declined, run files are read in sorted order for the 20-run window).
Base:
next.🤖 Generated with Claude Code