Skip to content

Fix regression after disable XSC scan graph for all binary - #913

Merged
attiasas merged 1 commit into
jfrog:devfrom
attiasas:fix-on-demand-binary-ui
Oct 8, 2026
Merged

attiasas merged 1 commit into
jfrog:devfrom
attiasas:fix-on-demand-binary-ui

Conversation

@attiasas

@attiasas attiasas commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator
  • The pull request is targeting the dev branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....
  • All static analysis checks passed.
  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • Updated the Contributing page / ReadMe page / CI Workflow files if needed.
  • All changes are detailed at the description. if not already covered at JFrog Documentation, new documentation have been added.

Summary by CodeRabbit

  • Improvements
    • Binary scans of graphs containing components now use the XSC scanning service and retain scan tracking information throughout the scan.
    • Binary scans of graphs without components continue using the existing scanning service.

@attiasas
attiasas requested a review from a team October 7, 2026 13:22
@attiasas attiasas added bug Something isn't working safe to test Approve running integration tests on a pull request labels Oct 7, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Oct 7, 2026
@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 64fd887b-e4cb-4978-a5f8-404b0a34c602
📥 Commits

Reviewing files that changed from the base of the PR and between fb2bb15 and 9dcea9b.

📒 Files selected for processing (4)
  • commands/scan/buildscan_test.go
  • commands/scan/scan.go
  • utils/xray/scangraph/scangraph.go
  • utils/xray/scangraph/scangraph_test.go

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

Binary graph scans now pass the configured XSC version and multi-scan ID. Binary graphs with child nodes use the XSC graph endpoint, while binary leaf graphs continue to clear the XSC identifiers.

Changes

Binary graph XSC scan

Layer / File(s) Summary
Pass XSC identifiers to binary scans
commands/scan/scan.go, commands/scan/buildscan_test.go
Binary graph scan parameters now include the configured XSC version and multi-scan ID. The added test checks these values and the binary scan type.
Select the XSC endpoint for binary graphs
utils/xray/scangraph/scangraph.go, utils/xray/scangraph/scangraph_test.go
Binary graphs with nodes retain their XSC identifiers and use the XSC graph endpoint. Tests check endpoint requests and polling, graph nodes, and the leaf-graph behavior.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant BinaryGraphScanParams
  participant useXscGraphScan
  participant XSCGraphEndpoint
  BinaryGraphScanParams->>useXscGraphScan: Provide binary scan type and XSC identifiers
  useXscGraphScan->>XSCGraphEndpoint: POST graph with nodes, multi-scan ID, and binary scan type
  XSCGraphEndpoint-->>BinaryGraphScanParams: Return scan result
  BinaryGraphScanParams->>XSCGraphEndpoint: Poll XSC graph endpoint
Loading

Suggested reviewers: eranturgeman

Merge Risk: ⚪ Minimal · up to 9dcea

This change restores XSC scanning for binary graphs that have child nodes, and leaf graphs keep their existing behavior. No merge-blocking risk is evident from the supplied changes and tests.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 22.22% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 4 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title describes fixing the binary scan graph regression. The changes restore XSC scanning for binary graphs with nodes while retaining legacy behavior for leaf graphs.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

👍 Frogbot scanned this pull request and did not find any new security issues.


@attiasas
attiasas merged commit f0f67eb into jfrog:dev Oct 8, 2026
119 of 133 checks passed
@attiasas
attiasas deleted the fix-on-demand-binary-ui branch October 8, 2026 06:41

This branch was previously deployed

1 inactive deployment
frogbot — 9dcea9b7 Deployed Oct 7, 2026 by attiasas via scan-pull-request #4658
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants