Skip to content

Switch /admin Recent failures to a DB-backed read - #268

Merged
soulgalore merged 1 commit into
mainfrom
admin-db-failures
May 15, 2026
Merged

Switch /admin Recent failures to a DB-backed read#268
soulgalore merged 1 commit into
mainfrom
admin-db-failures

Conversation

@soulgalore

Copy link
Copy Markdown
Member

The failures table read from Bull's retained-failures list, which only
sees what the testrunner itself throws and never decays. The result was
a 24 h health pill that could say "1 failed" above an empty table —
because the actual failure was a non-zero sitespeed.io exit on the
result queue, or a queue-down at submit time, neither of which Bull
records. v4.0.0 made the DB authoritative for those modes via
failed_reason and finished_date; this picks up that work.

The Retry button goes with the switch. DB rows don't carry a Bull job
id, and the rerun icon on /search already covers the same need from a
page the operator is more likely to be on anyway.

Co-authored-by: Claude Sonnet 4.6 noreply@anthropic.com

  The failures table read from Bull's retained-failures list, which only
  sees what the testrunner itself throws and never decays. The result was
  a 24 h health pill that could say "1 failed" above an empty table —
  because the actual failure was a non-zero sitespeed.io exit on the
  result queue, or a queue-down at submit time, neither of which Bull
  records. v4.0.0 made the DB authoritative for those modes via
  failed_reason and finished_date; this picks up that work.

  The Retry button goes with the switch. DB rows don't carry a Bull job
  id, and the rerun icon on /search already covers the same need from a
  page the operator is more likely to be on anyway.

  Co-authored-by: Claude Sonnet 4.6 noreply@anthropic.com
@soulgalore
soulgalore merged commit feb05e8 into main May 15, 2026
10 checks passed
@soulgalore
soulgalore deleted the admin-db-failures branch May 15, 2026 12:50
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