Sourcegraph 5.10.0
A newer patch release is available: 5.10.3940. See all changes in Sourcegraph 5.10.
Details
Improvements
- Code Search Include file paths in reranker items
Cody context now incorporates filename information in reranking, improving context quality when the reranker is enabled.
- Cody Added
systemPreInstruction(CODY-4032)- adds
systemPreInstructionto themodelConfigurationkey in site admin config that allows injecting a prelude prompt into every chat request for an enterprise
- adds
- Cody Support openai predicted outputs
- Cody Gateway: add support for OpeanAI predicted outputs
- 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 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. - 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.
- Cody Gateway Add gpt-4o-mini model
- Cody Gateway: add
gpt-4o-minito Cody Gateway allow list - Cody Gateway: add
gpt-4o-minito DotCom models list
- Cody Gateway: add
- Dev Adding sg command to request Entitle bundles
- 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 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.
- 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.
- 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
- Release Handle postgres version upgrades in upgrade test
- refactor upgradetest
- introduce proper handling of the postgres version upgrade
Backport 9ccdf4200e3e08cea56bffe5779ca8a6cda2909c from #1894
- Sg Add workspaces common operations
- support
get,list, anddeleteworkspaces tosg
- support
- 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.
- Uncategorized Switch to buildkite for nightly release pipeline
N/A
- Uncategorized Add dynamic filters and aggregation for repo metadata and topics
- Added dynamic filters and the ability to aggregate by repo metadata and repo topic
- Uncategorized Render mdx as markdown
- Render .mdx files as markdown
Fixes
- Code Search Consistently marshal SearchTypeRegex as regexp
We sometimes would emit
patternType:regexinstead ofpatternType:regexp. We now always do regexp as well as treating regex as an alias for regexp.
Backport a095b39ac39cfcbe3526ecf85ed6d50cb5fa3d9d from #1808 - 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).
- Cody Sync allowed models in dotcom user rate limits with models.json
- 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.
- 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/.
- 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.
- Rel Fix oob migrations hanging
NA
Backport a943412a99852332f921b52a0ee3179dc3331d20 from #1958 - Rel Add vacuum after reindex in Postgres upgrade script
fix(rel): Add vacuum to Postgres upgrade process
- Rel Install
sgin the nightly pipeline GHAN/A
- Release Correct views drift in postgres 16
- add migrations to handle database drift caused during postgres 12 to postgres 16 upgrade
- Release Fix drift check in local upgradetest
- Fix bug in local upgrade test preventing final stage drift check via private monorepo
- 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#)
- When cloning Perforce depots, Sourcegraph will now decode encoded paths correctly (paths that include characters like