aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/aflow/action/kernel/build.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2026-01-15 19:45:16 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-01-16 08:38:40 +0000
commit67945471d459ce8031b65988d49bf03b726ae691 (patch)
tree25ab1293163ef3572079fe99d8f9d407b44a2fa3 /pkg/aflow/action/kernel/build.go
parent592aa8f1268e40b9d75deb6d87166e02ac558974 (diff)
pkg/aflow: add notion of flow errors
Flow errors denote failure of the flow itself, rather than an infrastructure error. A flow errors mean an expected condition in the flow when it cannot continue, and cannot produce expected outputs. For example, if we are doing something with the kernel, but the kernel build fails. Flow errors shouldn't be flagged in Fixes #6610
Diffstat (limited to 'pkg/aflow/action/kernel/build.go')
-rw-r--r--pkg/aflow/action/kernel/build.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/aflow/action/kernel/build.go b/pkg/aflow/action/kernel/build.go
index 5cc9fd796..594b33fb5 100644
--- a/pkg/aflow/action/kernel/build.go
+++ b/pkg/aflow/action/kernel/build.go
@@ -47,7 +47,7 @@ func buildKernel(ctx *aflow.Context, args buildArgs) (buildResult, error) {
compileCommnads := "compile_commands.json"
makeArgs = append(makeArgs, path.Base(image), compileCommnads)
if _, err := osutil.RunCmd(time.Hour, args.KernelSrc, "make", makeArgs...); err != nil {
- return err
+ return aflow.FlowError(err)
}
// Remove main intermediate build files, we don't need them anymore
// and they take lots of space. Keep generated source files.