Repository navigation
Remove redundant and outdated comments, and fix the workarounds they explained - #299
Merged
Merged
Conversation
…explained Delete comments that only repeat the code, correct comments that no longer match it, and fix the code behind comments that explained away a shortcut: test sleeps, a test that depended on a local server, cluster tests that ran on one master, and helpers copied between the integration and conformance suites.
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.
Summary
A pass over every
//comment, and over Scaladoc outside the public API, in main sources, tests, examples and benchmarks. Main code changes only in comments.Left as they were, with their comments:
RespParser.build: a closed aggregate kind would turn theBytetableswitch into an equality chain on the parser's hot path.CIO.foreachDiscardwith explicit concurrency: still fails to compile on the Future cell, insidekyo-compat-future.xCfgSet: requiring one option in the signature is a breaking API change, left for later.Evidence
ClusterClientSpecslept 150 to 300 ms on the real scheduler and asserted>= 2/>= 3CLUSTER SLOTS; the scan and broadcast cluster tests ran on one master and assertedtargets.nonEmpty.After: they assert exactly 2, then 3, and one scan target per master.
clientZio/testOnly ClusterClientSpec ConnectSpec DedicatedPoolSpecpassed 5 runs in a row;*ClusterMultiMaster*22/22 on Redis and Valkey.fmt,check,Test/compileon every backend including Future,testUnit,docAll, anditZio,itCe,itOx,itPekko,itKyo,itDirectpass.Merge Danger
Door: two-way
Blast Radius: tests
No main code or public API changes. The test changes affect CI only, through the cluster integration fixtures and the conformance build (
build.sbtaddsClientAssertions.scalato its sources).