From d0c508f79a541332a156ce168b91617db94ec6ad Mon Sep 17 00:00:00 2001 From: Mikhail Ryzhov Date: Fri, 5 Apr 2024 14:12:49 +0200 Subject: [PATCH 1/5] clenaup ccache share --- ...eanup_pip_cache.yml => cleanup_caches.yml} | 29 +++++++++++++++++-- .github/workflows/linux_riscv.yml | 3 +- 2 files changed, 28 insertions(+), 4 deletions(-) rename .github/workflows/{cleanup_pip_cache.yml => cleanup_caches.yml} (53%) diff --git a/.github/workflows/cleanup_pip_cache.yml b/.github/workflows/cleanup_caches.yml similarity index 53% rename from .github/workflows/cleanup_pip_cache.yml rename to .github/workflows/cleanup_caches.yml index 355d0d68d7cf93..14f3407f6f9573 100644 --- a/.github/workflows/cleanup_pip_cache.yml +++ b/.github/workflows/cleanup_caches.yml @@ -1,12 +1,14 @@ -name: Cleanup PIP caches +name: Cleanup caches on: workflow_dispatch: schedule: # at 00:00 on the 1st day of every month - cron: '0 0 1 * *' + # TODO: need to remove, only for debug: + pull_request: jobs: - Cleanup_PIP_Caches: + Cleanup_PIP: runs-on: aks-linux-2-cores-8gb container: image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04 @@ -30,3 +32,26 @@ jobs: run: | echo "Cache info: " du -h -d2 ${PIP_CACHE_PATH} + + Cleanup_CCACHE: + runs-on: aks-linux-2-cores-8gb + container: + image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04 + volumes: + - /mount:/mount + env: + CCACHE_PATH: /mount/caches/ccache/ubuntu22_riscv64 + + steps: + - name: Checkout cach action + uses: actions/checkout@v4 + with: + sparse-checkout: .github/actions/cache + + - name: Cleanup ccache + uses: ./.github/actions/cache/cleanup + with: + cache-size: 10 + max-cache-size: 50 + cache-path: ${{ env.CCACHE_PATH }} + key: '*' diff --git a/.github/workflows/linux_riscv.yml b/.github/workflows/linux_riscv.yml index 87ac7c117e8d87..394f0bcdacab98 100644 --- a/.github/workflows/linux_riscv.yml +++ b/.github/workflows/linux_riscv.yml @@ -96,10 +96,9 @@ jobs: max-cache-size: 50 cache-path: ${{ env.CCACHE_REMOTE_DIR }} path: ${{ env.CCACHE_DIR }} - key: ${{ runner.os }}-${{ runner.arch }}-${{ github.ref_name == 'master' && '' || github.event.number }}ccache-${{ github.sha }} + key: ${{ runner.os }}-${{ runner.arch }}-ccache-${{ github.sha }} restore-keys: | ${{ runner.os }}-${{ runner.arch }}-ccache - ${{ runner.os }}-${{ runner.arch }}-${{ github.event.number }}ccache - name: Init submodules for non-Conan dependencies run: | From a54ed4c86b2ee89f429debce07bb464056b96d48 Mon Sep 17 00:00:00 2001 From: Mikhail Ryzhov Date: Fri, 5 Apr 2024 14:25:18 +0200 Subject: [PATCH 2/5] saved disabled --- .github/workflows/linux_riscv.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linux_riscv.yml b/.github/workflows/linux_riscv.yml index 394f0bcdacab98..78b65179a9d8c5 100644 --- a/.github/workflows/linux_riscv.yml +++ b/.github/workflows/linux_riscv.yml @@ -90,7 +90,7 @@ jobs: id: ccache_restore uses: ./openvino/.github/actions/cache with: - save-always: true + save-always: ${{ github.event_name == 'push' && 'true' || 'false' }} cleanup-always: ${{ github.event_name == 'push' && 'true' || 'false' }} cache-size: 10 max-cache-size: 50 From fa0ec5efdba36e8c5de5b079d07516b783650aec Mon Sep 17 00:00:00 2001 From: Mikhail Ryzhov Date: Fri, 5 Apr 2024 14:30:07 +0200 Subject: [PATCH 3/5] fixed regexp --- .github/workflows/cleanup_caches.yml | 2 +- cache | 1 + src/plugins/intel_gpu/thirdparty/onednn_gpu | 2 +- thirdparty/ade | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) create mode 160000 cache create mode 160000 thirdparty/ade diff --git a/.github/workflows/cleanup_caches.yml b/.github/workflows/cleanup_caches.yml index 14f3407f6f9573..68f956c041b711 100644 --- a/.github/workflows/cleanup_caches.yml +++ b/.github/workflows/cleanup_caches.yml @@ -54,4 +54,4 @@ jobs: cache-size: 10 max-cache-size: 50 cache-path: ${{ env.CCACHE_PATH }} - key: '*' + key: '.' diff --git a/cache b/cache new file mode 160000 index 00000000000000..ab5e6d0c87105b --- /dev/null +++ b/cache @@ -0,0 +1 @@ +Subproject commit ab5e6d0c87105b4c9c2047343972218f562e4319 diff --git a/src/plugins/intel_gpu/thirdparty/onednn_gpu b/src/plugins/intel_gpu/thirdparty/onednn_gpu index 4e6ff043c43965..26c5598cccbc14 160000 --- a/src/plugins/intel_gpu/thirdparty/onednn_gpu +++ b/src/plugins/intel_gpu/thirdparty/onednn_gpu @@ -1 +1 @@ -Subproject commit 4e6ff043c439652fcf6c400ac4e0c81bbac7c71c +Subproject commit 26c5598cccbc144ff49255a0b44f00cb9b19e6f3 diff --git a/thirdparty/ade b/thirdparty/ade new file mode 160000 index 00000000000000..0e8a2ccdd34f29 --- /dev/null +++ b/thirdparty/ade @@ -0,0 +1 @@ +Subproject commit 0e8a2ccdd34f29dba55894f5f3c5179809888b9e From 5df59972f84375a63d9481ba0c0307a03db9e215 Mon Sep 17 00:00:00 2001 From: Mikhail Ryzhov Date: Fri, 5 Apr 2024 14:34:11 +0200 Subject: [PATCH 4/5] Revert "fixed regexp" This reverts commit fa0ec5efdba36e8c5de5b079d07516b783650aec. --- cache | 1 - src/plugins/intel_gpu/thirdparty/onednn_gpu | 2 +- thirdparty/ade | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) delete mode 160000 cache delete mode 160000 thirdparty/ade diff --git a/cache b/cache deleted file mode 160000 index ab5e6d0c87105b..00000000000000 --- a/cache +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ab5e6d0c87105b4c9c2047343972218f562e4319 diff --git a/src/plugins/intel_gpu/thirdparty/onednn_gpu b/src/plugins/intel_gpu/thirdparty/onednn_gpu index 26c5598cccbc14..4e6ff043c43965 160000 --- a/src/plugins/intel_gpu/thirdparty/onednn_gpu +++ b/src/plugins/intel_gpu/thirdparty/onednn_gpu @@ -1 +1 @@ -Subproject commit 26c5598cccbc144ff49255a0b44f00cb9b19e6f3 +Subproject commit 4e6ff043c439652fcf6c400ac4e0c81bbac7c71c diff --git a/thirdparty/ade b/thirdparty/ade deleted file mode 160000 index 0e8a2ccdd34f29..00000000000000 --- a/thirdparty/ade +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0e8a2ccdd34f29dba55894f5f3c5179809888b9e From d35a9a7c7faf37eb172c0003cd1f6ae03008f753 Mon Sep 17 00:00:00 2001 From: Mikhail Ryzhov Date: Fri, 5 Apr 2024 14:41:44 +0200 Subject: [PATCH 5/5] reverted debug trigger --- .github/workflows/cleanup_caches.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/cleanup_caches.yml b/.github/workflows/cleanup_caches.yml index 68f956c041b711..c18e8ca5828f69 100644 --- a/.github/workflows/cleanup_caches.yml +++ b/.github/workflows/cleanup_caches.yml @@ -4,8 +4,6 @@ on: schedule: # at 00:00 on the 1st day of every month - cron: '0 0 1 * *' - # TODO: need to remove, only for debug: - pull_request: jobs: Cleanup_PIP: @@ -54,4 +52,4 @@ jobs: cache-size: 10 max-cache-size: 50 cache-path: ${{ env.CCACHE_PATH }} - key: '.' + key: '*'