| Files | Last commit | Last update |
|---|---|---|
refactor(api): keep the flat region helper out of the public API What: move FlatBufferRegion into ibmw::util::detail, name the members of the new allocator code in camelBack with a trailing underscore, and add tests for a null region, an exact fill with an empty buffer, a second array growing on the heap, and the capacity doubling overflow guard. Why: the region helper only serves the two flat allocators and its Take() relies on an earlier CanTake(), so it should not look like public API. New names follow the repository naming rule; FlatBufferArrayAllocator's public functions and layout are unchanged. Verification: host build passes; allocator tests 18/18; ctest 75/75; clang-format clean; function size check 0. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 4 days ago | |
refactor(src): put loop checks right after the call they depend on What: - dynamiclatch.h, the DDS RPC driver (server and client listeners) and the wide publisher sample no longer have a blank line between a call that produces a value and the while loop that checks it. Why: The code checker asks for a check of a call result to follow the call directly. Only blank lines are removed. Verification: build-ci incremental build without errors, ctest 74/75: the bounded queue timing test BoundedBlockingQueueTest.StarvedSpinnerDoesNotStallSteadyPushes failed, and also failed in 2 of 3 runs alone. Its sources and test binary are not changed by this work; the cause was not investigated. Build and ctest were run on the final tree, not on each commit. Other checks: clang-format clean. The wide publisher sample is not part of build-ci and was not compiled; the change there is one removed blank line. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 4 days ago | |
refactor(core): split long statements so continuation indent is even What: - The engine builds its subsystem table with one push_back per subsystem instead of one long braced list; the entries, their order and their fields are unchanged. - The service and transport catalog key hashes combine one field per statement into a named result (same XOR, same hash value). - The generic DDS pub/sub type picks the CDR version into a named constant before it creates the Cdr object (both fastcdr branches). - The gRPC extension builds its server options in a named constant before passing it to Initialize. - The DDS native identity round-trip test and the managed exact candidate compute the run token from named parts (time and process id in the test, a RunToken helper in the candidate). Why: The code checker flags statement ends that sit at an indent that is not a multiple of four. clang-format put them there for long nested expressions, so the statements are split instead of changing the format config. Behaviour, hash values and initialization order stay the same. Verification: build-ci incremental build without errors, ctest 74/75: the bounded queue timing test BoundedBlockingQueueTest.StarvedSpinnerDoesNotStallSteadyPushes failed, and also failed in 2 of 3 runs alone. Its sources and test binary are not changed by this work; the cause was not investigated. Build and ctest were run on the final tree, not on each commit. Other checks: the round-trip test and the candidate syntax-checked with communication trace on, clang-format clean, function metrics clean. The fastcdr v1 branch of the generic type was not compiled. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 4 days ago | |
perf(transport): keep the iceoryx POD loan fast path in one function What: mark IceoryxTransportDriver::LoanPodSample, split out of LoanSample during the cleanup, as always inline, the same as the shm driver. Why: on the shm driver the same split left the POD loan helper out of line, so every loan paid a second prologue and stack check; on the OHOS board that made two-thread POD publishing 6 to 8 ns slower than master. The iceoryx driver has the identical split, so keep it consistent. Verification: the helper no longer exists as a separate symbol in the object file; host build passes; ctest 75/75 including the iceoryx extension test; clang-format clean; function size check 0. The board benchmark does not cover iceoryx. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 4 days ago | |
refactor(cxx): tidy comments, placeholders and empty catch blocks What: - Comment lines that hold only "//" are removed from C/C++ sources and from the ibmw_gen templates; paragraphs in a comment block now follow each other directly. The C API headers drop the empty "Parameter definition:" heading above the Input/Output lists. - Argument labels written inside a call (/*name=*/value) move to a trailing comment of the same line; unnamed parameters lose their inline /*name*/ comment. - Every empty catch block states why the exception is ignored (destructor or noexcept path, C ABI boundary, best-effort cleanup, expected failure in a test). - ibmw_gen writes plain placeholder comments ("Fill in the msg fields here.", "Write the handler logic here, ...") instead of TODO notes. The user_code merge still recognises the older TODO wording of direct_* templates, so sources produced by older versions keep merging; a test covers this. The gRPC driver states its http-only limit without TODO. - In-tree generated samples and the ibmw-template project are regenerated. Why: the code check asks for no empty formatted header comments, for comments above or to the right of code, for a reason in every empty catch block and for no TODO/FIXME notes in delivered code. Verification: build-ci full build without errors; ctest passes (one DDS service test flaked under load and passes on rerun); ibmw_gen pytest 342 passed (only the known installed-build test fails); scripts/regen_in_tree.sh 18/18; clang-format clean. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 4 days ago | |
refactor(src): put loop checks right after the call they depend on What: - dynamiclatch.h, the DDS RPC driver (server and client listeners) and the wide publisher sample no longer have a blank line between a call that produces a value and the while loop that checks it. Why: The code checker asks for a check of a call result to follow the call directly. Only blank lines are removed. Verification: build-ci incremental build without errors, ctest 74/75: the bounded queue timing test BoundedBlockingQueueTest.StarvedSpinnerDoesNotStallSteadyPushes failed, and also failed in 2 of 3 runs alone. Its sources and test binary are not changed by this work; the cause was not investigated. Build and ctest were run on the final tree, not on each commit. Other checks: clang-format clean. The wide publisher sample is not part of build-ci and was not compiled; the change there is one removed blank line. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 4 days ago | |
refactor(style): drop blank lines at block edges and before result checks What: - Removed the blank line between a statement that stores a result and the "if" that checks it (232 places, comments in between are kept). - Removed blank lines right after an opening brace and right before a closing brace of a code block, including extern "C" blocks (56 places). Namespace blocks keep their blank lines. - Fixed the ibmw_gen templates that produced these blank lines (type support package entry point, publisher/subscriber registration checks, RPC client status checks) and regenerated the in-tree samples. Why: - The code checker wants a result check to follow the call directly and no empty lines at the edges of a block. The generator change keeps newly generated code in the same shape. Verification: - build-ci full rebuild: no errors; ctest 75/75 passed. - ibmw_gen tests: 346 passed, only the known failure that needs a build directory; scripts/regen_in_tree.sh 18/18 passed. - clang-format dry run, generated-code format check, function size check and license check: all clean; the blank-line scan finds no remaining place in tracked or generated code. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 4 days ago | |
fix(tests): close the zenoh peer config and undo small review findings What: - zenoh bus, RPC driver and transport driver tests close the peer.json5 stream before the bus reads it. - The iceoryx subscription stop helper and the publisher options helper are no longer noexcept, like the lambdas they replaced. - The release symbol checks also match the renamed fault hook variable. - The bounded queue starvation message says "items late" again. - The generated ROS 2 RPC client comment now gives the real reason ctx_ptr is kept: existing user code regions refer to it. Why: The peer config was written through a named stream that was still open, so the bus could read an empty file and use multicast discovery instead. The other changes undo small behaviour and text changes from the layout and rename work. Verification: build-ci builds without errors, ctest 75/75, ibmw_gen tests pass apart from the known installed-SDK case, clang-format and generated-code format checks clean. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 4 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> | 4 days ago |