Changelog Release 5.11
JANUARY 23, 2025

Sourcegraph 5.11

A newer version of Sourcegraph is available: Sourcegraph 6.12.

This page includes all changes for 5.11 and its patch releases. The latest patch for 5.11 is 5.11.6271.

Details

Improvements

  • Allow single container server to run postgresql-16
    • server: runs postgresql from /var/run/postgresql instead of /run/postgresql
      Backport 36c78cdf596e1b22079512931fa526346c2ec821 from #2711
  • Security Sign release images

    Publish signatures for release containers.
    Backport c11764be4adb377521e4067c4852953d7c434e24 from #2697

  • More telemetry for batch changes

    feat(batches): more telemetry events

  • Extend prompt tags with pagination and increased limit

    feat: extend prompt tags with pagination and increased limit

  • Cody Gateway Add Gemini 2.0 Flash experimental model

    OPTIONAL; info at https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c

  • Source Add App-level GitHub App code host connections

    Sourcegraph now supports App-level GitHub App connections that aren't tied to a specific Installation ID.

  • Editing tags on prompts

    feat: editing tags on prompts

  • Management page prompt categories

    feat: management page prompt categories

  • Prompt categories nav for web

    feat: add tags as filter to prompts and their navigation

  • Code Search Correctly lower repo name regexes

    Special uppercase regex tokens are no longer inverted for repository name search. eg repo:foo\B correctly interprets \B as not at ASCII word boundary. Previously it would transform the expression into repo:foo\b.

  • Add prompt labels to the GraphQL API

    feat: add prompt labels to the GraphQL API

  • Release Run `sg cut` in buildkite to automate nightly pipeline test
    • release: nightly release pipeline is working
  • Collect contributor data

    feat: calculate contributor stats

  • Code Intel Configurable time and size limits for scip-syntax
    • Adds configurable limits for file size and parsing time for syntactic indexing

Fixes

  • Rel Recover from unclean database shutdowns in pgsql entrypoint

    fix(rel): fix issue with Postgres docker container failing upgrades after an unclean database shutdown.
    Backport ca5185ce2528b67e1ce6bcb5170f96d3699e11e0 from #2660

  • Code Search Propagate disk space to NewFirecrackerWorkspace
    • 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
    • Affects reading and using the environment variable EXECUTOR_FIRECRACKER_DISK_SPACE
      Backport 22db2a97a0393cdd233a92da7ade96cd59bb99ef from #2562
  • Release Fix regressions from 5.10 release process
    • refactor and fix bugs in release test

    <details>

    āžœ  sourcegraph git:(wg/rel/post-release-5-10-fixup) āœ— bazel run //testing/tools/upgradetest:sh_upgradetest_run -- all -svs 5.9.0 -mvs 5.8.0 -avs 5.8.0 -pv 5.10.2832
    INFO: Analyzed target //testing/tools/upgradetest:sh_upgradetest_run (0 packages loaded, 0 targets configured).
    INFO: Found 1 target...
    Target //testing/tools/upgradetest:sh_upgradetest_run up-to-date:
      bazel-bin/testing/tools/upgradetest/sh_upgradetest_run
    Aspect @@rules_rust//rust/private:clippy.bzl%rust_clippy_aspect of //testing/tools/upgradetest:sh_upgradetest_run up-to-date (nothing to build)
    INFO: Elapsed time: 1.165s, Critical Path: 0.72s
    INFO: 5 processes: 1 internal, 4 darwin-sandbox.
    INFO: Build completed successfully, 5 total actions
    INFO: Running command line: bazel-bin/testing/tools/upgradetest/sh_upgradetest_run testing/tools/upgradetest/go_upgradetest_/go_upgradetest cmd/migrator/image_tarball.sh cmd/frontend/no_client_bundle.image_tarball.sh docker-images/postgresql-16/image_tarball.sh docker-images/postgresql-16-codeinsights/image_tarball.sh internal/database/_codeinsights_squashed.sql internal/database/_codeinsights_tenant_data_squashed.sql internal/database/_codeintel_squashed.sql internal/database/_codeintel_tenant_data_squashed.sql internal/database/_frontend_squashed.sql internal/database/_frontend_tenant_data_squashed.sql internal/database/_schema.codeinsights.json internal/database/_schema.codeinsights.md internal/database/_schema.codeintel.json internal/database/_schema.codeintel.md internal/database/_schema.json internal/database/_schema.md all -svs 5.9.0 -mvs 5.8.0 -avs 5.8.0 -pv 5.10.2832
    Loaded image: migrator:candidate
    Loaded image: frontend:candidate
    Loaded image: postgresql-16:candidate
    Loaded image: postgresql-16-codeinsights:candidate
    šŸ‘‰ Upgrade test ...
    Latest stable release version:  5.10.2832
    Latest minor version:  5.10.0
    Target version:  5.10.2832
    Migrator image used to upgrade:  sourcegraph/migrator:5.10.2832
    Standard Versions: [5.9.0]
    Multiversion Versions: [5.8.0]
    Autoupgrade Versions: [5.8.0]
    auto:  5.8.0
    mvu:  5.8.0
    std:  5.9.0
    --- šŸ•µļø  Standard Upgrade Tests:
    āœ… 5.9.0 Passed -- 1m16.366600375s
    --- šŸ•µļø  Multiversion Upgrade Tests:
    āœ… 5.8.0 Passed -- 1m17.939247958s
    --- šŸ•µļø  Auto Upgrade Tests:
    āœ… 5.8.0 Passed -- 1m24.54765675s
    

    </details>
    Backport 8dc831953f43bbe9f6b9cb5467ef263b757425ac from #2374

  • Cody Add cody.notices to json schema

    OPTIONAL; info at https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c

  • Multitenant Add rote tests for workspaceGitHubAppRepositoryResolver

    N/A

  • Mulitenant Add rote tests for repositoryChecker implementations

    N/A

  • Mulitenant Add rote test for workspaceGitHubAppAccountResolver

    N/A

  • Code Intel Reports symbols for TypeScript type aliases

    Properly report symbols for TypeScript type aliases

  • Mulitenant Add test suite for (s *serviceImpl) listRepositoriesSearch

    OPTIONAL; info at https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c

  • Mulitenant Add test suite for (r *workspaceGitHubAppResolver) ListUserGitHubRepositories

    OPTIONAL; info at https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c

  • Remove surplus typename

    fix: remove surplus typename

  • Multitenant Add test suite for (r *workspaceGitHubAppResolver) ListPublicGitHubRepositories

    N/A

  • Code Search Executors: set the user/group on the job spec only if configured.
    • Also validates KUBERNETES_RUN_AS_USER and KUBERNETES_RUN_AS_GROUP.
    • Must be integers in the range [0, 2147483647].
  • Cody Switch to Snowball stopwords

    Narrowed down the stopwords list used in Cody context, to fix an issue where we could miss highly relevant files.

  • Cody Disable reranking for airgapped instances

    Fixes a bug in Cody context where airgapped instances would attempt to use the reranker model, which increased the context retrieval latency.

Other

  • [Manual Backport]: update shellcheck to 0.10.0

    NA

  • Fix(Bitbucket Cloud): Fix pagination logic for bitbucket cloud permissions

    Fixed an issue where Bitbucket Cloud permission syncs could produce incomplete results, resulting in lacking permissions.
    Backport 389661481f0f0a2385ef4f78f4113ab6ba14f4d5 from #2699

  • Security Update src-cli to version 5.11.1
    • Update src-cli version to 5.11.1
      Backport 2721fd9106eb033afe4cca96164f7ecc5e0b6f88 from #2444
  • Bitbucketcloud: Fix repo perms syncing for inherited permissions and groups

    Fixed an issue with Bitbucket Cloud permission syncing where inherited permissions and group permissions were not correctly reflected.

  • Security Update src-cli to version 5.11.0
    • Update src-cli version to 5.11.0
  • Reapply "feat(cody-gateway): add Gemini 2.0 Flash experimental model"

    OPTIONAL; info at https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c

    Cody Gateway: add support to Google's Gemini 2.0 Flash Experimental model.

  • Revert "feat(cody-gateway): add Gemini 2.0 Flash experimental model

    OPTIONAL; info at https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c

  • Bugfix: anchor include patterns for symbol tree
    • Fixed a web app bug that could cause symbols to be shown in the symbol tree for files that share a name with the viewed file
  • Update Calendar Release Notifications

    N/A

  • Authz: Adjust default settings for perms syncing

    The default values for repo permission syncing have been adjusted. If you specified overrides, this means no change on your instance.

    Adjusted defaults:

    permissions.syncScheduleInterval is now 60s instead of 15s, in favor of scheduling more jobs at once (see below).

    permissions.syncOldestUsers and permissions.syncOldestRepos have been adjusted to 100 from 10 to schedule pending permission sync jobs faster.

    permissions.syncJobCleanupInterval has been bumped from every minute to every hour. Cleaning completed jobs is purely to prevent unbounded growth and every minute was more aggressive than necessary.

    The default concurrency for repo- and user-centric sync jobs has been bumped from 1 to 5 to account for larger instances. Historically, GitHub prevented concurrent API access in secondary rate limiting but this has been lifted to be much more lenient long ago. permissions.syncReposMaxConcurrency has also been introduced to compliment permissions.syncUsersMaxConcurrency.