drop TARGETS files redundant with fbcode_target-wrapped BUCK siblings - #21408
drop TARGETS files redundant with fbcode_target-wrapped BUCK siblings#21408bigfootjon wants to merge 1 commit into
Conversation
Summary:
Chunk 10 of fbcode/executorch TARGETS->BUCK migration. 18 directories
under examples/ where TARGETS defines targets like `python_library(name=X)`
and the sister BUCK defines the same targets via the fbcode_target wrapper:
`fbcode_target(_kind = python_library, name = X)`. Both forms produce the
same logical target in fbcode; the wrapper just adds OSS-migration metadata.
Confirmed every name= in TARGETS is also in BUCK. Deleting TARGETS lets
fbcode fall through to BUCK (via name_v2 = TARGETS,BUCK) with no change in
target inventory.
Directories migrated:
- examples/models
- examples/models/{codegen,deeplab_v3,edsr,emformer_rnnt,glm,granite,
inception_v3,mobilebert,mobilenet_v2,smollm2,smollm3,smolvlm,
torchvision_vit,toy_model,wav2letter}
- examples/portable/scripts
- examples/xnnpack/quantization
Reviewed By: mzlee
Differential Revision: D109082050
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/21408
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New Failures, 2 Unrelated FailuresAs of commit 39cd078 with merge base 55d693b ( NEW FAILURES - The following jobs have failed:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@bigfootjon has exported this pull request. If you are a Meta employee, you can view the originating Diff in D109082050. |
This PR needs a
|
There was a problem hiding this comment.
Pull request overview
Continues the fbcode TARGETS→BUCK migration under examples/ by removing redundant TARGETS files where equivalent targets are already defined via fbcode_target(...) in sibling BUCK files, so fbcode can fall through to BUCK without changing the intended target set.
Changes:
- Delete redundant
TARGETSfiles across the listedexamples/directories soname_v2 = TARGETS,BUCKresolves viaBUCK. - Adjust
examples/models/BUCKto drop references towhisperandyolo26from themodelspython_library deps list.
Reviewed changes
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| examples/models/BUCK | Removes whisper/yolo26 deps from //executorch/examples/models:models. |
| examples/models/TARGETS (deleted) | Remove redundant TARGETS to fall through to BUCK. |
| examples/models/codegen/TARGETS (deleted) | Remove redundant TARGETS to fall through to BUCK. |
| examples/models/deeplab_v3/TARGETS (deleted) | Remove redundant TARGETS to fall through to BUCK. |
| examples/models/edsr/TARGETS (deleted) | Remove redundant TARGETS to fall through to BUCK. |
| examples/models/emformer_rnnt/TARGETS (deleted) | Remove redundant TARGETS to fall through to BUCK. |
| examples/models/glm/TARGETS (deleted) | Remove redundant TARGETS to fall through to BUCK. |
| examples/models/granite/TARGETS (deleted) | Remove redundant TARGETS to fall through to BUCK. |
| examples/models/inception_v3/TARGETS (deleted) | Remove redundant TARGETS to fall through to BUCK. |
| examples/models/mobilebert/TARGETS (deleted) | Remove redundant TARGETS to fall through to BUCK. |
| examples/models/mobilenet_v2/TARGETS (deleted) | Remove redundant TARGETS to fall through to BUCK. |
| examples/models/smollm2/TARGETS (deleted) | Remove redundant TARGETS to fall through to BUCK. |
| examples/models/smollm3/TARGETS (deleted) | Remove redundant TARGETS to fall through to BUCK. |
| examples/models/smolvlm/TARGETS (deleted) | Remove redundant TARGETS to fall through to BUCK. |
| examples/models/torchvision_vit/TARGETS (deleted) | Remove redundant TARGETS to fall through to BUCK. |
| examples/models/toy_model/TARGETS (deleted) | Remove redundant TARGETS to fall through to BUCK. |
| examples/models/wav2letter/TARGETS (deleted) | Remove redundant TARGETS to fall through to BUCK. |
| examples/portable/scripts/TARGETS (deleted) | Remove redundant TARGETS to fall through to BUCK. |
| examples/xnnpack/quantization/TARGETS (deleted) | Remove redundant TARGETS to fall through to BUCK. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "//executorch/examples/models/smollm2:smollm2", # @manual | ||
| "//executorch/examples/models/smollm3:smollm3", # @manual | ||
| "//executorch/examples/models/smolvlm:smolvlm", # @manual | ||
| "//executorch/examples/models/whisper:whisper", # @manual | ||
| "//executorch/examples/models/yolo26:yolo26", # @manual | ||
| ], |
Summary:
Chunk 10 of fbcode/executorch TARGETS->BUCK migration. 18 directories
under examples/ where TARGETS defines targets like
python_library(name=X)and the sister BUCK defines the same targets via the fbcode_target wrapper:
fbcode_target(_kind = python_library, name = X). Both forms produce thesame logical target in fbcode; the wrapper just adds OSS-migration metadata.
Confirmed every name= in TARGETS is also in BUCK. Deleting TARGETS lets
fbcode fall through to BUCK (via name_v2 = TARGETS,BUCK) with no change in
target inventory.
Directories migrated:
inception_v3,mobilebert,mobilenet_v2,smollm2,smollm3,smolvlm,
torchvision_vit,toy_model,wav2letter}
Reviewed By: mzlee
Differential Revision: D109082050