build: retain final package when artifact upload fails

This commit is contained in:
Pavlo Ratushnyi
2026-10-04 20:01:16 +02:00
parent edea410253
commit b677a33978
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -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
+3 -1
View File
@@ -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,