Skip to content

fix: implement PROMPTFOO_VERSION, KeyboardInterrupt handling, nvm version#27

Merged
mldangelo merged 7 commits intomainfrom
fix/code-fixes
Feb 24, 2026
Merged

fix: implement PROMPTFOO_VERSION, KeyboardInterrupt handling, nvm version#27
mldangelo merged 7 commits intomainfrom
fix/code-fixes

Conversation

@mldangelo
Copy link
Member

@mldangelo mldangelo commented Feb 24, 2026

Summary

  • Implements `PROMPTFOO_VERSION` env var — was documented in the README but never actually read in code. Now `export PROMPTFOO_VERSION=0.95.0` correctly pins the npx version used.
  • Adds `KeyboardInterrupt` handling — Ctrl+C previously printed a Python traceback. Now exits cleanly with code 130 (the UNIX convention for SIGINT).
  • Updates nvm install script version from `v0.39.0` to `v0.40.1` in `instructions.py` — the old version was over 2 years out of date.
  • Increases CI test job timeout from 15 → 30 minutes — `py3.9/windows-latest` was hitting the limit due to `npm install` + smoke test download time.

Test plan

  • `export PROMPTFOO_VERSION=0.95.0; promptfoo --version` should run promptfoo 0.95.0 via npx
  • `promptfoo eval` then Ctrl+C exits with no traceback, exit code 130
  • All unit tests pass

renovate bot and others added 7 commits February 24, 2026 11:31
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael <michael.l.dangelo@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael <michael.l.dangelo@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael <michael.l.dangelo@gmail.com>
…ate nvm version

- Implement PROMPTFOO_VERSION env var to allow pinning the npx version
  (was documented in README but never actually implemented)
- Add KeyboardInterrupt handling so Ctrl+C exits cleanly with code 130
  instead of printing a Python traceback
- Update nvm install script references from v0.39.0 to v0.40.1

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Windows smoke tests hit the 15-minute limit due to npm install + npx
download time. 30 minutes gives enough headroom.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mldangelo mldangelo merged commit 0d7d8f0 into main Feb 24, 2026
11 checks passed
@mldangelo mldangelo deleted the fix/code-fixes branch February 24, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant