Skip to content

Commit 0a347b6

Browse files
authored
Merge branch 'antalya-25.6.5' into backport/antalya-25.6.5/86414
2 parents 0fa864a + abb3c0b commit 0a347b6

File tree

331 files changed

+10250
-3249
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

331 files changed

+10250
-3249
lines changed

.github/actions/create_workflow_report/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@ runs:
2121
2222
- name: Create and upload workflow report
2323
env:
24+
PR_NUMBER: ${{ github.event.pull_request.number || 0 }}
2425
ACTIONS_RUN_URL: ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }}
26+
COMMIT_SHA: ${{ steps.set_version.outputs.commit_sha || github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
2527
FINAL: ${{ inputs.final }}
2628
shell: bash
2729
run: |
2830
pip install clickhouse-driver==0.2.8 numpy==1.26.4 pandas==2.0.3 jinja2==3.1.5
2931
3032
CMD="python3 .github/actions/create_workflow_report/create_workflow_report.py"
31-
ARGS="--actions-run-url $ACTIONS_RUN_URL --known-fails tests/broken_tests.json --cves"
33+
ARGS="--actions-run-url $ACTIONS_RUN_URL --known-fails tests/broken_tests.json --cves --pr-number $PR_NUMBER"
3234
3335
set +e -x
3436
if [[ "$FINAL" == "false" ]]; then

.github/actions/create_workflow_report/create_workflow_report.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,8 @@ def get_build_report_links(
592592
for job in build_job_names:
593593
if job not in build_report_links:
594594
build_report_links[job] = link_template.format(job_name=job)
595+
596+
if len(build_report_links) > 0:
595597
return build_report_links
596598

597599
# No cache or build result was found, guess the links
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# This script is for generating preview reports when invoked as a post-hook from a praktika job
33
pip install clickhouse-driver==0.2.8 numpy==1.26.4 pandas==2.0.3 jinja2==3.1.5
4-
ARGS="--mark-preview --known-fails tests/broken_tests.json --cves --actions-run-url $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
4+
ARGS="--mark-preview --known-fails tests/broken_tests.json --cves --actions-run-url $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID --pr-number $PR_NUMBER"
55
CMD="python3 .github/actions/create_workflow_report/create_workflow_report.py"
66
$CMD $ARGS
77

.github/workflows/backport_branches.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ jobs:
14941494
secrets: inherit
14951495
with:
14961496
docker_image: altinityinfra/clickhouse-server
1497-
# version: ${{ fromJson(needs.config_workflow.outputs.data).custom_data.version.string }}
1497+
version: ${{ fromJson(needs.config_workflow.outputs.data).custom_data.version.string }}
14981498
tag-suffix: ${{ matrix.suffix }}
14991499
GrypeScanKeeper:
15001500
needs: [config_workflow, docker_keeper_image]
@@ -1503,7 +1503,7 @@ jobs:
15031503
secrets: inherit
15041504
with:
15051505
docker_image: altinityinfra/clickhouse-keeper
1506-
# version: ${{ fromJson(needs.config_workflow.outputs.data).custom_data.version.string }}
1506+
version: ${{ fromJson(needs.config_workflow.outputs.data).custom_data.version.string }}
15071507

15081508
RegressionTestsRelease:
15091509
needs: [config_workflow, build_amd_release]
@@ -1512,7 +1512,7 @@ jobs:
15121512
secrets: inherit
15131513
with:
15141514
runner_type: altinity-on-demand, altinity-regression-tester
1515-
commit: 38b4f3c4cbcf7b38c97e16793c210a1496075af7
1515+
commit: aa4204a74b901a0f2ea7c9f1d631d98221554fb1
15161516
arch: release
15171517
build_sha: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
15181518
timeout_minutes: 300
@@ -1524,7 +1524,7 @@ jobs:
15241524
secrets: inherit
15251525
with:
15261526
runner_type: altinity-on-demand, altinity-regression-tester-aarch64
1527-
commit: 38b4f3c4cbcf7b38c97e16793c210a1496075af7
1527+
commit: aa4204a74b901a0f2ea7c9f1d631d98221554fb1
15281528
arch: aarch64
15291529
build_sha: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
15301530
timeout_minutes: 300

.github/workflows/grype_scan.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ jobs:
6969
VERSION=$SPECIFIED_VERSION
7070
fi
7171
echo "docker_image=${{ inputs.docker_image }}:$PR_NUMBER-$VERSION$TAG_SUFFIX" >> $GITHUB_OUTPUT
72-
echo "commit_sha=$CLICKHOUSE_VERSION_GITHASH" >> $GITHUB_OUTPUT
7372
7473
- name: Run Grype Scan
7574
run: |
@@ -85,7 +84,7 @@ jobs:
8584
id: upload_results
8685
env:
8786
S3_BUCKET: "altinity-build-artifacts"
88-
COMMIT_SHA: ${{ steps.set_version.outputs.commit_sha || github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
87+
COMMIT_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
8988
PR_NUMBER: ${{ env.PR_NUMBER || github.event.pull_request.number || 0 }}
9089
DOCKER_IMAGE: ${{ steps.set_version.outputs.docker_image || inputs.docker_image }}
9190
run: |
@@ -132,15 +131,18 @@ jobs:
132131
with:
133132
github-token: ${{ secrets.GITHUB_TOKEN }}
134133
script: |
134+
const totalHighCritical = '${{ steps.create_summary.outputs.total_high_critical }}';
135+
const hasError = totalHighCritical === '';
136+
const hasVulnerabilities = parseInt(totalHighCritical) > 0;
135137
github.rest.repos.createCommitStatus({
136138
owner: context.repo.owner,
137139
repo: context.repo.repo,
138140
sha: '${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}',
139-
state: '${{ steps.create_summary.outputs.total_high_critical > 0 && 'failure' || 'success' }}',
141+
state: hasError ? 'error' : hasVulnerabilities ? 'failure' : 'success',
140142
target_url: '${{ steps.upload_results.outputs.https_s3_path }}/results.html',
141-
description: 'Grype Scan Completed with ${{ steps.create_summary.outputs.total_high_critical }} high/critical vulnerabilities',
143+
description: hasError ? 'An error occurred' : `Grype Scan Completed with ${totalHighCritical} high/critical vulnerabilities`,
142144
context: 'Grype Scan ${{ steps.set_version.outputs.docker_image || inputs.docker_image }}'
143-
})
145+
});
144146
145147
- name: Upload artifacts
146148
if: always()

0 commit comments

Comments
 (0)