Skip to content

Commit 4fa6eb2

Browse files
Shallow commit at 2025-08-31T12:17:11.190Z
0 parents  commit 4fa6eb2

1,712 files changed

Lines changed: 326438 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.config/nextest.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[test-groups]
2+
against-tilt = { max-threads = 1 }
3+
4+
[profile.default]
5+
default-filter = "not test(/test_k8s_integration_/) and not test(/test_long_running_/)"
6+
7+
[profile.k8s_integration]
8+
default-filter = "test(/test_k8s_integration_/)"
9+
10+
[[profile.k8s_integration.overrides]]
11+
filter = "all()"
12+
test-group = "against-tilt"
13+
14+
[profile.ci.junit]
15+
path = "junit.xml"
16+
17+
[profile.ci_k8s_integration]
18+
default-filter = "test(/test_k8s_integration_/) and not test(test_k8s_integration_garbage_collection)"
19+
20+
[[profile.ci_k8s_integration.overrides]]
21+
filter = "all()"
22+
test-group = "against-tilt"
23+
24+
# This one test is extremely slow in CI and difficult to speed up.
25+
# TODO(@codetheweb): after all collection files are stored under a prefix, test_k8s_integration_* tests can be run in parallel and we can remove this profile.
26+
[profile.ci_k8s_integration_slow]
27+
default-filter = "test(test_k8s_integration_garbage_collection)"
28+
29+
[[profile.ci_k8s_integration_slow.overrides]]
30+
filter = "all()"
31+
test-group = "against-tilt"
32+
33+
[profile.ci_k8s_integration.junit]
34+
path = "junit.xml"
35+
36+
[profile.ci_long_running]
37+
default-filter = "test(/test_long_running_/)"
38+
39+
[profile.ci_long_running.junit]
40+
path = "junit.xml"

.dockerignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
venv
2+
.conda
3+
.git
4+
examples
5+
clients
6+
.hypothesis
7+
__pycache__
8+
.vscode
9+
*.egg-info
10+
.pytest_cache
11+
**/node_modules
12+
target
13+
go/bin
14+
.mypy_cache
15+
dist
16+
.next
17+
docs

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*_pb2.py* linguist-generated
2+
*_pb2_grpc.py* linguist-generated
3+
go/database/**/db/** linguist-generated=true
4+
go/pkg/proto/** linguist-generated=true
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy to Vercel
2+
3+
on:
4+
push:
5+
workflow_dispatch: # on button click
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
deploy-to-vercel:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
ref: ${{ vars.BRANCH }}
19+
20+
- name: Deploy to Vercel
21+
uses: amondnet/vercel-action@v25
22+
with:
23+
vercel-token: ${{ secrets.VERCEL_TOKEN }}
24+
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
25+
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
26+
vercel-args: '--prod'
27+
github-token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# ignore mac created DS_Store files
2+
**/.DS_Store
3+
4+
**/__pycache__
5+
go/bin/
6+
go/**/testdata/
7+
go/coordinator/bin/
8+
go/pkg/proto/
9+
10+
clients/js/package-lock.json
11+
12+
*.log
13+
14+
**/data__nogit
15+
16+
**/.ipynb_checkpoints
17+
18+
index_data
19+
20+
# Default configuration for persist_directory in chromadb/config.py
21+
# Currently it's located in "./chroma/"
22+
/chroma/
23+
/chroma_test_data/
24+
server.htpasswd
25+
server.authz
26+
server.authn
27+
28+
.venv
29+
venv
30+
.env
31+
.chroma
32+
*.egg-info
33+
dist
34+
35+
.terraform/
36+
.terraform.lock.hcl
37+
terraform.tfstate
38+
.hypothesis/
39+
.idea
40+
41+
target/
42+
43+
# environment file generated by the Javascript tests
44+
.chroma_env
45+
46+
# Rapid test data
47+
testdata

.pre-commit-config.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
exclude: 'chromadb/proto/(chroma_pb2|coordinator_pb2|logservice_pb2|chroma_pb2_grpc|coordinator_pb2_grpc|logservice_pb2_grpc)\.(py|pyi)' # Generated files
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v4.6.0
5+
hooks:
6+
- id: trailing-whitespace
7+
- id: mixed-line-ending
8+
- id: end-of-file-fixer
9+
exclude: "go/migrations"
10+
- id: requirements-txt-fixer
11+
- id: check-yaml
12+
args: ["--allow-multiple-documents"]
13+
# Exclude Helm templates from YAML linting as they are not valid YAML
14+
exclude: "k8s/distributed-chroma/templates/"
15+
- id: check-xml
16+
- id: check-merge-conflict
17+
- id: check-case-conflict
18+
- id: check-docstring-first
19+
20+
- repo: https://github.com/psf/black-pre-commit-mirror
21+
# https://github.com/psf/black/issues/2493
22+
rev: "23.3.0"
23+
hooks:
24+
- id: black
25+
26+
- repo: https://github.com/PyCQA/flake8
27+
rev: 7.0.0
28+
hooks:
29+
- id: flake8
30+
args:
31+
- "--extend-ignore=E203,E501,E503"
32+
- "--max-line-length=88"
33+
34+
- repo: https://github.com/pre-commit/mirrors-mypy
35+
rev: "v1.10.0"
36+
hooks:
37+
- id: mypy
38+
args:
39+
[
40+
--strict,
41+
--ignore-missing-imports,
42+
--follow-imports=silent,
43+
--disable-error-code=type-abstract,
44+
--config-file=./pyproject.toml,
45+
]
46+
additional_dependencies:
47+
[
48+
"pydantic",
49+
"overrides",
50+
"hypothesis",
51+
"pytest",
52+
"pypika",
53+
"numpy",
54+
"types-protobuf",
55+
"kubernetes",
56+
]
57+
58+
- repo: https://github.com/pre-commit/mirrors-prettier
59+
rev: "v3.1.0"
60+
hooks:
61+
- id: prettier
62+
files: "^clients/js/.+"
63+
exclude: "^clients/js/src/generated/.+"
64+
additional_dependencies:
65+
- prettier@2.8.7

.taplo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[formatting]
2+
column_width = 65535

.vscode/settings.json

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
{
2+
"git.ignoreLimitWarning": true,
3+
"editor.rulers": [
4+
79
5+
],
6+
"editor.formatOnSave": true,
7+
"python.formatting.provider": "black",
8+
"python.formatting.blackArgs": [
9+
"--line-length",
10+
"79"
11+
],
12+
"files.exclude": {
13+
"**/__pycache__": true,
14+
"**/.ipynb_checkpoints": true,
15+
"**/.pytest_cache": true,
16+
"**/chroma.egg-info": true
17+
},
18+
"python.analysis.typeCheckingMode": "basic",
19+
"python.linting.flake8Enabled": true,
20+
"python.linting.enabled": true,
21+
"python.linting.flake8Args": [
22+
"--extend-ignore=E203",
23+
"--extend-ignore=E501",
24+
"--extend-ignore=E503",
25+
"--max-line-length=88"
26+
],
27+
"python.testing.pytestArgs": [
28+
"."
29+
],
30+
"python.testing.unittestEnabled": false,
31+
"python.testing.pytestEnabled": true,
32+
"editor.formatOnPaste": true,
33+
"python.linting.mypyEnabled": true,
34+
"python.linting.mypyCategorySeverity.note": "Error",
35+
"python.linting.mypyArgs": [
36+
"--follow-imports=silent",
37+
"--ignore-missing-imports",
38+
"--show-column-numbers",
39+
"--no-pretty",
40+
"--strict",
41+
"--disable-error-code=type-abstract"
42+
],
43+
"protoc": {
44+
"options": [
45+
"--proto_path=idl/",
46+
]
47+
},
48+
"rust-analyzer.cargo.buildScripts.enable": true,
49+
"files.associations": {
50+
"fstream": "cpp",
51+
"iosfwd": "cpp",
52+
"__hash_table": "cpp",
53+
"__locale": "cpp",
54+
"atomic": "cpp",
55+
"deque": "cpp",
56+
"filesystem": "cpp",
57+
"future": "cpp",
58+
"locale": "cpp",
59+
"random": "cpp",
60+
"regex": "cpp",
61+
"string": "cpp",
62+
"tuple": "cpp",
63+
"type_traits": "cpp",
64+
"unordered_map": "cpp",
65+
"valarray": "cpp",
66+
"variant": "cpp",
67+
"vector": "cpp",
68+
"__string": "cpp",
69+
"istream": "cpp",
70+
"memory": "cpp",
71+
"optional": "cpp",
72+
"string_view": "cpp",
73+
"__bit_reference": "cpp",
74+
"__bits": "cpp",
75+
"__config": "cpp",
76+
"__debug": "cpp",
77+
"__errc": "cpp",
78+
"__mutex_base": "cpp",
79+
"__node_handle": "cpp",
80+
"__nullptr": "cpp",
81+
"__split_buffer": "cpp",
82+
"__threading_support": "cpp",
83+
"__tree": "cpp",
84+
"__tuple": "cpp",
85+
"array": "cpp",
86+
"bit": "cpp",
87+
"bitset": "cpp",
88+
"cctype": "cpp",
89+
"charconv": "cpp",
90+
"chrono": "cpp",
91+
"cinttypes": "cpp",
92+
"clocale": "cpp",
93+
"cmath": "cpp",
94+
"compare": "cpp",
95+
"complex": "cpp",
96+
"concepts": "cpp",
97+
"condition_variable": "cpp",
98+
"csignal": "cpp",
99+
"cstdarg": "cpp",
100+
"cstddef": "cpp",
101+
"cstdint": "cpp",
102+
"cstdio": "cpp",
103+
"cstdlib": "cpp",
104+
"cstring": "cpp",
105+
"ctime": "cpp",
106+
"cwchar": "cpp",
107+
"cwctype": "cpp",
108+
"exception": "cpp",
109+
"format": "cpp",
110+
"forward_list": "cpp",
111+
"initializer_list": "cpp",
112+
"iomanip": "cpp",
113+
"ios": "cpp",
114+
"iostream": "cpp",
115+
"limits": "cpp",
116+
"list": "cpp",
117+
"map": "cpp",
118+
"mutex": "cpp",
119+
"new": "cpp",
120+
"numeric": "cpp",
121+
"ostream": "cpp",
122+
"queue": "cpp",
123+
"ratio": "cpp",
124+
"set": "cpp",
125+
"sstream": "cpp",
126+
"stack": "cpp",
127+
"stdexcept": "cpp",
128+
"streambuf": "cpp",
129+
"system_error": "cpp",
130+
"typeindex": "cpp",
131+
"typeinfo": "cpp",
132+
"unordered_set": "cpp",
133+
"algorithm": "cpp"
134+
},
135+
}

0 commit comments

Comments
 (0)