aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/aflow/flow/patching/patching.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2026-01-29 09:59:56 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-01-30 11:03:40 +0000
commitb31760143a55012873c68e5ff5b51cd9c376729f (patch)
treed1e5c51adc844b3747a34bd25d779ac2a2ce9e37 /pkg/aflow/flow/patching/patching.go
parentea6dba229f2d0d2b1e28e30d53741d9ff44ab5b6 (diff)
pkg/aflow/flow/patching: move Outputs type to ai packages
Move it so that it can be accessed by the dashboard as well. Add kernel branch to output (it's needed for gerrit), provide actual kernel commit hash instead of tag name.
Diffstat (limited to 'pkg/aflow/flow/patching/patching.go')
-rw-r--r--pkg/aflow/flow/patching/patching.go22
1 files changed, 1 insertions, 21 deletions
diff --git a/pkg/aflow/flow/patching/patching.go b/pkg/aflow/flow/patching/patching.go
index 7c82e77d4..fcc74d076 100644
--- a/pkg/aflow/flow/patching/patching.go
+++ b/pkg/aflow/flow/patching/patching.go
@@ -35,21 +35,6 @@ type Inputs struct {
FixedRepository string
}
-type Outputs struct {
- // Base repo/commit for the patch.
- KernelRepo string
- KernelCommit string
- PatchDescription string
- PatchDiff string
- Recipients []Recipient
-}
-
-type Recipient struct {
- Name string
- Email string
- To bool // whether the recipient should be on the To or Cc line
-}
-
func createPatchingFlow(name string, summaryWindow int) *aflow.Flow {
commonTools := slices.Clip(append([]aflow.Tool{codeexpert.Tool}, codesearcher.Tools...))
return &aflow.Flow{
@@ -105,15 +90,10 @@ func createPatchingFlow(name string, summaryWindow int) *aflow.Flow {
}
func init() {
- aflow.Register[Inputs, Outputs](
+ aflow.Register[Inputs, ai.PatchingOutputs](
ai.WorkflowPatching,
"generate a kernel patch fixing a provided bug reproducer",
createPatchingFlow("", 0),
- )
-
- aflow.Register[Inputs, Outputs](
- ai.WorkflowPatching,
- "generate a kernel patch fixing a provided bug reproducer, with the summary feature",
createPatchingFlow("summary", 10),
)
}