-
Notifications
You must be signed in to change notification settings - Fork 94
Ind schedule task #1214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
man-zhang
wants to merge
17
commits into
master
Choose a base branch
from
ind-schedule-task
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Ind schedule task #1214
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
4e57af4
add a fix
man-zhang 4423f33
fix a bug in initializing rpc individual
man-zhang 3566221
stop executing of schedule tasks if any fails
man-zhang 7ba5481
construct action results for successfully executed task and the last …
man-zhang 58463f6
temporal fix
man-zhang 33a47d8
fix
man-zhang f2afc4c
add more log info for failure of execution of schedule task
man-zhang 11efed6
fix get impact
man-zhang ccda878
add a check for schedule action cluster
man-zhang 19be4e7
specified a seeded test which contains only schedule tasks
man-zhang e2eee6d
init impacts for schedule task
man-zhang 79b50c0
add schedule task size in constructor of rest individual
man-zhang b9110cf
add test
man-zhang 95fb86a
add doc
man-zhang a7dd92a
fix
man-zhang 4238d07
reproduce the problem related to additional info
man-zhang 3d17ccd
fix additional info
man-zhang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
import org.evomaster.client.java.controller.api.dto.ActionDto; | ||
import org.evomaster.client.java.controller.api.dto.BootTimeInfoDto; | ||
import org.evomaster.client.java.controller.api.dto.UnitsInfoDto; | ||
import org.evomaster.client.java.controller.api.dto.problem.rpc.ScheduleTaskInvocationDto; | ||
import org.evomaster.client.java.instrumentation.*; | ||
import org.evomaster.client.java.instrumentation.staticstate.ExecutionTracer; | ||
import org.evomaster.client.java.instrumentation.staticstate.ObjectiveRecorder; | ||
|
@@ -455,6 +456,29 @@ public final void newActionSpecificHandler(ActionDto dto) { | |
} | ||
} | ||
|
||
@Override | ||
public void newScheduleActionSpecificHandler(ScheduleTaskInvocationDto dto) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should it be marked with |
||
if (isInstrumentationActivated()) { | ||
|
||
List<String> inputVariables = new ArrayList<>(); | ||
if (dto.requestParams != null && (!dto.requestParams.isEmpty())){ | ||
inputVariables.addAll(dto.requestParams.stream().map(e-> e.stringValue).collect(Collectors.toList())); | ||
} else if (dto.requestParamsAsStrings != null){ | ||
inputVariables.addAll(dto.requestParamsAsStrings); | ||
} | ||
|
||
serverController.setAction(new Action( | ||
dto.index, | ||
dto.taskName, | ||
inputVariables, | ||
// might handle external service later, then add empty collection for the moment. | ||
new HashMap<>(), | ||
new HashMap<>(), | ||
new ArrayList<>() | ||
)); | ||
} | ||
} | ||
|
||
@Override | ||
public final UnitsInfoDto getUnitsInfoDto(){ | ||
|
||
|
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it be marked with
final
to avoid users overriding it?