From b677a33978bd785c91c4cbcc84c8fb01972c4d4f Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Sun, 4 Oct 2026 20:01:16 +0200 Subject: [PATCH] build: retain final package when artifact upload fails --- .github/workflows/linux.yml | 4 +++- deploy/README.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 896829cc..f5bb2566 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -69,9 +69,11 @@ jobs: path: ${{ runner.temp }}/strata-package-${{ github.run_id }}/ if-no-files-found: error retention-days: 7 + - name: Remove uploaded package copy + run: rm -rf -- "${RUNNER_TEMP}/strata-package-${GITHUB_RUN_ID}" - name: Remove private build intermediates if: always() - run: rm -rf -- "${RUNNER_TEMP}/strata-static-cuda-${GITHUB_RUN_ID}" "${RUNNER_TEMP}/strata-package-build-${GITHUB_RUN_ID}" "${RUNNER_TEMP}/strata-package-${GITHUB_RUN_ID}" + run: rm -rf -- "${RUNNER_TEMP}/strata-static-cuda-${GITHUB_RUN_ID}" "${RUNNER_TEMP}/strata-package-build-${GITHUB_RUN_ID}" linux-static-cli: needs: verify diff --git a/deploy/README.md b/deploy/README.md index cefa9f12..5aeaaa59 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -654,7 +654,9 @@ the build host; the resulting runtime does not require it. The manual `static_cuda_package` workflow builds the engine then assembles and uploads the combined preview to the **private repository**, with seven-day -artifact retention. It cleans owned build directories after the upload attempt. +artifact retention. It cleans owned build directories after the upload attempt; the final package +copy is removed only after a successful upload. A failed upload leaves that +private final package available for recovery. The normal hosted job uses `--cpu-fixture` to exercise the same assembly path and then tests exact serving output/restart against the external fixture. CPU artifacts are explicitly marked and are not CUDA releases. No model weights,