Commit Graph

133 Commits

Author SHA1 Message Date
Erik Seliger
f61ce6e8e8
tenant: Introduce first version of tenant package (#64271)
This PR aims to craft the /internal/tenant package for use by all Sourcegraph cluster-internal services to properly scope data visibility to the correct requesting tenant.
For now, we only expose methods we know we will DEFINITELY need.

This PR also adds the required middlewares so we can start to tinker with it in implementations.

## Test plan

CI passes. We don't enforce anything for now except not passing unparseable tenant IDs, which should be fine.
2024-08-08 12:02:19 +02:00
Bolaji Olajide
be46841014
remove CODEOWNERS (#58452) 2023-11-21 08:54:20 +01:00
Nick Snyder
797076ce92
Update documentation for Codenotify experiment (#16407) 2020-12-04 14:15:01 -08:00
Nick Snyder
7b52016ebe
Replace CODEOWNERS with CODENOTIFY (#13838) 2020-09-16 09:39:24 -07:00
Keegan Carruthers-Smith
abc47c6afe
codeowners: specify top-level catches earlier (#13719)
There were a bunch of rules put in before this old top-level rule. For
example internal/workerutil was assigned as owned by Stephen, even
though we had a rule for it to be owned by Eric. This was because that
rule was before this catch all rule.
2020-09-09 15:35:53 +02:00
Eric Fritz
8e11d923ea
internal: Add additional goroutine utilities (#13260) 2020-08-24 08:24:19 -05:00
Erik Seliger
61d1098ce7
Add integration test suite for campaigns (#13142) 2020-08-20 17:01:46 +02:00
Eric Fritz
380718a262
doc/dev: Add code intelligence development documentation (#12949) 2020-08-14 13:14:05 -05:00
Eric Fritz
a08e1cce77
codeintel: VM-based indexer service (#12723) 2020-08-10 14:30:57 -05:00
Rijnard van Tonder
dd1d5dd5f3
remove replacer service (#12812) 2020-08-07 11:28:37 -07:00
Rijnard van Tonder
3a380cdd42
Revert "remove replacer (#12480)" (#12541) 2020-07-29 11:53:46 -07:00
Eric Fritz
407a025658
Categorize enterprise frontend startup behaviors (#12539) 2020-07-29 10:40:52 -05:00
Eric Fritz
b1e5893c7e
Move [enterprise/]cmd/frontend/authz to [enterprise/]internal/authz (#12538) 2020-07-29 10:08:36 -05:00
Rijnard van Tonder
7d6cafd040
remove replacer (#12480) 2020-07-28 14:27:37 -07:00
Nick Snyder
cd5f9abd6f
replace link to HackerOne (#12440) 2020-07-23 15:02:52 -07:00
Nick Snyder
79ad76143f
Run code scanning in parallel for Go and JavaScript (#12441) 2020-07-23 15:00:40 -07:00
ᴜɴᴋɴᴡᴏɴ
5ce8ae587d
gqltest: add docs to run and add tests (#12285)
Co-authored-by: Rijnard van Tonder <rvantonder@gmail.com>
2020-07-18 18:40:45 +08:00
Eric Fritz
d39f0c72cc
codeintel: Extract generic worker process (#12262) 2020-07-17 09:29:08 -05:00
Ryan Slade
5cf616b29a
leader: Add a leader election package (#12289)
* rcache: Add options param to TryAcquireMutex

* leader: Add a leader package

A small helper package that wraps our Redis based mutex to allow only a
single instance of a function to run concurrently.

* Update CODEOWNERS

* Update internal/rcache/mutex_test.go

Co-authored-by: Asdine El Hrychy <asdine.elhrychy@gmail.com>

* No need for release func

The outler leader loop can release when the worker function returns

* Add jitter and respect ctx during sleep

* Make worker fn to last parameter

Makes it easier to use especially when fn is anonymous

* Improve test

Co-authored-by: Asdine El Hrychy <asdine.elhrychy@gmail.com>
2020-07-17 15:15:47 +02:00
Keegan Carruthers-Smith
5829ec0ede
codeowners: remove cloud from shared files (#12244)
Cloud currently is the codeowner of many files that are modified by
people all over Sourcegraph. As such our whole team is added to code
reviews where our input really isn't required.

There is discussions about removing code owners entirely. This is a step
in that direction for the more egregerious examples of it for cloud. If
you thought it was important the reviewed you did on something I removed
ownership on, please add your own name (instead of team) to the
corresponding directory.
2020-07-17 01:00:40 +02:00
Adam Harvey
289f212418
CODEOWNERS: campaigns should own docs (#12218) 2020-07-16 09:10:21 +02:00
Ryan Slade
a547a87f9d
db: Move db packages out of frontend (#12201)
* db: Move cmd/frontend/db package to internal/db

* Update script

* db: Move enterprise/frontend/db to enterprise/internal/db

* Update CI script

* Replace more instances of frontend/db
2020-07-15 16:00:39 +02:00
Eric Fritz
38d1f82bad
codeintel: Rewrite integration tester utility (#11686) 2020-06-25 14:21:22 -05:00
Rijnard van Tonder
c0c220bac8
CODEOWNERS tracks Zoekt for search (#11592) 2020-06-18 11:28:15 -07:00
Robert Lin
bd124a32bc
chore: all-in-one third party licenses file (#11321) 2020-06-17 06:52:40 +08:00
Eric Fritz
d07ca6e45f
codeintel: Migrate code to enterprise (#11419) 2020-06-10 18:05:51 -05:00
ᴜɴᴋɴᴡᴏɴ
882871df75
e2e: prototype (#10470) 2020-06-08 15:58:40 +08:00
Nick Snyder
186faa28f6
@sourcegraph/core-services -> @sourcegraph/cloud (#11297) 2020-06-04 16:16:03 -07:00
Erik Seliger
5ad5c23ac5
Fix codeowners precedence for campaigns (#11228)
The more specific directives in the campaigns section were overwritten by
the more generalized ones for core-services. Moving them below should fix it.
2020-06-02 17:27:35 +02:00
Eric Fritz
5ff1e04154
codeintel: Send tar files via SendDB (#11074) 2020-06-01 13:46:47 -05:00
Eric Fritz
384e74be0e
codeintel: Infer go module version via git tags during auto indexing (#11084) 2020-05-29 10:22:34 -05:00
Nick Snyder
b9d71cdc48
update CODEOWNERS (#11090) 2020-05-28 14:02:26 -07:00
uwedeportivo
de25b2f2ba
internal cmd: GHE repo feeder (#10892)
* internal cmd: GHE repo feeder

* feeder.db and split into files

* org generator

* add loggers

* rate limiter

* complete flow

* save orgs in db

* retry for push and clean up cloned dirs

* more flags instead of hardcoded

* more flags

* metrics and timeouts

* upping timeout

* fix merge conflict

* better metrics

* inc error metric

* process failed on subsequent runs

* custom err

* resume metrics

* metric fix

* clean up cloned dir in all cases

* fix terminal progress bar calculation

* ghe feeder dashboard

* accomodate dave input

* accept dirs when computing work

* rate limit cloning to avoid triggering an abuse detection mechanism

* ability to skip ahead in input and record error type

* golangci-lint

* prettier over dashboard json

* documentation for worker

* pump documentation

* documentation for sqlite feeder DB

* README

* README 2

* doc fixes

* readme prettier

* Update internal/cmd/ghe-feeder/progress.go

Co-authored-by: ᴜɴᴋɴᴡᴏɴ <joe@sourcegraph.com>

* code review joe

* readme explain resume and dashboard

* prettier readme

Co-authored-by: Dave Try <dave@sourcegraph.com>
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <joe@sourcegraph.com>
2020-05-28 12:44:07 -07:00
Eric Fritz
b4d12f35f2
codeintel: Simplify GraphQL resolvers (#10911)
* Remove precise-code-intel-api-server.

* Squash commits.

* WIP.

* Fix unused variable.

* Small cleanup.
2020-05-28 08:14:33 -05:00
Dan Adler
7894320536
Update docs ownership (#11054) 2020-05-27 22:06:29 -07:00
Robert Lin
57c1c6f947
distribution: resources report (#10784) 2020-05-26 18:23:33 -07:00
Eric Fritz
999207eb1d
Remove precise-code-intel-api-server service (#10906) 2020-05-21 16:08:05 -05:00
Robert Lin
af9a8412c4
siteAdmin: include alerts data in bug report page (#10704)
* a new GQL endpoint, `site.monitoringStatistics`
    * just returns alerts for now
* render monitoring statistics in bug report page
* adjust wording in bug report page and link directly to bug report template

Co-authored-by: Stephen Gutekanst <stephen.gutekanst@gmail.com>
2020-05-20 20:25:39 -07:00
Keegan Carruthers-Smith
3a7ebff455
codeowners: search owns search backend code (#10861) 2020-05-20 21:37:56 +02:00
Eric Fritz
81845676da
codeintel: Remove old typescript services (#10566) 2020-05-14 15:29:03 -05:00
Eric Fritz
99c7476c20
Add precise-code-intel system integration tests (rough v0) (#10360) 2020-05-07 13:24:35 -05:00
Felix Becker
5204b66f75
Remove TypeScript pattern guide (#10403) 2020-05-05 00:51:32 +02:00
Eric Fritz
0d0695fece
Add observability utilities (#10312) 2020-05-01 18:07:57 -05:00
Eric Fritz
5765fa0412
Rewrite precise-code-intel-worker in Go (#10105) 2020-05-01 16:52:18 -05:00
Felix Becker
ccda05c7b0
Remove discussions feature from webapp (#10262) 2020-04-29 19:47:54 +02:00
Erik Seliger
e00e72a413
Unify campaigns teams into singular ownership (#10245)
Co-Authored-By: Thorsten Ball <mrnugget@gmail.com>
2020-04-29 14:42:25 +02:00
Nick Snyder
dfbb72f9a3
Add owners for CODEOWNERS (#10179) 2020-04-24 15:26:26 -07:00
Nick Snyder
f652523378
Distribution team owns CI (#10178)
* Distribution team owns CI

* Update CODEOWNERS
2020-04-24 15:23:55 -07:00
Nick Snyder
77f38d56cd
Add CODEOWNERS for codecov.yml (#10177) 2020-04-24 14:56:52 -07:00
Eric Fritz
d49aee8694
Rewrite precise-code-intel-api-server in Go (#9703) 2020-04-24 08:22:14 -05:00