Skip to content

refactor: follow-ups to generating Socket facts with Coana - #1733

Merged
Jeppe Fredsgaard Blaabjerg (jfblaa) merged 2 commits into
jfblaa/facts-5-wizardsfrom
jfblaa/facts-6-follow-ups
Nov 27, 2026
Merged

Jeppe Fredsgaard Blaabjerg (jfblaa) merged 2 commits into
jfblaa/facts-5-wizardsfrom
jfblaa/facts-6-follow-ups

Conversation

@jfblaa

@jfblaa Jeppe Fredsgaard Blaabjerg (jfblaa) commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Heads up, reviewer

[Edit me, human!]


LLM Description written by Claude Code:claude-opus-5-5

Cleanups the stack makes possible but its story doesn't need; kept out of it to keep review focused. Opens once the stack is merged.

Commits
  • Pass facts-only types to Coana with --use-only-socket-facts-artifacts alone: facts generation needs a Coana that takes it, so the Maven-only --maven-use-only-socket-facts older releases took is no longer needed.
Stack
  1. fix: keep the API token and settings socket-cli passes Coana out of the build tools it runs #1725: Keep the Socket API token out of the tools Coana runs (merged)
  2. feat(manifest): generate Socket facts with Coana #1726: Generate Socket facts with Coana
  3. refactor(manifest): delete socket-cli's build-tool scripts and facts assembly #1727: Delete socket-cli's build-tool scripts and facts assembly (internal)
  4. feat(manifest): add socket.json reachability settings for the build tools #1728: socket.json reachability settings for the build tools
  5. feat(manifest): ask for the reachability settings in the setup wizards #1729: Reachability settings in the setup wizards
  6. refactor: follow-ups to generating Socket facts with Coana #1733: Follow-ups (draft) (this PR)

Changelog

No entry: internal.

🤖 Generated with Claude Code

@jfblaa
Jeppe Fredsgaard Blaabjerg (jfblaa) marked this pull request as ready for review November 24, 2026 12:32
@cursor

cursor Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Internal CLI/Coana argument and naming cleanup with no auth or data-path changes; relies on Coana versions that accept --use-only-socket-facts-artifacts.

Overview
Standardizes how socket-cli tells Coana to use only generated Socket facts, dropping the Maven-specific --maven-use-only-socket-facts shortcut. Fix, reachability, and related flows now always pass --use-only-socket-facts-artifacts with a sorted, comma-separated list of PURL types (including Maven alone as maven).

Renames buildToolScriptOptions to buildListingOptions across recursive manifest generation and setup, reflecting that the old build-tool scripts are gone.

Tests and helpers are updated to expect the unified flag and the new name.

Reviewed by Cursor Bugbot for commit 2059013. Configure here.

@jfblaa
Jeppe Fredsgaard Blaabjerg (jfblaa) force-pushed the jfblaa/facts-6-follow-ups branch 2 times, most recently from c52ece0 to c72e419 Compare November 25, 2026 08:32
@jfblaa
Jeppe Fredsgaard Blaabjerg (jfblaa) force-pushed the jfblaa/facts-6-follow-ups branch 2 times, most recently from 31ffe79 to 5b88553 Compare November 26, 2026 13:17
@jfblaa
Jeppe Fredsgaard Blaabjerg (jfblaa) force-pushed the jfblaa/facts-6-follow-ups branch 2 times, most recently from 571481f to d4a1ec8 Compare November 27, 2026 09:49
Facts generation needs a Coana that takes --use-only-socket-facts-artifacts,
so the Maven-only --maven-use-only-socket-facts that older releases took is
no longer needed.
Comment thread src/utils/coana.mts Resolved
Comment thread src/utils/coana.test.mts Resolved
The generated facts carry the facts-only purl types, and socket fix builds the Coana flags from them as reachability does. The tests match the one flag exactly and drop the rows the Maven special case needed.
@jfblaa
Jeppe Fredsgaard Blaabjerg (jfblaa) merged commit 8fcde4e into v1.x Nov 27, 2026
22 checks passed
@jfblaa
Jeppe Fredsgaard Blaabjerg (jfblaa) deleted the jfblaa/facts-6-follow-ups branch November 27, 2026 11:08
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.

3 participants