Gerrit Essentials

Clearvision's Gerrit Essentials training course provides an understanding of code within the Gerrit workflow.

Audience:

This course is perfect for users new to Gerrit. However, you should already be familiar with Git as it is not taught in the course.

Prerequisites:

  • Basic knowledge of Linux interfaces
  • Basic understanding of Git
  • Internet connection
  • Access to laptop

Objectives & Outcomes

By the end of this course, you will be able to be able to use Gerrit, together with Git, for program code version control and code reviews. You will become familiar with the specific processes required to save code changes, set up reviews and review code within the Gerrit workflow.

Course outline:

Module 1: Introduction

  • Introduction to Gerrit
  • The Gerrit Workflow
  • Roles in Gerrit
  • Introduction to code reviews
  • Code review scores
  • Default user permissions
  • The Gerrit refspec
  • Code review requirements

Demonstrations:

  • Explore Gerrit
  • Verify the training enviromement
  • Clone a Gerrit repository
  • Retrieve the commit-msg hook

 

Module 2: Creating a change

  • Cloning from Gerrit
  • Making Local changes
  • Squashing changes
  • Pushing to the Gerrit Refspec
  • Viewing your changes in the Gerrit interface

Demonstrations:

  • Create a local branch
  • Make some changes in Git
  • Squash Changes
  • Push to Gerrit

 

Module 3: Setting up a code review

  • Verification
  • Inviting reviewers to participate
  • Monitoring review progress
  • Notifications

Demonstrations:

  • Invite peers to participate in review
  • View existing reviews
  • understand a review’s status

 

Module 4: Reviewing changes:

  • Accessing code reviews
  • Identifying a review’s status
  • Viewing comments
  • Patch sets
  • Viewing changes in Diff views
  • comparing patch sets
  • Review preferences
  • Commenting on Changes
  • Replying to Comments
  • Completing the code review

Demonstrations:

  • Searching for reviews
  • Review changes submitted by another user
  • Explore Diff views
  • Provide Review comments
  • Passing a review

 

Module 5: Submitting a change

  • Submission Requirements
  • Submitting changes
  • Patch set status
  • Dependencies
  • Rebasing Changes
  • Change ID’s
  • Creating additional patchsets
  • Recap – squashing changes
  • Amending Changes
  • Abandoning changes

Demonstrations: 

  • Rebasing in Gerrit
  • Failing a review
  • Re-submitting failed reviews
  • Resolving conflicts in a Gerrit rebase
  • Passing and submitting a review

 

 

Other relevant courses

14. December
1 days
Classroom Virtual
15. December
1 days
Classroom Virtual
17. December
1 days
Classroom Virtual