slnodejs 6.1.1162 → 6.2.1
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/README.md +1 -1
- package/browser-agent/dist/browser-agent-all.js +16 -7
- package/browser-agent/dist/browser-agent-all.min.js +2 -2
- package/package.json +5 -3
- package/tsOutputs/build-scanner/js_diff/dry-run-files-mapping.js +8 -2
- package/tsOutputs/build-scanner/js_diff/dry-run-files-mapping.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/files-mapping.js +9 -2
- package/tsOutputs/build-scanner/js_diff/files-mapping.js.map +1 -1
- package/tsOutputs/cli-parse/cli.js +123 -333
- package/tsOutputs/cli-parse/cli.js.map +1 -1
- package/tsOutputs/cli-parse/config/config-resolver.js +175 -0
- package/tsOutputs/cli-parse/config/config-resolver.js.map +1 -0
- package/tsOutputs/cli-parse/config/config-store.js +40 -0
- package/tsOutputs/cli-parse/config/config-store.js.map +1 -0
- package/tsOutputs/cli-parse/config/create-options-from-keys.js +161 -0
- package/tsOutputs/cli-parse/config/create-options-from-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/common-keys.js +183 -0
- package/tsOutputs/cli-parse/config/keys/common-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/component-management-commands-keys.js +21 -0
- package/tsOutputs/cli-parse/config/keys/component-management-commands-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/config-command-keys.js +16 -0
- package/tsOutputs/cli-parse/config/keys/config-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/dry-run-command-keys.js +59 -0
- package/tsOutputs/cli-parse/config/keys/dry-run-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/end-execution-command-keys.js +9 -0
- package/tsOutputs/cli-parse/config/keys/end-execution-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/instrument-command-keys.js +146 -0
- package/tsOutputs/cli-parse/config/keys/instrument-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/nyc-report-command-keys.js +11 -0
- package/tsOutputs/cli-parse/config/keys/nyc-report-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/pr-config-command-keys.js +32 -0
- package/tsOutputs/cli-parse/config/keys/pr-config-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/scan-command-keys.js +236 -0
- package/tsOutputs/cli-parse/config/keys/scan-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/scanned-command-keys.js +16 -0
- package/tsOutputs/cli-parse/config/keys/scanned-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/start-execution-command-keys.js +9 -0
- package/tsOutputs/cli-parse/config/keys/start-execution-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/test-listener-commands-keys.js +86 -0
- package/tsOutputs/cli-parse/config/keys/test-listener-commands-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/upload-reports-command-keys.js +38 -0
- package/tsOutputs/cli-parse/config/keys/upload-reports-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/migration/agent-config-bridge.js +44 -0
- package/tsOutputs/cli-parse/config/migration/agent-config-bridge.js.map +1 -0
- package/tsOutputs/cli-parse/config/migration/legacy-adapters.js +157 -0
- package/tsOutputs/cli-parse/config/migration/legacy-adapters.js.map +1 -0
- package/tsOutputs/cli-parse/config/schema.js +63 -0
- package/tsOutputs/cli-parse/config/schema.js.map +1 -0
- package/tsOutputs/cli-parse/config/source-adapters/base-source-adapter.js +53 -0
- package/tsOutputs/cli-parse/config/source-adapters/base-source-adapter.js.map +1 -0
- package/tsOutputs/cli-parse/config/source-adapters/cli-source-adapter.js +27 -0
- package/tsOutputs/cli-parse/config/source-adapters/cli-source-adapter.js.map +1 -0
- package/tsOutputs/cli-parse/config/source-adapters/env-source-adapter.js +27 -0
- package/tsOutputs/cli-parse/config/source-adapters/env-source-adapter.js.map +1 -0
- package/tsOutputs/cli-parse/config/source-adapters/json-file-source-adapter.js +33 -0
- package/tsOutputs/cli-parse/config/source-adapters/json-file-source-adapter.js.map +1 -0
- package/tsOutputs/cli-parse/config/source-adapters/remote-source-adapter.js +27 -0
- package/tsOutputs/cli-parse/config/source-adapters/remote-source-adapter.js.map +1 -0
- package/tsOutputs/cli-parse/config/transformers.js +13 -0
- package/tsOutputs/cli-parse/config/transformers.js.map +1 -0
- package/tsOutputs/cli-parse/config/validation-error.js +40 -0
- package/tsOutputs/cli-parse/config/validation-error.js.map +1 -0
- package/tsOutputs/cli-parse/contracts.d.ts +6 -1
- package/tsOutputs/cli-parse/contracts.js +5 -0
- package/tsOutputs/cli-parse/contracts.js.map +1 -1
- package/tsOutputs/cli-parse/custom-commander.js +2 -18
- package/tsOutputs/cli-parse/custom-commander.js.map +1 -1
- package/tsOutputs/cli-parse/executors/base-executor.js +117 -117
- package/tsOutputs/cli-parse/executors/base-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/build-end-executor.js +22 -24
- package/tsOutputs/cli-parse/executors/build-end-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/build-executor.js +73 -251
- package/tsOutputs/cli-parse/executors/build-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/config-executor.js +21 -19
- package/tsOutputs/cli-parse/executors/config-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js +18 -58
- package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/end-execution-executor.js +17 -14
- package/tsOutputs/cli-parse/executors/end-execution-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/instrument-executor.js +24 -93
- package/tsOutputs/cli-parse/executors/instrument-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/integration-build-components-executor.js +13 -7
- package/tsOutputs/cli-parse/executors/integration-build-components-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/integration-build-delete-components-executor.js +2 -3
- 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 +5 -2
- package/tsOutputs/cli-parse/executors/integration-build-update-components-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/mocha-executor.js +25 -6
- package/tsOutputs/cli-parse/executors/mocha-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/nyc-report-executor.js +9 -12
- package/tsOutputs/cli-parse/executors/nyc-report-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/pr-config-executor.js +17 -6
- package/tsOutputs/cli-parse/executors/pr-config-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/run-executor.js +15 -15
- package/tsOutputs/cli-parse/executors/run-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/start-execution-executor.js +21 -18
- package/tsOutputs/cli-parse/executors/start-execution-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/test-executions-executor.js +2 -2
- package/tsOutputs/cli-parse/executors/test-executions-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/test-listener-executor.js +29 -40
- package/tsOutputs/cli-parse/executors/test-listener-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/upload-report-executor.js +28 -22
- package/tsOutputs/cli-parse/executors/upload-report-executor.js.map +1 -1
- package/tsOutputs/common/config-process/index.js +3 -3
- package/tsOutputs/common/config-process/index.js.map +1 -1
- package/tsOutputs/common/constants/sl-env-vars.d.ts +2 -0
- package/tsOutputs/common/constants/sl-env-vars.js +4 -0
- package/tsOutputs/common/constants/sl-env-vars.js.map +1 -1
- package/tsOutputs/common/http/backend-proxy.js +2 -2
- package/tsOutputs/common/http/backend-proxy.js.map +1 -1
- package/tsOutputs/common/http/contracts.d.ts +5 -2
- package/tsOutputs/common/http/contracts.js.map +1 -1
- package/tsOutputs/common/ignored-files-handler.d.ts +1 -1
- package/tsOutputs/common/ignored-files-handler.js +6 -1
- package/tsOutputs/common/ignored-files-handler.js.map +1 -1
- package/tsOutputs/common/utils/test-runner-build-session-data-builder.d.ts +2 -2
- package/tsOutputs/common/utils/test-runner-build-session-data-builder.js.map +1 -1
- package/tsOutputs/messages/message-keys.generated.js +1 -1
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.scanCommandKeys = exports.commonScanKeys = void 0;
|
|
4
|
+
const schema_1 = require("../schema");
|
|
5
|
+
const common_keys_1 = require("./common-keys");
|
|
6
|
+
const instrument_command_keys_1 = require("./instrument-command-keys");
|
|
7
|
+
/**
|
|
8
|
+
* Shared with dryRun. Contains instrument keys.
|
|
9
|
+
*/
|
|
10
|
+
exports.commonScanKeys = Object.assign(Object.assign(Object.assign(Object.assign({}, instrument_command_keys_1.commonInstrumentKeys), { scm: (0, schema_1.stringKey)({
|
|
11
|
+
default: 'none',
|
|
12
|
+
description: "The Source Control Management used (currently only 'git' is supported)",
|
|
13
|
+
cli: { names: ['scmType', 'scm'], commanderSkipDefaultValue: true },
|
|
14
|
+
}) }), common_keys_1.useBranchCoverage), { excludedPaths: (0, schema_1.stringArrayKey)({
|
|
15
|
+
description: "Comma-separated list of excluded paths glob strings, in the form of 'public/**/*.js,files/**/*.js'",
|
|
16
|
+
cli: {
|
|
17
|
+
names: ['excludeFiles', 'excludedPaths'],
|
|
18
|
+
commanderLowercaseKey: true,
|
|
19
|
+
},
|
|
20
|
+
}), instrumentForBrowsers: (0, schema_1.booleanKey)({
|
|
21
|
+
default: false,
|
|
22
|
+
description: 'Use this in order to instrument the javascript for working with the browser test listener.',
|
|
23
|
+
cli: { commanderSkipPlaceholder: true },
|
|
24
|
+
}), instrumentationOnly: (0, schema_1.booleanKey)({
|
|
25
|
+
default: false,
|
|
26
|
+
description: "When provided with 'instrumentForBrowsers', prevents a new build from being reported to Sealights.",
|
|
27
|
+
cli: { commanderSkipPlaceholder: true },
|
|
28
|
+
}), sourceHash: (0, schema_1.booleanKey)({
|
|
29
|
+
description: 'Enable generation of method hash from source files instead of generated code.',
|
|
30
|
+
cli: { commanderSkipPlaceholder: true },
|
|
31
|
+
remote: {},
|
|
32
|
+
}), excludeSourceMapFiles: (0, schema_1.enumKey)({
|
|
33
|
+
description: "Define how source maps will be processed. 'skipCopy' source maps will be copied to 'output' during the instrumentation. 'skipAndDelete' source files also will be deleted from 'workspace' also. 'none' - source maps will be copied as is. By default - 'skipCopy'. When not provider - 'none'.",
|
|
34
|
+
cli: {},
|
|
35
|
+
}), es6Classes: (0, schema_1.booleanKey)({
|
|
36
|
+
description: 'Use adjustments for esClasses and update uniqueIds during the scan. Use it when you scan ts classes that later transpiled to es6 classes.',
|
|
37
|
+
cli: { commanderOptionalPlaceholder: true },
|
|
38
|
+
}), enrichPrivateMethods: (0, schema_1.booleanKey)({
|
|
39
|
+
description: 'Use adjustments for esClasses during the scan. Use it when you need to enrich methods with accessibility modifier.',
|
|
40
|
+
cli: { commanderOptionalPlaceholder: true },
|
|
41
|
+
}), hashIncludeNestedMethods: (0, schema_1.booleanKey)({
|
|
42
|
+
description: 'Nested anonymous methods will have impact on method hash calculation. First activation of that flag can cause false-positive code modifications',
|
|
43
|
+
cli: { commanderOptionalPlaceholder: true },
|
|
44
|
+
remote: {},
|
|
45
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
46
|
+
}), excludeNestedMethods: (0, schema_1.booleanKey)({
|
|
47
|
+
description: 'Nested methods will be excluded from build mapping. First activation of that flag can cause false-positive code modifications',
|
|
48
|
+
cli: { commanderOptionalPlaceholder: true },
|
|
49
|
+
remote: {},
|
|
50
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
51
|
+
}), rawCoverage: (0, schema_1.booleanKey)({
|
|
52
|
+
default: false,
|
|
53
|
+
description: 'Generates and send to server metadata that allow to process coverage from v8 lightweight agent later.',
|
|
54
|
+
cli: { commanderOptionalPlaceholder: true },
|
|
55
|
+
remote: {},
|
|
56
|
+
sourcePriority: 'remoteFirst',
|
|
57
|
+
}), enrichByLinesMatch: (0, schema_1.booleanKey)({
|
|
58
|
+
description: 'Enable experimental algorithm of method matching',
|
|
59
|
+
cli: {
|
|
60
|
+
names: ['enrichByLinesMatch', 'l'],
|
|
61
|
+
commanderSkipPlaceholder: true,
|
|
62
|
+
},
|
|
63
|
+
}), newInstrumenter: (0, schema_1.booleanKey)({
|
|
64
|
+
default: true,
|
|
65
|
+
description: 'Use sl-istanbul-lib-instrument instead of istanbul-lib-instrument',
|
|
66
|
+
cli: { commanderSkipPlaceholder: true },
|
|
67
|
+
env: {},
|
|
68
|
+
remote: {},
|
|
69
|
+
}), partialBuildMapping: (0, schema_1.numberKey)({
|
|
70
|
+
description: 'When greater then 0 - build map will be splitted into chunks with defined number of files',
|
|
71
|
+
cli: {},
|
|
72
|
+
env: {},
|
|
73
|
+
remote: {},
|
|
74
|
+
sourcePriority: 'remoteFirst',
|
|
75
|
+
}), scanDotFolders: (0, schema_1.booleanKey)({
|
|
76
|
+
default: false,
|
|
77
|
+
description: 'When true scan and dryRun commands take into account libraries starting with a dot.',
|
|
78
|
+
cli: { commanderSkipPlaceholder: true },
|
|
79
|
+
env: {},
|
|
80
|
+
remote: {},
|
|
81
|
+
}), enableLineCoverage: (0, schema_1.booleanKey)({
|
|
82
|
+
default: false,
|
|
83
|
+
description: 'Enable line level mapping for coverage in this build',
|
|
84
|
+
cli: { commanderSkipPlaceholder: true },
|
|
85
|
+
env: {},
|
|
86
|
+
remote: {},
|
|
87
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
88
|
+
}), useRelativeSlMapping: (0, schema_1.booleanKey)({
|
|
89
|
+
default: false,
|
|
90
|
+
description: 'Key in sl-mapping will be relative to worspacepath, make sure to use when scanning an application which will be statically instruemented afterwards.',
|
|
91
|
+
cli: { commanderSkipPlaceholder: true },
|
|
92
|
+
env: {},
|
|
93
|
+
remote: {},
|
|
94
|
+
sourcePriority: 'remoteFirst',
|
|
95
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
96
|
+
}), embedCorrectUniqueId: (0, schema_1.booleanKey)({
|
|
97
|
+
default: false,
|
|
98
|
+
description: 'Embeds the uniqueId mapping in the instrumented files',
|
|
99
|
+
cli: { commanderSkipPlaceholder: true },
|
|
100
|
+
env: {},
|
|
101
|
+
remote: {},
|
|
102
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
103
|
+
}), skipInstrumentingFilesWithoutSourceMap: (0, schema_1.booleanKey)({
|
|
104
|
+
default: false,
|
|
105
|
+
description: 'Skip instrumenting files without source map, default is false',
|
|
106
|
+
cli: { commanderSkipPlaceholder: true },
|
|
107
|
+
env: {},
|
|
108
|
+
remote: {},
|
|
109
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
110
|
+
}), recognizeBabelCreateClass: (0, schema_1.booleanKey)({
|
|
111
|
+
default: false,
|
|
112
|
+
description: "Enables refined recognition for babel's _createClass calls, even with code minification",
|
|
113
|
+
cli: { commanderSkipPlaceholder: true },
|
|
114
|
+
env: {},
|
|
115
|
+
remote: {},
|
|
116
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
117
|
+
}), preferSourceMapFromFile: (0, schema_1.booleanKey)({
|
|
118
|
+
default: false,
|
|
119
|
+
description: 'When true, source maps from files take precedence before inline source maps',
|
|
120
|
+
cli: { commanderSkipPlaceholder: true },
|
|
121
|
+
env: {},
|
|
122
|
+
remote: {},
|
|
123
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
124
|
+
}), enrichByMethodRange: (0, schema_1.booleanKey)({
|
|
125
|
+
default: false,
|
|
126
|
+
description: 'When true, methods are matched based on the end positions being inside the original method range during enrichment. Implicitly sets recognizeBabelCreateClass on.',
|
|
127
|
+
cli: { commanderSkipPlaceholder: true },
|
|
128
|
+
env: {},
|
|
129
|
+
remote: {},
|
|
130
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
131
|
+
}), experimentalDeduplicateEnrichedMethodsWithOriginals: (0, schema_1.booleanKey)({
|
|
132
|
+
default: false,
|
|
133
|
+
description: 'Set to true to remove duplicated methods from the build map',
|
|
134
|
+
cli: { commanderSkipPlaceholder: true },
|
|
135
|
+
env: {},
|
|
136
|
+
remote: {},
|
|
137
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
138
|
+
}) });
|
|
139
|
+
/**
|
|
140
|
+
* Config keys for the `scan` / `build` CLI command.
|
|
141
|
+
*
|
|
142
|
+
* sourcePriority per key is set to match the current BuildExecutor.applyRemoteConfig() behavior:
|
|
143
|
+
* - 'remoteFirst': remote value always wins (e.g. removeSensitiveData, useBranchCoverage)
|
|
144
|
+
* - 'localFirst' (default): local (CLI/env) wins when set, remote is fallback
|
|
145
|
+
*/
|
|
146
|
+
exports.scanCommandKeys = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, common_keys_1.baseKeysWithAppBranchBuild), common_keys_1.buildSessionIdFileWithDefault), exports.commonScanKeys), instrument_command_keys_1.commonScanInstrumentKeys), { jobName: (0, schema_1.stringKey)({
|
|
147
|
+
description: 'The CI job name that triggered the build.',
|
|
148
|
+
cli: {},
|
|
149
|
+
}), logsUrl: (0, schema_1.stringKey)({
|
|
150
|
+
description: 'The logs url of the build.',
|
|
151
|
+
cli: {},
|
|
152
|
+
}), commit: (0, schema_1.stringKey)({
|
|
153
|
+
description: 'Commit ID, as provided by the SCM',
|
|
154
|
+
cli: {},
|
|
155
|
+
}), dependency: (0, schema_1.stringArrayKey)({
|
|
156
|
+
description: 'Project dependencies. Pattern should be a semicolon-separated AppName@Branch@Build list.',
|
|
157
|
+
cli: { commanderUseParser: true },
|
|
158
|
+
}), dependenciesFile: (0, schema_1.stringKey)({
|
|
159
|
+
description: 'A path to a json file that is in the following format: [{"appname":"","branch":"","build":"","buildSessionId":""},{...}]. Every entry may include appName+branch+build OR buildSessionID',
|
|
160
|
+
cli: { names: ['dependenciesFile', 'd'] },
|
|
161
|
+
}), recursive: (0, schema_1.booleanKey)({
|
|
162
|
+
default: true,
|
|
163
|
+
description: 'recursive',
|
|
164
|
+
cli: { commanderSkipPlaceholder: true },
|
|
165
|
+
}), scmProvider: (0, schema_1.stringKey)({
|
|
166
|
+
description: "The provider name of your Source Control Management (SCM) tool. Supported values are 'Github', 'Bitbucket' and 'Gitlab'. If not used, 'Github' is assumed.",
|
|
167
|
+
cli: {},
|
|
168
|
+
}), scmBaseUrl: (0, schema_1.stringKey)({
|
|
169
|
+
description: 'The URL to the repository which contains the code. If left blank, the url of the remote GIT origin is being used.',
|
|
170
|
+
cli: { names: ['repositoryUrl', 'scmBaseUrl'] },
|
|
171
|
+
}), scmVersion: (0, schema_1.stringKey)({
|
|
172
|
+
description: 'The version of your Source Control Management (SCM) tool. If left blank, cloud version is assumed. Otherwise, specify the version of your on-premise server.',
|
|
173
|
+
cli: {},
|
|
174
|
+
}), uniqueModuleId: (0, schema_1.stringKey)({
|
|
175
|
+
description: 'Unique module id, case-sensitive. This value should remain consistent between runs.',
|
|
176
|
+
cli: { names: ['moduleName', 'uniqueModuleId'] },
|
|
177
|
+
}), awsConfigure: (0, schema_1.booleanKey)({
|
|
178
|
+
default: false,
|
|
179
|
+
description: 'Creates sl-config file in each sub-directory of the workspace path. The file will contain the necessary Sealights configuration for the Node Lambda layer.',
|
|
180
|
+
sourcePriority: 'remoteFirst',
|
|
181
|
+
cli: { commanderSkipPlaceholder: true },
|
|
182
|
+
remote: {},
|
|
183
|
+
}), awsConfigKeysToIgnore: (0, schema_1.stringArrayKey)({
|
|
184
|
+
description: "Comma separated list of keys to ignore in the AWS configuration file. Supported values are: 'token', 'buildSessionId', 'collectorUrl', 'projectRoot', 'labId', 'commonSrcPrefix', 'slMapping', 'proxy', 'rawCoverage'.",
|
|
185
|
+
cli: {},
|
|
186
|
+
}), compressSlMapping: (0, schema_1.booleanKey)({
|
|
187
|
+
default: false,
|
|
188
|
+
description: 'Compress sl-mapping file to reduce the size of the file uploaded to the server',
|
|
189
|
+
cli: { commanderSkipPlaceholder: true },
|
|
190
|
+
env: {},
|
|
191
|
+
remote: {},
|
|
192
|
+
}), autoResolveProjectRoot: (0, schema_1.booleanKey)({
|
|
193
|
+
default: false,
|
|
194
|
+
description: 'Turns on auto resolve project root, when this feature is enabled additional data will be appended to the end of the scanned code, which will be used to resolve the project root when running with a test listener',
|
|
195
|
+
cli: {
|
|
196
|
+
commanderSkipPlaceholder: true,
|
|
197
|
+
},
|
|
198
|
+
env: {},
|
|
199
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
200
|
+
}), useModulePrefix: (0, schema_1.booleanKey)({
|
|
201
|
+
default: false,
|
|
202
|
+
description: 'Add uniqueModuleId as prefix (if exists) to uniqueId and files path',
|
|
203
|
+
cli: { commanderSkipPlaceholder: true },
|
|
204
|
+
}) }), common_keys_1.resolveWithoutHash), { useBabylon: (0, schema_1.booleanKey)({
|
|
205
|
+
default: true,
|
|
206
|
+
description: 'Use babylon for scanning files',
|
|
207
|
+
cli: { commanderUseParser: true, commanderOptionalPlaceholder: true },
|
|
208
|
+
}), sendContributors: (0, schema_1.booleanKey)({
|
|
209
|
+
default: true,
|
|
210
|
+
description: 'Send contributor details for advanced committer reports and features',
|
|
211
|
+
cli: { commanderUseParser: true, commanderOptionalPlaceholder: true },
|
|
212
|
+
}),
|
|
213
|
+
// Remote-only keys (no CLI option, set from remote config)
|
|
214
|
+
enableDiagnostic: (0, schema_1.booleanKey)({
|
|
215
|
+
default: false,
|
|
216
|
+
description: 'Enable diagnostic mode',
|
|
217
|
+
sourcePriority: 'remoteFirst',
|
|
218
|
+
remote: {},
|
|
219
|
+
}), experimentalSizeReduction: (0, schema_1.booleanKey)({
|
|
220
|
+
default: false,
|
|
221
|
+
description: 'Enable experimental size reduction',
|
|
222
|
+
sourcePriority: 'remoteFirst',
|
|
223
|
+
env: {},
|
|
224
|
+
remote: {},
|
|
225
|
+
}), additionalGitDetails: (0, schema_1.booleanKey)({
|
|
226
|
+
default: false,
|
|
227
|
+
description: 'Include additional git details',
|
|
228
|
+
sourcePriority: 'remoteFirst',
|
|
229
|
+
remote: {},
|
|
230
|
+
}),
|
|
231
|
+
// todo overwritten from instrument - should be aligned
|
|
232
|
+
reduceInstrumentedFileSize: (0, schema_1.booleanKey)({
|
|
233
|
+
description: 'Optimize instrumented file size',
|
|
234
|
+
remote: {},
|
|
235
|
+
}) });
|
|
236
|
+
//# sourceMappingURL=scan-command-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scan-command-keys.js","sourceRoot":"","sources":["../../../../cli-parse/config/keys/scan-command-keys.ts"],"names":[],"mappings":";;;AAAA,sCAOmB;AACnB,+CAKuB;AAEvB,uEAGmC;AAEnC;;GAEG;AACU,QAAA,cAAc,+DACtB,8CAAoB,KACvB,GAAG,EAAE,IAAA,kBAAS,EAAC;QACb,OAAO,EAAE,MAAM;QACf,WAAW,EACT,wEAAwE;QAC1E,GAAG,EAAE,EAAE,KAAK,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC,EAAE,yBAAyB,EAAE,IAAI,EAAE;KACpE,CAAC,KACC,+BAAiB,KACpB,aAAa,EAAE,IAAA,uBAAc,EAAC;QAC5B,WAAW,EACT,oGAAoG;QACtG,GAAG,EAAE;YACH,KAAK,EAAE,CAAC,cAAc,EAAE,eAAe,CAAC;YACxC,qBAAqB,EAAE,IAAI;SAC5B;KACF,CAAC,EACF,qBAAqB,EAAE,IAAA,mBAAU,EAAC;QAChC,OAAO,EAAE,KAAK;QACd,WAAW,EACT,4FAA4F;QAC9F,GAAG,EAAE,EAAE,wBAAwB,EAAE,IAAI,EAAE;KACxC,CAAC,EACF,mBAAmB,EAAE,IAAA,mBAAU,EAAC;QAC9B,OAAO,EAAE,KAAK;QACd,WAAW,EACT,oGAAoG;QACtG,GAAG,EAAE,EAAE,wBAAwB,EAAE,IAAI,EAAE;KACxC,CAAC,EACF,UAAU,EAAE,IAAA,mBAAU,EAAC;QACrB,WAAW,EACT,+EAA+E;QACjF,GAAG,EAAE,EAAE,wBAAwB,EAAE,IAAI,EAAE;QACvC,MAAM,EAAE,EAAE;KACX,CAAC,EACF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E,IAAA,mBAAU,EAAC;QACpC,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,oCAAoC;QACjD,cAAc,EAAE,aAAa;QAC7B,GAAG,EAAE,EAAE;QACP,MAAM,EAAE,EAAE;KACX,CAAC,EACF,oBAAoB,EAAE,IAAA,mBAAU,EAAC;QAC/B,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,gCAAgC;QAC7C,cAAc,EAAE,aAAa;QAC7B,MAAM,EAAE,EAAE;KACX,CAAC;IAEF,uDAAuD;IACvD,0BAA0B,EAAE,IAAA,mBAAU,EAAC;QACrC,WAAW,EAAE,iCAAiC;QAC9C,MAAM,EAAE,EAAE;KACX,CAAC,IACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.scannedCommandKeys = void 0;
|
|
4
|
+
const schema_1 = require("../schema");
|
|
5
|
+
const common_keys_1 = require("./common-keys");
|
|
6
|
+
/**
|
|
7
|
+
* Config keys for the `scanned` CLI command.
|
|
8
|
+
*/
|
|
9
|
+
exports.scannedCommandKeys = Object.assign(Object.assign({}, common_keys_1.baseKeys), { ok: (0, schema_1.booleanKey)({
|
|
10
|
+
description: 'build finished successfully',
|
|
11
|
+
cli: { commanderSkipPlaceholder: true },
|
|
12
|
+
}), failed: (0, schema_1.booleanKey)({
|
|
13
|
+
description: 'build finished not successfully',
|
|
14
|
+
cli: { commanderSkipPlaceholder: true },
|
|
15
|
+
}) });
|
|
16
|
+
//# sourceMappingURL=scanned-command-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scanned-command-keys.js","sourceRoot":"","sources":["../../../../cli-parse/config/keys/scanned-command-keys.ts"],"names":[],"mappings":";;;AAAA,sCAAoD;AACpD,+CAAyC;AAEzC;;GAEG;AACU,QAAA,kBAAkB,mCAC1B,sBAAQ,KAEX,EAAE,EAAE,IAAA,mBAAU,EAAC;QACb,WAAW,EAAE,6BAA6B;QAC1C,GAAG,EAAE,EAAE,wBAAwB,EAAE,IAAI,EAAE;KACxC,CAAC,EACF,MAAM,EAAE,IAAA,mBAAU,EAAC;QACjB,WAAW,EAAE,iCAAiC;QAC9C,GAAG,EAAE,EAAE,wBAAwB,EAAE,IAAI,EAAE;KACxC,CAAC,IACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.startExecutionCommandKeys = void 0;
|
|
4
|
+
const common_keys_1 = require("./common-keys");
|
|
5
|
+
/**
|
|
6
|
+
* Config keys for the `start` (startExecution) CLI command.
|
|
7
|
+
*/
|
|
8
|
+
exports.startExecutionCommandKeys = Object.assign(Object.assign(Object.assign(Object.assign({}, common_keys_1.baseKeysWithAppBranchBuild), common_keys_1.testStage), common_keys_1.labId), common_keys_1.testGroupId);
|
|
9
|
+
//# sourceMappingURL=start-execution-command-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start-execution-command-keys.js","sourceRoot":"","sources":["../../../../cli-parse/config/keys/start-execution-command-keys.ts"],"names":[],"mappings":";;;AACA,+CAKuB;AAEvB;;GAEG;AACU,QAAA,yBAAyB,+DACjC,wCAA0B,GAE1B,uBAAS,GACT,mBAAK,GACL,yBAAW,EACd"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runKeys = exports.mochaKeys = exports.commonTestListenerKeys = void 0;
|
|
4
|
+
const schema_1 = require("../schema");
|
|
5
|
+
const common_keys_1 = require("./common-keys");
|
|
6
|
+
const process_spawn_helper_1 = require("../../../common/utils/process-spawn-helper");
|
|
7
|
+
/**
|
|
8
|
+
* Shared keys for test-listener commands (mocha + run).
|
|
9
|
+
*
|
|
10
|
+
* Test-listener commands use `defaultSourcePriority: 'remoteFirst'` at resolve time,
|
|
11
|
+
* matching the current behavior where remote config is spread over mapped args.
|
|
12
|
+
*/
|
|
13
|
+
exports.commonTestListenerKeys = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, common_keys_1.baseKeysWithAppBranchBuild), common_keys_1.buildSessionIdFileWithDefault), common_keys_1.useBranchCoverage), {
|
|
14
|
+
// todo - use from common
|
|
15
|
+
testStage: (0, schema_1.stringKey)({
|
|
16
|
+
default: 'Unit Tests',
|
|
17
|
+
description: "The tests stage (e.g 'integration tests', 'regression'). The default will be 'Unit Tests'",
|
|
18
|
+
cli: { commanderLowercaseKey: true },
|
|
19
|
+
}) }), common_keys_1.labId), { useSlNode2: (0, schema_1.booleanKey)({
|
|
20
|
+
default: true,
|
|
21
|
+
description: "(Deprecated) this option isn't supported.",
|
|
22
|
+
cli: {
|
|
23
|
+
commanderUseParser: true,
|
|
24
|
+
commanderLowercaseKey: true,
|
|
25
|
+
commanderOptionalPlaceholder: true,
|
|
26
|
+
},
|
|
27
|
+
}), httpServerColoring: (0, schema_1.booleanKey)({
|
|
28
|
+
default: false,
|
|
29
|
+
description: 'Enable coloring for the server, meaning that the server can be colored by incoming requests and return the color on its responses',
|
|
30
|
+
cli: { commanderSkipPlaceholder: true },
|
|
31
|
+
}), httpClientColoring: (0, schema_1.booleanKey)({
|
|
32
|
+
default: false,
|
|
33
|
+
description: 'Enable coloring for the client, meaning that the client can be colored by responses from the server and send colors for outgoing requests',
|
|
34
|
+
cli: { commanderSkipPlaceholder: true },
|
|
35
|
+
}) }), common_keys_1.projectRoot), common_keys_1.es6Modules);
|
|
36
|
+
/**
|
|
37
|
+
* Config keys for the `mocha` CLI command.
|
|
38
|
+
*/
|
|
39
|
+
exports.mochaKeys = Object.assign(Object.assign(Object.assign(Object.assign({}, exports.commonTestListenerKeys), common_keys_1.testGroupId), common_keys_1.resolveWithoutHash), { enforceFullRun: (0, schema_1.booleanKey)({
|
|
40
|
+
default: false,
|
|
41
|
+
description: 'Overrides test selection configuration (deprecated, please use tiaDisabled instead).',
|
|
42
|
+
cli: { commanderSkipPlaceholder: true },
|
|
43
|
+
}), tiaDisabled: (0, schema_1.booleanKey)({
|
|
44
|
+
default: false,
|
|
45
|
+
description: 'Disregard TIA recommendations and run all tests',
|
|
46
|
+
cli: {
|
|
47
|
+
names: ['disableTia', 'tiaDisabled'],
|
|
48
|
+
commanderSkipPlaceholder: true,
|
|
49
|
+
},
|
|
50
|
+
}), testProjectId: (0, schema_1.stringKey)({
|
|
51
|
+
description: 'Test project ID differentiates between different test stages with the same test stage name of different teams/products/etc.',
|
|
52
|
+
cli: {},
|
|
53
|
+
env: {},
|
|
54
|
+
}), prID: (0, schema_1.stringKey)({
|
|
55
|
+
description: 'Identifies PR pipeline executions, allowing them to be distinguished from eachother and from other executions of the same test-stage.',
|
|
56
|
+
cli: {},
|
|
57
|
+
env: {},
|
|
58
|
+
}) });
|
|
59
|
+
/**
|
|
60
|
+
* Config keys for the `run` CLI command.
|
|
61
|
+
*/
|
|
62
|
+
exports.runKeys = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, exports.commonTestListenerKeys), { useInitialColor: (0, schema_1.booleanKey)({
|
|
63
|
+
default: false,
|
|
64
|
+
description: 'Run in generic mode for unsupported test frameworks. Default is false',
|
|
65
|
+
cli: { names: ['useinitialcolor'] },
|
|
66
|
+
}) }), common_keys_1.workspacePath), common_keys_1.collectorUrl), { libraries: (0, schema_1.stringKey)({
|
|
67
|
+
description: 'A list of node modules which should be included in the coverage (CSV format, for example: --libraries=@socket.io,agent-base,chokidar)',
|
|
68
|
+
cli: {},
|
|
69
|
+
}), omitFootprintsLeadingSlash: (0, schema_1.booleanKey)({
|
|
70
|
+
default: false,
|
|
71
|
+
description: 'Exclude starting slash in footprints path if present',
|
|
72
|
+
cli: { commanderSkipPlaceholder: true },
|
|
73
|
+
env: {},
|
|
74
|
+
}), forwardSignals: (0, schema_1.booleanKey)({
|
|
75
|
+
default: false,
|
|
76
|
+
description: 'Enable signal forwarding for graceful shutdown in containerized environments. When enabled, termination signals (SIGTERM, SIGINT, etc.) are properly forwarded to the child application process.',
|
|
77
|
+
cli: { commanderSkipPlaceholder: true },
|
|
78
|
+
env: {},
|
|
79
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
80
|
+
}), signalForwardingTimeout: (0, schema_1.numberKey)({
|
|
81
|
+
default: process_spawn_helper_1.ProcessSpawnHelper.DEFAULT_SIGNAL_FORWARDING_TIMEOUT_SECONDS,
|
|
82
|
+
description: `Timeout in seconds to wait for child process to exit gracefully after forwarding a signal. After this timeout, SIGKILL is sent. Default is ${process_spawn_helper_1.ProcessSpawnHelper.DEFAULT_SIGNAL_FORWARDING_TIMEOUT_SECONDS} seconds. Only applies when --forwardSignals is enabled.`,
|
|
83
|
+
cli: { commanderUseParser: true },
|
|
84
|
+
env: {},
|
|
85
|
+
}) });
|
|
86
|
+
//# sourceMappingURL=test-listener-commands-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-listener-commands-keys.js","sourceRoot":"","sources":["../../../../cli-parse/config/keys/test-listener-commands-keys.ts"],"names":[],"mappings":";;;AAAA,sCAA0E;AAC1E,+CAWuB;AACvB,qFAAgF;AAEhF;;;;;GAKG;AACU,QAAA,sBAAsB,uHAC9B,wCAA0B,GAC1B,2CAA6B,GAE7B,+BAAiB;IACpB,yBAAyB;IACzB,SAAS,EAAE,IAAA,kBAAS,EAAC;QACnB,OAAO,EAAE,YAAY;QACrB,WAAW,EACT,2FAA2F;QAC7F,GAAG,EAAE,EAAE,qBAAqB,EAAE,IAAI,EAAE;KACrC,CAAC,KAEC,mBAAK,KACR,UAAU,EAAE,IAAA,mBAAU,EAAC;QACrB,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,2CAA2C;QACxD,GAAG,EAAE;YACH,kBAAkB,EAAE,IAAI;YACxB,qBAAqB,EAAE,IAAI;YAC3B,4BAA4B,EAAE,IAAI;SACnC;KACF,CAAC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S,EAAE,IAAA,kBAAS,EAAC;QACnB,WAAW,EACT,uIAAuI;QACzI,GAAG,EAAE,EAAE;KACR,CAAC,EACF,0BAA0B,EAAE,IAAA,mBAAU,EAAC;QACrC,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,sDAAsD;QACnE,GAAG,EAAE,EAAE,wBAAwB,EAAE,IAAI,EAAE;QACvC,GAAG,EAAE,EAAE;KACR,CAAC,EACF,cAAc,EAAE,IAAA,mBAAU,EAAC;QACzB,OAAO,EAAE,KAAK;QACd,WAAW,EACT,kMAAkM;QACpM,GAAG,EAAE,EAAE,wBAAwB,EAAE,IAAI,EAAE;QACvC,GAAG,EAAE,EAAE;QACP,sCAAsC,EAAE,IAAI;KAC7C,CAAC,EACF,uBAAuB,EAAE,IAAA,kBAAS,EAAC;QACjC,OAAO,EAAE,yCAAkB,CAAC,yCAAyC;QACrE,WAAW,EAAE,8IAA8I,yCAAkB,CAAC,yCAAyC,0DAA0D;QACjR,GAAG,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE;QACjC,GAAG,EAAE,EAAE;KACR,CAAC,IACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.uploadReportsCommandKeys = void 0;
|
|
4
|
+
const schema_1 = require("../schema");
|
|
5
|
+
const common_keys_1 = require("./common-keys");
|
|
6
|
+
/**
|
|
7
|
+
* Config keys for the `uploadReports` CLI command.
|
|
8
|
+
*
|
|
9
|
+
* Uses extended base keys (with appName/branch/build) + default buildSessionIdFile.
|
|
10
|
+
*/
|
|
11
|
+
exports.uploadReportsCommandKeys = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, common_keys_1.baseKeysWithAppBranchBuild), common_keys_1.buildSessionIdFileWithDefault), common_keys_1.labId), { reportFile: (0, schema_1.stringArrayKey)({
|
|
12
|
+
default: [],
|
|
13
|
+
description: 'Report files. This argument can be declared multiple times in order to upload multiple files.',
|
|
14
|
+
cli: { names: ['file', 'reportFile'], commanderUseParser: true },
|
|
15
|
+
}), reportFilesFolder: (0, schema_1.stringArrayKey)({
|
|
16
|
+
default: [],
|
|
17
|
+
description: 'Folders that contains nothing but report files. All files in folder will be uploaded. This argument can be declared multiple times in order to upload multiple files from multiple folders.',
|
|
18
|
+
cli: {
|
|
19
|
+
names: ['filesFolder', 'reportFilesFolder'],
|
|
20
|
+
commanderUseParser: true,
|
|
21
|
+
},
|
|
22
|
+
}), type: (0, schema_1.stringKey)({
|
|
23
|
+
default: 'JUnitReport',
|
|
24
|
+
description: 'Type of test report. Default is JUnitReport',
|
|
25
|
+
cli: {},
|
|
26
|
+
}), source: (0, schema_1.stringKey)({
|
|
27
|
+
default: 'Mocha',
|
|
28
|
+
description: 'Source of test framework. Default is Mocha',
|
|
29
|
+
cli: {},
|
|
30
|
+
}), hasMoreRequests: (0, schema_1.booleanKey)({
|
|
31
|
+
default: true,
|
|
32
|
+
description: 'Flag indicating whether or not to stop execution after upload. Default is true',
|
|
33
|
+
cli: {
|
|
34
|
+
commanderUseParser: true,
|
|
35
|
+
commanderOptionalPlaceholder: true,
|
|
36
|
+
},
|
|
37
|
+
}) }), common_keys_1.testStage);
|
|
38
|
+
//# sourceMappingURL=upload-reports-command-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-reports-command-keys.js","sourceRoot":"","sources":["../../../../cli-parse/config/keys/upload-reports-command-keys.ts"],"names":[],"mappings":";;;AAAA,sCAA+E;AAC/E,+CAKuB;AAEvB;;;;GAIG;AACU,QAAA,wBAAwB,6EAChC,wCAA0B,GAC1B,2CAA6B,GAE7B,mBAAK,KACR,UAAU,EAAE,IAAA,uBAAc,EAAC;QACzB,OAAO,EAAE,EAAE;QACX,WAAW,EACT,+FAA+F;QACjG,GAAG,EAAE,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE,kBAAkB,EAAE,IAAI,EAAE;KACjE,CAAC,EACF,iBAAiB,EAAE,IAAA,uBAAc,EAAC;QAChC,OAAO,EAAE,EAAE;QACX,WAAW,EACT,6LAA6L;QAC/L,GAAG,EAAE;YACH,KAAK,EAAE,CAAC,aAAa,EAAE,mBAAmB,CAAC;YAC3C,kBAAkB,EAAE,IAAI;SACzB;KACF,CAAC,EACF,IAAI,EAAE,IAAA,kBAAS,EAAC;QACd,OAAO,EAAE,aAAa;QACtB,WAAW,EAAE,6CAA6C;QAC1D,GAAG,EAAE,EAAE;KACR,CAAC,EACF,MAAM,EAAE,IAAA,kBAAS,EAAC;QAChB,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,4CAA4C;QACzD,GAAG,EAAE,EAAE;KACR,CAAC,EACF,eAAe,EAAE,IAAA,mBAAU,EAAC;QAC1B,OAAO,EAAE,IAAI;QACb,WAAW,EACT,gFAAgF;QAClF,GAAG,EAAE;YACH,kBAAkB,EAAE,IAAI;YACxB,4BAA4B,EAAE,IAAI;SACnC;KACF,CAAC,KACC,uBAAS,EACZ"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @migration AgentConfig bridge.
|
|
4
|
+
*
|
|
5
|
+
* Converts ListenerCommandConfig (MochaCommandConfig | RunCommandConfig)
|
|
6
|
+
* to the legacy AgentConfig class used by the test-listener subsystem.
|
|
7
|
+
*
|
|
8
|
+
* Uses auto-matching (same-name keys map automatically) with an explicit
|
|
9
|
+
* fallback map for keys where names differ between the two types.
|
|
10
|
+
*
|
|
11
|
+
* Remove when AgentConfig is replaced by the config schema (future stage).
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.executorConfigToAgentConfig = void 0;
|
|
15
|
+
const config_1 = require("../../../common/config-process/config");
|
|
16
|
+
/**
|
|
17
|
+
* Only contains entries where AgentConfig key name differs from ListenerCommandConfig key name.
|
|
18
|
+
* Keys with the same name in both types are resolved automatically.
|
|
19
|
+
*/
|
|
20
|
+
const AGENT_CONFIG_TO_LISTENER_CONFIG = {
|
|
21
|
+
branchName: 'branch',
|
|
22
|
+
buildName: 'build',
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @migration Remove when AgentConfig is replaced by config schema.
|
|
26
|
+
*/
|
|
27
|
+
function executorConfigToAgentConfig(config, omitLabId = false) {
|
|
28
|
+
const agentConfig = new config_1.AgentConfig();
|
|
29
|
+
const agentConfigKeys = agentConfig.getLowerCaseToKeyMap();
|
|
30
|
+
Object.keys(config).forEach((inputKey) => {
|
|
31
|
+
var _a;
|
|
32
|
+
const agentConfigKey = (_a = AGENT_CONFIG_TO_LISTENER_CONFIG[inputKey]) !== null && _a !== void 0 ? _a : inputKey;
|
|
33
|
+
const property = agentConfigKeys[agentConfigKey.toLowerCase()];
|
|
34
|
+
if (property) {
|
|
35
|
+
agentConfig[property].value = config[inputKey];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
if (omitLabId) {
|
|
39
|
+
agentConfig.labId.value = undefined;
|
|
40
|
+
}
|
|
41
|
+
return agentConfig;
|
|
42
|
+
}
|
|
43
|
+
exports.executorConfigToAgentConfig = executorConfigToAgentConfig;
|
|
44
|
+
//# sourceMappingURL=agent-config-bridge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-config-bridge.js","sourceRoot":"","sources":["../../../../cli-parse/config/migration/agent-config-bridge.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,kEAAoE;AAoBpE;;;GAGG;AACH,MAAM,+BAA+B,GAEjC;IACF,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE,OAAO;CACnB,CAAC;AAEF;;GAEG;AACH,SAAgB,2BAA2B,CACzC,MAAiD,EACjD,YAAqB,KAAK;IAE1B,MAAM,WAAW,GAAG,IAAI,oBAAW,EAAE,CAAC;IACtC,MAAM,eAAe,GAAG,WAAW,CAAC,oBAAoB,EAAE,CAAC;IAC3D,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;;QACvC,MAAM,cAAc,GAClB,MAAC,+BAA+B,CAAC,QAAQ,CAAY,mCAAI,QAAQ,CAAC;QACpE,MAAM,QAAQ,GAAG,eAAe,CAAC,cAAc,CAAC,WAAW,EAAE,CAAC,CAAC;QAC/D,IAAI,QAAQ,EAAE;YACZ,WAAW,CAAC,QAAQ,CAAC,CAAC,KAAK,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;SAChD;IACH,CAAC,CAAC,CAAC;IACH,IAAI,SAAS,EAAE;QACb,WAAW,CAAC,KAAK,CAAC,KAAK,GAAG,SAAS,CAAC;KACrC;IACD,OAAO,WAAW,CAAC;AACrB,CAAC;AAlBD,kEAkBC"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @migration Legacy interface adapters.
|
|
4
|
+
*
|
|
5
|
+
* Thin adapters that produce IBuildScanData, IInstrumentationData, etc.
|
|
6
|
+
* from the new typed config objects (ScanCommandConfig, InstrumentCommandConfig)
|
|
7
|
+
* plus baseData (token, server, customerId, appName, branchName, buildName, etc.).
|
|
8
|
+
*
|
|
9
|
+
* Remove when CIA/BuildDiffProcess accept config types directly (Stage 7).
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.toDryRunBuildMapData = exports.toInstrumentationData = exports.toBuildScanData = void 0;
|
|
13
|
+
const interface_1 = require("../../../build-scanner/source-map-eraser/interface");
|
|
14
|
+
const agent_instance_data_1 = require("../../agent-instance-data");
|
|
15
|
+
const sl_env_vars_1 = require("../../../common/constants/sl-env-vars");
|
|
16
|
+
const path_1 = require("path");
|
|
17
|
+
const Constants = require("../../constants/constants");
|
|
18
|
+
/** @migration Remove when CIA.run() accepts ScanCommandConfig & TokenDerivedData */
|
|
19
|
+
function toBuildScanData(config, baseData) {
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
21
|
+
const agentId = agent_instance_data_1.AgentInstanceDataFactory.getOrCreateAgentInstanceData().agentId;
|
|
22
|
+
return Object.assign(Object.assign({}, baseData), { buildSessionId: baseData.buildSessionId,
|
|
23
|
+
// does not exist in IBuildScanData, left for backward compatibility
|
|
24
|
+
buildsessionid: undefined,
|
|
25
|
+
// does not exist in IBuildScanData, left for backward compatibility
|
|
26
|
+
buildsessionidfile: config.buildSessionIdFile, appname: baseData.appName,
|
|
27
|
+
// does not exist in IBuildScanData, left for backward compatibility
|
|
28
|
+
appName: baseData.appName, build: baseData.buildName,
|
|
29
|
+
// does not exist in IBuildScanData, left for backward compatibility
|
|
30
|
+
buildName: baseData.buildName, branch: baseData.branchName,
|
|
31
|
+
// does not exist in IBuildScanData, left for backward compatibility
|
|
32
|
+
branchName: baseData.branchName, token: baseData.token, server: baseData.server, agentId,
|
|
33
|
+
// does not exist in IBuildScanData, left for backward compatibility
|
|
34
|
+
customerid: baseData.customerid, customerId: baseData.customerid, workspacepath: config.workspacePath, scm: config.scm, excludedpaths: config.excludedPaths, outputpath: (_a = config.outputPath) !== null && _a !== void 0 ? _a : '', logsUrl: (_b = config.logsUrl) !== null && _b !== void 0 ? _b : '', dependenciesFile: config.dependenciesFile, recursive: config.recursive, instrumentForBrowsers: config.instrumentForBrowsers, instrumentationOnly: config.instrumentationOnly, scmProvider: (_c = config.scmProvider) !== null && _c !== void 0 ? _c : '', scmBaseUrl: (_d = config.scmBaseUrl) !== null && _d !== void 0 ? _d : '', scmVersion: (_e = config.scmVersion) !== null && _e !== void 0 ? _e : '', babylonPlugins: ((_f = config.babylonPlugins) !== null && _f !== void 0 ? _f : []).join(','), projectRoot: config.projectRoot, labid: (_h = (_g = config.labId) !== null && _g !== void 0 ? _g : baseData.labid) !== null && _h !== void 0 ? _h : '', proxy: (_j = baseData.proxy) !== null && _j !== void 0 ? _j : '', jobName: (_k = config.jobName) !== null && _k !== void 0 ? _k : '', dependency: config.dependency, commit: (_l = config.commit) !== null && _l !== void 0 ? _l : '', uniqueModuleId: config.uniqueModuleId, usebranchcoverage: config.useBranchCoverage, delayShutdownInSeconds: (_m = config.delayShutdownInSeconds) !== null && _m !== void 0 ? _m : 30, resolveWithoutHash: config.resolveWithoutHash, sourceHash: (_o = config.sourceHash) !== null && _o !== void 0 ? _o : false, es6Modules: config.es6Modules, useBabylon: config.useBabylon, sendContributors: config.sendContributors, useRelativeSlMapping: config.useRelativeSlMapping, useModulePrefix: config.useModulePrefix, collectorUrl: config.collectorUrl, enableDiagnostic: config.enableDiagnostic, footprintsMapping: config._isDefault('footprintsMapping')
|
|
35
|
+
? undefined
|
|
36
|
+
: config.footprintsMapping, additionalGitDetails: config.additionalGitDetails, removeSensitiveData: config.removeSensitiveData, excludeSourceMapFiles: (_p = config.excludeSourceMapFiles) !== null && _p !== void 0 ? _p : interface_1.SourceMapsEraserModes.None, es6Classes: (_q = config.es6Classes) !== null && _q !== void 0 ? _q : false, enrichPrivateMethods: (_r = config.enrichPrivateMethods) !== null && _r !== void 0 ? _r : false, hashIncludeNestedMethods: (_s = config.hashIncludeNestedMethods) !== null && _s !== void 0 ? _s : false, excludeNestedMethods: (_t = config.excludeNestedMethods) !== null && _t !== void 0 ? _t : false, experimentalSizeReduction: config.experimentalSizeReduction, splitPreambleIntoFile: config.splitPreambleIntoFile, preambleFileName: config.preambleFileName, preambleFileUrl: config.preambleFileUrl, awsConfigure: config.awsConfigure, rawCoverage: config.rawCoverage, enrichByLinesMatch: (_u = config.enrichByLinesMatch) !== null && _u !== void 0 ? _u : false, newInstrumenter: config.newInstrumenter, partialBuildMapping: (_v = config.partialBuildMapping) !== null && _v !== void 0 ? _v : 0, reduceInstrumentedFileSize: (_w = config.reduceInstrumentedFileSize) !== null && _w !== void 0 ? _w : false, scanDotFolders: config.scanDotFolders, awsConfigKeysToIgnore: config.awsConfigKeysToIgnore, excludeTokenFromBrowserConfig: config.excludeTokenFromBrowserConfig, overrideServer: config.overrideServer, compressSlMapping: config.compressSlMapping, ctxPropagationOnly: config.ctxPropagationOnly, enableLineCoverage: config.enableLineCoverage, embedCorrectUniqueId: config.embedCorrectUniqueId, autoResolveProjectRoot: config.autoResolveProjectRoot, skipInstrumentingFilesWithoutSourceMap: config.skipInstrumentingFilesWithoutSourceMap, toggleBasedBrowserInstrumentation: config.toggleBasedBrowserInstrumentation, recognizeBabelCreateClass: config.recognizeBabelCreateClass, preferSourceMapFromFile: config.preferSourceMapFromFile, enrichByMethodRange: config.enrichByMethodRange, experimentalDeduplicateEnrichedMethodsWithOriginals: config.experimentalDeduplicateEnrichedMethodsWithOriginals, allowedDomains: config.allowedDomains, allowCORS: config.allowCORS,
|
|
37
|
+
// does not exist in IBuildScanData, left for backward compatibility
|
|
38
|
+
enableOpenTelemetry: config.enableOpenTelemetry, failbuild: config.failBuild, skipUpgrade: config.skipUpgrade, tokenfile: config._isDefault('tokenFile') ? undefined : config.tokenFile });
|
|
39
|
+
}
|
|
40
|
+
exports.toBuildScanData = toBuildScanData;
|
|
41
|
+
/** @migration Remove when CIA.instrument() accepts InstrumentCommandConfig & TokenDerivedData */
|
|
42
|
+
function toInstrumentationData(config, baseData) {
|
|
43
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
44
|
+
const agentId = agent_instance_data_1.AgentInstanceDataFactory.getOrCreateAgentInstanceData().agentId;
|
|
45
|
+
return Object.assign(Object.assign({}, baseData), { appName: baseData.appName, build: baseData.buildName,
|
|
46
|
+
// does not exist in IInstrumentationData, left for backward compatibility
|
|
47
|
+
buildName: baseData.buildName, customerId: baseData.customerid,
|
|
48
|
+
// does not exist in IInstrumentationData, left for backward compatibility
|
|
49
|
+
customerid: baseData.customerid, branch: baseData.branchName,
|
|
50
|
+
// does not exist in IInstrumentationData, left for backward compatibility
|
|
51
|
+
branchName: baseData.branchName, buildSessionId: baseData.buildSessionId,
|
|
52
|
+
// does not exist in IInstrumentationData, left for backward compatibility
|
|
53
|
+
// buildsessionid: baseData.buildSessionId,
|
|
54
|
+
// does not exist in IInstrumentationData, left for backward compatibility
|
|
55
|
+
buildsessionidfile: config.buildSessionIdFile, token: baseData.token, proxy: (_a = baseData.proxy) !== null && _a !== void 0 ? _a : '', labId: (_c = (_b = config.labId) !== null && _b !== void 0 ? _b : baseData.labid) !== null && _c !== void 0 ? _c : '', agentId, collectorUrl: config.collectorUrl, esModules: config.es6Modules,
|
|
56
|
+
// does not exist in IInstrumentationData, left for backward compatibility
|
|
57
|
+
es6Modules: config.es6Modules, server: baseData.server, overrideServer: (_d = config.overrideServer) !== null && _d !== void 0 ? _d : '', workspacePath: (_e = config.workspacePath) !== null && _e !== void 0 ? _e : '', outputPath: (_g = (_f = config.outputPath) !== null && _f !== void 0 ? _f : config.workspacePath) !== null && _g !== void 0 ? _g : sl_env_vars_1.SlEnvVars.CIA.getSlMappingPath(), delayShutdownInSeconds: (_h = config.delayShutdownInSeconds) !== null && _h !== void 0 ? _h : 30, slMappingPath: sl_env_vars_1.SlEnvVars.CIA.getSlMappingPath(), slMappingUrl: sl_env_vars_1.SlEnvVars.CIA.getSlMappingUrl() || sl_env_vars_1.SlEnvVars.CIA.getSlMappingPath(), enableOpenTelemetry: (_j = config.enableOpenTelemetry) !== null && _j !== void 0 ? _j : false, allowCORS: config.allowCORS ? String(config.allowCORS).length > 0 : false, removeSensitiveData: (_k = config.removeSensitiveData) !== null && _k !== void 0 ? _k : false, excludeTokenFromBrowserConfig: (_l = config.excludeTokenFromBrowserConfig) !== null && _l !== void 0 ? _l : false, footprintsMapping: config.footprintsMapping, ctxPropagationOnly: (_m = config.ctxPropagationOnly) !== null && _m !== void 0 ? _m : false, splitPreambleIntoFile: (_o = config.splitPreambleIntoFile) !== null && _o !== void 0 ? _o : false, preambleFileName: config.preambleFileName, preambleFileUrl: config.preambleFileUrl, toggleBasedBrowserInstrumentation: (_p = config.toggleBasedBrowserInstrumentation) !== null && _p !== void 0 ? _p : false, allowedDomains: config.allowedDomains, reduceInstrumentedFileSize: (_q = config.reduceInstrumentedFileSize) !== null && _q !== void 0 ? _q : false, skipUpgrade: config.skipUpgrade, tokenfile: config._isDefault('tokenFile') ? undefined : config.tokenFile, useRelativeSlMapping: undefined, resolveWithoutHash: undefined, newInstrumenter: undefined, logsUrl: undefined, buildsessionid: undefined });
|
|
58
|
+
}
|
|
59
|
+
exports.toInstrumentationData = toInstrumentationData;
|
|
60
|
+
/**
|
|
61
|
+
* @migration Build scan data for dry run (fabricated baseData, no real token).
|
|
62
|
+
* Returns IBuildScanData plus depth for dry-run pipeline.
|
|
63
|
+
*/
|
|
64
|
+
function toDryRunBuildMapData(args) {
|
|
65
|
+
var _a, _b, _c, _d;
|
|
66
|
+
let excludeSourceMapFiles;
|
|
67
|
+
if (args.excludeSourceMapFiles === undefined) {
|
|
68
|
+
excludeSourceMapFiles = interface_1.SourceMapsEraserModes.None;
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
}
|
|
72
|
+
else if (args.excludeSourceMapFiles === true) {
|
|
73
|
+
excludeSourceMapFiles = interface_1.SourceMapsEraserModes.SkipCopy;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
excludeSourceMapFiles = args.excludeSourceMapFiles;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
appname: 'app1',
|
|
80
|
+
build: 'build1',
|
|
81
|
+
branch: 'branch1',
|
|
82
|
+
customerId: 'customer1',
|
|
83
|
+
token: 't1',
|
|
84
|
+
server: 'http://sealights.co/api',
|
|
85
|
+
buildSessionId: 'bs1',
|
|
86
|
+
workspacepath: args.workspacePath,
|
|
87
|
+
outputpath: (0, path_1.join)(Constants.DRY_RUN_OUTPUT, args.outputPath || Constants.INSTRUMENTATION_OUTPUT),
|
|
88
|
+
folderDepth: args.folderDepth,
|
|
89
|
+
hasNycReport: args.hasNycReport,
|
|
90
|
+
report: args.report,
|
|
91
|
+
nycProjectRoot: args.nycProjectRoot,
|
|
92
|
+
projectRoot: args.buildScanProjectRoot,
|
|
93
|
+
sendContributors: true,
|
|
94
|
+
instrumentationOnly: false,
|
|
95
|
+
excludeSourceMapFiles,
|
|
96
|
+
experimentalSizeReduction: process.env['SL_experimentalSizeReduction'] || false,
|
|
97
|
+
partialBuildMapping: (_a = args.partialBuildMapping) !== null && _a !== void 0 ? _a : 0,
|
|
98
|
+
ctxPropagationOnly: args.ctxPropagationOnly,
|
|
99
|
+
embedCorrectUniqueId: args.embedCorrectUniqueId,
|
|
100
|
+
splitPreambleIntoFile: args.splitPreambleIntoFile,
|
|
101
|
+
preambleFileName: args.preambleFileName,
|
|
102
|
+
preambleFileUrl: args.preambleFileUrl,
|
|
103
|
+
toggleBasedBrowserInstrumentation: args.toggleBasedBrowserInstrumentation,
|
|
104
|
+
recognizeBabelCreateClass: args.recognizeBabelCreateClass,
|
|
105
|
+
preferSourceMapFromFile: args.preferSourceMapFromFile,
|
|
106
|
+
enrichByMethodRange: args.enrichByMethodRange,
|
|
107
|
+
experimentalDeduplicateEnrichedMethodsWithOriginals: args.experimentalDeduplicateEnrichedMethodsWithOriginals,
|
|
108
|
+
allowedDomains: args.allowedDomains,
|
|
109
|
+
babylonPlugins: ((_b = args.babylonPlugins) !== null && _b !== void 0 ? _b : []).join(','),
|
|
110
|
+
commit: undefined,
|
|
111
|
+
delayShutdownInSeconds: 0,
|
|
112
|
+
dependenciesFile: undefined,
|
|
113
|
+
dependency: undefined,
|
|
114
|
+
es6Modules: args.es6Modules,
|
|
115
|
+
excludedpaths: args.excludedPaths,
|
|
116
|
+
failbuild: true,
|
|
117
|
+
instrumentForBrowsers: args.instrumentForBrowsers,
|
|
118
|
+
jobName: '',
|
|
119
|
+
labid: 'lab-1',
|
|
120
|
+
logsUrl: '',
|
|
121
|
+
recursive: false,
|
|
122
|
+
resolveWithoutHash: false,
|
|
123
|
+
sourceHash: args.sourceHash,
|
|
124
|
+
scm: args.scm,
|
|
125
|
+
skipUpgrade: false,
|
|
126
|
+
tokenfile: undefined,
|
|
127
|
+
uniqueModuleId: undefined,
|
|
128
|
+
useBabylon: false,
|
|
129
|
+
usebranchcoverage: args.useBranchCoverage,
|
|
130
|
+
useModulePrefix: false,
|
|
131
|
+
collectorUrl: undefined,
|
|
132
|
+
enableOpenTelemetry: false,
|
|
133
|
+
allowCORS: undefined,
|
|
134
|
+
es6Classes: args.es6Classes,
|
|
135
|
+
enrichPrivateMethods: args.enrichPrivateMethods,
|
|
136
|
+
enrichByLinesMatch: args.enrichByLinesMatch,
|
|
137
|
+
hashIncludeNestedMethods: (_c = args.hashIncludeNestedMethods) !== null && _c !== void 0 ? _c : false,
|
|
138
|
+
excludeNestedMethods: (_d = args.excludeNestedMethods) !== null && _d !== void 0 ? _d : false,
|
|
139
|
+
footprintsMapping: args.footprintsMapping,
|
|
140
|
+
awsConfigure: false,
|
|
141
|
+
awsConfigKeysToIgnore: undefined,
|
|
142
|
+
rawCoverage: args.rawCoverage,
|
|
143
|
+
newInstrumenter: undefined,
|
|
144
|
+
scanDotFolders: args.scanDotFolders,
|
|
145
|
+
overrideServer: args.overrideServer,
|
|
146
|
+
excludeTokenFromBrowserConfig: false,
|
|
147
|
+
compressSlMapping: false,
|
|
148
|
+
enableLineCoverage: args.enableLineCoverage,
|
|
149
|
+
useRelativeSlMapping: args.useRelativeSlMapping,
|
|
150
|
+
autoResolveProjectRoot: false,
|
|
151
|
+
skipInstrumentingFilesWithoutSourceMap: args.skipInstrumentingFilesWithoutSourceMap,
|
|
152
|
+
buildsessionid: 'bs-id',
|
|
153
|
+
buildsessionidfile: undefined,
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
exports.toDryRunBuildMapData = toDryRunBuildMapData;
|
|
157
|
+
//# sourceMappingURL=legacy-adapters.js.map
|