Skip to content

Migrate pybind11 external deps to regular third-party deps - #8837

Merged
facebook-github-bot merged 1 commit into
pytorch:mainfrom
itamaro:export-D70261352
Mar 3, 2025
Merged

Migrate pybind11 external deps to regular third-party deps#8837
facebook-github-bot merged 1 commit into
pytorch:mainfrom
itamaro:export-D70261352

Conversation

@itamaro

Copy link
Copy Markdown
Contributor

Summary:

)>pylot run fbcode//scripts/yilei/codemods:replace_tp2_deps --tp2_project=pybind11 --replacement=fbsource//third-party/pybind11:pybind11
E0226 10:26:07.491569 2744864 Config.cpp:1179] For smc tier ''. Encountered an exception while parsing 'weight_mode'. Failed to parse WeightMode: Unknown WeightMode value 'default_sr'. Using 'LEGACY_DEFAULT'.
E0226 10:26:07.493572 2744864 Config.cpp:1179] For smc tier ''. Encountered an exception while parsing 'weight_mode'. Failed to parse WeightMode: Unknown WeightMode value 'default_sr'. Using 'LEGACY_DEFAULT'.
E0226 10:26:07.493769 2744864 Config.cpp:1179] For smc tier ''. Encountered an exception while parsing 'weight_mode'. Failed to parse WeightMode: Unknown WeightMode value 'default_sr'. Using 'LEGACY_DEFAULT'.
E0226 10:26:07.550289 2745009 Config.cpp:1179] For smc tier 'biggrep.master.trusted'. Encountered an exception while parsing 'weight_mode'. Failed to parse WeightMode: Unknown WeightMode value 'default_sr'. Using 'LEGACY_DEFAULT'.
E0226 10:26:07.556802 2745009 Config.cpp:1179] For smc tier 'biggrep.aggregator.interactive.v1'. Encountered an exception while parsing 'weight_mode'. Failed to parse WeightMode: Unknown WeightMode value 'default_sr'. Using 'LEGACY_DEFAULT'.
Found 163 TARGETS files using tp2 pybind11
[######------------------------------] 19% 00:01:39WARNING: Y2_MAGIC_STRING_FOR_BUILDOZER found in fbcode/bolt/nn/executorch/backends/targets.bzl
[###########-------------------------] 32% 00:01:28WARNING: Y2_MAGIC_STRING_FOR_BUILDOZER found in fbcode/executorch/backends/qualcomm/aot/python/targets.bzl
[###########-------------------------] 33% 00:01:27WARNING: Y2_MAGIC_STRING_FOR_BUILDOZER found in fbcode/executorch/codegen/tools/fb/targets.bzl
[####################################] 100%

Reviewed By: dtolnay

Differential Revision: D70261352

@pytorch-bot

pytorch-botBot commented Feb 28, 2025

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit 6fda940 with merge base 19a3002 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-botfacebook-github-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 Feb 28, 2025
@github-actions

Copy link
Copy Markdown

This PR needs a release notes: label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

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

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D70261352

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D70261352

@cccclaicccclai 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.

Seems reasonable

itamaro added a commit to itamaro/executorch that referenced this pull request Mar 1, 2025
)
Summary:
```
>pylot run fbcode//scripts/yilei/codemods:replace_tp2_deps --tp2_project=pybind11 --replacement=fbsource//third-party/pybind11:pybind11
E0226 10:26:07.491569 2744864 Config.cpp:1179] For smc tier ''. Encountered an exception while parsing 'weight_mode'. Failed to parse WeightMode: Unknown WeightMode value 'default_sr'. Using 'LEGACY_DEFAULT'.
E0226 10:26:07.493572 2744864 Config.cpp:1179] For smc tier ''. Encountered an exception while parsing 'weight_mode'. Failed to parse WeightMode: Unknown WeightMode value 'default_sr'. Using 'LEGACY_DEFAULT'.
E0226 10:26:07.493769 2744864 Config.cpp:1179] For smc tier ''. Encountered an exception while parsing 'weight_mode'. Failed to parse WeightMode: Unknown WeightMode value 'default_sr'. Using 'LEGACY_DEFAULT'.
E0226 10:26:07.550289 2745009 Config.cpp:1179] For smc tier 'biggrep.master.trusted'. Encountered an exception while parsing 'weight_mode'. Failed to parse WeightMode: Unknown WeightMode value 'default_sr'. Using 'LEGACY_DEFAULT'.
E0226 10:26:07.556802 2745009 Config.cpp:1179] For smc tier 'biggrep.aggregator.interactive.v1'. Encountered an exception while parsing 'weight_mode'. Failed to parse WeightMode: Unknown WeightMode value 'default_sr'. Using 'LEGACY_DEFAULT'.
Found 163 TARGETS files using tp2 pybind11
[######------------------------------] 19% 00:01:39WARNING: Y2_MAGIC_STRING_FOR_BUILDOZER found in fbcode/bolt/nn/executorch/backends/targets.bzl
[###########-------------------------] 32% 00:01:28WARNING: Y2_MAGIC_STRING_FOR_BUILDOZER found in fbcode/executorch/backends/qualcomm/aot/python/targets.bzl
[###########-------------------------] 33% 00:01:27WARNING: Y2_MAGIC_STRING_FOR_BUILDOZER found in fbcode/executorch/codegen/tools/fb/targets.bzl
[####################################] 100%
```
this codemod changes pybind11 deps from external deps to regular third-party deps.
additional changes include trivial auto-formatting.
buck / autodeps warnings / errors, if any, are pre-existing.
Reviewed By: cccclai, dtolnay
Differential Revision: D70261352
)
Summary:
Pull Request resolved: pytorch#8837
```
>pylot run fbcode//scripts/yilei/codemods:replace_tp2_deps --tp2_project=pybind11 --replacement=fbsource//third-party/pybind11:pybind11
E0226 10:26:07.491569 2744864 Config.cpp:1179] For smc tier ''. Encountered an exception while parsing 'weight_mode'. Failed to parse WeightMode: Unknown WeightMode value 'default_sr'. Using 'LEGACY_DEFAULT'.
E0226 10:26:07.493572 2744864 Config.cpp:1179] For smc tier ''. Encountered an exception while parsing 'weight_mode'. Failed to parse WeightMode: Unknown WeightMode value 'default_sr'. Using 'LEGACY_DEFAULT'.
E0226 10:26:07.493769 2744864 Config.cpp:1179] For smc tier ''. Encountered an exception while parsing 'weight_mode'. Failed to parse WeightMode: Unknown WeightMode value 'default_sr'. Using 'LEGACY_DEFAULT'.
E0226 10:26:07.550289 2745009 Config.cpp:1179] For smc tier 'biggrep.master.trusted'. Encountered an exception while parsing 'weight_mode'. Failed to parse WeightMode: Unknown WeightMode value 'default_sr'. Using 'LEGACY_DEFAULT'.
E0226 10:26:07.556802 2745009 Config.cpp:1179] For smc tier 'biggrep.aggregator.interactive.v1'. Encountered an exception while parsing 'weight_mode'. Failed to parse WeightMode: Unknown WeightMode value 'default_sr'. Using 'LEGACY_DEFAULT'.
Found 163 TARGETS files using tp2 pybind11
[######------------------------------] 19% 00:01:39WARNING: Y2_MAGIC_STRING_FOR_BUILDOZER found in fbcode/bolt/nn/executorch/backends/targets.bzl
[###########-------------------------] 32% 00:01:28WARNING: Y2_MAGIC_STRING_FOR_BUILDOZER found in fbcode/executorch/backends/qualcomm/aot/python/targets.bzl
[###########-------------------------] 33% 00:01:27WARNING: Y2_MAGIC_STRING_FOR_BUILDOZER found in fbcode/executorch/codegen/tools/fb/targets.bzl
[####################################] 100%
```
this codemod changes pybind11 deps from external deps to regular third-party deps.
additional changes include trivial auto-formatting.
buck / autodeps warnings / errors, if any, are pre-existing.
Reviewed By: cccclai, dtolnay
Differential Revision: D70261352
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D70261352

@facebook-github-bot
facebook-github-bot merged commit 9227cdc into pytorch:mainMar 3, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@itamaro@facebook-github-bot@cccclai