Skip to content

OMLibraryTesting 0.6.0: coverage of other libraries (OMJL_COVERAGE_LIBRARY, site folders) - #25

Merged
JKRT merged 2 commits into
OpenModelica:masterfrom
JKRT:dev/library-coverage
Nov 27, 2026
Merged

JKRT merged 2 commits into
OpenModelica:masterfrom
JKRT:dev/library-coverage

Conversation

@JKRT

@JKRT JKRT commented Nov 27, 2026

Copy link
Copy Markdown
Member

Coverage runs of Modelica libraries other than the MSL, with the same scripts and site. Nothing changes for the MSL runs (coverage.yml); this repository gets no new workflow.

  • coverage_target (src/registry.jl): what a run measures. The MSL of OMJL_COVERAGE_MSL, or OMJL_COVERAGE_LIBRARY=Name@version: that installed library's experiment models, loaded with the libraries its uses names. There are no reference results, so the models go up to simulate.
  • run_full_coverage.jl, merge_coverage.jl, publish_coverage.jl, publish_site.jl use it. A library run writes docs/COVERAGE__.md and no README section.
  • Site: a library's runs go to lib-<Name>-<version>/ (library_site_folder). The folder is listed after the MSL versions in every page's navigation. Its badge.json counts simulate, and its page has no README badge snippet. history.toml keeps the label and the badge phase.
  • generate_report(...; library): the report title names the library.
  • scripts/install_library.py installs a library and the libraries it uses from OpenModelica's package index, as omc's package manager does, for a runner without omc. The files match omc's installPackage (checked for PNlib, ModelicaByExample, PhotoVoltaics).
  • models/: experiment lists of 19 more libraries, recorded with omc 1.27.1 (3746 models with Buildings): ModelicaTest 608, ScalableTestSuite 263, ThermofluidStream 214, OpenIPSL 182, PowerSystems 128, and 14 smaller ones.
  • Version 0.6.0.

Checked locally (Julia 1.13.4, OMBackend 1.3.1, OMFrontend 4.0.0):

  • Package tests: 178/178 (15 new: coverage target, a library folder on the site).
  • A replay of the scripts for DeltaRobot (2 shards, merge, analysis, site) and VehicleInterfaces: 9 models / 7 backend / 5 simulate, and 11/11/11.

The runs themselves will be dispatched on JKRT's fork (a workflow there only), not here.

JKRT added 2 commits November 27, 2026 12:26
coverage_target: the MSL of OMJL_COVERAGE_MSL or another installed library
(OMJL_COVERAGE_LIBRARY=Name@version, up to simulate). The run, merge and
publish scripts use it; the site puts a library in lib-<Name>-<version>/,
listed in every page's navigation, badge on simulate, no README badge.
scripts/install_library.py installs a library from OpenModelica's package
index. Experiment lists of 19 more libraries (omc 1.27.1). Tests 178/178.

Assisted-by: Claude Opus 5.5
Assisted-by: Claude Opus 5.5
@JKRT
JKRT merged commit 355b16b into OpenModelica:master Nov 27, 2026
2 checks passed
@JKRT
JKRT deleted the dev/library-coverage branch November 27, 2026 19:13
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