Skip to content

drop TARGETS files redundant with fbcode_target-wrapped BUCK siblings - #21408

Open
bigfootjon wants to merge 1 commit into
pytorch:mainfrom
bigfootjon:export-D109082050
Open

drop TARGETS files redundant with fbcode_target-wrapped BUCK siblings#21408
bigfootjon wants to merge 1 commit into
pytorch:mainfrom
bigfootjon:export-D109082050

Conversation

@bigfootjon

Copy link
Copy Markdown
Member

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

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
Copilot AI review requested due to automatic review settings July 27, 2026 19:24
@pytorch-bot

pytorch-bot Bot commented Jul 27, 2026

Copy link
Copy Markdown

🔗 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 Failures

As of commit 39cd078 with merge base 55d693b (image):

NEW FAILURES - The following jobs have failed:

  • Cadence Build & Test / hifi-build / hifi4 (gh)
    Refusing to check out fork pull request code from a 'pull_request_target' workflow. This workflow runs with the base repository's GITHUB_TOKEN, secrets, default-branch cache scope, and runner access. Fetching and executing a fork's code in that trusted context commonly leads to "pwn request" vulnerabilities. To opt in, review the risks at https://gh.io/securely-using-pull_request_target and set 'allow-unsafe-pr-checkout: true' on the actions/checkout step.
  • Cadence Build & Test / vision-build / vision (gh)
    Refusing to check out fork pull request code from a 'pull_request_target' workflow. This workflow runs with the base repository's GITHUB_TOKEN, secrets, default-branch cache scope, and runner access. Fetching and executing a fork's code in that trusted context commonly leads to "pwn request" vulnerabilities. To opt in, review the risks at https://gh.io/securely-using-pull_request_target and set 'allow-unsafe-pr-checkout: true' on the actions/checkout step.
  • pull / unittest-editable / linux / linux-job (gh)
    backends/xnnpack/test/recipes/test_xnnpack_recipes.py::TestXnnpackRecipes::test_all_models_with_recipes

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.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 27, 2026
@meta-codesync

meta-codesync Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

@bigfootjon has exported this pull request. If you are a Meta employee, you can view the originating Diff in D109082050.

@github-actions

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Continues the fbcode TARGETSBUCK 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 TARGETS files across the listed examples/ directories so name_v2 = TARGETS,BUCK resolves via BUCK.
  • Adjust examples/models/BUCK to drop references to whisper and yolo26 from the models python_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.

Comment thread examples/models/BUCK
Comment on lines 34 to 37
"//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
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants