Skip to content

Commit 8ba8d71

Browse files
authored
sync: update mage-x to v1.20.3 and add fuzz config (#273)
1 parent a038845 commit 8ba8d71

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/env/10-mage-x.env

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
# ================================================================================================
3737

3838
# MAGE-X version
39-
MAGE_X_VERSION=v1.20.1
39+
MAGE_X_VERSION=v1.20.3
4040

4141
# For mage-x development, set to 'true' to use local version instead of downloading from releases
4242
MAGE_X_USE_LOCAL=false
@@ -102,3 +102,25 @@ MAGE_X_MAGE_VERSION=v1.15.0
102102
# MAGE_X_TEST_EXCLUDE_MODULES=module1,module2
103103
# MAGE_X_TEST_RACE=false
104104
# MAGE_X_VERBOSE=true
105+
106+
# ================================================================================================
107+
# 🧪 FUZZ TEST CONFIGURATION
108+
# ================================================================================================
109+
110+
# Timeout for pre-compiling fuzz test binaries with coverage instrumentation.
111+
# This warms the Go build cache before running individual fuzz tests, preventing
112+
# the first test per package from timing out in projects with large dependency trees.
113+
# Set to "0s" to disable warmup.
114+
MAGE_X_FUZZ_WARMUP_TIMEOUT=5m
115+
116+
# Buffer time added to each fuzz test timeout for setup/teardown overhead
117+
# MAGE_X_FUZZ_BASELINE_BUFFER=90s
118+
119+
# Estimated time per seed during baseline gathering phase
120+
# MAGE_X_FUZZ_BASELINE_OVERHEAD_PER_SEED=500ms
121+
122+
# Minimum timeout for any fuzz test
123+
# MAGE_X_FUZZ_MIN_TIMEOUT=90s
124+
125+
# Maximum timeout cap for fuzz tests
126+
# MAGE_X_FUZZ_MAX_TIMEOUT=30m

.github/env/load-env.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ _env_loader_dir() {
2424
[[ "$source" != /* ]] && source="$dir/$source"
2525
done
2626
cd -P "$(dirname "$source")" && pwd
27+
return $?
2728
}
2829

2930
# Main loader logic

0 commit comments

Comments
 (0)