aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster/workflow
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-01-21 12:33:16 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-01-22 13:17:53 +0000
commit881832da05d05b9fd97d6aa36464fc471020b56b (patch)
treedf154bbf2ae7b8306c13b158ec258ce8fdb4a3cd /syz-cluster/workflow
parentb8b5b35706290e7fcf6570ab2cf74df9ac310a2f (diff)
syz-cluster: perform a patched kernel boot test
Report the findings only for the boot test of the patched kernel.
Diffstat (limited to 'syz-cluster/workflow')
-rw-r--r--syz-cluster/workflow/boot-step/main.go12
-rw-r--r--syz-cluster/workflow/boot-step/workflow-template.yaml12
2 files changed, 19 insertions, 5 deletions
diff --git a/syz-cluster/workflow/boot-step/main.go b/syz-cluster/workflow/boot-step/main.go
index 353bc88a6..8adf15fac 100644
--- a/syz-cluster/workflow/boot-step/main.go
+++ b/syz-cluster/workflow/boot-step/main.go
@@ -24,6 +24,7 @@ var (
flagBaseBuild = flag.String("base_build", "", "base build ID")
flagPatchedBuild = flag.String("patched_build", "", "patched build ID")
flagOutput = flag.String("output", "", "where to store the result")
+ flagFindings = flag.Bool("findings", false, "report failur as findings")
)
func main() {
@@ -79,9 +80,13 @@ func runTest(ctx context.Context, client *api.Client) (bool, error) {
rep, err := instance.RunSmokeTest(cfg)
if err != nil {
return false, err
+ } else if rep == nil {
+ return true, nil
}
- if rep != nil {
- log.Printf("uploading the finding %q", rep.Title)
+
+ log.Printf("found: %q", rep.Title)
+ if *flagFindings {
+ log.Printf("reporting the finding")
findingErr := client.UploadFinding(ctx, &api.Finding{
SessionID: *flagSession,
TestName: *flagTestName,
@@ -92,7 +97,6 @@ func runTest(ctx context.Context, client *api.Client) (bool, error) {
if findingErr != nil {
return false, fmt.Errorf("failed to report the finding: %w", findingErr)
}
- return false, nil
}
- return true, nil
+ return false, nil
}
diff --git a/syz-cluster/workflow/boot-step/workflow-template.yaml b/syz-cluster/workflow/boot-step/workflow-template.yaml
index 25a9c25ba..1f7e1f70f 100644
--- a/syz-cluster/workflow/boot-step/workflow-template.yaml
+++ b/syz-cluster/workflow/boot-step/workflow-template.yaml
@@ -18,6 +18,8 @@ spec:
value: ""
- name: test-name
value: ""
+ - name: report-findings
+ value: "false"
artifacts:
- name: kernel
path: /kernel
@@ -31,8 +33,16 @@ spec:
"--session", "{{workflow.parameters.session-id}}",
"--test_name", "{{inputs.parameters.test-name}}",
"--base_build", "{{inputs.parameters.base-build-id}}",
- "--patched_build", "{{inputs.parameters.patched-build-id}}"
+ "--patched_build", "{{inputs.parameters.patched-build-id}}",
+ "-findings={{inputs.parameters.report-findings}}"
]
+ resources:
+ requests:
+ cpu: 6
+ memory: 12G
+ limits:
+ cpu: 8
+ memory: 24G
volumeMounts:
- name: workdir
mountPath: /workdir