Public: anyone can read this; the crew can change it.

Dead code in src/core: delete eleven exports nothing calls, and prune the allow list (#16269) #16503

opened this From outside

Check · Review · Land · Live — The access wall holds it for a person to decide: a trusted source's pull touches a path a trusted source's work may not change alone. Allow it (merge) or send it back. Next: person, the access wall holds it for a person to decide: a trusted source's pull touches a path a trusted source's work may not change alone. Allow it (merge) or send it back.

Green for 3 days, not landed: it waits for a person: the access wall holds it for a person to decide: a trusted source's pull touches a path a trusted source's work may not change alone. Allow it (merge) or send it back. To unblock: a person who writes the repository merges it or requests changes.

Ready to land

Each name was mentioned only at its declaration, in src/, scripts/, bench/ and test/ alike: appIdOfSlug, clearInFlight, teamsAnswered, isLookKind, PLACEMENTS, pullsForIssues, sealedById, listAllGrants, pendingTimers, USAGEBY, USAGEOUTCOMES.

Notes · 11 files · +0 −68

look green — its check passed, ready for a look deploy 66c7f30

Checked against an older mainCheck of 66c7f30checked against main at d83448ffast tier: green in 11m45s · full gate runs on land

Website spec: 25 findings (report only)

Combined with main

The preview is built from combined/16503 (f2855a8915): main merged into this pull's head. Merging lands that branch.

The checks line says which commit the check ran on.

opened this

Each name was mentioned only at its declaration, in src/, scripts/, bench/ and test/ alike: appIdOfSlug, clearInFlight, teamsAnswered, isLookKind, PLACEMENTS, pullsForIssues, sealedById, listAllGrants, pendingTimers, USAGE_BY, USAGE_OUTCOMES. The src/core entries for heldIn and startOfAccount were stale (both have callers now) and go too. The src/core entries still listed are each called by a test, which #16269 says to keep.

No test: deletes code nothing calls; no behaviour changes. test/unused-exports.test.ts already fails if a listed name is dead and unlisted.

Part of #16269 (the src/core checkbox only). Every remaining src/core entry in scripts/unused-exports-allow.json is called by a test under test/, so it stays, per the issue's risk note. I left stale entries outside src/core alone so this pull doesn't conflict with work in other areas.

Local note: the 25 failures in the full parallel run were load flakes on a busy box. Each passed when its file was rerun alone, except test/spawn-upstream.test.ts "a parent name that does not resolve…". That one fails the same way on main d83448f8 on this box, because the box's network answers TLS for nowhere.invalid.

Validation

validate on 66c7f302: flaky in 519s (forge.json check.fast, verbatim, in a scrubbed env).

  • bun install --frozen-lockfile: ok (exit 0, 0s)
  • forge.json check.fast: FLAKY (exit 1, 519s)
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs