Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Various updates to bring the text of the architecture document up to
date with what has been implemented. Most of the speculative "we will
probably do it like this" parts have been dropped. Various fixes have
been made.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
This should allow us to deal with old run record in the database.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Specifically, radicle-native-ci tests.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
|
|
This means they won't vanish when the broker is restarted.
BREAKING CHANGE: the configuration files MUST now have a field "db"
that is a path to the database file to use. The file will be created
if needed.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Stringly typing isn't checked by the compiler.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
A builder interface is easier to use I find.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
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>
|
|
Instead of only a single JSON file, updated every so often, also
generate HTML pages that show CI broker status, and lists every
repository for which the broker has run CI.
This currently assumes the native CI adapter, but that can be fixed to
be more generic later.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Default is now 10 seconds.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Previously, we updated the status page only when we got a new broker
event, or after a CI run finished. This made it unsuitable as a "is
the broker alive?" service.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
With this, importing radicle::prelude::RepoId works for me again.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
rust-analyzer gets confused for me when it's imported from prelude.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Implement a type to capture the business logic of the CI broker in a
way that is reasonable to test in isolation rather than as part of a
full Radicle network.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Add module to represent a CI adapter and execute it. Add tests for a
variety of test cases.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
This captures all the metadata about a CI run that the CI broker needs
to know. It can also be updated piecemeal.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
This simplifies the test code somewhat.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
This will make it easier to process adapter output line by line.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
This relieves uses for a Request from having to unpack it with pattern
matching. The helpers are much more convenient, when they are sufficient.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|
|
Signed-off-by: Lars Wirzenius <liw@liw.fi>
|