Skip to content

fix(evals): override @hono/node-server to 2.1.6 and refresh hono to 4.13.18 - #1682

Merged
max-sixty merged 1 commit into
mainfrom
daily/review-runs-43388394301-hono-override
Nov 13, 2026
Merged

max-sixty merged 1 commit into
mainfrom
daily/review-runs-43388394301-hono-override

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

This PR fixes the two open @hono/node-server security 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-server to exactly 2.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-server to 2.1.6. It also refreshes hono from 4.13.12 to 4.13.18 within the existing ^4 ranges, which clears five Hono advisories that npm audit reports. Those five were published at the same time and have no Dependabot alert yet.

Verified locally:

Both this PR and #1635 add entries to the overrides block in evals/package.json, so whichever merges second gets a one-line conflict there.

….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.
@tend-agent tend-agent added the review-runs Findings from review-runs skill label Nov 13, 2026
@max-sixty
max-sixty merged commit 65017e4 into main Nov 13, 2026
12 checks passed
@max-sixty
max-sixty deleted the daily/review-runs-43388394301-hono-override branch November 13, 2026 20:51
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-runs Findings from review-runs skill

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants