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

[controller] add ncp host #2329

Merged
merged 1 commit into from
Jun 20, 2024
Merged

[controller] add ncp host #2329

merged 1 commit into from
Jun 20, 2024

Conversation

Irving-cl
Copy link
Contributor

@Irving-cl Irving-cl commented Jun 14, 2024

This PR adds the NcpHost class which is the implementation of
ThreadController under NCP case.

This PR updates ThreadController::Create to create NcpHost under
the NCP case, allowing otbr-agent to start when the co-processor is
a NCP, though no functionalities have been implemented yet.

This PR also adds a CI workflow to use expect script to test otbr-agent
in NCP case. For this PR, a simple test is added to start otbr-agent
with NCP (dry run) and check the co-processor version.

This PR is a subset of PR #2283

src/ncp/ncp_host.hpp Outdated Show resolved Hide resolved
Copy link

codecov bot commented Jun 14, 2024

Codecov Report

Attention: Patch coverage is 58.62069% with 12 lines in your changes missing coverage. Please review.

Project coverage is 37.56%. Comparing base (2b41187) to head (e3a04d8).
Report is 692 commits behind head on main.

Files Patch % Lines
src/ncp/ncp_host.cpp 55.00% 9 Missing ⚠️
src/ncp/ncp_host.hpp 0.00% 2 Missing ⚠️
src/ncp/thread_host.cpp 85.71% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2329       +/-   ##
===========================================
- Coverage   55.77%   37.56%   -18.22%     
===========================================
  Files          87       93        +6     
  Lines        6890    10560     +3670     
  Branches        0      763      +763     
===========================================
+ Hits         3843     3967      +124     
- Misses       3047     6392     +3345     
- Partials        0      201      +201     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Irving-cl Irving-cl marked this pull request as ready for review June 14, 2024 08:23
@Irving-cl Irving-cl requested a review from wgtdkp June 14, 2024 08:32
src/ncp/ncp_host.cpp Outdated Show resolved Hide resolved
src/ncp/ncp_host.hpp Outdated Show resolved Hide resolved
src/ncp/ncp_host.hpp Outdated Show resolved Hide resolved
src/ncp/thread_controller.cpp Outdated Show resolved Hide resolved
src/ncp/ncp_host.hpp Outdated Show resolved Hide resolved
Copy link
Contributor

@zhanglongxia zhanglongxia left a comment

Choose a reason for hiding this comment

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

LGTM

src/ncp/ncp_host.hpp Outdated Show resolved Hide resolved
@Irving-cl Irving-cl force-pushed the add_ncp_host branch 3 times, most recently from 44d1ac8 to 5cc76cb Compare June 19, 2024 00:12
@Irving-cl Irving-cl requested a review from superwhd June 19, 2024 02:40
Copy link
Contributor

@superwhd superwhd left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Irving-cl Irving-cl requested a review from jwhui June 19, 2024 15:45
script/test Outdated Show resolved Hide resolved
.github/workflows/ncp_mode.yml Outdated Show resolved Hide resolved
@jwhui jwhui requested a review from abtink June 19, 2024 23:45
@Irving-cl Irving-cl force-pushed the add_ncp_host branch 4 times, most recently from 92e54a9 to 6edaae2 Compare June 20, 2024 02:24
@Irving-cl Irving-cl requested a review from jwhui June 20, 2024 03:15
@jwhui jwhui merged commit 7b7f332 into openthread:main Jun 20, 2024
32 checks passed
@Irving-cl Irving-cl deleted the add_ncp_host branch June 20, 2024 05:49
@Irving-cl Irving-cl mentioned this pull request Jul 23, 2024
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants