Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from sourcegraph:master #712

Open
wants to merge 6,305 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
6305 commits
Select commit Hold shift + click to select a range
7eb956e
Add alerts for mean db blocked seconds (#22822)
daxmc99 Jul 16, 2021
3329cdf
monitoring: migrate monitoring docs to Sourcegraph API Docs (#22876)
bobheadxi Jul 16, 2021
9d7cbea
Code insights: Implement delete insights with new dashboard functiona…
vovakulikov Jul 16, 2021
fda46f8
Docs: Update adding data to pings (#22909)
attfarhan Jul 16, 2021
d0742a2
Add documentation on repo table row-level security (#22746)
flying-robot Jul 16, 2021
6631e17
monitoring: PanelTypes API cleanup (#22879)
bobheadxi Jul 16, 2021
9f7ca9f
Add Instrumentation Error to FAQ (#22885)
abeatrix Jul 16, 2021
f641bd9
doc: symlink CHANGELOG.md to docs for better search results (#22918)
bobheadxi Jul 16, 2021
8a8c492
batches: fix the UI draft → UI published transition (#22906)
LawnGnome Jul 16, 2021
fd661df
batches: add a publish bulk action (#22908)
LawnGnome Jul 16, 2021
417e319
docs: Fix typos (#22933)
efritz Jul 16, 2021
b74c3b1
codeintel: Consider dependency graph for LSIF data retention (#22930)
efritz Jul 16, 2021
0688657
search: simplify pattern validation (#22938)
rvantonder Jul 16, 2021
6d5f537
search: lift ad-hoc pattern validation to parsing (#22939)
rvantonder Jul 16, 2021
4f44028
search: lift ad-hoc parameter validation to parsing (#22940)
rvantonder Jul 16, 2021
f1e6c61
search: factor out function for structural search path (#22943)
rvantonder Jul 16, 2021
ab51711
batches: add docs and changelog for publish from UI (#22935)
LawnGnome Jul 16, 2021
258ffc8
repos: Don't cancel context on unauth / forbidden / accountsuspended …
Jul 17, 2021
5db2712
chore: update third-party license (#22950)
sourcegraph-bot Jul 19, 2021
cdd47a0
web: move typography and button styles out from the `.theme-redesign`…
valerybugakov Jul 19, 2021
edab713
search: add RepoOptions to TextParameters (#22914)
stefanhengl Jul 19, 2021
e31288f
Attempt #3: upgrade to `Webpack` v5 (#22580)
valerybugakov Jul 19, 2021
c167754
EventLogger: Return sourcegraph.com hostname only for internal referr…
attfarhan Jul 19, 2021
ea4f259
executor: pass HOME/PATH to src-cli if Firecracker is disabled (#22911)
mrnugget Jul 19, 2021
a2cc571
web: change breader font-weight (#22953)
valerybugakov Jul 19, 2021
69cced7
web: change code monitoring form label margins (#22954)
valerybugakov Jul 19, 2021
6ee0a57
repos: Make streaming syncer the default (#22948)
Jul 19, 2021
04ed792
This message seems misleading (#22960)
Joelkw Jul 19, 2021
fb81c25
search: lower case status string for honeycomb (#22961)
keegancsmith Jul 19, 2021
3ea6a85
Code Insights: Tweak global scope error message (#22962)
Joelkw Jul 19, 2021
933b749
Add new type of dashboard initial state for the built in and settings…
vovakulikov Jul 19, 2021
ced98c1
search notebook: client infrastructure (#22828)
Jul 19, 2021
c3cef8c
search: return 40 repo filters and 40 other (#22863)
keegancsmith Jul 19, 2021
1d17d01
codeintel: temporarily use sourcegraph-shipped coursier musl binary (…
Strum355 Jul 19, 2021
170c3fa
Second attempt to PR "Add new "JVM Packages" external services type. …
olafurpg Jul 19, 2021
8727f06
Code Insights: Add feature flag the all repos insight mode (#22964)
vovakulikov Jul 19, 2021
a54107f
Trim spaces from license tags (#22838)
eseliger Jul 19, 2021
030c851
Add o3de search page (#22878)
unicodeveloper Jul 19, 2021
8bbd771
Bump src cli version and update cli docs (#22968)
eseliger Jul 19, 2021
bf4ea68
web: load runtime bundle in locally executed integration tests (#22969)
valerybugakov Jul 19, 2021
f153f2a
Code Insights: Fix BE insight loading card flashing (#22967)
vovakulikov Jul 19, 2021
a5d2625
sg: Add `sg rfc [list|search|open]` commands (#22927)
mrnugget Jul 19, 2021
28bf81d
dev(sg): add 'run redis-postgres' via compose (#22921)
bobheadxi Jul 19, 2021
a796052
update zoekt
keegancsmith Jul 16, 2021
0991e4f
internal/search: order results by repository priority (star count).
Jun 16, 2021
e105c27
extensibility: add alert for return of Firefox addon (#22126)
tjkandala Jul 19, 2021
4f8a8d9
extensibility: stabilize filtered extensions on change (#22928)
tjkandala Jul 19, 2021
e7469b7
Revert "extensibility: add alert for return of Firefox addon (#22126)…
tjkandala Jul 19, 2021
2808dfd
codeintel: Do not delete reachable uploads (#22737)
efritz Jul 19, 2021
55009b3
search: remove unused QueryInfo (#22966)
stefanhengl Jul 19, 2021
32945cd
search: Addressing search reference improvements after hallway testin…
fkling Jul 19, 2021
802b161
extensibility: fix browser extension for private code on Cloud (#22694)
tjkandala Jul 19, 2021
b0ecbb1
extensibility: add alert for return of Firefox addon (#22988)
tjkandala Jul 19, 2021
2d86f2e
search/backend: add config to limit reorder buffer size.
Jul 19, 2021
c81ce8e
Fix link to `sg` CLI README.md (#22888)
Kelvin-Lee Jul 19, 2021
c597246
remove references to non-root and merge with non-privilged (#22936)
davejrt Jul 19, 2021
c8b715d
fix webpack 5 for browser extension (#22991)
tjkandala Jul 19, 2021
fe3333b
docs: redesign homepage and update admin/install (#22965)
bobheadxi Jul 19, 2021
9714ddf
Few more quick copy changes (#23002)
Joelkw Jul 20, 2021
493b85d
Quick copy fix (#22946)
Joelkw Jul 20, 2021
8362f41
web(site-admin): disable instrumentation for non-kubernetes deploymen…
bobheadxi Jul 20, 2021
9733597
search notebook UI (#22829)
Jul 20, 2021
653f061
Remove the code insights page (#22987)
vovakulikov Jul 20, 2021
bf9f7d3
Code Insights: Clarify add and remove context menu item (#23005)
Joelkw Jul 20, 2021
1651e2c
Code Insights: Turn off homepage insights (#22989)
vovakulikov Jul 20, 2021
a2a2899
Code Insights: Fix insight dashboard memoization and add extension in…
vovakulikov Jul 20, 2021
d83dd7c
sg: remove `ulimit -n` from cmds, set on boot in `sg` (#23019)
mrnugget Jul 20, 2021
ca1190b
search notebook: always show run search action if no other blocks are…
Jul 20, 2021
d760043
Use correct Java version for JVM dependency repos. (#22874)
olafurpg Jul 20, 2021
d0d639b
batches: add filtered repo batch changes page and badge on repo page …
courier-new Jul 20, 2021
9149925
Update in-app changelog for 3.30 (#22971)
eseliger Jul 20, 2021
417216c
search: Add metrics to search reference (#22982)
fkling Jul 20, 2021
44876ea
Code Insights: Add explanation tooltip on the creation insight form. …
vovakulikov Jul 20, 2021
b1aba20
search: Improve search reference behavior for filters with suggestion…
fkling Jul 20, 2021
7b475da
repos: Don't panic if we find and unknown external service kind (#23024)
ryanslade Jul 20, 2021
6e51f45
security: check site admin before returning site usage stats (#23026)
unknwon Jul 20, 2021
cf4435b
monitoring: Refactor provisioning dashboards (#23006)
efritz Jul 20, 2021
f6b71d3
Code Insights: Add uniqBy check for the be insight gql handler (#23022)
vovakulikov Jul 20, 2021
74cc15d
remove redesign toggles from FileMatch.tsx (#22999)
camdencheek Jul 20, 2021
7ada503
extensibility: refresh extension details page (#22882)
tjkandala Jul 20, 2021
8f1310d
gomod: update zoekt to include meta file updates (#23034)
keegancsmith Jul 20, 2021
603d798
Change Add or remove insights copy (#23036)
felixfbecker Jul 20, 2021
3b14831
search: Remove search-reference feature flag (#22994)
fkling Jul 20, 2021
cad366c
Insights: migrate setting insights to database with a background job …
coury-clark Jul 20, 2021
a421f78
search: lift IsEmpty check higher up call stack 1/2 (#22944)
rvantonder Jul 20, 2021
32573c1
github: automatic repositoryQuery refinement (#22859)
Jul 20, 2021
aa00b87
Add web integration test suite to sg config (#21174)
eseliger Jul 20, 2021
fbc4152
Fix panic in error log (#23042)
eseliger Jul 20, 2021
78c7f96
search: lift IsEmpty check higher up call stack 2/2 (#22997)
rvantonder Jul 20, 2021
5526fcd
monitoring: correct metric for repo_index_state (#23041)
keegancsmith Jul 20, 2021
802482c
API docs: LSIF: add GraphQL backend for "Go to API docs" (#22902)
emidoots Jul 20, 2021
f7ac847
extensibility: only show firefox bext alert on firefox (#23048)
tjkandala Jul 20, 2021
0e934e5
flake: disable Puppeteer Search Feature Tour test (#23047)
courier-new Jul 20, 2021
396327b
search frontend: fix regex query highlighting for Firefox (#23043)
rvantonder Jul 20, 2021
cdf9fde
changelog: cut sourcegraph@3.30.0 (#23055)
daxmc99 Jul 21, 2021
2c450ed
Docs for code insights dashboards in 3.30 (#23004)
Joelkw Jul 21, 2021
784cc6f
Fix regexp toggle size (#23009)
Jul 21, 2021
03e3bec
search: Use query scanner to process/render search reference examples…
fkling Jul 21, 2021
a692cbd
GraphQL Client: Generate types for Apollo `typePolicies` (#22509)
umpox Jul 21, 2021
aaec123
GraphQL Client: Update GraphQL error types (#22721)
umpox Jul 21, 2021
5192c4c
Fix #22925 by removing needless database writes (#23061)
mrnugget Jul 21, 2021
7178aed
Add workspace volume mode to batch changes troubleshooting doc (#23068)
mrnugget Jul 21, 2021
ca1f115
Remove `nav-link` class to keep the insight search-button padding con…
vovakulikov Jul 21, 2021
be3315a
Remove BE-insight changelog line duplicate (#23064)
vovakulikov Jul 21, 2021
c708465
Make repo pages lazy loaded components (#23072)
eseliger Jul 21, 2021
aff392a
authz: Sync user permissions based on external service tokens (#23018)
ryanslade Jul 21, 2021
0f8f3c9
CHANGELOG: Fix typo
Jul 21, 2021
d7c3791
Guard against a nil pointer panic (#23033)
olafurpg Jul 21, 2021
795752a
Don't pass invalid arguments to ignite stop/remove (#22676)
eseliger Jul 21, 2021
dd40117
HubSpot: Send database ID on Cloud signups (#22951)
attfarhan Jul 21, 2021
346c35b
gomod: update zoekt to remove old meta files (#23075)
keegancsmith Jul 21, 2021
2df4b43
Implement auto-inference for Java package repositories. (#23076)
olafurpg Jul 21, 2021
2ca4437
Add JDK sources to "JVM Dependencies" external service type. (#23074)
olafurpg Jul 21, 2021
28e524c
Always pass HOME and PATH to commands run by executor (#23077)
eseliger Jul 21, 2021
326d250
tune down result limits in searcher (#23082)
camdencheek Jul 21, 2021
7afe9c5
extsvc: Add helper method to extract token (#23073)
ryanslade Jul 21, 2021
c942a2e
gqltest: minor tweak of README (#23062)
unknwon Jul 21, 2021
01575ee
sg: add ability to define `checks` per `commandset` (#23020)
mrnugget Jul 21, 2021
19ee94d
Fix feature tour integration tests (#23060)
Jul 21, 2021
070c110
Move heartbeats from executor-queue to executor (#22972)
eseliger Jul 21, 2021
6fa3751
flake: disable Quicklinks regression test (#23051)
courier-new Jul 21, 2021
1a3e7ad
auth: Redirect github oauth login attempt back if user cancels (#23083)
ryanslade Jul 21, 2021
2b6144a
Restrict importing from `enterprise` in OSS codebase (#23044)
courier-new Jul 21, 2021
7337d5b
Update CHANGELOG.md
andreeleuterio Jul 21, 2021
3d0aedd
insights: changing searcher limit to 20k (#23090)
coury-clark Jul 21, 2021
85112ba
Insights: migrate code insights from repo-updater to worker service (…
coury-clark Jul 21, 2021
f902e0a
search: lift IsEmpty check into doResults guards (#23057)
rvantonder Jul 21, 2021
9755572
search: perform IsEmpty check before resolving repos in suggestions (…
rvantonder Jul 21, 2021
6683052
code monitoring: remove w1-signup-optimisation feature flag (#23008)
Jul 21, 2021
47d7fd4
Update CHANGELOG (#20928)
daxmc99 Jul 21, 2021
4571fa4
docs: add 3.30 pure docker release notes (#23100)
ggilmore Jul 21, 2021
f4224ea
release: sourcegraph@3.30.0 (#23059)
daxmc99 Jul 21, 2021
07944fe
deployment_best_practices.md (#22907)
DaedalusG Jul 22, 2021
8b784e2
Update deployment_best_practices.md (#23107)
DaedalusG Jul 22, 2021
b377701
Fixing one more typo (#23108)
DaedalusG Jul 22, 2021
ec9f1a4
Fixing typos on apostrophes (#23109)
DaedalusG Jul 22, 2021
1a61249
Fix .yaml file link formatting (#23110)
DaedalusG Jul 22, 2021
265e183
add EventPathMatch to streaming API (#22996)
camdencheek Jul 22, 2021
d205147
Prepare for 3.31 release (#23111)
daxmc99 Jul 22, 2021
407908a
rename File to Content in stream events (#23035)
camdencheek Jul 22, 2021
414a6c2
repos: Delete batch syncer (#22949)
Jul 22, 2021
285fca7
search: Index 1M repos on dotcom (#23119)
Jul 22, 2021
30a36bc
monitoring: Tweak oldest sync alert (#23120)
ryanslade Jul 22, 2021
94f994b
Follow up on post-merge code style review (#23123)
olafurpg Jul 22, 2021
70504ca
repos: Log errors in SyncExternalService (#23127)
Jul 22, 2021
c255ca7
Removing reference to Bitbucket perms button (#23103)
emchap Jul 22, 2021
e807a2c
Stream ExecutionLogEntries from executor (#22884)
eseliger Jul 22, 2021
594200b
Don't limit maximum number of dequeued jobs (#23122)
eseliger Jul 22, 2021
b211823
codeintel: Add references to lsif-index-tester (#20036)
tjdevries Jul 22, 2021
11e7f45
Clarifying subdirectory handling for p4 (#23104)
emchap Jul 22, 2021
e12b322
httpcli: add retries to NewExternalHTTPClientFactory (#23131)
Jul 22, 2021
869ad1a
flake: disable Symbols sidebar regression test (#23099)
courier-new Jul 22, 2021
06335c2
search frontend: accurate hovers for multiline query inputs (#23114)
rvantonder Jul 22, 2021
ed51560
search: remove commit_pattern_info.go (#23097)
rvantonder Jul 22, 2021
420f4a8
search: ZoektGlobalSearch mode implied by non-empty query (#23093)
rvantonder Jul 22, 2021
b9044ef
search docs: notify @rvantonder (#23133)
rvantonder Jul 22, 2021
a85071c
Setup restricted db connection pool (#23078)
indradhanush Jul 22, 2021
bcfd067
search: empty patterns imply skipping content/file search (#23094)
rvantonder Jul 22, 2021
2b1c33d
API docs: LSIF: add references/definitions to tree API, not just blob…
emidoots Jul 22, 2021
ee7d98a
add a nil check for include patterns (#23138)
camdencheek Jul 22, 2021
099c441
search: remove text_pattern_info.go (#23095)
rvantonder Jul 22, 2021
5893fdc
search: remove excessive duplication for repoHasFile evaluation (#23105)
rvantonder Jul 22, 2021
be12b7b
Update config for 3.31.1 patch release (#23142)
daxmc99 Jul 22, 2021
f443809
batches: don't show batch changes on sourcegraph.com (#23052)
courier-new Jul 22, 2021
8d299cd
insights: introduced query cost and priority to distribute resources …
coury-clark Jul 22, 2021
4f151db
docs: fix typo, bullet formatting on pings doc (#23148)
courier-new Jul 22, 2021
1e9e64e
exclude all directories named "enterprise" from apache license (#23150)
tammy-zhu Jul 23, 2021
9fd8185
dbconn: subscribe to codenotify (#23155)
unknwon Jul 23, 2021
6cec69f
search notebook: render Markdown blobs (#23071)
Jul 23, 2021
3ba0b6c
Guard against a nil pointer dereference (#23124)
olafurpg Jul 23, 2021
5b758c1
sg: add run-set for core app (#23156)
unknwon Jul 23, 2021
230e922
GraphQL Client: Add `useConnection` hook to replace `<FilteredConnect…
umpox Jul 23, 2021
8e75ff3
Use custom postion calculator for the dashboard page contex-menu popo…
vovakulikov Jul 23, 2021
c12d400
database: Increase indexable repos threshold
tsenart Jul 23, 2021
60c2a42
search notebook: improve query block loading state (#23162)
Jul 23, 2021
7b4869a
docs: reorganize docker-compose docs, clean up admin homepage (#23029)
bobheadxi Jul 23, 2021
8aeec8c
security: Instrument access granted for private repos (#23164)
ryanslade Jul 23, 2021
e2d1415
repos: Publish Diff after committing transaction (#23169)
Jul 23, 2021
e834ccd
monitoring: Add helpers to make panels and groups for common metric p…
efritz Jul 23, 2021
759716f
codeintel: Repair broken metrics and standardize differing metrics (#…
efritz Jul 23, 2021
3de7bcd
repos: Make syncer more conservative when deleting repos (#23171)
Jul 23, 2021
d5c98a5
docs: add redirects for docker-compose upgrade/configure pages (#23173)
bobheadxi Jul 23, 2021
2d57233
httpcli: Only log retries (#23176)
Jul 23, 2021
ab6d1c6
fix vuln in libgcrypt (#23174)
davejrt Jul 23, 2021
14a3c03
Add CHANGELOG entry for libgcrypt (#23178)
daxmc99 Jul 23, 2021
208c3e1
Update CHANGELOG
tsenart Jul 23, 2021
addd495
adding note about disabled code insights on dot-com (#23177)
coury-clark Jul 23, 2021
b2a1397
add note about non-root overlays (#23179)
davejrt Jul 23, 2021
6032c83
repos: Add DISABLE_STATUS_MESSAGES_REPOS_COUNTING env var
tsenart Jul 23, 2021
3d08088
search: remove `w0-signup-optimisation` feature flag (#23037)
Jul 23, 2021
e99c2dc
search: lift up empty pattern check for symbols (#23149)
rvantonder Jul 23, 2021
6b9dcc6
monitoring: Fix sloppy field usage (#23185)
efritz Jul 23, 2021
0ccbfeb
codeintel: Fix inconsistent metric names (#23184)
efritz Jul 23, 2021
db8f540
search: move zoekt query conversion function to search package (#23153)
rvantonder Jul 23, 2021
f692c6a
Add warning about 3.30 to CHANGELOG (#23183)
daxmc99 Jul 23, 2021
807643e
codeintel: Update settings UI (#23106)
efritz Jul 23, 2021
e19a345
search: promote zoekt query conversion (#23154)
rvantonder Jul 23, 2021
18f04f9
Clarify use case for doc (#23181)
northyg Jul 23, 2021
f3a1f90
release: sourcegraph@3.30.1 (#23151)
daxmc99 Jul 23, 2021
b6fc13a
Update release-config (#23196)
daxmc99 Jul 23, 2021
0db8621
Remove previous postgres images (#23102)
daxmc99 Jul 23, 2021
96bb87a
monitoring: Update dashboards (#23091)
efritz Jul 25, 2021
16586b1
chore: update third-party license (#23215)
sourcegraph-bot Jul 26, 2021
81bae56
chore: fix typo in third-party-licenses commit messages (#23216)
bobheadxi Jul 26, 2021
a0bb6e9
sg: Move everything Command/exec.Cmd related to run package (#23175)
mrnugget Jul 26, 2021
f010159
CI: bump libxml2 and redis (#23221)
stefanhengl Jul 26, 2021
434f470
search: Add operators to search reference (#23116)
fkling Jul 26, 2021
dbb105c
Cleanup executor queue and move state to DB (#23165)
eseliger Jul 26, 2021
1c68e06
extensibility: use sideloaded settings schema over remote (#23207)
tjkandala Jul 26, 2021
9ea347b
search: Fix search reference filter filter (#23224)
fkling Jul 26, 2021
0aafe84
search: split global indexed search in public/private queries (#23118)
stefanhengl Jul 26, 2021
b867a79
Continuously update executor log entries instead of writing at end (#…
mrnugget Jul 26, 2021
0997c34
fix: Add missing column on lsif_uploads (#23228)
efritz Jul 26, 2021
ca7aad9
Remove access token option in connecting with code hosts (#23227)
Jul 26, 2021
16adb15
codeintel: Relax stalled max age (#23234)
efritz Jul 26, 2021
cf6991b
Do bulk heartbeats in every worker (#23230)
eseliger Jul 26, 2021
61148fb
search: move zoekt query conversion test (#23198)
rvantonder Jul 26, 2021
78ac3db
codeintel: Rate limit auto-indexing requests to repo-updater/gitserve…
efritz Jul 26, 2021
a2f368c
fix: Fix panic with log15 call (#23245)
efritz Jul 26, 2021
124ba7a
saved searches: convert form to function component and add storybook …
Jul 26, 2021
1a19d3c
extensibility: fix GitHub and GitLab hover overlay styles (#23206)
tjkandala Jul 26, 2021
d9fc33a
added search limit (#23197)
Joelkw Jul 26, 2021
e6fbc8e
dev(release): rename campaigns to batch changes (#23200)
bobheadxi Jul 27, 2021
6e24dfb
insights: added graphQL arguments to filter an insights query (#23256)
coury-clark Jul 27, 2021
7230f90
Fix search reference changelog entry (#23261)
fkling Jul 27, 2021
d362f5c
security: Log AccessGranted events when repo accessed directly (#23168)
ryanslade Jul 27, 2021
ab83f9d
search: Remove superfluous console.log statement (#23263)
fkling Jul 27, 2021
07977dd
Refine error handling for JVM dependencies that fail to resolve. (#23…
olafurpg Jul 27, 2021
3ddddc2
Fuzzy finder: don't force URL to use git SHA revision (#22133)
olafurpg Jul 27, 2021
eea18b7
output: properly reset StatusBar in Resetf (#23266)
mrnugget Jul 27, 2021
4126506
Remove unnecessary log message (#23267)
eseliger Jul 27, 2021
4bab7d6
Add namespace selector for create batch spec execution page (#22934)
eseliger Jul 27, 2021
713819a
Incorporate executor-queue into frontend server (#23239)
eseliger Jul 27, 2021
d062eee
metrics: Fix a possible divide by zero error in sql statement (#23269)
ryanslade Jul 27, 2021
77cc501
Typo in unfinished_migrations.md (#23254)
Kelvin-Lee Jul 27, 2021
9c1dd35
Attempting full explanation of select feature (#23250)
emchap Jul 27, 2021
3266f37
monitoring: Also show aggregate metrics if split via By (#23237)
efritz Jul 27, 2021
88f2a40
search: simplify repo rev callback resolution (#23242)
rvantonder Jul 27, 2021
38343de
search: pass file limit to zoekt search options (#23253)
rvantonder Jul 27, 2021
d2b78b1
Update CHANGELOG for Graceful termination periods (#23278)
daxmc99 Jul 27, 2021
b41d042
Insights: fetch backend insights from database instead of directly fr…
coury-clark Jul 27, 2021
78084d4
Add warning on 3.30 upgrade (#23290)
daxmc99 Jul 27, 2021
eb85c0f
batches: restore global nav item on sourcegraph.com (#23259)
courier-new Jul 28, 2021
c4f3c59
web: improve code block border consistency (#23262)
courier-new Jul 28, 2021
79e0d41
symbols: update go-sqlite3 v1.14.8 (#23282)
keegancsmith Jul 28, 2021
6a647c7
gitserver: use os.Remove in testRepoCorrupter (#23283)
keegancsmith Jul 28, 2021
6f4d327
search: don't surface ctx error from repo resolution
stefanhengl Jul 28, 2021
ffa3935
CONTRIBUTING: mention contributing to enterprise code, fix CoC link, …
emidoots Apr 12, 2022
9139f5d
correct the code of conduct link to the Community Code of Conduct
tammy-zhu Apr 12, 2022
ee4f6d6
Fix GitLab project name with new navigation enabled (#53532)
iamphill Aug 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
8 changes: 8 additions & 0 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
set -eu
pushd "$(dirname "${BASH_SOURCE[0]}")"/../..

ORPHAN_ASDF=()
mapfile ORPHAN_ASDF < <(find "$HOME/.asdf/installs/" -maxdepth 2 -empty)

for dir in "${ORPHAN_ASDF[@]}"; do
echo "Removing orphaned .asdf directory: ${dir}"
rm -rf "${dir}"
done

TOOL_VERSION_FILES=()
mapfile -d $'\0' TOOL_VERSION_FILES < <(fd .tool-versions --hidden --absolute-path --print0)

Expand Down
12 changes: 12 additions & 0 deletions .buildkite/pipeline.async.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
env:
ENTERPRISE: "1"
MINIFY: "1"
FORCE_COLOR: "3"

steps:
- command:
- COVERAGE_INSTRUMENT=true NODE_OPTIONS="--max_old_space_size=4096" dev/ci/yarn-run.sh build-storybook
- yarn run cover-storybook
- yarn nyc report -r json
- bash <(curl -s https://codecov.io/bash) -c -F typescript -F storybook
label: ':storybook::codecov: Storybook coverage'
9 changes: 9 additions & 0 deletions .buildkite/pipeline.codeintel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
env:
VAGRANT_RUN_ENV: "CI"
steps:
- label: ':docker::brain: Code Intel'
command:
- .buildkite/vagrant-run.sh sourcegraph-code-intel-test
artifact_paths: ./*.log
agents:
queue: 'baremetal'
27 changes: 7 additions & 20 deletions .buildkite/pipeline.e2e.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
env:
ENTERPRISE: "1"
DOCKER_BUILDKIT: "1"
ENTERPRISE: "1"
FORCE_COLOR: "3"
GO111MODULE: "on"
IMAGE: "server_instrumented"
TAG: "${BUILDKITE_BUILD_NUMBER}_${BUILDKITE_RETRY_COUNT}"
COVERAGE_INSTRUMENT: "true"
TEST_USER_PASSWORD: "SuperSecurePassword"

VAGRANT_RUN_ENV: 'CI'
steps:
- artifact_paths: ./puppeteer/*.png;./web/e2e.mp4;./web/ffmpeg.log
command:
- pushd enterprise
- ./cmd/server/pre-build.sh
- ./cmd/server/build.sh
- popd
- ./dev/ci/e2e.sh
- docker image rm -f "$IMAGE"
timeout_in_minutes: 20
label: ':docker::arrow_right::chromium:'
- label: ':chromium: Sourcegraph E2E'
artifact_paths: ./*.png;./*.mp4;./ffmpeg.log
command:
- .buildkite/vagrant-run.sh sourcegraph-e2e
agents:
queue: 'baremetal'
24 changes: 24 additions & 0 deletions .buildkite/pipeline.qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
env:
VAGRANT_RUN_ENV: "CI"
steps:
- label: ':docker::chromium: Sourcegraph QA'
command:
- .buildkite/vagrant-run.sh sourcegraph-qa-test
artifact_paths: ./*.png;./*.mp4;./*.log
agents:
queue: 'baremetal'

- label: ':docker::arrow_double_up: Sourcegraph Upgrade'
command:
- .buildkite/vagrant-run.sh sourcegraph-upgrade
artifact_paths: ./*.png;./*.mp4;./*.log
agents:
queue: 'baremetal'

- label: ":k8s: Sourcegraph Cluster (deploy-sourcegraph) QA"
commands:
- dev/ci/test/cluster/cluster-test.sh
artifact_paths: ./*.png;./*.mp4;./*.log
concurrency: 1
concurrency_group: "cluster-test"
timeout_in_minutes: 30
19 changes: 19 additions & 0 deletions .buildkite/updater/is-tip-of-main.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

cd "$(dirname "${BASH_SOURCE[0]}")/../.."
set -euxo pipefail

COMMIT="${BUILDKITE_COMMIT}"

API_SLUG="repos/sourcegraph/sourcegraph/commits"
function get_branch_tip() {
local ref="$1"

# https://docs.github.com/en/rest/reference/repos#list-commits
gh api "${API_SLUG}?sha=${ref}&per_page=1" --jq '.[].sha'
}

REF="main"
tip_of_main="$(get_branch_tip ${REF})"

[[ "$tip_of_main" == "$COMMIT" ]]
15 changes: 15 additions & 0 deletions .buildkite/updater/pipeline.update-trigger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
steps:
- trigger: 'ds-updater-test-image-updater'
label: ':k8s: :arrows_counterclockwise: :construction: Trigger update pipeline for deploy-sourcegraph-updater-test'
branches: 'main'
async: true
build:
env:
TARGET_COMMIT: '${BUILDKITE_COMMIT}'
- trigger: 'deploy-sourcegraph-dogfood-k8s-2-image-updater-pipeline'
label: ':k8s: :arrows_counterclockwise: :dog: Trigger update pipeline for deploy-sourcegraph-dogfood-k8s-2'
branches: 'main'
async: true
build:
env:
TARGET_COMMIT: '${BUILDKITE_COMMIT}'
11 changes: 11 additions & 0 deletions .buildkite/updater/trigger-if-tip-of-main.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

cd "$(dirname "${BASH_SOURCE[0]}")/../.."
set -euo pipefail

if ! .buildkite/updater/is-tip-of-main.sh; then
echo "🚨 This commit is not the tip of main (either it's behind or an unrelated commit). Skipping deployment triggers..."
exit 0 # This is not a failure condition.
fi

buildkite-agent pipeline upload '.buildkite/updater/pipeline.update-trigger.yaml'
49 changes: 49 additions & 0 deletions .buildkite/vagrant-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/usr/bin/env bash

cd "$(dirname "${BASH_SOURCE[0]}")/.."
set -euxo pipefail

box="$1"
exit_code=0

pushd "dev/ci/test"

cleanup() {
echo "--- vagrant status"
vagrant status --debug-timestamp "$box"

echo "--- vagrant destroy"
vagrant destroy -f "$box"
}

# remove log prefix that vagrant inserts so buildkite can interpret control
# characters from output. For example
#
# sourcegraph-e2e: --- yarn run test-e2e
#
# becomes
#
# --- yarn run test-e2e
remove_log_prefix() {
# We don't use ^ due to control characters.
sed -E "s/ ${box}: (---|\+\+\+|\^\^\^) /\1 /g"
}

plugins=(vagrant-google vagrant-env vagrant-scp)
for i in "${plugins[@]}"; do
if ! vagrant plugin list --no-tty | grep "$i"; then
vagrant plugin install "$i"
fi
done

trap cleanup EXIT

(vagrant up "$box" --provider=google | remove_log_prefix) || exit_code=$?

vagrant scp "${box}:/sourcegraph/puppeteer/*.png" ../../../
vagrant scp "${box}:/sourcegraph/*.mp4" ../../../
vagrant scp "${box}:/sourcegraph/*.log" ../../../

if [ "$exit_code" != 0 ]; then
exit $exit_code
fi
6 changes: 2 additions & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ yarn-error.log

eb-bundle.zip

/cmd/frontend/internal/app/assets/assets_vfsdata.go

/release/

/conf/private
Expand Down Expand Up @@ -97,7 +95,7 @@ cmd/indexer/debug

# Web
node_modules/
/web
/client/web

# Extensions
/packages/sourcegraph-extension-api/dist
/extension-api/dist
6 changes: 5 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ indent_size = 4
[*.go]
indent_style = tab

[{*.js,*.json,*.yml,*.md,.babelrc,.stylelintrc}]
[{*.js,*.jsx,*.json,*.yml,*.yaml,*.md,.babelrc,.stylelintrc}]
indent_size = 2

[*.md]
Expand All @@ -24,3 +24,7 @@ switch_case_indent = true

[**/node_modules/**]
ignore = true

# shfmt shouldn't format third-party script codecov.sh
[dev/ci/codecov.sh]
ignore = true
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
out/
src/schema/*
src/graphql-operations.ts
GH2SG.bookmarklet.js
13 changes: 13 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const config = {
ecmaFeatures: {
jsx: true,
},
EXPERIMENTAL_useSourceOfProjectReferenceRedirect: true,
project: __dirname + '/tsconfig.json',
},
settings: {
Expand All @@ -30,9 +31,12 @@ const config = {
},
],
},
plugins: ['@sourcegraph/sourcegraph', 'monorepo'],
rules: {
// Rules that are specific to this repo
// All other rules should go into https://github.com/sourcegraph/eslint-config
'monorepo/no-relative-import': 'error',
'@sourcegraph/sourcegraph/check-help-links': 'error',
'no-restricted-imports': [
'error',
{
Expand All @@ -46,6 +50,14 @@ const config = {
message: 'Code using animationFrameScheduler breaks in Firefox when using Sentry.',
},
],
patterns: [
{
group: ['**/enterprise/*'],
message: `The OSS product may not pull in any code from the enterprise codebase, to stay a 100% open-source program.

See https://about.sourcegraph.com/community/faq#is-all-of-sourcegraph-open-source for more information.`,
},
],
},
],
'react/forbid-elements': [
Expand All @@ -60,6 +72,7 @@ const config = {
],
},
],
'react/jsx-no-target-blank': ['error', { allowReferrer: true }],
},
overrides: [
{
Expand Down
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
cmd/frontend/graphqlbackend/schema.go linguist-generated=true
cmd/repo-updater/repos/testdata/** linguist-generated=true
**/__fixtures__/** linguist-generated=true
**/bindata.go linguist-generated=true
Expand Down
Loading