Code Review Kata with Gerrit

22
CODE REVIEW KATA WITH GERRIT / © Enalean, 2013 This work is licensed under a . Manuel Vacelet @vaceletm Creative Commons Attribution-ShareAlike 3.0 Unported License

description

Here are the slides of the code review kata given by Manuel at Open World Forum 2013. The exercice of code review is a key element to improve quality, to enable team members understanding and to share knowledge. Complementary to the pair-programming promoted by XP, code review is usually the unique case for distributed teams to make a real collaborative work on code. Gerrit is a tool for code review, based on Git. It comes from the Android project but, now, it is widely adopted by other free software communities (LibreOffice, Mediawiki, Eclipse, ...) as well as by large companies (Sony Mobile, Ericsson, SAP, Google, ...). In this session, we propose to understand how a good tool is essential for code review and how the couple GIT/Gerrit enables development teams to improve the quality of code.

Transcript of Code Review Kata with Gerrit

Page 1: Code Review Kata with Gerrit

CODE REVIEW KATA WITHGERRIT

/

© Enalean, 2013

This work is licensed under a .

Manuel Vacelet @vaceletm

Creative Commons Attribution-ShareAlike 3.0 Unported License

Page 3: Code Review Kata with Gerrit

WHY TO REVIEW CODE?

Page 4: Code Review Kata with Gerrit

WHERE IT COMES FROM?Well known practice in FLOSS worldVarious strategy: patches (LKML), "pull requests", ...

Page 5: Code Review Kata with Gerrit

GERRIT

Comes from Android projectGit onlyusers: Eclipse, QT, Mediawiki, Sony, Motorola, Google,SAP, ...

http://code.google.com/p/gerrit/

Page 6: Code Review Kata with Gerrit

GERRIT WORKFLOW

Page 7: Code Review Kata with Gerrit

REVIEWS DASHBOARD

Page 8: Code Review Kata with Gerrit

ONE REVIEW

Page 9: Code Review Kata with Gerrit
Page 10: Code Review Kata with Gerrit

PATCH

Page 11: Code Review Kata with Gerrit
Page 12: Code Review Kata with Gerrit

DIFF, COMMENTS

Page 13: Code Review Kata with Gerrit
Page 14: Code Review Kata with Gerrit

PUSH FOR REVIEWOne commit == One reviewShape your commits (history rewriting!)

git push ssh://[email protected]:29418 HEAD:refs/for/master

Page 15: Code Review Kata with Gerrit

COMMITS: SIZE MATTERSBeware The Big OneDifficult to grasp itTiny not better whatsoever

Page 16: Code Review Kata with Gerrit

SHAPE YOUR COMMITS!

Page 17: Code Review Kata with Gerrit

GOOD PRACTICESReduce the wait listDefine review rulesDamn fast Continuous Integration

Page 18: Code Review Kata with Gerrit

ACCESS CONTROL

Page 19: Code Review Kata with Gerrit
Page 20: Code Review Kata with Gerrit

CONCLUSIONPowerfulHigh learning curve@Enalean: highest dev ROI this year

Page 21: Code Review Kata with Gerrit

QUESTIONS?

Page 22: Code Review Kata with Gerrit

CREDITSIt's all about feedback - code review as a great tool in theagile toolboxScaling Up JGitDeploying Gerrit Code Review