Skip to content

perf(dev): run gate-zero in parallel in verify_diary - #47

Merged
ManSio merged 1 commit into
mainfrom
perf/dev-verify-diary-parallel
Sep 26, 2026
Merged

ManSio merged 1 commit into
mainfrom
perf/dev-verify-diary-parallel

Conversation

@ManSio

@ManSio ManSio commented Sep 26, 2026

Copy link
Copy Markdown
Owner

What

verify_diary (the Gate-zero step of the pre-commit hook) runs the full test suite on every local commit, serially (~200-360s). It now adds -n auto when pytest-xdist is importable, and falls back to serial otherwise so the gate never breaks in a minimal environment.

No quality loss

  • Selection unchanged: pyproject addopts still apply -m 'not slow and not benchmark'; no file list, no exclusions added.
  • Falls back to serial if xdist is absent — the guard stays functional.

Measurement

Local serial 197s -> -n auto 71s (12 cores), same 1865 passed / 0 failed.

Depends on pytest-xdist from the dev extra (added in #45).

verify_diary runs the full suite on every commit (pre-commit) and it was
serial (~200-360s locally). Gate-zero now adds `-n auto` when pytest-xdist
is importable, falling back to serial otherwise, so the gate keeps working
in a minimal environment. The selection is unchanged (pyproject addopts
keep -m 'not slow and not benchmark'); measured 197s -> 71s locally.
@coderabbitai

coderabbitai Bot commented Sep 26, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: d7f5dea4-a04f-4c8c-958c-2f5113afaa04


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ManSio
ManSio merged commit bdb0b7c into main Sep 26, 2026
13 checks passed
@ManSio
ManSio deleted the perf/dev-verify-diary-parallel branch September 26, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant