Skip to content

[DO NOT MERGE]test API usage decorator #5436

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

Closed
wants to merge 2 commits into from

Conversation

kazhang
Copy link
Contributor

@kazhang kazhang commented Feb 16, 2022

No description provided.

@facebook-github-bot
Copy link

facebook-github-bot commented Feb 16, 2022

💊 CI failures summary and remediations

As of commit 146a297 (more details on the Dr. CI page):


  • 8/8 failures introduced in this PR

🕵️ 4 new failures recognized by patterns

The following CI failures do not appear to be due to upstream breakages:

See CircleCI build unittest_linux_cpu_py3.7 (1/4)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun)

/root/project/torchvision/io/video.py:406: Runt...log: [mov,mp4,m4a,3gp,3g2,mj2] moov atom not found
test/test_image.py::test_decode_png[L-ImageReadMode.GRAY-palette_pytorch.png]
test/test_image.py::test_decode_png[RGB-ImageReadMode.RGB-palette_pytorch.png]
  /root/project/env/lib/python3.7/site-packages/PIL/Image.py:946: UserWarning: Palette images with Transparency expressed in bytes should be converted to RGBA images
    "Palette images with Transparency expressed in bytes should be "

test/test_io.py::TestVideo::test_probe_video_from_memory
  /root/project/torchvision/io/_video_opt.py:423: UserWarning: The given buffer is not writable, and PyTorch does not support non-writable tensors. This means you can write to the underlying (supposedly non-writable) buffer using the tensor. You may want to copy the buffer to protect its data or make it writable before converting it to a tensor. This type of warning will be suppressed for the rest of this program. (Triggered internally at  /opt/conda/conda-bld/pytorch_1644998903917/work/torch/csrc/utils/tensor_new.cpp:1007.)
    video_data = torch.frombuffer(video_data, dtype=torch.uint8)

test/test_io.py::TestVideo::test_read_video_timestamps_corrupted_file
  /root/project/torchvision/io/video.py:406: RuntimeWarning: Failed to open container for /tmp/tmpo2773005.mp4; Caught error: [Errno 1094995529] Invalid data found when processing input: '/tmp/tmpo2773005.mp4'; last error log: [mov,mp4,m4a,3gp,3g2,mj2] moov atom not found
    warnings.warn(msg, RuntimeWarning)

test/test_models.py::test_memory_efficient_densenet[densenet121]
test/test_models.py::test_memory_efficient_densenet[densenet169]
test/test_models.py::test_memory_efficient_densenet[densenet201]
test/test_models.py::test_memory_efficient_densenet[densenet161]
  /root/project/env/lib/python3.7/site-packages/torch/autocast_mode.py:162: UserWarning: User provided device_type of 'cuda', but CUDA is not available. Disabling
    warnings.warn('User provided device_type of \'cuda\', but CUDA is not available. Disabling')

test/test_models.py::test_inception_v3_eval

See CircleCI build unittest_linux_cpu_py3.9 (2/4)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun)

/root/project/torchvision/io/video.py:406: Runt...log: [mov,mp4,m4a,3gp,3g2,mj2] moov atom not found
test/test_datasets_video_utils.py::TestVideo::test_video_clips_custom_fps
  /root/project/torchvision/datasets/video_utils.py:217: UserWarning: There aren't enough frames in the current video to get a clip for the given clip length and frames between clips. The video (and potentially others) will be skipped.
    warnings.warn(

test/test_image.py::test_decode_png[L-ImageReadMode.GRAY-palette_pytorch.png]
test/test_image.py::test_decode_png[RGB-ImageReadMode.RGB-palette_pytorch.png]
  /root/project/env/lib/python3.9/site-packages/PIL/Image.py:945: UserWarning: Palette images with Transparency expressed in bytes should be converted to RGBA images
    warnings.warn(

test/test_io.py::TestVideo::test_read_video_timestamps_corrupted_file
  /root/project/torchvision/io/video.py:406: RuntimeWarning: Failed to open container for /tmp/tmp76vj6q4k.mp4; Caught error: [Errno 1094995529] Invalid data found when processing input: '/tmp/tmp76vj6q4k.mp4'; last error log: [mov,mp4,m4a,3gp,3g2,mj2] moov atom not found
    warnings.warn(msg, RuntimeWarning)

test/test_models.py::test_memory_efficient_densenet[densenet121]
test/test_models.py::test_memory_efficient_densenet[densenet169]
test/test_models.py::test_memory_efficient_densenet[densenet201]
test/test_models.py::test_memory_efficient_densenet[densenet161]
  /root/project/env/lib/python3.9/site-packages/torch/autocast_mode.py:162: UserWarning: User provided device_type of 'cuda', but CUDA is not available. Disabling
    warnings.warn('User provided device_type of \'cuda\', but CUDA is not available. Disabling')

test/test_models.py::test_inception_v3_eval

See CircleCI build cmake_windows_cpu (3/4)

Step: "set -ex
source packaging/windows/internal/vc_install_helper.sh
packaging/build_cmake.sh
" (full log | diagnosis details | 🔁 rerun)

warnings.warn(f'Error checking compiler version for {compiler}: {error}')
Installing chardetect.exe script to C:\tools\miniconda3\Scripts

Using c:\tools\miniconda3\lib\site-packages
Searching for idna==2.8
Best match: idna 2.8
Adding idna 2.8 to easy-install.pth file

Using c:\tools\miniconda3\lib\site-packages
Finished processing dependencies for torchvision==0.13.0.dev20220216
C:\tools\miniconda3\lib\site-packages\torch\utils\cpp_extension.py:322: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified
  warnings.warn(f'Error checking compiler version for {compiler}: {error}')
+ pushd test/tracing/frcnn
~/project/test/tracing/frcnn ~/project
+ mkdir build
+ python trace_model.py
Downloading: "https://download.pytorch.org/models/resnet50-0676ba61.pth" to C:\Users\circleci/.cache\torch\hub\checkpoints\resnet50-0676ba61.pth

  0%|          | 0.00/97.8M [00:00<?, ?B/s]
  1%|          | 656k/97.8M [00:00<00:15, 6.37MB/s]
  9%|9         | 9.29M/97.8M [00:00<00:01, 53.2MB/s]
 31%|###       | 30.0M/97.8M [00:00<00:00, 121MB/s] 
 52%|#####1    | 50.4M/97.8M [00:00<00:00, 152MB/s]
 72%|#######1  | 70.3M/97.8M [00:00<00:00, 165MB/s]
 88%|########7 | 85.9M/97.8M [00:00<00:00, 146MB/s]
100%|##########| 97.8M/97.8M [00:00<00:00, 141MB/s]
Traceback (most recent call last):
  File "C:\tools\miniconda3\lib\site-packages\torch\jit\_recursive.py", line 152, in infer_type
    ann_to_type = torch.jit.annotations.ann_to_type(class_annotations[name], fake_range())
  File "C:\tools\miniconda3\lib\site-packages\torch\jit\annotations.py", line 402, in ann_to_type

See CircleCI build unittest_linux_gpu_py3.8 (4/4)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun)

test/test_utils.py::test_flow_to_image_errors[i...type torch.float] �[33mSKIPPED�[0m�[31m [ 99%]�[0m
test/test_utils.py::test_draw_keypoints_colored[red] �[33mSKIPPED�[0m (We're ...)�[31m [ 99%]�[0m

test/test_utils.py::test_draw_keypoints_colored[#FF00FF] �[33mSKIPPED�[0m (We...)�[31m [ 99%]�[0m

test/test_utils.py::test_draw_keypoints_colored[colors2] �[33mSKIPPED�[0m (We...)�[31m [ 99%]�[0m

test/test_utils.py::test_draw_keypoints_errors �[33mSKIPPED�[0m (We're in a C...)�[31m [ 99%]�[0m

test/test_utils.py::test_flow_to_image[True] �[33mSKIPPED�[0m (We're in a Cir...)�[31m [ 99%]�[0m

test/test_utils.py::test_flow_to_image[False] �[33mSKIPPED�[0m (We're in a Ci...)�[31m [ 99%]�[0m

test/test_utils.py::test_flow_to_image_errors[input_flow0-Input flow should have shape] �[33mSKIPPED�[0m�[31m [ 99%]�[0m

test/test_utils.py::test_flow_to_image_errors[input_flow1-Input flow should have shape] �[33mSKIPPED�[0m�[31m [ 99%]�[0m

test/test_utils.py::test_flow_to_image_errors[input_flow2-Input flow should have shape] �[33mSKIPPED�[0m�[31m [ 99%]�[0m

test/test_utils.py::test_flow_to_image_errors[input_flow3-Input flow should have shape] �[33mSKIPPED�[0m�[31m [ 99%]�[0m

test/test_utils.py::test_flow_to_image_errors[input_flow4-Flow should be of dtype torch.float] �[33mSKIPPED�[0m�[31m [ 99%]�[0m

test/test_video_gpu_decoder.py::TestVideoGPUDecoder::test_frame_reading[RATRACE_wave_f_nm_np1_fr_goo_37.avi] �[33mSKIPPED�[0m�[31m [ 99%]�[0m

test/test_video_gpu_decoder.py::TestVideoGPUDecoder::test_frame_reading[TrumanShow_wave_f_nm_np1_fr_med_26.avi] �[33mSKIPPED�[0m�[31m [ 99%]�[0m

test/test_video_gpu_decoder.py::TestVideoGPUDecoder::test_frame_reading[v_SoccerJuggling_g23_c01.avi] �[33mSKIPPED�[0m�[31m [ 99%]�[0m

test/test_video_gpu_decoder.py::TestVideoGPUDecoder::test_frame_reading[v_SoccerJuggling_g24_c01.avi] �[33mSKIPPED�[0m�[31m [ 99%]�[0m

test/test_video_gpu_decoder.py::TestVideoGPUDecoder::test_frame_reading[R6llTwEh07w.mp4] �[33mSKIPPED�[0m�[31m [ 99%]�[0m

test/test_video_gpu_decoder.py::TestVideoGPUDecoder::test_frame_reading[SOX5yA1l24A.mp4] �[33mSKIPPED�[0m�[31m [ 99%]�[0m

test/test_video_gpu_decoder.py::TestVideoGPUDecoder::test_frame_reading[WUzgd7C1pWA.mp4] �[33mSKIPPED�[0m�[31m [ 99%]�[0m

test/test_video_gpu_decoder.py::TestVideoGPUDecoder::test_seek_reading[/home/circleci/project/test/assets/videos/v_SoccerJuggling_g23_c01.avi-8.0-True] �[33mSKIPPED�[0m�[31m [ 99%]�[0m

test/test_video_gpu_decoder.py::TestVideoGPUDecoder::test_seek_reading[/home/circleci/project/test/assets/videos/v_SoccerJuggling_g23_c01.avi-8.0-False] �[33mSKIPPED�[0m�[31m [ 99%]�[0m

test/test_video_gpu_decoder.py::TestVideoGPUDecoder::test_seek_reading[/home/circleci/project/test/assets/videos/v_SoccerJuggling_g24_c01.avi-8.0-True] �[33mSKIPPED�[0m�[31m [ 99%]�[0m


4 failures not recognized by patterns:

Job Step Action
CircleCI cmake_linux_gpu Build torchvision C++ distribution and test 🔁 rerun
CircleCI cmake_linux_cpu packaging/build_cmake.sh 🔁 rerun
CircleCI unittest_linux_cpu_py3.8 Run tests 🔁 rerun
CircleCI cmake_macos_cpu curl -o conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
sh conda.sh -b
source $HOME/miniconda3/bin/activate
conda install -yq conda-build cmake
packaging/build_cmake.sh
🔁 rerun

This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@kazhang kazhang force-pushed the test-log-api-with-decorator branch from 65240e4 to b78e5d6 Compare February 16, 2022 21:07
@datumbox
Copy link
Contributor

Thanks for reopening the PR to investigate @kazhang. I got input from the JIT team and advised against using the approach. Given that this PR proves the approach has issues, I think we will avoid it.

@datumbox datumbox closed this Feb 18, 2022
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