-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 TPU tests on master builds #15349
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0927f95
Fix TPU tests on master
carmocca 8d52f59
Fix comment
carmocca d2fb2c1
Echo the test logs
carmocca 7f31dee
Merge branch 'master' into ci/tpu-amster
carmocca 057ad64
Merge branch 'master' into ci/tpu-amster
Borda afc4d9f
Merge branch 'master' into ci/tpu-amster
carmocca File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I stumbled upon something interesting regarding these two lines when I tried setting up a machine on Colab to run my TPU tests.
When you run
PACKAGE_NAME=lite pip install -e .[dev]
, it will write_PACKAGE_NAME = "lite"
insetup.py
. This is done by these quite surprising lines of code: https://github.com/Lightning-AI/lightning/blob/master/setup.py#L72-L78When you run
PACKAGE_NAME=pytorch pip install -e .[dev]
it installs once againlightning_lite
because thePACKAGE_NAME
variable is simply ignored.You can see it in the logs of the run on the
master
branch:pytorch_lightning
does not appear in the installed libraries that are listed withpip list
: https://github.com/Lightning-AI/lightning/actions/runs/3375739365/jobs/5602668694#step:10:196When running
PACKAGE_NAME=lite pip install .[dev]
without the-e
option, it does not override the code insetup.py
, so I could successfully set up the libraries like this.Mysteriously, the tests that require
pytorch_lightning
run successfully, so it must be installed somehow. I presumed that it may come pre-installed in the docker image, but I couldn't deduce it from the commands given on the docker hub page.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.
Yes, and I think it is rightthat the next env. variable is ignored because aside from the edit of
setup.py
also,MANIFEST.in
is updated...TLDR, I think we can drop -e from all CI 🦦
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.
Opened #15489 and #15490. Also related to #15474