Repository navigation
test(shop): add a receipt-register performance e2e on a large history - #49
Merged
Merged
Conversation
Fourth lot of issue #3 (test-secure the dashboard). Adds a deterministic performance e2e — `make e2e-pilotage-perf-local`, auto-discovered by scripts/e2e-ci.sh so it runs in CI — that fills a CREATE TEMPORARY TABLE … LIKE copy of the receipts register with 20,000 rows spread over the year, then replays the real register query on a selective window and asserts: - correctness at scale (exactly the window's rows, correct sum); - the query plan uses the occurred_at index (EXPLAIN type != ALL, key = occurred_at) — a deterministic proof it scales, not a flaky wall-clock; - a generous time guard (< 1s on 20k rows) against a catastrophic regression. Temporary table only, no real data touched. Gates green: CS-Fixer, PHPStan (max), PHPUnit (346), new e2e (5 assertions).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fourth lot of #3 (test-secure the dashboard).
Adds a deterministic performance e2e —
make e2e-pilotage-perf-local, auto-discovered byscripts/e2e-ci.shso it runs in CI — that fills aCREATE TEMPORARY TABLE … LIKEcopy of the receipts register with 20,000 rows and replays the real register query on a selective window:occurred_atindex (EXPLAINtype !=ALL, key =occurred_at) — a deterministic proof it scales, rather than a flaky wall-clock;Temporary table only, no real data touched.
Gates green: PHP-CS-Fixer, PHPStan (max), PHPUnit (346), new e2e (5 assertions).
Relates to #3