@@ -41,15 +41,13 @@ exports.pending_test_uploads = {
41
41
} ;
42
42
43
43
exports . debugOnConsole = ( text ) => {
44
- console . log ( `checking if BROWSERSTACK_TEST_OBSERVABILITY_DEBUG is enabled in debugOnConsole: ${ process . env . BROWSERSTACK_OBSERVABILITY_DEBUG } ` ) ;
45
44
if ( ( process . env . BROWSERSTACK_OBSERVABILITY_DEBUG + '' ) === "true" ||
46
45
( process . env . BROWSERSTACK_OBSERVABILITY_DEBUG + '' ) === "1" ) {
47
46
consoleHolder . log ( `[ ${ TEST_REPORTING_ANALYTICS } ] ${ text } ` ) ;
48
47
}
49
48
}
50
49
51
50
exports . debug = ( text , shouldReport = false , throwable = null ) => {
52
- console . log ( `checking if BROWSERSTACK_OBSERVABILITY_DEBUG is enabled in debug 52: ${ process . env . BROWSERSTACK_OBSERVABILITY_DEBUG } ` ) ;
53
51
if ( process . env . BROWSERSTACK_OBSERVABILITY_DEBUG === "true" || process . env . BROWSERSTACK_OBSERVABILITY_DEBUG === "1" ) {
54
52
logger . info ( `[ ${ TEST_REPORTING_ANALYTICS } ] ${ text } ` ) ;
55
53
}
@@ -95,7 +93,6 @@ const supportFileCleanup = () => {
95
93
exports . buildStopped = false ;
96
94
97
95
exports . printBuildLink = async ( shouldStopSession , exitCode = null ) => {
98
- console . log ( `checking if testObservability session is active from printBuildLink ${ this . isTestObservabilitySession ( ) } ` ) ;
99
96
if ( ! this . isTestObservabilitySession ( ) || exports . buildStopped ) return ;
100
97
exports . buildStopped = true ;
101
98
try {
@@ -329,11 +326,8 @@ const getCypressConfigFileContent = (bsConfig, cypressConfigPath) => {
329
326
}
330
327
331
328
exports . setCrashReportingConfigFromReporter = ( credentialsStr , bsConfigPath , cypressConfigPath ) => {
332
- console . log ( `Setting Crash Reporting Config with bsConfigPath: ${ bsConfigPath } ` ) ;
333
- console . log ( `Setting Crash Reporting Config with bsConfig: ${ JSON . stringify ( bsConfig ) } ` ) ;
334
329
try {
335
330
const browserstackConfigFile = utils . readBsConfigJSON ( bsConfigPath ) ;
336
-
337
331
const cypressConfigFile = getCypressConfigFileContent ( null , cypressConfigPath ) ;
338
332
339
333
if ( ! credentialsStr ) {
@@ -350,11 +344,7 @@ exports.setCrashReportingConfigFromReporter = (credentialsStr, bsConfigPath, cyp
350
344
351
345
const setCrashReportingConfig = ( bsConfig , bsConfigPath ) => {
352
346
try {
353
- console . log ( `Setting Crash Reporting Config with bsConfigPath: ${ bsConfigPath } ` ) ;
354
347
const browserstackConfigFile = utils . readBsConfigJSON ( bsConfigPath ) ;
355
- console . log ( `checking the type of bsConfig: ${ typeof bsConfig } ` ) ;
356
- console . log ( `printing username and acces_key from bsConfig: ${ bsConfig [ "auth" ] [ "username" ] } : ${ bsConfig [ "auth" ] [ "access_key" ] } ` ) ;
357
-
358
348
const cypressConfigFile = getCypressConfigFileContent ( bsConfig , null ) ;
359
349
const credentialsStr = JSON . stringify ( {
360
350
username : bsConfig [ "auth" ] [ "username" ] ,
@@ -532,7 +522,6 @@ exports.batchAndPostEvents = async (eventUrl, kind, data) => {
532
522
}
533
523
534
524
const RequestQueueHandler = require ( './requestQueueHandler' ) ;
535
- const constants = require ( '../../helpers/constants' ) ;
536
525
exports . requestQueueHandler = new RequestQueueHandler ( ) ;
537
526
538
527
exports . uploadEventData = async ( eventData , run = 0 ) => {
@@ -632,9 +621,6 @@ exports.setTestObservabilityFlags = (bsConfig) => {
632
621
/* set default again but under try catch in case of wrong config */
633
622
isTestObservabilitySession = utils . nonEmptyArray ( bsConfig . run_settings . downloads ) ? false : true ;
634
623
635
- console . log ( `bsconfig from setTestObservabilityFlags: ${ JSON . stringify ( bsConfig ) } ` ) ;
636
- console . log ( `bs test olly enabled from env: ${ process . env . BROWSERSTACK_TEST_OBSERVABILITY } ` ) ;
637
-
638
624
if ( ! utils . isUndefined ( bsConfig [ "testObservability" ] ) ) isTestObservabilitySession = ( bsConfig [ "testObservability" ] == true || bsConfig [ "testObservability" ] == 1 ) ;
639
625
if ( ! utils . isUndefined ( process . env . BROWSERSTACK_TEST_OBSERVABILITY ) ) isTestObservabilitySession = ( process . env . BROWSERSTACK_TEST_OBSERVABILITY == "true" || process . env . BROWSERSTACK_TEST_OBSERVABILITY == "1" ) ;
640
626
if ( process . argv . includes ( '--disable-test-observability' ) ) isTestObservabilitySession = false ;
@@ -660,7 +646,6 @@ exports.setTestObservabilityFlags = (bsConfig) => {
660
646
process . env . BROWSERSTACK_TEST_OBSERVABILITY = isTestObservabilitySession ;
661
647
process . env . BROWSERSTACK_AUTOMATION = isBrowserstackInfra ;
662
648
663
- console . log ( `final testObservability capability is set to in setTestPObservabilityFlag ${ isTestObservabilitySession } ` ) ;
664
649
return [ isTestObservabilitySession , isBrowserstackInfra ] ;
665
650
}
666
651
@@ -867,7 +852,6 @@ exports.resolveModule = (module) => {
867
852
868
853
const getReRunSpecs = ( rawArgs ) => {
869
854
let finalArgs = rawArgs ;
870
- console . log ( `checking if testObservability is enabled in getRerun specs ${ this . isTestObservabilitySession ( ) } ` ) ;
871
855
if ( this . isTestObservabilitySession ( ) && this . shouldReRunObservabilityTests ( ) ) {
872
856
let startIdx = - 1 , numEle = 0 ;
873
857
for ( let idx = 0 ; idx < rawArgs . length ; idx ++ ) {
@@ -886,7 +870,6 @@ const getReRunSpecs = (rawArgs) => {
886
870
}
887
871
888
872
const getLocalSessionReporter = ( ) => {
889
- console . log ( `checking if testObservability is enabled getLocalSessionReporter ${ this . isTestObservabilitySession ( ) } ` ) ;
890
873
if ( this . isTestObservabilitySession ( ) && process . env . BS_TESTOPS_JWT ) {
891
874
return [ '--reporter' , TEST_OBSERVABILITY_REPORTER_LOCAL ] ;
892
875
} else {
0 commit comments