@datadog/datadog-ci 5.8.0 → 5.9.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/README.md +2 -2
- package/dist/cli.js +1 -2
- package/dist/cli.js.map +1 -1
- package/package.json +10 -16
- package/dist/commands/cli.d.ts +0 -32
- package/dist/commands/cli.js +0 -27
- package/dist/commands/cli.js.map +0 -1
- package/dist/commands/elf-symbols/cli.d.ts +0 -2
- package/dist/commands/elf-symbols/cli.js +0 -6
- package/dist/commands/elf-symbols/cli.js.map +0 -1
- package/dist/commands/elf-symbols/elf-constants.d.ts +0 -256
- package/dist/commands/elf-symbols/elf-constants.js +0 -465
- package/dist/commands/elf-symbols/elf-constants.js.map +0 -1
- package/dist/commands/elf-symbols/elf.d.ts +0 -105
- package/dist/commands/elf-symbols/elf.js +0 -431
- package/dist/commands/elf-symbols/elf.js.map +0 -1
- package/dist/commands/elf-symbols/helpers.d.ts +0 -4
- package/dist/commands/elf-symbols/helpers.js +0 -29
- package/dist/commands/elf-symbols/helpers.js.map +0 -1
- package/dist/commands/elf-symbols/interfaces.d.ts +0 -18
- package/dist/commands/elf-symbols/interfaces.js +0 -7
- package/dist/commands/elf-symbols/interfaces.js.map +0 -1
- package/dist/commands/elf-symbols/renderer.d.ts +0 -19
- package/dist/commands/elf-symbols/renderer.js +0 -87
- package/dist/commands/elf-symbols/renderer.js.map +0 -1
- package/dist/commands/elf-symbols/upload.d.ts +0 -31
- package/dist/commands/elf-symbols/upload.js +0 -412
- package/dist/commands/elf-symbols/upload.js.map +0 -1
- package/dist/commands/flutter-symbols/cli.d.ts +0 -2
- package/dist/commands/flutter-symbols/cli.js +0 -6
- package/dist/commands/flutter-symbols/cli.js.map +0 -1
- package/dist/commands/flutter-symbols/helpers.d.ts +0 -8
- package/dist/commands/flutter-symbols/helpers.js +0 -51
- package/dist/commands/flutter-symbols/helpers.js.map +0 -1
- package/dist/commands/flutter-symbols/interfaces.d.ts +0 -17
- package/dist/commands/flutter-symbols/interfaces.js +0 -10
- package/dist/commands/flutter-symbols/interfaces.js.map +0 -1
- package/dist/commands/flutter-symbols/renderer.d.ts +0 -23
- package/dist/commands/flutter-symbols/renderer.js +0 -106
- package/dist/commands/flutter-symbols/renderer.js.map +0 -1
- package/dist/commands/flutter-symbols/upload.d.ts +0 -44
- package/dist/commands/flutter-symbols/upload.js +0 -510
- package/dist/commands/flutter-symbols/upload.js.map +0 -1
- package/dist/commands/measure/cli.d.ts +0 -2
- package/dist/commands/measure/cli.js +0 -6
- package/dist/commands/measure/cli.js.map +0 -1
- package/dist/commands/measure/measure.d.ts +0 -18
- package/dist/commands/measure/measure.js +0 -171
- package/dist/commands/measure/measure.js.map +0 -1
- package/dist/commands/pe-symbols/breakpad.d.ts +0 -2
- package/dist/commands/pe-symbols/breakpad.js +0 -159
- package/dist/commands/pe-symbols/breakpad.js.map +0 -1
- package/dist/commands/pe-symbols/cli.d.ts +0 -2
- package/dist/commands/pe-symbols/cli.js +0 -6
- package/dist/commands/pe-symbols/cli.js.map +0 -1
- package/dist/commands/pe-symbols/helpers.d.ts +0 -4
- package/dist/commands/pe-symbols/helpers.js +0 -30
- package/dist/commands/pe-symbols/helpers.js.map +0 -1
- package/dist/commands/pe-symbols/interfaces.d.ts +0 -17
- package/dist/commands/pe-symbols/interfaces.js +0 -7
- package/dist/commands/pe-symbols/interfaces.js.map +0 -1
- package/dist/commands/pe-symbols/pe-constants.d.ts +0 -51
- package/dist/commands/pe-symbols/pe-constants.js +0 -160
- package/dist/commands/pe-symbols/pe-constants.js.map +0 -1
- package/dist/commands/pe-symbols/pe.d.ts +0 -40
- package/dist/commands/pe-symbols/pe.js +0 -249
- package/dist/commands/pe-symbols/pe.js.map +0 -1
- package/dist/commands/pe-symbols/renderer.d.ts +0 -19
- package/dist/commands/pe-symbols/renderer.js +0 -87
- package/dist/commands/pe-symbols/renderer.js.map +0 -1
- package/dist/commands/pe-symbols/upload.d.ts +0 -34
- package/dist/commands/pe-symbols/upload.js +0 -457
- package/dist/commands/pe-symbols/upload.js.map +0 -1
- package/dist/commands/react-native/cli.d.ts +0 -5
- package/dist/commands/react-native/cli.js +0 -14
- package/dist/commands/react-native/cli.js.map +0 -1
- package/dist/commands/react-native/codepush.d.ts +0 -29
- package/dist/commands/react-native/codepush.js +0 -176
- package/dist/commands/react-native/codepush.js.map +0 -1
- package/dist/commands/react-native/errors.d.ts +0 -9
- package/dist/commands/react-native/errors.js +0 -34
- package/dist/commands/react-native/errors.js.map +0 -1
- package/dist/commands/react-native/injectDebugId.d.ts +0 -42
- package/dist/commands/react-native/injectDebugId.js +0 -252
- package/dist/commands/react-native/injectDebugId.js.map +0 -1
- package/dist/commands/react-native/interfaces.d.ts +0 -20
- package/dist/commands/react-native/interfaces.js +0 -93
- package/dist/commands/react-native/interfaces.js.map +0 -1
- package/dist/commands/react-native/renderer.d.ts +0 -20
- package/dist/commands/react-native/renderer.js +0 -111
- package/dist/commands/react-native/renderer.js.map +0 -1
- package/dist/commands/react-native/upload.d.ts +0 -30
- package/dist/commands/react-native/upload.js +0 -317
- package/dist/commands/react-native/upload.js.map +0 -1
- package/dist/commands/react-native/utils.d.ts +0 -4
- package/dist/commands/react-native/utils.js +0 -35
- package/dist/commands/react-native/utils.js.map +0 -1
- package/dist/commands/react-native/validation.d.ts +0 -6
- package/dist/commands/react-native/validation.js +0 -24
- package/dist/commands/react-native/validation.js.map +0 -1
- package/dist/commands/react-native/xcode.d.ts +0 -58
- package/dist/commands/react-native/xcode.js +0 -561
- package/dist/commands/react-native/xcode.js.map +0 -1
- package/dist/commands/sourcemaps/cli.d.ts +0 -2
- package/dist/commands/sourcemaps/cli.js +0 -6
- package/dist/commands/sourcemaps/cli.js.map +0 -1
- package/dist/commands/sourcemaps/interfaces.d.ts +0 -18
- package/dist/commands/sourcemaps/interfaces.js +0 -59
- package/dist/commands/sourcemaps/interfaces.js.map +0 -1
- package/dist/commands/sourcemaps/renderer.d.ts +0 -13
- package/dist/commands/sourcemaps/renderer.js +0 -93
- package/dist/commands/sourcemaps/renderer.js.map +0 -1
- package/dist/commands/sourcemaps/upload.d.ts +0 -29
- package/dist/commands/sourcemaps/upload.js +0 -342
- package/dist/commands/sourcemaps/upload.js.map +0 -1
- package/dist/commands/sourcemaps/utils.d.ts +0 -3
- package/dist/commands/sourcemaps/utils.js +0 -73
- package/dist/commands/sourcemaps/utils.js.map +0 -1
- package/dist/commands/sourcemaps/validation.d.ts +0 -7
- package/dist/commands/sourcemaps/validation.js +0 -41
- package/dist/commands/sourcemaps/validation.js.map +0 -1
- package/dist/commands/span/cli.d.ts +0 -2
- package/dist/commands/span/cli.js +0 -6
- package/dist/commands/span/cli.js.map +0 -1
- package/dist/commands/span/span.d.ts +0 -10
- package/dist/commands/span/span.js +0 -112
- package/dist/commands/span/span.js.map +0 -1
- package/dist/commands/trace/api.d.ts +0 -6
- package/dist/commands/trace/api.js +0 -38
- package/dist/commands/trace/api.js.map +0 -1
- package/dist/commands/trace/cli.d.ts +0 -2
- package/dist/commands/trace/cli.js +0 -6
- package/dist/commands/trace/cli.js.map +0 -1
- package/dist/commands/trace/helper.d.ts +0 -16
- package/dist/commands/trace/helper.js +0 -125
- package/dist/commands/trace/helper.js.map +0 -1
- package/dist/commands/trace/interfaces.d.ts +0 -18
- package/dist/commands/trace/interfaces.js +0 -14
- package/dist/commands/trace/interfaces.js.map +0 -1
- package/dist/commands/trace/test-utils.d.ts +0 -4
- package/dist/commands/trace/test-utils.js +0 -156
- package/dist/commands/trace/test-utils.js.map +0 -1
- package/dist/commands/trace/trace.d.ts +0 -10
- package/dist/commands/trace/trace.js +0 -110
- package/dist/commands/trace/trace.js.map +0 -1
- package/dist/commands/unity-symbols/cli.d.ts +0 -2
- package/dist/commands/unity-symbols/cli.js +0 -6
- package/dist/commands/unity-symbols/cli.js.map +0 -1
- package/dist/commands/unity-symbols/helpers.d.ts +0 -4
- package/dist/commands/unity-symbols/helpers.js +0 -29
- package/dist/commands/unity-symbols/helpers.js.map +0 -1
- package/dist/commands/unity-symbols/interfaces.d.ts +0 -14
- package/dist/commands/unity-symbols/interfaces.js +0 -9
- package/dist/commands/unity-symbols/interfaces.js.map +0 -1
- package/dist/commands/unity-symbols/renderer.d.ts +0 -19
- package/dist/commands/unity-symbols/renderer.js +0 -88
- package/dist/commands/unity-symbols/renderer.js.map +0 -1
- package/dist/commands/unity-symbols/upload.d.ts +0 -32
- package/dist/commands/unity-symbols/upload.js +0 -392
- package/dist/commands/unity-symbols/upload.js.map +0 -1
- package/dist/commands/version/cli.d.ts +0 -8
- package/dist/commands/version/cli.js +0 -31
- package/dist/commands/version/cli.js.map +0 -1
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Only the function is exported, not the test such that there is no test duplication
|
|
3
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
7
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
8
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
9
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
-
};
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.makeCIProviderTests = void 0;
|
|
17
|
-
const fs_1 = __importDefault(require("fs"));
|
|
18
|
-
/* eslint-disable jest/no-export */
|
|
19
|
-
const makeCIProviderTests = (runCLI, runCLIArgs) => {
|
|
20
|
-
describe('execute', () => {
|
|
21
|
-
afterEach(() => {
|
|
22
|
-
jest.resetAllMocks();
|
|
23
|
-
});
|
|
24
|
-
test('should fail if no CI is detected', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
25
|
-
process.env = {};
|
|
26
|
-
const { context, code } = yield runCLI(runCLIArgs);
|
|
27
|
-
expect(code).toBe(1);
|
|
28
|
-
expect(context.stdout.toString()).toContain('Unsupported CI provider "unknown"');
|
|
29
|
-
}));
|
|
30
|
-
test('should detect the circleci environment', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
31
|
-
const { context, code } = yield runCLI(runCLIArgs, {
|
|
32
|
-
CIRCLECI: 'true',
|
|
33
|
-
CIRCLE_WORKFLOW_ID: 'test',
|
|
34
|
-
CIRCLE_BUILD_NUM: '10',
|
|
35
|
-
NON_CIRCLE_ENV: 'bar',
|
|
36
|
-
});
|
|
37
|
-
expect(code).toBe(0);
|
|
38
|
-
const dryRunOutput = context.stdout.toString();
|
|
39
|
-
expect(dryRunOutput).toContain('\\"CIRCLE_WORKFLOW_ID\\":\\"test\\"');
|
|
40
|
-
expect(dryRunOutput).toContain('\\"CIRCLE_BUILD_NUM\\":\\"10\\"');
|
|
41
|
-
}));
|
|
42
|
-
test('should detect the jenkins environment', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
43
|
-
const { context, code } = yield runCLI(runCLIArgs, {
|
|
44
|
-
DD_CUSTOM_TRACE_ID: 'abc',
|
|
45
|
-
DD_CUSTOM_PARENT_ID: 'xyz',
|
|
46
|
-
JENKINS_HOME: '/root',
|
|
47
|
-
JENKINS_URL: 'http://jenkins',
|
|
48
|
-
NON_JENKINS_ENV: 'bar',
|
|
49
|
-
WORKSPACE: 'def',
|
|
50
|
-
});
|
|
51
|
-
expect(code).toBe(0);
|
|
52
|
-
const dryRunOutput = context.stdout.toString();
|
|
53
|
-
expect(dryRunOutput).toContain('\\"DD_CUSTOM_TRACE_ID\\":\\"abc\\"');
|
|
54
|
-
expect(dryRunOutput).toContain('\\"DD_CUSTOM_PARENT_ID\\":\\"xyz\\"');
|
|
55
|
-
}));
|
|
56
|
-
test('should detect the github environment', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
57
|
-
const { context, code } = yield runCLI(runCLIArgs, {
|
|
58
|
-
GITHUB_ACTIONS: 'true',
|
|
59
|
-
GITHUB_SERVER_URL: 'http://github',
|
|
60
|
-
GITHUB_REPOSITORY: 'test/test',
|
|
61
|
-
GITHUB_RUN_ID: '10',
|
|
62
|
-
GITHUB_RUN_ATTEMPT: '1',
|
|
63
|
-
GITHUB_JOB: 'jobname',
|
|
64
|
-
DD_GITHUB_JOB_NAME: 'custom_jobname',
|
|
65
|
-
});
|
|
66
|
-
expect(code).toBe(0);
|
|
67
|
-
const dryRunOutput = context.stdout.toString();
|
|
68
|
-
expect(dryRunOutput).toContain('\\"GITHUB_SERVER_URL\\":\\"http://github\\"');
|
|
69
|
-
expect(dryRunOutput).toContain('\\"GITHUB_REPOSITORY\\":\\"test/test\\"');
|
|
70
|
-
expect(dryRunOutput).toContain('\\"GITHUB_RUN_ID\\":\\"10\\"');
|
|
71
|
-
expect(dryRunOutput).toContain('\\"GITHUB_RUN_ATTEMPT\\":\\"1\\"');
|
|
72
|
-
expect(dryRunOutput).toContain('\\"DD_GITHUB_JOB_NAME\\":\\"custom_jobname\\"');
|
|
73
|
-
expect(dryRunOutput).toContain('"ci.job.name":"jobname"');
|
|
74
|
-
expect(dryRunOutput).not.toContain('Determining GitHub job name');
|
|
75
|
-
}));
|
|
76
|
-
test('should detect the gitlab environment', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
77
|
-
const { context, code } = yield runCLI(runCLIArgs, {
|
|
78
|
-
GITLAB_CI: 'true',
|
|
79
|
-
CI_PROJECT_URL: 'http://gitlab',
|
|
80
|
-
CI_PIPELINE_ID: '10',
|
|
81
|
-
CI_JOB_ID: '50',
|
|
82
|
-
});
|
|
83
|
-
expect(code).toBe(0);
|
|
84
|
-
const dryRunOutput = context.stdout.toString();
|
|
85
|
-
expect(dryRunOutput).toContain('\\"CI_PROJECT_URL\\":\\"http://gitlab\\"');
|
|
86
|
-
expect(dryRunOutput).toContain('\\"CI_PIPELINE_ID\\":\\"10\\"');
|
|
87
|
-
expect(dryRunOutput).toContain('\\"CI_JOB_ID\\":\\"50\\"');
|
|
88
|
-
}));
|
|
89
|
-
test('should detect the azure environment', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
90
|
-
const { context, code } = yield runCLI(runCLIArgs, {
|
|
91
|
-
TF_BUILD: 'true',
|
|
92
|
-
SYSTEM_TEAMPROJECTID: 'test',
|
|
93
|
-
BUILD_BUILDID: '10',
|
|
94
|
-
SYSTEM_JOBID: '3acfg',
|
|
95
|
-
});
|
|
96
|
-
expect(code).toBe(0);
|
|
97
|
-
const dryRunOutput = context.stdout.toString();
|
|
98
|
-
expect(dryRunOutput).toContain('\\"SYSTEM_TEAMPROJECTID\\":\\"test\\"');
|
|
99
|
-
expect(dryRunOutput).toContain('\\"BUILD_BUILDID\\":\\"10\\"');
|
|
100
|
-
expect(dryRunOutput).toContain('\\"SYSTEM_JOBID\\":\\"3acfg\\"');
|
|
101
|
-
}));
|
|
102
|
-
test('should detect the aws codepipeline environment', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
103
|
-
const { context, code } = yield runCLI(runCLIArgs, {
|
|
104
|
-
CODEBUILD_INITIATOR: 'codepipeline-abc',
|
|
105
|
-
DD_PIPELINE_EXECUTION_ID: 'def-234',
|
|
106
|
-
CODEBUILD_BUILD_ARN: 'arn:aws:codebuild:us-west-2:123456789012:build/MyProjectName:6a8f0d8a',
|
|
107
|
-
});
|
|
108
|
-
expect(code).toBe(0);
|
|
109
|
-
const dryRunOutput = context.stdout.toString();
|
|
110
|
-
expect(dryRunOutput).toContain('\\"DD_PIPELINE_EXECUTION_ID\\":\\"def-234\\"');
|
|
111
|
-
expect(dryRunOutput).toContain('\\"CODEBUILD_BUILD_ARN\\":\\"arn:aws:codebuild:us-west-2:123456789012:build/MyProjectName:6a8f0d8a\\"');
|
|
112
|
-
}));
|
|
113
|
-
test('should detect the buildkite environment', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
114
|
-
const { context, code } = yield runCLI(runCLIArgs, {
|
|
115
|
-
BUILDKITE: 'true',
|
|
116
|
-
BUILDKITE_BUILD_ID: 'abc',
|
|
117
|
-
BUILDKITE_JOB_ID: 'def',
|
|
118
|
-
});
|
|
119
|
-
expect(code).toBe(0);
|
|
120
|
-
const dryRunOutput = context.stdout.toString();
|
|
121
|
-
expect(dryRunOutput).toContain('\\"BUILDKITE_BUILD_ID\\":\\"abc\\"');
|
|
122
|
-
expect(dryRunOutput).toContain('\\"BUILDKITE_JOB_ID\\":\\"def\\"');
|
|
123
|
-
}));
|
|
124
|
-
test('should try to infer github job name', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
125
|
-
jest.spyOn(fs_1.default, 'readdirSync').mockReturnValue([
|
|
126
|
-
{
|
|
127
|
-
name: 'Worker_1.log',
|
|
128
|
-
isFile: () => true,
|
|
129
|
-
isDirectory: () => false,
|
|
130
|
-
isBlockDevice: () => false,
|
|
131
|
-
isCharacterDevice: () => false,
|
|
132
|
-
isSymbolicLink: () => false,
|
|
133
|
-
isFIFO: () => false,
|
|
134
|
-
isSocket: () => false,
|
|
135
|
-
parentPath: '',
|
|
136
|
-
path: '',
|
|
137
|
-
},
|
|
138
|
-
]);
|
|
139
|
-
jest.spyOn(fs_1.default, 'readFileSync').mockReturnValue(`{"jobDisplayName": "real job name"}`);
|
|
140
|
-
const { context, code } = yield runCLI(runCLIArgs, {
|
|
141
|
-
GITHUB_ACTIONS: 'true',
|
|
142
|
-
GITHUB_SERVER_URL: 'http://github',
|
|
143
|
-
GITHUB_REPOSITORY: 'test/test',
|
|
144
|
-
GITHUB_RUN_ID: '10',
|
|
145
|
-
GITHUB_RUN_ATTEMPT: '1',
|
|
146
|
-
GITHUB_JOB: 'jobname',
|
|
147
|
-
});
|
|
148
|
-
expect(code).toBe(0);
|
|
149
|
-
const dryRunOutput = context.stdout.toString();
|
|
150
|
-
expect(dryRunOutput).toContain('\\"DD_GITHUB_JOB_NAME\\":\\"real job name\\"');
|
|
151
|
-
expect(dryRunOutput).toContain('Determining GitHub job name');
|
|
152
|
-
}));
|
|
153
|
-
});
|
|
154
|
-
};
|
|
155
|
-
exports.makeCIProviderTests = makeCIProviderTests;
|
|
156
|
-
//# sourceMappingURL=test-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.js","sourceRoot":"","sources":["../../../src/commands/trace/test-utils.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;;;;;;;;;;;;;AAErF,4CAAmB;AAMnB,mCAAmC;AAE5B,MAAM,mBAAmB,GAAG,CAAC,MAAkB,EAAE,UAAoB,EAAE,EAAE;IAC9E,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;QACvB,SAAS,CAAC,GAAG,EAAE;YACb,IAAI,CAAC,aAAa,EAAE,CAAA;QACtB,CAAC,CAAC,CAAA;QAEF,IAAI,CAAC,kCAAkC,EAAE,GAAS,EAAE;YAClD,OAAO,CAAC,GAAG,GAAG,EAAE,CAAA;YAChB,MAAM,EAAC,OAAO,EAAE,IAAI,EAAC,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,CAAA;YAChD,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;YACpB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,CAAC,mCAAmC,CAAC,CAAA;QAClF,CAAC,CAAA,CAAC,CAAA;QAEF,IAAI,CAAC,wCAAwC,EAAE,GAAS,EAAE;YACxD,MAAM,EAAC,OAAO,EAAE,IAAI,EAAC,GAAG,MAAM,MAAM,CAAC,UAAU,EAAE;gBAC/C,QAAQ,EAAE,MAAM;gBAChB,kBAAkB,EAAE,MAAM;gBAC1B,gBAAgB,EAAE,IAAI;gBACtB,cAAc,EAAE,KAAK;aACtB,CAAC,CAAA;YACF,MAAM,C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eAAe;gBAClC,iBAAiB,EAAE,WAAW;gBAC9B,aAAa,EAAE,IAAI;gBACnB,kBAAkB,EAAE,GAAG;gBACvB,UAAU,EAAE,SAAS;aACtB,CAAC,CAAA;YACF,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;YACpB,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAA;YAC9C,MAAM,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,8CAA8C,CAAC,CAAA;YAC9E,MAAM,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,6BAA6B,CAAC,CAAA;QAC/D,CAAC,CAAA,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA;AAlJY,QAAA,mBAAmB,uBAkJ/B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CustomSpanCommand } from './helper';
|
|
2
|
-
export declare class TraceCommand extends CustomSpanCommand {
|
|
3
|
-
static paths: string[][];
|
|
4
|
-
static usage: import("clipanion").Usage;
|
|
5
|
-
private command;
|
|
6
|
-
private name;
|
|
7
|
-
private noFail;
|
|
8
|
-
execute(): Promise<number>;
|
|
9
|
-
private signalToNumber;
|
|
10
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.TraceCommand = void 0;
|
|
16
|
-
const child_process_1 = require("child_process");
|
|
17
|
-
const os_1 = __importDefault(require("os"));
|
|
18
|
-
const clipanion_1 = require("clipanion");
|
|
19
|
-
const helper_1 = require("./helper");
|
|
20
|
-
// We use 127 as exit code for invalid commands since that is what *sh terminals return
|
|
21
|
-
const BAD_COMMAND_EXIT_CODE = 127;
|
|
22
|
-
class TraceCommand extends helper_1.CustomSpanCommand {
|
|
23
|
-
constructor() {
|
|
24
|
-
super(...arguments);
|
|
25
|
-
this.command = clipanion_1.Option.Rest({ required: 1 });
|
|
26
|
-
this.name = clipanion_1.Option.String('--name');
|
|
27
|
-
this.noFail = clipanion_1.Option.Boolean('--no-fail');
|
|
28
|
-
}
|
|
29
|
-
execute() {
|
|
30
|
-
var _a, _b;
|
|
31
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
this.tryEnableFips();
|
|
33
|
-
if (!this.command || !this.command.length) {
|
|
34
|
-
this.context.stderr.write('Missing command to run\n');
|
|
35
|
-
return 1;
|
|
36
|
-
}
|
|
37
|
-
const id = this.generateSpanId();
|
|
38
|
-
const [command, ...args] = this.command;
|
|
39
|
-
const startTime = new Date();
|
|
40
|
-
const childProcess = (0, child_process_1.spawn)(command, args, {
|
|
41
|
-
env: Object.assign(Object.assign({}, process.env), { DD_CUSTOM_PARENT_ID: id }),
|
|
42
|
-
stdio: ['inherit', 'inherit', 'pipe'],
|
|
43
|
-
});
|
|
44
|
-
const chunks = [];
|
|
45
|
-
childProcess.stderr.pipe(this.context.stderr);
|
|
46
|
-
const stderrCatcher = new Promise((resolve, reject) => {
|
|
47
|
-
childProcess.stderr.on('data', (chunk) => chunks.push(Buffer.from(chunk)));
|
|
48
|
-
childProcess.stderr.on('error', (err) => reject(err));
|
|
49
|
-
childProcess.stderr.on('end', () => resolve(Buffer.concat(chunks).toString('utf8')));
|
|
50
|
-
});
|
|
51
|
-
const [status, signal] = yield new Promise((resolve, reject) => {
|
|
52
|
-
childProcess.on('error', (error) => {
|
|
53
|
-
reject(error);
|
|
54
|
-
});
|
|
55
|
-
childProcess.on('close', (exitStatus, exitSignal) => {
|
|
56
|
-
resolve([exitStatus, exitSignal]);
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
const stderr = yield stderrCatcher;
|
|
60
|
-
const endTime = new Date();
|
|
61
|
-
const exitCode = (_a = status !== null && status !== void 0 ? status : this.signalToNumber(signal)) !== null && _a !== void 0 ? _a : BAD_COMMAND_EXIT_CODE;
|
|
62
|
-
const commandStr = this.command.join(' ');
|
|
63
|
-
const res = yield this.executeReportCustomSpan(id, startTime, endTime, {
|
|
64
|
-
command: commandStr,
|
|
65
|
-
name: (_b = this.name) !== null && _b !== void 0 ? _b : commandStr,
|
|
66
|
-
error_message: stderr,
|
|
67
|
-
exit_code: exitCode,
|
|
68
|
-
});
|
|
69
|
-
if (res !== 0) {
|
|
70
|
-
if (this.noFail) {
|
|
71
|
-
console.log('note: Not failing since --no-fail provided');
|
|
72
|
-
return exitCode;
|
|
73
|
-
}
|
|
74
|
-
return res;
|
|
75
|
-
}
|
|
76
|
-
return exitCode;
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
signalToNumber(signal) {
|
|
80
|
-
if (!signal) {
|
|
81
|
-
return undefined;
|
|
82
|
-
}
|
|
83
|
-
return os_1.default.constants.signals[signal] + 128;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
exports.TraceCommand = TraceCommand;
|
|
87
|
-
TraceCommand.paths = [['trace']];
|
|
88
|
-
TraceCommand.usage = clipanion_1.Command.Usage({
|
|
89
|
-
category: 'CI Visibility',
|
|
90
|
-
description: 'Trace a command with a custom span and report it to Datadog.',
|
|
91
|
-
details: `
|
|
92
|
-
This command wraps another command, which it will launch, and report a custom span to Datadog.\n
|
|
93
|
-
See README for details.
|
|
94
|
-
`,
|
|
95
|
-
examples: [
|
|
96
|
-
[
|
|
97
|
-
'Trace a command with name "Say Hello" and report to Datadog',
|
|
98
|
-
'datadog-ci trace --name "Say Hello" -- echo "Hello World"',
|
|
99
|
-
],
|
|
100
|
-
[
|
|
101
|
-
'Trace a command with name "Say Hello", extra tags and measures and report to Datadog',
|
|
102
|
-
'datadog-ci trace --name "Say Hello" --tags key1:value1 --tags key2:value2 --measures key3:3.5 --measures key4:8 -- echo "Hello World"',
|
|
103
|
-
],
|
|
104
|
-
[
|
|
105
|
-
'Trace a command and report to the datadoghq.eu site',
|
|
106
|
-
'DD_SITE=datadoghq.eu datadog-ci trace -- echo "Hello World"',
|
|
107
|
-
],
|
|
108
|
-
],
|
|
109
|
-
});
|
|
110
|
-
//# sourceMappingURL=trace.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trace.js","sourceRoot":"","sources":["../../../src/commands/trace/trace.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iDAAmC;AACnC,4CAAmB;AAEnB,yCAAyC;AAEzC,qCAA0C;AAE1C,uFAAuF;AACvF,MAAM,qBAAqB,GAAG,GAAG,CAAA;AAEjC,MAAa,YAAa,SAAQ,0BAAiB;IAAnD;;QA0BU,YAAO,GAAG,kBAAM,CAAC,IAAI,CAAC,EAAC,QAAQ,EAAE,CAAC,EAAC,CAAC,CAAA;QACpC,SAAI,GAAG,kBAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;QAC9B,WAAM,GAAG,kBAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;IAmE9C,CAAC;IAjEc,OAAO;;;YAClB,IAAI,CAAC,aAAa,EAAE,CAAA;YAEpB,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;gBACzC,IAAI,CAAC,OAAO,C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,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,GAAG,CAAA;IAC3C,CAAC;;AA9FH,oCA+FC;AA9Fe,kBAAK,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,AAAd,CAAc;AAEnB,kBAAK,GAAG,mBAAO,CAAC,KAAK,CAAC;IAClC,QAAQ,EAAE,eAAe;IACzB,WAAW,EAAE,8DAA8D;IAC3E,OAAO,EAAE;;;KAGR;IACD,QAAQ,EAAE;QACR;YACE,6DAA6D;YAC7D,2DAA2D;SAC5D;QACD;YACE,sFAAsF;YACtF,uIAAuI;SACxI;QACD;YACE,qDAAqD;YACrD,6DAA6D;SAC9D;KACF;CACF,CAAC,AArBiB,CAqBjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/commands/unity-symbols/cli.ts"],"names":[],"mappings":";;;AAAA,qCAAkD;AAErC,QAAA,QAAQ,GAAG,CAAC,kCAAyB,CAAC,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { RequestBuilder } from '@datadog/datadog-ci-base/helpers/interfaces';
|
|
2
|
-
import { MultipartPayload, UploadOptions } from '@datadog/datadog-ci-base/helpers/upload';
|
|
3
|
-
export declare const getUnityRequestBuilder: (apiKey: string, cliVersion: string, site: string) => (args: import("axios").AxiosRequestConfig<any>) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
4
|
-
export declare const uploadMultipartHelper: (requestBuilder: RequestBuilder, payload: MultipartPayload, opts: UploadOptions) => Promise<import("@datadog/datadog-ci-base/helpers/upload").UploadStatus>;
|
|
@@ -1,29 +0,0 @@
|
|
|
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.uploadMultipartHelper = exports.getUnityRequestBuilder = void 0;
|
|
13
|
-
const base_intake_url_1 = require("@datadog/datadog-ci-base/helpers/base-intake-url");
|
|
14
|
-
const upload_1 = require("@datadog/datadog-ci-base/helpers/upload");
|
|
15
|
-
const utils_1 = require("@datadog/datadog-ci-base/helpers/utils");
|
|
16
|
-
const getUnityRequestBuilder = (apiKey, cliVersion, site) => (0, utils_1.getRequestBuilder)({
|
|
17
|
-
apiKey,
|
|
18
|
-
baseUrl: (0, base_intake_url_1.getBaseSourcemapIntakeUrl)(site),
|
|
19
|
-
headers: new Map([
|
|
20
|
-
['DD-EVP-ORIGIN', 'datadog-ci_unity-symbols'],
|
|
21
|
-
['DD-EVP-ORIGIN-VERSION', cliVersion],
|
|
22
|
-
]),
|
|
23
|
-
overrideUrl: 'api/v2/srcmap',
|
|
24
|
-
});
|
|
25
|
-
exports.getUnityRequestBuilder = getUnityRequestBuilder;
|
|
26
|
-
// This function exists partially just to make mocking network calls easier.
|
|
27
|
-
const uploadMultipartHelper = (requestBuilder, payload, opts) => __awaiter(void 0, void 0, void 0, function* () { return (0, upload_1.upload)(requestBuilder)(payload, opts); });
|
|
28
|
-
exports.uploadMultipartHelper = uploadMultipartHelper;
|
|
29
|
-
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/commands/unity-symbols/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sFAA0F;AAE1F,oEAA+F;AAC/F,kEAAwE;AAEjE,MAAM,sBAAsB,GAAG,CAAC,MAAc,EAAE,UAAkB,EAAE,IAAY,EAAE,EAAE,CACzF,IAAA,yBAAiB,EAAC;IAChB,MAAM;IACN,OAAO,EAAE,IAAA,2CAAyB,EAAC,IAAI,CAAC;IACxC,OAAO,EAAE,IAAI,GAAG,CAAC;QACf,CAAC,eAAe,EAAE,0BAA0B,CAAC;QAC7C,CAAC,uBAAuB,EAAE,UAAU,CAAC;KACtC,CAAC;IACF,WAAW,EAAE,eAAe;CAC7B,CAAC,CAAA;AATS,QAAA,sBAAsB,0BAS/B;AAEJ,4EAA4E;AACrE,MAAM,qBAAqB,GAAG,CACnC,cAA8B,EAC9B,OAAyB,EACzB,IAAmB,EACnB,EAAE,kDAAC,OAAA,IAAA,eAAM,EAAC,cAAc,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA,GAAA,CAAA;AAJ7B,QAAA,qBAAqB,yBAIQ"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const TYPE_IL2CPP_MAPPING = "il2cpp_mapping_file";
|
|
2
|
-
export declare const VALUE_NAME_IL2CPP_MAPPING = "il2cpp_mapping_file";
|
|
3
|
-
export declare const IL2CPP_MAPPING_FILE_NAME = "LineNumberMappings.json";
|
|
4
|
-
export declare const TYPE_NDK_SYMBOL_FILE = "ndk_symbol_file";
|
|
5
|
-
export declare const VALUE_NAME_NDK_SYMBOL_FILE = "ndk_symbol_file";
|
|
6
|
-
export interface MappingMetadata {
|
|
7
|
-
arch?: string;
|
|
8
|
-
cli_version: string;
|
|
9
|
-
git_commit_sha?: string;
|
|
10
|
-
git_repository_url?: string;
|
|
11
|
-
platform?: string;
|
|
12
|
-
build_id: string;
|
|
13
|
-
type: string;
|
|
14
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VALUE_NAME_NDK_SYMBOL_FILE = exports.TYPE_NDK_SYMBOL_FILE = exports.IL2CPP_MAPPING_FILE_NAME = exports.VALUE_NAME_IL2CPP_MAPPING = exports.TYPE_IL2CPP_MAPPING = void 0;
|
|
4
|
-
exports.TYPE_IL2CPP_MAPPING = 'il2cpp_mapping_file';
|
|
5
|
-
exports.VALUE_NAME_IL2CPP_MAPPING = 'il2cpp_mapping_file';
|
|
6
|
-
exports.IL2CPP_MAPPING_FILE_NAME = 'LineNumberMappings.json';
|
|
7
|
-
exports.TYPE_NDK_SYMBOL_FILE = 'ndk_symbol_file';
|
|
8
|
-
exports.VALUE_NAME_NDK_SYMBOL_FILE = 'ndk_symbol_file';
|
|
9
|
-
//# sourceMappingURL=interfaces.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/commands/unity-symbols/interfaces.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG,qBAAqB,CAAA;AAC3C,QAAA,yBAAyB,GAAG,qBAAqB,CAAA;AACjD,QAAA,wBAAwB,GAAG,yBAAyB,CAAA;AAEpD,QAAA,oBAAoB,GAAG,iBAAiB,CAAA;AACxC,QAAA,0BAA0B,GAAG,iBAAiB,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { UploadStatus } from '@datadog/datadog-ci-base/helpers/upload';
|
|
2
|
-
export interface UploadInfo {
|
|
3
|
-
fileType: string;
|
|
4
|
-
location: string;
|
|
5
|
-
platform: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const renderCommandInfo: (dryRun: boolean, buildId: string, symbolsLocation: string) => string;
|
|
8
|
-
export declare const renderCommandSummary: (statuses: UploadStatus[], duration: number, dryRun: boolean) => string;
|
|
9
|
-
export declare const renderMustSupplyPlatform: () => string;
|
|
10
|
-
export declare const renderUseOnlyOnePlatform: () => string;
|
|
11
|
-
export declare const renderMissingBuildId: (path: string) => string;
|
|
12
|
-
export declare const renderGitWarning: (errorMessage: string) => string;
|
|
13
|
-
export declare const renderArgumentMissingError: (argumentName: string) => string;
|
|
14
|
-
export declare const renderGeneralizedError: (error: any) => string;
|
|
15
|
-
export declare const renderMissingDir: (directory: string) => string;
|
|
16
|
-
export declare const renderMissingIL2CPPMappingFile: (path: string) => string;
|
|
17
|
-
export declare const renderFailedUpload: (filePath: string, errorMessage: string) => string;
|
|
18
|
-
export declare const renderRetriedUpload: (filePath: string, errorMessage: string, attempt: number) => string;
|
|
19
|
-
export declare const renderUpload: (type: string, filePath: string) => string;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.renderUpload = exports.renderRetriedUpload = exports.renderFailedUpload = exports.renderMissingIL2CPPMappingFile = exports.renderMissingDir = exports.renderGeneralizedError = exports.renderArgumentMissingError = exports.renderGitWarning = exports.renderMissingBuildId = exports.renderUseOnlyOnePlatform = exports.renderMustSupplyPlatform = exports.renderCommandSummary = exports.renderCommandInfo = void 0;
|
|
7
|
-
const formatting_1 = require("@datadog/datadog-ci-base/helpers/formatting");
|
|
8
|
-
const upload_1 = require("@datadog/datadog-ci-base/helpers/upload");
|
|
9
|
-
const utils_1 = require("@datadog/datadog-ci-base/helpers/utils");
|
|
10
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
11
|
-
const renderCommandInfo = (dryRun, buildId, symbolsLocation) => {
|
|
12
|
-
let fullString = '';
|
|
13
|
-
if (dryRun) {
|
|
14
|
-
fullString += chalk_1.default.yellow(`${formatting_1.ICONS.WARNING} DRY-RUN MODE ENABLED. WILL NOT UPLOAD SOURCEMAPS\n`);
|
|
15
|
-
}
|
|
16
|
-
const startStr = chalk_1.default.green('Starting upload. \n');
|
|
17
|
-
fullString += startStr;
|
|
18
|
-
fullString += chalk_1.default.green(`Uploading symbols at location ${symbolsLocation}\n`);
|
|
19
|
-
const serviceVersionProjectPathStr = chalk_1.default.green(` buildId: ${buildId}\n`);
|
|
20
|
-
fullString += serviceVersionProjectPathStr;
|
|
21
|
-
fullString += chalk_1.default.green(`After upload is successful symbol files will be processed and ready to use within the next 5 minutes.\n`);
|
|
22
|
-
return fullString;
|
|
23
|
-
};
|
|
24
|
-
exports.renderCommandInfo = renderCommandInfo;
|
|
25
|
-
const renderCommandSummary = (statuses, duration, dryRun) => {
|
|
26
|
-
const results = new Map();
|
|
27
|
-
statuses.forEach((status) => {
|
|
28
|
-
if (!results.has(status)) {
|
|
29
|
-
results.set(status, 0);
|
|
30
|
-
}
|
|
31
|
-
results.set(status, results.get(status) + 1);
|
|
32
|
-
});
|
|
33
|
-
const output = ['', chalk_1.default.bold('Command summary:')];
|
|
34
|
-
if (results.get(upload_1.UploadStatus.Failure)) {
|
|
35
|
-
output.push(chalk_1.default.red(`${formatting_1.ICONS.FAILED} Some symbol files may not been uploaded correctly.`));
|
|
36
|
-
}
|
|
37
|
-
else if (results.get(upload_1.UploadStatus.Skipped)) {
|
|
38
|
-
output.push(chalk_1.default.yellow(`${formatting_1.ICONS.WARNING} Some symbol files have been skipped.`));
|
|
39
|
-
}
|
|
40
|
-
else if (results.get(upload_1.UploadStatus.Success)) {
|
|
41
|
-
if (dryRun) {
|
|
42
|
-
output.push(chalk_1.default.green(`${formatting_1.ICONS.SUCCESS} [DRYRUN] Handled symbol ${(0, utils_1.pluralize)(results.get(upload_1.UploadStatus.Success), 'file', 'files')} with success in ${duration} seconds.`));
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
output.push(chalk_1.default.green(`${formatting_1.ICONS.SUCCESS} Uploaded symbol ${(0, utils_1.pluralize)(results.get(upload_1.UploadStatus.Success), 'file', 'files')} in ${duration} seconds.`));
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
output.push(chalk_1.default.yellow(`${formatting_1.ICONS.WARNING} No actions were taken. Did you specify the correct path?`));
|
|
50
|
-
}
|
|
51
|
-
return output.join('\n') + '\n';
|
|
52
|
-
};
|
|
53
|
-
exports.renderCommandSummary = renderCommandSummary;
|
|
54
|
-
const renderMustSupplyPlatform = () => chalk_1.default.red(`${formatting_1.ICONS.FAILED} Error: Must supply either iOS or Android as your platform.\n`);
|
|
55
|
-
exports.renderMustSupplyPlatform = renderMustSupplyPlatform;
|
|
56
|
-
const renderUseOnlyOnePlatform = () => chalk_1.default.red(`${formatting_1.ICONS.FAILED} Error: Only supply either iOS or Android as your platform, not both.\n`);
|
|
57
|
-
exports.renderUseOnlyOnePlatform = renderUseOnlyOnePlatform;
|
|
58
|
-
const renderMissingBuildId = (path) => chalk_1.default.red(`${formatting_1.ICONS.FAILED} Error: Invalid or missing 'build_id' file. Expected at path ${path}\n`);
|
|
59
|
-
exports.renderMissingBuildId = renderMissingBuildId;
|
|
60
|
-
const renderGitWarning = (errorMessage) => chalk_1.default.yellow(`${formatting_1.ICONS.WARNING} An error occurred while invoking git: ${errorMessage}
|
|
61
|
-
Make sure the command is running within your git repository to fully leverage Datadog's git integration.
|
|
62
|
-
To ignore this warning use the --disable-git flag.\n`);
|
|
63
|
-
exports.renderGitWarning = renderGitWarning;
|
|
64
|
-
const renderArgumentMissingError = (argumentName) => chalk_1.default.red(`${formatting_1.ICONS.FAILED} Error: parameter "${argumentName}" is required.\n`);
|
|
65
|
-
exports.renderArgumentMissingError = renderArgumentMissingError;
|
|
66
|
-
const renderGeneralizedError = (error) => {
|
|
67
|
-
let str = chalk_1.default.red(`${formatting_1.ICONS.FAILED} Error: ${error}\n`);
|
|
68
|
-
str += error.stack;
|
|
69
|
-
return str;
|
|
70
|
-
};
|
|
71
|
-
exports.renderGeneralizedError = renderGeneralizedError;
|
|
72
|
-
const renderMissingDir = (directory) => chalk_1.default.red(`${formatting_1.ICONS.FAILED} Could not find symbols location: ${directory}`);
|
|
73
|
-
exports.renderMissingDir = renderMissingDir;
|
|
74
|
-
const renderMissingIL2CPPMappingFile = (path) => chalk_1.default.yellow(`${formatting_1.ICONS.WARNING} No IL2CPP mapping file was found at ${path}. This file is needed for C# line level symbolication.\n`);
|
|
75
|
-
exports.renderMissingIL2CPPMappingFile = renderMissingIL2CPPMappingFile;
|
|
76
|
-
const renderFailedUpload = (filePath, errorMessage) => {
|
|
77
|
-
const filePathBold = `[${chalk_1.default.bold.dim(filePath)}]`;
|
|
78
|
-
return chalk_1.default.red(`${formatting_1.ICONS.FAILED} Failed upload for ${filePathBold}: ${errorMessage}\n`);
|
|
79
|
-
};
|
|
80
|
-
exports.renderFailedUpload = renderFailedUpload;
|
|
81
|
-
const renderRetriedUpload = (filePath, errorMessage, attempt) => {
|
|
82
|
-
const sourcemapPathBold = `[${chalk_1.default.bold.dim(filePath)}]`;
|
|
83
|
-
return chalk_1.default.yellow(`[attempt ${attempt}] Retrying upload ${sourcemapPathBold}: ${errorMessage}\n`);
|
|
84
|
-
};
|
|
85
|
-
exports.renderRetriedUpload = renderRetriedUpload;
|
|
86
|
-
const renderUpload = (type, filePath) => `Uploading ${type} ${filePath}\n`;
|
|
87
|
-
exports.renderUpload = renderUpload;
|
|
88
|
-
//# sourceMappingURL=renderer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.js","sourceRoot":"","sources":["../../../src/commands/unity-symbols/renderer.ts"],"names":[],"mappings":";;;;;;AAAA,4EAAiE;AACjE,oEAAoE;AACpE,kEAAgE;AAChE,kDAAyB;AAQlB,MAAM,iBAAiB,GAAG,CAAC,MAAe,EAAE,OAAe,EAAE,eAAuB,EAAE,EAAE;IAC7F,IAAI,UAAU,GAAG,EAAE,CAAA;IACnB,IAAI,MAAM,EAAE;QACV,UAAU,IAAI,eAAK,CAAC,MAAM,CAAC,GAAG,kBAAK,CAAC,OAAO,qDAAqD,CAAC,CAAA;KAClG;IACD,MAAM,QAAQ,GAAG,eAAK,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAA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AC,CAAA;AAC1F,CAAC,CAAA;AAJY,QAAA,kBAAkB,sBAI9B;AAEM,MAAM,mBAAmB,GAAG,CAAC,QAAgB,EAAE,YAAoB,EAAE,OAAe,EAAE,EAAE;IAC7F,MAAM,iBAAiB,GAAG,IAAI,eAAK,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAA;IAEzD,OAAO,eAAK,CAAC,MAAM,CAAC,YAAY,OAAO,qBAAqB,iBAAiB,KAAK,YAAY,IAAI,CAAC,CAAA;AACrG,CAAC,CAAA;AAJY,QAAA,mBAAmB,uBAI/B;AAEM,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,QAAgB,EAAU,EAAE,CAAC,aAAa,IAAI,IAAI,QAAQ,IAAI,CAAA;AAA5F,QAAA,YAAY,gBAAgF"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { BaseCommand } from '@datadog/datadog-ci-base';
|
|
2
|
-
export declare class UnitySymbolsUploadCommand extends BaseCommand {
|
|
3
|
-
static paths: string[][];
|
|
4
|
-
static usage: import("clipanion").Usage;
|
|
5
|
-
private disableGit;
|
|
6
|
-
private dryRun;
|
|
7
|
-
private configPath;
|
|
8
|
-
private maxConcurrency;
|
|
9
|
-
private repositoryUrl;
|
|
10
|
-
private symbolsLocation;
|
|
11
|
-
private android;
|
|
12
|
-
private ios;
|
|
13
|
-
private skipIl2Cpp;
|
|
14
|
-
private buildId?;
|
|
15
|
-
private cliVersion;
|
|
16
|
-
private config;
|
|
17
|
-
private gitData?;
|
|
18
|
-
private fips;
|
|
19
|
-
private fipsIgnoreError;
|
|
20
|
-
private fipsConfig;
|
|
21
|
-
execute(): Promise<1 | 0>;
|
|
22
|
-
private getApiKeyValidator;
|
|
23
|
-
private getGitDataPayload;
|
|
24
|
-
private getGitMetadata;
|
|
25
|
-
private getMappingMetadata;
|
|
26
|
-
private getMetricsLogger;
|
|
27
|
-
private performDsymUpload;
|
|
28
|
-
private getBuildId;
|
|
29
|
-
private performSoUpload;
|
|
30
|
-
private performIl2CppMappingUpload;
|
|
31
|
-
private verifyParameters;
|
|
32
|
-
}
|