forked from facebook/sapling
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix github disk full by cleaning intermediate build steps and sylinking
Now that linking is fixed in previous change, disk space usage is too large for github actions runner so I see Mononoke build fail on sapling PRs. Fix it by cleaning up intermediate state and symlinking instead of copying. The later exposed a couple of bugs in cargo.py when updating pre-existing workspace file, also fixed. Test Plan: Test locally on ubuntu 22.04 Before: ``` rm -rf ./build/fbcode_builder/getdeps.py --allow-system-packages build --src-dir=. mononoke ... $ du -sh $TMP/fbcode_builder_getdeps-ZhomeZalexZlocalZsaplingZbuildZfbcode_builder/* Fri Jul 7 18:50:25 BST 2023 17G /home/alex/local/tmp/toolbox/fbcode_builder_getdeps-ZhomeZalexZlocalZsaplingZbuildZfbcode_builder/build 800K /home/alex/local/tmp/toolbox/fbcode_builder_getdeps-ZhomeZalexZlocalZsaplingZbuildZfbcode_builder/downloads 3.6M /home/alex/local/tmp/toolbox/fbcode_builder_getdeps-ZhomeZalexZlocalZsaplingZbuildZfbcode_builder/extracted 5.9G /home/alex/local/tmp/toolbox/fbcode_builder_getdeps-ZhomeZalexZlocalZsaplingZbuildZfbcode_builder/installed 433M /home/alex/local/tmp/toolbox/fbcode_builder_getdeps-ZhomeZalexZlocalZsaplingZbuildZfbcode_builder/repos `` After ``` ./build/fbcode_builder/getdeps.py --allow-system-packages build --clean-intermediate --src-dir=. mononoke ```
- Loading branch information
Showing
5 changed files
with
101 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters