novemberkilo / tezos-ci

Ocurrent CI for Tezos

Home Page:https://tezos.ci.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tezos-CI

A translation of Tezos' Gitlab CI in the ocurrent world.

What is supported

  • Build: build_arm64, build_x86_64
  • Coverage: test_coverage
  • Documentation: documentation:build
  • Integration tests integration:*
  • Tezt: test:*
  • Unit: unit:*

What remains to do

  • Manual: documentation:build_all, documentation:link_check, publish:docker_manual

Running

In OCluster

dune exec -- tezos-ci --ocluster-cap <ocluster_capability_file> \
                      --gitlab-token-file=<GITLAB_TOKEN_FILE> \
                      --gitlab-webhook-secret-file=<WEBHOOK_SECRET_FILE>
                      --verbose

Locally using docker

dune exec -- tezos-ci-local --verbose

Architecture

A high level description of the components

                                     Tezos CI
                         ┌──────────────────────────────────────────┐
                         │                                          │
       (main UI)         │ ┌──────────────────────────────────────┐ │
                         │ │                                      │ │                 ┌───────────────────────────┐
    tezos.ci.dev:80/443  │ │                                      │ │                 │                           │
                         │ │        tezos-ci                      │ │                 │    Tezos OCluster         │
         ───────────────►│ │                                      │ │   submission    │                           │
                         │ │         * octez pipeline             │ │   capability    │   ┌─────────────────┐     │
                         │ │                                      ├─┼────────────────►│   │                 │     │
                         │ │         * web ui                     │ │                 │   │    scheduler    │     │
                         │ │                                      │ │                 │   └──┬──────────────┘     │
                         │ │                                      │ │                 │      │      pools         │
                         │ │                                      │ │                 │      │    ┌─────────────┐ │
                         │ │                                      │ │                 │      │    │             │ │
                         │ │                                      │ │                 │      ├────┤  x86_64     │ │
                         │ │                                      │ │                 │      │    ├─────────────┤ │
       (main UI)         │ └──────────────────────────────────────┘ │                 │      │    │             │ │
                         │                                          │                 │      ├────┤  arm64      │ │
gitlab.tezos.ci.dev:80/  │ ┌──────────────┐     ┌────────────────┐  │   submission    │      │    ├─────────────┤ │
                    443  │ │              │     │                │  │   capability    │      │    │             │ │
        ────────────────►│ │              │     │                ├──┼────────────────►│      └────┤  s390x      │ │
                         │ │ ocaml-ci-web │     │ ocaml-ci-gitlab│  │                 │           └─────────────┘ │
                 :8100   │ │              ├────►│                │  │                 │                           │
                         │ │  * web ui    │ ui  │   * pipeline   │  │                 └───────────────────────────┘
        (admin UI)       │ │              │ cap │   * solver     │  │
                         │ │              │     │   * admin ui   │  │                  1 or more workers per pool
                         │ │              │     │                │  │
                         │ └──────────────┘     └────────────────┘  │
                         │                                          │
                         └──────────────────────────────────────────┘   

Terminology:

  • tezos-ci - pipeline for building the Tezos Octez implementation
  • ocaml-ci-gitlab - pipeline for building standard OCaml projects
  • ocaml-ci-web - Web frontend for ocaml-ci-gitlab
  • ui-cap - CapnP capability for communication between ocaml-ci-web and ocaml-ci-gitlab
  • submission capability - CapnP capability for submitting a build spec to the cluster
  • Tezos cluster - an OCluster instance for running Tezos builds
  • scheduler - a place to submit build specs to run in a pool
  • worker - a program capable of running build specs in the context of some Git commit
  • build spec - textual description of the steps a worker should perform
  • capnp - serialisation and RPC protocol used for communication between components
  • pool - collection of workers, such that each worker is interchangeable and capable of running a build spec

About

Ocurrent CI for Tezos

https://tezos.ci.dev


Languages

Language:OCaml 96.2%Language:Dockerfile 3.6%Language:Shell 0.2%