|
| 1 | +--- |
| 2 | +# SPDX-FileCopyrightText: (C) 2025 Intel Corporation |
| 3 | +# SPDX-License-Identifier: Apache-2.0 |
| 4 | + |
| 5 | +name: Go Fuzzing Tests |
| 6 | + |
| 7 | +on: |
| 8 | + workflow_dispatch: |
| 9 | + inputs: |
| 10 | + run_adm: |
| 11 | + description: 'Run ADM fuzzing tests' |
| 12 | + required: false |
| 13 | + type: boolean |
| 14 | + default: true |
| 15 | + fuzz_seconds_adm: |
| 16 | + description: 'Duration per test case in secs. Total duration is secs X # of test cases' |
| 17 | + required: false |
| 18 | + type: number |
| 19 | + default: 1200 |
| 20 | + run_arm: |
| 21 | + description: 'Run ARM fuzzing tests' |
| 22 | + required: false |
| 23 | + type: boolean |
| 24 | + default: true |
| 25 | + fuzz_seconds_arm: |
| 26 | + description: 'Duration per test case in secs. Total duration is secs X # of test cases' |
| 27 | + required: false |
| 28 | + type: number |
| 29 | + default: 2100 |
| 30 | + run_asp: |
| 31 | + description: 'Run ASP fuzzing tests' |
| 32 | + required: false |
| 33 | + type: boolean |
| 34 | + default: true |
| 35 | + fuzz_seconds_asp: |
| 36 | + description: 'Duration per test case in secs. Total duration is secs X # of test cases' |
| 37 | + required: false |
| 38 | + type: number |
| 39 | + default: 4800 |
| 40 | + # Scheduled workflows will only run on the default branch. Input values from workflow_dispatch will be null when schedule event is triggered |
| 41 | + schedule: |
| 42 | + - cron: "0 0 * * 6" # every week, at 00:00 on Saturday |
| 43 | + |
| 44 | +jobs: |
| 45 | + go-fuzz-adm: |
| 46 | + if: ${{ inputs.run_adm || github.event_name == 'schedule' }} |
| 47 | + name: ADM Go Fuzzing Tests |
| 48 | + runs-on: ${{ github.repository_owner == 'intel' && 'intel-ubuntu-latest' || 'ubuntu-latest' }} |
| 49 | + steps: |
| 50 | + - name: Checkout code |
| 51 | + uses: actions/checkout@v1 |
| 52 | + - name: Fuzzing tests |
| 53 | + uses: ./.github/actions/go-fuzz |
| 54 | + with: |
| 55 | + # Declare 1200 secs duration since schedule event will not pick up input values from workflow_dispatch |
| 56 | + fuzz_seconds: ${{ inputs.fuzz_seconds_adm || 1200 }} |
| 57 | + fuzz_subprojects: app-deployment-manager |
| 58 | + test_data_dir: app-deployment-manager/internal/northbound/fuzztests/testdata/fuzz |
| 59 | + gh_token: ${{ secrets.SYS_ORCH_GITHUB }} |
| 60 | + go-fuzz-arm: |
| 61 | + if: ${{ inputs.run_arm || github.event_name == 'schedule' }} |
| 62 | + name: ARM Go Fuzzing Tests |
| 63 | + runs-on: ${{ github.repository_owner == 'intel' && 'intel-ubuntu-latest' || 'ubuntu-latest' }} |
| 64 | + steps: |
| 65 | + - name: Checkout code |
| 66 | + uses: actions/checkout@v1 |
| 67 | + - name: Fuzzing tests |
| 68 | + uses: ./.github/actions/go-fuzz |
| 69 | + with: |
| 70 | + # Declare 2100 secs duration since schedule event will not pick up input values from workflow_dispatch |
| 71 | + fuzz_seconds: ${{ inputs.fuzz_seconds_arm || 2100 }} |
| 72 | + fuzz_subprojects: app-resource-manager |
| 73 | + test_data_dir: app-resource-manager/internal/northbound/services/v2/resource/testdata/fuzz |
| 74 | + gh_token: ${{ secrets.SYS_ORCH_GITHUB }} |
| 75 | + go-fuzz-asp: |
| 76 | + # todo enable schedule once ASP fuzzing tests are ready {{ inputs.run_asp || github.event_name == 'schedule' }} |
| 77 | + if: ${{ inputs.run_asp }} |
| 78 | + name: ASP Go Fuzzing Tests |
| 79 | + runs-on: ${{ github.repository_owner == 'intel' && 'intel-ubuntu-latest' || 'ubuntu-latest' }} |
| 80 | + steps: |
| 81 | + - name: Checkout code |
| 82 | + uses: actions/checkout@v1 |
| 83 | + - name: Fuzzing tests |
| 84 | + uses: ./.github/actions/go-fuzz |
| 85 | + with: |
| 86 | + # Declare 4800 secs duration since schedule event will not pick up input values from workflow_dispatch |
| 87 | + fuzz_seconds: ${{ inputs.fuzz_seconds_asp || 4800 }} |
| 88 | + fuzz_subprojects: app-service-proxy |
| 89 | + test_data_dir: app-service-proxy/internal/server/fuzztests/testdata/fuzz |
| 90 | + gh_token: ${{ secrets.SYS_ORCH_GITHUB }} |
0 commit comments