You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On current upstream main (cf50443b63e461a7c0796857f69d572781acab8e), gstack-model-benchmark --timeout-ms is parsed with parseInt, so malformed values are accepted instead of rejected.
Repro:
bun run bin/gstack-model-benchmark --prompt hi --timeout-ms 1abc --dry-run
bun run bin/gstack-model-benchmark --prompt hi --timeout-ms nope --dry-run
bun run bin/gstack-model-benchmark --prompt hi --timeout-ms 0 --dry-run
Current output includes:
timeout_ms: 1
timeout_ms: NaN
timeout_ms: 0
Expected behavior
--timeout-ms should require a positive integer timeout and fail fast for malformed, non-numeric, zero, negative, or decimal values before dry-run or provider execution.
Duplicate searches performed
I checked for existing open issues and PRs using:
gstack-model-benchmark --timeout-ms
benchmark timeout parseInt malformed --timeout-ms
bin/gstack-model-benchmark timeout
timeout_ms NaN benchmark
No duplicate issue or canonical open PR covered this behavior. Open PR #1495 also touches bin/gstack-model-benchmark, but it is an additive Ollama provider change and does not validate --timeout-ms.
Candidate fix shape
Add a strict positive-integer parser for --timeout-ms, emit a concise CLI error for invalid values, and cover dry-run behavior in test/benchmark-cli.test.ts.
@16francej — recommend closing this issue only after #1727 completes its remaining integration check and lands. #1727 fixes the permissive parsing of malformed timeout values and has passed focused checks. Please retain the original attribution and the full timeout-case coverage.
Activity
jbetala7 commentedon May 26, 2026
Opened PR #1727 with the timeout parser fix and focused CLI regression coverage: #1727
time-attack commentedon Jul 15, 2026
@16francej — recommend closing this issue only after #1727 completes its remaining integration check and lands. #1727 fixes the permissive parsing of malformed timeout values and has passed focused checks. Please retain the original attribution and the full timeout-case coverage.
capy-ai commentedon Oct 3, 2026
gstack-model-benchmark --timeout-ms 1abc --dry-runnow fails with--timeout-ms requires a positive integeron current main.Fixed in v1.64.0.0 (#2571).
If you still see this on the latest gstack, please reopen with details.