-
Notifications
You must be signed in to change notification settings - Fork 7.1k
[Nova] More comprehensive Smoke Tests for Torchvision #6803
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
Conversation
Not sure what the point is here. vision/torchvision/__init__.py Line 5 in 246de07
There is no need to import everything manually. |
@pmeier Ah thanks for the catch! I can remove all of these imports and just keep the line that prints the version. I did walk through the |
@YosuaMichael Are there any smoke tests that we can run here? I know you worked a bit on the revamping of the tests but not sure if you got to the point to split a good set of smoke tests. |
I'm not aware of any, but let's ask @NicolasHug @YosuaMichael @jdsgomes if something hides in our image and video I/O namespaces. |
Ok, thanks for the insight all! Given there are no lazy uploads, I'll make the smoke tests simply import torchvision and print the package version. |
03b4043
to
ae2c276
Compare
@osalpekar I'm not sure I understand what this file is trying to achieve, or rather why we need a file for this. Could you post where it is used or where you plan to use it? Otherwise, we can probably remove it and replace it with
which does the same. |
This will be used as we move binary build/release workflows from CircleCI to GitHub Actions. The base GitHub Actions are implemented in the |
Makes sense to have a file then. Still, I don' quite understand why we need to print the version. This call could fail in case
Do we need this PR before the workflows will be enabled? Otherwise, could you link them before we merge for review? |
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.
Thanks @osalpekar!
ae2c276
to
b15f15e
Compare
Hey @osalpekar! You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py |
Summary: * [Nova] More comprehensive Smoke Tests for Torchvision * No need to import everything since nothing is lazily uploaded Reviewed By: datumbox Differential Revision: D40851026 fbshipit-source-id: 165ee117a8d5aa33c3af746289a3f0755753e7d9
Adding more detailed smoke tests to verify nightly and release binaries. Currently, only
import torchvision
is run, and that too is disabled in some builds in CircleCI. We add this new script that imports publicly exposed modules in the torchvision package. Eventually we will run this script in the GHA workflow that builds the binaries to ensure they are healthy. This list was derived from runningsys.modules.keys()
on the pip-installed package and filtering out all non-vision modules.Would love general feedback, as well as whether we want the private modules (prefixed with
_
) to be included.cc @seemethere