Skip to content

Commit e528e68

Browse files
Sol Zitterfacebook-github-bot
Sol Zitter
authored andcommitted
Updating runmode of flakily timing out test targets under executorch opensource targets
Summary: Manual split from D72997895 to handle these open source targets separately topic: not user facing Reviewed By: markisaa Differential Revision: D72977252
1 parent 092da57 commit e528e68

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

backends/xnnpack/test/TARGETS

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@fbsource//tools/target_determinator/macros:fbcode_ci_helpers.bzl", "fbcode_ci")
2+
load("@fbsource//tools/target_determinator/macros:ci.bzl", "ci")
13
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
24
load(":targets.bzl", "define_common_targets")
35

@@ -33,6 +35,7 @@ runtime.python_test(
3335
]) + [
3436
"test_xnnpack_utils.py",
3537
],
38+
labels = ci.labels(fbcode_ci.use_opt_instead_of_dev()),
3639
deps = [
3740
"//executorch/backends/xnnpack/partition:xnnpack_partitioner",
3841
"//executorch/backends/xnnpack/quantizer:xnnpack_quantizer",
@@ -84,10 +87,10 @@ runtime.python_test(
8487
"quantizer/*.py",
8588
]),
8689
deps = [
90+
"//caffe2:torch",
8791
"//executorch/backends/xnnpack:xnnpack_preprocess",
8892
"//executorch/backends/xnnpack/quantizer:xnnpack_quantizer",
8993
"//pytorch/ao:torchao", # @manual
90-
"//caffe2:torch",
9194
],
9295
external_deps = [
9396
"libtorch",

exir/tests/TARGETS

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@fbsource//tools/target_determinator/macros:fbcode_ci_helpers.bzl", "fbcode_ci")
2+
load("@fbsource//tools/target_determinator/macros:ci.bzl", "ci")
13
load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library")
24
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
35
load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
@@ -93,12 +95,12 @@ python_unittest(
9395
],
9496
deps = [
9597
"//caffe2:torch",
98+
"//executorch/backends/xnnpack/partition:xnnpack_partitioner",
9699
"//executorch/exir:lib",
97100
"//executorch/exir/backend:backend_api",
98101
"//executorch/exir/backend/test:backend_with_compiler_demo",
99102
"//executorch/exir/backend/test:op_partitioner_demo",
100103
"//executorch/exir/serde:serialize",
101-
"//executorch/backends/xnnpack/partition:xnnpack_partitioner",
102104
],
103105
)
104106

@@ -197,6 +199,9 @@ python_unittest(
197199
":models",
198200
"//caffe2:torch",
199201
"//caffe2/functorch:functorch_src",
202+
"//executorch/backends/xnnpack/partition:xnnpack_partitioner",
203+
"//executorch/backends/xnnpack/quantizer:xnnpack_quantizer",
204+
"//executorch/backends/xnnpack/quantizer:xnnpack_quantizer_utils",
200205
"//executorch/exir:graph_module",
201206
"//executorch/exir:lib",
202207
"//executorch/exir:memory",
@@ -222,9 +227,6 @@ python_unittest(
222227
"//executorch/exir/passes:sym_to_tensor_pass",
223228
"//executorch/exir/program:program",
224229
"//executorch/extension/pybindings:portable_lib", # @manual
225-
"//executorch/backends/xnnpack/partition:xnnpack_partitioner",
226-
"//executorch/backends/xnnpack/quantizer:xnnpack_quantizer",
227-
"//executorch/backends/xnnpack/quantizer:xnnpack_quantizer_utils",
228230
],
229231
)
230232

@@ -312,10 +314,10 @@ python_unittest(
312314
deps = [
313315
"fbsource//third-party/pypi/expecttest:expecttest", # @manual
314316
"//caffe2:torch",
317+
"//executorch/backends/xnnpack/quantizer:xnnpack_quantizer",
315318
"//executorch/exir:lib",
316319
"//executorch/exir/passes:quant_fusion_pass",
317320
"//executorch/exir/passes:spec_prop_pass",
318-
"//executorch/backends/xnnpack/quantizer:xnnpack_quantizer",
319321
"//pytorch/vision:torchvision",
320322
],
321323
)
@@ -391,6 +393,7 @@ python_unittest(
391393
srcs = [
392394
"test_memory_format_ops_pass.py",
393395
],
396+
labels = ci.labels(fbcode_ci.use_opt_instead_of_dev()),
394397
deps = [
395398
":test_memory_format_ops_pass_utils",
396399
"//caffe2:torch",
@@ -475,8 +478,8 @@ python_unittest(
475478
],
476479
deps = [
477480
"//caffe2:torch",
481+
"//executorch/backends/xnnpack/quantizer:xnnpack_quantizer",
478482
"//executorch/exir:lib",
479483
"//executorch/exir/passes:quantize_io_pass",
480-
"//executorch/backends/xnnpack/quantizer:xnnpack_quantizer",
481484
],
482485
)

0 commit comments

Comments
 (0)