From aced21629e4f4b1f3422b1becafdb091f61549b0 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Thu, 7 Nov 2024 16:40:26 -0700 Subject: [PATCH 1/4] update to run manually --- .github/workflows/test.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c09b386258..8750bd748b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,15 @@ on: branches: - main pull_request: + types: + - ready_for_review + workflow_dispatch: + inputs: + fuzz: + description: 'Run fuzz tests' + required: true + type: boolean + default: false jobs: get-exclude-dirs: From 6c52a0c4efc3ec6af488748b248731062c58d1e4 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Thu, 7 Nov 2024 16:43:18 -0700 Subject: [PATCH 2/4] add more conditions --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8750bd748b..95507051c6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,10 @@ on: - main pull_request: types: + - opened + - synchronize - ready_for_review + - reopened workflow_dispatch: inputs: fuzz: From 3a9158e6bf537d82214860c782df27357092a0c8 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Thu, 7 Nov 2024 16:54:35 -0700 Subject: [PATCH 3/4] use fuzz variable --- .github/workflows/get_and_run_tests.yml | 5 +++++ .github/workflows/run_test.yml | 5 +++++ .github/workflows/test.yml | 1 + 3 files changed, 11 insertions(+) diff --git a/.github/workflows/get_and_run_tests.yml b/.github/workflows/get_and_run_tests.yml index ef008afb68..4ee002b3c9 100644 --- a/.github/workflows/get_and_run_tests.yml +++ b/.github/workflows/get_and_run_tests.yml @@ -14,6 +14,10 @@ on: required: false type: boolean default: false + fuzz: + required: false + type: boolean + default: false jobs: prepare-test-environment: @@ -49,3 +53,4 @@ jobs: test_infos: ${{ needs.prepare-test-environment.outputs.test-infos }} include_npm: ${{ needs.prepare-test-environment.outputs.include_npm == 'true' }} run_experimental: ${{ inputs.run_experimental }} + fuzz: ${{ inputs.fuzz }} diff --git a/.github/workflows/run_test.yml b/.github/workflows/run_test.yml index caf6c1ed56..f7815fdc1e 100644 --- a/.github/workflows/run_test.yml +++ b/.github/workflows/run_test.yml @@ -13,6 +13,10 @@ on: required: false type: boolean default: false + fuzz: + required: false + type: boolean + default: false jobs: run-test: @@ -141,3 +145,4 @@ jobs: AZLE_PROPTEST_NUM_RUNS: ${{ steps.calc-runs.outputs.runs }} AZLE_PROPTEST_VERBOSE: true AZLE_EXPERIMENTAL: ${{ inputs.run_experimental }} + AZLE_FUZZ: ${{ inputs.fuzz }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 95507051c6..3802f9dae2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -100,6 +100,7 @@ jobs: directories: ${{ matrix.test_group.directories }} exclude-dirs: ${{ needs.get-exclude-dirs.outputs.exclude-dirs }} run_experimental: ${{ matrix.test_group.run_experimental || false }} + fuzz: ${{ inputs.fuzz }} check-test-success: name: Check Azle tests succeeded From 98dd2ea0bb3dca7902b1817894ecd564dfc7cd17 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Thu, 7 Nov 2024 16:57:26 -0700 Subject: [PATCH 4/4] add false by default --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3802f9dae2..027db26bfa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -100,7 +100,7 @@ jobs: directories: ${{ matrix.test_group.directories }} exclude-dirs: ${{ needs.get-exclude-dirs.outputs.exclude-dirs }} run_experimental: ${{ matrix.test_group.run_experimental || false }} - fuzz: ${{ inputs.fuzz }} + fuzz: ${{ inputs.fuzz || false }} check-test-success: name: Check Azle tests succeeded