Git Product home page Git Product logo

splitbrain's Introduction

Splitbrain: Automatic PR Splitting

Splitbrain is a research system aiming to compute disjoint changelists from a single code diff, and apply them to a user's workspace.

The motivation of this work follows from the intuition that smaller CLs have many benefits:

  • Faster turnaround time in code reviews
  • Smaller, atomic units of code committed in each CL
  • Easier to rollback
  • Less blocking on any particular code review
  • and more...

This repository contains a series of tools and experiments designed to further understand this relationship, however it is not a usable tool and is exclusively an algorithmic research system.

Overview

At a high level, Splitbrain interprets a subset of the Bazel and Kythe graphs relevant to a single CL, and builds a linear chain of CLs based on structure of the original CL.

For example, a medium sized code change with 250 LoC could split into 5 changes of 50 LoC each.

These changes can be reviewed and potentially submitted in parallel.

Documentation

The original design doc is bundled with the source code. See docs/DESIGN.md for details.

Build & Test

Splitbrain uses bazel as it's build system.

Quick start:

bazel build //... && bazel test //...

Contributing

See CONTRIBUTING.md for details.

License

Apache 2.0; see LICENSE for details.

Disclaimer

This project is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.

splitbrain's People

Contributors

thinkallabout avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.