Skip to content

Commit b8c92a7

Browse files
test: reduce java dedup fixtures
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
1 parent 347d2e6 commit b8c92a7

603 files changed

Lines changed: 8 additions & 23483 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/java-dedup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232
set -euo pipefail
3333
fixture_count="$(find keploy -path '*/tests/test-*.yaml' -size +100c | wc -l | tr -d ' ')"
3434
tracked_count="$(git ls-files 'keploy/test-set-*/tests/test-*.yaml' | wc -l | tr -d ' ')"
35-
test "${fixture_count}" = "1000"
36-
test "${tracked_count}" = "1000"
35+
test "${fixture_count}" = "400"
36+
test "${tracked_count}" = "400"
3737
3838
- name: Build java-dedup without Keploy compile dependency
3939
working-directory: java-dedup

java-dedup/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Java Dynamic Deduplication Sample
22

3-
A Spring Boot application used by Keploy CI to validate Java dynamic deduplication. It mirrors the Go dedup sample by exposing a broad set of endpoints and committing 1000 replay fixtures across four testsets.
3+
A Spring Boot application used by Keploy CI to validate Java dynamic deduplication. It mirrors the Go dedup sample by exposing a broad set of endpoints and committing 400 replay fixtures across four testsets.
44

5-
CI does not record this sample. The `keploy/` directory is checked in so the pipeline only builds the app and runs replay with `--dedup`. When the sample behavior changes, record the fixtures locally and push the updated `keploy/` files.
5+
CI does not record this sample. The `keploy/` directory is checked in so the pipeline only builds the app and runs replay with `--dedup --skip-app-restart`. When the sample behavior changes, record the fixtures locally and push the updated `keploy/` files.
66

77
The Keploy Java SDK is attached as a Java agent at replay time. The sample does not compile against `io.keploy:keploy-sdk` and does not import Keploy classes in application code.
88

@@ -21,7 +21,7 @@ This produces `target/java-dedup-0.0.1-SNAPSHOT.jar`, copies `target/keploy-sdk.
2121
```bash
2222
keploy test \
2323
-c "java -javaagent:target/keploy-sdk.jar -javaagent:target/jacocoagent.jar -jar target/java-dedup-0.0.1-SNAPSHOT.jar" \
24-
--dedup --language java --delay 1 \
24+
--dedup --skip-app-restart --language java --delay 1 \
2525
--health-url "http://127.0.0.1:8080/healthz" \
2626
--health-poll-timeout 30s \
2727
--disableMockUpload --disableReportUpload
@@ -37,7 +37,7 @@ keploy test \
3737
-c "docker compose up" \
3838
--container-name "dedup-java" \
3939
--host "127.0.0.1" \
40-
--dedup --language java --delay 1 \
40+
--dedup --skip-app-restart --language java --delay 1 \
4141
--health-url "http://127.0.0.1:8080/healthz" \
4242
--health-poll-timeout 30s \
4343
--disableMockUpload --disableReportUpload
@@ -56,7 +56,7 @@ keploy test \
5656
-c "docker run --rm --name dedup-java -p 8080:8080 java-dedup:local" \
5757
--container-name "dedup-java" \
5858
--host "127.0.0.1" \
59-
--dedup --language java --delay 1 \
59+
--dedup --skip-app-restart --language java --delay 1 \
6060
--health-url "http://127.0.0.1:8080/healthz" \
6161
--health-poll-timeout 30s \
6262
--disableMockUpload --disableReportUpload

java-dedup/keploy/test-set-0/tests/test-102.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.

java-dedup/keploy/test-set-0/tests/test-103.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.

java-dedup/keploy/test-set-0/tests/test-104.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.

java-dedup/keploy/test-set-0/tests/test-105.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.

java-dedup/keploy/test-set-0/tests/test-106.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.

java-dedup/keploy/test-set-0/tests/test-107.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.

java-dedup/keploy/test-set-0/tests/test-108.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.

java-dedup/keploy/test-set-0/tests/test-109.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)