Skip to content

refactor: make structured validator state Postgres-only#99

Merged
xavierlyu merged 2 commits into
mainfrom
refactor/postgres-only-state
Jun 14, 2026
Merged

refactor: make structured validator state Postgres-only#99
xavierlyu merged 2 commits into
mainfrom
refactor/postgres-only-state

Conversation

@xavierlyu

Copy link
Copy Markdown
Collaborator

Summary

  • Require CACHEON_DATABASE_URL at CPU/GPU startup; remove CACHEON_SKIP_DB and JSON load/save fallbacks
  • Validator state, eval jobs, progress, and fingerprints read/write Postgres only; S3 stays logs-only
  • Update unit tests to mock cacheon_db loaders/mirrors instead of SKIP_DB

Made with Cursor

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 3 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 5699895. Configure here.

Comment thread validator/cpu_validator.py
Comment thread validator/cpu_validator.py
Comment thread validator/eval_progress.py
- Added exception handling in `_clean_stale_eval_job` to log errors when loading eval jobs fails.
- Implemented error handling in `seed_progress_from_eval_job` to log failures when seeding progress from eval jobs.
- Introduced new unit tests to verify behavior when database errors occur during progress seeding and eval job loading.

This improves robustness in the validator's handling of eval jobs and progress updates, ensuring that failures are logged appropriately without disrupting the overall process.
@xavierlyu xavierlyu merged commit 406c1cc into main Jun 14, 2026
8 checks passed
@xavierlyu xavierlyu deleted the refactor/postgres-only-state branch June 14, 2026 16:46
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