Changelog Release 5.10
DECEMBER 19, 2024

Sourcegraph 5.10

A newer version of Sourcegraph is available: Sourcegraph 6.12.

This page includes all changes for 5.10 and its patch releases. The latest patch for 5.10 is 5.10.3940.

Details

Improvements

  • Security Introduce UntrustedExternalClient

    OPTIONAL; info at https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c
    Backport 3f079a57978179aa2ad3f310195346a8c574f9ce from #2349

  • Cody Update cody web to 0.16.0 version

    OPTIONAL; info at https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c
    Backport 964eceae584e4eff56df9711da68fef7047cbc40 from #2254

  • Release Handle postgres version upgrades in upgrade test
    • refactor upgradetest
    • introduce proper handling of the postgres version upgrade
      Backport 9ccdf4200e3e08cea56bffe5779ca8a6cda2909c from #1894
  • Code Search Include file paths in reranker items

    Cody context now incorporates filename information in reranking, improving context quality when the reranker is enabled.

  • Sg Add workspaces common operations
    • support get, list, and delete workspaces to sg
  • Rel Add pg16 and pg16 codeinsights to published images

    feat(rel): Add Postgresql 16 and Postgresql 16 codeinsights images to published image list.

  • Rel Add pg 16 codeinsights entrypoint and tests

    feat(rel): Add self updating to Postgres 16 codeinsights db image.

  • Rel Add pg 16 entrypoint and tests

    feat(rel): Add self updating to Postgres 16 container image.

  • GraphQL Add support for reading GitHub App Installation repos from GitHub REST API

    A new GraphQL query, GithubAppRepositoriesForInstallation, has been added that provides a paginated list of all the GitHub repositories that are accessible to the GitHub app with the provided installation id.

  • Multitenant Add helper routine for instantiating github app from multitenant credentials

    A simple helper routine to the multitenantenv package that automatically populates a github app struct with the provided validated credentials.

  • Cody Added `systemPreInstruction` (CODY-4032)
    • adds systemPreInstruction to the modelConfiguration key in site admin config that allows injecting a prelude prompt into every chat request for an enterprise
  • GitHub Add client ID support for GitHub App authentication

    The GitHub app authentication package now supports authenticating a GitHub app via the OAuth client ID following the announcement of https://github.blog/changelog/2024-05-01-github-apps-can-now-use-the-client-id-to-fetch-installation-tokens/

  • GraphQL Add endpoint for getting github app installations scoped by user

    A new graphql endpoint has been added, GithubAppInstallationsForUser, that returns installation information for the global GitHub multi tenant app when running in multitenant mode.

  • Source Multitenant: add worker job for inserting github multitenant app credentials

    A new worker job has been added that updates the database with the credentials for the global github app when running in multitenant mode.

  • Dev Adding sg command to request Entitle bundles

    Feat

    Dev

    • Adding sg command to request Entitle bundles #1370
  • Internal Add pagination support and test for GetUserInstallations

    The Github API client's GetUserInstallations route, which lists of GitHub App installations the user has access to, now has pagination support.

  • Multitenant Use default cookie for github app oauth login

    The routing logic for multitenant mode now has a new route that uses the "last seen tenant" cookie to route github app login authorization callbacks to the appropriate tenant.

  • Switch to buildkite for nightly release pipeline

    N/A

  • Cody Support openai predicted outputs
    • Cody Gateway: add support for OpeanAI predicted outputs
  • Rel Add wolfi postgres 16 codeinsights-db base image

    feat(rel): Add Postgres 16 CodeInsights Wolfi image

  • Rel Add wolfi postgres 16 base image

    feat(rel): Add Postgres 16 Wolfi image

  • Cody Gateway Add gpt-4o-mini model
    • Cody Gateway: add gpt-4o-mini to Cody Gateway allow list
    • Cody Gateway: add gpt-4o-mini to DotCom models list
  • Add dynamic filters and aggregation for repo metadata and topics
    • Added dynamic filters and the ability to aggregate by repo metadata and repo topic
  • Make filters sidebar collapsible
    • Search filters sidebar is now collapsible
  • Render mdx as markdown
    • Render .mdx files as markdown

Fixes

  • Database Do not log DSN secrets when changed

    We no longer log the postgresql DSN when it changes. Previously this could contain the secret PGPASSWORD.
    Backport 2bd9c09969fff536c6fb29108656658d3f875047 from #2272

  • Rel Remove `--link` and add optional args env var

    fix(rel): change pg_upgrade behavior to use copy instead of hard links
    Backport 13caa807d96dd4b5dd872fec2a38322d1888134a from #2192

  • Rel Remove -x flag in readiness check on database containers

    fix(rel): address issue with readiness check outputting passwords to logs.
    Backport 655a739e8e791d7aab1977d2c26543a3a4871809 from #2132

  • Code Search Disable zoekt go-git optimization by default

    Disabled an indexed search optimization which would skip files accidentally (ZOEKT_DISABLE_GOGIT_OPTIMIZATION=true).
    Backport 34ada948bdcee3d75499c98f4db5c32986943e88 from #2050

  • Rel Fix oob migrations hanging

    NA
    Backport a943412a99852332f921b52a0ee3179dc3331d20 from #1958

  • Code Search Consistently marshal SearchTypeRegex as regexp

    We sometimes would emit patternType:regex instead of patternType:regexp. We now always do regexp as well as treating regex as an alias for regexp.
    Backport a095b39ac39cfcbe3526ecf85ed6d50cb5fa3d9d from #1808

  • Release Correct views drift in postgres 16
    • add migrations to handle database drift caused during postgres 12 to postgres 16 upgrade
  • Rel Add vacuum after reindex in Postgres upgrade script

    fix(rel): Add vacuum to Postgres upgrade process

  • Release Fix drift check in local upgradetest
    • Fix bug in local upgrade test preventing final stage drift check via private monorepo
  • Cody Sync allowed models in dotcom user rate limits with models.json

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

  • Security Do not expand env vars in executor logs

    This change reduces the risk of secrets being emitted in executor logs even if there are bugs in the secret redaction logic.

  • GraphQL Refactor getGithubAppFromEnvvar to use multitenantEnv.Config.AsGithubApp

    The logic in the new multitenant GraphQL resolvers has been reworked to use the new helper methods introduced in the Multitenant GitHub app configuration logic introduced in https://app.graphite.dev/github/pr/sourcegraph/sourcegraph/1758/.

  • Database Drop unique slug contraint from github app table

    The github_apps table has removed an erroneous unique constraint that accidentally incorporated an app's slug (which is mutable) as part of the unique identifier for an app.

  • Rel Install `sg` in the nightly pipeline GHA

    N/A

  • Batch Changes Titles now break over multiple lines if they are too long

    fix(batches): titles now break over multiple lines if they are too long

  • Code Insights Fix incorrect line counts in non-default config

    Code insights should show correct line counts when enhanced language detection is turned off (note: this setting is on by default).

  • Source p4-fusion now decodes encode file paths from Perforce
    • When cloning Perforce depots, Sourcegraph will now decode encoded paths correctly (paths that include characters like @ and #)

Other