feat: add Java dynamic dedup agent#180
Open
officialasishkumar wants to merge 4 commits intokeploy:mainfrom
Open
feat: add Java dynamic dedup agent#180officialasishkumar wants to merge 4 commits intokeploy:mainfrom
officialasishkumar wants to merge 4 commits intokeploy:mainfrom
Conversation
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
15 tasks
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Signed-off-by: Asish Kumar <officialasishkumar@gmail.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.
Related Issue
Closes: NA
Describe the changes you've made
Adds Java dynamic dedup support to the SDK using the same Enterprise control/data socket protocol as Go, adapted to Java with JaCoCo TCP server mode.
KeployDedupAgentthat listens on/tmp/coverage_control.sock.START <test-set>/<test-id>by resetting JaCoCo counters.END <test-set>/<test-id>by dumping/resetting JaCoCo execution data, analyzing app classes, sending{id, executedLinesByFile}to/tmp/coverage_data.sock, and ACKing Enterprise.KEPLOY_JAVA_CLASS_DIRS,target/classes, andbuild/classes/java/mainfor replay speed.Type of change
How did you test your code changes?
mvn -B -DskipTests packagemvn -B -DskipTests -Dgpg.skip=true install -pl keploy-sdk -ammaven:3.9.9-eclipse-temurin-8 mvn -B -DskipTests -Dgpg.skip=true package -pl keploy-sdk -ammaven:3.9.9-eclipse-temurin-21 mvn -B -DskipTests packageSTART,END,ACK, and app-only JSON coverage payload./tmpshared: verifiedACKand app-only JSON coverage payload.no-new-privileges: verifiedACKand app-only JSON coverage payload when the Enterprise data socket is writable.No unit tests were added by request; validation is build, runtime socket, Docker, and CI sample coverage.
Describe if there is any unusual behaviour of your code(Write
NAif there isn't)Java dedup requires the application to run with JaCoCo in TCP server mode. The default endpoint is
127.0.0.1:36320, overrideable withKEPLOY_JACOCO_HOSTandKEPLOY_JACOCO_PORTor JVM properties.Checklist:
Screenshots (if any)
NA