Skip to content

Java: shorter test output paths, ffi class names truncated too - #59

Merged
Fedr merged 2 commits into
vibecodedfrom
java-short-paths
Oct 16, 2026
Merged

Fedr merged 2 commits into
vibecodedfrom
java-short-paths

Conversation

@Fedr

@Fedr Fedr commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

MeshInspector's Windows CI checks out MeshLib's thirdparty/mrbind submodule under C:\actions-runner\_work\MeshInspectorCode\MeshInspectorCode\MeshLib\thirdparty\mrbind\ (86 characters), and after #55 git failed there with Filename too long: the committed Java test outputs have paths up to 177 characters, 263 in total, over Windows' 260. The Rust outputs top out at 155.

Two things made the Java paths longer than the others: the packages add mrbind_test/mr/cs/ to the file name, and the ffi classes are named after the C files, which the C generator already truncates at 100 characters plus a hash, so --max-class-name-length (also 100) never applied to them.

  • The ffi class names now go through the same truncation as the other classes.
  • test/make_java.sh passes --max-class-name-length 64, which makes the longest test path 141 characters. The default stays 100, since MeshLib's std_function_... names are used directly by users.
  • The test outputs are regenerated (on Linux, like before).

The default limit is a MeshLib-side concern too: source/MeshLibJava/src/meshlib/mr/ is shorter than the test directories, so MeshLib's longest path is ~150.

🤖 Generated with Claude Code

Fedr and others added 2 commits October 15, 2026 21:38
…racters

The committed test outputs had paths up to 177 characters, 22 more than the
Rust ones; a MeshInspector Windows runner checking out MeshLib's mrbind
submodule went over MAX_PATH. The ffi classes are named after the C files,
which the C generator truncates at 100 plus a hash, so they escaped the Java
limit. The tests now pass --max-class-name-length 64 (max path 141).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Fedr
Fedr merged commit 37c2efb into vibecoded Oct 16, 2026
@Fedr
Fedr deleted the java-short-paths branch October 16, 2026 09:47
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