-
Notifications
You must be signed in to change notification settings - Fork 141
Stream files to storage backend chunk by chunk #304
Conversation
4a62ff5
to
fea86fa
Compare
e436d98
to
b2ab1f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like it's currently in a bad rebase state. Sending back to you
b2ab1f2
to
e7c51c4
Compare
2d290cd
to
cb97fcb
Compare
mocking multipart gcs still needs some work https://github.com/stevearc/pypicloud/runs/6999063103?check_suite_focus=true#step:4:2385 as well as mocking s3 ref getmoto/moto#5252 |
4969dae
to
dd047ce
Compare
RUN curl https://raw.githubusercontent.com/fkrull/docker-multi-python/master/setup.sh -o /setup.sh \ | ||
&& bash setup.sh \ | ||
&& rm /setup.sh | ||
RUN apt-install libldap2-dev libsasl2-dev default-jre |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ref https://github.com/snakepacker/python#apt-install
this image contains git, tox, all the python versions etc. shaves off 1+ minute from CI for each env
setup.py
Outdated
@@ -13,7 +13,7 @@ | |||
|
|||
REQUIREMENTS_TEST = open(os.path.join(HERE, "requirements_test.txt")).readlines() | |||
REQUIREMENTS = [ | |||
"smart_open[http]", | |||
"smart_open[s3,http]@git+https://github.com/ddelange/smart_open@patch-1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
waiting for piskvorky/smart_open#702
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stevearc I'll update the PR once this merges, until then any PR comments are appreciated :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when I start a fresh pod running stevearc/pypicloud:1.3.6
, k8s still registers 141Mi
. potentially a memprofiling candidate 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
memprofiling using filprofiler
a default server.ini
generated using local filesystem option, killed once the server booted succesfully:
fil-profile run -m pyramid.scripts.pserve server.ini
d6a3b3f
to
7a511df
Compare
7a511df
to
ecb3f1e
Compare
Sorry for the delay, will do a review soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two small comments, otherwise looks good. We're just waiting on the smart_open PR to merge?
396f7ac
to
511b791
Compare
@stevearc I think this is ready to ship :) |
if this looks good to you, could you puah the docker image also for |
Sick! I'll release shortly |
Release is cut, but the docker build and publish is broken. Will debug when I get time |
ref #302 (comment)
builds upon #302, #303
fixes #210
depends on piskvorky/smart_open#702, getmoto/moto#5255
API:
self.get_uri
to s3,gcs,azure storages. for the rest no changesFunctionality:
request.db.upload
(will now do multi-part uploads)stream_files
is truegenerate_hashes
is trueCI:
snakepacker/python:all
as base image