search: optimize zoekt backed select:repo
Created by: tsenart
This commit makes Zoekt's handling of select:repo use a normal streaming search rather than listing. This should make it a streaming search in effect, massively improving time to first result while removing the need for a list operation which has a bad impact on frontend memory usage.
Also updates Zoekt with:
- https://github.com/sourcegraph/zoekt/commit/323fabe eval: add ShardRepoMaxMatchCount
- https://github.com/sourcegraph/zoekt/commit/8945cee gitIndex: add more tracing context + log fetch duration
- https://github.com/sourcegraph/zoekt/commit/e04f226 all: fix misc linter warnings
- https://github.com/sourcegraph/zoekt/commit/a9b0bb7 rpc: panic if we fail to register srv.Searcher
- https://github.com/sourcegraph/zoekt/commit/428b58a read: handle error if we fail to read a section
- https://github.com/sourcegraph/zoekt/commit/24248b0 indexfile: log if we fail to Munmap
- https://github.com/sourcegraph/zoekt/commit/35c8634 all: handle most errcheck lints
- https://github.com/sourcegraph/zoekt/commit/88565fe all: fix errcheck lints in test files
- https://github.com/sourcegraph/zoekt/commit/c9fea67 use testIndexBuilder helper in index_test
- https://github.com/sourcegraph/zoekt/commit/f85523c section: remove error from writer.Write
- https://github.com/sourcegraph/zoekt/commit/804b1e2 all: ignore error from http.ResponseWriter.Write
- https://github.com/sourcegraph/zoekt/commit/66c3ccb all: ignore errcheck on defer builder.Finish
- https://github.com/sourcegraph/zoekt/commit/71c54bd all: handle IndexBuilder.Write failing in tests
- https://github.com/sourcegraph/zoekt/commit/073b68b all: handle error from builder.AddFile
- https://github.com/sourcegraph/zoekt/commit/ed3a166 all: explicitly ignore error for maxprocs.Set⏎
Fixes #22649 (closed) Part of #28799 (closed)