Sourcegraph 5.10.0
A newer patch release is available: 5.10.3940. See all changes in Sourcegraph 5.10.
Details
Improvements
- 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, anddeleteworkspaces tosg
- support
- 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
systemPreInstructionto themodelConfigurationkey in site admin config that allows injecting a prelude prompt into every chat request for an enterprise
- adds
- 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
- 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-minito Cody Gateway allow list - Cody Gateway: add
gpt-4o-minito DotCom models list
- Cody Gateway: add
- 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
- Rel Fix oob migrations hanging
NA
Backport a943412a99852332f921b52a0ee3179dc3331d20 from #1958 - 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 - 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
- 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#)
- When cloning Perforce depots, Sourcegraph will now decode encoded paths correctly (paths that include characters like
Other
- Web: respect `expanded` in the search results URL
- Fixed an issue where searches from saved URLs may now show aggregations by default
- Require `X-Requested-With` for Cody API (CODY-4209)
X-Requested-Withis now a required HTTP header for Cody API calls - Workspaces: Add tables for listing workspaces
- Rel Remove postgres-12 wolfi from published images
chore(rel): remove unused Postgres 12 images
- Rel Remove appliance from published images and codebase
chore(rel): remove appliance from published images
- Workspaces: Fix workspace picker rendering in React
- Workspaces: Add updated workspace pickers for tenant
- Seed builtin prompts
Prompts including "Document Code", "Explain Code", "Generate Unit Tests", "Find Code Smells"
- Feature/internal: upsert github credentials on tenant creation
The multitenant reconciler now proactively inserts the credentials for the shared multitenant GitHub app whenever a new tenant is created.
- Add Cody.promptLibrary telemetry
- Autoedit: add speculative decoding
- autoedit: Add speculative decoding support from fireworks
- Fix `marketingTracking` sending null
- Feature/source: adjust exclude definition in github schema to disallow using name, id with other filter conditions
The github code host connection schema for
excludehas been updated to enforce that the name and id fields can't be combined with any other fields. - Add builtin prompts field to prompts
- Remove env lock mechanism
fix(dev): remove env.Get lock that could cause a runtime panic
- Implement prompt detail page re-design
- Re-designed prompt detail page.
- Make Visual Studio Experimental
- Widen blocked phrases, but only confine blocked phrases to expensive (aka flagged) models
- Analytics Update DB-IP Lite database
The local geolocation inference database used in telemetry and audit logs has been updated.
- Repoupdater: Drop support for gitUpdateInterval
The site config setting
gitUpdateIntervalhas been deprecated and removed. We are removing it in favor of smarter heuristics like webhooks, user traffic, and repo staleness. - Chore/source Update src-cli version to 5.8.2
chore/source Update src-cli version to 5.8.2
- Code Search Update CPU and MEM panels for zoekt
We have updated the CPU and MEM monitoring panels for Zoekt on Grafana. The new panels reduce redundancy and provide more insight into MEM distribution.