Skip to content
Open
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
23 changes: 20 additions & 3 deletions .github/workflows/eval-refresh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,24 @@ jobs:
if [ -n "$eval_ids" ]; then
matching=()
while IFS= read -r id; do
[ -d "evals/$id" ] && matching+=("$id")
if [ -f "evals/$id/PROMPT.md" ]; then
pnpm --silent eval -- list --eval "$id" > /dev/null
matching+=("$id")
else
echo "SKIP $id (published eval is absent from this checkout: evals/$id/PROMPT.md not found)"
fi
done < <(jq -Rr 'split(",") | map(gsub("^\\s+|\\s+$"; "")) | .[]' <<< "$eval_ids")
else
matching=()
for dir in evals/*/; do
[ -d "$dir" ] || continue
id=$(basename "$dir")
prompt="$dir/PROMPT.md"
[ -f "$prompt" ] || continue
if [ ! -f "$prompt" ]; then
echo "SKIP $id (eval directory has no PROMPT.md)"
continue
fi
pnpm --silent eval -- list --eval "$id" > /dev/null
suite_val=$(sed -n 's/^suite:[[:space:]]*//p' "$prompt" | head -n 1)
if jq -e --arg s "$suite_val" 'index($s) != null' <<< "$suite_json" > /dev/null 2>&1; then
matching+=("$id")
Expand Down Expand Up @@ -223,7 +232,14 @@ jobs:
case "$eval_suite" in
benchmark) experiment_suites=(benchmark no-skills) ;;
regression) experiment_suites=(regression) ;;
*) continue ;;
other)
echo "SKIP $id (suite other has no scheduled experiment suite)"
continue
;;
*)
echo "Invalid suite in evals/$id/PROMPT.md: $eval_suite" >&2
exit 1
;;
esac

for experiment_suite in "${experiment_suites[@]}"; do
Expand Down Expand Up @@ -309,6 +325,7 @@ jobs:
set -euo pipefail

pnpm --filter @supabase-evals/framework eval:vercel -- \
--strict \
--pairs-json "$EVAL_PAIRS" \
--revision "$EVAL_REVISION" \
--runs "${{ needs.prepare.outputs.runs }}" \
Expand Down
Loading