getappmap / getappmap/appmap-js

Running tests again emits "The test commands failed to create AppMaps"

Open
#719 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
53
Forks
18
Avg merge
3d 18h
Merged PRs (30d)
8

Description

I executed the agent commands in https://github.com/spring-projects/spring-petclinic to record tests.

On the 1st run, it correctly printed that 40 AppMap files were created.
On the 2nd run (without code changes), it printed an error that no tests were recorded.
IMHO this shouldn't happen because the mvn test command was successfully executed and most likely only updated the existing .appmap.json files with new timestamps.

[WARNING] Tests run: 41, Failures: 0, Errors: 0, Skipped: 1
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  34.165 s
[INFO] Finished at: 2022-09-05T11:49:16+02:00
[INFO] ------------------------------------------------------------------------

! The test commands failed to create AppMaps

Help is available from the AppMap support team! If you want assistance, the test command,
error message, exit code, and APPMAP environment variables can be uploaded securely to the
AppMap ZenDesk support portal. The AppMap team will respond to you by email, so we'll need your
email address to open the support request.

! Would you like to open a support request? (Y/n) 

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the report in spring-projects/spring-petclinic by running the AppMap agent commands with mvn test twice without changing code. Start at the code path that emits "The test commands failed to create AppMaps" and trace how existing .appmap.json files are handled. Done means a successful second test run no longer reports that no tests were recorded, with regression coverage for the repeated run.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.