Skip to content

ci: upload e2e crash evidence artifacts - #148

Merged
joshua-temple merged 1 commit into
mainfrom
ci/upload-e2e-artifacts
Jun 13, 2026
Merged

joshua-temple merged 1 commit into
mainfrom
ci/upload-e2e-artifacts

Conversation

@joshua-temple

Copy link
Copy Markdown
Collaborator

Problem

#146 added retry-exhaustion evidence capture: the e2e harness writes the last attempt's raw act stdout/stderr to e2e/_artifacts/<scenario>-attempt<N>.log so the stack-trace origin survives the CI log retention window. But .github/workflows/e2e.yaml never uploaded that directory, so on a CI failure the evidence was lost once the log window expired. The capture path was effectively unused on CI.

Fix

Add an actions/upload-artifact step to the E2E Tests job, after the e2e test run step:

  • if: always() so evidence is recoverable whether the job failed or a flake was absorbed.
  • path: e2e/_artifacts/ (repo-relative; the test step runs in working-directory: e2e, so captures land under e2e/_artifacts/).
  • if-no-files-found: ignore so a run where no scenario exhausted its retries is a clean no-op.
  • retention-days: 14.

Pinned to actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1, matching the SHA-pin-with-version-comment convention already used in the repo (same pin as scorecard.yml).

Verification

This is a CI-config change with no Go surface, so the "ships a test" bar is satisfied by actionlint: actionlint .github/workflows/e2e.yaml passes with exit 0 and no findings.

The e2e harness writes the last attempt's raw act stdout/stderr to e2e/_artifacts/<scenario>-attempt<N>.log when a scenario exhausts its retries, but the E2E workflow never uploaded it, so the stack-trace evidence was lost once the CI log retention window expired. Add an upload-artifact step (if: always(), if-no-files-found: ignore, 14-day retention) so the evidence is recoverable. Pinned to the same SHA convention used elsewhere in the repo.

Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
@joshua-temple
joshua-temple merged commit babf96b into main Jun 13, 2026
6 checks passed
@joshua-temple joshua-temple added the ci CI/CD pipeline and workflow changes label Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI/CD pipeline and workflow changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant