Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions apps/cli/src/commands/eval/commands/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,11 @@ export const evalRunCommand = command({
description:
'Resume an interrupted run: skip already-completed tests and append new results to --output dir',
}),
rerunFailed: flag({
rerunFailed: option({
type: optional(string),
long: 'rerun-failed',
description:
'Rerun failed/errored tests while keeping passing results. Implies --resume semantics',
'Run ID, run workspace, or index.jsonl to rerun failed/errored tests while keeping passing results',
}),
strict: flag({
long: 'strict',
Expand Down
8 changes: 4 additions & 4 deletions apps/cli/src/commands/eval/run-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ export async function loadRunCache(cwd: string): Promise<RunCache | undefined> {
/**
* Resolve the cached last-run directory for a cwd, if it still exists on disk.
* Returns undefined when there is no cache, the cache lacks a `lastRunDir`,
* or the directory has since been deleted. Used by `--resume` / `--rerun-failed`
* to default `--output` to the most recent run when no explicit dir is given,
* matching the convention used by promptfoo (`--resume [evalId]`) and
* OpenCompass (`-r [timestamp]`).
* or the directory has since been deleted. Used by `--resume` to default
* `--output` to the most recent run when no explicit dir is given, matching
* the convention used by promptfoo (`--resume [evalId]`) and OpenCompass
* (`-r [timestamp]`).
*/
export async function resolveCachedRunDir(cwd: string): Promise<string | undefined> {
const cache = await loadRunCache(cwd);
Expand Down
Loading
Loading