release: sourcegraph@5.2.3 (#58362)

* release: sourcegraph@5.2.3

* configure

* fix migrator genrule

* update schemas

---------

Co-authored-by: Robert Lin <robert@bobheadxi.dev>
Co-authored-by: William Bezuidenhout <william.bezuidenhout@sourcegraph.com>
This commit is contained in:
Mohammad Alam 2023-11-16 16:35:19 -05:00 committed by GitHub
parent 1f2cd593d0
commit 6fcbbdf914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 51 additions and 34 deletions

View File

@ -69,7 +69,7 @@ set -euxo pipefail
###############################################################################
# Please read the notes below the script if you are cloning a private repository
DEPLOY_SOURCEGRAPH_DOCKER_FORK_CLONE_URL='https://github.com/sourcegraph/deploy-sourcegraph-docker.git'
DEPLOY_SOURCEGRAPH_DOCKER_FORK_REVISION='v5.2.2'
DEPLOY_SOURCEGRAPH_DOCKER_FORK_REVISION='v5.2.3'
##################### NO CHANGES REQUIRED BELOW THIS LINE #####################
DEPLOY_SOURCEGRAPH_DOCKER_CHECKOUT='/home/ec2-user/deploy-sourcegraph-docker'
DOCKER_COMPOSE_VERSION='1.29.2'

View File

@ -77,7 +77,7 @@ set -euxo pipefail
###############################################################################
# Please read the notes below the script if you are cloning a private repository
DEPLOY_SOURCEGRAPH_DOCKER_FORK_CLONE_URL='https://github.com/sourcegraph/deploy-sourcegraph-docker.git'
DEPLOY_SOURCEGRAPH_DOCKER_FORK_REVISION='v5.2.2'
DEPLOY_SOURCEGRAPH_DOCKER_FORK_REVISION='v5.2.3'
##################### NO CHANGES REQUIRED BELOW THIS LINE #####################
DEPLOY_SOURCEGRAPH_DOCKER_CHECKOUT='/root/deploy-sourcegraph-docker'
DOCKER_COMPOSE_VERSION='1.29.2'

View File

@ -60,7 +60,7 @@ set -euxo pipefail
###############################################################################
# Please read the notes below the script if you are cloning a private repository
DEPLOY_SOURCEGRAPH_DOCKER_FORK_CLONE_URL='https://github.com/sourcegraph/deploy-sourcegraph-docker.git'
DEPLOY_SOURCEGRAPH_DOCKER_FORK_REVISION='v5.2.2'
DEPLOY_SOURCEGRAPH_DOCKER_FORK_REVISION='v5.2.3'
##################### NO CHANGES REQUIRED BELOW THIS LINE #####################
DEPLOY_SOURCEGRAPH_DOCKER_CHECKOUT='/root/deploy-sourcegraph-docker'
DOCKER_DATA_ROOT='/mnt/docker-data'

View File

@ -56,7 +56,7 @@ set -euxo pipefail
###############################################################################
# Please read the notes below the script if you are cloning a private repository
DEPLOY_SOURCEGRAPH_DOCKER_FORK_CLONE_URL='https://github.com/sourcegraph/deploy-sourcegraph-docker.git'
DEPLOY_SOURCEGRAPH_DOCKER_FORK_REVISION='v5.2.2'
DEPLOY_SOURCEGRAPH_DOCKER_FORK_REVISION='v5.2.3'
##################### NO CHANGES REQUIRED BELOW THIS LINE #####################
# IMPORTANT: DO NOT MAKE ANY CHANGES FROM THIS POINT ONWARD
DEPLOY_SOURCEGRAPH_DOCKER_CHECKOUT='/root/deploy-sourcegraph-docker'

View File

@ -118,7 +118,7 @@ Continue with the following steps *after* you have created a public or private c
```bash
# Specify the version you want to install
export SOURCEGRAPH_VERSION="v5.2.2"
export SOURCEGRAPH_VERSION="v5.2.3"
# Check out the selected version for use, in a new branch called "release"
git checkout $SOURCEGRAPH_VERSION -b release
```

View File

@ -33,7 +33,7 @@ This tutorial shows you how to deploy [single-container Sourcegraph with Docker]
- usermod -a -G docker ec2-user
# Install and run Sourcegraph. Restart the container upon subsequent reboots
- [ sh, -c, 'docker run -d --publish 80:7080 --publish 443:7080 --publish 127.0.0.1:3370:3370 --restart unless-stopped --volume /home/ec2-user/.sourcegraph/config:/etc/sourcegraph --volume /home/ec2-user/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:5.2.2' ]
- [ sh, -c, 'docker run -d --publish 80:7080 --publish 443:7080 --publish 127.0.0.1:3370:3370 --restart unless-stopped --volume /home/ec2-user/.sourcegraph/config:/etc/sourcegraph --volume /home/ec2-user/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:5.2.3' ]
```
- Select **Next: ...** until you get to the **Configure Security Group** page. Then add the following rules:

View File

@ -17,7 +17,7 @@ This tutorial shows you how to deploy [single-container Sourcegraph with Docker]
1. Run the Sourcegraph Docker image as a daemon:
```
docker run -d --publish 80:7080 --publish 443:7443 --restart unless-stopped --volume /root/.sourcegraph/config:/etc/sourcegraph --volume /root/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:5.2.2
docker run -d --publish 80:7080 --publish 443:7443 --restart unless-stopped --volume /root/.sourcegraph/config:/etc/sourcegraph --volume /root/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:5.2.3
```
1. Navigate to the droplet's IP address to finish initializing Sourcegraph. If you have configured a
DNS entry for the IP, configure `externalURL` to reflect that.

View File

@ -23,7 +23,7 @@ This tutorial shows you how to deploy [single-container Sourcegraph with Docker]
sudo apt-get install -y docker-ce
mkdir -p /root/.sourcegraph/config
mkdir -p /root/.sourcegraph/data
docker run -d --publish 80:7080 --publish 443:7443 --restart unless-stopped --volume /root/.sourcegraph/config:/etc/sourcegraph --volume /root/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:5.2.2
docker run -d --publish 80:7080 --publish 443:7443 --restart unless-stopped --volume /root/.sourcegraph/config:/etc/sourcegraph --volume /root/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:5.2.3
```
- Create your VM, then navigate to its public IP address.

View File

@ -14,7 +14,7 @@ It takes less than a minute to run and install Sourcegraph using Docker:
This uses line breaks that are rendered but not copy-pasted to the clipboard.
-->
<pre class="pre-wrap start-sourcegraph-command"><code>docker run<span class="virtual-br"></span> --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm<span class="virtual-br"></span> --volume ~/.sourcegraph/config:/etc/sourcegraph<span class="virtual-br"></span> --volume ~/.sourcegraph/data:/var/opt/sourcegraph<span class="virtual-br"></span> sourcegraph/server:5.2.2</code></pre>
<pre class="pre-wrap start-sourcegraph-command"><code>docker run<span class="virtual-br"></span> --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm<span class="virtual-br"></span> --volume ~/.sourcegraph/config:/etc/sourcegraph<span class="virtual-br"></span> --volume ~/.sourcegraph/data:/var/opt/sourcegraph<span class="virtual-br"></span> sourcegraph/server:5.2.3</code></pre>
Once the server is ready (logo is displayed in the terminal), navigate to the hostname or IP address on port `7080`. Create the admin account, then you'll be guided through setting up Sourcegraph for code searching and navigation.
@ -46,7 +46,7 @@ For example, to mount a `.gitconfig`, create a file `/mnt/sourcegraph/config/git
Alternatively you can create a new Docker image which inherits from Sourcegraph and then mutates the environment:
```dockerfile
FROM sourcegraph/server:5.2.2
FROM sourcegraph/server:5.2.3
COPY gitconfig /etc/gitconfig
COPY ssh /root/.ssh
@ -87,7 +87,7 @@ This is required to [collect debug data](../../pprof.md).
The docker run command for single-container Sourcegraph needs an additional publish flag to expose the debug port:
```sh
$ docker run --publish 7080:7080 --publish 127.0.0.1:3370:3370 --publish 127.0.0.1:6060:6060 --rm --volume ~/.sourcegraph/config:/etc/sourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:5.2.2
$ docker run --publish 7080:7080 --publish 127.0.0.1:3370:3370 --publish 127.0.0.1:6060:6060 --rm --volume ~/.sourcegraph/config:/etc/sourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:5.2.3
```
If Sourcegraph is deployed to a remote server, then access via an SSH tunnel using a tool
@ -105,7 +105,7 @@ Add the following to your docker run command:
```sh
$ docker run [...]
-e (YOUR CODE)
sourcegraph/server:5.2.2
sourcegraph/server:5.2.3
```
## Operation
@ -254,7 +254,7 @@ Sourcegraph can be **tested** on Windows 10 using roughly the same steps provide
1. [Install Docker for Windows](https://docs.docker.com/docker-for-windows/install/)
2. Using a command prompt, follow the same [installation steps provided above](#install-sourcegraph-with-docker) but remove the `--volume` arguments. For example by pasting this:
<pre class="pre-wrap"><code>docker run<span class="virtual-br"></span> --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm<span class="virtual-br"></span> sourcegraph/server:5.2.2</code></pre>
<pre class="pre-wrap"><code>docker run<span class="virtual-br"></span> --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm<span class="virtual-br"></span> sourcegraph/server:5.2.3</code></pre>
### Low resource environments

View File

@ -54,7 +54,7 @@ $ helm repo add sourcegraph https://helm.sourcegraph.com/release
Install the Sourcegraph chart using default values:
```sh
$ helm install --version 5.2.2 sourcegraph sourcegraph/sourcegraph
$ helm install --version 5.2.3 sourcegraph sourcegraph/sourcegraph
```
Sourcegraph should now be available via the address set. Browsing to the url should now provide access to the Sourcegraph UI to create the initial administrator account.
@ -81,7 +81,7 @@ Example overrides can be found in the [examples](https://github.com/sourcegraph/
Providing the override file to Helm is done with the inclusion of the values flag and the name of the file:
```sh
$ helm upgrade --install --values ./override.yaml --version 5.2.2 sourcegraph sourcegraph/sourcegraph
$ helm upgrade --install --values ./override.yaml --version 5.2.3 sourcegraph sourcegraph/sourcegraph
```
When making configuration changes, it's recommended to review the changes that will be applied—see [Reviewing Changes](#reviewing-changes).
@ -575,7 +575,7 @@ The override file includes a [BackendConfig] CRD. This is necessary to instruct
**2** Install the chart
```sh
$ helm upgrade --install --values ./override.yaml --version 5.2.2 sourcegraph sourcegraph/sourcegraph
$ helm upgrade --install --values ./override.yaml --version 5.2.3 sourcegraph sourcegraph/sourcegraph
```
It will take around 10 minutes for the load balancer to be fully ready, you may check on the status and obtain the load balancer IP using the following command:
@ -694,7 +694,7 @@ storageClass:
**2** Install the chart
```sh
$ helm upgrade --install --values ./override.yaml --version 5.2.2 sourcegraph sourcegraph/sourcegraph
$ helm upgrade --install --values ./override.yaml --version 5.2.3 sourcegraph sourcegraph/sourcegraph
```
It will take some time for the load balancer to be fully ready, use the following to check on the status and obtain the load balancer address (once available):
@ -779,7 +779,7 @@ storageClass:
**2** Install the chart
```sh
$ helm upgrade --install --values ./override.yaml --version 5.2.2 sourcegraph sourcegraph/sourcegraph
$ helm upgrade --install --values ./override.yaml --version 5.2.3 sourcegraph sourcegraph/sourcegraph
```
It will take some time for the load balancer to be fully ready, you can check on the status and obtain the load balancer address (when ready) using:
@ -865,7 +865,7 @@ storageClass:
**2** Install the chart
```sh
$ helm upgrade --install --values ./override.yaml --version 5.2.2 sourcegraph sourcegraph/sourcegraph
$ helm upgrade --install --values ./override.yaml --version 5.2.3 sourcegraph sourcegraph/sourcegraph
```
It may take some time before your ingress is up and ready to proceed. Depending on how your Ingress Controller works, you may be able to check on its status and obtain the public address of your Ingress using:
@ -965,7 +965,7 @@ $ helm repo update sourcegraph
4. Install the new version:
```sh
$ helm upgrade --install -f override.yaml --version 5.2.2 sourcegraph sourcegraph/sourcegraph
$ helm upgrade --install -f override.yaml --version 5.2.3 sourcegraph sourcegraph/sourcegraph
```
5. Verify the installation has started:
@ -1025,7 +1025,7 @@ If you are upgrading to **Sourcegraph 5.1 or later**, we encourage you to perfor
**Example:**
```sh
$ helm upgrade --install -n sourcegraph --set "migrator.args={upgrade,--from=3.41.0,--to=4.5.1}" sourcegraph-migrator sourcegraph/sourcegraph-migrator --version 5.2.2
$ helm upgrade --install -n sourcegraph --set "migrator.args={upgrade,--from=3.41.0,--to=4.5.1}" sourcegraph-migrator sourcegraph/sourcegraph-migrator --version 5.2.3
Release "sourcegraph-migrator" has been upgraded. Happy Helming!
NAME: sourcegraph-migrator
LAST DEPLOYED: Tue Mar 7 18:23:56 2023

View File

@ -147,7 +147,7 @@ SSH into the VM as user `sourcegraph` and run the following command:
```bash
# Please update the version number according to the upgrade notes
helm upgrade -i -f /home/sourcegraph/deploy/install/override.yaml --version 5.2.2 sourcegraph sourcegraph/sourcegraph
helm upgrade -i -f /home/sourcegraph/deploy/install/override.yaml --version 5.2.3 sourcegraph sourcegraph/sourcegraph
# Note: /home/sourcegraph/deploy/install/override.yaml is the override file for your instance size
```

View File

@ -8,7 +8,7 @@
<p><b>We're very much looking for input and feedback on this feature.</b> You can either <a href="https://about.sourcegraph.com/contact">contact us directly</a>, <a href="https://github.com/sourcegraph/sourcegraph">file an issue</a>, or <a href="https://twitter.com/sourcegraph">tweet at us</a>.</p>
</aside>
> NOTE: This feature is available in Sourcegraph 5.2.2 and later.
> NOTE: This feature is available in Sourcegraph 5.2.3 and later.
[Kubernetes manifests](https://github.com/sourcegraph/deploy-sourcegraph-k8s) are provided to deploy Sourcegraph Executors on a running Kubernetes cluster. If you are deploying Sourcegraph with helm, charts are available [here](https://github.com/sourcegraph/deploy-sourcegraph-helm).
@ -134,7 +134,7 @@ The following are Firewall rules that are _highly recommended_ when running Exec
Environment.
- Disable access to internal resources.
- Disable access to `5.2.2.254` (AWS / GCP Instance Metadata Service).
- Disable access to `5.2.3.254` (AWS / GCP Instance Metadata Service).
### Batch Changes

View File

@ -48,7 +48,7 @@ Add the following to your `docker run` command:
This uses line breaks that are rendered but not copy-pasted to the clipboard.
-->
<pre class="pre-wrap start-sourcegraph-command"><code>docker run [...]<span class="virtual-br"></span> -e PGHOST=psql1.mycompany.org<span class="virtual-br"></span> -e PGUSER=sourcegraph<span class="virtual-br"></span> -e PGPASSWORD=secret<span class="virtual-br"></span> -e PGDATABASE=sourcegraph<span class="virtual-br"></span> -e PGSSLMODE=require<span class="virtual-br"> -e CODEINTEL_PGHOST=psql2.mycompany.org<span class="virtual-br"></span> -e CODEINTEL_PGUSER=sourcegraph<span class="virtual-br"></span> -e CODEINTEL_PGPASSWORD=secret<span class="virtual-br"></span> -e CODEINTEL_PGDATABASE=sourcegraph-codeintel<span class="virtual-br"></span> -e CODEINTEL_PGSSLMODE=require<span class="virtual-br"></span> sourcegraph/server:5.2.2</code></pre>
<pre class="pre-wrap start-sourcegraph-command"><code>docker run [...]<span class="virtual-br"></span> -e PGHOST=psql1.mycompany.org<span class="virtual-br"></span> -e PGUSER=sourcegraph<span class="virtual-br"></span> -e PGPASSWORD=secret<span class="virtual-br"></span> -e PGDATABASE=sourcegraph<span class="virtual-br"></span> -e PGSSLMODE=require<span class="virtual-br"> -e CODEINTEL_PGHOST=psql2.mycompany.org<span class="virtual-br"></span> -e CODEINTEL_PGUSER=sourcegraph<span class="virtual-br"></span> -e CODEINTEL_PGPASSWORD=secret<span class="virtual-br"></span> -e CODEINTEL_PGDATABASE=sourcegraph-codeintel<span class="virtual-br"></span> -e CODEINTEL_PGSSLMODE=require<span class="virtual-br"></span> sourcegraph/server:5.2.3</code></pre>
### Docker Compose
@ -193,7 +193,7 @@ When [PgBouncer] is used, we need to include `statement_cache_mode=describe` in
Add the following to your `docker run` command:
<pre class="pre-wrap start-sourcegraph-command"><code>docker run [...]<span class="virtual-br"></span> -e PGDATASOURCE="postgres://username:password@sourcegraph-pgbouncer.mycompany.com:5432/sg?statement_cache_mode=describe"<span class="virtual-br"></span> -e CODEINSIGHTS_PGDATASOURCE="postgres://username:password@sourcegraph-codeintel-pgbouncer.mycompany.com:5432/sg?statement_cache_mode=describe"<span class="virtual-br"></span> sourcegraph/server:5.2.2</code></pre>
<pre class="pre-wrap start-sourcegraph-command"><code>docker run [...]<span class="virtual-br"></span> -e PGDATASOURCE="postgres://username:password@sourcegraph-pgbouncer.mycompany.com:5432/sg?statement_cache_mode=describe"<span class="virtual-br"></span> -e CODEINSIGHTS_PGDATASOURCE="postgres://username:password@sourcegraph-codeintel-pgbouncer.mycompany.com:5432/sg?statement_cache_mode=describe"<span class="virtual-br"></span> sourcegraph/server:5.2.3</code></pre>
### Docker Compose

View File

@ -13,7 +13,7 @@ or follow the [IANA specification for Redis URLs](https://www.iana.org/assignmen
We want line breaks for readability, but backslashes to escape them do not work cross-platform.
This uses line breaks that are rendered but not copy-pasted to the clipboard.
-->
<pre class="pre-wrap"><code>docker run [...]<span class="virtual-br"></span> -e REDIS_ENDPOINT=redis.mycompany.org:6379<span class="virtual-br"></span> sourcegraph/server:5.2.2</code></pre>
<pre class="pre-wrap"><code>docker run [...]<span class="virtual-br"></span> -e REDIS_ENDPOINT=redis.mycompany.org:6379<span class="virtual-br"></span> sourcegraph/server:5.2.3</code></pre>
> NOTE: On Mac/Windows, if trying to connect to a Redis server on the same host machine, remember that Sourcegraph is running inside a Docker container inside of the Docker virtual machine. You may need to specify your actual machine IP address and not `localhost` or `127.0.0.1` as that refers to the Docker VM itself.

View File

@ -37,7 +37,7 @@ docker container run \
\
--volume ~/.sourcegraph/config:/etc/sourcegraph \
--volume ~/.sourcegraph/data:/var/opt/sourcegraph \
sourcegraph/server:5.2.2
sourcegraph/server:5.2.3
```
### Sourcegraph Cluster (Kubernetes)

View File

@ -91,7 +91,7 @@ docker container run \
\
--volume ~/.sourcegraph/config:/etc/sourcegraph \
--volume ~/.sourcegraph/data:/var/opt/sourcegraph \
sourcegraph/server:5.2.2
sourcegraph/server:5.2.3
```
> NOTE: We recommend removing `--publish 7080:7080` as it's not needed and traffic sent to that port is un-encrypted.

View File

@ -17,6 +17,10 @@ For upgrade procedures or general info about sourcegraph versioning see the link
<!-- Add changes changes to this section before release. -->
## v5.2.2 ➔ v5.2.3
#### Notes:
## v5.2.1 ➔ v5.2.2
#### Notes:

View File

@ -12,6 +12,15 @@ Each section comprehensively describes the changes needed in Docker images, envi
<!-- Add changes changes to this section before release. -->
## v5.2.2 ➔ v5.2.3
As a template, perform the same actions as the following diff in your own deployment: [`Upgrade to v5.2.3`](https://github.com/sourcegraph/deploy-sourcegraph-docker/compare/v5.2.2...v5.2.3)
For non-standard replica builds:
- [`Customer Replica 1: ➔ v5.2.3`](https://github.com/sourcegraph/deploy-sourcegraph-docker-customer-replica-1/compare/v5.2.2...v5.2.3)
#### Notes:
## v5.2.1 ➔ v5.2.2
As a template, perform the same actions as the following diff in your own deployment: [`Upgrade to v5.2.2`](https://github.com/sourcegraph/deploy-sourcegraph-docker/compare/v5.2.1...v5.2.2)

View File

@ -17,6 +17,10 @@ For upgrade procedures or general info about sourcegraph versioning see the link
<!-- Add changes changes to this section before release. -->
## v5.2.2 ➔ v5.2.3
#### Notes:
## v5.2.1 ➔ v5.2.2
#### Notes:

View File

@ -36,17 +36,17 @@ var (
// non-cluster, non-docker-compose, and non-pure-docker installations what the latest
// version is. The version here _must_ be available at https://hub.docker.com/r/sourcegraph/server/tags/
// before landing in master.
latestReleaseDockerServerImageBuild = newPingResponse("5.2.2")
latestReleaseDockerServerImageBuild = newPingResponse("5.2.3")
// latestReleaseKubernetesBuild is only used by sourcegraph.com to tell existing Sourcegraph
// cluster deployments what the latest version is. The version here _must_ be available in
// a tag at https://github.com/sourcegraph/deploy-sourcegraph before landing in master.
latestReleaseKubernetesBuild = newPingResponse("5.2.2")
latestReleaseKubernetesBuild = newPingResponse("5.2.3")
// latestReleaseDockerComposeOrPureDocker is only used by sourcegraph.com to tell existing Sourcegraph
// Docker Compose or Pure Docker deployments what the latest version is. The version here _must_ be
// available in a tag at https://github.com/sourcegraph/deploy-sourcegraph-docker before landing in master.
latestReleaseDockerComposeOrPureDocker = newPingResponse("5.2.2")
latestReleaseDockerComposeOrPureDocker = newPingResponse("5.2.3")
// latestReleaseApp is only used by sourcegraph.com to tell existing Sourcegraph
// App instances what the latest version is. The version here _must_ be available for download/released

View File

@ -8,6 +8,6 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
def schema_deps():
http_file(
name = "schemas_archive",
urls = ["https://storage.googleapis.com/schemas-migrations/dist/schemas-v5.2.2.tar.gz"],
sha256 = "a60fb3311e164eb4b3061e56f5049c4b6324ccb1a301065b1c773b3dd04d2334",
urls = ["https://storage.googleapis.com/schemas-migrations/dist/schemas-v5.2.3.tar.gz"],
sha256 = "c5aec72d528c0b3803070ccba58049c42f9b2618c9dba367dffe106d30f8f6fe",
)