Repository navigation
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Automated review finding. Recorded here so it is not lost. Nothing has been pushed to this branch and no fix is applied — this is a note, not a change request. Vendored
|
179ed93 to
15acdae
Compare
why: Improve test performance with session-scoped caching and atomic initialization for pytest-xdist compatibility. what: - Add XDG-based persistent cache for fixture master copies - Add RepoFixtureResult dataclass with cache hit/miss tracking - Add atomic_init for race-free initialization in parallel tests - Optimize git_repo, hg_repo, svn_repo fixtures with caching
what: - Add fixture cache hit/miss verification tests - Add persistent cache version key tests - Add VCS-native copy vs shutil.copytree benchmarks
what: - Add performance and benchmark pytest markers to pyproject.toml - Add fixture cache hit/miss tracking hooks to conftest.py
why: git_repo, hg_repo, and svn_repo return RepoFixtureResult wrappers, so instantiating a fresh sync instance from the template fixture needs type(template.repo). what: - Unwrap template.repo before constructing the disposable checkout
why: Opt-in benchmark and --run-performance test modules are skipped by default in CI, skewing project coverage below the 1% Codecov threshold. what: - Omit `tests/benchmarks/*` and `tests/test_fixture_performance.py` in `[tool.coverage.run].omit` - Cover `RepoFixtureResult` attribute delegation in `tests/test_pytest_plugin.py`
why: PR #502 moved sync repo fixtures to shared `*_repo_master` caches guarded by `atomic_init`, `copytree_reflink`, and `RepoFixtureResult`, while `async_*_repo` still cloned separate unlocked `*_repo` directories in the persistent XDG cache. what: - Initialize `git_repo_master`, `hg_repo_master`, and `svn_repo_master` via `async_atomic_init` and copy checkouts with `copytree_reflink` - Wrap `async_git_repo`, `async_hg_repo`, and `async_svn_repo` in `RepoFixtureResult` with explicit `loop_scope="function"` - Replace nonexistent `cmd.status()` calls in `async_hg_repo` and `async_svn_repo` docstring examples with `get_revision()` - Add `test_async_repo_fixture_uses_shared_master_cache`
Summary
~/.cache/libvcs/pytest/)RepoFixtureResultwith cache hit/miss trackingatomic_initfor race-free initialization with pytest-xdistFileLockmodule for atomic operationsTest plan