From 99e8b79da2868575fb2a57cd559ba40703f72307 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Mon, 11 Dec 2023 15:46:12 +0000 Subject: [PATCH 1/4] Explicitly ignore all video tests --- .github/scripts/unittest.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/scripts/unittest.sh b/.github/scripts/unittest.sh index 7f2b2100389..73f9488a396 100755 --- a/.github/scripts/unittest.sh +++ b/.github/scripts/unittest.sh @@ -12,4 +12,5 @@ pip install --progress-bar=off pytest pytest-mock pytest-cov expecttest echo '::endgroup::' python test/smoke_test.py -pytest --junit-xml="${RUNNER_TEST_RESULTS_DIR}/test-results.xml" -v --durations=25 + +pytest --ignore-glob="*test_video*" --junit-xml="${RUNNER_TEST_RESULTS_DIR}/test-results.xml" -v --durations=25 From bb15907e9b9034e7f1bfe6bce691bf2d755773d4 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Mon, 11 Dec 2023 16:50:05 +0000 Subject: [PATCH 2/4] Add comment --- .github/scripts/unittest.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/scripts/unittest.sh b/.github/scripts/unittest.sh index 73f9488a396..fa7e742504c 100755 --- a/.github/scripts/unittest.sh +++ b/.github/scripts/unittest.sh @@ -13,4 +13,5 @@ echo '::endgroup::' python test/smoke_test.py +# We explicitly ignore the video tests until we resolve https://github.com/pytorch/vision/issues/8162 pytest --ignore-glob="*test_video*" --junit-xml="${RUNNER_TEST_RESULTS_DIR}/test-results.xml" -v --durations=25 From ad8d410ae72776dcdade42bafe44cba65f538b27 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Tue, 12 Dec 2023 08:16:43 +0000 Subject: [PATCH 3/4] Don't install pyav --- .github/scripts/setup-env.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/scripts/setup-env.sh b/.github/scripts/setup-env.sh index a4f113c367f..978295a90ed 100755 --- a/.github/scripts/setup-env.sh +++ b/.github/scripts/setup-env.sh @@ -46,11 +46,6 @@ conda activate ci conda install --quiet --yes libjpeg-turbo -c pytorch pip install --progress-bar=off --upgrade setuptools -# See https://github.com/pytorch/vision/issues/6790 -if [[ "${PYTHON_VERSION}" != "3.11" ]]; then - pip install --progress-bar=off av!=10.0.0 -fi - echo '::endgroup::' if [[ "${OS_TYPE}" == windows && "${GPU_ARCH_TYPE}" == cuda ]]; then From ad55eb8ed09654f26deef15b8adc77ba4f5665b4 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Tue, 12 Dec 2023 08:53:04 +0000 Subject: [PATCH 4/4] Put pyav back --- .github/scripts/setup-env.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/scripts/setup-env.sh b/.github/scripts/setup-env.sh index 978295a90ed..a4f113c367f 100755 --- a/.github/scripts/setup-env.sh +++ b/.github/scripts/setup-env.sh @@ -46,6 +46,11 @@ conda activate ci conda install --quiet --yes libjpeg-turbo -c pytorch pip install --progress-bar=off --upgrade setuptools +# See https://github.com/pytorch/vision/issues/6790 +if [[ "${PYTHON_VERSION}" != "3.11" ]]; then + pip install --progress-bar=off av!=10.0.0 +fi + echo '::endgroup::' if [[ "${OS_TYPE}" == windows && "${GPU_ARCH_TYPE}" == cuda ]]; then