From 550373314c4b3cf907e05b9dd4fbb76d258029d8 Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Fri, 17 Jan 2025 09:27:15 -0800 Subject: [PATCH 1/3] fix: mention pgsslmode in the docs for external db (#900) This is particularly for the helm chart, since a customer was asking about this. Docs applied from @marcleblanc2's recommendation in the [linear thread](https://linear.app/sourcegraph/issue/REL-638/configure-aws-rds-databases-for-tls-connections-in-helm-chart) ## Pull Request approval You will need to get your PR approved by at least one member of the Sourcegraph team. For reviews of docs formatting, styles, and component usage, please tag the docs team via the #docs Slack channel. --- docs/admin/deploy/kubernetes/index.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/admin/deploy/kubernetes/index.mdx b/docs/admin/deploy/kubernetes/index.mdx index 3809a4fa..2ac9f5a2 100644 --- a/docs/admin/deploy/kubernetes/index.mdx +++ b/docs/admin/deploy/kubernetes/index.mdx @@ -103,6 +103,7 @@ data: password: "" port: "" user: "" + pgsslmode: "require" # optional, enable if using SSL --- apiVersion: v1 kind: Secret @@ -115,6 +116,7 @@ data: password: "" port: "" user: "" + pgsslmode: "require" # optional, enable if using SSL --- apiVersion: v1 kind: Secret @@ -127,6 +129,7 @@ data: password: "" port: "" user: "" + pgsslmode: "require" # optional, enable if using SSL ``` The above Secrets should be deployed to the same namespace as the existing Sourcegraph deployment. @@ -163,6 +166,7 @@ pgsql: user: "new-user" password: "new-password" port: "5432" + pgsslmode: "require" # optional, enable if using SSL ``` #### Using external Redis instances From 0d8e4b73069f7fb1cea364655271eb51cb73d79d Mon Sep 17 00:00:00 2001 From: sourcegraph-bot-devx <127119266+sourcegraph-bot-devx@users.noreply.github.com> Date: Sat, 18 Jan 2025 04:58:43 +0200 Subject: [PATCH 2/3] Changelog for v5.11.5234 (#902) This is an automated changelog update for v5.11.5234 --------- Co-authored-by: Anish Lakhwara --- docs/releases.mdx | 1 + docs/technical-changelog.mdx | 38 ++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/docs/releases.mdx b/docs/releases.mdx index b315870d..66f99197 100644 --- a/docs/releases.mdx +++ b/docs/releases.mdx @@ -12,6 +12,7 @@ Currently supported versions of Sourcegraph: | **Release** | **General Availability Date** | **Supported** | **Release Notes** | **Install** | |--------------|-------------------------------|---------------|--------------------------------------------------------------------|------------------------------------------------------| +| 5.11 Patch 4 | January 2025 | ✅ | [Notes](https://sourcegraph.com/docs/technical-changelog#v5114013) | [Install](https://sourcegraph.com/docs/admin/deploy) | | 5.11 Patch 3 | January 2025 | ✅ | [Notes](https://sourcegraph.com/docs/technical-changelog#v5114013) | [Install](https://sourcegraph.com/docs/admin/deploy) | | 5.11 Patch 2 | January 2025 | ✅ | [Notes](https://sourcegraph.com/docs/technical-changelog#v5113601) | [Install](https://sourcegraph.com/docs/admin/deploy) | | 5.11 Patch 1 | January 2025 | ✅ | [Notes](https://sourcegraph.com/docs/technical-changelog#v5112732) | [Install](https://sourcegraph.com/docs/admin/deploy) | diff --git a/docs/technical-changelog.mdx b/docs/technical-changelog.mdx index 62061e48..bc1aebb0 100644 --- a/docs/technical-changelog.mdx +++ b/docs/technical-changelog.mdx @@ -4,6 +4,44 @@ This page documents all notable changes to Sourcegraph. For more detailed change {/* CHANGELOG_START */} +# 5.11 Patch 4 + +## v5.11.5234 + +- [sourcegraph](https://github.com/sourcegraph/sourcegraph/releases/tag/v5.11.5234) + +- [docker-compose](https://github.com/sourcegraph/deploy-sourcegraph-docker/releases/tag/v5.11.5234) + +- [helm](https://github.com/sourcegraph/deploy-sourcegraph-helm/releases/tag/v5.11.5234) + +- [kustomize](https://github.com/sourcegraph/deploy-sourcegraph-k8s/releases/tag/v5.11.5234) + +### Features + +#### Perforce + +- Use depot name for label cache `(PR #2805)` + +### Fix + +#### Source + +- Possible Perforce changelists are now converted to their respective git commit during ResolveRevision `(PR #2825)` + +### Reverts + + There were no reverts for this release + +### Uncategorized + +#### Others + +- [Manual Backport]: update shellcheck to 0.10.0 `(PR #2838)` + - NA + +{/* RSS={"version":"v5.11.5234", "releasedAt": "2025-01-17"} */} + + # 5.11 Patch 3 ## v5.11.4013 From 4076bead9f7d2f27fda4e55f99becb26714d20ea Mon Sep 17 00:00:00 2001 From: rakeshjosh2003 <102702631+rakeshjosh2003@users.noreply.github.com> Date: Mon, 20 Jan 2025 23:03:54 +1100 Subject: [PATCH 3/3] =?UTF-8?q?Add=20troubleshooting=20steps=20for=20execu?= =?UTF-8?q?tors=20job=20failure=20due=20to=20the=20emptyD=E2=80=A6=20(#903?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …ir storage issue ## Pull Request approval You will need to get your PR approved by at least one member of the Sourcegraph team. For reviews of docs formatting, styles, and component usage, please tag the docs team via the #docs Slack channel. --- .../executors/executors_troubleshooting.mdx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/admin/executors/executors_troubleshooting.mdx b/docs/admin/executors/executors_troubleshooting.mdx index ff96f7b0..171a7bb5 100644 --- a/docs/admin/executors/executors_troubleshooting.mdx +++ b/docs/admin/executors/executors_troubleshooting.mdx @@ -242,3 +242,22 @@ Tells us that the Pod cannot be scheduled because the pod affinity rules (`EXECU configured do not match any nodes. In this case, the `EXECUTOR_KUBERNETES_POD_AFFINITY` needs to be modified to correctly target the node. + +### Executor Job failure issues + +If you see below errors for executor jobs: + +Codeintel +```Index failed to index: Running command "step.kubernetes.pre-index.0": job sg-executor-job-codeintel-111877 failed: Usage of EmptyDir volume "job-data" exceeds the limit "5Gi".``` + +Batch Changes +```"step.kubernetes.step.0.pre": job sg-executor-job-batches-91562 failed: Usage of EmptyDir volume "job-data" exceeds the limit "5Gi".``` + +Update the below variables in the respective executor's deployment file to increase EmptyDir volume "job-data" storage. In this example, ```KUBERNETES_JOB_VOLUME_SIZE``` is set to 20Gi, but you can tweak it as per your requirement. + +``` +- name: KUBERNETES_JOB_VOLUME_TYPE value: emptyDir +- name: KUBERNETES_JOB_VOLUME_SIZE value: 20Gi +``` + +```KUBERNETES_JOB_VOLUME_TYPE``` can be either set to ```emptyDir``` or ```pvc``` and if it’s not set, the default is ```emptyDir```