Skip to content

build(deps): pin CDA and Core to upstream heads without local patches - #104

Draft
alexmohr wants to merge 5 commits into
mainfrom
feat/transitive-override-manifest
Draft

alexmohr wants to merge 5 commits into
mainfrom
feat/transitive-override-manifest

Conversation

@alexmohr

@alexmohr alexmohr commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Move the CDA and OpenSOVD Core pins to upstream commits that need no local
patches in this repository, and make the example client usable as a health
check by other modules. This PR adds no QNX build configuration and no
patches; the QNX patches of external crates live in the CDA and Core.

  • classic-diagnostic-adapter is pinned to afb0621, the head of
    fix(bazel): keep systemd notifications Linux-only and prepare QNX builds eclipse-opensovd/classic-diagnostic-adapter#779,
    which keeps systemd notifications Linux-only, supports QNX, patches some
    external crates for QNX in the CDA's own crate universe and raises the main
    thread stack of the CDA binary on QNX. It already contains the requirements_docs export merged in
    build(bazel): export the requirements docs eclipse-opensovd/classic-diagnostic-adapter#763, so
    classic-diagnostic-adapter-export-requirements.patch and the patches
    package are removed. The consumer smoke test no longer copies that package.
  • opensovd_core is pinned to 6c01ccb, the head of
    build(bazel): generate crate dependencies for QNX eclipse-opensovd/opensovd-core#304 on top of
    feat/score-integration. It renders the generated crate dependencies
    against Core-owned platform settings, including the QNX triples, and
    patches some external crates for QNX in its own crate universe.
  • The gateway auth follows two API changes at the new Core pin: the gateway
    options moved into libcli (ServerArgs::auth_enabled() replaces the removed
    Cli::auth field), and jsonwebtoken 12 returns a Result from
    EncodingKey::from_secret and DecodingKey::from_secret. The auth tests
    are adapted accordingly.
  • Core now rejects a wildcard CORS origin with credentials while parsing the
    options. The two startup-error tests in score/opensovd-core/src/main.rs
    used that configuration to make the gateway fail after parsing, so they now
    hold the gateway's port and check that the bind failure is reported by both
    the spawned gateway and the shutdown runners. The assertions are otherwise
    unchanged.
  • The example client gains sovd-client list-apps [URL]: it authorizes,
    prints the id of each app of the gateway on its own line and exits with a
    non-zero status on a connection, authorization or HTTP error. The URL is
    chosen as before (argument, SOVD_BASE_URL, default);
    SOVD_CLIENT_ID and SOVD_CLIENT_SECRET set the credentials, and the log
    goes to stderr. Without a command the client discovers the gateway as
    before. The CDA integration test runs list-apps through the gateway.
  • //score/examples/sovd-client:sovd_client_files packages the client, like
    the gateway and CDA packaging targets, and the consumer smoke test loads it.
    The client now takes tracing and tracing-subscriber from Core's crate
    index, as the gateway does, because score_crate_index generates its crates
    for Linux only.
  • The README describes the pinned upstream commits and the client packaging,
    drops the patch table and states the score_toolchains_rust version that
    MODULE.bazel uses (0.10.1).

Checklist

  • I have tested my changes locally
  • I have added or updated documentation
  • I have linked related issues or discussions
  • I have added or updated tests

Related

Notes for Reviewers

MODULE.bazel.lock was regenerated with bazel mod deps --lockfile_mode=update. Only the crate-universe extension entries change; no
registry module, toolchain or compiler version changes.

Local checks ran on a macOS host, which cannot run the Linux test set:

  • analysis of //examples/... //tests/... //score/... with
    --config=score_diag_x86_64_linux --nobuild --lockfile_mode=error;
  • the consumer smoke test tests/bzlmod_consumer_test.py;
  • the pre-commit hooks on the changed files (the Python hooks need the Linux
    devcontainer tools, so ruff and basedpyright were run directly instead);
  • the two gateway startup-error tests and the example client's unit tests,
    run with Cargo against the pinned Core sources. They pass, and the
    error-path tests fail when the error handling is removed.

The client's third-party crates are a subset of the gateway's. The Linux Bazel
build and tests run in CI.


Alexander Mohr alexander.m.mohr@mercedes-benz.com, Mercedes-Benz Tech Innovation GmbH
Provider Information

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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.8.2) and connecting to it...
INFO: Invocation ID: 3668ee8d-d726-4317-9602-cab88bb99ab7
Computing main repo mapping: 
Computing main repo mapping: 
WARNING: For repository 'rules_cc', the root module requires module version rules_cc@0.2.18, but got rules_cc@0.2.25 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
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: 
Loading: 0 packages loaded
    currently loading: 
Loading: 0 packages loaded
    currently loading: 
Analyzing: target //:license-check (1 packages loaded, 0 targets configured)
Analyzing: target //:license-check (1 packages loaded, 0 targets configured)

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

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

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

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

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

Analyzing: target //:license-check (165 packages loaded, 3836 targets configured)

Analyzing: target //:license-check (165 packages loaded, 3836 targets configured)

Analyzing: target //:license-check (166 packages loaded, 3839 targets configured)

Analyzing: target //:license-check (211 packages loaded, 9713 targets configured)

Analyzing: target //:license-check (218 packages loaded, 11938 targets configured)

Analyzing: target //:license-check (218 packages loaded, 11938 targets configured)

Analyzing: target //:license-check (219 packages loaded, 12062 targets configured)

INFO: Analyzed target //:license-check (224 packages loaded, 18181 targets configured).
[13 / 17] JavaToolchainCompileClasses external/rules_java+/toolchains/platformclasspath_classes; 0s disk-cache, processwrapper-sandbox ... (2 actions, 1 running)
INFO: From Generating Dash formatted dependency file ...:
INFO: Successfully converted 2 packages from Cargo.lock to bazel-out/k8-fastbuild/bin/formatted.txt
[15 / 17] JavaToolchainCompileBootClasspath external/rules_java+/toolchains/platformclasspath.jar; 0s disk-cache, processwrapper-sandbox
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: 128.537s, Critical Path: 2.01s
INFO: 17 processes: 12 internal, 4 processwrapper-sandbox, 1 worker.
INFO: Build completed successfully, 17 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>]

@alexmohr
alexmohr force-pushed the feat/transitive-override-manifest branch from c1a9a0e to 62a1971 Compare November 28, 2026 17:24
@alexmohr alexmohr changed the title fix(bazel): export downstream overrides and preserve provenance build(deps): pin CDA and Core to upstream QNX fixes without patches Nov 28, 2026
@alexmohr
alexmohr force-pushed the feat/transitive-override-manifest branch from 62a1971 to cf5e45a Compare November 28, 2026 17:53
@alexmohr alexmohr changed the title build(deps): pin CDA and Core to upstream QNX fixes without patches build(deps): pin CDA and Core to upstream heads without local patches Nov 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Documentation preview for this pull request is available at:
pr-104: https://eclipse-score.github.io/diagnostics/pr-104/

alexmohr added a commit to eclipse-score/reference_integration that referenced this pull request Nov 28, 2026
Pin score_diagnostics to cf5e45a3 (eclipse-score/diagnostics#104). It
overrides the CDA and opensovd_core at the same commits that
reference_integration repeats in the root module. The lockfile is
unchanged: the pin does not change any extension usage.

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
@alexmohr
alexmohr force-pushed the feat/transitive-override-manifest branch from cf5e45a to 8b99b65 Compare November 28, 2026 23:01
alexmohr added a commit to eclipse-score/reference_integration that referenced this pull request Nov 28, 2026
Pin score_diagnostics to 8b99b65a (eclipse-score/diagnostics#104). It
overrides the CDA and opensovd_core at the same commits that
reference_integration repeats in the root module, and packages the
OpenSOVD example client sovd-client with a list-apps command.

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
Pin classic-diagnostic-adapter to afb0621, the head of
eclipse-opensovd/classic-diagnostic-adapter#779, which keeps systemd
notifications Linux-only, supports QNX, patches some external crates
for QNX in the CDA's own crate universe and raises the main thread
stack of the CDA binary on QNX. It already contains the
requirements_docs export merged in #763, so the local
classic-diagnostic-adapter-export-requirements.patch and the patches
package are no longer needed.

The consumer smoke test no longer copies the removed patches package.

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
Pin opensovd_core to 6c01ccb, the head of
eclipse-opensovd/opensovd-core#304 on top of feat/score-integration. It
renders the generated crate dependencies against Core-owned platform
settings, including the QNX triples, and patches some external crates
for QNX in its own crate universe. This repository adds no patches.

The pin moves the gateway options into libcli and bumps jsonwebtoken to
12.0.0. Adapt the gateway auth to both: use ServerArgs::auth_enabled()
instead of the removed Cli::auth field, and handle the Result that
EncodingKey and DecodingKey::from_secret now return.

Core now rejects wildcard CORS origins with credentials while parsing
the options, so the startup-error tests can no longer use that
configuration to make the gateway fail after parsing. They hold the
gateway's port instead and check that the bind failure is reported.

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
The overrides no longer carry local patches. Explain which unmerged
upstream commits they pin, drop the patch table, and correct the
score_toolchains_rust version to the 0.10.1 that MODULE.bazel uses.

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
A health check on an image needs an HTTP client, and the images do not
all ship one. `sovd-client list-apps [URL]` authorizes, prints the id of
each app of the gateway on its own line and exits with a non-zero
status on a connection, authorization or HTTP error. The URL is chosen
as before: the argument, then SOVD_BASE_URL, then the default.

The log now goes to stderr, so that stdout holds only the ids.
SOVD_CLIENT_ID and SOVD_CLIENT_SECRET override the credentials. Without
a command the client discovers the gateway as before.

The CDA integration test runs list-apps through the gateway and checks
that it lists the apps of the CDA and of the gateway.

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
Add the public sovd_client_files packaging target, like those of the
gateway and the CDA, and check in the consumer smoke test that another
module can load it.

Take tracing and tracing-subscriber from Core's crate index, as the
gateway does. score_crate_index generates its crates for Linux only,
so the client could not be built for QNX with it.

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
@alexmohr
alexmohr force-pushed the feat/transitive-override-manifest branch from 8b99b65 to 3fc08e7 Compare November 29, 2026 09:02
alexmohr added a commit to eclipse-score/reference_integration that referenced this pull request Nov 29, 2026
Pin score_diagnostics to 3fc08e71 (eclipse-score/diagnostics#104). It
overrides the CDA and opensovd_core at the same commits that
reference_integration repeats in the root module, and packages the
OpenSOVD example client sovd-client with a list-apps command.

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
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.

1 participant