Skip to content

Set a DerivedData path for iOS test builds. #118621

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
May 6, 2024

Conversation

freakboy3742
Copy link
Contributor

iOS CI Builds 215-221 failed because the CI machine ran out of disk space.

When an iOS Xcode project builds, it uses a DerivedData folder to store build artefacts. By default, this folder is created in ~/Library/Developer/Xcode/DerivedData. Because the code checkout doesn't include any user-specific configuration, each time the testios target is is executed, it generates a fresh DerivedData folder, consuming ~260MB of disk space.

This derived data folder isn't cleaned up by Buildbot, because it's outside the build tree. 200 builds later, the buildbot ran out of disk space :-)

This PR modifies the Makefile to use a DerivedData folder that is in the build tree, so it will be cleaned up at the end of the test run.

I've also purged the ~/Library/Developer/Xcode/DerivedData folder on the CI machine; I'll do so again when this PR is merged.

@ned-deily ned-deily merged commit 1506d5a into python:main May 6, 2024
35 checks passed
@freakboy3742 freakboy3742 deleted the ios-derived-data branch May 6, 2024 04:13
SonicField pushed a commit to SonicField/cpython that referenced this pull request May 8, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Aug 5, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Aug 5, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Aug 5, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Aug 5, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Sep 6, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Sep 9, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Sep 9, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Sep 9, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Sep 9, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Oct 9, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Dec 13, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Dec 13, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Dec 13, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants