[llvm] [Github] Make CI container build more reliable (PR #83707)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 2 21:47:19 PST 2024


https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/83707

This patch increases the reliability of the CI container build (that was failing consistently before this patch) by fixing some transient space issues. During the stage2 build setup, the tar archive was pulled in from the artifact and placed into $GITHUB_WORKSPACE, almost filling it. Podman while running podman load uses additional space on the same drive as $GITHUB_WORKSPACE, eventually running out of space. This patch moves the downloaded tar archive to /mnt/podman, which has significantly more space, and avoids this problem.

Fixes #83142.

>From 74f8a94d90574093ca6c49ae81409d21dfcbce3f Mon Sep 17 00:00:00 2001
From: Aiden Grossman <agrossman154 at yahoo.com>
Date: Sat, 2 Mar 2024 21:45:05 -0800
Subject: [PATCH] [Github] Make CI container build more reliable

This patch increases the reliability of the CI container build (that was
failing consistently before this patch) by fixing some transient space
issues. During the stage2 build setup, the tar archive was pulled in
from the artifact and placed into $GITHUB_WORKSPACE, almost filling it.
Podman while running podman load uses additional space on the same drive
as $GITHUB_WORKSPACE, eventually running out of space. This patch moves
the downloaded tar archive to /mnt/podman, which has significantly more
space, and avoids this problem.

Fixes #83142.
---
 .github/workflows/build-ci-container.yml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build-ci-container.yml b/.github/workflows/build-ci-container.yml
index 3f2bf57eb85088..28fc7de2ee0654 100644
--- a/.github/workflows/build-ci-container.yml
+++ b/.github/workflows/build-ci-container.yml
@@ -77,14 +77,18 @@ jobs:
           cp ./.github/workflows/containers/github-action-ci/storage.conf ~/.config/containers/storage.conf
           podman info
 
+        # Download the container image into /mnt/podman rather than
+        # $GITHUB_WORKSPACE to avoid space limitations on the default drive
+        # and use the permissions setup for /mnt/podman.
       - name: Download stage1-toolchain
         uses: actions/download-artifact at v4
         with:
           name: stage1-toolchain
+          path: /mnt/podman
 
       - name: Load stage1-toolchain
         run: |
-          podman load -i stage1-toolchain.tar
+          podman load -i /mnt/podman/stage1-toolchain.tar
 
       - name: Build Container
         working-directory: ./.github/workflows/containers/github-action-ci/



More information about the llvm-commits mailing list