Add live AI checks to system health (#3155)

* Add live AI checks to system health

Give super admins a dedicated AI status view with bounded liveness probes for LLMs, vector stores, pgvector, and embedding endpoints. Record sanitized failures in both the system debug log and Rails logger, and document the recommended local configuration.\n\nCloses #3145

* Fix AI health CI checks

* Address AI health review feedback

* Correct Ollama model preload guidance

* Distinguish OpenAI-compatible providers

* Make Ollama startup readiness explicit

* Recognize Cloudflare AI endpoints
This commit is contained in:
Juan José Mata
2026-08-24 22:41:08 +02:00
committed by GitHub
parent c26b16d36f
commit fd6f4ff078
24 changed files with 1773 additions and 120 deletions
+21
View File
@@ -0,0 +1,21 @@
require "test_helper"
class DS::TabsTest < ViewComponent::TestCase
test "can navigate to the selected tab for server-backed content" do
render_inline(DS::Tabs.new(
active_tab: "background_jobs",
url_param_key: "tab",
navigate_on_change: true
)) do |tabs|
tabs.with_nav do |nav|
nav.with_btn(id: "background_jobs", label: "Background jobs")
nav.with_btn(id: "ai", label: "AI status")
end
tabs.with_panel(tab_id: "background_jobs") { "Jobs" }
tabs.with_panel(tab_id: "ai") { "AI" }
end
assert_selector "[data-ds--tabs-url-param-key-value='tab']"
assert_selector "[data-ds--tabs-navigate-on-change-value='true']"
end
end