Commit Graph

5092 Commits

Author SHA1 Message Date
Keegan Carruthers-Smith
f2fa76a8fd
migrations: remove support for NoTransaction (#64432)
This is a partial revert commit of
cbd12608b5.

We added support for NoTransaction but it isn't needed anymore. In fact
avoiding transactions leads to issues like poisoning connections.

Test Plan: CI
2024-08-13 16:08:36 +00:00
Keegan Carruthers-Smith
cbd12608b5
database: run tenant_id migration outside of a transaction (#64410)
We hit a deadlock when deploying this migration to s2. This is because
within our transaction of the migration we likely didn't obtain table
locks in the same order as a transaction in our application code.

So this commit introduces a new migration metadata field
"noTransaction". The documentation for migrator says you should create a
migration per needed transactions. However, this would require us to
create 100s of migrations. We believe the better approach is introducing
this field and barely advertising it.

When reading the code which actually runs migrations, there is no extra
logic done outside of BEGIN; run_migration; COMMIT; so this change is
safe.

We update the migrations to avoid duplicating the function name we
introduce in case something goes wrong (now that the transaction could
leak out the function name).

Test Plan: The actual migrations are tested by go test. I added a test
assertion that we don't call Transact, but to be honest that is super
sketchy. However, we couldn't actually find any test fixtures which
actually run against the DB. So that would require a much deeper
investment for how simple the code change is.

Co-authored-by: Erik Seliger <erikseliger@me.com>
2024-08-13 07:08:19 +02:00
Peter Guy
b625bea201
Doc and README update: Replace all usages of GH discussions with the SG community link. (#64374)
Sourcegraph's GitHub discussions have been defunct for awhile, but links
to them persisted in READMEs and documentation.

## Test plan

Documentation update only.
2024-08-08 13:04:13 -07:00
Noah S-C
b9c4e2aae9
Revert "Revert "refactor: upgrade to rules_oci 2.0 (2nd attempt)"" (#64354)
Reverts sourcegraph/sourcegraph#64351

## Test plan

Need to test on main due to main-only CI steps (even with main dry-run)
2024-08-08 09:00:08 +00:00
Noah S-C
addba96f47
Revert "refactor: upgrade to rules_oci 2.0 (2nd attempt)" (#64351)
Reverts sourcegraph/sourcegraph#63829

Not working with Aspect Delivery

## Test plan

CI
2024-08-07 22:15:21 +00:00
Greg Magolan
be015c58c2
refactor: upgrade to rules_oci 2.0 (2nd attempt) (#63829)
2nd attempt of #63111, a follow up
https://github.com/sourcegraph/sourcegraph/pull/63085

rules_oci 2.0 brings a lot of performance improvement around oci_image
and oci_pull, which will benefit Sourcegraph. It will also make RBE
faster and have less load on remote cache.

However, 2.0 makes some breaking changes like

- oci_tarball's default output is no longer a tarball
- oci_image no longer compresses layers that are uncompressed, somebody
has to make sure all `pkg_tar` targets have a `compression` attribute
set to compress it beforehand.
- there is no curl fallback, but this is fine for sourcegraph as it
already uses bazel 7.1.

I checked all targets that use oci_tarball as much as i could to make
sure nothing depends on the default tarball output of oci_tarball. there
was one target which used the default output which i put a TODO for
somebody else (somebody who is more on top of the repo) to tackle
**later**.

## Test plan

CI. Also run delivery on this PR (don't land those changes)

---------

Co-authored-by: Noah Santschi-Cooney <noah@santschi-cooney.ch>
2024-08-07 22:21:49 +01:00
YK
e6ae7d44b2
fix(docs): update quickstart guide links (#64202)
- Update the "getting started" link in the quickstart guide to point to
the correct URL
- Remove the outdated developer help links as they are no longer
relevant

## Test plan

Test the links manually
2024-08-01 16:18:55 -07:00
Erik Seliger
f09d8d277d
chore: Remove cmd/frontend/external/app (#64054)
Since we don't do the enterprise/oss split anymore, this global package
is no longer required and we can move the code to where it's actually
used.

Test plan: Go compiler doesn't complain, and integration tests are still
passing.
2024-07-31 03:42:55 +02:00
YK
09bd207693
Update the outdated link to #dev-experience to #discuss-dev-infra (#64018)
## Test plan

Test each link manually.

---------

Co-authored-by: Bolaji Olajide <25608335+BolajiOlajide@users.noreply.github.com>
2024-07-25 06:58:22 -05:00
Varun Gandhi
a6b6844678
chore: Rename Index -> AutoIndexJob (#63955)
Also renames a bunch of related types such as
- config.IndexJob -> config.AutoIndexJobSpec
- IndexLoader -> AutoIndexJobLoader

and so on.
2024-07-22 22:18:40 +08:00
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
Robert Lin
a07a1b9ed0
chore/sg: remove 'sg telemetry' and related docs (#63763)
Removes the `sg telemetry` command that pertains to the legacy V1
exporter that is specific to Cloud instances.

I got asked about this recently, and especially with the new `sg
analytics` for usage of the `sg` CLI, this has the potential to be
pretty confusing.

Part of https://linear.app/sourcegraph/issue/CORE-104

## Test plan

n/a

## Changelog

- `sg`: the deprecated `sg telemetry` command for allowlisting export of
V1 telemetry from Cloud instances has been removed. Use telemetry V2
instead.
2024-07-10 17:25:04 -07:00
Robert Lin
7d91894a01
chore/otel-collector: upgrade to v0.103.0, remove jaegerexporter (#63171)
Thread:
https://sourcegraph.slack.com/archives/C1JH2BEHZ/p1717797870638299

One problem caused by this upgrade is that the [deprecated
`jaegerexporter`](https://github.com/open-telemetry/opentelemetry-specification/pull/2858)
no longer builds at all with the last published version, so for the
upgrade to go through it must be removed. I've updated local `sg start`
to work with this change, but some Release team support is needed for
deployment configuration + customer-facing docs changes:
https://sourcegraph.slack.com/archives/C1JH2BEHZ/p1718143249191349?thread_ts=1717797870.638299&cid=C1JH2BEHZ,
since current guidance asks customers to configure `jaegerexporter`.

Part of https://linear.app/sourcegraph/issue/SEC-1680

Closes https://linear.app/sourcegraph/issue/CORE-177

## Test plan

Followed steps shared in
https://sourcegraph.slack.com/archives/C04MYFW01NV/p1718136211292469 to
run locally, since `sg run jaeger otel-collector` alone is insufficient
to get updated images:

```diff
diff --git a/wolfi-images/opentelemetry-collector.yaml b/wolfi-images/opentelemetry-collector.yaml
index b995a3d531b..76de80d4f84 100644
--- a/wolfi-images/opentelemetry-collector.yaml
+++ b/wolfi-images/opentelemetry-collector.yaml
@@ -7,7 +7,11 @@ contents:
     - mailcap
 
     ## opentelemetry-collector packages
-    - opentelemetry-collector@sourcegraph
+    - opentelemetry-collector@branch
+  keyring:
+    - https://packages.sgdev.org/sourcegraph-melange-dev.rsa.pub
+  repositories:
+    - '@branch https://packages.sgdev.org/branches/otel-collector-upgrade'
 
 paths:
   - path: /otel-collector
```

plus `sg wolfi lock opentelemetry-collector` will make `sg run
otel-collector` use the correct image.

**The above diffs SHOULD NOT be committed. The lock should happen
post-merge.**

Spot-checked some traces locally with:

```
sg run jaeger otel-collector
sg start
```


![image](https://github.com/sourcegraph/sourcegraph/assets/23356519/dff88d5a-db9a-4039-b7ba-682e120bdc41)


![image](https://github.com/sourcegraph/sourcegraph/assets/23356519/7e553894-0026-47de-ae38-ba5502b94c63)


## Changelog 

- OpenTelemetry Collector: Upgraded OpenTelemetry Collector to v0.103.0
- OpenTelemetry Collector: The [deprecated `jaegerexporter` has been
removed](https://github.com/open-telemetry/opentelemetry-specification/pull/2858).
Users of `exporter: { jaeger: ... }` in the OpenTelemetry Collector
should use `exporter: { otlp/jaeger: ... }` to send traces directly to
Jaeger via its OTLP receiver.
- Users of the default Jaeger configurations now need to provide
`JAEGER_OTLP_GRPC_PORT` as well as the existing `JAEGER_HOST`
configuration.

---------

Co-authored-by: Anish Lakhwara <anish+github@lakhwara.com>
Co-authored-by: Anish Lakhwara <anish+git@lakhwara.com>
2024-07-10 09:01:41 -07: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
83d0f6876c
dotcom: Remove on-demand cloning of repositories (#63321)
Historically, sourcegraph.com has been the only instance. It was
connected to GitHub.com and GitLab.com only.
Configuration should be as simple as possible, and we wanted everyone to
try it on any repo. So public repos were added on-demand when browsed
from these code hosts.

Since, dotcom is no longer the only instance, and this is a special case
that only exists for sourcegraph.com.
This causes a bunch of additional complexity and various extra code
paths that we don't test well enough today.

We want to make dotcom simpler to understand, so we've made the decision
to disable that feature, and instead we will maintain a list of
repositories that we have on the instance.
We already disallowed several repos half a year ago, by restricting size
of repos with few stars heavily.
This is basically just a continuation of that.

In the diff, you'll mostly find deletions. This PR does not do much
other than removing the code paths that were only enabled in dotcom mode
in the repo syncer, and then removes code that became unused as a result
of that.

## Test plan

Ran a dotcom mode instance locally, it did not behave differently than a
regular instance wrt. repo cloning.
We will need to verify during the rollout that we're not suddenly
hitting code paths that don't scale to the dotcom size.

## Changelog

Dotcom no longer clones repos on demand.
2024-06-26 14:53:14 -07:00
Joe Chen
b717fd518a
enterprise-portal: implement basic MSP IAM and RPCs (#63173)
Closes CORE-99, closes CORE-176

This PR is based off (and was also served as PoC of) [RFC 962: MSP IAM
framework](https://docs.google.com/document/d/1ItJlQnpR5AHbrfAholZqjH8-8dPF1iQcKh99gE6SSjs/edit).
It comes with two main parts:

1. The initial version of the MSP IAM SDK:
`lib/managedservicesplatform/iam`
- Embeds the [OpenFGA server
implementation](https://github.com/openfga/openfga/tree/main/pkg/server)
and exposes the a `ClientV1` for interacting with it.
- Automagically manages the both MSP IAM's and OpenFGA's database
migrations upon initializing the `ClientV1`.
![CleanShot 2024-06-18 at 15 09
24@2x](https://github.com/sourcegraph/sourcegraph/assets/2946214/387e0e28-a6c2-4664-b946-0ea4a1dd0804)
- Ensures the specified OpenFGA's store and automatization model DSL
exists.
- Utility types and helpers to avoid easy mistakes (i.e. make the
relation tuples a bit more strongly-typed).
- Decided to put all types and pre-defined values together to simulate a
"central registry" and acting as a forcing function for services to form
some sort of convention. Then when we migrate the OpenFGA server to a
separate standalone service, it will be less headache about
consolidating similar meaning types/relations but different string
literals.
1. The first use case of the MSP IAM:
`cmd/enterprise-portal/internal/subscriptionsservice`
	- Added/updated RPCs:
		- Listing enterprise subscriptions via permissions
		- Update enterprise subscriptions to assign instance domains
- Update enterprise subscriptions membership to assign roles (and
permissions)
- A database table for enterprise subscriptions, only storing the extra
instance domains as Enterprise Portal is not the
writeable-source-of-truth.

## Other minor changes

- Moved `internal/redislock` to `lib/redislock` to be used in MSP IAM
SDK.
- Call `createdb ...` as part of `enterprise-portal` install script in
`sg.config.yaml` (`msp_iam` database is a hard requirement of MSP IAM
framework).

## Test plan

Tested with gRPC UI:

- `UpdateEnterpriseSubscription` to assign an instance domain
- `UpdateEnterpriseSubscriptionMembership` to assign roles
- `ListEnterpriseSubscriptions`:
	- List by subscription ID
	- List by instance domain
	- List by view cody analytics permissions

---------

Co-authored-by: Robert Lin <robert@bobheadxi.dev>
2024-06-19 21:46:48 -04:00
Noah S-C
4638ab87d4
chore(ci): disable renovate (#63313)
We haven't been using it _at all_ in this repo, and its just causing
unnecessary CI builds

## Test plan

N/A 


## Changelog
2024-06-19 13:17:15 +02:00
Matthew Manela
92b8ffb8e1
fix(Source): Fix documentation URLs for code hosts help pages (#63274)
It seems many of our doc links for code hosts are broken in production
due to a url changed from external_services to code_hosts. I did a find
an replace to update all the ones I could find.
2024-06-17 14:32:46 -04:00
Camden Cheek
378977912f
Svelte: use Inter font for --font-family-base (#63221)
This adds `Inter` as the preferred for `--font-family-base` in the
Svelte webapp. Previously, we were using system fonts for our base font,
which meant our web app looked different depending on the OS+browser.

Instead of depending on the Google Fonts CDN, this uses Fontsource,
which let us easily self-host Google Fonts (and other OSS fonts) just by
importing an NPM package. No committing font files to git, and no
dependency or connection to a 3rd-party server. The font itself weighs
~40KB for the full, variable-weight font.

Contributes to SRCH-445
2024-06-12 13:41:03 +00:00
Jan Hartman
cd10824e85
Extend instructions for running Cody Gateway locally (#63186)
With these additions, the instructions on how to run Cody Gateway
locally should be correct now.

## Test plan
The proposed changes work for me locally.
2024-06-11 20:21:03 +00:00
Noah S-C
c8b583f8e6
Revert "refactor: upgrade to rules_oci 2.0" (#63200)
Reverts sourcegraph/sourcegraph#63111
Issue with jobs only run on main

### Test plan

:wat:
2024-06-11 14:23:53 +02:00
Sahin Yort
c12fd6db87
chore(bazel): upgrade to rules_oci 2.0 (#63111)
Follow up https://github.com/sourcegraph/sourcegraph/pull/63085

rules_oci 2.0 brings a lot of performance improvement around oci_image
and oci_pull, which will benefit sourcegraph. It will also make RBE
faster and have less load on remote cache.

However, 2.0 makes some breaking changes like 

- oci_tarball's default output is no longer a tarball
- oci_image no longer compresses layers that are uncompressed, somebody
has to make sure all `pkg_tar` targets have a `compression` attribute
set to compress it beforehand.
- there is no curl fallback, but this is fine for sourcegraph as it
already uses bazel 7.1.

I checked all targets that use oci_tarball as much as i could to make
sure nothing depends on the default tarball output of oci_tarball. there
was one target which used the default output which i put a TODO for
somebody else (somebody who is more on top of the repo) to tackle later.

## Test plan

I am assuming that the repo has enough tests to catch potential problems
on CI. Also somebody who knows the repo better should double check my
changes.

---------

Co-authored-by: Noah Santschi-Cooney <noah@santschi-cooney.ch>
2024-06-11 11:48:58 +00:00
Varun Gandhi
1284536eed
chore(codenav): Resolve repo and commit in common code (#63072)
Adds logic to validate as much of the args to usagesForSymbols as possible.
Also adds some infrastructure for property-based testing.
2024-06-07 21:58:36 +08:00
Erik Seliger
246b53ecc3
Reapply "gitserver(client): Reintroduce 500 maximum connections limit" (#63134)
The first attempt didn't work as there are other exit conditions for the
stream version than just calling RecvMsg until io.EOF. I found that gRPC
has a callback for onFinish, and this seems to work properly locally.

See commit number 2 for the diff over the initial implementation.

## Test plan

Verified locally that all connection counts drop to zero eventually.
2024-06-07 10:46:19 +02:00
Erik Seliger
9e724bc596
Revert "gitserver(client): Reintroduce 500 maximum connections limit (#63064)" (#63132)
This reverts commit 9185da3c3e.

Noticed there are some bad callers in worker and symbols that don't
properly return a connection. Will need to investigate and fix that
first.

## Test plan

Worked before, CI passes.
2024-06-06 18:10:56 +00:00
Erik Seliger
9185da3c3e
gitserver(client): Reintroduce 500 maximum connections limit (#63064)
This used to exist in the HTTP world, and we currently have zero
safeguards to prevent clients from making one billion requests
concurrently.
Until we invest more into server-side rate limiting, or per tenant rate
limiting, we reintroduce this limiter, to prevent resource usage spikes.

Test plan:

Added a test suite.

---------

Co-authored-by: Geoffrey Gilmore <geoffrey@sourcegraph.com>
2024-06-06 15:18:01 +02:00
Camden Cheek
b215eb9fb5
Chore: remove plausible scripts (#63054)
Plausible is no longer being used, so this removes it from the web app.
2024-06-03 17:33:40 -06:00
Erik Seliger
6d142c833f
gitserver: Add observability for repo service (#63026)
Since we split out this service, we lost a few metrics on call counts and latencies.
This PR adds them back.

Closes #62785

Test plan:

Ran the dashboards locally and they return data. These dashboards are a 1:1 replica of the git service observability.
2024-06-03 16:37:20 +02:00
Petri-Johan Last
df0c59ed12
Remove echo test critical alert (#63004)
The 1s echo test alert for gitserver triggers on dotcom and doesn't have any actionable consequences, so we are removing it. The warning will remain.
2024-06-03 14:11:28 +02:00
Julie Tibshirani
e45ec596b4
Batch changes: remove structural search example (#62958)
This PR refactors a batch changes example that uses `patterntype:structural` to
use regex instead. We no longer expose `patterntype:structural` by default, and
want to push users towards other pattern types.
2024-05-30 08:47:46 -07:00
Will Dollman
3339660a77
bazel: Add container test for s3proxy (#62893)
* Add container test for s3proxy script

* Add explanatory comments

* Fixup s3proxy container structure test

* Update docs to mention a caveat of the setup steps

* Fix hostname
2024-05-24 14:02:37 +01:00
Varun Gandhi
739b832b3d
docs: Add tips for highlighter queries and test cases (#62897)
Clarify standards for tests and queries in docs.
2024-05-24 07:10:16 -04:00
Jean-Hadrien Chabran
b024b8c9cf
chore(licenses): fix khroma and elkjs (#62762) 2024-05-17 15:45:21 +02:00
Philipp Spiess
1e3cb2bc68
Change chat defaults to Sonnet and autocomplete defaults to StarCoder or Haiku (#62757) 2024-05-17 14:04:10 +02:00
Michael Bahr
6cd5834127
chore: fix typos (#62532) 2024-05-08 09:32:26 +02:00
Erik Seliger
ffd5b0a639
gitserver: Fixup confusing label on monitoring dashboard (#62424)
Turns out I blindly copy-pasted this from elsewhere and the graphs always said
GraphQL operations, which is wrong and confused people.

Test plan:

Reads better now.
2024-05-03 19:58:23 +02:00
Geoffrey Gilmore
a07a3aecf1
gitserver: grpc: create server implementation for GetBehindAhead (#62216)
Part of https://github.com/sourcegraph/sourcegraph/issues/62101

This PR implements the server-side gRPC implementation of GetBehindAhead, and hooks it up to the new git Backend implementation from #62212.

## Test plan

Unit tests
2024-05-03 10:04:53 -07:00
Will Dollman
9f365597d4
docs: Fix Sourcegraph Secret regex format (#62342) 2024-05-01 14:28:05 +00:00
James Cotter
6d7082d26e
sg/msp: architecture diagrams (#62213) 2024-05-01 13:57:34 +01:00
Chris Smith
cb54fc635a
Fix minor 'sg lint --help' issue(?) (#62308)
* Fix minor 'sg lint --help' issue(?)

* Address PR feedback
2024-04-30 21:49:48 +00:00
Michael Bahr
7bc5d6cd9c
docs: add more hints to observability docs; add database intellij docs (#62183)
* docs: add more hints to observability docs; add database intellij docs

* localize images
2024-04-30 10:19:13 +02:00
William Bezuidenhout
680ba5a9f1
ci: remove chromatic (#62228) 2024-04-29 14:56:26 +02:00
Erik Seliger
67fd07b624
gitserver: RUsage and high mem exec logging (#62029)
This PR adds additional observation tools and warning logs for git commands that required a lot of memory.
That should help us better identify where potential for OOMs exists and what endpoints could benefit from optimization.

```
[    gitserver-0] WARN gitserver.cleanup gitcli/command.go:307 High memory usage exec request {"TraceId": "f70c73e500ed7831207ce9a7c6dc63fb", "SpanId": "705d1dcfd0b44a06", "ev.Fields": {"exit_status": "0", "cmd_duration_ms": "1944", "user_time": "234.915ms", "cmd_ru_minflt": "10231", "cmd_ru_majflt": "7", "duration_ms": "1944", "trace": "https://sourcegraph.test:3443/-/debug/jaeger/trace/f70c73e500ed7831207ce9a7c6dc63fb", "cmd_ru_maxrss_kib": "160672", "actor": "0", "traceID": "f70c73e500ed7831207ce9a7c6dc63fb", "repo": "github.com/sourcegraph/sourcegraph", "args": "[git commit-graph write --reachable --changed-paths --size-multiple=4 --split]", "system_time": "1.679428s", "cmd_ru_inblock": "0", "cmd_ru_oublock": "0", "cmd": "commit-graph"}}
```

Test plan:

Tried this locally using some command I know will use a bunch of memory, see test output above.
2024-04-23 20:21:54 +02:00
Robert Lin
fce0faf66f
lib/telemetrygateway: publish all non-Sourcegraph-specific Telemetry Gateway bindings (#62061)
Migrates the Telemetry Gateway:

1. Service specification
2. Generated Go bindings
3. UUID constructor

into an exported `lib/telemetrygateway` package for internal and external consumption. See https://github.com/sourcegraph/sourcegraph/issues/61489 for use cases. This allows MSP services to more easily start publishing events for to Telemetry Gateway, and adds no new dependencies to `lib`.

Splits Sourcegraph-specific functionality that used to live in the `telemetrygateway/v1` package to:

1. `internal/telemetrygateway`: backcompat testing
2. `internal/telmeetrygateway/event`: event constructors (collapsing into parent caused import cycle)

I've left README + a stub service spec in the old package to redirect visitors from outdated links.

Closes https://github.com/sourcegraph/sourcegraph/issues/61489

## Test plan

```
sg start
```

watch for successful export logs from `telemetrygatewayexporter`
2024-04-22 14:36:46 -07: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
William Bezuidenhout
1535a7f471
sg: add initial scaffolding for cloud deploy (#61921)
* create base skeleton for sg cloud deploy

* move sanitasion of branch name to happen inside images

* Add cloud api client for ephemeral

Created package sg/internal/cloud which connects to the cloud api.
From the examples it looks like we need to impersonate a service account
to get a token. For now I am just print the token from gcloud but will
sync with the cloud team on this tomorrow

* active cloud-ephemeral runtype by env var

* test kick off of cloud ephemeral build

* check if commit exists remotely before building

* add CLOUD_EPHEMERAL env to pipline env

* push with respec always and use force with lease

* use pending for longer running ops

* add cloud-api as approved dependency
2024-04-22 13:58:36 +00:00
Robert Lin
06d25f7310
telemetry-gateway: use live dev instance locally by default (#61897)
We have a continuous-deployed dev deployment of Telemetry Gateway available but it receives practically no traffic, partly because a) it only accepts dev-signed-licenses and b) nothing uses it by default.

This change makes it so that local dev (`sg start`, `sg start dotcom`, etc) exports events to this live dev instance by default, allowing us to more effectively dogfood changes before rolling them out to prod. Prod stability is especially important as we move towards a V2-telemetry-only world.

Docs have been updated to describe this, and showcase how to run and use local Telemetry Gateway as before.

Thread: https://sourcegraph.slack.com/archives/C05BGNBEPKL/p1713222710245669

## Test plan

Locally, `sg start`:
<img width="1118" alt="image" src="https://github.com/sourcegraph/sourcegraph/assets/23356519/10a8b794-b49f-438e-801c-44b357ca1c24">

In dev logs:
![image](https://github.com/sourcegraph/sourcegraph/assets/23356519/6b6d3f4f-c102-4529-bbb9-3d3f1f7ba0b4)
2024-04-16 11:01:49 -07:00
Will Dollman
622d500d53
Add a worked example pull request to wolfi image docs (#61929)
Add example PR to wolfi image docs
2024-04-16 18:37:59 +01:00
Jean-Hadrien Chabran
85438e62d5
Backport dev docs changes that happened in docsite v2 (#61931)
* backport https://github.com/sourcegraph/docs/pull/216

* backport d1e81d254d

* backprot https://github.com/sourcegraph/docs/pull/158

* backport https://github.com/sourcegraph/docs/pull/135

* backport https://github.com/sourcegraph/docs/pull/150

* backport https://github.com/sourcegraph/docs/pull/138

* backport https://github.com/sourcegraph/docs/pull/115

* backport https://github.com/sourcegraph/docs/pull/123

* backport https://github.com/sourcegraph/docs/pull/118

* fix outgoing links

* backport https://github.com/sourcegraph/docs/pull/51

* backport https://github.com/sourcegraph/docs/pull/26

* backport https://github.com/sourcegraph/docs/pull/23

* Fix broken links
2024-04-16 16:51:00 +02:00
Will Dollman
b0c3354b1b
Backport wolfi docs changes from sourcegraph/docs repo (#61874)
The dev/ docs were removed from the sourcegraph/docs repo in https://github.com/sourcegraph/docs/pull/253, so backport all changes to wolfi docs that were made
2024-04-15 12:15:51 +00:00