Skip to content

[BE] move more unittest.main() to run_tests()#50923

Closed
walterddr wants to merge 2 commits intopytorch:masterfrom
walterddr:be_move_unittest_to_run_tests
Closed

[BE] move more unittest.main() to run_tests()#50923
walterddr wants to merge 2 commits intopytorch:masterfrom
walterddr:be_move_unittest_to_run_tests

Conversation

@walterddr
Copy link
Copy Markdown
Contributor

@walterddr walterddr commented Jan 22, 2021

Relate to #50483.

Everything except ONNX, detectron and release notes tests are moved to use common_utils.run_tests() to ensure CI reports XML correctly.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

facebook-github-bot commented Jan 22, 2021

💊 CI failures summary and remediations

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


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

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

@walterddr walterddr marked this pull request as ready for review January 22, 2021 16:53
@walterddr walterddr changed the title move more unittest.main() to run_tests() [BE] move more unittest.main() to run_tests() Jan 22, 2021
@walterddr walterddr force-pushed the be_move_unittest_to_run_tests branch from f7a70a5 to e6d96fb Compare January 22, 2021 17:09
facebook-github-bot pushed a commit that referenced this pull request Jan 22, 2021
Summary:
Cant think of a reason not .gitignore test-reports folder. this can be helpful when
1. running `python test/test*.py` from github root directory since it creates the folder at root.
2. CI test report path generated by `torch/testing/_internal/common_utils.py` creates the folder in the same path where the test python file locates.

Creating a PR to make sure CI is happy. this is also needed by #50923

Pull Request resolved: #50952

Reviewed By: samestep

Differential Revision: D26022436

Pulled By: walterddr

fbshipit-source-id: 83e6296de802bd1754b802b8c70502c317f078c9
@walterddr walterddr force-pushed the be_move_unittest_to_run_tests branch from e6d96fb to c3339f5 Compare January 22, 2021 22:00
Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@walterddr has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 23, 2021

Codecov Report

Merging #50923 (c3339f5) into master (ca3ce77) will decrease coverage by 0.12%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #50923      +/-   ##
==========================================
- Coverage   80.74%   80.61%   -0.13%     
==========================================
  Files        1920     1920              
  Lines      209749   209749              
==========================================
- Hits       169369   169097     -272     
- Misses      40380    40652     +272     

@walterddr walterddr requested a review from a team January 24, 2021 00:38
Copy link
Copy Markdown
Contributor

@samestep samestep left a comment

Choose a reason for hiding this comment

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

Awesome, thank you!

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@walterddr merged this pull request in 806010b.

laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Cant think of a reason not .gitignore test-reports folder. this can be helpful when
1. running `python test/test*.py` from github root directory since it creates the folder at root.
2. CI test report path generated by `torch/testing/_internal/common_utils.py` creates the folder in the same path where the test python file locates.

Creating a PR to make sure CI is happy. this is also needed by pytorch#50923

Pull Request resolved: pytorch#50952

Reviewed By: samestep

Differential Revision: D26022436

Pulled By: walterddr

fbshipit-source-id: 83e6296de802bd1754b802b8c70502c317f078c9
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Relate to pytorch#50483.

Everything except ONNX, detectron and release notes tests are moved to use common_utils.run_tests() to ensure CI reports XML correctly.

Pull Request resolved: pytorch#50923

Reviewed By: samestep

Differential Revision: D26027621

Pulled By: walterddr

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