Skip to content

Commit de95402

Browse files
committed
Feature: Enable GRR
- Automatically enable the GRR for GRR accounts. - Fetching the details and setting it in the CLI so builds work without interruptions.
1 parent f14755b commit de95402

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

bin/commands/runs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module.exports = function run(args, rawArgs) {
6767
// set cypress geo location
6868
utils.setGeolocation(bsConfig, args);
6969

70-
// set spec timeout
70+
// set spec timeout
7171
utils.setSpecTimeout(bsConfig, args);
7272

7373
// accept the specs list from command line if provided
@@ -390,8 +390,8 @@ module.exports = function run(args, rawArgs) {
390390
updateCheckInterval: 1000 * 60 * 60 * 24 * 7,
391391
});
392392

393-
// Checks for update on first run.
394-
// Set lastUpdateCheck to 0 to spawn the check update process as notifier sets this to Date.now() for preventing
393+
// Checks for update on first run.
394+
// Set lastUpdateCheck to 0 to spawn the check update process as notifier sets this to Date.now() for preventing
395395
// the check untill one interval period. It runs once.
396396
if (!notifier.disabled && Date.now() - notifier.config.get('lastUpdateCheck') < 50) {
397397
notifier.config.set('lastUpdateCheck', 0);

bin/helpers/getInitialDetails.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ exports.getInitialDetails = (bsConfig, args, rawArgs) => {
3333
utils.sendUsageReport(bsConfig, args, responseData["error"], Constants.messageTypes.ERROR, 'get_initial_details_failed', null, rawArgs);
3434
resolve({});
3535
} else {
36+
if (!utils.isUndefined(responseData.grr) && responseData.grr.enabled && !utils.isUndefined(responseData.grr.urls)) {
37+
config.uploadUrl = responseData.grr.urls.upload_url;
38+
}
3639
resolve(responseData);
3740
}
3841
}

0 commit comments

Comments
 (0)