Skip to content

verify-action-build: detect MATLAB platform-named binary dirs#850

Merged
potiuk merged 1 commit into
mainfrom
verify-action-build-matlab-platform-dirs
May 18, 2026
Merged

verify-action-build: detect MATLAB platform-named binary dirs#850
potiuk merged 1 commit into
mainfrom
verify-action-build-matlab-platform-dirs

Conversation

@potiuk
Copy link
Copy Markdown
Member

@potiuk potiuk commented May 17, 2026

Summary

  • _looks_like_in_tree_binary flagged dist/bin/win64/run-matlab-command.exe (via its .exe) but missed the three Unix siblings at dist/bin/{glnxa64,maca64,maci64}/run-matlab-command — they have no extension and don't fit the cross-compile <name>-<os>-<arch> regex.
  • Add a parent-directory rule: if the immediate parent dir is a known MATLAB platform identifier (glnxa64, maca64, maci64), the file is treated as a launcher binary. Windows already worked via extension.
  • Pin regression tests against the actual matlab-actions/run-tests@v3.1.1 shape so future bumps can't regress the catch.

Surfaced while triaging #846 (upstream provenance ask: matlab-actions/run-tests#94).

Test plan

  • uv run pytest utils/tests/ — 273 passed
  • prek run --all-files — clean

The in-tree binary detector flagged matlab-actions/run-tests@v3.1.1's
dist/bin/win64/run-matlab-command.exe (via .exe extension) but missed
the three Unix siblings under dist/bin/{glnxa64,maca64,maci64}/, which
have no extension and don't match the <name>-<os>-<arch> cross-compile
filename regex.  Add a parent-directory rule for MATLAB's platform
identifiers so the Linux/macOS launchers are caught too, and pin a
regression test against the actual v3.1.1 shape.

Surfaced while triaging #846.

Generated-by: Claude Opus 4.7 (1M context)
@potiuk potiuk requested review from dfoulks1 and ppkarwasz as code owners May 17, 2026 13:32
@potiuk potiuk requested a review from dave2wave May 17, 2026 14:24
Copy link
Copy Markdown
Member

@ppkarwasz ppkarwasz left a comment

Choose a reason for hiding this comment

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

LGTM, although having files in a folder called bin, seems like a pretty good hint that these are binary too.

@potiuk potiuk merged commit a992fe4 into main May 18, 2026
8 checks passed
@potiuk potiuk deleted the verify-action-build-matlab-platform-dirs branch May 18, 2026 09:02
@potiuk
Copy link
Copy Markdown
Member Author

potiuk commented May 18, 2026

LGTM, although having files in a folder called bin, seems like a pretty good hint that these are binary too.

Unless they are scripts :)

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