aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster/pkg/workflow
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-01-21 11:47:46 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-01-22 13:17:53 +0000
commitb8b5b35706290e7fcf6570ab2cf74df9ac310a2f (patch)
treee03ac9c2fb513535ae228909b94865a588d43148 /syz-cluster/pkg/workflow
parentbcfe9f01a8a33c831b83e95cb3b9bd85a07f023c (diff)
syz-cluster: add a boot test
Run a smoke test on the base kernel build and report back the results.
Diffstat (limited to 'syz-cluster/pkg/workflow')
-rw-r--r--syz-cluster/pkg/workflow/template.yaml32
1 files changed, 29 insertions, 3 deletions
diff --git a/syz-cluster/pkg/workflow/template.yaml b/syz-cluster/pkg/workflow/template.yaml
index c8ef8357d..fe4b3c35f 100644
--- a/syz-cluster/pkg/workflow/template.yaml
+++ b/syz-cluster/pkg/workflow/template.yaml
@@ -11,6 +11,10 @@ spec:
parameters:
- name: session-id
value: "some-session-id"
+# TODO: there seems to be no way to pass env variables into the GC workflow.
+# Set ARGO_ARTIFACT_GC_ENABLED=0 for the local setup?
+# artifactGC:
+# strategy: OnWorkflowCompletion
templates:
- name: main
# Don't schedule new steps if any of the previous steps failed.
@@ -53,7 +57,7 @@ spec:
failed: true
- - name: break-if-succeeded
template: exit-workflow
- when: "{{steps['run-process-fuzz'].status}} == Succeeded"
+ when: "{{=steps['run-process-fuzz'].status == Succeeded}}"
- name: process-fuzz
inputs:
parameters:
@@ -64,7 +68,7 @@ spec:
arguments:
parameters:
- name: data
- value: "{{= jsonpath(inputs.parameters.element, '$.base')}}"
+ value: "{{=jsonpath(inputs.parameters.element, '$.base')}}"
- - name: base-build
templateRef:
name: build-step-template
@@ -100,7 +104,29 @@ spec:
from: "{{steps.save-patched-req.outputs.artifacts.request}}"
- - name: continue-if-patched-build-failed
template: exit-workflow
- when: "{{=jsonpath(steps['patched-build'].outputs.parameters.result, '$.success')}} == false"
+ when: "{{=jsonpath(steps['patched-build'].outputs.parameters.result, '$.success') == false}}"
+ - - name: boot-test-base
+ templateRef:
+ name: boot-step-template
+ template: boot-step
+ arguments:
+ artifacts:
+ - name: kernel
+ from: "{{steps.base-build.outputs.artifacts.kernel}}"
+ parameters:
+ - name: config
+ value: "{{=jsonpath(inputs.parameters.element, '$.config')}}"
+ - name: base-build-id
+ value: "{{=jsonpath(steps['base-build'].outputs.parameters.result, '$.build_id')}}"
+ - name: test-name
+ value: "Boot test: Base"
+ - - name: break-if-base-boot-failed
+ template: exit-workflow
+ arguments:
+ parameters:
+ - name: code
+ value: 0
+ when: "{{=jsonpath(steps['boot-test-base'].outputs.parameters.result, '$.success') == false}}"
- name: extract-request
inputs:
parameters: