Skip to content

Commit c997b7a

Browse files
authored
Merge branch 'main' into main
2 parents 81d6659 + 185b4a9 commit c997b7a

File tree

10 files changed

+132
-8
lines changed

10 files changed

+132
-8
lines changed

docs/admin/config/site_config.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,12 @@ All site configuration options and their default values are shown below.
304304
// Don't sync a user's permissions if they have synced within the last n seconds.
305305
"permissions.syncUsersBackoffSeconds": 60,
306306

307-
// The maximum number of user-centric permissions syncing jobs that can be spawned concurrently. Service restart is required to take effect for changes.
307+
// The maximum number of user-centric permissions syncing jobs that can be spawned concurrently. Server restart is required for changes to take effect.
308308
"permissions.syncUsersMaxConcurrency": 1,
309309

310+
// The maximum number of repo-centric permissions syncing jobs that can be spawned concurrently. Server restart is required for changes to take effect.
311+
"permissions.syncReposMaxConcurrency": 5,
312+
310313
"rateLimits": null,
311314

312315
// Enables redacting sensitive information from outbound requests. Important: We only respect this setting in development environments. In production, we always redact outbound requests.

docs/admin/permissions/syncing.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,10 @@ scheduled. Default values are shown below:
253253
// Don't sync a repo's permissions if it has synced within the last n seconds.
254254
"permissions.syncReposBackoffSeconds": 60,
255255
// The maximum number of user-centric permissions syncing jobs that can be spawned concurrently.
256-
// Service restart is required to take effect for changes.
256+
// Server restart is required for changes to take effect.
257257
"permissions.syncUsersMaxConcurrency": 1,
258258
// The maximum number of repo-centric permissions syncing jobs that can be spawned concurrently.
259-
// Service restart is required to take effect for changes.
259+
// Server restart is required for changes to take effect.
260260
"permissions.syncReposMaxConcurrency": 5,
261261
}
262262
```

docs/admin/updates/kubernetes.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This page lists the changes that are relevant for upgrading Sourcegraph on **Kub
44

55
For upgrade procedures or general info about sourcegraph versioning see the links below:
66
- [Kubernetes Kustomize Upgrade Procedures](/admin/deploy/kubernetes/upgrade)
7-
- [Kubernetes Helm Upgrade Procedures](/admin/deploy/kubernetes/helm#upgrading-sourcegraph)
7+
- [Kubernetes Helm Upgrade Procedures](/admin/deploy/kubernetes#upgrading-sourcegraph)
88
- [General Upgrade Info](/admin/updates)
99
- [Technical changelog](/technical-changelog)
1010

docs/api/stream_api/index.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ data: {}
6060
```
6161

6262
> NOTE:
63-
> Our format is a subset of the event stream format for [server-sent
64-
> events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#event_stream_format). However, we do not guarantee compatibility with any third-party clients written for server-sent events.
63+
> The search stream API follows the [server-sent
64+
> events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#event_stream_format) format. However, we do not guarantee compatibility
65+
> with any third-party clients written for server-sent events, and recommend using the src-cli tool or writing your own wrapper around the API.
6566
6667
### Event-types
6768

docs/code-search/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
Sourcegraph's Code Search empowers you to:
1212

13-
- Utilize regular expressions, boolean operations, and keyboard shortcuts helps you unleash the full potential of your searches
13+
- Utilize regular expressions, boolean operations, and keyboard shortcuts to help you unleash the full potential of your searches
1414
- With the symbol, commit, and diff search capabilities, it identifies code vulnerabilities in milliseconds and quickly helps you resolve issues and incidents
1515
- Offers innovative code view with seamless code navigation for a comprehensive coding experience
1616

docs/code-search/types/search-jobs.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ To use Search Jobs, you need to:
1717

1818
- If your query is valid, click **Create a search job** to initiate the search job
1919
- You will be redirected to the "Search Jobs UI" page at `/search-jobs`, where you can view all your created search jobs. If you're a site admin, you can also view search jobs from other users on the instance
20+
- For each search job, you can download the results by clicking the **Download** button. The results are formatted as JSON lines, see [Search results format](#search-results-format) for more details.
2021

21-
![view-search-jobs](https://storage.googleapis.com/sourcegraph-assets/Docs/search-jobs/search-jobs-manage.png)
22+
![view-search-jobs](https://storage.googleapis.com/sourcegraph-assets/Docs/search-jobs/search-jobs-manage-with-frame.png)
2223

2324
## Search results format
2425

docs/cody/troubleshooting.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,10 @@ $filteredResults = preg_grep('*\.' . basename($inputPath) . '\.*', $fileList);
224224
```
225225
````
226226

227+
## Forked Repos As Context
228+
229+
If you would like to add a forked repository as Cody context, you may need to add `"search.includeForks": true` to the [global settings](/admin/config/settings#editing-global-settings-for-site-admins) for your instance.
230+
227231
## Eclipse extension
228232

229233
### See a white screen the first time you open Cody chat

docs/releases.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ Currently supported versions of Sourcegraph:
1212

1313
| **Release** | **General Availability Date** | **Supported** | **Release Notes** | **Install** |
1414
|--------------|-------------------------------|---------------|--------------------------------------------------------------------|------------------------------------------------------|
15+
| 5.11 Patch 3 | January 2025 || [Notes](https://sourcegraph.com/docs/technical-changelog#v5114013) | [Install](https://sourcegraph.com/docs/admin/deploy) |
16+
| 5.11 Patch 2 | January 2025 || [Notes](https://sourcegraph.com/docs/technical-changelog#v5113601) | [Install](https://sourcegraph.com/docs/admin/deploy) |
17+
| 5.11 Patch 1 | January 2025 || [Notes](https://sourcegraph.com/docs/technical-changelog#v5112732) | [Install](https://sourcegraph.com/docs/admin/deploy) |
1518
| 5.11 Patch 0 | December 2024 || [Notes](https://sourcegraph.com/docs/technical-changelog#v5110) | [Install](https://sourcegraph.com/docs/admin/deploy) |
1619
| 5.10 Patch 3 | December 2024 || [Notes](https://sourcegraph.com/docs/technical-changelog#v5103940) | [Install](https://sourcegraph.com/docs/admin/deploy) |
1720
| 5.10 Patch 2 | December 2024 || [Notes](https://sourcegraph.com/docs/technical-changelog#v5102832) | [Install](https://sourcegraph.com/docs/admin/deploy) |

docs/technical-changelog.mdx

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,111 @@ This page documents all notable changes to Sourcegraph. For more detailed change
44

55
{/* CHANGELOG_START */}
66

7+
# 5.11 Patch 3
8+
9+
## v5.11.4013
10+
11+
- [sourcegraph](https://github.com/sourcegraph/sourcegraph/releases/tag/v5.11.4013)
12+
13+
- [docker-compose](https://github.com/sourcegraph/deploy-sourcegraph-docker/releases/tag/v5.11.4013)
14+
15+
- [helm](https://github.com/sourcegraph/deploy-sourcegraph-helm/releases/tag/v5.11.4013)
16+
17+
- [kustomize](https://github.com/sourcegraph/deploy-sourcegraph-k8s/releases/tag/v5.11.4013)
18+
19+
### Features
20+
21+
#### Security
22+
23+
- Sign release images `(PR #2703)`
24+
- Publish signatures for release containers. Backport c11764be4adb377521e4067c4852953d7c434e24 from #2697
25+
26+
#### Others
27+
28+
- Allow single container server to run postgresql-16 `(PR #2714)`
29+
- server: runs postgresql from /var/run/postgresql instead of /run/postgresql
30+
Backport 36c78cdf596e1b22079512931fa526346c2ec821 from #2711
31+
32+
### Fix
33+
34+
#### Release
35+
36+
- recover from unclean database shutdowns in pgsql entrypoint `(PR #2706)`
37+
- fix(rel): fix issue with Postgres docker container failing upgrades after an unclean database shutdown.
38+
Backport ca5185ce2528b67e1ce6bcb5170f96d3699e11e0 from #2660
39+
40+
### Reverts
41+
42+
There were no reverts for this release
43+
44+
### Uncategorized
45+
46+
#### Others
47+
48+
- [Backport 5.11.x] fix(Bitbucket Cloud): Fix pagination logic for bitbucket cloud permissions `(PR #2700)`
49+
- Fixed an issue where Bitbucket Cloud permission syncs could produce incomplete results, resulting in lacking permissions. Backport 389661481f0f0a2385ef4f78f4113ab6ba14f4d5 from #2699
50+
51+
{/* RSS={"version":"v5.11.4013", "releasedAt": "2025-01-11"} */}
52+
53+
54+
# 5.11 Patch 2
55+
56+
## v5.11.3601
57+
58+
- [sourcegraph](https://github.com/sourcegraph/sourcegraph/releases/tag/v5.11.3601)
59+
60+
- [docker-compose](https://github.com/sourcegraph/deploy-sourcegraph-docker/releases/tag/v5.11.3601)
61+
62+
- [helm](https://github.com/sourcegraph/deploy-sourcegraph-helm/releases/tag/v5.11.3601)
63+
64+
- [kustomize](https://github.com/sourcegraph/deploy-sourcegraph-k8s/releases/tag/v5.11.3601)
65+
66+
### Features
67+
68+
#### Code Intelligence
69+
70+
- Make syntactic indexing write partial index to disk already GZIP compressed `(PR #2646)`
71+
72+
### Reverts
73+
74+
There were no reverts for this release
75+
76+
{/* RSS={"version":"v5.11.3601", "releasedAt": "2025-01-08"} */}
77+
78+
79+
# 5.11 Patch 1
80+
81+
## v5.11.2732
82+
83+
- [sourcegraph](https://github.com/sourcegraph/sourcegraph/releases/tag/v5.11.2732)
84+
85+
- [docker-compose](https://github.com/sourcegraph/deploy-sourcegraph-docker/releases/tag/v5.11.2732)
86+
87+
- [helm](https://github.com/sourcegraph/deploy-sourcegraph-helm/releases/tag/v5.11.2732)
88+
89+
- [kustomize](https://github.com/sourcegraph/deploy-sourcegraph-k8s/releases/tag/v5.11.2732)
90+
91+
### Fix
92+
93+
#### Search
94+
95+
- propagate disk space to NewFirecrackerWorkspace `(PR #2574)`
96+
- Addresses errors similar to: `failed to prepare workspace: failed to create ext4 filesystem in backing file: "mke2fs 1.45.5 (07-Jan-2020)\nThe file losetup: /var/lib/firecracker/loop-devices/workspace-loop-47749-3763347387: Warning: file is smaller than 512 bytes; the loop device may be useless or invisible for system tools.\n/dev/loop13 does not exist and no size was specified.\n": exit status 1`
97+
- Affects reading and using the environment variable `EXECUTOR_FIRECRACKER_DISK_SPACE` Backport 22db2a97a0393cdd233a92da7ade96cd59bb99ef from #2562
98+
99+
### Chore
100+
101+
#### Security
102+
103+
- Auto-update all packages in Sourcegraph base images (5.11.x) `(PR #2494)`
104+
105+
### Reverts
106+
107+
There were no reverts for this release
108+
109+
{/* RSS={"version":"v5.11.2732", "releasedAt": "2025-01-03"} */}
110+
111+
7112
# 5.11 Patch 0
8113

9114
> Warning: This release updates the database container images from Postgres 12 to Postgres 16, and begins using Wolfi based images. Customers are advised to have a database backup before upgrading! See our [postgres 12 end of life](https://sourcegraph.com/docs/admin/postgres12_end_of_life_notice#postgres-12-end-of-life) notice!

src/components/PreCodeBlock.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,15 @@ export async function PreCodeBlock({ children, ...props }: PreProps) {
7272

7373
const version = await getLatestVersion()
7474
const version_no_v = trimPrefix(version, "v")
75+
let mustReplaceVersions = false
76+
if (codeContent.includes("{CURRENT_VERSION}") || codeContent.includes("{CURRENT_VERSION_NO_V}")) {
77+
mustReplaceVersions = true
78+
}
7579
codeContent = codeContent.replace(/{CURRENT_VERSION}/g, version)
7680
codeContent = codeContent.replace(/{CURRENT_VERSION_NO_V}/g, version_no_v)
81+
if (mustReplaceVersions) {
82+
children = codeContent
83+
}
7784

7885
return (
7986
<div className="relative">

0 commit comments

Comments
 (0)