Skip to content

Conversation

@0marperez
Copy link
Contributor

@0marperez 0marperez commented Nov 24, 2025

Issue #

No GH issue.

Our linux CI builds are exhausting the disk space in GH runners:

e: /home/runner/.konan/dependencies/llvm-19-x86_64-linux-essentials-100/bin/ld.lld invocation reported errors

The /home/runner/.konan/dependencies/llvm-19-x86_64-linux-essentials-100/bin/ld.lld command returned non-zero exit code: 135.
output:

> Task :runtime:protocol:aws-event-stream:linkDebugTestLinuxX64 FAILED
e: Compilation failed: /tmp/included6654424596819046813: No space left on device

Description of changes

There are some unnecessary tools installed in GH runners we can get rid of so linux builds don't exhaust disk space. More research could still be done to figure out how to optimize our linux builds, so we don't need to do this to begin with.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@0marperez 0marperez added the no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly. label Nov 24, 2025
@0marperez 0marperez changed the title try disabling cache fix: make disk space for linux CI builds Nov 25, 2025
@0marperez 0marperez marked this pull request as ready for review November 25, 2025 22:11
@0marperez 0marperez requested a review from a team as a code owner November 25, 2025 22:11
Comment on lines 157 to 198
- name: Configure CRT Docker Images
run: |
echo "Disk space:"
df -h
# TODO: Fix our CI/images setup to optimize for size
echo "Making space on disk for linux build"
# Remove .NET SDKs
sudo rm -rf /usr/share/dotnet
# Remove Swift toolchain
sudo rm -rf /usr/share/swift
# Remove Haskell (GHC)
sudo rm -rf /usr/local/.ghcup
# Remove Julia
sudo rm -rf /usr/local/julia*
# Remove Android SDKs
sudo rm -rf /usr/local/lib/android
# Remove Chromium
sudo rm -rf /usr/local/share/chromium
# Remove Microsoft/Edge and Google Chrome builds
sudo rm -rf /opt/microsoft /opt/google
# Remove Azure CLI
sudo rm -rf /opt/az
# Remove PowerShell
sudo rm -rf /usr/local/share/powershell
echo "Disk space:"
df -h
./aws-crt-kotlin/docker-images/build-all.sh
echo "Disk space:"
df -h
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Let's move the cleanup instructions to a dedicated step, preferably the first step (i.e., before actions/checkout).

@0marperez 0marperez requested a review from ianbotsf November 25, 2025 23:53
Comment on lines 186 to 188
- name: Configure CRT Docker Images
run: |
run: |
./aws-crt-kotlin/docker-images/build-all.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Extraneous trailing whitespace

@0marperez 0marperez enabled auto-merge (squash) December 2, 2025 15:48
@0marperez 0marperez merged commit a85ecaa into main Dec 2, 2025
23 checks passed
@0marperez 0marperez deleted the fix-linux-ci branch December 2, 2025 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants