Closed oren-lava closed 1 month ago
The recent updates significantly enhance the handling of Quality of Service (QoS) reports across the system. By integrating raw data alongside processed reports, these changes improve the accuracy and granularity of provider performance evaluations. New parameters and fields facilitate a more nuanced approach to session management and reputational updates, ultimately refining the evaluation processes essential for maintaining service quality.
Files | Change Summary |
---|---|
protocol/lavasession/.../consumer_session_manager.go protocol/lavasession/.../consumer_types.go |
Improved QoS report handling by modifying method signatures to return both processed and raw reports. Added fields for enhanced tracking of provider performance metrics. |
protocol/provideroptimizer/.../provider_optimizer.go protocol/provideroptimizer/.../provider_optimizer_test.go |
Expanded ProviderData structure with raw score fields and adjusted methods to return both processed and raw scores, enhancing performance evaluations and test coverage. |
utils/score/decay_score.go |
Updated score calculation methods to return both normalized and raw score instances, enhancing score management accuracy and facilitating clear distinctions between score types. |
sequenceDiagram
participant C as ConsumerSessionManager
participant P as ProviderOptimizer
participant S as SingleConsumerSession
participant R as RequestBuilder
C->>P: Request QoS Reports
P->>C: Return (QoSReport, RawQoSReport)
C->>S: SetUsageForSession(QoSReport, RawQoSReport)
S->>R: ConstructRelaySession(RawQoSReport)
R->>C: Return RelaySession
π In the meadow, changes bloom,
With data bright, we clear the gloom!
QoS now dances, metrics in sight,
For providers and sessions, all feels right!
Hop, hop, hooray for the updates dear,
A new dawn breaks, letβs give a cheer! πΌ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
2β163 testsβ Β±0βββ2β163 :white_check_mark: Β±0βββ25m 19s :stopwatch: +18s ββ143 suites Β±0βββββββ0 :zzz: Β±0β ββββ7 filesββ Β±0βββββββ0 :x: Β±0β
Results for commit ef91148c.βΒ± Comparison against base commit b9a44c6a.
:recycle: This comment has been updated with latest results.
Description
Closes: #XXXX
In this PR I've added another method of calculating QoS excellence that will generate a report that will replace the current QoS excellence report sent to the node upon relay payment. The "new" report, called raw QoS excellence, doesn't influence anything else - it only replaces the data sent to the node
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.
I have...
!
in the type prefix if API or client breaking changemain
branchReviewers Checklist
All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.
I have...
Summary by CodeRabbit
New Features
Bug Fixes
Tests