From 77ec998f17d60e023a167dc71f081cb68110fe52 Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" Date: Thu, 19 Nov 2026 19:36:38 +0100 Subject: [PATCH 1/2] HDDS-17830. Run populate-cache before build in forks --- .github/workflows/populate-cache.yml | 2 -- .github/workflows/post-commit.yml | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/populate-cache.yml b/.github/workflows/populate-cache.yml index 4238d26353ec..040408994e24 100644 --- a/.github/workflows/populate-cache.yml +++ b/.github/workflows/populate-cache.yml @@ -21,8 +21,6 @@ on: push: branches: - master - - ozone-2.1 - - ozone-2.2 paths: - 'pom.xml' - '**/pom.xml' diff --git a/.github/workflows/post-commit.yml b/.github/workflows/post-commit.yml index d5900da387cd..aebd9fa0edc3 100644 --- a/.github/workflows/post-commit.yml +++ b/.github/workflows/post-commit.yml @@ -45,6 +45,7 @@ on: - '!.github/actions/setup-java-with-cache/**' - '!.github/workflows/check.yml' - '!.github/workflows/ci.yml' + - '!.github/workflows/populate-cache.yml' - '!.github/workflows/post-commit.yml' - '!.github/workflows/generate-config-doc.yml' - '!.github/workflows/update-ozone-site-config-doc.yml' @@ -55,7 +56,14 @@ concurrency: permissions: contents: read jobs: + cache: + uses: $/.github/workflows/populate-cache.yml + if: github.event_name != 'pull_request' + CI: + needs: + - cache + if: always() # even if cache is skipped or fails uses: $/.github/workflows/ci.yml secrets: DEVELOCITY_ACCESS_KEY: ${{ secrets.OZONE_DEVELOCITY_ACCESS_KEY }} From 471ffa4c046f3155211a70adc29c7ab06fb451cd Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" Date: Fri, 20 Nov 2026 13:14:39 +0100 Subject: [PATCH 2/2] run CI only if not cancelled --- .github/workflows/post-commit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/post-commit.yml b/.github/workflows/post-commit.yml index aebd9fa0edc3..7365413dab28 100644 --- a/.github/workflows/post-commit.yml +++ b/.github/workflows/post-commit.yml @@ -63,7 +63,7 @@ jobs: CI: needs: - cache - if: always() # even if cache is skipped or fails + if: ${{ !cancelled() }} # even if cache is skipped or fails uses: $/.github/workflows/ci.yml secrets: DEVELOCITY_ACCESS_KEY: ${{ secrets.OZONE_DEVELOCITY_ACCESS_KEY }}