| Files | Last commit | Last update |
|---|---|---|
refactor(selfdev): split long coroutine tests and the shared-library test driver What: - The shared-library test driver gets helpers for the dlopen flags, the symbol lookup and the main-thread slot check. - The value-lifetime test moves its scope and detached-start part into a helper. - The concurrent spawn test moves the spawner loop into a helper. Why: These functions were over the size limits for length, branch count or nesting depth. Behaviour and output are unchanged. Verification: - Size check on selfdev/coro: no violations. - Coroutine unit tests: 61 pass; coroutine and shared-library ctest entries: 17/17 pass. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(selfdev): split long coroutine tests and the shared-library test driver What: - The shared-library test driver gets helpers for the dlopen flags, the symbol lookup and the main-thread slot check. - The value-lifetime test moves its scope and detached-start part into a helper. - The concurrent spawn test moves the spawner loop into a helper. Why: These functions were over the size limits for length, branch count or nesting depth. Behaviour and output are unchanged. Verification: - Size check on selfdev/coro: no violations. - Coroutine unit tests: 61 pass; coroutine and shared-library ctest entries: 17/17 pass. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(selfdev): split long coroutine tests and the shared-library test driver What: - The shared-library test driver gets helpers for the dlopen flags, the symbol lookup and the main-thread slot check. - The value-lifetime test moves its scope and detached-start part into a helper. - The concurrent spawn test moves the spawner loop into a helper. Why: These functions were over the size limits for length, branch count or nesting depth. Behaviour and output are unchanged. Verification: - Size check on selfdev/coro: no violations. - Coroutine unit tests: 61 pass; coroutine and shared-library ctest entries: 17/17 pass. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
chore(license): put the Apache-2.0 header on every source file, add OAT.xml What: Every source, script, build and configuration file now starts with the full Apache-2.0 license header and the copyright line "Copyright (c) 2025-2026 IB-Robot Group & openEuler Embedded SIG & openharmony-robot sig_RoboFrame." (no comma after the years). The "All rights reserved." line and the Mulan PSL v2 line of the loaned message demo are removed; the repository LICENSE is Apache-2.0. A shebang, coding line or XML declaration stays first. Jinja2 templates carry the header in a template comment, so it is not copied into rendered files. The new OAT.xml registers the copyright holders and the license, and filters files that cannot carry a header (JSON, golden generator output, patches, the recorded rosbag test data, documentation), each with its reason. Why: The OpenHarmony CI open-source audit reported 3527 fatal issues: files without a license header, copyright lines it does not accept, and binary files not registered. Only file headers and OAT.xml change; no code changes. Verification: Release hygiene and docs governance pass. The header script is idempotent (a second run changes nothing) and its diff only removes old header lines and the comment separators after them. ibmw_gen tests and scripts/tests give the same results as before the change; the installed-consumer test builds and installs the whole tree. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
chore(license): put the Apache-2.0 header on every source file, add OAT.xml What: Every source, script, build and configuration file now starts with the full Apache-2.0 license header and the copyright line "Copyright (c) 2025-2026 IB-Robot Group & openEuler Embedded SIG & openharmony-robot sig_RoboFrame." (no comma after the years). The "All rights reserved." line and the Mulan PSL v2 line of the loaned message demo are removed; the repository LICENSE is Apache-2.0. A shebang, coding line or XML declaration stays first. Jinja2 templates carry the header in a template comment, so it is not copied into rendered files. The new OAT.xml registers the copyright holders and the license, and filters files that cannot carry a header (JSON, golden generator output, patches, the recorded rosbag test data, documentation), each with its reason. Why: The OpenHarmony CI open-source audit reported 3527 fatal issues: files without a license header, copyright lines it does not accept, and binary files not registered. Only file headers and OAT.xml change; no code changes. Verification: Release hygiene and docs governance pass. The header script is idempotent (a second run changes nothing) and its diff only removes old header lines and the comment separators after them. ibmw_gen tests and scripts/tests give the same results as before the change; the installed-consumer test builds and installs the whole tree. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
chore(license): put the Apache-2.0 header on every source file, add OAT.xml What: Every source, script, build and configuration file now starts with the full Apache-2.0 license header and the copyright line "Copyright (c) 2025-2026 IB-Robot Group & openEuler Embedded SIG & openharmony-robot sig_RoboFrame." (no comma after the years). The "All rights reserved." line and the Mulan PSL v2 line of the loaned message demo are removed; the repository LICENSE is Apache-2.0. A shebang, coding line or XML declaration stays first. Jinja2 templates carry the header in a template comment, so it is not copied into rendered files. The new OAT.xml registers the copyright holders and the license, and filters files that cannot carry a header (JSON, golden generator output, patches, the recorded rosbag test data, documentation), each with its reason. Why: The OpenHarmony CI open-source audit reported 3527 fatal issues: files without a license header, copyright lines it does not accept, and binary files not registered. Only file headers and OAT.xml change; no code changes. Verification: Release hygiene and docs governance pass. The header script is idempotent (a second run changes nothing) and its diff only removes old header lines and the comment separators after them. ibmw_gen tests and scripts/tests give the same results as before the change; the installed-consumer test builds and installs the whole tree. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(style): keep every code block indented by multiples of four spaces What: - Lambdas whose bodies ended up at an odd column (a lambda passed inside an argument list or a braced initializer and aligned after the open bracket) are now named locals declared before the statement, or static member functions where the table is a member initializer (logger and executor tables, the iceoryx subscription teardown). - The bag option tables use small named setter functions for the four options whose lambdas did not fit on one line. - ibmw_gen writes a named factory function for a module whose registration lambda does not fit on one line, instead of wrapping the lambda inside the registration array; in-tree generated samples and the hand-written pkg_main files follow the same shape. Why: - The code check wants every line of a code block indented by a multiple of four spaces. clang-format indents a lambda body relative to the column of the lambda, so a lambda aligned after "(" or "{" puts the whole body at an odd column. No .clang-format option fixes this without re-indenting thousands of unrelated lines, so the code is shaped so that clang-format puts the bodies at statement level. Verification: - A repository-wide check for block lines with an indentation that is not a multiple of four reports 0 (was 302 lines in 77 places). - clang-format dry run over all tracked C/C++ files: 0 findings; generated-output format check: 0 changed lines; function metrics: 0. - build-ci: make -k without errors; ctest 75/75 passed. - ibmw_gen tests: 346 passed, only the known build-dir test fails. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(style): keep every code block indented by multiples of four spaces What: - Lambdas whose bodies ended up at an odd column (a lambda passed inside an argument list or a braced initializer and aligned after the open bracket) are now named locals declared before the statement, or static member functions where the table is a member initializer (logger and executor tables, the iceoryx subscription teardown). - The bag option tables use small named setter functions for the four options whose lambdas did not fit on one line. - ibmw_gen writes a named factory function for a module whose registration lambda does not fit on one line, instead of wrapping the lambda inside the registration array; in-tree generated samples and the hand-written pkg_main files follow the same shape. Why: - The code check wants every line of a code block indented by a multiple of four spaces. clang-format indents a lambda body relative to the column of the lambda, so a lambda aligned after "(" or "{" puts the whole body at an odd column. No .clang-format option fixes this without re-indenting thousands of unrelated lines, so the code is shaped so that clang-format puts the bodies at statement level. Verification: - A repository-wide check for block lines with an indentation that is not a multiple of four reports 0 (was 302 lines in 77 places). - clang-format dry run over all tracked C/C++ files: 0 findings; generated-output format check: 0 changed lines; function metrics: 0. - build-ci: make -k without errors; ctest 75/75 passed. - ibmw_gen tests: 346 passed, only the known build-dir test fails. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(style): keep every code block indented by multiples of four spaces What: - Lambdas whose bodies ended up at an odd column (a lambda passed inside an argument list or a braced initializer and aligned after the open bracket) are now named locals declared before the statement, or static member functions where the table is a member initializer (logger and executor tables, the iceoryx subscription teardown). - The bag option tables use small named setter functions for the four options whose lambdas did not fit on one line. - ibmw_gen writes a named factory function for a module whose registration lambda does not fit on one line, instead of wrapping the lambda inside the registration array; in-tree generated samples and the hand-written pkg_main files follow the same shape. Why: - The code check wants every line of a code block indented by a multiple of four spaces. clang-format indents a lambda body relative to the column of the lambda, so a lambda aligned after "(" or "{" puts the whole body at an odd column. No .clang-format option fixes this without re-indenting thousands of unrelated lines, so the code is shaped so that clang-format puts the bodies at statement level. Verification: - A repository-wide check for block lines with an indentation that is not a multiple of four reports 0 (was 302 lines in 77 places). - clang-format dry run over all tracked C/C++ files: 0 findings; generated-output format check: 0 changed lines; function metrics: 0. - build-ci: make -k without errors; ctest 75/75 passed. - ibmw_gen tests: 346 passed, only the known build-dir test fails. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(format): switch C and C++ sources to the OpenHarmony code style What: - Replace .clang-format with the OpenHarmony style required by the daily code check: 4-space indent, 120 columns, function left brace on its own line, braces on every if/for/while body, case labels indented. - Run clang-format 18 over all hand-written C and C++ files; the files generated by ibmw_gen (the kept *_gen samples and the template project) are left for the generator change that follows, except the headers the generator copies verbatim from the reformatted sources. - plain_dds_pubsub_type.h: the Fast DDS version #if now only switches the function signature, so both branches share one body brace; clang-format could not indent the old form. - Tests that search source text for a fixed indentation now use the new indentation or ignore it. Why: About 32 000 of the reported findings are layout rules (indentation, brace position, line width) that clang-format handles mechanically. This commit only changes whitespace, adds braces, splits long string literals and sorts using-declarations; a check of every file confirmed no other tokens changed and every #if branch keeps its brace balance. Verification: - Full build with -Werror: no errors; ctest: 75 of 75 passed - pytest src/tools/ibmw_gen/tests: 332 passed, 1 known failure (needs IBMW_BUILD_DIR) - scripts/tests: same results as before the change - scripts/check_clang_format.sh and its tests pass Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago |
| Files | Last commit | Last update |
|---|---|---|
| 5 days ago | ||
| 5 days ago | ||
| 5 days ago | ||
| 5 days ago | ||
| 5 days ago | ||
| 5 days ago | ||
| 5 days ago | ||
| 5 days ago | ||
| 5 days ago | ||
| 5 days ago |