-
Notifications
You must be signed in to change notification settings - Fork 165
Enable S3 in nightly release #399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4512858
to
ca1fff7
Compare
7c07416
to
a8f2c8c
Compare
try: | ||
import google.protobuf as _protobuf | ||
|
||
del _protobuf | ||
HAS_PROTOBUF = True | ||
except ImportError: | ||
HAS_PROTOBUF = False | ||
skipIfNoPROTOBUF = unittest.skipIf(not HAS_PROTOBUF, "no google protobuf") | ||
|
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.
The changes in test/test_tfrecord.py
are introduced because protobuf
should be an optional dependency for TorchData test.
@ejguan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
git config --system core.longpaths true | ||
|
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.
This is required because a few submodules that AWSSDK used have long name for windows system
# TODO: Add serialization tests for optional DataPipe | ||
# (iterdp.TFRecordLoader, None, (), {}), |
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.
cc: @NivekT
test/test_remote_io.py
Outdated
@@ -1,4 +1,3 @@ | |||
# Copyright (c) Meta Platforms, Inc. and affiliates. |
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.
why is it removed here?
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.
Thanks for pointing it out! I have no idea :P
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.
looks good to me, left one comment regarding a removed header
@ejguan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Partially fix #349
This PR enables:
MacOS is disabled because AWSSDK requires
MACOSX_DEPLOYMENT_TARGET>10.13
. However, TorchText requires a minimum version ofMACOSX_DEPLOYMENT_TARGET
as 10.9 (Tracked in TorchText pytorch/text#1725)And, the conda build on Windows is also disabled for now due to unkown issue (needs more time). Want to land this PR to start testing with TorchText nightly.
See the manually triggered nightly build: https://github.com/pytorch/data/actions/runs/2334403716