fix(ci): use absolute github.workspace paths for coverage artifact upload/download
tracker-policy-pr / check-pr (pull_request) Successful in 9s
test / integration-docker (pull_request) Successful in 14s
test / unit (pull_request) Successful in 34s
test / integration-firecracker (pull_request) Successful in 3m8s
test / coverage (pull_request) Failing after 1m59s
test / publish-infra (pull_request) Has been skipped

The delphi-ci runner resolves relative paths in upload-artifact and
download-artifact from a different CWD than run: shell steps, so
'.coverage.unit' etc. were never found. Using ${{ github.workspace }}
gives an absolute path that does not depend on the JS action's CWD.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-07-21 04:53:33 +00:00
parent 5940b75bb7
commit 6afc91b2bb
+6 -6
View File
@@ -66,7 +66,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: coverage-unit
path: .coverage.unit
path: ${{ github.workspace }}/.coverage.unit
integration-docker:
runs-on: ubuntu-latest
@@ -97,7 +97,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: coverage-docker
path: .coverage.docker
path: ${{ github.workspace }}/.coverage.docker
# Integration tests against the Firecracker backend. Runs on a self-hosted
# KVM runner (label `kvm`) where /dev/kvm and the TAP/nft pool are available.
@@ -157,7 +157,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: coverage-firecracker
path: .coverage.firecracker
path: ${{ github.workspace }}/.coverage.firecracker
# Only upload the large rootfs artifact on main-branch pushes;
# PRs avoid the ~194 MB transfer. publish-infra only runs on main
@@ -206,19 +206,19 @@ jobs:
uses: actions/download-artifact@v3
with:
name: coverage-unit
path: .
path: ${{ github.workspace }}
- name: Download docker coverage artifact
uses: actions/download-artifact@v3
with:
name: coverage-docker
path: .
path: ${{ github.workspace }}
- name: Download firecracker coverage artifact
uses: actions/download-artifact@v3
with:
name: coverage-firecracker
path: .
path: ${{ github.workspace }}
- name: Combined coverage (unit + integration, incl. firecracker)
run: PYTHON=python3 bash scripts/coverage.sh aggregate critical