Skip to content

Mark CheckpointConnector as protected #11550

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

Merged
merged 11 commits into from
Feb 3, 2022
Merged

Mark CheckpointConnector as protected #11550

merged 11 commits into from
Feb 3, 2022

Conversation

krishnakalyan3
Copy link
Contributor

@krishnakalyan3 krishnakalyan3 commented Jan 20, 2022

What does this PR do?

Fixes #11482

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

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 internal minor changes/refactorings)

PR review

Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read 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 🙃

@krishnakalyan3 krishnakalyan3 changed the title mark SignalConnector as protected Mark SignalConnector as protected Jan 20, 2022
@rohitgr7
Copy link
Contributor

hey @krishnakalyan3 !
Signal connector is already done here: #11513
would you mind rebasing your branch with master?

also, you mean do to CheckpointConnector?

@krishnakalyan3
Copy link
Contributor Author

Wow looks like I am super slow. You are right I made a mistake while naming the branch.

@rohitgr7
Copy link
Contributor

Wow looks like I am super slow. You are right I made a mistake while naming the branch.

you can still continue here. branch name looks correct :)

@krishnakalyan3
Copy link
Contributor Author

Fixes #11482

@rohitgr7 rohitgr7 changed the title Mark SignalConnector as protected Mark CheckpointConnector as protected Jan 20, 2022
@krishnakalyan3
Copy link
Contributor Author

krishnakalyan3 commented Jan 20, 2022

@rohitgr7 should the depreciated files below be changed to protected?

./tests/deprecated_api/test_remove_2-0.py:    assert trainer.checkpoint_connector.resume_checkpoint_path is None
./tests/deprecated_api/test_remove_2-0.py:    assert trainer.checkpoint_connector.resume_from_checkpoint_fit_path == ckpt_path
./tests/deprecated_api/test_remove_2-0.py:    assert trainer.checkpoint_connector.resume_checkpoint_path is None
./tests/deprecated_api/test_remove_2-0.py:    assert trainer.checkpoint_connector.resume_from_checkpoint_fit_path == ckpt_path
./tests/deprecated_api/test_remove_2-0.py:    assert trainer.checkpoint_connector.resume_checkpoint_path is None
./tests/deprecated_api/test_remove_2-0.py:    assert trainer.checkpoint_connector.resume_from_checkpoint_fit_path is None
./tests/deprecated_api/test_remove_2-0.py:    assert trainer.checkpoint_connector.resume_checkpoint_path is None
./tests/deprecated_api/test_remove_2-0.py:    assert trainer.checkpoint_connector.resume_from_checkpoint_fit_path is None
./tests/deprecated_api/test_remove_2-0.py:    assert trainer.checkpoint_connector.resume_checkpoint_path is None
./tests/deprecated_api/test_remove_2-0.py:    assert trainer.checkpoint_connector.resume_from_checkpoint_fit_path is None

@rohitgr7
Copy link
Contributor

@krishnakalyan3 yes!
else it will fail eventually since we are not targeting any BC for trainer.checkpoint_connector.

@krishnakalyan3
Copy link
Contributor Author

@rohitgr7 Looks like I have made the changes to all files, could you please review it?.

@rohitgr7 rohitgr7 added design Includes a design discussion refactor labels Jan 20, 2022
@rohitgr7 rohitgr7 added this to the 1.6 milestone Jan 20, 2022
Copy link
Contributor

@rohitgr7 rohitgr7 left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution 😃

@mergify mergify bot added the ready PRs ready to be merged label Jan 20, 2022
@carmocca carmocca removed the design Includes a design discussion label Jan 20, 2022
@rohitgr7 rohitgr7 enabled auto-merge (squash) January 20, 2022 17:56
@krishnakalyan3
Copy link
Contributor Author

Thank you for the reviews.

auto-merge was automatically disabled January 20, 2022 20:59

Pull request was closed

@ananthsub ananthsub reopened this Jan 20, 2022
@codecov
Copy link

codecov bot commented Jan 20, 2022

Codecov Report

Merging #11550 (9ea4115) into master (92c22ae) will decrease coverage by 4%.
The diff coverage is 92%.

❗ Current head 9ea4115 differs from pull request most recent head 975ab63. Consider uploading reports for the commit 975ab63 to get more accurate results

@@           Coverage Diff            @@
##           master   #11550    +/-   ##
========================================
- Coverage      92%      88%    -4%     
========================================
  Files         194      194            
  Lines       16947    16944     -3     
========================================
- Hits        15562    14945   -617     
- Misses       1385     1999   +614     

@carmocca carmocca enabled auto-merge (squash) January 21, 2022 01:43
Copy link
Contributor

@tchaton tchaton left a comment

Choose a reason for hiding this comment

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

LGTM !

@daniellepintz
Copy link
Contributor

The GPUs test has been queued since yesterday, can someone rerun it?

@rohitgr7
Copy link
Contributor

The GPUs test has been queued since yesterday, can someone rerun it?

@daniellepintz there is some issue on the Azure side. All the PRs are in the queue.

@krishnakalyan3
Copy link
Contributor Author

Looks like the GPU tests are still pending?

@akihironitta
Copy link
Contributor

@krishnakalyan3 Yes. The tracking issue is #11634.

Copy link
Contributor

@akihironitta akihironitta left a comment

Choose a reason for hiding this comment

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

Although deprecation is not needed, shouldn't we add an entry to CHANGELOG.md similarly to #9779?

Copy link
Member

@Borda Borda left a comment

Choose a reason for hiding this comment

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

changelog entry as it could be also seen as breaking change...?

@carmocca carmocca merged commit 6586dd2 into Lightning-AI:master Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready PRs ready to be merged refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mark CheckpointConnector as protected
9 participants