feat(health): add health checking endpoints and logic #636

Merged
argoyle merged 1 commits from feat/add-health-check-endpoints into main 2025-11-21 09:38:02 +00:00
argoyle commented 2025-11-21 09:24:48 +00:00 (Migrated from gitlab.com)

Introduce health checking functionality with liveness and readiness
endpoints to monitor the application's status. Implement a health
checker that verifies database connectivity and provides a simple
liveness check. Update service routing to use the new health
checker functionality. Add corresponding unit tests for validation.

Introduce health checking functionality with liveness and readiness endpoints to monitor the application's status. Implement a health checker that verifies database connectivity and provides a simple liveness check. Update service routing to use the new health checker functionality. Add corresponding unit tests for validation.
argoyle (Migrated from gitlab.com) scheduled this pull request to auto merge when all checks succeed 2025-11-21 09:25:02 +00:00
argoyle commented 2025-11-21 09:36:05 +00:00 (Migrated from gitlab.com)

Codecov Report

Patch coverage is 89.13043% with 5 lines in your changes missing coverage. Please review.
Project coverage is 10.38%. Comparing base (a1b0f49) to head (a9dea19).

Files with missing lines Patch % Lines
cmd/service/service.go 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##            main     #632      +/-   ##
=========================================
+ Coverage   8.83%   10.38%   +1.55%     
=========================================
  Files         44       45       +1     
  Lines       2344     2387      +43     
=========================================
+ Hits         207      248      +41     
- Misses      2129     2131       +2     
  Partials       8        8              

View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
## [Codecov](https://app.codecov.io/gl/unboundsoftware/schemas/pull/632?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware) Report :x: Patch coverage is `89.13043%` with `5 lines` in your changes missing coverage. Please review. :white_check_mark: Project coverage is 10.38%. Comparing base ([`a1b0f49`](https://app.codecov.io/gl/unboundsoftware/schemas/commit/a1b0f49aaba3ab174fbbd662e86c1a2a3f8d6ff5?dropdown=coverage&el=desc&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware)) to head ([`a9dea19`](https://app.codecov.io/gl/unboundsoftware/schemas/commit/a9dea19531300ac051feb71e6c9dd036b63905d0?dropdown=coverage&el=desc&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware)). | [Files with missing lines](https://app.codecov.io/gl/unboundsoftware/schemas/pull/632?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware) | Patch % | Lines | |---|---|---| | [cmd/service/service.go](https://app.codecov.io/gl/unboundsoftware/schemas/pull/632?src=pr&el=tree&filepath=cmd%2Fservice%2Fservice.go&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware#diff-Y21kL3NlcnZpY2Uvc2VydmljZS5nbw==) | 0.00% | [5 Missing :warning: ](https://app.codecov.io/gl/unboundsoftware/schemas/pull/632?src=pr&el=tree&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware) | <details><summary>Additional details and impacted files</summary> ```diff @@ Coverage Diff @@ ## main #632 +/- ## ========================================= + Coverage 8.83% 10.38% +1.55% ========================================= Files 44 45 +1 Lines 2344 2387 +43 ========================================= + Hits 207 248 +41 - Misses 2129 2131 +2 Partials 8 8 ``` </details> [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gl/unboundsoftware/schemas/pull/632?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware). :loudspeaker: Have feedback on the report? [Share it here](https://gitlab.com/codecov-open-source/codecov-user-feedback/-/issues/4). <details><summary> :rocket: New features to boost your workflow: </summary> - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems. </details>
argoyle commented 2025-11-21 09:38:03 +00:00 (Migrated from gitlab.com)

mentioned in commit bcca005256

mentioned in commit bcca00525683793482601990d411588e6517f3bb
argoyle (Migrated from gitlab.com) merged commit bcca005256 into main 2025-11-21 09:38:03 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unboundsoftware/schemas#636