Skip to content

fix(ci): install librtmidi6 so the unit tests can run - #19

Merged
ibiltari merged 2 commits into
rc_1from
fix/ci-install-librtmidi6
Sep 28, 2026
Merged

ibiltari merged 2 commits into
rc_1from
fix/ci-install-librtmidi6

Conversation

@ibiltari

Copy link
Copy Markdown
Member

The tests job unpacks libmtcmaster with dpkg --force-depends, which skips its dependencies, including librtmidi6. Every test that imports cuemsengine then fails with libmtcmaster import error: librtmidi.so.6: cannot open shared object file, so CI on rc_1 has run 0 tests since at least 2026-08-10 (653 errors on fc8d2bb, 764 on 30cbbfb).

librtmidi6 5.0.0-2 is in jammy universe (the tests runner is ubuntu-22.04); this adds it to the system-packages step. It also adds the SPDX header the workflow was missing.

Merge once this PR run shows the unit tests actually executing.

The tests job unpacks libmtcmaster with dpkg --force-depends, which skips
its Depends -- including librtmidi6 (librtmidi.so.6). Every test that
imports cuemsengine then errored on "libmtcmaster import error:
librtmidi.so.6: cannot open shared object file", so CI on rc_1 has run 0
tests since at least 2026-08-10 (653 errors then, 764 on 30cbbfb).

librtmidi6 5.0.0-2 is in jammy universe, the tests runner's release.
Also adds the SPDX header the workflow lacked.
@ibiltari
ibiltari requested a review from backenv as a code owner September 28, 2026 15:12
With the librtmidi6 fix the unit tests run again, and one fails:
test_audio_start_value_defaults_to_100_when_no_master_vol_predefined
got start_value 0.01, expected 1.0. poetry.lock pinned cuemsutils
0.1.0rc11, where AudioCue.master_vol still defaults to 1 (the old 0.0-1.0
scale); 0.1.0rc13 moved it to 100 (0-100 percent), which is what
FadeActionHandler divides by 100. Locally the editable rc14 hid it.

The test is right: on rc11 a fade from a fresh AudioCue starts at 1%.
Raise the floor to >=0.1.0rc13 and relock (rc14, from PyPI); nothing else
in the lock moved. The fleet already runs cuems-utils rc14, so production
was not affected -- the deb takes cuemsutils from the cuems-utils package.
Also adds the SPDX header pyproject.toml lacked.
@ibiltari
ibiltari merged commit 956a0f3 into rc_1 Sep 28, 2026
2 checks passed
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