From 99f5e28128d8b99d8eec5cff58f55c2fb97efaac Mon Sep 17 00:00:00 2001 From: Mikhail Date: Tue, 12 May 2026 09:31:55 +0300 Subject: [PATCH] Allow guard wrappers to forward custom arguments --- ...RUNTIME_POST_STABILIZATION_NEXT_STEPS_2026-05-12.md | 10 ++++++++++ scripts/smoke/README.md | 8 ++++++++ scripts/smoke/run-vpnruntime-ci-guards.cmd | 2 +- scripts/smoke/run-vpnruntime-ci-guards.sh | 3 +-- 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/docs/operations/VPNRUNTIME_POST_STABILIZATION_NEXT_STEPS_2026-05-12.md b/docs/operations/VPNRUNTIME_POST_STABILIZATION_NEXT_STEPS_2026-05-12.md index 55ab2e3..a139d3a 100644 --- a/docs/operations/VPNRUNTIME_POST_STABILIZATION_NEXT_STEPS_2026-05-12.md +++ b/docs/operations/VPNRUNTIME_POST_STABILIZATION_NEXT_STEPS_2026-05-12.md @@ -37,6 +37,16 @@ Linux/macOS/WSL wrapper: ./scripts/smoke/run-vpnruntime-ci-guards.sh ``` +Wrapper scripts pass arguments through to the PowerShell guard script, for example: + +```cmd +scripts\smoke\run-vpnruntime-ci-guards.cmd -AntiFlakeCount 5 -TargetedCount 10 -SkipRace +``` + +```bash +./scripts/smoke/run-vpnruntime-ci-guards.sh -AntiFlakeCount 5 -TargetedCount 10 -SkipRace +``` + Expected: - all guard steps pass diff --git a/scripts/smoke/README.md b/scripts/smoke/README.md index dcc3e7c..4fd1cb4 100644 --- a/scripts/smoke/README.md +++ b/scripts/smoke/README.md @@ -16,12 +16,20 @@ Windows `cmd` wrapper: scripts\smoke\run-vpnruntime-ci-guards.cmd ``` +With custom parameters: + +```cmd +scripts\smoke\run-vpnruntime-ci-guards.cmd -AntiFlakeCount 5 -TargetedCount 10 -SkipRace +``` + Linux/macOS/WSL wrapper: ```bash ./scripts/smoke/run-vpnruntime-ci-guards.sh ``` +Both wrappers forward all arguments to the PowerShell script. + ## Verification matrix ### Locally proven in this repository work diff --git a/scripts/smoke/run-vpnruntime-ci-guards.cmd b/scripts/smoke/run-vpnruntime-ci-guards.cmd index 499a2e9..1208d41 100644 --- a/scripts/smoke/run-vpnruntime-ci-guards.cmd +++ b/scripts/smoke/run-vpnruntime-ci-guards.cmd @@ -3,7 +3,7 @@ setlocal set SCRIPT_DIR=%~dp0 pushd "%SCRIPT_DIR%..\.." if errorlevel 1 exit /b %ERRORLEVEL% -pwsh -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%run-vpnruntime-ci-guards.ps1" -AntiFlakeCount 20 -TargetedCount 50 +pwsh -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%run-vpnruntime-ci-guards.ps1" %* set EXIT_CODE=%ERRORLEVEL% popd exit /b %EXIT_CODE% diff --git a/scripts/smoke/run-vpnruntime-ci-guards.sh b/scripts/smoke/run-vpnruntime-ci-guards.sh index 2391973..dd82c6c 100755 --- a/scripts/smoke/run-vpnruntime-ci-guards.sh +++ b/scripts/smoke/run-vpnruntime-ci-guards.sh @@ -5,5 +5,4 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" REPO_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)" cd "${REPO_ROOT}" -pwsh -NoProfile -ExecutionPolicy Bypass -File "scripts/smoke/run-vpnruntime-ci-guards.ps1" -AntiFlakeCount 20 -TargetedCount 50 - +pwsh -NoProfile -ExecutionPolicy Bypass -File "scripts/smoke/run-vpnruntime-ci-guards.ps1" "$@"