slnodejs 6.1.415 → 6.1.447
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 +249 -414
- package/browser-agent/dist/browser-agent-all.min.js +3 -3
- 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 +35 -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 +56 -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 +112 -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 +72 -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/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 +10 -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 +64 -133
- 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.d.ts +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.d.ts +1 -0
- package/tsOutputs/common/footprints-process-v6/index.js +210 -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 +13 -16
- 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.d.ts +4 -0
- package/tsOutputs/common/utils/validation-utils.js +13 -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,30 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __assign = (this && this.__assign) || function () {
|
|
18
|
-
__assign = Object.assign || function(t) {
|
|
19
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
-
s = arguments[i];
|
|
21
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
-
t[p] = s[p];
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
};
|
|
26
|
-
return __assign.apply(this, arguments);
|
|
27
|
-
};
|
|
28
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -34,141 +8,88 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
9
|
});
|
|
36
10
|
};
|
|
37
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
38
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
39
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
40
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
41
|
-
function step(op) {
|
|
42
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
43
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
44
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
45
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
46
|
-
switch (op[0]) {
|
|
47
|
-
case 0: case 1: t = op; break;
|
|
48
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
49
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
50
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
51
|
-
default:
|
|
52
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
53
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
54
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
55
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
56
|
-
if (t[2]) _.ops.pop();
|
|
57
|
-
_.trys.pop(); continue;
|
|
58
|
-
}
|
|
59
|
-
op = body.call(thisArg, _);
|
|
60
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
61
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
12
|
exports.DryRunExecutor = void 0;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
_this._validations = new Map();
|
|
90
|
-
return _this;
|
|
13
|
+
const base_executor_1 = require("../base-executor");
|
|
14
|
+
const dry_run_proxy_1 = require("../../../common/http/dry-run-proxy");
|
|
15
|
+
const utils_1 = require("../../utils");
|
|
16
|
+
const fs_1 = require("fs");
|
|
17
|
+
const Constants = require("../../constants/constants");
|
|
18
|
+
const cockpit_notifier_1 = require("../../../common/agent-events/cockpit-notifier");
|
|
19
|
+
const rimraf_1 = require("rimraf");
|
|
20
|
+
const path_1 = require("path");
|
|
21
|
+
const dry_run_validation_1 = require("./dry-run-validation");
|
|
22
|
+
const table_1 = require("table");
|
|
23
|
+
const chalk_1 = require("chalk");
|
|
24
|
+
const agent_events_contracts_1 = require("../../../common/agent-events/agent-events-contracts");
|
|
25
|
+
const flatMap = require("lodash.flatmap");
|
|
26
|
+
const build_args_dto_1 = require("../build-args-dto");
|
|
27
|
+
const build_mapping_data_1 = require("./build-mapping-data");
|
|
28
|
+
const footprints_data_1 = require("./footprints-data");
|
|
29
|
+
const helper_methods_1 = require("./helper-methods");
|
|
30
|
+
const logger_1 = require("../../../common/logger");
|
|
31
|
+
class DryRunExecutor extends base_executor_1.BaseExecutor {
|
|
32
|
+
constructor() {
|
|
33
|
+
super(...arguments);
|
|
34
|
+
this.commandName = 'dryRun';
|
|
35
|
+
this._validations = new Map();
|
|
91
36
|
}
|
|
92
|
-
|
|
37
|
+
execute(args, extraArgs) {
|
|
93
38
|
var _a;
|
|
94
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
return [4 /*yield*/, this.verifyBuildMappingData(buildMappingData)];
|
|
110
|
-
case 2:
|
|
111
|
-
_b.sent();
|
|
112
|
-
return [4 /*yield*/, footprints_data_1.FootprintsData.run(buildArguments, this.logger, dryRunProxy)];
|
|
113
|
-
case 3:
|
|
114
|
-
footprintsData = _b.sent();
|
|
115
|
-
this.validateIds(buildMappingData, footprintsData, buildArguments.depth);
|
|
116
|
-
this.printResult(dryRunProxy, args, footprintsData, buildMappingData);
|
|
117
|
-
if ((_a = buildMappingData.buildMappingResult) === null || _a === void 0 ? void 0 : _a.err) {
|
|
118
|
-
throw buildMappingData.buildMappingResult.err;
|
|
119
|
-
}
|
|
120
|
-
return [3 /*break*/, 5];
|
|
121
|
-
case 4:
|
|
122
|
-
e_1 = _b.sent();
|
|
123
|
-
console.log(chalk_1.default.red("".concat(Constants.DONE_WITH_ERROR_MSG, " '").concat(e_1, "'")));
|
|
124
|
-
return [3 /*break*/, 5];
|
|
125
|
-
case 5: return [2 /*return*/];
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
try {
|
|
41
|
+
this.printAgentVersionAndAgentId();
|
|
42
|
+
this.validateArgs(args);
|
|
43
|
+
const dryRunProxy = new dry_run_proxy_1.DryRunProxy();
|
|
44
|
+
this.init(dryRunProxy);
|
|
45
|
+
this.printCommandWithAgentId();
|
|
46
|
+
const buildArguments = this.mapArgs(args);
|
|
47
|
+
const buildMappingData = yield build_mapping_data_1.BuildMappingData.run(dryRunProxy, buildArguments, this.logger);
|
|
48
|
+
yield this.verifyBuildMappingData(buildMappingData);
|
|
49
|
+
const footprintsData = yield footprints_data_1.FootprintsData.run(buildArguments, this.logger, dryRunProxy);
|
|
50
|
+
this.validateIds(buildMappingData, footprintsData, buildArguments.depth);
|
|
51
|
+
this.printResult(dryRunProxy, args, footprintsData, buildMappingData);
|
|
52
|
+
if ((_a = buildMappingData.buildMappingResult) === null || _a === void 0 ? void 0 : _a.err) {
|
|
53
|
+
throw buildMappingData.buildMappingResult.err;
|
|
126
54
|
}
|
|
127
|
-
}
|
|
55
|
+
}
|
|
56
|
+
catch (e) {
|
|
57
|
+
console.log(chalk_1.default.red(`${Constants.DONE_WITH_ERROR_MSG} '${e}'`));
|
|
58
|
+
}
|
|
128
59
|
});
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
132
|
-
return
|
|
133
|
-
return [2 /*return*/, true];
|
|
134
|
-
});
|
|
60
|
+
}
|
|
61
|
+
innerExecute(args) {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
return true;
|
|
135
64
|
});
|
|
136
|
-
}
|
|
137
|
-
|
|
65
|
+
}
|
|
66
|
+
verifyBuildMappingData(buildMappingData) {
|
|
138
67
|
var _a, _b;
|
|
139
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
if ((_b = buildMappingData.logicalThirdParties) === null || _b === void 0 ? void 0 : _b.length) {
|
|
156
|
-
(0, helper_methods_1.saveArrayToFile)(Constants.THIRD_PARTY_LOGICAL_FILES_FILENAME, buildMappingData.logicalThirdParties);
|
|
157
|
-
this.validations.get(dry_run_validation_1.Validations.LOGICAL_THIRD_PARTY).setFailure(buildMappingData.logicalThirdParties.toString());
|
|
158
|
-
}
|
|
159
|
-
return [2 /*return*/];
|
|
160
|
-
}
|
|
161
|
-
});
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
if (!buildMappingData.hasColumnInfo()) {
|
|
70
|
+
this._validations.get(dry_run_validation_1.Validations.COLUMN_INFO).setFailure();
|
|
71
|
+
}
|
|
72
|
+
if (yield buildMappingData.hasGitPathDiff()) {
|
|
73
|
+
this._validations.get(dry_run_validation_1.Validations.GIT_PATH).setFailure();
|
|
74
|
+
}
|
|
75
|
+
if ((_a = buildMappingData.rawThirdParties) === null || _a === void 0 ? void 0 : _a.length) {
|
|
76
|
+
(0, helper_methods_1.saveArrayToFile)(Constants.THIRD_PARTY_RAW_FILES_FILENAME, buildMappingData.rawThirdParties);
|
|
77
|
+
this.validations.get(dry_run_validation_1.Validations.RAW_THIRD_PARTY).setFailure(buildMappingData.rawThirdParties.toString());
|
|
78
|
+
}
|
|
79
|
+
if ((_b = buildMappingData.logicalThirdParties) === null || _b === void 0 ? void 0 : _b.length) {
|
|
80
|
+
(0, helper_methods_1.saveArrayToFile)(Constants.THIRD_PARTY_LOGICAL_FILES_FILENAME, buildMappingData.logicalThirdParties);
|
|
81
|
+
this.validations.get(dry_run_validation_1.Validations.LOGICAL_THIRD_PARTY).setFailure(buildMappingData.logicalThirdParties.toString());
|
|
82
|
+
}
|
|
162
83
|
});
|
|
163
|
-
}
|
|
164
|
-
|
|
84
|
+
}
|
|
85
|
+
init(dryRunProxy) {
|
|
165
86
|
this.clearCreateDryRunOutputDir();
|
|
166
87
|
this.initCheckMarks();
|
|
167
88
|
(0, helper_methods_1.saveDataToFile)(Constants.PROCESS_ARGS_FILENAME, process.argv);
|
|
168
89
|
this.logger = logger_1.LoggerFactory.getCreateDebugFileLogger((0, path_1.join)(Constants.DRY_RUN_OUTPUT, Constants.LOG_FILE));
|
|
169
90
|
cockpit_notifier_1.CockpitNotifier.setDryRunMode(this.logger, dryRunProxy);
|
|
170
|
-
}
|
|
171
|
-
|
|
91
|
+
}
|
|
92
|
+
printResult(dryRunProxy, args, footprintsData, buildMappingData) {
|
|
172
93
|
this.printCounters(buildMappingData.buildMapping);
|
|
173
94
|
this.printCheckMarks();
|
|
174
95
|
this.printAgentEvents(dryRunProxy.agentEvents);
|
|
@@ -176,92 +97,88 @@ var DryRunExecutor = /** @class */ (function (_super) {
|
|
|
176
97
|
buildMappingData.printVerbose();
|
|
177
98
|
footprintsData.printVerbose();
|
|
178
99
|
}
|
|
179
|
-
}
|
|
180
|
-
|
|
100
|
+
}
|
|
101
|
+
printAgentEvents(agentEvents) {
|
|
181
102
|
(0, helper_methods_1.saveDataToFile)(Constants.AGENT_EVENTS_FILENAME, agentEvents);
|
|
182
|
-
|
|
183
|
-
|
|
103
|
+
const eventsEntries = agentEvents.map(entry => entry.events);
|
|
104
|
+
const warningsAndErrors = flatMap(eventsEntries).filter(this.isErrorOrWarning);
|
|
184
105
|
if (warningsAndErrors.length > 0) {
|
|
185
106
|
(0, helper_methods_1.saveDataToFile)(Constants.ERROR_WARNINGS_FILENAME, warningsAndErrors);
|
|
186
|
-
console.log(chalk_1.default.yellow(
|
|
107
|
+
console.log(chalk_1.default.yellow(` ${warningsAndErrors.length} ${Constants.AGENT_EVENTS_ERROR_MSG}\n`));
|
|
187
108
|
}
|
|
188
|
-
}
|
|
109
|
+
}
|
|
189
110
|
/**
|
|
190
111
|
* Warning are in range 3000 (3000-3999), errors are in range 4000 (4000-4999).
|
|
191
112
|
* Checks if event is within those ranges
|
|
192
113
|
* @param event
|
|
193
114
|
* @private
|
|
194
115
|
*/
|
|
195
|
-
|
|
116
|
+
isErrorOrWarning(event) {
|
|
196
117
|
return event.type >= agent_events_contracts_1.AgentEventCode.WARN && event.type <= agent_events_contracts_1.AgentEventCode.FOOTPRINTS_LOSS;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
DryRunExecutor.prototype.mapArgs = function (args) {
|
|
206
|
-
return __assign(__assign({}, build_args_dto_1.BuildArgsDTO.create(args)), { appname: 'app1', build: 'build1', branch: 'branch1', customerId: 'customer1', token: 't1', server: 'http://sealights.co/api', buildSessionId: 'bs1', workspacepath: (0, utils_1.resolvePath)('workspacepath', args.workspacepath), outputpath: (0, path_1.join)(Constants.DRY_RUN_OUTPUT, args.outputpath || Constants.INSTRUMENTATION_OUTPUT), folderDepth: parseInt(args.folderDepth), hasNycReport: args.hasNycReport, report: args.report, nycProjectRoot: args.nycProjectRoot, projectRoot: args.buildScanProjectRoot, sendContributors: true, instrumentationOnly: false });
|
|
207
|
-
};
|
|
208
|
-
DryRunExecutor.prototype.validateArgs = function (args) {
|
|
118
|
+
}
|
|
119
|
+
get validations() {
|
|
120
|
+
return this._validations;
|
|
121
|
+
}
|
|
122
|
+
mapArgs(args) {
|
|
123
|
+
return Object.assign(Object.assign({}, build_args_dto_1.BuildArgsDTO.create(args)), { appname: 'app1', build: 'build1', branch: 'branch1', customerId: 'customer1', token: 't1', server: 'http://sealights.co/api', buildSessionId: 'bs1', workspacepath: (0, utils_1.resolvePath)('workspacepath', args.workspacepath), outputpath: (0, path_1.join)(Constants.DRY_RUN_OUTPUT, args.outputpath || Constants.INSTRUMENTATION_OUTPUT), folderDepth: parseInt(args.folderDepth), hasNycReport: args.hasNycReport, report: args.report, nycProjectRoot: args.nycProjectRoot, projectRoot: args.buildScanProjectRoot, sendContributors: true, instrumentationOnly: false });
|
|
124
|
+
}
|
|
125
|
+
validateArgs(args) {
|
|
209
126
|
if (!args.workspacepath) {
|
|
210
127
|
throw '\'Workspace\' is mandatory, please use \'--help\' flag to see the usage';
|
|
211
128
|
}
|
|
212
129
|
return true;
|
|
213
|
-
}
|
|
214
|
-
|
|
130
|
+
}
|
|
131
|
+
validateIds(buildMappingData, footprintsData, depth) {
|
|
215
132
|
this.validatePaths(buildMappingData, footprintsData);
|
|
216
133
|
this.validatePositions(footprintsData.uniqueIdsByPath(), buildMappingData.uniqueIdsByPath());
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
Object.keys(footprintsPathToIds).forEach(
|
|
134
|
+
}
|
|
135
|
+
validatePositions(footprintsPathToIds, buildScanPathToIds) {
|
|
136
|
+
let footprintIds = [];
|
|
137
|
+
let buildScanIds = [];
|
|
138
|
+
Object.keys(footprintsPathToIds).forEach((path) => {
|
|
222
139
|
if (buildScanPathToIds[path]) {
|
|
223
140
|
footprintIds = footprintIds.concat(footprintsPathToIds[path]);
|
|
224
141
|
buildScanIds = buildScanIds.concat(buildScanPathToIds[path]);
|
|
225
142
|
}
|
|
226
143
|
});
|
|
227
|
-
|
|
144
|
+
const gap = (0, helper_methods_1.calculateDiffPercentage)(footprintIds, buildScanIds);
|
|
228
145
|
if (isNaN(gap)) {
|
|
229
146
|
this._validations.get(dry_run_validation_1.Validations.POSITION).setStatus(dry_run_validation_1.Status.NOT_APPLICABLE);
|
|
230
147
|
}
|
|
231
148
|
else if (gap >= Constants.POSITION_DIFF_PERCENT_TO_WARN) {
|
|
232
149
|
this._validations.get(dry_run_validation_1.Validations.POSITION).setFailure(gap);
|
|
233
150
|
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
|
|
151
|
+
}
|
|
152
|
+
validatePaths(buildMappingData, footprintsData) {
|
|
153
|
+
const gap = (0, helper_methods_1.calculateDiffPercentage)(footprintsData.truncateFilesPathByDepth(), buildMappingData.truncateFilesPathByDepth());
|
|
237
154
|
if (isNaN(gap)) {
|
|
238
155
|
this._validations.get(dry_run_validation_1.Validations.NYC_PATH).setStatus(dry_run_validation_1.Status.NOT_APPLICABLE);
|
|
239
156
|
}
|
|
240
157
|
else if (gap >= Constants.PATH_DIFF_PERCENT_TO_WARN) {
|
|
241
158
|
this._validations.get(dry_run_validation_1.Validations.NYC_PATH).setFailure(gap);
|
|
242
159
|
}
|
|
243
|
-
}
|
|
244
|
-
|
|
160
|
+
}
|
|
161
|
+
clearCreateDryRunOutputDir() {
|
|
245
162
|
if ((0, fs_1.existsSync)(Constants.DRY_RUN_OUTPUT)) {
|
|
246
163
|
(0, rimraf_1.sync)(Constants.DRY_RUN_OUTPUT);
|
|
247
164
|
}
|
|
248
165
|
(0, fs_1.mkdirSync)(Constants.DRY_RUN_OUTPUT);
|
|
249
|
-
}
|
|
250
|
-
|
|
166
|
+
}
|
|
167
|
+
initCheckMarks() {
|
|
251
168
|
this._validations.set(dry_run_validation_1.Validations.COLUMN_INFO, new dry_run_validation_1.NoColumnValidation());
|
|
252
169
|
this._validations.set(dry_run_validation_1.Validations.GIT_PATH, new dry_run_validation_1.GitPathsValidation());
|
|
253
170
|
this._validations.set(dry_run_validation_1.Validations.RAW_THIRD_PARTY, new dry_run_validation_1.RawThirdPartyValidation());
|
|
254
171
|
this._validations.set(dry_run_validation_1.Validations.LOGICAL_THIRD_PARTY, new dry_run_validation_1.LogicalThirdPartyValidation());
|
|
255
172
|
this._validations.set(dry_run_validation_1.Validations.NYC_PATH, new dry_run_validation_1.NycPathsValidation());
|
|
256
173
|
this._validations.set(dry_run_validation_1.Validations.POSITION, new dry_run_validation_1.PositionValidation());
|
|
257
|
-
}
|
|
258
|
-
|
|
174
|
+
}
|
|
175
|
+
printCheckMarks() {
|
|
259
176
|
console.log(chalk_1.default.blue('Analysis completed, found the following:\n'));
|
|
260
|
-
console.log(chalk_1.default.blue(
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
this._validations.forEach(
|
|
264
|
-
|
|
177
|
+
console.log(chalk_1.default.blue(`${Constants.DRY_RUN_DOCUMENTATION_MSG}\n`));
|
|
178
|
+
const headers = ['Name', 'Status', 'Message'];
|
|
179
|
+
const checkMarksArr = [headers];
|
|
180
|
+
this._validations.forEach(value => checkMarksArr.push(value.toPrintableArray()));
|
|
181
|
+
const config = {
|
|
265
182
|
columnDefault: {
|
|
266
183
|
wrapWord: true,
|
|
267
184
|
},
|
|
@@ -272,11 +189,10 @@ var DryRunExecutor = /** @class */ (function (_super) {
|
|
|
272
189
|
],
|
|
273
190
|
};
|
|
274
191
|
console.log((0, table_1.table)(checkMarksArr, config));
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
console.log(chalk_1.default.blue(
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
}(base_executor_1.BaseExecutor));
|
|
192
|
+
}
|
|
193
|
+
printCounters(buildMapping) {
|
|
194
|
+
console.log(chalk_1.default.blue(`Scanned ${buildMapping.counters.methods} methods and ${buildMapping.counters.branches} branches in ${buildMapping.files.length} files.\n`));
|
|
195
|
+
}
|
|
196
|
+
}
|
|
281
197
|
exports.DryRunExecutor = DryRunExecutor;
|
|
282
198
|
//# sourceMappingURL=dry-run-executor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dry-run-executor.js","sourceRoot":"","sources":["../../../../cli-parse/executors/dry-run/dry-run-executor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dry-run-executor.js","sourceRoot":"","sources":["../../../../cli-parse/executors/dry-run/dry-run-executor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA8C;AAE9C,sEAA+D;AAC/D,uCAAwC;AACxC,2BAAyC;AAEzC,uDAAuD;AACvD,oFAA8E;AAC9E,mCAAyC;AACzC,+BAA0B;AAC1B,6DAU8B;AAC9B,iCAA4B;AAC5B,iCAA0B;AAC1B,gGAAoH;AACpH,0CAA2C;AAC3C,sDAA+C;AAC/C,6DAAsD;AACtD,uDAAiD;AACjD,qDAA4F;AAC5F,mDAAqD;AAErD,MAAa,cAAe,SAAQ,4BAA0C;IAA9E;;QACc,gBAAW,GAAG,QAAQ,CAAC;QACzB,iBAAY,GAAuC,IAAI,GAAG,EAAiC,CAAC;IAgMxG,CAAC;IA9LgB,OAAO,CAAC,IAAiB,EAAE,SAAoB;;;YACxD,IA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,OAAO,EAAE;gBACL,EAAE,SAAS,EAAE,MAAM,EAAE;gBACrB,EAAE,SAAS,EAAE,QAAQ,EAAE;gBACvB,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;aACpC;SACJ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,IAAA,aAAK,EAAC,aAAa,EAAE,MAAa,CAAC,CAAC,CAAC;IACrD,CAAC;IAEO,aAAa,CAAC,YAAwC;QAC1D,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,WAAW,YAAY,CAAC,QAAQ,CAAC,OAAO,gBAAgB,YAAY,CAAC,QAAQ,CAAC,QAAQ,gBAAgB,YAAY,CAAC,KAAK,CAAC,MAAM,YAAY,CAAC,CAAC,CAAA;IACxK,CAAC;CACJ;AAlMD,wCAkMC"}
|
|
@@ -1,109 +1,75 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.Validations = exports.Status = exports.LogicalThirdPartyValidation = exports.RawThirdPartyValidation = exports.PositionValidation = exports.NycPathsValidation = exports.GitPathsValidation = exports.NoColumnValidation = exports.DryRunValidation = void 0;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
4
|
+
const constants_1 = require("../../constants/constants");
|
|
5
|
+
class DryRunValidation {
|
|
6
|
+
constructor() {
|
|
22
7
|
this.status = Status.OK;
|
|
23
8
|
}
|
|
24
|
-
|
|
9
|
+
setFailure(prefix) {
|
|
25
10
|
if (prefix != null) {
|
|
26
|
-
this.message =
|
|
11
|
+
this.message = `${prefix}${this.message}`;
|
|
27
12
|
}
|
|
28
13
|
this.status = Status.FAILED;
|
|
29
|
-
}
|
|
30
|
-
|
|
14
|
+
}
|
|
15
|
+
setStatus(status) {
|
|
31
16
|
this.status = status;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
17
|
+
}
|
|
18
|
+
toPrintableArray() {
|
|
19
|
+
const printableArr = [this.name, this.status];
|
|
20
|
+
const message = this.status == Status.FAILED ? this.message : '';
|
|
36
21
|
printableArr.push(message);
|
|
37
22
|
return printableArr;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}());
|
|
23
|
+
}
|
|
24
|
+
}
|
|
41
25
|
exports.DryRunValidation = DryRunValidation;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
_this.name = Validations.COLUMN_INFO;
|
|
48
|
-
return _this;
|
|
26
|
+
class NoColumnValidation extends DryRunValidation {
|
|
27
|
+
constructor() {
|
|
28
|
+
super(...arguments);
|
|
29
|
+
this.message = constants_1.NO_COLUMN_MSG;
|
|
30
|
+
this.name = Validations.COLUMN_INFO;
|
|
49
31
|
}
|
|
50
|
-
|
|
51
|
-
}(DryRunValidation));
|
|
32
|
+
}
|
|
52
33
|
exports.NoColumnValidation = NoColumnValidation;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
_this.name = Validations.GIT_PATH;
|
|
59
|
-
return _this;
|
|
34
|
+
class GitPathsValidation extends DryRunValidation {
|
|
35
|
+
constructor() {
|
|
36
|
+
super(...arguments);
|
|
37
|
+
this.message = constants_1.GIT_PATH_DIFF_MSG;
|
|
38
|
+
this.name = Validations.GIT_PATH;
|
|
60
39
|
}
|
|
61
|
-
|
|
62
|
-
}(DryRunValidation));
|
|
40
|
+
}
|
|
63
41
|
exports.GitPathsValidation = GitPathsValidation;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
_this.name = Validations.NYC_PATH;
|
|
70
|
-
return _this;
|
|
42
|
+
class NycPathsValidation extends DryRunValidation {
|
|
43
|
+
constructor() {
|
|
44
|
+
super(...arguments);
|
|
45
|
+
this.message = constants_1.NYC_PATH_DIFF_MSG;
|
|
46
|
+
this.name = Validations.NYC_PATH;
|
|
71
47
|
}
|
|
72
|
-
|
|
73
|
-
}(DryRunValidation));
|
|
48
|
+
}
|
|
74
49
|
exports.NycPathsValidation = NycPathsValidation;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
_this.name = Validations.POSITION;
|
|
81
|
-
return _this;
|
|
50
|
+
class PositionValidation extends DryRunValidation {
|
|
51
|
+
constructor() {
|
|
52
|
+
super(...arguments);
|
|
53
|
+
this.message = constants_1.POSITION_DIFF_MSG;
|
|
54
|
+
this.name = Validations.POSITION;
|
|
82
55
|
}
|
|
83
|
-
|
|
84
|
-
}(DryRunValidation));
|
|
56
|
+
}
|
|
85
57
|
exports.PositionValidation = PositionValidation;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
_this.name = Validations.RAW_THIRD_PARTY;
|
|
92
|
-
return _this;
|
|
58
|
+
class RawThirdPartyValidation extends DryRunValidation {
|
|
59
|
+
constructor() {
|
|
60
|
+
super(...arguments);
|
|
61
|
+
this.message = constants_1.RAW_THIRD_PARTY_MSG;
|
|
62
|
+
this.name = Validations.RAW_THIRD_PARTY;
|
|
93
63
|
}
|
|
94
|
-
|
|
95
|
-
}(DryRunValidation));
|
|
64
|
+
}
|
|
96
65
|
exports.RawThirdPartyValidation = RawThirdPartyValidation;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
_this.name = Validations.LOGICAL_THIRD_PARTY;
|
|
103
|
-
return _this;
|
|
66
|
+
class LogicalThirdPartyValidation extends DryRunValidation {
|
|
67
|
+
constructor() {
|
|
68
|
+
super(...arguments);
|
|
69
|
+
this.message = constants_1.LOGICAL_THIRD_PARTY_MSG;
|
|
70
|
+
this.name = Validations.LOGICAL_THIRD_PARTY;
|
|
104
71
|
}
|
|
105
|
-
|
|
106
|
-
}(DryRunValidation));
|
|
72
|
+
}
|
|
107
73
|
exports.LogicalThirdPartyValidation = LogicalThirdPartyValidation;
|
|
108
74
|
var Status;
|
|
109
75
|
(function (Status) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dry-run-validation.js","sourceRoot":"","sources":["../../../../cli-parse/executors/dry-run/dry-run-validation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dry-run-validation.js","sourceRoot":"","sources":["../../../../cli-parse/executors/dry-run/dry-run-validation.ts"],"names":[],"mappings":";;;AAAA,yDAOmC;AAEnC,MAAsB,gBAAgB;IAAtC;QAGI,WAAM,GAAW,MAAM,CAAC,EAAE,CAAC;IAmB/B,CAAC;IAjBU,UAAU,CAAC,MAAwB;QACtC,IAAG,MAAM,IAAI,IAAI,EAAC;YACd,IAAI,CAAC,OAAO,GAAG,GAAG,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;SAC7C;QACD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAChC,CAAC;IAEM,SAAS,CAAC,MAAc;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,gBAAgB;QACnB,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