Bring nine lessons from a client setup into the principles, the reviewers, larv-review and the project config
CI / tests (pull_request) Has been cancelled
CI / tests (pull_request) Has been cancelled
This commit is contained in:
@@ -89,6 +89,7 @@ Catch behavior that is unclear or under-specified — "building in ambiguousness
|
||||
- Are consumers idempotent under at-least-once delivery (webhooks, queue retries, double-submit)? Where a duplicate would double-charge or double-send, is there an idempotency key or dedup?
|
||||
- Do DB constraints (NOT NULL, unique, FK) mirror what the code assumes, so bad data cannot arrive via another path?
|
||||
- New column on an existing table: what do existing rows contain — is null/default handled or backfilled?
|
||||
- Where the change stores a value differently, by escaping, converting or growing it: does the longest value it can now write still fit the column, counted as stored? Does every search, filter and comparison on the column still find what users type? Escaped text takes more room than the input's limit allows for, and a `LIKE` on an escaped column no longer matches an apostrophe.
|
||||
|
||||
### 8. Resources & Performance Under Production Data
|
||||
Works-on-fixtures, dies-on-volume is a stability bug.
|
||||
@@ -126,6 +127,7 @@ Every PR gets at least this sweep.
|
||||
- Were tests and implementation changed together in a way that could mask a regression — e.g. an assertion weakened to make a test pass? Flag it; these should be separate changes.
|
||||
- Does each test earn its keep, as the technical principles' test bullet says? Look at where its expected values come from, what it asserts, what it mocks, what wording it pins, whether another test already pins the behaviour, and whether it sleeps or reads the wall clock.
|
||||
- Does a test decide at run time whether to check anything, by a conditional skip, early return or catch around its assertions, as the technical principles' test bullet forbids? Flag it.
|
||||
- Does a test that runs on a shared environment hold the rules for one in the technical principles' "Compose, do not entangle" → "Tests and tooling"? Does the test that covers a seam to a service the team runs mock that service, which the test bullet's "Never mock a service your own team runs" forbids?
|
||||
- Are there untestable side effects that should be refactored?
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user