Skip to content

feat(cmd): wire --enable-db-cache into scan and ci commands#650

Closed
shivasurya wants to merge 1 commit intoshiva/pr-09-incremental-cachefrom
shiva/pr-10-cache-scan-ci-wiring
Closed

feat(cmd): wire --enable-db-cache into scan and ci commands#650
shivasurya wants to merge 1 commit intoshiva/pr-09-incremental-cachefrom
shiva/pr-10-cache-scan-ci-wiring

Conversation

@shivasurya
Copy link
Copy Markdown
Owner

Summary

Exposes the incremental SQLite cache (PR-09) on the two most commonly used commands.

pathfinder scan --project . --rules ./rules --enable-db-cache
pathfinder ci   --project . --ruleset cpf/go  --enable-db-cache
  • Flag is opt-in and marked experimental in help text
  • Cache open errors log as warnings (non-fatal) — degrades gracefully if cache dir unwritable
  • Stacked on PR-09 (shiva/pr-09-incremental-cache)

🤖 Generated with Claude Code

Exposes the incremental SQLite analysis cache (from PR-09) on the two
most commonly used commands. The flag is experimental and opt-in.

  pathfinder scan  --project . --rules ./rules --enable-db-cache
  pathfinder ci    --project . --ruleset cpf/go  --enable-db-cache

Cache is opened per-project, errors are logged as warnings (non-fatal)
so the flag degrades gracefully if the cache directory is not writable.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@shivasurya shivasurya added enhancement New feature or request go Pull requests that update go code labels Apr 7, 2026
@shivasurya shivasurya self-assigned this Apr 7, 2026
@safedep
Copy link
Copy Markdown

safedep bot commented Apr 7, 2026

SafeDep Report Summary

Green Malicious Packages Badge Green Vulnerable Packages Badge Green Risky License Badge

No dependency changes detected. Nothing to scan.

View complete scan results →

This report is generated by SafeDep Github App

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

Code Pathfinder Security Scan

Pass Critical High Medium Low Info

No security issues detected.

Metric Value
Files Scanned 2
Rules 205

Powered by Code Pathfinder

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

❌ Patch coverage is 7.69231% with 24 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (shiva/pr-09-incremental-cache@cae892e). Learn more about missing BASE report.

Files with missing lines Patch % Lines
sast-engine/cmd/ci.go 7.69% 12 Missing ⚠️
sast-engine/cmd/scan.go 7.69% 12 Missing ⚠️
Additional details and impacted files
@@                       Coverage Diff                        @@
##             shiva/pr-09-incremental-cache     #650   +/-   ##
================================================================
  Coverage                                 ?   84.34%           
================================================================
  Files                                    ?      165           
  Lines                                    ?    24403           
  Branches                                 ?        0           
================================================================
  Hits                                     ?    20582           
  Misses                                   ?     3033           
  Partials                                 ?      788           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@shivasurya
Copy link
Copy Markdown
Owner Author

Consolidated into PR #649 — scan/ci wiring was needed there to keep the build passing.

@shivasurya shivasurya closed this Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant