Skip to content
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

Fix usage of fs.listdir in CheckpointConnector #15413

Merged
merged 22 commits into from
Nov 4, 2022

Conversation

leoleoasd
Copy link
Contributor

@leoleoasd leoleoasd commented Oct 30, 2022

What does this PR do?

Fix use path in fs.listdir in checkpoint

Fixes #15379

Does your PR introduce any breaking changes? If yes, please list them.

no

Before submitting

  • Was this discussed/approved via a GitHub issue? (not for typos and docs)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you make sure to update the documentation with your changes? (if necessary)
  • Did you write any new necessary tests? (not for typos and docs)
  • Did you verify new and existing tests pass locally with your changes?
  • Did you list all the breaking changes introduced by this pull request?
  • Did you update the CHANGELOG? (not for typos, docs, test updates, or minor internal changes/refactors)

PR review

Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:

  • Is this pull request ready for review? (if not, please submit in draft mode)
  • Check that all items from Before submitting are resolved
  • Make sure the title is self-explanatory and the description concisely explains the PR
  • Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?

Make sure you had fun coding 🙃

@github-actions github-actions bot added the pl Generic label for PyTorch Lightning package label Oct 30, 2022
@leoleoasd
Copy link
Contributor Author

Only fixing listdir for now. Other usages of fs.xxxx still need to be discussed

@awaelchli awaelchli added community This PR is from the community bug Something isn't working checkpointing Related to checkpointing labels Oct 30, 2022
@leoleoasd
Copy link
Contributor Author

Hi @Borda @awaelchli any update on the review of this PR?

Copy link
Contributor

@carmocca carmocca left a comment

Choose a reason for hiding this comment

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

There are several failing tests.

Also, a CHANGELOG entry should be added.

@awaelchli awaelchli changed the title Fix use path in fs.listdir in checkpoint (#15379) Fix usage of fs.listdir in CheckpointConnector Nov 3, 2022
@awaelchli awaelchli added this to the v1.8.x milestone Nov 3, 2022
@awaelchli
Copy link
Member

@leoleoasd Responding to your concerns. Yes, we want to support the remote filesystems. It's been added in some places of the code base, logger outputs and checkpointing are the main areas where this is supported. There was never a huge demand, but the users who do use it are mostly using the s3 protocol (from general feedback on slack). For your use cases, you did the right thing and request it on GitHub. Thanks for providing help in improving the coverage here!

@leoleoasd
Copy link
Contributor Author

Tests passed, this PR is ready for the next round of review.
The checkpointing issue is fixed, and I'll open new PR if I found some other things that doesn't work with HDFS and add necessary tests.

@awaelchli awaelchli self-assigned this Nov 4, 2022
Copy link
Contributor

@carmocca carmocca left a comment

Choose a reason for hiding this comment

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

LGTM if CI agrees

@mergify mergify bot added the ready PRs ready to be merged label Nov 4, 2022
@awaelchli awaelchli enabled auto-merge (squash) November 4, 2022 17:16
@mergify mergify bot added has conflicts and removed ready PRs ready to be merged labels Nov 4, 2022
@mergify mergify bot added ready PRs ready to be merged and removed has conflicts ready PRs ready to be merged labels Nov 4, 2022
@awaelchli awaelchli merged commit ee8a57d into Lightning-AI:master Nov 4, 2022
Borda pushed a commit that referenced this pull request Nov 5, 2022
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: otaj <6065855+otaj@users.noreply.github.com>
(cherry picked from commit ee8a57d)
lexierule pushed a commit that referenced this pull request Nov 10, 2022
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: otaj <6065855+otaj@users.noreply.github.com>
(cherry picked from commit ee8a57d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working checkpointing Related to checkpointing community This PR is from the community pl Generic label for PyTorch Lightning package ready PRs ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

URL passed to fs.listdir instead of a path
5 participants