@datadog/datadog-ci-base 5.2.1 → 5.3.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 CHANGED
@@ -2,11 +2,13 @@ export declare const commands: {
2
2
  aas: typeof import("./commands/aas/uninstrument").AasUninstrumentCommand[];
3
3
  'cloud-run': (typeof import("./commands/cloud-run/flare").CloudRunFlareCommand | typeof import("./commands/cloud-run/instrument").CloudRunInstrumentCommand | typeof import("./commands/cloud-run/uninstrument").CloudRunUninstrumentCommand)[];
4
4
  'container-app': (typeof import("./commands/container-app/instrument").ContainerAppInstrumentCommand | typeof import("./commands/container-app/uninstrument").ContainerAppUninstrumentCommand)[];
5
+ coverage: typeof import("./commands/coverage/upload").CoverageUploadCommand[];
5
6
  deployment: (typeof import("./commands/deployment/correlate-image").DeploymentCorrelateImageCommand | typeof import("./commands/deployment/correlate").DeploymentCorrelateCommand | typeof import("./commands/deployment/gate").DeploymentGateCommand | typeof import("./commands/deployment/mark").DeploymentMarkCommand)[];
6
7
  dora: typeof import("./commands/dora/deployment").DoraDeploymentCommand[];
7
8
  dsyms: typeof import("./commands/dsyms/upload").DsymsUploadCommand[];
8
9
  gate: typeof import("./commands/gate/evaluate").GateEvaluateCommand[];
9
10
  'git-metadata': typeof import("./commands/git-metadata/upload").GitMetadataUploadCommand[];
11
+ junit: typeof import("./commands/junit/upload").JunitUploadCommand[];
10
12
  lambda: (typeof import("./commands/lambda/flare").LambdaFlareCommand | typeof import("./commands/lambda/instrument").LambdaInstrumentCommand | typeof import("./commands/lambda/uninstrument").LambdaUninstrumentCommand)[];
11
13
  plugin: (typeof import("./commands/plugin/install").PluginInstallCommand | typeof import("./commands/plugin/list").PluginListCommand)[];
12
14
  sarif: typeof import("./commands/sarif/upload").SarifUploadCommand[];
package/dist/cli.js CHANGED
@@ -4,35 +4,39 @@ exports.noPluginExceptions = exports.commands = void 0;
4
4
  const cli_1 = require("./commands/aas/cli");
5
5
  const cli_2 = require("./commands/cloud-run/cli");
6
6
  const cli_3 = require("./commands/container-app/cli");
7
- const cli_4 = require("./commands/deployment/cli");
8
- const cli_5 = require("./commands/dora/cli");
9
- const cli_6 = require("./commands/dsyms/cli");
10
- const cli_7 = require("./commands/gate/cli");
11
- const cli_8 = require("./commands/git-metadata/cli");
12
- const cli_9 = require("./commands/lambda/cli");
13
- const cli_10 = require("./commands/plugin/cli");
14
- const cli_11 = require("./commands/sarif/cli");
15
- const cli_12 = require("./commands/sbom/cli");
16
- const cli_13 = require("./commands/stepfunctions/cli");
17
- const cli_14 = require("./commands/synthetics/cli");
18
- const cli_15 = require("./commands/tag/cli");
7
+ const cli_4 = require("./commands/coverage/cli");
8
+ const cli_5 = require("./commands/deployment/cli");
9
+ const cli_6 = require("./commands/dora/cli");
10
+ const cli_7 = require("./commands/dsyms/cli");
11
+ const cli_8 = require("./commands/gate/cli");
12
+ const cli_9 = require("./commands/git-metadata/cli");
13
+ const cli_10 = require("./commands/junit/cli");
14
+ const cli_11 = require("./commands/lambda/cli");
15
+ const cli_12 = require("./commands/plugin/cli");
16
+ const cli_13 = require("./commands/sarif/cli");
17
+ const cli_14 = require("./commands/sbom/cli");
18
+ const cli_15 = require("./commands/stepfunctions/cli");
19
+ const cli_16 = require("./commands/synthetics/cli");
20
+ const cli_17 = require("./commands/tag/cli");
19
21
  // prettier-ignore
20
22
  exports.commands = {
21
23
  'aas': cli_1.commands,
22
24
  'cloud-run': cli_2.commands,
23
25
  'container-app': cli_3.commands,
24
- 'deployment': cli_4.commands,
25
- 'dora': cli_5.commands,
26
- 'dsyms': cli_6.commands,
27
- 'gate': cli_7.commands,
28
- 'git-metadata': cli_8.commands,
29
- 'lambda': cli_9.commands,
30
- 'plugin': cli_10.commands,
31
- 'sarif': cli_11.commands,
32
- 'sbom': cli_12.commands,
33
- 'stepfunctions': cli_13.commands,
34
- 'synthetics': cli_14.commands,
35
- 'tag': cli_15.commands,
26
+ 'coverage': cli_4.commands,
27
+ 'deployment': cli_5.commands,
28
+ 'dora': cli_6.commands,
29
+ 'dsyms': cli_7.commands,
30
+ 'gate': cli_8.commands,
31
+ 'git-metadata': cli_9.commands,
32
+ 'junit': cli_10.commands,
33
+ 'lambda': cli_11.commands,
34
+ 'plugin': cli_12.commands,
35
+ 'sarif': cli_13.commands,
36
+ 'sbom': cli_14.commands,
37
+ 'stepfunctions': cli_15.commands,
38
+ 'synthetics': cli_16.commands,
39
+ 'tag': cli_17.commands,
36
40
  };
37
41
  /**
38
42
  * Some command scopes do not have a plugin package, and their logic is entirely included in `@datadog/datadog-ci-base`.
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;AAGA,4CAA0D;AAC1D,kDAAqE;AACrE,sDAA6E;AAC7E,mDAAwE;AACxE,6CAA4D;AAC5D,8CAA8D;AAC9D,6CAA4D;AAC5D,qDAA2E;AAC3E,+CAAgE;AAChE,gDAAgE;AAChE,+CAA8D;AAC9D,8CAA4D;AAC5D,uDAA8E;AAC9E,oDAAwE;AACxE,6CAA0D;AAE1D,kBAAkB;AACL,QAAA,QAAQ,GAAG;IACtB,KAAK,EAAE,cAAW;IAClB,WAAW,EAAE,cAAgB;IAC7B,eAAe,EAAE,cAAoB;IACrC,YAAY,EAAE,cAAkB;IAChC,MAAM,EAAE,cAAY;IACpB,OAAO,EAAE,cAAa;IACtB,MAAM,EAAE,cAAY;IACpB,cAAc,EAAE,cAAmB;IACnC,QAAQ,EAAE,cAAc;IACxB,QAAQ,EAAE,eAAc;IACxB,OAAO,EAAE,eAAa;IACtB,MAAM,EAAE,eAAY;IACpB,eAAe,EAAE,eAAqB;IACtC,YAAY,EAAE,eAAkB;IAChC,KAAK,EAAE,eAAW;CACe,CAAA;AAEnC;;GAEG;AACU,QAAA,kBAAkB,GAAgB,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,KAAK,CAAC,CAEhG,CAAA"}
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;AAGA,4CAA0D;AAC1D,kDAAqE;AACrE,sDAA6E;AAC7E,iDAAoE;AACpE,mDAAwE;AACxE,6CAA4D;AAC5D,8CAA8D;AAC9D,6CAA4D;AAC5D,qDAA2E;AAC3E,+CAA8D;AAC9D,gDAAgE;AAChE,gDAAgE;AAChE,+CAA8D;AAC9D,8CAA4D;AAC5D,uDAA8E;AAC9E,oDAAwE;AACxE,6CAA0D;AAE1D,kBAAkB;AACL,QAAA,QAAQ,GAAG;IACtB,KAAK,EAAE,cAAW;IAClB,WAAW,EAAE,cAAgB;IAC7B,eAAe,EAAE,cAAoB;IACrC,UAAU,EAAE,cAAgB;IAC5B,YAAY,EAAE,cAAkB;IAChC,MAAM,EAAE,cAAY;IACpB,OAAO,EAAE,cAAa;IACtB,MAAM,EAAE,cAAY;IACpB,cAAc,EAAE,cAAmB;IACnC,OAAO,EAAE,eAAa;IACtB,QAAQ,EAAE,eAAc;IACxB,QAAQ,EAAE,eAAc;IACxB,OAAO,EAAE,eAAa;IACtB,MAAM,EAAE,eAAY;IACpB,eAAe,EAAE,eAAqB;IACtC,YAAY,EAAE,eAAkB;IAChC,KAAK,EAAE,eAAW;CACe,CAAA;AAEnC;;GAEG;AACU,QAAA,kBAAkB,GAAgB,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,KAAK,CAAC,CAEhG,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { CoverageUploadCommand } from './upload';
2
+ export declare const commands: (typeof CoverageUploadCommand)[];
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commands = void 0;
4
+ /* eslint-disable import-x/order */
5
+ const upload_1 = require("./upload");
6
+ // prettier-ignore
7
+ exports.commands = [
8
+ upload_1.CoverageUploadCommand,
9
+ ];
10
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/commands/coverage/cli.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,qCAA8C;AAE9C,kBAAkB;AACL,QAAA,QAAQ,GAAG;IACtB,8BAAqB;CACtB,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { BaseCommand } from '../..';
2
+ export declare class CoverageUploadCommand extends BaseCommand {
3
+ static paths: string[][];
4
+ static usage: import("clipanion").Usage;
5
+ protected reportPaths: string[];
6
+ protected measures: string[] | undefined;
7
+ protected tags: string[] | undefined;
8
+ protected format: string | undefined;
9
+ protected uploadGitDiff: boolean;
10
+ protected skipGitMetadataUpload: boolean;
11
+ protected gitRepositoryURL: string | undefined;
12
+ protected basePath: string | undefined;
13
+ protected ignoredPaths: string | undefined;
14
+ protected fips: boolean;
15
+ protected fipsIgnoreError: boolean;
16
+ protected verbose: boolean;
17
+ protected dryRun: boolean;
18
+ execute(): Promise<number | void>;
19
+ }
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CoverageUploadCommand = void 0;
13
+ const clipanion_1 = require("clipanion");
14
+ const plugin_1 = require("@datadog/datadog-ci-base/helpers/plugin");
15
+ const __1 = require("../..");
16
+ class CoverageUploadCommand extends __1.BaseCommand {
17
+ constructor() {
18
+ super(...arguments);
19
+ this.reportPaths = clipanion_1.Option.Rest({ required: 1 });
20
+ this.measures = clipanion_1.Option.Array('--measures', {
21
+ description: 'Custom measures to add to the coverage event in the format key:value, max 100 measures per coverage event',
22
+ });
23
+ this.tags = clipanion_1.Option.Array('--tags', {
24
+ description: 'Custom tags to add to the coverage event in the format key:value, max 100 tags per coverage event',
25
+ });
26
+ this.format = clipanion_1.Option.String('--format', { description: 'The format of the coverage report files' });
27
+ this.uploadGitDiff = clipanion_1.Option.Boolean('--upload-git-diff', true, {
28
+ description: 'If the command is run in a PR context, it will try to upload the PR git diff along with the coverage data',
29
+ });
30
+ this.skipGitMetadataUpload = clipanion_1.Option.Boolean('--skip-git-metadata-upload', false, {
31
+ description: 'Skip the upload of git metadata',
32
+ });
33
+ this.gitRepositoryURL = clipanion_1.Option.String('--git-repository-url', {
34
+ description: 'The repository URL to retrieve git metadata from',
35
+ });
36
+ this.basePath = clipanion_1.Option.String('--base-path', { description: 'The base path to the coverage report files' });
37
+ this.ignoredPaths = clipanion_1.Option.String('--ignored-paths', {
38
+ description: 'A comma-separated list of paths that should be excluded from automatic reports discovery (only applicable when `--auto-discovery` is set). Glob patterns are supported.',
39
+ });
40
+ this.fips = clipanion_1.Option.Boolean('--fips', false, { description: 'Enable FIPS mode for the command' });
41
+ this.fipsIgnoreError = clipanion_1.Option.Boolean('--fips-ignore-error', false, {
42
+ description: 'Ignore FIPS errors and continue execution',
43
+ });
44
+ this.verbose = clipanion_1.Option.Boolean('--verbose', false, { hidden: true });
45
+ this.dryRun = clipanion_1.Option.Boolean('--dry-run', false, {
46
+ description: 'Run the command in dry run mode, without uploading any data to Datadog',
47
+ });
48
+ }
49
+ execute() {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ return (0, plugin_1.executePluginCommand)(this);
52
+ });
53
+ }
54
+ }
55
+ exports.CoverageUploadCommand = CoverageUploadCommand;
56
+ CoverageUploadCommand.paths = [['coverage', 'upload']];
57
+ CoverageUploadCommand.usage = clipanion_1.Command.Usage({
58
+ category: 'CI Visibility',
59
+ description: 'Upload code coverage reports files to Datadog.',
60
+ details: `
61
+ This command will upload code coverage report files to Datadog.\n
62
+ See README for details.
63
+ `,
64
+ examples: [
65
+ ['Upload all code coverage report files in current directory and its subfolders', 'datadog-ci coverage upload .'],
66
+ [
67
+ 'Upload all code coverage report files in current directory and its subfolders, ignoring src/ignored-module-a and src/ignored-module-b',
68
+ 'datadog-ci coverage upload --ignored-paths src/ignored-module-a,src/ignored-module-b .',
69
+ ],
70
+ [
71
+ 'Upload all code coverage report files in src/unit-test-coverage and src/acceptance-test-coverage',
72
+ 'datadog-ci coverage upload src/unit-test-coverage src/acceptance-test-coverage',
73
+ ],
74
+ [
75
+ 'Upload all XML code coverage report files in /coverage/ folders, ignoring src/ignored-module-a',
76
+ 'datadog-ci coverage upload **/coverage/*.xml --ignored-paths src/ignored-module-a',
77
+ ],
78
+ [
79
+ 'Upload all code coverage report files in current directory and add extra tags globally',
80
+ 'datadog-ci coverage upload --tags key1:value1 --tags key2:value2 .',
81
+ ],
82
+ [
83
+ 'Upload all code coverage report files in current directory and add extra measures globally',
84
+ 'datadog-ci coverage upload --measures key1:123 --measures key2:321 .',
85
+ ],
86
+ [
87
+ 'Upload all code coverage report files in current directory to the datadoghq.eu site',
88
+ 'DD_SITE=datadoghq.eu datadog-ci coverage upload .',
89
+ ],
90
+ [
91
+ 'Upload all code coverage report files in current directory with extra verbosity',
92
+ 'datadog-ci coverage upload --verbose .',
93
+ ],
94
+ ],
95
+ });
96
+ //# sourceMappingURL=upload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload.js","sourceRoot":"","sources":["../../../src/commands/coverage/upload.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAyC;AAEzC,oEAA4E;AAE5E,6BAAiC;AAEjC,MAAa,qBAAsB,SAAQ,eAAW;IAAtD;;QA2CY,gBAAW,GAAG,kBAAM,CAAC,IAAI,CAAC,EAAC,QAAQ,EAAE,CAAC,EAAC,CAAC,CAAA;QACx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AW,EAAE,KAAK,EAAE;YACpD,WAAW,EAAE,wEAAwE;SACtF,CAAC,CAAA;IAKJ,CAAC;IAHc,OAAO;;YAClB,OAAO,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAA;QACnC,CAAC;KAAA;;AAjFH,sDAkFC;AAjFe,2BAAK,GAAG,CAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,AAA3B,CAA2B;AAEhC,2BAAK,GAAG,mBAAO,CAAC,KAAK,CAAC;IAClC,QAAQ,EAAE,eAAe;IACzB,WAAW,EAAE,gDAAgD;IAC7D,OAAO,EAAE;;;KAGR;IACD,QAAQ,EAAE;QACR,CAAC,+EAA+E,EAAE,8BAA8B,CAAC;QACjH;YACE,uIAAuI;YACvI,wFAAwF;SACzF;QACD;YACE,kGAAkG;YAClG,gFAAgF;SACjF;QACD;YACE,gGAAgG;YAChG,mFAAmF;SACpF;QACD;YACE,wFAAwF;YACxF,oEAAoE;SACrE;QACD;YACE,4FAA4F;YAC5F,sEAAsE;SACvE;QACD;YACE,qFAAqF;YACrF,mDAAmD;SACpD;QACD;YACE,iFAAiF;YACjF,wCAAwC;SACzC;KACF;CACF,CAAC,AAtCiB,CAsCjB"}
@@ -0,0 +1,2 @@
1
+ import { JunitUploadCommand } from './upload';
2
+ export declare const commands: (typeof JunitUploadCommand)[];
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commands = void 0;
4
+ /* eslint-disable import-x/order */
5
+ const upload_1 = require("./upload");
6
+ // prettier-ignore
7
+ exports.commands = [
8
+ upload_1.JunitUploadCommand,
9
+ ];
10
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/commands/junit/cli.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,qCAA2C;AAE3C,kBAAkB;AACL,QAAA,QAAQ,GAAG;IACtB,2BAAkB;CACnB,CAAA"}
@@ -0,0 +1,24 @@
1
+ import { BaseCommand } from '@datadog/datadog-ci-base';
2
+ export declare class JunitUploadCommand extends BaseCommand {
3
+ static paths: string[][];
4
+ static usage: import("clipanion").Usage;
5
+ basePaths: string[];
6
+ verbose: boolean;
7
+ dryRun: boolean;
8
+ env: string | undefined;
9
+ logs: boolean;
10
+ maxConcurrency: number;
11
+ measures: string[] | undefined;
12
+ service: string | undefined;
13
+ tags: string[] | undefined;
14
+ reportTags: string[] | undefined;
15
+ reportMeasures: string[] | undefined;
16
+ rawXPathTags: string[] | undefined;
17
+ gitRepositoryURL: string | undefined;
18
+ skipGitMetadataUpload: boolean;
19
+ automaticReportsDiscovery: boolean;
20
+ ignoredPaths: string | undefined;
21
+ fips: boolean;
22
+ fipsIgnoreError: boolean;
23
+ execute(): Promise<number | void>;
24
+ }
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
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);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
+ return new (P || (P = Promise))(function (resolve, reject) {
28
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
32
+ });
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ exports.JunitUploadCommand = void 0;
36
+ const clipanion_1 = require("clipanion");
37
+ const t = __importStar(require("typanion"));
38
+ const datadog_ci_base_1 = require("@datadog/datadog-ci-base");
39
+ const validation = __importStar(require("@datadog/datadog-ci-base/helpers/validation"));
40
+ const plugin_1 = require("../../helpers/plugin");
41
+ class JunitUploadCommand extends datadog_ci_base_1.BaseCommand {
42
+ constructor() {
43
+ super(...arguments);
44
+ this.basePaths = clipanion_1.Option.Rest({ required: 1 });
45
+ this.verbose = clipanion_1.Option.Boolean('--verbose', false);
46
+ this.dryRun = clipanion_1.Option.Boolean('--dry-run', false);
47
+ this.env = clipanion_1.Option.String('--env');
48
+ this.logs = clipanion_1.Option.String('--logs', 'false', {
49
+ env: 'DD_CIVISIBILITY_LOGS_ENABLED',
50
+ tolerateBoolean: true,
51
+ validator: t.isBoolean(),
52
+ });
53
+ this.maxConcurrency = clipanion_1.Option.String('--max-concurrency', '20', { validator: validation.isInteger() });
54
+ this.measures = clipanion_1.Option.Array('--measures');
55
+ this.service = clipanion_1.Option.String('--service', { env: 'DD_SERVICE' });
56
+ this.tags = clipanion_1.Option.Array('--tags');
57
+ this.reportTags = clipanion_1.Option.Array('--report-tags');
58
+ this.reportMeasures = clipanion_1.Option.Array('--report-measures');
59
+ this.rawXPathTags = clipanion_1.Option.Array('--xpath-tag');
60
+ this.gitRepositoryURL = clipanion_1.Option.String('--git-repository-url');
61
+ this.skipGitMetadataUpload = clipanion_1.Option.String('--skip-git-metadata-upload', 'false', {
62
+ validator: t.isBoolean(),
63
+ tolerateBoolean: true,
64
+ });
65
+ this.automaticReportsDiscovery = clipanion_1.Option.String('--auto-discovery', 'false', {
66
+ validator: t.isBoolean(),
67
+ tolerateBoolean: true,
68
+ });
69
+ this.ignoredPaths = clipanion_1.Option.String('--ignored-paths');
70
+ this.fips = clipanion_1.Option.Boolean('--fips', false);
71
+ this.fipsIgnoreError = clipanion_1.Option.Boolean('--fips-ignore-error', false);
72
+ }
73
+ execute() {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ return (0, plugin_1.executePluginCommand)(this);
76
+ });
77
+ }
78
+ }
79
+ exports.JunitUploadCommand = JunitUploadCommand;
80
+ JunitUploadCommand.paths = [['junit', 'upload']];
81
+ JunitUploadCommand.usage = clipanion_1.Command.Usage({
82
+ category: 'CI Visibility',
83
+ description: 'Upload jUnit XML test reports files to Datadog.',
84
+ details: `
85
+ This command will upload to jUnit XML test reports files to Datadog.\n
86
+ See README for details.
87
+ `,
88
+ examples: [
89
+ ['Upload all jUnit XML test report files in current directory', 'datadog-ci junit upload --service my-service .'],
90
+ [
91
+ 'Discover and upload all jUnit XML test report files doing recursive search in current directory',
92
+ 'datadog-ci junit upload --service my-service --auto-discovery .',
93
+ ],
94
+ [
95
+ 'Discover and upload all jUnit XML test report files doing recursive search in current directory, ignoring src/ignored-module-a and src/ignored-module-b',
96
+ 'datadog-ci junit upload --service my-service --ignored-paths src/ignored-module-a,src/ignored-module-b --auto-discovery .',
97
+ ],
98
+ [
99
+ 'Upload all jUnit XML test report files in src/unit-test-reports and src/acceptance-test-reports',
100
+ 'datadog-ci junit upload --service my-service src/unit-test-reports src/acceptance-test-reports',
101
+ ],
102
+ [
103
+ 'Upload all jUnit XML test report files in current directory and add extra tags globally',
104
+ 'datadog-ci junit upload --service my-service --tags key1:value1 --tags key2:value2 .',
105
+ ],
106
+ [
107
+ 'Upload all jUnit XML test report files in current directory and add extra measures globally',
108
+ 'datadog-ci junit upload --service my-service --measures key1:123 --measures key2:321 .',
109
+ ],
110
+ [
111
+ 'Upload all jUnit XML test report files in current directory to the datadoghq.eu site',
112
+ 'DD_SITE=datadoghq.eu datadog-ci junit upload --service my-service .',
113
+ ],
114
+ [
115
+ 'Upload all jUnit XML test report files in current directory while also collecting logs',
116
+ 'datadog-ci junit upload --service my-service --logs .',
117
+ ],
118
+ [
119
+ 'Upload all jUnit XML test report files in current directory customizing test suite with xpath',
120
+ 'datadog-ci junit upload --service my-service --xpath-tag test.suite=/testcase/@classname .',
121
+ ],
122
+ [
123
+ 'Upload all jUnit XML test report files in current directory adding a custom tag from property with xpath',
124
+ "datadog-ci junit upload --service my-service --xpath-tag custom_tag=/testcase/..//property[@name='property-name'] .",
125
+ ],
126
+ [
127
+ 'Upload all jUnit XML test report files in current directory with extra verbosity',
128
+ 'datadog-ci junit upload --verbose --service my-service .',
129
+ ],
130
+ ],
131
+ });
132
+ //# sourceMappingURL=upload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload.js","sourceRoot":"","sources":["../../../src/commands/junit/upload.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAyC;AACzC,4CAA6B;AAE7B,8DAAoD;AACpD,wFAAyE;AAEzE,iDAAyD;AAEzD,MAAa,kBAAmB,SAAQ,6BAAW;IAAnD;;QAuDS,cAAS,GAAG,kBAAM,CAAC,IAAI,CAAC,EAAC,QAAQ,EAAE,CAAC,EAAC,CAAC,CAAA;QACtC,YAAO,GAAG,kBAAM,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,CAAC,CAAA;QAC5C,WAAM,GAAG,kBAAM,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,CAAC,CAAA;QAC3C,QAAG,GAAG,kBAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;QAC5B,SAAI,GAAG,kBAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,EAAE;YAC7C,GAAG,E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,CAAA;IAKvE,CAAC;IAHc,OAAO;;YAClB,OAAO,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAA;QACnC,CAAC;KAAA;;AAvFH,gDAwFC;AAvFe,wBAAK,GAAG,CAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,AAAxB,CAAwB;AAE7B,wBAAK,GAAG,mBAAO,CAAC,KAAK,CAAC;IAClC,QAAQ,EAAE,eAAe;IACzB,WAAW,EAAE,iDAAiD;IAC9D,OAAO,EAAE;;;KAGR;IACD,QAAQ,EAAE;QACR,CAAC,6DAA6D,EAAE,gDAAgD,CAAC;QACjH;YACE,iGAAiG;YACjG,iEAAiE;SAClE;QACD;YACE,yJAAyJ;YACzJ,2HAA2H;SAC5H;QACD;YACE,iGAAiG;YACjG,gGAAgG;SACjG;QACD;YACE,yFAAyF;YACzF,sFAAsF;SACvF;QACD;YACE,6FAA6F;YAC7F,wFAAwF;SACzF;QACD;YACE,sFAAsF;YACtF,qEAAqE;SACtE;QACD;YACE,wFAAwF;YACxF,uDAAuD;SACxD;QACD;YACE,+FAA+F;YAC/F,4FAA4F;SAC7F;QACD;YACE,0GAA0G;YAC1G,qHAAqH;SACtH;QACD;YACE,kFAAkF;YAClF,0DAA0D;SAC3D;KACF;CACF,CAAC,AAlDiB,CAkDjB"}
@@ -25,14 +25,14 @@ const getGitMetadata = (repositoryPath) => __awaiter(void 0, void 0, void 0, fun
25
25
  // We are invoking at most 5 git commands at the same time.
26
26
  maxConcurrentProcesses: 5,
27
27
  });
28
- const [commitSHA, branch, repositoryUrl, message, authorAndCommitterJson] = yield Promise.all([
28
+ const [commitSHA, branch, repositoryUrl, message, authorAndCommitter] = yield Promise.all([
29
29
  (0, get_git_data_1.gitHash)(git),
30
30
  (0, get_git_data_1.gitBranch)(git),
31
31
  (0, get_git_data_1.gitRepositoryURL)(git),
32
32
  (0, get_git_data_1.gitMessage)(git),
33
33
  (0, get_git_data_1.gitAuthorAndCommitter)(git),
34
34
  ]);
35
- const { authorName, authorEmail, authorDate, committerName, committerEmail, committerDate } = JSON.parse(authorAndCommitterJson);
35
+ const { authorName, authorEmail, authorDate, committerName, committerEmail, committerDate } = authorAndCommitter;
36
36
  return {
37
37
  [tags_1.GIT_REPOSITORY_URL]: (0, utils_1.filterSensitiveInfoFromRepository)(repositoryUrl.trim()),
38
38
  [tags_1.GIT_BRANCH]: branch.current,
@@ -1 +1 @@
1
- {"version":3,"file":"format-git-span-data.js","sourceRoot":"","sources":["../../../src/helpers/git/format-git-span-data.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,4DAAkC;AAElC,kCAWgB;AAChB,oCAA0D;AAE1D,iDAAsG;AAE/F,MAAM,cAAc,GAAG,CAAO,cAAuB,EAAqB,EAAE;IACjF,IAAI;QACF,MAAM,GAAG,GAAG,IAAA,oBAAS,EAAC;YACpB,OAAO,EAAE,cAAc,IAAI,OAAO,CAAC,GAAG,EAAE;YACxC,MAAM,EAAE,KAAK;YACb,2DAA2D;YAC3D,sBAAsB,EAAE,CAAC;SAC1B,CAAC,CAAA;QAEF,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,sBAAsB,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YAC5F,IAAA,sBAAO,EAAC,GAAG,CAAC;YACZ,IAAA,wBAAS,EAAC,GAAG,CAAC;YACd,IAAA,+BAAgB,EAAC,GAAG,CAAC;YACrB,IAAA,yBAAU,EAAC,GAAG,CAAC;YACf,IAAA,oCAAqB,EAAC,GAAG,CAAC;SAC3B,CAAC,CAAA;QAEF,MAAM,EAAC,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAC,GAAG,IAAI,CAAC,KAAK,CACpG,sBAAsB,CACU,CAAA;QAElC,OAAO;YACL,CAAC,yBAAkB,CAAC,EAAE,IAAA,yCAAiC,EAAC,aAAa,CAAC,IAAI,EAAE,CAAC;YAC7E,CAAC,iBA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IAAA,yBAAU,EAAC,GAAG,CAAC;YACf,IAAA,oCAAqB,EAAC,GAAG,CAAC;SAC3B,CAAC,CAAA;QAEF,MAAM,EAAC,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAC,GAAG,kBAAkB,CAAA;QAE9G,OAAO;YACL,CAAC,yBAAkB,CAAC,EAAE,IAAA,yCAAiC,EAAC,aAAa,CAAC,IAAI,EAAE,CAAC;YAC7E,CAAC,iBAAU,CAAC,EAAE,MAAM,CAAC,OAAO;YAC5B,CAAC,cAAO,CAAC,EAAE,SAAS;YACpB,CAAC,yBAAkB,CAAC,EAAE,OAAO,CAAC,IAAI,EAAE;YACpC,CAAC,gCAAyB,CAAC,EAAE,aAAa,CAAC,IAAI,EAAE;YACjD,CAAC,iCAA0B,CAAC,EAAE,cAAc,CAAC,IAAI,EAAE;YACnD,CAAC,gCAAyB,CAAC,EAAE,aAAa,CAAC,IAAI,EAAE;YACjD,CAAC,6BAAsB,CAAC,EAAE,UAAU,CAAC,IAAI,EAAE;YAC3C,CAAC,8BAAuB,CAAC,EAAE,WAAW,CAAC,IAAI,EAAE;YAC7C,CAAC,6BAAsB,CAAC,EAAE,UAAU,CAAC,IAAI,EAAE;SAC5C,CAAA;KACF;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,EAAE,CAAA;KACV;AACH,CAAC,CAAA,CAAA;AAlCY,QAAA,cAAc,kBAkC1B"}
@@ -1,5 +1,6 @@
1
1
  import * as simpleGit from 'simple-git';
2
2
  import { BranchSummary } from 'simple-git';
3
+ import { GitAuthorAndCommitterMetadata } from '../interfaces';
3
4
  export declare const gitRemote: (git: simpleGit.SimpleGit) => Promise<string>;
4
5
  export declare const getDefaultRemoteName: (git: simpleGit.SimpleGit) => Promise<string>;
5
6
  export declare const stripCredentials: (remote: string) => string;
@@ -8,6 +9,6 @@ export declare const gitTrackedFiles: (git: simpleGit.SimpleGit) => Promise<stri
8
9
  export declare const gitBranch: (git: simpleGit.SimpleGit) => Promise<BranchSummary>;
9
10
  export declare const gitCurrentBranch: (git: simpleGit.SimpleGit) => Promise<string>;
10
11
  export declare const gitMessage: (git: simpleGit.SimpleGit) => Promise<string>;
11
- export declare const gitAuthorAndCommitter: (git: simpleGit.SimpleGit) => Promise<string>;
12
+ export declare const gitAuthorAndCommitter: (git: simpleGit.SimpleGit) => Promise<GitAuthorAndCommitterMetadata>;
12
13
  export declare const gitRepositoryURL: (git: simpleGit.SimpleGit) => Promise<string>;
13
14
  export declare const gitLocalCommitShas: (git: simpleGit.SimpleGit, branchName: string) => Promise<string[]>;
@@ -68,12 +68,20 @@ const gitCurrentBranch = (git) => __awaiter(void 0, void 0, void 0, function* ()
68
68
  exports.gitCurrentBranch = gitCurrentBranch;
69
69
  const gitMessage = (git) => __awaiter(void 0, void 0, void 0, function* () { return git.show(['-s', '--format=%s']); });
70
70
  exports.gitMessage = gitMessage;
71
- // Returns the author and committer information of the current commit in JSON format to avoid parsing issues with values that contain commas.
71
+ // Returns the author and committer information of the current commit.
72
72
  const gitAuthorAndCommitter = (git) => __awaiter(void 0, void 0, void 0, function* () {
73
- return git.show([
73
+ const info = yield git.show([
74
74
  '-s',
75
- '--format={"authorName":"%an","authorEmail":"%ae","authorDate":"%aI","committerName":"%cn","committerEmail":"%ce","committerDate":"%cI"}',
75
+ `--format=${['authorName:%an', 'authorEmail:%ae', 'authorDate:%aI', 'committerName:%cn', 'committerEmail:%ce', 'committerDate:%cI'].join('%n')}`,
76
76
  ]);
77
+ const output = {};
78
+ for (const line of info.split('\n')) {
79
+ const idx = line.indexOf(':');
80
+ if (idx > 0) {
81
+ output[line.substring(0, idx)] = line.substring(idx + 1);
82
+ }
83
+ }
84
+ return output;
77
85
  });
78
86
  exports.gitAuthorAndCommitter = gitAuthorAndCommitter;
79
87
  const gitRepositoryURL = (git) => __awaiter(void 0, void 0, void 0, function* () { return git.listRemote(['--get-url']).then((url) => url.trim()); });
@@ -1 +1 @@
1
- {"version":3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ACzD;KACF;IAED,OAAO,MAAuC,CAAA;AAChD,CAAC,CAAA,CAAA;AAdY,QAAA,qBAAqB,yBAcjC;AAEM,MAAM,gBAAgB,GAAG,CAAO,GAAwB,EAAmB,EAAE,kDAClF,OAAA,GAAG,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA,GAAA,CAAA;AAD5C,QAAA,gBAAgB,oBAC4B;AAElD,MAAM,kBAAkB,GAAG,CAAO,GAAwB,EAAE,UAAkB,EAAqB,EAAE;IAC1G,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;IAEnG,OAAO,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA,CAAC,+CAA+C;AACpG,CAAC,CAAA,CAAA;AAJY,QAAA,kBAAkB,sBAI9B"}
@@ -1,8 +1,8 @@
1
1
  export declare const LAMBDA_LAYER_VERSIONS: {
2
- readonly extension: 91;
2
+ readonly extension: 92;
3
3
  readonly dotnet: 23;
4
4
  readonly java: 25;
5
5
  readonly node: 132;
6
- readonly python: 120;
6
+ readonly python: 121;
7
7
  readonly ruby: 27;
8
8
  };
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.LAMBDA_LAYER_VERSIONS = void 0;
5
5
  exports.LAMBDA_LAYER_VERSIONS = {
6
- extension: 91,
6
+ extension: 92,
7
7
  dotnet: 23,
8
8
  java: 25,
9
9
  node: 132,
10
- python: 120,
10
+ python: 121,
11
11
  ruby: 27,
12
12
  };
13
13
  //# sourceMappingURL=lambda-layer-versions.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datadog/datadog-ci-base",
3
- "version": "5.2.1",
3
+ "version": "5.3.0",
4
4
  "description": "Base package for Datadog CI",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -56,17 +56,19 @@
56
56
  "prepack": "yarn package:clean-dist"
57
57
  },
58
58
  "peerDependencies": {
59
- "@datadog/datadog-ci-plugin-aas": "5.2.1",
60
- "@datadog/datadog-ci-plugin-cloud-run": "5.2.1",
61
- "@datadog/datadog-ci-plugin-container-app": "5.2.1",
62
- "@datadog/datadog-ci-plugin-deployment": "5.2.1",
63
- "@datadog/datadog-ci-plugin-dora": "5.2.1",
64
- "@datadog/datadog-ci-plugin-gate": "5.2.1",
65
- "@datadog/datadog-ci-plugin-lambda": "5.2.1",
66
- "@datadog/datadog-ci-plugin-sarif": "5.2.1",
67
- "@datadog/datadog-ci-plugin-sbom": "5.2.1",
68
- "@datadog/datadog-ci-plugin-stepfunctions": "5.2.1",
69
- "@datadog/datadog-ci-plugin-synthetics": "5.2.1"
59
+ "@datadog/datadog-ci-plugin-aas": "5.3.0",
60
+ "@datadog/datadog-ci-plugin-cloud-run": "5.3.0",
61
+ "@datadog/datadog-ci-plugin-container-app": "5.3.0",
62
+ "@datadog/datadog-ci-plugin-coverage": "5.3.0",
63
+ "@datadog/datadog-ci-plugin-deployment": "5.3.0",
64
+ "@datadog/datadog-ci-plugin-dora": "5.3.0",
65
+ "@datadog/datadog-ci-plugin-gate": "5.3.0",
66
+ "@datadog/datadog-ci-plugin-junit": "5.3.0",
67
+ "@datadog/datadog-ci-plugin-lambda": "5.3.0",
68
+ "@datadog/datadog-ci-plugin-sarif": "5.3.0",
69
+ "@datadog/datadog-ci-plugin-sbom": "5.3.0",
70
+ "@datadog/datadog-ci-plugin-stepfunctions": "5.3.0",
71
+ "@datadog/datadog-ci-plugin-synthetics": "5.3.0"
70
72
  },
71
73
  "peerDependenciesMeta": {
72
74
  "@datadog/datadog-ci-plugin-aas": {
@@ -78,6 +80,9 @@
78
80
  "@datadog/datadog-ci-plugin-container-app": {
79
81
  "optional": true
80
82
  },
83
+ "@datadog/datadog-ci-plugin-coverage": {
84
+ "optional": true
85
+ },
81
86
  "@datadog/datadog-ci-plugin-deployment": {
82
87
  "optional": true
83
88
  },
@@ -87,6 +92,9 @@
87
92
  "@datadog/datadog-ci-plugin-gate": {
88
93
  "optional": true
89
94
  },
95
+ "@datadog/datadog-ci-plugin-junit": {
96
+ "optional": true
97
+ },
90
98
  "@datadog/datadog-ci-plugin-lambda": {
91
99
  "optional": true
92
100
  },