Skip to content

Conversation

@codetheweb
Copy link
Contributor

@codetheweb codetheweb commented Jun 5, 2025

Description of changes

Closes #4263.

Test plan

How are these changes tested?

  • Tests pass locally with pytest for python, yarn test for js, cargo test for rust

@github-actions
Copy link

github-actions bot commented Jun 5, 2025

Reviewer Checklist

Please leverage this checklist to ensure your code review is thorough before approving

Testing, Bugs, Errors, Logs, Documentation

  • Can you think of any use case in which the code does not behave as intended? Have they been tested?
  • Can you think of any inputs or external events that could break the code? Is user input validated and safe? Have they been tested?
  • If appropriate, are there adequate property based tests?
  • If appropriate, are there adequate unit tests?
  • Should any logging, debugging, tracing information be added or removed?
  • Are error messages user-friendly?
  • Have all documentation changes needed been made?
  • Have all non-obvious changes been commented?

System Compatibility

  • Are there any potential impacts on other parts of the system or backward compatibility?
  • Does this change intersect with any items on our roadmap, and if so, is there a plan for fitting them together?

Quality

  • Is this code of a unexpectedly high quality (Readability, Modularity, Intuitiveness)

This reverts commit ab587c8.
This reverts commit dfcf77f.
from typing import Dict, List

base_install_dir = tempfile.gettempdir() + "/persistence_test_chromadb_versions"
base_install_dir = (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prior to this change, base_install_dir ended up being the same value for all workers spawned by pytest-xdist (which I would not expect), leading to the workers clobbering each other during installs

@codetheweb codetheweb marked this pull request as ready for review June 6, 2025 01:08
@codetheweb codetheweb requested a review from eculver June 6, 2025 01:08
@propel-code-bot
Copy link
Contributor

This PR updates the test utility for cross-version persistence to resolve a concurrency bug that appeared when running pytest-xdist. The base install directory for versioned package installs is now unique per test worker to prevent concurrent test processes from clobbering each other.

This summary was automatically generated by @propel-code-bot

@codetheweb codetheweb enabled auto-merge (squash) June 6, 2025 01:52
@codetheweb codetheweb merged commit 8f0ab85 into main Jun 6, 2025
71 checks passed
Inventrohyder pushed a commit to Inventrohyder/chroma that referenced this pull request Aug 5, 2025
…#4770)

## Description of changes

Closes chroma-core#4263.

## Test plan

_How are these changes tested?_

- [x] Tests pass locally with `pytest` for python, `yarn test` for js,
`cargo test` for rust
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.

[BUG]: test_cross_version_persist.py flakes with ColumnNotFound("bool_value") in CI

3 participants