Skip to content

Use runtime.python_library in our BUCK/TARGETS files #8712

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

Closed
wants to merge 17 commits into from

Conversation

swolchok
Copy link
Contributor

@swolchok swolchok commented Feb 26, 2025

IIUC, we should've been doing this all along for compatibility with OSS Buck. Was blocking buck2 build //runtime/... (which is still failing, but differently).

Differential Revision: D70647459

[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
Copy link

pytorch-bot bot commented Feb 26, 2025

🔗 Helpful Links

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

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

⏳ No Failures, 6 Pending

As of commit eabf3ff with merge base 484231c (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot facebook-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 26, 2025
swolchok added a commit that referenced this pull request Feb 26, 2025
IIUC, we should've been doing this all along for compatibility with OSS Buck. Was blocking `buck2 build //runtime/...` (which is still failing, but differently).

ghstack-source-id: db05394
ghstack-comment-id: 2683586060
Pull Request resolved: #8712
@mergennachin mergennachin self-requested a review February 26, 2025 14:53
Base automatically changed from gh/swolchok/289/head to main February 28, 2025 18:02
[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

@swolchok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@swolchok
Copy link
Contributor Author

internal build failures; holding off merge until they are fixed

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

@swolchok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

[ghstack-poisoned]
[ghstack-poisoned]
@swolchok swolchok changed the base branch from main to gh/swolchok/313/head March 5, 2025 19:26
@swolchok
Copy link
Contributor Author

swolchok commented Mar 5, 2025

@swolchok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

swolchok added a commit that referenced this pull request Mar 5, 2025
IMO, Buck visibility is just inverse deps. We should trust that people have a good reason to add deps rather than attempt to police them and require double entry in both deps and visibility, especially since we seem to be committed to APIs by default in OSS anyway.

Specific motivation is that #8712 would otherwise have to ad-hoc slap ExecuTorch-wide visibility on a lot of targets, but I've held this view for a long time.

Differential Revision: D70647462
Base automatically changed from gh/swolchok/313/head to main March 5, 2025 21:26
zonglinpeng pushed a commit that referenced this pull request Mar 6, 2025
IMO, Buck visibility is just inverse deps. We should trust that people have a good reason to add deps rather than attempt to police them and require double entry in both deps and visibility, especially since we seem to be committed to APIs by default in OSS anyway.

Specific motivation is that #8712 would otherwise have to ad-hoc slap ExecuTorch-wide visibility on a lot of targets, but I've held this view for a long time.

Differential Revision: D70647462
[ghstack-poisoned]
[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

@swolchok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@swolchok
Copy link
Contributor Author

swolchok commented Mar 7, 2025

@swolchok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@swolchok
Copy link
Contributor Author

swolchok commented Mar 7, 2025

giving up on this for now because I've had to give up on buck2 build //runtime/... anyway and it is continually causing internal problems because the old setting defaulted to visibility = ["PUBLIC"] and the new one is not public.

@swolchok swolchok closed this Mar 7, 2025
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. topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants