Skip to content

XRAY-170839 - Support --solution-path outside the working dir - #956

Merged
gauriy-tech merged 5 commits into
jfrog:devfrom
Phavya-jfrog:feature/XRAY-170839-solution-path
Nov 26, 2026
Merged

gauriy-tech merged 5 commits into
jfrog:devfrom
Phavya-jfrog:feature/XRAY-170839-solution-path

Conversation

@Phavya-jfrog

@Phavya-jfrog Phavya-jfrog commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Problem

jf ca --solution-path=..\..\X.sln failed with "no solution file named …" because only the file name was used and it was searched for in the working directory. A solution in a parent directory could not be selected.

Fix

--solution-path now accepts a .sln / .slnx outside the working directory. A relative path is resolved against the working directory first, then the directory the command was run from. The whole solution is restored and audited.

Impact

  • The customer's layout now works.
  • Selecting a solution audits all of its projects, not only the one in --working-dirs.
  • Runs without --solution-path are unchanged.

Test

  • Unit tests for path resolution, passing the run directory down, and restoring a solution in a parent directory.
  • Checked manually against a curation-enabled server: .sln, .slnx, absolute and backslash paths, a library outside the working dir, and a legacy packages.config project with the nuget CLI.

Case 1: .sln --solution-path

Before:
Screenshot 2026-11-23 at 4 46 09 PM

After:
Screenshot 2026-11-23 at 4 46 37 PM

Case 2: .slnx --solution-path

Before:
Screenshot 2026-11-23 at 4 48 39 PM

After:
Screenshot 2026-11-23 at 4 48 57 PM

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI; Enforced overrides: Organization, Workspace
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 3579fac3-1e3a-41ec-8116-057c72c9c6d5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

@Phavya-jfrog
Phavya-jfrog force-pushed the feature/XRAY-170839-solution-path branch from 6d27305 to 58595e9 Compare November 23, 2026 11:30
@Phavya-jfrog
Phavya-jfrog force-pushed the feature/XRAY-170839-solution-path branch from 0217f6d to 95031a0 Compare November 23, 2026 15:08
@Phavya-jfrog Phavya-jfrog added bug Something isn't working safe to test Approve running integration tests on a pull request labels Nov 23, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Nov 24, 2026
@Phavya-jfrog Phavya-jfrog added the safe to test Approve running integration tests on a pull request label Nov 24, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Nov 24, 2026

@gauriy-tech gauriy-tech left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review notes: 1 blocking item (Windows unit tests), the rest are low-severity suggestions. Each comment says what was verified.

Comment thread commands/curation/curationaudit_test.go Resolved
@gauriy-tech

Copy link
Copy Markdown
Collaborator

Description notes (no code change):

  • "then the current directory" is inaccurate. The fallback is the directory the command was run from (SolutionPathBaseDir).
  • "Unit and integration tests added": the tests are unit-level (several run a real dotnet restore); no single test goes through ca.Run -> flag -> invocation dir -> BuildDependencyTree. Consider rewording.
  • The four checklist boxes are unticked; please tick them once CI is green.
  • Other red checks look unrelated: Binary Scan integration fails identically on dev (b19969e), and the macOS C#/dotnet suite hit a project.nuget.cache already exists restore race on SDK 11 (passed on ubuntu/windows in the same run).

@Phavya-jfrog Phavya-jfrog added the safe to test Approve running integration tests on a pull request label Nov 25, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Nov 25, 2026
@Phavya-jfrog Phavya-jfrog added the safe to test Approve running integration tests on a pull request label Nov 26, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Nov 26, 2026
@Phavya-jfrog Phavya-jfrog added the safe to test Approve running integration tests on a pull request label Nov 26, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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


@gauriy-tech
gauriy-tech merged commit 578ce52 into jfrog:dev Nov 26, 2026
67 checks passed
@Phavya-jfrog
Phavya-jfrog deleted the feature/XRAY-170839-solution-path branch November 26, 2026 05:35

This branch was successfully deployed

1 active deployment
frogbot — 68e9c2e4 Deployed Nov 26, 2026 by Phavya-jfrog via scan-pull-request #4882
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