Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Remove skipped tests from collection in internal environment
Prevent internal CI failures from skipped tests by excluding skipped tests from collection in internal environment.
TorchCodec tests were flaky / broken internal because:
pytest.skip()calls, so they were collected but then skipped during executionChanges Made
1. Added
@needs_ffmpeg_climarker to tests that need ffmpeg-clitest_ops.py::TestVideoDecoderOps::test_seek_mode_custom_frame_mappingstest_ops.py::TestVideoDecoderOps:: test_seek_mode_custom_frame_mappings_failstest_encoders.py::TestAudioEncoder::test_against_clitest_encoders.py::TestAudioEncoder::test_video_encoder_against_ffmpeg_clitest_encoders.py::TestAudioEncoder::test_codec_parameter_utilizedtest_encoders.py::TestAudioEncoder::test_codec_spec_vs_impl_equivalencetest_encoders.py::TestAudioEncoder::test_extra_options_utilizedtest_decoders.py::TestVideoDecoder::test_custom_frame_mappings_json_and_bytestest_decoders.py::TestVideoDecoder::test_custom_frame_mappings_init_fails2. Converted runtime skips to collection-time skips
Replaced runtime
pytest.skip()calls withpytest.param(..., marks=pytest.mark.skipif(...))for:3. Updated
conftest.pyto exclude tests internallyModified
pytest_collection_modifyitemshook to exclude tests from collection when running internally if they have:@needs_ffmpeg_climarker@pytest.mark.skip()decorator@pytest.mark.skipif()decorator