Lars Wirzenius
b7910c80a8
chore: update dependencies to current versions
...
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2024-11-07 15:40:19 +02:00
Lars Wirzenius
7947dd6571
feat: return URL to build log if base URL is configured
...
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2024-06-10 16:22:58 +03:00
Lars Wirzenius
63fb66f468
feat: add --show-config to write out configuration as JSON
...
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2024-06-10 15:22:27 +03:00
Lars Wirzenius
c462567153
feat: log repo and commit to admin log
...
They're in the build log too, and come from the trigger message, but
it's helpful for debugging to log them clearly.
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2024-06-06 15:52:04 +03:00
Lars Wirzenius
153c4fdcc5
fix: pass in request to run log
...
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2024-05-14 17:53:34 +03:00
Lars Wirzenius
eaeb89b3bf
feat: depend on radicle-ci-broker via crates.io, plus fixes
...
The CI broker has dropped the RunResult::Error variant, so drop any
use of that. The Request::version field has been added, so deal with
that.
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2024-04-03 16:18:00 +03:00
Lars Wirzenius
332cf7eea7
feat: add repository name to run log
...
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2024-03-31 16:15:14 +03:00
Lars Wirzenius
2d0d98ea2f
feat: add branch or patch information to run log
...
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2024-03-31 16:02:39 +03:00
Lars Wirzenius
8bd8b9b21b
refactor: drop use of RunInfo
...
The run log replaces all uses of RunInfo now that the CI broker builds
report pages.
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2024-03-31 15:08:03 +03:00
Lars Wirzenius
7746b37c33
chore: drop unused report module
...
The CI broker produces reports now.
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2024-03-31 12:02:49 +03:00
Lars Wirzenius
76d5cc4a3a
fix: return failure for command run by CI failing
...
If any command run by CI for a repository fails, set the run to failed
in the run info builder.
Also, we were hiding that failure with later errors, if, say, updating
a log file or removing temporary files failed, so don't do that.
2024-03-14 11:42:55 +02:00
Lars Wirzenius
f3a3c61b57
feat! don't write a report to index.html
...
CI broker will be writing it in the future.
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2024-03-04 16:55:21 +02:00
Lars Wirzenius
1bb93c51b2
adapt to new trigger message structure in broker
2024-02-02 15:58:55 +02:00
Lars Wirzenius
3a7c8b668d
fix: cope with heartwood's Id->RepoId rename
...
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2024-01-23 17:35:46 +02:00
Lars Wirzenius
0354e5a0e7
fix: set run id in run info
...
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2024-01-16 19:56:22 +02:00
Lars Wirzenius
294db7449d
fix: set run log filename
...
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2024-01-16 19:53:34 +02:00
Lars Wirzenius
00b96b88cd
fix: where run info is stored
...
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2024-01-16 19:36:55 +02:00
Lars Wirzenius
211bb3a7d1
refactor: use engine in main
...
Also introduce exit codes: 0 for success, 1 for problem in the
repository under test, 2 for engine problem.
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2024-01-16 19:20:27 +02:00
Lars Wirzenius
52ba6a9081
refactor: add new engine to execute a CI run
...
In the old engine it's hard to follow how various errors are handled.
This new engine should make it clearer.
This isn't entirely a pure refactoring. It subtly changed how the
external behavior is, to fix problems.
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2024-01-16 19:19:50 +02:00