Skip to content
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

[FBcode->GH] [fbcode] Reduce log spam from torchvision video reader #8333

Closed
wants to merge 2 commits into from

Conversation

NicolasHug
Copy link
Member

Summary:
Sample 1/1000 to avoid log spam:
{F1365743020}

Reviewed By: dsesh

Differential Revision: D53062741

fbshipit-source-id: a808210c1dda98b77c7d88e850f607b53e8fa562

Summary:
Sample 1/1000 to avoid log spam:
{F1365743020}

Reviewed By: dsesh

Differential Revision: D53062741

fbshipit-source-id: a808210c1dda98b77c7d88e850f607b53e8fa562
Copy link

pytorch-bot bot commented Mar 19, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/8333

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 19 New Failures

As of commit 9c2bfbf with merge base 375cfdf (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@NicolasHug
Copy link
Member Author

We can't import this diff as it's breaking the CI with a compilation error. I'll close the PR and backout the diff in D58283929

@NicolasHug NicolasHug closed this Jun 7, 2024
facebook-github-bot pushed a commit that referenced this pull request Jun 7, 2024
Summary:
Original commit changeset: a808210c1dda

Original Phabricator Diff: D53062741

Unfortunately I have to backout D53062741 as it is not compiling properly on the torchvision GitHub repo (source of truth): This [this PR](#8333)  which includes the changes from D53062741 but fails with

```
  /pytorch/vision/torchvision/csrc/io/video_reader/video_reader.cpp:477:17: error: ‘ERROR’ was not declared in this scope; did you mean ‘AVERROR’?
    477 |     LOG_EVERY_N(ERROR, 1000) << "Decoder initialization has failed";
        |                 ^~~~~
  Traceback (most recent call last):
    File "/home/ec2-user/actions-runner/_work/vision/vision/test-infra/.github/scripts/run_with_env_secrets.py", line 101, in <module>
      main()
    File "/home/ec2-user/actions-runner/_work/vision/vision/test-infra/.github/scripts/run_with_env_secrets.py", line 97, in main
      run_cmd_or_die(f"docker exec -t {container_name} /exec")
    File "/home/ec2-user/actions-runner/_work/vision/vision/test-infra/.github/scripts/run_with_env_secrets.py", line 38, in run_cmd_or_die
      raise RuntimeError(f"Command {cmd} failed with exit code {exit_code}")
  RuntimeError: Command docker exec -t f02046f9ef9ce5646ae4a84fe51204d4594ecbcbcc66e4572c681290939d87c4 /exec failed with exit code 1
        |                 AVERROR
  /pytorch/vision/torchvision/csrc/io/video_reader/video_reader.cpp:477:5: error: ‘LOG_EVERY_N’ was not declared in this scope; did you mean ‘C10_LOG_EVERY_N’?
    477 |     LOG_EVERY_N(ERROR, 1000) << "Decoder initialization has failed";
        |     ^~~~~~~~~~~
        |     C10_LOG_EVERY_N
  /pytorch/vision/torchvision/csrc/io/video_reader/video_reader.cpp:510:17: error: ‘ERROR’ was not declared in this scope; did you mean ‘AVERROR’?
    510 |     LOG_EVERY_N(ERROR, 1000) << "Miss video stream";
        |                 ^~~~~
        |                 AVERROR
  /pytorch/vision/torchvision/csrc/io/video_reader/video_reader.cpp:510:5: error: ‘LOG_EVERY_N’ was not declared in this scope; did you mean ‘C10_LOG_EVERY_N’?
    510 |     LOG_EVERY_N(ERROR, 1000) << "Miss video stream";
        |     ^~~~~~~~~~~
        |     C10_LOG_EVERY_N
```

It seems that `LOG_EVERY_N` is only present internally on fbcode because of some internal transitive dependency.

Reviewed By: vmoens

Differential Revision: D58283929

fbshipit-source-id: ac5f2f389b8b12ed019cb5aaa8b331e7c89a9acd
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.

None yet

3 participants