title: “Gerrit 3.15.x” permalink: 3.15.html hide_sidebar: true hide_navtoggle: true toc: true

Download: 3.15.0

Documentation: 3.15.0

Release highlights

Enhanced AI Capabilities

AI Review in Change Metadata

Introduced a major revamp to the first-class support for AI-driven code review workflows. Human comments and AI-generated feedback can now be clearly distinguished thanks to the new native isAi boolean field in NoteDb.

The Gerrit UI leverages this by rendering a distinctive “sparkle” icon next to AI-generated comments and check results. To streamline feedback loops on automated reviews, change owners are now presented with a quick Disagree action button on standalone AI comments.

Review votes can be marked as AI-generated as well and the UI shows a sparkle icon inside their vote chips of AI votes. This is achieved through the REST API: set the new is_ai field of ReviewInput when setting a review. The flag is returned in the is_ai field of ApprovalInfo;

Agent Chat Updates

To support the growing ecosystem of AI plugins, the UI introduces a new dedicated plugin endpoint (chat-panel) in the AI chat view sidebar, alongside a new change-view-commit-aside endpoint for displaying high-level AI rationales.

Security around these automated agents has also been tightened: the aiReview permission has been transitioned to a standard default-deny ACL model, ensuring tighter administrative control over which projects and branches are exposed to AI review agents.

A new feature flag (GerritBackendFeature__allow_ai_review_for_registered_users) allows the preservation of the previous, more permissive permission system for AI interaction that allows any registered user to access the AI button and chat regardless of the explicit AI Review permission.

Committing Files to a Branch via REST API

As the AI agentic adoption and automation increases, Gerrit satisfy the need to access and provide new commits and code at scale without having to clone the entire repository and push using the Git protocol.

The new POST /projects/{project-name}/branches/{branch-id}/commit REST endpoint creates, updates, deletes or renames files on a branch in a single commit, without cloning the repository or creating a change.

The caller needs Push access on the branch; commit and ref-update validators (including plugin validators) run, but push-only receive-pack checks are not applied and matching open changes are not auto-closed.

An optional base_revision rejects the request with 409 Conflict if the branch has moved, and a request that would not change the tree is rejected with 400 Bad Request.

Performance and Scalability

Production-ready support for Git reftable storage

The native support for Git's new reftable storage backend, significantly boosting repository performance is now load-tested in high-load and concurrent environments and is ready for production use thanks to the fix of the last remaining stability and repository conversion bugs.

As showcased in technical Git reftable documentation and video presentation, reftable vastly outperforms the traditional file-based ref-database by optimizing ref-updates and introducing snapshotting automatic compaction of refdb files. This integration significantly improves the scalability of reference lookups and updates, helping repositories with millions of refs maintain consistent and predictable performance.

To simplify the transition to reftable, Gerrit includes a built-in conversion tool accessible via the Gerrit web UI in the project screen. Administrators can effortlessly migrate existing repositories from files ref-db format to reftable and from reftable back to files with just a few clicks.

NOTE: The conversion of the repository ref-database storage format must be done when the repository does not receive writes.

Faster Change Screen

The change screen no longer makes the server compute expensive diff statistics that it does not display, reducing the server load and the time needed to fetch:

  • the files of all patch sets, used by the patch set picker to show in which patch sets a file was modified;
  • the updates of a change, polled to notify the user about new patch sets and comments;
  • the Cherry picks, Same topic and Merge conflicts sections.

This builds on a fix to the SKIP_DIFFSTAT option of the changes REST API: available since Gerrit 3.1, it was ignored when returning the files of the revisions of a change (ALL_REVISIONS and ALL_FILES), so passing it had no effect there.

The change screen also no longer requests the parent commit data of the patch sets (PARENTS), whose computation accounted for about two thirds of the latency of slow change detail requests: it is loaded lazily, only when comparing patch sets or for open, non-WIP changes that are submittable.

Platform Updates

Java 25

Gerrit is now built and tested with JDK 25 by default, producing Java 25 bytecode (major version 69).

The optional java21 Bazel configuration is still available to build and release Gerrit for Java 21 (bazel build --config=java21 release).

Docker OS Upgrades

Gerrit Docker images have been upgraded to ensure compliance with the latest security and stability fixes:

  • Almalinux 10.2
  • Ubuntu 26.04 (eclipse-temurin:25.0.3_9-jdk-resolute)

NOTE: The updated distributions may have different versions of the base OS packages bundled. Ensure that all the server-side programs and scripting (e.g. server-side hooks) is fully compatible with the new base OS software.

Bazel modules

The migration of Gerrit's build to Bazel modules (Bzlmod), started in Gerrit 3.14, is now complete: the legacy WORKSPACE-based dependency mechanism, including external_plugin_deps.bzl and the maven_jar rule, has been removed, the web UI build has also moved to Bazel modules, and Gerrit is built with Bazel 9, where Bazel modules are the only supported dependency model.

All plugins must move to Bazel modules. Plugins that still declare their external dependencies in external_plugin_deps.bzl no longer build and must declare them in their own MODULE.bazel with rules_jvm_external, as described in Plugins with external dependencies.

Functional Improvements

Stack Diff

An experimental Stack Diff dialog, opened from the Relation Chain section, shows the cumulative file list and diff of a whole relation chain against its base parent commit, so the combined changes of a stack can be viewed in one place, similar to PRs. Enable it with the UiFeature__stack_diff experiment.

Submit Requirement Templates

Administrators can now define reusable submit requirement templates in [submit-requirement-template "<name>"] sections of project.config, which project owners can pick from in the UI when creating submit requirements.

Templates are inherited from parent projects and exposed through the new GET /projects/{project}/submit_requirements_templates and GET /projects/{project}/submit_requirements_templates/{name} REST endpoints.

Rich Markdown Diff

A rich rendered view for the diff of Markdown files has been introduced, which can be toggled from the diff view and the file list, with inline word and block highlighting.

Comments can be added directly in the rendered Markdown view, including with the C shortcut and on a text selection.

Searching Changes

New search operators have been added to the change index:

  • onlypaths: finds changes touching exactly the given set of files, allowing submit requirements to replace Prolog rules based on the exact list of modified files. Magic files such as /COMMIT_MSG are ignored, and a single regular expression starting with ^ can be used instead of a comma-separated list of paths.

    NOTE: Using the operator with a very commonly changed file may produce a large intermediate result set and be expensive.

  • filecount: finds changes whose latest patch set touches a given number of files, e.g. filecount:>2.

  • unmet_requirement:'NAME' and unsatisfied_requirement_count:'RELATION''NUMBER' find changes by their unmet submit requirements. These operators are not allowed inside submit requirement expressions.

  • has:hashtag matches changes that carry at least one hashtag.

Administration & Configuration Improvements

OAuth Tokens Lifecycle

For sites using OAuth authentication (auth.type = OAUTH), OAuth token handling now covers the whole token lifecycle. The OAuthServiceProvider extension point supports OAuth 2.0 with PKCE (Proof Key for Code Exchange) and can refresh and revoke tokens, with a new OAuthTokenRevokedListener extension point notified on revocation; existing providers remain compatible. Expired access tokens are renewed from their refresh token when the provider supports it, including when retrieved through the REST API, and a failed refresh is retried after auth.oauthTokenRefreshInterval. Tokens stored in the oauth_tokens cache are encrypted at rest with AES-256-GCM using auth.tokenEncryptionKey, which init generates automatically. PKCE, token refresh and token revocation take effect only when the OAuth provider plugin implements the new extension point methods; the oauth plugin supports all of them.

Stale Change Index Recovery

Gerrit can now automatically recover change index updates that were lost when the process crashed or was interrupted between the NoteDb write and the index write. Enable it with index.staleChangeRecovery = true (default false): Gerrit writes per-change intent files under $site_path/data/pending-index/, recovers leftovers from a crashed process at startup and runs a background scanner every index.staleChangeRecoveryInterval (default 5m).

NOTE: Recovery is only effective when index.commitWithin is set to zero and index.indexChangesAsync is false.

Shared Index Location

The new index.directory setting configures where Gerrit stores its index independently of the site path (default $site_path/index; relative paths are resolved against $site_path).

Important Notes

Prerequisites

Install a Java 25 runtime on all the Gerrit servers before upgrading: the released gerrit.war needs Java 25, see Java 25. Also update container.javaHome setting in gerrit.config to point to the new JAVA_HOME location

Schema and index changes

Gerrit schema version is updated to 187 (Gerrit v3.10/v3.11/v3.12/v3.13/v3.14 are all on 185):

  • Schema_186 is a no-op
  • Schema_187 grants the aiReview permission to Registered Users on refs/heads/* in All-Projects, unless an aiReview rule already exists there, so that the switch to the default-deny model keeps the previous behavior.

The Changes index has been upgraded to v90 (Gerrit v3.10/v3.11/v3.12/v3.13 are on v87, v3.14 on v88) and requires a reindex: v89 adds the unmet-requirement and unsatisfied-requirement-count fields, and v90 adds the file-count field. The Accounts, Groups and Projects index versions are unchanged.

Offline upgrade

  • Stop Gerrit
  • Download the new gerrit.war and move it to $GERRIT_SITE/bin
  • Extract all the plugins from gerrit.war and move the ones needed into $GERRIT_SITE/plugins
  • Run init to apply the schema migrations: java -jar $GERRIT_SITE/bin/gerrit.war init --batch -d $GERRIT_SITE
  • Run the full reindex: java -jar $GERRIT_SITE/bin/gerrit.war reindex --index changes -d $GERRIT_SITE
  • Start Gerrit

Upgrade with limited downtime and online reindex

  • Stop Gerrit
  • Download the new gerrit.war and move it to $GERRIT_SITE/bin
  • Update container.javaHome setting in gerrit.config to point to the new JAVA_HOME location
  • Extract all the plugins from gerrit.war and move the ones needed into $GERRIT_SITE/plugins
  • Run init to apply the schema migrations: java -jar $GERRIT_SITE/bin/gerrit.war init --batch -d $GERRIT_SITE
  • Start Gerrit

Gerrit keeps serving searches from the existing v87/v88 Changes index and builds the v90 index in the background, switching to it once complete. This requires.

Online upgrade with zero-downtime

Gerrit v3.15.x supports zero-downtime upgrade from Gerrit v3.10/v3.11/v3.12/v3.13/v3.14 when configured using a high-availability setup.

During the zero-downtime upgrade, Gerrit end-users will not experience any outage or service disruption and will be able to perform any read/write Gerrit operation seamlessly.

The zero-downtime upgrade process for high-availability setups consists of the following steps (demo):

  1. Have Gerrit servers running v3.10/v3.11/v3.12/v3.13/v3.14 in high-availability configuration, healthy and able to handle the incoming traffic properly.
  2. Set one of the Gerrit servers to unhealthy.
  3. Shutdown the Gerrit server, update gerrit.war, plugins and libs to v3.15.x and start Gerrit again.
  4. Verify that the Gerrit server is working properly (e.g. run automated smoke tests) and then make it healthy again.
  5. Ensure the Gerrit server is fully caught up with the events that happened while it was down before directing traffic to it.
  6. Repeat steps 2 to 6 for each of the remaining Gerrit servers.

NOTE: The schema version changes from 185 to 187. Set gerrit.experimentalRollingUpgrade = true on all the Gerrit servers for the duration of the upgrade; without it, the v3.13/v3.14 servers refuse to start once the first server has migrated the schema. Remove the setting once all the servers run v3.15.

NOTE: Change 631582 renames the locks taken by Gerrit core (e.g. project creation locks <project> become gerrit~create-project~<project>), so v3.13 and v3.15 servers do not exclude each other when creating the same project. Avoid creating projects until all Gerrit servers have been upgraded to v3.15.x.

Downgrade

Downgrade to Gerrit v3.10/v3.11/v3.12/v3.13/v3.14 is possible, but requires the following manual steps:

  1. Stop Gerrit
  2. Set gerrit.experimentalRollingUpgrade = true in gerrit.config: v3.10/v3.11/v3.12/v3.13/v3.14 refuses to start on schema version 187 otherwise
  3. Rollback the gerrit.war and plugins to the previous version
  4. Run the full reindex with the v3.10/v3.11/v3.12/v3.13/v3.14 gerrit.war, because the old v87/v88 Changes index does not contain the updates made while running v3.15: java -jar $GERRIT_SITE/bin/gerrit.war reindex --index changes -d $GERRIT_SITE
  5. Start Gerrit

The migration to Schema_187 may have added the aiReview grant in All-Projects if no other aiReview permission had been specified. This should be removed, but it may be kept regardless as:

  • Gerrit v3.14 applies it, so Registered Users keep AI Review on refs/heads/* as before.
  • Gerrit v3.10/v3.11/v3.12/v3.13 does not know the aiReview permission and ignores it.

Known issues

  • Issue 309098227 Change 360646: The introduction of a per-request ref cache for better performance may break the repository consistency

    The addition of a new core.usePerRequestRefCache setting, true by default, introduced a per request (currently per request thread) ref cache, helping reduce the overhead of checking if the packed-refs file was outdated. However, in some scenarios, such as multi-site or concurrency between git-receive-pack and git-gc, it may lead to split-brain inconsistencies and, in the worst-case scenario, to the corruption of the underlying repository.

  • Issue 380898784: The new changes_by_project cache will make the git-upload-pack fail intermittently on projects containing one or more inconsistent changes.

    The introduction of the changes_by_project cache is incompatible with projects having one or more inconsistent changes, like changes with /meta refs coming from unexpected Gerrit serverId. The cache makes the git-upload-pack fail intermittently with internal server errors when it fails to load the change meta-data depending on the status of the cache. As a workaround, disable the changes_by_project cache as follows in gerrit.config:

    [cache "changes_by_project"]
          memoryLimit = 0
    

Breaking Changes

  • Change 642007: The experimental default-allow behavior of the aiReview permission introduced in 3.14 has ended; aiReview now follows the standard default-deny model.

    In 3.14, aiReview was allowed for everyone when no rules were configured, and DENY or BLOCK rules alone could restrict groups. On upgrade, a NoteDb schema migration (Schema_187) adds an explicit grant for Registered Users on refs/heads/* to All-Projects, unless that section already has an aiReview rule; new sites are seeded with the same grant, so the out-of-the-box behavior is preserved.

    Sites that restricted aiReview only with DENY or BLOCK rules must review them: next to the Registered Users grant they no longer restrict anyone, because a DENY only cancels an ALLOW for the same group and a BLOCK is overridden by an ALLOW in the same access section. Grant aiReview only to the groups that should have it, or BLOCK the excluded groups in a child project.

    NOTE: no grant is added if All-Projects already had such a rule on refs/heads/* (Issue 575161901, see Known issues).

    Sites that want to keep letting every registered user use AI Review without an explicit aiReview rule, as in 3.14, can enable the GerritBackendFeature__allow_ai_review_for_registered_users experiment:

    [experiments]
          enabled = GerritBackendFeature__allow_ai_review_for_registered_users
    

    Unlike in 3.14, DENY and BLOCK rules on aiReview have no effect on registered users while the experiment is enabled.

  • Issue 515272357, Issue 507078595: The config/server/index.changes REST API now only accepts change identifiers in project~changeNumber format when delete_missing is true, preventing ambiguous identifiers from deleting the wrong change from the index, and rejects the number-only change identifier with a 400 Bad Request.

  • Change 607261: Disk stats for persistent caches are no longer collected by default by the show-caches SSH command and the List Caches REST API.

    Collecting disk stats is expensive on busy servers with large caches; use the new --include-diskstats option of show-caches, or include-diskstats=true on GET /config/server/caches/, to include them.

  • Change 617061: Replies in a comment thread must now be on the same patchset as the parent comment, enforced by the backend for REST API requests.

    Requests that set in_reply_to to a comment on a different patchset are now rejected with 400 Bad Request; clients replying to comments on several patchsets in one POST review call must split the request by patchset.

  • Issue 40009784: Implicit merges are now rejected on submit by default, not only on push.

    The receive.rejectImplicitMerges project option now applies to both push and submit, and its effective default is true when no project overrides it.

    The former GerritBackendFeature__*_implicit_merges_on_merge experiments have been removed; projects that intentionally rely on implicit merges must set receive.rejectImplicitMerges = false.

  • Change 622261: Fix httpd.acceptorThreads being applied to Jetty selector threads, and add the new httpd.selectorThreads option to control the selector thread count.

    httpd.acceptorThreads now defaults to 0 (selector threads also accept new connections) and httpd.selectorThreads defaults to 2, preserving the previous effective behavior.

    Sites that raised httpd.acceptorThreads to increase I/O concurrency should set httpd.selectorThreads instead to keep the same selector count.

  • Change 614121: Warnings emitted by receive-commits validation on push are now reported with the standard WARNING: prefix and a commit <sha> reference, consistent with other commit validators.

    Previously these warnings used a lowercase warning: prefix.

  • Change 581562: The gerrit_plugin Bazel rule no longer accepts the provided_deps attribute, keeping it in sync with bazlets which dropped support for it.

    Plugins built in-tree that still pass provided_deps to gerrit_plugin need to remove that attribute from their BUILD files.

  • Change 553022, Change 553181, Change 585681: The web UI no longer sets up the global Polymer variable and Polymer bridges that plugins previously relied on.

    Gerrit UI plugins that still depend on the globally available Polymer library will no longer work and must be migrated to Lit; LitElement, html and css are exposed on window for plugins migrating to Lit.

    The legacy gr-change-view-integration-shared-styles Polymer style module has been removed: plugins using <style include="gr-change-view-integration-shared-styles"> must switch to the changeViewIntegrationStyles Lit CSS export.

    The @polymer/polymer and polymer-bridges dependencies have been removed from the web UI and from the plugins build, keeping only @polymer/font-roboto-local.

  • Change 626021: In the Java extension API, RevisionInfo.ParentInfo#changeStatus is now typed as the ChangeStatus enum instead of String.

    The JSON returned by the REST API is unchanged, but Java extension and plugin code reading this field must be adapted.

  • Issue 40014461: ChangeIndexedListener#onChangeDeleted(int id) is now onChangeDeleted(String projectName, int id), and ChangeIndexer#delete also takes the project, since a change number alone does not identify a change.

    Plugins implementing ChangeIndexedListener must be adapted.

  • Change 630241: OAuthTokenCache.get() is renamed to getOrEvictIfExpired(), with unchanged behavior; plugins calling it must be updated.

    The new OAuthTokenCache.getEvenIfExpired() lets refresh-aware callers read an expired token's refresh token.

  • Change 632561: LockManager locks are now identified by namespaced LockKeys to prevent unrelated callers from colliding on the same lock name, and all core callers obtain LockManager through its DynamicItem, so plugin overrides of the LockManager extension point are honored consistently.

  • Change 633901: The download-commands plugin adds --no-filter and --no-tags to the git fetch download commands (and --no-tags to pull), which is incompatible with any Git client version older than v2.17.

    NOTE: Downgrade to the download-commands plugin v3.14.x if any of the git clients are incompatible with the additional flags.

Deprecated Features

  • Change 642072: A Push Merge Commit grant on refs/for/refs/heads/BRANCH still authorizes direct merge pushes to refs/heads/BRANCH, but this fallback is deprecated, logs a warning on the server and will be removed in a future release; grant Push Merge Commit on refs/heads/BRANCH instead.

  • Change 565901: The line_wrapping field of the diff preferences REST API is deprecated in favour of responsive_mode; existing settings with line wrapping enabled are mapped to FULL_RESPONSIVE, and with line wrapping disabled to NONE.

Performance Changes

  • Change 600221: Speed up diff expansion in the change screen UI for changes with a large number of paths.

  • Change 591501: Add file warming for faster H2 bloom filter building.

    On a production instance with ~84M disk cache entries this reduced loading time from ~22 to ~16 minutes.

  • Change 607281: Improved querying of disk stats on large persistent caches.

  • Change 619761: Avoid re-evaluating submit rules on open changes when both strict and lenient submit records are requested, reusing the records cached on the change data: a cached evaluation is measured to be over 5,000x faster than a cold one.

    This also applies to direct submit rule evaluations and to SSH gerrit query with --submit-records, which previously bypassed the cached records.

  • Change 619706: Load change data with fewer NoteDb accesses, with a measured 3.2x to 12.8x performance improvement. Patch sets loaded from the index are kept, the resolved meta revision is cached, and reviewedBy no longer loads all patch sets.

    This speeds up every part of Gerrit that loads change data, such as the change screen and change search results, as well as the processing that follows the creation of a change and every update to it: change notifications, stream events (e.g. patchset-created, comment-added) and event listeners.

  • Change 619705: Speed up the Submitted Together computation in the change screen by returning immediately for standalone changes, without evaluating submit rules, and by removing the sequential pre-computation of submit records for multi-change sets.

  • Change 619704: Drastically reduce JVM heap churn and GC pressure when parsing NoteDb change metadata, by matching commit footers without allocating intermediate collections and strings; parsing latency is also ~9-10% lower.

    NoteDb change metadata parsing is on the hot path of change loading: it runs whenever a change is loaded and its current state is not already in the change_notes cache, for example after every update to a change, after a restart, and when reindexing changes.

  • Change 619707: Listing change comments and formatting them for the change screen is twice as fast thanks to fewer redundant comment-context key computations and allocations, with benchmarks on 5,000 comments showing up to 1.9x faster formatting.

  • Change 623341: Change queries no longer issue a redundant secondary index query when all results on the first page are visible and already fill the requested limit, halving the backend index queries in that case.

  • Change 619762: Internal group lookups are faster thanks to batched group index queries by UUIDs and members, partitioning bounded by index.maxTerms, and cross-population of the group cache by ID and name when loading groups by UUID.

  • Change 633785: Speed up loading changes with a large number of patch sets. Computing the ChangeKind of each patch set (e.g. trivial rebase, no code change) no longer rescans all patch sets for every one of them, a cost that grew quadratically with the number of patch sets.

    This applies to the change screen and to any REST API request listing all revisions of a change (o=ALL_REVISIONS); when o=ALL_COMMITS is not also requested, the repository is now opened once instead of on every change kind cache miss.

  • Change 639896: The accounts cache reuses a shared All-Users repository handle for lookups and cache loads instead of opening the repository each time, reducing overhead on the hot path of Git and REST requests when core.useFileKeyByProjectCache = false.

  • Change 643883: The external IDs cache loader and the reading of the external IDs from NoteDb reuse the shared All-Users repository instead of opening it for every load, speeding up account cache loading.

  • Change 644623: Listing the tags of a project filters them by name and, when sorting by name (the default), applies start and limit before computing the tag details, which are now only computed for the returned page: in a test with 20,000 annotated tags, listing 26 of them went from ~450ms to ~15-35ms.

  • Change 645113, Change 645114: Speed up reviewer suggestions. The visibility checks of the candidate reviewers run in parallel on the fan-out executor (sized by execution.fanOutThreadPoolSize) and stop as soon as enough visible reviewers are found, which matters when permission checks or account lookups need external directory or authentication calls (~100ms per candidate). With accounts.visibility set to SAME_GROUP or VISIBLE_GROUP, the account visibility check stops at the first matching group instead of collecting the groups of every group backend, avoiding the external group backend calls when internal groups are enough.

  • Change 611161: When a Change has associated checks configured, they are no longer fetched twice from providers when the selected patchset is the latest one.

  • Change 631401, Change 631841: Reduce the footprint of all Gerrit HTTP requests going through the AllRequestFilter pipeline. The pipeline no longer scans all registered filters on every request, reducing its footprint to near-zero time.

    NOTE: Two plugins providing different filter implementations with the same equality check will no longer be usable. The Gerrit admin should check and review the code of plugins that implement AllRequestFilter.

  • Change 630261: Speed up the processing of incoming changes or patch sets pushed to Gerrit by skipping rename detection when counting the number of files changed in the commit for commit validation. This results in a max-files validation on large changes performing 4x faster.

    NOTE: A renamed file now counts as two changed files (one deletion and one addition) against the max files limit (change.maxFiles, which defaults to 10k). As a consequence of this performance improvement, an incoming change that was renaming files and was previously accepted, it may now exceed the limits.

  • Change 638024: When using Java 25 Gerrit site init now enables compact object headers (JEP 519) by default to reduce heap usage.

    Init adds -XX:+UseCompactObjectHeaders to container.javaOptions in gerrit.config, also on existing sites, unless the option is already explicitly enabled or disabled.

  • Change 593661: The AI prompt dialog now loads and processes the change's patch content only when it is opened, avoiding a browser freeze on page load for very large changes when AI review is enabled.

New Features

  • Change 609281: The H2-based accountPatchReviewDb can now be shared safely by multiple Gerrit primaries on a shared filesystem (e.g. NFS) without an external database. Set accountPatchReviewDb.h2LockType = jgit to replace H2's built-in file locking with JGit-style .lock files; accountPatchReviewDb.h2LockTimeout (default 30 seconds) controls how long to retry acquiring the lock.

  • Change 628504: The Lucene index lock implementation is now configurable with index.lockFactory, which accepts NATIVE (default) or SIMPLE, recommended for filesystems with unreliable OS-level locking such as NFS.

    NOTE: Changing lock factories requires stopping index writers and removing existing lock files; see the migration precautions.

  • Change 561921, Change 562981: Add a configurable timeout for submit requirement evaluation so that slow or expensive expressions cannot block access to a change.

    The new submitRequirement.executionTimeout option, which defaults to 0, i.e. no timeout, applies per submit requirement. It's applied to the total computation time needed to compute the sum of applicableIf, submittableIf and overrideIf. When exceeded the evaluation is aborted, the expression result gets the new TIMEOUT status and the change cannot be submitted.

    Evaluation runs on a dedicated executor sized by the new submitRequirement.evaluationThreads option, which defaults to -1, which means that it's evaluated in the request thread and no timeout applies. To use the number of available CPUs set it to 0.

    REST API clients that inspect submit_requirements.status should handle the new TIMEOUT value, reported instead of UNSATISFIED.

  • Change 607221: Add caches/memory_request_count and caches/disk_request_count metrics exposing the total number of lookups per cache, helping administrators decide which caches are worth growing.

  • Change 601041: The show-caches SSH command has a new --cache <NAME> option that restricts the statistics to the named caches, avoiding collecting them for every cache on busy servers; it can be repeated to report on several caches.

  • Change 621901: Add a histogram action to gerrit.sh that captures a class histogram of the live objects on the Java heap with jcmd, saving it under $GERRIT_SITE/logs/histogram, to help investigate memory growth.

  • Change 626881: Reviewers and CCs added via push options can now be suffixed with :silent (e.g. -o r=<email>:silent, -o cc=<email>:silent) to add them without sending them email notifications for that push.

  • Change 629021: Add the server/project/submit_requirement_evaluator_latency metric to track how long submit requirement evaluation takes.

  • Change 629601: Add a minimumInitialDelay schedule setting so periodic background jobs, such as cache pruning, do not run immediately after a restart while preserving their configured cadence.

  • Change 631581: Tasks can now be filtered by state with the new --state/-s option of the show-queue SSH command and the state option of the /config/server/tasks/ REST endpoint, repeatable to match any of several states.

  • Change 642014, Change 642015, Change 642017: Auth token expiry reminders are now configurable with auth.token-expiry.notifyDaysBefore and can be disabled with auth.token-expiry.notify = false; users are also notified once a token has expired.

    NOTE: By default users now receive reminders 21, 14, 7 and 0 days before a token expires, instead of a single reminder 7 days before.

  • Change 643783: The new httpd.enableProxyProtocol option accepts PROXY protocol (v1 and v2) headers on proxy-http:// and proxy-https:// listeners, so that Gerrit sees the original client address and port instead of those of the reverse proxy. If both a PROXY protocol header and X-Forwarded-For are present, X-Forwarded-For takes precedence.

    NOTE: Enable it only when all the traffic to the listener comes from trusted proxies: a client connecting directly could forge a PROXY protocol header and spoof its address.

  • Issue 40015236: Blame ignores the revisions listed in the .git-blame-ignore-revs file at the root of the repository, such as bulk reformatting commits, attributing the lines to the last meaningful change. This applies to the blame REST endpoint and to the blame view of the Gitiles plugin.

  • Change 643545: The reftable ref storage format is no longer experimental in the convert-ref-storage SSH command.

  • Change 645029: Converting a repository to reftable is now refused while core.usePerRequestRefCache is enabled (the default), as such repositories cannot be served with the per-request ref cache: set it to false and restart Gerrit before converting repositories to reftable.

  • Change 652103: The project extension API now exposes ProjectApi.convertRefStorage(), so plugins can convert a repository's ref storage without issuing a raw REST request.

  • Issue 582908457: The create-project SSH command now accepts --ref-storage FILES|REFTABLE to select the ref storage format of the new repository. When omitted, the repository manager's configured default is used.

  • Change 596901: Add addDiffLayer() to the annotation plugin API, allowing UI plugins to register custom diff layers that are applied when rendering diffs.

  • Change 629941: New StopPluginListener.beforeStopPlugin() method is called just before a plugin is unloaded, while its Guice environment and resources are still accessible, so listeners can inspect the plugin and clean up in an orderly way.

  • Change 566902: CommitReceivedEvent now exposes cherryPickOf, so CommitValidationListener plugins can recognise cherry-picked commits and apply cherry-pick-specific validation rules.

  • Change 633202: Change notification emails now show the sender's email address alongside their display name in action sentences (e.g. Name <email> has created a revert of this change), so recipients can always tell who performed the action.

    NOTE: The fromName variable of change email templates now has the form Name <email>, and attention set templates receive the new attentionSetUserEmail variable in the same form; review any custom email templates that use fromName.

Security Fixes

  • Change 599041, Change 609682: The account query REST API now enforces account visibility: it no longer returns accounts that the caller cannot see when o=DETAILS is used or for suggest queries and, when accounts.visibility is restricted (SAME_GROUP, VISIBLE_GROUP or NONE), no longer exposes detailed account information (o=DETAILS and suggest) to unauthenticated callers.

  • Issue 561066231: The oauth_tokens cache is now encrypted in core: OAuthTokenCache and its H2 persistence has been part of Gerrit core since the feature was introduced, so encrypting the stored tokens is a core data-protection concern.

    NOTE: Setting cache.oauth_tokens.memoryLimit = 0 now fully disables OAuth token storage, so tokens are no longer written to the persistent H2 cache even when diskLimit is positive. See Change 630421 for more details.

  • Issue 565075161: Replace all uses of the legacy SHA1PRNG random generator with the platform default SecureRandom for OAuth state, signed-push seed, auth-token and Change-Id generation, and salt generated group UUIDs and patch-set approval UUIDs with cryptographically strong random bytes instead of Math.random(); the new SecureRandomUtil is exported in the plugin API (com.google.gerrit.util.crypto) so plugins can use it directly.

  • Change 643344: Hidden projects are now reported as not found to users who are not project owners, instead of disclosing that they exist and are hidden: GET /projects/{project-name} returns 404 Not Found, and updating the watched projects reports Project Not Found: <name> instead of failing with project <name> has state HIDDEN does not permit read.

  • Issue 535583374: reviewer-added stream events are now only sent to users who can see the change, so they no longer leak the reviewer updates of private changes.

  • Issue 559396680: Reviewer requests using on_behalf_of now require the real caller to have the global Run As capability. This prevents callers with only change read access from borrowing another account's permissions to remove reviewers and their approvals.

Bug fixes

  • Change 599781: Diffs now respect .gitattributes overrides: files marked -diff or with the binary macro are shown as binary instead of as textual diffs, matching Git behavior.

  • Change 630501: Setting cache.oauth_tokens.memoryLimit = 0 now fully disables OAuth token storage, so tokens are no longer written to the persistent H2 cache even when diskLimit is positive.

    When token storage is disabled, GET /accounts/{id}/oauthtoken returns 409 Conflict. To keep tokens in memory only, set cache.oauth_tokens.diskLimit = 0; if tokens were previously written to disk, stop Gerrit and remove the existing oauth_tokens persistent cache files.

  • Change 601281: Patch set events now compute insertions and deletions from the diff_summary cache instead of loading full file diffs.

    As a result, the COMMIT_MSG and PATCHSET_LEVEL files are no longer counted in the reported size, restoring the originally intended behavior.

  • Change 626801: Fixes Git pushes by non-service users not using asynchronous change indexing even when index.indexChangesAsync is enabled, as the push access path is now preserved when materializing the user.

  • Issue 519743027: Fix syntax highlighting of Objective-C++ (.mm) files containing C++14 digit separators, which previously broke highlighting for the rest of the file.

  • Change 642068: The reviewer.skipAddingAuthorAndCommitterAsReviewers project option is now also honored when pushing new patch sets to an existing change, which no longer adds and emails the commit author and committer.

  • Change 611261: The email verification link in the HTML variant of the new email registration message is now clickable.

  • Change 611181, Change 621762: Fix migration of label functions to submit requirements (migrate-labels and migrate-labels:review REST endpoints) generating invalid applicableIf expressions for labels restricted by branch patterns such as refs/heads/*.

  • Change 612843: The commit-msg hook no longer appends a duplicate Change-Id when the commit message contains KEY=value style footers such as TAG=.... Users need to download the hook again to get the fix.

  • Change 617181: Queued tasks that are not associated with a project, such as most SSH commands, can now be retrieved and killed via kill and GET/DELETE /config/server/tasks/{task-id} by users with View Queue, instead of failing with “No such task” / 404.

  • Change 622881: Stop logging a spurious SEVERE "Internal server error" when an SSH client disconnects while its command is blocked in a library call, such as a Lucene index query; these disconnections are now logged at debug level.

  • Change 619709: Internal change lookups by project commits or legacy change IDs no longer fail when the number of terms exceeds index.maxTerms; they are now split into batched sub-queries and the results are de-duplicated.

  • Change 623361: Fix group cache batch eviction by UUID, which previously never invalidated the cached entries because the wrong key type was passed.

  • Change 623882: GET /changes/{change-id}/query with use-index=true now falls back to NoteDb when the change is missing from the index (e.g. due to replication lag) instead of failing with HTTP 500.

  • Change 625141: Suggested edit previews now diff the original and fixed text with HistogramDiff, so unchanged lines inside the replaced range are shown as common lines instead of being deleted and re-added.

  • Change 634363: Fix Jetty rejecting URIs containing an encoded backslash (%5C), e.g. reopening a copied change-query URL such as branch:^a\.b, by allowing SUSPICIOUS_PATH_CHARACTERS in URI compliance.

  • Change 635866: Fix HTTP 500 when updating a draft comment without path.

    When the update request omits path, the draft now keeps its existing path and, unless given, its line, range and side.

  • Change 635867: Fix draft comment losing unresolved state on update.

    Updating a draft without the unresolved field no longer resets it to false, also for ported comments.

  • Change 635324: Comment replies posted via the REST API with in_reply_to set and line, range or side omitted now inherit them from the parent comment, instead of being stored as file-level comments that split from their thread in the UI.

  • Change 635088: Stopping Gerrit after unloading a plugin no longer waits for the plugin cleaner's one-minute delay; the scheduled cleaner is cancelled on shutdown.

  • Change 620701: StartPluginListener, StopPluginListener and ReloadPluginListener implementations provided by plugins are now honored, so plugins can listen to the loading, unloading and reloading of other plugins.

  • Change 609041: SSH change queries now stop processing results promptly when the client disconnects, instead of continuing to build output that will never be sent.

  • Change 645107: All SSH commands now abort reliably when the client disconnects, even if the interrupt of the command thread was lost, e.g. while waiting for a lock of an H2 persistent cache, which could keep unlimited queries running for hours and cause long GC pauses.

  • Change 584001: Auth token expiry notifications are no longer stopped for all remaining users when sending one of them fails.

  • Change 614843: Project watchers are no longer emailed about work-in-progress changes created via the REST API (POST /changes/), consistent with git push with %wip. To keep notifying everyone, set notify to ALL explicitly.

  • Change 644892: Auto-close changes on direct push even if they have a Patch-Set-Lock.

  • Change 652104: A ref-storage conversion blocked by a backup left on disk from an earlier conversion now returns 409 Conflict with an actionable message instead of an opaque HTTP 500 error.

Frontend changes

  • Change 652105: The ref-storage conversion dialog now has an opt-in option to keep the previous storage as a backup. The existing behavior of removing the old storage remains the default.

  • Change 581341: New check-result-feedback plugin endpoint in the expanded details of a check result wraps the default Was this helpful? feedback controls, letting plugins customize or replace them; the CheckResult is passed as a parameter.

  • Issue 528412754: The inline editor now asks for confirmation before discarding unsaved modifications when clicking Cancel.

  • Change 605081: Reviewer updates made by service accounts (e.g. bots adding reviewers) are now hidden in the change log by default and only shown with Show all entries.

  • Change 611022: Switching sidebars in the diff view now correctly unmounts the previous plugin sidebar component and instantiates the new one.

  • Change 611069: The diff view sidebar is now user-resizable and plugins can place it on the left or right side via the sidebarPosition static property or sidebar-position attribute.

  • Change 614621: The Unresolved comments section of the Create AI Review Prompt now anonymises commenters as User1, User2, ... instead of showing their names.

  • Change 616081: When creating a change flow, email addresses and account IDs are now validated as you type, with invalid accounts shown on the parameter chip in the live preview and errors reported in a banner inside the dialog instead of a global error popup.

  • Change 618381: Fix markdown links inside loose lists being rendered with broken markup and leaked HTML attributes.

  • Change 615681: The diff view now supports linking to and highlighting a range of lines via URL fragments such as #50-156 or #b50-156.

  • Change 620161: Fix unexpected submission of the prompt or navigation of prompt history in the prompt box when pressing Enter or navigation keys to confirm text with an Input Method Editor (IME).

  • Change 621221: Add an optional Hashtags column to the change list, disabled by default, that users can enable in their change table preferences.

  • Change 572402: Add a Shown Labels user preference in the Change Table Columns settings to choose, as a comma-separated list of full or abbreviated label names, which label columns are displayed in the change list.

    Leaving the field empty keeps showing all labels, as before.

  • Change 401378: Re-add the Default Base For Merges user preference, removed in Gerrit 3.7.0, allowing users to choose between Auto Merge and First Parent as the default base when viewing merge commits.

  • Change 622581: Turn the bulk Abandon button of the change list into a Restore button when all selected changes are abandoned, allowing abandoned changes to be restored in bulk.

  • Change 622321, Change 633461: In edit mode, diff hunks now show an IDE-like revert button that reverts the individual hunk and refreshes the diff against the base, also when earlier edits shifted lines or adjacent context is collapsed, including whole-file addition and deletion reverts.

  • Change 623262: Reviewers who voted on a change can again reply with comments after it has been submitted, as unchanged votes are no longer resent and rejected with Voting on labels disallowed after submit.

  • Change 624762: Fix a race condition that could make the code coverage layer disappear from the diff view.

  • Issue 562128303: Changing the notification settings of a watched project now enables the Save Changes button, so these updates can be saved on their own.

  • Change 634944: Restyle the LDAP, OAuth, OpenID and become any account sign-in pages with a centred card layout, Gerrit typography and a Gerrit-blue primary button.

  • Issue 562298034: Fix HTTP 400 when opening commit message or merge list diff/edit URLs directly, by encoding their leading slash as %2F instead of generating a double slash.

  • Change 642224, Change 641946: The change list on narrow screens now shows each change on three lines, with the change number, repository and branch in a header line, then the subject, then the owner, attention-set and label votes as badges instead of the change size.

  • Change 642204: Fix overlapping hit areas of the vote buttons in the reply dialog, where clicking below a Code-Review button could select a vote on the Verified row instead.

  • Change 643248: A toggle in the commit message footer of the change screen renders the commit message as Markdown or as plain text.

  • Change 645108: When the AI chat cannot load its models because no API token is configured, the prompt box offers a Set up token chip linking to the user settings, instead of a This Change chip that did nothing; on other failures no chip is shown.

  • Change 644163: The image diff controls stay in view while scrolling through tall image diffs.

  • Change 644063: Fix the change header title going out of the screen on mobile.

  • Change 643163: Fix the primary action buttons of the change screen getting squished on mobile.

  • Change 645343: Fix the sidebar of the change and diff views, such as the AI chat, being cut off at the bottom when an announcement banner is shown, and sliding under the sticky change header buttons when scrolling to the bottom.

  • Change 648606: Quick Approve no longer offers labels containing presubmit, and offers Code-Review when the user can vote its maximum and has not done so yet, even if another label is still needed.

  • Change 583726: Added UI event controller to support AI code explanation flow.

  • Change 574301: Add the diff-content and diff-header-controls UI plugin extension points to the diff view, allowing plugins to decorate the diff content and add controls to the diff header.

  • Change 649385: The flows plugin API (plugin.flows()) exposes the flows of the current change with getState() and onStateChanged(), and lets plugins create, delete and reload flows with createFlow(), deleteFlow() and reload().

  • Change 625465: The Review Agent button on the change screen is renamed to Agent Chat, and the reply dialog's reply-reviewers endpoint gains a middle slot so plugins can render reviewer actions next to the reviewer list.

  • Change 641967: The header bar shows the Diffy logo on the top-left.

  • Change 583221: The Add/Open/Upload button of the change edit mode is renamed to Edit.

  • Change 560863, Change 571903, Change 572381: New experiment GerritBackendFeature__timeout_file_diff_computation enforces a timeout on file diff computation; diffs that time out are reported as diffs_too_expensive_to_compute and the UI shows a warning with a link to download the change for local review.

Documentation changes

  • Change 611821: The upload documentation now warns more prominently that granting Submit on refs/for/* and refs/* effectively bypasses ACLs and can lead to privilege escalation.

  • Change 634177: Document the restrictions of Gerrit replicas in the --replica daemon option and container.replica setting: no Git push, no REST API, a limited set of SSH commands, and only the groups index maintained.

  • Change 627102: Document the PUT /accounts/{id}/emails/{email-id}/avatar REST endpoint for setting the account's avatar lookup email.

  • Change 648613: Correct the documented default of cache.directory, which is cache.

Plugin changes

Codemirror-editor plugin

  • Change 615582: Preserve the file's line endings when pasting into a new file or replacing all of its content.

Download-commands plugin

Gitiles plugin

  • Change 623641, Change 623681: Build the plugin from the Gitiles sources included in Gerrit as the modules/gitiles submodule, including its static web assets, instead of released Maven artifacts, and stop bundling libraries already provided by gerrit.war. This shrinks gitiles.jar from about 34 MB to under 1 MB; the com.google.gitiles:gitiles-servlet and blame-cache artifacts are removed from Gerrit's dependency catalog.

Plugin-manager plugin

  • Change 638663: Modernise the Gerrit introduction page, removing obsolete Jira references, highlighting newer integrations such as the AI review agent chat, and updating the social channel links.

  • Change 639106, Change 642082, Change 642443: Give the plugin manager page a new look and feel matching the introduction page, with header colors, fonts and search box aligned with the Gerrit header.

  • Change 649045: Show the license of the plugins published by Gerrit-CI with a legal icon on the plugin card, which shows the license type on hover.

Replication plugin

  • Change 577141: Add the --ref <RefName> option to replication start to replicate a single branch or tag instead of the whole project.

  • Change 588841: Add replication.emitEvents (default true) to stop emitting replication stream events when no listener needs them.

  • Change 585701: Automatically repair a plain SSH destination via rsync when a push fails with ‘missing necessary objects’, controlled by the new autoRepairMaxAttempts (default 0, disabled), autoRepairInterval (default 3 days) and autoRepairConcurrencyLimit (default 2) options.

  • Change 609701: Include exception data, such as stack traces, in the replication log when logging in JSON format.

  • Change 610643: Allow remote.NAME.threads = 0 to run a remote in persist-only mode, where the node only writes replication tasks to storage and another primary performs the pushes; project deletions and HEAD updates from such a node are not replicated.

  • Change 611961: Show the current batch progress of batched pushes in the replication queue task display.

  • Change 612842: Apply excludedRefsPattern before scheduling, so excluded refs are no longer queued and persisted as no-op tasks.

  • Change 616001: Stop the distributor from re-firing tasks that are already pending, which made the pending task's notification list grow on every cycle.

  • Change 616286: Add a --copy-loose-objects repair action, now also included in --full.

  • Change 620401: Make project repair rsync from a hardlink snapshot so that it no longer fails when a repository is repacked during the copy.

  • Change 649943: Close directory streams after scanning replication task storage, preventing leaked directory handles during task recovery.

JGit Changes

  $ git log --oneline --no-merges 182a14056..87eaf6628

Notable changes are:

  • 771bfb6ee PackedBatchRefUpdate: Release locks in reverse order of acquisition
  • 9d7ec6911 RefDirectory: fix pack() unlocking held locks prematurely
  • ab5902429 PackedBatchRefUpdate: hold inProcessPackedRefsLock across pack step
  • a3a8b9785 Include time negotiating in total time in UploadPack
  • 5fe179cee ResolveMerger: Retrieve Attributes lazily during Three-way merge
  • fd2ecea73 BitmappedObjectReachabilityChecker: Optimize filtering
  • bc1df3730 Config: support commitgraph.changedPathsVersion config
  • 5e2dfde45 CommitGraphWriter: Write correct version in commit-graph changePathFilters
  • fe01de69f Blame: Add option to ignore revisions
  • fb16a16c6 BlameGenerator: introduce Commit Graph based performance boosts
  • fe74cbe1d TreeRevFilter: Enable merge commit BF serving
  • 38e024053 Add cooperative cancellation to RevWalk traversal
  • 92c2312fa Fix NPE in close() with nothing to fetch

Other dependency changes

  • Update bazlets to a149563, adding native support for plugin aliases, external and test dependencies and reproducible plugin archives.

  • Update Bazel to 9.3.0, now required to build Gerrit.

  • Update rules_java to 9.9.0, rules_jvm_external to 7.2, rules_go to 0.63.0, rules_python to 2.4.5 (via 2.3.4) and rules_android to 0.7.3.

  • Update rules_nodejs to 6.7.6, aspect_rules_js to 3.5.1 and aspect_rules_ts to 3.10.1.

  • Update Node.js to 26.11.1.

  • Update TypeScript to 6.0.3.

  • Update JRuby to 10.1.2.0 for building the documentation.

  • Update AsciidoctorJ to 3.0.1 for building the documentation.

  • Update protobuf to 36.2 and protobuf-java to 4.36.2.

  • Update jetty to 12.1.13.

  • Update byte-buddy to 1.18.14.

  • Update bcprov-jdk18on to 1.86.

  • Update lucene to 10.5.1; the on-disk index format is unchanged and no reindexing is required.

  • Update h2 to 2.5.252, which fixes a data race causing spurious “Position 0” errors during chunk rewriting.

  • Update slf4j to 2.0.20.

  • Update asm to 9.10.1, which supports the class files of the optional JDK 27 build.

  • Update args4j to 2.37 (Issue 479458084).

  • Update JavaEWAH to 1.2.3, the version used by JGit (Issue 317713422).

  • Update commons-codec to 1.20.0 (Issue 479234132).

  • Update mockito to 5.24.0.

  • Update mina-core to 2.2.9.

  • Update commons-lang3 to 3.20.0.

  • Update commons-validator to 1.11.0.

  • Update auto-value to 1.11.1.

  • Update auto-factory to 1.1.0.

  • Update highlight.js to 11.12.0.

  • Update marked to 18.0.3.

  • Update @material/web to 2.5.0.

  • Update @gerritcodereview/typescript-api to 3.15.0.

  • Update java-prettify to 1c0ef60424.

  • Update @codemirror/view to 6.43.14, @codemirror/state to 6.7.6 and the other CodeMirror and Lezer packages (Change 621542, Change 643923).

Community

Welcome to our new contributors

Welcome to the new contributors that had their first patch merged in 3.15.0:

  • Ang Li
  • Anna Feng
  • Bhoomika Srinivas
  • Cecily Hunt
  • Dan Atzmi
  • Daniel Cheng
  • Danny Chen
  • Erik Flodin
  • Eugene Gvozdetsky
  • Farbod Rafezy
  • Hari Jeyamani
  • James Hawkins
  • Jonathan Feldman
  • Josie Cuff
  • Kevin Berry
  • Li Yingchun
  • Martin Wölfle
  • Micah Bales
  • Oleksandr Redko
  • Pavel Sliusar
  • Randy Maldonado
  • Sandeep Suman
  • Son Luong Ngoc
  • Spencer McEwan
  • Sweet Tea Dorminy
  • T.J. Mercier
  • Vera de Kok
  • Zaid Sayyed

Thank you for your contributions!