Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

23.3 Pipeline Maintenance #403

Open
wants to merge 9 commits into
base: customizations/23.3.19
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 70 additions & 24 deletions .github/workflows/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:
timeout-minutes: ${{ inputs.timeout_minutes }}
steps:
- name: Checkout regression repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: Altinity/clickhouse-regression
ref: ${{ inputs.commit }}
Expand All @@ -158,7 +158,7 @@ jobs:
SUITE=${{ matrix.SUITE }}
EOF
- name: Download json reports
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: ${{ env.REPORTS_PATH }}
name: build_report_package_${{ inputs.arch }}
Expand All @@ -175,12 +175,58 @@ jobs:
- name: Create and upload logs
if: always()
run: .github/create_and_upload_logs.sh 1
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ env.SUITE }}-${{ inputs.arch }}-artifacts
path: ${{ env.artifact_paths}}

Alter:
strategy:
fail-fast: false
matrix:
ONLY: [replace, attach, move]
needs: [runner_labels_setup]
runs-on: ${{ fromJson(needs.runner_labels_setup.outputs.runner_labels) }}
timeout-minutes: ${{ inputs.timeout_minutes }}
steps:
- name: Checkout regression repo
uses: actions/checkout@v4
with:
repository: Altinity/clickhouse-regression
ref: ${{ inputs.commit }}
- name: Set envs
run: |
cat >> "$GITHUB_ENV" << 'EOF'
REPORTS_PATH=${{ runner.temp }}/reports_dir
SUITE=alter
STORAGE=/${{ matrix.ONLY }}_partition
EOF
- name: Download json reports
uses: actions/download-artifact@v4
with:
path: ${{ env.REPORTS_PATH }}
name: build_report_package_${{ inputs.arch }}
- name: Setup
run: .github/setup.sh
- name: Get deb url
run: python3 .github/get-deb-url.py --reports-path ${{ env.REPORTS_PATH }} --github-env $GITHUB_ENV
- name: Run ${{ env.SUITE }} suite
run: python3
-u alter/regression.py
--clickhouse-binary-path ${{ env.clickhouse_binary_path }}
--only "/alter/${{ matrix.ONLY }} partition/*"
--attr project="$GITHUB_REPOSITORY" project.id="$GITHUB_REPOSITORY_ID" package="${{ env.clickhouse_binary_path }}" version="${{ env.version }}" user.name="$GITHUB_ACTOR" repository="https://github.com/Altinity/clickhouse-regression" commit.hash="$(git rev-parse HEAD)" job.id="$GITHUB_RUN_ID" job.url="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" arch="$(uname -i)"
${{ env.args }}
- name: Create and upload logs
if: always()
run: .github/create_and_upload_logs.sh 1
- uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ env.SUITE }}-${{ env.ONLY }}_partition-${{ inputs.arch }}-artifacts
path: ${{ env.artifact_paths}}

Benchmark:
strategy:
fail-fast: false
Expand All @@ -191,7 +237,7 @@ jobs:
timeout-minutes: ${{ inputs.timeout_minutes }}
steps:
- name: Checkout regression repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: Altinity/clickhouse-regression
ref: ${{ inputs.commit }}
Expand All @@ -203,7 +249,7 @@ jobs:
STORAGE=/${{ matrix.STORAGE }}
EOF
- name: Download json reports
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: ${{ env.REPORTS_PATH }}
name: build_report_package_${{ inputs.arch }}
Expand All @@ -228,7 +274,7 @@ jobs:
- name: Create and upload logs
if: always()
run: .github/create_and_upload_logs.sh 1
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: benchmark-${{ matrix.STORAGE }}-${{ inputs.arch }}-artifacts
Expand All @@ -240,7 +286,7 @@ jobs:
timeout-minutes: ${{ inputs.timeout_minutes }}
steps:
- name: Checkout regression repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: Altinity/clickhouse-regression
ref: ${{ inputs.commit }}
Expand All @@ -252,7 +298,7 @@ jobs:
STORAGE=/ssl
EOF
- name: Download json reports
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: ${{ env.REPORTS_PATH }}
name: build_report_package_${{ inputs.arch }}
Expand All @@ -270,7 +316,7 @@ jobs:
- name: Create and upload logs
if: always()
run: .github/create_and_upload_logs.sh 1
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ env.SUITE }}-${{ inputs.arch }}-ssl-artifacts
Expand All @@ -286,7 +332,7 @@ jobs:
timeout-minutes: ${{ inputs.timeout_minutes }}
steps:
- name: Checkout regression repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: Altinity/clickhouse-regression
ref: ${{ inputs.commit }}
Expand All @@ -297,7 +343,7 @@ jobs:
SUITE=ldap/${{ matrix.SUITE }}
EOF
- name: Download json reports
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: ${{ env.REPORTS_PATH }}
name: build_report_package_${{ inputs.arch }}
Expand All @@ -314,7 +360,7 @@ jobs:
- name: Create and upload logs
if: always()
run: .github/create_and_upload_logs.sh 1
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: ldap-${{ matrix.SUITE }}-${{ inputs.arch }}-artifacts
Expand All @@ -326,7 +372,7 @@ jobs:
timeout-minutes: ${{ inputs.timeout_minutes }}
steps:
- name: Checkout regression repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: Altinity/clickhouse-regression
ref: ${{ inputs.commit }}
Expand All @@ -337,7 +383,7 @@ jobs:
SUITE=parquet
EOF
- name: Download json reports
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: ${{ env.REPORTS_PATH }}
name: build_report_package_${{ inputs.arch }}
Expand All @@ -354,7 +400,7 @@ jobs:
- name: Create and upload logs
if: always()
run: .github/create_and_upload_logs.sh 1
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ env.SUITE }}-${{ inputs.arch }}-artifacts
Expand All @@ -370,7 +416,7 @@ jobs:
timeout-minutes: ${{ inputs.timeout_minutes }}
steps:
- name: Checkout regression repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: Altinity/clickhouse-regression
ref: ${{ inputs.commit }}
Expand All @@ -382,7 +428,7 @@ jobs:
STORAGE=${{ matrix.STORAGE}}
EOF
- name: Download json reports
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: ${{ env.REPORTS_PATH }}
name: build_report_package_${{ inputs.arch }}
Expand All @@ -404,7 +450,7 @@ jobs:
- name: Create and upload logs
if: always()
run: .github/create_and_upload_logs.sh 1
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ env.SUITE }}-${{ env.STORAGE }}-${{ inputs.arch }}-artifacts
Expand All @@ -420,7 +466,7 @@ jobs:
timeout-minutes: ${{ inputs.timeout_minutes }}
steps:
- name: Checkout regression repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: Altinity/clickhouse-regression
ref: ${{ inputs.commit }}
Expand All @@ -432,7 +478,7 @@ jobs:
STORAGE=/${{ matrix.STORAGE }}
EOF
- name: Download json reports
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: ${{ env.REPORTS_PATH }}
name: build_report_package_${{ inputs.arch }}
Expand All @@ -457,7 +503,7 @@ jobs:
- name: Create and upload logs
if: always()
run: .github/create_and_upload_logs.sh 1
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ env.SUITE }}-${{ matrix.STORAGE }}-${{ inputs.arch }}-artifacts
Expand All @@ -473,7 +519,7 @@ jobs:
timeout-minutes: ${{ inputs.timeout_minutes }}
steps:
- name: Checkout regression repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: Altinity/clickhouse-regression
- name: Set envs
Expand All @@ -484,7 +530,7 @@ jobs:
STORAGE=/${{ matrix.STORAGE }}
EOF
- name: Download json reports
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: ${{ env.REPORTS_PATH }}
name: build_report_package_${{ inputs.arch }}
Expand All @@ -508,7 +554,7 @@ jobs:
- name: Create and upload logs
if: always()
run: .github/create_and_upload_logs.sh 1
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ env.SUITE }}-${{ matrix.STORAGE }}-${{ inputs.arch }}-artifacts
Expand Down
Loading
Loading