Repository navigation
fix(evals): override @hono/node-server to 2.1.6 and refresh hono to 4.13.18 - #1682
Merged
Merged
Conversation
….13.18 Promptfoo 0.125.1 pins @hono/node-server to exactly 2.1.5, so Dependabot cannot reach the patched 2.1.6 for alerts 109 and 110.
max-sixty
added a commit
that referenced
this pull request
Nov 14, 2026
…mptfoo accepts the pinned SDK (#1689) Since Dependabot's #1604 moved promptfoo to 0.125.1, every Codex eval attempt has errored before reaching a model: `The OpenAI Codex SDK provider requires @openai/codex-sdk@^0.156.1 (found 0.160.0)`. promptfoo 0.125.0 added that runtime check, and `evals/` pins the SDK at 0.160.0 to match `codex_version` in `codex/action.yaml`, the Codex that CI ships. This pins promptfoo to 0.124.1, the newest release without the check. The `@hono/node-server` override from #1682 still applies, and `npm audit` reports the same 8 transitive advisories at 0.124.0, 0.124.1 and 0.125.1, so the downgrade reintroduces none. promptfoo's main branch already accepts `>=0.156.1 <0.167.0`, but no release carries it yet. Nothing in CI caught this because the provider test replaced promptfoo's provider with a fake. The new test in `evals/test_codex-provider.cjs` runs promptfoo's real Codex provider and the pinned SDK against a stand-in Codex binary. It fails at 0.125.1 with promptfoo's own error and passes at 0.124.1, so a bump that brings the check back fails `test-eval-capture`. It also passes against 0.125.1 with the range widened to promptfoo main's, so a fixed release won't trip it. With this pin, a live run of one focused case (`issue-recovery`, current arm, `--repeat 1`) reached the model and passed both rubrics, with no SDK error. Tests: `npm --prefix evals test` (also with CI's `--omit=optional` install), `uv run pytest evals/test_prepare.py`, `pre-commit run --all-files`. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes the two open
@hono/node-serversecurity alerts in the eval tree (alerts 109 and 110: GHSA-jpvv-r467-5p4w and GHSA-qv5m-9pm6-hqp3, both fixed in 2.1.6). Dependabot can't fix them on its own because[email protected]pins@hono/node-serverto exactly2.1.5, which is also the latest promptfoo release. Dependabot's two update runs for these alerts failed with "the available update path would downgrade promptfoo from 0.125.1 to 0.121.20". So the PR adds an npm override pinning@hono/node-serverto2.1.6. It also refresheshonofrom 4.13.12 to 4.13.18 within the existing^4ranges, which clears five Hono advisories thatnpm auditreports. Those five were published at the same time and have no Dependabot alert yet.Verified locally:
npm cifrom the new lockfile resolves one@hono/[email protected]and one[email protected]for both promptfoo and@modelcontextprotocol/sdk.npm --prefix evals testpasses 6 of 6.promptfoo view, the promptfoo path that serves through@hono/node-server, started, and/and/healthboth returned 200.npm auditno longer lists@hono/node-serverorhono. The other eval findings are unchanged (basic-ftp/get-uri, tracked in Track blocked basic-ftp and node-forge security fixes in evals #1520;glob/minimatch, fix: override vulnerable eval glob and minimatch versions #1635).Both this PR and #1635 add entries to the
overridesblock inevals/package.json, so whichever merges second gets a one-line conflict there.