This is an automated email from the ASF dual-hosted git repository.

shoothzj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new 2970aef9d0 ci: fix docs changes expected status hang forever (#4395)
2970aef9d0 is described below

commit 2970aef9d072566a06cf3fd9646e742192ffef97
Author: ZhangJian He <[email protected]>
AuthorDate: Wed May 29 08:08:48 2024 +0800

    ci: fix docs changes expected status hang forever (#4395)
---
 .asf.yaml                   | 16 +---------------
 .github/workflows/bk-ci.yml | 43 ++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 43 insertions(+), 16 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index 57c79b5e62..b1fdee64bd 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -49,21 +49,7 @@ github:
         # Contexts are the names of checks that must pass.
         # See ./github/workflows/README.md for more documentation on this list.
         contexts:
-          - PR Validation
-          - Backward compatibility tests
-          - Bookie Tests
-          - Build with macos on JDK 11
-          - Build with windows on JDK 11
-          - Client Tests
-          - Compatibility Check Java8
-          - Compatibility Check Java11
-          - Compatibility Check Java17
-          - Compatibility Check Java21
-          - Integration Tests
-          - Remaining Tests
-          - Replication Tests
-          - StreamStorage Tests
-          - TLS Tests
+          - BookKeeper CI checks completed
 
       required_pull_request_reviews:
         dismiss_stale_reviews: false
diff --git a/.github/workflows/bk-ci.yml b/.github/workflows/bk-ci.yml
index 22ab9bb648..9d37b87692 100644
--- a/.github/workflows/bk-ci.yml
+++ b/.github/workflows/bk-ci.yml
@@ -90,7 +90,7 @@ jobs:
         if: steps.check_changes.outputs.docs_only != 'true'
         run: dev/check-all-licenses
 
-      - name:  Generate Javadoc
+      - name: Generate Javadoc
         if: steps.check_changes.outputs.docs_only != 'true'
         run: mvn -B -nsu -am -pl 
bookkeeper-common,bookkeeper-server,:bookkeeper-stats-api,:bookkeeper-stats-providers,:codahale-metrics-provider,:prometheus-metrics-provider
 javadoc:aggregate -DskipTests -Pdelombok -Dchesktyle.skip -Dspotbugs.skip
     outputs:
@@ -533,3 +533,44 @@ jobs:
           name: dependency report
           path: target/dependency-check-report.html
           retention-days: 7
+
+  bookkeeper-ci-checks-completed:
+    name: "BookKeeper CI checks completed"
+    if: ${{ always() && ((github.event_name != 'schedule') || 
(github.repository == 'apache/bookkeeper')) }}
+    runs-on: ubuntu-latest
+    timeout-minutes: 10
+    needs: [
+      'backward-compatibility-tests',
+      'build-and-license-check',
+      'integration-tests',
+      'jdk-compatibility-checks',
+      'macos-build',
+      'owasp-dependency-check',
+      'typo-check',
+      'unit-tests',
+      'windows-build'
+    ]
+    steps:
+      - name: Check build-and-license-check and typo-check success
+        run: |
+          if [[ ! ( \
+                   "${{ needs.build-and-license-check.result }}" == "success" \
+                && "${{ needs.typo-check.result }}" == "success" \
+               ) ]]; then
+            echo "Required jobs haven't been completed successfully."
+            exit 1
+          fi
+      - name: Check that other required jobs were completed successfully
+        if: ${{ needs.build-and-license-check.outputs.docs_only != 'true' }}
+        run: |
+          if [[ ! ( \
+                   "${{ needs.backward-compatibility-tests.result }}" == 
"success" \
+                && "${{ needs.integration-tests.result }}" == "success" \
+                && "${{ needs.jdk-compatibility-checks.result }}" == "success" 
\
+                && "${{ needs.macos-build.result }}" == "success" \
+                && "${{ needs.unit-tests.result }}" == "success" \
+                && "${{ needs.windows-build.result }}" == "success" \
+               ) ]]; then
+            echo "Required jobs haven't been completed successfully."
+            exit 1
+          fi

Reply via email to