Skip to content

[dev] Use built-in Rails health check#2331

Merged
StephenHulme merged 3 commits intodevelopfrom
sh51/update-health-check
Apr 23, 2025
Merged

[dev] Use built-in Rails health check#2331
StephenHulme merged 3 commits intodevelopfrom
sh51/update-health-check

Conversation

@StephenHulme
Copy link
Contributor

@StephenHulme StephenHulme commented Apr 16, 2025

Related to https://github.com/sanger/deployment/issues/543

Changes proposed in this pull request

Implements: https://edgeapi.rubyonrails.org/classes/Rails/HealthController.html

  • Replaces the current html view with the built-in Rails health check
  • Reduces request time from ~2000ms to ~20ms
  • Reduces log-verbosity too

Instructions for Reviewers

Pairs well with #2330

[All PRs] - Confirm PR template filled
[Feature Branches] - Review code
[Production Merges to main]
    - Check story numbers included
    - Check for debug code
    - Check version

@codecov
Copy link

codecov bot commented Apr 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.25%. Comparing base (c4c28b3) to head (c237baf).
Report is 38 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2331      +/-   ##
===========================================
- Coverage    81.25%   81.25%   -0.01%     
===========================================
  Files          478      477       -1     
  Lines        18511    18509       -2     
  Branches       278      278              
===========================================
- Hits         15041    15039       -2     
  Misses        3468     3468              
  Partials         2        2              
Flag Coverage Δ
javascript 74.77% <ø> (ø)
pull_request 81.25% <ø> (-0.01%) ⬇️
push 81.24% <ø> (-0.01%) ⬇️
ruby 91.77% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@BenTopping BenTopping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice looks good to me.

Copy link
Contributor

@dasunpubudumal dasunpubudumal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice :)

Copy link
Contributor

@harrietc52 harrietc52 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, could we maybe roll this out for other Rails apps?

@StephenHulme StephenHulme merged commit ad94b51 into develop Apr 23, 2025
16 checks passed
@StephenHulme StephenHulme deleted the sh51/update-health-check branch April 23, 2025 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants