SlideShare une entreprise Scribd logo
1  sur  9
Télécharger pour lire hors ligne
svn to Git: to split or not to split a repo ?
Dominique Dumont
Debian Project
Oct 2018
Dominique Dumont svn to Git: to split or not to split a repo ?
Svn to Git: Debian-perl example
Old situation:
one repo for ~ 3000 source package of Perl modules
all these modules are independent and have a different life
cycle
Migration:
did not even consider mono repo
need to synchronize migration with devs around the world
had to update team monitoring tool
Debian-perl team members had to use new build tools
no impact on Debian builder (insulated by package source) or
Bug tracker (refers to package source and not on repo)
Dominique Dumont svn to Git: to split or not to split a repo ?
Svn to Git: Debian-perl example
Old situation:
one repo for ~ 3000 source package of Perl modules
all these modules are independent and have a different life
cycle
Migration:
did not even consider mono repo
need to synchronize migration with devs around the world
had to update team monitoring tool
Debian-perl team members had to use new build tools
no impact on Debian builder (insulated by package source) or
Bug tracker (refers to package source and not on repo)
Dominique Dumont svn to Git: to split or not to split a repo ?
Svn to Git: config-model example
Old situation:
one repo for 3 more or less dependent components
mono repo with SVN was more convenient (and traditional)
one core component is a dependency of all other components.
No dependency cycles though
integration is managed by Perl package manager (cpan) or
downstream package
Migration:
First done on mono repo (easier migration)
pb: tags apply to all components. Need convention on tags
(e.g. ”tkui_v0.124”).
Turns out components had different life cycles and loose
dependencies
ended up splitting the mono git repo into multiple git repo
(kept history with git filter-branch)
Dominique Dumont svn to Git: to split or not to split a repo ?
Svn to Git: config-model example
Old situation:
one repo for 3 more or less dependent components
mono repo with SVN was more convenient (and traditional)
one core component is a dependency of all other components.
No dependency cycles though
integration is managed by Perl package manager (cpan) or
downstream package
Migration:
First done on mono repo (easier migration)
pb: tags apply to all components. Need convention on tags
(e.g. ”tkui_v0.124”).
Turns out components had different life cycles and loose
dependencies
ended up splitting the mono git repo into multiple git repo
(kept history with git filter-branch)
Dominique Dumont svn to Git: to split or not to split a repo ?
Svn to Git: pros and cons of mono repo
one repository to manage (does it scale ?)
good when components are strongly coupled (which
may hint at design problems)
git clone downloads the whole history (can be quite
big for mono repo)
history analysis is more difficult
need to deal with unrelated commits when rebasing
git tag: only way to track released versions. No way
to tag a part of a repo like in SVN. Often worked
around by applying prefix to tags.
Cannot practically drop an obsolete project. Dead
projects stay in repo history.
Dominique Dumont svn to Git: to split or not to split a repo ?
Svn to Git: pros and cons of multi repo
easier to manage with several teams
better adapted to manage components with different
life cycles
Component integration is done at a later stage:
components must be built and distributed (many
choices: distro packages, npm, jar, images) through a
repository (debian, joyent, nexus, docker registry,
CPAN...)
Dominique Dumont svn to Git: to split or not to split a repo ?
Git: hybrid mono/multi repo
Some projects (docker, moarvm, rakudo-star) adopt a hybrid
solution: several repos are gathered together:
git submodule
git subtree
git subrepo
Pros and Cons
no need to create or distribute build artifacts
can be confusing when working in the main repo
(what happen when git pushing from a dependency ?
branches vs subrepo ?)
outside of the repo, no easy way to track the version
of the imported dependency (e.g. match CVE with
version of a dependency)
Dominique Dumont svn to Git: to split or not to split a repo ?
Migration check-list
Identify components of SVN repo
check dependencies between components   new repo layout,
best migration order
check impact on tools (CI/CD bug tracker, doc)
identify component with ”earlier adopter” mindset team (may
conflict with best migration order)
migrate
update doc and tools
check impact
repeat for other components
Dominique Dumont svn to Git: to split or not to split a repo ?

Contenu connexe

Dernier

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 

Dernier (20)

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT  - Elevating Productivity in Today's Agile EnvironmentHarnessing ChatGPT  - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
 

En vedette

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

En vedette (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Svn to git migration: to split or not to split the repo ?

  • 1. svn to Git: to split or not to split a repo ? Dominique Dumont Debian Project Oct 2018 Dominique Dumont svn to Git: to split or not to split a repo ?
  • 2. Svn to Git: Debian-perl example Old situation: one repo for ~ 3000 source package of Perl modules all these modules are independent and have a different life cycle Migration: did not even consider mono repo need to synchronize migration with devs around the world had to update team monitoring tool Debian-perl team members had to use new build tools no impact on Debian builder (insulated by package source) or Bug tracker (refers to package source and not on repo) Dominique Dumont svn to Git: to split or not to split a repo ?
  • 3. Svn to Git: Debian-perl example Old situation: one repo for ~ 3000 source package of Perl modules all these modules are independent and have a different life cycle Migration: did not even consider mono repo need to synchronize migration with devs around the world had to update team monitoring tool Debian-perl team members had to use new build tools no impact on Debian builder (insulated by package source) or Bug tracker (refers to package source and not on repo) Dominique Dumont svn to Git: to split or not to split a repo ?
  • 4. Svn to Git: config-model example Old situation: one repo for 3 more or less dependent components mono repo with SVN was more convenient (and traditional) one core component is a dependency of all other components. No dependency cycles though integration is managed by Perl package manager (cpan) or downstream package Migration: First done on mono repo (easier migration) pb: tags apply to all components. Need convention on tags (e.g. ”tkui_v0.124”). Turns out components had different life cycles and loose dependencies ended up splitting the mono git repo into multiple git repo (kept history with git filter-branch) Dominique Dumont svn to Git: to split or not to split a repo ?
  • 5. Svn to Git: config-model example Old situation: one repo for 3 more or less dependent components mono repo with SVN was more convenient (and traditional) one core component is a dependency of all other components. No dependency cycles though integration is managed by Perl package manager (cpan) or downstream package Migration: First done on mono repo (easier migration) pb: tags apply to all components. Need convention on tags (e.g. ”tkui_v0.124”). Turns out components had different life cycles and loose dependencies ended up splitting the mono git repo into multiple git repo (kept history with git filter-branch) Dominique Dumont svn to Git: to split or not to split a repo ?
  • 6. Svn to Git: pros and cons of mono repo one repository to manage (does it scale ?) good when components are strongly coupled (which may hint at design problems) git clone downloads the whole history (can be quite big for mono repo) history analysis is more difficult need to deal with unrelated commits when rebasing git tag: only way to track released versions. No way to tag a part of a repo like in SVN. Often worked around by applying prefix to tags. Cannot practically drop an obsolete project. Dead projects stay in repo history. Dominique Dumont svn to Git: to split or not to split a repo ?
  • 7. Svn to Git: pros and cons of multi repo easier to manage with several teams better adapted to manage components with different life cycles Component integration is done at a later stage: components must be built and distributed (many choices: distro packages, npm, jar, images) through a repository (debian, joyent, nexus, docker registry, CPAN...) Dominique Dumont svn to Git: to split or not to split a repo ?
  • 8. Git: hybrid mono/multi repo Some projects (docker, moarvm, rakudo-star) adopt a hybrid solution: several repos are gathered together: git submodule git subtree git subrepo Pros and Cons no need to create or distribute build artifacts can be confusing when working in the main repo (what happen when git pushing from a dependency ? branches vs subrepo ?) outside of the repo, no easy way to track the version of the imported dependency (e.g. match CVE with version of a dependency) Dominique Dumont svn to Git: to split or not to split a repo ?
  • 9. Migration check-list Identify components of SVN repo check dependencies between components   new repo layout, best migration order check impact on tools (CI/CD bug tracker, doc) identify component with ”earlier adopter” mindset team (may conflict with best migration order) migrate update doc and tools check impact repeat for other components Dominique Dumont svn to Git: to split or not to split a repo ?