@@ -126,46 +126,38 @@ jobs:
126126 with :
127127 stage : Builds_2
128128 data : ${{ needs.RunConfig.outputs.data }}
129+ # stage for running non-required checks without being blocked by required checks (Test_1) if corresponding settings is selected
129130 Tests_2 :
130- needs : [RunConfig, Builds_2 ]
131+ needs : [RunConfig, Builds_1 ]
131132 if : ${{ !failure() && !cancelled() && contains(fromJson(needs.RunConfig.outputs.data).stages_data.stages_to_do, 'Tests_2') }}
132133 uses : ./.github/workflows/reusable_test_stage.yml
133134 with :
134135 stage : Tests_2
135136 data : ${{ needs.RunConfig.outputs.data }}
136- # stage for jobs that do not prohibit merge
137137 Tests_3 :
138- needs : [RunConfig, Builds_1, Tests_1, Builds_2, Tests_2 ]
138+ needs : [RunConfig, Builds_1, Tests_1]
139139 if : ${{ !failure() && !cancelled() && contains(fromJson(needs.RunConfig.outputs.data).stages_data.stages_to_do, 'Tests_3') }}
140140 uses : ./.github/workflows/reusable_test_stage.yml
141141 with :
142142 stage : Tests_3
143143 data : ${{ needs.RunConfig.outputs.data }}
144144
145145 # ################################ Reports #################################
146- # Reports should by run even if Builds_1/2 fail, so put them separately in wf (not in Tests_1/2)
147- Builds_1_Report :
146+ # Reports should run even if Builds_1/2 fail - run them separately (not in Tests_1/2/3 )
147+ Builds_Report :
148148 # run report check for failed builds to indicate the CI error
149- if : ${{ !cancelled() && needs.StyleCheck .result == 'success' && contains(fromJson(needs.RunConfig.outputs.data).jobs_data.jobs_to_do, 'ClickHouse build check') }}
150- needs : [RunConfig, StyleCheck, Builds_1]
149+ if : ${{ !cancelled() && needs.RunConfig .result == 'success' && contains(fromJson(needs.RunConfig.outputs.data).jobs_data.jobs_to_do, 'ClickHouse build check') }}
150+ needs : [RunConfig, StyleCheck, Builds_1, Builds_2 ]
151151 uses : ./.github/workflows/reusable_test.yml
152152 with :
153153 test_name : ClickHouse build check
154154 runner_type : style-checker-aarch64
155155 data : ${{ needs.RunConfig.outputs.data }}
156- Builds_2_Report :
157- # run report check for failed builds to indicate the CI error
158- if : ${{ !cancelled() && needs.StyleCheck.result == 'success' && contains(fromJson(needs.RunConfig.outputs.data).jobs_data.jobs_to_do, 'ClickHouse special build check') }}
159- needs : [RunConfig, StyleCheck, Builds_2]
160- uses : ./.github/workflows/reusable_test.yml
161- with :
162- test_name : ClickHouse special build check
163- runner_type : style-checker-aarch64
164- data : ${{ needs.RunConfig.outputs.data }}
165156
166157 CheckReadyForMerge :
167158 if : ${{ !cancelled() && needs.StyleCheck.result == 'success' }}
168- needs : [RunConfig, BuildDockers, StyleCheck, FastTest, Builds_1, Builds_2, Builds_1_Report, Builds_2_Report, Tests_1, Tests_2]
159+ # Test_2 or Test_3 must not have jobs required for Mergeable check
160+ needs : [RunConfig, BuildDockers, StyleCheck, FastTest, Builds_1, Builds_2, Builds_Report, Tests_1]
169161 runs-on : [self-hosted, style-checker-aarch64]
170162 steps :
171163 - name : Check out repository code
@@ -181,7 +173,7 @@ jobs:
181173 #
182174 FinishCheck :
183175 if : ${{ !cancelled() }}
184- needs : [RunConfig, BuildDockers, StyleCheck, FastTest, Builds_1, Builds_2, Builds_1_Report, Builds_2_Report , Tests_1, Tests_2, Tests_3]
176+ needs : [RunConfig, BuildDockers, StyleCheck, FastTest, Builds_1, Builds_2, Builds_Report , Tests_1, Tests_2, Tests_3]
185177 runs-on : [self-hosted, style-checker-aarch64]
186178 steps :
187179 - name : Check out repository code
@@ -204,8 +196,7 @@ jobs:
204196 concurrency :
205197 group : jepsen
206198 if : ${{ !failure() && !cancelled() && contains(fromJson(needs.RunConfig.outputs.data).jobs_data.jobs_to_do, 'ClickHouse Keeper Jepsen') }}
207- # jepsen needs binary_release build which is in Builds_2
208- needs : [RunConfig, Builds_2]
199+ needs : [RunConfig, Builds_1]
209200 uses : ./.github/workflows/reusable_test.yml
210201 with :
211202 test_name : ClickHouse Keeper Jepsen
0 commit comments