Skip to content

Test that Rust and C++ ipc_bridge example work with each other#39

Draft
lurtz wants to merge 5 commits intoeclipse-score:mainfrom
elektrobit-contrib:run-examples-in-ci
Draft

Test that Rust and C++ ipc_bridge example work with each other#39
lurtz wants to merge 5 commits intoeclipse-score:mainfrom
elektrobit-contrib:run-examples-in-ci

Conversation

@lurtz
Copy link
Contributor

@lurtz lurtz commented Jul 29, 2025

CI should check that C++ and Rust code can communicate via mw::com. To simplify the tests the CLI interface of the Rust code has been more aligned with the C++ interface.

Fixes #38

@lurtz lurtz changed the title Test that Rust and C++ ipb_bridge example work with each other Test that Rust and C++ ipc_bridge example work with each other Jul 29, 2025
@lurtz
Copy link
Contributor Author

lurtz commented Aug 12, 2025

test is locally still unstable. Sometimes service discovery does not work

UPDATE fixed with latest rebase

@lurtz
Copy link
Contributor Author

lurtz commented Aug 15, 2025

Even when tests should run serialized via using tags, I see crashes. Following command may trigger failures

bazel test --nocache_test_results //score/mw/com/impl/bindings/lola/test:proxy_component_test //score/mw/com/example/ipc_bridge:integration_test_ipc_bridge //score/mw/com/impl/plumbing:unit_test //score/mw/com/impl/bindings/lola/test:skeleton_component_test  //score/mw/com/impl/bindings/lola/test:skeleton_event_component_test //score/mw/com/impl/bindings/lola/service_discovery/client:service_discovery_client_test

UPDATE fixed with latest rebase

@lurtz lurtz force-pushed the run-examples-in-ci branch from 602cece to 78ed8a2 Compare August 15, 2025 11:55
@lurtz lurtz marked this pull request as ready for review August 15, 2025 13:25
@lurtz lurtz force-pushed the run-examples-in-ci branch 6 times, most recently from 6b566d8 to 3cc07f7 Compare August 19, 2025 11:38
@lurtz lurtz force-pushed the run-examples-in-ci branch from d2e7de9 to 3710b44 Compare August 26, 2025 07:56
@lurtz lurtz force-pushed the run-examples-in-ci branch from 3710b44 to 00249e7 Compare September 8, 2025 12:50
@lurtz lurtz force-pushed the run-examples-in-ci branch 2 times, most recently from 51b515c to 4be07b3 Compare September 25, 2025 11:51
@LittleHuba
Copy link
Contributor

Instead of using a shell script we should use a test framework. @draganbjedov, I'm not sure whether SCTF/ITF is far enough in S-CORE to support this? Could you please take a look?

lurtz added 5 commits October 30, 2025 10:26
Using `--help` lead definitely to a crash, which should not happen,
because `--help` is normal behavior.

Also `main()` was missing a return statement which is ok in C/C++, but
we have no control of the return value in this case. Now it is always 0,
when terminating without errors.
CI should check that C++ and Rust code can communicate via mw::com to
avoid having surprise regressions.
There is no Windows specific devcontainer anymore and all can use the
same devcontainer.
Copy link
Contributor

@LittleHuba LittleHuba left a comment

Choose a reason for hiding this comment

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

This test should be shifted to an integration test to simplify the logic and use our infrastructure.
@lurtz would you mind?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

Bug: Example C++ application crash when using --help

4 participants