Successfully reported this slideshow.
Your SlideShare is downloading. ×

You shall not pass - Control your code quality gates with a wizard.

You shall not pass - Control your code quality gates with a wizard.

Download to read offline

For those of us who does not speak Prolog, there is an easier way to configure your submit rules in Gerrit. The Quality gate wizard lets you to set up your submit rules in less than 3 minutes.

For those of us who does not speak Prolog, there is an easier way to configure your submit rules in Gerrit. The Quality gate wizard lets you to set up your submit rules in less than 3 minutes.

More Related Content

Related Books

Free with a 30 day trial from Scribd

See all

You shall not pass - Control your code quality gates with a wizard.

  1. 1. Copyright ©2015 CollabNet, Inc. All Rights Reserved.Gerrit User Summit - Mountain View CA November 2015 Code Quality Gate Wizard Create your own submit rules in less than three minutes. Eryk Szymanski Potsdam Engineering Office CollabNet
  2. 2. Copyright ©2015 CollabNet, Inc. All Rights Reserved.2
  3. 3. Copyright ©2015 CollabNet, Inc. All Rights Reserved.3 CollabNet TeamForge - ALM Platform
  4. 4. Copyright ©2015 CollabNet, Inc. All Rights Reserved.4 CollabNet TeamForge - Integrated Tools
  5. 5. Copyright ©2015 CollabNet, Inc. All Rights Reserved.5 Code Quality Gate Wizard – The Big Picture
  6. 6. Copyright ©2015 CollabNet, Inc. All Rights Reserved.6 Code Quality Gate Wizard - Motivation - This is reasonable and works very well - But wait a second, do our customers agree? - OK. We will write our own rules.pl file…
  7. 7. Copyright ©2015 CollabNet, Inc. All Rights Reserved.7 Code Quality Gate Wizard - Motivation …in Prolog. - In what??? - In Prolog. Look: ??? - Oh nice. I would rather go fishing instead. :)
  8. 8. Copyright ©2015 CollabNet, Inc. All Rights Reserved.8 Code Quality Gate Wizard - Our Goal Easy: - Easy to create, test and deploy the rules - Minimize amount of code needed (UI/Wizard) Provide an easy and non-invasive and complete way to define submit rules for Gerrit projects. Non-invasive: - Compatible with rules.pl file - Do not change the Gerrit core, but plugin is Ok Complete: - Everything what's in Submit Rules Cookbook - And more :)
  9. 9. Copyright ©2015 CollabNet, Inc. All Rights Reserved.9 Code Quality Gate Wizard - Two Components ➔ Backend: Gerrit Workflow plugin Provides just one prolog predicate: cn.workflow which takes XML input that defines submit rules with filters and voting conditions and process them. This fits in the rules.pl file. ➔ Frontent: GitEye (Free CollabNet Git Client) • provides the UI to generate the rules file • allows to test your rules against a Gerrit change and deploy it to the selected project • lets you generate the rules file from an existing change • contains predefined examples
  10. 10. Copyright ©2015 CollabNet, Inc. All Rights Reserved.10 Code Quality Gate Wizard – Submit Rule ➔ Display name ➔ Actions: if satisfied or not satisfied: allow, block or ignore ➔ Filters: • Change details: owner, branch, topic • Commit details: author, commiter, msg, delta • Commit stats: min/max lines inserted/deleted, min/max files modified • User details: current user, ignore (non-)author/ (non-)commiter • Voting Condition: • Voting Filters: Voter, Vote count/sum/range, Ignore (non-)author, Ignore (non-)commiter
  11. 11. Copyright ©2015 CollabNet, Inc. All Rights Reserved.11 Code Quality Gates Wizard - Algorithm
  12. 12. Copyright ©2015 CollabNet, Inc. All Rights Reserved.12 GitEye – Free Git Client From CollabNet http://www.collab.net/products/GitEye
  13. 13. Copyright ©2015 CollabNet, Inc. All Rights Reserved.Copyright ©2015 CollabNet, Inc. All Rights Reserved. Demo Code Quality Gates in Action
  14. 14. Copyright ©2015 CollabNet, Inc. All Rights Reserved.14 Code Quality Gate Wizard – How to launch
  15. 15. Copyright ©2015 CollabNet, Inc. All Rights Reserved.15 Code Quality Gate Wizard – Templates
  16. 16. Copyright ©2015 CollabNet, Inc. All Rights Reserved.16 Code Quality Gate Wizard – Built In Test Mode
  17. 17. Copyright ©2015 CollabNet, Inc. All Rights Reserved.17 Code Quality Gate Wizard – From Existing Changes
  18. 18. Copyright ©2015 CollabNet, Inc. All Rights Reserved.18 Code Quality Gate Wizard – Great Flexibility
  19. 19. Copyright ©2015 CollabNet, Inc. All Rights Reserved.19 Prezi on Quality Gates for Gerrit http://prezi.com/2s2ukhpg53or/?utm_campaign=share&utm_medium=copy 4-Eye-Principle Illustrated http://prezi.com/sbfm_jtuohel/?utm_campaign=share&utm_medium=copy&rc=ex0share Git Blogs (3 part series) http://blogs.collab.net/teamforge/you-shall-not-pass-control-your-code-quality-gates-with-a-wizard-part-iii Learn More
  20. 20. Copyright ©2015 CollabNet, Inc. All Rights Reserved.Copyright ©2015 CollabNet, Inc. All Rights Reserved. Thank you very much Q&A Any Questions? Email: eszymanski@collab.net

×