diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2026-01-13 16:09:28 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2026-01-13 18:52:51 +0000 |
| commit | ff8156b958fbf280f429d32adec18ecc3863cde0 (patch) | |
| tree | 60064924cfff3074c39805b4a7dd2057a4acf8ac /pkg | |
| parent | 54c44ce53f9d4fda314d14c21458d3fcf6310820 (diff) | |
dashboard/app: add race harmfullness label
Add race:harmful/benign label.
Set it automatically by confirmed AI jobs.
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/aflow/ai/ai.go | 9 | ||||
| -rw-r--r-- | pkg/aflow/flow/assessment/kcsan.go | 8 |
2 files changed, 10 insertions, 7 deletions
diff --git a/pkg/aflow/ai/ai.go b/pkg/aflow/ai/ai.go index a00380ae7..5af71a3f5 100644 --- a/pkg/aflow/ai/ai.go +++ b/pkg/aflow/ai/ai.go @@ -13,3 +13,12 @@ const ( WorkflowModeration = WorkflowType("moderation") WorkflowAssessmentKCSAN = WorkflowType("assessment-kcsan") ) + +// Outputs of various workflow types. +// Should be changed carefully since old outputs are stored in the dashboard database. + +type AssessmentKCSANOutputs struct { + Confident bool + Benign bool + Explanation string +} diff --git a/pkg/aflow/flow/assessment/kcsan.go b/pkg/aflow/flow/assessment/kcsan.go index 2521c0a41..92033aff7 100644 --- a/pkg/aflow/flow/assessment/kcsan.go +++ b/pkg/aflow/flow/assessment/kcsan.go @@ -18,14 +18,8 @@ type kcsanInputs struct { CodesearchToolBin string } -type kcsanOutputs struct { - Confident bool - Benign bool - Explanation string -} - func init() { - aflow.Register[kcsanInputs, kcsanOutputs]( + aflow.Register[kcsanInputs, ai.AssessmentKCSANOutputs]( ai.WorkflowAssessmentKCSAN, "assess if a KCSAN report is about a benign race that only needs annotations or not", &aflow.Flow{ |
