Skip to content

XRAY-159447 - cvs fallback for pypi - #878

Merged
gauriy-tech merged 3 commits into
jfrog:devfrom
Phavya-jfrog:feature/XRAY-159447-cvs-pypi
Sep 16, 2026
Merged

gauriy-tech merged 3 commits into
jfrog:devfrom
Phavya-jfrog:feature/XRAY-159447-cvs-pypi

Conversation

@Phavya-jfrog

@Phavya-jfrog Phavya-jfrog commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor
  • 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

Fixes CVS (curation) fallback reporting for PyPI (pip/poetry/pipenv/uv) so pinned, ranged, and
transitive whole-package blocks show consistent, npm-parity policy detail.

  • Adds a whole-package check before probing a specific version: if the package is blocked at
    every version, the row renders as All versions blocked (mirrors npm), instead of resolving
    to one version and reporting on just that one.
  • Normalizes Explanation/Recommendation to npm's generic text when a policy matches the
    whole-package block, but keeps the real per-version detail when it's a genuinely different
    policy (e.g. immature-30 on one version vs. an openssf block on the whole package).
  • Adds a loose "depends on" fallback to recover the real parent for transitive blockers across
    pip/poetry/pipenv/uv when the child has no exact version in the tool's error text.

Testing

  • 9 new unit tests in curationaudit_test.go covering pinned/ranged/transitive whole-package
    blocks and same-policy vs. different-policy normalization.
  • Verified end-to-end against a live D2C environment across pip, poetry, pipenv, and uv.
Screenshot 2026-09-09 at 10 38 48 PM Screenshot 2026-09-09 at 10 39 05 PM

@coderabbitai

coderabbitai Bot commented Sep 9, 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

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: 471d7358-4b28-4b32-8b9f-25c08e4b702c

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

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

@Phavya-jfrog
Phavya-jfrog force-pushed the feature/XRAY-159447-cvs-pypi branch from c1642db to 2d6c9a1 Compare September 9, 2026 04:51
@Phavya-jfrog
Phavya-jfrog force-pushed the feature/XRAY-159447-cvs-pypi branch from bfbe77e to 618978e Compare September 9, 2026 16:57
@Phavya-jfrog
Phavya-jfrog force-pushed the feature/XRAY-159447-cvs-pypi branch from 1e615a0 to bedd67c Compare September 9, 2026 17:00
@Phavya-jfrog Phavya-jfrog added improvement Automatically generated release notes safe to test Approve running integration tests on a pull request labels Sep 9, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Sep 9, 2026
@Phavya-jfrog
Phavya-jfrog force-pushed the feature/XRAY-159447-cvs-pypi branch from ed7dfb1 to 83155b1 Compare September 9, 2026 18:01
@Phavya-jfrog Phavya-jfrog added the safe to test Approve running integration tests on a pull request label Sep 9, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Sep 9, 2026
Comment thread commands/curation/curationaudit.go Resolved
Comment thread commands/curation/curationaudit_test.go Resolved
@Phavya-jfrog
Phavya-jfrog force-pushed the feature/XRAY-159447-cvs-pypi branch from 3618973 to ef3eb7a Compare September 15, 2026 07:03
@Phavya-jfrog Phavya-jfrog added the safe to test Approve running integration tests on a pull request label Sep 15, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Sep 15, 2026
@Phavya-jfrog
Phavya-jfrog force-pushed the feature/XRAY-159447-cvs-pypi branch from 44edcc2 to 8614cc9 Compare September 15, 2026 10:46
@Phavya-jfrog
Phavya-jfrog force-pushed the feature/XRAY-159447-cvs-pypi branch from 8614cc9 to cb65c4d Compare September 15, 2026 10:49
@Phavya-jfrog Phavya-jfrog added the safe to test Approve running integration tests on a pull request label Sep 15, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Sep 15, 2026
Comment thread commands/curation/curationaudit.go Resolved
@Phavya-jfrog Phavya-jfrog added the safe to test Approve running integration tests on a pull request label Sep 16, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Sep 16, 2026
@Phavya-jfrog Phavya-jfrog added the safe to test Approve running integration tests on a pull request label Sep 16, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Sep 16, 2026
@Phavya-jfrog Phavya-jfrog added the safe to test Approve running integration tests on a pull request label Sep 16, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Sep 16, 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 70fe9a1 into jfrog:dev Sep 16, 2026
154 of 178 checks passed
@Phavya-jfrog
Phavya-jfrog deleted the feature/XRAY-159447-cvs-pypi branch September 16, 2026 07:51

This branch was previously deployed

1 inactive deployment
frogbot — 4c096473 Deployed Sep 16, 2026 by Phavya-jfrog via scan-pull-request #4539
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants