Commit Graph

116 Commits

Author SHA1 Message Date
Quinn Slack
1fe876e89c
finish removing chromatic (#63966)
We removed Chromatic in
https://github.com/sourcegraph/sourcegraph/pull/62228, but there were
still some remnants.

## Test plan

CI
2024-07-21 18:37:02 -07:00
Camden Cheek
52ebd70bd0
Chore: remove gorilla/schema (#63738)
We created a decoder that was never used, but the package is otherwise
unused. It recently had a CVE, so this just removes it so it's no longer
part of our security surface area.
2024-07-10 15:36:37 +00:00
Quinn Slack
dc478c82dd
chore(ci): remove Percy visual tests (#63515)
These are more frequently erroneous than helpful.

See
https://sourcegraph.slack.com/archives/C04MYFW01NV/p1719209633005499.

This eliminates a source of frustration and flakiness in pull requests
and removes a lot of code and Bazel complexity.

If we want to revive them, we can revert this commit. Note that
`client/web-sveltekit` does not use Percy, and if we want it to, we can
always revert this commit or start over from scratch if that's easier.


<!-- PR description tips:
https://www.notion.so/sourcegraph/Write-a-good-pull-request-description-610a7fd3e613496eb76f450db5a49b6e
-->

## Test plan

CI

Co-authored-by: Jean-Hadrien Chabran <jean-hadrien.chabran@sourcegraph.com>
2024-06-27 16:20:06 +02:00
Erik Seliger
24e8505019
chore: Completely sunset qdrant (#62018)
This removes qdrant from this codebase entirely.
All the docker images, dependencies, (dead) usage in code.

My understanding is that we don't use this feature and never properly rolled it out.

Test plan:

CI passes and code review from owners.
2024-04-22 18:00:57 +02:00
Robert Lin
04509ed107
chore: convert nested CODEOWNERS to CODENOTIFY (#61936)
I don't think we use CODEOWNERS really, and GitHub only supports one per branch anyway - I think the intent is to use CODENOTIFY instead. https://github.com/sourcegraph/sourcegraph/pull/61934#discussion_r1567741039
2024-04-16 18:03:26 +00:00
sourcegraph-bot-devx
6b156fbb1d
chore: update third-party licenses (#59370)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2024-01-08 10:12:45 +02:00
sourcegraph-bot-devx
59fe4bce20
chore: update third-party licenses (#59259)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
Co-authored-by: Jean-Hadrien Chabran <jean-hadrien.chabran@sourcegraph.com>
2024-01-02 19:40:48 +01:00
sourcegraph-bot-devx
6cb901f888
chore: update third-party licenses (#59227)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
Co-authored-by: William Bezuidenhout <william.bezuidenhout@sourcegraph.com>
2023-12-27 08:06:38 +00:00
sourcegraph-bot-devx
c7a6ef3b6a
chore: update third-party licenses (#58876)
Co-authored-by: burmudar <burmudar@users.noreply.github.com>
2023-12-19 10:46:33 +02:00
Jean-Hadrien Chabran
a9c3f8ce9a
chore: links/ownership devx->dev-infra (#58999) 2023-12-14 15:07:20 +00:00
sourcegraph-bot-devx
3eb774f2f1
chore: update third-party licenses (#58725)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2023-12-04 06:25:14 +02:00
sourcegraph-bot-devx
7831238dee
chore: update third-party licenses (#58576)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2023-11-27 11:52:14 +02:00
sourcegraph-bot-devx
8fa7514a9e
chore: update third-party licenses (#58423)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
Co-authored-by: William Bezuidenhout <william.bezuidenhout@sourcegraph.com>
2023-11-20 14:00:42 +00:00
sourcegraph-bot-devx
df9e2d0dd5
chore: update third-party licenses (#58281)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2023-11-14 09:47:20 +02:00
sourcegraph-bot-devx
678ea40a7e
chore: update third-party licenses (#58110)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2023-11-06 09:37:24 +02:00
sourcegraph-bot-devx
6a6286b9e8
chore: update third-party licenses (#57972)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
Co-authored-by: William Bezuidenhout <william.bezuidenhout@sourcegraph.com>
2023-10-30 07:43:37 +00:00
Quinn Slack
de613e92b6
use esbuild for client/web builds (#57365)
Use [esbuild](https://esbuild.github.io/) instead of Webpack for builds of `client/web`, for faster builds (dev and prod) and greater dev-prod parity. This PR completely removes all use of Webpack in this repository.

`client/web` is the last build target that still uses Webpack; all others have been recently migrated to esbuild. Most devs here have been using esbuild for local dev of `client/web` for the last 6-12 months anyway. The change here is that now our production builds will be built by esbuild.

All sg commands, integration/e2e tests, etc., continue to work as-is. The bundlesize report will take a while to stabilize because the new build products use different filenames.

## Benchmarks

Running `pnpm run generate && time pnpm -C client/web run task:gulp webBuild` and taking the `time` output from the last command:

- Webpack: 62.5s
- esbuild: 6.7s

Note: This understates esbuild's victory for 2 reasons: (1) because esbuild is building both the main and embed entrypoints, whereas Webpack only builds the main entrypoint in this benchmark) and (2) because a lot of it is in the fixed startup time of `gulp`; esbuild incremental rebuilds during local dev only take ~1s.

## Notes

We no longer use Babel to produce web builds (we use esbuild), so we don't need any Babel plugins that optimize the output or improve browser compatibility. Right now, Babel is only used by Jest (for tests) and by Bazel as an intermediate step.
2023-10-23 10:59:06 -07:00
sourcegraph-bot-devx
9a787d9e35
chore: update third-party licenses (#57783)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2023-10-23 06:59:30 +02:00
sourcegraph-bot-devx
d9fcb29722
chore: update third-party licenses (#57611)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
Co-authored-by: William Bezuidenhout <william.bezuidenhout@sourcegraph.com>
2023-10-18 15:16:13 +00:00
sourcegraph-bot-devx
56488dbafa
chore: update third-party licenses (#57233)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2023-10-09 09:20:57 +02:00
Quinn Slack
dc7368e7a0
remove lighthouse (frontend auditing for perf, etc.) (#57406)
We were not using [Lighthouse](https://developer.chrome.com/docs/lighthouse/overview/) reports, but they were running (asynchronously) on each build, which caused occasional build flakes and added a moderate amount of complexity to our CI.

The reports do have value in theory, but we were not actually consulting the reports.
2023-10-06 06:46:09 +00:00
Quinn Slack
6456733516
clean up browser extension webpack build (#57229)
* use single-file entrypoints for browser ext webpack config

This is more standard and puts more of the config in code not config. This also makes it easier to support esbuild builds for the browser extension (esbuild does not support multiple sources for an entrypoint, because such behavior is undefined except by webpack, and who knows what it does).

* use different file basenames for native & phabricator integrations

This makes it easier (in the future) to simplify our bundler config for the browser extension because some bundlers (esbuild via Bazel, for example) do not support 2 entrypoints with the same file basename.

* name entrypoint bundles after their entrypoint, not a custom name

This removes another source of "names" and also makes it so that the browser extension can be built by esbuild via Bazel in the future (which does not support renaming entrypoints).

Also remove Webpack auto-reloading because its implementation depended on this. There is a workaround, but the intent is to remove Webpack for bext builds, so it's not worth keeping it.
2023-10-02 10:43:40 -07:00
sourcegraph-bot-devx
3d79f67117
chore: update third-party licenses (#56993)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
Co-authored-by: Jean-Hadrien Chabran <jean-hadrien.chabran@sourcegraph.com>
2023-09-26 10:23:14 +02:00
sourcegraph-bot-devx
a75b2b5263
chore: update third-party licenses (#56335)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
Co-authored-by: William Bezuidenhout <william.bezuidenhout@sourcegraph.com>
2023-09-18 07:45:46 +00:00
sourcegraph-bot-devx
527663b79a
chore: update third-party licenses (#56262)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2023-08-28 00:20:32 +00:00
sourcegraph-bot-devx
3673efffc6
chore: update third-party licenses (#56027)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2023-08-21 09:21:03 +02:00
sourcegraph-bot-devx
6c76b1b0ab
chore: update third-party licenses (#55819)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2023-08-14 06:45:38 +02:00
sourcegraph-bot-devx
8e48a1feb0
chore: update third-party licenses (#55598)
This is an automated pull request generated by [this
run](https://github.com/sourcegraph/sourcegraph/actions/runs/5779485798).
Learn more about our GitHub Actions for managing licenses
[here](https://docs.sourcegraph.com/dev/background-information/ci#third-party-licenses).

You're safe to merge this pull request when the required checks are
passing.

Test plan: CI should pass with any updates.

Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2023-08-07 06:29:31 +02:00
sourcegraph-bot-devx
13f91a400c
chore: update third-party licenses (#55416)
This is an automated pull request generated by [this
run](https://github.com/sourcegraph/sourcegraph/actions/runs/5709073638).
Learn more about our GitHub Actions for managing licenses
[here](https://docs.sourcegraph.com/dev/background-information/ci#third-party-licenses).

You're safe to merge this pull request when the required checks are
passing.

Test plan: CI should pass with any updates.

Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2023-07-31 06:53:48 +02:00
sourcegraph-bot-devx
c134741847
chore: update third-party licenses (#55212)
This is an automated pull request generated by [this
run](https://github.com/sourcegraph/sourcegraph/actions/runs/5639317030).
Learn more about our GitHub Actions for managing licenses
[here](https://docs.sourcegraph.com/dev/background-information/ci#third-party-licenses).

You're safe to merge this pull request when the required checks are
passing.

Test plan: CI should pass with any updates.

Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2023-07-24 07:17:33 +02:00
sourcegraph-bot-devx
ca5cfa648a
chore: update third-party licenses (#55028)
This is an automated pull request generated by [this
run](https://github.com/sourcegraph/sourcegraph/actions/runs/5578826248).
Learn more about our GitHub Actions for managing licenses
[here](https://docs.sourcegraph.com/dev/background-information/ci#third-party-licenses).

You're safe to merge this pull request when the required checks are
passing.

Test plan: CI should pass with any updates.

Co-authored-by: davejrt <davejrt@users.noreply.github.com>
2023-07-17 17:53:19 +00:00
Idan Varsano
be61c04452
Gerrit Batch Changes (#52647)
Closes https://github.com/sourcegraph/sourcegraph/issues/50867

📺 Loom: https://www.loom.com/share/31d7bdace69d4a5ab8c732339f0a4950

I decided to just close the [Reviews
PR](https://github.com/sourcegraph/sourcegraph/pull/52470), and open
this up instead because as I was connecting everything I noticed quite a
few things that weren't right and I thought it would make more sense to
just merge the thing that works directly instead of making it a 2-step
process.

This includes basically everything needed for Gerrit Batch Changes, but
not webhooks (we don't know if that will be supported yet).

## Test plan

Added tests
2023-06-05 18:51:44 +00:00
William Bezuidenhout
19f2ca0c5b
mark hashicorp/cronexpr as Apache 2.0 (#52855)
Update licenses and add `hashicorp/cronexpr` as approved with Apache 2.0
license

## Test plan
`LICENCE_CHECK=true ./dev/license.sh`
<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
2023-06-02 13:49:03 +00:00
sourcegraph-bot-devx
e669dd6c54
chore: update third-party licenses (#51023)
This is an automated pull request generated by [this
run](https://github.com/sourcegraph/sourcegraph/actions/runs/4781104344).
Learn more about our GitHub Actions for managing licenses
[here](https://docs.sourcegraph.com/dev/background-information/ci#third-party-licenses).

You're safe to merge this pull request when the required checks are
passing.

Test plan: CI should pass with any updates.

Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2023-04-24 07:11:24 +02:00
sourcegraph-bot-devx
5503fad5b4
chore: update third-party licenses (#50692)
This is an automated pull request generated by [this
run](https://github.com/sourcegraph/sourcegraph/actions/runs/4716062012).
Learn more about our GitHub Actions for managing licenses
[here](https://docs.sourcegraph.com/dev/background-information/ci#third-party-licenses).

You're safe to merge this pull request when the required checks are
passing.

Test plan: CI should pass with any updates.

Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2023-04-17 07:26:48 +02:00
sourcegraph-bot-devx
7f46b0208a
chore: update third-party licenses (#50499)
This is an automated pull request generated by [this
run](https://github.com/sourcegraph/sourcegraph/actions/runs/4653161132).
Learn more about our GitHub Actions for managing licenses
[here](https://docs.sourcegraph.com/dev/background-information/ci#third-party-licenses).

You're safe to merge this pull request when the required checks are
passing.

Test plan: CI should pass with any updates.

Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2023-04-10 06:48:12 +02:00
sourcegraph-bot
1950503f8f
chore: update third-party licenses (#43992)
This is an automated pull request generated by [this
run](https://github.com/sourcegraph/sourcegraph/actions/runs/4591516143).
Learn more about our GitHub Actions for managing licenses
[here](https://docs.sourcegraph.com/dev/background-information/ci#third-party-licenses).

You're safe to merge this pull request when the required checks are
passing.

Test plan: CI should pass with any updates.

Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2023-04-05 09:46:28 +02:00
Quinn Slack
972636de77
use DOMPurify instead of sanitize-html for smaller bundle (#50002)
Also sanitize HTML more strictly. Previously we allowed SVG and `data:`
URIs in some cases (for some functionality from the legacy Sourcegraph
extension API). This is no longer needed, and getting stricter in HTML
sanitization is generally good.


## Test plan

Test callers of renderMarkdown in UI.


Co-authored-by: Juliana Peña <me@julip.co>
2023-03-28 18:30:30 -07:00
Quinn Slack
ae338b9797
remove code host native tooltip toggle, hover alerts, command palette, notifs (#48688)
- Remove support for toggling native tooltips from the browser
extension. This let users choose to keep the browser extension installed
and partially active on GitHub but not show Sourcegraph's hovers. This
functionality is less important now that GitHub's new code nav no longer
uses hovers. For old GitHub Enterprise server instances (and GitHub.com
users who have not enabled the new code view), users can disable the
browser extension if they want to disable Sourcegraph's hover
functionality.
- Remove hover alerts, which were used to warn users that the results
are imprecise. We still show this in a hover badge, which is a much
nicer UI for this than a dismissible warning (which felt more "CYA").
- Remove command palette because it was inextricable from notifications
and it was only used by the Sourcegraph extension API (which is
deprecated and will be removed).
- Remove the old notifications UI, which showed notification messages in
Sourcegraph and code host UIs. This is no longer necessary with the
removal of the command palette, because it is no longer possible to
invoke long-running actions whose errors must be shown in a separate,
global UI.

## Test plan

Existing tests suffice to test the existing code intelligence
functionality. This PR just removes functionality.
2023-03-06 20:36:18 -08:00
Camden Cheek
0c42579d07
Consolidate dependencies: remove neelance/parallel (#48159)
We use the `neelance/parallel` package for two things right now:
1) a semaphore
2) a waitgroup/errgroup

It makes for a more-complex-than-necessary semaphore, and a non-standard
errgroup. We use it along with the `goroutine` package to log panics,
but most of the time, logging a panic is not really what we want. This
change was inspired by me getting confused by panics being swallowed in
tests.

This replaces uses of the package with a combination of
`sourcegraph/conc` and a new `internal/limiter`.

The new `internal/limiter` package is a very simple channel-based
semaphore, and I merged in the `internal/mutablelimiter` package so now
we have `limiter.New(n)` and `limiter.NewMutable(n)`.

`sourcegraph/conc` replaces the combination of `goroutine.Go()` and
`run.Acquire()`/`run.Release()` along with error collection and
cancellation in some cases. Additionally, it propagates panics rather
than just logging and ignoring them, which is often not good behavior.
2023-02-24 11:24:46 -07:00
Stephen Gutekanst
d8590679c9
all: entirely remove minio support (#45311)
* all: entirely remove minio support

IMPORTANT: Please note this change is NOT active for customers until the
CHANGELOG is updated and clearly states the removal of this for a specific
version of Sourcegraph.

This change entirely removes minio support from our codebase, in favor
of the new Apache-licensed `sourcegraph/blobstore` Docker image:

* All deployment types already no longer use minio, including:
    * Single container `sourcegraph/server`
    * Docker Compose
    * Pure Docker
    * Kubernetes deployment types (helm, kustomize, vanilla, etc.)
    * AMI/image-based 'one click' deployments and script-install deployments
* Removed the Docker image so we no longer _distribute_ any minio code for
  new Sourcegraph versions in the future.
* Removed the ability of Sourcegraph to even configure/use minio in any form.
* Updated third-party license information to reflect the change.

Helps #44254

Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
2022-12-06 18:02:43 -07:00
William Bezuidenhout
27f89d5328
update license finder to 7.1.0 (#45148)
* update license finder to 7.1.0

* use newer action for ruby

* add trim and root-workspace to ignore dependencies

* add updated license information

* update licenses from latest main
2022-12-06 12:45:21 +00:00
Robert Lin
c73abb642a
workflows: bump license_finder to v7.0.1 (#43787)
* workflows: bump license_finder to v7.0.1

* add codeowners

* install yarn and add comment about yarn

* add license plugin

* plugin-licenses yarn plugin

* fix spec for plugin licenses

Co-authored-by: William Bezuidenhout <william.bezuidenhout@sourcegraph.com>
2022-11-03 11:27:06 +02:00
sourcegraph-bot
c206ad6dce
chore: update third-party licenses (#43814)
Co-authored-by: burmudar <burmudar@users.noreply.github.com>
2022-11-02 15:18:33 +00:00
sourcegraph-bot
aa97f7fb52
chore: update third-party licenses (#41717)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2022-11-02 10:04:28 +01:00
Quinn Slack
c174136d09
remove code for self-service payments and billing (#42045)
This has been deprecated for more than a year. We do not support self-service payment. See https://about.sourcegraph/pricing if you are a customer or want to be a customer.

The functionality remains for users to view license keys on Sourcegraph.com, and for us to generate license keys. There is no longer any way to see the billing history of subscriptions, but we have not supported the creation of such subscriptions for 2+ years. Any customers needing historical invoices may contact us.
2022-09-26 07:15:05 -07:00
sourcegraph-bot
b51d09e9ff
chore: update third-party licenses (#40650)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2022-09-16 11:41:50 -07:00
sourcegraph-bot
8f9be7d399
chore: update third-party licenses (#37085)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2022-08-15 12:27:23 -07:00
sourcegraph-bot
5df23ff8b6
chore: update third-party licenses (#33336)
Co-authored-by: bobheadxi <bobheadxi@users.noreply.github.com>
2022-06-08 15:09:43 -07:00
Eric Fritz
0739347a19
luasandbox: Add initial libraries (#34022) 2022-04-18 22:12:34 +00:00