Skip to content

Commit afcd60e

Browse files
committed
Try testing more pytest
1 parent 79744f0 commit afcd60e

File tree

1 file changed

+83
-68
lines changed

1 file changed

+83
-68
lines changed

pytest.ini

Lines changed: 83 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -8,92 +8,107 @@ addopts =
88
--capture=sys
99
# don't suppress warnings, but don't shove them all to the end either
1010
-p no:warnings
11-
# Ignore backends/arm tests you need to run examples/arm/setup.sh to install some tool to make them work
12-
# For GitHub testing this is setup/executed in the unittest-arm job see .github/workflows/pull.yml for more info.
13-
--ignore-glob=backends/arm/**/*
14-
# explicitly list out tests that are running successfully in oss
11+
12+
# === TEST DIRECTORIES TO RUN ===
13+
14+
# ci/scripts
1515
.ci/scripts/tests
16-
examples/models/test
16+
17+
# backends
18+
backends/apple/coreml/test
19+
backends/test/harness/tests
20+
backends/test/suite/tests
21+
backends/transforms
22+
backends/xnnpack/test
23+
# Ignore ARM backend - requires running examples/arm/setup.sh to install tools
24+
--ignore-glob=backends/arm/**/*
25+
# Ignore failing xnnpack tests
26+
--ignore=backends/xnnpack/test/ops/test_linear.py
27+
# Ignore backends/test root - WIP testing infra, see https://github.com/pytorch/executorch/discussions/11140
28+
--ignore=backends/test
29+
30+
# codegen
31+
codegen/test
32+
33+
# devtools
1734
devtools/
35+
# Ignore test with missing dependencies
1836
--ignore=devtools/visualization/visualization_utils_test.py
37+
1938
# examples
39+
examples/models/test
2040
examples/models/llama/tests
2141
examples/models/llama/config
2242
examples/models/llama3_2_vision/preprocess
2343
examples/models/llama3_2_vision/vision_encoder/test
2444
examples/models/llama3_2_vision/text_decoder/test
25-
# examples/models/llava/test TODO: enable this
45+
examples/models/llava/test
46+
# Ignore test requiring torchao - T200992559: Add torchao to ET as core dependency
47+
--ignore=examples/models/llama/tests/test_pre_quantization_transforms.py
48+
# Ignore test with missing dependencies
49+
--ignore=examples/models/llava/test/test_pte.py
50+
# Ignore failing llava tests (missing accelerate dependency)
51+
--ignore=examples/models/llava/test/test_llava.py
52+
2653
# exir
27-
exir/_serialize/test
28-
exir/backend/test
29-
exir/dialects/backend/test
30-
exir/dialects/edge/test
31-
exir/dialects/test
32-
exir/emit/test
33-
exir/program/test
34-
exir/tests/
35-
# executorch/export
54+
exir/
55+
# Ignore tests with missing custom_ops_generated_lib dependencies
56+
--ignore=exir/backend/test/demos/test_delegate_aten_mode.py
57+
--ignore=exir/backend/test/demos/test_xnnpack_qnnpack.py
58+
--ignore=exir/tests/test_memory_format_ops_pass_aten.py
59+
--ignore=exir/tests/test_memory_planning.py
60+
--ignore=exir/tests/test_passes.py
61+
--ignore=exir/tests/test_quantization.py
62+
--ignore=exir/tests/test_verification.py
63+
--ignore=exir/verification/test/test_verifier.py
64+
# Ignore failing tests
65+
--ignore=exir/backend/test/demos/rpc/test_rpc.py
66+
--ignore=exir/backend/test/test_backends.py
67+
--ignore=exir/backend/test/test_backends_lifted.py
68+
--ignore=exir/backend/test/test_partitioner.py
69+
--ignore=exir/operator/test/test_operator.py
70+
--ignore=exir/tests/test_common.py
71+
--ignore=exir/tests/test_op_convert.py
72+
73+
# export
3674
export/tests
3775
--ignore=export/tests/test_export_stages.py
38-
# kernels/
76+
77+
# extension
78+
extension/
79+
# Ignore tests with missing dependencies or build issues
80+
--ignore=extension/flat_tensor/test/test_serialize.py
81+
--ignore=extension/llm/custom_ops/test_preprocess_custom_ops.py
82+
--ignore=extension/llm/tokenizers/third-party/re2/python/re2_test.py
83+
--ignore=extension/llm/tokenizers/third-party/sentencepiece/python/test/sentencepiece_test.py
84+
# Ignore failing tokenizer tests
85+
--ignore=extension/llm/tokenizers/test/test_tekken_python.py
86+
87+
# kernels
3988
kernels/prim_ops/test
4089
kernels/quantized
41-
# Because this test depends on test only cpp ops lib
42-
# Will add test only cmake targets to re-enable this test
43-
# but maybe it is a bit of anti-pattern
44-
--ignore=kernels/quantized/test/test_quant_dequant_per_token.py
4590
kernels/test/test_case_gen.py
46-
# backends/test
47-
# This effort is WIP and will be enabled in CI once testing infra
48-
# is stable and signal to noise ratio is good (no irrelevant failures).
49-
# See https://github.com/pytorch/executorch/discussions/11140
50-
--ignore=backends/test
51-
backends/test/harness/tests
52-
backends/test/suite/tests
53-
# backends/xnnpack
54-
backends/xnnpack/test/ops
55-
--ignore=backends/xnnpack/test/ops/test_bmm.py
56-
--ignore=backends/xnnpack/test/ops/test_conv2d.py
57-
--ignore=backends/xnnpack/test/ops/test_linear.py
58-
--ignore=backends/xnnpack/test/ops/test_sdpa.py
59-
backends/xnnpack/test/passes
60-
backends/xnnpack/test/recipes
61-
backends/xnnpack/test/serialization
62-
# backends/apple/coreml
63-
backends/apple/coreml/test
64-
# extension/
65-
extension/llm/modules/test
66-
extension/llm/export
67-
extension/llm/custom_ops/test_sdpa_with_kv_cache.py
68-
extension/llm/custom_ops/test_update_cache.py
69-
extension/llm/custom_ops/test_quantized_sdpa.py
70-
extension/pybindings/test
71-
extension/training/pybindings/test
72-
# Runtime
91+
# Ignore test depending on test-only cpp ops lib
92+
--ignore=kernels/quantized/test/test_quant_dequant_per_token.py
93+
94+
# profiler
95+
profiler/
96+
# Ignore test with missing dependencies
97+
--ignore=profiler/test/test_profiler_e2e.py
98+
99+
# runtime
73100
runtime
74-
# Tools
75-
codegen/test
101+
102+
# test
103+
test/
104+
# Ignore tests with missing dependencies
105+
--ignore=test/end2end/test_end2end.py
106+
--ignore=test/end2end/test_temp_allocator_fix.py
107+
108+
# tools
76109
tools/cmake
77-
# test TODO: fix these tests
78-
# test/end2end/test_end2end.py
79-
--ignore=backends/xnnpack/test/ops/linear.py
80-
--ignore=backends/xnnpack/test/models/llama2_et_example.py
81-
# T200992559: Add torchao to ET as core dependency
82-
--ignore=examples/models/llama/tests/test_pre_quantization_transforms.py
83-
--ignore=exir/backend/test/demos
84-
--ignore=exir/backend/test/test_backends.py
85-
--ignore=exir/backend/test/test_backends_lifted.py
86-
--ignore=exir/backend/test/test_partitioner.py
87-
--ignore=exir/tests/test_common.py
88-
--ignore=exir/tests/test_memory_format_ops_pass_aten.py
89-
--ignore=exir/tests/test_memory_planning.py
90-
--ignore=exir/tests/test_op_convert.py
91-
--ignore=exir/tests/test_passes.py
92-
--ignore=exir/tests/test_quant_fusion_pass.py
93-
--ignore=exir/tests/test_quantization.py
94-
--ignore=exir/tests/test_verification.py
95110

96111
# run the same tests multiple times to determine their
97112
# flakiness status. Default to 50 re-runs
98113
flake-finder = true
99-
flake-runs = 50
114+
flake-runs = 50

0 commit comments

Comments
 (0)