Skip to content

Commit 0eb4361

Browse files
authored
Try testing more pytest (#14037)
This adds 35-40 new tests (because we weren't running before). No additional net new ignores Allow based on top level directories that way new tests are enabled automatically. Explicitly ignore individual failing tests.
1 parent edc0847 commit 0eb4361

File tree

1 file changed

+86
-67
lines changed

1 file changed

+86
-67
lines changed

pytest.ini

Lines changed: 86 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -8,90 +8,109 @@ 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/xnnpack/test/ops/test_bmm.py
28+
--ignore=backends/xnnpack/test/quantizer/test_xnnpack_quantizer.py
29+
# Ignore backends/test root - WIP testing infra, see https://github.com/pytorch/executorch/discussions/11140
30+
--ignore=backends/test
31+
32+
# codegen
33+
codegen/test
34+
35+
# devtools
1736
devtools/
37+
# Ignore test with missing dependencies
1838
--ignore=devtools/visualization/visualization_utils_test.py
39+
1940
# examples
41+
examples/models/test
2042
examples/models/llama/tests
2143
examples/models/llama/config
2244
examples/models/llama3_2_vision/preprocess
2345
examples/models/llama3_2_vision/vision_encoder/test
2446
examples/models/llama3_2_vision/text_decoder/test
25-
# examples/models/llava/test TODO: enable this
47+
examples/models/llava/test
48+
# Ignore test requiring torchao - T200992559: Add torchao to ET as core dependency
49+
--ignore=examples/models/llama/tests/test_pre_quantization_transforms.py
50+
# Failing test
51+
--ignore=examples/models/llama/tests/test_ring_attention.py
52+
# Ignore test with missing dependencies
53+
--ignore=examples/models/llava/test/test_pte.py
54+
# Ignore failing llava tests (missing accelerate dependency)
55+
--ignore=examples/models/llava/test/test_llava.py
56+
2657
# 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
58+
exir/
59+
# Ignore tests with missing custom_ops_generated_lib dependencies
60+
--ignore=exir/backend/test/demos/test_delegate_aten_mode.py
61+
--ignore=exir/backend/test/demos/test_xnnpack_qnnpack.py
62+
--ignore=exir/tests/test_memory_format_ops_pass_aten.py
63+
--ignore=exir/tests/test_memory_planning.py
64+
--ignore=exir/tests/test_passes.py
65+
--ignore=exir/tests/test_quantization.py
66+
--ignore=exir/tests/test_verification.py
67+
--ignore=exir/verification/test/test_verifier.py
68+
# Ignore failing tests
69+
--ignore=exir/backend/test/demos/rpc/test_rpc.py
70+
--ignore=exir/backend/test/test_backends.py
71+
--ignore=exir/backend/test/test_backends_lifted.py
72+
--ignore=exir/backend/test/test_partitioner.py
73+
--ignore=exir/operator/test/test_operator.py
74+
--ignore=exir/tests/test_common.py
75+
--ignore=exir/tests/test_op_convert.py
76+
77+
# export
3678
export/tests
3779
--ignore=export/tests/test_export_stages.py
38-
# kernels/
80+
81+
# extension
82+
extension/
83+
# Ignore tests with missing dependencies or build issues
84+
--ignore=extension/flat_tensor/test/test_serialize.py
85+
--ignore=extension/llm/custom_ops/test_preprocess_custom_ops.py
86+
--ignore=extension/llm/tokenizers/third-party/re2/python/re2_test.py
87+
--ignore=extension/llm/tokenizers/third-party/sentencepiece/python/test/sentencepiece_test.py
88+
# Ignore failing tokenizer tests
89+
--ignore=extension/llm/tokenizers/test/test_tekken_python.py
90+
91+
# kernels
3992
kernels/prim_ops/test
4093
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
4594
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
95+
# Ignore test depending on test-only cpp ops lib
96+
--ignore=kernels/quantized/test/test_quant_dequant_per_token.py
97+
98+
# profiler
99+
profiler/
100+
# Ignore test with missing dependencies
101+
--ignore=profiler/test/test_profiler_e2e.py
102+
103+
# runtime
73104
runtime
74-
# Tools
75-
codegen/test
105+
106+
# test
107+
test/
108+
# Ignore tests with missing dependencies
109+
--ignore=test/end2end/test_end2end.py
110+
--ignore=test/end2end/test_temp_allocator_fix.py
111+
112+
# tools
76113
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
95114

96115
# run the same tests multiple times to determine their
97116
# flakiness status. Default to 50 re-runs

0 commit comments

Comments
 (0)