feat(reliability): implement fault tolerance API (#329)#348
Merged
Conversation
…ance.cpp (#329) Implement complete fault tolerance API to enable test_fault_tolerance.cpp: - circuit_breaker: Add result<T> return type, validate(), get_success_rate() - retry_policy: Add retry_executor<T>, retry_metrics, factory functions (exponential, fixed, fibonacci backoff) - fault_tolerance_manager: Add template class combining circuit breaker and retry, fault_tolerance_config, fault_tolerance_metrics - Add global registries for circuit breakers, retry executors, and fault tolerance managers - Enable test_fault_tolerance.cpp in CMakeLists.txt - Update test assertions to use is_ok()/is_err() instead of bool conversion All 27 fault tolerance tests now pass.
Update disabled tests list and add recently enabled tests section to track test files that were re-enabled with their corresponding PRs.
kcenon
added a commit
that referenced
this pull request
Apr 13, 2026
* feat(reliability): implement fault tolerance API for test_fault_tolerance.cpp (#329) Implement complete fault tolerance API to enable test_fault_tolerance.cpp: - circuit_breaker: Add result<T> return type, validate(), get_success_rate() - retry_policy: Add retry_executor<T>, retry_metrics, factory functions (exponential, fixed, fibonacci backoff) - fault_tolerance_manager: Add template class combining circuit breaker and retry, fault_tolerance_config, fault_tolerance_metrics - Add global registries for circuit breakers, retry executors, and fault tolerance managers - Enable test_fault_tolerance.cpp in CMakeLists.txt - Update test assertions to use is_ok()/is_err() instead of bool conversion All 27 fault tolerance tests now pass. * docs: update KNOWN_ISSUES.md for fault tolerance test enablement Update disabled tests list and add recently enabled tests section to track test files that were re-enabled with their corresponding PRs.
This file contains hidden or 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
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.
Summary
test_fault_tolerance.cppChanges
circuit_breaker.h
execute()to returnresult<T>instead of throwing exceptionsvalidate()method tocircuit_breaker_configget_success_rate()method tocircuit_breaker_metricsretry_policy.h
retry_executor<T>template class with configurable retry logicretry_metricsstruct for tracking retry statisticscreate_exponential_backoff_config(),create_fixed_delay_config(),create_fibonacci_backoff_config()validate()method toretry_configshould_retrypredicatefault_tolerance_manager.h
fault_tolerance_manager<T>template class combining circuit breaker and retryfault_tolerance_configwith enable flags and config optionsfault_tolerance_metricsfor operation trackingexecute()andexecute_with_timeout()methodsis_healthy()method to check circuit breaker stateglobal_circuit_breaker_registry()global_retry_executor_registry()global_fault_tolerance_registry()test_fault_tolerance.cpp
is_ok()/is_err()instead of bool conversionCMakeLists.txtDocumentation
KNOWN_ISSUES.mdto reflect test enablementTest plan
Closes
Closes #329