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

twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new f64021e95 ci: execute check-and-lint and build jobs in parallel (#3301)
f64021e95 is described below

commit f64021e95cb8368da00d590a3c23ee5292e35d95
Author: Twice <[email protected]>
AuthorDate: Fri Dec 19 15:57:54 2025 +0800

    ci: execute check-and-lint and build jobs in parallel (#3301)
    
    Before:
    
    total time = time(check-and-lint) + time(build jobs) = ~70min
    
    After:
    
    total time = max(time(check-and-lint), time(build jobs)) = ~40min
---
 .github/workflows/kvrocks.yaml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/kvrocks.yaml b/.github/workflows/kvrocks.yaml
index d66b67b26..80fa80573 100644
--- a/.github/workflows/kvrocks.yaml
+++ b/.github/workflows/kvrocks.yaml
@@ -64,7 +64,7 @@ jobs:
 
   check-and-lint:
     name: Lint and check code
-    needs: [precondition]
+    needs: [precondition, check-typos]
     if: ${{ needs.precondition.outputs.docs_only != 'true' }}
     runs-on: ubuntu-24.04
     steps:
@@ -103,7 +103,7 @@ jobs:
 
   build-and-test:
     name: Build and test
-    needs: [precondition, check-and-lint, check-typos]
+    needs: [precondition, check-typos]
     if: ${{ needs.precondition.outputs.docs_only != 'true' }}
     strategy:
       fail-fast: false
@@ -457,7 +457,7 @@ jobs:
 
   check-docker:
     name: Check Docker image
-    needs: [precondition, check-and-lint, check-typos]
+    needs: [precondition, check-typos]
     if: ${{ needs.precondition.outputs.docs_only != 'true' }}
     runs-on: ${{ matrix.os }}
     strategy:
@@ -491,7 +491,7 @@ jobs:
 
   build-and-test-in-container:
     name: Build and test in container
-    needs: [precondition, check-and-lint, check-typos]
+    needs: [precondition, check-typos]
     if: ${{ needs.precondition.outputs.docs_only != 'true' }}
     strategy:
       fail-fast: false
@@ -668,6 +668,7 @@ jobs:
     runs-on: ubuntu-latest
     needs:
       - precondition
+      - check-and-lint
       - build-and-test
       - build-and-test-in-container
       - check-docker

Reply via email to