@devicecloud.dev/dcd 3.3.5 → 3.3.7

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.
@@ -270,6 +270,10 @@ class Cloud extends core_1.Command {
270
270
  this.log('Run triggered, you can access the results at:');
271
271
  const url = `https://console.devicecloud.dev/results?upload=${results[0].test_upload_id}&result=${results[0].id}`;
272
272
  core_1.ux.url(url, url);
273
+ this.log(`\n`);
274
+ this.log(`Your upload ID is: ${results[0].test_upload_id}`);
275
+ this.log(`Poll upload status using: dcd status --api-key ... --upload-id ${results[0].test_upload_id}`);
276
+ this.log(`\n`);
273
277
  if (async) {
274
278
  this.log('Not waiting for results as async flag is set to true');
275
279
  return;
@@ -325,8 +329,9 @@ class Cloud extends core_1.Command {
325
329
  }
326
330
  }
327
331
  const resultsWithoutEarlierTries = updatedResults.filter((result) => {
328
- const beenRetried = updatedResults.find((r) => r.retry_of === result.id);
329
- return !beenRetried;
332
+ const originalTryId = result.retry_of || result.id;
333
+ const tries = updatedResults.filter((r) => r.retry_of === originalTryId || r.id === originalTryId);
334
+ return result.id === Math.max(...tries.map((t) => t.id));
330
335
  });
331
336
  if (resultsWithoutEarlierTries.some((result) => result.status === 'FAILED')) {
332
337
  reject(new Error('RUN_FAILED'));
@@ -398,5 +398,5 @@
398
398
  ]
399
399
  }
400
400
  },
401
- "version": "3.3.5"
401
+ "version": "3.3.7"
402
402
  }
package/package.json CHANGED
@@ -80,7 +80,7 @@
80
80
  "test": "mocha --forbid-only \"test/**/*.test.ts\"",
81
81
  "version": "oclif readme && git add README.md"
82
82
  },
83
- "version": "3.3.5",
83
+ "version": "3.3.7",
84
84
  "bugs": {
85
85
  "url": "https://discord.gg/gm3mJwcNw8"
86
86
  },