@@ -94,6 +94,9 @@ module.exports = function run(args) {
94
94
//get the number of spec files
95
95
let specFiles = utils . getNumberOfSpecFiles ( bsConfig , args , cypressJson ) ;
96
96
97
+ // return the number of parallels user specified
98
+ let userSpecifiedParallels = utils . getParallels ( bsConfig , args ) ;
99
+
97
100
// accept the number of parallels
98
101
utils . setParallels ( bsConfig , args , specFiles . length ) ;
99
102
@@ -132,6 +135,12 @@ module.exports = function run(args) {
132
135
utils . setProcessHooks ( data . build_id , bsConfig , bs_local , args ) ;
133
136
let message = `${ data . message } ! ${ Constants . userMessages . BUILD_CREATED } with build id: ${ data . build_id } ` ;
134
137
let dashboardLink = `${ Constants . userMessages . VISIT_DASHBOARD } ${ data . dashboard_url } ` ;
138
+ let buildReportData = {
139
+ 'user_id' : data . user_details . id ,
140
+ 'group_id' : data . user_details . group_id ,
141
+ 'parallels_specified' : userSpecifiedParallels ,
142
+ 'parallels_allotted' : bsConfig . run_settings . parallels
143
+ } ;
135
144
utils . exportResults ( data . build_id , `${ config . dashboardUrl } ${ data . build_id } ` ) ;
136
145
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 ) ) {
137
146
logger . warn ( Constants . userMessages . NO_PARALLELS ) ;
@@ -169,7 +178,7 @@ module.exports = function run(args) {
169
178
170
179
// Generate custom report!
171
180
reportGenerator ( bsConfig , data . build_id , args , function ( ) {
172
- utils . sendUsageReport ( bsConfig , args , `${ message } \n${ dashboardLink } ` , Constants . messageTypes . SUCCESS , null ) ;
181
+ utils . sendUsageReport ( bsConfig , args , `${ message } \n${ dashboardLink } ` , Constants . messageTypes . SUCCESS , null , buildReportData ) ;
173
182
utils . handleSyncExit ( exitCode , data . dashboard_url ) ;
174
183
} ) ;
175
184
} ) ;
@@ -195,7 +204,8 @@ module.exports = function run(args) {
195
204
dataToSend . used_auto_local = bsConfig . connection_settings . usedAutoLocal ;
196
205
}
197
206
}
198
- utils . sendUsageReport ( bsConfig , args , `${ message } \n${ dashboardLink } ` , Constants . messageTypes . SUCCESS , null , dataToSend ) ;
207
+ buildReportData = { ...buildReportData , ...dataToSend } ;
208
+ utils . sendUsageReport ( bsConfig , args , `${ message } \n${ dashboardLink } ` , Constants . messageTypes . SUCCESS , null , buildReportData ) ;
199
209
return ;
200
210
} ) . catch ( async function ( err ) {
201
211
// Build creation failed
0 commit comments