ci: upload only what the run wrote, and a failed upload is a warning (#184)
scripts/nightly.sh run-logs gathers the logs and DoE CSVs newer than the run's start, and the stages' output, into build/nightly/run-logs/; acceptance, nightly and release upload that, not every log in the tree, with continue-on-error (Captain Bob: "A warning only"). scripts/test_nightly_run_logs.sh: 5 of 8 failed first; its own error (nightly.sh works from the repository root) corrected with NIGHTLY_TREE; 8 pass. To see: CI's next acceptance uploads a handful. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
This commit is contained in:
@@ -111,11 +111,17 @@ jobs:
|
||||
if: failure()
|
||||
run: scripts/nightly.sh diagnose # build only; the failed step stays the job's failure
|
||||
|
||||
# #184 (Captain Bob, 2026-11-20: "A warning only"): only what this run wrote is uploaded -- the logs and
|
||||
# CSVs newer than its start, and the stages' output (scripts/nightly.sh run-logs) -- not every log in
|
||||
# the tree. The upload is a copy for convenience, the evidence is committed: a failed upload is a
|
||||
# warning (continue-on-error), and cannot turn a passing run red.
|
||||
- name: This run's logs and DoE CSVs, gathered
|
||||
if: always()
|
||||
run: scripts/nightly.sh run-logs || true
|
||||
- name: Keep the logs and DoE CSVs
|
||||
if: always()
|
||||
continue-on-error: true
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: release-logs-${{ github.ref_name }}
|
||||
path: |
|
||||
logs/
|
||||
experiments/bare_metal/runs/
|
||||
path: build/nightly/run-logs/
|
||||
|
||||
Reference in New Issue
Block a user