Skip to content

Commit f21c853

Browse files
authored
bug: fix file_conversion disk leak (#3562)
Fix disk space leaks and Windows errors when accessing file.name on a NamedTemporaryFile Uses of `NamedTemporaryFile(..., delete=False)` and/or uses of `file.name` of NamedTemporaryFile have been replaced with TemporaryFileDirectory to avoid a known issue: - https://docs.python.org/3/library/tempfile.html#tempfile.NamedTemporaryFile - #3390 The first 7 commits each address an individual occurrence of the issue if reviewers want to review commit-by-commit.
1 parent 4194a07 commit f21c853

24 files changed

+162
-97
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 0.15.9-dev0
2+
3+
### Enhancements
4+
5+
### Features
6+
7+
### Fixes
8+
9+
* **Fix disk space leaks and Windows errors when accessing file.name on a NamedTemporaryFile** Uses of `NamedTemporaryFile(..., delete=False)` and/or uses of `file.name` of NamedTemporaryFiles have been replaced with TemporaryFileDirectory to avoid a known issue: https://docs.python.org/3/library/tempfile.html#tempfile.NamedTemporaryFile
10+
111
## 0.15.8
212

313
### Enhancements

requirements/extra-pdf-image.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ google-auth==2.34.0
5353
# google-cloud-vision
5454
google-cloud-vision==3.7.4
5555
# via -r ./extra-pdf-image.in
56-
googleapis-common-protos==1.64.0
56+
googleapis-common-protos==1.65.0
5757
# via
5858
# google-api-core
5959
# grpcio-status

requirements/ingest/chroma.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ fsspec==2024.6.1
6060
# via huggingface-hub
6161
google-auth==2.34.0
6262
# via kubernetes
63-
googleapis-common-protos==1.64.0
63+
googleapis-common-protos==1.65.0
6464
# via opentelemetry-exporter-otlp-proto-grpc
6565
grpcio==1.66.0
6666
# via

requirements/ingest/clarifai.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ clarifai-grpc==10.7.1
1919
# via clarifai
2020
contextlib2==21.6.0
2121
# via schema
22-
googleapis-common-protos==1.64.0
22+
googleapis-common-protos==1.65.0
2323
# via clarifai-grpc
2424
grpcio==1.66.0
2525
# via

requirements/ingest/embed-aws-bedrock.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ langchain-core==0.2.35
9494
# langchain-text-splitters
9595
langchain-text-splitters==0.2.2
9696
# via langchain
97-
langsmith==0.1.104
97+
langsmith==0.1.105
9898
# via
9999
# langchain
100100
# langchain-community

requirements/ingest/embed-huggingface.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ langchain-core==0.2.35
7272
# via langchain-huggingface
7373
langchain-huggingface==0.0.3
7474
# via -r ./ingest/embed-huggingface.in
75-
langsmith==0.1.104
75+
langsmith==0.1.105
7676
# via langchain-core
7777
markupsafe==2.1.5
7878
# via jinja2

requirements/ingest/embed-mixedbreadai.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ httpcore==1.0.5
2828
# via
2929
# -c ./ingest/../base.txt
3030
# httpx
31-
httpx==0.27.0
31+
httpx==0.27.2
3232
# via
3333
# -c ./ingest/../base.txt
3434
# mixedbread-ai

requirements/ingest/embed-openai.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ langchain-core==0.2.35
5757
# via langchain-openai
5858
langchain-openai==0.1.22
5959
# via -r ./ingest/embed-openai.in
60-
langsmith==0.1.104
60+
langsmith==0.1.105
6161
# via langchain-core
6262
openai==1.42.0
6363
# via langchain-openai

requirements/ingest/embed-vertexai.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ google-resumable-media==2.7.2
8888
# via
8989
# google-cloud-bigquery
9090
# google-cloud-storage
91-
googleapis-common-protos[grpc]==1.64.0
91+
googleapis-common-protos[grpc]==1.65.0
9292
# via
9393
# google-api-core
9494
# grpc-google-iam-v1
@@ -148,7 +148,7 @@ langchain-google-vertexai==1.0.10
148148
# via -r ./ingest/embed-vertexai.in
149149
langchain-text-splitters==0.2.2
150150
# via langchain
151-
langsmith==0.1.104
151+
langsmith==0.1.105
152152
# via
153153
# langchain
154154
# langchain-community

requirements/ingest/embed-voyageai.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ langchain-text-splitters==0.2.2
7979
# via langchain
8080
langchain-voyageai==0.1.1
8181
# via -r ./ingest/embed-voyageai.in
82-
langsmith==0.1.104
82+
langsmith==0.1.105
8383
# via
8484
# langchain
8585
# langchain-core

0 commit comments

Comments
 (0)