Skip to content

Commit 5e3d3e4

Browse files
committed
fixes
1 parent 0288b2a commit 5e3d3e4

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/regression.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ jobs:
342342
- uses: actions/upload-artifact@v4
343343
if: always()
344344
with:
345-
name: alter-${{ matrix.ONLY }}${ matrix.PART && "-${{ matrix.PART }}" || ''}-${{ inputs.arch }}-artifacts
345+
name: alter-${{ matrix.ONLY }}${{ matrix.PART && format('-{0}', matrix.PART) || '' }}-${{ inputs.arch }}-artifacts
346346
path: ${{ env.artifact_paths}}
347347

348348
Benchmark:
@@ -439,11 +439,7 @@ jobs:
439439
REPORTS_PATH=${{runner.temp}}/reports_dir
440440
SUITE=clickhouse_keeper
441441
STORAGE=/${{ matrix.PART }}/${{ matrix.SSL }}
442-
if [ "${{ matrix.SSL }}" = "ssl" ]; then
443-
SSL="--ssl";
444-
else
445-
SSL="";
446-
fi
442+
SSL=${{ matrix.SSL == 'ssl' && '--ssl' || '' }}
447443
EOF
448444
- name: Setup
449445
run: .github/setup.sh
@@ -506,12 +502,15 @@ jobs:
506502
ref: ${{ inputs.commit }}
507503
- name: Set envs
508504
run: |
505+
if [ "$PART" -eq 1 ]; then
506+
echo ICEBERG_ONLY='"/iceberg/iceberg engine/rest catalog/*" "/iceberg/s3 table function/*" "/iceberg/icebergS3 table function/*" "/iceberg/iceberg cache"' >> "$GITHUB_ENV"
507+
else
508+
echo ICEBERG_ONLY='"/iceberg/iceberg engine/glue catalog/*" "/iceberg/iceberg table engine/*"' >> "$GITHUB_ENV"
509+
fi
509510
cat >> "$GITHUB_ENV" << 'EOF'
510511
REPORTS_PATH=${{ runner.temp }}/reports_dir
511512
SUITE=iceberg
512513
PART=${{ matrix.PART }}
513-
ICEBERG_1='"/iceberg/iceberg engine/rest catalog/*" "/iceberg/s3 table function/*" "/iceberg/icebergS3 table function/*" "/iceberg/iceberg cache"'
514-
ICEBERG_2='"/iceberg/iceberg engine/glue catalog/*" "/iceberg/iceberg table engine/*"'
515514
LOCALSTACK_AUTH_TOKEN=${{ secrets.LOCALSTACK_AUTH_TOKEN }}
516515
EOF
517516
- name: Setup
@@ -535,7 +534,7 @@ jobs:
535534
-u ${{ env.SUITE }}/regression.py
536535
--clickhouse-binary-path ${{ env.clickhouse_path }}
537536
--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.PART }})" job.retry=$GITHUB_RUN_ATTEMPT job.url="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" arch="$(uname -i)"
538-
--only $ICEBERG_${{ matrix.PART }}
537+
--only ${{ env.ICEBERG_ONLY }}
539538
${{ env.args }} || EXITCODE=$?;
540539
.github/add_link_to_logs.sh;
541540
exit $EXITCODE

0 commit comments

Comments
 (0)