furiko-io / furiko

Kubernetes cron and batch job platform
https://furiko.io
Apache License 2.0
478 stars 21 forks source link

feat(httphandler): Implement debug/pprof endpoints #131

Closed irvinlim closed 1 year ago

irvinlim commented 1 year ago
  1. Add endpoints to dump configs at /debug/config/dynamic and /debug/config/bootstrap
  2. Add pprof endpoints
  3. Add unit tests for httphandler package
codecov[bot] commented 1 year ago

Codecov Report

Base: 70.14% // Head: 70.80% // Increases project coverage by +0.66% :tada:

Coverage data is based on head (78dd5f3) compared to base (32a3ef2). Patch coverage: 59.82% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #131 +/- ## ========================================== + Coverage 70.14% 70.80% +0.66% ========================================== Files 202 206 +4 Lines 10516 10692 +176 ========================================== + Hits 7376 7571 +195 + Misses 2750 2726 -24 - Partials 390 395 +5 ``` | [Impacted Files](https://codecov.io/gh/furiko-io/furiko/pull/131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io) | Coverage Δ | | |---|---|---| | [apis/config/v1alpha1/managerconfig\_types.go](https://codecov.io/gh/furiko-io/furiko/pull/131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io#diff-YXBpcy9jb25maWcvdjFhbHBoYTEvbWFuYWdlcmNvbmZpZ190eXBlcy5nbw==) | `100.00% <ø> (ø)` | | | [cmd/execution-controller/main.go](https://codecov.io/gh/furiko-io/furiko/pull/131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io#diff-Y21kL2V4ZWN1dGlvbi1jb250cm9sbGVyL21haW4uZ28=) | `0.00% <0.00%> (ø)` | | | [cmd/execution-webhook/main.go](https://codecov.io/gh/furiko-io/furiko/pull/131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io#diff-Y21kL2V4ZWN1dGlvbi13ZWJob29rL21haW4uZ28=) | `0.00% <0.00%> (ø)` | | | [pkg/runtime/httphandler/listener.go](https://codecov.io/gh/furiko-io/furiko/pull/131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io#diff-cGtnL3J1bnRpbWUvaHR0cGhhbmRsZXIvbGlzdGVuZXIuZ28=) | `0.00% <0.00%> (ø)` | | | [pkg/runtime/httphandler/server.go](https://codecov.io/gh/furiko-io/furiko/pull/131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io#diff-cGtnL3J1bnRpbWUvaHR0cGhhbmRsZXIvc2VydmVyLmdv) | `0.00% <0.00%> (ø)` | | | [pkg/runtime/httphandler/tls.go](https://codecov.io/gh/furiko-io/furiko/pull/131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io#diff-cGtnL3J1bnRpbWUvaHR0cGhhbmRsZXIvdGxzLmdv) | `0.00% <ø> (ø)` | | | [pkg/utils/testutils/assert.go](https://codecov.io/gh/furiko-io/furiko/pull/131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io#diff-cGtnL3V0aWxzL3Rlc3R1dGlscy9hc3NlcnQuZ28=) | `73.80% <54.16%> (-26.20%)` | :arrow_down: | | [pkg/runtime/httphandler/debug.go](https://codecov.io/gh/furiko-io/furiko/pull/131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io#diff-cGtnL3J1bnRpbWUvaHR0cGhhbmRsZXIvZGVidWcuZ28=) | `84.90% <84.90%> (ø)` | | | [pkg/runtime/httphandler/testing/testing.go](https://codecov.io/gh/furiko-io/furiko/pull/131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io#diff-cGtnL3J1bnRpbWUvaHR0cGhhbmRsZXIvdGVzdGluZy90ZXN0aW5nLmdv) | `93.47% <93.47%> (ø)` | | | [pkg/runtime/httphandler/health.go](https://codecov.io/gh/furiko-io/furiko/pull/131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io#diff-cGtnL3J1bnRpbWUvaHR0cGhhbmRsZXIvaGVhbHRoLmdv) | `100.00% <100.00%> (+100.00%)` | :arrow_up: | | ... and [4 more](https://codecov.io/gh/furiko-io/furiko/pull/131?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io) | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=furiko-io)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.