test: drop inert gateCheckMode fixture noise (#5373) - #5448
Conversation
RepositorySettings.gateCheckMode was widened from required to optional in this stage, so these fixture-only values (upsertRepositorySettings calls, inline settings literals, and fixture-builder helpers) are now safely omittable -- they were never read back or asserted on by any test in this batch. Two occurrences in self-dogfood-registration-pack.test.ts were intentionally left as-is: they populate the still-required GithubAppBehavior.gateCheckMode field (a separate, not-yet-optional type), not RepositorySettings directly.
gateCheckMode is a deprecated, computed-only read-back of reviewCheckMode (#4618) that production code never reads from write inputs or object literals -- it is always re-derived. These test fixtures set it as inert object-literal fields or upsertRepositorySettings() call arguments that no assertion in this batch ever reads back, so they can be safely omitted now that RepositorySettings.gateCheckMode is optional.
Removes the now-optional gateCheckMode field from object literals and upsertRepositorySettings() call arguments across test/unit/queue.test.ts, queue-2/3/4.test.ts, queue-lifecycle-guards.test.ts, and signals-coverage.test.ts. These values were never read back or asserted on by any test in this set — reviewCheckMode is the field that actually drives behavior — so they were pure fixture noise that a prior audit confirmed safe to omit now that RepositorySettings.gateCheckMode is optional.
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5448 +/- ##
==========================================
- Coverage 94.46% 94.42% -0.04%
==========================================
Files 554 554
Lines 44438 44438
Branches 14663 14663
==========================================
- Hits 41979 41962 -17
- Misses 1784 1801 +17
Partials 675 675
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-12 19:58:52 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 2 non-blocking
Concerns raised — review before merging
📋 Copy for AI agents — paste into your coding agent
Review context
Contributor next steps
Signal definitions
[BETA] Chat with GittensoryAsk Gittensory a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/gittensory-commands 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Summary
Stages 2.2-2.4 of #5373's staged removal plan, combined into one PR per this repo's own precedent for a uniform mechanical removal (#4012 merged an analogous 27-file field deletion in one shot).
Removes
gateCheckModefrom 22 test files where it appeared only as inert fixture noise -- a field set insideupsertRepositorySettings(...)calls, inline settings object literals, or fixture-builder helper functions, never read back or asserted on. Confirmed via the #5373 discovery audit and re-verified per-file by 3 independent isolated-worktree passes (one per sweep) before combining:linked-issue-satisfaction-run,actions-fallback-webhook,self-dogfood-registration-pack,policy-sanitizer,signals-v2,unified-comment-parity,ci-completion-fork-resume,repository-settings-enforcementsafety,registration-readiness,repo-policy-readiness,signals,reputation-wiring,settings-preview,parity-wire,repo-profilequeue,queue-2,queue-3,queue-4,queue-lifecycle-guards,signals-coverageOne deliberate exception found and left untouched by Sweep A:
self-dogfood-registration-pack.test.tshas twogateCheckModeoccurrences insidegithubApp: {...}literals that satisfyGithubAppBehavior.gateCheckMode(src/signals/registration-readiness.ts) -- a separate, still-required type fromRepositorySettings, not yet widened to optional. Removing those two would break typecheck; they're tracked for the next #5373 stage (registration-readiness/settings-preview response surfaces) instead.(
queue-5.test.ts's comparable fixture noise, discovered separately while investigating a DB-column-drop test failure, is already handled in #5446.)Test plan
npm run typechecknpm run docs:drift-check