Gerrit 3.15.x
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_MSGare 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'andunsatisfied_requirement_count:'RELATION''NUMBER'find changes by their unmet submit requirements. These operators are not allowed inside submit requirement expressions. -
has:hashtagmatches 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.commitWithinis set to zero andindex.indexChangesAsyncis 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_186is a no-opSchema_187grants theaiReviewpermission to Registered Users onrefs/heads/*inAll-Projects, unless anaiReviewrule 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.warand move it to$GERRIT_SITE/bin - Extract all the plugins from
gerrit.warand 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.warand move it to$GERRIT_SITE/bin - Update
container.javaHomesetting ingerrit.configto point to the newJAVA_HOMElocation - Extract all the plugins from
gerrit.warand 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):
- 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.
- Set one of the Gerrit servers to unhealthy.
- Shutdown the Gerrit server, update gerrit.war, plugins and libs to v3.15.x and start Gerrit again.
- Verify that the Gerrit server is working properly (e.g. run automated smoke tests) and then make it healthy again.
- Ensure the Gerrit server is fully caught up with the events that happened while it was down before directing traffic to it.
- Repeat steps 2 to 6 for each of the remaining Gerrit servers.
NOTE: The schema version changes from
185to187. Setgerrit.experimentalRollingUpgrade = trueon 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>becomegerrit~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:
- Stop Gerrit
- Set
gerrit.experimentalRollingUpgrade = trueingerrit.config: v3.10/v3.11/v3.12/v3.13/v3.14 refuses to start on schema version187otherwise - Rollback the gerrit.war and plugins to the previous version
- Run the full reindex with the v3.10/v3.11/v3.12/v3.13/v3.14
gerrit.war, because the oldv87/v88Changes index does not contain the updates made while running v3.15:java -jar $GERRIT_SITE/bin/gerrit.war reindex --index changes -d $GERRIT_SITE - 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
aiReviewpermission 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.usePerRequestRefCachesetting, 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 betweengit-receive-packandgit-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_projectcache will make thegit-upload-packfail intermittently on projects containing one or more inconsistent changes.The introduction of the
changes_by_projectcache is incompatible with projects having one or more inconsistent changes, like changes with /meta refs coming from unexpected Gerrit serverId. The cache makes thegit-upload-packfail 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 thechanges_by_projectcache as follows ingerrit.config:[cache "changes_by_project"] memoryLimit = 0
Breaking Changes
-
Change 642007: The experimental default-allow behavior of the
aiReviewpermission introduced in 3.14 has ended;aiReviewnow follows the standard default-deny model.In 3.14,
aiReviewwas allowed for everyone when no rules were configured, andDENYorBLOCKrules alone could restrict groups. On upgrade, a NoteDb schema migration (Schema_187) adds an explicit grant for Registered Users onrefs/heads/*toAll-Projects, unless that section already has anaiReviewrule; new sites are seeded with the same grant, so the out-of-the-box behavior is preserved.Sites that restricted
aiReviewonly withDENYorBLOCKrules must review them: next to the Registered Users grant they no longer restrict anyone, because aDENYonly cancels anALLOWfor the same group and aBLOCKis overridden by anALLOWin the same access section. GrantaiReviewonly to the groups that should have it, orBLOCKthe excluded groups in a child project.NOTE: no grant is added if
All-Projectsalready had such a rule onrefs/heads/*(Issue 575161901, see Known issues).Sites that want to keep letting every registered user use AI Review without an explicit
aiReviewrule, as in 3.14, can enable theGerritBackendFeature__allow_ai_review_for_registered_usersexperiment:[experiments] enabled = GerritBackendFeature__allow_ai_review_for_registered_usersUnlike in 3.14,
DENYandBLOCKrules onaiReviewhave no effect on registered users while the experiment is enabled. -
Issue 515272357, Issue 507078595: The
config/server/index.changesREST API now only accepts change identifiers inproject~changeNumberformat whendelete_missingistrue, preventing ambiguous identifiers from deleting the wrong change from the index, and rejects the number-only change identifier with a400 Bad Request. -
Change 607261: Disk stats for persistent caches are no longer collected by default by the
show-cachesSSH command and the List Caches REST API.Collecting disk stats is expensive on busy servers with large caches; use the new
--include-diskstatsoption ofshow-caches, orinclude-diskstats=trueonGET /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_toto a comment on a different patchset are now rejected with400 Bad Request; clients replying to comments on several patchsets in onePOST reviewcall must split the request by patchset. -
Issue 40009784: Implicit merges are now rejected on submit by default, not only on push.
The
receive.rejectImplicitMergesproject option now applies to both push and submit, and its effective default istruewhen no project overrides it.The former
GerritBackendFeature__*_implicit_merges_on_mergeexperiments have been removed; projects that intentionally rely on implicit merges must setreceive.rejectImplicitMerges = false. -
Change 622261: Fix
httpd.acceptorThreadsbeing applied to Jetty selector threads, and add the newhttpd.selectorThreadsoption to control the selector thread count.httpd.acceptorThreadsnow defaults to 0 (selector threads also accept new connections) andhttpd.selectorThreadsdefaults to 2, preserving the previous effective behavior.Sites that raised
httpd.acceptorThreadsto increase I/O concurrency should sethttpd.selectorThreadsinstead 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 acommit <sha>reference, consistent with other commit validators.Previously these warnings used a lowercase
warning:prefix. -
Change 581562: The
gerrit_pluginBazel rule no longer accepts theprovided_depsattribute, keeping it in sync with bazlets which dropped support for it.Plugins built in-tree that still pass
provided_depstogerrit_pluginneed to remove that attribute from their BUILD files. -
Change 553022, Change 553181, Change 585681: The web UI no longer sets up the global
Polymervariable 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,htmlandcssare exposed onwindowfor plugins migrating to Lit.The legacy
gr-change-view-integration-shared-stylesPolymer style module has been removed: plugins using<style include="gr-change-view-integration-shared-styles">must switch to thechangeViewIntegrationStylesLit CSS export.The
@polymer/polymerandpolymer-bridgesdependencies 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#changeStatusis now typed as theChangeStatusenum instead ofString.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 nowonChangeDeleted(String projectName, int id), andChangeIndexer#deletealso takes the project, since a change number alone does not identify a change.Plugins implementing
ChangeIndexedListenermust be adapted. -
Change 630241:
OAuthTokenCache.get()is renamed togetOrEvictIfExpired(), 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:
LockManagerlocks are now identified by namespacedLockKeys to prevent unrelated callers from colliding on the same lock name, and all core callers obtainLockManagerthrough itsDynamicItem, so plugin overrides of theLockManagerextension point are honored consistently. -
Change 633901: The
download-commandsplugin adds--no-filterand--no-tagsto the git fetch download commands (and--no-tagsto pull), which is incompatible with any Git client version older than v2.17.NOTE: Downgrade to the
download-commandsplugin v3.14.x if any of the git clients are incompatible with the additional flags.
Deprecated Features
-
Change 642072: A
Push Merge Commitgrant onrefs/for/refs/heads/BRANCHstill authorizes direct merge pushes torefs/heads/BRANCH, but this fallback is deprecated, logs a warning on the server and will be removed in a future release; grantPush Merge Commitonrefs/heads/BRANCHinstead. -
Change 565901: The
line_wrappingfield of the diff preferences REST API is deprecated in favour ofresponsive_mode; existing settings with line wrapping enabled are mapped toFULL_RESPONSIVE, and with line wrapping disabled toNONE.
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 querywith--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
reviewedByno 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 Togethercomputation 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_notescache, 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
ChangeKindof 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); wheno=ALL_COMMITSis 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
startandlimitbefore computing the tag details, which are now only computed for the returned page: in a test with20,000annotated tags, listing26of them went from~450msto~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 (~100msper candidate). Withaccounts.visibilityset toSAME_GROUPorVISIBLE_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
AllRequestFilterpipeline. 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:+UseCompactObjectHeaderstocontainer.javaOptionsingerrit.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
accountPatchReviewDbcan now be shared safely by multiple Gerrit primaries on a shared filesystem (e.g. NFS) without an external database. SetaccountPatchReviewDb.h2LockType = jgitto replace H2’s built-in file locking with JGit-style.lockfiles;accountPatchReviewDb.h2LockTimeout(default30 seconds) controls how long to retry acquiring the lock. -
Change 628504: The Lucene index lock implementation is now configurable with
index.lockFactory, which acceptsNATIVE(default) orSIMPLE, 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.executionTimeoutoption, which defaults to0, i.e. no timeout, applies per submit requirement. It’s applied to the total computation time needed to compute the sum ofapplicableIf,submittableIfandoverrideIf. When exceeded the evaluation is aborted, the expression result gets the newTIMEOUTstatus and the change cannot be submitted.Evaluation runs on a dedicated executor sized by the new
submitRequirement.evaluationThreadsoption, 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.statusshould handle the newTIMEOUTvalue, reported instead ofUNSATISFIED. -
Change 607221: Add
caches/memory_request_countandcaches/disk_request_countmetrics exposing the total number of lookups per cache, helping administrators decide which caches are worth growing. -
Change 601041: The
show-cachesSSH 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
histogramaction togerrit.shthat captures a class histogram of the live objects on the Java heap withjcmd, 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_latencymetric to track how long submit requirement evaluation takes. -
Change 629601: Add a
minimumInitialDelayschedule 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/-soption of theshow-queueSSH command and thestateoption 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.notifyDaysBeforeand can be disabled withauth.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.enableProxyProtocoloption acceptsPROXYprotocol (v1andv2) headers onproxy-http://andproxy-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 andX-Forwarded-Forare present,X-Forwarded-Fortakes 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-revsfile 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-storageSSH command. -
Change 645029: Converting a repository to reftable is now refused while
core.usePerRequestRefCacheis enabled (the default), as such repositories cannot be served with the per-request ref cache: set it tofalseand 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-projectSSH command now accepts--ref-storage FILES|REFTABLEto 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:
CommitReceivedEventnow exposescherryPickOf, soCommitValidationListenerplugins 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
fromNamevariable of change email templates now has the formName <email>, and attention set templates receive the newattentionSetUserEmailvariable in the same form; review any custom email templates that usefromName.
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=DETAILSis used or for suggest queries and, whenaccounts.visibilityis restricted (SAME_GROUP,VISIBLE_GROUPorNONE), no longer exposes detailed account information (o=DETAILSand suggest) to unauthenticated callers. -
Issue 561066231: The
oauth_tokenscache is now encrypted in core:OAuthTokenCacheand 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 = 0now fully disables OAuth token storage, so tokens are no longer written to the persistent H2 cache even whendiskLimitis positive. See Change 630421 for more details. -
Issue 565075161: Replace all uses of the legacy
SHA1PRNGrandom generator with the platform defaultSecureRandomfor 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 ofMath.random(); the newSecureRandomUtilis 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}returns404 Not Found, and updating the watched projects reportsProject Not Found: <name>instead of failing withproject <name> has state HIDDEN does not permit read. -
Issue 535583374:
reviewer-addedstream 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_ofnow require the real caller to have the globalRun Ascapability. 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
.gitattributesoverrides: files marked-diffor with thebinarymacro are shown as binary instead of as textual diffs, matching Git behavior. -
Change 630501: Setting
cache.oauth_tokens.memoryLimit = 0now fully disables OAuth token storage, so tokens are no longer written to the persistent H2 cache even whendiskLimitis positive.When token storage is disabled,
GET /accounts/{id}/oauthtokenreturns409 Conflict. To keep tokens in memory only, setcache.oauth_tokens.diskLimit = 0; if tokens were previously written to disk, stop Gerrit and remove the existingoauth_tokenspersistent cache files. -
Change 601281: Patch set events now compute insertions and deletions from the
diff_summarycache instead of loading full file diffs.As a result, the
COMMIT_MSGandPATCHSET_LEVELfiles 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.indexChangesAsyncis 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.skipAddingAuthorAndCommitterAsReviewersproject 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-labelsandmigrate-labels:reviewREST endpoints) generating invalidapplicableIfexpressions for labels restricted by branch patterns such asrefs/heads/*. -
Change 612843: The
commit-msghook no longer appends a duplicate Change-Id when the commit message containsKEY=valuestyle footers such asTAG=.... 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
killandGET/DELETE/config/server/tasks/{task-id}by users withView 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}/querywithuse-index=truenow 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 asbranch:^a\.b, by allowingSUSPICIOUS_PATH_CHARACTERSin 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
unresolvedfield no longer resets it tofalse, also for ported comments. -
Change 635324: Comment replies posted via the REST API with
in_reply_toset 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,StopPluginListenerandReloadPluginListenerimplementations 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 withgit pushwith%wip. To keep notifying everyone, setnotifytoALLexplicitly. -
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 Conflictwith 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-feedbackplugin endpoint in the expanded details of a check result wraps the defaultWas this helpful?feedback controls, letting plugins customize or replace them; theCheckResultis 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
sidebarPositionstatic property orsidebar-positionattribute. -
Change 614621: The
Unresolved commentssection of the Create AI Review Prompt now anonymises commenters asUser1,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-156or#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
Hashtagscolumn to the change list, disabled by default, that users can enable in their change table preferences. -
Change 572402: Add a
Shown Labelsuser preference in theChange Table Columnssettings 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 Mergesuser preference, removed in Gerrit 3.7.0, allowing users to choose betweenAuto MergeandFirst Parentas the default base when viewing merge commits. -
Change 622581: Turn the bulk
Abandonbutton of the change list into aRestorebutton 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 Changesbutton, so these updates can be saved on their own. -
Change 634944: Restyle the LDAP, OAuth, OpenID and
become any accountsign-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
%2Finstead 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-Reviewbutton could select a vote on theVerifiedrow 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 tokenchip linking to the user settings, instead of aThis Changechip 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 Approveno longer offers labels containingpresubmit, and offersCode-Reviewwhen 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-contentanddiff-header-controlsUI 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 withgetState()andonStateChanged(), and lets plugins create, delete and reload flows withcreateFlow(),deleteFlow()andreload(). -
Change 625465: The
Review Agentbutton on the change screen is renamed toAgent Chat, and the reply dialog’sreply-reviewersendpoint gains amiddleslot 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/Uploadbutton of the change edit mode is renamed toEdit. -
Change 560863, Change 571903, Change 572381: New experiment
GerritBackendFeature__timeout_file_diff_computationenforces a timeout on file diff computation; diffs that time out are reported asdiffs_too_expensive_to_computeand 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
Submitonrefs/for/*andrefs/*effectively bypasses ACLs and can lead to privilege escalation. -
Change 634177: Document the restrictions of Gerrit replicas in the
--replicadaemon option andcontainer.replicasetting: no Git push, no REST API, a limited set of SSH commands, and only thegroupsindex maintained. -
Change 627102: Document the
PUT /accounts/{id}/emails/{email-id}/avatarREST endpoint for setting the account’s avatar lookup email. -
Change 648613: Correct the documented default of
cache.directory, which iscache.
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
- Breaking Change 633901: See the breaking changes section.
Gitiles plugin
- Change 623641,
Change 623681:
Build the plugin from the Gitiles sources included in Gerrit as the
modules/gitilessubmodule, including its static web assets, instead of released Maven artifacts, and stop bundling libraries already provided bygerrit.war. This shrinksgitiles.jarfrom about 34 MB to under 1 MB; thecom.google.gitiles:gitiles-servletandblame-cacheartifacts 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 toreplication startto replicate a single branch or tag instead of the whole project. -
Change 588841: Add
replication.emitEvents(defaulttrue) 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) andautoRepairConcurrencyLimit(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 = 0to 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
excludedRefsPatternbefore 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-objectsrepair 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
- Update JGit to 87eaf6628.
$ 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
bazletsto 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_javato 9.9.0,rules_jvm_externalto 7.2,rules_goto 0.63.0,rules_pythonto 2.4.5 (via 2.3.4) andrules_androidto 0.7.3. -
Update
rules_nodejsto 6.7.6,aspect_rules_jsto 3.5.1 andaspect_rules_tsto 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
protobufto 36.2 andprotobuf-javato 4.36.2. -
Update
jettyto 12.1.13. -
Update
byte-buddyto 1.18.14. -
Update
bcprov-jdk18onto 1.86. -
Update
luceneto 10.5.1; the on-disk index format is unchanged and no reindexing is required. -
Update
h2to 2.5.252, which fixes a data race causing spurious “Position 0” errors during chunk rewriting. -
Update
slf4jto 2.0.20. -
Update
asmto 9.10.1, which supports the class files of the optional JDK 27 build. -
Update
args4jto 2.37 (Issue 479458084). -
Update
JavaEWAHto 1.2.3, the version used by JGit (Issue 317713422). -
Update
commons-codecto 1.20.0 (Issue 479234132). -
Update
mockitoto 5.24.0. -
Update
mina-coreto 2.2.9. -
Update
commons-lang3to 3.20.0. -
Update
commons-validatorto 1.11.0. -
Update
auto-valueto 1.11.1. -
Update
auto-factoryto 1.1.0. -
Update
highlight.jsto 11.12.0. -
Update
markedto 18.0.3. -
Update
@material/webto 2.5.0. -
Update
@gerritcodereview/typescript-apito 3.15.0. -
Update
java-prettifyto 1c0ef60424. -
Update
@codemirror/viewto 6.43.14,@codemirror/stateto 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!