Skip to content

Commit a7904d3

Browse files
committed
add split alter suite
1 parent 33f9b2a commit a7904d3

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/regression.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,11 @@ jobs:
279279
fail-fast: false
280280
matrix:
281281
ONLY: [replace, attach, move]
282+
include:
283+
- ONLY: attach
284+
PART: 1
285+
- ONLY: attach
286+
PART: 2
282287
needs: [runner_labels_setup]
283288
runs-on: ${{ fromJson(needs.runner_labels_setup.outputs.runner_labels) }}
284289
timeout-minutes: ${{ inputs.timeout_minutes }}
@@ -315,8 +320,8 @@ jobs:
315320
python3
316321
-u alter/regression.py
317322
--clickhouse-binary-path ${{ env.clickhouse_path }}
318-
--only "/alter/${{ matrix.ONLY }} partition/*"
319-
--attr project="$GITHUB_REPOSITORY" project.id="$GITHUB_REPOSITORY_ID" package="${{ env.clickhouse_path }}" version="${{ env.version }}" user.name="$GITHUB_ACTOR" repository="https://github.com/Altinity/clickhouse-regression" commit.hash="$(git rev-parse HEAD)" job.name="$GITHUB_JOB (${{ matrix.ONLY }})" job.retry=$GITHUB_RUN_ATTEMPT job.url="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" arch="$(uname -i)"
323+
--only "/alter/${{ matrix.ONLY }} partition/${{ matrix.PART && format('part {0}/', matrix.PART) || '' }}*"
324+
--attr project="$GITHUB_REPOSITORY" project.id="$GITHUB_REPOSITORY_ID" package="${{ env.clickhouse_path }}" version="${{ env.version }}" user.name="$GITHUB_ACTOR" repository="https://github.com/Altinity/clickhouse-regression" commit.hash="$(git rev-parse HEAD)" job.name="$GITHUB_JOB (${{ matrix.ONLY }}${{ matrix.PART }})" job.retry=$GITHUB_RUN_ATTEMPT job.url="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" arch="$(uname -i)"
320325
${{ env.args }} || EXITCODE=$?;
321326
.github/add_link_to_logs.sh;
322327
exit $EXITCODE
@@ -326,7 +331,7 @@ jobs:
326331
env:
327332
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
328333
JOB_OUTCOME: ${{ steps.run_suite.outcome }}
329-
SUITE_NAME: "Regression ${{ inputs.arch }} Alter ${{ matrix.ONLY }} partition"
334+
SUITE_NAME: "Regression ${{ inputs.arch }} Alter ${{ matrix.ONLY }} partition ${{ matrix.PART }}"
330335
- name: Create and upload logs
331336
if: always()
332337
run: .github/create_and_upload_logs.sh 1
@@ -337,7 +342,7 @@ jobs:
337342
- uses: actions/upload-artifact@v4
338343
if: always()
339344
with:
340-
name: alter-${{ matrix.ONLY }}-${{ inputs.arch }}-artifacts
345+
name: alter-${{ matrix.ONLY }}${ matrix.PART && "-${{ matrix.PART }}" || ''}-${{ inputs.arch }}-artifacts
341346
path: ${{ env.artifact_paths}}
342347

343348
Benchmark:

0 commit comments

Comments
 (0)