Skip to content

chore(scan): deprecate --reach-enable-analysis-splitting - #1750

Merged
Martin Torp (mtorp) merged 3 commits into
v1.xfrom
martin/retire-analysis-splitting-flag
Nov 24, 2026
Merged

Martin Torp (mtorp) merged 3 commits into
v1.xfrom
martin/retire-analysis-splitting-flag

Conversation

@mtorp

@mtorp Martin Torp (mtorp) commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

The Coana CLI no longer splits a reachability analysis into several runs. Each heuristic runs one analysis. So --reach-enable-analysis-splitting has nothing left to opt in to.

This PR makes it a hidden, deprecated no-op, the same way --reach-disable-analysis-splitting was retired. Passing it still succeeds, so CI scripts that use it keep working. On scan create it also no longer implies --reach, like the other deprecated no-op flags.

socket-cli now always passes --disable-analysis-splitting to Coana. Users can still run an older Coana with --reach-version, and those versions split by default. Newer versions ignore the flag.

The internal reachEnableAnalysisSplitting option is gone from the reachability options type, its defaults and its call sites. scan create and scan reach also stop destructuring the deprecated no-op flags, since nothing reads them.

Tests

  • perform-reachability-analysis.test.mts checks that --disable-analysis-splitting is always passed.
  • scan create has one test that passes all the deprecated no-op flags without --reach, including --reach-lazy-mode. scan reach has one test that passes both splitting flags.
  • The help text tests and the native help SVG snapshots for scan create and scan reach drop the flag. I regenerated the SVGs from a local native build.

One heads-up on the SVGs. scripts/test/native.mts currently refuses the native build on v1.x, because the SEA manifest reports 2.1.0-rc.0 and the script expects the package.json version 1.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

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.
@mtorp
Martin Torp (mtorp) marked this pull request as ready for review November 23, 2026 12:01
@cursor

cursor Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Backward-compatible CLI deprecation and a fixed Coana flag; no auth, data handling, or scan-result logic changes.

Overview
Retires --reach-enable-analysis-splitting now that reachability no longer splits analyses into multiple runs. The flag stays accepted but is hidden and a no-op, matching --reach-disable-analysis-splitting and --reach-lazy-mode. On socket scan create, those deprecated flags are listed in DEPRECATED_NO_OP_REACH_FLAGS, so they no longer count as reach modifiers and can be used without --reach.

The internal reachEnableAnalysisSplitting option is removed from reachability defaults, types, and command wiring. performReachabilityAnalysis always forwards --disable-analysis-splitting to Coana (for older Coana versions that still split by default); user-facing enable/disable splitting flags no longer affect that call.

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.

@mtorp
Martin Torp (mtorp) merged commit 3a36be2 into v1.x Nov 24, 2026
25 checks passed
@mtorp
Martin Torp (mtorp) deleted the martin/retire-analysis-splitting-flag branch November 24, 2026 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants