-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Conversation
test/common_utils.py
Outdated
@@ -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' |
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.
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.
LGTM, just a non blocking nit.
@@ -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 |
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.
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
The test is (finally!!) properly skipped in unittest_linux_gpu so I'll merge. |
Reviewed By: datumbox Differential Revision: D28473320 fbshipit-source-id: 8ecc3772e63f79343cce18e68ab5516f7e841710
This PR temporarily skips some failing tests as suggested in #3702 (comment)