Skip to content

perf(review): run Gitleaks once per review instead of per file - #4295

Merged
dan-petty merged 1 commit into
mainfrom
perf/2232-run-gitleaks-once-per-review-instead
Nov 10, 2026
Merged

dan-petty merged 1 commit into
mainfrom
perf/2232-run-gitleaks-once-per-review-instead

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A code review starts one sandboxed Gitleaks run for each file that it reviews. For 37 files, this took 65 seconds in the sandbox. The static stage execution time grows linearly with the number of reviewed files (#2232). Gitleaks must run once for all reviewed files over a scratch directory.

Closes #2232

Change: openspec/changes/archive/2026-11-09-2232-run-gitleaks-once-per-review-instead/

@dan-petty dan-petty added type/infra Type infra: the build, CI, images or cluster scope/review Multi-persona code review engine, verification, and findings labels Nov 9, 2026
A review of N files runs Gitleaks once over the directory of materialized
targets instead of starting the process for each file. Findings map back
to reviewed file paths relative to the tree, and scratch isolation files
stay out of findings.

Closes #2232
@dan-petty
dan-petty force-pushed the perf/2232-run-gitleaks-once-per-review-instead branch from 5b47ca2 to 3147a9e Compare November 10, 2026 00:02
@dan-petty
dan-petty marked this pull request as ready for review November 10, 2026 00:10
@dan-petty
dan-petty merged commit 2acb9f9 into main Nov 10, 2026
26 checks passed
@dan-petty
dan-petty deleted the perf/2232-run-gitleaks-once-per-review-instead branch November 10, 2026 00:11
dan-petty pushed a commit that referenced this pull request Nov 10, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.103.2](v0.103.1...v0.103.2)
(2026-11-10)


### Bug Fixes

* **ai:** route the Jev Decisions API through the gateway
([#4300](#4300))
([4e5adb9](4e5adb9))
* **k8s:** move the mattermost database off the control plane
([#4304](#4304))
([7029757](7029757))


### Performance Improvements

* **review:** run Gitleaks once per review instead of per file
([#4295](#4295))
([2acb9f9](2acb9f9))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/review Multi-persona code review engine, verification, and findings type/infra Type infra: the build, CI, images or cluster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf(review): Run Gitleaks once per review instead of per file

1 participant