Skip to content
Draft
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
5 changes: 5 additions & 0 deletions .github/workflows/gerrit-webhook-handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ on:
# # Workaround for https://github.com/actions/runner/issues/2372
# client_payload: ${{ github.event.client_payload != '' && toJson(github.event.client_payload) || '' }}

permissions:
actions: write # Required for gh run cancel in patch_set_status
id-token: write # Required for Codecov OIDC in the summary workflow
contents: read

jobs:

patch_set_status:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
type: string
default: 'failure'

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
merge_outputs:
# 22.04 used on purpose; it has lcov+gcov versions that are compatible with what
Expand Down Expand Up @@ -60,13 +64,25 @@ jobs:
# Now can run post processing
./autorun_post.py -d ../_autorun_summary -r ./
echo "result=success" >> "$GITHUB_OUTPUT"
echo "spdk_sha=$(git -C ./spdk rev-parse HEAD)" >> "$GITHUB_OUTPUT"

- name: Upload artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v4.4.0
with:
name: _autorun_summary
path: _autorun_summary

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5.5.2
with:
fail_ci_if_error: true
use_oidc: true
disable_search: true
files: ./_autorun_summary/ut_coverage/ut_cov_total.info
override_commit: ${{ steps.autorun_post.outputs.spdk_sha }}
slug: spdk/spdk

outputs:
result: ${{ steps.autorun_post.outputs.result }}

Expand Down