current-web-pipelines

current-web-pipelines is a wrapper on top of ocurrent pipelines that provide tools to build complex interfaces, for example representing multi-stage pipelines.

Usage

There are three modules:

Task

('value, 'state) Task.t is the equivalent of 'value Current.t with extra metadata of type 'state. While the value might not be available (for example because it is not computed yet), the state can be obtained at all time. Task provides combinators and specialized constructors to construct a reactive state structure that can be extracted and displayed in various ways.

State

('output, 'node_metadata, 'stage_metadata, 'pipeline_metadata) State.pipeline is one example of state that can be bound to a task. This type represents the state of a pipeline run, using the following structure:

This tree structure is displayed using the Web module.

Web

Use Web.Make to create an instance of the website. The API requires to use:

Examples

See the example/ folder for an end-to-end usage of current-web-pipelines. It's also deployed in mirage-ci (https://github.com/ocurrent/mirage-ci) and was used in tezos-ci (https://github.com/tarides/tezos-ci).