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

[Merged by Bors] - Update metrics use of malfeasance package #6569

Closed
wants to merge 21 commits into from

Conversation

fasmat
Copy link
Member

@fasmat fasmat commented Dec 23, 2024

Motivation

Merge after #6566. This updates the way we handle metrics with malfeasance.

Description

Instead of passing along the metrics counter the domain specific handlers just return the labels that the malfeasance handler should use to report metrics.

Test Plan

existing tests were updated and extended

TODO

  • Explain motivation or link existing issue(s)
  • Test changes and document test plan
  • Update documentation as needed
  • Update changelog as needed

@fasmat fasmat force-pushed the malfeasance-metrics-v2 branch from 403680c to 1f126b1 Compare December 23, 2024 14:27
Copy link

codecov bot commented Dec 23, 2024

Codecov Report

Attention: Patch coverage is 67.79661% with 19 lines in your changes missing coverage. Please review.

Project coverage is 79.9%. Comparing base (1fd07d4) to head (683efbb).
Report is 1 commits behind head on develop.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
activation/malfeasance.go 0.0% 6 Missing ⚠️
activation/malfeasance2.go 14.2% 6 Missing ⚠️
hare3/malfeasance.go 0.0% 2 Missing ⚠️
hare4/malfeasance.go 0.0% 2 Missing ⚠️
mesh/malfeasance.go 0.0% 2 Missing ⚠️
malfeasance/handler.go 97.0% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           develop   #6569   +/-   ##
=======================================
  Coverage     79.8%   79.9%           
=======================================
  Files          356     356           
  Lines        47316   47336   +20     
=======================================
+ Hits         37775   37836   +61     
+ Misses        7394    7360   -34     
+ Partials      2147    2140    -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

activation/malfeasance2.go Outdated Show resolved Hide resolved
@spacemesh-bors spacemesh-bors bot changed the base branch from malfeasance-info-v2 to develop January 3, 2025 12:52
@fasmat
Copy link
Member Author

fasmat commented Jan 3, 2025

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Jan 3, 2025
## Motivation

Merge after #6566. This updates the way we handle metrics with malfeasance.
@spacemesh-bors
Copy link

spacemesh-bors bot commented Jan 3, 2025

Build failed (retrying...):

spacemesh-bors bot pushed a commit that referenced this pull request Jan 3, 2025
## Motivation

Merge after #6566. This updates the way we handle metrics with malfeasance.
@spacemesh-bors
Copy link

spacemesh-bors bot commented Jan 3, 2025

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title Update metrics use of malfeasance package [Merged by Bors] - Update metrics use of malfeasance package Jan 3, 2025
@spacemesh-bors spacemesh-bors bot closed this Jan 3, 2025
@spacemesh-bors spacemesh-bors bot deleted the malfeasance-metrics-v2 branch January 3, 2025 16:23
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