Repository navigation
chore(scan): deprecate --reach-enable-analysis-splitting - #1750
Conversation
The Coana CLI no longer splits a reachability analysis into several runs, so opting in to splitting has nothing left to turn on. The flag is now hidden and does nothing, the same way --reach-disable-analysis-splitting was retired. Passing it still succeeds, so existing CI scripts keep working, and it no longer implies --reach on scan create. socket-cli now always passes --disable-analysis-splitting to Coana. Users can still pick an older Coana with --reach-version, and those versions split by default. Newer versions ignore the flag.
The deprecated no-op reach flags were destructured into unused variables and typed in the cli.flags cast. Nothing reads them, so those lines are gone from scan create and scan reach. The per-flag "accepted without --reach" tests are folded into one run per command that passes all the deprecated flags together. This also covers --reach-lazy-mode on scan create.
PR SummaryLow Risk Overview The internal CHANGELOG documents the deprecation; help snapshots and tests cover noop acceptance and the fixed Coana argv. Reviewed by Cursor Bugbot for commit 302f199. Configure here. |
The Coana CLI no longer splits a reachability analysis into several runs. Each heuristic runs one analysis. So
--reach-enable-analysis-splittinghas nothing left to opt in to.This PR makes it a hidden, deprecated no-op, the same way
--reach-disable-analysis-splittingwas retired. Passing it still succeeds, so CI scripts that use it keep working. Onscan createit also no longer implies--reach, like the other deprecated no-op flags.socket-cli now always passes
--disable-analysis-splittingto Coana. Users can still run an older Coana with--reach-version, and those versions split by default. Newer versions ignore the flag.The internal
reachEnableAnalysisSplittingoption is gone from the reachability options type, its defaults and its call sites.scan createandscan reachalso stop destructuring the deprecated no-op flags, since nothing reads them.Tests
perform-reachability-analysis.test.mtschecks that--disable-analysis-splittingis always passed.scan createhas one test that passes all the deprecated no-op flags without--reach, including--reach-lazy-mode.scan reachhas one test that passes both splitting flags.scan createandscan reachdrop the flag. I regenerated the SVGs from a local native build.One heads-up on the SVGs.
scripts/test/native.mtscurrently refuses the native build on v1.x, because the SEA manifest reports2.1.0-rc.0and the script expects thepackage.jsonversion1.16.0. I patched that check locally for one run to regenerate the two snapshots, and left the script alone in this PR.Expected reviewer effort: High-level design decisions