-
Notifications
You must be signed in to change notification settings - Fork 11
refactor: endpoint broker l1 tests #771
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
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…t_broker_l1_tests
…t_broker_l1_tests
…t_broker_l1_tests
pahearn73
previously approved these changes
Apr 11, 2025
…t_broker_l1_tests
satlead
previously approved these changes
Apr 17, 2025
Rajanika
previously approved these changes
Apr 18, 2025
Minimum allowed line rate is Current coverage:49% exceeds coverage threshold. Coverage threshold will be updated automatically to reflect to the latest coverage when this pr is merged to main branch. |
Vinodsathyaseelan
approved these changes
Apr 18, 2025
pahearn73
approved these changes
Apr 18, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Chores
tokio
dependency for enhanced performance and stability.New Features
RpcRequest
instances.FireboltPermissions
.Refactor
Walkthrough
The changes enhance multiple modules across the project. A new development dependency is added to provide deterministic behavior for monotonic counters. The endpoint broker now features new error enums, methods, and refined error handling with stricter atomic ordering and richer logging. The provider broker separates message formatting into its own method, while the rules engine receives additional methods and enums for rule retrieval and classification. The workflow broker updates error mapping and brokerage dispatch via an asynchronous function. A minor non-functional comment is also added in the firebolt gateway.
Changes
serial_test = "3"
under[dev-dependencies]
with accompanying comments on deterministic monotonic counter generation.HandleBrokerageError
.- Added methods:
update_request
,get_rule
,get_broker_rule
,handle_brokerage_workflow
.- Updated
get_next_id
atomic ordering fromRelaxed
toSeqCst
with enhanced logging.send_to_provider
to leverage a newformat_provider_message
method for constructing JSON-RPC messages.get
inRuleSet
.- Extended
Rule
with a newRuleType
enum and arule_type
method.- Introduced methods
add_rules
,add_rule
, andget_rule
inRuleEngine
.- Added enums
RuleRetrieved
andRuleRetrievalError
.- Modified context application methods for fluent chaining.
From
conversion fromHandleBrokerageError
toSubBrokerErr
.- Added new async function
subbroker_call
replacing the previous brokerage call logic with improved error handling.//.is_ok();
) in thehandle
method; no functional changes were made.tokio
dependency version from1.43.0
to1.44.1
.#[cfg(test)]
frommock_thunder_lite_server
module declaration, making it available in all builds.Default
implementations forFireboltCap
andCapabilityRole
enums.- Updated
FireboltPermission
andFireboltPermissions
structs to deriveDefault
.- Introduced methods
add_capability
andadd_capabilities
inFireboltPermissions
.with_method
,with_context
, andwith_cid
toRpcRequest
for fluent modification of its fields.Sequence Diagram(s)
Poem
Tip
⚡💬 Agentic Chat (Pro Plan, General Availability)