Releases Release 5.11
JANUARY 23, 2025

Sourcegraph 5.11

A newer version of Sourcegraph is available: Sourcegraph 6.12.

Details

Improvements

  • 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.

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

    Publish signatures for release containers.
    Backport c11764be4adb377521e4067c4852953d7c434e24 from #2697

  • Cody Gateway Add Gemini 2.0 Flash experimental model

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

  • Release Run `sg cut` in buildkite to automate nightly pipeline test
    • release: nightly release pipeline is working
  • 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.

  • Uncategorized Allow single container server to run postgresql-16
    • server: runs postgresql from /var/run/postgresql instead of /run/postgresql
      Backport 36c78cdf596e1b22079512931fa526346c2ec821 from #2711
  • Uncategorized More telemetry for batch changes

    feat(batches): more telemetry events

  • Uncategorized Extend prompt tags with pagination and increased limit

    feat: extend prompt tags with pagination and increased limit

  • Uncategorized Editing tags on prompts

    feat: editing tags on prompts

  • Uncategorized Management page prompt categories

    feat: management page prompt categories

  • Uncategorized Prompt categories nav for web

    feat: add tags as filter to prompts and their navigation

  • Uncategorized Add prompt labels to the GraphQL API

    feat: add prompt labels to the GraphQL API

  • Uncategorized Collect contributor data

    feat: calculate contributor stats

Fixes

  • 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
  • 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].
  • Code Intel Reports symbols for TypeScript type aliases

    Properly report symbols for TypeScript type aliases

  • Cody Add cody.notices to json schema

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

  • 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.

  • Mulitenant Add rote tests for repositoryChecker implementations

    N/A

  • Mulitenant Add rote test for workspaceGitHubAppAccountResolver

    N/A

  • 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

  • Multitenant Add rote tests for workspaceGitHubAppRepositoryResolver

    N/A

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

    N/A

  • 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

  • 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

  • Uncategorized Remove surplus typename

    fix: remove surplus typename

Self-hosted resources