Skip to content

Rename build files from TARGETS to BUCK (group ID: 1746601514138727150)#19419

Open
bigfootjon wants to merge 1 commit intomainfrom
export-D104414856
Open

Rename build files from TARGETS to BUCK (group ID: 1746601514138727150)#19419
bigfootjon wants to merge 1 commit intomainfrom
export-D104414856

Conversation

@bigfootjon
Copy link
Copy Markdown
Member

Reviewed By: bigfootjon

Differential Revision: D104414856

Reviewed By: bigfootjon

Differential Revision: D104414856
Copilot AI review requested due to automatic review settings May 8, 2026 23:20
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented May 8, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19419

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 5 Pending

As of commit 594fc77 with merge base 9889c7c (image):
💚 Looks good so far! There are no failures yet. 💚

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 May 8, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented May 8, 2026

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

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates Buck build definitions away from TARGETS toward BUCK files and introduces build-file migration wrappers to support fbcode vs non-fbcode target definitions within the same build file.

Changes:

  • Wrap XNNPACK Python library targets with fbcode_target(...) and add migration macro imports.
  • Remove backends/vulkan/tools/gpuinfo/TARGETS and merge its target definitions into backends/vulkan/tools/gpuinfo/BUCK.
  • Introduce fbcode_target/non_fbcode_target wrappers for Vulkan gpuinfo targets to support environment-specific deps.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
backends/xnnpack/recipes/BUCK Wraps python_library targets with migration macro and adds build migration load.
backends/xnnpack/quantizer/BUCK Wraps python_library targets with migration macro and adds build migration load.
backends/xnnpack/partition/config/BUCK Wraps python_library target with migration macro and adds build migration load.
backends/vulkan/tools/gpuinfo/TARGETS Removes legacy TARGETS file after merging content into BUCK.
backends/vulkan/tools/gpuinfo/BUCK Wraps existing targets with non_fbcode_target and appends fbcode equivalents from deleted TARGETS.
Comments suppressed due to low confidence (3)

backends/xnnpack/recipes/BUCK:1

  • non_fbcode_target is loaded but never used in this file. This can trigger build/lint failures for unused loaded symbols; remove it from the load() list (or switch usages to non_fbcode_target if that was intended).
    backends/xnnpack/quantizer/BUCK:1
  • non_fbcode_target is loaded but never used in this file. This can trigger build/lint failures for unused loaded symbols; remove it from the load() list (or switch usages to non_fbcode_target if that was intended).
    backends/xnnpack/partition/config/BUCK:1
  • non_fbcode_target is loaded but never used in this file. This can trigger build/lint failures for unused loaded symbols; remove it from the load() list (or switch usages to non_fbcode_target if that was intended).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +63 to +74
load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup")
load("@fbsource//tools/build_defs:fb_xplat_cxx_binary.bzl", "fb_xplat_cxx_binary")
load(
"@fbsource//tools/build_defs:platform_defs.bzl",
"ANDROID",
)
load(
"@fbsource//xplat/executorch/backends/vulkan:targets.bzl",
"vulkan_spv_shader_lib",
)


Comment on lines 15 to 33
@@ -21,14 +22,14 @@ buck_filegroup(
],
)

vulkan_spv_shader_lib(
non_fbcode_target(_kind = vulkan_spv_shader_lib,
name = "gpuinfo_shader_lib",
spv_filegroups = {
":gpuinfo_shaders": "glsl",
},
)

fb_xplat_cxx_binary(
non_fbcode_target(_kind = fb_xplat_cxx_binary,
name = "vulkan_gpuinfo",
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. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants