Lars Wirzenius d9aafdc87c fix: link to run log from native CI
We used to have two IDs for each CI run: one assigned by the broker
and one by the adapter. The native CI adapter writes logs to a
directory named by the id it chose itself: it doesn't know the on
chosen by the broker. The broker was generating a report page that
links to a run log using the broker-chosen id. Oops.

Drop the id chosen by the broker, it doesn't serve any useful purpose
anymore.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2024-03-04 18:12:52 +02:00
2024-02-12 12:17:22 +02:00
2024-02-16 14:18:37 +02:00
2024-03-04 18:12:52 +02:00
2024-03-04 16:43:51 +02:00
2024-03-04 16:43:51 +02:00
2024-01-23 17:08:26 +02:00

radicle-ci-broker

This is not production ready code yet, but it will eventually become a thing that listens for changes in a Radicle node, and triggers CI on the relevant ones.

Configuration

The configuration file is named on the command line. It is a YAML file, for example:

default_adapter: native
adapters:
  native:
    command: radicle-native-ci
    env:
      RADICLE_NATIVE_CI: /home/liw/radicle/radicle-native-ci/x/config.yaml
filters:
  - !And
    - !Repository "rad:z2e6URdt1we1iG1BCVqtx8QVgsX4a"
    - !Or
      - !Branch "main"
      - !AnyPatchRef

OR if you only want to filter for patch COB updates (e.g. comments), to the specified repository:

default_adapter: native
adapters:
  native:
    command: radicle-native-ci
    env:
      RADICLE_NATIVE_CI: /home/liw/radicle/radicle-native-ci/x/config.yaml
filters:
  - !And
    - !Repository "rad:z2e6URdt1we1iG1BCVqtx8QVgsX4a"
    - !And
      - !AnyPatch
      - !Not 
        - !AnyPatchRef 

This runs the native CI engine as an adapter, on any repository events that pass the filter. The filter allows any changes to the main branch or any Radicle patch, on the specified repository.

S
Description
Radicle CI broker
Readme
5.6 MiB
Languages
Rust 96.8%
Nix 1.2%
Shell 1.2%
Makefile 0.3%
CSS 0.3%
Other 0.2%