From d149374ffec03e0e974418cdeabc90605d853661 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Wed, 2 Apr 2025 10:41:24 +0100 Subject: [PATCH] Remove manual_smoke_test.py --- .github/workflows/linux_cuda_wheel.yaml | 3 --- .github/workflows/linux_wheel.yaml | 3 --- .github/workflows/macos_wheel.yaml | 4 ---- test/decoders/manual_smoke_test.py | 20 -------------------- 4 files changed, 30 deletions(-) delete mode 100644 test/decoders/manual_smoke_test.py diff --git a/.github/workflows/linux_cuda_wheel.yaml b/.github/workflows/linux_cuda_wheel.yaml index 53b5bfc20..a3abf1c5a 100644 --- a/.github/workflows/linux_cuda_wheel.yaml +++ b/.github/workflows/linux_cuda_wheel.yaml @@ -135,9 +135,6 @@ jobs: # aren't present there. rm -r src/ ls - - name: Smoke test - run: | - ${CONDA_RUN} python test/decoders/manual_smoke_test.py - name: Run Python tests run: | ${CONDA_RUN} FAIL_WITHOUT_CUDA=1 pytest test -v --tb=short diff --git a/.github/workflows/linux_wheel.yaml b/.github/workflows/linux_wheel.yaml index cd53219f7..c20d348c9 100644 --- a/.github/workflows/linux_wheel.yaml +++ b/.github/workflows/linux_wheel.yaml @@ -122,9 +122,6 @@ jobs: # aren't present there. rm -r src/ ls - - name: Smoke test - run: | - python -X faulthandler test/decoders/manual_smoke_test.py - name: Run Python tests run: | pytest test -vvv diff --git a/.github/workflows/macos_wheel.yaml b/.github/workflows/macos_wheel.yaml index d9472765c..64448a0fa 100644 --- a/.github/workflows/macos_wheel.yaml +++ b/.github/workflows/macos_wheel.yaml @@ -121,10 +121,6 @@ jobs: rm -r src/ ls -lh - - name: Smoke test - run: | - python -X faulthandler test/decoders/manual_smoke_test.py - - name: Run Python tests run: | pytest test -vvv diff --git a/test/decoders/manual_smoke_test.py b/test/decoders/manual_smoke_test.py deleted file mode 100644 index 537015208..000000000 --- a/test/decoders/manual_smoke_test.py +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# All rights reserved. -# -# This source code is licensed under the BSD-style license found in the -# LICENSE file in the root directory of this source tree. - -from pathlib import Path - -import torchcodec -from torchvision.io.image import write_png - -print(f"{torchcodec.__version__ = }") - -decoder = torchcodec._core.create_from_file( - str(Path(__file__).parent / "../resources/nasa_13013.mp4") -) -torchcodec._core.scan_all_streams_to_update_metadata(decoder) -torchcodec._core.add_video_stream(decoder, stream_index=3) -frame, _, _ = torchcodec._core.get_frame_at_index(decoder, frame_index=180) -write_png(frame, "frame180.png")