Repository navigation
feat(manifest): generate Socket facts with Coana - #1726
Jeppe Fredsgaard Blaabjerg (jfblaa) wants to merge 12 commits into
Conversation
34c53a1 to
2429c74
Compare
PR SummaryHigh Risk Overview Facts placement and fix/reach sidecars change materially. Builds write into a caller-owned work dir; kept runs are copied to their target paths via Recursive manifest walk behavior is tightened: project membership uses absolute Reviewed by Cursor Bugbot for commit c681bbc. Configure here. |
2429c74 to
c681bbc
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 3 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit c681bbc. Configure here.
137b184 to
aa44bb9
Compare
858ae3f to
dee38ba
Compare
dee38ba to
b8e363a
Compare
1e5df23 to
a4c3b56
Compare
Martin Torp (mtorp)
left a comment
There was a problem hiding this comment.
The standalone distribution needs Coana’s facts component, and auto-manifest needs to preserve Maven’s working directory and arguments. I left the two cases inline along with the source-comment findings. The wording suggestions are nits.
|
Regarding the review below: Jeppe Fredsgaard Blaabjerg (@jfblaa) Martin Torp (@mtorp) We need to revert the PR that bundles |
bc477f2 to
f061c2e
Compare
socket-cli now asks `coana generate-socket-facts` for each build root instead of running its own build-tool scripts, and lists a build's projects and a .NET solution's members through the same command. - Coana writes a root's facts into its state dir under --work-dir and names where they belong. The walk always generates into a work dir, its own when no later Coana run reads one, and copies the facts of the roots it keeps to their target at the end; a dropped run never touches the file there. This replaces the save/restore of predicted facts files. - The kept roots' sidecar entries go to reachability and socket fix as --socket-facts-sidecar. - --auto-manifest builds through the same settings as the walk. Maven builds pom.xml by name, so its facts and state stay apart from a Gradle build in the same directory, and a --file in mavenOpts becomes the POM it builds instead of a build option. - A --reach-version or --fix-version older than the pinned Coana fails facts generation with a message naming that version. - The standalone build's README says every Coana use needs SOCKET_CLI_COANA_LOCAL_PATH.
Maven resolves relative arguments such as `--settings` and `--file` from the directory it starts in, and reports a `--file` without its argument. Auto-manifest moved Maven into the directory of the POM a `--file` in mavenOpts named and dropped the option, which broke both. It now runs Maven in the scan root with mavenOpts as written, as `socket manifest maven` does. The recursive walk still builds each POM by its own file and ignores a `--file`.
A crashed `--list-members` run answers `status: failed` with no members, which read as the SDK being unable to read the solution, so a readable twin beside it could skip it. Only `members: null` means that now; a failed listing lists nothing and the solution is built.
getCoanaCliDir's doc again says it returns the version it resolved, and the test header again lists the minimum-version tests, plus the standalone build's.
…turn type The minimum-version bullet repeats its test's name, and getCoanaCliDir's doc repeats CoanaCliDir's version field.
The standalone build downloads Coana like the npm CLI, so no test covers caching embedded components.
Coana generates .NET facts, as it does JVM facts, and the standalone build downloads Coana at runtime with the user's credentials, which its offline smoke test does not have. The step only exercised the .NET facts helper the build used to embed.
f061c2e to
63f04c9
Compare

Heads up, reviewer
This PR changes socket facts SBOM generation to use coana.
LLM Description written by Claude Code:claude-opus-5-5
Socket facts for Gradle, Maven, sbt and .NET builds are generated by Coana's
generate-socket-facts, one run per build root, instead of socket-cli's own build-tool scripts (deleted in #1727). With--dynamic-sbom-inference, reachability andsocket fixthen read the state each root's run kept, so reachability analyses each JVM project on the classpath its build resolved.Merges with the stack. The Coana release it needs is pinned on v1.x since #1762.
What changes for users
socket manifest gradle|kotlin|scala|maven|dotnet,manifest auto,--auto-manifest,--dynamic-sbom-inferenceand its setup wizard go through Coana, so they download it (network access and a Socket API token) unlessSOCKET_CLI_COANA_LOCAL_PATHnames one.--reach-versionand--fix-versionalso select the Coana that generates facts, which must be the pinned version or newer.--ignore-unresolvedno longer lets through a build whose resolution didn't run, or a failure that names no project.socket fixresolves each changed build again with the settings it was generated with, and restores its files when an upgrade didn't take.--dynamic-sbom-inferencebuilds each POM by its own file, so it ignores a--fileinmavenOpts, with a warning.Implementation
runManifestFactssends Coana one request per build root, with the hints its failure report names remedies from.--socket-facts-sidecar.Stack
Changelog
In
CHANGELOG.mdunder[Unreleased]:Added
Changed
--reach-versionand--fix-versionalso select the Coana that generates Socket facts, which must be the pinned version or newer.--dynamic-sbom-inference, reachability analyzes each JVM project on the classpath its build resolved, andsocket fixrestores a build's files when an upgrade does not take.--ignore-unresolvedno longer lets through a build whose resolution did not run, or a failure that names no project.--dynamic-sbom-inferencebuilds each POM by its own file, so it ignores a--fileinmavenOpts, with a warning.🤖 Generated with Claude Code