Sourcegraph self-hosted 5.8.1579

This is a patch release for Sourcegraph self-hosted 5.8.

Sourcegraph self-hosted 5.8.0

Details

Improvements

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

  • Code Search Respect match order for search.results.repositories resolver

    The GraphQL endpoint search.results.repositories now returns the list of repositories in the order of the matches we found. Before, repositories were sorted by id.

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

  • 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

  • Cody Add basic support for server-rendered prompts
    • /.api/completions/stream endpoint now accepts "file" and "repo" parts alongside "text" and "image_url"
  • Cody Add vision support
    • /.api/completions/stream now 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 parameter api-version=3 or higher.
  • Ci Enable workflows telemetry
    • enable aspect workflows ci telemetry
  • Ci Convert onconflict gen to bazel
    • generate constraints.go using bazel for onconflict linter
  • Local Add cody-gateway version endpoints
    • add cody-gateway environments for subcommand live
  • Release Use releaseregistry for release banner [REL-145]
    • implement using the release-registry for the banner
  • Release Remove test from promotion ci during release pipeline
    • Remove upgradetest from the release promotion ci
  • 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 😈
  • 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.
  • Wolfi Update server + postgresql-12 images
    • add pgvector to server and postgresql-12 images
  • Wolfi Add pgvector-12 package
    • build and add pgvector extension
  • Uncategorized Embeddings: v2
    • Introduce a new experimental embeddings index and context retriever.

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

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

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

  • Batch Changes Report correct version in AMI
    • Fixed incorrect executors version reporting which indicated 0.0.0+dev even though it was the correct executor AMI version running under the hood.
  • Batch Changes Stamp the executor binary with version information
    • override internal/version.version with x_defs at build time in executor
  • Batch Changes Disabled "select all" checkbox if all nodes are already disabled

    fix(batches): disabled "select all" checkbox if all nodes are already disabled

  • Analytics Ensure telemetry export only occurs once at a time
    • Fix an issue where duplicate telemetry can be exported when the worker service is scaled horizontally
  • Cody Disable ModelAPIEnabled for Dotcom

    modelsAPIEnabled is always false for dotcom

  • Cody Allow empty finish_reason in /.api/llm/chat/completions
    • The /.api/llm/chat/completions endpoint will now return an empty string "" for finish_reason instead of the string "unknown_please_report_bug()".
  • Local Sg - return the error when checking for remote branch/commits
    • dump more information out about the branch if it is out of sync
  • Release Remove embeddings from promotion script (#360)
    • remove embeddings in promotion script
  • Uncategorized Adjust formatting when using unix sockets
    • fix PGDATASOURCE format when using unix sockets
  • Uncategorized Use preferred mermaid APIs
    • Fixes a bug that can cause errors when rendering many mermaid diagrams on a page.

Sourcegraph self-hosted 5.7.2474

This is a patch release for Sourcegraph self-hosted 5.7.

Details

Fixes

  • Code Search Remove query expansion

    This fixes a bug where we added "readme" too often to the context.
    Backport 28ff196a663f537c6cb6340f976a91431509a90e from #582

  • Batch Changes Workaround for a bug in GitHub

    fix(batches): workaround for a bug in GitHub
    Backport aad3a04f8c93561a61c404e69132e70a22d0acba from #576

  • Release Remove the other embedding reference

    n/a

Sourcegraph self-hosted 5.7.0

Details

Improvements

  • Batch Changes Add a container registry deny list
    • Add a container registry deny list to complement the allow list.
    • Configure in site config via "batchChanges.containerRegistryDenylist".
    • Mutually exclusive with "batchChanges.containerRegistryAllowlist".
  • Cody Add /.api/cody/context API
    • New POST /.api/cody/context REST endpoint to retrieve a list of relevant source locations given a natural language query.

Fixes

  • Code Search Skip if git diff not found in hybrid

    When searching an unindexed commit we would consult indexed commits for speeding up results. If our index contained a commit that no longer existed in git we would error out due to a regression in v5.4.5099. This is now fixed.

  • Batch Changes Avoid "Name already exists on this account" from creating fork by fetching the repo when the error happens

    fix(batches): avoid "Name already exists on this account" from creating fork by fetching the repo when the error happens

  • Cody Correctly parse queries containing 'or'

    Fixes a regression in Cody context where questions containing the word 'or' could return noisy or no results.

  • Cody Fix error handling in LLM API
    • LLM API endpoints (/.api/llm) now return JSON-encoded HTTP bodies for non-200 status codes.
  • Cody Return valid finish_reason in /.api/llm/chat/completions
    • LLM API /.api/chat/completions now returns OpenAI-compatible finish_reason.
  • Cody Allow Bearer TOKEN header for all LLM APIs
    • For compatibility with OpenAI clients, it's possible to use Bearer TOKEN header with all API endpoints that start with the prefix /.api/llm.
  • Local Check for rogue files and folders in svelte routes
    • prevent web-sveltekit commands from running if there are untracked files under src/routes
  • Repo Updater Add WARN level logs every time we sync a code host

    repo-updater now emits logs that log the result of every code host sync.

  • Sg Make start commands cancel fn be sync.OnceFunc
    • the cancel funcs used by sg commands are now wrapped in sync.OnceFunc to prevent duplicate execution
  • Sg Add deprecation notice to sg wolfi update-hashes
    • sg: fix panic when using wolfi update-hashes
    • sg: add deprecation notice for wolfi update-hashes
  • Sg Check if we are ephemeral before getting lease time
    • sg - fix panic in Cloud Ephemeral listing when listing instances that are not Ephemeral
  • Sg Clamp deployment name consistently in cloud ephemeral
    • ensure deployment / instance names are clamped in all places for cloud ephemeral