browserstack-node-sdk 1.53.6 → 1.54.0
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.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +4 -3
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a136_0x2818(_0x5dc16a,_0x1c0615){const _0x43dccd=a136_0x43dc();return a136_0x2818=function(_0x281803,_0x4aa284){_0x281803=_0x281803-0x1a1;let _0x19c121=_0x43dccd[_0x281803];return _0x19c121;},a136_0x2818(_0x5dc16a,_0x1c0615);}const a136_0x511531=a136_0x2818;function a136_0x43dc(){const _0xf007e2=['AiqEr','max','exports','4GWmRNW','pjRDi','uploadEventData','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','prrBo','pendingUploads','nestedKeyValue','FfVum','7500888jkUVxx','ERROR_ACCESS_DENIED','true','eventUrl','CBT_Upload','lSMek','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','Cbxxm','logs','./constants','fKsdL','TJhAC','EQZJn','isVnY','statusText','RnPJG','toString','browserstackAutomation','QJEch','Bearer\x20','ijkkj','upmcG','856302WWJngG','14xJsQiP','error','qWBUP','LhMun','35LJGZMX','bgzip','\x20:\x20','resolve','MYhDf','./requestQueueHandler','JPkkL','Content-Type','TEST_REPORTING_ANALYTICS','buildDescription','TestRunFinished','getInstance','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','7345910ZZVEmy','TestRunStarted','headers','1445481ECEKgV','344997LrsEtn','path','\x20:\x20missing\x20authentication\x20token','test_run_uuid','XWtmU','username','SPaiq','xRLvq','jwt','Authorization','response','cadKn','launch','start','gEbsL','uuid','Retry\x20runs\x20exceeded','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','oJJzo','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','waitForBuildStatus','pnDHo','yBcZN','pfuXi','BS_TESTOPS_JWT','cwMBr','ErgxO','5485076gxGsIm','event_type','stringify','inspect','TestRunSkipped','MjeBK','../helper','EGmDi','fOdcr','DKUMm','FPCGO','GnlIm','Hook_End_Upload','XKwta','buildIdentifier','POST','getGitMetaData','ERROR_INVALID_CREDENTIALS','./utils','pkznj','BS_TESTOPS_BUILD_HASHED_ID','xYGBB','dnIsu','ROszU','Log_Upload','../logger','BS_TESTOPS_BUILD_COMPLETED','BROWSERSTACK_TESTHUB_JWT','getLogTag','buildName','uxxZV','LogCreated','Batch-Queue','Hook_Start_Upload','CeIYg','includes','allow_screenshots','TyGFW','ffgjw','debug','BROWSERSTACK_BUILD_RUN_IDENTIFIER','env','false','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','TKdXP','ioYNS','api/v1/builds','Hqzfr','success','IzEma','JOqeR','uPiMj','Fflug','YDeRD','11lBhuSl','format','data','add','api/v1/event','BS_TESTOPS_ALLOW_SCREENSHOTS','UAAbN','winstonLogger','password','status','length','\x20retry\x20runs\x20exceeded','CREDENTIALS_FOR_CRASH_REPORTING','Test_Start_Upload','Build\x20creation\x20successful!','2526492ltdaUi','sendEventData','errorType','cwd','\x20REQUEST\x20TO\x20','test_run','null','frameworkName','getCiInfo','requestQueueHandler','json','CBTSessionCreated','qXbXX','FFJmE','sendTraceZip','message','wunOd','KBprq','build_hashed_id','info','frameworkVersion','projectName','../../bin/utils/constants','getAgentVersion','JUdUQ','BS_A11Y_JWT','iBfEo','Test_Skipped_Upload','getAccessKey','EXCEPTION\x20IN\x20'];a136_0x43dc=function(){return _0xf007e2;};return a136_0x43dc();}(function(_0x2d683f,_0x2a229d){const _0x4024b1=a136_0x2818,_0x5a0362=_0x2d683f();while(!![]){try{const _0x48ac41=-parseInt(_0x4024b1(0x245))/0x1+-parseInt(_0x4024b1(0x211))/0x2*(-parseInt(_0x4024b1(0x1f0))/0x3)+parseInt(_0x4024b1(0x1ab))/0x4+-parseInt(_0x4024b1(0x234))/0x5*(-parseInt(_0x4024b1(0x22f))/0x6)+-parseInt(_0x4024b1(0x230))/0x7*(parseInt(_0x4024b1(0x219))/0x8)+-parseInt(_0x4024b1(0x244))/0x9+-parseInt(_0x4024b1(0x241))/0xa*(parseInt(_0x4024b1(0x1e1))/0xb);if(_0x48ac41===_0x2a229d)break;else _0x5a0362['push'](_0x5a0362['shift']());}catch(_0x46f2a7){_0x5a0362['push'](_0x5a0362['shift']());}}}(a136_0x43dc,0xe54bd));const bsSetupHelper=require(a136_0x511531(0x1b1)),path=require(a136_0x511531(0x246)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a136_0x511531(0x1bd)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a136_0x511531(0x222)),RequestQueueHandler=require(a136_0x511531(0x239)),logger=require(a136_0x511531(0x1c4))[a136_0x511531(0x1e8)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require('../../helpers/testhub/utils'),util=require('util'),constants=require(a136_0x511531(0x206));class SessionHandler{static [a136_0x511531(0x1f9)]=RequestQueueHandler[a136_0x511531(0x23f)]();static async[a136_0x511531(0x251)](_0x17625f,_0x281dc0){const _0x34dd14=a136_0x511531,_0x110b80={'ffgjw':function(_0x4557e9,_0x2a855c){return _0x4557e9||_0x2a855c;},'dnIsu':function(_0x1019a7,_0x334ae3){return _0x1019a7||_0x334ae3;},'oJJzo':function(_0xb4bd09,_0x197867){return _0xb4bd09===_0x197867;},'wunOd':function(_0x3c34c0,_0x47894c){return _0x3c34c0(_0x47894c);},'Hqzfr':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','MYhDf':_0x34dd14(0x1d5),'MjeBK':_0x34dd14(0x1fa),'AiqEr':function(_0xcc34d1,_0x3203e2){return _0xcc34d1(_0x3203e2);},'XKwta':function(_0x1e4926,_0x4db4b8,_0x4062d1,_0x56c7fb,_0x39cbb3){return _0x1e4926(_0x4db4b8,_0x4062d1,_0x56c7fb,_0x39cbb3);},'cwMBr':_0x34dd14(0x1ba),'ePcbC':_0x34dd14(0x1d9),'YDeRD':_0x34dd14(0x1ef),'lSMek':function(_0x7e08f9){return _0x7e08f9();},'TJhAC':_0x34dd14(0x21b),'fOdcr':_0x34dd14(0x1f6),'vrDjX':_0x34dd14(0x1bc),'ErgxO':_0x34dd14(0x21a),'pkznj':'ERROR_SDK_DEPRECATED'};logger[_0x34dd14(0x203)](_0x34dd14(0x1d6)+util[_0x34dd14(0x1ae)](_0x17625f));const _0x5e2ba8=bsSetupHelper['getUserName'](_0x17625f),_0x5bddb0=bsSetupHelper[_0x34dd14(0x20c)](_0x17625f),_0x5c61d1=_0x110b80[_0x34dd14(0x1d1)](_0x5e2ba8,'')+':'+_0x110b80[_0x34dd14(0x1c1)](_0x5bddb0,'');if(_0x110b80[_0x34dd14(0x1a2)](_0x5c61d1,':'))return _0x110b80['wunOd'](debug,_0x110b80[_0x34dd14(0x1da)]),process[_0x34dd14(0x1d4)][_0x34dd14(0x1c5)]=_0x110b80[_0x34dd14(0x238)],[null,null];let _0x3dce68=![],_0x4563bb=![];if(_0x17625f[_0x34dd14(0x22a)]&&_0x17625f['app'])_0x4563bb=!![];else _0x17625f[_0x34dd14(0x22a)]&&(_0x3dce68=!![]);try{const _0x27bcf6={'format':_0x110b80[_0x34dd14(0x1b0)],'project_name':_0x17625f[_0x34dd14(0x205)]||'','name':_0x17625f[_0x34dd14(0x1c8)]||path['basename'](path[_0x34dd14(0x237)](process[_0x34dd14(0x1f3)]())),'build_identifier':_0x17625f[_0x34dd14(0x1b9)],'description':_0x17625f[_0x34dd14(0x23d)]||'','start_time':new Date()['toISOString'](),'tags':_0x110b80[_0x34dd14(0x200)](getCustomTags,_0x17625f),'host_info':bsSetupHelper['getHostInfo'](),'ci_info':bsSetupHelper[_0x34dd14(0x1f8)](),'build_run_identifier':process[_0x34dd14(0x1d4)][_0x34dd14(0x1d3)],'failed_tests_rerun':process[_0x34dd14(0x1d4)]['BROWSERSTACK_RERUN']||![],'version_control':await bsSetupHelper[_0x34dd14(0x1bb)](),'observability_version':{'frameworkName':_0x281dc0[_0x34dd14(0x1f7)],'frameworkVersion':_0x281dc0[_0x34dd14(0x204)],'sdkVersion':bsSetupHelper[_0x34dd14(0x207)]()},'product_map':_0x110b80[_0x34dd14(0x200)](getProductMap,_0x17625f),'test_orchestration':_0x110b80[_0x34dd14(0x20e)](getTestOrchestrationBuildStartData,_0x17625f)},_0x20aa8a={};_0x20aa8a[_0x34dd14(0x24a)]=_0x5e2ba8,_0x20aa8a['password']=_0x5bddb0;const _0x4a815b={'auth':_0x20aa8a,'headers':_0x110b80['wunOd'](getDefaultHeaders,![])},_0x35132b=await _0x110b80[_0x34dd14(0x1b8)](nodeRequest,_0x110b80[_0x34dd14(0x1a9)],_0x110b80['ePcbC'],_0x27bcf6,_0x4a815b);_0x110b80[_0x34dd14(0x20e)](debug,_0x110b80[_0x34dd14(0x1e0)]);const _0x39c498=_0x35132b[_0x34dd14(0x1e3)];_0x39c498[_0x34dd14(0x202)]&&(process[_0x34dd14(0x1d4)]['BROWSERSTACK_TESTHUB_UUID']=_0x39c498['build_hashed_id']);if(_0x110b80[_0x34dd14(0x21e)](isTestObservabilitySession)){process[_0x34dd14(0x1d4)][_0x34dd14(0x1c5)]=_0x110b80[_0x34dd14(0x224)];if(_0x39c498[_0x34dd14(0x24d)]){process[_0x34dd14(0x1d4)][_0x34dd14(0x1a8)]=_0x39c498['jwt'];const _0x41d137={};_0x41d137[_0x34dd14(0x24a)]=_0x5e2ba8,_0x41d137[_0x34dd14(0x1e9)]=_0x5bddb0,process[_0x34dd14(0x1d4)][_0x34dd14(0x1ed)]=JSON[_0x34dd14(0x1ad)](_0x41d137);}_0x39c498[_0x34dd14(0x202)]&&(process[_0x34dd14(0x1d4)][_0x34dd14(0x1bf)]=_0x39c498['build_hashed_id']),_0x39c498[_0x34dd14(0x1cf)]&&(process['env'][_0x34dd14(0x1e6)]=_0x39c498[_0x34dd14(0x1cf)][_0x34dd14(0x229)]());}return[_0x35132b[_0x34dd14(0x1e3)][_0x34dd14(0x24d)],_0x35132b['data'][_0x34dd14(0x202)],_0x35132b['data'][_0x34dd14(0x1cf)]];}catch(_0x4fd081){process[_0x34dd14(0x1d4)]['BROWSERSTACK_TESTHUB_UUID']=_0x110b80[_0x34dd14(0x1b3)],process[_0x34dd14(0x1d4)]['BS_TESTOPS_BUILD_COMPLETED']=_0x110b80[_0x34dd14(0x238)],process[_0x34dd14(0x1d4)][_0x34dd14(0x1a8)]=_0x110b80[_0x34dd14(0x1b3)],process[_0x34dd14(0x1d4)][_0x34dd14(0x1bf)]=_0x110b80[_0x34dd14(0x1b3)],process[_0x34dd14(0x1d4)][_0x34dd14(0x1e6)]=_0x110b80[_0x34dd14(0x1b3)];_0x4fd081[_0x34dd14(0x24f)]?_0x110b80['wunOd'](debug,_0x34dd14(0x1a3)+_0x4fd081[_0x34dd14(0x24f)]['status']+'\x20'+_0x4fd081['response'][_0x34dd14(0x227)]+'\x20'+JSON['stringify'](_0x4fd081[_0x34dd14(0x24f)]['data'])):_0x110b80[_0x34dd14(0x20e)](debug,_0x34dd14(0x1a3)+(_0x4fd081['message']||_0x4fd081));if(_0x4fd081&&_0x4fd081[_0x34dd14(0x1ff)]){const _0x540653=_0x4fd081['message'];switch(_0x4fd081[_0x34dd14(0x1f2)]){case _0x110b80['vrDjX']:logger[_0x34dd14(0x231)](_0x540653);break;case _0x110b80[_0x34dd14(0x1aa)]:logger[_0x34dd14(0x203)](_0x540653);break;case _0x110b80[_0x34dd14(0x1be)]:logger[_0x34dd14(0x231)](_0x540653);break;default:logger[_0x34dd14(0x231)](_0x540653);}}else console[_0x34dd14(0x203)]('Data\x20upload\x20to\x20BrowserStack\x20'+constants[_0x34dd14(0x23c)]+'\x20failed\x20due\x20to\x20'+_0x4fd081);return[null,null,null];}}static async[a136_0x511531(0x1a4)](){const _0x1f33eb=a136_0x511531,_0x1b4780={'prrBo':_0x1f33eb(0x21b),'ROszU':_0x1f33eb(0x1d5),'ioYNS':function(_0x13ebae,_0x3095f3){return _0x13ebae(_0x3095f3);}},_0x1c1fb6=process[_0x1f33eb(0x1d4)][_0x1f33eb(0x1c5)];if([_0x1b4780[_0x1f33eb(0x215)],_0x1b4780[_0x1f33eb(0x1c2)]][_0x1f33eb(0x1ce)](_0x1c1fb6))return;while([_0x1b4780['prrBo'],_0x1b4780[_0x1f33eb(0x1c2)]][_0x1f33eb(0x1ce)](_0x1c1fb6)){await _0x1b4780[_0x1f33eb(0x1d8)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a136_0x511531(0x1c7)](_0x53cffa){const _0x29a53b=a136_0x511531,_0x359189={};_0x359189[_0x29a53b(0x1c9)]=_0x29a53b(0x1ee),_0x359189['upmcG']='Test_End_Upload',_0x359189[_0x29a53b(0x1b4)]=_0x29a53b(0x20b),_0x359189[_0x29a53b(0x1d0)]=_0x29a53b(0x1c3),_0x359189[_0x29a53b(0x220)]=_0x29a53b(0x1cc),_0x359189[_0x29a53b(0x1b2)]=_0x29a53b(0x1b7),_0x359189['xRLvq']=_0x29a53b(0x21d);const _0x35acad=_0x359189,_0x344eda={};return _0x344eda[_0x29a53b(0x242)]=_0x35acad['uxxZV'],_0x344eda[_0x29a53b(0x23e)]=_0x35acad[_0x29a53b(0x22e)],_0x344eda[_0x29a53b(0x1af)]=_0x35acad[_0x29a53b(0x1b4)],_0x344eda[_0x29a53b(0x1ca)]=_0x35acad['TyGFW'],_0x344eda['HookRunStarted']=_0x35acad[_0x29a53b(0x220)],_0x344eda['HookRunFinished']=_0x35acad[_0x29a53b(0x1b2)],_0x344eda[_0x29a53b(0x1fb)]=_0x35acad[_0x29a53b(0x24c)],_0x344eda[_0x53cffa[_0x29a53b(0x1ac)]];}static async['sendEventData'](_0x8f81c,_0x4ae4a0=0x0,_0x174c57=null){const _0x15515f=a136_0x511531,_0x2e5c48={'YHfGg':function(_0x21ff4d,_0x1ae0d9){return _0x21ff4d===_0x1ae0d9;},'TKdXP':_0x15515f(0x1fe),'iBfEo':function(_0x26c951,_0x42febb){return _0x26c951!==_0x42febb;},'imPaG':'application/json','isVnY':_0x15515f(0x21b),'fKsdL':function(_0x41fa3b,_0x411ced){return _0x41fa3b===_0x411ced;},'ijkkj':function(_0x125829,_0x2f764a,_0x5dd947,_0x2291b4,_0x1c859b){return _0x125829(_0x2f764a,_0x5dd947,_0x2291b4,_0x1c859b);},'SlxGC':_0x15515f(0x1ba),'yBcZN':function(_0x2aec9d,_0x2f9e04){return _0x2aec9d(_0x2f9e04);},'pfuXi':function(_0x268e18,_0x589b26){return _0x268e18!==_0x589b26;},'JPkkL':_0x15515f(0x1cb),'pnDHo':function(_0x41b18e,_0x11a426){return _0x41b18e-_0x11a426;},'HwuIR':function(_0x3d821c,_0x43535d){return _0x3d821c===_0x43535d;},'xYGBB':_0x15515f(0x1e5),'JUdUQ':_0x15515f(0x1db),'SPaiq':function(_0x3e1a91,_0x9bfdd3){return _0x3e1a91(_0x9bfdd3);},'gEbsL':function(_0x5473c9,_0x40d48e){return _0x5473c9!==_0x40d48e;},'UAAbN':function(_0x3c9423,_0xc950cb){return _0x3c9423-_0xc950cb;},'mVTJL':function(_0x39401a,_0x4c939e){return _0x39401a===_0x4c939e;},'JOqeR':'error'};_0x2e5c48['YHfGg'](_0x174c57,_0x2e5c48['TKdXP'])&&logger[_0x15515f(0x1d2)]('Sending\x20trace\x20zip\x20for\x20test:\x20'+_0x8f81c['logs'][0x0]['test_run_uuid']);const _0x16338c=await this[_0x15515f(0x1c7)](_0x8f81c);let _0x1487e5=_0x8f81c,_0x5caa7e=EVENT_ENDPOINT;_0x2e5c48[_0x15515f(0x20a)](_0x174c57,_0x2e5c48['TKdXP'])&&this[_0x15515f(0x1f9)][_0x15515f(0x252)]();const {shouldProceed:_0x57ae2f,proceedWithData:_0x1d3131,proceedWithUrl:_0x2a68cd}=this[_0x15515f(0x1f9)][_0x15515f(0x1e4)](_0x8f81c);if(!_0x57ae2f)return;else _0x1d3131&&(_0x1487e5=_0x1d3131,_0x5caa7e=_0x2a68cd);const _0x5b93ee={};_0x5b93ee[_0x15515f(0x24e)]=_0x15515f(0x22c)+process[_0x15515f(0x1d4)][_0x15515f(0x1c6)],_0x5b93ee[_0x15515f(0x23b)]=_0x2e5c48['imPaG'],_0x5b93ee['X-BSTACK-TESTOPS']=_0x2e5c48[_0x15515f(0x226)];const _0x3fdd84={};_0x3fdd84[_0x15515f(0x243)]=_0x5b93ee;const _0x861847=_0x3fdd84;let _0x3cc860;try{_0x2e5c48[_0x15515f(0x223)](_0x174c57,_0x2e5c48[_0x15515f(0x1d7)])?(logger[_0x15515f(0x1d2)](_0x15515f(0x240)+_0x8f81c?.[_0x15515f(0x221)][0x0]?.[_0x15515f(0x248)]),_0x3cc860=await _0x2e5c48[_0x15515f(0x22d)](asyncAwaitNodeReq,_0x2e5c48['SlxGC'],_0x5caa7e,_0x1487e5,_0x861847),logger['debug'](_0x15515f(0x214)+_0x8f81c?.[_0x15515f(0x221)][0x0]?.['test_run_uuid'])):_0x3cc860=await _0x2e5c48[_0x15515f(0x22d)](nodeRequest,_0x2e5c48['SlxGC'],_0x5caa7e,_0x1487e5,_0x861847);if(_0x3cc860['data']['error']){const _0x3a56cd={};_0x3a56cd[_0x15515f(0x1ff)]=_0x3cc860['data'][_0x15515f(0x231)];throw _0x3a56cd;}else{_0x2e5c48[_0x15515f(0x1a6)](debug,(_0x2e5c48[_0x15515f(0x1a7)](_0x5caa7e,this[_0x15515f(0x1f9)][_0x15515f(0x21c)])?_0x16338c:_0x2e5c48[_0x15515f(0x23a)])+'['+_0x4ae4a0+']\x20event\x20successful!'),this[_0x15515f(0x1f9)][_0x15515f(0x216)]=Math[_0x15515f(0x20f)](0x0,_0x2e5c48[_0x15515f(0x1a5)](this[_0x15515f(0x1f9)][_0x15515f(0x216)],_0x2e5c48['HwuIR'](_0x5caa7e,_0x2e5c48[_0x15515f(0x1c0)])?0x1:_0x1487e5[_0x15515f(0x1eb)]));const _0x17deae={};return _0x17deae[_0x15515f(0x1ea)]=_0x2e5c48[_0x15515f(0x208)],_0x17deae[_0x15515f(0x1ff)]='',_0x17deae;}}catch(_0x12cf54){_0x12cf54[_0x15515f(0x24f)]?_0x2e5c48[_0x15515f(0x1a6)](debug,_0x15515f(0x20d)+(_0x2e5c48['iBfEo'](_0x5caa7e,this['requestQueueHandler']['eventUrl'])?_0x16338c:_0x2e5c48[_0x15515f(0x23a)])+_0x15515f(0x1f4)+constants[_0x15515f(0x23c)]+_0x15515f(0x236)+_0x12cf54[_0x15515f(0x24f)]['status']+'\x20'+_0x12cf54['response'][_0x15515f(0x227)]+'\x20'+util['format'](_0x12cf54[_0x15515f(0x24f)]['data'])):_0x2e5c48[_0x15515f(0x24b)](debug,_0x15515f(0x20d)+(_0x2e5c48[_0x15515f(0x253)](_0x5caa7e,this[_0x15515f(0x1f9)][_0x15515f(0x21c)])?_0x16338c:_0x2e5c48[_0x15515f(0x23a)])+'\x20REQUEST\x20TO\x20'+constants[_0x15515f(0x23c)]+'\x20:\x20'+util[_0x15515f(0x1e2)](_0x12cf54));this[_0x15515f(0x1f9)][_0x15515f(0x216)]=Math[_0x15515f(0x20f)](0x0,_0x2e5c48[_0x15515f(0x1e7)](this[_0x15515f(0x1f9)]['pendingUploads'],_0x2e5c48['mVTJL'](_0x5caa7e,_0x2e5c48[_0x15515f(0x1c0)])?0x1:_0x1487e5[_0x15515f(0x1eb)]));const _0xa9ba31={};return _0xa9ba31[_0x15515f(0x1ea)]=_0x2e5c48[_0x15515f(0x1dd)],_0xa9ba31[_0x15515f(0x1ff)]=_0x12cf54[_0x15515f(0x1ff)]||(_0x12cf54[_0x15515f(0x24f)]?_0x12cf54[_0x15515f(0x24f)]['status']+':'+_0x12cf54[_0x15515f(0x24f)]['statusText']:_0x12cf54),_0xa9ba31;}}static async[a136_0x511531(0x213)](_0x4c7c1b,_0x619c52=0x0){const _0x3cdfc4=a136_0x511531,_0x17e9b3={'qXbXX':function(_0x177250,_0x51229c){return _0x177250+_0x51229c;},'FfVum':function(_0x41bf9d,_0x582f9a){return _0x41bf9d(_0x582f9a);},'QJEch':_0x3cdfc4(0x1f5),'FFJmE':_0x3cdfc4(0x254),'pjRDi':'hook_run','CeIYg':function(_0x579c34,_0x49b224,_0x1366a3){return _0x579c34(_0x49b224,_0x1366a3);},'KBprq':'uploadEventData','zpERY':function(_0x4806d2,_0x3b8f5f){return _0x4806d2===_0x3b8f5f;},'cadKn':function(_0xd85479,_0x3362e3){return _0xd85479!==_0x3362e3;},'bgzip':_0x3cdfc4(0x1f6),'XWtmU':function(_0x1b7450,_0x16ebf0){return _0x1b7450===_0x16ebf0;},'IsQDX':_0x3cdfc4(0x21b),'CCYnD':function(_0xff2e30){return _0xff2e30();},'qWBUP':function(_0xc5e170,_0x2a9d97){return _0xc5e170-_0x2a9d97;},'RnPJG':_0x3cdfc4(0x231),'LGoEQ':_0x3cdfc4(0x21f),'uPiMj':function(_0x16a994,_0x141990){return _0x16a994>=_0x141990;},'IzEma':function(_0x210333,_0x413ab9){return _0x210333(_0x413ab9);},'FPCGO':function(_0x4d1e6a,_0x5b5c17){return _0x4d1e6a!==_0x5b5c17;},'LhMun':function(_0x52f284,_0x2fae13){return _0x52f284-_0x2fae13;},'EQZJn':_0x3cdfc4(0x255),'Fflug':'false','GnlIm':function(_0x5792d9,_0x7c8004,_0x4905c0){return _0x5792d9(_0x7c8004,_0x4905c0);}},_0x36c06e=this[_0x3cdfc4(0x1c7)](_0x4c7c1b);_0x17e9b3[_0x3cdfc4(0x218)](trace,'Processing\x20event\x20-\x20\x27'+_0x4c7c1b[_0x3cdfc4(0x1ac)]+'\x27\x20'+(bsSetupHelper[_0x3cdfc4(0x217)](_0x4c7c1b,[_0x17e9b3[_0x3cdfc4(0x22b)],_0x17e9b3[_0x3cdfc4(0x1fd)]])||bsSetupHelper[_0x3cdfc4(0x217)](_0x4c7c1b,[_0x17e9b3[_0x3cdfc4(0x212)],_0x17e9b3['FFJmE']])));if(!_0x17e9b3[_0x3cdfc4(0x1cd)](shouldProcessEventForTesthub,_0x4c7c1b[_0x3cdfc4(0x1ac)],_0x17e9b3[_0x3cdfc4(0x201)]))return;_0x17e9b3['zpERY'](_0x619c52,0x0)&&process[_0x3cdfc4(0x1d4)][_0x3cdfc4(0x1c6)]&&_0x17e9b3[_0x3cdfc4(0x250)](process[_0x3cdfc4(0x1d4)]['BROWSERSTACK_TESTHUB_JWT'],_0x17e9b3[_0x3cdfc4(0x235)])&&(this['requestQueueHandler'][_0x3cdfc4(0x216)]+=0x1);if(_0x17e9b3[_0x3cdfc4(0x249)](process['env']['BS_TESTOPS_BUILD_COMPLETED'],_0x17e9b3['IsQDX'])||process[_0x3cdfc4(0x1d4)][_0x3cdfc4(0x209)]||_0x17e9b3['CCYnD'](isPercyBuild)){if(_0x17e9b3[_0x3cdfc4(0x249)](process['env'][_0x3cdfc4(0x1c6)],_0x17e9b3[_0x3cdfc4(0x235)])){_0x17e9b3['FfVum'](debug,_0x3cdfc4(0x20d)+_0x36c06e+_0x3cdfc4(0x1f4)+constants[_0x3cdfc4(0x23c)]+_0x3cdfc4(0x247)),this['requestQueueHandler'][_0x3cdfc4(0x216)]=Math[_0x3cdfc4(0x20f)](0x0,_0x17e9b3[_0x3cdfc4(0x232)](this[_0x3cdfc4(0x1f9)][_0x3cdfc4(0x216)],0x1));const _0x5a0491={};return _0x5a0491[_0x3cdfc4(0x1ea)]=_0x17e9b3[_0x3cdfc4(0x228)],_0x5a0491[_0x3cdfc4(0x1ff)]=_0x17e9b3['LGoEQ'],_0x5a0491;}return await this[_0x3cdfc4(0x1f1)](_0x4c7c1b,_0x619c52);}else{if(_0x17e9b3[_0x3cdfc4(0x1de)](_0x619c52,0x5)){_0x17e9b3[_0x3cdfc4(0x1dc)](debug,_0x3cdfc4(0x20d)+_0x36c06e+_0x3cdfc4(0x1f4)+constants[_0x3cdfc4(0x23c)]+_0x3cdfc4(0x1a1)+_0x36c06e+_0x3cdfc4(0x1ec));_0x17e9b3[_0x3cdfc4(0x1b5)](process[_0x3cdfc4(0x1d4)][_0x3cdfc4(0x1c6)],_0x17e9b3[_0x3cdfc4(0x235)])&&(this[_0x3cdfc4(0x1f9)][_0x3cdfc4(0x216)]=Math[_0x3cdfc4(0x20f)](0x0,_0x17e9b3[_0x3cdfc4(0x233)](this['requestQueueHandler'][_0x3cdfc4(0x216)],0x1)));const _0x31569a={};return _0x31569a[_0x3cdfc4(0x1ea)]=_0x17e9b3[_0x3cdfc4(0x228)],_0x31569a[_0x3cdfc4(0x1ff)]=_0x17e9b3[_0x3cdfc4(0x225)],_0x31569a;}else _0x17e9b3[_0x3cdfc4(0x250)](process[_0x3cdfc4(0x1d4)][_0x3cdfc4(0x1c5)],_0x17e9b3[_0x3cdfc4(0x1df)])&&_0x17e9b3[_0x3cdfc4(0x1b6)](setTimeout,()=>{const _0xf6090=_0x3cdfc4;this['uploadEventData'](_0x4c7c1b,_0x17e9b3[_0xf6090(0x1fc)](_0x619c52,0x1));},0x3e8);}}}module[a136_0x511531(0x210)]=SessionHandler;
|
|
1
|
+
function a136_0x3570(){const _0x286c6a=['\x20failed\x20due\x20to\x20','mInbB','YBPmB','Sending\x20trace\x20zip\x20for\x20test:\x20','response','jrtXk','PVFlD','uCQUe','getAccessKey','CBTSessionCreated','start','../logger','false','toISOString','status','256218Kcztid','includes','5029574alaMno','IpDSs','kNubl','Bearer\x20','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','BRBGd','LdQeu','getHostInfo','YWpxl','env','21bvguNl','Build\x20creation\x20successful!','buildName','ajhjM','coksY','length','gHCFE','X-BSTACK-TESTOPS','2742164ltCNCD','add','./constants','frameworkName','allow_screenshots','MJFbg','BS_TESTOPS_JWT','XqrPS','dZYkO','waitForBuildStatus','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','TEST_REPORTING_ANALYTICS','thbYl',']\x20event\x20successful!','552897ckCFvq','1733130lLtGKM','getUserName','uploadEventData','data','4904648YIztYI','VkXRR','buildIdentifier','BROWSERSTACK_BUILD_RUN_IDENTIFIER','jwt','TestRunSkipped','mWFEw','xblyc','format','sjWNi','headers','UqHGr','YMvPj','frameworkVersion','tzXVm','resolve','ftgDG','zggTr','tPLuT','Hook_End_Upload','yBvXB','ERROR_ACCESS_DENIED','util','requestQueueHandler','../../helpers/testhub/utils','getInstance','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','build_hashed_id','hook_run','../../bin/utils/constants','Test_Skipped_Upload','kYpaJ','3EQbNYA','GtzCS','statusText','cwd','BROWSERSTACK_TESTHUB_UUID','CREDENTIALS_FOR_CRASH_REPORTING','true','winstonLogger','test_run_uuid','ePiNt','getGitMetaData','toString','errorType','qNQdp','application/json','error','success','Content-Type','Log_Upload','Rrqch','jAtAU','YjzmZ','exports','\x20:\x20','iLWrp','info','BROWSERSTACK_RERUN','eUKeg','OiSgj','SpJSH','VDnSo','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','BROWSERSTACK_TESTHUB_JWT','RGmXY','MmxGx','Test_Start_Upload','stringify','Retry\x20runs\x20exceeded','ERROR_INVALID_CREDENTIALS','ZabtV','./utils','191DsoTzs','nestedKeyValue','getLogTag','LogCreated','sendEventData','event_type','jOoGh','ERROR_SDK_DEPRECATED','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','json','projectName','iNQIm','BS_A11Y_JWT','NEOEs','max','LWHYG','wUbfJ','./requestQueueHandler','getCiInfo','null','xQuVN','254VWoccw','pendingUploads','password','NAoqg','YKYHy','../helper','Hook_Start_Upload','90WYgJKV','BS_TESTOPS_BUILD_COMPLETED','inspect','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','EXCEPTION\x20IN\x20','TestRunStarted','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','\x20REQUEST\x20TO\x20','QsxPa','message','EPJKi','path','NJSHl','nEgKv','HookRunFinished','BS_TESTOPS_BUILD_HASHED_ID','buildDescription','BS_TESTOPS_ALLOW_SCREENSHOTS','logs','POST','debug','\x20retry\x20runs\x20exceeded','wzNaq','Test_End_Upload','eventUrl','Batch-Queue','OLHJo','username','dwrwu','\x20:\x20missing\x20authentication\x20token','jMUDI','cZSmQ'];a136_0x3570=function(){return _0x286c6a;};return a136_0x3570();}const a136_0xa65045=a136_0x5975;function a136_0x5975(_0x49086d,_0x5ce91a){const _0x35705=a136_0x3570();return a136_0x5975=function(_0x597559,_0x20220){_0x597559=_0x597559-0x8f;let _0x30b733=_0x35705[_0x597559];return _0x30b733;},a136_0x5975(_0x49086d,_0x5ce91a);}(function(_0xa0030d,_0x4e376f){const _0xb83ba1=a136_0x5975,_0x13452e=_0xa0030d();while(!![]){try{const _0x5a46a4=-parseInt(_0xb83ba1(0x114))/0x1*(-parseInt(_0xb83ba1(0x129))/0x2)+-parseInt(_0xb83ba1(0xeb))/0x3*(-parseInt(_0xb83ba1(0xb8))/0x4)+parseInt(_0xb83ba1(0xc7))/0x5+-parseInt(_0xb83ba1(0xa4))/0x6*(parseInt(_0xb83ba1(0xb0))/0x7)+-parseInt(_0xb83ba1(0xcb))/0x8+parseInt(_0xb83ba1(0xc6))/0x9*(parseInt(_0xb83ba1(0x130))/0xa)+-parseInt(_0xb83ba1(0xa6))/0xb;if(_0x5a46a4===_0x4e376f)break;else _0x13452e['push'](_0x13452e['shift']());}catch(_0xdb923b){_0x13452e['push'](_0x13452e['shift']());}}}(a136_0x3570,0x64511));const bsSetupHelper=require(a136_0xa65045(0x12e)),path=require(a136_0xa65045(0x13b)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a136_0xa65045(0x113)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a136_0xa65045(0xba)),RequestQueueHandler=require(a136_0xa65045(0x125)),logger=require(a136_0xa65045(0xa0))[a136_0xa65045(0xf2)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a136_0xa65045(0xe3)),util=require(a136_0xa65045(0xe1)),constants=require(a136_0xa65045(0xe8));class SessionHandler{static [a136_0xa65045(0xe2)]=RequestQueueHandler[a136_0xa65045(0xe4)]();static async['launch'](_0x2c7655,_0x1227f0){const _0xd5f6b2=a136_0xa65045,_0x2ad97e={'PVFlD':function(_0x3462dd,_0x618b3e){return _0x3462dd||_0x618b3e;},'kNubl':function(_0x1f7961,_0x2aafe7){return _0x1f7961||_0x2aafe7;},'BRBGd':function(_0x18260c,_0x59ffbb){return _0x18260c===_0x59ffbb;},'iLWrp':function(_0x4f659d,_0x8b84ed){return _0x4f659d(_0x8b84ed);},'YTAtv':_0xd5f6b2(0xaa),'tPLuT':'false','dwrwu':_0xd5f6b2(0x11d),'xblyc':function(_0x1fae52,_0x3828f5){return _0x1fae52(_0x3828f5);},'YMvPj':function(_0x5b4e00,_0x3ffa16,_0xc5bfcb,_0x102144,_0x4c54dd){return _0x5b4e00(_0x3ffa16,_0xc5bfcb,_0x102144,_0x4c54dd);},'OLHJo':_0xd5f6b2(0x143),'OiSgj':'api/v1/builds','GtzCS':function(_0x377655,_0x158a8f){return _0x377655(_0x158a8f);},'kYpaJ':_0xd5f6b2(0xb1),'eUKeg':function(_0xffa850){return _0xffa850();},'VkXRR':'true','wUbfJ':_0xd5f6b2(0x127),'MmxGx':function(_0x58dfb7,_0x54c153){return _0x58dfb7(_0x54c153);},'sjWNi':_0xd5f6b2(0x111),'LdQeu':_0xd5f6b2(0xe0),'XqrPS':_0xd5f6b2(0x11b)};logger[_0xd5f6b2(0x104)](_0xd5f6b2(0x10a)+util[_0xd5f6b2(0x132)](_0x2c7655));const _0x371e67=bsSetupHelper[_0xd5f6b2(0xc8)](_0x2c7655),_0x23129a=bsSetupHelper[_0xd5f6b2(0x9d)](_0x2c7655),_0x2e26ef=_0x2ad97e[_0xd5f6b2(0x9b)](_0x371e67,'')+':'+_0x2ad97e[_0xd5f6b2(0xa8)](_0x23129a,'');if(_0x2ad97e[_0xd5f6b2(0xab)](_0x2e26ef,':'))return _0x2ad97e['iLWrp'](debug,_0x2ad97e['YTAtv']),process[_0xd5f6b2(0xaf)]['BS_TESTOPS_BUILD_COMPLETED']=_0x2ad97e[_0xd5f6b2(0xdd)],[null,null];let _0x184917=![],_0x895d9d=![];if(_0x2c7655['browserstackAutomation']&&_0x2c7655['app'])_0x895d9d=!![];else _0x2c7655['browserstackAutomation']&&(_0x184917=!![]);try{const _0x2848f4={'format':_0x2ad97e[_0xd5f6b2(0x91)],'project_name':_0x2c7655[_0xd5f6b2(0x11e)]||'','name':_0x2c7655[_0xd5f6b2(0xb2)]||path['basename'](path[_0xd5f6b2(0xda)](process[_0xd5f6b2(0xee)]())),'build_identifier':_0x2c7655[_0xd5f6b2(0xcd)],'description':_0x2c7655[_0xd5f6b2(0x140)]||'','start_time':new Date()[_0xd5f6b2(0xa2)](),'tags':_0x2ad97e[_0xd5f6b2(0x103)](getCustomTags,_0x2c7655),'host_info':bsSetupHelper[_0xd5f6b2(0xad)](),'ci_info':bsSetupHelper[_0xd5f6b2(0x126)](),'build_run_identifier':process[_0xd5f6b2(0xaf)][_0xd5f6b2(0xce)],'failed_tests_rerun':process[_0xd5f6b2(0xaf)][_0xd5f6b2(0x105)]||![],'version_control':await bsSetupHelper[_0xd5f6b2(0xf5)](),'observability_version':{'frameworkName':_0x1227f0[_0xd5f6b2(0xbb)],'frameworkVersion':_0x1227f0[_0xd5f6b2(0xd8)],'sdkVersion':bsSetupHelper['getAgentVersion']()},'product_map':_0x2ad97e['xblyc'](getProductMap,_0x2c7655),'test_orchestration':_0x2ad97e[_0xd5f6b2(0x103)](getTestOrchestrationBuildStartData,_0x2c7655)},_0x19916b={};_0x19916b[_0xd5f6b2(0x90)]=_0x371e67,_0x19916b[_0xd5f6b2(0x12b)]=_0x23129a;const _0x1653c1={'auth':_0x19916b,'headers':_0x2ad97e[_0xd5f6b2(0xd2)](getDefaultHeaders,![])},_0xc4906=await _0x2ad97e[_0xd5f6b2(0xd7)](nodeRequest,_0x2ad97e[_0xd5f6b2(0x8f)],_0x2ad97e[_0xd5f6b2(0x107)],_0x2848f4,_0x1653c1);_0x2ad97e[_0xd5f6b2(0xec)](debug,_0x2ad97e[_0xd5f6b2(0xea)]);const _0x12f46e=_0xc4906[_0xd5f6b2(0xca)];_0x12f46e[_0xd5f6b2(0xe6)]&&(process[_0xd5f6b2(0xaf)][_0xd5f6b2(0xef)]=_0x12f46e[_0xd5f6b2(0xe6)]);if(_0x2ad97e[_0xd5f6b2(0x106)](isTestObservabilitySession)){process['env'][_0xd5f6b2(0x131)]=_0x2ad97e[_0xd5f6b2(0xcc)];if(_0x12f46e[_0xd5f6b2(0xcf)]){process[_0xd5f6b2(0xaf)][_0xd5f6b2(0xbe)]=_0x12f46e[_0xd5f6b2(0xcf)];const _0x28b9d4={};_0x28b9d4['username']=_0x371e67,_0x28b9d4[_0xd5f6b2(0x12b)]=_0x23129a,process[_0xd5f6b2(0xaf)][_0xd5f6b2(0xf0)]=JSON['stringify'](_0x28b9d4);}_0x12f46e[_0xd5f6b2(0xe6)]&&(process['env']['BS_TESTOPS_BUILD_HASHED_ID']=_0x12f46e[_0xd5f6b2(0xe6)]),_0x12f46e[_0xd5f6b2(0xbc)]&&(process[_0xd5f6b2(0xaf)][_0xd5f6b2(0x141)]=_0x12f46e[_0xd5f6b2(0xbc)][_0xd5f6b2(0xf6)]());}return[_0xc4906['data'][_0xd5f6b2(0xcf)],_0xc4906[_0xd5f6b2(0xca)]['build_hashed_id'],_0xc4906['data'][_0xd5f6b2(0xbc)]];}catch(_0xb5c2b6){process[_0xd5f6b2(0xaf)][_0xd5f6b2(0xef)]=_0x2ad97e['wUbfJ'],process['env']['BS_TESTOPS_BUILD_COMPLETED']=_0x2ad97e[_0xd5f6b2(0xdd)],process['env'][_0xd5f6b2(0xbe)]=_0x2ad97e[_0xd5f6b2(0x124)],process[_0xd5f6b2(0xaf)][_0xd5f6b2(0x13f)]=_0x2ad97e[_0xd5f6b2(0x124)],process[_0xd5f6b2(0xaf)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x2ad97e[_0xd5f6b2(0x124)];_0xb5c2b6['response']?_0x2ad97e[_0xd5f6b2(0x10d)](debug,_0xd5f6b2(0x133)+_0xb5c2b6['response'][_0xd5f6b2(0xa3)]+'\x20'+_0xb5c2b6[_0xd5f6b2(0x99)][_0xd5f6b2(0xed)]+'\x20'+JSON[_0xd5f6b2(0x10f)](_0xb5c2b6[_0xd5f6b2(0x99)]['data'])):_0x2ad97e[_0xd5f6b2(0x10d)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+(_0xb5c2b6[_0xd5f6b2(0x139)]||_0xb5c2b6));if(_0xb5c2b6&&_0xb5c2b6[_0xd5f6b2(0x139)]){const _0x78aa3a=_0xb5c2b6[_0xd5f6b2(0x139)];switch(_0xb5c2b6[_0xd5f6b2(0xf7)]){case _0x2ad97e[_0xd5f6b2(0xd4)]:logger[_0xd5f6b2(0xfa)](_0x78aa3a);break;case _0x2ad97e[_0xd5f6b2(0xac)]:logger[_0xd5f6b2(0x104)](_0x78aa3a);break;case _0x2ad97e[_0xd5f6b2(0xbf)]:logger[_0xd5f6b2(0xfa)](_0x78aa3a);break;default:logger[_0xd5f6b2(0xfa)](_0x78aa3a);}}else console[_0xd5f6b2(0x104)]('Data\x20upload\x20to\x20BrowserStack\x20'+constants[_0xd5f6b2(0xc3)]+_0xd5f6b2(0x95)+_0xb5c2b6);return[null,null,null];}}static async[a136_0xa65045(0xc1)](){const _0x487c6c=a136_0xa65045,_0x2bb65d={'ajhjM':_0x487c6c(0xf1),'IpDSs':'false','jrtXk':function(_0x430902,_0x5ab096){return _0x430902(_0x5ab096);}},_0x1c9606=process['env']['BS_TESTOPS_BUILD_COMPLETED'];if([_0x2bb65d['ajhjM'],_0x2bb65d['IpDSs']]['includes'](_0x1c9606))return;while([_0x2bb65d[_0x487c6c(0xb3)],_0x2bb65d[_0x487c6c(0xa7)]][_0x487c6c(0xa5)](_0x1c9606)){await _0x2bb65d[_0x487c6c(0x9a)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a136_0xa65045(0x116)](_0x5f3359){const _0x3ca617=a136_0xa65045,_0x4370f7={};_0x4370f7[_0x3ca617(0xdb)]=_0x3ca617(0x10e),_0x4370f7['YKYHy']=_0x3ca617(0x147),_0x4370f7[_0x3ca617(0x146)]=_0x3ca617(0xe9),_0x4370f7[_0x3ca617(0x128)]=_0x3ca617(0xfd),_0x4370f7[_0x3ca617(0x97)]=_0x3ca617(0x12f),_0x4370f7[_0x3ca617(0xd9)]=_0x3ca617(0xde),_0x4370f7[_0x3ca617(0x13d)]='CBT_Upload';const _0x2b1170=_0x4370f7,_0x50cda4={};return _0x50cda4[_0x3ca617(0x135)]=_0x2b1170['ftgDG'],_0x50cda4['TestRunFinished']=_0x2b1170[_0x3ca617(0x12d)],_0x50cda4[_0x3ca617(0xd0)]=_0x2b1170[_0x3ca617(0x146)],_0x50cda4[_0x3ca617(0x117)]=_0x2b1170[_0x3ca617(0x128)],_0x50cda4['HookRunStarted']=_0x2b1170['YBPmB'],_0x50cda4[_0x3ca617(0x13e)]=_0x2b1170['tzXVm'],_0x50cda4[_0x3ca617(0x9e)]=_0x2b1170[_0x3ca617(0x13d)],_0x50cda4[_0x5f3359[_0x3ca617(0x119)]];}static async[a136_0xa65045(0x118)](_0xcc7d32,_0x198719=0x0,_0x275e3f=null){const _0x4e5848=a136_0xa65045,_0x46e92e={'yBvXB':function(_0x816f3d,_0x4afee1){return _0x816f3d===_0x4afee1;},'cZSmQ':'sendTraceZip','ulcYS':function(_0x3bb04e,_0x1716a3){return _0x3bb04e!==_0x1716a3;},'SpJSH':_0x4e5848(0xf9),'iNQIm':_0x4e5848(0xf1),'nYeSb':function(_0x55c52f,_0x1c29fb,_0x2154cb,_0x32daa9,_0x29a2b6){return _0x55c52f(_0x1c29fb,_0x2154cb,_0x32daa9,_0x29a2b6);},'mInbB':_0x4e5848(0x143),'dZYkO':function(_0x54eeb8,_0x523037,_0x1f2834,_0x24317b,_0x2e3e5f){return _0x54eeb8(_0x523037,_0x1f2834,_0x24317b,_0x2e3e5f);},'YjzmZ':function(_0x44e053,_0x554dd7){return _0x44e053(_0x554dd7);},'NJSHl':function(_0x911fe9,_0x1d11e2){return _0x911fe9!==_0x1d11e2;},'uCQUe':_0x4e5848(0x149),'ZabtV':function(_0x4b5c8a,_0x130dff){return _0x4b5c8a-_0x130dff;},'qNQdp':'api/v1/event','NEOEs':_0x4e5848(0xfb),'mWFEw':function(_0x1f4476,_0x5e08cf){return _0x1f4476!==_0x5e08cf;},'ePiNt':function(_0x23d737,_0x2bcc58){return _0x23d737!==_0x2bcc58;},'NAoqg':_0x4e5848(0xfa)};_0x46e92e[_0x4e5848(0xdf)](_0x275e3f,_0x46e92e['cZSmQ'])&&logger[_0x4e5848(0x144)](_0x4e5848(0x98)+_0xcc7d32[_0x4e5848(0x142)][0x0][_0x4e5848(0xf3)]);const _0x39ea1b=await this['getLogTag'](_0xcc7d32);let _0x591a89=_0xcc7d32,_0x5252af=EVENT_ENDPOINT;_0x46e92e['ulcYS'](_0x275e3f,_0x46e92e[_0x4e5848(0x94)])&&this[_0x4e5848(0xe2)][_0x4e5848(0x9f)]();const {shouldProceed:_0x2b03f2,proceedWithData:_0x32a96e,proceedWithUrl:_0x3aaadb}=this[_0x4e5848(0xe2)][_0x4e5848(0xb9)](_0xcc7d32);if(!_0x2b03f2)return;else _0x32a96e&&(_0x591a89=_0x32a96e,_0x5252af=_0x3aaadb);const _0x2c92a3={};_0x2c92a3['Authorization']=_0x4e5848(0xa9)+process['env'][_0x4e5848(0x10b)],_0x2c92a3[_0x4e5848(0xfc)]=_0x46e92e[_0x4e5848(0x108)],_0x2c92a3[_0x4e5848(0xb7)]=_0x46e92e[_0x4e5848(0x11f)];const _0xf72fa0={};_0xf72fa0[_0x4e5848(0xd5)]=_0x2c92a3;const _0x43568c=_0xf72fa0;let _0x38326a;try{_0x46e92e['yBvXB'](_0x275e3f,_0x46e92e['cZSmQ'])?(logger[_0x4e5848(0x144)](_0x4e5848(0xc2)+_0xcc7d32?.[_0x4e5848(0x142)][0x0]?.[_0x4e5848(0xf3)]),_0x38326a=await _0x46e92e['nYeSb'](asyncAwaitNodeReq,_0x46e92e[_0x4e5848(0x96)],_0x5252af,_0x591a89,_0x43568c),logger['debug'](_0x4e5848(0x11c)+_0xcc7d32?.[_0x4e5848(0x142)][0x0]?.[_0x4e5848(0xf3)])):_0x38326a=await _0x46e92e[_0x4e5848(0xc0)](nodeRequest,_0x46e92e[_0x4e5848(0x96)],_0x5252af,_0x591a89,_0x43568c);if(_0x38326a[_0x4e5848(0xca)][_0x4e5848(0xfa)]){const _0x3c3f81={};_0x3c3f81['message']=_0x38326a[_0x4e5848(0xca)][_0x4e5848(0xfa)];throw _0x3c3f81;}else{_0x46e92e['YjzmZ'](debug,(_0x46e92e[_0x4e5848(0x13c)](_0x5252af,this[_0x4e5848(0xe2)][_0x4e5848(0x148)])?_0x39ea1b:_0x46e92e[_0x4e5848(0x9c)])+'['+_0x198719+_0x4e5848(0xc5)),this[_0x4e5848(0xe2)][_0x4e5848(0x12a)]=Math[_0x4e5848(0x122)](0x0,_0x46e92e[_0x4e5848(0x112)](this[_0x4e5848(0xe2)][_0x4e5848(0x12a)],_0x46e92e[_0x4e5848(0xdf)](_0x5252af,_0x46e92e[_0x4e5848(0xf8)])?0x1:_0x591a89[_0x4e5848(0xb5)]));const _0xedcde4={};return _0xedcde4[_0x4e5848(0xa3)]=_0x46e92e[_0x4e5848(0x121)],_0xedcde4[_0x4e5848(0x139)]='',_0xedcde4;}}catch(_0x49397f){_0x49397f[_0x4e5848(0x99)]?_0x46e92e[_0x4e5848(0x100)](debug,_0x4e5848(0x134)+(_0x46e92e[_0x4e5848(0xd1)](_0x5252af,this[_0x4e5848(0xe2)][_0x4e5848(0x148)])?_0x39ea1b:_0x46e92e[_0x4e5848(0x9c)])+_0x4e5848(0x137)+constants[_0x4e5848(0xc3)]+'\x20:\x20'+_0x49397f[_0x4e5848(0x99)][_0x4e5848(0xa3)]+'\x20'+_0x49397f[_0x4e5848(0x99)][_0x4e5848(0xed)]+'\x20'+util[_0x4e5848(0xd3)](_0x49397f['response'][_0x4e5848(0xca)])):_0x46e92e[_0x4e5848(0x100)](debug,_0x4e5848(0x134)+(_0x46e92e[_0x4e5848(0xf4)](_0x5252af,this[_0x4e5848(0xe2)][_0x4e5848(0x148)])?_0x39ea1b:_0x46e92e[_0x4e5848(0x9c)])+_0x4e5848(0x137)+constants['TEST_REPORTING_ANALYTICS']+_0x4e5848(0x102)+util[_0x4e5848(0xd3)](_0x49397f));this[_0x4e5848(0xe2)][_0x4e5848(0x12a)]=Math[_0x4e5848(0x122)](0x0,_0x46e92e['ZabtV'](this[_0x4e5848(0xe2)]['pendingUploads'],_0x46e92e[_0x4e5848(0xdf)](_0x5252af,_0x46e92e[_0x4e5848(0xf8)])?0x1:_0x591a89[_0x4e5848(0xb5)]));const _0x324d87={};return _0x324d87[_0x4e5848(0xa3)]=_0x46e92e[_0x4e5848(0x12c)],_0x324d87['message']=_0x49397f[_0x4e5848(0x139)]||(_0x49397f[_0x4e5848(0x99)]?_0x49397f[_0x4e5848(0x99)][_0x4e5848(0xa3)]+':'+_0x49397f['response'][_0x4e5848(0xed)]:_0x49397f),_0x324d87;}}static async[a136_0xa65045(0xc9)](_0x1d8820,_0x1c27b4=0x0){const _0x1ff0ec=a136_0xa65045,_0x39ac0a={'coksY':function(_0x145ef1,_0x543193){return _0x145ef1+_0x543193;},'zggTr':function(_0x8599eb,_0x4f57ed){return _0x8599eb(_0x4f57ed);},'oGiJb':'test_run','LWHYG':'uuid','oLtSK':_0x1ff0ec(0xe7),'jMUDI':function(_0x5a9bf3,_0x544846,_0x27b932){return _0x5a9bf3(_0x544846,_0x27b932);},'gHCFE':'uploadEventData','EPJKi':function(_0x23ec18,_0x30b8ca){return _0x23ec18===_0x30b8ca;},'Rrqch':function(_0x6c0459,_0x3b8c48){return _0x6c0459!==_0x3b8c48;},'MJFbg':_0x1ff0ec(0x127),'thbYl':_0x1ff0ec(0xf1),'SrtNX':function(_0x2ec3a7){return _0x2ec3a7();},'jOoGh':function(_0x260573,_0x3668b7){return _0x260573===_0x3668b7;},'YWpxl':function(_0x2c3349,_0x47336a){return _0x2c3349(_0x47336a);},'QsxPa':function(_0x1149d9,_0x382579){return _0x1149d9-_0x382579;},'VDnSo':_0x1ff0ec(0xfa),'UqHGr':_0x1ff0ec(0xe5),'KHQbG':function(_0x55ac69,_0x2676d8){return _0x55ac69>=_0x2676d8;},'yNACn':function(_0x562c8c,_0x295043){return _0x562c8c!==_0x295043;},'RGmXY':_0x1ff0ec(0x110),'hbkPt':_0x1ff0ec(0xa1),'jAtAU':function(_0x359363,_0x3385bb,_0x25f35d){return _0x359363(_0x3385bb,_0x25f35d);}},_0x73e0a7=this[_0x1ff0ec(0x116)](_0x1d8820);_0x39ac0a[_0x1ff0ec(0xdc)](trace,'Processing\x20event\x20-\x20\x27'+_0x1d8820[_0x1ff0ec(0x119)]+'\x27\x20'+(bsSetupHelper[_0x1ff0ec(0x115)](_0x1d8820,[_0x39ac0a['oGiJb'],_0x39ac0a[_0x1ff0ec(0x123)]])||bsSetupHelper['nestedKeyValue'](_0x1d8820,[_0x39ac0a['oLtSK'],_0x39ac0a[_0x1ff0ec(0x123)]])));if(!_0x39ac0a[_0x1ff0ec(0x93)](shouldProcessEventForTesthub,_0x1d8820[_0x1ff0ec(0x119)],_0x39ac0a[_0x1ff0ec(0xb6)]))return;_0x39ac0a[_0x1ff0ec(0x13a)](_0x1c27b4,0x0)&&process[_0x1ff0ec(0xaf)]['BROWSERSTACK_TESTHUB_JWT']&&_0x39ac0a[_0x1ff0ec(0xfe)](process[_0x1ff0ec(0xaf)][_0x1ff0ec(0x10b)],_0x39ac0a[_0x1ff0ec(0xbd)])&&(this['requestQueueHandler'][_0x1ff0ec(0x12a)]+=0x1);if(_0x39ac0a[_0x1ff0ec(0x13a)](process[_0x1ff0ec(0xaf)][_0x1ff0ec(0x131)],_0x39ac0a[_0x1ff0ec(0xc4)])||process[_0x1ff0ec(0xaf)][_0x1ff0ec(0x120)]||_0x39ac0a['SrtNX'](isPercyBuild)){if(_0x39ac0a[_0x1ff0ec(0x11a)](process[_0x1ff0ec(0xaf)][_0x1ff0ec(0x10b)],_0x39ac0a[_0x1ff0ec(0xbd)])){_0x39ac0a[_0x1ff0ec(0xae)](debug,_0x1ff0ec(0x134)+_0x73e0a7+_0x1ff0ec(0x137)+constants[_0x1ff0ec(0xc3)]+_0x1ff0ec(0x92)),this[_0x1ff0ec(0xe2)]['pendingUploads']=Math['max'](0x0,_0x39ac0a[_0x1ff0ec(0x138)](this[_0x1ff0ec(0xe2)][_0x1ff0ec(0x12a)],0x1));const _0x2df2c8={};return _0x2df2c8[_0x1ff0ec(0xa3)]=_0x39ac0a[_0x1ff0ec(0x109)],_0x2df2c8[_0x1ff0ec(0x139)]=_0x39ac0a[_0x1ff0ec(0xd6)],_0x2df2c8;}return await this[_0x1ff0ec(0x118)](_0x1d8820,_0x1c27b4);}else{if(_0x39ac0a['KHQbG'](_0x1c27b4,0x5)){_0x39ac0a[_0x1ff0ec(0xae)](debug,_0x1ff0ec(0x134)+_0x73e0a7+_0x1ff0ec(0x137)+constants[_0x1ff0ec(0xc3)]+_0x1ff0ec(0x136)+_0x73e0a7+_0x1ff0ec(0x145));_0x39ac0a['yNACn'](process[_0x1ff0ec(0xaf)]['BROWSERSTACK_TESTHUB_JWT'],_0x39ac0a[_0x1ff0ec(0xbd)])&&(this['requestQueueHandler']['pendingUploads']=Math['max'](0x0,_0x39ac0a[_0x1ff0ec(0x138)](this[_0x1ff0ec(0xe2)][_0x1ff0ec(0x12a)],0x1)));const _0x23b287={};return _0x23b287[_0x1ff0ec(0xa3)]=_0x39ac0a[_0x1ff0ec(0x109)],_0x23b287['message']=_0x39ac0a[_0x1ff0ec(0x10c)],_0x23b287;}else _0x39ac0a[_0x1ff0ec(0xfe)](process[_0x1ff0ec(0xaf)][_0x1ff0ec(0x131)],_0x39ac0a['hbkPt'])&&_0x39ac0a[_0x1ff0ec(0xff)](setTimeout,()=>{const _0x4e65a7=_0x1ff0ec;this['uploadEventData'](_0x1d8820,_0x39ac0a[_0x4e65a7(0xb4)](_0x1c27b4,0x1));},0x3e8);}}}module[a136_0xa65045(0x101)]=SessionHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a137_0x265ba0=a137_0x2453;(function(_0x15dd94,_0x48f744){const _0x2f32a0=a137_0x2453,_0x2b0e3c=_0x15dd94();while(!![]){try{const _0x107704=-parseInt(_0x2f32a0(0x219))/0x1+parseInt(_0x2f32a0(0x21f))/0x2+parseInt(_0x2f32a0(0x15b))/0x3*(-parseInt(_0x2f32a0(0x14d))/0x4)+-parseInt(_0x2f32a0(0x1ea))/0x5*(-parseInt(_0x2f32a0(0x223))/0x6)+-parseInt(_0x2f32a0(0x165))/0x7+-parseInt(_0x2f32a0(0x255))/0x8+parseInt(_0x2f32a0(0x239))/0x9*(parseInt(_0x2f32a0(0x1a9))/0xa);if(_0x107704===_0x48f744)break;else _0x2b0e3c['push'](_0x2b0e3c['shift']());}catch(_0x2398c6){_0x2b0e3c['push'](_0x2b0e3c['shift']());}}}(a137_0x4d7b,0xc2cc9));const fs=require('fs'),path=require(a137_0x265ba0(0x25d)),gitLastCommit=require(a137_0x265ba0(0x17c)),getRepoInfo=require(a137_0x265ba0(0x26e)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a137_0x265ba0(0x1f6)),http=require(a137_0x265ba0(0x168)),https=require(a137_0x265ba0(0x266)),child_process=require(a137_0x265ba0(0x240)),getos=require(a137_0x265ba0(0x1d3)),os=require('os'),logger=require('../logger')[a137_0x265ba0(0x159)],buildLogger=require(a137_0x265ba0(0x18b))[a137_0x265ba0(0x167)],bsSetupHelper=require(a137_0x265ba0(0x244)),requestSpy=require(a137_0x265ba0(0x249)),constants=require(a137_0x265ba0(0x1df)),logPatcher=require(a137_0x265ba0(0x279)),util=require('util'),{fileLogger}=require(a137_0x265ba0(0x18b)),PerformanceTester=require(a137_0x265ba0(0x181)),{isFunction}=require(a137_0x265ba0(0x23c)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a137_0x265ba0(0x176)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a137_0x265ba0(0x1a3));exports[a137_0x265ba0(0x1dc)]=_0x3ebadb=>{const _0x3eef17=a137_0x265ba0;fileLogger['silly']('['+new Date()[_0x3eef17(0x221)]()+'][\x20'+constants[_0x3eef17(0x186)]+_0x3eef17(0x161)+_0x3ebadb);},exports['debug']=_0xab85c=>{const _0x5d6e24=a137_0x265ba0,_0x32bd2d={};_0x32bd2d[_0x5d6e24(0x214)]=function(_0x38f12a,_0x4b2764){return _0x38f12a===_0x4b2764;},_0x32bd2d['GAHtQ']=_0x5d6e24(0x1e7),_0x32bd2d[_0x5d6e24(0x21e)]=function(_0xed3025,_0x3f651c){return _0xed3025===_0x3f651c;},_0x32bd2d[_0x5d6e24(0x199)]=function(_0x475d62,_0x325d8d){return _0x475d62===_0x325d8d;};const _0x43468c=_0x32bd2d;fileLogger[_0x5d6e24(0x275)]('['+new Date()[_0x5d6e24(0x221)]()+_0x5d6e24(0x19a)+constants[_0x5d6e24(0x186)]+_0x5d6e24(0x161)+_0xab85c),(_0x43468c[_0x5d6e24(0x214)](process[_0x5d6e24(0x180)][_0x5d6e24(0x1a0)],_0x43468c['GAHtQ'])||_0x43468c[_0x5d6e24(0x21e)](process[_0x5d6e24(0x180)]['BROWSERSTACK_TEST_REPORTING_DEBUG'],'1')||_0x43468c['MMILE'](process[_0x5d6e24(0x180)][_0x5d6e24(0x15e)],_0x43468c[_0x5d6e24(0x25f)])||_0x43468c['jEiau'](process[_0x5d6e24(0x180)][_0x5d6e24(0x15e)],'1'))&&consoleHolder['log']('\x0a['+new Date()['toISOString']()+_0x5d6e24(0x19a)+constants[_0x5d6e24(0x186)]+_0x5d6e24(0x161)+_0xab85c+'\x0a');};function a137_0x2453(_0x2777e2,_0x1c4463){const _0x4d7bff=a137_0x4d7b();return a137_0x2453=function(_0x245320,_0x333531){_0x245320=_0x245320-0x145;let _0x124f07=_0x4d7bff[_0x245320];return _0x124f07;},a137_0x2453(_0x2777e2,_0x1c4463);}const a137_0x1c7f96={};a137_0x1c7f96[a137_0x265ba0(0x278)]=!![],a137_0x1c7f96[a137_0x265ba0(0x146)]=0xea60,a137_0x1c7f96[a137_0x265ba0(0x198)]=0x2,a137_0x1c7f96[a137_0x265ba0(0x213)]=0x2;const httpKeepAliveAgent=new http['Agent'](a137_0x1c7f96),a137_0x366d47={};a137_0x366d47[a137_0x265ba0(0x278)]=!![],a137_0x366d47[a137_0x265ba0(0x146)]=0xea60,a137_0x366d47[a137_0x265ba0(0x198)]=0x2,a137_0x366d47['maxTotalSockets']=0x2;const httpsKeepAliveAgent=new https[(a137_0x265ba0(0x20c))](a137_0x366d47),a137_0x5bee76={};a137_0x5bee76[a137_0x265ba0(0x278)]=!![],a137_0x5bee76[a137_0x265ba0(0x146)]=0xea60,a137_0x5bee76['maxSockets']=0x2,a137_0x5bee76[a137_0x265ba0(0x213)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a137_0x265ba0(0x20c))](a137_0x5bee76),a137_0x57d877={};a137_0x57d877[a137_0x265ba0(0x278)]=!![],a137_0x57d877[a137_0x265ba0(0x146)]=0xea60,a137_0x57d877[a137_0x265ba0(0x198)]=0x2,a137_0x57d877[a137_0x265ba0(0x213)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a137_0x265ba0(0x20c))](a137_0x57d877);exports[a137_0x265ba0(0x1e8)]=()=>{const _0x21259e=a137_0x265ba0,_0x2a7ae0={};_0x2a7ae0['VNRvi']=function(_0x1e95a2,_0x24f655){return _0x1e95a2!==_0x24f655;},_0x2a7ae0[_0x21259e(0x1f9)]=_0x21259e(0x1a2);const _0x1bc00c=_0x2a7ae0;return process[_0x21259e(0x180)][_0x21259e(0x1aa)]&&_0x1bc00c[_0x21259e(0x1db)](process['env'][_0x21259e(0x1aa)],_0x1bc00c['gHNpg'])?!![]:![];},exports[a137_0x265ba0(0x243)]=()=>{const _0x16ff6c=a137_0x265ba0,_0xa61c86={};_0xa61c86[_0x16ff6c(0x1c4)]=function(_0x4b65a0,_0x58495f){return _0x4b65a0===_0x58495f;},_0xa61c86['ujpXs']=_0x16ff6c(0x1e7),_0xa61c86[_0x16ff6c(0x164)]=function(_0x39bdf6,_0x41aa9){return _0x39bdf6===_0x41aa9;};const _0x25c306=_0xa61c86;let _0x556af3=!![];return process[_0x16ff6c(0x180)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x556af3=_0x25c306[_0x16ff6c(0x1c4)](process[_0x16ff6c(0x180)]['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0x25c306[_0x16ff6c(0x152)])),process[_0x16ff6c(0x180)]['BROWSERSTACK_TEST_OBSERVABILITY']&&(_0x556af3=_0x25c306['NhiPN'](process['env'][_0x16ff6c(0x21d)],_0x25c306[_0x16ff6c(0x152)])),process[_0x16ff6c(0x180)][_0x16ff6c(0x222)]&&(_0x556af3=_0x25c306['NhiPN'](process[_0x16ff6c(0x180)][_0x16ff6c(0x222)],_0x25c306['ujpXs'])),_0x556af3;},exports['parseFileNames']=_0x2f061a=>{const _0x326f74=a137_0x265ba0;if(bsSetupHelper[_0x326f74(0x148)](_0x2f061a))return undefined;try{return _0x2f061a[_0x326f74(0x1ab)]()['split'](',');}catch(_0x37629e){return undefined;}},exports[a137_0x265ba0(0x200)]=()=>{const _0x43dc3d=a137_0x265ba0,_0x48b878={'YrSlz':function(_0x514d15,_0x5c9602){return _0x514d15(_0x5c9602);},'msdhV':_0x43dc3d(0x218),'dvYol':function(_0x411a1a,_0x39b61a){return _0x411a1a!==_0x39b61a;},'AGZyZ':_0x43dc3d(0x1a2),'wUJHO':_0x43dc3d(0x1b1),'ofsSb':function(_0x3ef4ec,_0xa103ef){return _0x3ef4ec===_0xa103ef;},'hEBDR':_0x43dc3d(0x1e7),'Hgdtq':function(_0x4ccb51,_0x4470f5){return _0x4ccb51===_0x4470f5;},'uOokh':function(_0x5e468f,_0x1143da){return _0x5e468f&&_0x1143da;}};return PerformanceTester[_0x43dc3d(0x20e)](PerformanceO11yEvents[_0x43dc3d(0x20b)],async()=>{const _0x2ef4ce=_0x43dc3d;try{const _0x336358=_0x48b878['YrSlz'](require,_0x48b878[_0x2ef4ce(0x1cb)]);if(_0x336358[_0x2ef4ce(0x269)]){const _0x16a415=_0x2ef4ce(0x231)+O11Y_URL+'/builds/'+_0x336358['O11yHashedID']+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a';buildLogger[_0x2ef4ce(0x170)](_0x16a415),exports[_0x2ef4ce(0x242)](_0x336358['O11yHashedID'],_0x336358['A11yEnabled']);return;}if(process[_0x2ef4ce(0x180)][_0x2ef4ce(0x23b)]&&_0x48b878[_0x2ef4ce(0x1c8)](process[_0x2ef4ce(0x180)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x48b878[_0x2ef4ce(0x177)])&&_0x48b878['dvYol'](process[_0x2ef4ce(0x180)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x48b878[_0x2ef4ce(0x1f1)])){const _0x2130fe='Visit\x20'+constants['O11Y_URL']+_0x2ef4ce(0x217)+process[_0x2ef4ce(0x180)][_0x2ef4ce(0x23b)]+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a';buildLogger[_0x2ef4ce(0x170)](_0x2130fe);const _0x491e8d=_0x48b878[_0x2ef4ce(0x175)](process['env'][_0x2ef4ce(0x1a1)],_0x48b878[_0x2ef4ce(0x1e9)]);let _0x59dcc8=![];try{const _0x3c5086=JSON[_0x2ef4ce(0x18f)](process[_0x2ef4ce(0x180)][_0x2ef4ce(0x250)]||'{}');_0x59dcc8=_0x48b878[_0x2ef4ce(0x188)](_0x3c5086['app_automate'],!![]);}catch(_0x20e877){}exports[_0x2ef4ce(0x242)](process[_0x2ef4ce(0x180)][_0x2ef4ce(0x23b)],_0x48b878[_0x2ef4ce(0x259)](_0x491e8d,!_0x59dcc8));}}catch(_0x1629b1){logger['error'](util[_0x2ef4ce(0x1d7)](_0x2ef4ce(0x224)+constants[_0x2ef4ce(0x186)]+_0x2ef4ce(0x15c),new Date()[_0x2ef4ce(0x221)](),_0x1629b1[_0x2ef4ce(0x24f)]||_0x1629b1[_0x2ef4ce(0x260)]||_0x1629b1));}})();},exports[a137_0x265ba0(0x242)]=(_0x3b3097,_0x708937)=>{const _0xcefe85=a137_0x265ba0,_0x9b6897={};_0x9b6897[_0xcefe85(0x18a)]=function(_0x169ba9,_0x263e92){return _0x169ba9&&_0x263e92;},_0x9b6897['ZVHAG']=_0xcefe85(0x1c0);const _0x9d95b5=_0x9b6897;try{if(_0x9d95b5['YZZPU'](_0x708937,_0x3b3097)){const _0x281e04=_0xcefe85(0x24c)+_0x3b3097,_0x35dd33='Visit\x20'+_0x281e04+_0xcefe85(0x1f8);buildLogger['info'](_0x35dd33);}}catch(_0x488f1f){logger[_0xcefe85(0x14c)](util['format'](_0x9d95b5[_0xcefe85(0x27b)],new Date()[_0xcefe85(0x221)](),_0x488f1f[_0xcefe85(0x24f)]||_0x488f1f[_0xcefe85(0x260)]||_0x488f1f));}},exports[a137_0x265ba0(0x19f)]=_0xf6885=>{const _0x3be47d=a137_0x265ba0,_0xe8f94f={};_0xe8f94f[_0x3be47d(0x235)]='AssertionError',_0xe8f94f[_0x3be47d(0x1b5)]=_0x3be47d(0x263),_0xe8f94f['aHJPj']=_0x3be47d(0x193),_0xe8f94f[_0x3be47d(0x205)]=_0x3be47d(0x16c);const _0xaa9a28=_0xe8f94f;if(!_0xf6885)return null;const _0x35e746=_0xf6885[_0x3be47d(0x1c1)]();if(_0x35e746[_0x3be47d(0x15f)](/AssertionError/))return _0xaa9a28[_0x3be47d(0x235)];if(_0x35e746[_0x3be47d(0x15f)](/TimeoutError/)||_0x35e746['startsWith'](_0xaa9a28[_0x3be47d(0x1b5)])||_0x35e746['match'](/Timeout.*exceeded/i))return _0xaa9a28['aHJPj'];return _0xaa9a28['uhxVW'];},exports[a137_0x265ba0(0x270)]=_0x146dce=>{const _0x1722bc=a137_0x265ba0,_0x8e1eca={};_0x8e1eca[_0x1722bc(0x1e1)]=_0x1722bc(0x23e),_0x8e1eca[_0x1722bc(0x17b)]=_0x1722bc(0x160),_0x8e1eca[_0x1722bc(0x261)]='codeceptjs',_0x8e1eca[_0x1722bc(0x1dd)]=_0x1722bc(0x1c2),_0x8e1eca[_0x1722bc(0x174)]=_0x1722bc(0x166),_0x8e1eca[_0x1722bc(0x153)]=_0x1722bc(0x24e),_0x8e1eca[_0x1722bc(0x25b)]='puppeteer';const _0x3c02a0=_0x8e1eca;let _0x3ddae2=null;switch(_0x146dce){case FRAMEWORKS['MOCHA']:_0x3ddae2=bsSetupHelper[_0x1722bc(0x21a)](_0x3c02a0[_0x1722bc(0x1e1)]);break;case FRAMEWORKS['PLAYWRIGHT']:_0x3ddae2=bsSetupHelper[_0x1722bc(0x21a)](_0x3c02a0['fFaxQ']);break;case FRAMEWORKS[_0x1722bc(0x191)]:case FRAMEWORKS[_0x1722bc(0x232)]:_0x3ddae2=bsSetupHelper[_0x1722bc(0x21a)](_0x3c02a0[_0x1722bc(0x261)]);break;case FRAMEWORKS[_0x1722bc(0x1ca)]:_0x3ddae2=bsSetupHelper['getPackageVersion'](_0x3c02a0[_0x1722bc(0x1dd)]);break;case FRAMEWORKS[_0x1722bc(0x17f)]:_0x3ddae2=bsSetupHelper['getPackageVersion'](_0x3c02a0[_0x1722bc(0x174)]);break;case FRAMEWORKS['PUPPETEER']:_0x3ddae2=bsSetupHelper[_0x1722bc(0x21a)](_0x3c02a0[_0x1722bc(0x153)])||bsSetupHelper[_0x1722bc(0x21a)](_0x3c02a0[_0x1722bc(0x25b)]);break;default:break;}return _0x3ddae2;},exports[a137_0x265ba0(0x172)]=_0x5ce2b2=>{const _0x4c9729=a137_0x265ba0;let _0x36f394=null;switch(_0x5ce2b2){case FRAMEWORKS[_0x4c9729(0x1b3)]:_0x36f394=process[_0x4c9729(0x180)][_0x4c9729(0x220)];break;}if(!_0x36f394)return;return bsSetupHelper[_0x4c9729(0x26c)](_0x36f394,![]);},exports[a137_0x265ba0(0x25c)]=_0x44fdb0=>{const _0x1e1324=a137_0x265ba0;return{'username':bsSetupHelper[_0x1e1324(0x1cf)](_0x44fdb0),'accessKey':bsSetupHelper[_0x1e1324(0x246)](_0x44fdb0)};},exports[a137_0x265ba0(0x267)]=(_0xdf4d80,_0x55642a)=>{const _0x419f64=a137_0x265ba0,_0x15737d={};_0x15737d['HtIKz']=_0x419f64(0x1ed),_0x15737d['VctXb']=_0x419f64(0x23a),_0x15737d[_0x419f64(0x1ac)]=_0x419f64(0x1a8);const _0x10a90a=_0x15737d,_0xa0e979=_0x10a90a[_0x419f64(0x14f)][_0x419f64(0x208)]('|');let _0xfdbb41=0x0;while(!![]){switch(_0xa0e979[_0xfdbb41++]){case'0':if(!_0xdf4d80[_0x419f64(0x20d)]||!Array['isArray'](_0xdf4d80[_0x419f64(0x20d)]))return;continue;case'1':delete _0xdf4d80[_0x419f64(0x24d)];continue;case'2':delete _0xdf4d80[_0x419f64(0x20d)];continue;case'3':delete _0x55642a[_0x419f64(0x1f7)];continue;case'4':_0xdf4d80['formData']={'data':_0xdf4d80[_0x419f64(0x20d)][0x0][_0x419f64(0x277)][0x0]['data'],'test_run_uuid':_0xdf4d80['body'][0x0]['logs'][0x0][_0x419f64(0x1a5)],'event_type':_0x10a90a[_0x419f64(0x209)],'kind':_0x10a90a[_0x419f64(0x1ac)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x419f64(0x221)](),'fileName':_0xdf4d80[_0x419f64(0x20d)][0x0][_0x419f64(0x277)][0x0][_0x419f64(0x19d)]};continue;case'5':if(!_0xdf4d80['body'][0x0]||!_0xdf4d80['body'][0x0][_0x419f64(0x277)]||!_0xdf4d80[_0x419f64(0x20d)][0x0]['logs'][_0x419f64(0x154)])return;continue;}break;}},exports[a137_0x265ba0(0x22a)]=async(_0x18ebf0,_0x232d6b,_0x13b407,_0x48e126,_0x125ef3=!![])=>{const _0x5b1451=a137_0x265ba0,_0x2864fc={};_0x2864fc[_0x5b1451(0x1b2)]=function(_0x4e0223,_0x1b8ede){return _0x4e0223===_0x1b8ede;},_0x2864fc[_0x5b1451(0x1e2)]=_0x5b1451(0x1de),_0x2864fc[_0x5b1451(0x26d)]=_0x5b1451(0x228),_0x2864fc[_0x5b1451(0x1ad)]=_0x5b1451(0x266),_0x2864fc[_0x5b1451(0x17a)]=function(_0x412026,_0x465293){return _0x412026===_0x465293;},_0x2864fc['QzAba']=function(_0x8ce937,_0x3c3b7a){return _0x8ce937!==_0x3c3b7a;},_0x2864fc[_0x5b1451(0x21c)]='object',_0x2864fc[_0x5b1451(0x1bc)]=_0x5b1451(0x1b6);const _0x2c041a=_0x2864fc,_0x5c76a9={..._0x48e126,...{'method':_0x18ebf0,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x232d6b,'body':_0x13b407,'json':_0x2c041a[_0x5b1451(0x1b2)](_0x48e126['headers'][_0x2c041a[_0x5b1451(0x1e2)]],_0x2c041a[_0x5b1451(0x26d)]),'agent':API_URL['includes'](_0x2c041a[_0x5b1451(0x1ad)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x2c041a[_0x5b1451(0x17a)](_0x232d6b,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x5c76a9[_0x5b1451(0x1bd)]=API_URL['includes'](_0x2c041a[_0x5b1451(0x1ad)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x5c76a9,_0x48e126),logger['debug'](_0x5b1451(0x1e6)+_0x5c76a9[_0x5b1451(0x1fe)]));try{const {statusCode:_0x38a3a4,body:_0x51ca2e}=await bsSetupHelper[_0x5b1451(0x1fb)](_0x18ebf0,_0x232d6b,_0x5c76a9,_0x48e126,_0x5c76a9['url']);if(_0x2c041a[_0x5b1451(0x229)](_0x38a3a4,0xc8))return _0x51ca2e?_0x51ca2e:_0x5b1451(0x1f0)+_0x38a3a4;let _0x1b5bda=_0x51ca2e;if(_0x125ef3)try{_0x2c041a['QzAba'](typeof _0x51ca2e,_0x2c041a[_0x5b1451(0x21c)])&&(_0x1b5bda=JSON[_0x5b1451(0x18f)](_0x51ca2e));}catch(_0x4f96ea){logger['error'](_0x2c041a[_0x5b1451(0x1bc)],_0x51ca2e,util[_0x5b1451(0x1d7)](_0x4f96ea));}const _0x75d0d2={};return _0x75d0d2[_0x5b1451(0x1b4)]=_0x1b5bda,_0x75d0d2;}catch(_0x311997){logger[_0x5b1451(0x14c)]('Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20'+util[_0x5b1451(0x1d7)](_0x311997));throw _0x311997;}},exports['nodeRequest']=(_0x187116,_0x13d8e3,_0xeeddd5,_0x596927,_0x532f53=!![])=>{const _0x3bdb96=a137_0x265ba0,_0x527b64={'WdWwl':function(_0x582e99,_0x1738f4){return _0x582e99!==_0x1738f4;},'jDDQX':function(_0x1d4c83,_0x4ec322){return _0x1d4c83(_0x4ec322);},'GPPzb':_0x3bdb96(0x1d9),'PJcnc':_0x3bdb96(0x204),'LaVRG':function(_0x4ffb82,_0xf050ca){return _0x4ffb82(_0xf050ca);},'ZCPxp':function(_0x218e1e,_0x471e38){return _0x218e1e===_0x471e38;},'QOmPj':_0x3bdb96(0x1de),'rfdPe':_0x3bdb96(0x228),'diSWO':_0x3bdb96(0x266),'kMuxN':function(_0x4a33ae,_0x1b24d2){return _0x4a33ae===_0x1b24d2;}};return new Promise((_0x3d284e,_0x262307)=>{const _0x17f583=_0x3bdb96,_0x5c5306={'KjkAY':function(_0x46ffd7,_0x4a2575){const _0x6e660e=a137_0x2453;return _0x527b64[_0x6e660e(0x157)](_0x46ffd7,_0x4a2575);},'CJJES':function(_0x1fee73,_0xf34a66){return _0x527b64['jDDQX'](_0x1fee73,_0xf34a66);},'SmBvp':_0x527b64[_0x17f583(0x182)],'CKOBn':_0x527b64['PJcnc'],'bPBKy':function(_0x5377e2,_0x4e604c){const _0x3504f5=_0x17f583;return _0x527b64[_0x3504f5(0x1f4)](_0x5377e2,_0x4e604c);}},_0x3be298={..._0x596927,...{'method':_0x187116,'url':API_URL+'/'+_0x13d8e3,'body':_0xeeddd5,'json':_0x527b64[_0x17f583(0x1fd)](_0x596927['headers'][_0x527b64[_0x17f583(0x210)]],_0x527b64[_0x17f583(0x183)]),'agent':API_URL[_0x17f583(0x203)](_0x527b64['diSWO'])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x527b64[_0x17f583(0x201)](_0x13d8e3,SCREENSHOT_ENDPOINT)&&(_0x3be298[_0x17f583(0x1bd)]=API_URL[_0x17f583(0x203)](_0x527b64[_0x17f583(0x1da)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x17f583(0x1fb)](_0x187116,_0x13d8e3,_0x3be298,_0x596927,API_URL)[_0x17f583(0x169)](({statusCode:_0x3d79e1,body:_0x3c02f8})=>{const _0x1f1322=_0x17f583;if(_0x5c5306[_0x1f1322(0x20f)](_0x3d79e1,0xc8))_0x5c5306[_0x1f1322(0x225)](_0x262307,_0x3c02f8?_0x3c02f8:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x3d79e1);else{if(_0x532f53)try{_0x5c5306['KjkAY'](typeof _0x3c02f8,_0x5c5306[_0x1f1322(0x241)])&&(_0x3c02f8=JSON[_0x1f1322(0x18f)](_0x3c02f8));}catch(_0x527db1){_0x5c5306['CJJES'](_0x262307,_0x5c5306[_0x1f1322(0x197)]);return;}const _0x42ae7d={};_0x42ae7d['data']=_0x3c02f8,_0x5c5306[_0x1f1322(0x225)](_0x3d284e,_0x42ae7d);}})[_0x17f583(0x237)](_0xaed6d1=>{const _0x5bff76=_0x17f583;_0xaed6d1&&_0x5c5306[_0x5bff76(0x1d6)](_0x262307,_0xaed6d1);});});},exports['getBuildTags']=_0x5a8f35=>{const _0x5459a3=a137_0x265ba0;if(process[_0x5459a3(0x180)][_0x5459a3(0x185)])return process['env'][_0x5459a3(0x185)]['split'](',');if(process['env']['TEST_OBSERVABILITY_BUILD_TAG'])return process[_0x5459a3(0x180)][_0x5459a3(0x1ba)][_0x5459a3(0x208)](',');if(_0x5a8f35[_0x5459a3(0x265)])return _0x5a8f35['buildTag'];return[];},exports[a137_0x265ba0(0x187)]=(_0x35e4f4=!![])=>{const _0x439bcd=a137_0x265ba0,_0x2e8426={};_0x2e8426['CWehO']='application/json',_0x2e8426[_0x439bcd(0x262)]=_0x439bcd(0x1e7),_0x2e8426[_0x439bcd(0x155)]=_0x439bcd(0x1c5);const _0xe03c35=_0x2e8426,_0x191b54={};_0x191b54[_0x439bcd(0x1de)]=_0xe03c35[_0x439bcd(0x18e)],_0x191b54['X-BSTACK-TESTOPS']=_0xe03c35['cMBMy'];const _0x2bbd5d=_0x191b54;return _0x35e4f4&&process['env']['BROWSERSTACK_TESTHUB_JWT']&&(_0x2bbd5d[_0xe03c35[_0x439bcd(0x155)]]=_0x439bcd(0x212)+process[_0x439bcd(0x180)]['BROWSERSTACK_TESTHUB_JWT']),_0x2bbd5d;},exports[a137_0x265ba0(0x254)]=_0x515fe9=>{const _0x503889=a137_0x265ba0,_0x55a851={};_0x55a851[_0x503889(0x276)]=_0x503889(0x14a);const _0x2c5914=_0x55a851,_0x5a3184=[],_0x21b219=new RegExp(_0x2c5914['AtsSa'],'i');return Object[_0x503889(0x1ae)](_0x515fe9)[_0x503889(0x1b9)](_0x18aa9b=>_0x21b219[_0x503889(0x257)](_0x18aa9b))[_0x503889(0x264)](_0x1568f9=>_0x5a3184[_0x503889(0x253)](_0x515fe9[_0x1568f9])),_0x5a3184;},exports[a137_0x265ba0(0x22c)]=_0x2f8ee3=>{const _0x36c074=a137_0x265ba0,_0x596044=[],_0x3ac58b=_0x2f8ee3[_0x36c074(0x252)]||process[_0x36c074(0x180)][_0x36c074(0x1fc)];return _0x3ac58b&&_0x596044[_0x36c074(0x253)](_0x3ac58b),_0x596044[_0x36c074(0x253)](...exports[_0x36c074(0x254)](process[_0x36c074(0x180)])),_0x596044[_0x36c074(0x253)](...exports[_0x36c074(0x254)](_0x2f8ee3)),_0x596044;},exports[a137_0x265ba0(0x1eb)]=_0x5bf94d=>{const _0x5d8cae=a137_0x265ba0;if(!_0x5bf94d)return'';return _0x5bf94d[_0x5d8cae(0x26b)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a137_0x265ba0(0x173)]=(_0x492de9=0x64)=>new Promise(_0x72f99b=>setTimeout(_0x72f99b,_0x492de9));const getPlatformName=()=>{const _0x4ce482=a137_0x265ba0,_0x54a885={};_0x54a885[_0x4ce482(0x23f)]=function(_0x1ea5d3,_0x2212c4){return _0x1ea5d3===_0x2212c4;},_0x54a885[_0x4ce482(0x25e)]=_0x4ce482(0x24b),_0x54a885[_0x4ce482(0x15d)]=_0x4ce482(0x19e),_0x54a885[_0x4ce482(0x18c)]=_0x4ce482(0x17d),_0x54a885[_0x4ce482(0x26a)]=_0x4ce482(0x16a),_0x54a885['Yyjba']=function(_0x2b01af,_0x396b99){return _0x2b01af===_0x396b99;},_0x54a885[_0x4ce482(0x26f)]=_0x4ce482(0x22f),_0x54a885[_0x4ce482(0x211)]=_0x4ce482(0x245),_0x54a885[_0x4ce482(0x1d5)]=_0x4ce482(0x171);const _0x40922e=_0x54a885;if(_0x40922e['VYaow'](process[_0x4ce482(0x163)],_0x40922e[_0x4ce482(0x25e)]))return _0x40922e[_0x4ce482(0x15d)];if(_0x40922e['VYaow'](process['platform'],_0x40922e[_0x4ce482(0x18c)]))return _0x40922e[_0x4ce482(0x26a)];if(_0x40922e[_0x4ce482(0x216)](process[_0x4ce482(0x163)],_0x40922e[_0x4ce482(0x26f)]))return _0x40922e[_0x4ce482(0x211)];return _0x40922e[_0x4ce482(0x1d5)];},getMacOSVersion=()=>{const _0x3ddae1=a137_0x265ba0,_0x5b222a={};_0x5b222a[_0x3ddae1(0x1bf)]=_0x3ddae1(0x1bb);const _0x455aa6=_0x5b222a;return child_process[_0x3ddae1(0x1ec)](_0x455aa6['ZLtse'])[_0x3ddae1(0x1c1)]()[_0x3ddae1(0x1ab)]();},getLinuxDetails=()=>{const _0x273602={'EEnxa':function(_0x3c6f85,_0x2c8c30){return _0x3c6f85(_0x2c8c30);},'NRBLT':function(_0xcdd0bd,_0x54a870){return _0xcdd0bd(_0x54a870);}};return new Promise((_0x617ab6,_0x26a890)=>{const _0x11439e=a137_0x2453;_0x273602[_0x11439e(0x15a)](getos,(_0x24d375,_0x23603b)=>{const _0x35cfe2=_0x11439e;if(_0x24d375)return _0x273602[_0x35cfe2(0x1a6)](_0x26a890,_0x24d375);_0x273602[_0x35cfe2(0x15a)](_0x617ab6,_0x23603b);});});};exports[a137_0x265ba0(0x194)]=async()=>{const _0x15a4fd=a137_0x265ba0,_0x47ec68={'MXCfW':function(_0x3ea3aa){return _0x3ea3aa();},'zEAwu':'OS\x20X','UWpfS':function(_0x4d2470){return _0x4d2470();},'ycMqT':_0x15a4fd(0x19e),'SXOsr':_0x15a4fd(0x1ef),'ItXAy':function(_0x57405b){return _0x57405b();},'XaaHb':_0x15a4fd(0x245),'OhZYF':function(_0x263e1a){return _0x263e1a();},'jIPtk':_0x15a4fd(0x1a4)};let _0x2a6890=_0x47ec68[_0x15a4fd(0x1b7)](getPlatformName),_0x1509a1=os[_0x15a4fd(0x16e)]()[_0x15a4fd(0x1c1)]();switch(_0x2a6890){case _0x47ec68[_0x15a4fd(0x21b)]:_0x1509a1=_0x47ec68['UWpfS'](getMacOSVersion);break;case _0x47ec68[_0x15a4fd(0x184)]:try{const _0x1d6564=(await import(_0x47ec68[_0x15a4fd(0x1f3)]))[_0x15a4fd(0x1ff)];_0x1509a1=_0x47ec68['ItXAy'](_0x1d6564);}catch(_0x1ba121){exports[_0x15a4fd(0x275)](_0x15a4fd(0x190)+_0x1ba121[_0x15a4fd(0x1c1)]());}break;case _0x47ec68[_0x15a4fd(0x1f2)]:try{const _0x2ef328=await _0x47ec68['OhZYF'](getLinuxDetails);_0x2ef328[_0x15a4fd(0x1f5)]&&(_0x2a6890=_0x2ef328[_0x15a4fd(0x1f5)]),_0x2ef328[_0x15a4fd(0x16e)]&&(_0x1509a1=_0x2ef328[_0x15a4fd(0x16e)][_0x15a4fd(0x1c1)]());}catch(_0x4aa464){exports[_0x15a4fd(0x275)](_0x47ec68[_0x15a4fd(0x274)]);}break;default:break;}const _0x5a166a={};return _0x5a166a[_0x15a4fd(0x145)]=_0x2a6890,_0x5a166a[_0x15a4fd(0x226)]=_0x1509a1,_0x5a166a;},exports['failureData']=(_0x5e0500,_0x289d2c)=>{const _0x480d18=a137_0x265ba0,_0x196104={};_0x196104['FuQvs']=function(_0x2de3bb,_0x3bcc8d){return _0x2de3bb===_0x3bcc8d;},_0x196104['lxyVB']=_0x480d18(0x257),_0x196104[_0x480d18(0x1c7)]=function(_0x134636,_0x5b77f3){return _0x134636===_0x5b77f3;},_0x196104['zdOaN']='err';const _0x62a667=_0x196104;if(!_0x5e0500)return[];try{if(_0x62a667[_0x480d18(0x273)](_0x289d2c,_0x62a667[_0x480d18(0x268)]))return!Array[_0x480d18(0x156)](_0x5e0500)&&(_0x5e0500=[_0x5e0500]),_0x5e0500[_0x480d18(0x238)](_0x309d71=>{const _0x33db6f=_0x480d18,{stack:_0x4f32f1,..._0x331b26}=_0x309d71,_0x1e5d8e=Object[_0x33db6f(0x1ae)](_0x331b26)[_0x33db6f(0x238)](_0x4ced20=>{return _0x4ced20+':\x20'+_0x331b26[_0x4ced20];}),_0x382ff1=_0x4f32f1?exports['removeAnsiColors'](_0x4f32f1)['split'](/\r?\n/):[exports['removeAnsiColors'](_0x309d71[_0x33db6f(0x260)])],_0x3b6655={};return _0x3b6655[_0x33db6f(0x195)]=_0x382ff1,_0x3b6655[_0x33db6f(0x1c3)]=_0x1e5d8e,_0x3b6655;});else{if(_0x62a667[_0x480d18(0x1c7)](_0x289d2c,_0x62a667[_0x480d18(0x1cc)])){const _0x1b4b99=[],_0x2b5eb6=[];return Object[_0x480d18(0x1ae)](_0x5e0500)['forEach'](_0x1d5d51=>{const _0x276c48=_0x480d18;try{_0x2b5eb6[_0x276c48(0x253)](_0x1d5d51+':\x20'+_0x5e0500[_0x1d5d51]);}catch(_0x30527d){exports['debug'](_0x276c48(0x147)+_0x30527d[_0x276c48(0x260)]+_0x276c48(0x1e3)+_0x30527d[_0x276c48(0x195)]);}}),_0x1b4b99[_0x480d18(0x253)]({'backtrace':exports['removeAnsiColors'](_0x5e0500[_0x480d18(0x24f)])[_0x480d18(0x208)](/\r?\n/),'expanded':_0x2b5eb6}),_0x1b4b99;}}return[];}catch(_0x4ced77){exports[_0x480d18(0x275)](_0x480d18(0x147)+_0x4ced77['message']+'\x20:\x20'+_0x4ced77[_0x480d18(0x195)]);}return[];};function a137_0x4d7b(){const _0x2b34d2=['bPBKy','format','bstack:options','object','diSWO','VNRvi','trace','Mwuhu','Content-Type','../../bin/utils/constants','getPlatform','hLUCD','UomJX','\x20:\x20','StfaS','PathHelper','Uploading\x20trace\x20logs\x20to:\x20','true','shouldReRunObservabilityTests','hEBDR','4498055reDHSf','removeAnsiColors','execSync','0|5|4|2|1|3','bs:addPlatformDetails:','windows-release','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','wUJHO','XaaHb','SXOsr','LaVRG','dist','./constants','headers','\x20to\x20view\x20accessibility\x20report.\x0a','gHNpg','prefix','nodeRequest','CUSTOM_TAG','ZCPxp','url','default','printBuildLink','kMuxN','lmNYf','includes','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','uhxVW','patchConsoleLogger','fromEntries','split','VctXb','stringify','PRINT_BUILDLINK','Agent','body','measureWrapper','KjkAY','QOmPj','xtQWY','Bearer\x20','maxTotalSockets','GbBte','ObservabilitySync:','Yyjba','/builds/','../../bin/v2/browserstackCLI','1528495HpFiJJ','getPackageVersion','zEAwu','JPhVi','BROWSERSTACK_TEST_OBSERVABILITY','jEiau','2579684mvuggZ','BROWSERSTACK_CONFIG_FILE_PATH','toISOString','BROWSERSTACK_TEST_REPORTING','6IGkHEl','[%s][\x20','CJJES','platformVersion','FxJWR','application/json','QzAba','asyncAwaitNodeReq','bEMlP','getCustomTags','local_grid','eaGCh','linux','jtlDd','Visit\x20','CODECEPT_CUCUMBER','bs:addLog:','hostname','zDpLf','HUB_URL_REGEX','catch','map','17561493kkuTon','LogCreated','BS_TESTOPS_BUILD_HASHED_ID','lodash','EMVcn','mocha','VYaow','child_process','SmBvp','printA11yBuildLink','isTestObservabilitySession','../helper','Linux','getAccessKey','mPPTe','app-automate','../../helpers/request-spy','isInternalHook','win32','https://accessibility.browserstack.com/automated-tests/projects/p/builds/b/1?thBuildId=','json','puppeteer-core','stack','BROWSERSTACK_PRODUCT_MAP','cwd','customTag','push','extractValuesWithRegexKeyMatch','2113288mRPRKT','join','test','spy','uOokh','pzZMH','RmzZF','getUserCredentials','path','GoxUi','GAHtQ','message','tPUAT','cMBMy','Test\x20timeout\x20of','forEach','buildTag','https','modifyReqForTraceUpload','lxyVB','O11yHashedID','EuuzT','replace','readConfig','ycRqd','git-repo-info','aPvIB','getFrameworkVersion','zHlaQ','browserstack','FuQvs','jIPtk','debug','AtsSa','logs','keepAlive','../../bin/utils/logPatcher','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','ZVHAG','platformName','timeout','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','isUndefined','\x20test\x20instance\x20:\x20','^CUSTOM_TAG_\x5cd+$','appium:app','error','4AEOEAj','TEST_PLATFORM','HtIKz','turboscale','toJSON','ujpXs','pkgGn','length','PGrNY','isArray','WdWwl','app','winstonLogger','NRBLT','1691511WKyAAY','\x20]\x20Build\x20Not\x20Found\x20%s','NUGxb','BROWSERSTACK_OBSERVABILITY_DEBUG','match','@playwright/test','\x20]\x20','rootDir','platform','NhiPN','6904380QPeqbk','@cucumber/cucumber','buildLogger','http','then','OS\x20X','config','UnhandledError','annotate','release','turboScaleGridDetails','info','Unknown','getBrowserStackConfig','sleep','BZcsH','ofsSb','../performance/constants','AGZyZ','getCapabilities','uzkRM','XREXO','fFaxQ','git-last-commit','darwin','getObservabilityLinkedProductName','CUCUMBER','env','../performance/performance-tester','GPPzb','rfdPe','ycMqT','TEST_REPORTING_BUILD_TAG','TEST_REPORTING_ANALYTICS','getDefaultHeaders','Hgdtq','emit','YZZPU','../logger','dfXpu','lIlQi','CWehO','parse','Error\x20in\x20importing\x20windows-release\x20','CODECEPT','map_','TimeoutError','getPlatformDetails','backtrace','cJuLU','CKOBn','maxSockets','MMILE','][\x20','capabilities','getBrowserVersion','fileName','Windows','getFailureType','BROWSERSTACK_TEST_REPORTING_DEBUG','BROWSERSTACK_ACCESSIBILITY','null','../../../src/bin/utils/constants','Error\x20in\x20getting\x20Linux\x20Details','test_run_uuid','EEnxa','VkFEP','TEST_ATTACHMENT','10Qfkfhs','BROWSERSTACK_RERUN_TESTS','trim','caDIb','JHkPk','keys','__cloud_provider___','pid','undefined','jhGau','PLAYWRIGHT','data','AMEAR','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','MXCfW','sendPlatformDetails','filter','TEST_OBSERVABILITY_BUILD_TAG','awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27','MsJyh','agent','prefixTestPath','ZLtse','[%s][\x20Accessibility\x20]\x20Error\x20printing\x20accessibility\x20build\x20link\x20%s','toString','jest','expanded','ENoYj','Authorization','fBqiR','EiWZO','dvYol','qxFgn','JEST','msdhV','zdOaN','rVaem','EoXqK','getUserName','relativeTestFilePath','pDoSV','rbIWw','getos','getPlatformVersion','NRJrV'];a137_0x4d7b=function(){return _0x2b34d2;};return a137_0x4d7b();}class PathHelper{constructor(_0x172c99,_0x19e402){const _0x566664=a137_0x265ba0;this['config']=_0x172c99,this[_0x566664(0x1fa)]=_0x19e402;}['relativeTestFilePath'](_0x35d411){const _0x410baf=a137_0x265ba0,_0x3c5293=this[_0x410baf(0x16b)][_0x410baf(0x251)]||this[_0x410baf(0x16b)][_0x410baf(0x162)];return path['relative'](_0x3c5293,_0x35d411);}[a137_0x265ba0(0x1be)](_0x5594a3){const _0x4a3f0=a137_0x265ba0,_0x4f8553=this[_0x4a3f0(0x1d0)](_0x5594a3);return this['prefix']?path[_0x4a3f0(0x256)](this[_0x4a3f0(0x1fa)],_0x4f8553):_0x4f8553;}}exports[a137_0x265ba0(0x1e5)]=PathHelper,exports['addRequestSpy']=(_0x2b6395=!![])=>{const _0x43a695=a137_0x265ba0,_0x16de3e={};_0x16de3e[_0x43a695(0x1d1)]=function(_0x25b971,_0x2150bd){return _0x25b971===_0x2150bd;},_0x16de3e[_0x43a695(0x1d2)]='X-BSTACK-TESTOPS',_0x16de3e[_0x43a695(0x1c6)]=_0x43a695(0x1e7),_0x16de3e['FxJWR']='HTTP',_0x16de3e[_0x43a695(0x1a7)]=_0x43a695(0x272),_0x16de3e[_0x43a695(0x271)]=_0x43a695(0x22d);const _0x49f8ee=_0x16de3e;requestSpy[_0x43a695(0x258)]((_0x4ca6a7,_0x1e3cbf)=>{const _0x243068=_0x43a695;_0x1e3cbf&&!(_0x1e3cbf[_0x243068(0x1f7)]&&_0x49f8ee[_0x243068(0x1d1)](_0x1e3cbf[_0x243068(0x1f7)][_0x49f8ee['rbIWw']],_0x49f8ee[_0x243068(0x1c6)]))&&(_0x1e3cbf['host']=_0x1e3cbf[_0x243068(0x234)],delete _0x1e3cbf[_0x243068(0x234)],_0x2b6395&&process[_0x243068(0x189)](_0x243068(0x233)+process[_0x243068(0x1b0)],{'timestamp':new Date()[_0x243068(0x221)](),'level':null,'message':null,'kind':_0x49f8ee[_0x243068(0x227)],'http_response':_0x1e3cbf})),_0x1e3cbf&&(constants[_0x243068(0x236)][_0x243068(0x257)](_0x1e3cbf['host'])||constants['ATS_HUB_URL_REGEX']['test'](_0x1e3cbf['host']))?global[_0x243068(0x1af)]=_0x49f8ee['VkFEP']:global[_0x243068(0x1af)]=_0x49f8ee['zHlaQ'];});},exports[a137_0x265ba0(0x206)]=()=>{const _0x4da3c7=a137_0x265ba0,_0x5dedd3={'UplDp':function(_0x17d5ec,_0x2ecc49){return _0x17d5ec(_0x2ecc49);}};console={},Object[_0x4da3c7(0x1ae)](consoleHolder)['forEach'](_0x223de3=>{_0x5dedd3['UplDp'](isFunction,consoleHolder[_0x223de3])?console[_0x223de3]=(..._0x1c2b97)=>{const _0x2e3d5d=a137_0x2453;try{!Object['keys'](BSTestOpsPatcher)[_0x2e3d5d(0x203)](_0x223de3)?consoleHolder[_0x223de3](..._0x1c2b97):BSTestOpsPatcher[_0x223de3](..._0x1c2b97);}catch(_0x2945bf){consoleHolder[_0x223de3](..._0x1c2b97);}}:console[_0x223de3]=consoleHolder[_0x223de3];});},exports['getSyncScript']=()=>'browserstack_executor:\x20'+JSON[a137_0x265ba0(0x20a)]({'action':a137_0x265ba0(0x16d),'arguments':{'data':a137_0x265ba0(0x215)+Date['now'](),'level':a137_0x265ba0(0x275)}}),exports[a137_0x265ba0(0x17e)]=_0x2b2037=>{const _0x2d767d=a137_0x265ba0,_0x2a2e76={};_0x2a2e76[_0x2d767d(0x25a)]=function(_0x55dee3,_0x2424f2){return _0x55dee3===_0x2424f2;},_0x2a2e76[_0x2d767d(0x18d)]=_0x2d767d(0x272),_0x2a2e76[_0x2d767d(0x247)]=_0x2d767d(0x14b),_0x2a2e76[_0x2d767d(0x196)]=_0x2d767d(0x158),_0x2a2e76['bEMlP']=function(_0x535ea5,_0x30d37a){return _0x535ea5>_0x30d37a;},_0x2a2e76['qxFgn']=_0x2d767d(0x248),_0x2a2e76[_0x2d767d(0x23d)]=_0x2d767d(0x1d8),_0x2a2e76[_0x2d767d(0x179)]=_0x2d767d(0x16f),_0x2a2e76[_0x2d767d(0x1cd)]=_0x2d767d(0x150),_0x2a2e76[_0x2d767d(0x230)]='automate';const _0x59f5ff=_0x2a2e76;let _0x2a3ed4=null;try{if(_0x59f5ff[_0x2d767d(0x25a)](global['__cloud_provider___'],_0x59f5ff['lIlQi'])){if(_0x2b2037[_0x59f5ff[_0x2d767d(0x247)]]||_0x2b2037[_0x59f5ff[_0x2d767d(0x196)]]||!bsSetupHelper[_0x2d767d(0x148)](global[_0x2d767d(0x19b)])&&_0x59f5ff[_0x2d767d(0x22b)](global[_0x2d767d(0x19b)][_0x2d767d(0x154)],0x0)&&(global[_0x2d767d(0x19b)][0x0][_0x59f5ff['cJuLU']]||global[_0x2d767d(0x19b)][0x0][_0x59f5ff['mPPTe']]))_0x2a3ed4=_0x59f5ff[_0x2d767d(0x1c9)];else _0x2b2037[_0x59f5ff[_0x2d767d(0x23d)]]&&_0x2b2037[_0x59f5ff['EMVcn']][_0x59f5ff[_0x2d767d(0x179)]]?_0x2a3ed4=_0x59f5ff[_0x2d767d(0x1cd)]:_0x2a3ed4=_0x59f5ff[_0x2d767d(0x230)];}}catch(_0x3ade12){exports[_0x2d767d(0x275)]('Failed\x20to\x20determine\x20product\x20linked\x20to\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x2d767d(0x149)+_0x3ade12);}return _0x2a3ed4;},exports[a137_0x265ba0(0x1b8)]=async(_0x3c87c0,_0x23ad21,_0x52f30b=![])=>{const _0x4bea6f=a137_0x265ba0,_0x4b82c5={};_0x4b82c5[_0x4bea6f(0x1ce)]=function(_0x59d1b5,_0xad791d){return _0x59d1b5===_0xad791d;},_0x4b82c5[_0x4bea6f(0x202)]='browserstack',_0x4b82c5['StfaS']='unknown_grid',_0x4b82c5[_0x4bea6f(0x22e)]=_0x4bea6f(0x14e);const _0x3d46a0=_0x4b82c5;try{const _0x3e8ae7=await _0x3c87c0[_0x4bea6f(0x178)](),_0x351496=await _0x3c87c0['getSession'](),_0x5e42fb={},_0x44d1e3=Object[_0x4bea6f(0x207)](_0x351496['getCapabilities']()[_0x4bea6f(0x192)]),_0x46ec63={'product':exports[_0x4bea6f(0x17e)](_0x44d1e3),'capabilities':_0x44d1e3,'platform':_0x3e8ae7[_0x4bea6f(0x1e0)](),'platform_version':bsSetupHelper[_0x4bea6f(0x1d4)](_0x3d46a0[_0x4bea6f(0x1ce)](global[_0x4bea6f(0x1af)],_0x3d46a0['lmNYf'])),'browser':_0x3e8ae7['getBrowserName'](),'browser_version':_0x3e8ae7[_0x4bea6f(0x19c)](),'session_id':_0x351496[_0x4bea6f(0x151)]()};global[_0x4bea6f(0x1af)]?_0x5e42fb[global[_0x4bea6f(0x1af)]]=_0x46ec63:_0x5e42fb[_0x3d46a0[_0x4bea6f(0x1e4)]]=_0x46ec63;if(_0x52f30b)return _0x5e42fb;process[_0x4bea6f(0x189)](_0x4bea6f(0x1ee)+process[_0x4bea6f(0x1b0)],{'timestamp':new Date()[_0x4bea6f(0x221)](),'level':null,'message':null,'kind':_0x3d46a0['eaGCh'],'http_response':_0x5e42fb,'uuid':_0x23ad21});}catch(_0x3fedaa){exports['debug'](_0x4bea6f(0x27a)+_0x3fedaa);}},exports[a137_0x265ba0(0x24a)]=_0x43474b=>{const _0x3030de=a137_0x265ba0;return _0x43474b&&_0x43474b[_0x3030de(0x1c1)]()['match'](/browserstack internal helper hook/);};
|
|
1
|
+
const a137_0xd986ec=a137_0x42d8;(function(_0x1dbf02,_0xb98230){const _0x29f055=a137_0x42d8,_0x167b28=_0x1dbf02();while(!![]){try{const _0x4e5fc5=-parseInt(_0x29f055(0x205))/0x1*(parseInt(_0x29f055(0x1dd))/0x2)+-parseInt(_0x29f055(0x1ee))/0x3*(parseInt(_0x29f055(0x204))/0x4)+-parseInt(_0x29f055(0x247))/0x5+-parseInt(_0x29f055(0x1ac))/0x6*(-parseInt(_0x29f055(0x252))/0x7)+-parseInt(_0x29f055(0x1df))/0x8*(-parseInt(_0x29f055(0x209))/0x9)+parseInt(_0x29f055(0x260))/0xa*(-parseInt(_0x29f055(0x1a3))/0xb)+-parseInt(_0x29f055(0x1c7))/0xc*(-parseInt(_0x29f055(0x1dc))/0xd);if(_0x4e5fc5===_0xb98230)break;else _0x167b28['push'](_0x167b28['shift']());}catch(_0x6e131c){_0x167b28['push'](_0x167b28['shift']());}}}(a137_0x4f81,0xbd714));const fs=require('fs'),path=require(a137_0xd986ec(0x153)),gitLastCommit=require(a137_0xd986ec(0x20a)),getRepoInfo=require('git-repo-info'),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require('./constants'),http=require(a137_0xd986ec(0x1a5)),https=require(a137_0xd986ec(0x18b)),child_process=require(a137_0xd986ec(0x16d)),getos=require(a137_0xd986ec(0x184)),os=require('os'),logger=require(a137_0xd986ec(0x1b9))[a137_0xd986ec(0x147)],buildLogger=require(a137_0xd986ec(0x1b9))[a137_0xd986ec(0x16c)],bsSetupHelper=require('../helper'),requestSpy=require(a137_0xd986ec(0x254)),constants=require(a137_0xd986ec(0x224)),logPatcher=require('../../bin/utils/logPatcher'),util=require('util'),{fileLogger}=require(a137_0xd986ec(0x1b9)),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a137_0xd986ec(0x245)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a137_0xd986ec(0x166)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a137_0xd986ec(0x1f5));exports['trace']=_0x4177d2=>{const _0x48721b=a137_0xd986ec;fileLogger[_0x48721b(0x1f1)]('['+new Date()[_0x48721b(0x1d1)]()+_0x48721b(0x1b7)+constants[_0x48721b(0x233)]+'\x20]\x20'+_0x4177d2);},exports[a137_0xd986ec(0x1c8)]=_0xaa55ea=>{const _0x14f4dd=a137_0xd986ec,_0x27703f={};_0x27703f[_0x14f4dd(0x219)]=function(_0xedf7c0,_0x115b57){return _0xedf7c0===_0x115b57;},_0x27703f[_0x14f4dd(0x15f)]=_0x14f4dd(0x24a),_0x27703f[_0x14f4dd(0x236)]=function(_0x1ed617,_0x1f42e2){return _0x1ed617===_0x1f42e2;},_0x27703f['bDFlY']=function(_0x4b8fd3,_0x24ce2f){return _0x4b8fd3===_0x24ce2f;},_0x27703f[_0x14f4dd(0x23e)]=function(_0x39f78e,_0x556809){return _0x39f78e===_0x556809;};const _0x2abf4f=_0x27703f;fileLogger[_0x14f4dd(0x1c8)]('['+new Date()['toISOString']()+_0x14f4dd(0x1b7)+constants[_0x14f4dd(0x233)]+'\x20]\x20'+_0xaa55ea),(_0x2abf4f['JsVWA'](process[_0x14f4dd(0x183)][_0x14f4dd(0x1be)],_0x2abf4f[_0x14f4dd(0x15f)])||_0x2abf4f[_0x14f4dd(0x236)](process[_0x14f4dd(0x183)][_0x14f4dd(0x1be)],'1')||_0x2abf4f[_0x14f4dd(0x14a)](process[_0x14f4dd(0x183)][_0x14f4dd(0x1a9)],_0x2abf4f['ylyoI'])||_0x2abf4f['QHcyI'](process[_0x14f4dd(0x183)][_0x14f4dd(0x1a9)],'1'))&&consoleHolder['log']('\x0a['+new Date()['toISOString']()+_0x14f4dd(0x1b7)+constants[_0x14f4dd(0x233)]+_0x14f4dd(0x23c)+_0xaa55ea+'\x0a');};const a137_0xb7011={};a137_0xb7011['keepAlive']=!![],a137_0xb7011['timeout']=0xea60,a137_0xb7011[a137_0xd986ec(0x212)]=0x2,a137_0xb7011[a137_0xd986ec(0x267)]=0x2;const httpKeepAliveAgent=new http[(a137_0xd986ec(0x14b))](a137_0xb7011),a137_0x3a249b={};a137_0x3a249b[a137_0xd986ec(0x25c)]=!![],a137_0x3a249b['timeout']=0xea60,a137_0x3a249b[a137_0xd986ec(0x212)]=0x2,a137_0x3a249b[a137_0xd986ec(0x267)]=0x2;const httpsKeepAliveAgent=new https['Agent'](a137_0x3a249b),a137_0x33b414={};a137_0x33b414[a137_0xd986ec(0x25c)]=!![],a137_0x33b414[a137_0xd986ec(0x259)]=0xea60,a137_0x33b414['maxSockets']=0x2,a137_0x33b414[a137_0xd986ec(0x267)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a137_0xd986ec(0x14b))](a137_0x33b414),a137_0x488875={};a137_0x488875[a137_0xd986ec(0x25c)]=!![],a137_0x488875['timeout']=0xea60,a137_0x488875[a137_0xd986ec(0x212)]=0x2,a137_0x488875[a137_0xd986ec(0x267)]=0x2;const httpsScreenshotsKeepAliveAgent=new https['Agent'](a137_0x488875);exports[a137_0xd986ec(0x156)]=()=>{const _0x295af4=a137_0xd986ec,_0x4fd07d={};_0x4fd07d[_0x295af4(0x1e8)]=function(_0x377839,_0x4012eb){return _0x377839!==_0x4012eb;},_0x4fd07d['gursD']='null';const _0x4f532d=_0x4fd07d;return process['env']['BROWSERSTACK_RERUN_TESTS']&&_0x4f532d['CdPDb'](process[_0x295af4(0x183)][_0x295af4(0x1d3)],_0x4f532d['gursD'])?!![]:![];},exports[a137_0xd986ec(0x217)]=()=>{const _0x2cd175=a137_0xd986ec,_0x2e8de6={};_0x2e8de6[_0x2cd175(0x1e6)]=function(_0x2a6caa,_0x819172){return _0x2a6caa===_0x819172;},_0x2e8de6[_0x2cd175(0x17f)]=_0x2cd175(0x24a),_0x2e8de6['EyuZr']=function(_0x552c28,_0x5c4415){return _0x552c28===_0x5c4415;},_0x2e8de6[_0x2cd175(0x17c)]=function(_0x3df20f,_0x20caf3){return _0x3df20f===_0x20caf3;};const _0x15d232=_0x2e8de6;let _0x532d53=!![];return process[_0x2cd175(0x183)][_0x2cd175(0x171)]&&(_0x532d53=_0x15d232[_0x2cd175(0x1e6)](process[_0x2cd175(0x183)][_0x2cd175(0x171)],_0x15d232['HDGxJ'])),process[_0x2cd175(0x183)][_0x2cd175(0x207)]&&(_0x532d53=_0x15d232['EyuZr'](process['env'][_0x2cd175(0x207)],_0x15d232['HDGxJ'])),process['env']['BROWSERSTACK_TEST_REPORTING']&&(_0x532d53=_0x15d232[_0x2cd175(0x17c)](process[_0x2cd175(0x183)][_0x2cd175(0x256)],_0x15d232[_0x2cd175(0x17f)])),_0x532d53;},exports['parseFileNames']=_0x3af352=>{const _0x2bb8d4=a137_0xd986ec;if(bsSetupHelper[_0x2bb8d4(0x253)](_0x3af352))return undefined;try{return _0x3af352['trim']()[_0x2bb8d4(0x268)](',');}catch(_0x1e21a2){return undefined;}},exports[a137_0xd986ec(0x175)]=()=>{const _0x1b5e08=a137_0xd986ec,_0x5b10c4={'SJDXg':function(_0x255de3,_0x103cf7){return _0x255de3(_0x103cf7);},'KJGzA':_0x1b5e08(0x1a1),'dDKAH':function(_0x477d66,_0xcb28c6){return _0x477d66!==_0xcb28c6;},'CPYeP':'null','npGHk':function(_0xbc72ec,_0x263e91){return _0xbc72ec!==_0x263e91;},'suZkQ':_0x1b5e08(0x23f),'uRsud':function(_0x69f785,_0x498636){return _0x69f785===_0x498636;},'iKwCE':'true','uqZun':function(_0x3d7389,_0x41a5e2){return _0x3d7389===_0x41a5e2;},'Uilxk':function(_0x4aae84,_0x1a0701){return _0x4aae84&&_0x1a0701;}};return PerformanceTester[_0x1b5e08(0x157)](PerformanceO11yEvents[_0x1b5e08(0x23d)],async()=>{const _0x2aca2f=_0x1b5e08;try{const _0x46ea5f=_0x5b10c4['SJDXg'](require,_0x5b10c4['KJGzA']);if(_0x46ea5f[_0x2aca2f(0x1ab)]){const _0xce594d=_0x2aca2f(0x1d2)+O11Y_URL+_0x2aca2f(0x1e1)+_0x46ea5f[_0x2aca2f(0x1ab)]+_0x2aca2f(0x19f);buildLogger[_0x2aca2f(0x146)](_0xce594d),exports[_0x2aca2f(0x192)](_0x46ea5f[_0x2aca2f(0x1ab)],_0x46ea5f[_0x2aca2f(0x14c)]);return;}if(process[_0x2aca2f(0x183)][_0x2aca2f(0x226)]&&_0x5b10c4[_0x2aca2f(0x21b)](process['env'][_0x2aca2f(0x226)],_0x5b10c4['CPYeP'])&&_0x5b10c4[_0x2aca2f(0x234)](process['env'][_0x2aca2f(0x226)],_0x5b10c4[_0x2aca2f(0x262)])){const _0x3ea022=_0x2aca2f(0x1d2)+constants['O11Y_URL']+'/builds/'+process[_0x2aca2f(0x183)][_0x2aca2f(0x226)]+_0x2aca2f(0x19f);buildLogger['info'](_0x3ea022);const _0x103c16=_0x5b10c4[_0x2aca2f(0x179)](process['env']['BROWSERSTACK_ACCESSIBILITY'],_0x5b10c4[_0x2aca2f(0x197)]);let _0x294c53=![];try{const _0x516d86=JSON['parse'](process[_0x2aca2f(0x183)][_0x2aca2f(0x1c5)]||'{}');_0x294c53=_0x5b10c4[_0x2aca2f(0x1b8)](_0x516d86[_0x2aca2f(0x1bb)],!![]);}catch(_0x19cb73){}exports[_0x2aca2f(0x192)](process[_0x2aca2f(0x183)][_0x2aca2f(0x226)],_0x5b10c4[_0x2aca2f(0x170)](_0x103c16,!_0x294c53));}}catch(_0x3b0c25){logger[_0x2aca2f(0x1c9)](util['format']('[%s][\x20'+constants[_0x2aca2f(0x233)]+_0x2aca2f(0x1ef),new Date()[_0x2aca2f(0x1d1)](),_0x3b0c25[_0x2aca2f(0x19e)]||_0x3b0c25[_0x2aca2f(0x1fb)]||_0x3b0c25));}})();},exports[a137_0xd986ec(0x192)]=(_0x2d92ce,_0x1d554e)=>{const _0x2d721e=a137_0xd986ec,_0x21da2b={};_0x21da2b[_0x2d721e(0x182)]=function(_0x5b4087,_0x3644dd){return _0x5b4087&&_0x3644dd;},_0x21da2b['zdHFe']=_0x2d721e(0x151);const _0x2fab7c=_0x21da2b;try{if(_0x2fab7c['WEVYg'](_0x1d554e,_0x2d92ce)){const _0x354e15=_0x2d721e(0x168)+_0x2d92ce,_0x541a98=_0x2d721e(0x1d2)+_0x354e15+_0x2d721e(0x270);buildLogger['info'](_0x541a98);}}catch(_0x53a585){logger[_0x2d721e(0x1c9)](util['format'](_0x2fab7c[_0x2d721e(0x20b)],new Date()['toISOString'](),_0x53a585[_0x2d721e(0x19e)]||_0x53a585[_0x2d721e(0x1fb)]||_0x53a585));}},exports[a137_0xd986ec(0x1c2)]=_0x360399=>{const _0x5bfd52=a137_0xd986ec,_0x57f5a4={};_0x57f5a4[_0x5bfd52(0x25a)]=_0x5bfd52(0x1a4),_0x57f5a4[_0x5bfd52(0x21c)]='Test\x20timeout\x20of',_0x57f5a4[_0x5bfd52(0x1a6)]=_0x5bfd52(0x190),_0x57f5a4[_0x5bfd52(0x174)]=_0x5bfd52(0x1e7);const _0x7667d3=_0x57f5a4;if(!_0x360399)return null;const _0x15a9b3=_0x360399['toString']();if(_0x15a9b3[_0x5bfd52(0x194)](/AssertionError/))return _0x7667d3[_0x5bfd52(0x25a)];if(_0x15a9b3[_0x5bfd52(0x194)](/TimeoutError/)||_0x15a9b3[_0x5bfd52(0x17a)](_0x7667d3[_0x5bfd52(0x21c)])||_0x15a9b3[_0x5bfd52(0x194)](/Timeout.*exceeded/i))return _0x7667d3[_0x5bfd52(0x1a6)];return _0x7667d3[_0x5bfd52(0x174)];},exports['getFrameworkVersion']=_0xe9aca3=>{const _0xfe6530=a137_0xd986ec,_0x13e24b={};_0x13e24b[_0xfe6530(0x1ae)]='mocha',_0x13e24b[_0xfe6530(0x1cd)]=_0xfe6530(0x1ca),_0x13e24b['VtgSb']=_0xfe6530(0x176),_0x13e24b['XRSKY']='jest',_0x13e24b['ZfrVj']=_0xfe6530(0x1eb),_0x13e24b[_0xfe6530(0x20f)]='puppeteer-core',_0x13e24b[_0xfe6530(0x1f4)]='puppeteer';const _0x52a31f=_0x13e24b;let _0x1e5be7=null;switch(_0xe9aca3){case FRAMEWORKS[_0xfe6530(0x25f)]:_0x1e5be7=bsSetupHelper[_0xfe6530(0x1af)](_0x52a31f[_0xfe6530(0x1ae)]);break;case FRAMEWORKS[_0xfe6530(0x228)]:_0x1e5be7=bsSetupHelper[_0xfe6530(0x1af)](_0x52a31f[_0xfe6530(0x1cd)]);break;case FRAMEWORKS[_0xfe6530(0x1cb)]:case FRAMEWORKS[_0xfe6530(0x1f0)]:_0x1e5be7=bsSetupHelper['getPackageVersion'](_0x52a31f[_0xfe6530(0x26e)]);break;case FRAMEWORKS[_0xfe6530(0x1cf)]:_0x1e5be7=bsSetupHelper[_0xfe6530(0x1af)](_0x52a31f[_0xfe6530(0x232)]);break;case FRAMEWORKS['CUCUMBER']:_0x1e5be7=bsSetupHelper['getPackageVersion'](_0x52a31f[_0xfe6530(0x1f8)]);break;case FRAMEWORKS[_0xfe6530(0x1a0)]:_0x1e5be7=bsSetupHelper[_0xfe6530(0x1af)](_0x52a31f[_0xfe6530(0x20f)])||bsSetupHelper[_0xfe6530(0x1af)](_0x52a31f['jTNNY']);break;default:break;}return _0x1e5be7;},exports[a137_0xd986ec(0x172)]=_0x1e120e=>{const _0x12803f=a137_0xd986ec;let _0x2e6610=null;switch(_0x1e120e){case FRAMEWORKS[_0x12803f(0x228)]:_0x2e6610=process['env']['BROWSERSTACK_CONFIG_FILE_PATH'];break;}if(!_0x2e6610)return;return bsSetupHelper[_0x12803f(0x18d)](_0x2e6610,![]);},exports[a137_0xd986ec(0x160)]=_0x4c13a7=>{const _0x494c99=a137_0xd986ec;return{'username':bsSetupHelper['getUserName'](_0x4c13a7),'accessKey':bsSetupHelper[_0x494c99(0x1e9)](_0x4c13a7)};},exports['modifyReqForTraceUpload']=(_0xb9056c,_0x10bab6)=>{const _0x5b57c9=a137_0xd986ec,_0x2dc32b={};_0x2dc32b['zrRPJ']=_0x5b57c9(0x159),_0x2dc32b[_0x5b57c9(0x206)]=_0x5b57c9(0x200),_0x2dc32b[_0x5b57c9(0x196)]=_0x5b57c9(0x22f);const _0x368384=_0x2dc32b,_0x20a1d8=_0x368384['zrRPJ']['split']('|');let _0x1ffcc7=0x0;while(!![]){switch(_0x20a1d8[_0x1ffcc7++]){case'0':_0xb9056c[_0x5b57c9(0x240)]={'data':_0xb9056c[_0x5b57c9(0x1ed)][0x0][_0x5b57c9(0x16f)][0x0][_0x5b57c9(0x23a)],'test_run_uuid':_0xb9056c['body'][0x0][_0x5b57c9(0x16f)][0x0][_0x5b57c9(0x271)],'event_type':_0x368384[_0x5b57c9(0x206)],'kind':_0x368384[_0x5b57c9(0x196)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x5b57c9(0x1d1)](),'fileName':_0xb9056c[_0x5b57c9(0x1ed)][0x0][_0x5b57c9(0x16f)][0x0][_0x5b57c9(0x1ff)]};continue;case'1':delete _0xb9056c[_0x5b57c9(0x215)];continue;case'2':if(!_0xb9056c[_0x5b57c9(0x1ed)]||!Array['isArray'](_0xb9056c[_0x5b57c9(0x1ed)]))return;continue;case'3':delete _0xb9056c['body'];continue;case'4':delete _0x10bab6['headers'];continue;case'5':if(!_0xb9056c[_0x5b57c9(0x1ed)][0x0]||!_0xb9056c[_0x5b57c9(0x1ed)][0x0]['logs']||!_0xb9056c[_0x5b57c9(0x1ed)][0x0]['logs'][_0x5b57c9(0x18e)])return;continue;}break;}},exports[a137_0xd986ec(0x24e)]=async(_0x4f6cf8,_0x280692,_0x1befbc,_0x4fa79d,_0x28216b=!![])=>{const _0x31b509=a137_0xd986ec,_0x362177={};_0x362177[_0x31b509(0x189)]=function(_0x1bed98,_0x126119){return _0x1bed98===_0x126119;},_0x362177[_0x31b509(0x210)]=_0x31b509(0x149),_0x362177[_0x31b509(0x26b)]=_0x31b509(0x1c1),_0x362177[_0x31b509(0x244)]=_0x31b509(0x18b),_0x362177[_0x31b509(0x15c)]=function(_0x3f3bf9,_0x57f277){return _0x3f3bf9!==_0x57f277;},_0x362177['kKprH']=_0x31b509(0x235),_0x362177[_0x31b509(0x178)]=_0x31b509(0x195);const _0x25116d=_0x362177,_0x2fa6e5={..._0x4fa79d,...{'method':_0x4f6cf8,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x280692,'body':_0x1befbc,'json':_0x25116d[_0x31b509(0x189)](_0x4fa79d['headers'][_0x25116d['lPiXt']],_0x25116d[_0x31b509(0x26b)]),'agent':API_URL[_0x31b509(0x201)](_0x25116d[_0x31b509(0x244)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x25116d['zeIxg'](_0x280692,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x2fa6e5[_0x31b509(0x1a8)]=API_URL[_0x31b509(0x201)](_0x25116d[_0x31b509(0x244)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x31b509(0x26c)](_0x2fa6e5,_0x4fa79d),logger[_0x31b509(0x1c8)](_0x31b509(0x1fd)+_0x2fa6e5[_0x31b509(0x165)]));try{const {statusCode:_0x1248bd,body:_0x141278}=await bsSetupHelper[_0x31b509(0x16b)](_0x4f6cf8,_0x280692,_0x2fa6e5,_0x4fa79d,_0x2fa6e5['url']);if(_0x25116d['Ityoj'](_0x1248bd,0xc8))return _0x141278?_0x141278:_0x31b509(0x203)+_0x1248bd;let _0x3c1db2=_0x141278;if(_0x28216b)try{_0x25116d[_0x31b509(0x15c)](typeof _0x141278,_0x25116d[_0x31b509(0x225)])&&(_0x3c1db2=JSON['parse'](_0x141278));}catch(_0x99c125){logger['error'](_0x25116d[_0x31b509(0x178)],_0x141278,util[_0x31b509(0x1a2)](_0x99c125));}const _0x27cc62={};return _0x27cc62[_0x31b509(0x23a)]=_0x3c1db2,_0x27cc62;}catch(_0x17db16){logger[_0x31b509(0x1c9)]('Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20'+util[_0x31b509(0x1a2)](_0x17db16));throw _0x17db16;}},exports[a137_0xd986ec(0x16b)]=(_0x2eb6ea,_0x56a1b1,_0x371633,_0x542654,_0xc3a2b1=!![])=>{const _0x1f6d54=a137_0xd986ec,_0x442654={'ouClC':function(_0x2cde4d,_0x2e3c02){return _0x2cde4d!==_0x2e3c02;},'QbeIT':function(_0x24efc1,_0x4038fa){return _0x24efc1(_0x4038fa);},'vSPpg':'object','teBEU':_0x1f6d54(0x1ec),'fOvXM':function(_0x5cb585,_0x4bd7bd){return _0x5cb585(_0x4bd7bd);},'nvcAy':function(_0x33f412,_0x3ca433){return _0x33f412===_0x3ca433;},'rLBmU':_0x1f6d54(0x149),'eUmRU':_0x1f6d54(0x1c1),'IWERQ':'https'};return new Promise((_0xe1dbbe,_0x4d291e)=>{const _0x25a0c7=_0x1f6d54,_0xff2683={..._0x542654,...{'method':_0x2eb6ea,'url':API_URL+'/'+_0x56a1b1,'body':_0x371633,'json':_0x442654[_0x25a0c7(0x222)](_0x542654['headers'][_0x442654[_0x25a0c7(0x169)]],_0x442654[_0x25a0c7(0x14d)]),'agent':API_URL[_0x25a0c7(0x201)](_0x442654['IWERQ'])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x442654[_0x25a0c7(0x222)](_0x56a1b1,SCREENSHOT_ENDPOINT)&&(_0xff2683['agent']=API_URL[_0x25a0c7(0x201)](_0x442654[_0x25a0c7(0x1e3)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x25a0c7(0x16b)](_0x2eb6ea,_0x56a1b1,_0xff2683,_0x542654,API_URL)[_0x25a0c7(0x249)](({statusCode:_0x4a9389,body:_0x5276ef})=>{const _0xc46af2=_0x25a0c7;if(_0x442654[_0xc46af2(0x265)](_0x4a9389,0xc8))_0x442654[_0xc46af2(0x15a)](_0x4d291e,_0x5276ef?_0x5276ef:_0xc46af2(0x203)+_0x4a9389);else{if(_0xc3a2b1)try{_0x442654[_0xc46af2(0x265)](typeof _0x5276ef,_0x442654[_0xc46af2(0x20d)])&&(_0x5276ef=JSON[_0xc46af2(0x25b)](_0x5276ef));}catch(_0x5b7590){_0x442654[_0xc46af2(0x15a)](_0x4d291e,_0x442654['teBEU']);return;}const _0x369ba8={};_0x369ba8[_0xc46af2(0x23a)]=_0x5276ef,_0x442654[_0xc46af2(0x15a)](_0xe1dbbe,_0x369ba8);}})[_0x25a0c7(0x1b5)](_0x30d0c7=>{const _0x223588=_0x25a0c7;_0x30d0c7&&_0x442654[_0x223588(0x22c)](_0x4d291e,_0x30d0c7);});});},exports[a137_0xd986ec(0x238)]=_0x304405=>{const _0x4802a7=a137_0xd986ec;if(process[_0x4802a7(0x183)][_0x4802a7(0x181)])return process['env'][_0x4802a7(0x181)]['split'](',');if(process[_0x4802a7(0x183)][_0x4802a7(0x21f)])return process[_0x4802a7(0x183)][_0x4802a7(0x21f)][_0x4802a7(0x268)](',');if(_0x304405[_0x4802a7(0x1bd)])return _0x304405[_0x4802a7(0x1bd)];return[];},exports[a137_0xd986ec(0x266)]=(_0x576705=!![])=>{const _0x326500=a137_0xd986ec,_0x3c1ff5={};_0x3c1ff5['SenGK']=_0x326500(0x1c1),_0x3c1ff5[_0x326500(0x15e)]=_0x326500(0x24a),_0x3c1ff5[_0x326500(0x216)]=_0x326500(0x22a);const _0x25f554=_0x3c1ff5,_0x384f1f={};_0x384f1f[_0x326500(0x149)]=_0x25f554[_0x326500(0x24d)],_0x384f1f[_0x326500(0x1d0)]=_0x25f554[_0x326500(0x15e)];const _0x157b84=_0x384f1f;return _0x576705&&process[_0x326500(0x183)]['BROWSERSTACK_TESTHUB_JWT']&&(_0x157b84[_0x25f554[_0x326500(0x216)]]=_0x326500(0x18c)+process[_0x326500(0x183)]['BROWSERSTACK_TESTHUB_JWT']),_0x157b84;},exports[a137_0xd986ec(0x19a)]=_0x139f00=>{const _0x39ce90=a137_0xd986ec,_0x157723={};_0x157723[_0x39ce90(0x21e)]=_0x39ce90(0x250);const _0x3f5395=_0x157723,_0x4cb60d=[],_0x3f0ab6=new RegExp(_0x3f5395[_0x39ce90(0x21e)],'i');return Object[_0x39ce90(0x18f)](_0x139f00)[_0x39ce90(0x1d7)](_0x4c7b7b=>_0x3f0ab6[_0x39ce90(0x20e)](_0x4c7b7b))[_0x39ce90(0x188)](_0x4ca8b6=>_0x4cb60d[_0x39ce90(0x187)](_0x139f00[_0x4ca8b6])),_0x4cb60d;},exports[a137_0xd986ec(0x18a)]=_0x1a9695=>{const _0x366f5d=a137_0xd986ec,_0x34484a=[],_0x3a34ee=_0x1a9695[_0x366f5d(0x16a)]||process[_0x366f5d(0x183)][_0x366f5d(0x1ce)];return _0x3a34ee&&_0x34484a[_0x366f5d(0x187)](_0x3a34ee),_0x34484a[_0x366f5d(0x187)](...exports[_0x366f5d(0x19a)](process['env'])),_0x34484a['push'](...exports[_0x366f5d(0x19a)](_0x1a9695)),_0x34484a;},exports[a137_0xd986ec(0x220)]=_0x49ae76=>{const _0x44fbeb=a137_0xd986ec;if(!_0x49ae76)return'';return _0x49ae76[_0x44fbeb(0x237)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports['sleep']=(_0x1054aa=0x64)=>new Promise(_0x32dd49=>setTimeout(_0x32dd49,_0x1054aa));const getPlatformName=()=>{const _0x133833=a137_0xd986ec,_0x1a3d55={};_0x1a3d55[_0x133833(0x23b)]=function(_0x1663ed,_0x5ef7a3){return _0x1663ed===_0x5ef7a3;},_0x1a3d55['JwlrA']=_0x133833(0x1c0),_0x1a3d55[_0x133833(0x164)]=_0x133833(0x242),_0x1a3d55[_0x133833(0x243)]='darwin',_0x1a3d55[_0x133833(0x223)]=_0x133833(0x148),_0x1a3d55['Zpgeg']='linux',_0x1a3d55[_0x133833(0x1aa)]=_0x133833(0x26a),_0x1a3d55[_0x133833(0x177)]=_0x133833(0x1d6);const _0x5264db=_0x1a3d55;if(_0x5264db[_0x133833(0x23b)](process[_0x133833(0x239)],_0x5264db[_0x133833(0x180)]))return _0x5264db[_0x133833(0x164)];if(_0x5264db['Atats'](process[_0x133833(0x239)],_0x5264db[_0x133833(0x243)]))return _0x5264db[_0x133833(0x223)];if(_0x5264db['Atats'](process['platform'],_0x5264db[_0x133833(0x185)]))return _0x5264db['AYhpQ'];return _0x5264db[_0x133833(0x177)];},getMacOSVersion=()=>{const _0x681635=a137_0xd986ec,_0x49c25e={};_0x49c25e[_0x681635(0x24f)]=_0x681635(0x24c);const _0x16d79b=_0x49c25e;return child_process[_0x681635(0x255)](_0x16d79b['tmSiw'])[_0x681635(0x1bf)]()['trim']();},getLinuxDetails=()=>{const _0x1a5786={'AZnbU':function(_0x44a480,_0x3e22fc){return _0x44a480(_0x3e22fc);},'UuEaw':function(_0x37e7d8,_0x5c5fdc){return _0x37e7d8(_0x5c5fdc);},'NyMPb':function(_0x2c0d55,_0x3639c9){return _0x2c0d55(_0x3639c9);}};return new Promise((_0x289b1b,_0x7483d5)=>{const _0x59741f=a137_0x42d8;_0x1a5786[_0x59741f(0x191)](getos,(_0x482833,_0x26739d)=>{const _0x576a95=_0x59741f;if(_0x482833)return _0x1a5786[_0x576a95(0x1b1)](_0x7483d5,_0x482833);_0x1a5786[_0x576a95(0x208)](_0x289b1b,_0x26739d);});});};exports[a137_0xd986ec(0x22d)]=async()=>{const _0x308e2c=a137_0xd986ec,_0x19f8e1={'UUxmR':function(_0x2fbf42){return _0x2fbf42();},'AMxHb':'OS\x20X','ekuGx':_0x308e2c(0x242),'vnrrg':_0x308e2c(0x161),'VJaXn':function(_0x4b8c80){return _0x4b8c80();},'qrtge':'Linux','DqHDT':_0x308e2c(0x229)};let _0x23d183=_0x19f8e1[_0x308e2c(0x1da)](getPlatformName),_0x31769c=os[_0x308e2c(0x173)]()[_0x308e2c(0x1bf)]();switch(_0x23d183){case _0x19f8e1[_0x308e2c(0x1f6)]:_0x31769c=_0x19f8e1[_0x308e2c(0x1da)](getMacOSVersion);break;case _0x19f8e1[_0x308e2c(0x1e2)]:try{const _0x104616=(await import(_0x19f8e1[_0x308e2c(0x1c4)]))[_0x308e2c(0x15d)];_0x31769c=_0x19f8e1[_0x308e2c(0x21a)](_0x104616);}catch(_0x5260e7){exports['debug'](_0x308e2c(0x1d8)+_0x5260e7[_0x308e2c(0x1bf)]());}break;case _0x19f8e1[_0x308e2c(0x1a7)]:try{const _0x1035cd=await _0x19f8e1['UUxmR'](getLinuxDetails);_0x1035cd[_0x308e2c(0x158)]&&(_0x23d183=_0x1035cd[_0x308e2c(0x158)]),_0x1035cd[_0x308e2c(0x173)]&&(_0x31769c=_0x1035cd['release'][_0x308e2c(0x1bf)]());}catch(_0x2ef04f){exports['debug'](_0x19f8e1[_0x308e2c(0x261)]);}break;default:break;}const _0x5ebfcc={};return _0x5ebfcc[_0x308e2c(0x263)]=_0x23d183,_0x5ebfcc[_0x308e2c(0x218)]=_0x31769c,_0x5ebfcc;},exports['failureData']=(_0x4b299c,_0x5b3512)=>{const _0x4c1b91=a137_0xd986ec,_0x49de33={};_0x49de33[_0x4c1b91(0x19b)]=function(_0x4901f7,_0x380494){return _0x4901f7===_0x380494;},_0x49de33[_0x4c1b91(0x1b3)]=_0x4c1b91(0x20e),_0x49de33['tfotJ']=_0x4c1b91(0x25d);const _0xa6e816=_0x49de33;if(!_0x4b299c)return[];try{if(_0xa6e816[_0x4c1b91(0x19b)](_0x5b3512,_0xa6e816['IBBER']))return!Array['isArray'](_0x4b299c)&&(_0x4b299c=[_0x4b299c]),_0x4b299c[_0x4c1b91(0x1e4)](_0x1e5a27=>{const _0xea814f=_0x4c1b91,{stack:_0x36b9d9,..._0x4fe7f}=_0x1e5a27,_0x4b3b99=Object[_0xea814f(0x18f)](_0x4fe7f)[_0xea814f(0x1e4)](_0x42d91f=>{return _0x42d91f+':\x20'+_0x4fe7f[_0x42d91f];}),_0x5ee325=_0x36b9d9?exports['removeAnsiColors'](_0x36b9d9)['split'](/\r?\n/):[exports['removeAnsiColors'](_0x1e5a27[_0xea814f(0x1fb)])],_0x57bd52={};return _0x57bd52[_0xea814f(0x1d5)]=_0x5ee325,_0x57bd52[_0xea814f(0x1d9)]=_0x4b3b99,_0x57bd52;});else{if(_0xa6e816[_0x4c1b91(0x19b)](_0x5b3512,_0xa6e816[_0x4c1b91(0x1fe)])){const _0x4f8e57=[],_0x58260b=[];return Object[_0x4c1b91(0x18f)](_0x4b299c)[_0x4c1b91(0x188)](_0x295ec8=>{const _0x34904f=_0x4c1b91;try{_0x58260b[_0x34904f(0x187)](_0x295ec8+':\x20'+_0x4b299c[_0x295ec8]);}catch(_0x4a4fa2){exports['debug']('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x4a4fa2[_0x34904f(0x1fb)]+_0x34904f(0x258)+_0x4a4fa2[_0x34904f(0x1d5)]);}}),_0x4f8e57[_0x4c1b91(0x187)]({'backtrace':exports['removeAnsiColors'](_0x4b299c[_0x4c1b91(0x19e)])[_0x4c1b91(0x268)](/\r?\n/),'expanded':_0x58260b}),_0x4f8e57;}}return[];}catch(_0xbefcae){exports[_0x4c1b91(0x1c8)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0xbefcae[_0x4c1b91(0x1fb)]+_0x4c1b91(0x258)+_0xbefcae[_0x4c1b91(0x1d5)]);}return[];};function a137_0x42d8(_0x25bf50,_0x1610d0){const _0x4f815f=a137_0x4f81();return a137_0x42d8=function(_0x42d85d,_0x369cf6){_0x42d85d=_0x42d85d-0x146;let _0x53f1ff=_0x4f815f[_0x42d85d];return _0x53f1ff;},a137_0x42d8(_0x25bf50,_0x1610d0);}class PathHelper{constructor(_0x106f54,_0x5dec6c){const _0x500799=a137_0xd986ec;this[_0x500799(0x1c3)]=_0x106f54,this[_0x500799(0x155)]=_0x5dec6c;}[a137_0xd986ec(0x1fc)](_0x47afa4){const _0xb2eeda=a137_0xd986ec,_0x17f2e9=this[_0xb2eeda(0x1c3)][_0xb2eeda(0x251)]||this[_0xb2eeda(0x1c3)][_0xb2eeda(0x15b)];return path[_0xb2eeda(0x26f)](_0x17f2e9,_0x47afa4);}[a137_0xd986ec(0x1e0)](_0x493d69){const _0x36a67c=a137_0xd986ec,_0x279ab8=this[_0x36a67c(0x1fc)](_0x493d69);return this['prefix']?path[_0x36a67c(0x162)](this[_0x36a67c(0x155)],_0x279ab8):_0x279ab8;}}exports['PathHelper']=PathHelper,exports[a137_0xd986ec(0x26d)]=(_0x672bf0=!![])=>{const _0x5f10f7=a137_0xd986ec,_0x2aeda1={};_0x2aeda1[_0x5f10f7(0x1db)]=function(_0x3035de,_0x5a29b1){return _0x3035de===_0x5a29b1;},_0x2aeda1[_0x5f10f7(0x211)]=_0x5f10f7(0x1d0),_0x2aeda1['LyTFj']=_0x5f10f7(0x24a),_0x2aeda1[_0x5f10f7(0x231)]=_0x5f10f7(0x1de),_0x2aeda1['uCNKU']=_0x5f10f7(0x20c),_0x2aeda1[_0x5f10f7(0x1fa)]=_0x5f10f7(0x167);const _0xf9858f=_0x2aeda1;requestSpy['spy']((_0x180e82,_0x7c2cf2)=>{const _0x968eab=_0x5f10f7;_0x7c2cf2&&!(_0x7c2cf2[_0x968eab(0x248)]&&_0xf9858f[_0x968eab(0x1db)](_0x7c2cf2[_0x968eab(0x248)][_0xf9858f[_0x968eab(0x211)]],_0xf9858f['LyTFj']))&&(_0x7c2cf2[_0x968eab(0x241)]=_0x7c2cf2[_0x968eab(0x230)],delete _0x7c2cf2['hostname'],_0x672bf0&&process['emit'](_0x968eab(0x1b0)+process[_0x968eab(0x199)],{'timestamp':new Date()[_0x968eab(0x1d1)](),'level':null,'message':null,'kind':_0xf9858f['DxtOu'],'http_response':_0x7c2cf2})),_0x7c2cf2&&(constants['HUB_URL_REGEX']['test'](_0x7c2cf2[_0x968eab(0x241)])||constants[_0x968eab(0x198)][_0x968eab(0x20e)](_0x7c2cf2[_0x968eab(0x241)]))?global[_0x968eab(0x186)]=_0xf9858f[_0x968eab(0x19d)]:global[_0x968eab(0x186)]=_0xf9858f[_0x968eab(0x1fa)];});},exports[a137_0xd986ec(0x14e)]=()=>{const _0x5c1c53=a137_0xd986ec,_0x16107d={'RLsrC':function(_0x4d997b,_0x244ef5){return _0x4d997b(_0x244ef5);}};console={},Object[_0x5c1c53(0x18f)](consoleHolder)[_0x5c1c53(0x188)](_0x257329=>{_0x16107d['RLsrC'](isFunction,consoleHolder[_0x257329])?console[_0x257329]=(..._0x37d8a9)=>{try{!Object['keys'](BSTestOpsPatcher)['includes'](_0x257329)?consoleHolder[_0x257329](..._0x37d8a9):BSTestOpsPatcher[_0x257329](..._0x37d8a9);}catch(_0x459901){consoleHolder[_0x257329](..._0x37d8a9);}}:console[_0x257329]=consoleHolder[_0x257329];});},exports[a137_0xd986ec(0x1ea)]=()=>a137_0xd986ec(0x1e5)+JSON['stringify']({'action':a137_0xd986ec(0x1f7),'arguments':{'data':a137_0xd986ec(0x1d4)+Date['now'](),'level':a137_0xd986ec(0x1c8)}}),exports[a137_0xd986ec(0x1b4)]=_0x4e9ca6=>{const _0x5aaef0=a137_0xd986ec,_0x19daec={};_0x19daec[_0x5aaef0(0x152)]=function(_0x30e1cf,_0x2ef21f){return _0x30e1cf===_0x2ef21f;},_0x19daec[_0x5aaef0(0x227)]=_0x5aaef0(0x20c),_0x19daec[_0x5aaef0(0x1c6)]=_0x5aaef0(0x202),_0x19daec[_0x5aaef0(0x1ad)]=_0x5aaef0(0x22b),_0x19daec[_0x5aaef0(0x1bc)]=function(_0x267d5d,_0x232021){return _0x267d5d>_0x232021;},_0x19daec[_0x5aaef0(0x163)]=_0x5aaef0(0x17d),_0x19daec[_0x5aaef0(0x1f9)]=_0x5aaef0(0x17b),_0x19daec[_0x5aaef0(0x264)]='turboScaleGridDetails',_0x19daec['YrOlX']=_0x5aaef0(0x269),_0x19daec['SXRll']=_0x5aaef0(0x214);const _0x273ecf=_0x19daec;let _0x536a4c=null;try{if(_0x273ecf['YhEvE'](global[_0x5aaef0(0x186)],_0x273ecf[_0x5aaef0(0x227)])){if(_0x4e9ca6[_0x273ecf[_0x5aaef0(0x1c6)]]||_0x4e9ca6[_0x273ecf['IncxD']]||!bsSetupHelper[_0x5aaef0(0x253)](global[_0x5aaef0(0x1f2)])&&_0x273ecf[_0x5aaef0(0x1bc)](global[_0x5aaef0(0x1f2)]['length'],0x0)&&(global['capabilities'][0x0][_0x273ecf[_0x5aaef0(0x1ad)]]||global[_0x5aaef0(0x1f2)][0x0][_0x273ecf['EeJFi']]))_0x536a4c=_0x273ecf['SVBfx'];else _0x4e9ca6[_0x273ecf[_0x5aaef0(0x1f9)]]&&_0x4e9ca6[_0x273ecf[_0x5aaef0(0x1f9)]][_0x273ecf[_0x5aaef0(0x264)]]?_0x536a4c=_0x273ecf[_0x5aaef0(0x154)]:_0x536a4c=_0x273ecf[_0x5aaef0(0x150)];}}catch(_0x42e6a9){exports[_0x5aaef0(0x1c8)]('Failed\x20to\x20determine\x20product\x20linked\x20to\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x5aaef0(0x257)+_0x42e6a9);}return _0x536a4c;},exports[a137_0xd986ec(0x246)]=async(_0x40293d,_0xb86312,_0x36d489=![])=>{const _0x5f5bc6=a137_0xd986ec,_0x1ab54d={};_0x1ab54d['mJaTz']=function(_0x37c76b,_0x4f3340){return _0x37c76b===_0x4f3340;},_0x1ab54d[_0x5f5bc6(0x1b6)]=_0x5f5bc6(0x20c),_0x1ab54d['nMSWL']=_0x5f5bc6(0x1b2),_0x1ab54d[_0x5f5bc6(0x1f3)]=_0x5f5bc6(0x17e);const _0x45ef80=_0x1ab54d;try{const _0x589c9a=await _0x40293d[_0x5f5bc6(0x25e)](),_0x519b5c=await _0x40293d[_0x5f5bc6(0x16e)](),_0x56572c={},_0x1d7f04=Object['fromEntries'](_0x519b5c[_0x5f5bc6(0x25e)]()[_0x5f5bc6(0x221)]),_0x23ca2f={'product':exports[_0x5f5bc6(0x1b4)](_0x1d7f04),'capabilities':_0x1d7f04,'platform':_0x589c9a['getPlatform'](),'platform_version':bsSetupHelper[_0x5f5bc6(0x1cc)](_0x45ef80[_0x5f5bc6(0x22e)](global[_0x5f5bc6(0x186)],_0x45ef80[_0x5f5bc6(0x1b6)])),'browser':_0x589c9a[_0x5f5bc6(0x21d)](),'browser_version':_0x589c9a[_0x5f5bc6(0x1ba)](),'session_id':_0x519b5c[_0x5f5bc6(0x14f)]()};global[_0x5f5bc6(0x186)]?_0x56572c[global[_0x5f5bc6(0x186)]]=_0x23ca2f:_0x56572c[_0x45ef80[_0x5f5bc6(0x213)]]=_0x23ca2f;if(_0x36d489)return _0x56572c;process['emit'](_0x5f5bc6(0x24b)+process[_0x5f5bc6(0x199)],{'timestamp':new Date()[_0x5f5bc6(0x1d1)](),'level':null,'message':null,'kind':_0x45ef80[_0x5f5bc6(0x1f3)],'http_response':_0x56572c,'uuid':_0xb86312});}catch(_0x22b814){exports[_0x5f5bc6(0x1c8)](_0x5f5bc6(0x193)+_0x22b814);}},exports[a137_0xd986ec(0x19c)]=_0x1dd689=>{const _0x4ef7d0=a137_0xd986ec;return _0x1dd689&&_0x1dd689[_0x4ef7d0(0x1bf)]()['match'](/browserstack internal helper hook/);};function a137_0x4f81(){const _0x37f2e0=['JEST','X-BSTACK-TESTOPS','toISOString','Visit\x20','BROWSERSTACK_RERUN_TESTS','ObservabilitySync:','backtrace','Unknown','filter','Error\x20in\x20importing\x20windows-release\x20','expanded','UUxmR','frVrU','13ucShko','10ncLujl','HTTP','608UTfpun','prefixTestPath','/builds/','ekuGx','IWERQ','map','browserstack_executor:\x20','ZwABE','UnhandledError','CdPDb','getAccessKey','getSyncScript','@cucumber/cucumber','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','body','305553AUSbZe','\x20]\x20Build\x20Not\x20Found\x20%s','CODECEPT_CUCUMBER','silly','capabilities','fmfRN','jTNNY','../../../src/bin/utils/constants','AMxHb','annotate','ZfrVj','DzHwd','TIfpM','message','relativeTestFilePath','Uploading\x20trace\x20logs\x20to:\x20','tfotJ','fileName','LogCreated','includes','appium:app','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','8wXUtOs','150931JOlaSw','QTQNO','BROWSERSTACK_TEST_OBSERVABILITY','UuEaw','57519NJCBJO','git-last-commit','zdHFe','browserstack','vSPpg','test','vyxqJ','lPiXt','ryXpL','maxSockets','nMSWL','automate','json','dHffF','isTestObservabilitySession','platformVersion','JsVWA','VJaXn','dDKAH','HklbW','getBrowserName','qSDWq','TEST_OBSERVABILITY_BUILD_TAG','removeAnsiColors','map_','nvcAy','VpwNi','../../bin/utils/constants','kKprH','BS_TESTOPS_BUILD_HASHED_ID','mTKTD','PLAYWRIGHT','Error\x20in\x20getting\x20Linux\x20Details','Authorization','app','fOvXM','getPlatformDetails','mJaTz','TEST_ATTACHMENT','hostname','DxtOu','XRSKY','TEST_REPORTING_ANALYTICS','npGHk','object','MwTHe','replace','getBuildTags','platform','data','Atats','\x20]\x20','PRINT_BUILDLINK','QHcyI','undefined','formData','host','Windows','lAySQ','Trwbm','lodash','sendPlatformDetails','2485930jJMqOI','headers','then','true','bs:addPlatformDetails:','awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27','SenGK','asyncAwaitNodeReq','tmSiw','^CUSTOM_TAG_\x5cd+$','cwd','70ulLPRF','isUndefined','../../helpers/request-spy','execSync','BROWSERSTACK_TEST_REPORTING','\x20test\x20instance\x20:\x20','\x20:\x20','timeout','BFyaX','parse','keepAlive','err','getCapabilities','MOCHA','3201890dHOkWW','DqHDT','suZkQ','platformName','fUbhy','ouClC','getDefaultHeaders','maxTotalSockets','split','turboscale','Linux','YtPzJ','modifyReqForTraceUpload','addRequestSpy','VtgSb','relative','\x20to\x20view\x20accessibility\x20report.\x0a','test_run_uuid','info','winstonLogger','OS\x20X','Content-Type','bDFlY','Agent','A11yEnabled','eUmRU','patchConsoleLogger','toJSON','SXRll','[%s][\x20Accessibility\x20]\x20Error\x20printing\x20accessibility\x20build\x20link\x20%s','YhEvE','path','YrOlX','prefix','shouldReRunObservabilityTests','measureWrapper','dist','2|5|0|3|1|4','QbeIT','rootDir','Ityoj','default','OcQAu','ylyoI','getUserCredentials','windows-release','join','SVBfx','sQBJA','url','../performance/constants','local_grid','https://accessibility.browserstack.com/automated-tests/projects/p/builds/b/1?thBuildId=','rLBmU','customTag','nodeRequest','buildLogger','child_process','getSession','logs','Uilxk','BROWSERSTACK_TEST_OBSERVABILITY_YML','getBrowserStackConfig','release','HfYzE','printBuildLink','codeceptjs','OjDoa','EGroz','uRsud','startsWith','bstack:options','rTvts','app-automate','TEST_PLATFORM','HDGxJ','JwlrA','TEST_REPORTING_BUILD_TAG','WEVYg','env','getos','Zpgeg','__cloud_provider___','push','forEach','zeIxg','getCustomTags','https','Bearer\x20','readConfig','length','keys','TimeoutError','NyMPb','printA11yBuildLink','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','match','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','USWUf','iKwCE','ATS_HUB_URL_REGEX','pid','extractValuesWithRegexKeyMatch','PBGdi','isInternalHook','uCNKU','stack','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','PUPPETEER','../../bin/v2/browserstackCLI','format','44fZAKYz','AssertionError','http','ZrZSV','qrtge','agent','BROWSERSTACK_OBSERVABILITY_DEBUG','AYhpQ','O11yHashedID','916176xLmSaX','IncxD','uaXDU','getPackageVersion','bs:addLog:','AZnbU','unknown_grid','IBBER','getObservabilityLinkedProductName','catch','gJmNy','][\x20','uqZun','../logger','getBrowserVersion','app_automate','vJnke','buildTag','BROWSERSTACK_TEST_REPORTING_DEBUG','toString','win32','application/json','getFailureType','config','vnrrg','BROWSERSTACK_PRODUCT_MAP','EeJFi','17994948mCQZMf','debug','error','@playwright/test','CODECEPT','getPlatformVersion','raLol','CUSTOM_TAG'];a137_0x4f81=function(){return _0x37f2e0;};return a137_0x4f81();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a138_0x4a3e(){var _0x3c7064=['testorchestration/api/v1/split-tests','575560QwDBxy','40OBGTuR','69EASiyn','5465830cByOlE','exports','18596970aKCHKQ','ORCHESTRATION_API_URL','480928gJMpus','FAILED_TESTS_ENDPOINT','9499950hezKkv','6NpGGDW','181096sXdEpu','721469wvFgAT'];a138_0x4a3e=function(){return _0x3c7064;};return a138_0x4a3e();}var a138_0x881fd=a138_0x23e2;function a138_0x23e2(_0x6f2f0c,_0x4171f4){var _0x4a3e1a=a138_0x4a3e();return a138_0x23e2=function(_0x23e288,_0x26dec7){_0x23e288=_0x23e288-0x9b;var _0xb0ad9d=_0x4a3e1a[_0x23e288];return _0xb0ad9d;},a138_0x23e2(_0x6f2f0c,_0x4171f4);}(function(_0x492832,_0x44cff1){var _0x27a865=a138_0x23e2,_0x398239=_0x492832();while(!![]){try{var _0x6a6e1a=-parseInt(_0x27a865(0x9f))/0x1+-parseInt(_0x27a865(0xa6))/0x2+-parseInt(_0x27a865(0xa8))/0x3*(parseInt(_0x27a865(0xa3))/0x4)+-parseInt(_0x27a865(0x9b))/0x5*(-parseInt(_0x27a865(0xa2))/0x6)+-parseInt(_0x27a865(0xa4))/0x7*(-parseInt(_0x27a865(0xa7))/0x8)+-parseInt(_0x27a865(0xa1))/0x9+parseInt(_0x27a865(0x9d))/0xa;if(_0x6a6e1a===_0x44cff1)break;else _0x398239['push'](_0x398239['shift']());}catch(_0x3301ca){_0x398239['push'](_0x398239['shift']());}}}(a138_0x4a3e,0x9320e));var a138_0x209ca7={};a138_0x209ca7[a138_0x881fd(0x9e)]='https://collector-observability.browserstack.com',a138_0x209ca7[a138_0x881fd(0xa0)]='testorchestration/api/v1/failed-tests',a138_0x209ca7['SPLIT_TESTS_ENDPOINT']=a138_0x881fd(0xa5),module[a138_0x881fd(0x9c)]=a138_0x209ca7;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a139_0x3ce5b3=a139_0x5c81;(function(_0x10d1f3,_0x51c512){const _0x5dc61e=a139_0x5c81,_0x1b8b6d=_0x10d1f3();while(!![]){try{const _0x100224=parseInt(_0x5dc61e(0x16e))/0x1*(-parseInt(_0x5dc61e(0x165))/0x2)+-parseInt(_0x5dc61e(0x188))/0x3*(-parseInt(_0x5dc61e(0x17e))/0x4)+-parseInt(_0x5dc61e(0x128))/0x5+-parseInt(_0x5dc61e(0x132))/0x6*(parseInt(_0x5dc61e(0x15f))/0x7)+-parseInt(_0x5dc61e(0x168))/0x8+parseInt(_0x5dc61e(0x173))/0x9+parseInt(_0x5dc61e(0x146))/0xa;if(_0x100224===_0x51c512)break;else _0x1b8b6d['push'](_0x1b8b6d['shift']());}catch(_0x57e091){_0x1b8b6d['push'](_0x1b8b6d['shift']());}}}(a139_0x5a0a,0xefa0e));const fs=require('fs'),path=require(a139_0x3ce5b3(0x16f)),FileHelper=require(a139_0x3ce5b3(0x129)),RequestUtils=require(a139_0x3ce5b3(0x17d)),logger=require(a139_0x3ce5b3(0x138))[a139_0x3ce5b3(0x114)],POLLING_INTERVAL=0x2710,TAG=a139_0x3ce5b3(0x189);function a139_0x5c81(_0x8ae9f4,_0x53032d){const _0x5a0ac6=a139_0x5a0a();return a139_0x5c81=function(_0x5c81dc,_0x85aa50){_0x5c81dc=_0x5c81dc-0x10f;let _0x53bb11=_0x5a0ac6[_0x5c81dc];return _0x53bb11;},a139_0x5c81(_0x8ae9f4,_0x53032d);}function a139_0x5a0a(){const _0x2d6f1b=['uLUkQ','XGiEa','lastAPIFailedCount','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','failureThresholdCount','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','_CI]\x20Error\x20during\x20polling\x20logic:\x20','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','failed','length','PvdZd','1781080kMYHcv','./fileHelper','AvPiT','recordTestResult','EVuBo','ulGEH','aHTiw','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','pollingInterval','failFastConfig','261678RdoRze','startPolling','debug','_sendFailedTestsToAPI','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','AMTPP','../logger','IVTji','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','join','_CI]\x20Error\x20sending\x20failed\x20test\x20',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','YMsAM','LoRnJ','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','existsSync','JjiMo','vcOYD','klIQb','WgTPM','27417960ttvuYl','failFastActiveMarkerPath',']\x20Polling\x20stopped.','_Local]\x20State\x20initialized\x20from\x20file.','fileHelper','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','onTestDone','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','vHita','writeFileSync','VSqDe','WeeAt','failFastState.json','IzQbF','number','stack','_initializeStateFromFile','from','reportedFailuresToAPI','OqvUC','cGhXb','\x20(was\x20','uniqueFailedTests','ciZxM','toISOString','280oIKROa','failFast.active','buildName','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','bFjqu','projectName','8038VGTKnC','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','exports','6173920wUmsgK','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','readState','wBZSJ','TWhcb','EiVCn','249LqhWjp','path','cleanup','state','shouldFailFast','9195381YwifEQ','_fetchAPIFailedCount','add','\x0aStack:\x20','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','tFECp','BROWSERSTACK_TOTAL_NODE_COUNT','ykpct','newState','./requestUtils','60BiZTyZ','stateFilePath','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','failFastState.lock','_getDefaultState','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','BROWSERSTACK_BUILD_RUN_IDENTIFIER','message','catch','218244QBmcsU','FailFastManager','ocviH','writeState','vNdEh','failedTests','putFailedTests','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','env','lockFilePath','stopPolling','failFastActive',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','oUaaW','info','BROWSERSTACK_NODE_INDEX','eBvCO','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.',',\x20threshold:\x20','isCIMode','winstonLogger','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','error','HxvaR','workingDir','skUKj','rfUjB','FvTqu'];a139_0x5a0a=function(){return _0x2d6f1b;};return a139_0x5a0a();}class FailFastManager{constructor(_0x73a53f,_0x1b45d7,_0x3d840a){const _0x31fbcd=a139_0x3ce5b3,_0x523b2e={};_0x523b2e['JjiMo']=function(_0x17d25c,_0x5187a8){return _0x17d25c+_0x5187a8;},_0x523b2e[_0x31fbcd(0x13f)]=_0x31fbcd(0x176),_0x523b2e['TWhcb']=function(_0x177b19,_0x549fae){return _0x177b19||_0x549fae;},_0x523b2e[_0x31fbcd(0x110)]=_0x31fbcd(0x152),_0x523b2e[_0x31fbcd(0x137)]=_0x31fbcd(0x181),_0x523b2e[_0x31fbcd(0x12d)]=_0x31fbcd(0x160);const _0x535bca=_0x523b2e;this[_0x31fbcd(0x131)]=_0x535bca[_0x31fbcd(0x16c)](_0x73a53f,{}),this[_0x31fbcd(0x161)]=_0x1b45d7,this['projectName']=_0x3d840a,this['isCIMode']=!!(process['env'][_0x31fbcd(0x185)]&&process[_0x31fbcd(0x190)][_0x31fbcd(0x10f)]&&process[_0x31fbcd(0x190)][_0x31fbcd(0x17a)]);const _0x55e2b6=this[_0x31fbcd(0x131)][_0x31fbcd(0x118)];this['stateFilePath']=path[_0x31fbcd(0x13b)](_0x55e2b6,_0x535bca[_0x31fbcd(0x110)]),this[_0x31fbcd(0x191)]=path['join'](_0x55e2b6,_0x535bca[_0x31fbcd(0x137)]),this['failFastActiveMarkerPath']=path[_0x31fbcd(0x13b)](_0x55e2b6,_0x535bca[_0x31fbcd(0x12d)]),this['fileHelper']=new FileHelper(this[_0x31fbcd(0x131)],this[_0x31fbcd(0x17f)],this[_0x31fbcd(0x191)],this[_0x31fbcd(0x182)]()),this[_0x31fbcd(0x171)]=this[_0x31fbcd(0x182)](),this[_0x31fbcd(0x130)]=null,this[_0x31fbcd(0x113)]&&(this[_0x31fbcd(0x158)]=new Set()),this[_0x31fbcd(0x156)]()[_0x31fbcd(0x187)](_0x49ef3e=>{const _0x90716=_0x31fbcd;logger['error']('['+TAG+_0x90716(0x124)+_0x49ef3e[_0x90716(0x186)]+(_0x49ef3e[_0x90716(0x155)]?_0x535bca[_0x90716(0x142)](_0x535bca[_0x90716(0x13f)],_0x49ef3e['stack']):'')),this[_0x90716(0x171)]=this[_0x90716(0x182)]();}),this[_0x31fbcd(0x113)]&&this['startPolling'](),logger[_0x31fbcd(0x134)]('['+TAG+_0x31fbcd(0x13d)+this[_0x31fbcd(0x131)][_0x31fbcd(0x120)]+',\x20CI\x20Mode:\x20'+this[_0x31fbcd(0x113)]);}[a139_0x3ce5b3(0x182)](){const _0x450bc0={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x450bc0;}async[a139_0x3ce5b3(0x156)](){const _0x312822=a139_0x3ce5b3,_0x25e493={};_0x25e493[_0x312822(0x139)]=function(_0x220c61,_0x14fa9a){return _0x220c61+_0x14fa9a;},_0x25e493['oUaaW']=_0x312822(0x176);const _0x20ec5a=_0x25e493;if(this[_0x312822(0x113)])try{fs['existsSync'](this['failFastActiveMarkerPath'])&&(this[_0x312822(0x171)]['failFastActive']=!![],logger[_0x312822(0x134)]('['+TAG+_0x312822(0x115)));}catch(_0x816f7b){logger[_0x312822(0x116)]('['+TAG+'_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20'+_0x816f7b['message']+(_0x816f7b[_0x312822(0x155)]?_0x20ec5a['IVTji'](_0x20ec5a[_0x312822(0x195)],_0x816f7b[_0x312822(0x155)]):''));}else try{const _0x2ef38f=await this[_0x312822(0x14a)][_0x312822(0x16a)]();if(_0x2ef38f)this['state']={...this['_getDefaultState'](),..._0x2ef38f,'uniqueFailedTests':new Set(_0x2ef38f[_0x312822(0x15c)]||[])},logger['debug']('['+TAG+_0x312822(0x149));else{logger[_0x312822(0x134)]('['+TAG+_0x312822(0x13a));const _0x8ba0f5=this[_0x312822(0x182)](),_0x14c6ab={..._0x8ba0f5,'uniqueFailedTests':Array[_0x312822(0x157)](_0x8ba0f5[_0x312822(0x15c)])};await this[_0x312822(0x14a)][_0x312822(0x18b)](_0x14c6ab),this[_0x312822(0x171)]=_0x8ba0f5;}}catch(_0x1c651a){logger['debug']('['+TAG+_0x312822(0x180)+_0x1c651a['message']+(_0x1c651a['stack']?_0x20ec5a[_0x312822(0x139)](_0x20ec5a['oUaaW'],_0x1c651a[_0x312822(0x155)]):'')),this[_0x312822(0x171)]=this[_0x312822(0x182)]();}}async[a139_0x3ce5b3(0x14c)](_0x2898fe,_0x58c6cc){const _0x43c14c=a139_0x3ce5b3,_0x32b3b3={};_0x32b3b3[_0x43c14c(0x15d)]=function(_0x4a39a3,_0x3c5e5){return _0x4a39a3>_0x3c5e5;},_0x32b3b3['WeeAt']=_0x43c14c(0x125),_0x32b3b3[_0x43c14c(0x18c)]='passed',_0x32b3b3[_0x43c14c(0x15a)]=function(_0x4d7d7b,_0x12c936){return _0x4d7d7b+_0x12c936;},_0x32b3b3[_0x43c14c(0x127)]=_0x43c14c(0x176),_0x32b3b3[_0x43c14c(0x12e)]=function(_0x3db817,_0x300d34){return _0x3db817||_0x300d34;};const _0xa99f99=_0x32b3b3;if(this[_0x43c14c(0x113)])this[_0x43c14c(0x171)]['totalTests']+=0x1,_0x58c6cc&&_0xa99f99[_0x43c14c(0x15d)](_0x58c6cc[_0x43c14c(0x126)],0x0)&&(!this[_0x43c14c(0x158)]['has'](_0x2898fe)&&(await this['_sendFailedTestsToAPI'](_0x2898fe),this[_0x43c14c(0x158)][_0x43c14c(0x175)](_0x2898fe)));else try{const _0x3a6ce5={'fullName':_0x2898fe,'status':_0x58c6cc&&_0xa99f99[_0x43c14c(0x15d)](_0x58c6cc[_0x43c14c(0x126)],0x0)?_0xa99f99[_0x43c14c(0x151)]:_0xa99f99[_0x43c14c(0x18c)]},_0x3894c4=await this[_0x43c14c(0x14a)][_0x43c14c(0x12b)](_0x3a6ce5);this['state']={...this['_getDefaultState'](),..._0x3894c4[_0x43c14c(0x17c)],'uniqueFailedTests':new Set(_0x3894c4['newState'][_0x43c14c(0x15c)]||[])};}catch(_0x3aff2e){logger[_0x43c14c(0x116)]('['+TAG+_0x43c14c(0x140)+_0x3aff2e['message']+(_0x3aff2e[_0x43c14c(0x155)]?_0xa99f99[_0x43c14c(0x15a)](_0xa99f99[_0x43c14c(0x127)],_0x3aff2e['stack']):''));try{const _0x159df2=await this['fileHelper']['readState']();this['state']={...this[_0x43c14c(0x182)](),..._0xa99f99[_0x43c14c(0x12e)](_0x159df2,{}),'uniqueFailedTests':new Set(_0x159df2?_0x159df2[_0x43c14c(0x15c)]||[]:[])},logger[_0x43c14c(0x134)]('['+TAG+_0x43c14c(0x111));}catch(_0x1ec777){logger['error']('['+TAG+_0x43c14c(0x121)+_0x1ec777[_0x43c14c(0x186)]+(_0x1ec777[_0x43c14c(0x155)]?_0xa99f99[_0x43c14c(0x15a)](_0xa99f99[_0x43c14c(0x127)],_0x1ec777[_0x43c14c(0x155)]):'')),this[_0x43c14c(0x171)]=this[_0x43c14c(0x182)]();}}}async[a139_0x3ce5b3(0x135)](_0x117b4a){const _0x80b379=a139_0x3ce5b3,_0x52c123={};_0x52c123[_0x80b379(0x16d)]=function(_0x438cfd,_0x29da26){return _0x438cfd+_0x29da26;},_0x52c123[_0x80b379(0x14e)]=_0x80b379(0x176);const _0x4face6=_0x52c123;if(!this[_0x80b379(0x113)]||!_0x117b4a)return;try{logger[_0x80b379(0x134)]('['+TAG+_0x80b379(0x18f)+_0x117b4a);const _0x99f3aa={};_0x99f3aa[_0x80b379(0x161)]=this[_0x80b379(0x161)],_0x99f3aa[_0x80b379(0x164)]=this[_0x80b379(0x164)],_0x99f3aa[_0x80b379(0x18d)]=[_0x117b4a],_0x99f3aa['buildRunIdentifier']=process['env'][_0x80b379(0x185)],await RequestUtils[_0x80b379(0x18e)](_0x99f3aa);}catch(_0x4d49de){logger[_0x80b379(0x116)]('['+TAG+_0x80b379(0x13c)+_0x117b4a+'\x20to\x20API:\x20'+_0x4d49de[_0x80b379(0x186)]+(_0x4d49de[_0x80b379(0x155)]?_0x4face6[_0x80b379(0x16d)](_0x4face6[_0x80b379(0x14e)],_0x4d49de[_0x80b379(0x155)]):''));}}async[a139_0x3ce5b3(0x174)](){const _0x2f893b=a139_0x3ce5b3,_0x2b9162={};_0x2b9162[_0x2f893b(0x12a)]=function(_0x5e182e,_0xc6e2ef){return _0x5e182e===_0xc6e2ef;},_0x2b9162[_0x2f893b(0x159)]=_0x2f893b(0x154),_0x2b9162[_0x2f893b(0x13e)]=function(_0x30b7a1,_0x50c5f8){return _0x30b7a1+_0x50c5f8;},_0x2b9162[_0x2f893b(0x12c)]=_0x2f893b(0x176),_0x2b9162['vcOYD']=function(_0x222a37,_0x587033){return _0x222a37!==_0x587033;};const _0x1b3a9b=_0x2b9162;if(!this[_0x2f893b(0x113)])return 0x0;try{const _0x4f1e74={};_0x4f1e74['buildName']=this[_0x2f893b(0x161)],_0x4f1e74[_0x2f893b(0x164)]=this['projectName'],_0x4f1e74['buildRunIdentifier']=process[_0x2f893b(0x190)][_0x2f893b(0x185)];const _0x30c923=await RequestUtils['getFailedTestsCount'](_0x4f1e74);return logger[_0x2f893b(0x134)]('['+TAG+_0x2f893b(0x136)+_0x30c923),_0x1b3a9b[_0x2f893b(0x12a)](typeof _0x30c923,_0x1b3a9b[_0x2f893b(0x159)])?_0x30c923:0x0;}catch(_0xf11070){return logger['error']('['+TAG+_0x2f893b(0x11f)+_0xf11070[_0x2f893b(0x186)]+(_0xf11070['stack']?_0x1b3a9b[_0x2f893b(0x13e)](_0x1b3a9b[_0x2f893b(0x12c)],_0xf11070[_0x2f893b(0x155)]):'')),_0x1b3a9b[_0x2f893b(0x143)](this[_0x2f893b(0x171)][_0x2f893b(0x11e)],undefined)?this[_0x2f893b(0x171)]['lastAPIFailedCount']:0x0;}}async['_pollFailedTests'](){const _0x4b04e3=a139_0x3ce5b3,_0x335374={};_0x335374[_0x4b04e3(0x11c)]=function(_0x2ef75c,_0x41a768){return _0x2ef75c!==_0x41a768;},_0x335374['klIQb']=function(_0x550bdb,_0x1659a4){return _0x550bdb+_0x1659a4;},_0x335374['FvTqu']=_0x4b04e3(0x176);const _0x5f534b=_0x335374;if(!this['isCIMode'])return;try{const _0x398c1d=await this[_0x4b04e3(0x174)]();_0x5f534b[_0x4b04e3(0x11c)](_0x398c1d,this[_0x4b04e3(0x171)]['lastAPIFailedCount'])&&(logger['debug']('['+TAG+'_CI]\x20API\x20failed\x20count\x20updated:\x20'+_0x398c1d+_0x4b04e3(0x15b)+this[_0x4b04e3(0x171)][_0x4b04e3(0x11e)]+')'),this['state'][_0x4b04e3(0x11e)]=_0x398c1d);}catch(_0x4e59ff){logger[_0x4b04e3(0x116)]('['+TAG+_0x4b04e3(0x122)+_0x4e59ff['message']+(_0x4e59ff[_0x4b04e3(0x155)]?_0x5f534b[_0x4b04e3(0x144)](_0x5f534b[_0x4b04e3(0x11b)],_0x4e59ff['stack']):''));}}async[a139_0x3ce5b3(0x133)](){const _0x3cc21e=a139_0x3ce5b3,_0x552ae4={'IWmIf':function(_0x561cf6,_0x5249f8,_0x52227f){return _0x561cf6(_0x5249f8,_0x52227f);}};this['pollingInterval']&&this[_0x3cc21e(0x192)](),this[_0x3cc21e(0x113)]&&(await this['_pollFailedTests'](),this[_0x3cc21e(0x130)]=_0x552ae4['IWmIf'](setInterval,async()=>{await this['_pollFailedTests']();},POLLING_INTERVAL),logger[_0x3cc21e(0x134)]('['+TAG+'_CI]\x20Polling\x20started\x20with\x20interval:\x20'+POLLING_INTERVAL+'ms.'));}[a139_0x3ce5b3(0x192)](){const _0x5f0616=a139_0x3ce5b3,_0x31542b={'XGiEa':function(_0x1c050c,_0x1d23ad){return _0x1c050c(_0x1d23ad);}};this['pollingInterval']&&(_0x31542b[_0x5f0616(0x11d)](clearInterval,this[_0x5f0616(0x130)]),this[_0x5f0616(0x130)]=null,logger[_0x5f0616(0x134)]('['+TAG+_0x5f0616(0x148)));}async[a139_0x3ce5b3(0x172)](){const _0x4efdfc=a139_0x3ce5b3,_0x3262db={};_0x3262db[_0x4efdfc(0x153)]=function(_0xe8a667,_0x501b3e){return _0xe8a667===_0x501b3e;},_0x3262db['HxvaR']=function(_0x5a8f47,_0x163502){return _0x5a8f47===_0x163502;},_0x3262db[_0x4efdfc(0x16b)]=function(_0x1216d7,_0x4379a5){return _0x1216d7<=_0x4379a5;},_0x3262db[_0x4efdfc(0x11a)]=function(_0xd3313a,_0x248420){return _0xd3313a+_0x248420;},_0x3262db[_0x4efdfc(0x17b)]=_0x4efdfc(0x176),_0x3262db['tFECp']=function(_0x4958cc,_0x1a99ed){return _0x4958cc!==_0x1a99ed;},_0x3262db[_0x4efdfc(0x150)]=function(_0x3cee03,_0x544b7d){return _0x3cee03>=_0x544b7d;},_0x3262db[_0x4efdfc(0x119)]=function(_0xb87d9,_0x32cbda){return _0xb87d9+_0x32cbda;},_0x3262db[_0x4efdfc(0x145)]=function(_0x527b81,_0x5219bf){return _0x527b81>=_0x5219bf;};const _0x42f6ab=_0x3262db,{failureThresholdCount:_0x5503f1}=this[_0x4efdfc(0x131)];if(_0x42f6ab[_0x4efdfc(0x153)](_0x5503f1,null)||_0x42f6ab[_0x4efdfc(0x117)](_0x5503f1,undefined)||_0x42f6ab['wBZSJ'](_0x5503f1,0x0))return logger['debug']('['+TAG+_0x4efdfc(0x194)),![];if(this['isCIMode']){try{if(fs[_0x4efdfc(0x141)](this[_0x4efdfc(0x147)]))return logger[_0x4efdfc(0x134)]('['+TAG+_0x4efdfc(0x12f)),!this[_0x4efdfc(0x171)]['failFastActive']&&(this[_0x4efdfc(0x171)][_0x4efdfc(0x193)]=!![]),this[_0x4efdfc(0x192)](),!![];}catch(_0x3daa36){logger[_0x4efdfc(0x116)]('['+TAG+_0x4efdfc(0x178)+_0x3daa36[_0x4efdfc(0x186)]+(_0x3daa36[_0x4efdfc(0x155)]?_0x42f6ab[_0x4efdfc(0x11a)](_0x42f6ab[_0x4efdfc(0x17b)],_0x3daa36[_0x4efdfc(0x155)]):''));}const _0x3c0997=_0x42f6ab[_0x4efdfc(0x179)](this[_0x4efdfc(0x171)][_0x4efdfc(0x11e)],undefined)?this[_0x4efdfc(0x171)]['lastAPIFailedCount']:0x0;if(_0x42f6ab[_0x4efdfc(0x150)](_0x3c0997,_0x5503f1)){logger[_0x4efdfc(0x196)]('['+TAG+_0x4efdfc(0x177)+_0x3c0997+',\x20threshold:\x20'+_0x5503f1+'.');try{fs[_0x4efdfc(0x14f)](this[_0x4efdfc(0x147)],new Date()[_0x4efdfc(0x15e)]()),logger[_0x4efdfc(0x134)]('['+TAG+_0x4efdfc(0x184)+this[_0x4efdfc(0x147)]),this[_0x4efdfc(0x171)]['failFastActive']=!![];}catch(_0x5d7153){logger[_0x4efdfc(0x116)]('['+TAG+_0x4efdfc(0x166)+_0x5d7153[_0x4efdfc(0x186)]+(_0x5d7153[_0x4efdfc(0x155)]?_0x42f6ab[_0x4efdfc(0x119)](_0x42f6ab[_0x4efdfc(0x17b)],_0x5d7153[_0x4efdfc(0x155)]):''));}return this[_0x4efdfc(0x192)](),!![];}}else{let _0x410969;try{_0x410969=await this[_0x4efdfc(0x14a)][_0x4efdfc(0x16a)]();if(!_0x410969)return logger['warn']('['+TAG+'_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.'),![];}catch(_0x2042e9){return logger['error']('['+TAG+'_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20'+_0x2042e9['message']+(_0x2042e9[_0x4efdfc(0x155)]?_0x42f6ab[_0x4efdfc(0x119)](_0x42f6ab[_0x4efdfc(0x17b)],_0x2042e9[_0x4efdfc(0x155)]):'')),![];}this[_0x4efdfc(0x171)]={...this[_0x4efdfc(0x182)](),..._0x410969,'uniqueFailedTests':new Set(_0x410969[_0x4efdfc(0x15c)]||[])};if(this['state'][_0x4efdfc(0x193)])return logger[_0x4efdfc(0x134)]('['+TAG+_0x4efdfc(0x169)),!![];const _0x16ee75=this[_0x4efdfc(0x171)][_0x4efdfc(0x15c)],_0x326770=_0x16ee75['size'];if(_0x42f6ab['WgTPM'](_0x326770,_0x5503f1)){try{logger[_0x4efdfc(0x196)]('['+TAG+_0x4efdfc(0x123)+_0x326770+_0x4efdfc(0x112)+_0x5503f1+'.'),this['state'][_0x4efdfc(0x193)]=!![];}catch(_0x36d294){logger[_0x4efdfc(0x116)]('['+TAG+_0x4efdfc(0x183)+_0x36d294[_0x4efdfc(0x186)]+(_0x36d294['stack']?_0x42f6ab[_0x4efdfc(0x11a)](_0x42f6ab['ykpct'],_0x36d294['stack']):''));}return!![];}}return![];}async[a139_0x3ce5b3(0x170)](){const _0x560e35=a139_0x3ce5b3,_0x5040d0={};_0x5040d0[_0x560e35(0x18a)]=function(_0x1d9e52,_0x50fc9a){return _0x1d9e52+_0x50fc9a;},_0x5040d0[_0x560e35(0x163)]=_0x560e35(0x176);const _0x42ed3f=_0x5040d0;this[_0x560e35(0x192)]();if(this[_0x560e35(0x113)])logger[_0x560e35(0x134)]('['+TAG+_0x560e35(0x14d));else try{const _0x261553={...this[_0x560e35(0x171)],'uniqueFailedTests':Array[_0x560e35(0x157)](this[_0x560e35(0x171)]['uniqueFailedTests']||new Set())};await this[_0x560e35(0x14a)][_0x560e35(0x18b)](_0x261553),logger[_0x560e35(0x134)]('['+TAG+_0x560e35(0x162));}catch(_0xebeb11){logger['error']('['+TAG+_0x560e35(0x14b)+_0xebeb11[_0x560e35(0x186)]+(_0xebeb11[_0x560e35(0x155)]?_0x42ed3f[_0x560e35(0x18a)](_0x42ed3f[_0x560e35(0x163)],_0xebeb11[_0x560e35(0x155)]):''));}}}module[a139_0x3ce5b3(0x167)]=FailFastManager;
|
|
1
|
+
const a139_0x3d7093=a139_0x137c;function a139_0x27c0(){const _0x220d93=['dlxBk','xluos','length','LpHIs','cMMvZ','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','1100698tGYlRP','_CI]\x20Error\x20during\x20polling\x20logic:\x20','TRVLs','evijV','recordTestResult','failFast.active','_fetchAPIFailedCount','bmoZV','IGibA','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','\x20(was\x20','getFailedTestsCount','existsSync','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','putFailedTests','./requestUtils','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','buildRunIdentifier','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','THTFk','LXlPp','vlPbq','join','vPYXR',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','wUqMq','BROWSERSTACK_TOTAL_NODE_COUNT','8LAAGdG','cleanup','_getDefaultState','buildName','winstonLogger','BROWSERSTACK_NODE_INDEX','nwmTU','_CI]\x20API\x20failed\x20count\x20updated:\x20','projectName','../logger','uniqueFailedTests','onTestDone','lastAPIFailedCount','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','\x0aStack:\x20','env','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','ms.','NaBDT','NjfqB','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','size','mrnvA','_sendFailedTestsToAPI','newState','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','passed','gZIMA','Vmzeq','uMLhq','1SwIJck','debug','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','state','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','warn','11FzcZef','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','failedTests','failureThresholdCount','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','shouldFailFast','catch','vxytD','fileHelper','gkgxc','totalTests','BXvtd','8118477Uiamvo','failFastActiveMarkerPath','OlUer','exports','failFastActive','info',']\x20Polling\x20stopped.','number','261363lCxtkr','29450900EFZjyi','workingDir','VfpwH','lockFilePath','6404069edwWnB','HeJye','egGLp','QDkXd','message','6KGulam','error','isCIMode','failed','stack','_Local]\x20State\x20initialized\x20from\x20file.','VcIrQ','qdFmG','stopPolling','BROWSERSTACK_BUILD_RUN_IDENTIFIER','failFastConfig','PqZlw','_CI]\x20Error\x20sending\x20failed\x20test\x20','3610930KQPCmJ',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','from','failFastState.json','writeState','startPolling','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','readState','XrlGB','HSAWZ','path','2354976rPXDuQ','failFastState.lock','stateFilePath',',\x20threshold:\x20','reportedFailuresToAPI','pollingInterval','rQiGC','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','_pollFailedTests','_initializeStateFromFile'];a139_0x27c0=function(){return _0x220d93;};return a139_0x27c0();}function a139_0x137c(_0x5f2ef7,_0x235c3a){const _0x27c090=a139_0x27c0();return a139_0x137c=function(_0x137c39,_0x3e39c7){_0x137c39=_0x137c39-0xa0;let _0x42f9e1=_0x27c090[_0x137c39];return _0x42f9e1;},a139_0x137c(_0x5f2ef7,_0x235c3a);}(function(_0x530550,_0x3e312b){const _0x33917a=a139_0x137c,_0x2517cb=_0x530550();while(!![]){try{const _0x4e9d0c=parseInt(_0x33917a(0xd8))/0x1*(-parseInt(_0x33917a(0x125))/0x2)+parseInt(_0x33917a(0xf2))/0x3+parseInt(_0x33917a(0x115))/0x4+parseInt(_0x33917a(0x109))/0x5*(-parseInt(_0x33917a(0xfc))/0x6)+parseInt(_0x33917a(0xf7))/0x7*(-parseInt(_0x33917a(0xba))/0x8)+-parseInt(_0x33917a(0xea))/0x9+-parseInt(_0x33917a(0xf3))/0xa*(-parseInt(_0x33917a(0xde))/0xb);if(_0x4e9d0c===_0x3e312b)break;else _0x2517cb['push'](_0x2517cb['shift']());}catch(_0x10a616){_0x2517cb['push'](_0x2517cb['shift']());}}}(a139_0x27c0,0x81c2c));const fs=require('fs'),path=require(a139_0x3d7093(0x114)),FileHelper=require('./fileHelper'),RequestUtils=require(a139_0x3d7093(0xad)),logger=require(a139_0x3d7093(0xc3))[a139_0x3d7093(0xbe)],POLLING_INTERVAL=0x2710,TAG='FailFastManager';class FailFastManager{constructor(_0x39509a,_0xd4b8f,_0x594d9d){const _0x3606b2=a139_0x3d7093,_0x1ba2d1={};_0x1ba2d1[_0x3606b2(0xc0)]=function(_0x46ef7c,_0x23a390){return _0x46ef7c+_0x23a390;},_0x1ba2d1[_0x3606b2(0x113)]=_0x3606b2(0xc8),_0x1ba2d1[_0x3606b2(0xa5)]=function(_0x27d581,_0x196f07){return _0x27d581||_0x196f07;},_0x1ba2d1[_0x3606b2(0xd7)]=_0x3606b2(0x10d),_0x1ba2d1[_0x3606b2(0xf8)]=_0x3606b2(0x116),_0x1ba2d1[_0x3606b2(0xa1)]=_0x3606b2(0xa3);const _0x1ddac9=_0x1ba2d1;this['failFastConfig']=_0x1ddac9[_0x3606b2(0xa5)](_0x39509a,{}),this[_0x3606b2(0xbd)]=_0xd4b8f,this[_0x3606b2(0xc2)]=_0x594d9d,this[_0x3606b2(0xfe)]=!!(process['env'][_0x3606b2(0x105)]&&process[_0x3606b2(0xc9)][_0x3606b2(0xbf)]&&process[_0x3606b2(0xc9)][_0x3606b2(0xb9)]);const _0x246218=this[_0x3606b2(0x106)][_0x3606b2(0xf4)];this[_0x3606b2(0x117)]=path[_0x3606b2(0xb5)](_0x246218,_0x1ddac9[_0x3606b2(0xd7)]),this[_0x3606b2(0xf6)]=path[_0x3606b2(0xb5)](_0x246218,_0x1ddac9['HeJye']),this[_0x3606b2(0xeb)]=path[_0x3606b2(0xb5)](_0x246218,_0x1ddac9[_0x3606b2(0xa1)]),this[_0x3606b2(0xe6)]=new FileHelper(this[_0x3606b2(0x106)],this[_0x3606b2(0x117)],this[_0x3606b2(0xf6)],this['_getDefaultState']()),this[_0x3606b2(0xdb)]=this['_getDefaultState'](),this['pollingInterval']=null,this[_0x3606b2(0xfe)]&&(this['reportedFailuresToAPI']=new Set()),this[_0x3606b2(0x11e)]()[_0x3606b2(0xe4)](_0x2116c2=>{const _0xe2b80f=_0x3606b2;logger['error']('['+TAG+_0xe2b80f(0xb7)+_0x2116c2[_0xe2b80f(0xfb)]+(_0x2116c2[_0xe2b80f(0x100)]?_0x1ddac9['nwmTU'](_0x1ddac9[_0xe2b80f(0x113)],_0x2116c2['stack']):'')),this[_0xe2b80f(0xdb)]=this[_0xe2b80f(0xbc)]();}),this[_0x3606b2(0xfe)]&&this['startPolling'](),logger[_0x3606b2(0xd9)]('['+TAG+']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20'+this[_0x3606b2(0x106)][_0x3606b2(0xe1)]+',\x20CI\x20Mode:\x20'+this[_0x3606b2(0xfe)]);}[a139_0x3d7093(0xbc)](){const _0x725482={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x725482;}async['_initializeStateFromFile'](){const _0x27f452=a139_0x3d7093,_0x1ab250={};_0x1ab250[_0x27f452(0xa6)]=function(_0x56e424,_0x19e43a){return _0x56e424+_0x19e43a;},_0x1ab250[_0x27f452(0x103)]=_0x27f452(0xc8);const _0x244230=_0x1ab250;if(this['isCIMode'])try{fs[_0x27f452(0xaa)](this[_0x27f452(0xeb)])&&(this[_0x27f452(0xdb)][_0x27f452(0xee)]=!![],logger[_0x27f452(0xd9)]('['+TAG+_0x27f452(0xd3)));}catch(_0x242f11){logger[_0x27f452(0xfd)]('['+TAG+_0x27f452(0xe2)+_0x242f11[_0x27f452(0xfb)]+(_0x242f11[_0x27f452(0x100)]?_0x244230['IGibA'](_0x244230[_0x27f452(0x103)],_0x242f11['stack']):''));}else try{const _0xcd488d=await this[_0x27f452(0xe6)]['readState']();if(_0xcd488d)this[_0x27f452(0xdb)]={...this['_getDefaultState'](),..._0xcd488d,'uniqueFailedTests':new Set(_0xcd488d['uniqueFailedTests']||[])},logger['debug']('['+TAG+_0x27f452(0x101));else{logger[_0x27f452(0xd9)]('['+TAG+_0x27f452(0xa7));const _0x5d06e6=this[_0x27f452(0xbc)](),_0x1f91e9={..._0x5d06e6,'uniqueFailedTests':Array[_0x27f452(0x10c)](_0x5d06e6['uniqueFailedTests'])};await this['fileHelper']['writeState'](_0x1f91e9),this['state']=_0x5d06e6;}}catch(_0x33acae){logger[_0x27f452(0xd9)]('['+TAG+_0x27f452(0xdf)+_0x33acae[_0x27f452(0xfb)]+(_0x33acae[_0x27f452(0x100)]?_0x244230[_0x27f452(0xa6)](_0x244230[_0x27f452(0x103)],_0x33acae[_0x27f452(0x100)]):'')),this[_0x27f452(0xdb)]=this[_0x27f452(0xbc)]();}}async[a139_0x3d7093(0xc5)](_0x5aa78b,_0x9b5895){const _0x44ecfa=a139_0x3d7093,_0x42a4d0={};_0x42a4d0[_0x44ecfa(0xfa)]=function(_0x13a8c0,_0x242bd0){return _0x13a8c0>_0x242bd0;},_0x42a4d0[_0x44ecfa(0xf9)]=_0x44ecfa(0xff),_0x42a4d0[_0x44ecfa(0xec)]=_0x44ecfa(0xd4),_0x42a4d0[_0x44ecfa(0x11f)]=function(_0x5789de,_0x5d2a03){return _0x5789de+_0x5d2a03;},_0x42a4d0[_0x44ecfa(0x123)]='\x0aStack:\x20',_0x42a4d0['rQiGC']=function(_0x1761e1,_0x2005f3){return _0x1761e1||_0x2005f3;},_0x42a4d0[_0x44ecfa(0xcd)]=function(_0x443a0d,_0x5cc34d){return _0x443a0d+_0x5cc34d;};const _0x4cf12b=_0x42a4d0;if(this[_0x44ecfa(0xfe)])this[_0x44ecfa(0xdb)][_0x44ecfa(0xe8)]+=0x1,_0x9b5895&&_0x4cf12b[_0x44ecfa(0xfa)](_0x9b5895[_0x44ecfa(0x121)],0x0)&&(!this[_0x44ecfa(0x119)]['has'](_0x5aa78b)&&(await this[_0x44ecfa(0xd1)](_0x5aa78b),this[_0x44ecfa(0x119)]['add'](_0x5aa78b)));else try{const _0xaf7716={'fullName':_0x5aa78b,'status':_0x9b5895&&_0x4cf12b[_0x44ecfa(0xfa)](_0x9b5895[_0x44ecfa(0x121)],0x0)?_0x4cf12b[_0x44ecfa(0xf9)]:_0x4cf12b[_0x44ecfa(0xec)]},_0x64e0=await this[_0x44ecfa(0xe6)][_0x44ecfa(0xa2)](_0xaf7716);this['state']={...this[_0x44ecfa(0xbc)](),..._0x64e0[_0x44ecfa(0xd2)],'uniqueFailedTests':new Set(_0x64e0['newState'][_0x44ecfa(0xc4)]||[])};}catch(_0x12a9b1){logger['error']('['+TAG+'_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20'+_0x12a9b1[_0x44ecfa(0xfb)]+(_0x12a9b1[_0x44ecfa(0x100)]?_0x4cf12b[_0x44ecfa(0x11f)](_0x4cf12b[_0x44ecfa(0x123)],_0x12a9b1[_0x44ecfa(0x100)]):''));try{const _0x3801d2=await this['fileHelper'][_0x44ecfa(0x111)]();this['state']={...this[_0x44ecfa(0xbc)](),..._0x4cf12b[_0x44ecfa(0x11b)](_0x3801d2,{}),'uniqueFailedTests':new Set(_0x3801d2?_0x3801d2[_0x44ecfa(0xc4)]||[]:[])},logger[_0x44ecfa(0xd9)]('['+TAG+_0x44ecfa(0xdc));}catch(_0x5a7dad){logger[_0x44ecfa(0xfd)]('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0x5a7dad[_0x44ecfa(0xfb)]+(_0x5a7dad['stack']?_0x4cf12b[_0x44ecfa(0xcd)](_0x4cf12b[_0x44ecfa(0x123)],_0x5a7dad[_0x44ecfa(0x100)]):'')),this[_0x44ecfa(0xdb)]=this['_getDefaultState']();}}}async['_sendFailedTestsToAPI'](_0xf7209e){const _0x4fbf5f=a139_0x3d7093,_0x568423={};_0x568423[_0x4fbf5f(0xb8)]=function(_0x2b9591,_0x5bc0c3){return _0x2b9591+_0x5bc0c3;},_0x568423[_0x4fbf5f(0xa0)]=_0x4fbf5f(0xc8);const _0x159bb9=_0x568423;if(!this['isCIMode']||!_0xf7209e)return;try{logger[_0x4fbf5f(0xd9)]('['+TAG+_0x4fbf5f(0x110)+_0xf7209e);const _0x4fe0c2={};_0x4fe0c2[_0x4fbf5f(0xbd)]=this[_0x4fbf5f(0xbd)],_0x4fe0c2[_0x4fbf5f(0xc2)]=this['projectName'],_0x4fe0c2[_0x4fbf5f(0xe0)]=[_0xf7209e],_0x4fe0c2[_0x4fbf5f(0xaf)]=process[_0x4fbf5f(0xc9)][_0x4fbf5f(0x105)],await RequestUtils[_0x4fbf5f(0xac)](_0x4fe0c2);}catch(_0x350c05){logger[_0x4fbf5f(0xfd)]('['+TAG+_0x4fbf5f(0x108)+_0xf7209e+'\x20to\x20API:\x20'+_0x350c05[_0x4fbf5f(0xfb)]+(_0x350c05[_0x4fbf5f(0x100)]?_0x159bb9[_0x4fbf5f(0xb8)](_0x159bb9[_0x4fbf5f(0xa0)],_0x350c05[_0x4fbf5f(0x100)]):''));}}async['_fetchAPIFailedCount'](){const _0x4ed84d=a139_0x3d7093,_0x2f0663={};_0x2f0663[_0x4ed84d(0xe5)]=function(_0x194eff,_0x294210){return _0x194eff===_0x294210;},_0x2f0663[_0x4ed84d(0xd5)]=_0x4ed84d(0xf1),_0x2f0663[_0x4ed84d(0xb6)]=function(_0x237bf2,_0x4ca42f){return _0x237bf2+_0x4ca42f;},_0x2f0663[_0x4ed84d(0x107)]=_0x4ed84d(0xc8),_0x2f0663['vlPbq']=function(_0x162382,_0x3fdbcf){return _0x162382!==_0x3fdbcf;};const _0x28ebad=_0x2f0663;if(!this[_0x4ed84d(0xfe)])return 0x0;try{const _0x2afb9e={};_0x2afb9e[_0x4ed84d(0xbd)]=this[_0x4ed84d(0xbd)],_0x2afb9e[_0x4ed84d(0xc2)]=this[_0x4ed84d(0xc2)],_0x2afb9e[_0x4ed84d(0xaf)]=process[_0x4ed84d(0xc9)][_0x4ed84d(0x105)];const _0x20cd18=await RequestUtils[_0x4ed84d(0xa9)](_0x2afb9e);return logger['debug']('['+TAG+_0x4ed84d(0xae)+_0x20cd18),_0x28ebad['vxytD'](typeof _0x20cd18,_0x28ebad[_0x4ed84d(0xd5)])?_0x20cd18:0x0;}catch(_0x1cd31d){return logger[_0x4ed84d(0xfd)]('['+TAG+'_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20'+_0x1cd31d[_0x4ed84d(0xfb)]+(_0x1cd31d[_0x4ed84d(0x100)]?_0x28ebad[_0x4ed84d(0xb6)](_0x28ebad[_0x4ed84d(0x107)],_0x1cd31d[_0x4ed84d(0x100)]):'')),_0x28ebad[_0x4ed84d(0xb4)](this[_0x4ed84d(0xdb)]['lastAPIFailedCount'],undefined)?this[_0x4ed84d(0xdb)][_0x4ed84d(0xc6)]:0x0;}}async[a139_0x3d7093(0x11d)](){const _0x10cc8b=a139_0x3d7093,_0x446777={};_0x446777['XrlGB']=function(_0x1a2e43,_0x13fb0b){return _0x1a2e43!==_0x13fb0b;},_0x446777['rinJM']=function(_0x4b57e2,_0x2dc2f4){return _0x4b57e2+_0x2dc2f4;},_0x446777[_0x10cc8b(0x122)]=_0x10cc8b(0xc8);const _0x5b7780=_0x446777;if(!this['isCIMode'])return;try{const _0x263b96=await this[_0x10cc8b(0xa4)]();_0x5b7780[_0x10cc8b(0x112)](_0x263b96,this[_0x10cc8b(0xdb)][_0x10cc8b(0xc6)])&&(logger[_0x10cc8b(0xd9)]('['+TAG+_0x10cc8b(0xc1)+_0x263b96+_0x10cc8b(0xa8)+this[_0x10cc8b(0xdb)]['lastAPIFailedCount']+')'),this[_0x10cc8b(0xdb)][_0x10cc8b(0xc6)]=_0x263b96);}catch(_0x2f7adf){logger[_0x10cc8b(0xfd)]('['+TAG+_0x10cc8b(0x126)+_0x2f7adf[_0x10cc8b(0xfb)]+(_0x2f7adf['stack']?_0x5b7780['rinJM'](_0x5b7780[_0x10cc8b(0x122)],_0x2f7adf[_0x10cc8b(0x100)]):''));}}async[a139_0x3d7093(0x10f)](){const _0x30315f=a139_0x3d7093,_0x170854={'BXvtd':function(_0x57a935,_0x2bdeef,_0x372675){return _0x57a935(_0x2bdeef,_0x372675);}};this[_0x30315f(0x11a)]&&this[_0x30315f(0x104)](),this['isCIMode']&&(await this[_0x30315f(0x11d)](),this['pollingInterval']=_0x170854[_0x30315f(0xe9)](setInterval,async()=>{const _0x224b65=_0x30315f;await this[_0x224b65(0x11d)]();},POLLING_INTERVAL),logger['debug']('['+TAG+'_CI]\x20Polling\x20started\x20with\x20interval:\x20'+POLLING_INTERVAL+_0x30315f(0xcb)));}['stopPolling'](){const _0x47046b=a139_0x3d7093,_0xa1c4b7={'THTFk':function(_0x463907,_0x590dc0){return _0x463907(_0x590dc0);}};this[_0x47046b(0x11a)]&&(_0xa1c4b7[_0x47046b(0xb2)](clearInterval,this['pollingInterval']),this['pollingInterval']=null,logger[_0x47046b(0xd9)]('['+TAG+_0x47046b(0xf0)));}async[a139_0x3d7093(0xe3)](){const _0x52add3=a139_0x3d7093,_0x452b57={};_0x452b57['gkgxc']=function(_0x26aa1e,_0x18c491){return _0x26aa1e===_0x18c491;},_0x452b57[_0x52add3(0xb3)]=function(_0x2912ce,_0x43401b){return _0x2912ce<=_0x43401b;},_0x452b57[_0x52add3(0xd0)]=function(_0x579fc9,_0x1d6d8d){return _0x579fc9+_0x1d6d8d;},_0x452b57[_0x52add3(0x102)]=_0x52add3(0xc8),_0x452b57[_0x52add3(0xcc)]=function(_0x53efc6,_0x2b5cfa){return _0x53efc6!==_0x2b5cfa;},_0x452b57[_0x52add3(0xf5)]=function(_0x2817a3,_0x22a5d4){return _0x2817a3>=_0x22a5d4;},_0x452b57['gEpLr']=function(_0x459756,_0x274958){return _0x459756+_0x274958;};const _0x4643c9=_0x452b57,{failureThresholdCount:_0x34720d}=this['failFastConfig'];if(_0x4643c9[_0x52add3(0xe7)](_0x34720d,null)||_0x4643c9[_0x52add3(0xe7)](_0x34720d,undefined)||_0x4643c9[_0x52add3(0xb3)](_0x34720d,0x0))return logger[_0x52add3(0xd9)]('['+TAG+_0x52add3(0x10a)),![];if(this[_0x52add3(0xfe)]){try{if(fs[_0x52add3(0xaa)](this['failFastActiveMarkerPath']))return logger[_0x52add3(0xd9)]('['+TAG+_0x52add3(0xce)),!this[_0x52add3(0xdb)]['failFastActive']&&(this[_0x52add3(0xdb)][_0x52add3(0xee)]=!![]),this[_0x52add3(0x104)](),!![];}catch(_0x2a8e8e){logger[_0x52add3(0xfd)]('['+TAG+_0x52add3(0xe2)+_0x2a8e8e['message']+(_0x2a8e8e['stack']?_0x4643c9['mrnvA'](_0x4643c9[_0x52add3(0x102)],_0x2a8e8e['stack']):''));}const _0x365478=_0x4643c9[_0x52add3(0xcc)](this[_0x52add3(0xdb)]['lastAPIFailedCount'],undefined)?this[_0x52add3(0xdb)][_0x52add3(0xc6)]:0x0;if(_0x4643c9[_0x52add3(0xf5)](_0x365478,_0x34720d)){logger[_0x52add3(0xef)]('['+TAG+_0x52add3(0xb0)+_0x365478+_0x52add3(0x118)+_0x34720d+'.');try{fs['writeFileSync'](this[_0x52add3(0xeb)],new Date()['toISOString']()),logger[_0x52add3(0xd9)]('['+TAG+_0x52add3(0x124)+this[_0x52add3(0xeb)]),this[_0x52add3(0xdb)][_0x52add3(0xee)]=!![];}catch(_0x24cf21){logger[_0x52add3(0xfd)]('['+TAG+_0x52add3(0x10b)+_0x24cf21['message']+(_0x24cf21[_0x52add3(0x100)]?_0x4643c9[_0x52add3(0xd0)](_0x4643c9[_0x52add3(0x102)],_0x24cf21[_0x52add3(0x100)]):''));}return this[_0x52add3(0x104)](),!![];}}else{let _0x4f478b;try{_0x4f478b=await this['fileHelper'][_0x52add3(0x111)]();if(!_0x4f478b)return logger[_0x52add3(0xdd)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.'),![];}catch(_0x11f563){return logger[_0x52add3(0xfd)]('['+TAG+_0x52add3(0xab)+_0x11f563[_0x52add3(0xfb)]+(_0x11f563['stack']?_0x4643c9['gEpLr'](_0x4643c9['VcIrQ'],_0x11f563['stack']):'')),![];}this[_0x52add3(0xdb)]={...this[_0x52add3(0xbc)](),..._0x4f478b,'uniqueFailedTests':new Set(_0x4f478b[_0x52add3(0xc4)]||[])};if(this[_0x52add3(0xdb)][_0x52add3(0xee)])return logger[_0x52add3(0xd9)]('['+TAG+_0x52add3(0xb1)),!![];const _0x220e1c=this[_0x52add3(0xdb)][_0x52add3(0xc4)],_0x1b3aa1=_0x220e1c[_0x52add3(0xcf)];if(_0x4643c9[_0x52add3(0xf5)](_0x1b3aa1,_0x34720d)){try{logger[_0x52add3(0xef)]('['+TAG+'_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x1b3aa1+_0x52add3(0x118)+_0x34720d+'.'),this[_0x52add3(0xdb)][_0x52add3(0xee)]=!![];}catch(_0x22e590){logger['error']('['+TAG+_0x52add3(0xca)+_0x22e590[_0x52add3(0xfb)]+(_0x22e590[_0x52add3(0x100)]?_0x4643c9[_0x52add3(0xd0)](_0x4643c9['VcIrQ'],_0x22e590[_0x52add3(0x100)]):''));}return!![];}}return![];}async[a139_0x3d7093(0xbb)](){const _0x1b296e=a139_0x3d7093,_0x5462a6={};_0x5462a6[_0x1b296e(0xd6)]=function(_0x586146,_0x4a75db){return _0x586146+_0x4a75db;},_0x5462a6['xluos']=_0x1b296e(0xc8);const _0x4c3ce6=_0x5462a6;this[_0x1b296e(0x104)]();if(this[_0x1b296e(0xfe)])logger[_0x1b296e(0xd9)]('['+TAG+_0x1b296e(0xc7));else try{const _0xc6a234={...this[_0x1b296e(0xdb)],'uniqueFailedTests':Array[_0x1b296e(0x10c)](this[_0x1b296e(0xdb)][_0x1b296e(0xc4)]||new Set())};await this[_0x1b296e(0xe6)][_0x1b296e(0x10e)](_0xc6a234),logger[_0x1b296e(0xd9)]('['+TAG+_0x1b296e(0xda));}catch(_0x20f1e0){logger[_0x1b296e(0xfd)]('['+TAG+_0x1b296e(0x11c)+_0x20f1e0[_0x1b296e(0xfb)]+(_0x20f1e0['stack']?_0x4c3ce6[_0x1b296e(0xd6)](_0x4c3ce6[_0x1b296e(0x120)],_0x20f1e0[_0x1b296e(0x100)]):''));}}}module[a139_0x3d7093(0xed)]=FailFastManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a140_0x43a8aa=a140_0x59ff;function a140_0x283c(){const _0x4b2433=['vzZYk','5415256WOmYAI','1583264WpKsbx','isArray',']\x20Error\x20reading\x20state\x20file:\x20','readFileSync',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','stringify','parse',']\x20Error\x20writing\x20state\x20file:\x20','totalTests','warn','439952kVaeDU','NIwbH','3|1|4|0|2','CZByn','2778IcYbzA','message','defaultState','readState','has','WuDvM','stateFilePath','lastAPIFailedCount','258ViSHJk','21172302arOHub','failedTests','fullName','from',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','lockFilePath','utf8','isNewFailure','failed','vuXEf','unlinkSync','703611icqpiN','recordTestResult','ycohq','error','AezTk','stack','closeSync','releaseLock',']\x20Error\x20releasing\x20lock:\x20','writeFileSync','1318EhQkAj','EEXIST','uniqueFailedTests','FailFastFileHelper','123220qrurac','writeState','UNvSu','acquireLock'];a140_0x283c=function(){return _0x4b2433;};return a140_0x283c();}(function(_0x251e15,_0xd14e96){const _0x14660f=a140_0x59ff,_0x5d6003=_0x251e15();while(!![]){try{const _0x42755f=parseInt(_0x14660f(0x13f))/0x1+-parseInt(_0x14660f(0x149))/0x2*(parseInt(_0x14660f(0x161))/0x3)+-parseInt(_0x14660f(0x15d))/0x4+parseInt(_0x14660f(0x14d))/0x5*(-parseInt(_0x14660f(0x133))/0x6)+-parseInt(_0x14660f(0x152))/0x7+parseInt(_0x14660f(0x153))/0x8+parseInt(_0x14660f(0x134))/0x9;if(_0x42755f===_0xd14e96)break;else _0x5d6003['push'](_0x5d6003['shift']());}catch(_0x289225){_0x5d6003['push'](_0x5d6003['shift']());}}}(a140_0x283c,0xab03b));function a140_0x59ff(_0x12f854,_0x10a7e4){const _0x283c8c=a140_0x283c();return a140_0x59ff=function(_0x59ffe8,_0x38603d){_0x59ffe8=_0x59ffe8-0x12d;let _0x51249d=_0x283c8c[_0x59ffe8];return _0x51249d;},a140_0x59ff(_0x12f854,_0x10a7e4);}const fs=require('fs'),logger=require('../logger')['winstonLogger'],TAG=a140_0x43a8aa(0x14c);class FileHelper{constructor(_0x36636c,_0x296770,_0x4d5640,_0x375820){const _0x5c9a7f=a140_0x43a8aa,_0x118976={};_0x118976['AezTk']=_0x5c9a7f(0x15f),_0x118976[_0x5c9a7f(0x15e)]=_0x5c9a7f(0x13a);const _0x5211df=_0x118976,_0x2ead44=_0x5211df[_0x5c9a7f(0x143)]['split']('|');let _0x3b9c4d=0x0;while(!![]){switch(_0x2ead44[_0x3b9c4d++]){case'0':this[_0x5c9a7f(0x12d)]=_0x375820;continue;case'1':this[_0x5c9a7f(0x131)]=_0x296770;continue;case'2':if(!fs['existsSync'](this[_0x5c9a7f(0x131)]))try{fs['writeFileSync'](this[_0x5c9a7f(0x131)],'{}',_0x5211df['NIwbH']);}catch(_0x3e2819){logger[_0x5c9a7f(0x142)]('['+TAG+']\x20Error\x20creating\x20state\x20file:\x20'+_0x3e2819['message']+'\x20'+_0x3e2819[_0x5c9a7f(0x144)]);}continue;case'3':this['failFastConfig']=_0x36636c;continue;case'4':this[_0x5c9a7f(0x139)]=_0x4d5640;continue;}break;}}async[a140_0x43a8aa(0x150)](){const _0xe07022=a140_0x43a8aa,_0x67da32={};_0x67da32['encqq']=function(_0x1b18e2,_0x47e277){return _0x1b18e2===_0x47e277;},_0x67da32[_0xe07022(0x151)]=_0xe07022(0x14a);const _0x51530a=_0x67da32;let _0x237723;try{return _0x237723=fs['openSync'](this[_0xe07022(0x139)],'wx'),_0x237723;}catch(_0x76e235){if(_0x51530a['encqq'](_0x76e235['code'],_0x51530a[_0xe07022(0x151)]))return null;throw _0x76e235;}}async['releaseLock'](_0x47853b){const _0x18bb0=a140_0x43a8aa;if(_0x47853b)try{fs[_0x18bb0(0x145)](_0x47853b),fs[_0x18bb0(0x13e)](this[_0x18bb0(0x139)]);}catch(_0x452098){logger['error']('['+TAG+_0x18bb0(0x147)+_0x452098[_0x18bb0(0x162)]+'\x20'+_0x452098[_0x18bb0(0x144)]);}}[a140_0x43a8aa(0x12e)](){const _0x6bc2f7=a140_0x43a8aa,_0x52dead={};_0x52dead[_0x6bc2f7(0x13d)]='utf8';const _0x1694f1=_0x52dead;try{const _0x3db3b9=fs[_0x6bc2f7(0x156)](this[_0x6bc2f7(0x131)],_0x1694f1[_0x6bc2f7(0x13d)]);return JSON[_0x6bc2f7(0x159)](_0x3db3b9);}catch(_0xc4c5ea){return logger[_0x6bc2f7(0x142)]('['+TAG+_0x6bc2f7(0x155)+_0xc4c5ea[_0x6bc2f7(0x162)]+'\x20'+_0xc4c5ea[_0x6bc2f7(0x144)]),null;}}async[a140_0x43a8aa(0x14e)](_0x251a17){const _0x2f3bff=a140_0x43a8aa,_0x50cdea={..._0x251a17,'uniqueFailedTests':Array[_0x2f3bff(0x154)](_0x251a17[_0x2f3bff(0x14b)])?_0x251a17[_0x2f3bff(0x14b)]:Array[_0x2f3bff(0x137)](_0x251a17['uniqueFailedTests']||[])};try{fs[_0x2f3bff(0x148)](this['stateFilePath'],JSON['stringify'](_0x50cdea,null,0x2));}catch(_0x113fd3){logger[_0x2f3bff(0x142)]('['+TAG+_0x2f3bff(0x15a)+_0x113fd3['message']+'\x20'+_0x113fd3[_0x2f3bff(0x144)]);throw _0x113fd3;}}async[a140_0x43a8aa(0x140)](_0x4d4d15,_0x3fd42a){const _0x347c27=a140_0x43a8aa,_0x335352={};_0x335352[_0x347c27(0x14f)]=function(_0x327b41,_0x4aa905){return _0x327b41!==_0x4aa905;},_0x335352[_0x347c27(0x141)]='function',_0x335352['WuDvM']=function(_0x4c464b,_0x5065d0){return _0x4c464b===_0x5065d0;},_0x335352['CZByn']=_0x347c27(0x13c);const _0x1cdb60=_0x335352,_0x54042f=await this['acquireLock']();if(!_0x54042f)return logger[_0x347c27(0x15c)]('['+TAG+_0x347c27(0x138)),{'newState':this[_0x347c27(0x12e)]()||this['defaultState'],'isNewFailure':![]};try{let _0x5890b7=this[_0x347c27(0x12e)]();!_0x5890b7&&(_0x5890b7=JSON['parse'](JSON[_0x347c27(0x158)](this[_0x347c27(0x12d)])));if(!_0x5890b7['uniqueFailedTests']||_0x1cdb60[_0x347c27(0x14f)](typeof _0x5890b7['uniqueFailedTests'][Symbol['iterator']],_0x1cdb60[_0x347c27(0x141)]))_0x5890b7[_0x347c27(0x14b)]=new Set();else Array[_0x347c27(0x154)](_0x5890b7['uniqueFailedTests'])&&(_0x5890b7[_0x347c27(0x14b)]=new Set(_0x5890b7[_0x347c27(0x14b)]));_0x5890b7[_0x347c27(0x15b)]=_0x3fd42a;let _0x3f39a9=![];_0x1cdb60[_0x347c27(0x130)](_0x4d4d15['status'],_0x1cdb60[_0x347c27(0x160)])&&(_0x5890b7[_0x347c27(0x135)]+=0x1,!_0x5890b7[_0x347c27(0x14b)][_0x347c27(0x12f)](_0x4d4d15[_0x347c27(0x136)])&&(_0x5890b7[_0x347c27(0x14b)]['add'](_0x4d4d15['fullName']),_0x3f39a9=!![]));await this['writeState'](_0x5890b7);const _0x1045cf={};return _0x1045cf['newState']=_0x5890b7,_0x1045cf[_0x347c27(0x13b)]=_0x3f39a9,_0x1045cf;}finally{await this[_0x347c27(0x146)](_0x54042f);}}async['updateAPIFailedCount'](_0x41a6f6){const _0x578e8f=a140_0x43a8aa,_0x41bbab=await this[_0x578e8f(0x150)]();if(!_0x41bbab)return logger[_0x578e8f(0x15c)]('['+TAG+_0x578e8f(0x157)),this['readState']()||this[_0x578e8f(0x12d)];try{let _0x53f24d=this['readState']();return!_0x53f24d&&(_0x53f24d=JSON[_0x578e8f(0x159)](JSON[_0x578e8f(0x158)](this[_0x578e8f(0x12d)]))),_0x53f24d[_0x578e8f(0x132)]=_0x41a6f6,await this['writeState'](_0x53f24d),_0x53f24d;}finally{await this[_0x578e8f(0x146)](_0x41bbab);}}}module['exports']=FileHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a141_0x5e201c=a141_0x3437;(function(_0x5d2d9d,_0x5831a2){const _0x373550=a141_0x3437,_0x352778=_0x5d2d9d();while(!![]){try{const _0x4aeda7=parseInt(_0x373550(0xec))/0x1*(parseInt(_0x373550(0x110))/0x2)+parseInt(_0x373550(0xef))/0x3*(parseInt(_0x373550(0x10c))/0x4)+parseInt(_0x373550(0xdc))/0x5*(-parseInt(_0x373550(0xdf))/0x6)+parseInt(_0x373550(0x112))/0x7*(parseInt(_0x373550(0x100))/0x8)+-parseInt(_0x373550(0x109))/0x9*(-parseInt(_0x373550(0xf5))/0xa)+-parseInt(_0x373550(0xf9))/0xb+parseInt(_0x373550(0xea))/0xc*(-parseInt(_0x373550(0x10f))/0xd);if(_0x4aeda7===_0x5831a2)break;else _0x352778['push'](_0x352778['shift']());}catch(_0x6adb52){_0x352778['push'](_0x352778['shift']());}}}(a141_0x1902,0x31098));function a141_0x1902(){const _0x1f4c80=['runPreviouslyFailedFirst','_setRerunPreviouslyFailed','tmpdir','12NMPgNd','getBuildStartData','317372PkbgOU','checkAbortBuildFileExists','maxRetries','3HfBzDv','sRspo','enable','enabled','_setTestOrdering','getRunPreviouslyFailedFirst','31480utXZnL','_instance','.txt','writeFailureToFile','4025054NUtXHa','testOrdering','disable','has','../logger','getName','winstonLogger','2096cznpjk','rerunPreviouslyFailed','run_previously_failed_first','abort_build_','path','config','env','skipFlakyandFailed','getSkipFlakyAndFailed','954jEvBJk','getOrchestrationData','exports','93176skTnja','skipFlakyAndFailed','retry_tests_on_failure','2269696utsyAS','2rGiJcY','toLowerCase','3689LIiBdt','getRerunPreviouslyFailed','isAbortBuildOnFailureSupported','testOrchestrationOptions','getRetryCount','getEnabled','join','maxFailures','177665kIWmFk','_setSkipFlakyAndFailed','name','12OPOTvX','jest','_setRunPreviouslyFailedFirst','Tilkk','rerun_previously_failed','isRetryEnabled','isAbortBuildOnFailureEnabled','failed_tests_'];a141_0x1902=function(){return _0x1f4c80;};return a141_0x1902();}const os=require('os'),path=require(a141_0x5e201c(0x104)),fs=require('fs'),logger=require(a141_0x5e201c(0xfd))[a141_0x5e201c(0xff)],RETRY_TESTS_ON_FAILURE='retryTestsOnFailure',ABORT_BUILD_ON_FAILURE='abortBuildOnFailure',RUN_PREVIOUSLY_FAILED_FIRST=a141_0x5e201c(0xe7),RERUN_PREVIOUSLY_FAILED=a141_0x5e201c(0x101),SKIP_FLAKY_AND_FAILED=a141_0x5e201c(0x107),ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set([a141_0x5e201c(0xe0)]);class TestOrdering{constructor(){const _0xb79b59=a141_0x5e201c;this[_0xb79b59(0xf2)]=![],this[_0xb79b59(0xde)]=null;}[a141_0x5e201c(0xf1)](_0x200d39){const _0x4325ab=a141_0x5e201c;this[_0x4325ab(0xf2)]=!![],this[_0x4325ab(0xde)]=_0x200d39;}['disable'](){const _0x4705ec=a141_0x5e201c;this['enabled']=![],this[_0x4705ec(0xde)]=null;}[a141_0x5e201c(0x117)](){const _0x27b1ce=a141_0x5e201c;return this[_0x27b1ce(0xf2)];}['getName'](){const _0x1f18a9=a141_0x5e201c;return this[_0x1f18a9(0xde)];}}function a141_0x3437(_0x2ae6c6,_0x1f783a){const _0x1902b9=a141_0x1902();return a141_0x3437=function(_0x3437dc,_0xddd161){_0x3437dc=_0x3437dc-0xdc;let _0x2bea9a=_0x1902b9[_0x3437dc];return _0x2bea9a;},a141_0x3437(_0x2ae6c6,_0x1f783a);}class OrchestrationUtils{static ['_instance']=null;constructor(_0x12c11e){const _0x17598f=a141_0x5e201c,_0x1efc20={};_0x1efc20[_0x17598f(0xe2)]=function(_0x288cd6,_0x34444d){return _0x288cd6||_0x34444d;};const _0x238599=_0x1efc20;this['runPreviouslyFailedFirst']=![],this['rerunPreviouslyFailed']=![],this[_0x17598f(0x10d)]=![],this[_0x17598f(0xfa)]=new TestOrdering(),this[_0x17598f(0x105)]=_0x238599[_0x17598f(0xe2)](_0x12c11e,{});const _0x458dd7=_0x12c11e&&_0x12c11e[_0x17598f(0x115)]||{};this[_0x17598f(0xe1)](_0x458dd7[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x17598f(0xe8)](_0x458dd7[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x17598f(0xdd)](_0x458dd7[SKIP_FLAKY_AND_FAILED]||![]);}static['getInstance'](_0x3ca613){const _0x179451=a141_0x5e201c;return!OrchestrationUtils[_0x179451(0xf6)]&&_0x3ca613&&(OrchestrationUtils[_0x179451(0xf6)]=new OrchestrationUtils(_0x3ca613)),OrchestrationUtils['_instance'];}[a141_0x5e201c(0xe4)](){const _0xce0acc=a141_0x5e201c,_0x46f111=(this[_0xce0acc(0x105)][_0xce0acc(0x115)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x46f111[_0xce0acc(0xf2)];}[a141_0x5e201c(0x116)](){const _0x37b330=a141_0x5e201c,_0x13836d=(this['config'][_0x37b330(0x115)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x449b67=0x0;return this[_0x37b330(0xe4)](this[_0x37b330(0x105)])&&(_0x449b67=_0x13836d[_0x37b330(0xee)]||0x1),_0x449b67;}[a141_0x5e201c(0x10a)](){const _0x5945a5=a141_0x5e201c,_0x233e91=this['config'][_0x5945a5(0x115)]||{},_0x2db2bf={};for(const _0x7a89ce in _0x233e91){ALLOWED_ORCHESTRATION_KEYS[_0x5945a5(0xfc)](_0x7a89ce)&&(_0x2db2bf[_0x7a89ce]=_0x233e91[_0x7a89ce]);}return _0x2db2bf;}[a141_0x5e201c(0xed)](){const _0xf5c602=a141_0x5e201c,_0x112aa9=process[_0xf5c602(0x106)]['BROWSERSTACK_TESTHUB_UUID'],_0x50cb69=path[_0xf5c602(0x118)](os[_0xf5c602(0xe9)](),_0xf5c602(0x103)+_0x112aa9);return fs['existsSync'](_0x50cb69);}[a141_0x5e201c(0xf8)](_0x31b1c0){const _0x17e729=a141_0x5e201c,_0x1e1e24=process['env']['BROWSERSTACK_TESTHUB_UUID'],_0x507a8c=path['join'](os[_0x17e729(0xe9)](),_0x17e729(0xe6)+_0x1e1e24+_0x17e729(0xf7));fs['appendFileSync'](_0x507a8c,_0x31b1c0+'\x0a');}[a141_0x5e201c(0x114)](_0x10d78c){const _0x379754=a141_0x5e201c,_0x4fdefa={};_0x4fdefa[_0x379754(0xf0)]=function(_0x3e5e68,_0x39a6cd){return _0x3e5e68||_0x39a6cd;};const _0x2876d5=_0x4fdefa;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x379754(0xfc)](_0x2876d5['sRspo'](_0x10d78c,'')[_0x379754(0x111)]());}[a141_0x5e201c(0xe5)](){const _0xb768f8=a141_0x5e201c,_0x113fb5=(this[_0xb768f8(0x105)][_0xb768f8(0x115)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x113fb5[_0xb768f8(0xf2)];}['getFailureThreshold'](){const _0x2e6353=a141_0x5e201c,_0x5f01f0=(this[_0x2e6353(0x105)][_0x2e6353(0x115)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x5f01f0[_0x2e6353(0x119)]||0x5;;}[a141_0x5e201c(0xf4)](){const _0x13a955=a141_0x5e201c;return this[_0x13a955(0xe7)];}['_setRunPreviouslyFailedFirst'](_0x19edbe){const _0x47fcf1=a141_0x5e201c;this[_0x47fcf1(0xe7)]=!!_0x19edbe,this['_setTestOrdering']();}['getRerunPreviouslyFailed'](){const _0x18bedd=a141_0x5e201c;return this[_0x18bedd(0x101)];}[a141_0x5e201c(0xe8)](_0x20ec86){const _0x3b05de=a141_0x5e201c;this[_0x3b05de(0x101)]=!!_0x20ec86,this[_0x3b05de(0xf3)]();}['getSkipFlakyAndFailed'](){const _0x4d2053=a141_0x5e201c;return this[_0x4d2053(0x10d)];}['_setSkipFlakyAndFailed'](_0x36b314){const _0x2e90af=a141_0x5e201c;this[_0x2e90af(0x10d)]=!!_0x36b314,this[_0x2e90af(0xf3)]();}[a141_0x5e201c(0xf3)](){const _0x7d9d4e=a141_0x5e201c;if(this['runPreviouslyFailedFirst'])this[_0x7d9d4e(0x101)]=![],this['skipFlakyAndFailed']=![],this['testOrdering']['enable'](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x7d9d4e(0x101)])this['runPreviouslyFailedFirst']=![],this[_0x7d9d4e(0x10d)]=![],this['testOrdering'][_0x7d9d4e(0xf1)](RERUN_PREVIOUSLY_FAILED);else this[_0x7d9d4e(0x10d)]?(this[_0x7d9d4e(0xe7)]=![],this['rerunPreviouslyFailed']=![],this[_0x7d9d4e(0xfa)][_0x7d9d4e(0xf1)](SKIP_FLAKY_AND_FAILED)):this[_0x7d9d4e(0xfa)][_0x7d9d4e(0xfb)]();}}['testOrderingEnabled'](){const _0x31edfa=a141_0x5e201c;return this[_0x31edfa(0xfa)]['getEnabled']();}['getTestOrderingName'](){const _0x473b8b=a141_0x5e201c;if(this[_0x473b8b(0xfa)][_0x473b8b(0x117)]())return this['testOrdering'][_0x473b8b(0xfe)]();return null;}[a141_0x5e201c(0xeb)](){const _0x9297f2=a141_0x5e201c,_0xd317f={};return _0xd317f[_0x9297f2(0xe3)]={'enabled':this[_0x9297f2(0x113)]()},_0xd317f[_0x9297f2(0x102)]={'enabled':this[_0x9297f2(0xf4)]()},_0xd317f['skip_failing_and_flaky']={'enabled':this[_0x9297f2(0x108)]()},this[_0x9297f2(0xe4)]()&&(_0xd317f[_0x9297f2(0x10e)]={'enabled':!![],'max_retries':this[_0x9297f2(0x116)]()}),this[_0x9297f2(0xe5)]()&&(_0xd317f['abort_build_on_failure']={'enabled':!![],'max_failures':this['getFailureThreshold']()}),_0xd317f;}}module[a141_0x5e201c(0x10b)]=OrchestrationUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a142_0x2ae7(){const _0x384834=['POST','noYKZ','11300vgVswH','7MGSZsW','\x20request\x20to\x20','OGelz','mwtEn','GET','headers',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','184282ZPHEmA','1542664CybyWt','?buildName=','qRjrb','./constants','end','\x20and\x20token:\x20','message','zELvh','gGGQG','pMBnl','sufWa','vAoAH','BCfHb','912390NrhsED','body',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','error','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName',',\x20projectName=','1040JsPnYT',']\x20Error\x20in\x20getFailedTestsCount:\x20','Lptnn','statusCode','PGBQm','BROWSERSTACK_TESTHUB_JWT','&buildRunIdentifier=','Failed\x20to\x20parse\x20JSON\x20response:\x20','180JNsWiu',']\x20Sending\x20','undefined','JAvGG','postSplitFiles','XKeTp','47340pSvhty',']\x20Sending\x20GET\x20to\x20','stringify','parse','failedTestsCount','getSplitFiles','application/json','MAgXF',']\x20Error\x20in\x20putFailedTests:\x20',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','UWLsf','UTavS',']\x20Request\x20failed\x20for\x20','eJRsX','Test\x20added','status','Authorization','SEsSK','jzemV','_request','OYrrA','\x20-\x20','&projectName=','hVKlg','szzbi','PUT','1391316GvkgVi','342648gVsmCH','exports','https','request','zAIkp','BZkmH','../logger','lGAHW','debug','getFailedTestsCount','stack',',\x20status:\x20',',\x20buildRunIdentifier='];a142_0x2ae7=function(){return _0x384834;};return a142_0x2ae7();}const a142_0x484bd5=a142_0x3e2c;(function(_0x1d0fa2,_0xac0e31){const _0x7cccfa=a142_0x3e2c,_0x4db86a=_0x1d0fa2();while(!![]){try{const _0xd540bb=parseInt(_0x7cccfa(0xff))/0x1+parseInt(_0x7cccfa(0x13c))/0x2+parseInt(_0x7cccfa(0x11b))/0x3*(parseInt(_0x7cccfa(0xf7))/0x4)+parseInt(_0x7cccfa(0x10d))/0x5+-parseInt(_0x7cccfa(0x13b))/0x6+-parseInt(_0x7cccfa(0xf8))/0x7*(-parseInt(_0x7cccfa(0x100))/0x8)+-parseInt(_0x7cccfa(0x121))/0x9*(parseInt(_0x7cccfa(0x113))/0xa);if(_0xd540bb===_0xac0e31)break;else _0x4db86a['push'](_0x4db86a['shift']());}catch(_0x46e2e2){_0x4db86a['push'](_0x4db86a['shift']());}}}(a142_0x2ae7,0x1da93));function a142_0x3e2c(_0x1dfbe5,_0xa02c68){const _0x2ae776=a142_0x2ae7();return a142_0x3e2c=function(_0x3e2c59,_0x49d5e5){_0x3e2c59=_0x3e2c59-0xed;let _0x5f0e8e=_0x2ae776[_0x3e2c59];return _0x5f0e8e;},a142_0x3e2c(_0x1dfbe5,_0xa02c68);}const https=require(a142_0x484bd5(0x13e)),{URL}=require('url'),logger=require(a142_0x484bd5(0xee))['winstonLogger'],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a142_0x484bd5(0x103)),TAG='RequestUtils';class RequestUtils{static async[a142_0x484bd5(0x134)](_0x2bbc8e,_0x5235f0,_0x305e6b=null){const _0x2926d8=a142_0x484bd5,_0x45eb99={'mwtEn':function(_0x59f061,_0x2b0ea0){return _0x59f061(_0x2b0ea0);},'Lptnn':'data','pMBnl':'end','UTavS':function(_0x3da6b8,_0x15e2bd){return _0x3da6b8(_0x15e2bd);},'lGAHW':_0x2926d8(0x110),'irmvg':function(_0x5d262,_0xf0b8ee){return _0x5d262===_0xf0b8ee;},'dZwmS':_0x2926d8(0xf5),'jzemV':function(_0xd47466,_0x2d1d53){return _0xd47466===_0x2d1d53;},'SEsSK':_0x2926d8(0x13a),'noYKZ':_0x2926d8(0x127),'gGGQG':function(_0x2ed3e1,_0x2bf50e){return _0x2ed3e1+_0x2bf50e;}},_0x35c8d6=process['env'][_0x2926d8(0x118)]||'',_0x4cf446={};_0x4cf446[_0x2926d8(0x131)]='Bearer\x20'+_0x35c8d6,_0x4cf446['Content-Type']=_0x45eb99[_0x2926d8(0xf6)];const _0x2bcd89=_0x4cf446,{hostname:_0x4ac08f,pathname:_0x5f5499,search:_0x97886b}=new URL(_0x5235f0),_0x5a7914={'hostname':_0x4ac08f,'path':_0x45eb99[_0x2926d8(0x108)](_0x5f5499,_0x97886b),'method':_0x2bbc8e,'headers':_0x2bcd89};return logger['debug']('['+TAG+_0x2926d8(0x11c)+_0x2bbc8e+_0x2926d8(0xf9)+_0x5235f0+'\x20with\x20headers:\x20'+JSON['stringify'](_0x2bcd89)+'\x20and\x20data:\x20'+JSON['stringify'](_0x305e6b)+_0x2926d8(0x105)+_0x35c8d6),new Promise((_0x42354f,_0x8fa8f9)=>{const _0x4b63c5=_0x2926d8,_0x5cab07={'JAvGG':function(_0x9ad266,_0xb94cf2){const _0x488f06=a142_0x3e2c;return _0x45eb99[_0x488f06(0xfb)](_0x9ad266,_0xb94cf2);},'zAIkp':_0x45eb99[_0x4b63c5(0x115)],'PGBQm':_0x45eb99[_0x4b63c5(0x109)],'BCfHb':function(_0x2a8a4b,_0x120fe6){const _0x5796f1=_0x4b63c5;return _0x45eb99[_0x5796f1(0x12c)](_0x2a8a4b,_0x120fe6);}},_0x5024e5=https[_0x4b63c5(0x13f)](_0x5a7914,_0x327986=>{const _0x1fbb4f=_0x4b63c5;let _0x3be070='';_0x327986['on'](_0x5cab07[_0x1fbb4f(0x140)],_0x8e9de2=>{_0x3be070+=_0x8e9de2;}),_0x327986['on'](_0x5cab07[_0x1fbb4f(0x117)],()=>{const _0x2aa077=_0x1fbb4f;try{const _0x499f77=_0x3be070?JSON[_0x2aa077(0x124)](_0x3be070):{},_0x57bd5b={};_0x57bd5b[_0x2aa077(0x130)]=_0x327986[_0x2aa077(0x116)],_0x57bd5b[_0x2aa077(0x10e)]=_0x499f77,_0x57bd5b['headers']=_0x327986[_0x2aa077(0xfd)],_0x5cab07[_0x2aa077(0x11e)](_0x42354f,_0x57bd5b);}catch(_0x14c053){logger[_0x2aa077(0x110)]('['+TAG+']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x3be070+_0x2aa077(0x136)+_0x14c053[_0x2aa077(0x106)]+'\x20'+_0x14c053['stack']),_0x5cab07[_0x2aa077(0x11e)](_0x8fa8f9,new Error(_0x2aa077(0x11a)+_0x14c053[_0x2aa077(0x106)]));}});});_0x5024e5['on'](_0x45eb99[_0x4b63c5(0xef)],_0x26b581=>{const _0xc68cab=_0x4b63c5;logger[_0xc68cab(0x110)]('['+TAG+_0xc68cab(0x12d)+_0x2bbc8e+'\x20'+_0x5235f0+':\x20'+_0x26b581['message']+'\x20'+_0x26b581[_0xc68cab(0xf2)]),_0x5cab07[_0xc68cab(0x10c)](_0x8fa8f9,_0x26b581);}),_0x305e6b&&(_0x45eb99['irmvg'](_0x2bbc8e,_0x45eb99['dZwmS'])||_0x45eb99[_0x4b63c5(0x133)](_0x2bbc8e,_0x45eb99[_0x4b63c5(0x132)]))&&_0x5024e5['write'](JSON['stringify'](_0x305e6b)),_0x5024e5[_0x4b63c5(0x104)]();});}static async[a142_0x484bd5(0x11f)](_0x58d52c){const _0x26908b=a142_0x484bd5,_0x18e507={};_0x18e507[_0x26908b(0x12b)]=_0x26908b(0xf5),_0x18e507['zELvh']=function(_0xf6b236,_0x2dd2cd){return _0xf6b236===_0x2dd2cd;};const _0x35ee87=_0x18e507,_0x2fbb3a=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x339d10=await this[_0x26908b(0x134)](_0x35ee87[_0x26908b(0x12b)],_0x2fbb3a,_0x58d52c);return _0x35ee87[_0x26908b(0x107)](_0x339d10[_0x26908b(0x130)],0xc8)?logger['debug']('['+TAG+_0x26908b(0x10f)+_0x2fbb3a):logger[_0x26908b(0x110)]('['+TAG+_0x26908b(0x12a)+_0x2fbb3a+':\x20'+JSON[_0x26908b(0x123)](_0x339d10[_0x26908b(0x10e)])+_0x26908b(0xf3)+_0x339d10[_0x26908b(0x130)]),_0x339d10;}catch(_0xf202eb){logger['error']('['+TAG+_0x26908b(0x129)+_0xf202eb[_0x26908b(0x106)]+'\x20'+_0xf202eb[_0x26908b(0xf2)]);const _0x47bd80={};_0x47bd80[_0x26908b(0x106)]=_0xf202eb[_0x26908b(0x106)];const _0x3a4b12={};return _0x3a4b12[_0x26908b(0x130)]=0x1f4,_0x3a4b12[_0x26908b(0x10e)]=_0x47bd80,_0x3a4b12;}}static async[a142_0x484bd5(0x126)](_0x1cc115){const _0x1469df=a142_0x484bd5,_0x3e9c2d={};_0x3e9c2d['szzbi']=_0x1469df(0xfc),_0x3e9c2d[_0x1469df(0x128)]=function(_0x50f3c6,_0x1eba6c){return _0x50f3c6===_0x1eba6c;};const _0x390475=_0x3e9c2d;try{const _0x2801f5=await this[_0x1469df(0x134)](_0x390475[_0x1469df(0x139)],_0x1cc115);if(_0x390475[_0x1469df(0x128)](_0x2801f5[_0x1469df(0x130)],0xc8))return _0x2801f5[_0x1469df(0x10e)];return{};}catch(_0x409376){return logger['error']('['+TAG+_0x1469df(0x129)+_0x409376[_0x1469df(0x106)]+'\x20'+_0x409376['stack']),{};}}static async['putFailedTests'](_0x9a734d){const _0x995335=a142_0x484bd5,_0x5967db={};_0x5967db['yvaoq']=_0x995335(0x13a),_0x5967db[_0x995335(0xed)]=function(_0x5ad214,_0x3dc8cc){return _0x5ad214===_0x3dc8cc;},_0x5967db[_0x995335(0x10b)]=function(_0x592480,_0x47968f){return _0x592480===_0x47968f;},_0x5967db['OGelz']=_0x995335(0x12f);const _0x25afa8=_0x5967db,_0x4c52c7=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x488721=await this[_0x995335(0x134)](_0x25afa8['yvaoq'],_0x4c52c7,_0x9a734d);if(_0x25afa8[_0x995335(0xed)](_0x488721['status'],0xc8)&&_0x488721[_0x995335(0x10e)]&&_0x25afa8[_0x995335(0x10b)](_0x488721[_0x995335(0x10e)][_0x995335(0x106)],_0x25afa8[_0x995335(0xfa)]))return!![];return![];}catch(_0x97bd83){logger[_0x995335(0x110)]('['+TAG+_0x995335(0x129)+_0x97bd83['message']+'\x20'+_0x97bd83['stack']);const _0xea9387={};_0xea9387[_0x995335(0x106)]=_0x97bd83[_0x995335(0x106)];const _0xd258a2={};return _0xd258a2[_0x995335(0x130)]=0x1f4,_0xd258a2[_0x995335(0x10e)]=_0xea9387,_0xd258a2;}}static async[a142_0x484bd5(0xf1)](_0x3096eb){const _0x5b891f=a142_0x484bd5,_0x26430b={'pjmSL':function(_0x363b4d,_0xfccd40){return _0x363b4d||_0xfccd40;},'qRjrb':_0x5b891f(0x111),'OYrrA':function(_0x482571,_0x2fc3d6){return _0x482571(_0x2fc3d6);},'MsKzh':_0x5b891f(0xfc),'XKeTp':function(_0x29e203,_0x5e8a60){return _0x29e203===_0x5e8a60;},'sufWa':function(_0x2324c6,_0x4f4cca){return _0x2324c6!==_0x4f4cca;},'eJRsX':_0x5b891f(0x11d),'hVKlg':function(_0x3296ea,_0x25bbad){return _0x3296ea(_0x25bbad);}},{buildName:_0x4496c3,buildRunIdentifier:_0x130306,projectName:_0x235ed0}=_0x3096eb;if(_0x26430b['pjmSL'](!_0x4496c3,!_0x130306)||!_0x235ed0){logger['error']('['+TAG+_0x5b891f(0xfe)+_0x4496c3+_0x5b891f(0xf4)+_0x130306+_0x5b891f(0x112)+_0x235ed0);const _0x4a926c={};_0x4a926c[_0x5b891f(0x106)]=_0x26430b[_0x5b891f(0x102)];const _0x34ae5a={};return _0x34ae5a['status']=0x190,_0x34ae5a[_0x5b891f(0x10e)]=_0x4a926c,_0x34ae5a;}const _0x21578f=_0x5b891f(0x101)+_0x26430b['OYrrA'](encodeURIComponent,_0x4496c3)+_0x5b891f(0x119)+_0x26430b[_0x5b891f(0x135)](encodeURIComponent,_0x130306)+_0x5b891f(0x137)+_0x26430b[_0x5b891f(0x135)](encodeURIComponent,_0x235ed0),_0x30fc2a=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x21578f;try{logger[_0x5b891f(0xf0)]('['+TAG+_0x5b891f(0x122)+_0x30fc2a);let _0x600d11=0x0;const _0x5688de=await this[_0x5b891f(0x134)](_0x26430b['MsKzh'],_0x30fc2a);return _0x26430b[_0x5b891f(0x120)](_0x5688de[_0x5b891f(0x130)],0xc8)&&_0x5688de[_0x5b891f(0x10e)]&&_0x26430b[_0x5b891f(0x10a)](typeof _0x5688de[_0x5b891f(0x10e)]['failedTestsCount'],_0x26430b[_0x5b891f(0x12e)])&&(_0x600d11=_0x26430b[_0x5b891f(0x138)](Number,_0x5688de[_0x5b891f(0x10e)][_0x5b891f(0x125)])),_0x600d11;}catch(_0x42e0b7){logger[_0x5b891f(0x110)]('['+TAG+_0x5b891f(0x114)+_0x42e0b7['message']+'\x20'+_0x42e0b7[_0x5b891f(0xf2)]);const _0x29134d={};_0x29134d[_0x5b891f(0x106)]=_0x42e0b7[_0x5b891f(0x106)];const _0x1caee7={};return _0x1caee7['status']=0x1f4,_0x1caee7[_0x5b891f(0x10e)]=_0x29134d,_0x1caee7;}}}module[a142_0x484bd5(0x13d)]=RequestUtils;
|
|
1
|
+
const a142_0x219d2b=a142_0x1857;(function(_0xf71df7,_0x1d84e9){const _0x2a02d2=a142_0x1857,_0x5cc37d=_0xf71df7();while(!![]){try{const _0x58c99f=parseInt(_0x2a02d2(0x149))/0x1+parseInt(_0x2a02d2(0x158))/0x2+-parseInt(_0x2a02d2(0x16d))/0x3+-parseInt(_0x2a02d2(0x14b))/0x4+-parseInt(_0x2a02d2(0x170))/0x5*(parseInt(_0x2a02d2(0x162))/0x6)+-parseInt(_0x2a02d2(0x168))/0x7*(parseInt(_0x2a02d2(0x13b))/0x8)+-parseInt(_0x2a02d2(0x15d))/0x9*(-parseInt(_0x2a02d2(0x140))/0xa);if(_0x58c99f===_0x1d84e9)break;else _0x5cc37d['push'](_0x5cc37d['shift']());}catch(_0x4cd5f7){_0x5cc37d['push'](_0x5cc37d['shift']());}}}(a142_0x160c,0x554b6));const https=require('https'),{URL}=require(a142_0x219d2b(0x163)),logger=require(a142_0x219d2b(0x147))[a142_0x219d2b(0x124)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a142_0x219d2b(0x135)),TAG=a142_0x219d2b(0x12e);function a142_0x1857(_0x260eca,_0xfb0363){const _0x160c24=a142_0x160c();return a142_0x1857=function(_0x18575f,_0xc71704){_0x18575f=_0x18575f-0x124;let _0x385f52=_0x160c24[_0x18575f];return _0x385f52;},a142_0x1857(_0x260eca,_0xfb0363);}class RequestUtils{static async[a142_0x219d2b(0x126)](_0xaff3a9,_0x28057c,_0x34e6e9=null){const _0x1c2ba6=a142_0x219d2b,_0x37bdad={'BFxpw':function(_0x5aacf0,_0xb99ddd){return _0x5aacf0(_0xb99ddd);},'zszTs':'data','WYNTl':_0x1c2ba6(0x146),'dtFqj':_0x1c2ba6(0x151),'KZnGV':function(_0x28c2e0,_0x34147d){return _0x28c2e0===_0x34147d;},'ktlKH':_0x1c2ba6(0x12a),'aSMEw':function(_0x32c18e,_0x14d169){return _0x32c18e===_0x14d169;},'irRAc':_0x1c2ba6(0x154),'KWOgq':_0x1c2ba6(0x169),'oRuzn':function(_0x2328ed,_0x13f430){return _0x2328ed+_0x13f430;}},_0x3c1109=process['env'][_0x1c2ba6(0x14e)]||'',_0x54c330={};_0x54c330[_0x1c2ba6(0x141)]=_0x1c2ba6(0x138)+_0x3c1109,_0x54c330[_0x1c2ba6(0x16e)]=_0x37bdad['KWOgq'];const _0x48637e=_0x54c330,{hostname:_0x4167c5,pathname:_0x4dd55d,search:_0x5f21b9}=new URL(_0x28057c),_0x5446f5={'hostname':_0x4167c5,'path':_0x37bdad[_0x1c2ba6(0x12d)](_0x4dd55d,_0x5f21b9),'method':_0xaff3a9,'headers':_0x48637e};return logger[_0x1c2ba6(0x161)]('['+TAG+_0x1c2ba6(0x14d)+_0xaff3a9+_0x1c2ba6(0x13a)+_0x28057c+_0x1c2ba6(0x136)+JSON[_0x1c2ba6(0x127)](_0x48637e)+_0x1c2ba6(0x16b)+JSON[_0x1c2ba6(0x127)](_0x34e6e9)+_0x1c2ba6(0x174)+_0x3c1109),new Promise((_0xa5b702,_0x337a30)=>{const _0x212ee3=_0x1c2ba6,_0x122a3f={'baSyj':function(_0x3ae6dd,_0xf18236){const _0x542147=a142_0x1857;return _0x37bdad[_0x542147(0x128)](_0x3ae6dd,_0xf18236);},'JRWRo':function(_0x1a7cc2,_0x1b87d6){const _0x5bc23a=a142_0x1857;return _0x37bdad[_0x5bc23a(0x128)](_0x1a7cc2,_0x1b87d6);},'xbprw':_0x37bdad[_0x212ee3(0x142)],'bDRvR':_0x37bdad[_0x212ee3(0x12c)]},_0x67cc1b=https[_0x212ee3(0x159)](_0x5446f5,_0x169118=>{const _0x5909dc=_0x212ee3,_0x1bab5e={'TxmSz':function(_0x3438db,_0x31cb48){return _0x122a3f['baSyj'](_0x3438db,_0x31cb48);},'mDMlC':function(_0x2b9f37,_0x353940){const _0x2e9c2f=a142_0x1857;return _0x122a3f[_0x2e9c2f(0x15b)](_0x2b9f37,_0x353940);}};let _0x28928d='';_0x169118['on'](_0x122a3f[_0x5909dc(0x15e)],_0x38bb75=>{_0x28928d+=_0x38bb75;}),_0x169118['on'](_0x122a3f[_0x5909dc(0x12b)],()=>{const _0x317fba=_0x5909dc;try{const _0x3f34df=_0x28928d?JSON[_0x317fba(0x14c)](_0x28928d):{},_0x51c7de={};_0x51c7de['status']=_0x169118[_0x317fba(0x16c)],_0x51c7de['body']=_0x3f34df,_0x51c7de[_0x317fba(0x152)]=_0x169118[_0x317fba(0x152)],_0x1bab5e['TxmSz'](_0xa5b702,_0x51c7de);}catch(_0x2f1cc9){logger[_0x317fba(0x151)]('['+TAG+']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x28928d+_0x317fba(0x14a)+_0x2f1cc9[_0x317fba(0x176)]+'\x20'+_0x2f1cc9[_0x317fba(0x131)]),_0x1bab5e[_0x317fba(0x15c)](_0x337a30,new Error(_0x317fba(0x165)+_0x2f1cc9['message']));}});});_0x67cc1b['on'](_0x37bdad[_0x212ee3(0x13c)],_0x74981c=>{const _0xf8cba3=_0x212ee3;logger[_0xf8cba3(0x151)]('['+TAG+_0xf8cba3(0x139)+_0xaff3a9+'\x20'+_0x28057c+':\x20'+_0x74981c[_0xf8cba3(0x176)]+'\x20'+_0x74981c[_0xf8cba3(0x131)]),_0x37bdad[_0xf8cba3(0x128)](_0x337a30,_0x74981c);}),_0x34e6e9&&(_0x37bdad[_0x212ee3(0x155)](_0xaff3a9,_0x37bdad[_0x212ee3(0x164)])||_0x37bdad[_0x212ee3(0x13e)](_0xaff3a9,_0x37bdad[_0x212ee3(0x16f)]))&&_0x67cc1b['write'](JSON[_0x212ee3(0x127)](_0x34e6e9)),_0x67cc1b[_0x212ee3(0x146)]();});}static async[a142_0x219d2b(0x13f)](_0x18fee8){const _0x1169bd=a142_0x219d2b,_0x4a9aac={};_0x4a9aac[_0x1169bd(0x156)]='POST',_0x4a9aac[_0x1169bd(0x171)]=function(_0x1522c0,_0x472c1f){return _0x1522c0===_0x472c1f;};const _0x321979=_0x4a9aac,_0x4da6f9=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x1d723d=await this[_0x1169bd(0x126)](_0x321979[_0x1169bd(0x156)],_0x4da6f9,_0x18fee8);return _0x321979['UyIew'](_0x1d723d[_0x1169bd(0x132)],0xc8)?logger[_0x1169bd(0x161)]('['+TAG+']\x20Successfully\x20posted\x20split\x20files\x20to\x20'+_0x4da6f9):logger[_0x1169bd(0x151)]('['+TAG+_0x1169bd(0x157)+_0x4da6f9+':\x20'+JSON[_0x1169bd(0x127)](_0x1d723d[_0x1169bd(0x144)])+',\x20status:\x20'+_0x1d723d[_0x1169bd(0x132)]),_0x1d723d;}catch(_0x43f517){logger['error']('['+TAG+_0x1169bd(0x145)+_0x43f517[_0x1169bd(0x176)]+'\x20'+_0x43f517['stack']);const _0x5cc2a={};_0x5cc2a[_0x1169bd(0x176)]=_0x43f517['message'];const _0x5ec919={};return _0x5ec919[_0x1169bd(0x132)]=0x1f4,_0x5ec919[_0x1169bd(0x144)]=_0x5cc2a,_0x5ec919;}}static async['getSplitFiles'](_0x15cc46){const _0x17db74=a142_0x219d2b,_0x1f7930={};_0x1f7930['HnRrT']=_0x17db74(0x125),_0x1f7930[_0x17db74(0x148)]=function(_0x4d792d,_0x1f9645){return _0x4d792d===_0x1f9645;};const _0x1be44c=_0x1f7930;try{const _0x1fef7b=await this[_0x17db74(0x126)](_0x1be44c[_0x17db74(0x177)],_0x15cc46);if(_0x1be44c[_0x17db74(0x148)](_0x1fef7b[_0x17db74(0x132)],0xc8))return _0x1fef7b['body'];return{};}catch(_0x102d92){return logger[_0x17db74(0x151)]('['+TAG+_0x17db74(0x145)+_0x102d92[_0x17db74(0x176)]+'\x20'+_0x102d92[_0x17db74(0x131)]),{};}}static async[a142_0x219d2b(0x175)](_0x54b93a){const _0x43deb4=a142_0x219d2b,_0x12978f={};_0x12978f[_0x43deb4(0x13d)]=_0x43deb4(0x154),_0x12978f[_0x43deb4(0x15a)]=function(_0x30dbe7,_0x55f8d4){return _0x30dbe7===_0x55f8d4;},_0x12978f['LDbVP']=_0x43deb4(0x153);const _0x222d86=_0x12978f,_0x4d43b9=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x5220cd=await this[_0x43deb4(0x126)](_0x222d86[_0x43deb4(0x13d)],_0x4d43b9,_0x54b93a);if(_0x222d86[_0x43deb4(0x15a)](_0x5220cd[_0x43deb4(0x132)],0xc8)&&_0x5220cd['body']&&_0x222d86[_0x43deb4(0x15a)](_0x5220cd[_0x43deb4(0x144)][_0x43deb4(0x176)],_0x222d86[_0x43deb4(0x167)]))return!![];return![];}catch(_0x546f25){logger['error']('['+TAG+_0x43deb4(0x145)+_0x546f25[_0x43deb4(0x176)]+'\x20'+_0x546f25[_0x43deb4(0x131)]);const _0x564a7c={};_0x564a7c[_0x43deb4(0x176)]=_0x546f25[_0x43deb4(0x176)];const _0x454472={};return _0x454472[_0x43deb4(0x132)]=0x1f4,_0x454472['body']=_0x564a7c,_0x454472;}}static async[a142_0x219d2b(0x16a)](_0x2886c0){const _0x1c2f00=a142_0x219d2b,_0x3dbce2={'XShYX':function(_0x53ee4a,_0x539047){return _0x53ee4a||_0x539047;},'ojklY':'Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','OBqiB':function(_0x564604,_0x31ee85){return _0x564604(_0x31ee85);},'qGElU':function(_0x4a525a,_0xbe29f8){return _0x4a525a(_0xbe29f8);},'mfCsV':function(_0x195d67,_0x416d3a){return _0x195d67(_0x416d3a);},'GqSPg':_0x1c2f00(0x125),'NWkPR':function(_0x4d7372,_0x2ca1b2){return _0x4d7372===_0x2ca1b2;},'vWNmG':function(_0x58213f,_0x3f9c0e){return _0x58213f!==_0x3f9c0e;},'TpMtl':_0x1c2f00(0x134),'PrCgI':function(_0xb22797,_0x29f436){return _0xb22797(_0x29f436);}},{buildName:_0x4e54a4,buildRunIdentifier:_0x5e8a41,projectName:_0x1875ae}=_0x2886c0;if(_0x3dbce2['XShYX'](!_0x4e54a4,!_0x5e8a41)||!_0x1875ae){logger['error']('['+TAG+_0x1c2f00(0x129)+_0x4e54a4+_0x1c2f00(0x173)+_0x5e8a41+_0x1c2f00(0x150)+_0x1875ae);const _0x49a40c={};_0x49a40c[_0x1c2f00(0x176)]=_0x3dbce2[_0x1c2f00(0x143)];const _0xd8fb8c={};return _0xd8fb8c[_0x1c2f00(0x132)]=0x190,_0xd8fb8c[_0x1c2f00(0x144)]=_0x49a40c,_0xd8fb8c;}const _0x4084e7=_0x1c2f00(0x12f)+_0x3dbce2[_0x1c2f00(0x14f)](encodeURIComponent,_0x4e54a4)+_0x1c2f00(0x15f)+_0x3dbce2[_0x1c2f00(0x133)](encodeURIComponent,_0x5e8a41)+'&projectName='+_0x3dbce2[_0x1c2f00(0x166)](encodeURIComponent,_0x1875ae),_0x26440e=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x4084e7;try{logger[_0x1c2f00(0x161)]('['+TAG+_0x1c2f00(0x137)+_0x26440e);let _0x273d93=0x0;const _0xeee4e1=await this[_0x1c2f00(0x126)](_0x3dbce2['GqSPg'],_0x26440e);return _0x3dbce2[_0x1c2f00(0x130)](_0xeee4e1[_0x1c2f00(0x132)],0xc8)&&_0xeee4e1[_0x1c2f00(0x144)]&&_0x3dbce2[_0x1c2f00(0x160)](typeof _0xeee4e1[_0x1c2f00(0x144)][_0x1c2f00(0x172)],_0x3dbce2['TpMtl'])&&(_0x273d93=_0x3dbce2[_0x1c2f00(0x178)](Number,_0xeee4e1[_0x1c2f00(0x144)]['failedTestsCount'])),_0x273d93;}catch(_0x1ccae2){logger[_0x1c2f00(0x151)]('['+TAG+']\x20Error\x20in\x20getFailedTestsCount:\x20'+_0x1ccae2[_0x1c2f00(0x176)]+'\x20'+_0x1ccae2[_0x1c2f00(0x131)]);const _0x1ebacf={};_0x1ebacf['message']=_0x1ccae2[_0x1c2f00(0x176)];const _0x3c438e={};return _0x3c438e[_0x1c2f00(0x132)]=0x1f4,_0x3c438e[_0x1c2f00(0x144)]=_0x1ebacf,_0x3c438e;}}}module[a142_0x219d2b(0x179)]=RequestUtils;function a142_0x160c(){const _0x5b9160=['debug','24vvBsOj','url','ktlKH','Failed\x20to\x20parse\x20JSON\x20response:\x20','mfCsV','LDbVP','14203oLvFsh','application/json','getFailedTestsCount','\x20and\x20data:\x20','statusCode','415638wIrCvG','Content-Type','irRAc','254830wWSWUH','UyIew','failedTestsCount',',\x20buildRunIdentifier=','\x20and\x20token:\x20','putFailedTests','message','HnRrT','PrCgI','exports','winstonLogger','GET','_request','stringify','BFxpw',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','POST','bDRvR','WYNTl','oRuzn','RequestUtils','?buildName=','NWkPR','stack','status','qGElU','undefined','./constants','\x20with\x20headers:\x20',']\x20Sending\x20GET\x20to\x20','Bearer\x20',']\x20Request\x20failed\x20for\x20','\x20request\x20to\x20','928stImor','dtFqj','NukmA','aSMEw','postSplitFiles','10FFAKZD','Authorization','zszTs','ojklY','body',']\x20Error\x20in\x20putFailedTests:\x20','end','../logger','gvuzO','577216fZprWL','\x20-\x20','2765944WWeufl','parse',']\x20Sending\x20','BROWSERSTACK_TESTHUB_JWT','OBqiB',',\x20projectName=','error','headers','Test\x20added','PUT','KZnGV','AADmP',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','585438bWWVVq','request','IWwZE','JRWRo','mDMlC','6738219OqwgcD','xbprw','&buildRunIdentifier=','vWNmG'];a142_0x160c=function(){return _0x5b9160;};return a142_0x160c();}
|