-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merges the team/hypothesis-tests branch to main. Which adds a robust property-based testing suite to Chroma. lfg.
- Loading branch information
Showing
38 changed files
with
3,222 additions
and
556 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
venv | ||
.git | ||
examples | ||
examples | ||
clients | ||
.hypothesis | ||
__pycache__ | ||
.vscode | ||
*.egg-info | ||
.pytest_cache |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Chroma Integration Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- team/hypothesis-tests | ||
pull_request: | ||
branches: | ||
- main | ||
- team/hypothesis-tests | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
python: ['3.7'] | ||
platform: [ubuntu-latest] | ||
testfile: ["--ignore-glob 'chromadb/test/property/*'", | ||
"chromadb/test/property/test_add.py", | ||
"chromadb/test/property/test_collections.py", | ||
"chromadb/test/property/test_cross_version_persist.py", | ||
"chromadb/test/property/test_embeddings.py", | ||
"chromadb/test/property/test_filtering.py", | ||
"chromadb/test/property/test_persist.py"] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install test dependencies | ||
run: python -m pip install -r requirements.txt && python -m pip install -r requirements_dev.txt | ||
- name: Integration Test | ||
run: bin/integration-test ${{ matrix.testfile }} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: PR Review Checklist | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
PR-Comment: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: PR Comment | ||
uses: actions/github-script@v2 | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
script: | | ||
github.issues.createComment({ | ||
issue_number: ${{ github.event.number }}, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: `# 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 (Readbility, Modularity, Intuitiveness)` | ||
}) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,4 @@ dist | |
.terraform.lock.hcl | ||
terraform.tfstate | ||
.hypothesis/ | ||
.idea | ||
.idea |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,28 @@ | ||
{ | ||
"git.ignoreLimitWarning": true, | ||
"editor.rulers": [ | ||
120 | ||
], | ||
"editor.formatOnSave": true, | ||
"python.formatting.provider": "black", | ||
"files.exclude": { | ||
"**/__pycache__": true, | ||
"**/.ipynb_checkpoints": true, | ||
"**/.pytest_cache": true, | ||
"**/chroma.egg-info": true | ||
}, | ||
"python.analysis.typeCheckingMode": "basic", | ||
"python.linting.flake8Enabled": true, | ||
"python.linting.enabled": true, | ||
"python.linting.flake8Args": [ | ||
"--extend-ignore=E203", | ||
"--extend-ignore=E501", | ||
"--extend-ignore=E503", | ||
"--max-line-length=88", | ||
], | ||
} | ||
"git.ignoreLimitWarning": true, | ||
"editor.rulers": [ | ||
120 | ||
], | ||
"editor.formatOnSave": true, | ||
"python.formatting.provider": "black", | ||
"files.exclude": { | ||
"**/__pycache__": true, | ||
"**/.ipynb_checkpoints": true, | ||
"**/.pytest_cache": true, | ||
"**/chroma.egg-info": true | ||
}, | ||
"python.analysis.typeCheckingMode": "basic", | ||
"python.linting.flake8Enabled": true, | ||
"python.linting.enabled": true, | ||
"python.linting.flake8Args": [ | ||
"--extend-ignore=E203", | ||
"--extend-ignore=E501", | ||
"--extend-ignore=E503", | ||
"--max-line-length=88" | ||
], | ||
"python.testing.pytestArgs": [ | ||
"." | ||
], | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.pytestEnabled": true | ||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.