getappmap/appmap-agent-js

Support concurrent jest test cases

Closed this issue ยท 1 comments

Even with --runInBand jest is still running some test cases concurrently, I'm not sure why...

soft@HPFFCDE2 models % npx appmap-agent-js
APPMAP-WARNING Repository directory "file:///Users/soft/Desktop/workspace/appmap-js/packages/models/" is not a git directory
(node:16699) ExperimentalWarning: Custom ESM Loaders is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:16699) ExperimentalWarning: VM Modules is an experimental feature and might change at any time

 RUNS  tests/unit/event.spec.js
APPMAP-INFO Recording jest test cases of process #16699 -- ["/Users/soft/.nvm/versions/node/v18.13.0/bin/node","/Users/soft/Desktop/workspace/appmap-js/node_modules/jest-cli/bin/je PASS  tests/unit/event.spec.jse","--transform","{\"^\":[\"/Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/lib/node/transformer-jest.mjs\",{}]}","--se
 RUNS  tests/unit/classMap.spec.js
APPMAP-INFO Recording jest test cases of process #16699 -- ["/Users/soft/.nvm/versions/node/v18.13.0/bin/node","/Users/soft/Desktop/workspace/appmap-js/node_modules/jest-cli/bin/je PASS  tests/unit/classMap.spec.js"--transform","{\"^\":[\"/Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/lib/node/transformer-jest.mjs\",{}]}","--se
 RUNS  tests/unit/eventNavigator.spec.js
APPMAP-INFO Recording jest test cases of process #16699 -- ["/Users/soft/.nvm/versions/node/v18.13.0/bin/node","/Users/soft/Desktop/workspace/appmap-js/node_modules/jest-cli/bin/je PASS  tests/unit/eventNavigator.spec.js (19.89 s)\"^\":[\"/Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/lib/node/transformer-jest.mjs\",{}]}","--se
 RUNS  tests/unit/appMap.spec.js
APPMAP-INFO Recording jest test cases of process #16699 -- ["/Users/soft/.nvm/versions/node/v18.13.0/bin/node","/Users/soft/Desktop/workspace/appmap-js/node_modules/jest-cli/bin/je PASS  tests/unit/appMap.spec.js","--transform","{\"^\":[\"/Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/lib/node/transformer-jest.mjs\",{}]}","--se
 RUNS  tests/unit/sql.spec.js
APPMAP-INFO Recording jest test cases of process #16699 -- ["/Users/soft/.nvm/versions/node/v18.13.0/bin/node","/Users/soft/Desktop/workspace/appmap-js/node_modules/jest-cli/bin/je PASS  tests/unit/sql.spec.jsche","--transform","{\"^\":[\"/Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/lib/node/transformer-jest.mjs\",{}]}","--se
 RUNS  tests/unit/appMapBuilder.spec.js
APPMAP-INFO Recording jest test cases of process #16699 -- ["/Users/soft/.nvm/versions/node/v18.13.0/bin/node","/Users/soft/Desktop/workspace/appmap-js/node_modules/jest-cli/bin/jest.js","--runInBand","--no-cache","--transform","{\"^\":[\"/Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/lib/node/transformer-jest.mjs\",{}]}","--setupFilesAfterEnv","/Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/lib/node/recorder.mjs"]
START jest-fflq0ojo
STOP  jest-fflq0ojo
START jest-ffnj7rr8
STOP  jest-ffnj7rr8
START jest-ffns17bf
STOP  jest-ffns17bf
START jest-ffnvuevg
STOP  jest-ffnvuevg
START jest-ffo1ln8g
STOP  jest-ffo1ln8g
START jest-ffo4ks7g
STOP  jest-ffo4ks7g
START jest-ffo7o78g
STOP  jest-ffo7o78g
START jest-ffo94dm8
STOP  jest-ffo94dm8
APPMAP-INFO Received trace for file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/parse%20SQL%20produces%20a%20parse%20tree.appmap.json
Trace size: 2
Event Distribution:
  - apply: 1 [50%]
  - return: 1 [50%]
Most frequently applied functions:
  - oDRb0USsABoMkcmHnOdzWBjPBvFMLRggUSOduCfPaGs=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/parse.js:4:15: 1 [100%]

APPMAP-INFO Received trace for file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/parse%20SQL%20reports%20a%20parse%20error.appmap.json
Trace size: 6
Event Distribution:
  - apply: 3 [50%]
  - return: 3 [50%]
Most frequently applied functions:
  - oDRb0USsABoMkcmHnOdzWBjPBvFMLRggUSOduCfPaGs=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/parse.js:4:15: 1 [33%]
  - +zS5g2QS7zWuD7BXzzAmFC7XLz61dWEXhYRag8AR8lE=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/parseError.js:2:13: 1 [33%]
  - +zS5g2QS7zWuD7BXzzAmFC7XLz61dWEXhYRag8AR8lE=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/parseError.js:8:10: 1 [33%]

APPMAP-INFO Received trace for file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/normalize%20SQL%20removes%20literals.appmap.json
Trace size: 4
Event Distribution:
  - apply: 2 [50%]
  - return: 2 [50%]
Most frequently applied functions:
  - o4dyq7YTfiJg9cp6chVFjDzlKnoRotPIYBfd4MoKQ6U=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/normalize.js:94:15: 1 [50%]
  - o4dyq7YTfiJg9cp6chVFjDzlKnoRotPIYBfd4MoKQ6U=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/normalize.js:80:0: 1 [50%]

APPMAP-INFO Received trace for file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/normalize%20SQL%20removes%20comments%20correctly.appmap.json
Trace size: 4
Event Distribution:
  - apply: 2 [50%]
  - return: 2 [50%]
Most frequently applied functions:
  - o4dyq7YTfiJg9cp6chVFjDzlKnoRotPIYBfd4MoKQ6U=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/normalize.js:94:15: 1 [50%]
  - o4dyq7YTfiJg9cp6chVFjDzlKnoRotPIYBfd4MoKQ6U=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/normalize.js:80:0: 1 [50%]

APPMAP-INFO Received trace for file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/normalize%20SQL%20handles%20comments%20in%20strings.appmap.json
Trace size: 4
Event Distribution:
  - apply: 2 [50%]
  - return: 2 [50%]
Most frequently applied functions:
  - o4dyq7YTfiJg9cp6chVFjDzlKnoRotPIYBfd4MoKQ6U=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/normalize.js:94:15: 1 [50%]
  - o4dyq7YTfiJg9cp6chVFjDzlKnoRotPIYBfd4MoKQ6U=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/normalize.js:80:0: 1 [50%]

APPMAP-INFO Received trace for file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/normalize%20SQL%20handles%20backslashes%20and%20escapes%20in%20strings%20correctly.appmap.json
Trace size: 8
Event Distribution:
  - apply: 4 [50%]
  - return: 4 [50%]
Most frequently applied functions:
  - o4dyq7YTfiJg9cp6chVFjDzlKnoRotPIYBfd4MoKQ6U=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/normalize.js:94:15: 2 [50%]
  - o4dyq7YTfiJg9cp6chVFjDzlKnoRotPIYBfd4MoKQ6U=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/normalize.js:80:0: 2 [50%]

APPMAP-INFO Received trace for file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/normalize%20SQL%20handles%20comments%20embedded%20in%20multiline%20SQL.appmap.json
Trace size: 4
Event Distribution:
  - apply: 2 [50%]
  - return: 2 [50%]
Most frequently applied functions:
  - o4dyq7YTfiJg9cp6chVFjDzlKnoRotPIYBfd4MoKQ6U=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/normalize.js:94:15: 1 [50%]
  - o4dyq7YTfiJg9cp6chVFjDzlKnoRotPIYBfd4MoKQ6U=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/normalize.js:80:0: 1 [50%]

APPMAP-INFO Received trace for file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/analyze%20SQL%20extracts%20key%20SQL%20features.appmap.json
Trace size: 56
Event Distribution:
  - apply: 28 [50%]
  - return: 28 [50%]
Most frequently applied functions:
  - p5jVbvivdglz+VrYiq+Mk9V+2Gb+QyRBm4sbzxENuXQ=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/analyze.js:16:2: 12 [43%]
  - p5jVbvivdglz+VrYiq+Mk9V+2Gb+QyRBm4sbzxENuXQ=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/analyze.js:33:2: 7 [25%]
  - p5jVbvivdglz+VrYiq+Mk9V+2Gb+QyRBm4sbzxENuXQ=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/analyze.js:70:2: 4 [14%]
  - p5jVbvivdglz+VrYiq+Mk9V+2Gb+QyRBm4sbzxENuXQ=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/analyze.js:98:2: 3 [11%]
  - p5jVbvivdglz+VrYiq+Mk9V+2Gb+QyRBm4sbzxENuXQ=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/analyze.js:5:15: 1 [4%]
  - oDRb0USsABoMkcmHnOdzWBjPBvFMLRggUSOduCfPaGs=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/sql/parse.js:4:15: 1 [4%]

APPMAP-INFO Appmap written at "file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/parse%20SQL%20produces%20a%20parse%20tree.appmap.json"
APPMAP-INFO Appmap written at "file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/parse%20SQL%20reports%20a%20parse%20error.appmap.json"
APPMAP-INFO Appmap written at "file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/normalize%20SQL%20removes%20literals.appmap.json"
APPMAP-INFO Appmap written at "file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/normalize%20SQL%20removes%20comments%20correctly.appmap.json"
APPMAP-INFO Appmap written at "file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/normalize%20SQL%20handles%20comments%20in%20strings.appmap.json"
APPMAP-INFO Appmap written at "file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/normalize%20SQL%20handles%20backslashes%20and%20escapes%20in%20strings%20correctly.appmap.json"
APPMAP-INFO Appmap written at "file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/normalize%20SQL%20handles%20comments%20embedded%20in%20multiline%20SQL PASS  tests/unit/appMapBuilder.spec.js (5.569 s)

 RUNS  tests/unit/codeObjectId.spec.js
APPMAP-INFO Recording jest test cases of process #16699 -- ["/Users/soft/.nvm/versions/node/v18.13.0/bin/node","/Users/soft/Desktop/workspace/appmap-js/node_modules/jest-cli/bin/je PASS  tests/unit/codeObjectId.spec.jsransform","{\"^\":[\"/Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/lib/node/transformer-jest.mjs\",{}]}","--se
 RUNS  tests/unit/appMap.diff.spec.js
APPMAP-INFO Recording jest test cases of process #16699 -- ["/Users/soft/.nvm/versions/node/v18.13.0/bin/node","/Users/soft/Desktop/workspace/appmap-js/node_modules/jest-cli/bin/jest.js","--runInBand","--no-cache","--transform","{\"^\":[\"/Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/lib/node/transformer-jest.mjs\",{}]}","--setupFilesAfterEnv","/Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/lib/node/recorder.mjs"]
START jest-flgi8tkk
STOP  jest-flgi8tkk
START jest-flgpiomk
STOP  jest-flgpiomk
START jest-flgr4l8o
STOP  jest-flgr4l8o
START jest-flgs29fg
STOP  jest-flgs29fg
START jest-flgu6eio
STOP  jest-flgu6eio
START jest-flh0p5lg
STOP  jest-flh0p5lg
 PASS  tests/unit/appMap.diff.spec.js
  โ— Console

    console.log
      {
        "changed": [],
        "added": [
          [
            {
              "id": 15,
              "identity_properties": {
                "event_type": "function",
                "id": "app/models/User::Show#search_scope"
              },
              "stable_properties": {
                "event_type": "function",
                "id": "app/models/User::Show#search_scope",
                "raises_exception": false
              }
            }
          ],
          [
            {
              "id": 9,
              "identity_properties": {
                "event_type": "sql",
                "actions": [
                  "select"
                ],
                "tables": [
                  "apps2",
                  "orgs",
                  "users_orgs"
                ]
              },
              "stable_properties": {
                "event_type": "sql",
                "sql_normalized": "{\"type\":\"statement\",\"variant\":\"list\",\"statement\":[{\"type\":\"statement\",\"variant\":\"select\",\"result\":[{\"type\":\"identifier\",\"variant\":\"star\",\"name\":\"apps.*\"}],\"from\":{\"type\":\"identifier\",\"variant\":\"table\",\"name\":\"apps2\"},\"where\":[{\"type\":\"expression\",\"format\":\"binary\",\"variant\":\"operation\",\"operation\":\"and\",\"left\":{\"type\":\"expression\",\"format\":\"binary\",\"variant\":\"operation\",\"operation\":\"in\",\"right\":{\"type\":\"statement\",\"variant\":\"select\",\"result\":[{\"type\":\"identifier\",\"variant\":\"column\",\"name\":\"orgs.id\"}],\"from\":{\"type\":\"map\",\"variant\":\"join\",\"source\":{\"type\":\"identifier\",\"variant\":\"table\",\"name\":\"orgs\"},\"map\":[{\"type\":\"join\",\"variant\":\"inner join\",\"source\":{\"type\":\"identifier\",\"variant\":\"table\",\"name\":\"users_orgs\"},\"constraint\":{\"type\":\"constraint\",\"variant\":\"join\",\"format\":\"on\",\"on\":{\"type\":\"expression\",\"format\":\"binary\",\"variant\":\"operation\",\"operation\":\"=\",\"left\":{\"type\":\"identifier\",\"variant\":\"column\",\"name\":\"users_orgs.org_id\"},\"right\":{\"type\":\"identifier\",\"variant\":\"column\",\"name\":\"orgs.id\"}}}}]},\"where\":[{\"type\":\"expression\",\"format\":\"binary\",\"variant\":\"operation\",\"operation\":\"and\",\"left\":{\"type\":\"expression\",\"format\":\"binary\",\"variant\":\"operation\",\"operation\":\"=\",\"left\":{\"type\":\"identifier\",\"variant\":\"column\",\"name\":\"users_orgs.user_id\"},\"right\":{\"type\":\"variable\"}},\"right\":{\"type\":\"expression\",\"format\":\"binary\",\"variant\":\"operation\",\"operation\":\"is not\",\"left\":{\"type\":\"identifier\",\"variant\":\"column\",\"name\":\"orgs.id\"},\"right\":{\"type\":\"variable\"}}}]},\"left\":{\"type\":\"identifier\",\"variant\":\"column\",\"name\":\"apps.org_id\"}},\"right\":{\"type\":\"expression\",\"format\":\"binary\",\"variant\":\"operation\",\"operation\":\"=\",\"left\":{\"type\":\"identifier\",\"variant\":\"column\",\"name\":\"id\"},\"right\":{\"type\":\"variable\"}}}],\"limit\":{\"type\":\"expression\",\"variant\":\"limit\",\"start\":{\"type\":\"variable\"}}}]}"
              }
            }
          ]
        ],
        "removed": [
          [
            {
              "id": 1,
              "identity_properties": {
                "event_type": "function",
                "id": "app/models/DAO::User#validate"
              },
              "stable_properties": {
                "event_type": "function",
                "id": "app/models/DAO::User#validate",
                "raises_exception": false
              }
            }
          ],
          [
            {
              "id": 11,
              "identity_properties": {
                "event_type": "function",
                "id": "app/models/Search#filter"
              },
              "stable_properties": {
                "event_type": "function",
                "id": "app/models/Search#filter",
                "raises_exception": false
              }
            },
            {
              "id": 23,
              "identity_properties": {
                "event_type": "sql",
                "actions": [
                  "select"
                ],
                "tables": [
                  "apps",
                  "orgs",
                  "users_orgs"
                ]
              },
              "stable_properties": {
                "event_type": "sql",
                "sql_normalized": "{\"type\":\"statement\",\"variant\":\"list\",\"statement\":[{\"type\":\"statement\",\"variant\":\"select\",\"result\":[{\"type\":\"identifier\",\"variant\":\"star\",\"name\":\"apps.*\"}],\"from\":{\"type\":\"identifier\",\"variant\":\"table\",\"name\":\"apps\"},\"where\":[{\"type\":\"expression\",\"format\":\"binary\",\"variant\":\"operation\",\"operation\":\"and\",\"left\":{\"type\":\"expression\",\"format\":\"binary\",\"variant\":\"operation\",\"operation\":\"in\",\"right\":{\"type\":\"statement\",\"variant\":\"select\",\"result\":[{\"type\":\"identifier\",\"variant\":\"column\",\"name\":\"orgs.id\"}],\"from\":{\"type\":\"map\",\"variant\":\"join\",\"source\":{\"type\":\"identifier\",\"variant\":\"table\",\"name\":\"orgs\"},\"map\":[{\"type\":\"join\",\"variant\":\"inner join\",\"source\":{\"type\":\"identifier\",\"variant\":\"table\",\"name\":\"users_orgs\"},\"constraint\":{\"type\":\"constraint\",\"variant\":\"join\",\"format\":\"on\",\"on\":{\"type\":\"expression\",\"format\":\"binary\",\"variant\":\"operation\",\"operation\":\"=\",\"left\":{\"type\":\"identifier\",\"variant\":\"column\",\"name\":\"users_orgs.org_id\"},\"right\":{\"type\":\"identifier\",\"variant\":\"column\",\"name\":\"orgs.id\"}}}}]},\"where\":[{\"type\":\"expression\",\"format\":\"binary\",\"variant\":\"operation\",\"operation\":\"and\",\"left\":{\"type\":\"expression\",\"format\":\"binary\",\"variant\":\"operation\",\"operation\":\"=\",\"left\":{\"type\":\"identifier\",\"variant\":\"column\",\"name\":\"users_orgs.user_id\"},\"right\":{\"type\":\"variable\"}},\"right\":{\"type\":\"expression\",\"format\":\"binary\",\"variant\":\"operation\",\"operation\":\"is not\",\"left\":{\"type\":\"identifier\",\"variant\":\"column\",\"name\":\"orgs.id\"},\"right\":{\"type\":\"variable\"}}}]},\"left\":{\"type\":\"identifier\",\"variant\":\"column\",\"name\":\"apps.org_id\"}},\"right\":{\"type\":\"expression\",\"format\":\"binary\",\"variant\":\"operation\",\"operation\":\"=\",\"left\":{\"type\":\"identifier\",\"variant\":\"column\",\"name\":\"id\"},\"right\":{\"type\":\"variable\"}}}],\"limit\":{\"type\":\"expression\",\"variant\":\"limit\",\"start\":{\"type\":\"variable\"}}}]}"
              }
            }
          ]
        ]
      }

      at Object.<anonymous> (tests/unit/appMap.diff.spec.js:52:13)


Test Suites: 8 passed, 8 total
Tests:       89 passed, 89 total
Snapshots:   0 total
Time:        35.847 s
Ran all test suites.
APPMAP-INFO Received trace for file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/codeObjectId%20for%20package.appmap.json
Trace size: 6
Event Distribution:
  - apply: 3 [50%]
  - return: 3 [50%]
Most frequently applied functions:
  - +JqmGiWHwaMXMoxaONSoPSVguiDlwwnVfeJXFWC2iXM=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tests/unit/codeObjectId.spec.js:14:0: 1 [33%]
  - +JqmGiWHwaMXMoxaONSoPSVguiDlwwnVfeJXFWC2iXM=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tests/unit/codeObjectId.spec.js:4:13: 1 [33%]
  - Iun+uaqs8Iytks/YIOt7+WTwhYFU3NW57HMDpskyz8g=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/codeObjectId.js:3:15: 1 [33%]

APPMAP-INFO Received trace for file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/codeObjectId%20for%20multi-token%20package.appmap.json
Trace size: 10
Event Distribution:
  - apply: 5 [50%]
  - return: 5 [50%]
Most frequently applied functions:
  - +JqmGiWHwaMXMoxaONSoPSVguiDlwwnVfeJXFWC2iXM=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tests/unit/codeObjectId.spec.js:4:13: 2 [40%]
  - Iun+uaqs8Iytks/YIOt7+WTwhYFU3NW57HMDpskyz8g=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/codeObjectId.js:3:15: 2 [40%]
  - +JqmGiWHwaMXMoxaONSoPSVguiDlwwnVfeJXFWC2iXM=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tests/unit/codeObjectId.spec.js:14:0: 1 [20%]

APPMAP-INFO Received trace for file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/codeObjectId%20for%20class.appmap.json
Trace size: 10
Event Distribution:
  - apply: 5 [50%]
  - return: 5 [50%]
Most frequently applied functions:
  - +JqmGiWHwaMXMoxaONSoPSVguiDlwwnVfeJXFWC2iXM=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tests/unit/codeObjectId.spec.js:4:13: 2 [40%]
  - Iun+uaqs8Iytks/YIOt7+WTwhYFU3NW57HMDpskyz8g=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/codeObjectId.js:3:15: 2 [40%]
  - +JqmGiWHwaMXMoxaONSoPSVguiDlwwnVfeJXFWC2iXM=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tests/unit/codeObjectId.spec.js:14:0: 1 [20%]

APPMAP-INFO Received trace for file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/codeObjectId%20for%20multi-token%20class.appmap.json
Trace size: 18
Event Distribution:
  - apply: 9 [50%]
  - return: 9 [50%]
Most frequently applied functions:
  - +JqmGiWHwaMXMoxaONSoPSVguiDlwwnVfeJXFWC2iXM=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tests/unit/codeObjectId.spec.js:4:13: 4 [44%]
  - Iun+uaqs8Iytks/YIOt7+WTwhYFU3NW57HMDpskyz8g=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/codeObjectId.js:3:15: 4 [44%]
  - +JqmGiWHwaMXMoxaONSoPSVguiDlwwnVfeJXFWC2iXM=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tests/unit/codeObjectId.spec.js:14:0: 1 [11%]

APPMAP-INFO Received trace for file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/codeObjectId%20for%20function.appmap.json
Trace size: 14
Event Distribution:
  - apply: 7 [50%]
  - return: 7 [50%]
Most frequently applied functions:
  - +JqmGiWHwaMXMoxaONSoPSVguiDlwwnVfeJXFWC2iXM=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tests/unit/codeObjectId.spec.js:4:13: 3 [43%]
  - Iun+uaqs8Iytks/YIOt7+WTwhYFU3NW57HMDpskyz8g=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/codeObjectId.js:3:15: 3 [43%]
  - +JqmGiWHwaMXMoxaONSoPSVguiDlwwnVfeJXFWC2iXM=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tests/unit/codeObjectId.spec.js:14:0: 1 [14%]

Jest did not exit one second after the test run has completed.

This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.
APPMAP-INFO Received trace for file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/codeObjectId%20for%20static%20function.appmap.json
Trace size: 14
Event Distribution:
  - apply: 7 [50%]
  - return: 7 [50%]
Most frequently applied functions:
  - +JqmGiWHwaMXMoxaONSoPSVguiDlwwnVfeJXFWC2iXM=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tests/unit/codeObjectId.spec.js:4:13: 3 [43%]
  - Iun+uaqs8Iytks/YIOt7+WTwhYFU3NW57HMDpskyz8g=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/codeObjectId.js:3:15: 3 [43%]
  - +JqmGiWHwaMXMoxaONSoPSVguiDlwwnVfeJXFWC2iXM=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tests/unit/codeObjectId.spec.js:14:0: 1 [14%]

APPMAP-INFO Received trace for file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/codeObjectId%20for%20other%20type.appmap.json
Trace size: 14
Event Distribution:
  - apply: 7 [50%]
  - return: 7 [50%]
Most frequently applied functions:
  - +JqmGiWHwaMXMoxaONSoPSVguiDlwwnVfeJXFWC2iXM=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tests/unit/codeObjectId.spec.js:4:13: 3 [43%]
  - Iun+uaqs8Iytks/YIOt7+WTwhYFU3NW57HMDpskyz8g=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/codeObjectId.js:3:15: 3 [43%]
  - +JqmGiWHwaMXMoxaONSoPSVguiDlwwnVfeJXFWC2iXM=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tests/unit/codeObjectId.spec.js:14:0: 1 [14%]

START jest-flvbc54o
STOP  jest-flvbc54o
APPMAP-INFO Appmap written at "file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/codeObjectId%20for%20package.appmap.json"
START jest-erpc9e58
STOP  jest-erpc9e58
START jest-erpu8j3g
STOP  jest-erpu8j3g
START jest-erq3d7e8
STOP  jest-erq3d7e8
START jest-erq6l3j8
STOP  jest-erq6l3j8
START jest-erq8igea
STOP  jest-erq8igea
START jest-erqb2bjg
STOP  jest-erqb2bjg
START jest-erqc64en
STOP  jest-erqc64en
START jest-erqof9ga
APPMAP-INFO Appmap written at "file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/codeObjectId%20for%20multi-token%20package.appmap.json"
START jest-emeec4qp
START_CONCURRENCY  { old_key: 'jest-erqof9ga', new_key: 'jest-emeec4qp' }
STOP  jest-emeec4qp
START jest-ememqiao
STOP  jest-ememqiao
START jest-emeq042g
STOP  jest-emeq042g
START jest-emeslmvg
STOP  jest-emeslmvg
START jest-emfa13hg
STOP  jest-emfa13hg
START jest-emfpre7g
STOP  jest-emfpre7g
START jest-emfq03dg
STOP  jest-emfq03dg
START jest-emfrqfg8
STOP  jest-emfrqfg8
START jest-emghdbco
STOP  jest-emghdbco
START jest-emgs8ak8
STOP  jest-emgs8ak8
START jest-emhj6lbo
STOP  jest-emhj6lbo
START jest-emhkjp2o
STOP  jest-emhkjp2o
START jest-emhl0sr8
STOP  jest-emhl0sr8
START jest-emhme51o
STOP  jest-emhme51o
START jest-emhn72dg
STOP  jest-emhn72dg
START jest-emho9itq
STOP  jest-emho9itq
START jest-emhpnbkg
STOP  jest-emhpnbkg
START jest-emhq8038
STOP  jest-emhq8038
START jest-emhrseao
STOP  jest-emhrseao
START jest-emhsof8o
STOP  jest-emhsof8o
START jest-emhugu58
STOP  jest-emhugu58
START jest-emi2a8hv
STOP  jest-emi2a8hv
START jest-emi4if08
STOP  jest-emi4if08
START jest-emi7gv59
STOP  jest-emi7gv59
START jest-emi9ekg8
STOP  jest-emi9ekg8
START jest-emib0d4g
STOP  jest-emib0d4g
START jest-ff2fkp68
STOP  jest-ff2fkp68
START jest-ff2m9deg
STOP  jest-ff2m9deg
START jest-ff2n5msg
STOP  jest-ff2n5msg
START jest-ff2ovv0g
STOP  jest-ff2ovv0g
START jest-ff3012t8
START jest-fhgffjfg
START_CONCURRENCY  { old_key: 'jest-ff3012t8', new_key: 'jest-fhgffjfg' }
STOP  jest-ff3012t8
STOP_CONCURRENCY { old_key: 'jest-fhgffjfg', new_key: 'jest-ff3012t8' }
START jest-ff83rotg
STOP  jest-ff83rotg
START jest-ff8bac28
STOP  jest-ff8bac28
START jest-ff8g3ldd
STOP  jest-ff8g3ldd
APPMAP-INFO Appmap written at "file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/codeObjectId%20for%20class.appmap.json"
APPMAP-INFO Appmap written at "file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/codeObjectId%20for%20multi-token%20class.appmap.json"
STOP  jest-fhgffjfg
STOP_CONCURRENCY { old_key: null, new_key: 'jest-fhgffjfg' }
START jest-fief2gqg
STOP  jest-fief2gqg
START jest-fielcefo
APPMAP-INFO Appmap written at "file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/codeObjectId%20for%20function.appmap.json"
APPMAP-INFO Appmap written at "file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/codeObjectId%20for%20static%20function.appmap.json"
START jest-eq0tfcsg
START_CONCURRENCY  { old_key: 'jest-fielcefo', new_key: 'jest-eq0tfcsg' }
STOP  jest-eq0tfcsg
START jest-eq13hso8
STOP  jest-eq13hso8
START jest-eq15pmeg
STOP  jest-eq15pmeg
START jest-eq16ap5r
STOP  jest-eq16ap5r
START jest-eq171tfg
STOP  jest-eq171tfg
START jest-eq18h1qg
STOP  jest-eq18h1qg
START jest-eq1avlfo
STOP  jest-eq1avlfo
START jest-eq1avekg
STOP  jest-eq1avekg
START jest-eq1bsec8
STOP  jest-eq1bsec8
START jest-eq1fl80g
STOP  jest-eq1fl80g
START jest-eq1g39ho
STOP  jest-eq1g39ho
START jest-eq1hlh3g
APPMAP-INFO Appmap written at "file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/codeObjectId%20for%20other%20type.appmap.json"
STOP  jest-fielcefo
STOP_CONCURRENCY { old_key: 'jest-eq1hlh3g', new_key: 'jest-fielcefo' }
START jest-fjffm61f
STOP  jest-fjffm61f
START jest-fjh9ijio
STOP  jest-fjh9ijio
START jest-fjhkekd1
STOP  jest-eq1hlh3g
STOP_CONCURRENCY { old_key: 'jest-fjhkekd1', new_key: 'jest-eq1hlh3g' }
START jest-eq7ko99c
STOP  jest-eq7ko99c
START jest-eq86tnp8
STOP  jest-eq86tnp8
START jest-eq8plmmg
STOP  jest-eq8plmmg
START jest-eq8r78i8
STOP  jest-eq8r78i8
START jest-eq8sfcvg
STOP  jest-eq8sfcvg
START jest-eq8tgf9n
STOP  jest-eq8tgf9n
START jest-eq8u843g
STOP  jest-eq8u843g
START jest-eq92du1o
APPMAP-INFO Received trace for file:///Users/soft/Desktop/workspace/appmap-js/packages/models/tmp/appmap/jest/AppMap.diff%20compares%20the%20appmaps.appmap.json
Trace size: 33233
Event Distribution:
  - apply: 16604 [50%]
  - return: 16607 [50%]
  - yield: 11 [0%]
  - resume: 11 [0%]
Most frequently applied functions:
  - pD8bh/pV6WsYfaOj2TNAZand/KqJUIya9DpJVOJ+Z8c=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/util.js:286:7: 5050 [30%]
  - pD8bh/pV6WsYfaOj2TNAZand/KqJUIya9DpJVOJ+Z8c=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/util.js:416:0: 2593 [16%]
  - 9DzpVFpZc5IxDfI+mP1VAGL86PdQZe6f1uqQpyjf0F0=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/event.js:6:0: 1840 [11%]
  - 9DzpVFpZc5IxDfI+mP1VAGL86PdQZe6f1uqQpyjf0F0=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/event.js:339:8: 661 [4%]
  - 9DzpVFpZc5IxDfI+mP1VAGL86PdQZe6f1uqQpyjf0F0=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/event.js:343:10: 485 [3%]
  - H+M41Hc+tzdQCatSD5AqsJip0e5zymC6oHUiTNsG9hw=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/appMapBuilder/eventSorter.js:18:5: 459 [3%]
  - OgvZyC5uSgFiweZH09vUV2sn7Dmyjcpo8PN3lNjRGF8=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/appMapBuilder/eventStack.js:9:5: 459 [3%]
  - OgvZyC5uSgFiweZH09vUV2sn7Dmyjcpo8PN3lNjRGF8=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/appMapBuilder/eventStack.js:56:9: 459 [3%]
  - 9DzpVFpZc5IxDfI+mP1VAGL86PdQZe6f1uqQpyjf0F0=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/event.js:31:13: 459 [3%]
  - 9DzpVFpZc5IxDfI+mP1VAGL86PdQZe6f1uqQpyjf0F0=|file:///Users/soft/Desktop/workspace/appmap-js/packages/models/src/event.js:128:17: 458 [3%]


[appmap@13.2.0] Detected an internal appmap error. This is probably an issue with how the AppMap agent is being used. Please consider submitting a bug report at:
  https://github.com/getappmap/appmap-agent-js/issues

file:///Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/batch.mjs:183
    throw new Constructor(message);
          ^

InternalAppmapError: begin/end event mismatch
    at assert (file:///Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/batch.mjs:183:11)
    at makeBundleNode (file:///Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/batch.mjs:4111:3)
    at manufactureBundleNode (file:///Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/batch.mjs:4147:12)
    at mapBeginFrame (file:///Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/batch.mjs:4206:36)
    at Array.map (<anonymous>)
    at mapFrame (file:///Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/batch.mjs:4211:34)
    at mapBeginFrame (file:///Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/batch.mjs:4206:58)
    at Array.map (<anonymous>)
    at mapFrame (file:///Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/batch.mjs:4211:34)
    at mapBeginFrame (file:///Users/soft/Desktop/workspace/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/batch.mjs:4206:58)

Node.js v18.13.0

[appmap@13.2.0] Detected an unknown error. If this error disapear when not recording your application, it is probably an issue within the appmap framework. If this is the case, please consider submitting a bug report at:
  https://github.com/getappmap/appmap-agent-js/issues

node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -32,
  code: 'EPIPE',
  syscall: 'write'
}

Node.js v18.13.0
soft@HPFFCDE2 models % pwd              
/Users/soft/Desktop/workspace/appmap-js/packages/models
soft@HPFFCDE2 models % git 

๐ŸŽ‰ This issue has been resolved in version 13.5.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€