Git Product home page Git Product logo

deploy-sourcegraph-dhall-archived's Introduction

deploy-sourcegraph-dhall

(work in progress - implementation of sourcegraph/sourcegraph#10936)

Translation of sourcegraph/deploy-sourcegraph into dhall.

The configuration style is similar to Helm: pipeline.dhall (values.yaml) contains a giant union of all the possible configuration options. These options are passed into the render functions for the individual components in "base/".

Instructions

Generate all the yaml manifests by running the following command:

dhall-to-yaml --file ./pipeline.dhall

Benchmarks

Commit: https://github.com/sourcegraph/deploy-sourcegraph-dhall/commit/285b1515ade18682d1fac33f8e70bb32100dd67c

Render time

❯ bench  'dhall-to-yaml --file pipeline.dhall'
benchmarking dhall-to-yaml --file pipeline.dhall
time                 31.84 s    (30.49 s .. 33.53 s)
                     1.000 R²   (0.999 R² .. 1.000 R²)
mean                 32.37 s    (32.10 s .. 32.73 s)
std dev              395.0 ms   (24.38 ms .. 495.0 ms)
variance introduced by outliers: 19% (moderately inflated)

(after freezing with https://github.com/sourcegraph/deploy-sourcegraph-dhall/blob/master/scripts/post-order-freeze.sh)

❯ ./scripts/post-order-freeze.sh
...
❯ bench  'dhall-to-yaml --file pipeline.dhall'
benchmarking dhall-to-yaml --file pipeline.dhall
time                 25.49 s    (23.77 s .. 26.68 s)
                     0.999 R²   (0.999 R² .. 1.000 R²)
mean                 26.60 s    (26.00 s .. 27.74 s)
std dev              1.110 s    (19.74 ms .. 1.320 s)
variance introduced by outliers: 19% (moderately inflated)

Normal form size

❯ dhall --file pipeline.dhall | dhall encode | wc -c
 51887040

deploy-sourcegraph-dhall-archived's People

Contributors

ggilmore avatar uwedeportivo 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.