sqlinsight-pro/tests
Søren Eggert Lundsteen Olsen b010f37dcf Review 1.5: synthetic checks: "Kør nu" joins the running check, errors are stored once, paused checks are left alone
- "Kør nu" (ServerRequestHandler) goes through SyntheticCheckService.RunNowAsync: it joins a
  run of the check that is going on, or runs it under the same MaxParallelChecks throttle
  and registers it, so it never overlaps a scheduled run. A paused check is not run: the
  answer is "Tjekket er sat på pause." and nothing is stored, evaluated or opened.
- Server requests (test, run now) may take 3 min (the check's max timeout 120 s + the
  30 s service lookup + 30 s margin) instead of AgentRequestService's 2 min, so the result
  is always stored; a server test gets 2.5 min. Stale Running requests are cleaned after
  the longest timeout + 1 min.
- An exception a check run did not foresee becomes a stored failed result ("Tjekket kunne
  ikke køres: …"), so LastRunAt advances and the check waits its interval; it is logged
  once per change. A run that cannot even be stored is not retried before its interval
  (the agent remembers when it started it).
- The service lookup of a failing check has its own 30 s deadline; its error detail
  (naming the agent's account) is Sensitive.
- The rules get max(10, FailuresBeforeFinding, SlowRunsBeforeFinding) + 1 recent results
  (at most 100), so "Fejlet i træk" and FailuresBeforeFinding > 10 work.
- The interval is never under SyntheticCheckLimits.MinIntervalSeconds agent-side; state
  for removed checks is pruned; shutdown waits for running checks before the throttle is
  disposed; a TaskCanceledException that is not shutdown no longer ends the service.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 16:02:17 +02:00
..
SQLInsight.Agent.Tests Review 1.5: a Windows server that hangs no longer holds up the agent; reads are bounded and backed off 2026-10-02 16:02:17 +02:00
SQLInsight.Collectors.Tests Review 1.5: SQL Scripts for Windows servers and synthetic checks follow main's structure and registry 2026-10-02 15:18:24 +02:00
SQLInsight.Community.Tests Docs: Windows-servere og syntetiske tjek (1.5) 2026-10-02 14:59:22 +02:00
SQLInsight.Connectivity.Tests Fase 2: Azure SQL Managed Instance, docs and rule catalog test 2026-09-29 08:23:40 +00:00
SQLInsight.Core.Tests Review 1.5: a check sent back from API v1 with [udeladt] login or URL query is refused, not saved 2026-10-02 15:54:38 +02:00
SQLInsight.IntegrationTests Review 1.5: synthetic checks: "Kør nu" joins the running check, errors are stored once, paused checks are left alone 2026-10-02 16:02:17 +02:00
SQLInsight.Licensing.Tests Ship SEOSoft's license key k20261001; agent defaults to the real hub 2026-10-01 07:15:47 +02:00
SQLInsight.Notifications.Tests Fase 4: integration with Prometheus, Grafana, SCOM and scripts 2026-09-29 09:56:01 +00:00
SQLInsight.Rules.Tests Review 1.5: server and check rules never pass unmeasured, cap and stabilize findings, keep sensitive text out of titles 2026-10-02 15:45:44 +02:00
SQLInsight.Servers.Tests Review 1.5: a Windows server that hangs no longer holds up the agent; reads are bounded and backed off 2026-10-02 16:02:17 +02:00
SQLInsight.Updates.Tests Community-websted og Discourse-forum 2026-09-29 13:45:06 +00:00