Home / Companies / Aspect Build / Blog / Post Details
Content Deep Dive

Monorepo Shared Green

Blog post from Aspect Build

Post Details
Company
Date Published
Author
Alex Eagle
Word Count
1,197
Language
English
Hacker News Points
-
Summary

The text discusses the advantages and challenges of implementing a monorepo structure for code management, emphasizing the importance of integrating "mono-CI/CD" practices to maintain consistency and efficiency. It highlights the concept of a "shared green" model, where a single build and test pipeline is used across all projects in the repository, ensuring that nothing can be released if any part of the code is failing. The role of a "Build Cop" is crucial in maintaining a green status by quickly addressing breakages and having the authority to revert problematic commits. The text also addresses the complexities of managing continuous integration and delivery (CI/CD) in large organizations, noting that systems like Google's SkyFrame can be occasionally incorrect while smaller companies might manage better with a shared green approach. It suggests strategies to minimize downtime and improve responsiveness, such as reducing the time between detection and repair of issues and empowering on-call staff to make necessary corrections. Additionally, it explores the use of Merge Queues to handle frequent in-flight semantic collisions, providing examples from companies like Google and Uber to illustrate the viability of these practices at different scales.