diff --git a/migration/automate_migrate_Lts_DDS.sh b/migration/automate_migrate_Lts_DDS.sh index 59a434ae5..4559eda27 100755 --- a/migration/automate_migrate_Lts_DDS.sh +++ b/migration/automate_migrate_Lts_DDS.sh @@ -67,15 +67,19 @@ else echo "No changes from clang-tidy" fi -# Attempt to run strix to produce tests (best-effort) -if python3 -m strix --help >/dev/null 2>&1; then - echo "Running strix to generate tests (best-effort)" - # Example invocation: strix --target --out tests/ - mkdir -p migration/strix-tests - # This is a placeholder; actual strix usage depends on build artifacts and symbols - echo "Stripe test generation placeholder: run strix manually against built binaries." +# Attempt to run strix to produce tests (best-effort). Honor SKIP_STRIX=1 to skip. +if [ "${SKIP_STRIX:-0}" = "1" ]; then + echo "SKIP_STRIX=1 set; skipping strix test generation" else - echo "strix not available; skipping test generation" + if python3 -m strix --help >/dev/null 2>&1; then + echo "Running strix to generate tests (best-effort)" + # Example invocation: strix --target --out tests/ + mkdir -p migration/strix-tests + # This is a placeholder; actual strix usage depends on build artifacts and symbols + echo "Stripe test generation placeholder: run strix manually against built binaries." + else + echo "strix not available; skipping test generation" + fi fi echo "Automated migration script finished. Review git status and run full builds."