Merge pull request #915 from seaweedfs/ci/process-level-artifacts

ci: keep the process-level logs and shard results when a run fails
This commit is contained in:
Ping Qiu authored and GitHub committed 2026-12-01 20:32:30 -08:00
commit dee857b2f3
1 file changed
+18
+18
View File
@@ -255,6 +255,9 @@ jobs:
KZ_SIZE: 1G
F1_RUN: "1"
TEST_TIMEOUT: 15m
# A failed test copies each daemon's whole log here (keepFullLog);
# the step below keeps them as the run's artifact.
SWBLOCK_TEST_LOG_DIR: ${{ runner.temp }}/process-level-logs
run: |
set -euo pipefail
# SHARDS parallel shards, balanced by their last measured times
@@ -290,3 +293,18 @@ jobs:
cat "$RUNNER_TEMP"/process-level-*.status >"$RUNNER_TEMP/process-level.status"
python3 -I .github/scripts/required-tests-check.py --status "$RUNNER_TEMP/process-level.status" \
"$names" "$RUNNER_TEMP"/process-level-*.json
- name: Keep the process-level logs and shard results
# A failure's evidence outlives the runner's temp directory: each
# failed test's full daemon logs and every shard's raw JSON and log.
if: failure() && matrix.suite == 'process'
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: process-level-${{ github.run_id }}-${{ github.run_attempt }}
path: |
${{ runner.temp }}/process-level-logs
${{ runner.temp }}/process-level-*.json
${{ runner.temp }}/process-level-*.log
${{ runner.temp }}/process-level-*.status
retention-days: 14
if-no-files-found: warn