File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -137,8 +137,7 @@ module.exports = function run(args) {
137
137
let dashboardLink = `${ Constants . userMessages . VISIT_DASHBOARD } ${ data . dashboard_url } ` ;
138
138
let buildReportData = {
139
139
'user_id' : data . user_id ,
140
- 'parallels_specified' : userSpecifiedParallels ,
141
- 'parallels_allotted' : bsConfig . run_settings . parallels
140
+ 'parallels' : userSpecifiedParallels
142
141
} ;
143
142
utils . exportResults ( data . build_id , `${ config . dashboardUrl } ${ data . build_id } ` ) ;
144
143
if ( ( utils . isUndefined ( bsConfig . run_settings . parallels ) && utils . isUndefined ( args . parallels ) ) || ( ! utils . isUndefined ( bsConfig . run_settings . parallels ) && bsConfig . run_settings . parallels == Constants . cliMessages . RUN . DEFAULT_PARALLEL_MESSAGE ) ) {
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ function isUsageReportingEnabled() {
173
173
function send ( args ) {
174
174
if ( isUsageReportingEnabled ( ) === "true" ) return ;
175
175
176
- let bsConfig = args . bstack_config ;
176
+ let bsConfig = JSON . parse ( JSON . stringify ( args . bstack_config ) ) ;
177
177
let cli_details = cli_version_and_path ( bsConfig ) ;
178
178
let data = utils . isUndefined ( args . data ) ? { } : args . data ;
179
179
@@ -182,18 +182,16 @@ function send(args) {
182
182
}
183
183
184
184
bsConfig [ 'auth' ] [ 'username' ] = "[REDACTED]"
185
- bsConfig [ 'auth' ] [ 'access_key' ] = "[REDACTED]"
186
-
185
+ bsConfig [ 'auth' ] [ 'access_key' ] = "[REDACTED]"
186
+
187
187
delete args . bstack_config ;
188
188
189
189
const payload = {
190
190
event_type : "cypress_cli_stats" ,
191
191
data : {
192
192
build_id : data . build_id ,
193
193
user_id : data . user_id ,
194
- group_id : data . group_id ,
195
- parallels_specified : data . parallels_specified ,
196
- parallels_allotted : data . parallels_allotted ,
194
+ parallels : data . parallels ,
197
195
bstack_json : bsConfig ,
198
196
run_settings : bsConfig . run_settings ,
199
197
os : _os ( ) ,
You can’t perform that action at this time.
0 commit comments