Skip to content

fix: support Windows file locking in DocStore and fix cross-platform test compatibility - #485

Open
Pradeepks01 wants to merge 1 commit into
VectifyAI:mainfrom
Pradeepks01:fix/windows-concurrency-and-compat
Open

fix: support Windows file locking in DocStore and fix cross-platform test compatibility#485
Pradeepks01 wants to merge 1 commit into
VectifyAI:mainfrom
Pradeepks01:fix/windows-concurrency-and-compat

Conversation

@Pradeepks01

Copy link
Copy Markdown

Summary

  • Windows File Locking: Added msvcrt.locking support in DocStore.lock() alongside POSIX fcntl to prevent race conditions during concurrent document submissions on Windows.
  • Error Handling: Replaced bare except: in pageindex/page_index_md.py with explicit (ImportError, ValueError) checking to avoid masking real import errors.
  • Test Compatibility: Fixed Windows-specific failures in test_client.py (test_env_not_loaded_from_install_dir symlink privilege error and test_list_documents_skips_unsafe_directory_names path separator issue).

Verification

  • All 322 tests passing (322 passed, 162 skipped, 0 failed).

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