Skip to content

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

Closed
wants to merge 27 commits into from
Closed

Enable S3 in nightly release #399

wants to merge 27 commits into from

Conversation

ejguan
Copy link
Contributor

@ejguan ejguan commented May 12, 2022

Partially fix #349

This PR enables:

  • Wheel
    • Linux
    • Windows
  • Conda
    • Linux

MacOS is disabled because AWSSDK requires MACOSX_DEPLOYMENT_TARGET>10.13. However, TorchText requires a minimum version of MACOSX_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

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 12, 2022
@ejguan ejguan changed the title Enable s3 Enable S3 in nightly release May 12, 2022
@ejguan ejguan force-pushed the enable_s3 branch 12 times, most recently from 4512858 to ca1fff7 Compare May 16, 2022 14:16
@ejguan ejguan force-pushed the enable_s3 branch 3 times, most recently from 7c07416 to a8f2c8c Compare May 16, 2022 15:21
Comment on lines +27 to +35
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")

Copy link
Contributor Author

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 ejguan marked this pull request as ready for review May 16, 2022 20:55
@facebook-github-bot
Copy link
Contributor

@ejguan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Comment on lines +9 to +10
git config --system core.longpaths true

Copy link
Contributor Author

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

Comment on lines +275 to +276
# TODO: Add serialization tests for optional DataPipe
# (iterdp.TFRecordLoader, None, (), {}),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc: @NivekT

@@ -1,4 +1,3 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
Copy link

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?

Copy link
Contributor Author

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

Copy link

@bearzx bearzx left a 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

@facebook-github-bot
Copy link
Contributor

@ejguan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Follow up on AWSSDK integration for nightly release
3 participants