Skip to content

fix(ci): copy exported test reports into evidence - #348

Merged
ScriptedAlchemy merged 1 commit into
masterfrom
fix/pool-sandbox-env
Oct 2, 2026
Merged

ScriptedAlchemy merged 1 commit into
masterfrom
fix/pool-sandbox-env

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

Since #345 (c8fb90c), worker evidence is count-only. The check run, the record and the evidence JSON carry JUnit counts. The exported nextest XML stays in the sandbox's reports-* temp dir and never reaches the hauler-ci-linux-<lane> artifact. As a result, a red hosted lane on tracedecay does not name its failing tests anywhere: not in the check text, the job log or the artifact.

This PR restores the report files and leaves the record shape unchanged:

  • manager.mjs passes the exported reports dir to persistSnapshot as a third argument.
  • main.mjs copies that dir to evidence/pr-N-<merge>/, next to pr-N-<merge>.json.
  • The record and check-run bodies still carry only counts. A new test asserts that the report path does not leak into either.

Test plan

  • node --test tests/github-action/*.test.mjs: 66 pass, 1 skip, including the new test "exported reports reach evidence persistence but not the record".
  • pnpm build regenerated the artifact, then pnpm check:artifact passed.
  • pnpm typecheck passed.

c8fb90c (#345) made worker evidence count-only, so a red lane no longer
names its failing tests anywhere: the check run and record carry JUnit
counts and the exported XML stays in the sandbox temp dir. Copy the
exported reports into evidence/pr-N-merge beside the count summary;
the record and check bodies still carry only counts.
@changeset-bot

changeset-bot Bot commented Oct 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e779145

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
cargo-hauler Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ScriptedAlchemy
ScriptedAlchemy merged commit 34d5129 into master Oct 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant