Skip to content

Use milliseconds directly in launch manager config schema - #637

Merged
NicolasFussberger merged 2 commits into
eclipse-score:mainfrom
Valeo-S-CORE-Organization:fix/schema-timing-fields-ms
Sep 16, 2026
Merged

NicolasFussberger merged 2 commits into
eclipse-score:mainfrom
Valeo-S-CORE-Organization:fix/schema-timing-fields-ms

Conversation

@shegazyy

Copy link
Copy Markdown
Contributor

Rename the 8 user-facing timing fields in launch_manager.schema.json from seconds (number) to their _ms equivalents (integer), matching the flatbuffer schema migration done in #388:

  • reporting_cycle -> reporting_cycle_ms
  • polling_interval -> polling_interval_ms
  • delay_before_restart -> delay_before_restart_ms
  • ready_timeout -> ready_timeout_ms
  • shutdown_timeout -> shutdown_timeout_ms
  • transition_timeout -> transition_timeout_ms
  • evaluation_cycle -> evaluation_cycle_ms
  • max_timeout -> max_timeout_ms

Remove the now-redundant sec_to_ms() conversion (and its validation) from lifecycle_config.py, since the JSON schema's type/minimum/maximum constraints already reject negative, non-integer and overflowing values. Update all example configs, integration test fixtures, the gen_lifecycle_config.py test helper, and documentation to use the new field names and millisecond values.

This was previously postponed pending removal of legacy config support, which has since happened in #388.

Closes #635

Rename the 8 user-facing timing fields in launch_manager.schema.json
from seconds (number) to their _ms equivalents (integer), matching the
flatbuffer schema migration done in eclipse-score#388:

- reporting_cycle -> reporting_cycle_ms
- polling_interval -> polling_interval_ms
- delay_before_restart -> delay_before_restart_ms
- ready_timeout -> ready_timeout_ms
- shutdown_timeout -> shutdown_timeout_ms
- transition_timeout -> transition_timeout_ms
- evaluation_cycle -> evaluation_cycle_ms
- max_timeout -> max_timeout_ms

Remove the now-redundant sec_to_ms() conversion (and its validation)
from lifecycle_config.py, since the JSON schema's type/minimum/maximum
constraints already reject negative, non-integer and overflowing
values. Update all example configs, integration test fixtures, the
gen_lifecycle_config.py test helper, and documentation to use the new
field names and millisecond values.

This was previously postponed pending removal of legacy config
support, which has since happened in eclipse-score#388.

Closes eclipse-score#635
@github-actions

Copy link
Copy Markdown
Contributor

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

@shegazyy
shegazyy deployed to workflow-approval September 15, 2026 14:51 — with GitHub Actions Active
@shegazyy
shegazyy deployed to workflow-approval September 15, 2026 14:51 — with GitHub Actions Active
@NicolasFussberger

Copy link
Copy Markdown
Contributor

Thanks for your contribution. Looks good to me!

Do you also want to take a look @MaciejKaszynski ?

@NicolasFussberger
NicolasFussberger merged commit d61a1e4 into eclipse-score:main Sep 16, 2026
16 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in LCM - Lifecycle & Health FT Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Use milliseconds directly in the user-facing config schema instead of seconds

2 participants