No tool in the repository checks that a change keeps every test name and result #227
Open
opened 2026-10-16 01:56:26 +00:00 by cgalo5758
·
0 comments
Labels
Clear labels
accessibility
area/billing
area/catalog
area/discourse
area/domains
area/entitlements
area/fedwiki
area/identity
area/integrations
area/licensing
area/member-ui
area/meta
area/operator-ui
area/ops
area/testing
duplicate
good-first-issue
invalid
privacy
security
upstream
wontfix
A barrier for people using assistive technology or a keyboard alone.
The Stripe mirror, checkout, subscriptions, invoices, fulfillment.
Products, prices, plan ladders, purchasability.
The Discourse integration.
The domains registry, claims, placements, the certificate ask.
Entitlement sets, rules, grants, pools, provisioning.
The Federated Wiki integration and farm sync.
Sign-in, sessions, persons, organizations, workspaces, roles.
The provider registry, outbox and webhooks in general.
Licenses, the contributor agreement, SPDX headers.
Member pages.
The repository itself, its contributing guide, CI, the tracker and the workflow.
Operator pages, forms, lists, the design system.
Deployment, configuration, migrations, workflows, instance settings.
The test stack, screens, lint, walkthroughs.
Closed because another issue already covers it.
Small, self-contained, and explained enough to be a first contribution.
Closed because it is not a ticket for this repository.
Touches what a person's data reveals.
Touches authentication, authorization, secrets or data exposure.
Waits on another repository or project before it can move.
Closed because it will not be done, with the reason in the last comment.
kind
bug
The software does something other than what it promises; closed when it again does what it promises.
kind
debt
Code, tests or tooling to clean up with nothing visible changing; closed when they are cleaner.
kind
design
A question to settle before work can be defined; closed when the decision is written down.
kind
docs
Documentation that is wrong or missing; closed when it says the right thing.
kind
enhancement
Something the software does not do yet; closed when it does.
priority
critical
Blocks the active milestone or harms members now.
priority
high
Next in line inside the active milestone.
priority
low
Inside the active milestone, when nothing else is left.
priority
medium
Inside the active milestone, after the high ones.
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: wiki-cafe/member-console#227
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What a person cannot do today
Confirm, from tracked files, that a change runs the same tests with the same results as its parent commit.
go testpassing says only that nothing failed. A change that deletes a subtest, renames a test, folds a table's named subtests into one loop, or makes a test skip leaves the run green; every database test skips itself whenTEST_DATABASE_URLis unset (docs/testing.md:30-32). The refactor in #166 checked every commit by comparing thego test -jsonoutput of the parent and of the commit, with scripts that were never committed.What they should be able to do
Run one command over two
go test -jsonoutputs, one taken at the parent commit and one at the change, and get:The command reduces each output to one line per package and test name, subtests included, holding the last
pass,failorskipthe stream reports for it. A skipped test keeps its output lines, without the===and---headers, as its skip message.Both runs are taken the same way: the test databases reset with
test/reset-test-db.sh,test/.envloaded, the app in the same state (down, so the walkthroughs that need it skip on both sides), thengo test -json -count=1 -p 1over the same packages in the same order. The reset is part of the check: tests share one database (#192) and some sweeps read every row in it, so a run on a used database can differ for reasons the change did not cause.Why it matters
scripts/mutation-checkanswers a different question. It applies breaks someone wrote down, one at a time, and reports whether the tests its list names catch each one. A test outside the list is never looked at, a list has to be written for each area, and nothing in it notices that a subtest disappeared from a table or that a test now skips. The names-and-results comparison needs no list, covers every test in the packages it runs, and was the check every refactor commit used. Without it in the repository, a contributor who refactors cannot repeat that check, and a reviewer cannot ask for its output.Where
scripts/, besidescripts/mutation-checkandscripts/sqlc-unused;docs/testing.md, next to the deliberate-break rule ("Conventions & gotchas").Done when
scripts/reduces ago test -jsonstream as described above and compares two reductions. It exits non-zero on a missing test, a changed result or a changed skip message that is not listed as expected. Its header gives the usage, asscripts/mutation-check/main.godoes.test/bootstrap-stack.shchose, compares equal across worktrees.go test -jsonstreams: a removed subtest, a pass that became a skip, a changed skip message, and a renamed test listed as expected.docs/testing.mdsays when to run it (a change that moves tests, or reorganizes the code under them without changing what it does) and how to take the two runs.