Skip to content

Commit 2b2bf62

Browse files
committed
ci: add a job to analyse required checks
1 parent 85ebad4 commit 2b2bf62

File tree

3 files changed

+55
-22
lines changed

3 files changed

+55
-22
lines changed

.github/workflows/lint-pr.yml

-20
This file was deleted.

.github/workflows/format-checker.yml .github/workflows/lints.yml

+28-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
name: Format
1+
name: lints
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
pull-requests: read
48

59
jobs:
610
formatting:
@@ -36,3 +40,25 @@ jobs:
3640
- name: check py-session difference
3741
working-directory: session_py
3842
run: git diff --minimal --exit-code
43+
44+
pull-request-name:
45+
name: Validate PR title
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: amannn/action-semantic-pull-request@v5
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
52+
analyze-required-check:
53+
if: always()
54+
needs: # List of jobs that must pass. Add more jobs if needed.
55+
- formatting
56+
- license
57+
- py-session
58+
- pull-request-name
59+
runs-on: ubuntu-latest
60+
steps:
61+
- name: Decide whether the needed jobs succeeded or failed
62+
uses: re-actors/alls-green@release/v1
63+
with:
64+
jobs: ${{ toJSON(needs) }}

.github/workflows/standard-test-suite.yml .github/workflows/tests.yml

+27
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,30 @@ jobs:
103103
db-matrix: '["VectorDB"]'
104104
close-optimizer: "true"
105105
timeout-minutes: 360
106+
analyze-required-check:
107+
if: always()
108+
needs: # List of jobs that must pass. Add more jobs if needed.
109+
- unit-test
110+
- unit-mds
111+
- case-regression
112+
- standalone-test
113+
- standalone-test-no-optimizer
114+
- db-ce
115+
- db-ce-no-optimizer
116+
- standalone-test-vectordb
117+
- standalone-test-no-optimizer-vectordb
118+
- db-ce-vectordb
119+
- db-ce-no-optimizer-vectordb
120+
- remote-test
121+
- assembly-test
122+
- free-thread-test
123+
- tpc-h-regression-test
124+
- tpc-h-regression-test-no-optimizer
125+
- tpc-h-regression-test-vectordb
126+
- tpc-h-regression-test-no-optimizer-vectordb
127+
runs-on: ubuntu-latest
128+
steps:
129+
- name: Decide whether the needed jobs succeeded or failed
130+
uses: re-actors/alls-green@release/v1
131+
with:
132+
jobs: ${{ toJSON(needs) }}

0 commit comments

Comments
 (0)