@datadog/datadog-ci 1.13.3 → 1.14.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.
Files changed (70) hide show
  1. package/LICENSE-3rdparty.csv +3 -0
  2. package/README.md +12 -11
  3. package/dist/commands/dsyms/upload.js +1 -2
  4. package/dist/commands/dsyms/upload.js.map +1 -1
  5. package/dist/commands/flutter-symbols/__tests__/upload.test.d.ts +1 -0
  6. package/dist/commands/flutter-symbols/__tests__/upload.test.js +542 -0
  7. package/dist/commands/flutter-symbols/__tests__/upload.test.js.map +1 -0
  8. package/dist/commands/flutter-symbols/cli.d.ts +1 -0
  9. package/dist/commands/flutter-symbols/cli.js +5 -0
  10. package/dist/commands/flutter-symbols/cli.js.map +1 -0
  11. package/dist/commands/flutter-symbols/helpers.d.ts +8 -0
  12. package/dist/commands/flutter-symbols/helpers.js +67 -0
  13. package/dist/commands/flutter-symbols/helpers.js.map +1 -0
  14. package/dist/commands/flutter-symbols/interfaces.d.ts +17 -0
  15. package/dist/commands/flutter-symbols/interfaces.js +10 -0
  16. package/dist/commands/flutter-symbols/interfaces.js.map +1 -0
  17. package/dist/commands/flutter-symbols/renderer.d.ts +22 -0
  18. package/dist/commands/flutter-symbols/renderer.js +102 -0
  19. package/dist/commands/flutter-symbols/renderer.js.map +1 -0
  20. package/dist/commands/flutter-symbols/upload.d.ts +37 -0
  21. package/dist/commands/flutter-symbols/upload.js +417 -0
  22. package/dist/commands/flutter-symbols/upload.js.map +1 -0
  23. package/dist/commands/lambda/functions/commons.d.ts +2 -2
  24. package/dist/commands/react-native/__tests__/codepush.test.d.ts +1 -0
  25. package/dist/commands/react-native/__tests__/codepush.test.js +154 -0
  26. package/dist/commands/react-native/__tests__/codepush.test.js.map +1 -0
  27. package/dist/commands/react-native/cli.js +2 -1
  28. package/dist/commands/react-native/cli.js.map +1 -1
  29. package/dist/commands/react-native/codepush.d.ts +24 -0
  30. package/dist/commands/react-native/codepush.js +160 -0
  31. package/dist/commands/react-native/codepush.js.map +1 -0
  32. package/dist/commands/react-native/errors.d.ts +9 -0
  33. package/dist/commands/react-native/errors.js +34 -0
  34. package/dist/commands/react-native/errors.js.map +1 -0
  35. package/dist/commands/react-native/upload.js +1 -2
  36. package/dist/commands/react-native/upload.js.map +1 -1
  37. package/dist/commands/sourcemaps/upload.js +1 -1
  38. package/dist/commands/sourcemaps/upload.js.map +1 -1
  39. package/dist/commands/synthetics/__tests__/api.test.js +28 -2
  40. package/dist/commands/synthetics/__tests__/api.test.js.map +1 -1
  41. package/dist/commands/synthetics/__tests__/cli.test.js +7 -7
  42. package/dist/commands/synthetics/__tests__/cli.test.js.map +1 -1
  43. package/dist/commands/synthetics/__tests__/mobile.test.d.ts +1 -0
  44. package/dist/commands/synthetics/__tests__/mobile.test.js +37 -0
  45. package/dist/commands/synthetics/__tests__/mobile.test.js.map +1 -0
  46. package/dist/commands/synthetics/__tests__/run-test.test.js +13 -43
  47. package/dist/commands/synthetics/__tests__/run-test.test.js.map +1 -1
  48. package/dist/commands/synthetics/__tests__/utils.test.js +41 -21
  49. package/dist/commands/synthetics/__tests__/utils.test.js.map +1 -1
  50. package/dist/commands/synthetics/__tests__/websocket.test.js +3 -3
  51. package/dist/commands/synthetics/__tests__/websocket.test.js.map +1 -1
  52. package/dist/commands/synthetics/api.d.ts +6 -2
  53. package/dist/commands/synthetics/api.js +26 -1
  54. package/dist/commands/synthetics/api.js.map +1 -1
  55. package/dist/commands/synthetics/mobile.d.ts +2 -0
  56. package/dist/commands/synthetics/mobile.js +38 -0
  57. package/dist/commands/synthetics/mobile.js.map +1 -0
  58. package/dist/commands/synthetics/run-test.d.ts +2 -66
  59. package/dist/commands/synthetics/run-test.js +17 -39
  60. package/dist/commands/synthetics/run-test.js.map +1 -1
  61. package/dist/commands/synthetics/utils.d.ts +2 -1
  62. package/dist/commands/synthetics/utils.js +134 -97
  63. package/dist/commands/synthetics/utils.js.map +1 -1
  64. package/dist/helpers/git/format-git-sourcemaps-data.d.ts +1 -0
  65. package/dist/helpers/git/format-git-sourcemaps-data.js +8 -0
  66. package/dist/helpers/git/format-git-sourcemaps-data.js.map +1 -1
  67. package/dist/helpers/utils.d.ts +3 -0
  68. package/dist/helpers/utils.js +9 -1
  69. package/dist/helpers/utils.js.map +1 -1
  70. package/package.json +5 -2
@@ -0,0 +1,417 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
22
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23
+ return new (P || (P = Promise))(function (resolve, reject) {
24
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
25
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
26
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
27
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
28
+ });
29
+ };
30
+ var __importDefault = (this && this.__importDefault) || function (mod) {
31
+ return (mod && mod.__esModule) ? mod : { "default": mod };
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ exports.UploadCommand = void 0;
35
+ const fs_1 = __importDefault(require("fs"));
36
+ const clipanion_1 = require("clipanion");
37
+ const glob_1 = __importDefault(require("glob"));
38
+ const js_yaml_1 = __importDefault(require("js-yaml"));
39
+ const semver_1 = __importDefault(require("semver"));
40
+ const tiny_async_pool_1 = __importDefault(require("tiny-async-pool"));
41
+ const apikey_1 = require("../../helpers/apikey");
42
+ const format_git_sourcemaps_data_1 = require("../../helpers/git/format-git-sourcemaps-data");
43
+ const metrics_1 = require("../../helpers/metrics");
44
+ const upload_1 = require("../../helpers/upload");
45
+ const utils_1 = require("../../helpers/utils");
46
+ const dsyms = __importStar(require("../dsyms/upload"));
47
+ const git_1 = require("../git-metadata/git");
48
+ const helpers_1 = require("./helpers");
49
+ const interfaces_1 = require("./interfaces");
50
+ const renderer_1 = require("./renderer");
51
+ class UploadCommand extends clipanion_1.Command {
52
+ constructor() {
53
+ super();
54
+ this.androidMapping = false;
55
+ this.config = {
56
+ apiKey: process.env.DATADOG_API_KEY,
57
+ datadogSite: process.env.DATADOG_SITE || 'datadoghq.com',
58
+ };
59
+ this.disableGit = false;
60
+ this.dryRun = false;
61
+ this.flavor = 'release';
62
+ this.iosDsyms = false;
63
+ this.maxConcurrency = 5;
64
+ this.pubspecLocation = './pubspec.yaml';
65
+ this.cliVersion = require('../../../package.json').version;
66
+ }
67
+ execute() {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ if (!(yield this.verifyParameters())) {
70
+ return 1;
71
+ }
72
+ const uploadInfo = [];
73
+ if (this.iosDsymsLocation) {
74
+ uploadInfo.push({
75
+ fileType: 'dSYMs',
76
+ location: this.iosDsymsLocation,
77
+ platform: 'ios',
78
+ });
79
+ }
80
+ if (this.androidMappingLocation) {
81
+ uploadInfo.push({
82
+ fileType: 'Proguard Mapping File',
83
+ location: this.androidMappingLocation,
84
+ platform: 'Android',
85
+ });
86
+ }
87
+ if (this.dartSymbolsLocation) {
88
+ uploadInfo.push({
89
+ fileType: 'Dart Symbol Files',
90
+ location: this.dartSymbolsLocation,
91
+ platform: 'Flutter',
92
+ });
93
+ }
94
+ this.context.stdout.write(renderer_1.renderCommandInfo(this.dryRun, this.version, this.serviceName, this.flavor, uploadInfo));
95
+ this.config = yield utils_1.resolveConfigFromFile(this.config, {
96
+ configPath: this.configPath,
97
+ defaultConfigPath: utils_1.DEFAULT_CONFIG_PATH,
98
+ });
99
+ if (!this.disableGit) {
100
+ this.gitData = yield this.getGitMetadata();
101
+ }
102
+ const initialTime = Date.now();
103
+ const callResults = [];
104
+ try {
105
+ if (this.iosDsymsLocation) {
106
+ callResults.push(yield this.performDsymUpload());
107
+ }
108
+ if (this.androidMappingLocation) {
109
+ callResults.push(yield this.performAndroidMappingUpload());
110
+ }
111
+ if (this.dartSymbolsLocation) {
112
+ callResults.push(...(yield this.performDartSymbolsUpload()));
113
+ }
114
+ const totalTime = (Date.now() - initialTime) / 1000;
115
+ this.context.stdout.write(renderer_1.renderCommandSummary(callResults, totalTime, this.dryRun));
116
+ }
117
+ catch (e) {
118
+ this.context.stderr.write(renderer_1.renderGeneralizedError(e));
119
+ return 1;
120
+ }
121
+ return 0;
122
+ });
123
+ }
124
+ getAndroidMetadata() {
125
+ return this.getMappingMetadata(interfaces_1.TYPE_JVM_MAPPING);
126
+ }
127
+ getApiKeyValidator(metricsLogger) {
128
+ return apikey_1.newApiKeyValidator({
129
+ apiKey: this.config.apiKey,
130
+ datadogSite: this.config.datadogSite,
131
+ metricsLogger: metricsLogger.logger,
132
+ });
133
+ }
134
+ getFlutterMetadata(platform, arch) {
135
+ return this.getMappingMetadata(interfaces_1.TYPE_DART_SYMBOLS, platform, arch);
136
+ }
137
+ getFlutterSymbolFiles(dartSymbolLocation) {
138
+ const symbolPaths = glob_1.default.sync(utils_1.buildPath(dartSymbolLocation, '*.symbols'));
139
+ return symbolPaths;
140
+ }
141
+ getGitDataPayload(gitData) {
142
+ const files = gitData.trackedFilesMatcher.rawTrackedFilesList();
143
+ const repoPayload = {
144
+ data: [
145
+ {
146
+ files,
147
+ hash: gitData.hash,
148
+ repository_url: gitData.remote,
149
+ },
150
+ ],
151
+ version: 1,
152
+ };
153
+ return {
154
+ options: { filename: 'repository', contentType: 'application/json' },
155
+ value: JSON.stringify(repoPayload),
156
+ };
157
+ }
158
+ getGitMetadata() {
159
+ return __awaiter(this, void 0, void 0, function* () {
160
+ try {
161
+ return yield format_git_sourcemaps_data_1.getRepositoryData(yield git_1.newSimpleGit(), this.repositoryUrl);
162
+ }
163
+ catch (e) {
164
+ this.context.stdout.write(renderer_1.renderGitWarning(e));
165
+ }
166
+ return undefined;
167
+ });
168
+ }
169
+ getMappingMetadata(type, platform, arch) {
170
+ var _a, _b;
171
+ return {
172
+ arch,
173
+ cli_version: this.cliVersion,
174
+ git_commit_sha: (_a = this.gitData) === null || _a === void 0 ? void 0 : _a.hash,
175
+ git_repository_url: (_b = this.gitData) === null || _b === void 0 ? void 0 : _b.remote,
176
+ platform,
177
+ service: this.serviceName,
178
+ type,
179
+ variant: this.flavor,
180
+ version: this.getSanitizedVersion(),
181
+ };
182
+ }
183
+ getMetricsLogger(tags) {
184
+ const metricsLogger = metrics_1.getMetricsLogger({
185
+ apiKey: this.config.apiKey,
186
+ datadogSite: this.config.datadogSite,
187
+ defaultTags: [
188
+ `version:${this.version}`,
189
+ `service:${this.serviceName}`,
190
+ `cli_version:${this.cliVersion}`,
191
+ 'platform:flutter',
192
+ ...tags,
193
+ ],
194
+ prefix: 'datadog.ci.symbols.upload.',
195
+ });
196
+ return metricsLogger;
197
+ }
198
+ getSanitizedVersion() {
199
+ return this.version.replace('+', '-');
200
+ }
201
+ parsePubspecVersion(pubspecLocation) {
202
+ return __awaiter(this, void 0, void 0, function* () {
203
+ if (!fs_1.default.existsSync(pubspecLocation)) {
204
+ this.context.stderr.write(renderer_1.renderMissingPubspecError(pubspecLocation));
205
+ return 1;
206
+ }
207
+ try {
208
+ const doc = js_yaml_1.default.load(fs_1.default.readFileSync(pubspecLocation, 'utf8'));
209
+ if (doc.version) {
210
+ this.version = doc.version;
211
+ const parsedVersion = semver_1.default.parse(this.version);
212
+ if (parsedVersion) {
213
+ if (parsedVersion.build.length > 0 || parsedVersion.prerelease.length > 0) {
214
+ this.context.stderr.write(renderer_1.renderVersionBuildNumberWarning(pubspecLocation));
215
+ this.version = `${parsedVersion.major}.${parsedVersion.minor}.${parsedVersion.patch}`;
216
+ }
217
+ }
218
+ else {
219
+ this.context.stderr.write(renderer_1.renderVersionNotSemver(pubspecLocation, this.version));
220
+ }
221
+ }
222
+ else {
223
+ this.context.stderr.write(renderer_1.renderPubspecMissingVersionError(pubspecLocation));
224
+ return 1;
225
+ }
226
+ }
227
+ catch (e) {
228
+ this.context.stderr.write(renderer_1.renderInvalidPubspecError(pubspecLocation));
229
+ return 1;
230
+ }
231
+ return 0;
232
+ });
233
+ }
234
+ performAndroidMappingUpload() {
235
+ return __awaiter(this, void 0, void 0, function* () {
236
+ const metricsLogger = this.getMetricsLogger(['platform:android']);
237
+ const apiKeyValidator = this.getApiKeyValidator(metricsLogger);
238
+ const requestBuilder = helpers_1.getFlutterRequestBuilder(this.config.apiKey, this.cliVersion, this.config.datadogSite);
239
+ if (this.dryRun) {
240
+ this.context.stdout.write(`[DRYRUN] ${renderer_1.renderUpload('Android Mapping File', this.androidMappingLocation)}`);
241
+ return 0;
242
+ }
243
+ const metadata = this.getAndroidMetadata();
244
+ const payload = {
245
+ content: new Map([
246
+ ['event', { value: JSON.stringify(metadata), options: { filename: 'event', contentType: 'application/json' } }],
247
+ [
248
+ interfaces_1.VALUE_NAME_JVM_MAPPING,
249
+ { value: fs_1.default.createReadStream(this.androidMappingLocation), options: { filename: interfaces_1.JVM_MAPPING_FILE_NAME } },
250
+ ],
251
+ ]),
252
+ };
253
+ if (this.gitData !== undefined) {
254
+ payload.content.set('repository', this.getGitDataPayload(this.gitData));
255
+ }
256
+ const result = yield helpers_1.uploadMultipartHelper(requestBuilder, payload, {
257
+ apiKeyValidator,
258
+ onError: (e) => {
259
+ this.context.stdout.write(renderer_1.renderFailedUpload(this.androidMappingLocation, e.message));
260
+ metricsLogger.logger.increment('failed', 1);
261
+ },
262
+ onRetry: (e, attempts) => {
263
+ this.context.stdout.write(renderer_1.renderRetriedUpload(this.androidMappingLocation, e.message, attempts));
264
+ metricsLogger.logger.increment('retries', 1);
265
+ },
266
+ onUpload: () => {
267
+ this.context.stdout.write(renderer_1.renderUpload('Android Mapping File', this.androidMappingLocation));
268
+ },
269
+ retries: 5,
270
+ });
271
+ this.context.stdout.write(`Mapping upload finished: ${result}\n`);
272
+ return result;
273
+ });
274
+ }
275
+ performDartSymbolsUpload() {
276
+ return __awaiter(this, void 0, void 0, function* () {
277
+ const metricsLogger = this.getMetricsLogger(['platform:android']);
278
+ const apiKeyValidator = this.getApiKeyValidator(metricsLogger);
279
+ const files = this.getFlutterSymbolFiles(this.dartSymbolsLocation);
280
+ const filesMetadata = files.map((filename) => (Object.assign({ filename }, helpers_1.getArchInfoFromFilename(filename))));
281
+ const requestBuilder = helpers_1.getFlutterRequestBuilder(this.config.apiKey, this.cliVersion, this.config.datadogSite);
282
+ try {
283
+ const results = yield tiny_async_pool_1.default(this.maxConcurrency, filesMetadata, (fileMetadata) => __awaiter(this, void 0, void 0, function* () {
284
+ if (!fileMetadata.arch || !fileMetadata.platform) {
285
+ renderer_1.renderFailedUpload(fileMetadata.filename, 'Skipped because we could not determine the architecture or platform.');
286
+ return upload_1.UploadStatus.Skipped;
287
+ }
288
+ if (this.dryRun) {
289
+ this.context.stdout.write(`[DRYRUN] ${renderer_1.renderUpload('Dart Symbol File', fileMetadata.filename)}`);
290
+ return upload_1.UploadStatus.Success;
291
+ }
292
+ const metadata = this.getFlutterMetadata(fileMetadata.platform, fileMetadata.arch);
293
+ const payload = {
294
+ content: new Map([
295
+ ['event', { value: JSON.stringify(metadata), options: { filename: 'event', contentType: 'application/json' } }],
296
+ [
297
+ interfaces_1.VALUE_NAME_DART_MAPPING,
298
+ { value: fs_1.default.createReadStream(fileMetadata.filename), options: { filename: interfaces_1.DART_SYMBOL_FILE_NAME } },
299
+ ],
300
+ ]),
301
+ };
302
+ if (this.gitData !== undefined) {
303
+ payload.content.set('repository', this.getGitDataPayload(this.gitData));
304
+ }
305
+ return helpers_1.uploadMultipartHelper(requestBuilder, payload, {
306
+ apiKeyValidator,
307
+ onError: (e) => {
308
+ this.context.stdout.write(renderer_1.renderFailedUpload(fileMetadata.filename, e.message));
309
+ metricsLogger.logger.increment('failed', 1);
310
+ },
311
+ onRetry: (e, attempts) => {
312
+ this.context.stdout.write(renderer_1.renderRetriedUpload(fileMetadata.filename, e.message, attempts));
313
+ metricsLogger.logger.increment('retries', 1);
314
+ },
315
+ onUpload: () => {
316
+ this.context.stdout.write(renderer_1.renderUpload('Flutter Symbol File', fileMetadata.filename));
317
+ },
318
+ retries: 5,
319
+ });
320
+ }));
321
+ return results;
322
+ }
323
+ catch (error) {
324
+ throw error;
325
+ }
326
+ finally {
327
+ try {
328
+ yield metricsLogger.flush();
329
+ }
330
+ catch (err) {
331
+ this.context.stdout.write(`WARN: ${err}\n`);
332
+ }
333
+ }
334
+ });
335
+ }
336
+ performDsymUpload() {
337
+ return __awaiter(this, void 0, void 0, function* () {
338
+ const dsymUploadCommand = ['dsyms', 'upload', this.iosDsymsLocation];
339
+ if (this.dryRun) {
340
+ dsymUploadCommand.push('--dry-run');
341
+ }
342
+ const exitCode = yield utils_1.performSubCommand(dsyms.UploadCommand, dsymUploadCommand, this.context);
343
+ if (exitCode && exitCode !== 0) {
344
+ return upload_1.UploadStatus.Failure;
345
+ }
346
+ return upload_1.UploadStatus.Success;
347
+ });
348
+ }
349
+ verifyParameters() {
350
+ return __awaiter(this, void 0, void 0, function* () {
351
+ let parametersOkay = true;
352
+ if (!this.serviceName) {
353
+ this.context.stderr.write(renderer_1.renderArgumentMissingError('service-name'));
354
+ parametersOkay = false;
355
+ }
356
+ if (this.dartSymbolsLocation) {
357
+ if (fs_1.default.existsSync(this.dartSymbolsLocation)) {
358
+ const stats = fs_1.default.statSync(this.dartSymbolsLocation);
359
+ if (!stats.isDirectory()) {
360
+ this.context.stderr.write(renderer_1.renderInvalidSymbolsDir(this.dartSymbolsLocation));
361
+ parametersOkay = false;
362
+ }
363
+ }
364
+ else {
365
+ this.context.stderr.write(renderer_1.renderMissingDartSymbolsDir(this.dartSymbolsLocation));
366
+ parametersOkay = false;
367
+ }
368
+ }
369
+ if (this.iosDsyms && !this.iosDsymsLocation) {
370
+ this.iosDsymsLocation = './build/ios/archive/Runner.xcarchive/dSYMs';
371
+ }
372
+ if (this.androidMapping && !this.androidMappingLocation) {
373
+ this.androidMappingLocation = `./build/app/outputs/mapping/${this.flavor}/mapping.txt`;
374
+ }
375
+ if (this.androidMappingLocation) {
376
+ if (!fs_1.default.existsSync(this.androidMappingLocation)) {
377
+ this.context.stderr.write(renderer_1.renderMissingAndroidMappingFile(this.androidMappingLocation));
378
+ parametersOkay = false;
379
+ }
380
+ }
381
+ if (!this.version && (yield this.parsePubspecVersion(this.pubspecLocation))) {
382
+ parametersOkay = false;
383
+ }
384
+ return parametersOkay;
385
+ });
386
+ }
387
+ }
388
+ exports.UploadCommand = UploadCommand;
389
+ UploadCommand.usage = clipanion_1.Command.Usage({
390
+ description: 'Upload symbol files for Flutter.',
391
+ details: `
392
+ This command will upload all symbol files for Flutter applications in order to symbolicate errors and
393
+ crash reports received by Datadog. This includes uploading iOS dSYMs, Proguard mapping files, and Dart
394
+ symbol files.
395
+ `,
396
+ examples: [
397
+ [
398
+ 'Upload all symbol files from default locations',
399
+ 'datadog-ci flutter-symbols upload --dart-symbols-location ./debug-info --service-name com.datadog.example --ios-dsyms --android-mapping',
400
+ ],
401
+ ],
402
+ });
403
+ UploadCommand.addPath('flutter-symbols', 'upload');
404
+ UploadCommand.addOption('flavor', clipanion_1.Command.String('--flavor'));
405
+ UploadCommand.addOption('dartSymbolsLocation', clipanion_1.Command.String('--dart-symbols-location'));
406
+ UploadCommand.addOption('iosDsyms', clipanion_1.Command.Boolean('--ios-dsyms'));
407
+ UploadCommand.addOption('iosDsymsLocation', clipanion_1.Command.String('--ios-dsyms-location'));
408
+ UploadCommand.addOption('androidMapping', clipanion_1.Command.Boolean('--android-mapping'));
409
+ UploadCommand.addOption('androidMappingLocation', clipanion_1.Command.String('--android-mapping-location'));
410
+ UploadCommand.addOption('pubspecLocation', clipanion_1.Command.String('--pubspec'));
411
+ UploadCommand.addOption('serviceName', clipanion_1.Command.String('--service-name'));
412
+ UploadCommand.addOption('maxConcurrency', clipanion_1.Command.String('--max-concurrency'));
413
+ UploadCommand.addOption('version', clipanion_1.Command.String('--version'));
414
+ UploadCommand.addOption('dryRun', clipanion_1.Command.Boolean('--dry-run'));
415
+ UploadCommand.addOption('disableGit', clipanion_1.Command.Boolean('--disable-git'));
416
+ UploadCommand.addOption('repositoryURL', clipanion_1.Command.String('--repository-url'));
417
+ //# sourceMappingURL=upload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload.js","sourceRoot":"","sources":["../../../src/commands/flutter-symbols/upload.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAmB;AAEnB,yCAAiC;AACjC,gDAAuB;AACvB,sDAA0B;AAC1B,oDAA2B;AAC3B,sEAAuC;AAEvC,iDAAwE;AACxE,6FAA8F;AAC9F,mDAAqE;AACrE,iDAAiE;AACjE,+CAA4G;AAC5G,uDAAwC;AACxC,6CAAgD;AAChD,uCAAkG;AAClG,6CAQqB;AACrB,yCAkBmB;AAEnB,MAAa,aAAc,SAAQ,mBAAO;IAqCxC;QACE,KAAK,EAAE,CAAA;QAtBD,mBAAc,GAAG,KAAK,CAAA;QAGtB,WAAM,GAAG;YACf,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe;YACnC,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,eAAe;SACzD,CAAA;QAGO,eAAU,GAAG,KAAK,CAAA;QAClB,WAAM,GAAG,KAAK,CAAA;QACd,WA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B,EAAE,mBAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAA;AAC/E,aAAa,CAAC,SAAS,CAAC,wBAAwB,EAAE,mBAAO,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAAC,CAAA;AAC/F,aAAa,CAAC,SAAS,CAAC,iBAAiB,EAAE,mBAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAA;AACvE,aAAa,CAAC,SAAS,CAAC,aAAa,EAAE,mBAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAA;AACxE,aAAa,CAAC,SAAS,CAAC,gBAAgB,EAAE,mBAAO,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAA;AAC9E,aAAa,CAAC,SAAS,CAAC,SAAS,EAAE,mBAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAA;AAC/D,aAAa,CAAC,SAAS,CAAC,QAAQ,EAAE,mBAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAA;AAC/D,aAAa,CAAC,SAAS,CAAC,YAAY,EAAE,mBAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAA;AACvE,aAAa,CAAC,SAAS,CAAC,eAAe,EAAE,mBAAO,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAA"}
@@ -111,8 +111,8 @@ export declare const isLambdaActive: (lambda: Lambda, config: Lambda.FunctionCon
111
111
  * @param runtime a string representing a Lambda FunctionConfiguration Runtime.
112
112
  * @returns if a runtime is supported.
113
113
  */
114
- export declare const isSupportedRuntime: (runtime?: string | undefined) => runtime is "nodejs12.x" | "nodejs14.x" | "java8.al2" | "java11" | "python3.6" | "python3.7" | "python3.8" | "python3.9" | "dotnetcore3.1" | "ruby2.5" | "ruby2.7" | "provided.al2" | "dotnet6" | "nodejs16.x";
115
- export declare const isLayerRuntime: (runtime: string) => runtime is "nodejs12.x" | "nodejs14.x" | "java8.al2" | "java11" | "python3.6" | "python3.7" | "python3.8" | "python3.9" | "dotnetcore3.1" | "extension" | "dotnet6" | "nodejs16.x";
114
+ export declare const isSupportedRuntime: (runtime?: string | undefined) => runtime is "nodejs12.x" | "nodejs14.x" | "nodejs16.x" | "java8.al2" | "java11" | "python3.6" | "python3.7" | "python3.8" | "python3.9" | "dotnetcore3.1" | "dotnet6" | "ruby2.5" | "ruby2.7" | "provided.al2";
115
+ export declare const isLayerRuntime: (runtime: string) => runtime is "nodejs12.x" | "nodejs14.x" | "nodejs16.x" | "java8.al2" | "java11" | "python3.6" | "python3.7" | "python3.8" | "python3.9" | "dotnetcore3.1" | "dotnet6" | "extension";
116
116
  export declare const sentenceMatchesRegEx: (sentence: string, regex: RegExp) => RegExpMatchArray | null;
117
117
  export declare const updateLambdaFunctionConfigs: (lambda: Lambda, cloudWatch: CloudWatchLogs, configs: FunctionConfiguration[]) => Promise<void>;
118
118
  export declare const willUpdateFunctionConfigs: (configs: FunctionConfiguration[]) => boolean;
@@ -0,0 +1,154 @@
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
+ // tslint:disable: no-string-literal
13
+ const advanced_1 = require("clipanion/lib/advanced");
14
+ const fs_1 = require("fs");
15
+ const codepush_1 = require("../codepush");
16
+ jest.mock('child_process', () => ({
17
+ exec: jest.fn().mockImplementation((command, callback) => {
18
+ const commandArgs = command.split(' ');
19
+ const appNameIndex = commandArgs.findIndex((arg) => arg === '--app') + 1;
20
+ const appName = commandArgs[appNameIndex];
21
+ let error;
22
+ let stdout;
23
+ let stderr;
24
+ if (appName === 'FakeOrg/FakeApp') {
25
+ stdout = fs_1.readFileSync('./src/commands/react-native/__tests__/fixtures/codepush-deployment-history/valid-deployment.txt');
26
+ }
27
+ else if (appName === 'FakeOrg/NoNetwork') {
28
+ error = `Error: Command failed: ${command}`;
29
+ stderr = fs_1.readFileSync('./src/commands/react-native/__tests__/fixtures/codepush-deployment-history/no-network.txt');
30
+ }
31
+ else if (appName === 'FakeOrg/NoRelease') {
32
+ stdout = fs_1.readFileSync('./src/commands/react-native/__tests__/fixtures/codepush-deployment-history/no-release-for-deployment.txt');
33
+ }
34
+ else if (appName === 'FakeOrg/WrongAppName') {
35
+ error = `Error: Command failed: ${command}`;
36
+ stderr = fs_1.readFileSync('./src/commands/react-native/__tests__/fixtures/codepush-deployment-history/wrong-app-name.txt');
37
+ }
38
+ else if (appName === 'FakeOrg/WrongDeploymentName') {
39
+ error = `Error: Command failed: ${command}`;
40
+ stderr = fs_1.readFileSync('./src/commands/react-native/__tests__/fixtures/codepush-deployment-history/wrong-deployment-name.txt');
41
+ }
42
+ else if (appName === 'FakeOrg/NotLoggedIn') {
43
+ error = `Error: Command failed: ${command}`;
44
+ stderr = fs_1.readFileSync('./src/commands/react-native/__tests__/fixtures/codepush-deployment-history/not-logged-in.txt');
45
+ }
46
+ else {
47
+ error = 'App name not mocked';
48
+ stderr = `App name ${appName} is not registered in the tests, add it in the \`exec\` mock at the top of src/commands/react-native/__tests__/codepush.test.ts`;
49
+ }
50
+ callback(error, stdout, stderr);
51
+ }),
52
+ }));
53
+ beforeEach(() => {
54
+ jest.restoreAllMocks();
55
+ });
56
+ const makeCli = () => {
57
+ const cli = new advanced_1.Cli();
58
+ cli.register(codepush_1.CodepushCommand);
59
+ return cli;
60
+ };
61
+ const createMockContext = () => {
62
+ let data = '';
63
+ let errorData = '';
64
+ return {
65
+ stderr: {
66
+ toString: () => errorData,
67
+ write: (input) => {
68
+ errorData += input;
69
+ },
70
+ },
71
+ stdout: {
72
+ toString: () => data,
73
+ write: (input) => {
74
+ data += input;
75
+ },
76
+ },
77
+ };
78
+ };
79
+ const runCLI = (appName) => __awaiter(void 0, void 0, void 0, function* () {
80
+ const cli = makeCli();
81
+ const context = createMockContext();
82
+ process.env = Object.assign(Object.assign({}, process.env), { DATADOG_API_KEY: 'PLACEHOLDER' });
83
+ const command = [
84
+ 'react-native',
85
+ 'codepush',
86
+ '--platform',
87
+ 'ios',
88
+ '--service',
89
+ 'com.myapp',
90
+ '--bundle',
91
+ './src/commands/react-native/__tests__/fixtures/basic-ios/main.jsbundle',
92
+ '--sourcemap',
93
+ './src/commands/react-native/__tests__/fixtures/basic-ios/main.jsbundle.map',
94
+ '--app',
95
+ appName,
96
+ '--deployment',
97
+ 'Production',
98
+ '--disable-git',
99
+ '--dry-run',
100
+ ];
101
+ const code = yield cli.run(command, context);
102
+ return { context, code };
103
+ });
104
+ describe('codepush', () => {
105
+ describe('execute', () => {
106
+ it('calls the upload command with a correct version number from the codepush history', () => __awaiter(void 0, void 0, void 0, function* () {
107
+ const { context, code } = yield runCLI('FakeOrg/FakeApp');
108
+ // Uncomment these lines for debugging failing script
109
+ // console.log(context.stdout.toString())
110
+ // console.log(context.stderr.toString())
111
+ expect(code).toBe(0);
112
+ const output = context.stdout.toString();
113
+ expect(output).toContain('Upload of ./src/commands/react-native/__tests__/fixtures/basic-ios/main.jsbundle.map for bundle ./src/commands/react-native/__tests__/fixtures/basic-ios/main.jsbundle on platform ios');
114
+ expect(output).toContain('version: 1.0-codepush.v7 build: 1 service: com.myapp');
115
+ }));
116
+ it('shows a meaningful error message when no release has been made yet', () => __awaiter(void 0, void 0, void 0, function* () {
117
+ const { context, code } = yield runCLI('FakeOrg/NoRelease');
118
+ // Uncomment these lines for debugging failing script
119
+ // console.log(context.stdout.toString())
120
+ // console.log(context.stderr.toString())
121
+ expect(code).toBe(1);
122
+ const output = context.stdout.toString();
123
+ expect(output).toContain('No codepush release has been created yet for FakeOrg/NoRelease Production');
124
+ }));
125
+ it('shows a meaningful error message when user has no network', () => __awaiter(void 0, void 0, void 0, function* () {
126
+ const { context, code } = yield runCLI('FakeOrg/NoNetwork');
127
+ // Uncomment these lines for debugging failing script
128
+ // console.log(context.stdout.toString())
129
+ // console.log(context.stderr.toString())
130
+ expect(code).toBe(1);
131
+ const output = context.stdout.toString();
132
+ expect(output).toContain('You need to have network access to be able to get the latest codepush label');
133
+ }));
134
+ it('shows a meaningful error message when user is not logged in to appcenter', () => __awaiter(void 0, void 0, void 0, function* () {
135
+ const { context, code } = yield runCLI('FakeOrg/NotLoggedIn');
136
+ // Uncomment these lines for debugging failing script
137
+ // console.log(context.stdout.toString())
138
+ // console.log(context.stderr.toString())
139
+ expect(code).toBe(1);
140
+ const output = context.stdout.toString();
141
+ expect(output).toContain("Command 'appcenter codepush deployment history' requires a logged in user. Use the 'appcenter login' command to log in.");
142
+ }));
143
+ it('shows a meaningful error message when user enters a non existing app name', () => __awaiter(void 0, void 0, void 0, function* () {
144
+ const { context, code } = yield runCLI('FakeOrg/WrongAppName');
145
+ // Uncomment these lines for debugging failing script
146
+ // console.log(context.stdout.toString())
147
+ // console.log(context.stderr.toString())
148
+ expect(code).toBe(1);
149
+ const output = context.stdout.toString();
150
+ expect(output).toContain('The app FakeOrg/WrongAppName does not exist.');
151
+ }));
152
+ });
153
+ });
154
+ //# sourceMappingURL=codepush.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codepush.test.js","sourceRoot":"","sources":["../../../../src/commands/react-native/__tests__/codepush.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,oCAAoC;AACpC,qDAA0C;AAC1C,2BAA+B;AAC/B,0CAA2C;AAE3C,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,GAAG,EAAE,CAAC,CAAC;IAChC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,OAAe,EAAE,QAAQ,EAAE,EAA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= require("./upload");
4
5
  const xcode_1 = require("./xcode");
5
- module.exports = [upload_1.UploadCommand, xcode_1.XCodeCommand];
6
+ module.exports = [codepush_1.CodepushCommand, upload_1.UploadCommand, xcode_1.XCodeCommand];
6
7
  //# sourceMappingURL=cli.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/commands/react-native/cli.ts"],"names":[],"mappings":";;AAAA,qCAAsC;AACtC,mCAAoC;AAEpC,MAAM,CAAC,OAAO,GAAG,CAAC,sBAAa,EAAE,oBAAY,CAAC,CAAA"}
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/commands/react-native/cli.ts"],"names":[],"mappings":";;AAAA,yCAA0C;AAC1C,qCAAsC;AACtC,mCAAoC;AAEpC,MAAM,CAAC,OAAO,GAAG,CAAC,0BAAe,EAAE,sBAAa,EAAE,oBAAY,CAAC,CAAA"}