Skip to content

test: add E2E steps for history delta and tests-changed#30

Merged
maximn merged 1 commit into
mainfrom
test/e2e-history-features
Apr 5, 2026
Merged

test: add E2E steps for history delta and tests-changed#30
maximn merged 1 commit into
mainfrom
test/e2e-history-features

Conversation

@maximn
Copy link
Copy Markdown
Contributor

@maximn maximn commented Apr 5, 2026

Summary

Add E2E steps that exercise history features (Epic 7) within a single workflow run.
Two fixtures with meaningful diffs (added/removed tests, status flips, duration changes)
are swapped via cp between runs so the action restores cached history and produces
delta comparison and tests-changed output.

Changes

  • Add fixtures/e2e-history-base.xml — baseline: 5 tests, 4 passed, 1 failed
  • Add fixtures/e2e-history-changed.xml — changed: removed test, added test, status flips, slow test
  • Add 4 E2E steps: prepare baseline, seed cache, swap fixture, run with history

How it works

Both action steps use the same report-path (same cache key hash). Step 1 seeds the
cache with baseline data. The swap step replaces file contents. Step 2 restores history
and shows delta/tests-changed sections in the CI summary.

Over successive main runs, cross-run history accumulates on the "seed baseline" step,
eventually enabling flaky detection (5+ runs), perf regression (3+ runs), and trend
indicators (3+ runs).

Test plan

  • E2E passes — "History: delta + tests changed" step shows comparison output
  • "History: seed baseline" step says "First run" on first run, then shows history on subsequent runs

Add two fixture files (base and changed) with meaningful diffs:
- removed/added tests, status flips, duration changes.

E2E seeds history with the base, swaps to the changed fixture,
then re-runs so the action restores cache and shows deltas.
Over successive main runs, flaky/perf/trend features appear.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 5, 2026

@maximn maximn merged commit 51643c6 into main Apr 5, 2026
7 checks passed
@maximn maximn deleted the test/e2e-history-features branch April 5, 2026 17:43
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