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: improve code based on local testing #134

Closed
wants to merge 69 commits into from

Conversation

polsar88
Copy link
Contributor

Description

Please include a summary of the changes. Please also include relevant motivation and context.

Type of change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • 😎 New feature (non-breaking change which adds functionality)
  • ⁉️ Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ⚒️ Refactor (no functional changes)
  • 📖 Documentation (updating or adding docs)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

polsar88 and others added 30 commits August 8, 2024 15:36
* Added instructions to `README.md`

* feat: update dependencies

* feat: updated dependencies

* feat: new mockery version

* feat: add routing config params

* feat: upgrade Go version

* fix: suppress legacy linter errors

* fix: field alignments in structs

* fix: field linter errors

* fix: linter errors

* feat: add routing config params

* feat: validate routing error rate

* feat: refactoring

* feat: add a TODO

* feat: `ErrorsConfig` and `LatencyConfig` are now pointers

* feat: add a field to routing config test

* feat: set defaults for `DetectionWindow` and `BanWindow`

* feat: move RoutingConfig functions closer to the struct

* feat: changed `or` to `and`

* feat: split function into validation and setting defaults components

* feat: settings the config defaults now mirrors the validation workflow

* feat: remove redundant call
@polsar88 polsar88 requested a review from brianluong September 25, 2024 19:43
@@ -24,6 +24,7 @@ type BlockHeightCheck struct {
logger *zap.Logger
blockHeight uint64
useWSForBlockHeight bool
ShouldRun bool // TODO(polsar): Add config parameter to control whether this check should run.
Copy link
Member

Choose a reason for hiding this comment

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

curious what's the motivation behind this? will this set to false by default? we want to run this check for all chains/upstreams

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, this is temporary while testing, because the check fails on my dumb Python endpoints, marking all upstreams as unhealthy

not gonna merge this 😅

@polsar88
Copy link
Contributor Author

I will also push my Python script and test YAML later today so you can reproduce testing on your laptop

Base automatically changed from polsar/support-always-route to latency-checker-wiring September 25, 2024 21:52
Base automatically changed from latency-checker-wiring to polsar/latency-checker September 25, 2024 21:53
Base automatically changed from polsar/latency-checker to polsar/config-parsing-enhancements September 25, 2024 21:54
Base automatically changed from polsar/config-parsing-enhancements to polsar/go-version-and-readme September 25, 2024 21:55
Base automatically changed from polsar/go-version-and-readme to main September 25, 2024 21:56
@polsar88 polsar88 changed the title fix: bug fixes from local testing feat: improve code based on local testing Sep 25, 2024
@polsar88 polsar88 closed this Sep 25, 2024
@polsar88 polsar88 deleted the polsar/testing-changes branch September 25, 2024 22:46
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