Giter Site home page Giter Site logo

infra_4dmd's Introduction

Gofed infrastructure

Build Status

Infrastructure for gofed tool and various models built over data extracted from golang source codes.

It is designed to provide:

  • general interface for integration of already existing plugins
  • general interface to build acts (sequence of actions over integrated plugins)
  • abstract way to declare resources that plugins work with

Concepts

Plugins: building blocks integrating working pieces of a code (analysis, extractions, etc.) into the infrastructure

Acts: composition of actions providing data for your application, e.g. data needed to generate spec file, analysis of source code, dependency graph construction.

Resource Handling: declare what resource you want to work with and let the infrastructure retrieve the resource and provide it to a plugin.

Action Handling: once a plugin is integrated into the infrastructure it automatically gets an ID you can use to run the plugin.

Requirements

How to start

The infrastructure is under construction atm. To try it you can run:

$ PYTHONPATH=$(pwd)/third_party:$(pwd)/../ python testact.py

The script is set to inspect code of github.com/bradfitz/http2 of f8202bc903bda493ebba4aa54922d78430c2c42f commit. Product of the run are two artefacts (json containing extracted data): golang-project-packages and golang-project-content-metadata. See schemas for definition of artefacts.

How to contribute

Although the infrastructure is not fully functional you can already create your own acts and integrate plugins. At the moment we are concentrating on ecosystem analysis (scan of available builds and upstream project in question) to collect data about the ecosystem and to prepare for its healh check. At the same time to provide better tooling and expose full experience with gofed tool.

Some issues can be found at gofed/gofed. Other are on a private board atm. For more information contact [email protected].

Design principles

  • never call Ansible inside an Ansible (all the Ansible logs should be generated by a single run, no nesting)

TODO

  • set ANSIBLE_CONFIG to point to the ansible/ansible.cfg when running the gofed command (otherwise the gofedinfra role is not found)
  • tests:
    • Ansible module level testing
    • Ansible role level testing later (as part of the Ansible module level testing, via Molecule?)
    • Ansible playbook level testing (start with online testing -> just run all the playbooks in a loop, one Ansible playbook running all entry points)
    • Model level testing (on top of a testing data corpus)
  • Make playbook entry points, all the rest under private directory
  • integrate the new go symbols extractor, replace the current gosymbolsextractor
  • generate data corpus with allocated symbols (clear the previous one) as a timestamped tarball

infra_4dmd's People

Contributors

ingvagabund avatar dhodovsk avatar nforro avatar fridex avatar trellixvulnteam 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.