sourcegraph/lib
Erik Seliger 9f067eac53
Use native executor git repo support in SSBC (#36230)
This PR turns on repo cloning in executors for batch changes. It clones the repo into the workspace, adds cache files and the input and spawns the execution from that. [This requires a change in src-cli](https://github.com/sourcegraph/src-cli/pull/768) and makes the repo fetching process faster, more resilient (in my testing) and enables to run on the largest repos without bigger problems. Also, we have a grafana dashboard for executor cloning performance.

**Stats for nerds**

Ran on my Mac: 

---

120 workspaces total, some of them are workspaces in subdirectories with `onlyFetchWorkspaces` on.
Total execution time: Before: 03:35 minutes, after: 01:09 minutes.
Also, in the 03:35 minute run the mac would start heating up a lot, it stayed mostly cool in the 01:09 minute run.

---

sgtest/megarepo:
Setting up the workspace before: ~8 minutes, now 2 minutes.

---

Also, see this: https://github.com/sourcegraph/sourcegraph/pull/37299 PR; it's the follow-up for post-3.41 cut to remove the access_token_id column from the database as well.
2022-06-16 18:01:42 +02:00
..
batches Use native executor git repo support in SSBC (#36230) 2022-06-16 18:01:42 +02:00
codeintel lib/log: migrate to github.com/sourcegraph/log (#36834) 2022-06-08 15:02:38 -07:00
errors lib: use any instead of interface{} (#35121) 2022-05-09 14:55:38 +00:00
gitservice lib/log: migrate to github.com/sourcegraph/log (#36834) 2022-06-08 15:02:38 -07:00
group Add group.OrderedParallel (#35572) 2022-05-17 12:13:58 -06:00
output output: add ReadPassword for securely reading password (#37162) 2022-06-15 18:28:34 +00:00
process lib/process: always pipe _exactly_ what the command outputs (#36574) 2022-06-03 15:13:27 -07:00
go.mod output: add ReadPassword for securely reading password (#37162) 2022-06-15 18:28:34 +00:00
go.sum output: add ReadPassword for securely reading password (#37162) 2022-06-15 18:28:34 +00:00
README.md lib: Introduce non-enterprise lib directory (#18992) 2021-03-10 19:41:33 -06:00
tools.go build with go 1.17 (#24566) 2021-09-03 14:46:55 +00:00

Sourcegraph lib module

This directory is the root of a separate go module from the primary module rooted at sourcegraph/sourcegraph. This module exists to hold code that we want to reuse outside of the sourcegraph/sourcegraph repo.

Code in this module should not import from sourcegraph/sourcegraph or from other Sourcegraph repositories to avoid complicated dependency relationships. Instead consider moving code from elsewhere into this module.