Skip to content

Commit 2f86445

Browse files
authored
chore: update fuzz testing workflow to set JAZZER_ARGS at step level (#570)
1 parent 5b6c9ef commit 2f86445

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/fuzz-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
env:
1313
# Enable Jazzer JUnit mode for fuzz testing, avoiding complex binary target command line configuration
1414
JAZZER_FUZZ: '1'
15-
# Write crash/reproduction artifacts to temp directory for upload; -max_total_time unit is seconds
16-
JAZZER_ARGS: "-artifact_prefix=${{ runner.temp }}/jazzer-artifacts/ -max_total_time=300 -rss_limit_mb=2048"
1715
MAVEN_OPTS: '-Xmx2g -Xms2g -Dfile.encoding=UTF-8'
1816
steps:
1917
- name: Checkout
@@ -28,6 +26,9 @@ jobs:
2826

2927
- name: Run fuzz tests (fastexcel module)
3028
shell: bash
29+
env:
30+
# runner context is available at step-level, so this resolves correctly
31+
JAZZER_ARGS: "-artifact_prefix=${{ runner.temp }}/jazzer-artifacts/ -max_total_time=300 -rss_limit_mb=2048"
3132
run: |
3233
mkdir -p "${{ runner.temp }}/jazzer-artifacts/"
3334
# Execute only tests under fuzz package and force tests not to be skipped
@@ -40,4 +41,3 @@ jobs:
4041
name: jazzer-artifacts
4142
path: ${{ runner.temp }}/jazzer-artifacts/
4243
if-no-files-found: ignore
43-

0 commit comments

Comments
 (0)