Skip to content

Conversation

@aseembits93
Copy link
Contributor

Summary

  • Fixed incorrect return value order in run_behavioral_tests() that caused JaCoCo XML parsing to fail
  • The function was returning (result_xml_path, result, sqlite_db_path, coverage_xml_path) but the caller expected the coverage XML path in the third position
  • This caused the XML parser to try parsing a SQLite database as XML, resulting in "syntax error: line 1, column 0"
  • Added improved logging and error handling for JaCoCo coverage parsing

Test plan

  • Verified fix by running codeflash --optimize Algorithms.fibonacci and confirming 100% coverage is now reported
  • Run existing test suite

🤖 Generated with Claude Code

The Java test_runner was returning (result_xml_path, result, sqlite_db_path,
coverage_xml_path) but the caller expected coverage_database_file to be the
JaCoCo XML path, not the SQLite path. This caused the XML parser to fail with
"syntax error: line 1, column 0" when trying to parse a SQLite database as XML.

Also added improved logging and error handling for JaCoCo coverage parsing.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@aseembits93 aseembits93 merged commit 9558bb6 into omni-java Feb 6, 2026
17 of 31 checks passed
@aseembits93 aseembits93 deleted the fix/java-coverage-return-order branch February 6, 2026 22:53
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