From ee7e329e7060d1c5aa283ccc64e483d45a03ef8d Mon Sep 17 00:00:00 2001 From: Artem Savchenko Date: Tue, 18 Nov 2025 11:10:46 +0700 Subject: [PATCH 01/10] Free disk space for ui tests Signed-off-by: Artem Savchenko --- .github/workflows/main.yml | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bd6150a0d0..2896b2e24d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -205,6 +205,17 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: + - name: Free disk space + run: | + echo "Disk space before cleanup:" + df -h + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + echo "Disk space after cleanup:" + df -h + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -246,6 +257,7 @@ jobs: env: DOCKER_CLI_HINTS: false DOCKER_BUILDKIT: 1 + DOCKER_BUILD_CLEANUP: true - name: Configure /etc/hosts run: | sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts @@ -336,6 +348,17 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: + - name: Free disk space + run: | + echo "Disk space before cleanup:" + df -h + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + echo "Disk space after cleanup:" + df -h + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -377,6 +400,7 @@ jobs: env: DOCKER_CLI_HINTS: false DOCKER_BUILDKIT: 1 + DOCKER_BUILD_CLEANUP: true - name: Configure /etc/hosts run: | sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts @@ -432,6 +456,17 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: + - name: Free disk space + run: | + echo "Disk space before cleanup:" + df -h + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + echo "Disk space after cleanup:" + df -h + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -472,6 +507,7 @@ jobs: env: DOCKER_CLI_HINTS: false DOCKER_BUILDKIT: 1 + DOCKER_BUILD_CLEANUP: true - name: Configure /etc/hosts run: | sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts @@ -511,6 +547,17 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: + - name: Free disk space + run: | + echo "Disk space before cleanup:" + df -h + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + echo "Disk space after cleanup:" + df -h + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -554,6 +601,7 @@ jobs: env: DOCKER_CLI_HINTS: false DOCKER_BUILDKIT: 1 + DOCKER_BUILD_CLEANUP: true - name: Configure /etc/hosts run: | sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts From 6e156a3f9e9eaf6ecae4d8c46a07ea968f368a1f Mon Sep 17 00:00:00 2001 From: Artem Savchenko Date: Tue, 18 Nov 2025 11:32:00 +0700 Subject: [PATCH 02/10] Rollback space free Signed-off-by: Artem Savchenko --- .github/workflows/main.yml | 44 -------------------------------------- 1 file changed, 44 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2896b2e24d..df6c452ebb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -205,17 +205,6 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: - - name: Free disk space - run: | - echo "Disk space before cleanup:" - df -h - sudo rm -rf /usr/share/dotnet - sudo rm -rf /opt/ghc - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - echo "Disk space after cleanup:" - df -h - - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -348,17 +337,6 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: - - name: Free disk space - run: | - echo "Disk space before cleanup:" - df -h - sudo rm -rf /usr/share/dotnet - sudo rm -rf /opt/ghc - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - echo "Disk space after cleanup:" - df -h - - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -456,17 +434,6 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: - - name: Free disk space - run: | - echo "Disk space before cleanup:" - df -h - sudo rm -rf /usr/share/dotnet - sudo rm -rf /opt/ghc - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - echo "Disk space after cleanup:" - df -h - - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -547,17 +514,6 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: - - name: Free disk space - run: | - echo "Disk space before cleanup:" - df -h - sudo rm -rf /usr/share/dotnet - sudo rm -rf /opt/ghc - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - echo "Disk space after cleanup:" - df -h - - uses: actions/checkout@v4 with: fetch-depth: 0 From 9dcbac1fa079ecf7d1f16776c1ce41f794d5d3dc Mon Sep 17 00:00:00 2001 From: Artem Savchenko Date: Tue, 18 Nov 2025 12:14:47 +0700 Subject: [PATCH 03/10] Add free space action Signed-off-by: Artem Savchenko --- .github/actions/free-disk-space/action.yml | 20 ++++++++++++++++++++ .github/workflows/main.yml | 12 ++++++++---- 2 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 .github/actions/free-disk-space/action.yml diff --git a/.github/actions/free-disk-space/action.yml b/.github/actions/free-disk-space/action.yml new file mode 100644 index 0000000000..99639012a2 --- /dev/null +++ b/.github/actions/free-disk-space/action.yml @@ -0,0 +1,20 @@ +name: 'Free Space For Tests' +description: 'Free up disk space by removing files and directories that are not needed for tests.' +runs: + using: 'composite' + steps: + - name: Free space for tests + shell: bash + run: | + echo "Disk space before cleanup:" + df -h + sudo rm -rf ./plugins + sudo rm -rf ./desktop + sudo rm -rf ./server + sudo rm -rf ./models + sudo rm -rf ./server-plugins + sudo rm -rf ./common + sudo rm -rf ./qms-desktop-package + sudo rm -rf ./services + echo "Disk space after cleanup:" + df -h diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index df6c452ebb..8c9f09e84b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -246,7 +246,8 @@ jobs: env: DOCKER_CLI_HINTS: false DOCKER_BUILDKIT: 1 - DOCKER_BUILD_CLEANUP: true + - name: Free space for tests + uses: ./.github/actions/free-disk-space - name: Configure /etc/hosts run: | sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts @@ -378,7 +379,8 @@ jobs: env: DOCKER_CLI_HINTS: false DOCKER_BUILDKIT: 1 - DOCKER_BUILD_CLEANUP: true + - name: Free space for tests + uses: ./.github/actions/free-disk-space - name: Configure /etc/hosts run: | sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts @@ -474,7 +476,8 @@ jobs: env: DOCKER_CLI_HINTS: false DOCKER_BUILDKIT: 1 - DOCKER_BUILD_CLEANUP: true + - name: Free space for tests + uses: ./.github/actions/free-disk-space - name: Configure /etc/hosts run: | sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts @@ -557,7 +560,8 @@ jobs: env: DOCKER_CLI_HINTS: false DOCKER_BUILDKIT: 1 - DOCKER_BUILD_CLEANUP: true + - name: Free space for tests + uses: ./.github/actions/free-disk-space - name: Configure /etc/hosts run: | sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts From ec29f19671aad43268fde06bcfcc54e28da84fb5 Mon Sep 17 00:00:00 2001 From: Artem Savchenko Date: Tue, 18 Nov 2025 12:26:07 +0700 Subject: [PATCH 04/10] Remove temp Signed-off-by: Artem Savchenko --- .github/actions/free-disk-space/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/free-disk-space/action.yml b/.github/actions/free-disk-space/action.yml index 99639012a2..21e6c324b8 100644 --- a/.github/actions/free-disk-space/action.yml +++ b/.github/actions/free-disk-space/action.yml @@ -13,7 +13,7 @@ runs: sudo rm -rf ./server sudo rm -rf ./models sudo rm -rf ./server-plugins - sudo rm -rf ./common + sudo rm -rf ./common/temp sudo rm -rf ./qms-desktop-package sudo rm -rf ./services echo "Disk space after cleanup:" From 76c5d2a5c5639d8adbb5fada254adac8ec33bd67 Mon Sep 17 00:00:00 2001 From: Artem Savchenko Date: Tue, 18 Nov 2025 12:50:06 +0700 Subject: [PATCH 05/10] Fix free space Signed-off-by: Artem Savchenko --- .github/actions/free-disk-space/action.yml | 2 -- .github/workflows/main.yml | 16 ++++++++-------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/actions/free-disk-space/action.yml b/.github/actions/free-disk-space/action.yml index 21e6c324b8..4b3ca6b4b7 100644 --- a/.github/actions/free-disk-space/action.yml +++ b/.github/actions/free-disk-space/action.yml @@ -8,9 +8,7 @@ runs: run: | echo "Disk space before cleanup:" df -h - sudo rm -rf ./plugins sudo rm -rf ./desktop - sudo rm -rf ./server sudo rm -rf ./models sudo rm -rf ./server-plugins sudo rm -rf ./common/temp diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8c9f09e84b..2a7465ed1c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -246,8 +246,6 @@ jobs: env: DOCKER_CLI_HINTS: false DOCKER_BUILDKIT: 1 - - name: Free space for tests - uses: ./.github/actions/free-disk-space - name: Configure /etc/hosts run: | sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts @@ -264,6 +262,8 @@ jobs: run: | cd ./tests ./profile-start.sh + - name: Free space for tests + uses: ./.github/actions/free-disk-space - name: Run UI tests run: | cd ./tests/sanity @@ -379,8 +379,6 @@ jobs: env: DOCKER_CLI_HINTS: false DOCKER_BUILDKIT: 1 - - name: Free space for tests - uses: ./.github/actions/free-disk-space - name: Configure /etc/hosts run: | sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts @@ -397,6 +395,8 @@ jobs: run: | cd ./tests ./profile-start.sh + - name: Free space for tests + uses: ./.github/actions/free-disk-space - name: Run UI tests run: | cd ./tests/sanity @@ -476,8 +476,6 @@ jobs: env: DOCKER_CLI_HINTS: false DOCKER_BUILDKIT: 1 - - name: Free space for tests - uses: ./.github/actions/free-disk-space - name: Configure /etc/hosts run: | sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts @@ -490,6 +488,8 @@ jobs: run: | cd ./qms-tests/sanity node ../../common/scripts/install-run-rushx.js ci + - name: Free space for tests + uses: ./.github/actions/free-disk-space - name: Run UI tests run: | cd ./qms-tests/sanity @@ -560,8 +560,6 @@ jobs: env: DOCKER_CLI_HINTS: false DOCKER_BUILDKIT: 1 - - name: Free space for tests - uses: ./.github/actions/free-disk-space - name: Configure /etc/hosts run: | sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts @@ -570,6 +568,8 @@ jobs: cd ./ws-tests export DO_CLEAN=true ./prepare.sh + - name: Free space for tests + uses: ./.github/actions/free-disk-space - name: Run API tests run: | cd ./ws-tests/api-tests From a2cd0d0088f4f96c81180866c51c622b4d5d3f03 Mon Sep 17 00:00:00 2001 From: Artem Savchenko Date: Tue, 18 Nov 2025 12:59:22 +0700 Subject: [PATCH 06/10] Add space check Signed-off-by: Artem Savchenko --- .github/actions/free-disk-space/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/free-disk-space/action.yml b/.github/actions/free-disk-space/action.yml index 4b3ca6b4b7..3c006f7829 100644 --- a/.github/actions/free-disk-space/action.yml +++ b/.github/actions/free-disk-space/action.yml @@ -7,6 +7,7 @@ runs: shell: bash run: | echo "Disk space before cleanup:" + du -sh ./* 2>/dev/null | sort -h df -h sudo rm -rf ./desktop sudo rm -rf ./models From 7f4f351c2036a6b053eb8b59c980b33654133399 Mon Sep 17 00:00:00 2001 From: Artem Savchenko Date: Tue, 18 Nov 2025 13:16:55 +0700 Subject: [PATCH 07/10] Free temp only Signed-off-by: Artem Savchenko --- .github/actions/free-disk-space/action.yml | 10 ++-------- .github/workflows/main.yml | 8 ++++---- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/actions/free-disk-space/action.yml b/.github/actions/free-disk-space/action.yml index 3c006f7829..d4ad22b523 100644 --- a/.github/actions/free-disk-space/action.yml +++ b/.github/actions/free-disk-space/action.yml @@ -1,19 +1,13 @@ -name: 'Free Space For Tests' +name: 'Free Temp' description: 'Free up disk space by removing files and directories that are not needed for tests.' runs: using: 'composite' steps: - - name: Free space for tests + - name: Free temp shell: bash run: | echo "Disk space before cleanup:" - du -sh ./* 2>/dev/null | sort -h df -h - sudo rm -rf ./desktop - sudo rm -rf ./models - sudo rm -rf ./server-plugins sudo rm -rf ./common/temp - sudo rm -rf ./qms-desktop-package - sudo rm -rf ./services echo "Disk space after cleanup:" df -h diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2a7465ed1c..9cd99056ed 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -262,7 +262,7 @@ jobs: run: | cd ./tests ./profile-start.sh - - name: Free space for tests + - name: Free temp uses: ./.github/actions/free-disk-space - name: Run UI tests run: | @@ -395,7 +395,7 @@ jobs: run: | cd ./tests ./profile-start.sh - - name: Free space for tests + - name: Free temp uses: ./.github/actions/free-disk-space - name: Run UI tests run: | @@ -488,7 +488,7 @@ jobs: run: | cd ./qms-tests/sanity node ../../common/scripts/install-run-rushx.js ci - - name: Free space for tests + - name: Free temp uses: ./.github/actions/free-disk-space - name: Run UI tests run: | @@ -568,7 +568,7 @@ jobs: cd ./ws-tests export DO_CLEAN=true ./prepare.sh - - name: Free space for tests + - name: Free temp uses: ./.github/actions/free-disk-space - name: Run API tests run: | From 5c028a00f8089e1f4c319824604a92f3b2c6a4c5 Mon Sep 17 00:00:00 2001 From: Artem Savchenko Date: Tue, 18 Nov 2025 13:21:14 +0700 Subject: [PATCH 08/10] Check root space Signed-off-by: Artem Savchenko --- .github/actions/free-disk-space/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/free-disk-space/action.yml b/.github/actions/free-disk-space/action.yml index d4ad22b523..469ef98109 100644 --- a/.github/actions/free-disk-space/action.yml +++ b/.github/actions/free-disk-space/action.yml @@ -8,6 +8,7 @@ runs: run: | echo "Disk space before cleanup:" df -h + du -sh /dev/root/* 2>/dev/null | sort -h sudo rm -rf ./common/temp echo "Disk space after cleanup:" df -h From cf665d07aa2631852c79bc77b33e9449dc8358e0 Mon Sep 17 00:00:00 2001 From: Artem Savchenko Date: Tue, 18 Nov 2025 13:34:58 +0700 Subject: [PATCH 09/10] Extened cleanup Signed-off-by: Artem Savchenko --- .github/actions/free-disk-space/action.yml | 10 +++++++--- .github/workflows/main.yml | 8 ++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/actions/free-disk-space/action.yml b/.github/actions/free-disk-space/action.yml index 469ef98109..39c375b2c3 100644 --- a/.github/actions/free-disk-space/action.yml +++ b/.github/actions/free-disk-space/action.yml @@ -1,14 +1,18 @@ -name: 'Free Temp' +name: 'Free Space' description: 'Free up disk space by removing files and directories that are not needed for tests.' runs: using: 'composite' steps: - - name: Free temp + - name: Free space shell: bash run: | echo "Disk space before cleanup:" df -h - du -sh /dev/root/* 2>/dev/null | sort -h sudo rm -rf ./common/temp + sudo rm -rf /usr/share/dotnet + sudo rm -rf /usr/local/lib/android + sudo rm -rf /usr/share/az_* + sudo rm -rf /opt/az + sudo rm -rf /usr/lib/google-cloud-sdk echo "Disk space after cleanup:" df -h diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9cd99056ed..8be0323554 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -262,7 +262,7 @@ jobs: run: | cd ./tests ./profile-start.sh - - name: Free temp + - name: Free space uses: ./.github/actions/free-disk-space - name: Run UI tests run: | @@ -395,7 +395,7 @@ jobs: run: | cd ./tests ./profile-start.sh - - name: Free temp + - name: Free space uses: ./.github/actions/free-disk-space - name: Run UI tests run: | @@ -488,7 +488,7 @@ jobs: run: | cd ./qms-tests/sanity node ../../common/scripts/install-run-rushx.js ci - - name: Free temp + - name: Free space uses: ./.github/actions/free-disk-space - name: Run UI tests run: | @@ -568,7 +568,7 @@ jobs: cd ./ws-tests export DO_CLEAN=true ./prepare.sh - - name: Free temp + - name: Free space uses: ./.github/actions/free-disk-space - name: Run API tests run: | From 77391bbbca7681dd9dbbef79bc1023c6fda5a552 Mon Sep 17 00:00:00 2001 From: Artem Savchenko Date: Tue, 18 Nov 2025 14:12:32 +0700 Subject: [PATCH 10/10] Do not remove temp Signed-off-by: Artem Savchenko --- .github/actions/free-disk-space/action.yml | 1 - .github/workflows/main.yml | 18 ++++++++---------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/actions/free-disk-space/action.yml b/.github/actions/free-disk-space/action.yml index 39c375b2c3..1eb453fa6e 100644 --- a/.github/actions/free-disk-space/action.yml +++ b/.github/actions/free-disk-space/action.yml @@ -8,7 +8,6 @@ runs: run: | echo "Disk space before cleanup:" df -h - sudo rm -rf ./common/temp sudo rm -rf /usr/share/dotnet sudo rm -rf /usr/local/lib/android sudo rm -rf /usr/share/az_* diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8be0323554..260c59e71b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -240,7 +240,8 @@ jobs: with: username: hardcoreeng password: ${{ secrets.DOCKER_ACCESS_TOKEN }} - + - name: Free space + uses: ./.github/actions/free-disk-space - name: Docker Build run: node common/scripts/install-run-rush.js docker env: @@ -262,8 +263,6 @@ jobs: run: | cd ./tests ./profile-start.sh - - name: Free space - uses: ./.github/actions/free-disk-space - name: Run UI tests run: | cd ./tests/sanity @@ -373,7 +372,8 @@ jobs: with: username: hardcoreeng password: ${{ secrets.DOCKER_ACCESS_TOKEN }} - + - name: Free space + uses: ./.github/actions/free-disk-space - name: Docker Build run: node common/scripts/install-run-rush.js docker env: @@ -395,8 +395,6 @@ jobs: run: | cd ./tests ./profile-start.sh - - name: Free space - uses: ./.github/actions/free-disk-space - name: Run UI tests run: | cd ./tests/sanity @@ -471,6 +469,8 @@ jobs: with: username: hardcoreeng password: ${{ secrets.DOCKER_ACCESS_TOKEN }} + - name: Free space + uses: ./.github/actions/free-disk-space - name: Docker Build run: node common/scripts/install-run-rush.js docker env: @@ -488,8 +488,6 @@ jobs: run: | cd ./qms-tests/sanity node ../../common/scripts/install-run-rushx.js ci - - name: Free space - uses: ./.github/actions/free-disk-space - name: Run UI tests run: | cd ./qms-tests/sanity @@ -555,6 +553,8 @@ jobs: with: username: hardcoreeng password: ${{ secrets.DOCKER_ACCESS_TOKEN }} + - name: Free space + uses: ./.github/actions/free-disk-space - name: Docker Build run: node common/scripts/install-run-rush.js docker env: @@ -568,8 +568,6 @@ jobs: cd ./ws-tests export DO_CLEAN=true ./prepare.sh - - name: Free space - uses: ./.github/actions/free-disk-space - name: Run API tests run: | cd ./ws-tests/api-tests