Sourcegraph 5.8
A newer version of Sourcegraph is available: Sourcegraph 6.12.
This page includes all changes for 5.8 and its patch releases. The latest patch for 5.8 is 5.8.1579.
Details
Improvements
- Local Add cody-gateway version endpoints
- add cody-gateway environments for subcommand
live
- add cody-gateway environments for subcommand
- Code Search Bump Zoekt for ranking and memory improvements
- Reduce peak memory required for Zoekt indexing
- Improve search ranking by using repo freshness as a scoring signal
- Code Intel Updates the autoindexing images for TypeScript and Ruby
- TypeScript: Fixes references to object properties in various places
- Ruby: Fixes references to
Opus::in Ruby tests
- Ci Enable workflows telemetry
- enable aspect workflows ci telemetry
- Code Search Enable similarity search by default
With this change we rank repository search results by similarity. Before, repository search results were ordered by star count instead. This affects suggestions and repository search results. To disable this feature and return to the previous behavior, set
{ "experimentalFeatures": { "disableOrderBySimilarity": true}}in global settings. - Cody Add basic support for server-rendered prompts
/.api/completions/streamendpoint now accepts"file"and"repo"parts alongside"text"and"image_url"
- Release Use releaseregistry for release banner [REL-145]
- implement using the release-registry for the banner
- Ci Convert onconflict gen to bazel
- generate
constraints.gousing bazel for onconflict linter
- generate
- Cody Add vision support
/.api/completions/streamnow supports vision using the OpenAI-compatible base64 encoding of images. Example"content": [{"type": "image_url", "image_url": { "url": "data:image/png;base64,{{IMAGE_BASE64}}" } }]. Requires the query parameterapi-version=3or higher.
- Source Add ssh auth support for more code hosts
- BitBucket Cloud, BitBucket Server, GitLab, Gerrit, Gitolite, AWS CodeCommit Azure DevOps code host connections now support configuring SSH key authentication from the UI instead of mounting from disk.
- Source Add support for ssh auth to github
- GitHub and generic Git code host connections now support configuring SSH key authentication from the UI instead of mounting from disk.
- Batch Changes Verbose error logging for batch syncer with BATCH_CHANGES_SYNCER_VERBOSE_ERROR_LOGGING
feat(batches): verbose error logging for batch syncer with BATCH_CHANGES_SYNCER_VERBOSE_ERROR_LOGGING
- Release Remove test from promotion ci during release pipeline
- Remove upgradetest from the release promotion ci
- Code Search Respect match order for search.results.repositories resolver
The GraphQL endpoint
search.results.repositoriesnow returns the list of repositories in the order of the matches we found. Before, repositories were sorted by id. - Embeddings: v2
- Introduce a new experimental embeddings index and context retriever.
- Wolfi Update server + postgresql-12 images
- add pgvector to server and postgresql-12 images
- Wolfi Add pgvector-12 package
- build and add pgvector extension
- Batch Changes Add experimental feature to add a fork name suffix to avoid name collisions
feat(batches): add experimental feature to add a fork name suffix to avoid name collisions
- Release Stop releases from going out if there's a PR with the release-blocker label
- Allow PRs to block a release from going out 😈
Fixes
- Code Search Fix client-side query validation for rev: filters
We have updated the client-side query validation to allow combining
rev:filters with query-based search contexts. - Code Intel Correctly escape special characters in repo names and identifiers
The new usagesForSymbol API correctly searches repos whose names contain spaces or other special characters.
- Code Search In search jobs, don't time out fetches
For very large repositories, search jobs could time out while fetching the repository. Now, search jobs can fetch and search over repositories, even if they take a long time to fetch.
- Batch Changes Report correct version in AMI
- Fixed incorrect executors version reporting which indicated
0.0.0+deveven though it was the correct executor AMI version running under the hood.
- Fixed incorrect executors version reporting which indicated
- Batch Changes Stamp the executor binary with version information
- override
internal/version.versionwithx_defsat build time in executor
- override
- Cody Disable ModelAPIEnabled for Dotcom
modelsAPIEnabledis always false for dotcom - Adjust formatting when using unix sockets
- fix PGDATASOURCE format when using unix sockets
- Code Search Add index for search jobs janitor
We added a new database index to speed up a janitor job which is run as part of Search Jobs. Before, the janitor job might have significantly delayed migrations during an upgrade.
- Analytics Ensure telemetry export only occurs once at a time
- Fix an issue where duplicate telemetry can be exported when the
workerservice is scaled horizontally
- Fix an issue where duplicate telemetry can be exported when the
- Cody Allow empty `finish_reason` in `/.api/llm/chat/completions`
- The
/.api/llm/chat/completionsendpoint will now return an empty string""forfinish_reasoninstead of the string"unknown_please_report_bug()".
- The
- Batch Changes Disabled "select all" checkbox if all nodes are already disabled
fix(batches): disabled "select all" checkbox if all nodes are already disabled
- Local Sg - return the error when checking for remote branch/commits
- dump more information out about the branch if it is out of sync
- Use preferred mermaid APIs
- Fixes a bug that can cause errors when rendering many mermaid diagrams on a page.
- Code Intel Fetch tags for scip-go auto-indexing jobs
Go cross-repo navigation for tagged versions should work better when using scip-go for auto-indexing. Navigation based on SCIP indexes generated using scip-go in CI or cron jobs should be unaffected.
- Release Remove embeddings from promotion script (#360)
- remove embeddings in promotion script
Other
- Security Upgrade src-cli version to address CVE
Upgrade src-cli version to 5.8.1 to address CVE-2024-24788, CVE-2024-24790, CVE-2024-34156
Backport b8da20f6fa148f30fe97d9267a536bd5a84502f1 from #1112 - Update src-cli MinimumVersion from 5.5.0 to 5.8.1
chore(release): Update minimum supported version of src-cli to 5.8.1
Backport 8f039bdcb5425071dd6e4dfddfb2cb436e124b05 from #1079 - Update lockfiles with newer version of apko
Backport 7f2c3bacf6778fef5f2ef444db2ebd873903c5e6 from #881 - Rel Prepare stitch graph for 5.8
Backport 6b58d4b62bba8f558c097fa97a751e51b178c537 from #850 - Code Intel Bump autoindexing image SHAs
Upgrades default auto-indexing images to the latest versions (1) scip-go to v0.1.21 (2) scip-typescript to v0.3.14
- Adding code qwen 2p5 and deepseek long prompt optimized model
- adding code qwen 2p5 and deepseek long prompt optimized model #811
- Enable reranker by default
- Reranker for context retrieval is turned on by default
- Local/nix: add pgvector extension
- enable pgvector in nix managed postgres db
- Code Intel Bump autoindexing image SHAs
- Upgrades the default scip-go auto-indexing image to v0.1.20
- Final ranker config for context v2
Changing the ranker configuration -- number of items fetched from zoekt
- Context: return multiple chunks per file from Zoekt results
- We can improve recall by fetching multiple chunks per file from Zoekt results by turning on the
cody-rerankerfeature flag.
- We can improve recall by fetching multiple chunks per file from Zoekt results by turning on the
- Context: improve ranker integration + loosen the tap
- Ranker for chat context is now available behind
use-rerankerfeature flag.
- Ranker for chat context is now available behind
- Add(cody): `api-version=2` for incremental streaming LLM responses
- The
/.api/completions/streamendpoint now accepts anapi-version=2query parameter that returns incremental text text responses when using"stream": trueto improve performance and reduce bandwidth.
- The
- Ci Add annotation for no merge base
- post an annotation if there is no merge base
- Svelte: fix loading for ref panel
- Fix loading behavior for the reference panel in the web app rewrite
- Svelte: fix text wrapping for file popover
- Fixed a bug in the web app rewrite where long paths would cause file popovers to wrap
- Retrieve and display change log during upgrades.
- [Appliance] Retrieve live changelog and display information about the release to be upgraded.
- Release: specifiy download directory for changelog
- specify download directory for changelog
- Code Intel Bump auto-indexing image SHAs
Bumps default auto-indexing scip-go image to use Go 1.23.1 and scip-go v0.1.19
- Appliance Admin UI
- [Appliance]: Adds the upgrade path for the Appliance Admin UX
- Ci Update gomod lint
- remove lint that checks for promotheus/common 0.32.1 since we are using 0.48
- Ci Upgrade golang.org/x/tools to 0.24
- address printf linter flagged issues
- Add(cody): `api-version=2` incremental streaming LLM response
- The
/.api/completions/streamendpoint now accepts anapi-version=2query parameter that returns incremental text text responses when using"stream": trueto improve performance and reduce bandwidth.
- The
- Svelte: add symbol tree
- Adds a symbol tree to file page in the experimental webapp