Skip to content

Commit 069b00f

Browse files
committed
Stabilize MATLAB parity runs in headless no-figure mode
1 parent 9f33b05 commit 069b00f

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

.github/workflows/matlab-parity-gate.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
AGENT_TOOLSDIRECTORY: /Users/iahncajigas/actions-runner/_work/_tool
2323
RUNNER_TEMP: /Users/iahncajigas/actions-runner/_work/_temp
2424
TMPDIR: /Users/iahncajigas/actions-runner/_work/_temp
25-
NSTAT_MATLAB_EXTRA_ARGS: -maca64 -nodisplay
25+
NSTAT_MATLAB_EXTRA_ARGS: -maca64 -nodisplay -noFigureWindows
2626
NSTAT_FORCE_M_HELP_SCRIPTS: "1"
2727
steps:
2828
- name: Prepare runner directories
@@ -35,7 +35,7 @@ jobs:
3535
lfs: true
3636

3737
- name: MATLAB smoke preflight
38-
run: /Applications/MATLAB_R2025b.app/bin/matlab -maca64 -nodisplay -batch "disp(version); exit"
38+
run: /Applications/MATLAB_R2025b.app/bin/matlab -maca64 -nodisplay -noFigureWindows -batch "disp(version); exit"
3939

4040
- name: Pull LFS Objects
4141
run: git lfs pull
@@ -62,7 +62,7 @@ jobs:
6262
python3 python/tools/verify_python_vs_matlab_similarity.py --enforce-gate
6363
6464
- name: Freeze similarity baseline
65-
if: always()
65+
if: ${{ always() && !cancelled() }}
6666
run: |
6767
if [ -f python/reports/python_vs_matlab_similarity_report.json ]; then
6868
python3 python/tools/freeze_similarity_baseline.py
@@ -71,7 +71,8 @@ jobs:
7171
fi
7272
7373
- name: Upload parity reports
74-
if: always()
74+
if: ${{ always() && !cancelled() }}
75+
continue-on-error: true
7576
uses: actions/upload-artifact@v4
7677
with:
7778
name: nstat-matlab-parity-reports

.github/workflows/matlab-smoke.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ jobs:
1212
runs-on: [self-hosted, macOS]
1313
steps:
1414
- name: Print MATLAB version
15-
run: /Applications/MATLAB_R2025b.app/bin/matlab -maca64 -nodisplay -batch "disp(version); exit"
15+
run: /Applications/MATLAB_R2025b.app/bin/matlab -maca64 -nodisplay -noFigureWindows -batch "disp(version); exit"

python/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ python3 python/tools/freeze_port_baseline.py
4545
python3 python/tools/generate_method_parity_matrix.py
4646
python3 python/tools/generate_implemented_method_coverage.py
4747
python3 python/tools/verify_examples_notebooks.py
48-
python3 python/tools/verify_python_vs_matlab_similarity.py --enforce-gate
48+
NSTAT_MATLAB_EXTRA_ARGS='-maca64 -nodisplay -noFigureWindows' \
49+
python3 python/tools/verify_python_vs_matlab_similarity.py --enforce-gate
4950
python3 python/tools/freeze_similarity_baseline.py
5051
python3 python/tools/verify_offline_standalone.py
5152
cd python && python3 -m pytest

python/RELEASE_CHECKLIST.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
- `python3 python/tools/verify_examples_notebooks.py`
1616
- `sphinx-build -b html python/docs python/docs/_build/html`
1717
- [ ] Run similarity gate (requires MATLAB):
18-
- `python3 python/tools/verify_python_vs_matlab_similarity.py --enforce-gate`
18+
- `NSTAT_MATLAB_EXTRA_ARGS='-maca64 -nodisplay -noFigureWindows' python3 python/tools/verify_python_vs_matlab_similarity.py --enforce-gate`
1919
- [ ] Freeze similarity baseline:
2020
- `python3 python/tools/freeze_similarity_baseline.py`
2121
- [ ] Verify standalone offline workflow:

0 commit comments

Comments
 (0)