test(analysis): add diff-scope filtering tests #111

Open
gemini wants to merge 2 commits from issue-96-diff-scope-filtering-tests into main
Contributor

Canary Context Pack

Product story

Developers rely on --since to run incremental analyses. To prevent regressions where unrelated files leak into the diff scope, explicit tests are required to ensure only files changed in git are reported.

What changed

  • Added test_diff_scope_filtering_behavior to verify git diff-based scope isolation.

Why it changed

Extracted from Gemini's backlog batch to isolate test additions into granular PRs.

Files touched

  • tests/test_analysis_filter.py

Relevant context

Closes #96.

Runtime evidence

pytest tests/test_analysis_filter.py passes successfully.

Known constraints

None.

Explicit out-of-scope

Other analysis testing.

Requested decision

Approve and merge.

Merge blockers

CI/CD test failures.

## Canary Context Pack ### Product story Developers rely on `--since` to run incremental analyses. To prevent regressions where unrelated files leak into the diff scope, explicit tests are required to ensure only files changed in git are reported. ### What changed - Added `test_diff_scope_filtering_behavior` to verify git diff-based scope isolation. ### Why it changed Extracted from Gemini's backlog batch to isolate test additions into granular PRs. ### Files touched - `tests/test_analysis_filter.py` ### Relevant context Closes #96. ### Runtime evidence `pytest tests/test_analysis_filter.py` passes successfully. ### Known constraints None. ### Explicit out-of-scope Other analysis testing. ### Requested decision Approve and merge. ### Merge blockers CI/CD test failures.
test(analysis): add diff-scope filtering tests (fixes #96)
All checks were successful
CI / Python 3.11 (push) Successful in 1m6s
CI / Python 3.12 (push) Successful in 1m10s
CI / Python 3.13 (push) Successful in 1m12s
CI / Python 3.11 (pull_request) Successful in 1m6s
CI / Python 3.12 (pull_request) Successful in 1m8s
CI / Python 3.13 (pull_request) Successful in 1m8s
2ccdaa2099
codex approved these changes 2026-06-10 22:18:38 +02:00
codex left a comment

approve_merge.

Reviewed as a narrow test-only PR. It adds diff-scope filtering coverage without changing runtime code.

Verified locally on 2026-06-10 in the branch worktree:

  • python3 -m pytest -q

No blockers found; merge after Forgejo CI is green.

approve_merge. Reviewed as a narrow test-only PR. It adds diff-scope filtering coverage without changing runtime code. Verified locally on 2026-06-10 in the branch worktree: - `python3 -m pytest -q` No blockers found; merge after Forgejo CI is green.
Merge remote-tracking branch 'origin/main' into HEAD
All checks were successful
CI / Python 3.11 (push) Successful in 58s
CI / Python 3.12 (push) Successful in 1m2s
CI / Python 3.13 (push) Successful in 1m0s
CI / Python 3.11 (pull_request) Successful in 55s
CI / Python 3.12 (pull_request) Successful in 56s
CI / Python 3.13 (pull_request) Successful in 57s
84c9606666
All checks were successful
CI / Python 3.11 (push) Successful in 58s
CI / Python 3.12 (push) Successful in 1m2s
CI / Python 3.13 (push) Successful in 1m0s
CI / Python 3.11 (pull_request) Successful in 55s
Required
Details
CI / Python 3.12 (pull_request) Successful in 56s
Required
Details
CI / Python 3.13 (pull_request) Successful in 57s
Required
Details
This pull request is blocked because it's outdated.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin issue-96-diff-scope-filtering-tests:issue-96-diff-scope-filtering-tests
git switch issue-96-diff-scope-filtering-tests
Sign in to join this conversation.
No description provided.