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,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -19,47 +8,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
9
|
});
|
|
21
10
|
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
-
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;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
12
|
exports.RemoteAgent = void 0;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
13
|
+
const system_date_1 = require("../common/system-date");
|
|
14
|
+
const uuid_1 = require("./uuid");
|
|
15
|
+
const events_contracts_1 = require("../common/events-process/events-contracts");
|
|
16
|
+
const cockpit_notifier_1 = require("../common/agent-events/cockpit-notifier");
|
|
17
|
+
const agent_instance_data_1 = require("../cli-parse/agent-instance-data");
|
|
18
|
+
const remote_browser_hits_converter_1 = require("../common/footprints-process-v6/remote-browser-hits-converter");
|
|
19
|
+
const state_tracker_1 = require("../common/state-tracker");
|
|
58
20
|
/**
|
|
59
21
|
* Agent that dose not collects footprints by itself, the coverage collected from another agent (e.g browser)
|
|
60
22
|
*/
|
|
61
|
-
|
|
62
|
-
|
|
23
|
+
class RemoteAgent {
|
|
24
|
+
constructor(agentConfig, logger, backendProxy, testRecommendationHandler, eventsProcess, footprintsProcess, hitsCollector, hitsConverter, stateTracker) {
|
|
63
25
|
this._isStartingExecution = true;
|
|
64
26
|
this._agentConfig = agentConfig;
|
|
65
27
|
this.logger = logger;
|
|
@@ -72,104 +34,59 @@ var RemoteAgent = /** @class */ (function () {
|
|
|
72
34
|
this.stateTracker = stateTracker;
|
|
73
35
|
this.queriedBsids = {};
|
|
74
36
|
}
|
|
75
|
-
|
|
76
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
_b.sent();
|
|
83
|
-
if (!(this.hitsConverter instanceof remote_browser_hits_converter_1.RemoteBrowserHitsConverter)) return [3 /*break*/, 3];
|
|
84
|
-
_a = this.hitsConverter;
|
|
85
|
-
return [4 /*yield*/, this.getSlMapping(this._agentConfig.buildSessionId.value)];
|
|
86
|
-
case 2:
|
|
87
|
-
_a.slMapping = _b.sent();
|
|
88
|
-
_b.label = 3;
|
|
89
|
-
case 3:
|
|
90
|
-
this.eventsProcess.start();
|
|
91
|
-
this.footprintsProcess.start();
|
|
92
|
-
return [2 /*return*/];
|
|
93
|
-
}
|
|
94
|
-
});
|
|
37
|
+
start(args) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
yield cockpit_notifier_1.CockpitNotifier.notifyStart(this._agentConfig, agent_instance_data_1.agentInstanceData, this.logger, args === null || args === void 0 ? void 0 : args.packageJsonFile, args === null || args === void 0 ? void 0 : args.backendProxy, args === null || args === void 0 ? void 0 : args.tool, args === null || args === void 0 ? void 0 : args.tags);
|
|
40
|
+
if (this.hitsConverter instanceof remote_browser_hits_converter_1.RemoteBrowserHitsConverter)
|
|
41
|
+
this.hitsConverter.slMapping = yield this.getSlMapping(this._agentConfig.buildSessionId.value);
|
|
42
|
+
this.eventsProcess.start();
|
|
43
|
+
this.footprintsProcess.start();
|
|
95
44
|
});
|
|
96
|
-
}
|
|
45
|
+
}
|
|
97
46
|
// TODO: should not be in that class
|
|
98
|
-
|
|
99
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
return [4 /*yield*/, this.backendProxy.getBlobsAsJson(bsid)];
|
|
108
|
-
case 1:
|
|
109
|
-
mappingsArr = _a.sent();
|
|
110
|
-
flatted = {};
|
|
111
|
-
mappingsArr.forEach(function (mapping) {
|
|
112
|
-
flatted = __assign(__assign({}, flatted), mapping);
|
|
113
|
-
});
|
|
114
|
-
this.queriedBsids[bsid] = true;
|
|
115
|
-
return [2 /*return*/, flatted];
|
|
116
|
-
}
|
|
47
|
+
getSlMapping(bsid) {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
if (this.queriedBsids[bsid]) {
|
|
50
|
+
return this.hitsConverter.slMapping;
|
|
51
|
+
}
|
|
52
|
+
const mappingsArr = yield this.backendProxy.getBlobsAsJson(bsid);
|
|
53
|
+
let flatted = {};
|
|
54
|
+
mappingsArr.forEach(mapping => {
|
|
55
|
+
flatted = Object.assign(Object.assign({}, flatted), mapping);
|
|
117
56
|
});
|
|
57
|
+
this.queriedBsids[bsid] = true;
|
|
58
|
+
return flatted;
|
|
118
59
|
});
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
_a.sent();
|
|
127
|
-
return [4 /*yield*/, this.footprintsProcess.stop()];
|
|
128
|
-
case 2:
|
|
129
|
-
_a.sent();
|
|
130
|
-
return [4 /*yield*/, this.endExecution()];
|
|
131
|
-
case 3:
|
|
132
|
-
_a.sent();
|
|
133
|
-
return [4 /*yield*/, cockpit_notifier_1.CockpitNotifier.notifyShutdown()];
|
|
134
|
-
case 4:
|
|
135
|
-
_a.sent();
|
|
136
|
-
return [2 /*return*/];
|
|
137
|
-
}
|
|
138
|
-
});
|
|
60
|
+
}
|
|
61
|
+
stop() {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
yield this.eventsProcess.stop();
|
|
64
|
+
yield this.footprintsProcess.stop();
|
|
65
|
+
yield this.endExecution();
|
|
66
|
+
yield cockpit_notifier_1.CockpitNotifier.notifyShutdown();
|
|
139
67
|
});
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
143
|
-
return
|
|
144
|
-
return [2 /*return*/, this.testRecommendationHandler.getExcludedTests()];
|
|
145
|
-
});
|
|
68
|
+
}
|
|
69
|
+
getExcludedTests() {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
return this.testRecommendationHandler.getExcludedTests();
|
|
146
72
|
});
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
return [2 /*return*/, this.stateTracker.startColoredExecution(this.executionId)];
|
|
156
|
-
});
|
|
73
|
+
}
|
|
74
|
+
startExecution() {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
if (!this.isStartingExecution) {
|
|
77
|
+
return this.loadExecution();
|
|
78
|
+
}
|
|
79
|
+
this.executionId = uuid_1.UUID.newGuid([(0, system_date_1.getSystemDateValueOf)().toString(), this._agentConfig.customerId.value].join());
|
|
80
|
+
return this.stateTracker.startColoredExecution(this.executionId);
|
|
157
81
|
});
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
case 0: return [4 /*yield*/, this.stateTracker.loadExecutionSync()];
|
|
164
|
-
case 1:
|
|
165
|
-
_a.sent();
|
|
166
|
-
this.executionId = this.stateTracker.currentExecution.executionId;
|
|
167
|
-
return [2 /*return*/];
|
|
168
|
-
}
|
|
169
|
-
});
|
|
82
|
+
}
|
|
83
|
+
loadExecution() {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
yield this.stateTracker.loadExecutionSync();
|
|
86
|
+
this.executionId = this.stateTracker.currentExecution.executionId;
|
|
170
87
|
});
|
|
171
|
-
}
|
|
172
|
-
|
|
88
|
+
}
|
|
89
|
+
buildStartExecutionRequest() {
|
|
173
90
|
return {
|
|
174
91
|
isValidToken: true,
|
|
175
92
|
labId: this._agentConfig.labId.value || this._agentConfig.buildSessionId.value,
|
|
@@ -184,26 +101,18 @@ var RemoteAgent = /** @class */ (function () {
|
|
|
184
101
|
testStage: this._agentConfig.testStage.value,
|
|
185
102
|
executionId: this.executionId
|
|
186
103
|
};
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
return [4 /*yield*/, this.footprintsProcess.submitQueuedFootprints(this.stateTracker.currentExecution)];
|
|
198
|
-
case 1:
|
|
199
|
-
_a.sent();
|
|
200
|
-
request = this.buildEndExecutionRequest();
|
|
201
|
-
return [2 /*return*/, this.backendProxy.endExecutionPromise(request)];
|
|
202
|
-
}
|
|
203
|
-
});
|
|
104
|
+
}
|
|
105
|
+
endExecution() {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
if (!this.isStartingExecution) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
yield this.footprintsProcess.submitQueuedFootprints(this.stateTracker.currentExecution);
|
|
111
|
+
const request = this.buildEndExecutionRequest();
|
|
112
|
+
return this.backendProxy.endExecutionPromise(request);
|
|
204
113
|
});
|
|
205
|
-
}
|
|
206
|
-
|
|
114
|
+
}
|
|
115
|
+
buildEndExecutionRequest() {
|
|
207
116
|
return {
|
|
208
117
|
isValidToken: true,
|
|
209
118
|
proxy: this._agentConfig.proxy.value,
|
|
@@ -215,56 +124,30 @@ var RemoteAgent = /** @class */ (function () {
|
|
|
215
124
|
environment: this._agentConfig.labId.value || this._agentConfig.buildSessionId.value,
|
|
216
125
|
executionIds: [this.executionId]
|
|
217
126
|
};
|
|
218
|
-
}
|
|
219
|
-
|
|
127
|
+
}
|
|
128
|
+
testStart(testName, testSuiteName, timestamp) {
|
|
220
129
|
this.stateTracker.setTestIdentifier(testName);
|
|
221
|
-
this.eventsProcess.enqueueEvent({ type: events_contracts_1.EventTypes.TestStart, testName
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
this.hitsCollector.globalCoverageObject = coverage;
|
|
229
|
-
this.eventsProcess.enqueueEvent({ type: events_contracts_1.EventTypes.TestEnd, testName: testName, suite: testSuiteName, duration: duration, result: result, executionId: this.executionId, localTime: timestamp });
|
|
230
|
-
return [4 /*yield*/, this.footprintsProcess.enqueueCurrentFootprints(this.getExecutionData(), testName)];
|
|
231
|
-
case 1:
|
|
232
|
-
_a.sent();
|
|
233
|
-
return [2 /*return*/];
|
|
234
|
-
}
|
|
235
|
-
});
|
|
130
|
+
this.eventsProcess.enqueueEvent({ type: events_contracts_1.EventTypes.TestStart, testName, suite: testSuiteName, executionId: this.executionId, localTime: timestamp });
|
|
131
|
+
}
|
|
132
|
+
testEnd(testName, testSuiteName, duration, result, coverage, timestamp) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
this.hitsCollector.globalCoverageObject = coverage;
|
|
135
|
+
this.eventsProcess.enqueueEvent({ type: events_contracts_1.EventTypes.TestEnd, testName, suite: testSuiteName, duration, result, executionId: this.executionId, localTime: timestamp });
|
|
136
|
+
yield this.footprintsProcess.enqueueCurrentFootprints(this.getExecutionData(), testName);
|
|
236
137
|
});
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
case 0: return [4 /*yield*/, this.getSlMapping(bsid)];
|
|
248
|
-
case 1:
|
|
249
|
-
mapping = _a.sent();
|
|
250
|
-
this.hitsConverter.slMapping = __assign(__assign({}, this.hitsConverter.getSlMapping()), mapping);
|
|
251
|
-
return [2 /*return*/];
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
}); }))];
|
|
255
|
-
case 1:
|
|
256
|
-
_a.sent();
|
|
257
|
-
this.hitsCollector.globalCoverageObject = coverage.coverage;
|
|
258
|
-
this.eventsProcess.enqueueEvent({ type: events_contracts_1.EventTypes.TestEnd, testName: testName, suite: testSuiteName, duration: duration, result: result, executionId: this.executionId, localTime: timestamp });
|
|
259
|
-
return [4 /*yield*/, this.footprintsProcess.enqueueCurrentFootprints(this.getExecutionData(), testName)];
|
|
260
|
-
case 2:
|
|
261
|
-
_a.sent();
|
|
262
|
-
return [2 /*return*/];
|
|
263
|
-
}
|
|
264
|
-
});
|
|
138
|
+
}
|
|
139
|
+
integTestEnd(testName, testSuiteName, duration, result, coverage, timestamp) {
|
|
140
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
141
|
+
yield Promise.all(coverage.bsids.map((bsid) => __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
const mapping = yield this.getSlMapping(bsid);
|
|
143
|
+
this.hitsConverter.slMapping = Object.assign(Object.assign({}, this.hitsConverter.getSlMapping()), mapping);
|
|
144
|
+
})));
|
|
145
|
+
this.hitsCollector.globalCoverageObject = coverage.coverage;
|
|
146
|
+
this.eventsProcess.enqueueEvent({ type: events_contracts_1.EventTypes.TestEnd, testName, suite: testSuiteName, duration, result, executionId: this.executionId, localTime: timestamp });
|
|
147
|
+
yield this.footprintsProcess.enqueueCurrentFootprints(this.getExecutionData(), testName);
|
|
265
148
|
});
|
|
266
|
-
}
|
|
267
|
-
|
|
149
|
+
}
|
|
150
|
+
getExecutionData() {
|
|
268
151
|
return {
|
|
269
152
|
executionId: this.executionId,
|
|
270
153
|
buildSessionId: this.agentConfig.buildSessionId.value,
|
|
@@ -274,25 +157,16 @@ var RemoteAgent = /** @class */ (function () {
|
|
|
274
157
|
buildName: this.agentConfig.build.value,
|
|
275
158
|
status: state_tracker_1.StateTracker.EXECUTION_STATUS_CREATED
|
|
276
159
|
};
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
},
|
|
289
|
-
set: function (value) {
|
|
290
|
-
this._isStartingExecution = value;
|
|
291
|
-
},
|
|
292
|
-
enumerable: false,
|
|
293
|
-
configurable: true
|
|
294
|
-
});
|
|
295
|
-
return RemoteAgent;
|
|
296
|
-
}());
|
|
160
|
+
}
|
|
161
|
+
get agentConfig() {
|
|
162
|
+
return this._agentConfig;
|
|
163
|
+
}
|
|
164
|
+
get isStartingExecution() {
|
|
165
|
+
return this._isStartingExecution;
|
|
166
|
+
}
|
|
167
|
+
set isStartingExecution(value) {
|
|
168
|
+
this._isStartingExecution = value;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
297
171
|
exports.RemoteAgent = RemoteAgent;
|
|
298
172
|
//# sourceMappingURL=remote-agent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-agent.js","sourceRoot":"","sources":["../../test-listener/remote-agent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remote-agent.js","sourceRoot":"","sources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CAAC;KAAA;IAEM,gBAAgB;QACnB,OAAO;YACH,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,cAAc,EAAE,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,KAAK;YACrD,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,KAAK;YAC3C,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK;YACvC,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK;YACzC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK;YACvC,MAAM,EAAE,4BAAY,CAAC,wBAAwB;SAChD,CAAC;IACN,CAAC;IAED,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAED,IAAW,mBAAmB;QAC1B,OAAO,IAAI,CAAC,oBAAoB,CAAC;IACrC,CAAC;IACD,IAAW,mBAAmB,CAAC,KAAc;QACzC,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC;IACtC,CAAC;CACJ;AA/JD,kCA+JC"}
|
|
@@ -1,35 +1,18 @@
|
|
|
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.AppNameResolver = void 0;
|
|
19
|
-
|
|
4
|
+
const ArgumentResolver_1 = require("./ArgumentResolver");
|
|
20
5
|
/**
|
|
21
6
|
* Created by nadav on 15/03/2017.
|
|
22
7
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return _super.call(this, userMessageHelper, 'appName') || this;
|
|
8
|
+
class AppNameResolver extends ArgumentResolver_1.ArgumentResolver {
|
|
9
|
+
constructor(userMessageHelper) {
|
|
10
|
+
super(userMessageHelper, 'appName');
|
|
27
11
|
}
|
|
28
|
-
|
|
29
|
-
|
|
12
|
+
resolve(argument) {
|
|
13
|
+
const name = super.resolve(argument, null, 'SL_APP_NAME');
|
|
30
14
|
return name;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
}(ArgumentResolver_1.ArgumentResolver));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
34
17
|
exports.AppNameResolver = AppNameResolver;
|
|
35
18
|
//# sourceMappingURL=AppNameResolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppNameResolver.js","sourceRoot":"","sources":["../../../test-listener/resolvers/AppNameResolver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppNameResolver.js","sourceRoot":"","sources":["../../../test-listener/resolvers/AppNameResolver.ts"],"names":[],"mappings":";;;AAAA,yDAAoD;AAEpD;;GAEG;AAEH,MAAa,eAAgB,SAAQ,mCAAgB;IACjD,YAAY,iBAAoC;QAC5C,KAAK,CAAC,iBAAiB,EAAE,SAAS,CAAC,CAAC;IACxC,CAAC;IAEM,OAAO,CAAC,QAAgB;QAC3B,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAC,IAAI,EAAC,aAAa,CAAC,CAAC;QACxD,OAAO,IAAI,CAAC;IAChB,CAAC;CAEJ;AAVD,0CAUC"}
|
|
@@ -4,15 +4,15 @@ exports.ArgumentResolver = void 0;
|
|
|
4
4
|
/**
|
|
5
5
|
* Created by nadav on 12/03/2017.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
const fs = require("fs");
|
|
8
|
+
const path_1 = require("path");
|
|
9
|
+
class ArgumentResolver {
|
|
10
|
+
constructor(userMessageHelper, argumentName) {
|
|
11
11
|
this.userMessageHelper = userMessageHelper;
|
|
12
12
|
this.argumentName = argumentName;
|
|
13
13
|
this.userMessageHelper = userMessageHelper;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
resolve(argument, filePath, environmentVariableName) {
|
|
16
16
|
if (argument) {
|
|
17
17
|
return argument;
|
|
18
18
|
}
|
|
@@ -29,7 +29,7 @@ var ArgumentResolver = /** @class */ (function () {
|
|
|
29
29
|
this.userMessageHelper.println('Argument \'' + this.argumentName + '\' resolved from environment variable (\'' + environmentVariableName + '\'). Value: ' + argument);
|
|
30
30
|
return argument;
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
const fileEnvVariable = environmentVariableName + '_FILE';
|
|
33
33
|
filePath = process.env[fileEnvVariable];
|
|
34
34
|
argument = this.tryGetValueFromFile(filePath);
|
|
35
35
|
if (argument) {
|
|
@@ -39,15 +39,15 @@ var ArgumentResolver = /** @class */ (function () {
|
|
|
39
39
|
}
|
|
40
40
|
this.userMessageHelper.println('Argument \'' + this.argumentName + '\' could not be resolved');
|
|
41
41
|
return null;
|
|
42
|
-
}
|
|
43
|
-
|
|
42
|
+
}
|
|
43
|
+
tryGetValueFromFile(argumentFile) {
|
|
44
44
|
try {
|
|
45
45
|
console.log('1' + argumentFile);
|
|
46
46
|
if (argumentFile) {
|
|
47
47
|
console.log('2' + argumentFile);
|
|
48
48
|
if (fs.existsSync(argumentFile)) {
|
|
49
49
|
console.log('4' + argumentFile);
|
|
50
|
-
|
|
50
|
+
const contents = fs.readFileSync(argumentFile, 'utf8');
|
|
51
51
|
return contents;
|
|
52
52
|
}
|
|
53
53
|
this.userMessageHelper.printError('The provided file \'' + (0, path_1.resolve)(argumentFile) + '\' does not exists.');
|
|
@@ -58,8 +58,7 @@ var ArgumentResolver = /** @class */ (function () {
|
|
|
58
58
|
}
|
|
59
59
|
console.log('3' + argumentFile);
|
|
60
60
|
return null;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
}());
|
|
61
|
+
}
|
|
62
|
+
}
|
|
64
63
|
exports.ArgumentResolver = ArgumentResolver;
|
|
65
64
|
//# sourceMappingURL=ArgumentResolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArgumentResolver.js","sourceRoot":"","sources":["../../../test-listener/resolvers/ArgumentResolver.ts"],"names":[],"mappings":";;;AACA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"ArgumentResolver.js","sourceRoot":"","sources":["../../../test-listener/resolvers/ArgumentResolver.ts"],"names":[],"mappings":";;;AACA;;GAEG;AACH,yBAAyB;AACzB,+BAA+C;AAE/C,MAAa,gBAAgB;IAEzB,YAAsB,iBAAoC,EAAU,YAAoB;QAAlE,sBAAiB,GAAjB,iBAAiB,CAAmB;QAAU,iBAAY,GAAZ,YAAY,CAAQ;QACpF,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,CAAC;IAEM,OAAO,CAAC,QAAgB,EAAE,QAAgB,EAAE,uBAA+B;QAC9E,IAAI,QAAQ,EAAE;YACV,OAAO,QAAQ,CAAC;SACnB;QAED,IAAI,QAAQ,EAAE;YACV,QAAQ,GAAG,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;YAC9C,IAAI,QAAQ,EACZ;gBACI,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,aAAa,GAAC,IAAI,CAAC,YAAY,GAAC,gCAAgC,GAAG,QAAQ,CAAC,CAAC;gBAC5G,OAAO,QAAQ,CAAC;aACnB;SACJ;QAED,IAAI,OAA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ACnB;gBACD,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,sBAAsB,GAAG,IAAA,cAAc,EAAC,YAAY,CAAC,GAAG,qBAAqB,CAAC,CAAC;aACpH;SACJ;QAAC,OAAO,CAAC,EAAE;YACR,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,kCAAkC,GAAG,IAAA,cAAc,EAAC,YAAY,CAAC,GAAG,aAAa,EAAE,CAAC,CAAC,CAAC;SAC3H;QACD,OAAO,CAAC,GAAG,CAAC,GAAG,GAAE,YAAY,CAAC,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA9DD,4CA8DC"}
|
|
@@ -1,34 +1,17 @@
|
|
|
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.BuildResolver = void 0;
|
|
19
|
-
|
|
4
|
+
const ArgumentResolver_1 = require("./ArgumentResolver");
|
|
20
5
|
/**
|
|
21
6
|
* Created by nadav on 15/03/2017.
|
|
22
7
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return _super.call(this, userMessageHelper, 'build') || this;
|
|
8
|
+
class BuildResolver extends ArgumentResolver_1.ArgumentResolver {
|
|
9
|
+
constructor(userMessageHelper) {
|
|
10
|
+
super(userMessageHelper, 'build');
|
|
27
11
|
}
|
|
28
|
-
|
|
29
|
-
return
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
}(ArgumentResolver_1.ArgumentResolver));
|
|
12
|
+
resolve(argument) {
|
|
13
|
+
return super.resolve(argument, null, 'SL_BUILD');
|
|
14
|
+
}
|
|
15
|
+
}
|
|
33
16
|
exports.BuildResolver = BuildResolver;
|
|
34
17
|
//# sourceMappingURL=BuildResolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuildResolver.js","sourceRoot":"","sources":["../../../test-listener/resolvers/BuildResolver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BuildResolver.js","sourceRoot":"","sources":["../../../test-listener/resolvers/BuildResolver.ts"],"names":[],"mappings":";;;AAAA,yDAAoD;AAEpD;;GAEG;AAEH,MAAa,aAAc,SAAQ,mCAAgB;IAC/C,YAAY,iBAAoC;QAC5C,KAAK,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;IAEM,OAAO,CAAC,QAAgB;QAC3B,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAC,IAAI,EAAC,UAAU,CAAC,CAAC;IACnD,CAAC;CAEJ;AATD,sCASC"}
|
|
@@ -1,34 +1,17 @@
|
|
|
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.BuildSessionIdFileResolver = void 0;
|
|
19
|
-
|
|
4
|
+
const ArgumentResolver_1 = require("./ArgumentResolver");
|
|
20
5
|
/**
|
|
21
6
|
* Created by nadav on 15/03/2017.
|
|
22
7
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return _super.call(this, userMessageHelper, 'buildSessionIdFile') || this;
|
|
8
|
+
class BuildSessionIdFileResolver extends ArgumentResolver_1.ArgumentResolver {
|
|
9
|
+
constructor(userMessageHelper) {
|
|
10
|
+
super(userMessageHelper, 'buildSessionIdFile');
|
|
27
11
|
}
|
|
28
|
-
|
|
29
|
-
return
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
}(ArgumentResolver_1.ArgumentResolver));
|
|
12
|
+
resolve(argument) {
|
|
13
|
+
return super.resolve(argument, null, 'SL_BUILD_SESSION_ID_FILE');
|
|
14
|
+
}
|
|
15
|
+
}
|
|
33
16
|
exports.BuildSessionIdFileResolver = BuildSessionIdFileResolver;
|
|
34
17
|
//# sourceMappingURL=BuildSessionIdFileResolver.js.map
|