Skip to content

reduce verbosity of prototype tests and split them into multiple steps #6587

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

Merged
merged 3 commits into from
Sep 15, 2022

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Sep 15, 2022

Running with -vvv emits one line per test / parametrization, which leads to enormous logs with very little information. They take some time to load and in some instances GH even truncates the log. That means one needs to take extra steps just to see the failing test.

This PR reduces the verbosity to a normal level. Now tests will only be shown as a single character, i.e. . for passing or F for failing, while the total percentage is still visible. If one needs to debug an issue where the CI hangs and thus it is important to see which test causes this, the course of action is to temporarily increase the verbosity on the PR rather than global for everyone.

In addition to the verbosity decrease, the PR also splits the prototype tests into three steps namely testing datasets, transforms, and models individually to make it even easier to find failing tests.

Copy link
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, let's move on to enable logs :)

Copy link
Contributor

@YosuaMichael YosuaMichael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @pmeier , this looks good! hope it can help resolve truncated logs issue!

@pmeier pmeier merged commit e6c0048 into pytorch:main Sep 15, 2022
@pmeier pmeier deleted the test-verbosity branch September 15, 2022 10:12
facebook-github-bot pushed a commit to pytorch/data that referenced this pull request Sep 15, 2022
Summary:
This PR is required since pytorch/vision#6587 has been landed and shipped to TorchVision nightly.

Pull Request resolved: #774

Reviewed By: NivekT

Differential Revision: D39542299

Pulled By: ejguan

fbshipit-source-id: 5871263867a2f906b192677bde027c99e398bcdc
facebook-github-bot pushed a commit that referenced this pull request Sep 15, 2022
…iple steps (#6587)

Summary:
* reduce verbosity of prototype tests and split them into multiple steps

* rename builtin datasets module to fit common scheme

Reviewed By: jdsgomes

Differential Revision: D39543283

fbshipit-source-id: d1eccfbf9aaef2e551259373619d7e4cb8a4d0c0
@pmeier pmeier mentioned this pull request Feb 16, 2023
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.

4 participants