-
Notifications
You must be signed in to change notification settings - Fork 458
feat(interactive): Implement service register and primary election #4589
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
base: main
Are you sure you want to change the base?
Conversation
Committed-by: xiaolei.zl from Dev container
Please check the preview of the documentation changes at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new integration test for the service registry and primary election features by adding a dedicated CI job in the GitHub Actions workflow.
- Adds a new "test-service-registry" job to validate the etcd-based service registry and primary election via a series of scripted steps.
- Configures the environment, downloads and launches etcd, executes the interactive_server, and validates key outputs.
Files not reviewed (15)
- .gitmodules: Language not supported
- flex/CMakeLists.txt: Language not supported
- flex/cmake/BuildEtcdCpp.cmake: Language not supported
- flex/engines/http_server/CMakeLists.txt: Language not supported
- flex/engines/http_server/actor/admin_actor.act.cc: Language not supported
- flex/engines/http_server/graph_db_service.cc: Language not supported
- flex/engines/http_server/graph_db_service.h: Language not supported
- flex/engines/http_server/service_register.cc: Language not supported
- flex/engines/http_server/service_register.h: Language not supported
- flex/storages/rt_mutable_graph/schema.cc: Language not supported
- flex/storages/rt_mutable_graph/schema.h: Language not supported
- flex/third_party/cpprestsdk: Language not supported
- flex/third_party/etcd-cpp-apiv3: Language not supported
- flex/utils/service_utils.cc: Language not supported
- flex/utils/service_utils.h: Language not supported
Co-authored-by: Copilot <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4589 +/- ##
=======================================
Coverage 44.76% 44.76%
=======================================
Files 12 12
Lines 592 592
=======================================
Hits 265 265
Misses 327 327 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Committed-by: xiaolei.zl from Dev container
/cc @yecol @sighingnow, this issus/pr has had no activity for a long time, please help to review the status and assign people to work on it. |
etcd-cpp-api-v3
andcpprestsdk
as submodule dependencies.ServiceRegister
which registers the server itself to the etcd-based service registry.promote()
function, which should be called after adding the primary key-value pair succeeds.