GithubHelp home page GithubHelp logo

rudskoy / yatool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yandex/yatool

0.0 0.0 0.0 76.03 MB

Yatool is a cross-platform distribution, building, testing, and debugging toolkit focused on monorepositories

License: Other

Shell 0.01% JavaScript 0.01% C++ 41.36% Python 15.87% Perl 0.01% C 39.34% Lua 0.01% Assembly 2.53% CSS 0.01% ANTLR 0.01% Pawn 0.01% Nix 0.01% Makefile 0.22% BitBake 0.01% HTML 0.01% CMake 0.04% PLpgSQL 0.01% Yacc 0.10% M4 0.09% Cython 0.42%

yatool's Introduction

Yatool

Yatool is a cross-platform distribution, building, testing, and debugging toolkit focused on monorepositories.

All utilities are available for use through a single entry point ya. The main handler in ya utility is make, which is a high-level universal build system.

ya make

ya make build system can be described as

  • Completely static. All dependencies are analyzed in advance and changes are recorded in the command graph. Based on the analysis, each command receives a unique UID, which fixes its result on a given state of input data and dependencies. The immutability of the UID indicates the immutability of its result and therefore serves as a key in the results cache, and is also used when analyzing changes to exclude a command from execution.

  • Universal and high-level. The description of the build system is done at the level of modules, macros and dependencies between modules. Our build system hides a lot. It itself builds inter-file dependencies, both direct (a.cpp includes b.h) and induced by generation (if x.proto imports y.proto, then x.pb.h will include y.pb.h), allowing developers to avoid wasting time specifying highly granular file dependencies. These dependencies are internally mapped to commands: the compilation command a.cpp will be restarted when b.h is changed, and the command change in y.proto will entail not only a regeneration for x.proto, but also a recompilation of z.cpp, which includes x.pb.h. It itself builds file processing chains - including the w.proto file in the GO_LIBRARY() module will entail the generation of .pb.go from it and the further translation of this file as part of the package.

  • Declarative, mostly. In the assembly description, most of the structures record the properties of modules and commands and the connections between them. However, some of the constructions are performed sequentially: setting and calculating local variables, conditional constructions - this is something that depends on the order in which it is written in the ya.make file.

Warning - bumpy road ahead

ya make has been used at Yandex for more than 10 years and successfully meets all challenges within the company, coping with its tasks against the background of the explosive growth of the monorepository and projects in it. Developers focus on developing products rather than overcoming complexities in building and testing projects. However, such experience is strongly integrated into the internal ecosystem and is difficult to alienate. As part of future releases, we want to provide similar experience for the development of open source products. At this moment ya does not have a stable release and might not provide flawless and integrated experience for external users. Work in progress, stay tuned.

License

Yatool is licensed under the Apache-2.

Building

You can use ya to build itself. Get the source codes and just run the command:

./ya make

You can also build the first generation of build utilities without using ya using bootstrap. For more details see bootstrap guide.

Contributing

See CONTRIBUTING.md for instructions to contribute.

yatool's People

Contributors

georgthegreat avatar robot-piglet avatar frazenshtein avatar dimdim1177 avatar snermolaev avatar iaz1607 avatar shadchin avatar azaubaevviktor avatar alexander-somov avatar nemo-cpt avatar vestnik avatar pg83 avatar zhukoff-pavel avatar say42 avatar andrey-khropov avatar tatakir avatar authorius avatar hdnpth avatar mag1str02 avatar 4justme4 avatar zaverden avatar ubyte avatar jeanpaulshapo avatar legion112 avatar kuzmich321 avatar robot-brewer avatar savnadya avatar elukey avatar zlobober avatar e1pp 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.