DEV Community

Discussion on: Git branching for small teams

Collapse
 
wesen profile image
Manuel Odendahl

Also, what were repository sizes at which CI/CD started to be impacted? In which case, what was the checkout strategy you used on the CICD builders?

Collapse
 
po0q profile image
pO0q 🦄

Lots of useless hundreds of MB ^^. I did not use any checkout strategy, I cleaned the repo.
You may experience such configuration when cloning famous open-source projects without a high-speed connection.

Thread Thread
 
wesen profile image
Manuel Odendahl

Was this because of larger files in the repository? delta-compressed gzipped text-source blobs are usually ridiculously small. But I get your point. At my last gig the monorepo was around 1.5 GB big, which was still manageable. For another big repo (which had a fair amount of binaries because of the app itself, and we had bad experience git-lfs), we used a separate "single clean history" for CICD purposes

Thread Thread
 
po0q profile image
pO0q 🦄

various causes but, yes PSD, etc, without LFS, also years and years of commits + some libraries added "as is" without package manager.

we used a separate "single clean history" for CICD purposes

how? another repository with the builds?

Thread Thread
 
wesen profile image
Manuel Odendahl

Exactly. Do normal development on the main fork. Then when a build needs to be made, squash push to the other fork. I'm not sure exactly how we scripted cutting off the history to avoid "blowing" up the other repo, but there was a check in place.

Thread Thread
 
po0q profile image
pO0q 🦄

It's a valid approach, but the only inconvenience is indeed the scripting part, as you have take all edge cases into account.

Thread Thread
 
wesen profile image
Manuel Odendahl

this happened after I was less involved with that one project inside the company. I would probably have tried to rewrite some of the history, but I'm not sure how badly it would have impacted say, the JIRA <> github referencing, exicting pull requests, which is information I would have liked to keep. Maybe noone ever uses that information either, who knows.

Thread Thread
 
po0q profile image
pO0q 🦄

hum, dunno how it could impact hosting providers. I would say you cannot erase everything unless you remove the entire repo, but I'm not sure. In doubt, I recommend asking questions to everyone involved in the process, including "non-technical" people, to determine what should be kept.