Skip to content

feat(python-cli-parity): compare pull request scans with base scans - #1766

Open
John-David Dalton (jdalton) wants to merge 1 commit into
jdalton/surf-2240-ci-pr-context-stackfrom
jdalton/surf-2230-pr-baselines
Open

John-David Dalton (jdalton) wants to merge 1 commit into
jdalton/surf-2240-ci-pr-context-stackfrom
jdalton/surf-2230-pr-baselines

Conversation

@jdalton

@jdalton John-David Dalton (jdalton) commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

PR scans now select the baseline by exact commit SHA for the same repository and target branch, using the shared CI pull-request context from SocketDev/socket-cli#1772. The scan fails clearly when the base SHA or matching scan is unavailable.

@cursor

cursor Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
New isolated CI helper with tests; no changes to existing CI handlers in this diff.

Overview
Introduces selectBaselineScan and findBaselineScan so CI can pick a baseline full scan by exact commit SHA for a given org, repo, and branch (via fetchOrgFullScanList, newest-first page of up to 100).

Fails closed when the checkout has no commit SHA or when no scan exists for that hash, with messages that tell users to scan the base commit first. Unit tests cover exact-match selection, missing SHA, and missing scan cases. .gitignore is updated so the new files stay tracked.

Reviewed by Cursor Bugbot for commit 78a47bb. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ 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 78a47bb. Configure here.

@jdalton John-David Dalton (jdalton) changed the title feat(ci): select exact PR scan baselines feat(python-cli-parity): select PR scan baselines Nov 25, 2026
@jdalton John-David Dalton (jdalton) changed the title feat(python-cli-parity): select PR scan baselines feat(python-cli-parity): compare PR scans with base scans Nov 25, 2026
@jdalton John-David Dalton (jdalton) changed the title feat(python-cli-parity): compare PR scans with base scans feat(python-cli-parity): compare pull request scans with base scans Nov 25, 2026
@jdalton
John-David Dalton (jdalton) changed the base branch from v1.x to jdalton/surf-2240-ci-pr-context-stack November 25, 2026 22:49
@jdalton
John-David Dalton (jdalton) force-pushed the jdalton/surf-2240-ci-pr-context-stack branch from 986de53 to 671c420 Compare November 25, 2026 22:51

This branch has not been deployed

No deployments
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.

1 participant