Learning center

Which Gerrit identifier should a reviewer put on a finding?

Keep the Gerrit change link for the conversation and the patch set’s Git commit for the finding. A Change-Id can tie revisions together while the commit ID changes every time the author amends the change.

Attach the finding to patch set 2#

An engineer uploads an initial patch that adds a timeout, then amends the commit to address feedback. Both messages carry the same Change-Id footer and the uploads target the same repository and branch. Gerrit can add the amended commit as another patch set of the same review.

If an external reviewer reports a problem only in the amended version, store the project, target branch, review number and exact patch set commit. On a second branch the same Change-Id may identify a backport with its own review. An integration that keys findings by Change-Id alone can let a report about the backport replace the report about the main branch. Gerrit Change-Id matching and upload behavior

Ask the candidate to show both findings after uploading an amendment and a backport in a fixture project. A matching review link still leaves open which votes apply to that patch set.

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading