Skip to content

Commit

Permalink
.github: make ipc_fuzzer.yml callable with duration parameter
Browse files Browse the repository at this point in the history
So we can run it for longer in daily tests.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
  • Loading branch information
marc-hb committed Dec 5, 2023
1 parent 8fa93b1 commit 130f37e
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ipc_fuzzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,21 @@ name: IPC fuzzing
# 'Actions' tab

# yamllint disable-line rule:truthy
on: [pull_request, workflow_dispatch]
on:
workflow_call:
inputs:
fuzzing_duration_s:
type: number
default: 300 # 5 minutes

workflow_dispatch:
inputs:
fuzzing_duration_s:
type: number
default: 300

pull_request:
# TODO: can we provide a default inputs here too?

jobs:

Expand Down Expand Up @@ -66,7 +80,9 @@ jobs:
IPC3) cmake_arg='-DCONFIG_IPC_MAJOR_3=y' ;;
IPC4) cmake_arg='-DCONFIG_IPC_MAJOR_4=y' ;;
esac
sof/scripts/fuzz.sh -o fuzz-stdout.txt -t 300 -- "$cmake_arg"
duration="${{inputs.fuzzing_duration_s}}"
duration="${duration:-301}" # pull_request has not 'inputs.' :-(
sof/scripts/fuzz.sh -o fuzz-stdout.txt -t "$duration" -- "$cmake_arg"
- name: Upload stdout
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 130f37e

Please sign in to comment.