Skip to content

Commit dfde23d

Browse files
guangy10facebook-github-bot
authored andcommitted
Enable flake-finder and distributed execution (pytorch#273)
Summary: Pull Request resolved: pytorch#273 As titled Reviewed By: huydhn Differential Revision: D49173802 fbshipit-source-id: 7b1314e184357ec1585aef5ca5bf54e41b947186
1 parent 4209306 commit dfde23d

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/_unittest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ jobs:
3737
# Just need to install executorch, everything else has been setup
3838
pip install .
3939
# Run pytest with coverage
40-
pytest --cov=./ --cov-report=xml
40+
pytest -n auto --cov=./ --cov-report=xml

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dependencies=[
1313
"packaging",
1414
"parameterized",
1515
"pytest",
16+
"pytest-xdist",
1617
"pyyaml",
1718
"ruamel.yaml",
1819
"sympy",

pytest.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,8 @@ addopts =
3636
kernels/test/test_case_gen.py
3737
# backends/tosa
3838
backends/tosa/test
39+
40+
# run the same tests multiple times to determine their
41+
# flakiness status. Default to 50 re-runs
42+
flake-finder = true
43+
flake-runs = 50

0 commit comments

Comments
 (0)