GitBulletin

Repository: farcasterxyz/hub-monorepo

"Revolutionizing Reliability: New Job Adds Periodic Sync Health Monitoring!"

2024-08-02 14:58:03 UTC

"In a bold move to tackle message discrepancies, developers unveil innovative solution to proactively identify and resolve hub synchronization issues."

Commit Details:

feat: add a job to measure sync health periodically (#2223) ## Why is this change needed? There have been reports of missing messages from several users. We'd like to proactively detect when hubs are missing messages and identify why. For reviewers: - The diff in `syncHealth.ts` is a bit noisy because I removed a level of indentation in `printSyncHealth` - I did not test the job, I just tested the `computeSyncHealthMessageStats` function which does the somewhat complicated querying. - I did not incorporate into datadog, I just added logging. I thought it made sense to make sure that the pipeline works via logging as a first step and integrate into datadog as a follow up. - I did not write the code to select hubs in a smart way or to snap to the 10min interval that we want. Also thought this could be a follow-up. ## Merge Checklist _Choose all relevant options below by adding an `x` now or at any time before submitting for review_ - [x] PR title adheres to the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) standard - [x] PR has a [changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets) - [x] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore) - [x] PR includes [documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs) if necessary. <!-- start pr-codex --> --- ## PR-Codex overview This PR adds a sync health measurement job to the `@farcaster/hubble` package. ### Detailed summary - Added a sync health measurement job to the `@farcaster/hubble` package - Updated functions related to sync health computation and metadata retrieval - Implemented a scheduler for measuring sync health at intervals > The following files were skipped due to too many changes: `apps/hubble/src/utils/syncHealth.ts` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->

Search Similar