Skip to content

Arm backend: Exclude build metadata from license checks#19754

Merged
perheld merged 1 commit into
pytorch:mainfrom
perheld:ph-ignore-buck-files
May 25, 2026
Merged

Arm backend: Exclude build metadata from license checks#19754
perheld merged 1 commit into
pytorch:mainfrom
perheld:ph-ignore-buck-files

Conversation

@perheld
Copy link
Copy Markdown
Collaborator

@perheld perheld commented May 25, 2026

Treat BUCK and TARGETS files as build metadata in the Arm pre-push license check so they do not need copyright headers.

Change-Id: I4b3bbd1e03ba4b9c38fd06225156344985f0cc70

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani

Copilot AI review requested due to automatic review settings May 25, 2026 08:02
@perheld perheld requested a review from digantdesai as a code owner May 25, 2026 08:02
@perheld perheld added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk release notes: none Do not include this in the release notes labels May 25, 2026
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented May 25, 2026

🔗 Helpful Links

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

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

✅ You can merge normally! (3 Unrelated Failures)

As of commit 8d07e3a with merge base ba6074c (image):

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.

@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 25, 2026
@github-actions github-actions Bot added the module: arm Issues related to arm backend label May 25, 2026
Treat BUCK and TARGETS files as build metadata in the Arm
pre-push license check so they do not need copyright headers.

Signed-off-by: Per Held <per.held@arm.com>
Change-Id: I4b3bbd1e03ba4b9c38fd06225156344985f0cc70
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

Updates the Arm backend pre-push hook’s license-header check to treat Buck build metadata as exempt from Arm copyright header requirements.

Changes:

  • Extends the license-check skip list to include BUCK and TARGETS files (intended as build metadata).

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

Comment on lines 178 to 181
# Skip files with certain extensions
case "$committed_file" in
*.md|*.md.in|*.json|*.yml|*.yaml|*.cmake|*.patch|.gitignore|*.bzl)
*.md|*.md.in|*.json|*.yml|*.yaml|*.cmake|*.patch|.gitignore|*.bzl|BUCK|*/BUCK|TARGETS|*/TARGETS)
echo -e "${INFO} Skipping license check for ${committed_file} (excluded extension)"
@perheld perheld merged commit ee4c90a into pytorch:main May 25, 2026
457 of 462 checks passed
@perheld perheld deleted the ph-ignore-buck-files branch May 25, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: arm Issues related to arm backend partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants