Skip to content

Fix MainRecorder invocation in local_build_native.sh#20

Merged
jcschaff merged 1 commit into
mainfrom
fix-local-build-recorder-args
Jun 24, 2026
Merged

Fix MainRecorder invocation in local_build_native.sh#20
jcschaff merged 1 commit into
mainfrom
fix-local-build-recorder-args

Conversation

@jcschaff

Copy link
Copy Markdown
Member

Summary

scripts/local_build_native.sh invoked MainRecorder with only 4 arguments, but MainRecorder.main requires 5 (sbml_file, vcml_file, sim_name, app_name, output_dir) — with fewer it prints a usage message and returns immediately. As a result, the local build's native-image-agent recording step silently captured nothing, so a wheel produced by scripts/local_build_native.sh could be missing reflection/resource config that the native image needs at runtime.

build.py (used by poetry build/poetry install) already passes the correct 5 args, so this only affected the standalone shell script.

Fix

Add the missing app_name argument (unnamed_spatialGeom, matching build.py) before the output dir.

Because the recorder runs with its working directory at vcell-native/, this also lets the moving-boundary recording block (which reads src/test/resources/Solver_Suite_6_2.vcml) execute, so the local build captures config for the vcmlToMovingBoundaryInput path too.

Note

No CI impact (CI uses cibuildwheel/build.py, not this script); this only improves correctness of the documented local macOS native build.

🤖 Generated with Claude Code

The native-image-agent recording step passed only 4 arguments to MainRecorder,
but MainRecorder requires 5 (sbml_file, vcml_file, sim_name, app_name,
output_dir) and otherwise prints usage and exits early — so the local build's
recording step silently captured nothing. Add the missing app_name
("unnamed_spatialGeom"), matching build.py's invocation, so recording actually
runs (including the moving-boundary path).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jcschaff jcschaff merged commit 7a8cb1a into main Jun 24, 2026
6 checks passed
@jcschaff jcschaff deleted the fix-local-build-recorder-args branch June 24, 2026 04:54
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