Skip to content

Conversation

@mw-kapilg
Copy link
Member

@mw-kapilgmw-kapilg commented Dec 11, 2025

  • Adds a new CircleCI workflow to showcase test splitting
  • Updates MATLAB releases and macOS config
  • Includes some markdown linting

NOTE: CircleCI's free plan doesn't support parallelism for macOS cloud runners. Hence those users won't be able to use test-splitting with the current workflow's mac executor configuration. Decided not to add this info as a comment in our workflow since it will increase maintenance burden.

matrix:
parameters:
os: [linux, macos, windows]
release: ["R2024b", "R2025a"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of updating the releases frequently, does it make sense to have one fixed release and other as 'latest'?

Copy link
Member

@tsharmaMWtsharmaMW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding this workflow! It’s going to be very helpful for our users.


# Run MATLAB tests, splitting them across parallel containers
- matlab/run-tests:
select-by-name: $(circleci tests glob "tests/**/*.m" | circleci tests split | awk -F'[\\\\/.]' '{print $(NF-1) "/*"}')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this configuration currently splits the tests alphabetically by default. Would it make sense to add comments or examples showing how to split tests based on file size or previous timing data as well?

- matlab/run-build:
tasks: mex buildPythonPackage

# Run MATLAB tests, splitting them across parallel containers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious - does CircleCI handle test splitting by distributing them across multiple separate machines, or are the tests simply divided among different cores on the same machine?

Sign up for freeto 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.

4 participants

@mw-kapilg@Vahila@tsharmaMW