Skip to content

showcases: add baselibs standalone showcase and ITF test - #411

Open
Saumya-R wants to merge 6 commits into
eclipse-score:mainfrom
qorix-group:saumya_showcase_baselibs
Open

Saumya-R wants to merge 6 commits into
eclipse-score:mainfrom
qorix-group:saumya_showcase_baselibs

Conversation

@Saumya-R

@Saumya-R Saumya-R commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

adds a standalone showcase for score_baselibs, which was the only integrated module in known_good.json without one, and adds an ITF test for it in platform_integration_tests.

Changes

Showcase

  • showcases/standalone/baselibs.score.json: new file with three examples:
    • Baselibs Builtin Logger Example: log_builtin sets up the built-in stdout logger and logs at every level, with a per-message context override.
    • Baselibs Custom Logger Example: log_custom installs a custom global logger and filters messages by level.
    • Baselibs C++ Logger Init Example: log_cpp_init sets up the logger from C++ and logs from Rust code.
  • showcases/standalone/BUILD: new baselibs score_pkg_bundle that packages the three example binaries from @score_baselibs//examples.
  • showcases/BUILD: registers baselibs_pkg_files in both the showcases bundle and the showcases_bundle filegroup (used for the QNX IFS).

Platform integration test

  • platform_integration_tests/baselibs/BUILD: new py_itf_test, built the same way as the existing tests (Docker on linux_x86_64, QEMU on qnx_x86_64).
  • platform_integration_tests/baselibs/test_baselibs_showcase.py: runs all three examples through the showcase CLI and checks that each one finishes successfully.
  • platform_integration_tests/BUILD: adds the new test to the pit suite.

baselibs patch

  • patches/baselibs/003-make-log-examples-visible.patch: makes //examples/log_builtin:log_builtin and //examples/log_custom:log_custompublic. Without it the bundle fails with a Bazel visibility error, because neither target setsvisibility. (log_cpp_init` is already public.)
  • known_good.json: adds the patch to score_baselibs.bazel_patches.
  • bazel_common/score_modules_target_sw.MODULE.bazel: regenerated with scripts/known_good/update_module_from_known_good.py.

This patch is a temporary workaround. Upstream to be fixed.
Once that is merged and the baselibs pin moves forward, patch 003 can be removed.

Testing

  • bazel build //showcases/... on linux_x86_64
  • bazel build //showcases/... on qnx_x86_64
  • bazel test //platform_integration_tests/baselibs on linux_x86_64
  • bazel test //platform_integration_tests/baselibs on qnx_x86_64
  • Ran the showcases manually with the CLI: /showcases/bin/cli --examples=...

Open points

  • Requirement traceability: the test uses partially_verifies=["<stkh_req id>"].
    Reviewers, please confirm the right baselibs stakeholder requirement.



@add_test_properties(
partially_verifies=["<baselibs stakeholder req id>"],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

fill placeholder

"""..."""
run_showcases(
target,
"Baselibs Builtin Logger Example",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would split into separate test cases

This branch has not been deployed

No deployments
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.

2 participants