Skip to content

Simplify heartbeat endpoint, don't call API, just return 200#14261

Open
diox wants to merge 2 commits into
mozilla:masterfrom
diox:heartbeat-lightweight-front
Open

Simplify heartbeat endpoint, don't call API, just return 200#14261
diox wants to merge 2 commits into
mozilla:masterfrom
diox:heartbeat-lightweight-front

Conversation

@diox

@diox diox commented Jun 25, 2026

Copy link
Copy Markdown
Member

Calling the API here would just cause us to needlessly spawn new pods if the API is erroring... but the frontend itself is fine.

Second half of mozilla/addons#16297
See also mozilla/addons-server#25074

diox added 2 commits June 25, 2026 17:15
Calling the API here would just cause us to needlessly spawn
new pods if the API is erroring... but the frontend itself is
fine.
@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.14%. Comparing base (42c3cfd) to head (4149bb2).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #14261   +/-   ##
=======================================
  Coverage   98.13%   98.14%           
=======================================
  Files         267      267           
  Lines       10664    10654   -10     
  Branches     3292     3287    -5     
=======================================
- Hits        10465    10456    -9     
+ Misses        186      185    -1     
  Partials       13       13           

☔ View full report in Codecov by Harness.
📢 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.

@diox diox requested a review from eviljeff June 25, 2026 15:35
Comment thread src/amo/utils/server.js
};
};

export const viewHeartbeatHandler = ({

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In addons-server the heatlh checks are still available via another endpoint (monitors.json); in frontend this was it. So should this functionality be kept and made available via something similar to monitors.json?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good point, might be useful.

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.

2 participants