Changelog Release 5.7.0
SEPTEMBER 04, 2024

Sourcegraph 5.7.0

A newer patch release is available: 5.7.2474. See all changes in Sourcegraph 5.7.

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

  • Local Check for rogue files and folders in svelte routes
    • prevent web-sveltekit commands from running if there are untracked files under src/routes
  • 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.

  • 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
  • Cody Correctly parse queries containing 'or'

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

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

Other

  • Siteadmin: Make recoverUsers idempotent

    The recoverUsers endpoint failed with a spurious error when some of the given users were already active. It is now idempotent.

  • Wofli Update images
    • update images to use latest p4-fusion binary
  • Add option to cache label data with p4-fusion
    • Perforce connections now support a cacheLabels option to cache Perforce label data from the server, speeding up consecutive syncs on systems with a large number of labels.
  • Release Simplify changelog download in release
    • simplify changelog cli download by using gh cli
  • Configure and activate Admin UI
    • [Appliance] Activate appliance updates on Code Search admin UI
  • Bug: Fix file/directory popover regression

    Fix File and directory popovers in the file tree when code search is scoped to a perforce depot.

  • Web: encode file path for blame
    • Fixes an issue that would cause blame view to fail on files that contain some special characters.
  • Fix main lint
    • [Fix] code linting
  • Add perforce support for git references table and labels
    • Code Search now supports labels for Perforce Depots
  • Code Search Deprecate experimental site setting

    The site setting experimentalFeatures.searchJobs is not read anymore. To disable Search Jobs, set DISABLE_SEARCH_JOBS=true for the "frontend" and "worker" services.

  • Migrate httpserver to use sg/log
    • update httpserver to use sourcegraph/log instead of log15
  • [Stream API]: Add external_service_type field to the SearchedRepo type

    Searched repo, commit, path, symbol and file match responses will now include external service type.