Repository navigation
keep target ids across SUT restarts with external drivers - #1956
Open
andyfelder16 wants to merge 4 commits into
Open
andyfelder16 wants to merge 4 commits into
andyfelder16 wants to merge 4 commits into
Conversation
andyfelder16
marked this pull request as ready for review
November 27, 2026 12:32
jgaleotti
requested changes
Nov 27, 2026
jgaleotti
approved these changes
Dec 2, 2026
arcuri82
requested changes
Dec 3, 2026
arcuri82
requested changes
Dec 3, 2026
| /** | ||
| * @return whether {@link #info(String)} prints, so that building an expensive message can be skipped | ||
| */ | ||
| public static boolean isInfoEnabled(){ |
Collaborator
There was a problem hiding this comment.
why this? there is already isInfo() that does the same. maybe the name isLevel is misleading (as it is not an exact match). You could rename it into isLevelEnabled in this PR when you remove isInfoEnabled()
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.
When EvoMaster restarts a SUT run by an external driver, the new process starts with an empty id mapping in
ObjectiveRecorder, while the core keeps asking for the ids of the old one.getDescriptiveIdthrowsId 'N' is not mapped,handleTargetInfosdoes not answer, the driver hits the socket timeout and restarts the SUT again, so the search ends up in a loop of restarts. In slow SUTs the first restart came from a separate issue: a request that timed out kept pushing tolastExecutedStatementStackswhileAdditionalInfowas being serialized, and theArrayDequeinside corrupted the stream.ServerControllerrecords the numeric id of every target the SUT reports, and sends that mapping to the agent of a new SUT process as soon as it connectsAgentControllerloads it throughObjectiveRecorder.restoreIdMappingbefore the SUT classes run, so a restarted process answers for the same ids and gives new targets ids that do not clash with them. The agent waits for it at most 10 shandleTargetInfosalways repliesAdditionalInfoareConcurrentLinkedDequeOn two WFD SUTs run with external drivers (joinus 3x30 min, adoptme 2x1 h), the
not mappederrors and the stream corruption are gone, and the search evaluates 4 to 18 times more tests.