Skip to content

test(security): analyze and scanner tests use git fake - #2905

Merged
dan-petty merged 1 commit into
mainfrom
test/2181-analyze-scanner-tests-reach-git-fake
Oct 31, 2026
Merged

dan-petty merged 1 commit into
mainfrom
test/2181-analyze-scanner-tests-reach-git-fake

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

This change migrates 13 test files to use git_fake or pure-Python directory fixtures instead of starting real git subprocesses.

Zero tests start git after this change.

Audit Results

  • Tests starting a real git subprocess: 31 before, 0 after
  • Execution duration across the 13 test files: 21.18s before, 15.23s after (28% faster)

Closes #2181

Migrate 13 test files to reach git through the git fake or pure
Python directory setup. Ensure that zero tests start a real git
process.

Audit results across the 13 test files:
- Tests starting git: 31 before, 0 after
- Execution time: 21.18s before, 15.23s after (28% faster)

Closes #2181
@dan-petty dan-petty added type/test Type test: a new or changed test scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault labels Oct 31, 2026
@dan-petty
dan-petty marked this pull request as ready for review October 31, 2026 19:32
@dan-petty
dan-petty merged commit a361419 into main Oct 31, 2026
18 checks passed
@dan-petty
dan-petty deleted the test/2181-analyze-scanner-tests-reach-git-fake branch October 31, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault type/test Type test: a new or changed test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(security): the analyze, ai tooling and security scanner tests start no git and reach git through the git fake

1 participant