Skip to content

fix(samples): add spring-boot-mongo mvnw config and drop stale sets - #156

Merged
slayerjain merged 1 commit into
mainfrom
fix/samples-java-cleanup-next
Nov 24, 2026
Merged

slayerjain merged 1 commit into
mainfrom
fix/samples-java-cleanup-next

Conversation

@slayerjain

Copy link
Copy Markdown
Member

Why

  • spring-boot-mongo/ shipped mvnw and mvnw.cmd (Apache Maven Wrapper 3.2.0) without .mvn/wrapper/maven-wrapper.properties, so ./mvnw -v failed on a fresh clone with cannot open /src/.mvn/wrapper/maven-wrapper.properties: No such file and java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain.
  • Five non-dedup samples shipped committed keploy/test-set-* (and report) directories from 2024–2025, which keploy/vscode-extension-enterprise (at origin/main c069f9c, src/model/t1.ts t1Sets/hasT1Recording) treats as an existing app recording on a fresh clone:
    • spring-boot-mongo: quickstart (java-spring-boot-mongo.md) and spring-boot-mongo/README.md both instruct users to record fresh.
    • spring-boot-xml/naive-spring-boot: quickstart (java-spring-boot-xml.md) instructs users to record fresh.
    • spring-petclinic/spring-petclinic-rest: quickstart (java-spring-postgres.md) and spring-petclinic/README.md record fresh, and both enterprise and OSS PetClinic CI scripts delete keploy/ before recording.
    • user-manager: user-manager/README.md instructs users to record fresh.
    • spring-mysql-redis: has no quickstart or CI dependency (its README does not mention Keploy), so removing its stale keploy/test-set-* folders avoids t1.ts misdetection on a fresh clone.

What

  • Added spring-boot-mongo/.mvn/wrapper/maven-wrapper.properties matching Maven Wrapper 3.2.0 (distributionUrl for Apache Maven 3.9.9 and wrapperUrl for maven-wrapper-3.2.0.jar).
  • Added .mvn/wrapper/maven-wrapper.jar to spring-boot-mongo/.gitignore so running ./mvnw does not leave an untracked downloaded jar in the working tree.
  • Removed stale keploy/ test-set and report folders from the five non-dedup samples above:
    • spring-boot-mongo/keploy/ (last touched 2024-01-17)
    • spring-boot-xml/naive-spring-boot/keploy/ (last touched 2025-03-11)
    • spring-mysql-redis/keploy/ (last touched 2024-08-16)
    • spring-petclinic/spring-petclinic-rest/keploy/ (last touched 2025-04-11)
    • user-manager/keploy/ (last touched 2024-01-17)
  • Kept all intentionally committed replay fixtures untouched (dropwizard-dedup, java-dedup, simple-java-dedup, and spring-boot-product-catalog/keploy/products-crud).

Evidence

  • On base commit 6d2a575, running ./mvnw -v in spring-boot-mongo/ inside eclipse-temurin:17-jdk failed with exit code 1 (cannot open /src/.mvn/wrapper/maven-wrapper.properties: No such file and java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain).
  • On commit ae6ff8f:
    • Running ./mvnw -v in spring-boot-mongo/ inside eclipse-temurin:17-jdk succeeded with exit code 0 (Apache Maven 3.9.9).
    • pom.xml declares <java.version>20</java.version>, which JDK 17 cannot compile (release version 20 not supported) and JDK 21 can compile: running ./mvnw -B -DskipTests clean install inside eclipse-temurin:21-jdk succeeded with exit code 0 (BUILD SUCCESS), and git status --porcelain exited 0 with empty output.
  • Checked keploy/docs quickstarts (java-spring-boot-mongo.md, java-spring-boot-xml.md, java-spring-postgres.md), sample READMEs, samples-java/.github/workflows/ (grep exit code 1 — zero matches for the five removed paths), and cross-repo CI in keploy/enterprise (.woodpecker/java-linux.yml -> .ci/scripts/java-linux.sh:34 runs rm -rf keploy/; saas-cloud-replay-e2e.yml and selfhosted-cloud-replay-e2e.yml use only mysql-crud, pinned 6645b0d9) and keploy/keploy (.github/workflows/java_linux.yml -> .github/workflows/test_workflow_scripts/java/spring_petclinic/java-linux.sh:697 runs sudo rm -rf keploy/). git ls-tree confirms all dedup and spring-boot-product-catalog/keploy/products-crud fixtures remain intact.

Add spring-boot-mongo/.mvn/wrapper/maven-wrapper.properties matching the
checked-in Maven Wrapper 3.2.0 scripts (and ignore the downloaded
maven-wrapper.jar) so ./mvnw runs out of the box without a separate Maven
install.

Remove stale committed keploy/ test-set and report folders from non-dedup
samples whose quickstarts record fresh (spring-boot-mongo,
spring-boot-xml/naive-spring-boot, spring-mysql-redis,
spring-petclinic/spring-petclinic-rest, user-manager), keeping the CI
dedup and product-catalog fixtures untouched.

Signed-off-by: slayerjain <[email protected]>
@slayerjain
slayerjain merged commit 097ffe5 into main Nov 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant