Skip to content

remove buck cache and metadata when ./installaton.sh --clean #12778

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

Merged
merged 1 commit into from
Jul 24, 2025

Conversation

Gasoonjia
Copy link
Contributor

Summary:
as title

Rollback Plan:

Differential Revision: D78842886

Copy link

pytorch-bot bot commented Jul 23, 2025

🔗 Helpful Links

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

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

❌ 2 New Failures, 9 Pending

As of commit 2a44df9 with merge base 6afe388 (image):

NEW FAILURES - The following jobs have failed:

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 Jul 23, 2025
@facebook-github-bot
Copy link
Contributor

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

Copy link

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.

@@ -50,6 +50,11 @@ def clean():
print("Cleaning buck-out/...")
shutil.rmtree("buck-out/", ignore_errors=True)

# Removes all buck cached state and metadata
print("Cleaning buck cached state and metadata ...")
subprocess.run(["rm", "-rf", os.path.expanduser("~/.buck/buckd")], check=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you use shutil.rmtree

Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Jul 24, 2025
@facebook-github-bot
Copy link
Contributor

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

Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Jul 24, 2025
…#12778)

Summary:

as title

Reviewed By: larryliu0820

Differential Revision: D78842886
@facebook-github-bot
Copy link
Contributor

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

Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Jul 24, 2025
…#12778)

Summary:

as title

Reviewed By: larryliu0820

Differential Revision: D78842886
@facebook-github-bot
Copy link
Contributor

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

Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Jul 24, 2025
…#12778)

Summary:

as title

Reviewed By: larryliu0820

Differential Revision: D78842886
Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Jul 24, 2025
…#12778)

Summary:

as title

Reviewed By: larryliu0820

Differential Revision: D78842886
@facebook-github-bot
Copy link
Contributor

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

…#12778)

Summary:
Pull Request resolved: pytorch#12778

as title

Reviewed By: larryliu0820

Differential Revision: D78842886
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot merged commit 7e82d00 into pytorch:main Jul 24, 2025
96 of 101 checks passed
@Gasoonjia
Copy link
Contributor Author

@pytorchbot cherry-pick --onto release/0.7 -c release

pytorchbot pushed a commit that referenced this pull request Jul 24, 2025
Differential Revision: D78842886

Pull Request resolved: #12778

(cherry picked from commit 7e82d00)
@pytorchbot
Copy link
Collaborator

Cherry picking #12778

The cherry pick PR is at #12830 The following tracker issues are updated:

Details for Dev Infra team Raised by workflow job

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants