Skip to content

CI: make the weekly evaluation able to catch regressions - #4

Merged
MAOFILHO merged 1 commit into
mainfrom
ci/enable-regression-baseline
Dec 3, 2026
Merged

MAOFILHO merged 1 commit into
mainfrom
ci/enable-regression-baseline

Conversation

@MAOFILHO

@MAOFILHO MAOFILHO commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Why

The weekly Continuous RAG Evaluation job is skipped because the repo has no OPENAI_API_KEY secret. Adding the secret alone would not help, for 2 reasons:

  1. No baseline. outputs/baseline.json was never committed, so regression_check.py prints "No baseline found" and exits 0. The job could never fail.
  2. RAGAS silently skipped. The workflow installs requirements.txt but never runs the ragas compatibility shim, so import ragas fails and RAGAS metrics are dropped without an error.

What

  • Commit outputs/baseline.json, taken from the 2026-12-02 full run (same numbers as the README screenshots).
  • Run scripts/patch_ragas_vertexai_shim.py in the install step.

Tests

  • Regression check against identical results: passes, exit 0.
  • Regression check against a copy with FAISS Hit Rate@5 lowered 0.925 → 0.5: REGRESSION DETECTED, exit 1.
  • Workflow YAML parses; step list unchanged except the install step.

After merge

Add the OPENAI_API_KEY repo secret (Settings → Secrets and variables → Actions), then run the workflow once via Run workflow to confirm.

🤖 Generated with Claude Code

- Commit outputs/baseline.json (the 2026-12-02 full run). Without it,
  regression_check.py prints "No baseline found" and exits 0, so the
  job could never fail.
- Run scripts/patch_ragas_vertexai_shim.py after pip install. Without
  the shim, `import ragas` fails and RAGAS metrics are skipped silently.

Verified locally: identical results pass; a copy with FAISS Hit Rate@5
lowered from 0.925 to 0.5 exits 1 with "REGRESSION DETECTED".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@MAOFILHO
MAOFILHO merged commit 1d0cced into main Dec 3, 2026
3 checks passed
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