Skip to content

CW_17 export#100

Merged
antonkri merged 49 commits intoeclipse-score:mainfrom
Y-Vaishnavi:7CECE363F0EE64EE11A5B7EC828632DD
Apr 30, 2026
Merged

CW_17 export#100
antonkri merged 49 commits intoeclipse-score:mainfrom
Y-Vaishnavi:7CECE363F0EE64EE11A5B7EC828632DD

Conversation

@Y-Vaishnavi
Copy link
Copy Markdown
Contributor

@Y-Vaishnavi Y-Vaishnavi commented Apr 27, 2026

  • Target adaptations to migrate to single RegistryAwareRecorderFactory (IRecorderFactory) implementation which now sits in score_baselibs. It provides a static plugin-based design that enables per-binary backend selection enabling single 'mw/log' target for all.
  • Updated documentation with new puml files for detailed design
  • Bug Fixes and optimizations resolving Severity 1, 2 based on adaptive autosar C++17 coding guidelines.
  • Update direct deps: score_baselibs to v0.2.7 and score_communication to v0.2.1
  • Regenerate [MODULE.bazel.lock] for updated dependencies

Notes for Reviewer

Pre-Review Checklist for the PR Author

  • PR title is short, expressive and meaningful
  • Commits are properly organized
  • Relevant issues are linked in the References section
  • Tests are conducted
  • Unit tests are added

Checklist for the PR Reviewer

  • Commits are properly organized and messages are according to the guideline
  • Unit tests have been written for new behavior
  • Public API is documented
  • PR title describes the changes

Post-review Checklist for the PR Author

  • All open points are addressed and tracked via issues

References

Closes #

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 27, 2026

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run --lockfile_mode=error //:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server (8.3.0) and connecting to it...
INFO: Invocation ID: a87907c6-87d6-4ea2-a2f3-edda3da41970
Computing main repo mapping: 
Computing main repo mapping: 
WARNING: For repository 'rules_python', the root module requires module version rules_python@1.4.1, but got rules_python@1.8.3 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'bazel_skylib', the root module requires module version bazel_skylib@1.7.1, but got bazel_skylib@1.9.0 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'rules_cc', the root module requires module version rules_cc@0.1.1, but got rules_cc@0.2.17 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'aspect_rules_lint', the root module requires module version aspect_rules_lint@1.0.3, but got aspect_rules_lint@2.3.0 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'buildifier_prebuilt', the root module requires module version buildifier_prebuilt@7.3.1, but got buildifier_prebuilt@8.5.1 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'score_tooling', the root module requires module version score_tooling@1.1.2, but got score_tooling@1.2.0 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'score_rust_policies', the root module requires module version score_rust_policies@0.0.3, but got score_rust_policies@0.0.5 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'score_crates', the root module requires module version score_crates@0.0.6, but got score_crates@0.0.9 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'googletest', the root module requires module version googletest@1.17.0.bcr.1, but got googletest@1.17.0.bcr.2 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'rapidjson', the root module requires module version rapidjson@1.1.0, but got rapidjson@1.1.0.bcr.20241007 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Loading: 
Loading: 4 packages loaded
WARNING: Target pattern parsing failed.
ERROR: Skipping '//:license-check': no such target '//:license-check': target 'license-check' not declared in package '' defined by /home/runner/work/logging/logging/BUILD
Analyzing: 0 targets (5 packages loaded)
ERROR: no such target '//:license-check': target 'license-check' not declared in package '' defined by /home/runner/work/logging/logging/BUILD
INFO: Elapsed time: 7.931s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

@github-actions
Copy link
Copy Markdown

The created documentation from the pull request is available at: docu-html

@Y-Vaishnavi Y-Vaishnavi marked this pull request as draft April 27, 2026 13:48
@Y-Vaishnavi Y-Vaishnavi force-pushed the 7CECE363F0EE64EE11A5B7EC828632DD branch from 72c6b50 to 00b02a6 Compare April 27, 2026 14:06
@Y-Vaishnavi Y-Vaishnavi force-pushed the 7CECE363F0EE64EE11A5B7EC828632DD branch from 00b02a6 to 1db44c2 Compare April 27, 2026 14:10
@rmaddikery rmaddikery marked this pull request as ready for review April 27, 2026 15:03
@Y-Vaishnavi Y-Vaishnavi changed the title Export changes after running copybara from spp CW_17 export Apr 27, 2026
@rmaddikery
Copy link
Copy Markdown
Contributor

Waiting for QNX8 builds to succeed ..

Comment thread MODULE.bazel Outdated
@@ -100,14 +100,14 @@ bazel_dep(name = "rapidjson", version = "1.1.0")
bazel_dep(name = "score_baselibs", version = "0.2.4")
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.

bazel_dep(name = "score_baselibs", version = "0.2.6")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated in latest commit, Thanks!

Comment thread MODULE.bazel Outdated
remote = "https://github.com/eclipse-score/baselibs.git",
)

bazel_dep(name = "score_communication", version = "0.1.2")
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.

bazel_dep(name = "score_communication", version = "0.2.0")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated in latest commit, Thanks!

Copy link
Copy Markdown
Contributor

@rmaddikery rmaddikery left a comment

Choose a reason for hiding this comment

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

bump the direct deps (baselibs and communication) to latest versions please. The goal of this export is to keep logging in sync with the latest releases of those for v0.7

@Y-Vaishnavi Y-Vaishnavi force-pushed the 7CECE363F0EE64EE11A5B7EC828632DD branch from 1db44c2 to f78ec36 Compare April 27, 2026 15:12
@Y-Vaishnavi Y-Vaishnavi requested a review from rmaddikery April 27, 2026 15:13
@Y-Vaishnavi Y-Vaishnavi temporarily deployed to workflow-approval April 29, 2026 15:14 — with GitHub Actions Inactive
rmaddikery
rmaddikery previously approved these changes Apr 29, 2026
Comment thread score/mw/log/backend/BUILD Outdated
Comment thread score/mw/log/backend/BUILD Outdated
Copy link
Copy Markdown
Contributor

@rmaddikery rmaddikery left a comment

Choose a reason for hiding this comment

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

Y-Vaishnavi and others added 3 commits April 30, 2026 07:51
- Update score_baselibs commit to latest main (e87426c8)
- Update score_communication commit to latest main (bc1e3c54)
- Replace backend_table with minimal target in backend BUILD
  (backend_table visibility restricted to baselibs subpackages)
- Replace recorder_factory with console target in score_log_bridge BUILD
- Replace recorder_factory with console target in score_log_bridge_cpp_init BUILD
- @score_baselibs//score/mw/log target that supports
additive backends should be used instead.
@Y-Vaishnavi Y-Vaishnavi force-pushed the 7CECE363F0EE64EE11A5B7EC828632DD branch from 4f3e438 to eac00f8 Compare April 30, 2026 05:52
@Y-Vaishnavi Y-Vaishnavi temporarily deployed to workflow-approval April 30, 2026 05:52 — with GitHub Actions Inactive
@Y-Vaishnavi Y-Vaishnavi temporarily deployed to workflow-approval April 30, 2026 05:52 — with GitHub Actions Inactive
rmaddikery
rmaddikery previously approved these changes Apr 30, 2026
Copy link
Copy Markdown
Contributor

@rmaddikery rmaddikery left a comment

Choose a reason for hiding this comment

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

LGTM. Great, git_overrides are removed

deps = [
":ffi",
# Link dependency required by `:ffi`.
"//score/mw/log/detail/common:recorder_factory",
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.

seems to be wrong. The Bridge shall link a backend becasue its considered a RUST backend

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.

Although the backends reside in score_logging, the backend registration sits in baselibs. That's why this deps.

visibility = ["//visibility:private"],
deps = [
"//score/mw/log/detail/common:recorder_factory",
"@score_baselibs//score/mw/log:frontend",
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.

seems to be wrong. The Bridge shall link a backend becasue its considered a RUST backend

- Links all available mw/log C++ backends in the rust
log_bridge so that the users get all backends without adding
the deps themselves.
- A todo note linked to an issue to track and resolve the
tech debt after its resolved.
@antonkri antonkri self-requested a review April 30, 2026 09:40
@antonkri antonkri merged commit 2dc9290 into eclipse-score:main Apr 30, 2026
14 checks passed
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.

9 participants