-
Notifications
You must be signed in to change notification settings - Fork 31
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
feat: add meta proto service for service discovery #543
base: main
Are you sure you want to change the base?
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files |
🦙 MegaLinter status:
|
Descriptor | Linter | Files | Fixed | Errors | Elapsed time |
---|---|---|---|---|---|
✅ ACTION | actionlint | 12 | 0 | 0.05s | |
✅ CPP | clang-format | 1012 | 3 | 0 | 6.54s |
✅ DOCKERFILE | hadolint | 2 | 0 | 0.15s | |
✅ JSON | jsonlint | 7 | 0 | 0.2s | |
✅ JSON | prettier | 7 | 0 | 0 | 0.74s |
markdownlint | 6 | 0 | 4 | 1.3s | |
markdown-link-check | 6 | 1 | 76.82s | ||
✅ MARKDOWN | markdown-table-formatter | 6 | 0 | 0 | 0.21s |
✅ REPOSITORY | checkov | yes | no | 19.93s | |
✅ REPOSITORY | git_diff | yes | no | 0.05s | |
✅ REPOSITORY | grype | yes | no | 9.34s | |
✅ REPOSITORY | ls-lint | yes | no | 0.07s | |
✅ REPOSITORY | secretlint | yes | no | 6.16s | |
✅ REPOSITORY | trivy | yes | no | 4.97s | |
✅ REPOSITORY | trivy-sbom | yes | no | 0.08s | |
✅ REPOSITORY | trufflehog | yes | no | 4.13s | |
lychee | 140 | 1 | 3.99s | ||
prettier | 22 | 1 | 1 | 0.83s | |
✅ YAML | v8r | 22 | 0 | 9.43s | |
✅ YAML | yamllint | 22 | 0 | 0.5s |
See detailed report in MegaLinter reports
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
virtual ~ServiceDiscoveryEcho() = default; | ||
|
||
void FindFirstServiceInRange(uint32_t startServiceId, uint32_t endServiceId) override; | ||
void NotifyServiceChanges(bool value) override |
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.
[MegaLinter] reported by reviewdog 🐶
void NotifyServiceChanges(bool value) override | |
void NotifyServiceChanges(bool value) override |
} | ||
|
||
protected: | ||
bool IsProxyServiceSupported(uint32_t& serviceId) const; |
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.
[MegaLinter] reported by reviewdog 🐶
bool IsProxyServiceSupported(uint32_t& serviceId) const; | |
bool IsProxyServiceSupported(uint32_t& serviceId) const; |
void ServiceDiscoveryEcho::UnregisterObserver(infra::Observer<Service, Echo>* observer) | ||
{ | ||
services::Echo::UnregisterObserver(observer); | ||
|
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.
[MegaLinter] reported by reviewdog 🐶
|
||
virtual ~ServiceDiscoveryEcho() = default; | ||
|
||
//Implementation of services::ServiceDiscovery |
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.
[MegaLinter] reported by reviewdog 🐶
//Implementation of services::ServiceDiscovery | |
// Implementation of services::ServiceDiscovery |
void FindFirstServiceInRange(uint32_t startServiceId, uint32_t endServiceId) override; | ||
void NotifyServiceChanges(bool value) override; | ||
|
||
//Implementation of services::Service |
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.
[MegaLinter] reported by reviewdog 🐶
//Implementation of services::Service | |
// Implementation of services::Service |
bool AcceptsService(uint32_t id) const override; | ||
infra::SharedPtr<services::MethodDeserializer> StartMethod(uint32_t serviceId, uint32_t methodId, uint32_t size, const services::EchoErrorPolicy& errorPolicy) override; | ||
|
||
//Implementation of services::Echo |
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.
[MegaLinter] reported by reviewdog 🐶
//Implementation of services::Echo | |
// Implementation of services::Echo |
{ | ||
proxy.FindFirstServiceInRange(startServiceId, endServiceId); | ||
}); |
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.
[MegaLinter] reported by reviewdog 🐶
{ | |
proxy.FindFirstServiceInRange(startServiceId, endServiceId); | |
}); | |
{ | |
proxy.FindFirstServiceInRange(startServiceId, endServiceId); | |
}); |
{ | ||
proxy.NotifyServiceChanges(allow); | ||
}); |
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.
[MegaLinter] reported by reviewdog 🐶
{ | |
proxy.NotifyServiceChanges(allow); | |
}); | |
{ | |
proxy.NotifyServiceChanges(allow); | |
}); |
} | ||
}; | ||
|
||
TEST_F(ServiceDiscoveryTest, return_no_service) |
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.
[MegaLinter] reported by reviewdog 🐶
TEST_F(ServiceDiscoveryTest, return_no_service) | |
TEST_F(ServiceDiscoveryTest, return_no_service) |
TEST_F(ServiceDiscoveryTest, notify_service_change) | ||
{ | ||
NotifyServiceChanges(true); | ||
|
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.
[MegaLinter] reported by reviewdog 🐶
services::ServiceStub service1_{ serviceDiscoveryEcho, 1 }; | ||
services::ServiceStubProxy service1Proxy{ echo, 1 }; | ||
|
||
|
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.
[MegaLinter] reported by reviewdog 🐶
…proto_service_discovery
This commit misses many unit tests!
No description provided.