File tree 4 files changed +16
-10
lines changed
4 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,13 @@ function cleanup() {
33
33
34
34
trap cleanup EXIT
35
35
36
+ # NOTE(robinson) - per pymongo docs, pymongo ships with its own version of the bson library,
37
+ # which is incompatible with the bson installed from pypi. bson is installed as part of the
38
+ # astra dependencies.
39
+ # ref: https://pymongo.readthedocs.io/en/stable/installation.html
40
+ pip uninstall -y bson pymongo
41
+ make install-ingest-mongodb
42
+
36
43
python " $SCRIPT_DIR " /python/test-ingest-mongodb.py \
37
44
--uri " $MONGODB_URI " \
38
45
--database " $MONGODB_DATABASE_NAME " \
Original file line number Diff line number Diff line change @@ -20,7 +20,12 @@ if [ -z "$MONGODB_URI" ] && [ -z "$MONGODB_DATABASE_NAME" ]; then
20
20
exit 8
21
21
fi
22
22
23
- # trap cleanup EXIT
23
+ # NOTE(robinson) - per pymongo docs, pymongo ships with its own version of the bson library,
24
+ # which is incompatible with the bson installed from pypi. bson is installed as part of the
25
+ # astra dependencies.
26
+ # ref: https://pymongo.readthedocs.io/en/stable/installation.html
27
+ pip uninstall -y bson pymongo
28
+ make install-ingest-mongodb
24
29
25
30
PYTHONPATH=. ./unstructured/ingest/main.py \
26
31
mongodb \
Original file line number Diff line number Diff line change @@ -34,10 +34,7 @@ all_tests=(
34
34
' sqlite.sh'
35
35
' vectara.sh'
36
36
' weaviate.sh'
37
- # NOTE(robinson) - mongo conflicts with astra because it ships with its
38
- # own version of bson, and installing bson from pip causes mongo to fail
39
- # ref: https://pymongo.readthedocs.io/en/stable/installation.html
40
- # 'mongodb.sh'
37
+ ' mongodb.sh'
41
38
)
42
39
43
40
full_python_matrix_tests=(
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ all_tests=(
42
42
' confluence-diff.sh'
43
43
' confluence-large.sh'
44
44
' airtable-diff.sh'
45
- # NOTE(ryan): This test is disabled because it is triggering too many requests to the API
45
+ # # NOTE(ryan): This test is disabled because it is triggering too many requests to the API
46
46
# 'airtable-large.sh'
47
47
' local-single-file.sh'
48
48
' local-single-file-basic-chunking.sh'
@@ -62,10 +62,7 @@ all_tests=(
62
62
' local-embed-voyageai.sh'
63
63
' sftp.sh'
64
64
' opensearch.sh'
65
- # NOTE(robinson) - mongo conflicts with astra because it ships with its
66
- # own version of bson, and installing bson from pip causes mongo to fail
67
- # ref: https://pymongo.readthedocs.io/en/stable/installation.html
68
- # 'mongodb.sh'
65
+ ' mongodb.sh'
69
66
)
70
67
71
68
full_python_matrix_tests=(
You can’t perform that action at this time.
0 commit comments