Skip to content

ci: pin MATLAB test jobs to ubuntu-24.04 - #948

Merged
ehennestad merged 1 commit into
mainfrom
fix-ci-python-for-r2021-releases
Nov 13, 2026
Merged

ehennestad merged 1 commit into
mainfrom
fix-ci-python-for-r2021-releases

Conversation

@ehennestad

@ehennestad ehennestad commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Problem. ubuntu-latest now resolves to ubuntu-26.04. On that image eight of the eleven MATLAB release jobs fail on every non-draft PR and every push to main:

  • R2021a, R2021b, R2022a: actions/setup-python has no Python 3.9 for Ubuntu 26.04, and MathWorks lists no newer Python for these releases.
  • R2022b to R2024b: MATLAB's Python host fails to start (Failed to load plugin '.../pycli/MATLABPyPlugin.so').

Solution. Pin the jobs that run a MATLAB release from the test matrix to ubuntu-24.04, where all eleven pass: the run_tests job of run_tests.yml and the Ubuntu entry of the prepare_release.yml matrix.

How to test the behavior?

gh workflow run run_tests.yml --ref fix-ci-python-for-r2021-releases -f test_all_matlab_releases=true

Checklist

  • Have you ensured the PR description clearly describes the problem and solutions?
  • Have you checked to ensure that there aren't other open or previously closed Pull Requests for the same change?
  • If this PR fixes an issue, is the first line of the PR description fix #XX where XX is the issue number?

🤖 Generated with Claude Code

ubuntu-latest now resolves to ubuntu-26.04. On that image eight of the
eleven release jobs of run_tests.yml fail:

- R2021a, R2021b, R2022a: actions/setup-python has no Python 3.9 build
  for Ubuntu 26.04, and these releases support no newer Python.
- R2022b to R2024b: MATLAB's out-of-process Python host aborts with
  "Failed to load plugin .../pycli/MATLABPyPlugin.so".

No release in the matrix lists Ubuntu 26.04 in MathWorks' Linux system
requirements. All eleven jobs passed on ubuntu-24.04.

Pin the run_tests job of run_tests.yml and the Ubuntu leg of the
prepare_release.yml matrix to ubuntu-24.04. Jobs that do not install a
matrix MATLAB release stay on ubuntu-latest.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.45%. Comparing base (5aada45) to head (c7efefe).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #948   +/-   ##
=======================================
  Coverage   95.45%   95.45%           
=======================================
  Files         240      240           
  Lines        8902     8902           
=======================================
  Hits         8497     8497           
  Misses        405      405           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ehennestad
ehennestad marked this pull request as ready for review November 12, 2026 14:09
@ehennestad
ehennestad enabled auto-merge November 12, 2026 14:09
@ehennestad
ehennestad added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit 9961193 Nov 13, 2026
35 of 37 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.

2 participants