KatInterview

Git Branching, Large-Asset Management, and CI Pipeline Architecture

System DesignModel answer
MediumModel answerSystem Designgitci-cddevops

Last updated

Architect a robust Git branching model, asset versioning strategy, and CI integration for software repos dealing with large binary artifacts and automated testing.

Design a comprehensive Git repository workflow and Continuous Integration pipeline tailored for a codebase with demanding asset requirements (such as graphics suites, machine learning models, or game engines).

Your design should specifically address:

  1. Branching & Release Model: Strategy for mainline development, short-lived feature branches, and long-term release branches.
  2. Access Control & Guardrails: Policies for branch protection, automated checks, code ownership, and code review criteria.
  3. Large Binary Management: Managing large test assets (e.g., golden references, textures, weights) without causing repository bloat or slow clone times.
  4. Repository Layout: Trade-offs between a monorepo approach and git submodules for auxiliary tooling and dependencies.
  5. Regression Hunting & Remediation: Automated tools for locating regressions (e.g., git bisect) and standardized strategies for reverting faulty code.
  6. Reproducible Builds & Gated CI: Integrating Jenkins/GitHub Actions/GitLab CI for pre-merge validation, deterministic environments, and merge queue handling.

Discuss edge cases, scale assumptions, and practical trade-offs for each architectural decision.

Hints

Hint 1

Consider how history structure (linear vs. branchy) impacts automated regression bisecting.

Hint 2

Compare storing binary objects via Git LFS against external content-addressed object stores (e.g., S3/Artifactory) paired with hash manifests.

Hint 3

Think about how merge queues handle race conditions when multiple pull requests pass isolated CI concurrently.