Skip to content

Bump score_lifecycle pin and fix simple_lifecycle mw::com config - #350

Open
hskang-amelia wants to merge 4 commits into
eclipse-score:mainfrom
hskang-amelia:bump-lifecycle-pin-fix-simple-lifecycle-mw-com
Open

hskang-amelia wants to merge 4 commits into
eclipse-score:mainfrom
hskang-amelia:bump-lifecycle-pin-fix-simple-lifecycle-mw-com

Conversation

@hskang-amelia

@hskang-amelia hskang-amelia commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

What

  1. Bump score_lifecycle from 85da2168 (2026-09-08) to lifecycle main 7bed0de1 (#857, 2026-10-28).
    This pulls in the new control API (ILmControl, #489) and the _ms config field names (#637).
    • Drop 001-migrate-baselibs-rust-targets.patch: upstream no longer uses the removed @score_baselibs//src aliases.
    • Regenerate 002-undev-integration-test-deps.patch for the new MODULE.bazel layout (same two-line change).
    • Add 003-drop-glossary-toctree-entry.patch. Since lifecycle #761 the lifecycle glossary lives in score_platform and lifecycle only mounts it when it is the root module, so its glossary toctree entry dangles here. The terms still resolve through the platform glossary.
  2. Move the docs stack along, since lifecycle main links feature requirements that only exist in a newer score_platform:
    • score_platform 6d65a262 → v0.7.4 (32759e0a); drop 001-remove-duplicate-lifecycle-glossary.patch, lifecycle no longer ships its own glossary.
    • score_persistency 961c0a09 → main (2bfa2f1d), which follows the renamed persistency requirements; regenerate 003-undev-deps-for-root-module.patch (same set of deps).
    • score_process_description 98d1d5f4 → v2.2.2 (0e01b2cc), needed by platform v0.7.4.
    • score_docs_as_code f1b30375 → v8.6.0 (d9a43b1a), matching process v2.2.2. It still has score_devcontainer as a dev dependency (fix(deps): pin docs-as-code to the corrected revision #400).
    • MODULE.bazel.lock updated accordingly.
  3. Make the simple_lifecycle showcase actually run.
    • Migrate launch_manager_config.json to the _ms field names.
    • Package mw_com_config.json (LmControlService, service id 7101) under etc/.
    • Set deployment_config.working_dir to /showcases/data/simple_lifecycle. Launch Manager now chdirs each component into working_dir (default /tmp), so control_daemon could not find ./etc/mw_com_config.json / ./etc/logging.json.
  4. Make the lifecycle PIT check Launch Manager's log. It now fails on unexpected termination and requires the Startup and fallback_run_target transitions and a clean LM exit. run_showcases returns the CLI output so tests can do this.
  5. Docs: point the lifecycle verification report link at module_verification_report (renamed in lifecycle #703).

Why

With the old pin, and also with only the pin bumped, control_daemon aborts (exit 134) on a missing mw::com config and Launch Manager restarts it in a loop. //platform_integration_tests/lifecycle still passes in that state, because it only checked that the showcase runs. The new assertions catch this: with working_dir removed, the lifecycle PIT fails.

Testing

  • Rebased on current main; lifecycle moved to latest main as requested.
  • bazel run --lockfile_mode=error //:docs_shim: build succeeded, 0 warnings (lifecycle main alone gave 302 warnings against the old docs stack).
  • Showcase/PIT/FIT not re-run locally on this revision; relying on CI here. The showcase and PIT changes were previously verified against lifecycle 59f6e530 in ghcr.io/eclipse-score/devcontainer:v1.11.0 (PIT + ITF 6/6, lifecycle PIT log with no unexpected termination).

@github-actions

Copy link
Copy Markdown

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

@NicolasFussberger

Copy link
Copy Markdown
Contributor

Hi @hskang-amelia , sorry I was not aware of this PR otherwise I had reviewed it earlier.
Would it be possible to rebase your PR and take the latest hash from lifecycle main?

Bumps score_lifecycle to lifecycle main (7bed0de1, #857) and packages
mw_com_config.json into the simple_lifecycle showcase so mw::com
initializes correctly for components run by launch_manager. The
config is staged both under etc/ (for launch_manager's own cwd)
and bin/etc/ (for components chdir'd into bin_dir by
ProcessGroupManager), since mw::com resolves the config path
relative to each component's cwd at exec time.

Lifecycle patches: drop 001 (baselibs Rust target migration is
upstream), regenerate 002 against the new MODULE.bazel, and add 003
to drop the lifecycle "glossary" toctree entry. Since lifecycle #761
the glossary lives in score_platform and is only mounted when
lifecycle is the root module, so the entry dangles here.

Also point the lifecycle verification report link at
module_verification_report, renamed in lifecycle #703.
Launch Manager now chdirs each component into deployment_config.working_dir,
which defaults to /tmp. control_daemon therefore could not find
./etc/mw_com_config.json or ./etc/logging.json, aborted (exit 134) and was
restarted in a loop, while the platform integration test still passed.

Point working_dir at /showcases/data/simple_lifecycle, where the bundle
already places etc/, and drop the bin/etc copy of mw_com_config.json that
never reached the image.
The showcase CLI exits 0 even while Launch Manager keeps restarting a
crashing app, so the PIT passed during the control_daemon crash loop.
Fail on 'unexpected termination' and require the Startup and
fallback_run_target transitions and a clean LM exit. Verified the test
now fails with working_dir removed.
Lifecycle main links feature requirements that only exist in newer
score_platform. Move the docs stack together so the docs build is
clean again:

- score_platform 6d65a262 -> v0.7.4 (32759e0a). Drop the patch that
  removed its lifecycle glossary; lifecycle no longer ships one.
- score_persistency 961c0a09 -> main (2bfa2f1d), which follows the
  renamed persistency requirements. Regenerate patch 003.
- score_process_description 98d1d5f4 -> v2.2.2 (0e01b2cc), needed by
  platform v0.7.4 links.
- score_docs_as_code f1b30375 -> v8.6.0 (d9a43b1a), matching process
  v2.2.2. Still has score_devcontainer as a dev dependency (eclipse-score#400).
@hskang-amelia
hskang-amelia force-pushed the bump-lifecycle-pin-fix-simple-lifecycle-mw-com branch from 0ff4de8 to 7b7910e Compare October 29, 2026 05:44

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