slnodejs 6.1.410 → 6.1.429
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser-agent/dist/browser-agent-all.js +33 -28
- package/browser-agent/dist/browser-agent-all.min.js +2 -2
- package/browser-agent/package.json +1 -1
- package/package.json +2 -2
- package/tsOutputs/api.js +32 -86
- package/tsOutputs/build-scanner/ast-utils.js +11 -11
- package/tsOutputs/build-scanner/ast-utils.js.map +1 -1
- package/tsOutputs/build-scanner/build-diff-process.js +36 -16
- package/tsOutputs/build-scanner/build-diff-process.js.map +1 -1
- package/tsOutputs/build-scanner/cia.js +2 -2
- package/tsOutputs/build-scanner/cia.js.map +1 -1
- package/tsOutputs/build-scanner/default-values-resolver.js +5 -7
- package/tsOutputs/build-scanner/default-values-resolver.js.map +1 -1
- package/tsOutputs/build-scanner/diagnostic/build-scan-diagnosis.js +101 -159
- package/tsOutputs/build-scanner/diagnostic/build-scan-diagnosis.js.map +1 -1
- package/tsOutputs/build-scanner/diagnostic/none-diagnosis.js +23 -55
- package/tsOutputs/build-scanner/diagnostic/none-diagnosis.js.map +1 -1
- package/tsOutputs/build-scanner/file-and-folder-utils.js +3 -3
- package/tsOutputs/build-scanner/file-and-folder-utils.js.map +1 -1
- package/tsOutputs/build-scanner/file-system/actual-file.js +3 -3
- package/tsOutputs/build-scanner/file-system/actual-file.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/browser-instrumenter.js +57 -60
- package/tsOutputs/build-scanner/instrumentation/browser-instrumenter.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/content-instrumenter.js +9 -10
- package/tsOutputs/build-scanner/instrumentation/content-instrumenter.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/files-instrumenter.js +80 -124
- package/tsOutputs/build-scanner/instrumentation/files-instrumenter.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/instrumentation-utils.js +3 -3
- package/tsOutputs/build-scanner/instrumentation/instrumentation-utils.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/instrumented-file-size-reducer.js +4 -4
- package/tsOutputs/build-scanner/instrumentation/instrumented-file-size-reducer.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/process-pool/instrumenter-spawn.js +15 -50
- package/tsOutputs/build-scanner/instrumentation/process-pool/instrumenter-spawn.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/process-pool/process-pool.js +84 -141
- package/tsOutputs/build-scanner/instrumentation/process-pool/process-pool.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/process-pool/split-by-transform-stream.js +15 -34
- package/tsOutputs/build-scanner/instrumentation/process-pool/split-by-transform-stream.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/process-pool/stop-by-condition-transform-stream.js +9 -27
- package/tsOutputs/build-scanner/instrumentation/process-pool/stop-by-condition-transform-stream.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/strategies/copy-as-is-strategy.js +8 -10
- package/tsOutputs/build-scanner/instrumentation/strategies/copy-as-is-strategy.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/strategies/js-instrumnetation-strategy.js +22 -54
- package/tsOutputs/build-scanner/instrumentation/strategies/js-instrumnetation-strategy.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/strategies/markup-instrumnetation-strategy.js +55 -107
- package/tsOutputs/build-scanner/instrumentation/strategies/markup-instrumnetation-strategy.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/file-signature.js +5 -6
- package/tsOutputs/build-scanner/js_diff/file-signature.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/files-mapping.js +6 -6
- package/tsOutputs/build-scanner/js_diff/files-mapping.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/generated-file-signature.js +3 -3
- package/tsOutputs/build-scanner/js_diff/generated-file-signature.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/guess-method-location.js +26 -27
- package/tsOutputs/build-scanner/js_diff/guess-method-location.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/method-signature.js +1 -1
- package/tsOutputs/build-scanner/js_diff/method-signature.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/sl-mapper.js +28 -79
- package/tsOutputs/build-scanner/js_diff/sl-mapper.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/source-data-enricher.js +3 -2
- package/tsOutputs/build-scanner/js_diff/source-data-enricher.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/source-files-notifier.js +1 -1
- package/tsOutputs/build-scanner/js_diff/source-files-notifier.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js +76 -149
- package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/file-element-utils.js +9 -9
- package/tsOutputs/build-scanner/mappings/file-element-utils.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/file-enricher.js +71 -100
- package/tsOutputs/build-scanner/mappings/file-enricher.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/file-path-fixer.js +106 -0
- package/tsOutputs/build-scanner/mappings/file-path-fixer.js.map +1 -0
- package/tsOutputs/build-scanner/mappings/files-container.js +89 -0
- package/tsOutputs/build-scanner/mappings/files-container.js.map +1 -0
- package/tsOutputs/build-scanner/mappings/files-data-container.js +18 -23
- package/tsOutputs/build-scanner/mappings/files-data-container.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/source-path-mapper.js +15 -45
- package/tsOutputs/build-scanner/mappings/source-path-mapper.js.map +1 -1
- package/tsOutputs/build-scanner/markup-files-parser.js +1 -1
- package/tsOutputs/build-scanner/markup-files-parser.js.map +1 -1
- package/tsOutputs/build-scanner/scm/scm-file-fixer.js +27 -0
- package/tsOutputs/build-scanner/scm/scm-file-fixer.js.map +1 -0
- package/tsOutputs/build-scanner/scm/scm-files-container.js +9 -45
- package/tsOutputs/build-scanner/scm/scm-files-container.js.map +1 -1
- package/tsOutputs/build-scanner/sl-config-cia-cli.js +1 -1
- package/tsOutputs/build-scanner/sl-config-cia-cli.js.map +1 -1
- package/tsOutputs/build-scanner/utils.js +5 -5
- package/tsOutputs/build-scanner/utils.js.map +1 -1
- package/tsOutputs/cli-parse/agent-instance-data.js +2 -2
- package/tsOutputs/cli-parse/agent-instance-data.js.map +1 -1
- package/tsOutputs/cli-parse/child-process-wrapper.js +26 -60
- package/tsOutputs/cli-parse/child-process-wrapper.js.map +1 -1
- package/tsOutputs/cli-parse/cli.js +74 -191
- package/tsOutputs/cli-parse/cli.js.map +1 -1
- package/tsOutputs/cli-parse/constants/constants.js +9 -9
- package/tsOutputs/cli-parse/constants/constants.js.map +1 -1
- package/tsOutputs/cli-parse/contracts.d.ts +2 -0
- package/tsOutputs/cli-parse/contracts.js.map +1 -1
- package/tsOutputs/cli-parse/custom-commander.js +17 -18
- package/tsOutputs/cli-parse/custom-commander.js.map +1 -1
- package/tsOutputs/cli-parse/executors/base-executor.js +121 -236
- package/tsOutputs/cli-parse/executors/base-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/build-args-dto.js +11 -11
- package/tsOutputs/cli-parse/executors/build-args-dto.js.map +1 -1
- package/tsOutputs/cli-parse/executors/build-end-executor.js +34 -92
- package/tsOutputs/cli-parse/executors/build-end-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/build-executor.js +68 -132
- package/tsOutputs/cli-parse/executors/build-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/config-executor.js +35 -92
- package/tsOutputs/cli-parse/executors/config-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/base-data.js +29 -39
- package/tsOutputs/cli-parse/executors/dry-run/base-data.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/build-mapping-data.js +92 -177
- package/tsOutputs/cli-parse/executors/dry-run/build-mapping-data.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js +110 -194
- package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/dry-run-validation.js +49 -83
- package/tsOutputs/cli-parse/executors/dry-run/dry-run-validation.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/footprints-data.js +55 -113
- package/tsOutputs/cli-parse/executors/dry-run/footprints-data.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/helper-methods.js +24 -25
- package/tsOutputs/cli-parse/executors/dry-run/helper-methods.js.map +1 -1
- package/tsOutputs/cli-parse/executors/end-execution-executor.js +16 -64
- package/tsOutputs/cli-parse/executors/end-execution-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/integration-build-components-executor.js +29 -82
- package/tsOutputs/cli-parse/executors/integration-build-components-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/integration-build-delete-components-executor.js +12 -59
- package/tsOutputs/cli-parse/executors/integration-build-delete-components-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/integration-build-update-components-executor.js +9 -58
- package/tsOutputs/cli-parse/executors/integration-build-update-components-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/mocha-executor.js +41 -101
- package/tsOutputs/cli-parse/executors/mocha-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/nyc-report-executor.js +24 -83
- package/tsOutputs/cli-parse/executors/nyc-report-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/pr-config-executor.js +15 -63
- package/tsOutputs/cli-parse/executors/pr-config-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/run-executor.js +23 -75
- package/tsOutputs/cli-parse/executors/run-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/start-execution-executor.js +16 -64
- package/tsOutputs/cli-parse/executors/start-execution-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/test-executions-executor.js +9 -63
- package/tsOutputs/cli-parse/executors/test-executions-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/test-listener-executor.js +47 -117
- package/tsOutputs/cli-parse/executors/test-listener-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/upload-report-executor.js +23 -71
- package/tsOutputs/cli-parse/executors/upload-report-executor.js.map +1 -1
- package/tsOutputs/cli-parse/utils.js +10 -10
- package/tsOutputs/cli-parse/utils.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-events-controller.js +146 -251
- package/tsOutputs/common/agent-events/agent-events-controller.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-events-guard.js +12 -15
- package/tsOutputs/common/agent-events/agent-events-guard.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-instance-info-builder.js +22 -24
- package/tsOutputs/common/agent-events/agent-instance-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-start-info-builder.js +7 -8
- package/tsOutputs/common/agent-events/agent-start-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/browser-info-builder.js +9 -10
- package/tsOutputs/common/agent-events/browser-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/ci-info-builder.js +12 -13
- package/tsOutputs/common/agent-events/ci-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/cockpit-notifier.js +38 -87
- package/tsOutputs/common/agent-events/cockpit-notifier.js.map +1 -1
- package/tsOutputs/common/agent-events/dry-run-agent-events-controller.js +10 -27
- package/tsOutputs/common/agent-events/dry-run-agent-events-controller.js.map +1 -1
- package/tsOutputs/common/agent-events/machine-info-builder.js +21 -22
- package/tsOutputs/common/agent-events/machine-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/no-op-agent-events-controller.js +30 -84
- package/tsOutputs/common/agent-events/no-op-agent-events-controller.js.map +1 -1
- package/tsOutputs/common/agent-events/nodejs-env-info-builder.js +7 -8
- package/tsOutputs/common/agent-events/nodejs-env-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/sensitive-data-filter.js +3 -4
- package/tsOutputs/common/agent-events/sensitive-data-filter.js.map +1 -1
- package/tsOutputs/common/agent-instance-data.js +23 -28
- package/tsOutputs/common/agent-instance-data.js.map +1 -1
- package/tsOutputs/common/cli-progress.js +16 -19
- package/tsOutputs/common/cli-progress.js.map +1 -1
- package/tsOutputs/common/config-process/config-loader.js +23 -24
- package/tsOutputs/common/config-process/config-loader.js.map +1 -1
- package/tsOutputs/common/config-process/config-system.js +104 -131
- package/tsOutputs/common/config-process/config-system.js.map +1 -1
- package/tsOutputs/common/config-process/config.js +52 -73
- package/tsOutputs/common/config-process/config.js.map +1 -1
- package/tsOutputs/common/config-process/index.js +38 -57
- package/tsOutputs/common/config-process/index.js.map +1 -1
- package/tsOutputs/common/config-process/no-op-config-process.js +9 -29
- package/tsOutputs/common/config-process/no-op-config-process.js.map +1 -1
- package/tsOutputs/common/constants/constants.js +19 -25
- package/tsOutputs/common/constants/constants.js.map +1 -1
- package/tsOutputs/common/constants/sl-env-vars.js +125 -131
- package/tsOutputs/common/constants/sl-env-vars.js.map +1 -1
- package/tsOutputs/common/coverage-elements/file-element.js +66 -103
- package/tsOutputs/common/coverage-elements/file-element.js.map +1 -1
- package/tsOutputs/common/coverage-elements/istanbul-unique-id-converter.js +28 -47
- package/tsOutputs/common/coverage-elements/istanbul-unique-id-converter.js.map +1 -1
- package/tsOutputs/common/coverage-elements/new-id-resolver.js +17 -17
- package/tsOutputs/common/coverage-elements/new-id-resolver.js.map +1 -1
- package/tsOutputs/common/coverage-elements/original-module-loader.js +71 -79
- package/tsOutputs/common/coverage-elements/original-module-loader.js.map +1 -1
- package/tsOutputs/common/coverage-elements/unique-id-converter.js +90 -110
- package/tsOutputs/common/coverage-elements/unique-id-converter.js.map +1 -1
- package/tsOutputs/common/environment-data-service.js +10 -11
- package/tsOutputs/common/environment-data-service.js.map +1 -1
- package/tsOutputs/common/events-process/events-creator.js +20 -32
- package/tsOutputs/common/events-process/events-creator.js.map +1 -1
- package/tsOutputs/common/events-process/index.js +97 -186
- package/tsOutputs/common/events-process/index.js.map +1 -1
- package/tsOutputs/common/footprints-process/collection-interval.js +10 -11
- package/tsOutputs/common/footprints-process/collection-interval.js.map +1 -1
- package/tsOutputs/common/footprints-process/footprints-service-proxy.js +21 -22
- package/tsOutputs/common/footprints-process/footprints-service-proxy.js.map +1 -1
- package/tsOutputs/common/footprints-process/index.js +68 -102
- package/tsOutputs/common/footprints-process/index.js.map +1 -1
- package/tsOutputs/common/footprints-process/istanbul-to-footprints-contract.js +2 -5
- package/tsOutputs/common/footprints-process/istanbul-to-footprints-contract.js.map +1 -1
- package/tsOutputs/common/footprints-process/istanbul-to-footprints.js +160 -162
- package/tsOutputs/common/footprints-process/istanbul-to-footprints.js.map +1 -1
- package/tsOutputs/common/footprints-process/production-footprints-handler.js +103 -156
- package/tsOutputs/common/footprints-process/production-footprints-handler.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/base-browser-hits-converter.js +30 -48
- package/tsOutputs/common/footprints-process-v6/base-browser-hits-converter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/browser-footprints-buffer.js +7 -25
- package/tsOutputs/common/footprints-process-v6/browser-footprints-buffer.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/buffer-size-helper.js +13 -14
- package/tsOutputs/common/footprints-process-v6/buffer-size-helper.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/collector-footprints-buffer.js +14 -32
- package/tsOutputs/common/footprints-process-v6/collector-footprints-buffer.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/collector-footprints-process.js +43 -109
- package/tsOutputs/common/footprints-process-v6/collector-footprints-process.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/contracts.js +2 -5
- package/tsOutputs/common/footprints-process-v6/contracts.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/footprints-buffer.js +55 -78
- package/tsOutputs/common/footprints-process-v6/footprints-buffer.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/hits-collector.js +89 -129
- package/tsOutputs/common/footprints-process-v6/hits-collector.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/hits-converter.js +70 -78
- package/tsOutputs/common/footprints-process-v6/hits-converter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/index.js +204 -347
- package/tsOutputs/common/footprints-process-v6/index.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/location-formatter.js +2 -2
- package/tsOutputs/common/footprints-process-v6/location-formatter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/relative-path-resolver.js +10 -11
- package/tsOutputs/common/footprints-process-v6/relative-path-resolver.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/remote-browser-hits-converter.js +5 -25
- package/tsOutputs/common/footprints-process-v6/remote-browser-hits-converter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/remote-footprints-process.js +6 -57
- package/tsOutputs/common/footprints-process-v6/remote-footprints-process.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/remote-hits-collector.js +7 -27
- package/tsOutputs/common/footprints-process-v6/remote-hits-collector.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/source-map-data.js +14 -15
- package/tsOutputs/common/footprints-process-v6/source-map-data.js.map +1 -1
- package/tsOutputs/common/http/backend-proxy.js +222 -321
- package/tsOutputs/common/http/backend-proxy.js.map +1 -1
- package/tsOutputs/common/http/contracts.js +40 -116
- package/tsOutputs/common/http/contracts.js.map +1 -1
- package/tsOutputs/common/http/dry-run-proxy.js +68 -111
- package/tsOutputs/common/http/dry-run-proxy.js.map +1 -1
- package/tsOutputs/common/http/entities-mapper.js +6 -9
- package/tsOutputs/common/http/entities-mapper.js.map +1 -1
- package/tsOutputs/common/http/http-client.js +76 -86
- package/tsOutputs/common/http/http-client.js.map +1 -1
- package/tsOutputs/common/http/sl-routes.js +119 -122
- package/tsOutputs/common/http/sl-routes.js.map +1 -1
- package/tsOutputs/common/ignored-files-handler.js +48 -49
- package/tsOutputs/common/ignored-files-handler.js.map +1 -1
- package/tsOutputs/common/logger.js +66 -88
- package/tsOutputs/common/logger.js.map +1 -1
- package/tsOutputs/common/messages-formatter.js +9 -14
- package/tsOutputs/common/messages-formatter.js.map +1 -1
- package/tsOutputs/common/no-op-state-tracker.js +14 -37
- package/tsOutputs/common/no-op-state-tracker.js.map +1 -1
- package/tsOutputs/common/queue.js +18 -36
- package/tsOutputs/common/queue.js.map +1 -1
- package/tsOutputs/common/scm/git-cloner.js +30 -94
- package/tsOutputs/common/scm/git-cloner.js.map +1 -1
- package/tsOutputs/common/scm/git-format-builder.js +24 -25
- package/tsOutputs/common/scm/git-format-builder.js.map +1 -1
- package/tsOutputs/common/scm/git.js +192 -327
- package/tsOutputs/common/scm/git.js.map +1 -1
- package/tsOutputs/common/scm/none.js +58 -110
- package/tsOutputs/common/scm/none.js.map +1 -1
- package/tsOutputs/common/scm/scm-factory.js +6 -9
- package/tsOutputs/common/scm/scm-factory.js.map +1 -1
- package/tsOutputs/common/short-name-to-file-mapper.js +30 -33
- package/tsOutputs/common/short-name-to-file-mapper.js.map +1 -1
- package/tsOutputs/common/source-map-handler.js +76 -98
- package/tsOutputs/common/source-map-handler.js.map +1 -1
- package/tsOutputs/common/source-map-reader.js +35 -36
- package/tsOutputs/common/source-map-reader.js.map +1 -1
- package/tsOutputs/common/source-maps-utils.js +8 -11
- package/tsOutputs/common/source-maps-utils.js.map +1 -1
- package/tsOutputs/common/state-tracker-fpv6.js +15 -37
- package/tsOutputs/common/state-tracker-fpv6.js.map +1 -1
- package/tsOutputs/common/state-tracker.js +124 -212
- package/tsOutputs/common/state-tracker.js.map +1 -1
- package/tsOutputs/common/system-date.js +3 -3
- package/tsOutputs/common/system-date.js.map +1 -1
- package/tsOutputs/common/utils/abstract-data-builder.js +8 -9
- package/tsOutputs/common/utils/abstract-data-builder.js.map +1 -1
- package/tsOutputs/common/utils/build-session-data-builder.js +25 -79
- package/tsOutputs/common/utils/build-session-data-builder.js.map +1 -1
- package/tsOutputs/common/utils/dependency-utils.js +13 -16
- package/tsOutputs/common/utils/dependency-utils.js.map +1 -1
- package/tsOutputs/common/utils/env-var-parsing.js +10 -14
- package/tsOutputs/common/utils/env-var-parsing.js.map +1 -1
- package/tsOutputs/common/utils/files-utils.js +16 -19
- package/tsOutputs/common/utils/files-utils.js.map +1 -1
- package/tsOutputs/common/utils/process-utils.js +12 -25
- package/tsOutputs/common/utils/process-utils.js.map +1 -1
- package/tsOutputs/common/utils/test-runner-build-session-data-builder.js +16 -62
- package/tsOutputs/common/utils/test-runner-build-session-data-builder.js.map +1 -1
- package/tsOutputs/common/utils/test-utils/mock-server-utils/mock-server-proxy.js +120 -192
- package/tsOutputs/common/utils/test-utils/mock-server-utils/mock-server-proxy.js.map +1 -1
- package/tsOutputs/common/utils/timer-utils.js +4 -7
- package/tsOutputs/common/utils/timer-utils.js.map +1 -1
- package/tsOutputs/common/utils/token-data-builder.js +30 -50
- package/tsOutputs/common/utils/token-data-builder.js.map +1 -1
- package/tsOutputs/common/utils/validation-utils.js +7 -10
- package/tsOutputs/common/utils/validation-utils.js.map +1 -1
- package/tsOutputs/common/uuid.js +7 -10
- package/tsOutputs/common/uuid.js.map +1 -1
- package/tsOutputs/common/v8-utils.js +12 -50
- package/tsOutputs/common/v8-utils.js.map +1 -1
- package/tsOutputs/common/watchdog.js +35 -56
- package/tsOutputs/common/watchdog.js.map +1 -1
- package/tsOutputs/mocha-reporter/index.js +12 -12
- package/tsOutputs/mocha-reporter/index.js.map +1 -1
- package/tsOutputs/mocha-reporter/otel-agent.js +47 -118
- package/tsOutputs/mocha-reporter/otel-agent.js.map +1 -1
- package/tsOutputs/test-listener/SlNodeJsProxy.js +34 -35
- package/tsOutputs/test-listener/SlNodeJsProxy.js.map +1 -1
- package/tsOutputs/test-listener/UserMessageHelper.js +14 -19
- package/tsOutputs/test-listener/UserMessageHelper.js.map +1 -1
- package/tsOutputs/test-listener/agent-loader.js +42 -59
- package/tsOutputs/test-listener/agent-loader.js.map +1 -1
- package/tsOutputs/test-listener/agent.js +93 -150
- package/tsOutputs/test-listener/agent.js.map +1 -1
- package/tsOutputs/test-listener/api.js +36 -70
- package/tsOutputs/test-listener/api.js.map +1 -1
- package/tsOutputs/test-listener/base-proxy.js +25 -27
- package/tsOutputs/test-listener/base-proxy.js.map +1 -1
- package/tsOutputs/test-listener/bootstrap.js +6 -6
- package/tsOutputs/test-listener/bootstrap.js.map +1 -1
- package/tsOutputs/test-listener/child-process-patcher.js +10 -10
- package/tsOutputs/test-listener/child-process-patcher.js.map +1 -1
- package/tsOutputs/test-listener/cli.js +27 -30
- package/tsOutputs/test-listener/cli.js.map +1 -1
- package/tsOutputs/test-listener/coloring/http-coloring.js +30 -33
- package/tsOutputs/test-listener/coloring/http-coloring.js.map +1 -1
- package/tsOutputs/test-listener/coloring/listening-port.js +14 -17
- package/tsOutputs/test-listener/coloring/listening-port.js.map +1 -1
- package/tsOutputs/test-listener/command-line-arg-parser.js +12 -15
- package/tsOutputs/test-listener/command-line-arg-parser.js.map +1 -1
- package/tsOutputs/test-listener/config-process/config-loader.js +21 -22
- package/tsOutputs/test-listener/config-process/config-loader.js.map +1 -1
- package/tsOutputs/test-listener/config-process/config-system.js +100 -127
- package/tsOutputs/test-listener/config-process/config-system.js.map +1 -1
- package/tsOutputs/test-listener/config-process/index.js +38 -57
- package/tsOutputs/test-listener/config-process/index.js.map +1 -1
- package/tsOutputs/test-listener/config.js +38 -59
- package/tsOutputs/test-listener/config.js.map +1 -1
- package/tsOutputs/test-listener/entities/BasicConfigurationData.js +37 -64
- package/tsOutputs/test-listener/entities/BasicConfigurationData.js.map +1 -1
- package/tsOutputs/test-listener/entities/build-scanner/ConfigModeData.js +17 -42
- package/tsOutputs/test-listener/entities/build-scanner/ConfigModeData.js.map +1 -1
- package/tsOutputs/test-listener/entities/build-scanner/ScanModeData.js +19 -45
- package/tsOutputs/test-listener/entities/build-scanner/ScanModeData.js.map +1 -1
- package/tsOutputs/test-listener/environment-data-service.js +10 -11
- package/tsOutputs/test-listener/environment-data-service.js.map +1 -1
- package/tsOutputs/test-listener/execution-process/entities-mapper.js +11 -14
- package/tsOutputs/test-listener/execution-process/entities-mapper.js.map +1 -1
- package/tsOutputs/test-listener/execution-process/execution-service-proxy.js +54 -72
- package/tsOutputs/test-listener/execution-process/execution-service-proxy.js.map +1 -1
- package/tsOutputs/test-listener/execution-process/index.js +26 -26
- package/tsOutputs/test-listener/execution-process/index.js.map +1 -1
- package/tsOutputs/test-listener/factory.js +140 -175
- package/tsOutputs/test-listener/factory.js.map +1 -1
- package/tsOutputs/test-listener/footprints-process/footprints-service-proxy.js +17 -34
- package/tsOutputs/test-listener/footprints-process/footprints-service-proxy.js.map +1 -1
- package/tsOutputs/test-listener/footprints-process/index.js +53 -58
- package/tsOutputs/test-listener/footprints-process/index.js.map +1 -1
- package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-base.js +49 -50
- package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-base.js.map +1 -1
- package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-v3.js +98 -117
- package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-v3.js.map +1 -1
- package/tsOutputs/test-listener/footprints-process/ts-node-hits-collector.js +57 -141
- package/tsOutputs/test-listener/footprints-process/ts-node-hits-collector.js.map +1 -1
- package/tsOutputs/test-listener/integrations/SlGulp.js +25 -26
- package/tsOutputs/test-listener/integrations/SlGulp.js.map +1 -1
- package/tsOutputs/test-listener/logs-process/index.js +30 -35
- package/tsOutputs/test-listener/logs-process/index.js.map +1 -1
- package/tsOutputs/test-listener/logs-process/log-service-proxy.js +8 -25
- package/tsOutputs/test-listener/logs-process/log-service-proxy.js.map +1 -1
- package/tsOutputs/test-listener/nyc-report-executor-fpv6.js +53 -110
- package/tsOutputs/test-listener/nyc-report-executor-fpv6.js.map +1 -1
- package/tsOutputs/test-listener/nyc-report-executor.js +48 -85
- package/tsOutputs/test-listener/nyc-report-executor.js.map +1 -1
- package/tsOutputs/test-listener/otel-agent-loader.js +30 -33
- package/tsOutputs/test-listener/otel-agent-loader.js.map +1 -1
- package/tsOutputs/test-listener/queue.js +18 -36
- package/tsOutputs/test-listener/queue.js.map +1 -1
- package/tsOutputs/test-listener/remote-agent.js +97 -223
- package/tsOutputs/test-listener/remote-agent.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/AppNameResolver.js +8 -25
- package/tsOutputs/test-listener/resolvers/AppNameResolver.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/ArgumentResolver.js +11 -12
- package/tsOutputs/test-listener/resolvers/ArgumentResolver.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/BuildResolver.js +8 -25
- package/tsOutputs/test-listener/resolvers/BuildResolver.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/BuildSessionIdFileResolver.js +8 -25
- package/tsOutputs/test-listener/resolvers/BuildSessionIdFileResolver.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/BuildSessionIdResolver.js +8 -25
- package/tsOutputs/test-listener/resolvers/BuildSessionIdResolver.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/ProxyResolver.js +8 -25
- package/tsOutputs/test-listener/resolvers/ProxyResolver.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/TokenResolver.js +8 -25
- package/tsOutputs/test-listener/resolvers/TokenResolver.js.map +1 -1
- package/tsOutputs/test-listener/state-tracker-process/index.js +54 -74
- package/tsOutputs/test-listener/state-tracker-process/index.js.map +1 -1
- package/tsOutputs/test-listener/state-tracker-process/state-tracker-proxy.js +18 -37
- package/tsOutputs/test-listener/state-tracker-process/state-tracker-proxy.js.map +1 -1
- package/tsOutputs/test-listener/test-recommendation-handler.js +66 -109
- package/tsOutputs/test-listener/test-recommendation-handler.js.map +1 -1
- package/tsOutputs/test-listener/upload-report-handler.js +33 -35
- package/tsOutputs/test-listener/upload-report-handler.js.map +1 -1
- package/tsOutputs/test-listener/utils.js +13 -14
- package/tsOutputs/test-listener/utils.js.map +1 -1
- package/tsOutputs/test-listener/uuid.js +7 -10
- package/tsOutputs/test-listener/uuid.js.map +1 -1
- package/tsOutputs/test-listener/wait-for-multiple-callbacks.js +17 -19
- package/tsOutputs/test-listener/wait-for-multiple-callbacks.js.map +1 -1
- package/tsOutputs/test-listener/watchdog.js +32 -51
- package/tsOutputs/test-listener/watchdog.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/scm-file-fixer.js +0 -96
- package/tsOutputs/build-scanner/mappings/scm-file-fixer.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FootprintsProcess = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
const queue_1 = require("../queue");
|
|
5
|
+
const system_date_1 = require("../../common/system-date");
|
|
6
|
+
class FootprintsProcess {
|
|
7
|
+
constructor(
|
|
8
8
|
/**
|
|
9
9
|
* Initial configuration
|
|
10
10
|
*/
|
|
@@ -29,7 +29,6 @@ var FootprintsProcess = /** @class */ (function () {
|
|
|
29
29
|
* Environments service, used to get environmental data for submission (process id, machine data, etc.)
|
|
30
30
|
*/
|
|
31
31
|
environmentDataService, agentInstanceData, istanbulToFootprints, logger) {
|
|
32
|
-
var _this = this;
|
|
33
32
|
this.cfg = cfg;
|
|
34
33
|
this.sendToServerWatchdog = sendToServerWatchdog;
|
|
35
34
|
this.keepaliveWatchdog = keepaliveWatchdog;
|
|
@@ -63,32 +62,32 @@ var FootprintsProcess = /** @class */ (function () {
|
|
|
63
62
|
throw new Error('logger was not specified');
|
|
64
63
|
}
|
|
65
64
|
this.footprintsQueue = new queue_1.Queue();
|
|
66
|
-
sendToServerWatchdog.on('alarm',
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
sendToServerWatchdog.on('alarm', () => {
|
|
66
|
+
this.logger.debug('Start submitting footprints, triggered by send to server watchdog.');
|
|
67
|
+
this.submitQueuedFootprints();
|
|
69
68
|
});
|
|
70
|
-
configProcess.on('configuration_changed',
|
|
71
|
-
|
|
69
|
+
configProcess.on('configuration_changed', (cfg) => {
|
|
70
|
+
this.updateConfig(cfg);
|
|
72
71
|
});
|
|
73
|
-
this.footprintsQueue.on('full',
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
this.footprintsQueue.on('full', () => {
|
|
73
|
+
this.logger.debug('Start submitting footprints, queue is full.');
|
|
74
|
+
this.submitQueuedFootprints();
|
|
76
75
|
});
|
|
77
|
-
keepaliveWatchdog.on('alarm',
|
|
76
|
+
keepaliveWatchdog.on('alarm', () => {
|
|
78
77
|
//console.log('keepaliveWatchdog. isSubmittingFootprints:' + this.isSubmittingFootprints + ', queue size: ' + this.footprintsQueue.getQueueSize());
|
|
79
|
-
if (!
|
|
78
|
+
if (!this.isSubmittingFootprints && this.footprintsQueue.getQueueSize() == 0) {
|
|
80
79
|
keepaliveWatchdog.stop();
|
|
81
80
|
}
|
|
82
81
|
});
|
|
83
82
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
enqueueCurrentFootprints(executionId, testName) {
|
|
84
|
+
const footprints = this.istanbulToFootprints.getCurrentFootprints();
|
|
85
|
+
const hitModules = Object.keys(footprints);
|
|
87
86
|
if (!hitModules || hitModules.length == 0) { //If no modules were hit at all, don't enqueue anything
|
|
88
87
|
this.logger.info('No files were hit, not enqueuing footprints.');
|
|
89
88
|
return;
|
|
90
89
|
}
|
|
91
|
-
this.logger.info(
|
|
90
|
+
this.logger.info(`Enqueuing footprints for ${hitModules.length} files.`);
|
|
92
91
|
this.footprintsQueue.enqueue({
|
|
93
92
|
executionId: executionId,
|
|
94
93
|
testName: testName,
|
|
@@ -99,20 +98,20 @@ var FootprintsProcess = /** @class */ (function () {
|
|
|
99
98
|
this.ensureKeepaliveThreadRunning();
|
|
100
99
|
this.sendToServerWatchdog.start();
|
|
101
100
|
}
|
|
102
|
-
}
|
|
103
|
-
|
|
101
|
+
}
|
|
102
|
+
ensureKeepaliveThreadRunning() {
|
|
104
103
|
this.keepaliveWatchdog.start();
|
|
105
|
-
}
|
|
106
|
-
|
|
104
|
+
}
|
|
105
|
+
updateConfig(updatedCfg) {
|
|
107
106
|
if (updatedCfg.sendFootprints.value === false || updatedCfg.enabled.value === false) {
|
|
108
107
|
this.footprintsQueue.clear();
|
|
109
|
-
this.stop(
|
|
108
|
+
this.stop(() => { });
|
|
110
109
|
}
|
|
111
110
|
this.cfg = updatedCfg;
|
|
112
111
|
this.sendToServerWatchdog.setInterval(this.cfg.interval.value);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
}
|
|
113
|
+
createFootprintsPacket(items) {
|
|
114
|
+
const packet = this.istanbulToFootprints.createFootprintsPackageForSending(items, {
|
|
116
115
|
customerId: this.cfg.customerId.value,
|
|
117
116
|
environment: this.environmentDataService.getEnvDataForSubmission(),
|
|
118
117
|
configurationData: this.cfg.toJsonObject(),
|
|
@@ -125,9 +124,8 @@ var FootprintsProcess = /** @class */ (function () {
|
|
|
125
124
|
apps: []
|
|
126
125
|
});
|
|
127
126
|
return packet;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
var _this = this;
|
|
127
|
+
}
|
|
128
|
+
submitQueuedFootprints() {
|
|
131
129
|
if (!this.isRunning) {
|
|
132
130
|
this.logger.info('Agent is not running, not sending footprints');
|
|
133
131
|
return;
|
|
@@ -145,37 +143,36 @@ var FootprintsProcess = /** @class */ (function () {
|
|
|
145
143
|
return;
|
|
146
144
|
}
|
|
147
145
|
this.logger.info('About to send footprints. Queue size:' + this.footprintsQueue.getQueueSize());
|
|
148
|
-
|
|
149
|
-
|
|
146
|
+
const items = this.footprintsQueue.dequeue(/*this.cfg.maxFootprintsChunkSize ||*/ 1000);
|
|
147
|
+
const packet = this.createFootprintsPacket(items);
|
|
150
148
|
this.isSubmittingFootprints = true;
|
|
151
|
-
this.footprintsServiceProxy.submitFootprints(packet,
|
|
152
|
-
|
|
153
|
-
|
|
149
|
+
this.footprintsServiceProxy.submitFootprints(packet, (err) => {
|
|
150
|
+
this.isSubmittingFootprints = false;
|
|
151
|
+
this.logger.info('Sent footprints. Queue size:' + this.footprintsQueue.getQueueSize() + ', err:' + err);
|
|
154
152
|
if (err) {
|
|
155
|
-
|
|
156
|
-
|
|
153
|
+
this.environmentDataService.setLastError(err.stack);
|
|
154
|
+
this.footprintsQueue.requeue(items); //Requeue items for later submission
|
|
157
155
|
}
|
|
158
|
-
else if (
|
|
159
|
-
|
|
156
|
+
else if (this.footprintsQueue.getQueueSize() > 0) { //If there was an error, don't send now. Otherwise, if the queue still has items, send those now
|
|
157
|
+
this.submitQueuedFootprints();
|
|
160
158
|
}
|
|
161
159
|
else
|
|
162
|
-
|
|
160
|
+
this.fireQueueEmpty();
|
|
163
161
|
});
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
var _this = this;
|
|
162
|
+
}
|
|
163
|
+
fireQueueEmpty() {
|
|
167
164
|
if (this.stopCallbacks.length > 0) {
|
|
168
|
-
this.stopCallbacks.forEach(
|
|
165
|
+
this.stopCallbacks.forEach((cb) => {
|
|
169
166
|
try {
|
|
170
167
|
cb();
|
|
171
168
|
}
|
|
172
169
|
catch (err) {
|
|
173
|
-
|
|
170
|
+
this.environmentDataService.setLastError(err.stack);
|
|
174
171
|
}
|
|
175
172
|
});
|
|
176
173
|
}
|
|
177
|
-
}
|
|
178
|
-
|
|
174
|
+
}
|
|
175
|
+
start() {
|
|
179
176
|
if (this.isRunning)
|
|
180
177
|
return; //Already started
|
|
181
178
|
if (this.cfg.enabled.value == false)
|
|
@@ -185,9 +182,8 @@ var FootprintsProcess = /** @class */ (function () {
|
|
|
185
182
|
if (this.footprintsQueue.getQueueSize() > 0) {
|
|
186
183
|
this.ensureKeepaliveThreadRunning();
|
|
187
184
|
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
var _this = this;
|
|
185
|
+
}
|
|
186
|
+
stop(callback) {
|
|
191
187
|
try {
|
|
192
188
|
this.sendToServerWatchdog.stop();
|
|
193
189
|
if (this.cfg.enabled.value === false || this.cfg.sendFootprints.value === false) { //Footprints/Agent functionality is disabled. Return immediately
|
|
@@ -202,9 +198,9 @@ var FootprintsProcess = /** @class */ (function () {
|
|
|
202
198
|
When the submission is over (successfully or not), if the queue is empty the next batch of footprints will be sent.
|
|
203
199
|
If after submission the queue is cleared, this callback will be called
|
|
204
200
|
*/
|
|
205
|
-
this.stopCallbacks.push(
|
|
206
|
-
|
|
207
|
-
|
|
201
|
+
this.stopCallbacks.push(() => {
|
|
202
|
+
this.isRunning = false;
|
|
203
|
+
this.keepaliveWatchdog.stop();
|
|
208
204
|
return callback();
|
|
209
205
|
});
|
|
210
206
|
}
|
|
@@ -221,11 +217,10 @@ var FootprintsProcess = /** @class */ (function () {
|
|
|
221
217
|
//TODO: log
|
|
222
218
|
return callback();
|
|
223
219
|
}
|
|
224
|
-
}
|
|
225
|
-
|
|
220
|
+
}
|
|
221
|
+
getQueueSize() {
|
|
226
222
|
return this.footprintsQueue.getQueueSize();
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
}());
|
|
223
|
+
}
|
|
224
|
+
}
|
|
230
225
|
exports.FootprintsProcess = FootprintsProcess;
|
|
231
226
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../test-listener/footprints-process/index.ts"],"names":[],"mappings":";;;AAGA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../test-listener/footprints-process/index.ts"],"names":[],"mappings":";;;AAGA,oCAAiC;AAMjC,0DAA8D;AAG9D,MAAa,iBAAiB;IAC1B;IACI;;OAEG;IACK,GAAgB;IACxB;;OAEG;IACK,oBAA8B;IACtC;;OAEG;IACK,iBAA2B;IACnC;;OAEG;IACK,aAA4B;IACpC;;OAEG;IACK,sBAA8C;IAEtD;;OAEG;IACK,sBAA8C,EAE9C,iBAAoC,EAEpC,oBAA8C,EAE9C,MAAc;QA3Bd,QAAG,GAAH,GAAG,CAAa;QAIhB,yBAAoB,GAApB,oBAAoB,CAAU;QAI9B,sBAAiB,GAAjB,iBAAiB,CAAU;QAI3B,kBAAa,GAAb,aAAa,CAAe;QAI5B,2BAAsB,GAAtB,sBAAsB,CAAwB;QAK9C,2BAAs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,CAAC;gBAEvB,OAAO,QAAQ,EAAE,CAAC;aACrB;YACD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;YAC3E,IAAI,CAAC,sBAAsB,EAAE,CAAC,CAAC,iIAAiI;YAEhK,IAAI,IAAI,CAAC,sBAAsB,EAAE;gBAC7B;;;;kBAIE;gBACF,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,EAAE;oBACzB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;oBACvB,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC;oBAC9B,OAAO,QAAQ,EAAE,CAAC;gBACtB,CAAC,CAAC,CAAC;aACN;iBAAM;gBACH;;kBAEE;gBACF,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;gBACvB,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC;gBAC9B,OAAO,QAAQ,EAAE,CAAC;aACrB;SACJ;QAAC,OAAO,GAAG,EAAE;YACV,WAAW;YACX,OAAO,QAAQ,EAAE,CAAC;SACrB;IACL,CAAC;IAEM,YAAY;QACf,OAAO,IAAI,CAAC,eAAe,CAAC,YAAY,EAAE,CAAC;IAC/C,CAAC;CACJ;AAjOD,8CAiOC"}
|
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IstanbulToFootprintsBase = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const path = require("path");
|
|
5
|
+
const messages_formatter_1 = require("../../common/messages-formatter");
|
|
6
|
+
const GLOBAL_ISTANBUL_CONTAINER_NAMES = ['__coverage__'];
|
|
7
7
|
function newNumberArray(length) {
|
|
8
|
-
|
|
9
|
-
for (
|
|
8
|
+
const arr = [];
|
|
9
|
+
for (let i = 0; i < length; i++)
|
|
10
10
|
arr.push(0);
|
|
11
11
|
return arr;
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
class IstanbulToFootprintsBase {
|
|
14
|
+
constructor(logger) {
|
|
15
15
|
this.previousIstanbulCounters = {};
|
|
16
16
|
this.relativeModulePaths = {};
|
|
17
17
|
this.logger = logger;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
getIstanbulCounters() {
|
|
20
20
|
if (this.globalCoverageContainer)
|
|
21
21
|
return this.globalCoverageContainer;
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
const re = /^\$\$cov_[0-9]+\$\$$/;
|
|
23
|
+
const keys = Object.keys(global);
|
|
24
24
|
if (this.logger.isDebugEnabled()) {
|
|
25
25
|
this.logger.debug('The \'global\' object contains the following keys:\n\t' + keys.join('\n\t'));
|
|
26
26
|
}
|
|
27
27
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
28
|
-
for (
|
|
29
|
-
|
|
28
|
+
for (let i = 0; i < keys.length; i++) {
|
|
29
|
+
const k = keys[i];
|
|
30
30
|
if ((re.exec(k)) !== null || GLOBAL_ISTANBUL_CONTAINER_NAMES.indexOf(k) >= 0) {
|
|
31
31
|
this.globalCoverageContainer = global[k];
|
|
32
32
|
return this.globalCoverageContainer;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
return null;
|
|
36
|
-
}
|
|
37
|
-
|
|
36
|
+
}
|
|
37
|
+
getRelativeModulePath(module) {
|
|
38
38
|
if (!this.relativeModulePaths[module.path]) {
|
|
39
39
|
this.relativeModulePaths[module.path] = path.relative(process.cwd(), module.path).replace(/\\/g, '/');
|
|
40
40
|
}
|
|
41
41
|
return this.relativeModulePaths[module.path];
|
|
42
|
-
}
|
|
43
|
-
|
|
42
|
+
}
|
|
43
|
+
formatLoc(loc) {
|
|
44
44
|
return loc.line + ',' + loc.column;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
}
|
|
46
|
+
getCurrentFootprints() {
|
|
47
|
+
const diff = this.getIstanbulCountersDiff(this.getIstanbulCounters());
|
|
48
48
|
return diff;
|
|
49
|
-
}
|
|
50
|
-
|
|
49
|
+
}
|
|
50
|
+
getIstanbulCountersDiff(currentCounters) {
|
|
51
51
|
if (!currentCounters) {
|
|
52
52
|
this.logger.error('Couldn\'t get istanbul counters, return empty diff.');
|
|
53
53
|
return {};
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
const diff = {};
|
|
56
|
+
let diffModule = null;
|
|
57
57
|
function createModuleForDiff(istanbulModule) {
|
|
58
58
|
diffModule = diff[istanbulModule] = { b: {}, f: {}, s: {} };
|
|
59
59
|
return diffModule;
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
for (
|
|
61
|
+
const prevCounters = this.previousIstanbulCounters;
|
|
62
|
+
for (const istanbulModule in currentCounters) {
|
|
63
63
|
diffModule = null;
|
|
64
64
|
if (!prevCounters[istanbulModule]) {
|
|
65
65
|
prevCounters[istanbulModule] = { b: {}, f: {}, s: {} };
|
|
66
66
|
}
|
|
67
|
-
|
|
68
|
-
for (
|
|
67
|
+
const prevModule = prevCounters[istanbulModule];
|
|
68
|
+
for (const funcId in currentCounters[istanbulModule].f) {
|
|
69
69
|
if (prevModule.f[funcId] === undefined) {
|
|
70
70
|
prevModule.f[funcId] = 0;
|
|
71
71
|
}
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
const currentFunctionHits = currentCounters[istanbulModule].f[funcId];
|
|
73
|
+
const prevFunctionHits = prevModule.f[funcId] || 0;
|
|
74
74
|
if (currentFunctionHits > prevFunctionHits) {
|
|
75
75
|
//this is a diff
|
|
76
76
|
diffModule = diffModule || createModuleForDiff(istanbulModule);
|
|
@@ -78,12 +78,12 @@ var IstanbulToFootprintsBase = /** @class */ (function () {
|
|
|
78
78
|
prevModule.f[funcId] = currentFunctionHits;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
for (
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
for (const branchId in currentCounters[istanbulModule].b) {
|
|
82
|
+
const currentBranchesHits = currentCounters[istanbulModule].b[branchId];
|
|
83
|
+
const prevBranchHits = prevModule.b[branchId];
|
|
84
84
|
if (prevBranchHits) {
|
|
85
|
-
for (
|
|
86
|
-
|
|
85
|
+
for (let i = 0, j = currentBranchesHits.length; i < j; i++) {
|
|
86
|
+
const currentHits = currentBranchesHits[i], previousHits = prevBranchHits[i] || 0;
|
|
87
87
|
if (currentHits > previousHits) {
|
|
88
88
|
//this is a diff
|
|
89
89
|
diffModule = diffModule || createModuleForDiff(istanbulModule);
|
|
@@ -95,8 +95,8 @@ var IstanbulToFootprintsBase = /** @class */ (function () {
|
|
|
95
95
|
}
|
|
96
96
|
else {
|
|
97
97
|
prevModule.b[branchId] = currentBranchesHits.slice();
|
|
98
|
-
|
|
99
|
-
for (
|
|
98
|
+
let branchSetHasHits = false;
|
|
99
|
+
for (let i = 0, j = currentBranchesHits.length; i < j && !branchSetHasHits; i++) {
|
|
100
100
|
if (currentBranchesHits[i])
|
|
101
101
|
branchSetHasHits = true;
|
|
102
102
|
}
|
|
@@ -109,23 +109,22 @@ var IstanbulToFootprintsBase = /** @class */ (function () {
|
|
|
109
109
|
}
|
|
110
110
|
this.logDiff(diff);
|
|
111
111
|
return diff;
|
|
112
|
-
}
|
|
113
|
-
|
|
112
|
+
}
|
|
113
|
+
logDiff(diff) {
|
|
114
114
|
if (!this.logger.isDebugEnabled()) {
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
modules.forEach(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
formatter.addContent(
|
|
117
|
+
const modules = Object.keys(diff);
|
|
118
|
+
const formatter = new messages_formatter_1.MessagesFormatter();
|
|
119
|
+
modules.forEach((module) => {
|
|
120
|
+
const methods = diff[module].f || {};
|
|
121
|
+
const branches = diff[module].b || {};
|
|
122
|
+
const methodsSize = Object.keys(methods).length;
|
|
123
|
+
const branchesSize = Object.keys(branches).length;
|
|
124
|
+
formatter.addContent(`${module}: ${methodsSize} methods and ${branchesSize} branches`);
|
|
125
125
|
});
|
|
126
|
-
this.logger.debug(
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
}());
|
|
126
|
+
this.logger.debug(`Found coverage data for ${modules.length} files:\n ${formatter.content}`);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
130
129
|
exports.IstanbulToFootprintsBase = IstanbulToFootprintsBase;
|
|
131
130
|
//# sourceMappingURL=istanbul-to-footprints-base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"istanbul-to-footprints-base.js","sourceRoot":"","sources":["../../../test-listener/footprints-process/istanbul-to-footprints-base.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"istanbul-to-footprints-base.js","sourceRoot":"","sources":["../../../test-listener/footprints-process/istanbul-to-footprints-base.ts"],"names":[],"mappings":";;;AAEA,6BAA8B;AAC9B,wEAAkE;AAGlE,MAAM,+BAA+B,GAAG,CAAC,cAAc,CAAC,CAAC;AAEzD,SAAS,cAAc,CAAC,MAAc;IAClC,MAAM,GAAG,GAAG,EAAE,CAAC;IACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE;QAC3B,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAChB,OAAO,GAAG,CAAC;AACf,CAAC;AAED,MAAsB,wBAAwB;IAM1C,YAAY,MAAc;QAJlB,6BAAwB,GAA4B,EAAE,CAAC;QA4BvD,wBAAmB,GAA+B,EAAE,CAAC;QAvBzD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAIS,mBAAmB;QACzB,IAAI,IAAI,CAAC,uBAAuB;YAAE,OAAO,IAAI,CAAC,uBAAuB,CAAC;QACtE,MAAM,EAAE,GAAG,sBAAsB,CAAC;QAClC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,C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