• click to modify – second level continuous delivery … › content › download › 8744 ›...
TRANSCRIPT
![Page 1: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/1.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Continuous Delivery Workflow
with Gerrit» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 1
with Gerrit
![Page 2: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/2.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Introductions
Other stuff I do:
• Lead developer
• Git specialist
• Code reviewer» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 2© Copyright 2015, Genuitec, LLC. All rights reserved. 2
Piotr TomiakProduct Architect
MyEclipse
• Code reviewer
• OSGi guy
• Kanban evangelist
• Walking Javadoc for WTP
• Traveler
• Scuba Diver
![Page 3: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/3.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Let’s dive in!» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 3© Copyright 2015, Genuitec, LLC. All rights reserved. 3
![Page 4: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/4.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Continuous Delivery
• Customers get new features or bugfixes as soon as they are
finished
• Frequent releases
• Less pressure on the release» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 4© Copyright 2015, Genuitec, LLC. All rights reserved. 4
Specify TestRelease/
DeployBuild
Feature Lifecycle in Continuous Delivery
Develop
![Page 5: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/5.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Continuous Delivery and Git» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 5© Copyright 2015, Genuitec, LLC. All rights reserved. 5
![Page 6: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/6.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
A successful
Git Branching Model
» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 6© Copyright 2015, Genuitec, LLC. All rights reserved. 6
Git branching
model by Vincent Driessen
http://nvie.com/posts/a-successful-git-branching-model/
![Page 7: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/7.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Git Branching Model
Feature Lifecycle on develop branch in Git Branching Model
Specify Develop
» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 7© Copyright 2015, Genuitec, LLC. All rights reserved. 7
Specify Develop Build Release
Specify Develop
Test
![Page 8: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/8.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Test before merge!» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 8© Copyright 2015, Genuitec, LLC. All rights reserved. 8
![Page 9: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/9.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Pull Requests
• Code review
• Separate build and test for each pull request
before merge» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 9© Copyright 2015, Genuitec, LLC. All rights reserved. 9
• Iterative improvement of code by adding new
commits
• It’s fit for Continuous Delivery process
Merges for single commit, useless commits Branching mess
![Page 10: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/10.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Merge vs (rebase + amend)
Rebase approach is better:
• History contains only quality commits
• Linear history» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 10© Copyright 2015, Genuitec, LLC. All rights reserved. 10
• Linear history
• Single commits easy to revert
• Merges only for feature branches
• Unimportant information is lost
![Page 11: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/11.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Gerrit + rebase
• Code review
• Separate build and test for each change
before merge » Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 11© Copyright 2015, Genuitec, LLC. All rights reserved. 11
• Iterative improvement of code by
amending commits
• Incoming changes easy to manage
• It’s fit for Continuous Delivery process
![Page 12: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/12.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Gerrit Workflow
» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 12© Copyright 2015, Genuitec, LLC. All rights reserved. 12
![Page 13: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/13.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Gerrit Workflow - branching
» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 13© Copyright 2015, Genuitec, LLC. All rights reserved. 13
![Page 14: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/14.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Who likes working on feature
branches with Gerrit?» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 14© Copyright 2015, Genuitec, LLC. All rights reserved. 14
branches with Gerrit?
![Page 15: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/15.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Gerrit Workflow for Eclipse
• Easy management of
feature branches
• Covers Gerrit Workflow» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 15© Copyright 2015, Genuitec, LLC. All rights reserved. 15
• Improved Fetch from
Gerrit
• Additional utilities
![Page 16: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/16.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Tools in action
» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 16© Copyright 2015, Genuitec, LLC. All rights reserved. 16
![Page 17: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/17.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Good news!» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 17© Copyright 2015, Genuitec, LLC. All rights reserved. 17
Free and open source!
![Page 18: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/18.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Build, test, release!» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 18© Copyright 2015, Genuitec, LLC. All rights reserved. 18
![Page 19: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/19.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Build
• Regular builds (from stable branch):
– Maven
– Hudson
– Secure Delivery Center
1 hour
» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 19© Copyright 2015, Genuitec, LLC. All rights reserved. 19
• Delta builds for quick testing iterations:
– Custom Eclipse plugin based on PDE
– Only modified plugins re-exported
– Installable to Regular build as a feature update
– SDC package
5 minutes
![Page 20: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/20.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Test
• JUnit tests
• QF Tests
• Test Link for test cases » Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 20© Copyright 2015, Genuitec, LLC. All rights reserved. 20
• Test Link for test cases
(just migrated from Testopia)
• Manual QA verification and tests
![Page 21: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/21.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Release
• MyEclipse:
– distributed as SDC pack and a package
– updates pushed to users» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 21© Copyright 2015, Genuitec, LLC. All rights reserved. 21
– updates pushed to users
• Webclipse:
– Eclipse marketplace
– Evergreen updates
![Page 22: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/22.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
What’s next?» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 22© Copyright 2015, Genuitec, LLC. All rights reserved. 22
![Page 23: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/23.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Install
Gerrit Workflow for Eclipse can be installed from marketplace:
• Standalone
• With Webclipse
• With MyEclipse» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 23© Copyright 2015, Genuitec, LLC. All rights reserved. 23
• With MyEclipse
Check Gerrit Workflow for Eclipse
and Webclipse
out at Genuitec booth!
![Page 24: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/24.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Question?» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 24© Copyright 2015, Genuitec, LLC. All rights reserved. 24
![Page 25: • Click to modify – Second level Continuous Delivery … › content › download › 8744 › 168077 › ...Title Microsoft PowerPoint - A10 Gerrit-workflow Darlea i_0 .pptx Author](https://reader036.vdocuments.net/reader036/viewer/2022062603/5f03e46b7e708231d40b484a/html5/thumbnails/25.jpg)
• Click to modify
– Second level
• Third level
– Fourth level» Fifth level
Thank you!
• Meet our Sales Manager Emanuel Darlea» Fifth level
© Copyright 2015, Genuitec, LLC. All rights reserved. 25
• Meet our Sales Manager Emanuel Darlea
• Checkout marketplace for Gerrit Workflow for Eclipse