Files
29a755976b feat(report): record the shard, mark other shards' tests, keep reruns folded (#2151)
* feat(report): record the shard, mark other shards' tests, keep reruns folded

A sharded run's report records run.shard { index, total } and marks each
row another shard runs or reports with skip.otherShard, so a reader never
parses the "outside the shard" reason. A --last-failed rerun folds itself
into the runs before it (report-with-reruns.json, same run id as
report.json), hands reporters that history as lastRun, and keeps the
evidence it names. foldLastRun and the summary tally move into e2e, and
@e2e-dev/github imports them.

Groundwork for merging shard reports (ENG-1239, ENG-1418).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(report): fold chained reruns without losing attempts, shard, or usage

Review round 1: a folded row wins over the row a rerun carries, a flaky
test stays flaky when it passes again, a serial member's further repeat
folds its group in, attempts are numbered again, the first run's shard is
kept, and usage is added up. The history file is checked for what the fold
reads and is read by run only, not by list. The marker is worded as this
run's cut, and the config output table names the new file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(cli): word the shard marker as this run's cut

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(report): keep the verdict of a test a rerun never reached

Review round 2: the fold takes the shard from the first run alone, keeps
the earlier verdict and serial group of a test the rerun never reached,
keeps a serial member's attempts on its group, and counts a row without
`selected` as selected. The history check covers serial groups too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(report): keep the fold schema-valid when a rerun stops early

Review round 3: a kept verdict carries no skip, so a test a rerun never
reached no longer breaks report-1; an earlier pass is kept too; a row the
first run gave another shard stays as it was; and --last-failed and the
fold read one list of skips that mean the test never ran.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(report): keep shard ownership and failures clear in rerun history

---------

Co-authored-by: michal-e2e <357875193+michal-e2e@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:27:39 +00:00
..