Commit 824bcaf
Build public API manifest tests in OSS buck only
Summary:
The Arm public API manifest / backward-compatibility feature added two unit tests (`misc/test_public_api_manifest.py`, `misc/test_validate_public_api_manifest.py`) and wired the `:public_api` / `public_api_manifest` libraries into the shared `deps` of every Arm op/pass test in `define_arm_tests`. `:public_api` is the top-level `executorch/backends/arm/__init__.py`, which eagerly imports torch, so pytest now imports it while collecting every test — and that import fails in the packaged buck build, breaking test listing for the whole Arm test suite.
Build the two manifest unit tests and those deps only in OSS (`runtime.is_oss`), where they are covered by the dedicated public-API backward-compatibility CI job. Op/pass tests no longer pull in the top-level package `__init__`.
Authored with Claude.
Reviewed By: Gasoonjia
Differential Revision: D1099184801 parent 9e23c9c commit 824bcaf
1 file changed
Lines changed: 17 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
| |||
81 | 79 | | |
82 | 80 | | |
83 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
84 | 92 | | |
85 | 93 | | |
86 | 94 | | |
| |||
116 | 124 | | |
117 | 125 | | |
118 | 126 | | |
119 | | - | |
120 | | - | |
121 | 127 | | |
122 | 128 | | |
123 | 129 | | |
| |||
129 | 135 | | |
130 | 136 | | |
131 | 137 | | |
132 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
133 | 145 | | |
0 commit comments