Skip to content

Gateway cda int - #6

Open
FScholPer wants to merge 15 commits into
mainfrom
gateway_cda_int
Open

Gateway cda int#6
FScholPer wants to merge 15 commits into
mainfrom
gateway_cda_int

Conversation

@FScholPer

@FScholPer FScholPer commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Drafted first integration

Frank Scholter Peres frank.scholter_peres@mercedes-benz.com, Mercedes-Benz Tech Innovation GmbH
Provider Information

  • Assisted by Copilot

Aligns .bazelrc and MODULE.bazel with the toolchain configuration
used in eclipse-score/baselibs so that code compiles with the
correct S-CORE certified toolchains.

MODULE.bazel changes:
- Add score_bazel_cpp_toolchains GCC extension: declares
  score_gcc_x86_64_toolchain (x86_64/Linux, GCC 12.2.0) and
  score_gcc_aarch64_toolchain
- Add score_toolchains_rust 0.8.0 (Ferrocene Rust toolchain)
- Add platforms + score_bazel_platforms dependencies
- Upgrade score_docs_as_code to 2.0.3 (compat level 2, required
  by transitive score_process dependency)
- Align rules_python, rules_rust, rules_cc, googletest,
  score_tooling, aspect_rules_lint, buildifier_prebuilt to the
  versions actually resolved by the dependency graph

.bazelrc changes:
- Add HTTP retry/timeout settings matching baselibs
- Register GCC x86_64 + Ferrocene as common extra toolchains for host
- Add _bl_stub config (baselibs flags: nlohmann JSON backend,
  use_typedshmd=False, warning features)
- Add _bl_toolchain_common config (incompatible_strict_action_env,
  host_platform=x86_64-linux)
- Add bl-x86_64-linux named config targeting
  score_bazel_platforms x86_64-linux-gcc_12.2.0-posix

Build command:
  bazel build --config=bl-x86_64-linux //score/...

Verified: 19 targets, 77 actions, Build completed successfully.
- add pre-commit configuration and shared tools/run_tool.sh wrapper
- import missing local link-check action from docs-as-code
- fix gitlint workflow/action metadata for actionlint compatibility
- refresh MODULE/MODULE.lock after tidy and extension resolution
- apply auto-fixes produced by repository hooks (copyright/eof)
Add a minimal GitHub Actions workflow aligned with baselibs that
builds the repository with --config=bl-x86_64-linux on PRs, main
pushes, and merge groups.
Include //score/... only when score/ contains Bazel packages, so CI
works both before and after migration to baselibs-like source layout.
@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run //:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server (8.6.0) and connecting to it...
INFO: Invocation ID: f82b613e-0c8a-4ed1-9b9d-38ade63de06c
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
    currently loading: 
Loading: 0 packages loaded
    currently loading: 
Loading: 0 packages loaded
    currently loading: 
Analyzing: target //:license-check (1 packages loaded)
Analyzing: target //:license-check (1 packages loaded, 0 targets configured)
Analyzing: target //:license-check (1 packages loaded, 0 targets configured)

Analyzing: target //:license-check (20 packages loaded, 14 targets configured)

Analyzing: target //:license-check (83 packages loaded, 14 targets configured)

Analyzing: target //:license-check (96 packages loaded, 14 targets configured)

Analyzing: target //:license-check (97 packages loaded, 14 targets configured)

Analyzing: target //:license-check (97 packages loaded, 14 targets configured)

Analyzing: target //:license-check (153 packages loaded, 2951 targets configured)

Analyzing: target //:license-check (167 packages loaded, 6297 targets configured)

Analyzing: target //:license-check (170 packages loaded, 9437 targets configured)

Analyzing: target //:license-check (170 packages loaded, 9437 targets configured)

Analyzing: target //:license-check (170 packages loaded, 9437 targets configured)

Analyzing: target //:license-check (170 packages loaded, 9437 targets configured)

Analyzing: target //:license-check (176 packages loaded, 13538 targets configured)

Analyzing: target //:license-check (180 packages loaded, 15550 targets configured)

Analyzing: target //:license-check (180 packages loaded, 15550 targets configured)

INFO: Analyzed target //:license-check (181 packages loaded, 15678 targets configured).
INFO: From Generating Dash formatted dependency file ...:
INFO: Successfully converted 2 packages from Cargo.lock to bazel-out/k8-fastbuild/bin/formatted.txt
[14 / 16] [Prepa] JavaToolchainCompileBootClasspath external/rules_java+/toolchains/platformclasspath.jar
[15 / 16] Building license.check.license_check.jar (); 0s disk-cache, multiplex-worker
INFO: Found 1 target...
Target //:license.check.license_check up-to-date:
  bazel-bin/license.check.license_check
  bazel-bin/license.check.license_check.jar
INFO: Elapsed time: 88.904s, Critical Path: 2.41s
INFO: 16 processes: 12 internal, 3 processwrapper-sandbox, 1 worker.
INFO: Build completed successfully, 16 total actions
INFO: Running command line: bazel-bin/license.check.license_check ./formatted.txt <args omitted>
usage: org.eclipse.dash.licenses.cli.Main [-batch <int>] [-cd <url>]
       [-confidence <int>] [-ef <url>] [-excludeSources <sources>] [-help] [-lic
       <url>] [-project <shortname>] [-repo <url>] [-review] [-summary <file>]
       [-timeout <seconds>] [-token <token>]

@github-actions

Copy link
Copy Markdown

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

@lh-sag

lh-sag commented Jun 25, 2026

Copy link
Copy Markdown

@FScholPer would you mind and start with Step1 and sync with https://github.com/eclipse-score/module_template first?
The current repository is heavily outdated, see 6. First iteration: scaffolding / build only in eclipse-opensovd/opensovd#108

FScholPer and others added 7 commits June 25, 2026 10:46
# Conflicts:
#	.bazelrc
#	.github/workflows/build_linux.yml
#	.github/workflows/on-pr.yml
#	.pre-commit-config.yaml
#	MODULE.bazel
#	MODULE.bazel.lock
#	score/mw/diag/design/diag_api_rust.svg
#	tests/cpp/test_main.cpp
The SOVD/diagnostics stack is QM, so the diagnostics binaries need not be
built with the ASIL Ferrocene/Score-GCC hermetic toolchain. That toolchain
ships binutils 2.34, whose linker cannot read modern glibc's .relr.dyn
sections, which is what broke linking //score/opensovd-cda against the
Ubuntu 24.04 host libm.

Add a score_diag_x86_64_linux_qm config that builds //score/opensovd-cda and
//score/opensovd-gateway (and transitively classic-diagnostic-adapter and
opensovd-core) with a standard upstream rules_rust toolchain and the modern
host C/C++ toolchain, on a plain x86_64-linux platform. CI keeps building the
existing targets on the Score toolchain and builds the diagnostics targets
under the QM config in separate steps.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Replace the client example's println! output with tracing::info! and a
tracing-subscriber fmt subscriber honoring RUST_LOG (default info). Add
tracing + tracing-subscriber (env-filter) to the root crate specs.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.

3 participants