Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: handling REORG_STARTED event plus tests #208

Merged
merged 7 commits into from
Jan 30, 2025
Merged

Conversation

andreabadesso
Copy link
Collaborator

@andreabadesso andreabadesso commented Jan 23, 2025

Motivation

During the wallet-service refactor, we lost the reorg size alert, this PR should add it back

Acceptance Criteria

  • We should have different alert severities depending on the reorg size
  • We should include tests for all alarm sizes

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged
  • Make sure either the unit tests and/or the QA tests are capable of testing the new features
  • Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

@andreabadesso andreabadesso self-assigned this Jan 23, 2025
@andreabadesso andreabadesso added the enhancement New feature or request label Jan 23, 2025
@andreabadesso andreabadesso changed the title feat: handling METADATA_CHANGED event plus tests feat: handling REORG_STARTED event plus tests Jan 23, 2025
Comment on lines 92 to 93
export const REORG_SIZE_MAJOR = parseInt(process.env.REORG_SIZE_MAJOR ?? '10', 10);
export const REORG_SIZE_CRITICAL = parseInt(process.env.REORG_SIZE_CRITICAL ?? '10', 10);
Copy link
Collaborator

Choose a reason for hiding this comment

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

The Major and Critical will have the same size by default?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Refactored MAJOR reorg default to 5, thanks!

luislhl
luislhl previously approved these changes Jan 27, 2025
glevco
glevco previously approved these changes Jan 27, 2025
@andreabadesso andreabadesso dismissed stale reviews from glevco and luislhl via d5a36d0 January 30, 2025 13:16
@andreabadesso andreabadesso merged commit 273690f into master Jan 30, 2025
1 check passed
@andreabadesso andreabadesso deleted the feat/reorg-alert branch January 30, 2025 15:19
This was referenced Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Waiting to be deployed
Development

Successfully merging this pull request may close these issues.

3 participants