-
Notifications
You must be signed in to change notification settings - Fork 815
Rename build files from TARGETS to BUCK (group ID: 3485166160954859926) #16922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/16922
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 2 Unrelated FailuresAs of commit 302117c with merge base 914d5ff ( NEW FAILURE - The following job has failed:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
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 D91591060. |
This PR needs a
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Migrates build definitions from TARGETS to BUCK and starts using build-file migration macros to support fbcode vs non-fbcode target selection.
Changes:
- Removed
backends/test/TARGETSand merged its content intobackends/test/BUCK. - Added
fbcode_target/non_fbcode_targetwrappers in select BUCK files. - Updated Qualcomm backend BUCK files to use migration macro wrappers for target definitions.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| backends/test/TARGETS | Removed legacy TARGETS build file (content moved into BUCK). |
| backends/test/BUCK | Consolidates fbcode and non-fbcode build definitions into a single BUCK file using migration wrappers. |
| backends/qualcomm/utils/BUCK | Adds migration macro load and wraps target definition. |
| backends/qualcomm/tests/BUCK | Adds migration macro load and wraps python targets with migration macro wrapper. |
Comments suppressed due to low confidence (2)
backends/qualcomm/utils/BUCK:1
non_fbcode_targetis loaded but never used in this file. Please remove it from theload()to avoid unused symbols (and keep loads consistent with other usage, e.g. extension/android/jni/selective_jni.buck.bzl:1 loads only what it uses).
backends/qualcomm/tests/BUCK:4- Several loaded symbols are unused:
non_fbcode_target(added here) is never referenced,python_unittestis not used anywhere in this file, andget_qnn_library_versionis only referenced in commented-out code. Please remove unused loads (or re-enable the code that uses them) to keep the BUCK file clean and avoid lint failures.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| load(":targets.bzl", "define_common_targets") | ||
|
|
||
|
|
||
| fbcode_target(_kind = define_common_targets,is_fbcode = True) |
Copilot
AI
Jan 28, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor formatting: add spaces after commas in the fbcode_target(...) call (e.g., between _kind and is_fbcode) to match typical BUCK/Starlark style and improve readability.
| fbcode_target(_kind = define_common_targets,is_fbcode = True) | |
| fbcode_target(_kind = define_common_targets, is_fbcode = True) |
| # targets.bzl. This file can contain fbcode-only targets. | ||
|
|
||
| load(":targets.bzl", "define_common_targets") | ||
|
|
||
|
|
||
| fbcode_target(_kind = define_common_targets,is_fbcode = True) |
Copilot
AI
Jan 28, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
load(":targets.bzl", "define_common_targets") is duplicated in the same file; the second load (and its surrounding duplicated header comment block) should be removed/merged to keep the build file DRY and avoid confusion during future edits.
| # targets.bzl. This file can contain fbcode-only targets. | |
| load(":targets.bzl", "define_common_targets") | |
| fbcode_target(_kind = define_common_targets,is_fbcode = True) | |
| # targets.bzl. This file can contain both xplat-only and fbcode-only targets. | |
| fbcode_target(_kind = define_common_targets,is_fbcode = True) |
b002903 to
302117c
Compare
Reviewed By: bigfootjon
Differential Revision: D91591060