test: fold cycle-named cache and streams tests; strengthen FlexInt fuzz#246
Open
cplieger wants to merge 3 commits into
Open
test: fold cycle-named cache and streams tests; strengthen FlexInt fuzz#246cplieger wants to merge 3 commits into
cplieger wants to merge 3 commits into
Conversation
Partial audit (internal/cache + internal/streams only; other packages are later batches). Fold gremlins_kill/mutants into source-named cache test files (profile, processed, scheduler, tokens), clean up the streams tests (match/score/select), and strengthen the FlexInt fuzz invariant. No production change; build/test/lint green.
Partial completion (internal/plex + internal/notify + internal/sync + internal/users; streams+cache were the prior commit; scheduler/timeutil/ignore/testsupport/root remain). Fold the fuzz/mutants files into source-named tests (client_test, the renamed plex_fuzz_test and listener_fuzz_test), collapse assertion-free client smoke tests into log-asserting tables, and add a ChangeTracksForEpisode test for the previously-uncovered orchestration path. Prod (behavior-preserving): extract logDisconnect from Listener.Listen (cognit 18->14). Build/test/lint green.
…loops Completes the plex-language-sync audit (root + internal/scheduler + internal/ignore + internal/timeutil + internal/testsupport; the other packages were prior commits). Rename the timeutil fuzz file to hhmm_fuzz_test and strengthen it from bounds-only to a canonical round-trip invariant, rewrite the assertion-free TestLogConfig to pin the token-masking security contract, drop a hand-rolled itoa helper, and add an ignore nil-reader guard case. Prod (behavior-preserving): extract historyWorker/feedHistory from processRecentHistory (cognit 25->2) and recentlyAddedWorker/feedRecentlyAdded from processRecentlyAdded (cognit 22->2); worker-pool fan-out, circuit-breaker, dedup, ignore checks, and call order all preserved. Build/test/lint green; repo now has zero complexity offenders.
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.
Partial audit (internal/cache + internal/streams only; other packages are later batches). Fold gremlins_kill/mutants into source-named cache test files (profile, processed, scheduler, tokens), clean up the streams tests (match/score/select), and strengthen the FlexInt fuzz invariant. No production change; build/test/lint green.