aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster/controller
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-07-11 13:17:34 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-07-14 11:30:46 +0000
commit76718eb73e3d1e2a43363d80ab15366706b6491f (patch)
tree4d8008f2b7fcfb674e7f8c9562c9cc3643aea50f /syz-cluster/controller
parent0bfc1202cebeedf826d470296424f85dee4fe842 (diff)
syz-cluster: generate web dashboard URLs for reports
Take web dashboard URL from the config and use it to generate links for logs, reproducers, etc.
Diffstat (limited to 'syz-cluster/controller')
-rw-r--r--syz-cluster/controller/main.go6
-rw-r--r--syz-cluster/controller/processor_test.go6
2 files changed, 4 insertions, 8 deletions
diff --git a/syz-cluster/controller/main.go b/syz-cluster/controller/main.go
index dc6404b38..f52b4eae5 100644
--- a/syz-cluster/controller/main.go
+++ b/syz-cluster/controller/main.go
@@ -20,11 +20,7 @@ func main() {
if err != nil {
app.Fatalf("failed to set up environment: %v", err)
}
- cfg, err := app.Config()
- if err != nil {
- app.Fatalf("failed to fetch the config: %v", err)
- }
- sp := NewSeriesProcessor(env, cfg)
+ sp := NewSeriesProcessor(env, env.Config)
go func() {
err := sp.Loop(ctx)
app.Fatalf("processor loop failed: %v", err)
diff --git a/syz-cluster/controller/processor_test.go b/syz-cluster/controller/processor_test.go
index 68c62ba48..147f5d6e2 100644
--- a/syz-cluster/controller/processor_test.go
+++ b/syz-cluster/controller/processor_test.go
@@ -97,7 +97,7 @@ func TestFinishRunningSteps(t *testing.T) {
ExtID: "ext-id",
Title: "title",
}
- _, sessionID := controller.UploadTestSeries(t, ctx, client, series)
+ ids := controller.UploadTestSeries(t, ctx, client, series)
buildResp := controller.UploadTestBuild(t, ctx, client, &api.Build{
Arch: "amd64",
TreeName: "mainline",
@@ -105,7 +105,7 @@ func TestFinishRunningSteps(t *testing.T) {
CommitHash: "abcd",
})
err := client.UploadTestResult(ctx, &api.TestResult{
- SessionID: sessionID,
+ SessionID: ids.SessionID,
BaseBuildID: buildResp.ID,
TestName: "test",
Result: api.TestRunning,
@@ -119,7 +119,7 @@ func TestFinishRunningSteps(t *testing.T) {
// Verify that the session test is finished.
// A bit hacky, but it works.
- list, err := processor.sessionTestRepo.BySessionRaw(ctx, sessionID)
+ list, err := processor.sessionTestRepo.BySessionRaw(ctx, ids.SessionID)
assert.NoError(t, err)
assert.Equal(t, api.TestError, list[0].Result)
}