@datadog/datadog-ci 2.18.0 → 2.19.0
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/dist/cli.d.ts +3 -1
- package/dist/cli.js +9 -2
- package/dist/cli.js.map +1 -1
- package/dist/commands/cloud-run/cli.d.ts +1 -0
- package/dist/commands/cloud-run/cli.js +5 -0
- package/dist/commands/cloud-run/cli.js.map +1 -0
- package/dist/commands/cloud-run/constants.d.ts +1 -0
- package/dist/commands/cloud-run/constants.js +22 -0
- package/dist/commands/cloud-run/constants.js.map +1 -0
- package/dist/commands/cloud-run/flare.d.ts +91 -0
- package/dist/commands/cloud-run/flare.js +634 -0
- package/dist/commands/cloud-run/flare.js.map +1 -0
- package/dist/commands/cloud-run/interfaces.d.ts +27 -0
- package/dist/commands/cloud-run/interfaces.js +3 -0
- package/dist/commands/cloud-run/interfaces.js.map +1 -0
- package/dist/commands/cloud-run/renderer.d.ts +4 -0
- package/dist/commands/cloud-run/renderer.js +42 -0
- package/dist/commands/cloud-run/renderer.js.map +1 -0
- package/dist/commands/dsyms/renderer.js +6 -6
- package/dist/commands/dsyms/renderer.js.map +1 -1
- package/dist/commands/dsyms/upload.d.ts +5 -5
- package/dist/commands/dsyms/upload.js +66 -42
- package/dist/commands/dsyms/upload.js.map +1 -1
- package/dist/commands/dsyms/utils.d.ts +1 -1
- package/dist/commands/dsyms/utils.js +3 -3
- package/dist/commands/dsyms/utils.js.map +1 -1
- package/dist/commands/flutter-symbols/helpers.js +8 -4
- package/dist/commands/flutter-symbols/helpers.js.map +1 -1
- package/dist/commands/flutter-symbols/renderer.js +2 -2
- package/dist/commands/flutter-symbols/renderer.js.map +1 -1
- package/dist/commands/flutter-symbols/upload.d.ts +13 -13
- package/dist/commands/flutter-symbols/upload.js +66 -66
- package/dist/commands/flutter-symbols/upload.js.map +1 -1
- package/dist/commands/gate/api.js +4 -2
- package/dist/commands/gate/api.js.map +1 -1
- package/dist/commands/gate/evaluate.d.ts +18 -6
- package/dist/commands/gate/evaluate.js +116 -40
- package/dist/commands/gate/evaluate.js.map +1 -1
- package/dist/commands/gate/interfaces.d.ts +5 -0
- package/dist/commands/gate/renderer.js +16 -14
- package/dist/commands/gate/renderer.js.map +1 -1
- package/dist/commands/gate/utils.d.ts +1 -0
- package/dist/commands/gate/utils.js +8 -4
- package/dist/commands/gate/utils.js.map +1 -1
- package/dist/commands/git-metadata/git.d.ts +1 -1
- package/dist/commands/git-metadata/git.js +7 -3
- package/dist/commands/git-metadata/git.js.map +1 -1
- package/dist/commands/git-metadata/gitdb.d.ts +1 -1
- package/dist/commands/git-metadata/gitdb.js +7 -7
- package/dist/commands/git-metadata/gitdb.js.map +1 -1
- package/dist/commands/git-metadata/index.js +5 -1
- package/dist/commands/git-metadata/index.js.map +1 -1
- package/dist/commands/git-metadata/library.d.ts +1 -1
- package/dist/commands/git-metadata/library.js +13 -13
- package/dist/commands/git-metadata/library.js.map +1 -1
- package/dist/commands/git-metadata/upload.d.ts +5 -5
- package/dist/commands/git-metadata/upload.js +30 -32
- package/dist/commands/git-metadata/upload.js.map +1 -1
- package/dist/commands/junit/api.js +4 -4
- package/dist/commands/junit/api.js.map +1 -1
- package/dist/commands/junit/id.js +1 -1
- package/dist/commands/junit/id.js.map +1 -1
- package/dist/commands/junit/renderer.d.ts +1 -1
- package/dist/commands/junit/renderer.js +3 -3
- package/dist/commands/junit/renderer.js.map +1 -1
- package/dist/commands/junit/upload.d.ts +12 -11
- package/dist/commands/junit/upload.js +74 -63
- package/dist/commands/junit/upload.js.map +1 -1
- package/dist/commands/junit/utils.d.ts +1 -2
- package/dist/commands/junit/utils.js +5 -10
- package/dist/commands/junit/utils.js.map +1 -1
- package/dist/commands/lambda/constants.d.ts +13 -11
- package/dist/commands/lambda/constants.js +41 -70
- package/dist/commands/lambda/constants.js.map +1 -1
- package/dist/commands/lambda/flare.d.ts +25 -74
- package/dist/commands/lambda/flare.js +182 -332
- package/dist/commands/lambda/flare.js.map +1 -1
- package/dist/commands/lambda/functions/commons.d.ts +8 -14
- package/dist/commands/lambda/functions/commons.js +57 -69
- package/dist/commands/lambda/functions/commons.js.map +1 -1
- package/dist/commands/lambda/functions/instrument.js +66 -65
- package/dist/commands/lambda/functions/instrument.js.map +1 -1
- package/dist/commands/lambda/functions/uninstrument.js +38 -37
- package/dist/commands/lambda/functions/uninstrument.js.map +1 -1
- package/dist/commands/lambda/functions/versionChecker.d.ts +2 -2
- package/dist/commands/lambda/instrument.d.ts +22 -20
- package/dist/commands/lambda/instrument.js +78 -69
- package/dist/commands/lambda/instrument.js.map +1 -1
- package/dist/commands/lambda/loggroup.js +8 -8
- package/dist/commands/lambda/loggroup.js.map +1 -1
- package/dist/commands/lambda/prompt.d.ts +1 -4
- package/dist/commands/lambda/prompt.js +34 -71
- package/dist/commands/lambda/prompt.js.map +1 -1
- package/dist/commands/lambda/renderers/__mocks__/instrument-uninstrument-renderer.d.ts +2 -0
- package/dist/commands/lambda/renderers/__mocks__/instrument-uninstrument-renderer.js +11 -0
- package/dist/commands/lambda/renderers/__mocks__/instrument-uninstrument-renderer.js.map +1 -0
- package/dist/commands/lambda/renderers/common-renderer.d.ts +0 -26
- package/dist/commands/lambda/renderers/common-renderer.js +4 -32
- package/dist/commands/lambda/renderers/common-renderer.js.map +1 -1
- package/dist/commands/lambda/renderers/instrument-uninstrument-renderer.d.ts +2 -2
- package/dist/commands/lambda/renderers/instrument-uninstrument-renderer.js +57 -49
- package/dist/commands/lambda/renderers/instrument-uninstrument-renderer.js.map +1 -1
- package/dist/commands/lambda/tags.js +7 -7
- package/dist/commands/lambda/tags.js.map +1 -1
- package/dist/commands/lambda/uninstrument.d.ts +25 -7
- package/dist/commands/lambda/uninstrument.js +59 -49
- package/dist/commands/lambda/uninstrument.js.map +1 -1
- package/dist/commands/metric/metric.d.ts +4 -3
- package/dist/commands/metric/metric.js +10 -9
- package/dist/commands/metric/metric.js.map +1 -1
- package/dist/commands/react-native/codepush.d.ts +11 -10
- package/dist/commands/react-native/codepush.js +17 -19
- package/dist/commands/react-native/codepush.js.map +1 -1
- package/dist/commands/react-native/interfaces.d.ts +1 -1
- package/dist/commands/react-native/renderer.js +6 -6
- package/dist/commands/react-native/renderer.js.map +1 -1
- package/dist/commands/react-native/upload.d.ts +12 -12
- package/dist/commands/react-native/upload.js +67 -45
- package/dist/commands/react-native/upload.js.map +1 -1
- package/dist/commands/react-native/utils.js +2 -1
- package/dist/commands/react-native/utils.js.map +1 -1
- package/dist/commands/react-native/validation.js +1 -1
- package/dist/commands/react-native/validation.js.map +1 -1
- package/dist/commands/react-native/xcode.d.ts +6 -6
- package/dist/commands/react-native/xcode.js +25 -29
- package/dist/commands/react-native/xcode.js.map +1 -1
- package/dist/commands/sarif/api.js +6 -22
- package/dist/commands/sarif/api.js.map +1 -1
- package/dist/commands/sarif/renderer.d.ts +1 -1
- package/dist/commands/sarif/renderer.js +1 -1
- package/dist/commands/sarif/renderer.js.map +1 -1
- package/dist/commands/sarif/upload.d.ts +6 -6
- package/dist/commands/sarif/upload.js +46 -37
- package/dist/commands/sarif/upload.js.map +1 -1
- package/dist/commands/sbom/api.d.ts +7 -0
- package/dist/commands/sbom/api.js +49 -0
- package/dist/commands/sbom/api.js.map +1 -0
- package/dist/commands/sbom/cli.d.ts +1 -0
- package/dist/commands/sbom/cli.js +5 -0
- package/dist/commands/sbom/cli.js.map +1 -0
- package/dist/commands/sbom/constants.d.ts +2 -0
- package/dist/commands/sbom/constants.js +6 -0
- package/dist/commands/sbom/constants.js.map +1 -0
- package/dist/commands/sbom/json-schema/cyclonedx/bom-1.4.schema.json +1687 -0
- package/dist/commands/sbom/json-schema/jsf/jsf-0.82.schema.json +244 -0
- package/dist/commands/sbom/json-schema/spdx/spdx.schema.json +507 -0
- package/dist/commands/sbom/protobuf/bom-1.4.d.ts +11788 -0
- package/dist/commands/sbom/protobuf/bom-1.4.js +5161 -0
- package/dist/commands/sbom/protobuf/bom-1.4.js.map +1 -0
- package/dist/commands/sbom/protobuf/custom_message.d.ts +11 -0
- package/dist/commands/sbom/protobuf/custom_message.js +3 -0
- package/dist/commands/sbom/protobuf/custom_message.js.map +1 -0
- package/dist/commands/sbom/protobuf/google/protobuf/duration.d.ts +110 -0
- package/dist/commands/sbom/protobuf/google/protobuf/duration.js +126 -0
- package/dist/commands/sbom/protobuf/google/protobuf/duration.js.map +1 -0
- package/dist/commands/sbom/protobuf/google/protobuf/timestamp.d.ts +139 -0
- package/dist/commands/sbom/protobuf/google/protobuf/timestamp.js +126 -0
- package/dist/commands/sbom/protobuf/google/protobuf/timestamp.js.map +1 -0
- package/dist/commands/sbom/protobuf/sbom_intake.d.ts +53 -0
- package/dist/commands/sbom/protobuf/sbom_intake.js +383 -0
- package/dist/commands/sbom/protobuf/sbom_intake.js.map +1 -0
- package/dist/commands/sbom/types.d.ts +4 -0
- package/dist/commands/sbom/types.js +3 -0
- package/dist/commands/sbom/types.js.map +1 -0
- package/dist/commands/sbom/upload.d.ts +16 -0
- package/dist/commands/sbom/upload.js +134 -0
- package/dist/commands/sbom/upload.js.map +1 -0
- package/dist/commands/sbom/validation.d.ts +12 -0
- package/dist/commands/sbom/validation.js +51 -0
- package/dist/commands/sbom/validation.js.map +1 -0
- package/dist/commands/sourcemaps/renderer.js +6 -6
- package/dist/commands/sourcemaps/renderer.js.map +1 -1
- package/dist/commands/sourcemaps/upload.d.ts +10 -10
- package/dist/commands/sourcemaps/upload.js +61 -38
- package/dist/commands/sourcemaps/upload.js.map +1 -1
- package/dist/commands/sourcemaps/validation.js +4 -4
- package/dist/commands/sourcemaps/validation.js.map +1 -1
- package/dist/commands/stepfunctions/awsCommands.js +10 -10
- package/dist/commands/stepfunctions/awsCommands.js.map +1 -1
- package/dist/commands/stepfunctions/helpers.d.ts +4 -4
- package/dist/commands/stepfunctions/helpers.js +4 -4
- package/dist/commands/stepfunctions/helpers.js.map +1 -1
- package/dist/commands/stepfunctions/instrument.d.ts +5 -4
- package/dist/commands/stepfunctions/instrument.js +30 -31
- package/dist/commands/stepfunctions/instrument.js.map +1 -1
- package/dist/commands/stepfunctions/uninstrument.d.ts +6 -1
- package/dist/commands/stepfunctions/uninstrument.js +23 -23
- package/dist/commands/stepfunctions/uninstrument.js.map +1 -1
- package/dist/commands/synthetics/api.d.ts +1 -1
- package/dist/commands/synthetics/api.js +11 -11
- package/dist/commands/synthetics/api.js.map +1 -1
- package/dist/commands/synthetics/errors.d.ts +3 -3
- package/dist/commands/synthetics/index.js +5 -1
- package/dist/commands/synthetics/index.js.map +1 -1
- package/dist/commands/synthetics/interfaces.d.ts +8 -7
- package/dist/commands/synthetics/interfaces.js +2 -2
- package/dist/commands/synthetics/interfaces.js.map +1 -1
- package/dist/commands/synthetics/mobile.d.ts +1 -1
- package/dist/commands/synthetics/mobile.js +26 -20
- package/dist/commands/synthetics/mobile.js.map +1 -1
- package/dist/commands/synthetics/reporters/default.d.ts +2 -2
- package/dist/commands/synthetics/reporters/default.js +17 -19
- package/dist/commands/synthetics/reporters/default.js.map +1 -1
- package/dist/commands/synthetics/reporters/junit.d.ts +2 -2
- package/dist/commands/synthetics/reporters/junit.js +11 -11
- package/dist/commands/synthetics/reporters/junit.js.map +1 -1
- package/dist/commands/synthetics/run-tests-command.d.ts +21 -19
- package/dist/commands/synthetics/run-tests-command.js +108 -42
- package/dist/commands/synthetics/run-tests-command.js.map +1 -1
- package/dist/commands/synthetics/run-tests-lib.d.ts +1 -1
- package/dist/commands/synthetics/run-tests-lib.js +16 -16
- package/dist/commands/synthetics/run-tests-lib.js.map +1 -1
- package/dist/commands/synthetics/tunnel/crypto.js +3 -3
- package/dist/commands/synthetics/tunnel/crypto.js.map +1 -1
- package/dist/commands/synthetics/tunnel/tunnel.js +11 -11
- package/dist/commands/synthetics/tunnel/tunnel.js.map +1 -1
- package/dist/commands/synthetics/tunnel/websocket.d.ts +1 -0
- package/dist/commands/synthetics/tunnel/websocket.js +7 -3
- package/dist/commands/synthetics/tunnel/websocket.js.map +1 -1
- package/dist/commands/synthetics/upload-application-command.d.ts +10 -8
- package/dist/commands/synthetics/upload-application-command.js +36 -13
- package/dist/commands/synthetics/upload-application-command.js.map +1 -1
- package/dist/commands/synthetics/utils.d.ts +12 -12
- package/dist/commands/synthetics/utils.js +52 -47
- package/dist/commands/synthetics/utils.js.map +1 -1
- package/dist/commands/tag/tag.d.ts +4 -3
- package/dist/commands/tag/tag.js +10 -9
- package/dist/commands/tag/tag.js.map +1 -1
- package/dist/commands/trace/api.js +4 -4
- package/dist/commands/trace/api.js.map +1 -1
- package/dist/commands/trace/interfaces.d.ts +1 -1
- package/dist/commands/trace/trace.d.ts +5 -4
- package/dist/commands/trace/trace.js +11 -10
- package/dist/commands/trace/trace.js.map +1 -1
- package/dist/commands/version/cli.js +6 -5
- package/dist/commands/version/cli.js.map +1 -1
- package/dist/constants.d.ts +17 -0
- package/dist/constants.js +65 -1
- package/dist/constants.js.map +1 -1
- package/dist/helpers/api.d.ts +5 -0
- package/dist/helpers/api.js +16 -0
- package/dist/helpers/api.js.map +1 -0
- package/dist/helpers/base-intake-url.d.ts +1 -1
- package/dist/helpers/ci.d.ts +13 -13
- package/dist/helpers/ci.js +17 -17
- package/dist/helpers/ci.js.map +1 -1
- package/dist/helpers/config.d.ts +5 -0
- package/dist/helpers/config.js +3 -0
- package/dist/helpers/config.js.map +1 -0
- package/dist/helpers/flare.d.ts +41 -0
- package/dist/helpers/flare.js +191 -0
- package/dist/helpers/flare.js.map +1 -0
- package/dist/helpers/fs.d.ts +31 -0
- package/dist/helpers/fs.js +117 -0
- package/dist/helpers/fs.js.map +1 -0
- package/dist/helpers/git/format-git-sourcemaps-data.js +7 -3
- package/dist/helpers/git/format-git-sourcemaps-data.js.map +1 -1
- package/dist/helpers/git/format-git-span-data.js +6 -6
- package/dist/helpers/git/format-git-span-data.js.map +1 -1
- package/dist/helpers/git/get-git-data.js +3 -3
- package/dist/helpers/git/get-git-data.js.map +1 -1
- package/dist/helpers/interfaces.d.ts +9 -3
- package/dist/helpers/logger.js +1 -1
- package/dist/helpers/logger.js.map +1 -1
- package/dist/helpers/plist.d.ts +1 -1
- package/dist/helpers/plist.js +1 -1
- package/dist/helpers/plist.js.map +1 -1
- package/dist/helpers/prompt.d.ts +7 -0
- package/dist/helpers/prompt.js +57 -0
- package/dist/helpers/prompt.js.map +1 -0
- package/dist/helpers/renderer.d.ts +60 -0
- package/dist/helpers/renderer.js +98 -0
- package/dist/helpers/renderer.js.map +1 -0
- package/dist/helpers/retry.d.ts +1 -1
- package/dist/helpers/retry.js +3 -3
- package/dist/helpers/retry.js.map +1 -1
- package/dist/helpers/tags.d.ts +8 -0
- package/dist/helpers/tags.js +27 -1
- package/dist/helpers/tags.js.map +1 -1
- package/dist/helpers/upload.js +3 -3
- package/dist/helpers/upload.js.map +1 -1
- package/dist/helpers/user-provided-git.js +6 -6
- package/dist/helpers/user-provided-git.js.map +1 -1
- package/dist/helpers/utils.d.ts +12 -5
- package/dist/helpers/utils.js +57 -25
- package/dist/helpers/utils.js.map +1 -1
- package/dist/helpers/validation.d.ts +3 -1
- package/dist/helpers/validation.js +27 -1
- package/dist/helpers/validation.js.map +1 -1
- package/dist/helpers/version.d.ts +4 -0
- package/dist/helpers/version.js +9 -0
- package/dist/helpers/version.js.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +11 -8
- package/dist/index.js.map +1 -1
- package/package.json +28 -13
- package/dist/commands/lambda/renderers/flare-renderer.d.ts +0 -9
- package/dist/commands/lambda/renderers/flare-renderer.js +0 -22
- package/dist/commands/lambda/renderers/flare-renderer.js.map +0 -1
- package/dist/helpers/file.d.ts +0 -1
- package/dist/helpers/file.js +0 -9
- package/dist/helpers/file.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocket.js","sourceRoot":"","sources":["../../../../src/commands/synthetics/tunnel/websocket.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"websocket.js","sourceRoot":"","sources":["../../../../src/commands/synthetics/tunnel/websocket.ts"],"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,CAAC,CAAA;SACxD;QAED,IAAI,CAAC,YAAY,GAAG,IAAI,OAAO,CAAC,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,EAAE;YAC1E,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;gBACnB,kBAAkB,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC,CAAA;aAClE;iBAAM;gBACL,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAA;aACpD;QACH,CAAC,CAAC,CAAA;QAEF,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,qBAAqB,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YACpD,IAAI,IAAI,GAAG,EAAE,CAAA;YACb,GAAG,CAAC,EAAE,CAAC,UAAU,EAAE,GAAG,EAAE;gBACtB,IAAI,IAAI,GAAG,CAAC,IAAI,EAAE,CAAA;YACpB,CAAC,CAAC,CAAA;YACF,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;gBACjB,MAAM,CAAC,KAAK,CAAC,0DAA0D,GAAG,CAAC,UAAU,MAAM,IAAI,EAAE,CAAC,CAAC,CAAA;YACrG,CAAC,CAAC,CAAA;YACF,GAAG,CAAC,GAAG,EAAE,CAAA;YACT,GAAG,CAAC,OAAO,EAAE,CAAA;QACf,CAAC,CAAC,CAAA;QAEF,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE;YAC7B,OAAO,EAAE,CAAA;QACX,CAAC,CAAC,CAAA;IACJ,CAAC;CACF;AAlID,8BAkIC"}
|
|
@@ -2,15 +2,17 @@ import { Command } from 'clipanion';
|
|
|
2
2
|
import { UploadApplicationCommandConfig } from './interfaces';
|
|
3
3
|
export declare const DEFAULT_UPLOAD_COMMAND_CONFIG: UploadApplicationCommandConfig;
|
|
4
4
|
export declare class UploadApplicationCommand extends Command {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
private
|
|
5
|
+
static paths: string[][];
|
|
6
|
+
static usage: import("clipanion").Usage;
|
|
7
|
+
private apiKey;
|
|
8
|
+
private appKey;
|
|
9
|
+
private configPath;
|
|
10
|
+
private datadogSite;
|
|
11
|
+
private mobileApplicationVersionFilePath;
|
|
12
|
+
private mobileApplicationId;
|
|
13
|
+
private versionName;
|
|
14
|
+
private latest;
|
|
8
15
|
private config;
|
|
9
|
-
private datadogSite?;
|
|
10
|
-
private mobileApplicationVersionFilePath?;
|
|
11
|
-
private mobileApplicationId?;
|
|
12
|
-
private versionName?;
|
|
13
|
-
private latest?;
|
|
14
16
|
private logger;
|
|
15
17
|
execute(): Promise<1 | undefined>;
|
|
16
18
|
private resolveConfig;
|
|
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.UploadApplicationCommand = exports.DEFAULT_UPLOAD_COMMAND_CONFIG = void 0;
|
|
16
16
|
const clipanion_1 = require("clipanion");
|
|
17
17
|
const deep_extend_1 = __importDefault(require("deep-extend"));
|
|
18
|
+
const terminal_link_1 = __importDefault(require("terminal-link"));
|
|
18
19
|
const logger_1 = require("../../helpers/logger");
|
|
19
20
|
const utils_1 = require("../../helpers/utils");
|
|
20
21
|
const api_1 = require("./api");
|
|
@@ -31,9 +32,25 @@ exports.DEFAULT_UPLOAD_COMMAND_CONFIG = {
|
|
|
31
32
|
versionName: '',
|
|
32
33
|
latest: false,
|
|
33
34
|
};
|
|
35
|
+
const configurationLink = 'https://docs.datadoghq.com/continuous_testing/cicd_integrations/configuration';
|
|
36
|
+
const $1 = (text) => (0, terminal_link_1.default)(text, `${configurationLink}#global-configuration-file-options`);
|
|
34
37
|
class UploadApplicationCommand extends clipanion_1.Command {
|
|
35
38
|
constructor() {
|
|
36
39
|
super(...arguments);
|
|
40
|
+
this.apiKey = clipanion_1.Option.String('--apiKey', { description: 'The API key used to query the Datadog API.' });
|
|
41
|
+
this.appKey = clipanion_1.Option.String('--appKey', { description: 'The application key used to query the Datadog API.' });
|
|
42
|
+
this.configPath = clipanion_1.Option.String('--config', { description: `Pass a path to a ${$1('global configuration file')}.` });
|
|
43
|
+
this.datadogSite = clipanion_1.Option.String('--datadogSite', { description: 'The Datadog instance to which request is sent.' });
|
|
44
|
+
this.mobileApplicationVersionFilePath = clipanion_1.Option.String('--mobileApp,--mobileApplicationVersionFilePath', {
|
|
45
|
+
description: 'Override the application version for all Synthetic mobile application tests.',
|
|
46
|
+
});
|
|
47
|
+
this.mobileApplicationId = clipanion_1.Option.String('--mobileApplicationId', {
|
|
48
|
+
description: 'ID of the application you want to upload the new version to.',
|
|
49
|
+
});
|
|
50
|
+
this.versionName = clipanion_1.Option.String('--versionName', { description: 'Name of the new version. It has to be unique.' });
|
|
51
|
+
this.latest = clipanion_1.Option.Boolean('--latest', {
|
|
52
|
+
description: 'Marks the application as `latest`. Any tests that run on the latest version will use this version on their next run.',
|
|
53
|
+
});
|
|
37
54
|
this.config = JSON.parse(JSON.stringify(exports.DEFAULT_UPLOAD_COMMAND_CONFIG)); // Deep copy to avoid mutation during unit tests
|
|
38
55
|
this.logger = new logger_1.Logger((s) => {
|
|
39
56
|
this.context.stdout.write(s);
|
|
@@ -49,7 +66,7 @@ class UploadApplicationCommand extends clipanion_1.Command {
|
|
|
49
66
|
return 1;
|
|
50
67
|
}
|
|
51
68
|
try {
|
|
52
|
-
const version = yield mobile_1.uploadMobileApplicationVersion(this.config);
|
|
69
|
+
const version = yield (0, mobile_1.uploadMobileApplicationVersion)(this.config);
|
|
53
70
|
this.logger.info(`Created new version ${version.version_name}, with version ID: ${version.id}`);
|
|
54
71
|
}
|
|
55
72
|
catch (error) {
|
|
@@ -64,7 +81,7 @@ class UploadApplicationCommand extends clipanion_1.Command {
|
|
|
64
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
82
|
// Defaults < file < ENV < CLI
|
|
66
83
|
try {
|
|
67
|
-
this.config = yield utils_1.resolveConfigFromFile(this.config, {
|
|
84
|
+
this.config = yield (0, utils_1.resolveConfigFromFile)(this.config, {
|
|
68
85
|
configPath: this.configPath,
|
|
69
86
|
defaultConfigPaths: [this.config.configPath],
|
|
70
87
|
});
|
|
@@ -74,13 +91,13 @@ class UploadApplicationCommand extends clipanion_1.Command {
|
|
|
74
91
|
throw error;
|
|
75
92
|
}
|
|
76
93
|
}
|
|
77
|
-
this.config = deep_extend_1.default(this.config, utils_1.removeUndefinedValues({
|
|
94
|
+
this.config = (0, deep_extend_1.default)(this.config, (0, utils_1.removeUndefinedValues)({
|
|
78
95
|
apiKey: process.env.DATADOG_API_KEY,
|
|
79
96
|
appKey: process.env.DATADOG_APP_KEY,
|
|
80
97
|
datadogSite: process.env.DATADOG_SITE,
|
|
81
98
|
}));
|
|
82
99
|
// Override with CLI parameters
|
|
83
|
-
this.config = deep_extend_1.default(this.config, utils_1.removeUndefinedValues({
|
|
100
|
+
this.config = (0, deep_extend_1.default)(this.config, (0, utils_1.removeUndefinedValues)({
|
|
84
101
|
apiKey: this.apiKey,
|
|
85
102
|
appKey: this.appKey,
|
|
86
103
|
configPath: this.configPath,
|
|
@@ -94,13 +111,19 @@ class UploadApplicationCommand extends clipanion_1.Command {
|
|
|
94
111
|
}
|
|
95
112
|
}
|
|
96
113
|
exports.UploadApplicationCommand = UploadApplicationCommand;
|
|
97
|
-
UploadApplicationCommand.
|
|
98
|
-
UploadApplicationCommand.
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
114
|
+
UploadApplicationCommand.paths = [['synthetics', 'upload-application']];
|
|
115
|
+
UploadApplicationCommand.usage = clipanion_1.Command.Usage({
|
|
116
|
+
category: 'Synthetics',
|
|
117
|
+
description: 'Upload a new version to an existing application in Datadog.',
|
|
118
|
+
details: `
|
|
119
|
+
This command will upload a \`.apk\` or \`.ipa\` file as a new version for a given application, which already exists in Datadog.\n
|
|
120
|
+
https://docs.datadoghq.com/mobile_app_testing/mobile_app_tests
|
|
121
|
+
`,
|
|
122
|
+
examples: [
|
|
123
|
+
[
|
|
124
|
+
'Upload version `example 1.0` and mark it as latest',
|
|
125
|
+
"datadog-ci synthetics upload-application --mobileApplicationId '123-123-123' --mobileApplicationVersionFilePath example/test.apk --versionName 'example 1.0' --latest",
|
|
126
|
+
],
|
|
127
|
+
],
|
|
128
|
+
});
|
|
106
129
|
//# sourceMappingURL=upload-application-command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-application-command.js","sourceRoot":"","sources":["../../../src/commands/synthetics/upload-application-command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"upload-application-command.js","sourceRoot":"","sources":["../../../src/commands/synthetics/upload-application-command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yCAAyC;AACzC,8DAAoC;AACpC,kEAAwC;AAExC,iDAAqD;AACrD,+CAAgF;AAEhF,+BAAmC;AACnC,qCAA+C;AAE/C,qCAAuD;AAE1C,QAAA,6BAA6B,GAAmC;IAC3E,MAAM,EAAE,EAAE;IACV,MAAM,EAAE,EAAE;IACV,UAAU,EAAE,iBAAiB;IAC7B,WAAW,EAAE,eAAe;IAC5B,KAAK,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAC;IACzB,gCAAgC,EAAE,EAAE;IACpC,mBAAmB,EAAE,EAAE;IACvB,WAAW,EAAE,EAAE;IACf,MAAM,EAAE,KAAK;CACd,CAAA;AAED,MAAM,iBAAiB,GAAG,+EAA+E,CAAA;AAEzG,MAAM,EAAE,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,IAAA,uBAAY,EAAC,IAAI,EAAE,GAAG,iBAAiB,oCAAoC,CAAC,CAAA;AAEzG,MAAa,wBAAyB,SAAQ,mBAAO;IAArD;;QAkBU,WAAM,GAAG,kBAAM,CAAC,MAAM,CAAC,UAAU,EAAE,EAAC,WAAW,EAAE,4CAA4C,EAAC,CAAC,CAAA;QAC/F,WAAM,GAAG,kBAAM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AAI,CAAC,MAAM;gBACnB,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,gCAAgC,EAAE,IAAI,CAAC,gCAAgC;gBACvE,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;gBAC7C,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,CAAC,CACH,CAAA;QACH,CAAC;KAAA;;AAjGH,4DAkGC;AAjGe,8BAAK,GAAG,CAAC,CAAC,YAAY,EAAE,oBAAoB,CAAC,CAAC,AAAzC,CAAyC;AAE9C,8BAAK,GAAG,mBAAO,CAAC,KAAK,CAAC;IAClC,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,6DAA6D;IAC1E,OAAO,EAAE;;;KAGR;IACD,QAAQ,EAAE;QACR;YACE,oDAAoD;YACpD,uKAAuK;SACxK;KACF;CACF,CAAC,AAbiB,CAajB"}
|
|
@@ -6,10 +6,10 @@ export declare const readableOperation: {
|
|
|
6
6
|
[key in Operator]: string;
|
|
7
7
|
};
|
|
8
8
|
export declare let ciTriggerApp: string;
|
|
9
|
-
export declare const getOverriddenConfig: (test: Test, publicId: string, reporter: MainReporter, config?: UserConfigOverride
|
|
9
|
+
export declare const getOverriddenConfig: (test: Test, publicId: string, reporter: MainReporter, config?: UserConfigOverride) => TestPayload;
|
|
10
10
|
export declare const setCiTriggerApp: (source: string) => void;
|
|
11
|
-
export declare const getExecutionRule: (test?: Test
|
|
12
|
-
export declare const getStrictestExecutionRule: (configRule: ExecutionRule, testRule?: ExecutionRule
|
|
11
|
+
export declare const getExecutionRule: (test?: Test, configOverride?: UserConfigOverride) => ExecutionRule;
|
|
12
|
+
export declare const getStrictestExecutionRule: (configRule: ExecutionRule, testRule?: ExecutionRule) => ExecutionRule;
|
|
13
13
|
export declare const isTestSupportedByTunnel: (test: Test) => boolean | undefined;
|
|
14
14
|
export declare const hasResultPassed: (result: ServerResult, hasTimedOut: boolean, failOnCriticalErrors: boolean, failOnTimeout: boolean) => boolean;
|
|
15
15
|
export declare const enum ResultOutcome {
|
|
@@ -29,24 +29,24 @@ export declare const waitForResults: (api: APIHelper, trigger: Trigger, tests: T
|
|
|
29
29
|
failOnTimeout?: boolean;
|
|
30
30
|
maxPollingTimeout: number;
|
|
31
31
|
subdomain: string;
|
|
32
|
-
}, reporter: MainReporter, tunnel?: Tunnel
|
|
33
|
-
export
|
|
32
|
+
}, reporter: MainReporter, tunnel?: Tunnel) => Promise<Result[]>;
|
|
33
|
+
export type InitialSummary = Omit<Summary, 'batchId'>;
|
|
34
34
|
export declare const createInitialSummary: () => InitialSummary;
|
|
35
35
|
export declare const getResultDuration: (result: ServerResult) => number;
|
|
36
36
|
export declare const getReporter: (reporters: Reporter[]) => MainReporter;
|
|
37
|
-
|
|
37
|
+
type NotFound = {
|
|
38
38
|
errorMessage: string;
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
type Skipped = {
|
|
41
41
|
overriddenConfig: TestPayload;
|
|
42
42
|
};
|
|
43
|
-
|
|
43
|
+
type TestWithOverride = {
|
|
44
44
|
test: Test;
|
|
45
45
|
overriddenConfig: TestPayload;
|
|
46
46
|
};
|
|
47
|
-
export declare const getTestAndOverrideConfig: (api: APIHelper, { config, id, suite }: TriggerConfig, reporter: MainReporter, summary: InitialSummary, isTunnelEnabled?: boolean
|
|
47
|
+
export declare const getTestAndOverrideConfig: (api: APIHelper, { config, id, suite }: TriggerConfig, reporter: MainReporter, summary: InitialSummary, isTunnelEnabled?: boolean) => Promise<NotFound | Skipped | TestWithOverride>;
|
|
48
48
|
export declare const isDeviceIdSet: (result: ServerResult) => result is Required<BrowserServerResult>;
|
|
49
|
-
export declare const getTestsToTrigger: (api: APIHelper, triggerConfigs: TriggerConfig[], reporter: MainReporter, triggerFromSearch?: boolean
|
|
49
|
+
export declare const getTestsToTrigger: (api: APIHelper, triggerConfigs: TriggerConfig[], reporter: MainReporter, triggerFromSearch?: boolean, failOnMissingTests?: boolean, isTunnelEnabled?: boolean) => Promise<{
|
|
50
50
|
tests: Test[];
|
|
51
51
|
overriddenTestsToTrigger: TestPayload[];
|
|
52
52
|
initialSummary: InitialSummary;
|
|
@@ -83,8 +83,8 @@ export declare const getExitReason: (config: Pick<RunTestsCommandConfig, 'failOn
|
|
|
83
83
|
results?: Result[] | undefined;
|
|
84
84
|
error?: unknown;
|
|
85
85
|
}) => "passed" | "failing-tests" | "missing-tests" | "critical-error";
|
|
86
|
-
export
|
|
87
|
-
export declare const toExitCode: (reason: ExitReason) =>
|
|
86
|
+
export type ExitReason = ReturnType<typeof getExitReason>;
|
|
87
|
+
export declare const toExitCode: (reason: ExitReason) => 0 | 1;
|
|
88
88
|
export declare const getDatadogHost: (hostConfig: {
|
|
89
89
|
apiVersion: 'v1' | 'unstable';
|
|
90
90
|
config: APIHelperConfig;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -71,7 +75,7 @@ exports.readableOperation = {
|
|
|
71
75
|
const template = (st, context) => st.replace(TEMPLATE_REGEX, (match, p1) => (p1 in context ? context[p1] : match));
|
|
72
76
|
exports.ciTriggerApp = process_1.default.env.DATADOG_SYNTHETICS_CI_TRIGGER_APP || 'npm_package';
|
|
73
77
|
const getOverriddenConfig = (test, publicId, reporter, config) => {
|
|
74
|
-
const executionRule = exports.getExecutionRule(test, config);
|
|
78
|
+
const executionRule = (0, exports.getExecutionRule)(test, config);
|
|
75
79
|
let overriddenConfig = {
|
|
76
80
|
executionRule,
|
|
77
81
|
public_id: publicId,
|
|
@@ -79,7 +83,7 @@ const getOverriddenConfig = (test, publicId, reporter, config) => {
|
|
|
79
83
|
if (!config || !Object.keys(config).length) {
|
|
80
84
|
return overriddenConfig;
|
|
81
85
|
}
|
|
82
|
-
overriddenConfig = Object.assign(Object.assign({}, overriddenConfig), utils_1.pick(config, [
|
|
86
|
+
overriddenConfig = Object.assign(Object.assign({}, overriddenConfig), (0, utils_1.pick)(config, [
|
|
83
87
|
'allowInsecureCertificates',
|
|
84
88
|
'basicAuth',
|
|
85
89
|
'body',
|
|
@@ -93,6 +97,7 @@ const getOverriddenConfig = (test, publicId, reporter, config) => {
|
|
|
93
97
|
'pollingTimeout',
|
|
94
98
|
'retry',
|
|
95
99
|
'startUrlSubstitutionRegex',
|
|
100
|
+
'testTimeout',
|
|
96
101
|
'tunnel',
|
|
97
102
|
'variables',
|
|
98
103
|
]));
|
|
@@ -109,7 +114,7 @@ exports.setCiTriggerApp = setCiTriggerApp;
|
|
|
109
114
|
const getExecutionRule = (test, configOverride) => {
|
|
110
115
|
var _a, _b, _c, _d;
|
|
111
116
|
if (configOverride && configOverride.executionRule) {
|
|
112
|
-
return exports.getStrictestExecutionRule(configOverride.executionRule, (_b = (_a = test === null || test === void 0 ? void 0 : test.options) === null || _a === void 0 ? void 0 : _a.ci) === null || _b === void 0 ? void 0 : _b.executionRule);
|
|
117
|
+
return (0, exports.getStrictestExecutionRule)(configOverride.executionRule, (_b = (_a = test === null || test === void 0 ? void 0 : test.options) === null || _a === void 0 ? void 0 : _a.ci) === null || _b === void 0 ? void 0 : _b.executionRule);
|
|
113
118
|
}
|
|
114
119
|
return ((_d = (_c = test === null || test === void 0 ? void 0 : test.options) === null || _c === void 0 ? void 0 : _c.ci) === null || _d === void 0 ? void 0 : _d.executionRule) || interfaces_1.ExecutionRule.BLOCKING;
|
|
115
120
|
};
|
|
@@ -154,19 +159,19 @@ const getResultOutcome = (result) => {
|
|
|
154
159
|
const executionRule = result.executionRule;
|
|
155
160
|
if (result.passed) {
|
|
156
161
|
if (executionRule === interfaces_1.ExecutionRule.NON_BLOCKING) {
|
|
157
|
-
return "passed-non-blocking" /* PassedNonBlocking */;
|
|
162
|
+
return "passed-non-blocking" /* ResultOutcome.PassedNonBlocking */;
|
|
158
163
|
}
|
|
159
|
-
return "passed" /* Passed */;
|
|
164
|
+
return "passed" /* ResultOutcome.Passed */;
|
|
160
165
|
}
|
|
161
166
|
if (executionRule === interfaces_1.ExecutionRule.NON_BLOCKING) {
|
|
162
|
-
return "failed-non-blocking" /* FailedNonBlocking */;
|
|
167
|
+
return "failed-non-blocking" /* ResultOutcome.FailedNonBlocking */;
|
|
163
168
|
}
|
|
164
|
-
return "failed" /* Failed */;
|
|
169
|
+
return "failed" /* ResultOutcome.Failed */;
|
|
165
170
|
};
|
|
166
171
|
exports.getResultOutcome = getResultOutcome;
|
|
167
172
|
const getSuites = (GLOB, reporter) => __awaiter(void 0, void 0, void 0, function* () {
|
|
168
173
|
reporter.log(`Finding files in ${path.join(process_1.default.cwd(), GLOB)}\n`);
|
|
169
|
-
const files = yield util_1.promisify(glob_1.default)(GLOB);
|
|
174
|
+
const files = yield (0, util_1.promisify)(glob_1.default)(GLOB);
|
|
170
175
|
if (files.length) {
|
|
171
176
|
reporter.log(`\nGot test files:\n${files.map((file) => ` - ${file}\n`).join('')}\n`);
|
|
172
177
|
}
|
|
@@ -175,8 +180,8 @@ const getSuites = (GLOB, reporter) => __awaiter(void 0, void 0, void 0, function
|
|
|
175
180
|
}
|
|
176
181
|
return Promise.all(files.map((file) => __awaiter(void 0, void 0, void 0, function* () {
|
|
177
182
|
try {
|
|
178
|
-
const content = yield util_1.promisify(fs.readFile)(file, 'utf8');
|
|
179
|
-
const suiteName = yield exports.getFilePathRelativeToRepo(file);
|
|
183
|
+
const content = yield (0, util_1.promisify)(fs.readFile)(file, 'utf8');
|
|
184
|
+
const suiteName = yield (0, exports.getFilePathRelativeToRepo)(file);
|
|
180
185
|
return { name: suiteName, content: JSON.parse(content) };
|
|
181
186
|
}
|
|
182
187
|
catch (e) {
|
|
@@ -190,7 +195,7 @@ const getFilePathRelativeToRepo = (filePath) => __awaiter(void 0, void 0, void 0
|
|
|
190
195
|
const filename = path.basename(filePath);
|
|
191
196
|
let relativeDirectory;
|
|
192
197
|
try {
|
|
193
|
-
const { stdout } = yield util_1.promisify(child_process_1.exec)('git rev-parse --show-toplevel');
|
|
198
|
+
const { stdout } = yield (0, util_1.promisify)(child_process_1.exec)('git rev-parse --show-toplevel');
|
|
194
199
|
const repoTopLevel = stdout.trim();
|
|
195
200
|
relativeDirectory = path.relative(repoTopLevel, parentDirectory);
|
|
196
201
|
}
|
|
@@ -216,7 +221,7 @@ const getBatch = (api, emittedResultIndexes, trigger, reporter) => __awaiter(voi
|
|
|
216
221
|
return currentBatch;
|
|
217
222
|
}
|
|
218
223
|
catch (e) {
|
|
219
|
-
throw new api_1.EndpointError(`Failed to get batch: ${api_1.formatBackendErrors(e)}\n`, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status);
|
|
224
|
+
throw new api_1.EndpointError(`Failed to get batch: ${(0, api_1.formatBackendErrors)(e)}\n`, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status);
|
|
220
225
|
}
|
|
221
226
|
});
|
|
222
227
|
const getTestByPublicId = (id, tests) => tests.find((t) => t.public_id === id);
|
|
@@ -229,16 +234,16 @@ const getPollResultMap = (api, batch) => __awaiter(void 0, void 0, void 0, funct
|
|
|
229
234
|
return pollResultMap;
|
|
230
235
|
}
|
|
231
236
|
catch (e) {
|
|
232
|
-
throw new api_1.EndpointError(`Failed to poll results: ${api_1.formatBackendErrors(e)}\n`, (_c = e.response) === null || _c === void 0 ? void 0 : _c.status);
|
|
237
|
+
throw new api_1.EndpointError(`Failed to poll results: ${(0, api_1.formatBackendErrors)(e)}\n`, (_c = e.response) === null || _c === void 0 ? void 0 : _c.status);
|
|
233
238
|
}
|
|
234
239
|
});
|
|
235
240
|
const getOrgSettings = (reporter, config) => __awaiter(void 0, void 0, void 0, function* () {
|
|
236
|
-
const apiHelper = api_1.getApiHelper(config);
|
|
241
|
+
const apiHelper = (0, api_1.getApiHelper)(config);
|
|
237
242
|
try {
|
|
238
243
|
return yield apiHelper.getSyntheticsOrgSettings();
|
|
239
244
|
}
|
|
240
245
|
catch (e) {
|
|
241
|
-
reporter.error(`Failed to get settings: ${api_1.formatBackendErrors(e)}`);
|
|
246
|
+
reporter.error(`Failed to get settings: ${(0, api_1.formatBackendErrors)(e)}`);
|
|
242
247
|
}
|
|
243
248
|
});
|
|
244
249
|
exports.getOrgSettings = getOrgSettings;
|
|
@@ -250,7 +255,7 @@ const waitForBatchToFinish = (api, maxPollingTimeout, trigger, reporter) => __aw
|
|
|
250
255
|
// let's add a check to ensure it eventually times out.
|
|
251
256
|
let hasExceededMaxPollingDate = Date.now() >= maxPollingDate;
|
|
252
257
|
while (batch.status === 'in_progress' && !hasExceededMaxPollingDate) {
|
|
253
|
-
yield exports.wait(POLLING_INTERVAL);
|
|
258
|
+
yield (0, exports.wait)(POLLING_INTERVAL);
|
|
254
259
|
batch = yield getBatch(api, emittedResultIndexes, trigger, reporter);
|
|
255
260
|
hasExceededMaxPollingDate = Date.now() >= maxPollingDate;
|
|
256
261
|
}
|
|
@@ -267,10 +272,10 @@ const getResultFromBatch = (getLocation, hasExceededMaxPollingDate, failOnCritic
|
|
|
267
272
|
return {
|
|
268
273
|
executionRule: resultInBatch.execution_rule,
|
|
269
274
|
location: getLocation(resultInBatch.location, test),
|
|
270
|
-
passed: exports.hasResultPassed(pollResult.result, hasTimeout, failOnCriticalErrors, failOnTimeout),
|
|
275
|
+
passed: (0, exports.hasResultPassed)(pollResult.result, hasTimeout, failOnCriticalErrors, failOnTimeout),
|
|
271
276
|
result: pollResult.result,
|
|
272
277
|
resultId: resultInBatch.result_id,
|
|
273
|
-
test: deep_extend_1.default({}, test, pollResult.check),
|
|
278
|
+
test: (0, deep_extend_1.default)({}, test, pollResult.check),
|
|
274
279
|
timedOut: hasTimeout,
|
|
275
280
|
timestamp: pollResult.timestamp,
|
|
276
281
|
};
|
|
@@ -284,7 +289,7 @@ const waitForResults = (api, trigger, tests, options, reporter, tunnel) => __awa
|
|
|
284
289
|
.then(() => (isTunnelConnected = false))
|
|
285
290
|
.catch(() => (isTunnelConnected = false));
|
|
286
291
|
}
|
|
287
|
-
reporter.testsWait(tests, exports.getAppBaseURL(options), trigger.batch_id);
|
|
292
|
+
reporter.testsWait(tests, (0, exports.getAppBaseURL)(options), trigger.batch_id);
|
|
288
293
|
const { batch, hasExceededMaxPollingDate } = yield waitForBatchToFinish(api, options.maxPollingTimeout, trigger, reporter);
|
|
289
294
|
if (tunnel && !isTunnelConnected) {
|
|
290
295
|
reporter.error('The tunnel has stopped working, this may have affected the results.');
|
|
@@ -294,7 +299,7 @@ const waitForResults = (api, trigger, tests, options, reporter, tunnel) => __awa
|
|
|
294
299
|
return mapping;
|
|
295
300
|
}, {});
|
|
296
301
|
const getLocation = (dcId, test) => {
|
|
297
|
-
const hasTunnel = !!tunnel && exports.isTestSupportedByTunnel(test);
|
|
302
|
+
const hasTunnel = !!tunnel && (0, exports.isTestSupportedByTunnel)(test);
|
|
298
303
|
return hasTunnel ? 'Tunneled' : locationNames[dcId] || dcId;
|
|
299
304
|
};
|
|
300
305
|
const pollResultMap = yield getPollResultMap(api, batch);
|
|
@@ -405,11 +410,11 @@ const getTest = (api, { id, suite }) => __awaiter(void 0, void 0, void 0, functi
|
|
|
405
410
|
return { test };
|
|
406
411
|
}
|
|
407
412
|
catch (error) {
|
|
408
|
-
if (api_1.isNotFoundError(error)) {
|
|
409
|
-
const errorMessage = api_1.formatBackendErrors(error);
|
|
413
|
+
if ((0, api_1.isNotFoundError)(error)) {
|
|
414
|
+
const errorMessage = (0, api_1.formatBackendErrors)(error);
|
|
410
415
|
return { errorMessage: `[${chalk_1.default.bold.dim(id)}] ${chalk_1.default.yellow.bold('Test not found')}: ${errorMessage}` };
|
|
411
416
|
}
|
|
412
|
-
throw new api_1.EndpointError(`Failed to get test: ${api_1.formatBackendErrors(error)}\n`, (_d = error.response) === null || _d === void 0 ? void 0 : _d.status);
|
|
417
|
+
throw new api_1.EndpointError(`Failed to get test: ${(0, api_1.formatBackendErrors)(error)}\n`, (_d = error.response) === null || _d === void 0 ? void 0 : _d.status);
|
|
413
418
|
}
|
|
414
419
|
});
|
|
415
420
|
// XXX: We shouldn't export functions that take an `APIHelper` because the `utils` module is exported while `api` is not.
|
|
@@ -421,14 +426,14 @@ const getTestAndOverrideConfig = (api, { config, id, suite }, reporter, summary,
|
|
|
421
426
|
return { errorMessage: testResult.errorMessage };
|
|
422
427
|
}
|
|
423
428
|
const { test } = testResult;
|
|
424
|
-
const overriddenConfig = exports.getOverriddenConfig(test, normalizedId, reporter, config);
|
|
429
|
+
const overriddenConfig = (0, exports.getOverriddenConfig)(test, normalizedId, reporter, config);
|
|
425
430
|
reporter.testTrigger(test, normalizedId, overriddenConfig.executionRule, config);
|
|
426
431
|
if (overriddenConfig.executionRule === interfaces_1.ExecutionRule.SKIPPED) {
|
|
427
432
|
summary.skipped++;
|
|
428
433
|
return { overriddenConfig };
|
|
429
434
|
}
|
|
430
435
|
reporter.testWait(test);
|
|
431
|
-
if (isTunnelEnabled && !exports.isTestSupportedByTunnel(test)) {
|
|
436
|
+
if (isTunnelEnabled && !(0, exports.isTestSupportedByTunnel)(test)) {
|
|
432
437
|
const details = [`public ID: ${test.public_id}`, `type: ${test.type}`];
|
|
433
438
|
if (test.subtype) {
|
|
434
439
|
details.push(`sub-type: ${test.subtype}`);
|
|
@@ -456,8 +461,8 @@ const getTestsToTrigger = (api, triggerConfigs, reporter, triggerFromSearch, fai
|
|
|
456
461
|
const maxTests = chalk_1.default.bold(run_tests_command_1.MAX_TESTS_TO_TRIGGER);
|
|
457
462
|
errorMessages.push(chalk_1.default.yellow(`More than ${maxTests} tests returned by search query, only the first ${maxTests} were fetched.\n`));
|
|
458
463
|
}
|
|
459
|
-
const initialSummary = exports.createInitialSummary();
|
|
460
|
-
const testsAndConfigsOverride = yield Promise.all(triggerConfigs.map((triggerConfig) => exports.getTestAndOverrideConfig(api, triggerConfig, reporter, initialSummary, isTunnelEnabled)));
|
|
464
|
+
const initialSummary = (0, exports.createInitialSummary)();
|
|
465
|
+
const testsAndConfigsOverride = yield Promise.all(triggerConfigs.map((triggerConfig) => (0, exports.getTestAndOverrideConfig)(api, triggerConfig, reporter, initialSummary, isTunnelEnabled)));
|
|
461
466
|
// Keep track of uploaded applications to avoid uploading them twice.
|
|
462
467
|
const uploadedApplicationByPath = {};
|
|
463
468
|
for (const item of testsAndConfigsOverride) {
|
|
@@ -469,7 +474,7 @@ const getTestsToTrigger = (api, triggerConfigs, reporter, triggerFromSearch, fai
|
|
|
469
474
|
if (test.type === 'mobile') {
|
|
470
475
|
const { config: userConfigOverride } = triggerConfigs.find(({ id }) => id === test.public_id);
|
|
471
476
|
try {
|
|
472
|
-
yield mobile_1.uploadApplicationAndOverrideConfig(api, test, userConfigOverride, overriddenConfig, uploadedApplicationByPath);
|
|
477
|
+
yield (0, mobile_1.uploadApplicationAndOverrideConfig)(api, test, userConfigOverride, overriddenConfig, uploadedApplicationByPath);
|
|
473
478
|
}
|
|
474
479
|
catch (e) {
|
|
475
480
|
throw new errors_1.CriticalError('UPLOAD_MOBILE_APPLICATION_TESTS_FAILED', e.message);
|
|
@@ -511,7 +516,7 @@ const runTests = (api, testsToTrigger) => __awaiter(void 0, void 0, void 0, func
|
|
|
511
516
|
const tagsToLimit = {
|
|
512
517
|
[tags_1.GIT_COMMIT_MESSAGE]: 500,
|
|
513
518
|
};
|
|
514
|
-
const ciMetadata = ci_1.getCIMetadata(tagsToLimit);
|
|
519
|
+
const ciMetadata = (0, ci_1.getCIMetadata)(tagsToLimit);
|
|
515
520
|
if (ciMetadata) {
|
|
516
521
|
payload.metadata = ciMetadata;
|
|
517
522
|
}
|
|
@@ -519,7 +524,7 @@ const runTests = (api, testsToTrigger) => __awaiter(void 0, void 0, void 0, func
|
|
|
519
524
|
return yield api.triggerTests(payload);
|
|
520
525
|
}
|
|
521
526
|
catch (e) {
|
|
522
|
-
const errorMessage = api_1.formatBackendErrors(e);
|
|
527
|
+
const errorMessage = (0, api_1.formatBackendErrors)(e);
|
|
523
528
|
const testIds = testsToTrigger.map((t) => t.public_id).join(',');
|
|
524
529
|
// Rewrite error message
|
|
525
530
|
throw new api_1.EndpointError(`[${testIds}] Failed to trigger tests: ${errorMessage}\n`, (_e = e.response) === null || _e === void 0 ? void 0 : _e.status);
|
|
@@ -527,7 +532,7 @@ const runTests = (api, testsToTrigger) => __awaiter(void 0, void 0, void 0, func
|
|
|
527
532
|
});
|
|
528
533
|
exports.runTests = runTests;
|
|
529
534
|
const fetchTest = (publicId, config) => __awaiter(void 0, void 0, void 0, function* () {
|
|
530
|
-
const apiHelper = api_1.getApiHelper(config);
|
|
535
|
+
const apiHelper = (0, api_1.getApiHelper)(config);
|
|
531
536
|
return apiHelper.getTest(publicId);
|
|
532
537
|
});
|
|
533
538
|
exports.fetchTest = fetchTest;
|
|
@@ -539,7 +544,7 @@ const retry = (func, shouldRetryAfterWait) => __awaiter(void 0, void 0, void 0,
|
|
|
539
544
|
catch (e) {
|
|
540
545
|
const waiter = shouldRetryAfterWait(retries, e);
|
|
541
546
|
if (waiter) {
|
|
542
|
-
yield exports.wait(waiter);
|
|
547
|
+
yield (0, exports.wait)(waiter);
|
|
543
548
|
return trier(retries + 1);
|
|
544
549
|
}
|
|
545
550
|
throw e;
|
|
@@ -570,7 +575,7 @@ exports.parseVariablesFromCli = parseVariablesFromCli;
|
|
|
570
575
|
// XXX: `CommandConfig` should be replaced by `SyntheticsCIConfig` here because it's the smallest
|
|
571
576
|
// interface that we need, and it's better semantically.
|
|
572
577
|
const getAppBaseURL = ({ datadogSite, subdomain }) => {
|
|
573
|
-
return app_1.getCommonAppBaseURL(datadogSite, subdomain);
|
|
578
|
+
return (0, app_1.getCommonAppBaseURL)(datadogSite, subdomain);
|
|
574
579
|
};
|
|
575
580
|
exports.getAppBaseURL = getAppBaseURL;
|
|
576
581
|
const getBatchUrl = (baseUrl, batchId) => `${baseUrl}synthetics/explorer/ci?batchResultId=${batchId}`;
|
|
@@ -592,12 +597,12 @@ exports.getResultUrl = getResultUrl;
|
|
|
592
597
|
*/
|
|
593
598
|
const sortResultsByOutcome = () => {
|
|
594
599
|
const outcomeWeight = {
|
|
595
|
-
["passed-non-blocking" /* PassedNonBlocking */]: 1,
|
|
596
|
-
["passed" /* Passed */]: 2,
|
|
597
|
-
["failed-non-blocking" /* FailedNonBlocking */]: 3,
|
|
598
|
-
["failed" /* Failed */]: 4,
|
|
600
|
+
["passed-non-blocking" /* ResultOutcome.PassedNonBlocking */]: 1,
|
|
601
|
+
["passed" /* ResultOutcome.Passed */]: 2,
|
|
602
|
+
["failed-non-blocking" /* ResultOutcome.FailedNonBlocking */]: 3,
|
|
603
|
+
["failed" /* ResultOutcome.Failed */]: 4,
|
|
599
604
|
};
|
|
600
|
-
return (r1, r2) => outcomeWeight[exports.getResultOutcome(r1)] - outcomeWeight[exports.getResultOutcome(r2)];
|
|
605
|
+
return (r1, r2) => outcomeWeight[(0, exports.getResultOutcome)(r1)] - outcomeWeight[(0, exports.getResultOutcome)(r2)];
|
|
601
606
|
};
|
|
602
607
|
exports.sortResultsByOutcome = sortResultsByOutcome;
|
|
603
608
|
const renderResults = ({ config, orgSettings, reporter, results, startTime, summary, }) => {
|
|
@@ -612,7 +617,7 @@ const renderResults = ({ config, orgSettings, reporter, results, startTime, summ
|
|
|
612
617
|
summary.criticalErrors = 0;
|
|
613
618
|
}
|
|
614
619
|
}
|
|
615
|
-
const sortedResults = results.sort(exports.sortResultsByOutcome());
|
|
620
|
+
const sortedResults = results.sort((0, exports.sortResultsByOutcome)());
|
|
616
621
|
for (const result of sortedResults) {
|
|
617
622
|
if (!config.failOnTimeout && result.timedOut) {
|
|
618
623
|
summary.timedOut++;
|
|
@@ -620,19 +625,19 @@ const renderResults = ({ config, orgSettings, reporter, results, startTime, summ
|
|
|
620
625
|
if (result.result.unhealthy && !config.failOnCriticalErrors) {
|
|
621
626
|
summary.criticalErrors++;
|
|
622
627
|
}
|
|
623
|
-
const resultOutcome = exports.getResultOutcome(result);
|
|
624
|
-
if (["passed" /* Passed */, "passed-non-blocking" /* PassedNonBlocking */].includes(resultOutcome)) {
|
|
628
|
+
const resultOutcome = (0, exports.getResultOutcome)(result);
|
|
629
|
+
if (["passed" /* ResultOutcome.Passed */, "passed-non-blocking" /* ResultOutcome.PassedNonBlocking */].includes(resultOutcome)) {
|
|
625
630
|
summary.passed++;
|
|
626
631
|
}
|
|
627
|
-
else if (resultOutcome === "failed-non-blocking" /* FailedNonBlocking */) {
|
|
632
|
+
else if (resultOutcome === "failed-non-blocking" /* ResultOutcome.FailedNonBlocking */) {
|
|
628
633
|
summary.failedNonBlocking++;
|
|
629
634
|
}
|
|
630
635
|
else {
|
|
631
636
|
summary.failed++;
|
|
632
637
|
}
|
|
633
|
-
reporter.resultEnd(result, exports.getAppBaseURL(config));
|
|
638
|
+
reporter.resultEnd(result, (0, exports.getAppBaseURL)(config));
|
|
634
639
|
}
|
|
635
|
-
reporter.runEnd(summary, exports.getAppBaseURL(config), orgSettings);
|
|
640
|
+
reporter.runEnd(summary, (0, exports.getAppBaseURL)(config), orgSettings);
|
|
636
641
|
};
|
|
637
642
|
exports.renderResults = renderResults;
|
|
638
643
|
const reportExitLogs = (reporter, config, { results, error }) => {
|
|
@@ -645,12 +650,12 @@ const reportExitLogs = (reporter, config, { results, error }) => {
|
|
|
645
650
|
'Use `failOnCriticalErrors: true` to make it fail instead.\n'));
|
|
646
651
|
}
|
|
647
652
|
if (error instanceof errors_1.CiError) {
|
|
648
|
-
exports.reportCiError(error, reporter);
|
|
653
|
+
(0, exports.reportCiError)(error, reporter);
|
|
649
654
|
}
|
|
650
655
|
};
|
|
651
656
|
exports.reportExitLogs = reportExitLogs;
|
|
652
657
|
const getExitReason = (config, { results, error }) => {
|
|
653
|
-
if (results === null || results === void 0 ? void 0 : results.some((result) => exports.getResultOutcome(result) === "failed" /* Failed */)) {
|
|
658
|
+
if (results === null || results === void 0 ? void 0 : results.some((result) => (0, exports.getResultOutcome)(result) === "failed" /* ResultOutcome.Failed */)) {
|
|
654
659
|
return 'failing-tests';
|
|
655
660
|
}
|
|
656
661
|
if (error instanceof errors_1.CiError) {
|