JUnit and request recorders both record the same integration test; no way to pick one
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 28/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- java, spring-boot
Piste de recherche
Start by reproducing with mvn -Dtest=PetClinicIntegrationTests#testOwnerDetails test in spring-petclinic, then compare the outputs under tmp/appmap/junit and tmp/appmap/request_recording. The issue leaves open whether the fix is a configuration switch or a documented rule, so a maintainer decision is needed first. Done means one recorder is chosen when both would fire, with the rule or setting documented.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Summary
A single Spring Boot integration test that issues an HTTP request through a real port produces two recordings of the same behavior: one from the JUnit recorder, one from the request recorder. Both recorders are on by default, neither knows about the other, and there is no documented setting to disable one.
Agent 1.30.1, spring-petclinic @ b26f235.
Repro
mvn -Dtest=PetClinicIntegrationTests#testOwnerDetails test
ls tmp/appmap/junit tmp/appmap/request_recording
Observed
tmp/appmap/junit/org_..._PetClinicIntegrationTests_testOwnerDetails.appmap.json
tmp/appmap/request_recording/1789755390_129__owners_1.appmap.json
The JUnit recording contains the test method and everything under it; the request one contains the request, controller and SQL. They overlap almost entirely. The request recording's filename embeds a timestamp and a port-dependent counter, so it differs on every run and cannot serve as a stable baseline identity (the gold-traces engine's discover returns both and leaves the choice open).
Expected
A setting to select which recorder runs when both would fire (e.g. suppress request recordings that occur inside an active JUnit recording), or at least document the rule: curate the JUnit recording, use a request recording only when no test drives the endpoint.
- Langage dominant
- Java
- Étoiles
- 88
- Forks
- 17
- Merge moyen
- 2 j 2 h
- PR mergées (30 j)
- 1
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de getappmap/appmap-java
-
appmap.yml packages path matching zero classes yields a healthy-looking recording with no warningOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
getappmap/appmap-java#332 · 1 commentaire ·
-
Git metadata dropped in a git worktree (.git file with gitdir: pointer not followed)Peut-être pris @dividedmind l’a pris il y a 1 jour. Ouverte
getappmap/appmap-java#331 · 1 commentaire · 1 personne assignée ·
-
Labeled methods should always be recorded, even if they match trivial-method filtersPeut-être pris @kgilpin l’a pris il y a 190 jours. Ouverte
getappmap/appmap-java#323 · 1 réaction · 2 personnes assignées ·
-
Warning with Java 25Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
getappmap/appmap-java#322 ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
getappmap/appmap-java#308 ·
Toutes les issues de getappmap/appmap-java
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Netcracker/qubership-integration-platform#1046 ·
Les mainteneurs répondent en général sous 2 jours
-
`check_java_version()` fails when Java path contains spaces (Windows / Git Bash, `C:\Program Files`)Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
Fix Math.ceilDiv wrong result for exact positive divisionsPeut-être pris @pamod-madubashana l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
scala-native/scala-native#5094 ·
Les mainteneurs répondent en général sous 1 jour
-
[Bug] AI unread message badge counts a batch of new bubbles as one messagePeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
apache/rocketmq-dashboard#5784 ·
Les mainteneurs répondent en général sous 3 jours
-
[i18n] 安装实例完成后的成功提示未正确本地化Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
PCL-Community/PCL-CE#3658 ·
Les mainteneurs répondent en général sous 1 jour