Skip to content

github: repositoryQuery may return incomplete results

Created by: keegancsmith

https://github.com/sourcegraph/sourcegraph/blob/41eb5693115219fa99ed67164993eae0edbd8692/pkg/extsvc/github/repos.go#L372-L374

GitHub's search API may not return all results. If that happens it sets a field indicating such. Our GitHub source will just log when this happens, not fail. However, a repository missing from a source will get deleted by the new syncer.

Three possible fixes:

  • Fail rather than log
  • Retry
  • Add a degraded mode to syncer. If a source has incomplete results do not delete any repositories.

Part of #2025 (closed)