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

Expose public and private IP in LightningWork #17742

Merged
merged 10 commits into from
Jun 6, 2023
Merged

Conversation

awaelchli
Copy link
Member

@awaelchli awaelchli commented Jun 1, 2023

What does this PR do?

  • Redefines LightningWork.internal_ip as the private ip. Initially this used to be the case, then at some point the platform re-defined it as public IP and so it was misleading until now.
  • Adds LightningWork.public_ip with the actual public IP (previously internal_ip)

cc @Borda

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot added app Generic label for Lightning App package pl Generic label for PyTorch Lightning package labels Jun 1, 2023
@github-actions github-actions bot removed the pl Generic label for PyTorch Lightning package label Jun 1, 2023
@awaelchli awaelchli marked this pull request as ready for review June 1, 2023 22:31
@awaelchli awaelchli added the feature Is an improvement or enhancement label Jun 1, 2023
@awaelchli awaelchli added this to the 2.0.x milestone Jun 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2023

⚡ Required checks status: All passing 🟢

Groups summary

🟢 lightning_app: Tests workflow
Check ID Status
app-pytest (macOS-11, lightning, 3.8, latest) success
app-pytest (macOS-11, lightning, 3.8, oldest) success
app-pytest (macOS-11, app, 3.9, latest) success
app-pytest (ubuntu-20.04, lightning, 3.8, latest) success
app-pytest (ubuntu-20.04, lightning, 3.8, oldest) success
app-pytest (ubuntu-20.04, app, 3.9, latest) success
app-pytest (windows-2022, lightning, 3.8, latest) success
app-pytest (windows-2022, lightning, 3.8, oldest) success
app-pytest (windows-2022, app, 3.8, latest) success

These checks are required after the changes to src/lightning/app/components/database/server.py, src/lightning/app/components/serve/auto_scaler.py, src/lightning/app/core/work.py, src/lightning/app/utilities/proxies.py, tests/tests_app/core/test_lightning_app.py, tests/tests_app/core/test_lightning_flow.py, tests/tests_app/structures/test_structures.py, tests/tests_app/utilities/test_proxies.py.

🟢 lightning_app: Examples
Check ID Status
app-examples (macOS-11, lightning, 3.9, latest) success
app-examples (macOS-11, lightning, 3.9, oldest) success
app-examples (macOS-11, app, 3.9, latest) success
app-examples (ubuntu-20.04, lightning, 3.9, latest) success
app-examples (ubuntu-20.04, lightning, 3.9, oldest) success
app-examples (ubuntu-20.04, app, 3.9, latest) success
app-examples (windows-2022, lightning, 3.9, latest) success
app-examples (windows-2022, lightning, 3.9, oldest) success
app-examples (windows-2022, app, 3.9, latest) success

These checks are required after the changes to src/lightning/app/components/database/server.py, src/lightning/app/components/serve/auto_scaler.py, src/lightning/app/core/work.py, src/lightning/app/utilities/proxies.py.

🟢 lightning_app: Docs
Check ID Status
make-doctest (app) success
make-html (app) success

These checks are required after the changes to src/lightning/app/components/database/server.py, src/lightning/app/components/serve/auto_scaler.py, src/lightning/app/core/work.py, src/lightning/app/utilities/proxies.py.

🟢 mypy
Check ID Status
mypy success

These checks are required after the changes to src/lightning/app/components/database/server.py, src/lightning/app/components/serve/auto_scaler.py, src/lightning/app/core/work.py, src/lightning/app/utilities/proxies.py.

🟢 install
Check ID Status
install-pkg (ubuntu-22.04, app, 3.8) success
install-pkg (ubuntu-22.04, app, 3.10) success
install-pkg (ubuntu-22.04, fabric, 3.8) success
install-pkg (ubuntu-22.04, fabric, 3.10) success
install-pkg (ubuntu-22.04, pytorch, 3.8) success
install-pkg (ubuntu-22.04, pytorch, 3.10) success
install-pkg (ubuntu-22.04, lightning, 3.8) success
install-pkg (ubuntu-22.04, lightning, 3.10) success
install-pkg (ubuntu-22.04, notset, 3.8) success
install-pkg (ubuntu-22.04, notset, 3.10) success
install-pkg (macOS-12, app, 3.8) success
install-pkg (macOS-12, app, 3.10) success
install-pkg (macOS-12, fabric, 3.8) success
install-pkg (macOS-12, fabric, 3.10) success
install-pkg (macOS-12, pytorch, 3.8) success
install-pkg (macOS-12, pytorch, 3.10) success
install-pkg (macOS-12, lightning, 3.8) success
install-pkg (macOS-12, lightning, 3.10) success
install-pkg (macOS-12, notset, 3.8) success
install-pkg (macOS-12, notset, 3.10) success
install-pkg (windows-2022, app, 3.8) success
install-pkg (windows-2022, app, 3.10) success
install-pkg (windows-2022, fabric, 3.8) success
install-pkg (windows-2022, fabric, 3.10) success
install-pkg (windows-2022, pytorch, 3.8) success
install-pkg (windows-2022, pytorch, 3.10) success
install-pkg (windows-2022, lightning, 3.8) success
install-pkg (windows-2022, lightning, 3.10) success
install-pkg (windows-2022, notset, 3.8) success
install-pkg (windows-2022, notset, 3.10) success

These checks are required after the changes to src/lightning/app/components/database/server.py, src/lightning/app/components/serve/auto_scaler.py, src/lightning/app/core/work.py, src/lightning/app/utilities/proxies.py.

🟢 link-check
Check ID Status
check-md-links / markdown-link-check success

These checks are required after the changes to src/lightning/app/CHANGELOG.md.


Thank you for your contribution! 💜

Note
This comment is automatically generated and updates for 60 minutes every 180 seconds. If you have any other questions, contact carmocca for help.

@awaelchli awaelchli changed the title WIP: Expose public and private IP in LightningWork Expose public and private IP in LightningWork Jun 2, 2023
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 !

@mergify mergify bot added the ready PRs ready to be merged label Jun 5, 2023
@awaelchli awaelchli enabled auto-merge (squash) June 6, 2023 10:42
@awaelchli awaelchli merged commit d23c772 into master Jun 6, 2023
86 checks passed
@awaelchli awaelchli deleted the feature/app-public-ip branch June 6, 2023 11:35
awaelchli added a commit that referenced this pull request Jun 7, 2023
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Borda pushed a commit that referenced this pull request Jun 7, 2023
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
lantiga pushed a commit that referenced this pull request Jun 7, 2023
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app Generic label for Lightning App package feature Is an improvement or enhancement ready PRs ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants