Skip to content

Inconsistent Results / Errors for Search Query Using repo:

Created by: alexAtSourcegraph

  • Sourcegraph version: Sourcegraph Cloud
  • Platform information: 116136_2021-11-12_6a15975

Steps to reproduce:

1a. Execute the following search using the src-cli connected to Sourcegraph Cloud: src search -stream 'file:^LICENSE$ content:"MIT License" repo:contains.commit.after(November 1 2020) count:all'

1b. Execute the same search on sourcegraph.com using the Web UI

Expected behavior:

1a. A successful search with consistent results coming from the stdout

1b. A successful search with the maximum 1500 results displayed in the UI and the total actual result count displayed as well

Actual behavior:

1a. Inconsistent result counts measured by using the wc -l command (Lines do not equal number of results but the value should be consistent if using the same search query, no?). Results from this measure after four attempts were as follows: 695, 4425, 4827, 36300 (ommited comma in number for clarity). The final result(36,300) errored out with the following message error during decoding: stream error: stream ID 1; INTERNAL_ERROR.

1b.The search returned the following error Repo search failed: git command [git rev-parse HEAD] failed (stderr: ""): Post "http://gitserver-8.gitserver:3178/exec": dial tcp: lookup gitserver-8.gitserver on 10.165.0.10:53: no such host (and 20 more)