JUnit and request recorders both record the same integration test; no way to pick one
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 28/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- java, spring-boot
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Java
- Estrelas
- 88
- Forks
- 17
- Merge médio
- 2d 2h
- PRs com merge (30d)
- 1
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de getappmap/appmap-java
-
appmap.yml packages path matching zero classes yields a healthy-looking recording with no warningAberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 45/100
getappmap/appmap-java#332 · 1 comentário ·
-
Git metadata dropped in a git worktree (.git file with gitdir: pointer not followed)Talvez já em andamento @dividedmind assumiu há 2 dias. Aberta
getappmap/appmap-java#331 · 1 comentário · 1 responsável ·
-
Labeled methods should always be recorded, even if they match trivial-method filtersTalvez já em andamento @kgilpin assumiu há 192 dias. Aberta
getappmap/appmap-java#323 · 1 reação · 2 responsáveis ·
-
Warning with Java 25Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
getappmap/appmap-java#322 ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
getappmap/appmap-java#308 ·
Todas as issues de getappmap/appmap-java
Issues semelhantes
-
Clock.MakeDate continues execution and returns a rolled-over instant after dispatching error on invalid dateTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
mit-cml/appinventor-sources#4155 ·
Mantenedores costumam responder em até 1 dia
-
[Doc] - Creation du READMEAberta
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 62/100
Hira-shi/PW1-DAI-Carrel-Egal-Eyer#28 ·
Mantenedores costumam responder em até 1 dia
-
`GET /v1/event/token/{uuid}` can report a BOM upload as done before policy evaluation and metrics have finishedTalvez já em andamento @Zargath assumiu hoje. Abertadefect in triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
DependencyTrack/dependency-track#7646 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
floci-io/floci#5425 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
objectionary/eo-graphs#80 ·