Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #502 +/- ##
==========================================
+ Coverage 53.22% 54.73% +1.51%
==========================================
Files 38 41 +3
Lines 5676 6643 +967
Branches 1063 1122 +59
==========================================
+ Hits 3021 3636 +615
- Misses 2144 2486 +342
- Partials 511 521 +10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
tony
added a commit
that referenced
this pull request
Dec 30, 2025
…module why: Enable safe concurrent access to shared resources across multiple processes, particularly for pytest-xdist parallel test execution. what: - Add FileLock class with context manager support - Add atomic_init() for one-time initialization with locking - Support both sync and async usage patterns
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 FileLock context manager tests - Add atomic_init race condition tests - Add timeout and error handling tests
what: - Add fixture cache hit/miss verification tests - Add persistent cache version key tests - Add VCS-native copy vs shutil.copytree benchmarks
what: - Add docs/internals/file_lock.md with API reference - Add file_lock to internals toctree
what: - Add performance and benchmark pytest markers to pyproject.toml - Add fixture cache hit/miss tracking hooks to conftest.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
~/.cache/libvcs/pytest/)RepoFixtureResultwith cache hit/miss trackingatomic_initfor race-free initialization with pytest-xdistFileLockmodule for atomic operationsTest plan