diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-08-07 13:50:51 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-08-08 10:25:41 +0000 |
| commit | 265b79936233a0431f3f1032aa207af7f4a6f3c8 (patch) | |
| tree | c9bd46e7627f302be44539acc660c42fe865d4cc /syz-cluster/workflow | |
| parent | 53950748be0bac4ec27d0f34662c538824609845 (diff) | |
syz-cluster: support branch checkout in build-step
During smoke builds, we may have a tree name/branch name pair instead of
just a commit hash, which is the case for normal kernel build requests.
Support both types of requests.
Diffstat (limited to 'syz-cluster/workflow')
| -rw-r--r-- | syz-cluster/workflow/build-step/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/syz-cluster/workflow/build-step/main.go b/syz-cluster/workflow/build-step/main.go index 80ef8aa67..dcbf9038b 100644 --- a/syz-cluster/workflow/build-step/main.go +++ b/syz-cluster/workflow/build-step/main.go @@ -186,7 +186,7 @@ func checkoutKernel(tracer debugtracer.DebugTracer, req *api.BuildRequest, serie if err != nil { return nil, err } - commit, err := ops.Commit(req.CommitHash) + commit, err := ops.Commit(req.TreeName, req.CommitHash) if err != nil { return nil, fmt.Errorf("failed to get commit info: %w", err) } @@ -197,7 +197,7 @@ func checkoutKernel(tracer debugtracer.DebugTracer, req *api.BuildRequest, serie if len(patches) > 0 { tracer.Log("applying %d patches", len(patches)) } - err = ops.ApplySeries(req.CommitHash, patches) + err = ops.ApplySeries(commit.Hash, patches) return commit, err } |
