browserstack-node-sdk 1.49.1 → 1.49.2
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 +1 -1
- 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/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/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/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/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/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
|
-
const a129_0xfa4b45=a129_0x35be;function a129_0x1415(){const _0x3b6554=['141170ZuxEbm','info','env','xuxyx','GDWey','78849MRdUbW','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','basename','oeKLn','getUserName','222NWgtoz','XXacP','start','Retry\x20runs\x20exceeded','add','logs','WOWYD','BS_TESTOPS_ALLOW_SCREENSHOTS','114002LhcHDc','buildIdentifier','FLAii','ERROR_ACCESS_DENIED','ezvzD','BS_TESTOPS_BUILD_COMPLETED','AviCl','statusText','UzcOk','xxswI','LArcM','Hook_End_Upload','hWrwC','stringify','winstonLogger','qikfU','null','inspect','Test_Start_Upload','qxiLj','pendingUploads','frameworkVersion','iBNWS',']\x20event\x20successful!','owDsa','fJTfv','headers','wzuqG','EXCEPTION\x20IN\x20','HyjWM','test_run','3ZPAorp','buildDescription','SdKRI','getHostInfo','Data\x20upload\x20to\x20BrowserStack\x20','build_hashed_id','getGitMetaData','zlwkX','TEST_REPORTING_ANALYTICS','mEDXi','browserstackAutomation','Content-Type','ERROR_SDK_DEPRECATED','toISOString','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','rIZNx','EFhet','exports','BROWSERSTACK_RERUN','200hICfZW','sZjfV','event_type','username','uploadEventData','getLogTag','jwt','KAQwc','pCQoK','HookRunFinished','data','api/v1/event','CBT_Upload','FTYBs','Build\x20creation\x20successful!','qtVtl','EDLFH','\x20failed\x20due\x20to\x20','hvIqS','message','69959iITqbR','TestRunStarted','api/v1/builds','OfLJp','DBGhv','true','mRGcY','NJiAn','\x20:\x20','BROWSERSTACK_TESTHUB_JWT','allow_screenshots','Processing\x20event\x20-\x20\x27','getAgentVersion','Test_Skipped_Upload','format','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','error','requestQueueHandler','util','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','NyvAo','launch','xcLzw','app','response','CBlxG','711424KRlmZK','HQnDA','BROWSERSTACK_TESTHUB_UUID','SVFeS','qHWTU','toString','test_run_uuid','buildName','GYSuf','HfZlU','./utils','path','getInstance','password','LogCreated','eventUrl','vNSka','HGstf','resolve','bFEhY','BS_A11Y_JWT','nRTMd','../logger','X-BSTACK-TESTOPS','lngBg','\x20retry\x20runs\x20exceeded','PXwwE','Bearer\x20','./constants','Oqtuo','QmFuF','sendEventData','pITPA','ukyHw','BS_TESTOPS_BUILD_HASHED_ID','nlZcT','length','489718utwsjP','ngKlu','ELNhw','includes','sjVpe','\x20REQUEST\x20TO\x20','application/json','projectName','hMeWh','hook_run','status','UkfYA','cwd','BS_TESTOPS_JWT','Log_Upload','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','429OXWBOk','debug','aElSE','3518580OMOgdm','max','false'];a129_0x1415=function(){return _0x3b6554;};return a129_0x1415();}(function(_0x2e1b19,_0x2f685a){const _0xcea81d=a129_0x35be,_0x1ee158=_0x2e1b19();while(!![]){try{const _0x2c111d=-parseInt(_0xcea81d(0x1d7))/0x1+-parseInt(_0xcea81d(0x216))/0x2*(-parseInt(_0xcea81d(0x1b0))/0x3)+-parseInt(_0xcea81d(0x1f1))/0x4+parseInt(_0xcea81d(0x17c))/0x5+-parseInt(_0xcea81d(0x189))/0x6*(parseInt(_0xcea81d(0x191))/0x7)+parseInt(_0xcea81d(0x1c3))/0x8*(-parseInt(_0xcea81d(0x184))/0x9)+-parseInt(_0xcea81d(0x17f))/0xa*(-parseInt(_0xcea81d(0x226))/0xb);if(_0x2c111d===_0x2f685a)break;else _0x1ee158['push'](_0x1ee158['shift']());}catch(_0x451bc2){_0x1ee158['push'](_0x1ee158['shift']());}}}(a129_0x1415,0x68e94));const bsSetupHelper=require('../helper'),path=require(a129_0xfa4b45(0x1fc)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a129_0xfa4b45(0x1fb)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a129_0xfa4b45(0x20d)),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a129_0xfa4b45(0x207))[a129_0xfa4b45(0x19f)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require('../../helpers/testhub/utils'),util=require(a129_0xfa4b45(0x1e9)),constants=require('../../bin/utils/constants');class SessionHandler{static [a129_0xfa4b45(0x1e8)]=RequestQueueHandler[a129_0xfa4b45(0x1fd)]();static async[a129_0xfa4b45(0x1ec)](_0x2675b6,_0x14745d){const _0xbaeb9b=a129_0xfa4b45,_0x27abe1={'xuxyx':function(_0x245965,_0x3e95b3){return _0x245965||_0x3e95b3;},'wzuqG':function(_0x4c62ac,_0x51beae){return _0x4c62ac||_0x51beae;},'zlwkX':function(_0x39a7c9,_0x840373){return _0x39a7c9===_0x840373;},'HfZlU':function(_0x100986,_0x2483d9){return _0x100986(_0x2483d9);},'FLAii':_0xbaeb9b(0x1be),'GDWey':'false','ngKlu':'json','sjVpe':function(_0x3b9da8,_0x862383){return _0x3b9da8(_0x862383);},'qtVtl':function(_0x55375d,_0x3e4e13){return _0x55375d(_0x3e4e13);},'EVIZF':function(_0x33356,_0x2d8fb1){return _0x33356(_0x2d8fb1);},'DBGhv':function(_0x445dd9,_0x1ec14a,_0x1569c4,_0x356f9e,_0x449f81){return _0x445dd9(_0x1ec14a,_0x1569c4,_0x356f9e,_0x449f81);},'lbvJv':'POST','GYSuf':_0xbaeb9b(0x1d9),'sZjfV':function(_0x5eb818,_0x1eed1d){return _0x5eb818(_0x1eed1d);},'QmFuF':_0xbaeb9b(0x1d1),'HGstf':function(_0x3340eb){return _0x3340eb();},'BUteZ':_0xbaeb9b(0x1dc),'xcLzw':_0xbaeb9b(0x1a1),'pITPA':function(_0x469458,_0x3f875d){return _0x469458(_0x3f875d);},'zZiiu':'ERROR_INVALID_CREDENTIALS','Lowvi':_0xbaeb9b(0x194),'lngBg':_0xbaeb9b(0x1bc)};logger[_0xbaeb9b(0x180)](_0xbaeb9b(0x1e6)+util[_0xbaeb9b(0x1a2)](_0x2675b6));const _0x2be254=bsSetupHelper[_0xbaeb9b(0x188)](_0x2675b6),_0x1e9dd8=bsSetupHelper['getAccessKey'](_0x2675b6),_0x4b80a1=_0x27abe1[_0xbaeb9b(0x182)](_0x2be254,'')+':'+_0x27abe1[_0xbaeb9b(0x1ac)](_0x1e9dd8,'');if(_0x27abe1[_0xbaeb9b(0x1b7)](_0x4b80a1,':'))return _0x27abe1[_0xbaeb9b(0x1fa)](debug,_0x27abe1[_0xbaeb9b(0x193)]),process[_0xbaeb9b(0x181)][_0xbaeb9b(0x196)]=_0x27abe1[_0xbaeb9b(0x183)],[null,null];let _0x2b604a=![],_0x180aa1=![];if(_0x2675b6[_0xbaeb9b(0x1ba)]&&_0x2675b6[_0xbaeb9b(0x1ee)])_0x180aa1=!![];else _0x2675b6[_0xbaeb9b(0x1ba)]&&(_0x2b604a=!![]);try{const _0x519e40={'format':_0x27abe1[_0xbaeb9b(0x217)],'project_name':_0x2675b6[_0xbaeb9b(0x21d)]||'','name':_0x2675b6[_0xbaeb9b(0x1f8)]||path[_0xbaeb9b(0x186)](path[_0xbaeb9b(0x203)](process[_0xbaeb9b(0x222)]())),'build_identifier':_0x2675b6[_0xbaeb9b(0x192)],'description':_0x2675b6[_0xbaeb9b(0x1b1)]||'','start_time':new Date()[_0xbaeb9b(0x1bd)](),'tags':_0x27abe1[_0xbaeb9b(0x21a)](getCustomTags,_0x2675b6),'host_info':bsSetupHelper[_0xbaeb9b(0x1b3)](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process[_0xbaeb9b(0x181)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],'failed_tests_rerun':process[_0xbaeb9b(0x181)][_0xbaeb9b(0x1c2)]||![],'version_control':await bsSetupHelper[_0xbaeb9b(0x1b6)](),'observability_version':{'frameworkName':_0x14745d['frameworkName'],'frameworkVersion':_0x14745d[_0xbaeb9b(0x1a6)],'sdkVersion':bsSetupHelper[_0xbaeb9b(0x1e3)]()},'product_map':_0x27abe1[_0xbaeb9b(0x1d2)](getProductMap,_0x2675b6),'test_orchestration':_0x27abe1['sjVpe'](getTestOrchestrationBuildStartData,_0x2675b6)},_0x3c0f28={};_0x3c0f28[_0xbaeb9b(0x1c6)]=_0x2be254,_0x3c0f28[_0xbaeb9b(0x1fe)]=_0x1e9dd8;const _0xb00148={'auth':_0x3c0f28,'headers':_0x27abe1['EVIZF'](getDefaultHeaders,![])},_0x3292bb=await _0x27abe1[_0xbaeb9b(0x1db)](nodeRequest,_0x27abe1['lbvJv'],_0x27abe1[_0xbaeb9b(0x1f9)],_0x519e40,_0xb00148);_0x27abe1[_0xbaeb9b(0x1c4)](debug,_0x27abe1[_0xbaeb9b(0x20f)]);const _0x33a08e=_0x3292bb[_0xbaeb9b(0x1cd)];_0x33a08e[_0xbaeb9b(0x1b5)]&&(process['env'][_0xbaeb9b(0x1f3)]=_0x33a08e['build_hashed_id']);if(_0x27abe1[_0xbaeb9b(0x202)](isTestObservabilitySession)){process[_0xbaeb9b(0x181)][_0xbaeb9b(0x196)]=_0x27abe1['BUteZ'];if(_0x33a08e[_0xbaeb9b(0x1c9)]){process[_0xbaeb9b(0x181)][_0xbaeb9b(0x223)]=_0x33a08e[_0xbaeb9b(0x1c9)];const _0x4d2035={};_0x4d2035[_0xbaeb9b(0x1c6)]=_0x2be254,_0x4d2035['password']=_0x1e9dd8,process[_0xbaeb9b(0x181)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0xbaeb9b(0x19e)](_0x4d2035);}_0x33a08e[_0xbaeb9b(0x1b5)]&&(process['env'][_0xbaeb9b(0x213)]=_0x33a08e[_0xbaeb9b(0x1b5)]),_0x33a08e[_0xbaeb9b(0x1e1)]&&(process[_0xbaeb9b(0x181)][_0xbaeb9b(0x190)]=_0x33a08e[_0xbaeb9b(0x1e1)][_0xbaeb9b(0x1f6)]());}return[_0x3292bb[_0xbaeb9b(0x1cd)][_0xbaeb9b(0x1c9)],_0x3292bb[_0xbaeb9b(0x1cd)][_0xbaeb9b(0x1b5)],_0x3292bb['data'][_0xbaeb9b(0x1e1)]];}catch(_0x3151c2){process[_0xbaeb9b(0x181)][_0xbaeb9b(0x1f3)]=_0x27abe1['xcLzw'],process[_0xbaeb9b(0x181)]['BS_TESTOPS_BUILD_COMPLETED']=_0x27abe1[_0xbaeb9b(0x183)],process['env'][_0xbaeb9b(0x223)]=_0x27abe1[_0xbaeb9b(0x1ed)],process[_0xbaeb9b(0x181)][_0xbaeb9b(0x213)]=_0x27abe1[_0xbaeb9b(0x1ed)],process[_0xbaeb9b(0x181)][_0xbaeb9b(0x190)]=_0x27abe1[_0xbaeb9b(0x1ed)];_0x3151c2[_0xbaeb9b(0x1ef)]?_0x27abe1[_0xbaeb9b(0x21a)](debug,_0xbaeb9b(0x1ea)+_0x3151c2[_0xbaeb9b(0x1ef)][_0xbaeb9b(0x220)]+'\x20'+_0x3151c2[_0xbaeb9b(0x1ef)][_0xbaeb9b(0x198)]+'\x20'+JSON['stringify'](_0x3151c2[_0xbaeb9b(0x1ef)]['data'])):_0x27abe1[_0xbaeb9b(0x211)](debug,_0xbaeb9b(0x1ea)+(_0x3151c2['message']||_0x3151c2));if(_0x3151c2&&_0x3151c2[_0xbaeb9b(0x1d6)]){const _0x4e0871=_0x3151c2['message'];switch(_0x3151c2['errorType']){case _0x27abe1['zZiiu']:logger['error'](_0x4e0871);break;case _0x27abe1['Lowvi']:logger[_0xbaeb9b(0x180)](_0x4e0871);break;case _0x27abe1[_0xbaeb9b(0x209)]:logger[_0xbaeb9b(0x1e7)](_0x4e0871);break;default:logger['error'](_0x4e0871);}}else console[_0xbaeb9b(0x180)](_0xbaeb9b(0x1b4)+constants[_0xbaeb9b(0x1b8)]+_0xbaeb9b(0x1d4)+_0x3151c2);return[null,null,null];}}static async['waitForBuildStatus'](){const _0x20cdc7=a129_0xfa4b45,_0x5df966={'CBlxG':'true','NyvAo':_0x20cdc7(0x17e),'mEDXi':function(_0x269122,_0xcfb3b6){return _0x269122(_0xcfb3b6);}},_0x162b8f=process[_0x20cdc7(0x181)][_0x20cdc7(0x196)];if([_0x5df966[_0x20cdc7(0x1f0)],_0x5df966[_0x20cdc7(0x1eb)]]['includes'](_0x162b8f))return;while([_0x5df966[_0x20cdc7(0x1f0)],_0x5df966[_0x20cdc7(0x1eb)]][_0x20cdc7(0x219)](_0x162b8f)){await _0x5df966[_0x20cdc7(0x1b9)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a129_0xfa4b45(0x1c8)](_0x4e4a31){const _0x5d917c=a129_0xfa4b45,_0x5f2db6={};_0x5f2db6[_0x5d917c(0x228)]=_0x5d917c(0x1a3),_0x5f2db6[_0x5d917c(0x204)]='Test_End_Upload',_0x5f2db6[_0x5d917c(0x1d3)]=_0x5d917c(0x1e4),_0x5f2db6[_0x5d917c(0x20b)]=_0x5d917c(0x224),_0x5f2db6['qxiLj']='Hook_Start_Upload',_0x5f2db6['hMeWh']=_0x5d917c(0x19c),_0x5f2db6['pCQoK']=_0x5d917c(0x1cf);const _0x37fb95=_0x5f2db6,_0xf15008={};return _0xf15008[_0x5d917c(0x1d8)]=_0x37fb95[_0x5d917c(0x228)],_0xf15008['TestRunFinished']=_0x37fb95[_0x5d917c(0x204)],_0xf15008['TestRunSkipped']=_0x37fb95[_0x5d917c(0x1d3)],_0xf15008[_0x5d917c(0x1ff)]=_0x37fb95[_0x5d917c(0x20b)],_0xf15008['HookRunStarted']=_0x37fb95[_0x5d917c(0x1a4)],_0xf15008[_0x5d917c(0x1cc)]=_0x37fb95[_0x5d917c(0x21e)],_0xf15008['CBTSessionCreated']=_0x37fb95[_0x5d917c(0x1cb)],_0xf15008[_0x4e4a31[_0x5d917c(0x1c5)]];}static async[a129_0xfa4b45(0x210)](_0x3b40a3,_0x2ab69e=0x0,_0x3e3841=null){const _0x36aaa1=a129_0xfa4b45,_0xb3aca7={'HyjWM':function(_0x1c4233,_0x5b4189){return _0x1c4233===_0x5b4189;},'hvIqS':'sendTraceZip','EFhet':function(_0x543563,_0x5e8083){return _0x543563!==_0x5e8083;},'ukyHw':_0x36aaa1(0x21c),'rIZNx':_0x36aaa1(0x1dc),'owDsa':function(_0x5b9601,_0xd17402){return _0x5b9601===_0xd17402;},'Oqtuo':function(_0x56840b,_0x1e3814,_0x6c247a,_0x4c6c1d,_0x3cd8b6){return _0x56840b(_0x1e3814,_0x6c247a,_0x4c6c1d,_0x3cd8b6);},'NJiAn':'POST','zMjrx':function(_0x31e7e0,_0x511727){return _0x31e7e0(_0x511727);},'vfNuO':function(_0x494aba,_0x6350b8){return _0x494aba!==_0x6350b8;},'SVFeS':'Batch-Queue','OfLJp':function(_0x13a801,_0x3533b0){return _0x13a801-_0x3533b0;},'oeKLn':_0x36aaa1(0x1ce),'WOWYD':'success','LArcM':function(_0x1ca687,_0x4b0245){return _0x1ca687(_0x4b0245);},'toSxK':function(_0x4e2de7,_0x4b1e4c){return _0x4e2de7!==_0x4b1e4c;},'mRGcY':function(_0xa9cee2,_0x4a4c6a){return _0xa9cee2!==_0x4a4c6a;},'iBNWS':function(_0x2065e0,_0x1198fb){return _0x2065e0===_0x1198fb;},'HQnDA':_0x36aaa1(0x1e7)};_0xb3aca7[_0x36aaa1(0x1ae)](_0x3e3841,_0xb3aca7[_0x36aaa1(0x1d5)])&&logger[_0x36aaa1(0x227)]('Sending\x20trace\x20zip\x20for\x20test:\x20'+_0x3b40a3[_0x36aaa1(0x18e)][0x0][_0x36aaa1(0x1f7)]);const _0x16aefa=await this[_0x36aaa1(0x1c8)](_0x3b40a3);let _0x466267=_0x3b40a3,_0xd106dd=EVENT_ENDPOINT;_0xb3aca7[_0x36aaa1(0x1c0)](_0x3e3841,_0xb3aca7[_0x36aaa1(0x1d5)])&&this[_0x36aaa1(0x1e8)][_0x36aaa1(0x18b)]();const {shouldProceed:_0xd3c8ee,proceedWithData:_0x35eebb,proceedWithUrl:_0x4acf75}=this['requestQueueHandler'][_0x36aaa1(0x18d)](_0x3b40a3);if(!_0xd3c8ee)return;else _0x35eebb&&(_0x466267=_0x35eebb,_0xd106dd=_0x4acf75);const _0x4ce205={};_0x4ce205['Authorization']=_0x36aaa1(0x20c)+process[_0x36aaa1(0x181)][_0x36aaa1(0x1e0)],_0x4ce205[_0x36aaa1(0x1bb)]=_0xb3aca7[_0x36aaa1(0x212)],_0x4ce205[_0x36aaa1(0x208)]=_0xb3aca7[_0x36aaa1(0x1bf)];const _0x1af37d={};_0x1af37d[_0x36aaa1(0x1ab)]=_0x4ce205;const _0x37d41=_0x1af37d;let _0x5f08ae;try{_0xb3aca7[_0x36aaa1(0x1a9)](_0x3e3841,_0xb3aca7['hvIqS'])?(logger['debug']('Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20'+_0x3b40a3?.[_0x36aaa1(0x18e)][0x0]?.['test_run_uuid']),_0x5f08ae=await _0xb3aca7[_0x36aaa1(0x20e)](asyncAwaitNodeReq,_0xb3aca7['NJiAn'],_0xd106dd,_0x466267,_0x37d41),logger[_0x36aaa1(0x227)]('Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20'+_0x3b40a3?.[_0x36aaa1(0x18e)][0x0]?.['test_run_uuid'])):_0x5f08ae=await _0xb3aca7['Oqtuo'](nodeRequest,_0xb3aca7[_0x36aaa1(0x1de)],_0xd106dd,_0x466267,_0x37d41);if(_0x5f08ae[_0x36aaa1(0x1cd)][_0x36aaa1(0x1e7)]){const _0x25fb24={};_0x25fb24[_0x36aaa1(0x1d6)]=_0x5f08ae[_0x36aaa1(0x1cd)][_0x36aaa1(0x1e7)];throw _0x25fb24;}else{_0xb3aca7['zMjrx'](debug,(_0xb3aca7['vfNuO'](_0xd106dd,this['requestQueueHandler'][_0x36aaa1(0x200)])?_0x16aefa:_0xb3aca7['SVFeS'])+'['+_0x2ab69e+_0x36aaa1(0x1a8)),this['requestQueueHandler']['pendingUploads']=Math['max'](0x0,_0xb3aca7[_0x36aaa1(0x1da)](this[_0x36aaa1(0x1e8)][_0x36aaa1(0x1a5)],_0xb3aca7[_0x36aaa1(0x1ae)](_0xd106dd,_0xb3aca7['oeKLn'])?0x1:_0x466267[_0x36aaa1(0x215)]));const _0x4ae8d9={};return _0x4ae8d9[_0x36aaa1(0x220)]=_0xb3aca7[_0x36aaa1(0x18f)],_0x4ae8d9[_0x36aaa1(0x1d6)]='',_0x4ae8d9;}}catch(_0x799b25){_0x799b25['response']?_0xb3aca7[_0x36aaa1(0x19b)](debug,_0x36aaa1(0x1ad)+(_0xb3aca7['toSxK'](_0xd106dd,this[_0x36aaa1(0x1e8)][_0x36aaa1(0x200)])?_0x16aefa:_0xb3aca7[_0x36aaa1(0x1f4)])+_0x36aaa1(0x21b)+constants[_0x36aaa1(0x1b8)]+'\x20:\x20'+_0x799b25[_0x36aaa1(0x1ef)][_0x36aaa1(0x220)]+'\x20'+_0x799b25['response'][_0x36aaa1(0x198)]+'\x20'+util[_0x36aaa1(0x1e5)](_0x799b25[_0x36aaa1(0x1ef)][_0x36aaa1(0x1cd)])):_0xb3aca7['zMjrx'](debug,_0x36aaa1(0x1ad)+(_0xb3aca7[_0x36aaa1(0x1dd)](_0xd106dd,this[_0x36aaa1(0x1e8)]['eventUrl'])?_0x16aefa:_0xb3aca7['SVFeS'])+_0x36aaa1(0x21b)+constants[_0x36aaa1(0x1b8)]+_0x36aaa1(0x1df)+util['format'](_0x799b25));this[_0x36aaa1(0x1e8)][_0x36aaa1(0x1a5)]=Math[_0x36aaa1(0x17d)](0x0,_0xb3aca7['OfLJp'](this[_0x36aaa1(0x1e8)][_0x36aaa1(0x1a5)],_0xb3aca7[_0x36aaa1(0x1a7)](_0xd106dd,_0xb3aca7[_0x36aaa1(0x187)])?0x1:_0x466267['length']));const _0x45c00d={};return _0x45c00d[_0x36aaa1(0x220)]=_0xb3aca7[_0x36aaa1(0x1f2)],_0x45c00d['message']=_0x799b25['message']||(_0x799b25['response']?_0x799b25[_0x36aaa1(0x1ef)]['status']+':'+_0x799b25['response'][_0x36aaa1(0x198)]:_0x799b25),_0x45c00d;}}static async[a129_0xfa4b45(0x1c7)](_0x3f658f,_0x182608=0x0){const _0x2764b5=a129_0xfa4b45,_0x291b82={'ZLmTt':function(_0x30236f,_0x1ebd9f){return _0x30236f+_0x1ebd9f;},'qikfU':function(_0xfc24a0,_0x313c96){return _0xfc24a0(_0x313c96);},'ezvzD':_0x2764b5(0x1af),'fJTfv':'uuid','FTYBs':_0x2764b5(0x21f),'ELNhw':function(_0x55eadb,_0x172186,_0x4dd558){return _0x55eadb(_0x172186,_0x4dd558);},'vNSka':'uploadEventData','hWrwC':function(_0x4a9caa,_0x3fb78a){return _0x4a9caa===_0x3fb78a;},'XUADY':function(_0x109cd1,_0x1a98f7){return _0x109cd1!==_0x1a98f7;},'SdKRI':_0x2764b5(0x1a1),'nlZcT':function(_0x25062e,_0x4d8097){return _0x25062e===_0x4d8097;},'mRQMn':_0x2764b5(0x1dc),'XXacP':function(_0x28a5c1){return _0x28a5c1();},'xxswI':function(_0x589656,_0xdcccac){return _0x589656===_0xdcccac;},'qHWTU':function(_0x49d5b3,_0x2a1d58){return _0x49d5b3-_0x2a1d58;},'UzcOk':_0x2764b5(0x1e7),'TQKPB':_0x2764b5(0x225),'nRTMd':function(_0x4e2194,_0x1f5e5d){return _0x4e2194>=_0x1f5e5d;},'UkfYA':function(_0x43a8b2,_0x3f662d){return _0x43a8b2!==_0x3f662d;},'JSIKA':function(_0x4dda94,_0x303807){return _0x4dda94-_0x303807;},'AviCl':_0x2764b5(0x18c),'KAQwc':'false'},_0x44d79f=this[_0x2764b5(0x1c8)](_0x3f658f);_0x291b82[_0x2764b5(0x1a0)](trace,_0x2764b5(0x1e2)+_0x3f658f[_0x2764b5(0x1c5)]+'\x27\x20'+(bsSetupHelper['nestedKeyValue'](_0x3f658f,[_0x291b82[_0x2764b5(0x195)],_0x291b82[_0x2764b5(0x1aa)]])||bsSetupHelper['nestedKeyValue'](_0x3f658f,[_0x291b82[_0x2764b5(0x1d0)],_0x291b82[_0x2764b5(0x1aa)]])));if(!_0x291b82[_0x2764b5(0x218)](shouldProcessEventForTesthub,_0x3f658f[_0x2764b5(0x1c5)],_0x291b82[_0x2764b5(0x201)]))return;_0x291b82[_0x2764b5(0x19d)](_0x182608,0x0)&&process['env'][_0x2764b5(0x1e0)]&&_0x291b82['XUADY'](process['env'][_0x2764b5(0x1e0)],_0x291b82[_0x2764b5(0x1b2)])&&(this[_0x2764b5(0x1e8)][_0x2764b5(0x1a5)]+=0x1);if(_0x291b82[_0x2764b5(0x214)](process[_0x2764b5(0x181)][_0x2764b5(0x196)],_0x291b82['mRQMn'])||process['env'][_0x2764b5(0x205)]||_0x291b82[_0x2764b5(0x18a)](isPercyBuild)){if(_0x291b82[_0x2764b5(0x19a)](process[_0x2764b5(0x181)][_0x2764b5(0x1e0)],_0x291b82[_0x2764b5(0x1b2)])){_0x291b82[_0x2764b5(0x1a0)](debug,'EXCEPTION\x20IN\x20'+_0x44d79f+_0x2764b5(0x21b)+constants[_0x2764b5(0x1b8)]+'\x20:\x20missing\x20authentication\x20token'),this[_0x2764b5(0x1e8)][_0x2764b5(0x1a5)]=Math[_0x2764b5(0x17d)](0x0,_0x291b82[_0x2764b5(0x1f5)](this[_0x2764b5(0x1e8)]['pendingUploads'],0x1));const _0x52928d={};return _0x52928d['status']=_0x291b82[_0x2764b5(0x199)],_0x52928d[_0x2764b5(0x1d6)]=_0x291b82['TQKPB'],_0x52928d;}return await this[_0x2764b5(0x210)](_0x3f658f,_0x182608);}else{if(_0x291b82[_0x2764b5(0x206)](_0x182608,0x5)){_0x291b82[_0x2764b5(0x1a0)](debug,'EXCEPTION\x20IN\x20'+_0x44d79f+_0x2764b5(0x21b)+constants[_0x2764b5(0x1b8)]+_0x2764b5(0x185)+_0x44d79f+_0x2764b5(0x20a));_0x291b82[_0x2764b5(0x221)](process[_0x2764b5(0x181)]['BROWSERSTACK_TESTHUB_JWT'],_0x291b82[_0x2764b5(0x1b2)])&&(this[_0x2764b5(0x1e8)]['pendingUploads']=Math[_0x2764b5(0x17d)](0x0,_0x291b82['JSIKA'](this['requestQueueHandler'][_0x2764b5(0x1a5)],0x1)));const _0x5221ae={};return _0x5221ae[_0x2764b5(0x220)]=_0x291b82['UzcOk'],_0x5221ae[_0x2764b5(0x1d6)]=_0x291b82[_0x2764b5(0x197)],_0x5221ae;}else _0x291b82['XUADY'](process[_0x2764b5(0x181)]['BS_TESTOPS_BUILD_COMPLETED'],_0x291b82[_0x2764b5(0x1ca)])&&_0x291b82[_0x2764b5(0x218)](setTimeout,()=>{const _0x2416e2=_0x2764b5;this[_0x2416e2(0x1c7)](_0x3f658f,_0x291b82['ZLmTt'](_0x182608,0x1));},0x3e8);}}}function a129_0x35be(_0x56a50a,_0x49e65c){const _0x14154c=a129_0x1415();return a129_0x35be=function(_0x35be77,_0x2b0eba){_0x35be77=_0x35be77-0x17c;let _0x26754a=_0x14154c[_0x35be77];return _0x26754a;},a129_0x35be(_0x56a50a,_0x49e65c);}module[a129_0xfa4b45(0x1c1)]=SessionHandler;
|
|
1
|
+
const a129_0x1dbb17=a129_0xc2e4;(function(_0x5b12cd,_0x5d10b9){const _0x5d1f01=a129_0xc2e4,_0x225f42=_0x5b12cd();while(!![]){try{const _0x3fbe0=parseInt(_0x5d1f01(0x1d7))/0x1+parseInt(_0x5d1f01(0x20d))/0x2+-parseInt(_0x5d1f01(0x1eb))/0x3+-parseInt(_0x5d1f01(0x239))/0x4+parseInt(_0x5d1f01(0x1fc))/0x5*(-parseInt(_0x5d1f01(0x253))/0x6)+parseInt(_0x5d1f01(0x23c))/0x7+parseInt(_0x5d1f01(0x227))/0x8;if(_0x3fbe0===_0x5d10b9)break;else _0x225f42['push'](_0x225f42['shift']());}catch(_0x36988a){_0x225f42['push'](_0x225f42['shift']());}}}(a129_0x1843,0x20bbd));function a129_0xc2e4(_0x4bfacd,_0x16db55){const _0x184348=a129_0x1843();return a129_0xc2e4=function(_0xc2e412,_0x5c95f8){_0xc2e412=_0xc2e412-0x1a9;let _0x1656eb=_0x184348[_0xc2e412];return _0x1656eb;},a129_0xc2e4(_0x4bfacd,_0x16db55);}const bsSetupHelper=require(a129_0x1dbb17(0x24a)),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a129_0x1dbb17(0x1e6)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a129_0x1dbb17(0x240))[a129_0x1dbb17(0x1d3)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a129_0x1dbb17(0x211)),util=require('util'),constants=require(a129_0x1dbb17(0x1ff));function a129_0x1843(){const _0x27aed0=['UJzAh',']\x20event\x20successful!','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','format','BROWSERSTACK_RERUN','BS_TESTOPS_ALLOW_SCREENSHOTS','EXCEPTION\x20IN\x20','xQpNC','BS_TESTOPS_JWT','test_run_uuid','Test_Start_Upload','HookRunFinished','Test_Skipped_Upload','api/v1/event','bWRIo','jNEuL','Content-Type','Ooskh','GRpjE','true','launch','yOJLO','RaKzZ','ULvmQ','ERROR_INVALID_CREDENTIALS','TEST_REPORTING_ANALYTICS','winstonLogger','Bearer\x20','taAFH','wGxrj','196824sHHOBY','TestRunFinished','BROWSERSTACK_BUILD_RUN_IDENTIFIER','uuid','XOuUY','event_type','length','max','VcPLs','YxXmu','UqdWk','logs','fhZRq','Sending\x20trace\x20zip\x20for\x20test:\x20','ERROR_ACCESS_DENIED','./utils','projectName','lTTZf','jhAFT','EkXus','104439zxmhAd','getInstance','username','cwd','sendEventData','frameworkName','IIsvD','includes','Test_End_Upload','Batch-Queue','X-BSTACK-TESTOPS','inspect','getHostInfo','headers','requestQueueHandler','allow_screenshots','buildDescription','85QsxMpq','test_run','BvMJt','../../bin/utils/constants','djPfC','toISOString','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','resolve','null','response','pPIGL','woIbh','aZkMH','buildName','mTuwg','doyrg','377814XiLZFI','ATNdG','uploadEventData','hgoYo','../../helpers/testhub/utils','WBSGH','YfIoN','\x20:\x20missing\x20authentication\x20token','getUserName','errorType','GCbFk','\x20REQUEST\x20TO\x20','nestedKeyValue','OmWUt','BS_A11Y_JWT','frameworkVersion','lgDmN','Htjik','jiFeY','false','\x20:\x20','build_hashed_id','error','info','kHcee','QyNBb','522040ZoXNlX','json','lfXuJ','debug','password','gzmol','TestRunSkipped','MSPnn','env','Sxvcv','sendTraceZip','TaAXi','api/v1/builds','bkebr','pendingUploads','Processing\x20event\x20-\x20\x27','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','BwXZx','485928xEYaOB','DnRen','jwt','382123MWsWwN','DioQL','LogCreated','POST','../logger','BROWSERSTACK_TESTHUB_UUID','getAgentVersion','BROWSERSTACK_TESTHUB_JWT','PQfMK','basename','toString','RDgdn','YPjPT','Hook_End_Upload','../helper','AihHp','vwIxQ','Data\x20upload\x20to\x20BrowserStack\x20','\x20failed\x20due\x20to\x20','TeiSn','getGitMetaData','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','add','75954bYFjmK','waitForBuildStatus','message','browserstackAutomation','exports','Hook_Start_Upload','YErto','TTiEY','YgaeE','XChJz','SjUXh','getCiInfo','data','aDGDM','Authorization','BS_TESTOPS_BUILD_HASHED_ID','BS_TESTOPS_BUILD_COMPLETED','icDAp','status','getLogTag','ElNry','stringify','lVmby','statusText','jKBYb','success','start','eventUrl','buildIdentifier','\x20retry\x20runs\x20exceeded'];a129_0x1843=function(){return _0x27aed0;};return a129_0x1843();}class SessionHandler{static [a129_0x1dbb17(0x1f9)]=RequestQueueHandler[a129_0x1dbb17(0x1ec)]();static async[a129_0x1dbb17(0x1cd)](_0x5bbb9d,_0x317235){const _0x3fb216=a129_0x1dbb17,_0x3c2b43={'taAFH':function(_0x21ba2d,_0x58e2cb){return _0x21ba2d||_0x58e2cb;},'ULvmQ':function(_0x1acc16,_0x1cddf4){return _0x1acc16||_0x1cddf4;},'YfIoN':function(_0x4808c6,_0x5edd0d){return _0x4808c6===_0x5edd0d;},'Htjik':function(_0x395249,_0x4eca71){return _0x395249(_0x4eca71);},'jNEuL':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','fhZRq':'false','UJzAh':_0x3fb216(0x228),'IIsvD':function(_0x2170e0,_0xfa3429){return _0x2170e0(_0xfa3429);},'GRpjE':function(_0x2ae4ba,_0x3e4da6){return _0x2ae4ba(_0x3e4da6);},'RDgdn':function(_0x498743,_0x332fa4,_0x5561cd,_0x2d4fd5,_0x23a64c){return _0x498743(_0x332fa4,_0x5561cd,_0x2d4fd5,_0x23a64c);},'jhAFT':'POST','woIbh':_0x3fb216(0x233),'gzmol':'Build\x20creation\x20successful!','wGxrj':function(_0xd146f2){return _0xd146f2();},'TaAXi':_0x3fb216(0x1cc),'YgaeE':_0x3fb216(0x205),'DnRen':function(_0x420c7c,_0x2ed149){return _0x420c7c(_0x2ed149);},'wBPKi':_0x3fb216(0x1d1),'QyNBb':_0x3fb216(0x1e5),'mTuwg':'ERROR_SDK_DEPRECATED'};logger[_0x3fb216(0x224)](_0x3fb216(0x1bb)+util[_0x3fb216(0x1f6)](_0x5bbb9d));const _0xc85557=bsSetupHelper[_0x3fb216(0x215)](_0x5bbb9d),_0x4c1d51=bsSetupHelper['getAccessKey'](_0x5bbb9d),_0x56a4a9=_0x3c2b43[_0x3fb216(0x1d5)](_0xc85557,'')+':'+_0x3c2b43[_0x3fb216(0x1d0)](_0x4c1d51,'');if(_0x3c2b43[_0x3fb216(0x213)](_0x56a4a9,':'))return _0x3c2b43[_0x3fb216(0x21e)](debug,_0x3c2b43[_0x3fb216(0x1c8)]),process[_0x3fb216(0x22f)][_0x3fb216(0x1ab)]=_0x3c2b43[_0x3fb216(0x1e3)],[null,null];let _0x3ab327=![],_0x38aa6c=![];if(_0x5bbb9d[_0x3fb216(0x256)]&&_0x5bbb9d['app'])_0x38aa6c=!![];else _0x5bbb9d[_0x3fb216(0x256)]&&(_0x3ab327=!![]);try{const _0x10b23a={'format':_0x3c2b43[_0x3fb216(0x1b9)],'project_name':_0x5bbb9d[_0x3fb216(0x1e7)]||'','name':_0x5bbb9d[_0x3fb216(0x20a)]||path[_0x3fb216(0x245)](path[_0x3fb216(0x204)](process[_0x3fb216(0x1ee)]())),'build_identifier':_0x5bbb9d[_0x3fb216(0x1b7)],'description':_0x5bbb9d[_0x3fb216(0x1fb)]||'','start_time':new Date()[_0x3fb216(0x201)](),'tags':_0x3c2b43['Htjik'](getCustomTags,_0x5bbb9d),'host_info':bsSetupHelper[_0x3fb216(0x1f7)](),'ci_info':bsSetupHelper[_0x3fb216(0x25e)](),'build_run_identifier':process[_0x3fb216(0x22f)][_0x3fb216(0x1d9)],'failed_tests_rerun':process['env'][_0x3fb216(0x1bd)]||![],'version_control':await bsSetupHelper[_0x3fb216(0x250)](),'observability_version':{'frameworkName':_0x317235[_0x3fb216(0x1f0)],'frameworkVersion':_0x317235[_0x3fb216(0x21c)],'sdkVersion':bsSetupHelper[_0x3fb216(0x242)]()},'product_map':_0x3c2b43['IIsvD'](getProductMap,_0x5bbb9d),'test_orchestration':_0x3c2b43[_0x3fb216(0x1cb)](getTestOrchestrationBuildStartData,_0x5bbb9d)},_0x2cc746={};_0x2cc746[_0x3fb216(0x1ed)]=_0xc85557,_0x2cc746[_0x3fb216(0x22b)]=_0x4c1d51;const _0x522ddd={'auth':_0x2cc746,'headers':_0x3c2b43[_0x3fb216(0x1f1)](getDefaultHeaders,![])},_0x4364a8=await _0x3c2b43[_0x3fb216(0x247)](nodeRequest,_0x3c2b43[_0x3fb216(0x1e9)],_0x3c2b43[_0x3fb216(0x208)],_0x10b23a,_0x522ddd);_0x3c2b43[_0x3fb216(0x1cb)](debug,_0x3c2b43[_0x3fb216(0x22c)]);const _0x49823f=_0x4364a8[_0x3fb216(0x25f)];_0x49823f[_0x3fb216(0x222)]&&(process[_0x3fb216(0x22f)][_0x3fb216(0x241)]=_0x49823f['build_hashed_id']);if(_0x3c2b43[_0x3fb216(0x1d6)](isTestObservabilitySession)){process[_0x3fb216(0x22f)]['BS_TESTOPS_BUILD_COMPLETED']=_0x3c2b43[_0x3fb216(0x232)];if(_0x49823f[_0x3fb216(0x23b)]){process['env']['BS_TESTOPS_JWT']=_0x49823f[_0x3fb216(0x23b)];const _0x523179={};_0x523179[_0x3fb216(0x1ed)]=_0xc85557,_0x523179[_0x3fb216(0x22b)]=_0x4c1d51,process[_0x3fb216(0x22f)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x3fb216(0x1b0)](_0x523179);}_0x49823f[_0x3fb216(0x222)]&&(process['env'][_0x3fb216(0x1aa)]=_0x49823f[_0x3fb216(0x222)]),_0x49823f[_0x3fb216(0x1fa)]&&(process[_0x3fb216(0x22f)][_0x3fb216(0x1be)]=_0x49823f['allow_screenshots'][_0x3fb216(0x246)]());}return[_0x4364a8['data'][_0x3fb216(0x23b)],_0x4364a8[_0x3fb216(0x25f)]['build_hashed_id'],_0x4364a8[_0x3fb216(0x25f)][_0x3fb216(0x1fa)]];}catch(_0x33c672){process[_0x3fb216(0x22f)]['BROWSERSTACK_TESTHUB_UUID']=_0x3c2b43[_0x3fb216(0x25b)],process[_0x3fb216(0x22f)][_0x3fb216(0x1ab)]=_0x3c2b43[_0x3fb216(0x1e3)],process['env'][_0x3fb216(0x1c1)]=_0x3c2b43[_0x3fb216(0x25b)],process['env'][_0x3fb216(0x1aa)]=_0x3c2b43['YgaeE'],process[_0x3fb216(0x22f)][_0x3fb216(0x1be)]=_0x3c2b43['YgaeE'];_0x33c672[_0x3fb216(0x206)]?_0x3c2b43[_0x3fb216(0x1f1)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+_0x33c672[_0x3fb216(0x206)][_0x3fb216(0x1ad)]+'\x20'+_0x33c672['response'][_0x3fb216(0x1b2)]+'\x20'+JSON[_0x3fb216(0x1b0)](_0x33c672['response']['data'])):_0x3c2b43[_0x3fb216(0x23a)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+(_0x33c672['message']||_0x33c672));if(_0x33c672&&_0x33c672[_0x3fb216(0x255)]){const _0x3f510e=_0x33c672[_0x3fb216(0x255)];switch(_0x33c672[_0x3fb216(0x216)]){case _0x3c2b43['wBPKi']:logger['error'](_0x3f510e);break;case _0x3c2b43[_0x3fb216(0x226)]:logger[_0x3fb216(0x224)](_0x3f510e);break;case _0x3c2b43[_0x3fb216(0x20b)]:logger[_0x3fb216(0x223)](_0x3f510e);break;default:logger[_0x3fb216(0x223)](_0x3f510e);}}else console[_0x3fb216(0x224)](_0x3fb216(0x24d)+constants[_0x3fb216(0x1d2)]+_0x3fb216(0x24e)+_0x33c672);return[null,null,null];}}static async[a129_0x1dbb17(0x254)](){const _0x51c74a=a129_0x1dbb17,_0x1799f1={'vwIxQ':'true','TeiSn':_0x51c74a(0x220),'MSPnn':function(_0x15f96b,_0x31905c){return _0x15f96b(_0x31905c);}},_0x5c5df4=process[_0x51c74a(0x22f)]['BS_TESTOPS_BUILD_COMPLETED'];if([_0x1799f1[_0x51c74a(0x24c)],_0x1799f1[_0x51c74a(0x24f)]][_0x51c74a(0x1f2)](_0x5c5df4))return;while([_0x1799f1[_0x51c74a(0x24c)],_0x1799f1[_0x51c74a(0x24f)]][_0x51c74a(0x1f2)](_0x5c5df4)){await _0x1799f1[_0x51c74a(0x22e)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a129_0x1dbb17(0x1ae)](_0x35c6a1){const _0x4b832e=a129_0x1dbb17,_0xdbbc04={};_0xdbbc04['XChJz']=_0x4b832e(0x1c3),_0xdbbc04[_0x4b832e(0x1b1)]=_0x4b832e(0x1f3),_0xdbbc04[_0x4b832e(0x1db)]=_0x4b832e(0x1c5),_0xdbbc04[_0x4b832e(0x248)]='Log_Upload',_0xdbbc04[_0x4b832e(0x1ac)]=_0x4b832e(0x258),_0xdbbc04['YxXmu']=_0x4b832e(0x249),_0xdbbc04[_0x4b832e(0x1ca)]='CBT_Upload';const _0x1c11ab=_0xdbbc04,_0x35a3f1={};return _0x35a3f1['TestRunStarted']=_0x1c11ab[_0x4b832e(0x25c)],_0x35a3f1[_0x4b832e(0x1d8)]=_0x1c11ab[_0x4b832e(0x1b1)],_0x35a3f1[_0x4b832e(0x22d)]=_0x1c11ab[_0x4b832e(0x1db)],_0x35a3f1[_0x4b832e(0x23e)]=_0x1c11ab[_0x4b832e(0x248)],_0x35a3f1['HookRunStarted']=_0x1c11ab[_0x4b832e(0x1ac)],_0x35a3f1[_0x4b832e(0x1c4)]=_0x1c11ab[_0x4b832e(0x1e0)],_0x35a3f1['CBTSessionCreated']=_0x1c11ab[_0x4b832e(0x1ca)],_0x35a3f1[_0x35c6a1[_0x4b832e(0x1dc)]];}static async[a129_0x1dbb17(0x1ef)](_0x5724cb,_0x3c4374=0x0,_0x10871f=null){const _0xcb99c6=a129_0x1dbb17,_0x37e4c0={'bkebr':function(_0x30866f,_0x31a536){return _0x30866f===_0x31a536;},'AihHp':_0xcb99c6(0x231),'kHcee':function(_0x519d59,_0x384925){return _0x519d59!==_0x384925;},'jKBYb':'application/json','pPIGL':'true','BwXZx':function(_0x4eb8f9,_0x1e4ea9){return _0x4eb8f9===_0x1e4ea9;},'YErto':function(_0x20090f,_0x4c1bc0,_0x479c27,_0x364bd4,_0x105465){return _0x20090f(_0x4c1bc0,_0x479c27,_0x364bd4,_0x105465);},'aDGDM':_0xcb99c6(0x23f),'bWRIo':function(_0x4e8a70,_0x203a53,_0x588ce3,_0x4439c8,_0x185a15){return _0x4e8a70(_0x203a53,_0x588ce3,_0x4439c8,_0x185a15);},'WBSGH':function(_0xe4a587,_0x1378e6){return _0xe4a587(_0x1378e6);},'PQfMK':function(_0xa58e33,_0x3fe750){return _0xa58e33!==_0x3fe750;},'GCbFk':_0xcb99c6(0x1f4),'aZkMH':function(_0x1695e0,_0x34acaf){return _0x1695e0-_0x34acaf;},'UqdWk':_0xcb99c6(0x1c6),'hctAy':_0xcb99c6(0x1b4),'EnfuB':function(_0x2caf2f,_0x139422){return _0x2caf2f(_0x139422);},'gXKqg':function(_0x8197fe,_0x228027){return _0x8197fe(_0x228027);},'ElNry':function(_0x297631,_0x4eb9a2){return _0x297631-_0x4eb9a2;},'DioQL':function(_0x15b1da,_0x1838f4){return _0x15b1da===_0x1838f4;},'RaKzZ':'error'};_0x37e4c0[_0xcb99c6(0x234)](_0x10871f,_0x37e4c0['AihHp'])&&logger[_0xcb99c6(0x22a)](_0xcb99c6(0x1e4)+_0x5724cb[_0xcb99c6(0x1e2)][0x0][_0xcb99c6(0x1c2)]);const _0x36c24b=await this[_0xcb99c6(0x1ae)](_0x5724cb);let _0x199acc=_0x5724cb,_0x5de4a1=EVENT_ENDPOINT;_0x37e4c0[_0xcb99c6(0x225)](_0x10871f,_0x37e4c0[_0xcb99c6(0x24b)])&&this[_0xcb99c6(0x1f9)][_0xcb99c6(0x1b5)]();const {shouldProceed:_0x50cb49,proceedWithData:_0xdb3993,proceedWithUrl:_0x59d7ef}=this[_0xcb99c6(0x1f9)][_0xcb99c6(0x252)](_0x5724cb);if(!_0x50cb49)return;else _0xdb3993&&(_0x199acc=_0xdb3993,_0x5de4a1=_0x59d7ef);const _0x3e12c7={};_0x3e12c7[_0xcb99c6(0x1a9)]=_0xcb99c6(0x1d4)+process[_0xcb99c6(0x22f)][_0xcb99c6(0x243)],_0x3e12c7[_0xcb99c6(0x1c9)]=_0x37e4c0[_0xcb99c6(0x1b3)],_0x3e12c7[_0xcb99c6(0x1f5)]=_0x37e4c0[_0xcb99c6(0x207)];const _0x4db7db={};_0x4db7db[_0xcb99c6(0x1f8)]=_0x3e12c7;const _0x6aeb5e=_0x4db7db;let _0x470bc5;try{_0x37e4c0[_0xcb99c6(0x238)](_0x10871f,_0x37e4c0[_0xcb99c6(0x24b)])?(logger[_0xcb99c6(0x22a)](_0xcb99c6(0x251)+_0x5724cb?.['logs'][0x0]?.[_0xcb99c6(0x1c2)]),_0x470bc5=await _0x37e4c0[_0xcb99c6(0x259)](asyncAwaitNodeReq,_0x37e4c0[_0xcb99c6(0x260)],_0x5de4a1,_0x199acc,_0x6aeb5e),logger[_0xcb99c6(0x22a)](_0xcb99c6(0x237)+_0x5724cb?.[_0xcb99c6(0x1e2)][0x0]?.[_0xcb99c6(0x1c2)])):_0x470bc5=await _0x37e4c0[_0xcb99c6(0x1c7)](nodeRequest,_0x37e4c0[_0xcb99c6(0x260)],_0x5de4a1,_0x199acc,_0x6aeb5e);if(_0x470bc5['data'][_0xcb99c6(0x223)]){const _0x34a0d0={};_0x34a0d0[_0xcb99c6(0x255)]=_0x470bc5[_0xcb99c6(0x25f)][_0xcb99c6(0x223)];throw _0x34a0d0;}else{_0x37e4c0[_0xcb99c6(0x212)](debug,(_0x37e4c0[_0xcb99c6(0x244)](_0x5de4a1,this[_0xcb99c6(0x1f9)][_0xcb99c6(0x1b6)])?_0x36c24b:_0x37e4c0[_0xcb99c6(0x217)])+'['+_0x3c4374+_0xcb99c6(0x1ba)),this[_0xcb99c6(0x1f9)][_0xcb99c6(0x235)]=Math[_0xcb99c6(0x1de)](0x0,_0x37e4c0[_0xcb99c6(0x209)](this[_0xcb99c6(0x1f9)]['pendingUploads'],_0x37e4c0['bkebr'](_0x5de4a1,_0x37e4c0[_0xcb99c6(0x1e1)])?0x1:_0x199acc['length']));const _0x1b40af={};return _0x1b40af[_0xcb99c6(0x1ad)]=_0x37e4c0['hctAy'],_0x1b40af[_0xcb99c6(0x255)]='',_0x1b40af;}}catch(_0x313e42){_0x313e42[_0xcb99c6(0x206)]?_0x37e4c0['EnfuB'](debug,_0xcb99c6(0x1bf)+(_0x37e4c0[_0xcb99c6(0x225)](_0x5de4a1,this[_0xcb99c6(0x1f9)][_0xcb99c6(0x1b6)])?_0x36c24b:_0x37e4c0[_0xcb99c6(0x217)])+_0xcb99c6(0x218)+constants[_0xcb99c6(0x1d2)]+_0xcb99c6(0x221)+_0x313e42['response']['status']+'\x20'+_0x313e42[_0xcb99c6(0x206)][_0xcb99c6(0x1b2)]+'\x20'+util[_0xcb99c6(0x1bc)](_0x313e42['response'][_0xcb99c6(0x25f)])):_0x37e4c0['gXKqg'](debug,_0xcb99c6(0x1bf)+(_0x37e4c0[_0xcb99c6(0x225)](_0x5de4a1,this[_0xcb99c6(0x1f9)][_0xcb99c6(0x1b6)])?_0x36c24b:_0x37e4c0[_0xcb99c6(0x217)])+_0xcb99c6(0x218)+constants[_0xcb99c6(0x1d2)]+'\x20:\x20'+util[_0xcb99c6(0x1bc)](_0x313e42));this['requestQueueHandler'][_0xcb99c6(0x235)]=Math['max'](0x0,_0x37e4c0[_0xcb99c6(0x1af)](this[_0xcb99c6(0x1f9)][_0xcb99c6(0x235)],_0x37e4c0[_0xcb99c6(0x23d)](_0x5de4a1,_0x37e4c0[_0xcb99c6(0x1e1)])?0x1:_0x199acc[_0xcb99c6(0x1dd)]));const _0x44a2d7={};return _0x44a2d7[_0xcb99c6(0x1ad)]=_0x37e4c0[_0xcb99c6(0x1cf)],_0x44a2d7[_0xcb99c6(0x255)]=_0x313e42[_0xcb99c6(0x255)]||(_0x313e42[_0xcb99c6(0x206)]?_0x313e42['response'][_0xcb99c6(0x1ad)]+':'+_0x313e42[_0xcb99c6(0x206)][_0xcb99c6(0x1b2)]:_0x313e42),_0x44a2d7;}}static async['uploadEventData'](_0x42548f,_0x4a991e=0x0){const _0x9bef2a=a129_0x1dbb17,_0x522139={'EzbLi':function(_0x20507a,_0x196887){return _0x20507a+_0x196887;},'hgoYo':function(_0x22117a,_0x3d7b8d){return _0x22117a(_0x3d7b8d);},'EkXus':_0x9bef2a(0x1fd),'Sxvcv':_0x9bef2a(0x1da),'djPfC':'hook_run','doyrg':function(_0x18b627,_0x4e56a5,_0x4e963f){return _0x18b627(_0x4e56a5,_0x4e963f);},'yOJLO':_0x9bef2a(0x20f),'oBheA':function(_0x5e9dda,_0xf22c99){return _0x5e9dda===_0xf22c99;},'lTTZf':function(_0x3dd92d,_0x4eb638){return _0x3dd92d!==_0x4eb638;},'BvMJt':_0x9bef2a(0x205),'SjUXh':_0x9bef2a(0x1cc),'iIhcT':function(_0x7fd783){return _0x7fd783();},'jiFeY':function(_0x105a72,_0x157afd){return _0x105a72===_0x157afd;},'IJXys':function(_0x1ee825,_0x10faa2){return _0x1ee825(_0x10faa2);},'lfXuJ':function(_0x14905e,_0x935203){return _0x14905e-_0x935203;},'ATNdG':'error','xMVNo':_0x9bef2a(0x202),'VcPLs':function(_0x3336fc,_0x39d721){return _0x3336fc>=_0x39d721;},'TTiEY':function(_0x9a01e4,_0x1917cf){return _0x9a01e4(_0x1917cf);},'aJPHH':'Retry\x20runs\x20exceeded','xQpNC':function(_0x9230b5,_0x227e1c){return _0x9230b5!==_0x227e1c;},'lgDmN':_0x9bef2a(0x220),'OmWUt':function(_0x54b23f,_0x4aec02,_0x354d27){return _0x54b23f(_0x4aec02,_0x354d27);}},_0x4ad9be=this[_0x9bef2a(0x1ae)](_0x42548f);_0x522139[_0x9bef2a(0x210)](trace,_0x9bef2a(0x236)+_0x42548f[_0x9bef2a(0x1dc)]+'\x27\x20'+(bsSetupHelper['nestedKeyValue'](_0x42548f,[_0x522139[_0x9bef2a(0x1ea)],_0x522139[_0x9bef2a(0x230)]])||bsSetupHelper[_0x9bef2a(0x219)](_0x42548f,[_0x522139[_0x9bef2a(0x200)],_0x522139[_0x9bef2a(0x230)]])));if(!_0x522139[_0x9bef2a(0x20c)](shouldProcessEventForTesthub,_0x42548f[_0x9bef2a(0x1dc)],_0x522139[_0x9bef2a(0x1ce)]))return;_0x522139['oBheA'](_0x4a991e,0x0)&&process['env'][_0x9bef2a(0x243)]&&_0x522139[_0x9bef2a(0x1e8)](process[_0x9bef2a(0x22f)][_0x9bef2a(0x243)],_0x522139[_0x9bef2a(0x1fe)])&&(this['requestQueueHandler'][_0x9bef2a(0x235)]+=0x1);if(_0x522139['oBheA'](process['env'][_0x9bef2a(0x1ab)],_0x522139[_0x9bef2a(0x25d)])||process[_0x9bef2a(0x22f)][_0x9bef2a(0x21b)]||_0x522139['iIhcT'](isPercyBuild)){if(_0x522139[_0x9bef2a(0x21f)](process['env'][_0x9bef2a(0x243)],_0x522139[_0x9bef2a(0x1fe)])){_0x522139['IJXys'](debug,'EXCEPTION\x20IN\x20'+_0x4ad9be+_0x9bef2a(0x218)+constants['TEST_REPORTING_ANALYTICS']+_0x9bef2a(0x214)),this[_0x9bef2a(0x1f9)][_0x9bef2a(0x235)]=Math[_0x9bef2a(0x1de)](0x0,_0x522139[_0x9bef2a(0x229)](this[_0x9bef2a(0x1f9)][_0x9bef2a(0x235)],0x1));const _0x2932bb={};return _0x2932bb[_0x9bef2a(0x1ad)]=_0x522139[_0x9bef2a(0x20e)],_0x2932bb['message']=_0x522139['xMVNo'],_0x2932bb;}return await this[_0x9bef2a(0x1ef)](_0x42548f,_0x4a991e);}else{if(_0x522139[_0x9bef2a(0x1df)](_0x4a991e,0x5)){_0x522139[_0x9bef2a(0x25a)](debug,_0x9bef2a(0x1bf)+_0x4ad9be+_0x9bef2a(0x218)+constants['TEST_REPORTING_ANALYTICS']+_0x9bef2a(0x203)+_0x4ad9be+_0x9bef2a(0x1b8));_0x522139[_0x9bef2a(0x1e8)](process[_0x9bef2a(0x22f)][_0x9bef2a(0x243)],_0x522139['BvMJt'])&&(this[_0x9bef2a(0x1f9)][_0x9bef2a(0x235)]=Math[_0x9bef2a(0x1de)](0x0,_0x522139[_0x9bef2a(0x229)](this[_0x9bef2a(0x1f9)]['pendingUploads'],0x1)));const _0x5053bc={};return _0x5053bc[_0x9bef2a(0x1ad)]=_0x522139[_0x9bef2a(0x20e)],_0x5053bc[_0x9bef2a(0x255)]=_0x522139['aJPHH'],_0x5053bc;}else _0x522139[_0x9bef2a(0x1c0)](process[_0x9bef2a(0x22f)]['BS_TESTOPS_BUILD_COMPLETED'],_0x522139[_0x9bef2a(0x21d)])&&_0x522139[_0x9bef2a(0x21a)](setTimeout,()=>{this['uploadEventData'](_0x42548f,_0x522139['EzbLi'](_0x4a991e,0x1));},0x3e8);}}}module[a129_0x1dbb17(0x257)]=SessionHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a130_0x117590=a130_0x5cce;(function(_0x36a5fa,_0x530aef){const _0x3bf816=a130_0x5cce,_0x58c0e0=_0x36a5fa();while(!![]){try{const _0x1c2f73=-parseInt(_0x3bf816(0x184))/0x1*(-parseInt(_0x3bf816(0x143))/0x2)+-parseInt(_0x3bf816(0x23b))/0x3*(-parseInt(_0x3bf816(0x231))/0x4)+parseInt(_0x3bf816(0x1cb))/0x5*(parseInt(_0x3bf816(0x1d7))/0x6)+-parseInt(_0x3bf816(0x1f9))/0x7*(parseInt(_0x3bf816(0x1b0))/0x8)+-parseInt(_0x3bf816(0x20a))/0x9*(parseInt(_0x3bf816(0x16f))/0xa)+parseInt(_0x3bf816(0x24d))/0xb+-parseInt(_0x3bf816(0x1e5))/0xc;if(_0x1c2f73===_0x530aef)break;else _0x58c0e0['push'](_0x58c0e0['shift']());}catch(_0x13a505){_0x58c0e0['push'](_0x58c0e0['shift']());}}}(a130_0x51ac,0x5aeed));const fs=require('fs'),path=require('path'),gitLastCommit=require('git-last-commit'),getRepoInfo=require('git-repo-info'),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require('./constants'),http=require(a130_0x117590(0x236)),https=require('https'),child_process=require(a130_0x117590(0x1ac)),getos=require(a130_0x117590(0x19e)),os=require('os'),logger=require(a130_0x117590(0x1bb))[a130_0x117590(0x1b3)],buildLogger=require(a130_0x117590(0x1bb))[a130_0x117590(0x22b)],bsSetupHelper=require(a130_0x117590(0x188)),requestSpy=require(a130_0x117590(0x1ff)),constants=require(a130_0x117590(0x1e2)),logPatcher=require(a130_0x117590(0x159)),util=require(a130_0x117590(0x178)),{fileLogger}=require('../logger'),PerformanceTester=require(a130_0x117590(0x161)),{isFunction}=require(a130_0x117590(0x222)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a130_0x117590(0x1eb)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require('../../../src/bin/utils/constants');exports[a130_0x117590(0x1ef)]=_0x25bb2d=>{const _0x1c1df8=a130_0x117590;fileLogger[_0x1c1df8(0x16c)]('['+new Date()[_0x1c1df8(0x13b)]()+'][\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x1c1df8(0x1e6)+_0x25bb2d);},exports[a130_0x117590(0x1c9)]=_0x9a833=>{const _0x5e0296=a130_0x117590,_0x586cda={};_0x586cda[_0x5e0296(0x21c)]=function(_0x39170f,_0x591411){return _0x39170f===_0x591411;},_0x586cda[_0x5e0296(0x1bc)]='true',_0x586cda['KgjRk']=function(_0x569d0d,_0x3f9cbf){return _0x569d0d===_0x3f9cbf;};const _0x125f23=_0x586cda;fileLogger[_0x5e0296(0x1c9)]('['+new Date()[_0x5e0296(0x13b)]()+_0x5e0296(0x245)+constants[_0x5e0296(0x1d9)]+_0x5e0296(0x1e6)+_0x9a833),(_0x125f23['sGrmr'](process[_0x5e0296(0x18f)][_0x5e0296(0x1a8)],_0x125f23[_0x5e0296(0x1bc)])||_0x125f23[_0x5e0296(0x246)](process[_0x5e0296(0x18f)][_0x5e0296(0x1a8)],'1')||_0x125f23[_0x5e0296(0x21c)](process['env'][_0x5e0296(0x156)],_0x125f23[_0x5e0296(0x1bc)])||_0x125f23[_0x5e0296(0x246)](process[_0x5e0296(0x18f)][_0x5e0296(0x156)],'1'))&&consoleHolder[_0x5e0296(0x1f1)]('\x0a['+new Date()['toISOString']()+'][\x20'+constants[_0x5e0296(0x1d9)]+_0x5e0296(0x1e6)+_0x9a833+'\x0a');};const a130_0x5ebb0e={};function a130_0x51ac(){const _0x2abab7=['mocha','null','winstonLogger','relativeTestFilePath','codeceptjs','fdylR','LwyEi','CODECEPT_CUCUMBER','rootDir','aiNkC','../logger','ZUJRK','fkUSW','sendPlatformDetails','QYnvn','readConfig','HrHRW','platformName','hostname','undefined','KjtRA','isInternalHook','YZwPR','SqApi','debug','wKSEx','5GcUAJq','capabilities','getUserCredentials','jXHOM','KZWcg','automate','join','UZAkF','CVmDY','dist','getCustomTags','map_','2667840ChNNcQ','PathHelper','TEST_REPORTING_ANALYTICS','failureData','BS_TESTOPS_BUILD_HASHED_ID','iznOG','true','NkoGU','X-BSTACK-TESTOPS','body','zPDPS','../../bin/utils/constants','HTTP','isUndefined','13293264rrCbmb','\x20]\x20','err','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','split','browserstack','../performance/constants','turboScaleGridDetails','platform','ATS_HUB_URL_REGEX','trace','modifyReqForTraceUpload','log','getUserName','0|3|5|1|2|4','nWBsX','application/json','extractValuesWithRegexKeyMatch','\x20:\x20','rXlIf','7EpJdml','WqqjZ','gyoOO','BROWSERSTACK_TEST_OBSERVABILITY','map','printBuildLink','../../helpers/request-spy','tLIXv','BROWSERSTACK_TESTHUB_JWT','getPackageVersion','relative','iEBmo','O11Y_URL','Agent','Bearer\x20','INqQy','BROWSERSTACK_RERUN_TESTS','45XyyVEl','now','pCcxH','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','QDHxe','BROWSERSTACK_TEST_REPORTING','Visit\x20','UnhandledError','getCapabilities','Windows','json','sDZlF','parse','qjhRN','CUSTOM_TAG','O11yHashedID','nYHFy','eKsOe','sGrmr','dGEko','release','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','avQeO','lpNpW','lodash','getPlatformVersion','Qlssj','PLAYWRIGHT','spy','match','AssertionError','../../bin/v2/browserstackCLI','__cloud_provider___','buildLogger','nodeRequest','addRequestSpy','getBrowserVersion','maxSockets','length','2392xfpkls','AjLGj','ESXGH','Error\x20in\x20importing\x20windows-release\x20','prefix','http','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','keys','bs:addPlatformDetails:','Authorization','2295wRIEJB','platformVersion','FFOua','getBuildTags','stack','then','KXvnB','@cucumber/cucumber','QWkfa','IWfnt','][\x20','KgjRk','test_run_uuid','MOPny','TEST_OBSERVABILITY_BUILD_TAG','pFMve','shouldReRunObservabilityTests','DJYBo','8183923nFwsCz','Content-Type','catch','gbbTz','JEST','bstack:options','trim','stringify','bGneV','VLjOh','Linux','BRwva','HUB_URL_REGEX','^CUSTOM_TAG_\x5cd+$','zUKzm','GSYem','TEST_ATTACHMENT','toISOString','getSyncScript','linux','FlGgt','message','includes','push','UtKCT','4084igwLQc','fqxiO','XQsSG','local_grid','nShJw','emit','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','keepAlive','lddCu','removeAnsiColors','tsBdm','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','bswwD','\x20test\x20instance\x20:\x20','UIbWp','object','data','dhjta','Unknown','BROWSERSTACK_OBSERVABILITY_DEBUG','expanded','KbCcF','../../bin/utils/logPatcher','test','byEze','YQHdk','prefixTestPath','CMneb','agent','url','../performance/performance-tester','getFrameworkVersion','format','WQdzv','getBrowserStackConfig','toString','pMgTe','pid','[%s][\x20','formData','getPlatform','silly','JhXIA','getObservabilityLinkedProductName','788230XGwogm','lKAgp','maxTotalSockets','@playwright/test','Error\x20in\x20getting\x20Linux\x20Details','patchConsoleLogger','TEST_REPORTING_BUILD_TAG','backtrace','timeout','util','hCmdH','uoviO','execSync','host','logs','default','ZsTJe','Huffo','mZARW','customTag','getSession','116nqBKbE','https','error','cwd','../helper','yPrrc','forEach','getAccessKey','pIdSw','getFailureType','heoDA','env','measureWrapper','OS\x20X','xBpZx','TEST_PLATFORM','gOJTg','asyncAwaitNodeReq','getBrowserName','lHVQw','config','vGrcP','qZKfU','/builds/','FJlxJ','browserstack_executor:\x20','getos','CUQgZ','info','phkLZ','headers','IRifC','ucHro','DNjuG','app','mhUfc','BROWSERSTACK_TEST_REPORTING_DEBUG','fileName','bs:addLog:','LogCreated','child_process','qQMiB','CfGql','umAjQ','69016zHojxd'];a130_0x51ac=function(){return _0x2abab7;};return a130_0x51ac();}a130_0x5ebb0e[a130_0x117590(0x14a)]=!![],a130_0x5ebb0e[a130_0x117590(0x177)]=0xea60,a130_0x5ebb0e[a130_0x117590(0x22f)]=0x2,a130_0x5ebb0e['maxTotalSockets']=0x2;function a130_0x5cce(_0x1b3ff6,_0x175047){const _0x51ac46=a130_0x51ac();return a130_0x5cce=function(_0x5cce24,_0x3ed229){_0x5cce24=_0x5cce24-0x139;let _0x4ee2af=_0x51ac46[_0x5cce24];return _0x4ee2af;},a130_0x5cce(_0x1b3ff6,_0x175047);}const httpKeepAliveAgent=new http[(a130_0x117590(0x206))](a130_0x5ebb0e),a130_0x2dff6b={};a130_0x2dff6b[a130_0x117590(0x14a)]=!![],a130_0x2dff6b['timeout']=0xea60,a130_0x2dff6b[a130_0x117590(0x22f)]=0x2,a130_0x2dff6b[a130_0x117590(0x171)]=0x2;const httpsKeepAliveAgent=new https[(a130_0x117590(0x206))](a130_0x2dff6b),a130_0x1eaaea={};a130_0x1eaaea[a130_0x117590(0x14a)]=!![],a130_0x1eaaea[a130_0x117590(0x177)]=0xea60,a130_0x1eaaea['maxSockets']=0x2,a130_0x1eaaea[a130_0x117590(0x171)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a130_0x117590(0x206))](a130_0x1eaaea),a130_0x2f9031={};a130_0x2f9031['keepAlive']=!![],a130_0x2f9031['timeout']=0xea60,a130_0x2f9031['maxSockets']=0x2,a130_0x2f9031['maxTotalSockets']=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a130_0x117590(0x206))](a130_0x2f9031);exports[a130_0x117590(0x24b)]=()=>{const _0x298b2e=a130_0x117590,_0x2392b3={};_0x2392b3[_0x298b2e(0x13e)]=function(_0x40f959,_0x37da25){return _0x40f959!==_0x37da25;},_0x2392b3[_0x298b2e(0x194)]=_0x298b2e(0x1b2);const _0x2a19d9=_0x2392b3;return process[_0x298b2e(0x18f)][_0x298b2e(0x209)]&&_0x2a19d9[_0x298b2e(0x13e)](process['env'][_0x298b2e(0x209)],_0x2a19d9[_0x298b2e(0x194)])?!![]:![];},exports['isTestObservabilitySession']=()=>{const _0x448cca=a130_0x117590,_0x5babfe={};_0x5babfe[_0x448cca(0x1ba)]=function(_0x5b6cb1,_0x6e190d){return _0x5b6cb1===_0x6e190d;},_0x5babfe[_0x448cca(0x200)]=_0x448cca(0x1dd),_0x5babfe[_0x448cca(0x255)]=function(_0x52fbb9,_0x422883){return _0x52fbb9===_0x422883;},_0x5babfe[_0x448cca(0x1a4)]=function(_0x1513d6,_0x128abd){return _0x1513d6===_0x128abd;};const _0x5755bb=_0x5babfe;let _0x1c31fa=!![];return process[_0x448cca(0x18f)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x1c31fa=_0x5755bb[_0x448cca(0x1ba)](process[_0x448cca(0x18f)]['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0x5755bb['tLIXv'])),process[_0x448cca(0x18f)]['BROWSERSTACK_TEST_OBSERVABILITY']&&(_0x1c31fa=_0x5755bb[_0x448cca(0x255)](process[_0x448cca(0x18f)][_0x448cca(0x1fc)],_0x5755bb['tLIXv'])),process[_0x448cca(0x18f)][_0x448cca(0x20f)]&&(_0x1c31fa=_0x5755bb['ucHro'](process[_0x448cca(0x18f)][_0x448cca(0x20f)],_0x5755bb[_0x448cca(0x200)])),_0x1c31fa;},exports['parseFileNames']=_0xdce2a1=>{const _0x831928=a130_0x117590;if(bsSetupHelper[_0x831928(0x1e4)](_0xdce2a1))return undefined;try{return _0xdce2a1[_0x831928(0x253)]()[_0x831928(0x1e9)](',');}catch(_0x2b8e89){return undefined;}},exports[a130_0x117590(0x1fe)]=()=>{const _0x150b3d=a130_0x117590,_0x3756b4={'lKAgp':function(_0x5139a9,_0x56cd52){return _0x5139a9(_0x56cd52);},'sDZlF':_0x150b3d(0x229),'nWBsX':function(_0x1e109d,_0x4aa638){return _0x1e109d!==_0x4aa638;},'qQMiB':_0x150b3d(0x1b2),'WQdzv':_0x150b3d(0x1c4)};return PerformanceTester[_0x150b3d(0x190)](PerformanceO11yEvents['PRINT_BUILDLINK'],async()=>{const _0xb6dd30=_0x150b3d;try{const _0x51a493=_0x3756b4[_0xb6dd30(0x170)](require,_0x3756b4[_0xb6dd30(0x215)]);if(_0x51a493[_0xb6dd30(0x219)]){const _0x1a97e0='Visit\x20'+O11Y_URL+_0xb6dd30(0x19b)+_0x51a493[_0xb6dd30(0x219)]+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a';buildLogger[_0xb6dd30(0x1a0)](_0x1a97e0);return;}if(process['env'][_0xb6dd30(0x1db)]&&_0x3756b4[_0xb6dd30(0x1f4)](process[_0xb6dd30(0x18f)][_0xb6dd30(0x1db)],_0x3756b4[_0xb6dd30(0x1ad)])&&_0x3756b4['nWBsX'](process[_0xb6dd30(0x18f)][_0xb6dd30(0x1db)],_0x3756b4[_0xb6dd30(0x164)])){const _0x54b7e3=_0xb6dd30(0x210)+constants[_0xb6dd30(0x205)]+_0xb6dd30(0x19b)+process['env']['BS_TESTOPS_BUILD_HASHED_ID']+_0xb6dd30(0x1e8);buildLogger[_0xb6dd30(0x1a0)](_0x54b7e3);}}catch(_0x411032){logger[_0xb6dd30(0x186)](util[_0xb6dd30(0x163)](_0xb6dd30(0x169)+constants[_0xb6dd30(0x1d9)]+'\x20]\x20Build\x20Not\x20Found\x20%s',new Date()['toISOString'](),_0x411032['stack']||_0x411032[_0xb6dd30(0x13f)]||_0x411032));}})();},exports[a130_0x117590(0x18d)]=_0x1191d4=>{const _0x461fe5=a130_0x117590,_0x6fc6be={};_0x6fc6be[_0x461fe5(0x1e1)]=_0x461fe5(0x228),_0x6fc6be[_0x461fe5(0x220)]=_0x461fe5(0x211);const _0x5a7616=_0x6fc6be;if(!_0x1191d4)return null;return _0x1191d4[_0x461fe5(0x166)]()['match'](/AssertionError/)?_0x5a7616[_0x461fe5(0x1e1)]:_0x5a7616['avQeO'];},exports[a130_0x117590(0x162)]=_0x4264ad=>{const _0x4c0d3c=a130_0x117590,_0x42c8db={};_0x42c8db['xBpZx']=_0x4c0d3c(0x1b1),_0x42c8db[_0x4c0d3c(0x15c)]=_0x4c0d3c(0x172),_0x42c8db[_0x4c0d3c(0x147)]=_0x4c0d3c(0x1b5),_0x42c8db[_0x4c0d3c(0x221)]='jest',_0x42c8db[_0x4c0d3c(0x189)]=_0x4c0d3c(0x242);const _0x10dca5=_0x42c8db;let _0x133ab7=null;switch(_0x4264ad){case FRAMEWORKS['MOCHA']:_0x133ab7=bsSetupHelper[_0x4c0d3c(0x202)](_0x10dca5[_0x4c0d3c(0x192)]);break;case FRAMEWORKS[_0x4c0d3c(0x225)]:_0x133ab7=bsSetupHelper[_0x4c0d3c(0x202)](_0x10dca5[_0x4c0d3c(0x15c)]);break;case FRAMEWORKS['CODECEPT']:case FRAMEWORKS[_0x4c0d3c(0x1b8)]:_0x133ab7=bsSetupHelper[_0x4c0d3c(0x202)](_0x10dca5[_0x4c0d3c(0x147)]);break;case FRAMEWORKS[_0x4c0d3c(0x251)]:_0x133ab7=bsSetupHelper[_0x4c0d3c(0x202)](_0x10dca5[_0x4c0d3c(0x221)]);break;case FRAMEWORKS['CUCUMBER']:_0x133ab7=bsSetupHelper[_0x4c0d3c(0x202)](_0x10dca5[_0x4c0d3c(0x189)]);break;default:break;}return _0x133ab7;},exports[a130_0x117590(0x165)]=_0x4d755f=>{const _0x5af61b=a130_0x117590;let _0x5b4f39=null;switch(_0x4d755f){case FRAMEWORKS[_0x5af61b(0x225)]:_0x5b4f39=process[_0x5af61b(0x18f)]['BROWSERSTACK_CONFIG_FILE_PATH'];break;}if(!_0x5b4f39)return;return bsSetupHelper[_0x5af61b(0x1c0)](_0x5b4f39,![]);},exports[a130_0x117590(0x1cd)]=_0x5a69ba=>{const _0x44c82d=a130_0x117590;return{'username':bsSetupHelper[_0x44c82d(0x1f2)](_0x5a69ba),'accessKey':bsSetupHelper[_0x44c82d(0x18b)](_0x5a69ba)};},exports[a130_0x117590(0x1f0)]=(_0x424221,_0x29df0f)=>{const _0x1965d3=a130_0x117590,_0x180b42={};_0x180b42[_0x1965d3(0x232)]=_0x1965d3(0x1f3),_0x180b42[_0x1965d3(0x180)]=_0x1965d3(0x1ab),_0x180b42[_0x1965d3(0x14f)]=_0x1965d3(0x13a);const _0x29d83c=_0x180b42,_0x29a954=_0x29d83c['AjLGj'][_0x1965d3(0x1e9)]('|');let _0x19092f=0x0;while(!![]){switch(_0x29a954[_0x19092f++]){case'0':if(!_0x424221[_0x1965d3(0x1e0)]||!Array['isArray'](_0x424221['body']))return;continue;case'1':delete _0x424221[_0x1965d3(0x1e0)];continue;case'2':delete _0x424221[_0x1965d3(0x214)];continue;case'3':if(!_0x424221[_0x1965d3(0x1e0)][0x0]||!_0x424221[_0x1965d3(0x1e0)][0x0][_0x1965d3(0x17d)]||!_0x424221[_0x1965d3(0x1e0)][0x0]['logs'][_0x1965d3(0x230)])return;continue;case'4':delete _0x29df0f[_0x1965d3(0x1a2)];continue;case'5':_0x424221[_0x1965d3(0x16a)]={'data':_0x424221[_0x1965d3(0x1e0)][0x0][_0x1965d3(0x17d)][0x0][_0x1965d3(0x153)],'test_run_uuid':_0x424221[_0x1965d3(0x1e0)][0x0]['logs'][0x0][_0x1965d3(0x247)],'event_type':_0x29d83c[_0x1965d3(0x180)],'kind':_0x29d83c['bswwD'],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x1965d3(0x13b)](),'fileName':_0x424221[_0x1965d3(0x1e0)][0x0][_0x1965d3(0x17d)][0x0][_0x1965d3(0x1a9)]};continue;}break;}},exports[a130_0x117590(0x195)]=async(_0x290ca5,_0x35f12e,_0x1c3fba,_0x447b32,_0x1091eb=!![])=>{const _0x3ef0ae=a130_0x117590,_0x3aa8ce={};_0x3aa8ce[_0x3ef0ae(0x1b6)]=function(_0x11c9d8,_0x47f6ba){return _0x11c9d8===_0x47f6ba;},_0x3aa8ce[_0x3ef0ae(0x15e)]=_0x3ef0ae(0x24e),_0x3aa8ce[_0x3ef0ae(0x19f)]=_0x3ef0ae(0x1f5),_0x3aa8ce['LwyEi']=_0x3ef0ae(0x185),_0x3aa8ce['Qlssj']=function(_0x24729c,_0xd7928c){return _0x24729c===_0xd7928c;},_0x3aa8ce[_0x3ef0ae(0x181)]=function(_0xd6366a,_0x28515b){return _0xd6366a!==_0x28515b;},_0x3aa8ce['zUKzm']=_0x3ef0ae(0x152),_0x3aa8ce['JhXIA']=_0x3ef0ae(0x149);const _0x29dcaa=_0x3aa8ce,_0x12d3cb={..._0x447b32,...{'method':_0x290ca5,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x35f12e,'body':_0x1c3fba,'json':_0x29dcaa[_0x3ef0ae(0x1b6)](_0x447b32['headers'][_0x29dcaa['CMneb']],_0x29dcaa[_0x3ef0ae(0x19f)]),'agent':API_URL[_0x3ef0ae(0x140)](_0x29dcaa[_0x3ef0ae(0x1b7)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x29dcaa[_0x3ef0ae(0x224)](_0x35f12e,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x12d3cb[_0x3ef0ae(0x15f)]=API_URL[_0x3ef0ae(0x140)](_0x29dcaa['LwyEi'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x12d3cb,_0x447b32),logger[_0x3ef0ae(0x1c9)]('Uploading\x20trace\x20logs\x20to:\x20'+_0x12d3cb[_0x3ef0ae(0x160)]));try{const {statusCode:_0x4f12a1,body:_0x543c08}=await bsSetupHelper[_0x3ef0ae(0x22c)](_0x290ca5,_0x35f12e,_0x12d3cb,_0x447b32,_0x12d3cb['url']);if(_0x29dcaa[_0x3ef0ae(0x181)](_0x4f12a1,0xc8))return _0x543c08?_0x543c08:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x4f12a1;let _0xaba424=_0x543c08;if(_0x1091eb)try{_0x29dcaa[_0x3ef0ae(0x181)](typeof _0x543c08,_0x29dcaa[_0x3ef0ae(0x25b)])&&(_0xaba424=JSON[_0x3ef0ae(0x216)](_0x543c08));}catch(_0x2336a3){logger['error'](_0x29dcaa[_0x3ef0ae(0x16d)],_0x543c08,util[_0x3ef0ae(0x163)](_0x2336a3));}const _0x4e66e0={};return _0x4e66e0['data']=_0xaba424,_0x4e66e0;}catch(_0x3ef906){logger[_0x3ef0ae(0x186)]('Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20'+util[_0x3ef0ae(0x163)](_0x3ef906));throw _0x3ef906;}},exports[a130_0x117590(0x22c)]=(_0x398d90,_0x2475d9,_0x26ec71,_0x124b20,_0x29da9a=!![])=>{const _0x519a4f=a130_0x117590,_0x6c6bc2={'lHVQw':function(_0x305993,_0x4f9aab){return _0x305993(_0x4f9aab);},'xWYmb':function(_0x411818,_0x3f9a90){return _0x411818!==_0x3f9a90;},'FJlxJ':function(_0x35ddfc,_0x4aab19){return _0x35ddfc(_0x4aab19);},'FFOua':function(_0x52a814,_0x1acd1a){return _0x52a814!==_0x1acd1a;},'heoDA':_0x519a4f(0x152),'GSYem':_0x519a4f(0x237),'mhUfc':function(_0x26793d,_0x2f2f26){return _0x26793d===_0x2f2f26;},'vxsFL':_0x519a4f(0x24e),'dGEko':'application/json','KjtRA':_0x519a4f(0x185),'pCcxH':function(_0x213172,_0x19446a){return _0x213172===_0x19446a;}};return new Promise((_0x257893,_0x1c27e9)=>{const _0x48ed7f=_0x519a4f,_0x1bd6a7={'KZWcg':function(_0x35d900,_0x1a84d3){return _0x6c6bc2['xWYmb'](_0x35d900,_0x1a84d3);},'phkLZ':function(_0x5ae5d8,_0x377d4d){const _0x5768c7=a130_0x5cce;return _0x6c6bc2[_0x5768c7(0x19c)](_0x5ae5d8,_0x377d4d);},'UtKCT':function(_0x5eb5b2,_0x466648){const _0x543ec7=a130_0x5cce;return _0x6c6bc2[_0x543ec7(0x23d)](_0x5eb5b2,_0x466648);},'ZsTJe':_0x6c6bc2[_0x48ed7f(0x18e)],'SKvio':function(_0x1e3ce4,_0x2340f3){const _0x190206=_0x48ed7f;return _0x6c6bc2[_0x190206(0x197)](_0x1e3ce4,_0x2340f3);},'CfGql':_0x6c6bc2[_0x48ed7f(0x139)],'KbCcF':function(_0x11e1ad,_0x4deb97){const _0x21b3c3=_0x48ed7f;return _0x6c6bc2[_0x21b3c3(0x197)](_0x11e1ad,_0x4deb97);}},_0x55ffc3={..._0x124b20,...{'method':_0x398d90,'url':API_URL+'/'+_0x2475d9,'body':_0x26ec71,'json':_0x6c6bc2[_0x48ed7f(0x1a7)](_0x124b20['headers'][_0x6c6bc2['vxsFL']],_0x6c6bc2[_0x48ed7f(0x21d)]),'agent':API_URL[_0x48ed7f(0x140)](_0x6c6bc2[_0x48ed7f(0x1c5)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x6c6bc2[_0x48ed7f(0x20c)](_0x2475d9,SCREENSHOT_ENDPOINT)&&(_0x55ffc3[_0x48ed7f(0x15f)]=API_URL[_0x48ed7f(0x140)](_0x6c6bc2['KjtRA'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x48ed7f(0x22c)](_0x398d90,_0x2475d9,_0x55ffc3,_0x124b20,API_URL)[_0x48ed7f(0x240)](({statusCode:_0x2b3239,body:_0x3a90ed})=>{const _0x4a22a2=_0x48ed7f;if(_0x1bd6a7[_0x4a22a2(0x1cf)](_0x2b3239,0xc8))_0x1bd6a7[_0x4a22a2(0x1a1)](_0x1c27e9,_0x3a90ed?_0x3a90ed:_0x4a22a2(0x14e)+_0x2b3239);else{if(_0x29da9a)try{_0x1bd6a7[_0x4a22a2(0x142)](typeof _0x3a90ed,_0x1bd6a7[_0x4a22a2(0x17f)])&&(_0x3a90ed=JSON[_0x4a22a2(0x216)](_0x3a90ed));}catch(_0x3bfac3){_0x1bd6a7['SKvio'](_0x1c27e9,_0x1bd6a7[_0x4a22a2(0x1ae)]);return;}const _0x3b7394={};_0x3b7394['data']=_0x3a90ed,_0x1bd6a7[_0x4a22a2(0x158)](_0x257893,_0x3b7394);}})[_0x48ed7f(0x24f)](_0x2303f7=>{const _0x2b7314=_0x48ed7f;_0x2303f7&&_0x6c6bc2[_0x2b7314(0x197)](_0x1c27e9,_0x2303f7);});});},exports[a130_0x117590(0x23e)]=_0x38b814=>{const _0x1dfd7e=a130_0x117590;if(process[_0x1dfd7e(0x18f)][_0x1dfd7e(0x175)])return process[_0x1dfd7e(0x18f)][_0x1dfd7e(0x175)][_0x1dfd7e(0x1e9)](',');if(process[_0x1dfd7e(0x18f)][_0x1dfd7e(0x249)])return process[_0x1dfd7e(0x18f)][_0x1dfd7e(0x249)][_0x1dfd7e(0x1e9)](',');if(_0x38b814['buildTag'])return _0x38b814['buildTag'];return[];},exports['getDefaultHeaders']=(_0xc1ca10=!![])=>{const _0x464706=a130_0x117590,_0x42b6e0={};_0x42b6e0['byEze']=_0x464706(0x1f5),_0x42b6e0[_0x464706(0x1a5)]='true',_0x42b6e0[_0x464706(0x179)]=_0x464706(0x23a);const _0x3d61e7=_0x42b6e0,_0x4fd320={};_0x4fd320[_0x464706(0x24e)]=_0x3d61e7[_0x464706(0x15b)],_0x4fd320[_0x464706(0x1df)]=_0x3d61e7['DNjuG'];const _0x17d92b=_0x4fd320;return _0xc1ca10&&process['env'][_0x464706(0x201)]&&(_0x17d92b[_0x3d61e7['hCmdH']]=_0x464706(0x207)+process[_0x464706(0x18f)]['BROWSERSTACK_TESTHUB_JWT']),_0x17d92b;},exports[a130_0x117590(0x1f6)]=_0x51b7aa=>{const _0x4f9a20=a130_0x117590,_0x3e44fe={};_0x3e44fe[_0x4f9a20(0x1d3)]=_0x4f9a20(0x25a);const _0x3b6b74=_0x3e44fe,_0x18a792=[],_0x42db10=new RegExp(_0x3b6b74['CVmDY'],'i');return Object[_0x4f9a20(0x238)](_0x51b7aa)['filter'](_0x282d54=>_0x42db10['test'](_0x282d54))[_0x4f9a20(0x18a)](_0x36b9d1=>_0x18a792[_0x4f9a20(0x141)](_0x51b7aa[_0x36b9d1])),_0x18a792;},exports[a130_0x117590(0x1d5)]=_0xbf7f73=>{const _0x230f84=a130_0x117590,_0x502ddd=[],_0x36e892=_0xbf7f73[_0x230f84(0x182)]||process[_0x230f84(0x18f)][_0x230f84(0x218)];return _0x36e892&&_0x502ddd[_0x230f84(0x141)](_0x36e892),_0x502ddd[_0x230f84(0x141)](...exports[_0x230f84(0x1f6)](process[_0x230f84(0x18f)])),_0x502ddd[_0x230f84(0x141)](...exports[_0x230f84(0x1f6)](_0xbf7f73)),_0x502ddd;},exports[a130_0x117590(0x14c)]=_0x1d193a=>{if(!_0x1d193a)return'';return _0x1d193a['replace'](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports['sleep']=(_0x2d7de7=0x64)=>new Promise(_0x43f881=>setTimeout(_0x43f881,_0x2d7de7));const getPlatformName=()=>{const _0x50f3fe=a130_0x117590,_0x6a0394={};_0x6a0394[_0x50f3fe(0x14b)]=function(_0x59ecd7,_0x3bc4f0){return _0x59ecd7===_0x3bc4f0;},_0x6a0394[_0x50f3fe(0x1bf)]='win32',_0x6a0394[_0x50f3fe(0x1a3)]=_0x50f3fe(0x213),_0x6a0394['iEBmo']='darwin',_0x6a0394[_0x50f3fe(0x1bd)]=_0x50f3fe(0x191),_0x6a0394[_0x50f3fe(0x1d2)]=function(_0x20bc15,_0x327a7c){return _0x20bc15===_0x327a7c;},_0x6a0394['QWkfa']=_0x50f3fe(0x13d),_0x6a0394['UIbWp']='Linux',_0x6a0394[_0x50f3fe(0x256)]=_0x50f3fe(0x155);const _0x279425=_0x6a0394;if(_0x279425[_0x50f3fe(0x14b)](process[_0x50f3fe(0x1ed)],_0x279425[_0x50f3fe(0x1bf)]))return _0x279425['IRifC'];if(_0x279425[_0x50f3fe(0x14b)](process[_0x50f3fe(0x1ed)],_0x279425[_0x50f3fe(0x204)]))return _0x279425[_0x50f3fe(0x1bd)];if(_0x279425[_0x50f3fe(0x1d2)](process['platform'],_0x279425[_0x50f3fe(0x243)]))return _0x279425[_0x50f3fe(0x151)];return _0x279425[_0x50f3fe(0x256)];},getMacOSVersion=()=>{const _0x3b499b=a130_0x117590,_0xdce5a3={};_0xdce5a3['qZKfU']='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';const _0x3d5e0e=_0xdce5a3;return child_process[_0x3b499b(0x17b)](_0x3d5e0e[_0x3b499b(0x19a)])['toString']()[_0x3b499b(0x253)]();},getLinuxDetails=()=>{const _0x32d93={'YZwPR':function(_0x36e994,_0x5c68ff){return _0x36e994(_0x5c68ff);}};return new Promise((_0xb6aa56,_0x42ab31)=>{const _0x44cf89=a130_0x5cce,_0x5e4d={'NkoGU':function(_0x13f018,_0x43cefb){const _0x169402=a130_0x5cce;return _0x32d93[_0x169402(0x1c7)](_0x13f018,_0x43cefb);}};_0x32d93[_0x44cf89(0x1c7)](getos,(_0x27cabe,_0x403e58)=>{const _0x153bad=_0x44cf89;if(_0x27cabe)return _0x5e4d['NkoGU'](_0x42ab31,_0x27cabe);_0x5e4d[_0x153bad(0x1de)](_0xb6aa56,_0x403e58);});});};exports['getPlatformDetails']=async()=>{const _0x4265ab=a130_0x117590,_0x44f236={'wKSEx':function(_0x47b70a){return _0x47b70a();},'BRwva':_0x4265ab(0x191),'gyoOO':function(_0x5e4b8f){return _0x5e4b8f();},'HrHRW':_0x4265ab(0x213),'XQsSG':'windows-release','gbbTz':_0x4265ab(0x257),'fqxiO':_0x4265ab(0x173)};let _0xc6103=_0x44f236[_0x4265ab(0x1ca)](getPlatformName),_0x4c23e2=os['release']()[_0x4265ab(0x166)]();switch(_0xc6103){case _0x44f236[_0x4265ab(0x258)]:_0x4c23e2=_0x44f236['gyoOO'](getMacOSVersion);break;case _0x44f236[_0x4265ab(0x1c1)]:try{const _0x224a23=(await import(_0x44f236[_0x4265ab(0x145)]))[_0x4265ab(0x17e)];_0x4c23e2=_0x44f236[_0x4265ab(0x1fb)](_0x224a23);}catch(_0xdd7433){exports[_0x4265ab(0x1c9)](_0x4265ab(0x234)+_0xdd7433[_0x4265ab(0x166)]());}break;case _0x44f236[_0x4265ab(0x250)]:try{const _0x2dae19=await _0x44f236[_0x4265ab(0x1ca)](getLinuxDetails);_0x2dae19[_0x4265ab(0x1d4)]&&(_0xc6103=_0x2dae19[_0x4265ab(0x1d4)]),_0x2dae19[_0x4265ab(0x21e)]&&(_0x4c23e2=_0x2dae19['release']['toString']());}catch(_0x1b84d5){exports['debug'](_0x44f236[_0x4265ab(0x144)]);}break;default:break;}const _0x42d8f3={};return _0x42d8f3[_0x4265ab(0x1c2)]=_0xc6103,_0x42d8f3[_0x4265ab(0x23c)]=_0x4c23e2,_0x42d8f3;},exports[a130_0x117590(0x1da)]=(_0xbdf0d0,_0x6c18d1)=>{const _0x23abbc=a130_0x117590,_0x595f1c={};_0x595f1c[_0x23abbc(0x20e)]=function(_0x4a0601,_0x1946b3){return _0x4a0601===_0x1946b3;},_0x595f1c[_0x23abbc(0x14d)]='test',_0x595f1c[_0x23abbc(0x18c)]=_0x23abbc(0x1e7);const _0x19be48=_0x595f1c;if(!_0xbdf0d0)return[];try{if(_0x19be48[_0x23abbc(0x20e)](_0x6c18d1,_0x19be48[_0x23abbc(0x14d)]))return _0xbdf0d0['map'](_0x344ebc=>{const _0x2cb329=_0x23abbc,{stack:_0x428898,..._0x29284c}=_0x344ebc,_0x3567b7=Object[_0x2cb329(0x238)](_0x29284c)[_0x2cb329(0x1fd)](_0x130798=>{return _0x130798+':\x20'+_0x29284c[_0x130798];}),_0x430ac2=_0x428898?exports[_0x2cb329(0x14c)](_0x428898)[_0x2cb329(0x1e9)](/\r?\n/):[exports[_0x2cb329(0x14c)](_0x344ebc[_0x2cb329(0x13f)])],_0x2f05f7={};return _0x2f05f7[_0x2cb329(0x176)]=_0x430ac2,_0x2f05f7[_0x2cb329(0x157)]=_0x3567b7,_0x2f05f7;});else{if(_0x19be48['QDHxe'](_0x6c18d1,_0x19be48['pIdSw'])){const _0x5610c2=[],_0x26009e=[];return Object[_0x23abbc(0x238)](_0xbdf0d0)[_0x23abbc(0x18a)](_0x1db401=>{const _0x4debff=_0x23abbc;try{_0x26009e[_0x4debff(0x141)](_0x1db401+':\x20'+_0xbdf0d0[_0x1db401]);}catch(_0x225f72){exports['debug'](_0x4debff(0x20d)+_0x225f72[_0x4debff(0x13f)]+_0x4debff(0x1f7)+_0x225f72[_0x4debff(0x176)]);}}),_0x5610c2['push']({'backtrace':exports[_0x23abbc(0x14c)](_0xbdf0d0[_0x23abbc(0x23f)])[_0x23abbc(0x1e9)](/\r?\n/),'expanded':_0x26009e}),_0x5610c2;}}return[];}catch(_0x1e6393){exports[_0x23abbc(0x1c9)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x1e6393['message']+_0x23abbc(0x1f7)+_0x1e6393[_0x23abbc(0x176)]);}return[];};class PathHelper{constructor(_0x538d6b,_0x32ce44){const _0x4a4925=a130_0x117590;this[_0x4a4925(0x198)]=_0x538d6b,this[_0x4a4925(0x235)]=_0x32ce44;}[a130_0x117590(0x1b4)](_0x2f7f5f){const _0x45512d=a130_0x117590,_0x2f7a93=this[_0x45512d(0x198)][_0x45512d(0x187)]||this['config'][_0x45512d(0x1b9)];return path[_0x45512d(0x203)](_0x2f7a93,_0x2f7f5f);}[a130_0x117590(0x15d)](_0x3d841b){const _0x2b1402=a130_0x117590,_0x4878fe=this[_0x2b1402(0x1b4)](_0x3d841b);return this[_0x2b1402(0x235)]?path[_0x2b1402(0x1d1)](this[_0x2b1402(0x235)],_0x4878fe):_0x4878fe;}}exports[a130_0x117590(0x1d8)]=PathHelper,exports[a130_0x117590(0x22d)]=(_0x15a0a3=!![])=>{const _0x20ef36=a130_0x117590,_0x2f1c80={};_0x2f1c80[_0x20ef36(0x167)]=function(_0x436b1d,_0x4a7e25){return _0x436b1d===_0x4a7e25;},_0x2f1c80[_0x20ef36(0x24c)]=_0x20ef36(0x1df),_0x2f1c80[_0x20ef36(0x217)]=_0x20ef36(0x1dd),_0x2f1c80[_0x20ef36(0x17a)]=_0x20ef36(0x1e3),_0x2f1c80[_0x20ef36(0x1af)]=_0x20ef36(0x1ea),_0x2f1c80[_0x20ef36(0x1fa)]=_0x20ef36(0x146);const _0x2e77f4=_0x2f1c80;requestSpy[_0x20ef36(0x226)]((_0x32de81,_0x3fe972)=>{const _0x268c2c=_0x20ef36;_0x3fe972&&!(_0x3fe972[_0x268c2c(0x1a2)]&&_0x2e77f4[_0x268c2c(0x167)](_0x3fe972['headers'][_0x2e77f4[_0x268c2c(0x24c)]],_0x2e77f4[_0x268c2c(0x217)]))&&(_0x3fe972[_0x268c2c(0x17c)]=_0x3fe972['hostname'],delete _0x3fe972[_0x268c2c(0x1c3)],_0x15a0a3&&process[_0x268c2c(0x148)](_0x268c2c(0x1aa)+process[_0x268c2c(0x168)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x2e77f4[_0x268c2c(0x17a)],'http_response':_0x3fe972})),_0x3fe972&&(constants[_0x268c2c(0x259)][_0x268c2c(0x15a)](_0x3fe972[_0x268c2c(0x17c)])||constants[_0x268c2c(0x1ee)][_0x268c2c(0x15a)](_0x3fe972['host']))?global['__cloud_provider___']=_0x2e77f4['umAjQ']:global[_0x268c2c(0x22a)]=_0x2e77f4['WqqjZ'];});},exports[a130_0x117590(0x174)]=()=>{const _0x1c9c28=a130_0x117590,_0x119812={'INqQy':function(_0x2c707c,_0x66cb01){return _0x2c707c(_0x66cb01);}};console={},Object[_0x1c9c28(0x238)](consoleHolder)[_0x1c9c28(0x18a)](_0x32852d=>{const _0x122105=_0x1c9c28;_0x119812[_0x122105(0x208)](isFunction,consoleHolder[_0x32852d])?console[_0x32852d]=(..._0x48d3eb)=>{const _0x530fc6=_0x122105;try{!Object['keys'](BSTestOpsPatcher)[_0x530fc6(0x140)](_0x32852d)?consoleHolder[_0x32852d](..._0x48d3eb):BSTestOpsPatcher[_0x32852d](..._0x48d3eb);}catch(_0x511050){consoleHolder[_0x32852d](..._0x48d3eb);}}:console[_0x32852d]=consoleHolder[_0x32852d];});},exports[a130_0x117590(0x13c)]=()=>a130_0x117590(0x19d)+JSON[a130_0x117590(0x254)]({'action':'annotate','arguments':{'data':'ObservabilitySync:'+Date[a130_0x117590(0x20b)](),'level':'debug'}}),exports[a130_0x117590(0x16e)]=_0x29349d=>{const _0xb57c43=a130_0x117590,_0x13b8fe={};_0x13b8fe[_0xb57c43(0x1f8)]=function(_0x34ba93,_0x45c776){return _0x34ba93===_0x45c776;},_0x13b8fe[_0xb57c43(0x154)]=_0xb57c43(0x1ea),_0x13b8fe[_0xb57c43(0x21a)]='appium:app',_0x13b8fe[_0xb57c43(0x244)]=_0xb57c43(0x1a6),_0x13b8fe['jXHOM']=function(_0x54a531,_0x901ca){return _0x54a531>_0x901ca;},_0x13b8fe[_0xb57c43(0x24a)]='app-automate',_0x13b8fe[_0xb57c43(0x1c8)]=_0xb57c43(0x252),_0x13b8fe['iznOG']=_0xb57c43(0x1ec),_0x13b8fe['lovSW']='turboscale',_0x13b8fe[_0xb57c43(0x21b)]=_0xb57c43(0x1d0);const _0x154bae=_0x13b8fe;let _0x3c3581=null;try{if(_0x154bae[_0xb57c43(0x1f8)](global[_0xb57c43(0x22a)],_0x154bae[_0xb57c43(0x154)])){if(_0x29349d[_0x154bae[_0xb57c43(0x21a)]]||_0x29349d[_0x154bae[_0xb57c43(0x244)]]||!bsSetupHelper[_0xb57c43(0x1e4)](global[_0xb57c43(0x1cc)])&&_0x154bae[_0xb57c43(0x1ce)](global[_0xb57c43(0x1cc)][_0xb57c43(0x230)],0x0)&&(global[_0xb57c43(0x1cc)][0x0][_0x154bae[_0xb57c43(0x244)]]||global['capabilities'][0x0][_0x154bae[_0xb57c43(0x21a)]]))_0x3c3581=_0x154bae[_0xb57c43(0x24a)];else _0x29349d[_0x154bae['SqApi']]&&_0x29349d[_0x154bae[_0xb57c43(0x1c8)]][_0x154bae[_0xb57c43(0x1dc)]]?_0x3c3581=_0x154bae['lovSW']:_0x3c3581=_0x154bae['eKsOe'];}}catch(_0x3eaf1b){exports[_0xb57c43(0x1c9)]('Failed\x20to\x20determine\x20product\x20linked\x20to\x20'+constants[_0xb57c43(0x1d9)]+_0xb57c43(0x150)+_0x3eaf1b);}return _0x3c3581;},exports[a130_0x117590(0x1be)]=async(_0x5e3360,_0x23e1b5,_0x36a379=![])=>{const _0x5e1af2=a130_0x117590,_0x4d9853={};_0x4d9853[_0x5e1af2(0x199)]=function(_0x3cc763,_0x57e597){return _0x3cc763===_0x57e597;},_0x4d9853[_0x5e1af2(0x241)]=_0x5e1af2(0x1ea),_0x4d9853[_0x5e1af2(0x233)]='unknown_grid',_0x4d9853['MOPny']=_0x5e1af2(0x193);const _0x50153f=_0x4d9853;try{const _0x56c9b4=await _0x5e3360[_0x5e1af2(0x212)](),_0x13a658=await _0x5e3360[_0x5e1af2(0x183)](),_0x4a4d06={},_0x15242b=Object['fromEntries'](_0x13a658['getCapabilities']()[_0x5e1af2(0x1d6)]),_0x40cbd0={'product':exports[_0x5e1af2(0x16e)](_0x15242b),'capabilities':_0x15242b,'platform':_0x56c9b4[_0x5e1af2(0x16b)](),'platform_version':bsSetupHelper[_0x5e1af2(0x223)](_0x50153f[_0x5e1af2(0x199)](global[_0x5e1af2(0x22a)],_0x50153f[_0x5e1af2(0x241)])),'browser':_0x56c9b4[_0x5e1af2(0x196)](),'browser_version':_0x56c9b4[_0x5e1af2(0x22e)](),'session_id':_0x13a658['toJSON']()};global[_0x5e1af2(0x22a)]?_0x4a4d06[global[_0x5e1af2(0x22a)]]=_0x40cbd0:_0x4a4d06[_0x50153f[_0x5e1af2(0x233)]]=_0x40cbd0;if(_0x36a379)return _0x4a4d06;process['emit'](_0x5e1af2(0x239)+process['pid'],{'timestamp':new Date()[_0x5e1af2(0x13b)](),'level':null,'message':null,'kind':_0x50153f[_0x5e1af2(0x248)],'http_response':_0x4a4d06,'uuid':_0x23e1b5});}catch(_0x1be90c){exports[_0x5e1af2(0x1c9)](_0x5e1af2(0x21f)+_0x1be90c);}},exports[a130_0x117590(0x1c6)]=_0x4cd8d2=>{const _0x384f76=a130_0x117590;return _0x4cd8d2&&_0x4cd8d2[_0x384f76(0x166)]()[_0x384f76(0x227)](/browserstack internal helper hook/);};
|
|
1
|
+
const a130_0x192933=a130_0x31fd;(function(_0x584cdd,_0x25fb12){const _0x30ce68=a130_0x31fd,_0x4219b2=_0x584cdd();while(!![]){try{const _0x563c9c=parseInt(_0x30ce68(0x1cd))/0x1+parseInt(_0x30ce68(0x24c))/0x2+-parseInt(_0x30ce68(0x219))/0x3+-parseInt(_0x30ce68(0x1cb))/0x4*(-parseInt(_0x30ce68(0x1ba))/0x5)+parseInt(_0x30ce68(0x1a8))/0x6*(-parseInt(_0x30ce68(0x21b))/0x7)+parseInt(_0x30ce68(0x19e))/0x8*(-parseInt(_0x30ce68(0x1cf))/0x9)+parseInt(_0x30ce68(0x24b))/0xa*(parseInt(_0x30ce68(0x250))/0xb);if(_0x563c9c===_0x25fb12)break;else _0x4219b2['push'](_0x4219b2['shift']());}catch(_0x47feba){_0x4219b2['push'](_0x4219b2['shift']());}}}(a130_0x1e1a,0x5e59b));const fs=require('fs'),path=require(a130_0x192933(0x23c)),gitLastCommit=require(a130_0x192933(0x1bf)),getRepoInfo=require('git-repo-info'),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a130_0x192933(0x2ac)),http=require(a130_0x192933(0x1b2)),https=require(a130_0x192933(0x28e)),child_process=require('child_process'),getos=require('getos'),os=require('os'),logger=require(a130_0x192933(0x236))[a130_0x192933(0x22c)],buildLogger=require(a130_0x192933(0x236))['buildLogger'],bsSetupHelper=require(a130_0x192933(0x226)),requestSpy=require(a130_0x192933(0x1f0)),constants=require('../../bin/utils/constants'),logPatcher=require(a130_0x192933(0x227)),util=require(a130_0x192933(0x1f8)),{fileLogger}=require(a130_0x192933(0x236)),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a130_0x192933(0x1f4)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a130_0x192933(0x24f)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require('../../../src/bin/utils/constants');exports[a130_0x192933(0x1be)]=_0x22e5b4=>{const _0x28b692=a130_0x192933;fileLogger[_0x28b692(0x1eb)]('['+new Date()[_0x28b692(0x25a)]()+_0x28b692(0x229)+constants[_0x28b692(0x1ae)]+_0x28b692(0x217)+_0x22e5b4);},exports[a130_0x192933(0x23e)]=_0x2c9390=>{const _0x3da144=a130_0x192933,_0x13e810={};_0x13e810['Bpbkj']=function(_0x5b2214,_0x3682b8){return _0x5b2214===_0x3682b8;},_0x13e810[_0x3da144(0x1b1)]='true',_0x13e810[_0x3da144(0x294)]=function(_0x139fdb,_0x9a5979){return _0x139fdb===_0x9a5979;},_0x13e810[_0x3da144(0x1c2)]=function(_0x31d758,_0x40fba9){return _0x31d758===_0x40fba9;},_0x13e810[_0x3da144(0x214)]=function(_0x1d3cb0,_0x18c0ce){return _0x1d3cb0===_0x18c0ce;};const _0x722402=_0x13e810;fileLogger[_0x3da144(0x23e)]('['+new Date()[_0x3da144(0x25a)]()+_0x3da144(0x229)+constants[_0x3da144(0x1ae)]+_0x3da144(0x217)+_0x2c9390),(_0x722402[_0x3da144(0x264)](process[_0x3da144(0x215)]['BROWSERSTACK_TEST_REPORTING_DEBUG'],_0x722402[_0x3da144(0x1b1)])||_0x722402[_0x3da144(0x294)](process[_0x3da144(0x215)][_0x3da144(0x1f7)],'1')||_0x722402[_0x3da144(0x1c2)](process[_0x3da144(0x215)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x722402[_0x3da144(0x1b1)])||_0x722402[_0x3da144(0x214)](process[_0x3da144(0x215)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder[_0x3da144(0x1c4)]('\x0a['+new Date()['toISOString']()+_0x3da144(0x229)+constants[_0x3da144(0x1ae)]+_0x3da144(0x217)+_0x2c9390+'\x0a');};const a130_0x1b2094={};a130_0x1b2094['keepAlive']=!![],a130_0x1b2094['timeout']=0xea60,a130_0x1b2094['maxSockets']=0x2,a130_0x1b2094[a130_0x192933(0x22a)]=0x2;const httpKeepAliveAgent=new http[(a130_0x192933(0x1d7))](a130_0x1b2094),a130_0x5a544e={};a130_0x5a544e['keepAlive']=!![],a130_0x5a544e[a130_0x192933(0x1e6)]=0xea60,a130_0x5a544e[a130_0x192933(0x21a)]=0x2,a130_0x5a544e[a130_0x192933(0x22a)]=0x2;const httpsKeepAliveAgent=new https[(a130_0x192933(0x1d7))](a130_0x5a544e),a130_0x5b3eb9={};a130_0x5b3eb9['keepAlive']=!![],a130_0x5b3eb9[a130_0x192933(0x1e6)]=0xea60,a130_0x5b3eb9['maxSockets']=0x2,a130_0x5b3eb9['maxTotalSockets']=0x2;function a130_0x31fd(_0x5004ed,_0x1823e9){const _0x1e1a2a=a130_0x1e1a();return a130_0x31fd=function(_0x31fdaf,_0xceddb7){_0x31fdaf=_0x31fdaf-0x19d;let _0x1ced97=_0x1e1a2a[_0x31fdaf];return _0x1ced97;},a130_0x31fd(_0x5004ed,_0x1823e9);}const httpScreenshotsKeepAliveAgent=new http[(a130_0x192933(0x1d7))](a130_0x5b3eb9),a130_0x1bfc4f={};a130_0x1bfc4f[a130_0x192933(0x23f)]=!![],a130_0x1bfc4f[a130_0x192933(0x1e6)]=0xea60,a130_0x1bfc4f[a130_0x192933(0x21a)]=0x2,a130_0x1bfc4f[a130_0x192933(0x22a)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a130_0x192933(0x1d7))](a130_0x1bfc4f);exports[a130_0x192933(0x1e8)]=()=>{const _0x93ec45=a130_0x192933,_0x1030bc={};_0x1030bc[_0x93ec45(0x267)]=function(_0xa3696c,_0x5a9896){return _0xa3696c!==_0x5a9896;},_0x1030bc[_0x93ec45(0x1c0)]=_0x93ec45(0x237);const _0x498067=_0x1030bc;return process[_0x93ec45(0x215)][_0x93ec45(0x1b5)]&&_0x498067['DUGwv'](process[_0x93ec45(0x215)][_0x93ec45(0x1b5)],_0x498067[_0x93ec45(0x1c0)])?!![]:![];},exports[a130_0x192933(0x2ae)]=()=>{const _0x274aa4=a130_0x192933,_0x51d66f={};_0x51d66f[_0x274aa4(0x297)]=function(_0x451705,_0xadc19c){return _0x451705===_0xadc19c;},_0x51d66f['AkjDh']='true';const _0x155b42=_0x51d66f;let _0x463eb2=!![];return process[_0x274aa4(0x215)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x463eb2=_0x155b42['bzSqK'](process[_0x274aa4(0x215)][_0x274aa4(0x1e3)],_0x155b42[_0x274aa4(0x1fc)])),process[_0x274aa4(0x215)][_0x274aa4(0x284)]&&(_0x463eb2=_0x155b42[_0x274aa4(0x297)](process[_0x274aa4(0x215)][_0x274aa4(0x284)],_0x155b42[_0x274aa4(0x1fc)])),process[_0x274aa4(0x215)][_0x274aa4(0x1a5)]&&(_0x463eb2=_0x155b42[_0x274aa4(0x297)](process[_0x274aa4(0x215)][_0x274aa4(0x1a5)],_0x155b42[_0x274aa4(0x1fc)])),_0x463eb2;},exports[a130_0x192933(0x2a3)]=_0x38f3a8=>{const _0x8693b6=a130_0x192933;if(bsSetupHelper[_0x8693b6(0x26c)](_0x38f3a8))return undefined;try{return _0x38f3a8['trim']()[_0x8693b6(0x1da)](',');}catch(_0x24d6d1){return undefined;}},exports[a130_0x192933(0x28d)]=()=>{const _0x2e07be=a130_0x192933,_0x5de645={'kdVat':function(_0x175f4c,_0x53a3c3){return _0x175f4c(_0x53a3c3);},'PFRSh':_0x2e07be(0x1b7),'PJHaJ':function(_0x24a8ba,_0x140e3c){return _0x24a8ba!==_0x140e3c;},'Ggabo':_0x2e07be(0x237),'rAslf':function(_0x13b4c0,_0xd8a3fa){return _0x13b4c0!==_0xd8a3fa;},'vBRIS':_0x2e07be(0x1ee)};return PerformanceTester['measureWrapper'](PerformanceO11yEvents[_0x2e07be(0x1a7)],async()=>{const _0x35c853=_0x2e07be;try{const _0x4fbd17=_0x5de645[_0x35c853(0x25e)](require,_0x5de645[_0x35c853(0x261)]);if(_0x4fbd17['O11yHashedID']){const _0x401783='Visit\x20'+O11Y_URL+_0x35c853(0x23d)+_0x4fbd17[_0x35c853(0x20a)]+_0x35c853(0x235);buildLogger['info'](_0x401783);return;}if(process['env'][_0x35c853(0x218)]&&_0x5de645[_0x35c853(0x205)](process[_0x35c853(0x215)][_0x35c853(0x218)],_0x5de645['Ggabo'])&&_0x5de645[_0x35c853(0x200)](process[_0x35c853(0x215)][_0x35c853(0x218)],_0x5de645[_0x35c853(0x268)])){const _0x35d7d2='Visit\x20'+constants[_0x35c853(0x1e9)]+_0x35c853(0x23d)+process[_0x35c853(0x215)]['BS_TESTOPS_BUILD_HASHED_ID']+_0x35c853(0x235);buildLogger[_0x35c853(0x21e)](_0x35d7d2);}}catch(_0x2a4845){logger[_0x35c853(0x262)](util['format']('[%s][\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x35c853(0x24d),new Date()[_0x35c853(0x25a)](),_0x2a4845[_0x35c853(0x228)]||_0x2a4845[_0x35c853(0x1ce)]||_0x2a4845));}})();},exports[a130_0x192933(0x1db)]=_0x1b1a08=>{const _0xae0449=a130_0x192933,_0x578f0c={};_0x578f0c['ctAPL']=_0xae0449(0x2a9),_0x578f0c[_0xae0449(0x2b1)]=_0xae0449(0x26b);const _0x3cce1b=_0x578f0c;if(!_0x1b1a08)return null;return _0x1b1a08[_0xae0449(0x2a5)]()[_0xae0449(0x1ed)](/AssertionError/)?_0x3cce1b[_0xae0449(0x1af)]:_0x3cce1b[_0xae0449(0x2b1)];},exports[a130_0x192933(0x2b4)]=_0xff1b33=>{const _0x557105=a130_0x192933,_0x41c9db={};_0x41c9db[_0x557105(0x209)]=_0x557105(0x1a4),_0x41c9db[_0x557105(0x216)]=_0x557105(0x263),_0x41c9db[_0x557105(0x19d)]=_0x557105(0x275),_0x41c9db['dqLaK']=_0x557105(0x241),_0x41c9db[_0x557105(0x1d9)]=_0x557105(0x1b9);const _0x3cffd4=_0x41c9db;let _0x471b2b=null;switch(_0xff1b33){case FRAMEWORKS[_0x557105(0x1ac)]:_0x471b2b=bsSetupHelper['getPackageVersion'](_0x3cffd4[_0x557105(0x209)]);break;case FRAMEWORKS[_0x557105(0x246)]:_0x471b2b=bsSetupHelper[_0x557105(0x260)](_0x3cffd4[_0x557105(0x216)]);break;case FRAMEWORKS['CODECEPT']:case FRAMEWORKS[_0x557105(0x29f)]:_0x471b2b=bsSetupHelper[_0x557105(0x260)](_0x3cffd4[_0x557105(0x19d)]);break;case FRAMEWORKS[_0x557105(0x1ea)]:_0x471b2b=bsSetupHelper[_0x557105(0x260)](_0x3cffd4[_0x557105(0x27f)]);break;case FRAMEWORKS[_0x557105(0x256)]:_0x471b2b=bsSetupHelper[_0x557105(0x260)](_0x3cffd4[_0x557105(0x1d9)]);break;default:break;}return _0x471b2b;},exports['getBrowserStackConfig']=_0x4810e1=>{const _0xd8d6af=a130_0x192933;let _0x30268c=null;switch(_0x4810e1){case FRAMEWORKS['PLAYWRIGHT']:_0x30268c=process[_0xd8d6af(0x215)][_0xd8d6af(0x223)];break;}if(!_0x30268c)return;return bsSetupHelper['readConfig'](_0x30268c,![]);},exports[a130_0x192933(0x232)]=_0x54e74c=>{const _0x4f0dbd=a130_0x192933;return{'username':bsSetupHelper[_0x4f0dbd(0x2a6)](_0x54e74c),'accessKey':bsSetupHelper[_0x4f0dbd(0x299)](_0x54e74c)};},exports['modifyReqForTraceUpload']=(_0x23eeb8,_0x1ab82a)=>{const _0x26d9be=a130_0x192933,_0x3e6dc0={};_0x3e6dc0[_0x26d9be(0x231)]=_0x26d9be(0x1ef),_0x3e6dc0[_0x26d9be(0x224)]=_0x26d9be(0x27b),_0x3e6dc0[_0x26d9be(0x288)]='TEST_ATTACHMENT';const _0x273f32=_0x3e6dc0,_0x4a4c0e=_0x273f32[_0x26d9be(0x231)][_0x26d9be(0x1da)]('|');let _0x40e693=0x0;while(!![]){switch(_0x4a4c0e[_0x40e693++]){case'0':if(!_0x23eeb8['body']||!Array['isArray'](_0x23eeb8[_0x26d9be(0x1bd)]))return;continue;case'1':delete _0x1ab82a[_0x26d9be(0x249)];continue;case'2':delete _0x23eeb8[_0x26d9be(0x1bd)];continue;case'3':if(!_0x23eeb8[_0x26d9be(0x1bd)][0x0]||!_0x23eeb8[_0x26d9be(0x1bd)][0x0][_0x26d9be(0x234)]||!_0x23eeb8['body'][0x0]['logs']['length'])return;continue;case'4':_0x23eeb8['formData']={'data':_0x23eeb8['body'][0x0][_0x26d9be(0x234)][0x0][_0x26d9be(0x1d5)],'test_run_uuid':_0x23eeb8[_0x26d9be(0x1bd)][0x0][_0x26d9be(0x234)][0x0][_0x26d9be(0x287)],'event_type':_0x273f32[_0x26d9be(0x224)],'kind':_0x273f32[_0x26d9be(0x288)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x26d9be(0x25a)](),'fileName':_0x23eeb8[_0x26d9be(0x1bd)][0x0][_0x26d9be(0x234)][0x0]['fileName']};continue;case'5':delete _0x23eeb8[_0x26d9be(0x1ff)];continue;}break;}},exports['asyncAwaitNodeReq']=async(_0x478f2d,_0x101e29,_0x1cba6b,_0x167bee,_0x152b3b=!![])=>{const _0x389e8e=a130_0x192933,_0x11101f={};_0x11101f[_0x389e8e(0x1fb)]=function(_0x520f23,_0xa24726){return _0x520f23===_0xa24726;},_0x11101f[_0x389e8e(0x1a6)]='Content-Type',_0x11101f[_0x389e8e(0x211)]=_0x389e8e(0x1e5),_0x11101f[_0x389e8e(0x251)]=_0x389e8e(0x28e),_0x11101f['hkHTj']=function(_0xbb8912,_0x917b05){return _0xbb8912===_0x917b05;},_0x11101f[_0x389e8e(0x28a)]=function(_0x4a4f10,_0x41b47d){return _0x4a4f10!==_0x41b47d;},_0x11101f[_0x389e8e(0x2af)]=function(_0x545996,_0x1eec43){return _0x545996!==_0x1eec43;},_0x11101f['rvvHD']='object',_0x11101f[_0x389e8e(0x1c3)]=_0x389e8e(0x1b0);const _0xc6163a=_0x11101f,_0x3b8402={..._0x167bee,...{'method':_0x478f2d,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x101e29,'body':_0x1cba6b,'json':_0xc6163a[_0x389e8e(0x1fb)](_0x167bee[_0x389e8e(0x249)][_0xc6163a['HeAyE']],_0xc6163a[_0x389e8e(0x211)]),'agent':API_URL['includes'](_0xc6163a[_0x389e8e(0x251)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0xc6163a[_0x389e8e(0x253)](_0x101e29,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x3b8402[_0x389e8e(0x22b)]=API_URL[_0x389e8e(0x28c)](_0xc6163a[_0x389e8e(0x251)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x389e8e(0x1c8)](_0x3b8402,_0x167bee),logger[_0x389e8e(0x23e)](_0x389e8e(0x293)+_0x3b8402[_0x389e8e(0x257)]));try{const {statusCode:_0x59252a,body:_0x3761c5}=await bsSetupHelper['nodeRequest'](_0x478f2d,_0x101e29,_0x3b8402,_0x167bee,_0x3b8402[_0x389e8e(0x257)]);if(_0xc6163a['SeBby'](_0x59252a,0xc8))return _0x3761c5?_0x3761c5:_0x389e8e(0x29b)+_0x59252a;let _0x1c3c86=_0x3761c5;if(_0x152b3b)try{_0xc6163a[_0x389e8e(0x2af)](typeof _0x3761c5,_0xc6163a[_0x389e8e(0x1f6)])&&(_0x1c3c86=JSON['parse'](_0x3761c5));}catch(_0x355e88){logger['error'](_0xc6163a[_0x389e8e(0x1c3)],_0x3761c5,util['format'](_0x355e88));}const _0x27dafe={};return _0x27dafe['data']=_0x1c3c86,_0x27dafe;}catch(_0x2206ff){logger[_0x389e8e(0x262)](_0x389e8e(0x292)+util[_0x389e8e(0x286)](_0x2206ff));throw _0x2206ff;}},exports[a130_0x192933(0x2a8)]=(_0xe08cb8,_0x5665df,_0x28b2fe,_0x32ca85,_0x5c9078=!![])=>{const _0x5e7add=a130_0x192933,_0x43310e={'Jplsn':function(_0x3443f0,_0x4b7345){return _0x3443f0!==_0x4b7345;},'EkFLC':function(_0x4a06f6,_0x252cda){return _0x4a06f6(_0x252cda);},'ZuRoQ':_0x5e7add(0x21d),'nyItB':_0x5e7add(0x289),'lpvfs':function(_0x62c6c0,_0x1838f7){return _0x62c6c0(_0x1838f7);},'NLBij':function(_0x29c73b,_0x51777b){return _0x29c73b===_0x51777b;},'QmeUj':'Content-Type','LumuW':_0x5e7add(0x1e5),'uShmT':_0x5e7add(0x28e)};return new Promise((_0x3cb6ba,_0x37bf5e)=>{const _0x5a4620=_0x5e7add,_0x3a310d={'jUgbi':function(_0x86b6e4,_0x3f10fa){const _0x352736=a130_0x31fd;return _0x43310e[_0x352736(0x248)](_0x86b6e4,_0x3f10fa);},'fHYlb':function(_0x483013,_0x221ce3){return _0x43310e['EkFLC'](_0x483013,_0x221ce3);},'uNydx':function(_0x1f9b79,_0x2fa615){const _0x4c6123=a130_0x31fd;return _0x43310e[_0x4c6123(0x248)](_0x1f9b79,_0x2fa615);},'XROPk':_0x43310e['ZuRoQ'],'InzLy':_0x43310e[_0x5a4620(0x221)],'TEbnf':function(_0x4c5d00,_0x182d65){const _0x102b18=_0x5a4620;return _0x43310e[_0x102b18(0x1c7)](_0x4c5d00,_0x182d65);},'IDbZF':function(_0x29aad4,_0x4f4443){const _0x244573=_0x5a4620;return _0x43310e[_0x244573(0x1ca)](_0x29aad4,_0x4f4443);}},_0x3121d8={..._0x32ca85,...{'method':_0xe08cb8,'url':API_URL+'/'+_0x5665df,'body':_0x28b2fe,'json':_0x43310e[_0x5a4620(0x1ab)](_0x32ca85[_0x5a4620(0x249)][_0x43310e[_0x5a4620(0x27c)]],_0x43310e['LumuW']),'agent':API_URL[_0x5a4620(0x28c)](_0x43310e[_0x5a4620(0x213)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x43310e[_0x5a4620(0x1ab)](_0x5665df,SCREENSHOT_ENDPOINT)&&(_0x3121d8[_0x5a4620(0x22b)]=API_URL[_0x5a4620(0x28c)](_0x43310e[_0x5a4620(0x213)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x5a4620(0x2a8)](_0xe08cb8,_0x5665df,_0x3121d8,_0x32ca85,API_URL)[_0x5a4620(0x1f9)](({statusCode:_0x19ee8d,body:_0x55246f})=>{const _0x227eed=_0x5a4620;if(_0x3a310d[_0x227eed(0x29a)](_0x19ee8d,0xc8))_0x3a310d[_0x227eed(0x1e1)](_0x37bf5e,_0x55246f?_0x55246f:_0x227eed(0x29b)+_0x19ee8d);else{if(_0x5c9078)try{_0x3a310d['uNydx'](typeof _0x55246f,_0x3a310d[_0x227eed(0x1c9)])&&(_0x55246f=JSON['parse'](_0x55246f));}catch(_0x5199ba){_0x3a310d[_0x227eed(0x1e1)](_0x37bf5e,_0x3a310d[_0x227eed(0x1e7)]);return;}const _0x542d9e={};_0x542d9e[_0x227eed(0x1d5)]=_0x55246f,_0x3a310d[_0x227eed(0x20c)](_0x3cb6ba,_0x542d9e);}})[_0x5a4620(0x26a)](_0xd19258=>{const _0xf2cb39=_0x5a4620;_0xd19258&&_0x3a310d[_0xf2cb39(0x230)](_0x37bf5e,_0xd19258);});});},exports[a130_0x192933(0x254)]=_0x5958ca=>{const _0x3e415a=a130_0x192933;if(process[_0x3e415a(0x215)][_0x3e415a(0x1d4)])return process[_0x3e415a(0x215)][_0x3e415a(0x1d4)]['split'](',');if(process[_0x3e415a(0x215)][_0x3e415a(0x23b)])return process[_0x3e415a(0x215)][_0x3e415a(0x23b)][_0x3e415a(0x1da)](',');if(_0x5958ca[_0x3e415a(0x1b6)])return _0x5958ca[_0x3e415a(0x1b6)];return[];},exports[a130_0x192933(0x245)]=(_0x119120=!![])=>{const _0x2ca0ab=a130_0x192933,_0xc39dc2={};_0xc39dc2[_0x2ca0ab(0x1a0)]='application/json',_0xc39dc2[_0x2ca0ab(0x1ad)]='true',_0xc39dc2[_0x2ca0ab(0x285)]=_0x2ca0ab(0x1dd);const _0x2d4c5e=_0xc39dc2,_0x479024={};_0x479024['Content-Type']=_0x2d4c5e[_0x2ca0ab(0x1a0)],_0x479024[_0x2ca0ab(0x279)]=_0x2d4c5e[_0x2ca0ab(0x1ad)];const _0x1e456b=_0x479024;return _0x119120&&process[_0x2ca0ab(0x215)][_0x2ca0ab(0x259)]&&(_0x1e456b[_0x2d4c5e['stPbg']]=_0x2ca0ab(0x1a9)+process[_0x2ca0ab(0x215)][_0x2ca0ab(0x259)]),_0x1e456b;},exports[a130_0x192933(0x25f)]=_0x20fed6=>{const _0x17daeb=a130_0x192933,_0x29738f={};_0x29738f[_0x17daeb(0x255)]=_0x17daeb(0x283);const _0x2d6062=_0x29738f,_0x3441e8=[],_0x2295ac=new RegExp(_0x2d6062['uwDoN'],'i');return Object[_0x17daeb(0x20f)](_0x20fed6)[_0x17daeb(0x26d)](_0x586293=>_0x2295ac[_0x17daeb(0x201)](_0x586293))['forEach'](_0x5e8ebf=>_0x3441e8[_0x17daeb(0x27a)](_0x20fed6[_0x5e8ebf])),_0x3441e8;},exports['getCustomTags']=_0x2c2c1=>{const _0x255daf=a130_0x192933,_0x3ecd4d=[],_0x1810be=_0x2c2c1['customTag']||process[_0x255daf(0x215)]['CUSTOM_TAG'];return _0x1810be&&_0x3ecd4d[_0x255daf(0x27a)](_0x1810be),_0x3ecd4d['push'](...exports[_0x255daf(0x25f)](process[_0x255daf(0x215)])),_0x3ecd4d[_0x255daf(0x27a)](...exports[_0x255daf(0x25f)](_0x2c2c1)),_0x3ecd4d;},exports[a130_0x192933(0x233)]=_0x22c18e=>{const _0x45e42d=a130_0x192933;if(!_0x22c18e)return'';return _0x22c18e[_0x45e42d(0x1f5)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports['sleep']=(_0x583ec2=0x64)=>new Promise(_0x55e564=>setTimeout(_0x55e564,_0x583ec2));const getPlatformName=()=>{const _0xcf8d45=a130_0x192933,_0xa5938f={};_0xa5938f['ifQBU']=function(_0x1b94a3,_0x53fac5){return _0x1b94a3===_0x53fac5;},_0xa5938f[_0xcf8d45(0x19f)]=_0xcf8d45(0x2b3),_0xa5938f[_0xcf8d45(0x265)]='Windows',_0xa5938f['vadNX']=function(_0x24e90e,_0x438ae6){return _0x24e90e===_0x438ae6;},_0xa5938f[_0xcf8d45(0x22f)]=_0xcf8d45(0x2b6),_0xa5938f['YZtuw']=_0xcf8d45(0x21f),_0xa5938f[_0xcf8d45(0x243)]=_0xcf8d45(0x26f),_0xa5938f[_0xcf8d45(0x2a7)]=_0xcf8d45(0x2b0),_0xa5938f[_0xcf8d45(0x258)]=_0xcf8d45(0x2a0);const _0x1628ec=_0xa5938f;if(_0x1628ec['ifQBU'](process[_0xcf8d45(0x25b)],_0x1628ec[_0xcf8d45(0x19f)]))return _0x1628ec[_0xcf8d45(0x265)];if(_0x1628ec[_0xcf8d45(0x1e0)](process[_0xcf8d45(0x25b)],_0x1628ec['DKjbE']))return _0x1628ec[_0xcf8d45(0x22d)];if(_0x1628ec[_0xcf8d45(0x1e0)](process['platform'],_0x1628ec[_0xcf8d45(0x243)]))return _0x1628ec[_0xcf8d45(0x2a7)];return _0x1628ec[_0xcf8d45(0x258)];},getMacOSVersion=()=>{const _0x19f8fe=a130_0x192933,_0x400329={};_0x400329[_0x19f8fe(0x274)]=_0x19f8fe(0x29c);const _0x2d5596=_0x400329;return child_process[_0x19f8fe(0x1a2)](_0x2d5596[_0x19f8fe(0x274)])[_0x19f8fe(0x2a5)]()[_0x19f8fe(0x207)]();},getLinuxDetails=()=>{const _0x5d9f65={'VcBWh':function(_0x38cd20,_0x42cb21){return _0x38cd20(_0x42cb21);}};return new Promise((_0x5be595,_0x550950)=>{const _0x13389d=a130_0x31fd;_0x5d9f65[_0x13389d(0x244)](getos,(_0x4014d7,_0x221f95)=>{const _0x483581=_0x13389d;if(_0x4014d7)return _0x5d9f65['VcBWh'](_0x550950,_0x4014d7);_0x5d9f65[_0x483581(0x244)](_0x5be595,_0x221f95);});});};exports[a130_0x192933(0x29e)]=async()=>{const _0x46a0cf=a130_0x192933,_0x490a2e={'qvZgT':function(_0x255de9){return _0x255de9();},'GwuYr':_0x46a0cf(0x21f),'Fxzyx':function(_0x5e39f2){return _0x5e39f2();},'GkqRB':'Windows','atpPJ':'windows-release','JJMdA':function(_0xdf5cc9){return _0xdf5cc9();},'vJDRX':'Linux','cywFi':'Error\x20in\x20getting\x20Linux\x20Details'};let _0x545d87=_0x490a2e[_0x46a0cf(0x298)](getPlatformName),_0x5ab156=os['release']()[_0x46a0cf(0x2a5)]();switch(_0x545d87){case _0x490a2e[_0x46a0cf(0x1a1)]:_0x5ab156=_0x490a2e[_0x46a0cf(0x20e)](getMacOSVersion);break;case _0x490a2e[_0x46a0cf(0x22e)]:try{const _0x881322=(await import(_0x490a2e[_0x46a0cf(0x1d3)]))[_0x46a0cf(0x1bc)];_0x5ab156=_0x490a2e[_0x46a0cf(0x1f3)](_0x881322);}catch(_0x369980){exports['debug'](_0x46a0cf(0x20d)+_0x369980[_0x46a0cf(0x2a5)]());}break;case _0x490a2e[_0x46a0cf(0x1aa)]:try{const _0x4dd800=await _0x490a2e[_0x46a0cf(0x20e)](getLinuxDetails);_0x4dd800[_0x46a0cf(0x2a2)]&&(_0x545d87=_0x4dd800[_0x46a0cf(0x2a2)]),_0x4dd800['release']&&(_0x5ab156=_0x4dd800[_0x46a0cf(0x272)][_0x46a0cf(0x2a5)]());}catch(_0x445a7f){exports[_0x46a0cf(0x23e)](_0x490a2e['cywFi']);}break;default:break;}const _0x346cb9={};return _0x346cb9[_0x46a0cf(0x276)]=_0x545d87,_0x346cb9[_0x46a0cf(0x27d)]=_0x5ab156,_0x346cb9;},exports[a130_0x192933(0x1fd)]=(_0x442e18,_0x231de3)=>{const _0x48c279=a130_0x192933,_0x378ea5={};_0x378ea5[_0x48c279(0x204)]=function(_0x180a87,_0x58d40c){return _0x180a87===_0x58d40c;},_0x378ea5[_0x48c279(0x290)]=_0x48c279(0x201),_0x378ea5[_0x48c279(0x240)]=function(_0x229172,_0x15835f){return _0x229172===_0x15835f;},_0x378ea5['jlwPW']=_0x48c279(0x282);const _0x44aa49=_0x378ea5;if(!_0x442e18)return[];try{if(_0x44aa49[_0x48c279(0x204)](_0x231de3,_0x44aa49[_0x48c279(0x290)]))return _0x442e18[_0x48c279(0x24a)](_0x46fe95=>{const _0x513d5c=_0x48c279,{stack:_0x13cb21,..._0x3d61b0}=_0x46fe95,_0xe62786=Object[_0x513d5c(0x20f)](_0x3d61b0)[_0x513d5c(0x24a)](_0x51827a=>{return _0x51827a+':\x20'+_0x3d61b0[_0x51827a];}),_0x470622=_0x13cb21?exports[_0x513d5c(0x233)](_0x13cb21)[_0x513d5c(0x1da)](/\r?\n/):[exports['removeAnsiColors'](_0x46fe95[_0x513d5c(0x1ce)])],_0x8f47a={};return _0x8f47a['backtrace']=_0x470622,_0x8f47a['expanded']=_0xe62786,_0x8f47a;});else{if(_0x44aa49[_0x48c279(0x240)](_0x231de3,_0x44aa49[_0x48c279(0x2aa)])){const _0x49bbe2=[],_0x17744a=[];return Object[_0x48c279(0x20f)](_0x442e18)['forEach'](_0x2d7dd3=>{const _0x4ec1cd=_0x48c279;try{_0x17744a[_0x4ec1cd(0x27a)](_0x2d7dd3+':\x20'+_0x442e18[_0x2d7dd3]);}catch(_0x42bf92){exports[_0x4ec1cd(0x23e)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x42bf92[_0x4ec1cd(0x1ce)]+'\x20:\x20'+_0x42bf92[_0x4ec1cd(0x296)]);}}),_0x49bbe2[_0x48c279(0x27a)]({'backtrace':exports[_0x48c279(0x233)](_0x442e18['stack'])[_0x48c279(0x1da)](/\r?\n/),'expanded':_0x17744a}),_0x49bbe2;}}return[];}catch(_0x37693a){exports['debug'](_0x48c279(0x277)+_0x37693a['message']+'\x20:\x20'+_0x37693a['backtrace']);}return[];};function a130_0x1e1a(){const _0x142328=['jlwPW','getSession','./constants','toJSON','isTestObservabilitySession','hakhG','Linux','emglN','browserstack','win32','getFrameworkVersion','PathHelper','darwin','Yfhtz','1294648vIgXKb','Eifwp','Gkxjd','GwuYr','execSync','getBrowserVersion','mocha','BROWSERSTACK_TEST_REPORTING','HeAyE','PRINT_BUILDLINK','78InjaOa','Bearer\x20','vJDRX','NLBij','MOCHA','ZLdMa','TEST_REPORTING_ANALYTICS','ctAPL','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','LJgGw','http','patchConsoleLogger','spy','BROWSERSTACK_RERUN_TESTS','buildTag','../../bin/v2/browserstackCLI','YplYY','@cucumber/cucumber','15NammHH','Fojyo','default','body','trace','git-last-commit','jHkgx','browserstack_executor:\x20','AgOSn','Ypuma','log','YkukU','app','lpvfs','modifyReqForTraceUpload','XROPk','EkFLC','669684BWFWeP','TEST_PLATFORM','672728YpKYWB','message','36zeubgY','emit','forEach','isInternalHook','atpPJ','TEST_REPORTING_BUILD_TAG','data','local_grid','Agent','FFsfO','yZqot','split','getFailureType','pRpLo','Authorization','bstack:options','length','vadNX','fHYlb','pid','BROWSERSTACK_TEST_OBSERVABILITY_YML','WIKGS','application/json','timeout','InzLy','shouldReRunObservabilityTests','O11Y_URL','JEST','silly','getPlatform','match','undefined','0|3|4|2|5|1','../../helpers/request-spy','getSyncScript','HTTP','JJMdA','lodash','replace','rvvHD','BROWSERSTACK_TEST_REPORTING_DEBUG','util','then','hostname','tSLnB','AkjDh','failureData','RngnJ','json','rAslf','test','ySDgW','getObservabilityLinkedProductName','xFMce','PJHaJ','mkghb','trim','app-automate','ExJRy','O11yHashedID','DGvbt','TEbnf','Error\x20in\x20importing\x20windows-release\x20','Fxzyx','keys','config','naqWc','HUB_URL_REGEX','uShmT','lMyow','env','dgSYl','\x20]\x20','BS_TESTOPS_BUILD_HASHED_ID','2250903GctlyA','maxSockets','291802aflsVS','ISRrY','object','info','OS\x20X','kFatx','nyItB','host','BROWSERSTACK_CONFIG_FILE_PATH','nsddl','relative','../helper','../../bin/utils/logPatcher','stack','][\x20','maxTotalSockets','agent','winstonLogger','YZtuw','GkqRB','DKjbE','IDbZF','oOHeO','getUserCredentials','removeAnsiColors','logs','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','../logger','null','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','acjur','turboScaleGridDetails','TEST_OBSERVABILITY_BUILD_TAG','path','/builds/','debug','keepAlive','Zzsak','jest','getCapabilities','GJeEd','VcBWh','getDefaultHeaders','PLAYWRIGHT','prefix','Jplsn','headers','map','8670820ZvErni','567858tJmEus','\x20]\x20Build\x20Not\x20Found\x20%s','fromEntries','../performance/constants','11amXWdr','YmDWs','annotate','hkHTj','getBuildTags','uwDoN','CUCUMBER','url','tvUuU','BROWSERSTACK_TESTHUB_JWT','toISOString','platform','STIDh','now','kdVat','extractValuesWithRegexKeyMatch','getPackageVersion','PFRSh','error','@playwright/test','Bpbkj','rvpqs','mlotZ','DUGwv','vBRIS','QNbES','catch','UnhandledError','isUndefined','filter','rflpD','linux','true','SEaUs','release','uNTRk','hJRrL','codeceptjs','platformName','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','bs:addLog:','X-BSTACK-TESTOPS','push','LogCreated','QmeUj','platformVersion','relativeTestFilePath','dqLaK','CDPwA','addRequestSpy','err','^CUSTOM_TAG_\x5cd+$','BROWSERSTACK_TEST_OBSERVABILITY','stPbg','format','test_run_uuid','YbZov','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','SeBby','getPlatformVersion','includes','printBuildLink','https','cwd','LwORd','join','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','Uploading\x20trace\x20logs\x20to:\x20','abVZQ','__cloud_provider___','backtrace','bzSqK','qvZgT','getAccessKey','jUgbi','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','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','bYYfu','getPlatformDetails','CODECEPT_CUCUMBER','Unknown','capabilities','dist','parseFileNames','ATS_HUB_URL_REGEX','toString','getUserName','oUqeU','nodeRequest','AssertionError'];a130_0x1e1a=function(){return _0x142328;};return a130_0x1e1a();}class PathHelper{constructor(_0x4b725f,_0x6e7ad1){const _0x3daca6=a130_0x192933;this[_0x3daca6(0x210)]=_0x4b725f,this[_0x3daca6(0x247)]=_0x6e7ad1;}['relativeTestFilePath'](_0x23a760){const _0x164cd6=a130_0x192933,_0x4233c6=this[_0x164cd6(0x210)][_0x164cd6(0x28f)]||this['config']['rootDir'];return path[_0x164cd6(0x225)](_0x4233c6,_0x23a760);}['prefixTestPath'](_0x5c57fd){const _0x32844d=a130_0x192933,_0x530304=this[_0x32844d(0x27e)](_0x5c57fd);return this['prefix']?path[_0x32844d(0x291)](this[_0x32844d(0x247)],_0x530304):_0x530304;}}exports[a130_0x192933(0x2b5)]=PathHelper,exports[a130_0x192933(0x281)]=(_0xece761=!![])=>{const _0x297ffb=a130_0x192933,_0x1a2c27={};_0x1a2c27[_0x297ffb(0x280)]=function(_0x5a1f0f,_0xbf26bf){return _0x5a1f0f===_0xbf26bf;},_0x1a2c27[_0x297ffb(0x220)]='X-BSTACK-TESTOPS',_0x1a2c27[_0x297ffb(0x269)]=_0x297ffb(0x270),_0x1a2c27[_0x297ffb(0x1d8)]=_0x297ffb(0x1f2),_0x1a2c27['YkukU']=_0x297ffb(0x2b2),_0x1a2c27[_0x297ffb(0x20b)]=_0x297ffb(0x1d6);const _0x3a8240=_0x1a2c27;requestSpy[_0x297ffb(0x1b4)]((_0x269f0a,_0x1eff01)=>{const _0x6349b3=_0x297ffb;_0x1eff01&&!(_0x1eff01['headers']&&_0x3a8240['CDPwA'](_0x1eff01[_0x6349b3(0x249)][_0x3a8240['kFatx']],_0x3a8240[_0x6349b3(0x269)]))&&(_0x1eff01['host']=_0x1eff01[_0x6349b3(0x1fa)],delete _0x1eff01[_0x6349b3(0x1fa)],_0xece761&&process[_0x6349b3(0x1d0)](_0x6349b3(0x278)+process['pid'],{'timestamp':new Date()[_0x6349b3(0x25a)](),'level':null,'message':null,'kind':_0x3a8240['FFsfO'],'http_response':_0x1eff01})),_0x1eff01&&(constants[_0x6349b3(0x212)]['test'](_0x1eff01[_0x6349b3(0x222)])||constants[_0x6349b3(0x2a4)][_0x6349b3(0x201)](_0x1eff01[_0x6349b3(0x222)]))?global[_0x6349b3(0x295)]=_0x3a8240[_0x6349b3(0x1c5)]:global[_0x6349b3(0x295)]=_0x3a8240['DGvbt'];});},exports[a130_0x192933(0x1b3)]=()=>{const _0x3d9272=a130_0x192933,_0x1ae098={'ySDgW':function(_0x21a913,_0x250bc5){return _0x21a913(_0x250bc5);}};console={},Object[_0x3d9272(0x20f)](consoleHolder)[_0x3d9272(0x1d1)](_0x24d127=>{const _0x2f0962=_0x3d9272;_0x1ae098[_0x2f0962(0x202)](isFunction,consoleHolder[_0x24d127])?console[_0x24d127]=(..._0x5a93ef)=>{const _0x39e5cc=_0x2f0962;try{!Object[_0x39e5cc(0x20f)](BSTestOpsPatcher)[_0x39e5cc(0x28c)](_0x24d127)?consoleHolder[_0x24d127](..._0x5a93ef):BSTestOpsPatcher[_0x24d127](..._0x5a93ef);}catch(_0x434f60){consoleHolder[_0x24d127](..._0x5a93ef);}}:console[_0x24d127]=consoleHolder[_0x24d127];});},exports[a130_0x192933(0x1f1)]=()=>a130_0x192933(0x1c1)+JSON['stringify']({'action':a130_0x192933(0x252),'arguments':{'data':'ObservabilitySync:'+Date[a130_0x192933(0x25d)](),'level':'debug'}}),exports[a130_0x192933(0x203)]=_0x3ea4ce=>{const _0x9a1169=a130_0x192933,_0x28d912={};_0x28d912[_0x9a1169(0x26e)]=function(_0x4e1224,_0x3785fd){return _0x4e1224===_0x3785fd;},_0x28d912[_0x9a1169(0x25c)]='browserstack',_0x28d912[_0x9a1169(0x206)]='appium:app',_0x28d912[_0x9a1169(0x1fe)]=_0x9a1169(0x1c6),_0x28d912[_0x9a1169(0x266)]=function(_0x9c9d91,_0x264942){return _0x9c9d91>_0x264942;},_0x28d912[_0x9a1169(0x1bb)]=_0x9a1169(0x208),_0x28d912[_0x9a1169(0x271)]=_0x9a1169(0x1de),_0x28d912[_0x9a1169(0x1e4)]=_0x9a1169(0x23a),_0x28d912[_0x9a1169(0x1dc)]='turboscale',_0x28d912['uNTRk']='automate';const _0x1c486a=_0x28d912;let _0x35c48d=null;try{if(_0x1c486a[_0x9a1169(0x26e)](global[_0x9a1169(0x295)],_0x1c486a[_0x9a1169(0x25c)])){if(_0x3ea4ce[_0x1c486a['mkghb']]||_0x3ea4ce[_0x1c486a[_0x9a1169(0x1fe)]]||!bsSetupHelper[_0x9a1169(0x26c)](global[_0x9a1169(0x2a1)])&&_0x1c486a['mlotZ'](global[_0x9a1169(0x2a1)][_0x9a1169(0x1df)],0x0)&&(global['capabilities'][0x0][_0x1c486a[_0x9a1169(0x1fe)]]||global[_0x9a1169(0x2a1)][0x0][_0x1c486a['mkghb']]))_0x35c48d=_0x1c486a['Fojyo'];else _0x3ea4ce[_0x1c486a[_0x9a1169(0x271)]]&&_0x3ea4ce[_0x1c486a[_0x9a1169(0x271)]][_0x1c486a['WIKGS']]?_0x35c48d=_0x1c486a['pRpLo']:_0x35c48d=_0x1c486a[_0x9a1169(0x273)];}}catch(_0x4602f5){exports[_0x9a1169(0x23e)](_0x9a1169(0x238)+constants[_0x9a1169(0x1ae)]+'\x20test\x20instance\x20:\x20'+_0x4602f5);}return _0x35c48d;},exports['sendPlatformDetails']=async(_0x5a6924,_0x5805d4,_0x4e5e7a=![])=>{const _0x3218b4=a130_0x192933,_0x789eb8={};_0x789eb8[_0x3218b4(0x239)]=function(_0x41235c,_0x4b7305){return _0x41235c===_0x4b7305;},_0x789eb8[_0x3218b4(0x1b8)]=_0x3218b4(0x2b2),_0x789eb8[_0x3218b4(0x29d)]='unknown_grid',_0x789eb8[_0x3218b4(0x21c)]=_0x3218b4(0x1cc);const _0x57c4b4=_0x789eb8;try{const _0x1923ad=await _0x5a6924[_0x3218b4(0x242)](),_0x13cf61=await _0x5a6924[_0x3218b4(0x2ab)](),_0x3802ea={},_0x195caf=Object[_0x3218b4(0x24e)](_0x13cf61[_0x3218b4(0x242)]()['map_']),_0x50e864={'product':exports[_0x3218b4(0x203)](_0x195caf),'capabilities':_0x195caf,'platform':_0x1923ad[_0x3218b4(0x1ec)](),'platform_version':bsSetupHelper[_0x3218b4(0x28b)](_0x57c4b4[_0x3218b4(0x239)](global[_0x3218b4(0x295)],_0x57c4b4[_0x3218b4(0x1b8)])),'browser':_0x1923ad['getBrowserName'](),'browser_version':_0x1923ad[_0x3218b4(0x1a3)](),'session_id':_0x13cf61[_0x3218b4(0x2ad)]()};global[_0x3218b4(0x295)]?_0x3802ea[global[_0x3218b4(0x295)]]=_0x50e864:_0x3802ea[_0x57c4b4[_0x3218b4(0x29d)]]=_0x50e864;if(_0x4e5e7a)return _0x3802ea;process[_0x3218b4(0x1d0)]('bs:addPlatformDetails:'+process[_0x3218b4(0x1e2)],{'timestamp':new Date()[_0x3218b4(0x25a)](),'level':null,'message':null,'kind':_0x57c4b4[_0x3218b4(0x21c)],'http_response':_0x3802ea,'uuid':_0x5805d4});}catch(_0x47c51a){exports[_0x3218b4(0x23e)]('Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x47c51a);}},exports[a130_0x192933(0x1d2)]=_0x793ccf=>{const _0x50cab2=a130_0x192933;return _0x793ccf&&_0x793ccf[_0x50cab2(0x2a5)]()[_0x50cab2(0x1ed)](/browserstack internal helper hook/);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a131_0x736b(){var _0x2512ea=['https://collector-observability.browserstack.com','testorchestration/api/v1/failed-tests','436344vSfyAv','13FsgSBh','FAILED_TESTS_ENDPOINT','1217648SByDec','ORCHESTRATION_API_URL','6haKIWm','4TgClOc','9709368bCSMJm','66964ecgpQr','33cxhLWQ','5073061hePrfs','10VpwzVM','9yPkGpg','457490Igcoyl','830805yfiGBW'];a131_0x736b=function(){return _0x2512ea;};return a131_0x736b();}var a131_0x304ead=a131_0x1b33;(function(_0x4b8377,_0x4f09a9){var _0x58883c=a131_0x1b33,_0x457a63=_0x4b8377();while(!![]){try{var _0x304e10=-parseInt(_0x58883c(0x1d2))/0x1*(-parseInt(_0x58883c(0x1e0))/0x2)+parseInt(_0x58883c(0x1d8))/0x3+parseInt(_0x58883c(0x1de))/0x4*(-parseInt(_0x58883c(0x1d5))/0x5)+parseInt(_0x58883c(0x1dd))/0x6*(-parseInt(_0x58883c(0x1d1))/0x7)+-parseInt(_0x58883c(0x1db))/0x8*(parseInt(_0x58883c(0x1d3))/0x9)+-parseInt(_0x58883c(0x1d4))/0xa*(-parseInt(_0x58883c(0x1e1))/0xb)+-parseInt(_0x58883c(0x1df))/0xc*(-parseInt(_0x58883c(0x1d9))/0xd);if(_0x304e10===_0x4f09a9)break;else _0x457a63['push'](_0x457a63['shift']());}catch(_0x17e2c8){_0x457a63['push'](_0x457a63['shift']());}}}(a131_0x736b,0x5da33));function a131_0x1b33(_0x416438,_0x318e98){var _0x736bed=a131_0x736b();return a131_0x1b33=function(_0x1b3383,_0x2d5aad){_0x1b3383=_0x1b3383-0x1d1;var _0xc5f546=_0x736bed[_0x1b3383];return _0xc5f546;},a131_0x1b33(_0x416438,_0x318e98);}var a131_0x5574c4={};a131_0x5574c4[a131_0x304ead(0x1dc)]=a131_0x304ead(0x1d6),a131_0x5574c4[a131_0x304ead(0x1da)]=a131_0x304ead(0x1d7),a131_0x5574c4['SPLIT_TESTS_ENDPOINT']='testorchestration/api/v1/split-tests',module['exports']=a131_0x5574c4;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a132_0x167d3e=a132_0x2fe8;function a132_0x1595(){const _0x36e6a2=['fileHelper','CJqIL',',\x20CI\x20Mode:\x20','nbSik','PLnKK','_sendFailedTestsToAPI','aivdA','zvyCd','\x20(was\x20','length',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','FailFastManager','ljgTM','cNXuC','_fetchAPIFailedCount','startPolling','5818797TDjiAK','uKzeW','writeState','_CI]\x20Error\x20sending\x20failed\x20test\x20','from','existsSync','lockFilePath','winstonLogger','_pollFailedTests','failFastConfig','shouldFailFast','_initializeStateFromFile','writeFileSync','_getDefaultState','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','error','_CI]\x20Error\x20during\x20polling\x20logic:\x20','./fileHelper','getFailedTestsCount','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','WXKKt','NjpBd','reportedFailuresToAPI','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','./requestUtils','_CI]\x20API\x20failed\x20count\x20updated:\x20','BssSQ','totalTests','fpaCs','stateFilePath','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','pollingInterval','failedTests','MNkre','failFastActiveMarkerPath','RWDAS','nSOfJ','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','recordTestResult','catch','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','1531718FHUivx','join','1980804rzQZdc','failFast.active','passed','JuQhB','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','failFastState.lock','exports','add','stack',']\x20Polling\x20stopped.','_Local]\x20State\x20initialized\x20from\x20file.','failFastState.json','buildName','buildRunIdentifier','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','efhau','KfkaF','ACZMI','number',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','pcHQa','2NinrdP','qVUrZ','BROWSERSTACK_TOTAL_NODE_COUNT','RzjyF','24HZERSu','toISOString','\x20to\x20API:\x20','../logger','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','onTestDone','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','isCIMode','BROWSERSTACK_BUILD_RUN_IDENTIFIER','cleanup','newState','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','state','NHiTR','failFastActive','workingDir','readState','_CI]\x20Polling\x20started\x20with\x20interval:\x20','putFailedTests','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','uniqueFailedTests','svGnn','7349424RCclqx','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','5DHGVjN','ZppOf','message','GHOaA','10216388dueSPI','stopPolling','WPcFH','projectName',',\x20threshold:\x20','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','TFlvI','debug','XCqLW','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','NpDsR','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','env','GwrSE','LUIbT','\x0aStack:\x20','size','info','pndZQ','768234eOYrgt','path','QFIZD','dGxfb','lastAPIFailedCount','fxLdk','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','43139270CycQrh'];a132_0x1595=function(){return _0x36e6a2;};return a132_0x1595();}(function(_0x88a672,_0xfe2f9c){const _0x147398=a132_0x2fe8,_0x3365e2=_0x88a672();while(!![]){try{const _0x125d9a=parseInt(_0x147398(0x22a))/0x1*(-parseInt(_0x147398(0x1b5))/0x2)+parseInt(_0x147398(0x1e9))/0x3*(-parseInt(_0x147398(0x1b9))/0x4)+parseInt(_0x147398(0x1d2))/0x5*(-parseInt(_0x147398(0x22c))/0x6)+parseInt(_0x147398(0x1d6))/0x7+-parseInt(_0x147398(0x1d0))/0x8+-parseInt(_0x147398(0x201))/0x9+parseInt(_0x147398(0x1f0))/0xa;if(_0x125d9a===_0xfe2f9c)break;else _0x3365e2['push'](_0x3365e2['shift']());}catch(_0x91bb8d){_0x3365e2['push'](_0x3365e2['shift']());}}}(a132_0x1595,0xc5b98));const fs=require('fs'),path=require(a132_0x167d3e(0x1ea)),FileHelper=require(a132_0x167d3e(0x212)),RequestUtils=require(a132_0x167d3e(0x219)),logger=require(a132_0x167d3e(0x1bc))[a132_0x167d3e(0x208)],POLLING_INTERVAL=0x2710,TAG=a132_0x167d3e(0x1fc);function a132_0x2fe8(_0x4cc2b6,_0x1e6b00){const _0x159504=a132_0x1595();return a132_0x2fe8=function(_0x2fe8d7,_0x35b496){_0x2fe8d7=_0x2fe8d7-0x1a9;let _0xec600f=_0x159504[_0x2fe8d7];return _0xec600f;},a132_0x2fe8(_0x4cc2b6,_0x1e6b00);}class FailFastManager{constructor(_0x5c2fb8,_0x519665,_0xa4ca01){const _0x1837a6=a132_0x167d3e,_0x4b3081={};_0x4b3081[_0x1837a6(0x1de)]=function(_0x216c91,_0x3241c4){return _0x216c91+_0x3241c4;},_0x4b3081[_0x1837a6(0x1fe)]=_0x1837a6(0x1e5),_0x4b3081[_0x1837a6(0x1eb)]=function(_0x5a82fd,_0x10c431){return _0x5a82fd||_0x10c431;},_0x4b3081[_0x1837a6(0x1e4)]=_0x1837a6(0x1ab),_0x4b3081[_0x1837a6(0x21d)]=_0x1837a6(0x231),_0x4b3081[_0x1837a6(0x1f7)]=_0x1837a6(0x22d);const _0x5b9a43=_0x4b3081;this[_0x1837a6(0x20a)]=_0x5b9a43[_0x1837a6(0x1eb)](_0x5c2fb8,{}),this[_0x1837a6(0x1ac)]=_0x519665,this[_0x1837a6(0x1d9)]=_0xa4ca01,this[_0x1837a6(0x1c1)]=!!(process[_0x1837a6(0x1e2)][_0x1837a6(0x1c2)]&&process[_0x1837a6(0x1e2)]['BROWSERSTACK_NODE_INDEX']&&process[_0x1837a6(0x1e2)][_0x1837a6(0x1b7)]);const _0x11ca33=this[_0x1837a6(0x20a)][_0x1837a6(0x1c9)];this[_0x1837a6(0x21e)]=path[_0x1837a6(0x22b)](_0x11ca33,_0x5b9a43[_0x1837a6(0x1e4)]),this[_0x1837a6(0x207)]=path[_0x1837a6(0x22b)](_0x11ca33,_0x5b9a43[_0x1837a6(0x21d)]),this['failFastActiveMarkerPath']=path[_0x1837a6(0x22b)](_0x11ca33,_0x5b9a43[_0x1837a6(0x1f7)]),this[_0x1837a6(0x1f1)]=new FileHelper(this[_0x1837a6(0x20a)],this[_0x1837a6(0x21e)],this[_0x1837a6(0x207)],this['_getDefaultState']()),this[_0x1837a6(0x1c6)]=this[_0x1837a6(0x20e)](),this[_0x1837a6(0x220)]=null,this[_0x1837a6(0x1c1)]&&(this['reportedFailuresToAPI']=new Set()),this['_initializeStateFromFile']()[_0x1837a6(0x228)](_0x3f699b=>{const _0x44b059=_0x1837a6;logger[_0x44b059(0x210)]('['+TAG+_0x44b059(0x1fb)+_0x3f699b['message']+(_0x3f699b['stack']?_0x5b9a43[_0x44b059(0x1de)](_0x5b9a43[_0x44b059(0x1fe)],_0x3f699b[_0x44b059(0x234)]):'')),this[_0x44b059(0x1c6)]=this['_getDefaultState']();}),this[_0x1837a6(0x1c1)]&&this[_0x1837a6(0x200)](),logger[_0x1837a6(0x1dd)]('['+TAG+']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20'+this[_0x1837a6(0x20a)]['failureThresholdCount']+_0x1837a6(0x1f3)+this[_0x1837a6(0x1c1)]);}[a132_0x167d3e(0x20e)](){const _0x4c1d89={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x4c1d89;}async[a132_0x167d3e(0x20c)](){const _0x3094f6=a132_0x167d3e,_0x5982e8={};_0x5982e8[_0x3094f6(0x202)]=function(_0x152b81,_0x58866c){return _0x152b81+_0x58866c;},_0x5982e8['pcHQa']='\x0aStack:\x20',_0x5982e8[_0x3094f6(0x216)]=function(_0x5d20c1,_0x2195a9){return _0x5d20c1+_0x2195a9;};const _0x5a67dc=_0x5982e8;if(this[_0x3094f6(0x1c1)])try{fs[_0x3094f6(0x206)](this[_0x3094f6(0x223)])&&(this[_0x3094f6(0x1c6)][_0x3094f6(0x1c8)]=!![],logger[_0x3094f6(0x1dd)]('['+TAG+_0x3094f6(0x1e1)));}catch(_0x48b19c){logger['error']('['+TAG+_0x3094f6(0x21f)+_0x48b19c[_0x3094f6(0x1d4)]+(_0x48b19c[_0x3094f6(0x234)]?_0x5a67dc[_0x3094f6(0x202)](_0x5a67dc['pcHQa'],_0x48b19c[_0x3094f6(0x234)]):''));}else try{const _0x5b469d=await this[_0x3094f6(0x1f1)][_0x3094f6(0x1ca)]();if(_0x5b469d)this['state']={...this['_getDefaultState'](),..._0x5b469d,'uniqueFailedTests':new Set(_0x5b469d[_0x3094f6(0x1ce)]||[])},logger[_0x3094f6(0x1dd)]('['+TAG+_0x3094f6(0x1aa));else{logger[_0x3094f6(0x1dd)]('['+TAG+_0x3094f6(0x1db));const _0x5b3750=this[_0x3094f6(0x20e)](),_0x288be0={..._0x5b3750,'uniqueFailedTests':Array[_0x3094f6(0x205)](_0x5b3750['uniqueFailedTests'])};await this[_0x3094f6(0x1f1)][_0x3094f6(0x203)](_0x288be0),this[_0x3094f6(0x1c6)]=_0x5b3750;}}catch(_0x46d8a2){logger[_0x3094f6(0x1dd)]('['+TAG+_0x3094f6(0x230)+_0x46d8a2[_0x3094f6(0x1d4)]+(_0x46d8a2[_0x3094f6(0x234)]?_0x5a67dc['NjpBd'](_0x5a67dc[_0x3094f6(0x1b4)],_0x46d8a2[_0x3094f6(0x234)]):'')),this[_0x3094f6(0x1c6)]=this[_0x3094f6(0x20e)]();}}async[a132_0x167d3e(0x1be)](_0x58b663,_0x25894e){const _0x881c0a=a132_0x167d3e,_0x4a5f00={};_0x4a5f00[_0x881c0a(0x1b0)]=function(_0x162ab8,_0x6614c8){return _0x162ab8>_0x6614c8;},_0x4a5f00[_0x881c0a(0x224)]=function(_0x190f57,_0x45eaae){return _0x190f57>_0x45eaae;},_0x4a5f00[_0x881c0a(0x1c7)]='failed',_0x4a5f00['eIDgd']=_0x881c0a(0x22e),_0x4a5f00[_0x881c0a(0x1e3)]=function(_0x1789f8,_0x37932b){return _0x1789f8+_0x37932b;},_0x4a5f00['efhau']=_0x881c0a(0x1e5),_0x4a5f00[_0x881c0a(0x21b)]=function(_0x1a0858,_0x230200){return _0x1a0858||_0x230200;};const _0x3afd16=_0x4a5f00;if(this['isCIMode'])this[_0x881c0a(0x1c6)][_0x881c0a(0x21c)]+=0x1,_0x25894e&&_0x3afd16[_0x881c0a(0x1b0)](_0x25894e['length'],0x0)&&(!this[_0x881c0a(0x217)]['has'](_0x58b663)&&(await this['_sendFailedTestsToAPI'](_0x58b663),this['reportedFailuresToAPI'][_0x881c0a(0x233)](_0x58b663)));else try{const _0x473f66={'fullName':_0x58b663,'status':_0x25894e&&_0x3afd16[_0x881c0a(0x224)](_0x25894e[_0x881c0a(0x1fa)],0x0)?_0x3afd16[_0x881c0a(0x1c7)]:_0x3afd16['eIDgd']},_0xfb3646=await this[_0x881c0a(0x1f1)][_0x881c0a(0x227)](_0x473f66);this[_0x881c0a(0x1c6)]={...this[_0x881c0a(0x20e)](),..._0xfb3646[_0x881c0a(0x1c4)],'uniqueFailedTests':new Set(_0xfb3646[_0x881c0a(0x1c4)][_0x881c0a(0x1ce)]||[])};}catch(_0x51db44){logger['error']('['+TAG+_0x881c0a(0x1df)+_0x51db44['message']+(_0x51db44['stack']?_0x3afd16[_0x881c0a(0x1e3)](_0x3afd16[_0x881c0a(0x1af)],_0x51db44[_0x881c0a(0x234)]):''));try{const _0x53c9f9=await this[_0x881c0a(0x1f1)]['readState']();this[_0x881c0a(0x1c6)]={...this[_0x881c0a(0x20e)](),..._0x3afd16[_0x881c0a(0x21b)](_0x53c9f9,{}),'uniqueFailedTests':new Set(_0x53c9f9?_0x53c9f9[_0x881c0a(0x1ce)]||[]:[])},logger[_0x881c0a(0x1dd)]('['+TAG+_0x881c0a(0x1cd));}catch(_0x23dc6e){logger['error']('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0x23dc6e[_0x881c0a(0x1d4)]+(_0x23dc6e[_0x881c0a(0x234)]?_0x3afd16[_0x881c0a(0x1e3)](_0x3afd16['efhau'],_0x23dc6e['stack']):'')),this[_0x881c0a(0x1c6)]=this[_0x881c0a(0x20e)]();}}}async[a132_0x167d3e(0x1f6)](_0x525e96){const _0x1675d1=a132_0x167d3e,_0x500e7b={};_0x500e7b['RzjyF']=function(_0x15a32b,_0x746294){return _0x15a32b+_0x746294;},_0x500e7b[_0x1675d1(0x1ee)]=_0x1675d1(0x1e5);const _0x9f3b08=_0x500e7b;if(!this[_0x1675d1(0x1c1)]||!_0x525e96)return;try{logger['debug']('['+TAG+_0x1675d1(0x20f)+_0x525e96);const _0x24c7d0={};_0x24c7d0[_0x1675d1(0x1ac)]=this[_0x1675d1(0x1ac)],_0x24c7d0[_0x1675d1(0x1d9)]=this[_0x1675d1(0x1d9)],_0x24c7d0[_0x1675d1(0x221)]=[_0x525e96],_0x24c7d0['buildRunIdentifier']=process[_0x1675d1(0x1e2)][_0x1675d1(0x1c2)],await RequestUtils[_0x1675d1(0x1cc)](_0x24c7d0);}catch(_0x4f1e4a){logger[_0x1675d1(0x210)]('['+TAG+_0x1675d1(0x204)+_0x525e96+_0x1675d1(0x1bb)+_0x4f1e4a['message']+(_0x4f1e4a['stack']?_0x9f3b08[_0x1675d1(0x1b8)](_0x9f3b08[_0x1675d1(0x1ee)],_0x4f1e4a[_0x1675d1(0x234)]):''));}}async[a132_0x167d3e(0x1ff)](){const _0x489eb0=a132_0x167d3e,_0x47de12={};_0x47de12[_0x489eb0(0x1f4)]=function(_0x22a314,_0x9e3fa9){return _0x22a314===_0x9e3fa9;},_0x47de12['qVUrZ']=_0x489eb0(0x1b2),_0x47de12['ljgTM']=function(_0x41261a,_0x5401bd){return _0x41261a+_0x5401bd;},_0x47de12[_0x489eb0(0x1dc)]=_0x489eb0(0x1e5),_0x47de12[_0x489eb0(0x1f5)]=function(_0x7531af,_0x256b7e){return _0x7531af!==_0x256b7e;};const _0x1f09ad=_0x47de12;if(!this[_0x489eb0(0x1c1)])return 0x0;try{const _0x30ee55={};_0x30ee55['buildName']=this[_0x489eb0(0x1ac)],_0x30ee55[_0x489eb0(0x1d9)]=this[_0x489eb0(0x1d9)],_0x30ee55[_0x489eb0(0x1ad)]=process[_0x489eb0(0x1e2)][_0x489eb0(0x1c2)];const _0x17d3ed=await RequestUtils[_0x489eb0(0x213)](_0x30ee55);return logger[_0x489eb0(0x1dd)]('['+TAG+_0x489eb0(0x1d1)+_0x17d3ed),_0x1f09ad['nbSik'](typeof _0x17d3ed,_0x1f09ad[_0x489eb0(0x1b6)])?_0x17d3ed:0x0;}catch(_0x38714b){return logger[_0x489eb0(0x210)]('['+TAG+_0x489eb0(0x229)+_0x38714b[_0x489eb0(0x1d4)]+(_0x38714b[_0x489eb0(0x234)]?_0x1f09ad[_0x489eb0(0x1fd)](_0x1f09ad['TFlvI'],_0x38714b[_0x489eb0(0x234)]):'')),_0x1f09ad[_0x489eb0(0x1f5)](this['state'][_0x489eb0(0x1ed)],undefined)?this['state'][_0x489eb0(0x1ed)]:0x0;}}async['_pollFailedTests'](){const _0x36c337=a132_0x167d3e,_0x3548b6={};_0x3548b6[_0x36c337(0x1ec)]=function(_0x397ea9,_0x159d08){return _0x397ea9!==_0x159d08;},_0x3548b6[_0x36c337(0x1d5)]=function(_0x1ade1d,_0x4fb3b8){return _0x1ade1d+_0x4fb3b8;},_0x3548b6[_0x36c337(0x1e0)]=_0x36c337(0x1e5);const _0x47cab4=_0x3548b6;if(!this[_0x36c337(0x1c1)])return;try{const _0x3c579d=await this[_0x36c337(0x1ff)]();_0x47cab4[_0x36c337(0x1ec)](_0x3c579d,this[_0x36c337(0x1c6)]['lastAPIFailedCount'])&&(logger['debug']('['+TAG+_0x36c337(0x21a)+_0x3c579d+_0x36c337(0x1f9)+this['state'][_0x36c337(0x1ed)]+')'),this[_0x36c337(0x1c6)][_0x36c337(0x1ed)]=_0x3c579d);}catch(_0x53c60f){logger[_0x36c337(0x210)]('['+TAG+_0x36c337(0x211)+_0x53c60f[_0x36c337(0x1d4)]+(_0x53c60f[_0x36c337(0x234)]?_0x47cab4[_0x36c337(0x1d5)](_0x47cab4[_0x36c337(0x1e0)],_0x53c60f[_0x36c337(0x234)]):''));}}async[a132_0x167d3e(0x200)](){const _0x27e51a=a132_0x167d3e,_0x221f2d={'zvyCd':function(_0x1b9354,_0x464bb2,_0x26689d){return _0x1b9354(_0x464bb2,_0x26689d);}};this['pollingInterval']&&this[_0x27e51a(0x1d7)](),this[_0x27e51a(0x1c1)]&&(await this[_0x27e51a(0x209)](),this[_0x27e51a(0x220)]=_0x221f2d[_0x27e51a(0x1f8)](setInterval,async()=>{const _0x36024f=_0x27e51a;await this[_0x36024f(0x209)]();},POLLING_INTERVAL),logger['debug']('['+TAG+_0x27e51a(0x1cb)+POLLING_INTERVAL+'ms.'));}[a132_0x167d3e(0x1d7)](){const _0x578d77=a132_0x167d3e,_0x499855={'svGnn':function(_0x3ccaa3,_0x14e1da){return _0x3ccaa3(_0x14e1da);}};this[_0x578d77(0x220)]&&(_0x499855[_0x578d77(0x1cf)](clearInterval,this[_0x578d77(0x220)]),this[_0x578d77(0x220)]=null,logger[_0x578d77(0x1dd)]('['+TAG+_0x578d77(0x1a9)));}async[a132_0x167d3e(0x20b)](){const _0x4e78f0=a132_0x167d3e,_0x347019={};_0x347019[_0x4e78f0(0x1e8)]=function(_0x33c9e3,_0x5a6fab){return _0x33c9e3===_0x5a6fab;},_0x347019[_0x4e78f0(0x1d8)]=function(_0xe3ed77,_0x51a82a){return _0xe3ed77<=_0x51a82a;},_0x347019[_0x4e78f0(0x1b1)]=function(_0x4db69f,_0x31c3e0){return _0x4db69f+_0x31c3e0;},_0x347019['ZppOf']=_0x4e78f0(0x1e5),_0x347019[_0x4e78f0(0x215)]=function(_0x12b9f9,_0x5ca622){return _0x12b9f9!==_0x5ca622;},_0x347019['bKiuu']=function(_0x409ccd,_0x194543){return _0x409ccd>=_0x194543;},_0x347019[_0x4e78f0(0x222)]=function(_0x3b2d30,_0x1debc1){return _0x3b2d30+_0x1debc1;},_0x347019['nSOfJ']=function(_0x54d72,_0x101384){return _0x54d72+_0x101384;},_0x347019[_0x4e78f0(0x22f)]=function(_0x25a2d1,_0x40ddcf){return _0x25a2d1>=_0x40ddcf;};const _0xb0c0f4=_0x347019,{failureThresholdCount:_0x148eef}=this[_0x4e78f0(0x20a)];if(_0xb0c0f4[_0x4e78f0(0x1e8)](_0x148eef,null)||_0xb0c0f4['pndZQ'](_0x148eef,undefined)||_0xb0c0f4[_0x4e78f0(0x1d8)](_0x148eef,0x0))return logger[_0x4e78f0(0x1dd)]('['+TAG+_0x4e78f0(0x1b3)),![];if(this[_0x4e78f0(0x1c1)]){try{if(fs['existsSync'](this['failFastActiveMarkerPath']))return logger[_0x4e78f0(0x1dd)]('['+TAG+_0x4e78f0(0x226)),!this[_0x4e78f0(0x1c6)][_0x4e78f0(0x1c8)]&&(this['state']['failFastActive']=!![]),this[_0x4e78f0(0x1d7)](),!![];}catch(_0x203f31){logger[_0x4e78f0(0x210)]('['+TAG+_0x4e78f0(0x21f)+_0x203f31[_0x4e78f0(0x1d4)]+(_0x203f31[_0x4e78f0(0x234)]?_0xb0c0f4['ACZMI'](_0xb0c0f4[_0x4e78f0(0x1d3)],_0x203f31[_0x4e78f0(0x234)]):''));}const _0x5b33c2=_0xb0c0f4[_0x4e78f0(0x215)](this['state'][_0x4e78f0(0x1ed)],undefined)?this[_0x4e78f0(0x1c6)][_0x4e78f0(0x1ed)]:0x0;if(_0xb0c0f4['bKiuu'](_0x5b33c2,_0x148eef)){logger['info']('['+TAG+_0x4e78f0(0x214)+_0x5b33c2+',\x20threshold:\x20'+_0x148eef+'.');try{fs[_0x4e78f0(0x20d)](this['failFastActiveMarkerPath'],new Date()[_0x4e78f0(0x1ba)]()),logger[_0x4e78f0(0x1dd)]('['+TAG+'_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20'+this[_0x4e78f0(0x223)]),this[_0x4e78f0(0x1c6)][_0x4e78f0(0x1c8)]=!![];}catch(_0x58b381){logger[_0x4e78f0(0x210)]('['+TAG+_0x4e78f0(0x1ae)+_0x58b381[_0x4e78f0(0x1d4)]+(_0x58b381[_0x4e78f0(0x234)]?_0xb0c0f4[_0x4e78f0(0x222)](_0xb0c0f4[_0x4e78f0(0x1d3)],_0x58b381[_0x4e78f0(0x234)]):''));}return this['stopPolling'](),!![];}}else{let _0x26a329;try{_0x26a329=await this[_0x4e78f0(0x1f1)][_0x4e78f0(0x1ca)]();if(!_0x26a329)return logger['warn']('['+TAG+_0x4e78f0(0x1bd)),![];}catch(_0x5284dc){return logger['error']('['+TAG+_0x4e78f0(0x1bf)+_0x5284dc[_0x4e78f0(0x1d4)]+(_0x5284dc[_0x4e78f0(0x234)]?_0xb0c0f4[_0x4e78f0(0x225)](_0xb0c0f4['ZppOf'],_0x5284dc['stack']):'')),![];}this[_0x4e78f0(0x1c6)]={...this[_0x4e78f0(0x20e)](),..._0x26a329,'uniqueFailedTests':new Set(_0x26a329[_0x4e78f0(0x1ce)]||[])};if(this[_0x4e78f0(0x1c6)][_0x4e78f0(0x1c8)])return logger[_0x4e78f0(0x1dd)]('['+TAG+_0x4e78f0(0x1c5)),!![];const _0xbcc86a=this[_0x4e78f0(0x1c6)][_0x4e78f0(0x1ce)],_0x544e1f=_0xbcc86a[_0x4e78f0(0x1e6)];if(_0xb0c0f4[_0x4e78f0(0x22f)](_0x544e1f,_0x148eef)){try{logger[_0x4e78f0(0x1e7)]('['+TAG+_0x4e78f0(0x1c0)+_0x544e1f+_0x4e78f0(0x1da)+_0x148eef+'.'),this['state'][_0x4e78f0(0x1c8)]=!![];}catch(_0xd2a933){logger[_0x4e78f0(0x210)]('['+TAG+'_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20'+_0xd2a933['message']+(_0xd2a933[_0x4e78f0(0x234)]?_0xb0c0f4[_0x4e78f0(0x1b1)](_0xb0c0f4[_0x4e78f0(0x1d3)],_0xd2a933[_0x4e78f0(0x234)]):''));}return!![];}}return![];}async[a132_0x167d3e(0x1c3)](){const _0x733d39=a132_0x167d3e,_0x5581d8={};_0x5581d8['CJqIL']=function(_0x545b25,_0x40bbd8){return _0x545b25+_0x40bbd8;},_0x5581d8['nPcqS']=_0x733d39(0x1e5);const _0x4bf853=_0x5581d8;this[_0x733d39(0x1d7)]();if(this[_0x733d39(0x1c1)])logger[_0x733d39(0x1dd)]('['+TAG+_0x733d39(0x1ef));else try{const _0x14b335={...this[_0x733d39(0x1c6)],'uniqueFailedTests':Array[_0x733d39(0x205)](this[_0x733d39(0x1c6)]['uniqueFailedTests']||new Set())};await this[_0x733d39(0x1f1)]['writeState'](_0x14b335),logger[_0x733d39(0x1dd)]('['+TAG+_0x733d39(0x218));}catch(_0x299c86){logger[_0x733d39(0x210)]('['+TAG+'_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20'+_0x299c86['message']+(_0x299c86['stack']?_0x4bf853[_0x733d39(0x1f2)](_0x4bf853['nPcqS'],_0x299c86[_0x733d39(0x234)]):''));}}}module[a132_0x167d3e(0x232)]=FailFastManager;
|
|
1
|
+
const a132_0x5258b7=a132_0x4e1e;(function(_0x39101f,_0x54c827){const _0x39d152=a132_0x4e1e,_0x3c3ccb=_0x39101f();while(!![]){try{const _0x194fa1=parseInt(_0x39d152(0xc1))/0x1*(parseInt(_0x39d152(0x7c))/0x2)+parseInt(_0x39d152(0xd8))/0x3+parseInt(_0x39d152(0xd2))/0x4*(parseInt(_0x39d152(0xf4))/0x5)+parseInt(_0x39d152(0xbc))/0x6+parseInt(_0x39d152(0x95))/0x7*(parseInt(_0x39d152(0xe2))/0x8)+-parseInt(_0x39d152(0x86))/0x9+parseInt(_0x39d152(0x75))/0xa*(-parseInt(_0x39d152(0x91))/0xb);if(_0x194fa1===_0x54c827)break;else _0x3c3ccb['push'](_0x3c3ccb['shift']());}catch(_0x59b3bd){_0x3c3ccb['push'](_0x3c3ccb['shift']());}}}(a132_0x60ec,0x3267f));const fs=require('fs'),path=require(a132_0x5258b7(0xe7)),FileHelper=require('./fileHelper'),RequestUtils=require(a132_0x5258b7(0xad)),logger=require(a132_0x5258b7(0xcb))[a132_0x5258b7(0xb0)],POLLING_INTERVAL=0x2710,TAG='FailFastManager';class FailFastManager{constructor(_0x30800d,_0x41ff15,_0x86bedf){const _0x3d03d2=a132_0x5258b7,_0x12c93e={};_0x12c93e[_0x3d03d2(0x8e)]=function(_0x51b526,_0x36c567){return _0x51b526+_0x36c567;},_0x12c93e[_0x3d03d2(0xf3)]=_0x3d03d2(0x74),_0x12c93e[_0x3d03d2(0x77)]=function(_0x4dae0a,_0x151f97){return _0x4dae0a||_0x151f97;},_0x12c93e['JvMuX']=_0x3d03d2(0xdf),_0x12c93e['BZnaI']=_0x3d03d2(0xe0),_0x12c93e[_0x3d03d2(0x9b)]=_0x3d03d2(0x76);const _0x56883d=_0x12c93e;this[_0x3d03d2(0xb5)]=_0x56883d[_0x3d03d2(0x77)](_0x30800d,{}),this[_0x3d03d2(0xd1)]=_0x41ff15,this[_0x3d03d2(0xe5)]=_0x86bedf,this[_0x3d03d2(0xac)]=!!(process[_0x3d03d2(0xd0)][_0x3d03d2(0xec)]&&process[_0x3d03d2(0xd0)][_0x3d03d2(0xdb)]&&process[_0x3d03d2(0xd0)][_0x3d03d2(0xa3)]);const _0x4d95cc=this[_0x3d03d2(0xb5)][_0x3d03d2(0xef)];this[_0x3d03d2(0xf6)]=path[_0x3d03d2(0xd5)](_0x4d95cc,_0x56883d[_0x3d03d2(0xc4)]),this[_0x3d03d2(0x7a)]=path[_0x3d03d2(0xd5)](_0x4d95cc,_0x56883d[_0x3d03d2(0x89)]),this[_0x3d03d2(0xf1)]=path[_0x3d03d2(0xd5)](_0x4d95cc,_0x56883d['FJOik']),this['fileHelper']=new FileHelper(this[_0x3d03d2(0xb5)],this[_0x3d03d2(0xf6)],this[_0x3d03d2(0x7a)],this['_getDefaultState']()),this[_0x3d03d2(0x81)]=this[_0x3d03d2(0xc6)](),this['pollingInterval']=null,this[_0x3d03d2(0xac)]&&(this[_0x3d03d2(0x7e)]=new Set()),this['_initializeStateFromFile']()['catch'](_0x42439b=>{const _0x4d53e4=_0x3d03d2;logger[_0x4d53e4(0x8f)]('['+TAG+_0x4d53e4(0xa2)+_0x42439b[_0x4d53e4(0xbd)]+(_0x42439b['stack']?_0x56883d[_0x4d53e4(0x8e)](_0x56883d[_0x4d53e4(0xf3)],_0x42439b[_0x4d53e4(0x94)]):'')),this[_0x4d53e4(0x81)]=this['_getDefaultState']();}),this[_0x3d03d2(0xac)]&&this[_0x3d03d2(0x8a)](),logger['debug']('['+TAG+_0x3d03d2(0xb8)+this['failFastConfig'][_0x3d03d2(0x78)]+',\x20CI\x20Mode:\x20'+this['isCIMode']);}[a132_0x5258b7(0xc6)](){const _0x4761bd={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x4761bd;}async[a132_0x5258b7(0xd9)](){const _0x3038ff=a132_0x5258b7,_0x4e62dd={};_0x4e62dd[_0x3038ff(0xde)]=function(_0x59b4f1,_0x177dec){return _0x59b4f1+_0x177dec;},_0x4e62dd['nyGTl']=_0x3038ff(0x74),_0x4e62dd[_0x3038ff(0xab)]=function(_0x3aac1a,_0x4c6db9){return _0x3aac1a+_0x4c6db9;};const _0x13ae8f=_0x4e62dd;if(this[_0x3038ff(0xac)])try{fs[_0x3038ff(0xd6)](this[_0x3038ff(0xf1)])&&(this[_0x3038ff(0x81)][_0x3038ff(0x73)]=!![],logger[_0x3038ff(0x85)]('['+TAG+_0x3038ff(0x84)));}catch(_0x4275c6){logger[_0x3038ff(0x8f)]('['+TAG+_0x3038ff(0xe6)+_0x4275c6[_0x3038ff(0xbd)]+(_0x4275c6[_0x3038ff(0x94)]?_0x13ae8f[_0x3038ff(0xde)](_0x13ae8f['nyGTl'],_0x4275c6['stack']):''));}else try{const _0x4f72fb=await this[_0x3038ff(0xc9)]['readState']();if(_0x4f72fb)this[_0x3038ff(0x81)]={...this['_getDefaultState'](),..._0x4f72fb,'uniqueFailedTests':new Set(_0x4f72fb[_0x3038ff(0xbb)]||[])},logger['debug']('['+TAG+_0x3038ff(0xb1));else{logger[_0x3038ff(0x85)]('['+TAG+_0x3038ff(0xa6));const _0x4c2cf4=this['_getDefaultState'](),_0x3b0f91={..._0x4c2cf4,'uniqueFailedTests':Array['from'](_0x4c2cf4[_0x3038ff(0xbb)])};await this[_0x3038ff(0xc9)][_0x3038ff(0xd7)](_0x3b0f91),this[_0x3038ff(0x81)]=_0x4c2cf4;}}catch(_0x2112c4){logger['debug']('['+TAG+_0x3038ff(0xa7)+_0x2112c4['message']+(_0x2112c4[_0x3038ff(0x94)]?_0x13ae8f[_0x3038ff(0xab)](_0x13ae8f[_0x3038ff(0x8b)],_0x2112c4[_0x3038ff(0x94)]):'')),this['state']=this[_0x3038ff(0xc6)]();}}async['onTestDone'](_0x263be2,_0x100886){const _0x1aa56f=a132_0x5258b7,_0x5dc40c={};_0x5dc40c[_0x1aa56f(0xb9)]=function(_0x18d631,_0x3633e8){return _0x18d631>_0x3633e8;},_0x5dc40c['fQAPT']=_0x1aa56f(0xba),_0x5dc40c['PskvW']=_0x1aa56f(0xaf),_0x5dc40c['wJGUh']=function(_0x5f2de7,_0x290e74){return _0x5f2de7+_0x290e74;},_0x5dc40c[_0x1aa56f(0x97)]=_0x1aa56f(0x74),_0x5dc40c[_0x1aa56f(0xbe)]=function(_0x51847a,_0x45eb7c){return _0x51847a||_0x45eb7c;};const _0x48dfd2=_0x5dc40c;if(this[_0x1aa56f(0xac)])this[_0x1aa56f(0x81)][_0x1aa56f(0xcc)]+=0x1,_0x100886&&_0x48dfd2[_0x1aa56f(0xb9)](_0x100886[_0x1aa56f(0xed)],0x0)&&(!this[_0x1aa56f(0x7e)][_0x1aa56f(0xd3)](_0x263be2)&&(await this[_0x1aa56f(0xa5)](_0x263be2),this['reportedFailuresToAPI'][_0x1aa56f(0xbf)](_0x263be2)));else try{const _0x157039={'fullName':_0x263be2,'status':_0x100886&&_0x48dfd2['pZLxz'](_0x100886[_0x1aa56f(0xed)],0x0)?_0x48dfd2[_0x1aa56f(0x7b)]:_0x48dfd2[_0x1aa56f(0xea)]},_0x161e4f=await this[_0x1aa56f(0xc9)][_0x1aa56f(0x82)](_0x157039);this[_0x1aa56f(0x81)]={...this[_0x1aa56f(0xc6)](),..._0x161e4f[_0x1aa56f(0xee)],'uniqueFailedTests':new Set(_0x161e4f[_0x1aa56f(0xee)][_0x1aa56f(0xbb)]||[])};}catch(_0x41cd74){logger[_0x1aa56f(0x8f)]('['+TAG+_0x1aa56f(0xa1)+_0x41cd74[_0x1aa56f(0xbd)]+(_0x41cd74[_0x1aa56f(0x94)]?_0x48dfd2[_0x1aa56f(0xda)](_0x48dfd2[_0x1aa56f(0x97)],_0x41cd74[_0x1aa56f(0x94)]):''));try{const _0x6bbbd7=await this['fileHelper']['readState']();this['state']={...this['_getDefaultState'](),..._0x48dfd2[_0x1aa56f(0xbe)](_0x6bbbd7,{}),'uniqueFailedTests':new Set(_0x6bbbd7?_0x6bbbd7[_0x1aa56f(0xbb)]||[]:[])},logger['debug']('['+TAG+'_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.');}catch(_0x49157e){logger['error']('['+TAG+_0x1aa56f(0x8c)+_0x49157e[_0x1aa56f(0xbd)]+(_0x49157e[_0x1aa56f(0x94)]?_0x48dfd2[_0x1aa56f(0xda)](_0x48dfd2[_0x1aa56f(0x97)],_0x49157e[_0x1aa56f(0x94)]):'')),this[_0x1aa56f(0x81)]=this[_0x1aa56f(0xc6)]();}}}async[a132_0x5258b7(0xa5)](_0x1ae34e){const _0x55929a=a132_0x5258b7,_0x278687={};_0x278687[_0x55929a(0xdd)]=function(_0x5135ec,_0x13bc8d){return _0x5135ec+_0x13bc8d;},_0x278687[_0x55929a(0x7f)]=_0x55929a(0x74);const _0x3f850d=_0x278687;if(!this[_0x55929a(0xac)]||!_0x1ae34e)return;try{logger[_0x55929a(0x85)]('['+TAG+_0x55929a(0x83)+_0x1ae34e);const _0xe2b5e2={};_0xe2b5e2['buildName']=this['buildName'],_0xe2b5e2[_0x55929a(0xe5)]=this[_0x55929a(0xe5)],_0xe2b5e2[_0x55929a(0xc5)]=[_0x1ae34e],_0xe2b5e2[_0x55929a(0x98)]=process[_0x55929a(0xd0)][_0x55929a(0xec)],await RequestUtils[_0x55929a(0xf8)](_0xe2b5e2);}catch(_0x517b46){logger[_0x55929a(0x8f)]('['+TAG+'_CI]\x20Error\x20sending\x20failed\x20test\x20'+_0x1ae34e+_0x55929a(0xb7)+_0x517b46[_0x55929a(0xbd)]+(_0x517b46['stack']?_0x3f850d[_0x55929a(0xdd)](_0x3f850d[_0x55929a(0x7f)],_0x517b46[_0x55929a(0x94)]):''));}}async[a132_0x5258b7(0xa0)](){const _0x3d25a7=a132_0x5258b7,_0x1d718a={};_0x1d718a['MrdFg']=function(_0x4c8fcb,_0x4784b0){return _0x4c8fcb===_0x4784b0;},_0x1d718a['GZXwd']=_0x3d25a7(0x96),_0x1d718a['TqAXt']=function(_0x311873,_0x1723a1){return _0x311873+_0x1723a1;},_0x1d718a[_0x3d25a7(0x9a)]=_0x3d25a7(0x74),_0x1d718a[_0x3d25a7(0xcd)]=function(_0x1dfd43,_0x26a342){return _0x1dfd43!==_0x26a342;};const _0x49321f=_0x1d718a;if(!this[_0x3d25a7(0xac)])return 0x0;try{const _0x1f6744={};_0x1f6744[_0x3d25a7(0xd1)]=this[_0x3d25a7(0xd1)],_0x1f6744[_0x3d25a7(0xe5)]=this['projectName'],_0x1f6744['buildRunIdentifier']=process[_0x3d25a7(0xd0)][_0x3d25a7(0xec)];const _0x22e961=await RequestUtils[_0x3d25a7(0xc2)](_0x1f6744);return logger['debug']('['+TAG+'_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20'+_0x22e961),_0x49321f['MrdFg'](typeof _0x22e961,_0x49321f[_0x3d25a7(0xf2)])?_0x22e961:0x0;}catch(_0x259785){return logger[_0x3d25a7(0x8f)]('['+TAG+'_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20'+_0x259785[_0x3d25a7(0xbd)]+(_0x259785['stack']?_0x49321f['TqAXt'](_0x49321f[_0x3d25a7(0x9a)],_0x259785[_0x3d25a7(0x94)]):'')),_0x49321f[_0x3d25a7(0xcd)](this['state'][_0x3d25a7(0x7d)],undefined)?this['state'][_0x3d25a7(0x7d)]:0x0;}}async['_pollFailedTests'](){const _0x54e446=a132_0x5258b7,_0x3f0ab1={};_0x3f0ab1[_0x54e446(0x92)]=function(_0xef5cc0,_0x5ee258){return _0xef5cc0!==_0x5ee258;},_0x3f0ab1[_0x54e446(0xd4)]=function(_0x233a19,_0x552fe7){return _0x233a19+_0x552fe7;},_0x3f0ab1[_0x54e446(0xc8)]=_0x54e446(0x74);const _0x109252=_0x3f0ab1;if(!this[_0x54e446(0xac)])return;try{const _0x3e7fdc=await this['_fetchAPIFailedCount']();_0x109252[_0x54e446(0x92)](_0x3e7fdc,this[_0x54e446(0x81)][_0x54e446(0x7d)])&&(logger[_0x54e446(0x85)]('['+TAG+_0x54e446(0x90)+_0x3e7fdc+'\x20(was\x20'+this[_0x54e446(0x81)]['lastAPIFailedCount']+')'),this[_0x54e446(0x81)][_0x54e446(0x7d)]=_0x3e7fdc);}catch(_0x2b2e8c){logger[_0x54e446(0x8f)]('['+TAG+'_CI]\x20Error\x20during\x20polling\x20logic:\x20'+_0x2b2e8c['message']+(_0x2b2e8c['stack']?_0x109252['qlSWp'](_0x109252[_0x54e446(0xc8)],_0x2b2e8c['stack']):''));}}async[a132_0x5258b7(0x8a)](){const _0x823e2b=a132_0x5258b7,_0x223e56={'MapvY':function(_0x43f6fa,_0x387b19,_0x412819){return _0x43f6fa(_0x387b19,_0x412819);}};this['pollingInterval']&&this[_0x823e2b(0xaa)](),this['isCIMode']&&(await this['_pollFailedTests'](),this[_0x823e2b(0x79)]=_0x223e56[_0x823e2b(0xe8)](setInterval,async()=>{const _0xc846f=_0x823e2b;await this[_0xc846f(0xca)]();},POLLING_INTERVAL),logger[_0x823e2b(0x85)]('['+TAG+_0x823e2b(0x80)+POLLING_INTERVAL+_0x823e2b(0x72)));}[a132_0x5258b7(0xaa)](){const _0x532ca5=a132_0x5258b7,_0x5bb266={'spWWs':function(_0x1ffde4,_0x4dcc1a){return _0x1ffde4(_0x4dcc1a);}};this[_0x532ca5(0x79)]&&(_0x5bb266[_0x532ca5(0x9c)](clearInterval,this['pollingInterval']),this[_0x532ca5(0x79)]=null,logger[_0x532ca5(0x85)]('['+TAG+_0x532ca5(0xb6)));}async[a132_0x5258b7(0xf5)](){const _0x1815a3=a132_0x5258b7,_0x2145fa={};_0x2145fa[_0x1815a3(0xdc)]=function(_0x540cd4,_0x1b4169){return _0x540cd4===_0x1b4169;},_0x2145fa[_0x1815a3(0xc7)]=function(_0x47c630,_0x38e482){return _0x47c630===_0x38e482;},_0x2145fa['rsOVZ']=function(_0x492af6,_0xc2f35b){return _0x492af6<=_0xc2f35b;},_0x2145fa[_0x1815a3(0xeb)]=function(_0x5dda9f,_0x566766){return _0x5dda9f+_0x566766;},_0x2145fa[_0x1815a3(0x93)]='\x0aStack:\x20',_0x2145fa[_0x1815a3(0xb3)]=function(_0xad7657,_0x6d4aa2){return _0xad7657!==_0x6d4aa2;},_0x2145fa[_0x1815a3(0xc3)]=function(_0x6511e,_0x4fa0ca){return _0x6511e>=_0x4fa0ca;},_0x2145fa[_0x1815a3(0x8d)]=function(_0x2c569e,_0x1f1f6f){return _0x2c569e>=_0x1f1f6f;};const _0x1812d5=_0x2145fa,{failureThresholdCount:_0x483a6c}=this[_0x1815a3(0xb5)];if(_0x1812d5[_0x1815a3(0xdc)](_0x483a6c,null)||_0x1812d5[_0x1815a3(0xc7)](_0x483a6c,undefined)||_0x1812d5['rsOVZ'](_0x483a6c,0x0))return logger[_0x1815a3(0x85)]('['+TAG+_0x1815a3(0xe1)),![];if(this[_0x1815a3(0xac)]){try{if(fs[_0x1815a3(0xd6)](this['failFastActiveMarkerPath']))return logger[_0x1815a3(0x85)]('['+TAG+_0x1815a3(0xa8)),!this[_0x1815a3(0x81)]['failFastActive']&&(this[_0x1815a3(0x81)][_0x1815a3(0x73)]=!![]),this[_0x1815a3(0xaa)](),!![];}catch(_0x5b62f8){logger['error']('['+TAG+'_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20'+_0x5b62f8['message']+(_0x5b62f8[_0x1815a3(0x94)]?_0x1812d5[_0x1815a3(0xeb)](_0x1812d5[_0x1815a3(0x93)],_0x5b62f8[_0x1815a3(0x94)]):''));}const _0x313e96=_0x1812d5[_0x1815a3(0xb3)](this[_0x1815a3(0x81)]['lastAPIFailedCount'],undefined)?this[_0x1815a3(0x81)][_0x1815a3(0x7d)]:0x0;if(_0x1812d5[_0x1815a3(0xc3)](_0x313e96,_0x483a6c)){logger[_0x1815a3(0xc0)]('['+TAG+_0x1815a3(0x88)+_0x313e96+_0x1815a3(0xae)+_0x483a6c+'.');try{fs[_0x1815a3(0x9d)](this[_0x1815a3(0xf1)],new Date()['toISOString']()),logger['debug']('['+TAG+_0x1815a3(0x9e)+this[_0x1815a3(0xf1)]),this[_0x1815a3(0x81)]['failFastActive']=!![];}catch(_0xcb1e5b){logger[_0x1815a3(0x8f)]('['+TAG+_0x1815a3(0xb2)+_0xcb1e5b[_0x1815a3(0xbd)]+(_0xcb1e5b[_0x1815a3(0x94)]?_0x1812d5[_0x1815a3(0xeb)](_0x1812d5[_0x1815a3(0x93)],_0xcb1e5b[_0x1815a3(0x94)]):''));}return this[_0x1815a3(0xaa)](),!![];}}else{let _0xe515a9;try{_0xe515a9=await this[_0x1815a3(0xc9)]['readState']();if(!_0xe515a9)return logger[_0x1815a3(0xe3)]('['+TAG+_0x1815a3(0xb4)),![];}catch(_0x2f4945){return logger[_0x1815a3(0x8f)]('['+TAG+_0x1815a3(0xf7)+_0x2f4945[_0x1815a3(0xbd)]+(_0x2f4945['stack']?_0x1812d5[_0x1815a3(0xeb)](_0x1812d5['KgiSs'],_0x2f4945[_0x1815a3(0x94)]):'')),![];}this[_0x1815a3(0x81)]={...this['_getDefaultState'](),..._0xe515a9,'uniqueFailedTests':new Set(_0xe515a9['uniqueFailedTests']||[])};if(this[_0x1815a3(0x81)][_0x1815a3(0x73)])return logger[_0x1815a3(0x85)]('['+TAG+_0x1815a3(0xf9)),!![];const _0xd60bb2=this['state'][_0x1815a3(0xbb)],_0x1f1c50=_0xd60bb2[_0x1815a3(0x87)];if(_0x1812d5[_0x1815a3(0x8d)](_0x1f1c50,_0x483a6c)){try{logger[_0x1815a3(0xc0)]('['+TAG+'_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x1f1c50+_0x1815a3(0xae)+_0x483a6c+'.'),this['state']['failFastActive']=!![];}catch(_0x4b29be){logger['error']('['+TAG+_0x1815a3(0xa9)+_0x4b29be[_0x1815a3(0xbd)]+(_0x4b29be['stack']?_0x1812d5[_0x1815a3(0xeb)](_0x1812d5[_0x1815a3(0x93)],_0x4b29be[_0x1815a3(0x94)]):''));}return!![];}}return![];}async[a132_0x5258b7(0xe4)](){const _0x271a77=a132_0x5258b7,_0x1924a3={};_0x1924a3[_0x271a77(0x9f)]=function(_0x5b3200,_0x5cdc5a){return _0x5b3200+_0x5cdc5a;},_0x1924a3['PglSZ']=_0x271a77(0x74);const _0x555635=_0x1924a3;this[_0x271a77(0xaa)]();if(this[_0x271a77(0xac)])logger[_0x271a77(0x85)]('['+TAG+_0x271a77(0xf0));else try{const _0x543958={...this['state'],'uniqueFailedTests':Array[_0x271a77(0x99)](this[_0x271a77(0x81)][_0x271a77(0xbb)]||new Set())};await this[_0x271a77(0xc9)]['writeState'](_0x543958),logger['debug']('['+TAG+_0x271a77(0xa4));}catch(_0x2bce1e){logger['error']('['+TAG+_0x271a77(0xce)+_0x2bce1e[_0x271a77(0xbd)]+(_0x2bce1e[_0x271a77(0x94)]?_0x555635['QTUed'](_0x555635[_0x271a77(0xe9)],_0x2bce1e['stack']):''));}}}function a132_0x4e1e(_0x16ab9f,_0x19a7fb){const _0x60ec0e=a132_0x60ec();return a132_0x4e1e=function(_0x4e1ebd,_0xe17c31){_0x4e1ebd=_0x4e1ebd-0x72;let _0x743c2c=_0x60ec0e[_0x4e1ebd];return _0x743c2c;},a132_0x4e1e(_0x16ab9f,_0x19a7fb);}function a132_0x60ec(){const _0x589dc2=['_Local]\x20State\x20initialized\x20from\x20file.','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','uZIUp','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','failFastConfig',']\x20Polling\x20stopped.','\x20to\x20API:\x20',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','pZLxz','failed','uniqueFailedTests','1255698QRYSMX','message','tdSmr','add','info','3ZwnhiU','getFailedTestsCount','jjPpF','JvMuX','failedTests','_getDefaultState','gRHRw','zAiOt','fileHelper','_pollFailedTests','../logger','totalTests','nSYmX','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','exports','env','buildName','4FyZHKw','has','qlSWp','join','existsSync','writeState','34803HasrlT','_initializeStateFromFile','wJGUh','BROWSERSTACK_NODE_INDEX','adDng','lHBJJ','qhtYS','failFastState.json','failFastState.lock',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','542264qsXpSv','warn','cleanup','projectName','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','path','MapvY','PglSZ','PskvW','mmIoS','BROWSERSTACK_BUILD_RUN_IDENTIFIER','length','newState','workingDir','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','failFastActiveMarkerPath','GZXwd','IGRdg','989710XJXdkC','shouldFailFast','stateFilePath','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','putFailedTests','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','ms.','failFastActive','\x0aStack:\x20','1696820FrDwPk','failFast.active','Wxqmh','failureThresholdCount','pollingInterval','lockFilePath','fQAPT','142930BVJwYa','lastAPIFailedCount','reportedFailuresToAPI','GlTIv','_CI]\x20Polling\x20started\x20with\x20interval:\x20','state','recordTestResult','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','debug','1396593BgrCZd','size','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','BZnaI','startPolling','nyGTl','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','qDlyM','fMOYQ','error','_CI]\x20API\x20failed\x20count\x20updated:\x20','22URMcZM','htfwk','KgiSs','stack','7unEuBi','number','vNvGv','buildRunIdentifier','from','YzvWZ','FJOik','spWWs','writeFileSync','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','QTUed','_fetchAPIFailedCount','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','BROWSERSTACK_TOTAL_NODE_COUNT','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','_sendFailedTestsToAPI','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','stopPolling','iYhKN','isCIMode','./requestUtils',',\x20threshold:\x20','passed','winstonLogger'];a132_0x60ec=function(){return _0x589dc2;};return a132_0x60ec();}module[a132_0x5258b7(0xcf)]=FailFastManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a133_0x305bec=a133_0x38d5;(function(_0x20a747,_0x38d208){const _0x46e6d9=a133_0x38d5,_0x11b777=_0x20a747();while(!![]){try{const _0x37e1ed=parseInt(_0x46e6d9(0x103))/0x1*(-parseInt(_0x46e6d9(0x112))/0x2)+-parseInt(_0x46e6d9(0x109))/0x3*(-parseInt(_0x46e6d9(0x120))/0x4)+parseInt(_0x46e6d9(0xf4))/0x5*(-parseInt(_0x46e6d9(0xf8))/0x6)+-parseInt(_0x46e6d9(0x123))/0x7*(-parseInt(_0x46e6d9(0x105))/0x8)+-parseInt(_0x46e6d9(0xf0))/0x9+parseInt(_0x46e6d9(0xf6))/0xa*(parseInt(_0x46e6d9(0x11b))/0xb)+parseInt(_0x46e6d9(0x11f))/0xc;if(_0x37e1ed===_0x38d208)break;else _0x11b777['push'](_0x11b777['shift']());}catch(_0x38727c){_0x11b777['push'](_0x11b777['shift']());}}}(a133_0x362f,0x5f7ea));const fs=require('fs'),logger=require(a133_0x305bec(0x117))[a133_0x305bec(0x114)],TAG=a133_0x305bec(0xfb);class FileHelper{constructor(_0x5c2a92,_0x13b987,_0x2f4160,_0x339f5d){const _0x119d89=a133_0x305bec,_0x4f8745={};_0x4f8745[_0x119d89(0xea)]=_0x119d89(0xe9),_0x4f8745['cmyDU']=_0x119d89(0x107);const _0x17f920=_0x4f8745,_0x629e00=_0x17f920[_0x119d89(0xea)][_0x119d89(0x118)]('|');let _0x3bc6df=0x0;while(!![]){switch(_0x629e00[_0x3bc6df++]){case'0':if(!fs[_0x119d89(0x122)](this[_0x119d89(0x110)]))try{fs[_0x119d89(0x106)](this[_0x119d89(0x110)],'{}',_0x17f920[_0x119d89(0x127)]);}catch(_0x41e858){logger[_0x119d89(0xf7)]('['+TAG+']\x20Error\x20creating\x20state\x20file:\x20'+_0x41e858[_0x119d89(0xfd)]+'\x20'+_0x41e858[_0x119d89(0x10e)]);}continue;case'1':this[_0x119d89(0xf3)]=_0x5c2a92;continue;case'2':this['lockFilePath']=_0x2f4160;continue;case'3':this[_0x119d89(0x115)]=_0x339f5d;continue;case'4':this['stateFilePath']=_0x13b987;continue;}break;}}async[a133_0x305bec(0x125)](){const _0x32f656=a133_0x305bec,_0x1633ca={};_0x1633ca[_0x32f656(0xef)]=function(_0x2325be,_0x449e34){return _0x2325be===_0x449e34;},_0x1633ca[_0x32f656(0x108)]='EEXIST';const _0x4474ba=_0x1633ca;let _0x21e469;try{return _0x21e469=fs[_0x32f656(0x128)](this[_0x32f656(0xed)],'wx'),_0x21e469;}catch(_0x39f735){if(_0x4474ba[_0x32f656(0xef)](_0x39f735[_0x32f656(0x124)],_0x4474ba[_0x32f656(0x108)]))return null;throw _0x39f735;}}async['releaseLock'](_0xf1c578){const _0x476d6d=a133_0x305bec;if(_0xf1c578)try{fs[_0x476d6d(0xec)](_0xf1c578),fs['unlinkSync'](this[_0x476d6d(0xed)]);}catch(_0x22a617){logger['error']('['+TAG+']\x20Error\x20releasing\x20lock:\x20'+_0x22a617['message']+'\x20'+_0x22a617[_0x476d6d(0x10e)]);}}[a133_0x305bec(0x111)](){const _0x9c13=a133_0x305bec,_0x2a635b={};_0x2a635b[_0x9c13(0xee)]=_0x9c13(0x107);const _0xcb321c=_0x2a635b;try{const _0x154df2=fs[_0x9c13(0xe8)](this['stateFilePath'],_0xcb321c[_0x9c13(0xee)]);return JSON[_0x9c13(0xf1)](_0x154df2);}catch(_0x291732){return logger['error']('['+TAG+_0x9c13(0x11c)+_0x291732[_0x9c13(0xfd)]+'\x20'+_0x291732[_0x9c13(0x10e)]),null;}}async['writeState'](_0x4db633){const _0x58e5a0=a133_0x305bec,_0x3035a8={..._0x4db633,'uniqueFailedTests':Array['isArray'](_0x4db633[_0x58e5a0(0x121)])?_0x4db633[_0x58e5a0(0x121)]:Array[_0x58e5a0(0x100)](_0x4db633[_0x58e5a0(0x121)]||[])};try{fs['writeFileSync'](this[_0x58e5a0(0x110)],JSON['stringify'](_0x3035a8,null,0x2));}catch(_0x457cca){logger[_0x58e5a0(0xf7)]('['+TAG+']\x20Error\x20writing\x20state\x20file:\x20'+_0x457cca['message']+'\x20'+_0x457cca[_0x58e5a0(0x10e)]);throw _0x457cca;}}async[a133_0x305bec(0x101)](_0x306878,_0x574ea5){const _0x18ed21=a133_0x305bec,_0x2113db={};_0x2113db[_0x18ed21(0x126)]=function(_0x2e9a54,_0x2f29a9){return _0x2e9a54!==_0x2f29a9;},_0x2113db[_0x18ed21(0xfc)]=_0x18ed21(0xfe),_0x2113db[_0x18ed21(0x10a)]=function(_0x250d02,_0x24ce55){return _0x250d02===_0x24ce55;},_0x2113db[_0x18ed21(0x11d)]=_0x18ed21(0xf5);const _0x428571=_0x2113db,_0x523e07=await this[_0x18ed21(0x125)]();if(!_0x523e07)return logger[_0x18ed21(0xeb)]('['+TAG+_0x18ed21(0x102)),{'newState':this['readState']()||this[_0x18ed21(0x115)],'isNewFailure':![]};try{let _0x39b809=this['readState']();!_0x39b809&&(_0x39b809=JSON[_0x18ed21(0xf1)](JSON[_0x18ed21(0x116)](this[_0x18ed21(0x115)])));if(!_0x39b809['uniqueFailedTests']||_0x428571[_0x18ed21(0x126)](typeof _0x39b809[_0x18ed21(0x121)][Symbol[_0x18ed21(0x11e)]],_0x428571[_0x18ed21(0xfc)]))_0x39b809[_0x18ed21(0x121)]=new Set();else Array['isArray'](_0x39b809['uniqueFailedTests'])&&(_0x39b809[_0x18ed21(0x121)]=new Set(_0x39b809[_0x18ed21(0x121)]));_0x39b809['totalTests']=_0x574ea5;let _0x2ccf0a=![];_0x428571[_0x18ed21(0x10a)](_0x306878[_0x18ed21(0x113)],_0x428571['agQch'])&&(_0x39b809[_0x18ed21(0x10c)]+=0x1,!_0x39b809[_0x18ed21(0x121)][_0x18ed21(0x10d)](_0x306878[_0x18ed21(0x10b)])&&(_0x39b809[_0x18ed21(0x121)][_0x18ed21(0xfa)](_0x306878[_0x18ed21(0x10b)]),_0x2ccf0a=!![]));await this['writeState'](_0x39b809);const _0x24f287={};return _0x24f287['newState']=_0x39b809,_0x24f287[_0x18ed21(0xff)]=_0x2ccf0a,_0x24f287;}finally{await this[_0x18ed21(0x104)](_0x523e07);}}async[a133_0x305bec(0xf2)](_0x28bd32){const _0x4bed95=a133_0x305bec,_0x48adf8=await this[_0x4bed95(0x125)]();if(!_0x48adf8)return logger[_0x4bed95(0xeb)]('['+TAG+_0x4bed95(0x11a)),this[_0x4bed95(0x111)]()||this[_0x4bed95(0x115)];try{let _0xe6d711=this['readState']();return!_0xe6d711&&(_0xe6d711=JSON['parse'](JSON[_0x4bed95(0x116)](this['defaultState']))),_0xe6d711[_0x4bed95(0x119)]=_0x28bd32,await this[_0x4bed95(0xf9)](_0xe6d711),_0xe6d711;}finally{await this['releaseLock'](_0x48adf8);}}}function a133_0x38d5(_0x44656c,_0x24573c){const _0x362f3a=a133_0x362f();return a133_0x38d5=function(_0x38d5e5,_0x29bdd2){_0x38d5e5=_0x38d5e5-0xe8;let _0x3dc7f9=_0x362f3a[_0x38d5e5];return _0x3dc7f9;},a133_0x38d5(_0x44656c,_0x24573c);}function a133_0x362f(){const _0x30b971=['1|4|2|3|0','eONSn','warn','closeSync','lockFilePath','oydHn','vxIBz','2912112xiPcsM','parse','updateAPIFailedCount','failFastConfig','5xMoHMV','failed','10FBaoFw','error','4558830pLzYaL','writeState','add','FailFastFileHelper','mrjQD','message','function','isNewFailure','from','recordTestResult',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','39205eqXAmR','releaseLock','1305128YIYBSi','writeFileSync','utf8','UObok','873MqymGf','Xhkic','fullName','failedTests','has','stack','exports','stateFilePath','readState','30dBscbK','status','winstonLogger','defaultState','stringify','../logger','split','lastAPIFailedCount',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','371481zBhZPg',']\x20Error\x20reading\x20state\x20file:\x20','agQch','iterator','20149812dwetWo','2564xEQgbD','uniqueFailedTests','existsSync','7FaGOah','code','acquireLock','AudtJ','cmyDU','openSync','readFileSync'];a133_0x362f=function(){return _0x30b971;};return a133_0x362f();}module[a133_0x305bec(0x10f)]=FileHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a134_0x5ddf6d=a134_0x399b;(function(_0xfdc0d5,_0x5e1316){const _0x34590e=a134_0x399b,_0x524dbb=_0xfdc0d5();while(!![]){try{const _0x159d51=parseInt(_0x34590e(0x1f9))/0x1*(-parseInt(_0x34590e(0x20e))/0x2)+parseInt(_0x34590e(0x21b))/0x3+parseInt(_0x34590e(0x1f6))/0x4+-parseInt(_0x34590e(0x220))/0x5+-parseInt(_0x34590e(0x22f))/0x6*(-parseInt(_0x34590e(0x20c))/0x7)+-parseInt(_0x34590e(0x222))/0x8*(parseInt(_0x34590e(0x225))/0x9)+parseInt(_0x34590e(0x1fb))/0xa*(parseInt(_0x34590e(0x202))/0xb);if(_0x159d51===_0x5e1316)break;else _0x524dbb['push'](_0x524dbb['shift']());}catch(_0x383297){_0x524dbb['push'](_0x524dbb['shift']());}}}(a134_0x3a3a,0x96c86));const os=require('os'),path=require(a134_0x5ddf6d(0x211)),fs=require('fs'),logger=require(a134_0x5ddf6d(0x1fd))[a134_0x5ddf6d(0x215)],RETRY_TESTS_ON_FAILURE=a134_0x5ddf6d(0x201),ABORT_BUILD_ON_FAILURE=a134_0x5ddf6d(0x208),RUN_PREVIOUSLY_FAILED_FIRST=a134_0x5ddf6d(0x1f8),RERUN_PREVIOUSLY_FAILED=a134_0x5ddf6d(0x21a),SKIP_FLAKY_AND_FAILED=a134_0x5ddf6d(0x228),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([a134_0x5ddf6d(0x1ff)]);function a134_0x399b(_0x17de54,_0x48a010){const _0x3a3a21=a134_0x3a3a();return a134_0x399b=function(_0x399b1f,_0x59ae87){_0x399b1f=_0x399b1f-0x1f0;let _0x475eee=_0x3a3a21[_0x399b1f];return _0x475eee;},a134_0x399b(_0x17de54,_0x48a010);}class TestOrdering{constructor(){const _0x3384f1=a134_0x5ddf6d;this[_0x3384f1(0x210)]=![],this['name']=null;}[a134_0x5ddf6d(0x1f7)](_0x10caa4){const _0x3374d7=a134_0x5ddf6d;this[_0x3374d7(0x210)]=!![],this[_0x3374d7(0x227)]=_0x10caa4;}['disable'](){this['enabled']=![],this['name']=null;}[a134_0x5ddf6d(0x20b)](){const _0x56f926=a134_0x5ddf6d;return this[_0x56f926(0x210)];}['getName'](){const _0x7ade7e=a134_0x5ddf6d;return this[_0x7ade7e(0x227)];}}class OrchestrationUtils{static [a134_0x5ddf6d(0x1f2)]=null;constructor(_0x1f5ac5){const _0xa7663c=a134_0x5ddf6d,_0x4e8564={};_0x4e8564[_0xa7663c(0x209)]=function(_0x294e17,_0x28f9f3){return _0x294e17||_0x28f9f3;};const _0x5167ac=_0x4e8564;this[_0xa7663c(0x1f8)]=![],this['rerunPreviouslyFailed']=![],this[_0xa7663c(0x1fc)]=![],this[_0xa7663c(0x20f)]=new TestOrdering(),this[_0xa7663c(0x212)]=_0x5167ac[_0xa7663c(0x209)](_0x1f5ac5,{});const _0x1c4cbd=_0x1f5ac5&&_0x1f5ac5[_0xa7663c(0x21f)]||{};this[_0xa7663c(0x21c)](_0x1c4cbd[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0xa7663c(0x1f0)](_0x1c4cbd[RERUN_PREVIOUSLY_FAILED]||![]),this[_0xa7663c(0x20d)](_0x1c4cbd[SKIP_FLAKY_AND_FAILED]||![]);}static[a134_0x5ddf6d(0x204)](_0x18ab7b){const _0x325a51=a134_0x5ddf6d;return!OrchestrationUtils['_instance']&&_0x18ab7b&&(OrchestrationUtils[_0x325a51(0x1f2)]=new OrchestrationUtils(_0x18ab7b)),OrchestrationUtils['_instance'];}[a134_0x5ddf6d(0x22e)](){const _0x135b01=a134_0x5ddf6d,_0x3e39a7=(this['config'][_0x135b01(0x21f)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x3e39a7[_0x135b01(0x210)];}[a134_0x5ddf6d(0x219)](){const _0x210995=a134_0x5ddf6d,_0x108eb1=(this[_0x210995(0x212)][_0x210995(0x21f)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x51f485=0x0;return this[_0x210995(0x22e)](this[_0x210995(0x212)])&&(_0x51f485=_0x108eb1[_0x210995(0x203)]||0x1),_0x51f485;}[a134_0x5ddf6d(0x200)](){const _0x566846=a134_0x5ddf6d,_0x99cefc=this[_0x566846(0x212)]['testOrchestrationOptions']||{},_0x4779c4={};for(const _0x83cb0e in _0x99cefc){ALLOWED_ORCHESTRATION_KEYS['has'](_0x83cb0e)&&(_0x4779c4[_0x83cb0e]=_0x99cefc[_0x83cb0e]);}return _0x4779c4;}['checkAbortBuildFileExists'](){const _0x5a488=a134_0x5ddf6d,_0x406b51=process[_0x5a488(0x20a)][_0x5a488(0x22d)],_0x39cfbd=path['join'](os['tmpdir'](),_0x5a488(0x207)+_0x406b51);return fs['existsSync'](_0x39cfbd);}[a134_0x5ddf6d(0x1f3)](_0xdbc91b){const _0x412ffa=a134_0x5ddf6d,_0x48ce4c=process['env'][_0x412ffa(0x22d)],_0x345235=path[_0x412ffa(0x21d)](os[_0x412ffa(0x205)](),_0x412ffa(0x216)+_0x48ce4c+_0x412ffa(0x224));fs[_0x412ffa(0x229)](_0x345235,_0xdbc91b+'\x0a');}[a134_0x5ddf6d(0x1f4)](_0x5aea15){const _0x13059e=a134_0x5ddf6d,_0x59c458={};_0x59c458['MlEbv']=function(_0x520c13,_0xd26359){return _0x520c13||_0xd26359;};const _0x232823=_0x59c458;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x13059e(0x22c)](_0x232823[_0x13059e(0x213)](_0x5aea15,'')[_0x13059e(0x218)]());}[a134_0x5ddf6d(0x22b)](){const _0x10cdab=a134_0x5ddf6d,_0x5e363a=(this[_0x10cdab(0x212)]['testOrchestrationOptions']||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x5e363a[_0x10cdab(0x210)];}[a134_0x5ddf6d(0x21e)](){const _0x4c2e45=a134_0x5ddf6d,_0x6a646d=(this[_0x4c2e45(0x212)][_0x4c2e45(0x21f)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x6a646d[_0x4c2e45(0x1fe)]||0x5;;}[a134_0x5ddf6d(0x1f5)](){const _0x2c1f76=a134_0x5ddf6d;return this[_0x2c1f76(0x1f8)];}[a134_0x5ddf6d(0x21c)](_0x3593bb){this['runPreviouslyFailedFirst']=!!_0x3593bb,this['_setTestOrdering']();}[a134_0x5ddf6d(0x223)](){const _0x131e9e=a134_0x5ddf6d;return this[_0x131e9e(0x21a)];}[a134_0x5ddf6d(0x1f0)](_0x1c53b5){const _0x4596a7=a134_0x5ddf6d;this[_0x4596a7(0x21a)]=!!_0x1c53b5,this[_0x4596a7(0x22a)]();}['getSkipFlakyAndFailed'](){const _0x202497=a134_0x5ddf6d;return this[_0x202497(0x1fc)];}['_setSkipFlakyAndFailed'](_0x96de32){const _0x4c4f1b=a134_0x5ddf6d;this['skipFlakyAndFailed']=!!_0x96de32,this[_0x4c4f1b(0x22a)]();}[a134_0x5ddf6d(0x22a)](){const _0x325d34=a134_0x5ddf6d;if(this[_0x325d34(0x1f8)])this[_0x325d34(0x21a)]=![],this['skipFlakyAndFailed']=![],this[_0x325d34(0x20f)]['enable'](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this['rerunPreviouslyFailed'])this['runPreviouslyFailedFirst']=![],this[_0x325d34(0x1fc)]=![],this[_0x325d34(0x20f)]['enable'](RERUN_PREVIOUSLY_FAILED);else this['skipFlakyAndFailed']?(this[_0x325d34(0x1f8)]=![],this[_0x325d34(0x21a)]=![],this['testOrdering']['enable'](SKIP_FLAKY_AND_FAILED)):this[_0x325d34(0x20f)]['disable']();}}[a134_0x5ddf6d(0x1fa)](){const _0x4c64e5=a134_0x5ddf6d;return this[_0x4c64e5(0x20f)][_0x4c64e5(0x20b)]();}['getTestOrderingName'](){const _0x5e161d=a134_0x5ddf6d;if(this[_0x5e161d(0x20f)][_0x5e161d(0x20b)]())return this['testOrdering']['getName']();return null;}['getBuildStartData'](){const _0x55dee1=a134_0x5ddf6d,_0x529f31={};return _0x529f31[_0x55dee1(0x221)]={'enabled':this[_0x55dee1(0x223)]()},_0x529f31['run_previously_failed_first']={'enabled':this[_0x55dee1(0x1f5)]()},_0x529f31[_0x55dee1(0x217)]={'enabled':this[_0x55dee1(0x1f1)]()},this['isRetryEnabled']()&&(_0x529f31[_0x55dee1(0x206)]={'enabled':!![],'max_retries':this[_0x55dee1(0x219)]()}),this['isAbortBuildOnFailureEnabled']()&&(_0x529f31[_0x55dee1(0x226)]={'enabled':!![],'max_failures':this[_0x55dee1(0x21e)]()}),_0x529f31;}}module[a134_0x5ddf6d(0x214)]=OrchestrationUtils;function a134_0x3a3a(){const _0x5ec33e=['getSkipFlakyAndFailed','_instance','writeFailureToFile','isAbortBuildOnFailureSupported','getRunPreviouslyFailedFirst','803220qwNFKp','enable','runPreviouslyFailedFirst','19069eOaDoH','testOrderingEnabled','1790UUiePR','skipFlakyAndFailed','../logger','maxFailures','jest','getOrchestrationData','retryTestsOnFailure','45067oaBCbL','maxRetries','getInstance','tmpdir','retry_tests_on_failure','abort_build_','abortBuildOnFailure','modHD','env','getEnabled','6098267tBnGOf','_setSkipFlakyAndFailed','22ARuSzv','testOrdering','enabled','path','config','MlEbv','exports','winstonLogger','failed_tests_','skip_failing_and_flaky','toLowerCase','getRetryCount','rerunPreviouslyFailed','883914sIhvOm','_setRunPreviouslyFailedFirst','join','getFailureThreshold','testOrchestrationOptions','635920XLGDhs','rerun_previously_failed','56ynwnAN','getRerunPreviouslyFailed','.txt','1472706MOJGSe','abort_build_on_failure','name','skipFlakyandFailed','appendFileSync','_setTestOrdering','isAbortBuildOnFailureEnabled','has','BROWSERSTACK_TESTHUB_UUID','isRetryEnabled','6pHOUQt','_setRerunPreviouslyFailed'];a134_0x3a3a=function(){return _0x5ec33e;};return a134_0x3a3a();}
|