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

Skip r2plus1d_18 test on linux GPU Circle CI machines #3768

Merged
merged 16 commits into from
May 4, 2021

Conversation

NicolasHug
Copy link
Member

This PR temporarily skips some failing tests as suggested in #3702 (comment)

@@ -23,7 +23,7 @@
IS_PY39 = sys.version_info.major == 3 and sys.version_info.minor == 9
PY39_SEGFAULT_SKIP_MSG = "Segmentation fault with Python 3.9, see https://github.com/pytorch/vision/issues/3367"
PY39_SKIP = unittest.skipIf(IS_PY39, PY39_SEGFAULT_SKIP_MSG)

IN_CIRCLE_CI = os.getenv("CIRCLECI", 'false') == 'true'
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

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

LGTM, just a non blocking nit.

test/common_utils.py Show resolved Hide resolved
@@ -648,7 +648,7 @@ jobs:
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD -e UPLOAD_CHANNEL -e CU_VERSION "${image_name}" .circleci/unittest/linux/scripts/install.sh
- run:
name: Run tests
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/run_test.sh
command: docker run -e CIRCLECI -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/run_test.sh
Copy link
Member Author

@NicolasHug NicolasHug May 4, 2021

Choose a reason for hiding this comment

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

Since we're using docker run, we have to add that so that the docker container knows about the CIRCLECI env variable (set by CircleCI).

We do that in a bunch of places already.

A more robust version will be to maybe use the BASH_ENV variable, or to dump env into a file and source it in the container. We'll have to do that soon enough when we expand the cpu_and_gpu() to also work with CircleCI, but for now this is good enough as only the linux_gpu job needs CIRCLECI ATM

@NicolasHug
Copy link
Member Author

The test is (finally!!) properly skipped in unittest_linux_gpu so I'll merge.
Thanks for the review!

@NicolasHug NicolasHug merged commit 9e6bdba into pytorch:master May 4, 2021
@NicolasHug NicolasHug deleted the skip_test_models branch May 4, 2021 15:23
facebook-github-bot pushed a commit that referenced this pull request May 17, 2021
Reviewed By: datumbox

Differential Revision: D28473320

fbshipit-source-id: 8ecc3772e63f79343cce18e68ab5516f7e841710
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