Allow guard wrappers to forward custom arguments
build / backend (push) Has been cancelled
build / node-agent (push) Has been cancelled
build / worker (push) Has been cancelled

This commit is contained in:
2026-05-12 09:31:55 +03:00
parent 27bb8102a2
commit 99f5e28128
4 changed files with 20 additions and 3 deletions
@@ -37,6 +37,16 @@ Linux/macOS/WSL wrapper:
./scripts/smoke/run-vpnruntime-ci-guards.sh ./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: Expected:
- all guard steps pass - all guard steps pass
+8
View File
@@ -16,12 +16,20 @@ Windows `cmd` wrapper:
scripts\smoke\run-vpnruntime-ci-guards.cmd 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: Linux/macOS/WSL wrapper:
```bash ```bash
./scripts/smoke/run-vpnruntime-ci-guards.sh ./scripts/smoke/run-vpnruntime-ci-guards.sh
``` ```
Both wrappers forward all arguments to the PowerShell script.
## Verification matrix ## Verification matrix
### Locally proven in this repository work ### Locally proven in this repository work
+1 -1
View File
@@ -3,7 +3,7 @@ setlocal
set SCRIPT_DIR=%~dp0 set SCRIPT_DIR=%~dp0
pushd "%SCRIPT_DIR%..\.." pushd "%SCRIPT_DIR%..\.."
if errorlevel 1 exit /b %ERRORLEVEL% 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% set EXIT_CODE=%ERRORLEVEL%
popd popd
exit /b %EXIT_CODE% exit /b %EXIT_CODE%
+1 -2
View File
@@ -5,5 +5,4 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)" REPO_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
cd "${REPO_ROOT}" 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" "$@"