Add observability and integration coverage #2

Merged
luna merged 2 commits from observability-and-integration-tests into main 2026-07-21 20:05:25 +02:00
Collaborator

What changed:

  • Add fixture-backed integration tests for scan caching and de-duplication, ref checkout, clone failure cleanup, scan limits, timeouts, URL rejection, metrics auth, and SIGTERM shutdown.
  • Add authenticated Prometheus-compatible GET /metrics with request, cache, scan, file, line, and duration counters.
  • Emit structured JSON request and error logs with opaque request IDs; no query strings or API keys are logged.
  • Gracefully handle SIGINT and SIGTERM: close the HTTP listener, clear background timers, drain connections, and force-exit only after 10 seconds.

Verified: npm test with 13 passing tests, Docker Compose config, Docker image build, and git diff whitespace check.

What changed: - Add fixture-backed integration tests for scan caching and de-duplication, ref checkout, clone failure cleanup, scan limits, timeouts, URL rejection, metrics auth, and SIGTERM shutdown. - Add authenticated Prometheus-compatible GET /metrics with request, cache, scan, file, line, and duration counters. - Emit structured JSON request and error logs with opaque request IDs; no query strings or API keys are logged. - Gracefully handle SIGINT and SIGTERM: close the HTTP listener, clear background timers, drain connections, and force-exit only after 10 seconds. Verified: npm test with 13 passing tests, Docker Compose config, Docker image build, and git diff whitespace check.
luna added 1 commit 2026-07-21 20:00:36 +02:00
Add repository scan integration tests
ci / test (pull_request) Successful in 10s
4d30598e6b
luna added 1 commit 2026-07-21 20:03:44 +02:00
Add metrics, request logs, and graceful shutdown
ci / test (pull_request) Successful in 9s
efb0cb0447
luna merged commit 7e4a46a5d3 into main 2026-07-21 20:05:25 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: space/loc-via-git#2