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

[FBcode->GH] Allow all torchvision test rules to run with RE #4073

Merged
merged 2 commits into from
Jun 16, 2021

Conversation

NicolasHug
Copy link
Member

This is an import from an internal diff. In GH it mostly adds comments to the code.

…test rules are ignored in GPU CI machines

Summary:
This diff allows all torchvision test targets to run with RE, which allows the `IN_RE_WORKER` variable to be accurate and addresses https://www.internalfb.com/diff/D29105975?dst_version_fbid=579903510079850&transaction_fbid=282918386905496

Now, **all** CPU-only tests are ignored in the GPU contbuild (pytorch_vision-gpu). Previously, the CPU-only tests in files that had **no** CUDA tests were still run on GPU CI machines. Only the CPU-only tests in files that also had some CUDA tests were properly ignored.

Note that just because we allow all test rules to run with RE doesn't mean they'll always be run with RE. Namely, they'll only run with RE when invoked from the pytorch_vision-gpu contbuild. They won't run with RE when invoked with the pytorch_vision (CPU-only) contbuild.

Note 2: I had to deactivate RE for `test_image.py`. This is only temporary until nbjpeg is properly supported, see comments.

Reviewed By: fmassa

Differential Revision: D29132838

fbshipit-source-id: 206b0a635d723abf9930c6c71f4b35429a40b508
Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

Thanks!

@NicolasHug NicolasHug merged commit 562b846 into pytorch:master Jun 16, 2021
@github-actions
Copy link

Hey @NicolasHug, @fmassa!

You approved or merged this PR, but no labels were added.

@NicolasHug
Copy link
Member Author

tagging as code quality since it's mostly comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants