Skip to content

Commit a1da223

Browse files
committed
support live updating report
1 parent 56b50aa commit a1da223

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/release_branches.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ jobs:
6060
- name: Re-create GH statuses for skipped jobs if any
6161
run: |
6262
python3 "$GITHUB_WORKSPACE/tests/ci/ci.py" --infile ${{ runner.temp }}/ci_run_data.json --update-gh-statuses
63+
- name: Note report location to summary
64+
env:
65+
PR_NUMBER: ${{ github.event.pull_request.number || 0 }}
66+
COMMIT_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
67+
run: |
68+
REPORT_LINK=https://s3.amazonaws.com/altinity-build-artifacts/$PR_NUMBER/$COMMIT_SHA/ci_run_report.html
69+
echo "Workflow Run Report: [View Report]($REPORT_LINK)" >> $GITHUB_STEP_SUMMARY
70+
6371
BuildDockers:
6472
needs: [RunConfig]
6573
if: ${{ !failure() && !cancelled() }}

.github/workflows/reusable_test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,16 @@ jobs:
159159
if: ${{ !cancelled() }}
160160
run: |
161161
python3 "$GITHUB_WORKSPACE/tests/ci/ci.py" --infile ${{ toJson(inputs.data) }} --post --job-name '${{inputs.test_name}}'
162+
- name: Update workflow report
163+
if: ${{ !cancelled() }}
164+
uses: ./.github/actions/create_workflow_report
165+
env:
166+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
167+
CHECKS_DATABASE_HOST: ${{ secrets.CHECKS_DATABASE_HOST }}
168+
CHECKS_DATABASE_USER: ${{ secrets.CLICKHOUSE_TEST_STAT_LOGIN }}
169+
CHECKS_DATABASE_PASSWORD: ${{ secrets.CLICKHOUSE_TEST_STAT_PASSWORD }}
170+
with:
171+
final: false
162172
- name: Mark as done
163173
if: ${{ !cancelled() }}
164174
run: |

0 commit comments

Comments
 (0)