Repository navigation
Conversation
A parameterized test whose parameter Jackson cannot serialize (a protobuf message, an object with a cyclic getter) failed the whole batch request. The client rethrows it as a RuntimeException, sendBatch caught only IOException, and the exception cancelled the fixed-rate flush task, so no results were reported for the rest of the run. - NativeRequestBodyBuilder: example values are converted with valueToTree and fall back to String.valueOf when they cannot be serialized - BatchResultManager: runtime exceptions go through the existing retry and failedResults path instead of escaping the scheduled task Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #156
Problem
A parameterized test whose parameter cannot be serialized by Jackson (a protobuf message, an object with a cyclic getter) fails the whole batch request.
TestomatioClientrethrows it asReportingFailedException,BatchResultManager.sendBatchcatches onlyIOException, and the exception cancels the fixed-rate flush task. From that moment no results are reported until the end of the run, and the final flush inshutdown()fails the same way. The run ends up with a few results, statuspassed, and no failures.The same happens on any other error in
reportTest/reportTests, including a transient network error, because the client wraps every exception into aRuntimeException.Changes
NativeRequestBodyBuilder:examplevalues are converted withvalueToTree; a value that cannot be serialized is reported asString.valueOf(value). Serializable values are reported exactly as before.BatchResultManager.sendBatch: runtime exceptions go through the existing retry /failedResultspath instead of escaping the scheduled task.Tests
NativeRequestBodyBuilderTest: a batch with a self-referencing parameter is built, the parameter is reported as a string, other values and other tests of the batch are intact.BatchResultManagerTest: after aReportingFailedExceptionthe next flush still reports results.Both tests fail on
1.xwithout the change.mvn testinjava-reporter-core: 394 tests pass, Checkstyle is clean. The other modules were not built locally.🤖 Generated with Claude Code