Skip to content
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

Draft
wants to merge 40 commits into
base: main
Choose a base branch
from

Conversation

oguzcanoguz
Copy link
Contributor

No description provided.

@oguzcanoguz oguzcanoguz requested a review from a team as a code owner January 25, 2024 14:40
Copy link
Contributor

github-actions bot commented Jan 25, 2024

Dependency Review

The following issues were found:
  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 1 package(s) with unknown licenses.
See the Details below.

License Issues

osal/threadx/CMakeLists.txt

PackageVersionLicenseIssue Type
eclipse-threadx/threadx07eac307405dbf09d409844e31c37b0649d6c074NullUnknown License

OpenSSF Scorecard

PackageVersionScoreDetails
unknown/eclipse-threadx/threadx 07eac307405dbf09d409844e31c37b0649d6c074 UnknownUnknown
unknown/azure-rtos/threadx e11c166a4045d80ea74fe917e5608474754f5067 UnknownUnknown

Scanned Manifest Files

osal/threadx/CMakeLists.txt

Copy link
Contributor

github-actions bot commented Jan 25, 2024

🦙 MegaLinter status: ⚠️ WARNING

Descriptor Linter Files Fixed Errors Elapsed time
✅ ACTION actionlint 12 0 0.07s
✅ CPP clang-format 970 7 0 7.48s
✅ DOCKERFILE hadolint 2 0 0.11s
✅ JSON jsonlint 9 0 0.19s
✅ JSON prettier 9 0 0 0.92s
⚠️ MARKDOWN markdownlint 6 0 4 1.61s
⚠️ MARKDOWN markdown-link-check 6 2 59.19s
✅ MARKDOWN markdown-table-formatter 6 0 0 0.38s
✅ REPOSITORY checkov yes no 22.23s
✅ REPOSITORY git_diff yes no 0.05s
✅ REPOSITORY grype yes no 18.21s
✅ REPOSITORY secretlint yes no 8.28s
✅ REPOSITORY trivy yes no 11.86s
✅ REPOSITORY trivy-sbom yes no 0.73s
✅ REPOSITORY trufflehog yes no 3.05s
⚠️ SPELL lychee 139 6 2.87s
⚠️ YAML prettier 22 0 1 1.36s
✅ YAML v8r 22 0 12.38s
✅ YAML yamllint 22 0 0.47s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

protobuf/meta_services/ServiceDiscoveryEcho.cpp Outdated Show resolved Hide resolved
protobuf/meta_services/ServiceDiscoveryEcho.cpp Outdated Show resolved Hide resolved
protobuf/meta_services/ServiceDiscoveryEcho.cpp Outdated Show resolved Hide resolved
protobuf/meta_services/ServiceDiscoveryEcho.cpp Outdated Show resolved Hide resolved
protobuf/meta_services/ServiceDiscoveryEcho.cpp Outdated Show resolved Hide resolved
protobuf/meta_services/test/TestServiceDiscoveryEcho.cpp Outdated Show resolved Hide resolved
protobuf/meta_services/test/TestServiceDiscoveryEcho.cpp Outdated Show resolved Hide resolved
protobuf/meta_services/test/TestServiceDiscoveryEcho.cpp Outdated Show resolved Hide resolved
oguzcanoguz and others added 9 commits January 25, 2024 15:55
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>
@oguzcanoguz oguzcanoguz reopened this Jan 26, 2024
@oguzcanoguz oguzcanoguz marked this pull request as draft January 26, 2024 14:06
Copy link

sonarcloud bot commented Jan 26, 2024

@richardapeters richardapeters changed the title feat: Add meta proto service for service discovery feat: add meta proto service for service discovery Feb 21, 2024
virtual ~ServiceDiscoveryEcho() = default;

void FindFirstServiceInRange(uint32_t startServiceId, uint32_t endServiceId) override;
void NotifyServiceChanges(bool value) override
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MegaLinter] reported by reviewdog 🐶

Suggested change
void NotifyServiceChanges(bool value) override
void NotifyServiceChanges(bool value) override

}

protected:
bool IsProxyServiceSupported(uint32_t& serviceId) const;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MegaLinter] reported by reviewdog 🐶

Suggested change
bool IsProxyServiceSupported(uint32_t& serviceId) const;
bool IsProxyServiceSupported(uint32_t& serviceId) const;

void ServiceDiscoveryEcho::UnregisterObserver(infra::Observer<Service, Echo>* observer)
{
services::Echo::UnregisterObserver(observer);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MegaLinter] reported by reviewdog 🐶

Suggested change


virtual ~ServiceDiscoveryEcho() = default;

//Implementation of services::ServiceDiscovery
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MegaLinter] reported by reviewdog 🐶

Suggested change
//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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MegaLinter] reported by reviewdog 🐶

Suggested change
//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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MegaLinter] reported by reviewdog 🐶

Suggested change
//Implementation of services::Echo
// Implementation of services::Echo

Comment on lines 59 to 61
{
proxy.FindFirstServiceInRange(startServiceId, endServiceId);
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MegaLinter] reported by reviewdog 🐶

Suggested change
{
proxy.FindFirstServiceInRange(startServiceId, endServiceId);
});
{
proxy.FindFirstServiceInRange(startServiceId, endServiceId);
});

Comment on lines 67 to 69
{
proxy.NotifyServiceChanges(allow);
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MegaLinter] reported by reviewdog 🐶

Suggested change
{
proxy.NotifyServiceChanges(allow);
});
{
proxy.NotifyServiceChanges(allow);
});

}
};

TEST_F(ServiceDiscoveryTest, return_no_service)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MegaLinter] reported by reviewdog 🐶

Suggested change
TEST_F(ServiceDiscoveryTest, return_no_service)
TEST_F(ServiceDiscoveryTest, return_no_service)

TEST_F(ServiceDiscoveryTest, notify_service_change)
{
NotifyServiceChanges(true);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MegaLinter] reported by reviewdog 🐶

Suggested change

services::ServiceStub service1_{ serviceDiscoveryEcho, 1 };
services::ServiceStubProxy service1Proxy{ echo, 1 };


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MegaLinter] reported by reviewdog 🐶

Suggested change

@philips-software philips-software deleted a comment from github-actions bot Oct 4, 2024
@philips-software philips-software deleted a comment from github-actions bot Oct 4, 2024
@philips-software philips-software deleted a comment from github-actions bot Oct 4, 2024
@philips-software philips-software deleted a comment from github-actions bot Oct 4, 2024
@philips-software philips-software deleted a comment from github-actions bot Oct 4, 2024
@philips-software philips-software deleted a comment from github-actions bot Oct 4, 2024
@philips-software philips-software deleted a comment from github-actions bot Oct 4, 2024
@philips-software philips-software deleted a comment from github-actions bot Oct 4, 2024
@philips-software philips-software deleted a comment from github-actions bot Oct 4, 2024
@philips-software philips-software deleted a comment from github-actions bot Oct 4, 2024
@philips-software philips-software deleted a comment from github-actions bot Oct 4, 2024
@philips-software philips-software deleted a comment from github-actions bot Oct 4, 2024
@philips-software philips-software deleted a comment from github-actions bot Oct 4, 2024
@philips-software philips-software deleted a comment from github-actions bot Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant