browserstack-node-sdk 1.49.7 → 1.49.8
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_0x3c90f8=a129_0x3a44;function a129_0x3a44(_0x50c11f,_0x4e7b31){const _0x47c286=a129_0x47c2();return a129_0x3a44=function(_0x3a444e,_0x75e0db){_0x3a444e=_0x3a444e-0xd0;let _0x119a80=_0x47c286[_0x3a444e];return _0x119a80;},a129_0x3a44(_0x50c11f,_0x4e7b31);}(function(_0x35107e,_0x235285){const _0x31e08b=a129_0x3a44,_0x4847b7=_0x35107e();while(!![]){try{const _0x38685b=parseInt(_0x31e08b(0xf1))/0x1+parseInt(_0x31e08b(0x12a))/0x2+parseInt(_0x31e08b(0x15e))/0x3+parseInt(_0x31e08b(0xd0))/0x4*(parseInt(_0x31e08b(0x12f))/0x5)+parseInt(_0x31e08b(0xf5))/0x6*(parseInt(_0x31e08b(0xe0))/0x7)+parseInt(_0x31e08b(0x13f))/0x8*(parseInt(_0x31e08b(0x17b))/0x9)+-parseInt(_0x31e08b(0x15d))/0xa;if(_0x38685b===_0x235285)break;else _0x4847b7['push'](_0x4847b7['shift']());}catch(_0x2804fb){_0x4847b7['push'](_0x4847b7['shift']());}}}(a129_0x47c2,0x1c562));function a129_0x47c2(){const _0xe17155=['Build\x20creation\x20successful!','XspqF','statusText','yrGkD','browserstackAutomation','IvHME','BROWSERSTACK_BUILD_RUN_IDENTIFIER','password','KeVnK','HookRunFinished','CREDENTIALS_FOR_CRASH_REPORTING','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','debug','LAvga','X-BSTACK-TESTOPS','uuid','ivaip','27ZTfYqO','projectName','message','toString','BROWSERSTACK_RERUN','CRSOj','TGlYw','plHZd','1152OjwRdM','buildName','response','BS_A11Y_JWT','INUEj','BS_TESTOPS_BUILD_COMPLETED','TtutX','false','IPRob','error','pendingUploads','YNNha','Log_Upload','launch','api/v1/event','wxVFU','224EAflnZ','jRQZH','\x20retry\x20runs\x20exceeded','test_run_uuid','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','OyFru','data','true','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','./requestQueueHandler','Sznvf','BS_TESTOPS_BUILD_HASHED_ID','resolve','\x20failed\x20due\x20to\x20','OBbIC','getAccessKey','success','87634BXZtLI','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','HookRunStarted','CBT_Upload','15216eesiFY','dMPhF','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','BS_TESTOPS_ALLOW_SCREENSHOTS','AUePm','yhmcG','DlWTr','gIgkQ','ERROR_INVALID_CREDENTIALS','status','getLogTag','inspect','EXCEPTION\x20IN\x20','Test_Start_Upload','sendEventData','BROWSERSTACK_TESTHUB_UUID','hVUxq','ufbXN','../logger','Gopgq','yxjkw','TestRunFinished','test_run','./utils','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','BROWSERSTACK_TESTHUB_JWT','jwt','info','requestQueueHandler','JXWLY','zxyFV','json','Authorization','JJBIH','hcmbE','max','qHMfY','getHostInfo','path','xqtmN','cnjGX','rdJci','length','qrhao','start','TestRunSkipped','Content-Type','jnpNJ','allow_screenshots','hook_run','getInstance','ERROR_ACCESS_DENIED','zLjrx','23830PkoEvB','ABzNW','stringify','logs','null','3950rGcNJU','errorType','cwd','format','vVmlT','aSVEG','Sending\x20trace\x20zip\x20for\x20test:\x20','tbRdu','getAgentVersion','oTLpB','basename','vPWiM','frameworkName','event_type','Test_End_Upload','tdIxS','299752NyoceZ','vTwHt','TEST_REPORTING_ANALYTICS','includes','getGitMetaData','\x20:\x20','util','frameworkVersion','jZPAg','username','yqWUE','sendTraceZip','add','eventUrl','kfmsX','RLIen','QiVFa','qdMEw','build_hashed_id','buildIdentifier','ERROR_SDK_DEPRECATED','bimDv','Hook_Start_Upload','nestedKeyValue','getCiInfo','ctgTB',']\x20event\x20successful!','BS_TESTOPS_JWT','waitForBuildStatus','\x20:\x20missing\x20authentication\x20token','4535900aWAapR','147084ryOcZd','hNxtG','application/json','\x20REQUEST\x20TO\x20','env','TestRunStarted','POST','app','../../helpers/testhub/utils','dQNpn','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','headers'];a129_0x47c2=function(){return _0xe17155;};return a129_0x47c2();}const bsSetupHelper=require('../helper'),path=require(a129_0x3c90f8(0x11b)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a129_0x3c90f8(0x10c)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a129_0x3c90f8(0xe9)),logger=require(a129_0x3c90f8(0x107))['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a129_0x3c90f8(0x166)),util=require(a129_0x3c90f8(0x145)),constants=require('../../bin/utils/constants');class SessionHandler{static [a129_0x3c90f8(0x111)]=RequestQueueHandler[a129_0x3c90f8(0x127)]();static async[a129_0x3c90f8(0xdd)](_0xfb746c,_0x2ef262){const _0x5ebabd=a129_0x3c90f8,_0x2f1857={'plHZd':function(_0x20d366,_0x5999fc){return _0x20d366||_0x5999fc;},'hNxtG':function(_0x25c173,_0x22451e){return _0x25c173||_0x22451e;},'OyFru':function(_0x460a18,_0x414e1f){return _0x460a18===_0x414e1f;},'vVmlT':function(_0x32e993,_0x3d3d2b){return _0x32e993(_0x3d3d2b);},'hcmbE':_0x5ebabd(0xf7),'JXWLY':_0x5ebabd(0xd7),'xakLj':_0x5ebabd(0x114),'bimDv':function(_0x31038b,_0x1e29a2){return _0x31038b(_0x1e29a2);},'rdJci':function(_0x131951,_0x3b8747){return _0x131951(_0x3b8747);},'DlWTr':function(_0x39a47d,_0x4c0d1b,_0x3250e8,_0x306325,_0x252be6){return _0x39a47d(_0x4c0d1b,_0x3250e8,_0x306325,_0x252be6);},'ufbXN':_0x5ebabd(0x164),'csNnd':'api/v1/builds','HqHxc':_0x5ebabd(0x16a),'yrGkD':function(_0x48e346){return _0x48e346();},'RkqyA':_0x5ebabd(0xe7),'TGlYw':_0x5ebabd(0x12e),'vTwHt':_0x5ebabd(0xfd),'YKBJi':_0x5ebabd(0x128),'qrhao':_0x5ebabd(0x153)};logger[_0x5ebabd(0x110)](_0x5ebabd(0xf2)+util[_0x5ebabd(0x100)](_0xfb746c));const _0x54c0f1=bsSetupHelper['getUserName'](_0xfb746c),_0x38e97f=bsSetupHelper[_0x5ebabd(0xef)](_0xfb746c),_0x2a7eb7=_0x2f1857[_0x5ebabd(0x182)](_0x54c0f1,'')+':'+_0x2f1857[_0x5ebabd(0x15f)](_0x38e97f,'');if(_0x2f1857[_0x5ebabd(0xe5)](_0x2a7eb7,':'))return _0x2f1857[_0x5ebabd(0x133)](debug,_0x2f1857[_0x5ebabd(0x117)]),process[_0x5ebabd(0x162)]['BS_TESTOPS_BUILD_COMPLETED']=_0x2f1857[_0x5ebabd(0x112)],[null,null];let _0x4d0171=![],_0x582a85=![];if(_0xfb746c[_0x5ebabd(0x16e)]&&_0xfb746c[_0x5ebabd(0x165)])_0x582a85=!![];else _0xfb746c[_0x5ebabd(0x16e)]&&(_0x4d0171=!![]);try{const _0x25e94a={'format':_0x2f1857['xakLj'],'project_name':_0xfb746c[_0x5ebabd(0x17c)]||'','name':_0xfb746c[_0x5ebabd(0xd1)]||path[_0x5ebabd(0x139)](path[_0x5ebabd(0xec)](process[_0x5ebabd(0x131)]())),'build_identifier':_0xfb746c[_0x5ebabd(0x152)],'description':_0xfb746c['buildDescription']||'','start_time':new Date()['toISOString'](),'tags':_0x2f1857[_0x5ebabd(0x154)](getCustomTags,_0xfb746c),'host_info':bsSetupHelper[_0x5ebabd(0x11a)](),'ci_info':bsSetupHelper[_0x5ebabd(0x157)](),'build_run_identifier':process['env'][_0x5ebabd(0x170)],'failed_tests_rerun':process[_0x5ebabd(0x162)][_0x5ebabd(0x17f)]||![],'version_control':await bsSetupHelper[_0x5ebabd(0x143)](),'observability_version':{'frameworkName':_0x2ef262[_0x5ebabd(0x13b)],'frameworkVersion':_0x2ef262[_0x5ebabd(0x146)],'sdkVersion':bsSetupHelper[_0x5ebabd(0x137)]()},'product_map':_0x2f1857[_0x5ebabd(0x154)](getProductMap,_0xfb746c),'test_orchestration':_0x2f1857[_0x5ebabd(0x11e)](getTestOrchestrationBuildStartData,_0xfb746c)},_0x428b8c={};_0x428b8c[_0x5ebabd(0x148)]=_0x54c0f1,_0x428b8c[_0x5ebabd(0x171)]=_0x38e97f;const _0x23f7c8={'auth':_0x428b8c,'headers':_0x2f1857[_0x5ebabd(0x154)](getDefaultHeaders,![])},_0x4b3241=await _0x2f1857[_0x5ebabd(0xfb)](nodeRequest,_0x2f1857[_0x5ebabd(0x106)],_0x2f1857['csNnd'],_0x25e94a,_0x23f7c8);_0x2f1857[_0x5ebabd(0x133)](debug,_0x2f1857['HqHxc']);const _0x33ef72=_0x4b3241['data'];_0x33ef72[_0x5ebabd(0x151)]&&(process[_0x5ebabd(0x162)][_0x5ebabd(0x104)]=_0x33ef72[_0x5ebabd(0x151)]);if(_0x2f1857[_0x5ebabd(0x16d)](isTestObservabilitySession)){process[_0x5ebabd(0x162)][_0x5ebabd(0xd5)]=_0x2f1857['RkqyA'];if(_0x33ef72[_0x5ebabd(0x10f)]){process['env']['BS_TESTOPS_JWT']=_0x33ef72[_0x5ebabd(0x10f)];const _0x27ca07={};_0x27ca07['username']=_0x54c0f1,_0x27ca07[_0x5ebabd(0x171)]=_0x38e97f,process[_0x5ebabd(0x162)][_0x5ebabd(0x174)]=JSON[_0x5ebabd(0x12c)](_0x27ca07);}_0x33ef72[_0x5ebabd(0x151)]&&(process['env'][_0x5ebabd(0xeb)]=_0x33ef72['build_hashed_id']),_0x33ef72['allow_screenshots']&&(process['env'][_0x5ebabd(0xf8)]=_0x33ef72['allow_screenshots'][_0x5ebabd(0x17e)]());}return[_0x4b3241[_0x5ebabd(0xe6)][_0x5ebabd(0x10f)],_0x4b3241[_0x5ebabd(0xe6)][_0x5ebabd(0x151)],_0x4b3241[_0x5ebabd(0xe6)][_0x5ebabd(0x125)]];}catch(_0x3f6784){process[_0x5ebabd(0x162)][_0x5ebabd(0x104)]=_0x2f1857[_0x5ebabd(0x181)],process[_0x5ebabd(0x162)][_0x5ebabd(0xd5)]=_0x2f1857[_0x5ebabd(0x112)],process[_0x5ebabd(0x162)][_0x5ebabd(0x15a)]=_0x2f1857[_0x5ebabd(0x181)],process[_0x5ebabd(0x162)][_0x5ebabd(0xeb)]=_0x2f1857[_0x5ebabd(0x181)],process[_0x5ebabd(0x162)][_0x5ebabd(0xf8)]=_0x2f1857[_0x5ebabd(0x181)];_0x3f6784[_0x5ebabd(0xd2)]?_0x2f1857[_0x5ebabd(0x154)](debug,_0x5ebabd(0xe8)+_0x3f6784[_0x5ebabd(0xd2)][_0x5ebabd(0xfe)]+'\x20'+_0x3f6784[_0x5ebabd(0xd2)][_0x5ebabd(0x16c)]+'\x20'+JSON[_0x5ebabd(0x12c)](_0x3f6784[_0x5ebabd(0xd2)][_0x5ebabd(0xe6)])):_0x2f1857[_0x5ebabd(0x154)](debug,_0x5ebabd(0xe8)+(_0x3f6784[_0x5ebabd(0x17d)]||_0x3f6784));if(_0x3f6784&&_0x3f6784[_0x5ebabd(0x17d)]){const _0x4a2c3e=_0x3f6784['message'];switch(_0x3f6784[_0x5ebabd(0x130)]){case _0x2f1857[_0x5ebabd(0x140)]:logger[_0x5ebabd(0xd9)](_0x4a2c3e);break;case _0x2f1857['YKBJi']:logger['info'](_0x4a2c3e);break;case _0x2f1857[_0x5ebabd(0x120)]:logger[_0x5ebabd(0xd9)](_0x4a2c3e);break;default:logger[_0x5ebabd(0xd9)](_0x4a2c3e);}}else console[_0x5ebabd(0x110)]('Data\x20upload\x20to\x20BrowserStack\x20'+constants[_0x5ebabd(0x141)]+_0x5ebabd(0xed)+_0x3f6784);return[null,null,null];}}static async[a129_0x3c90f8(0x15b)](){const _0x59be0c=a129_0x3c90f8,_0x526e1e={'KeVnK':_0x59be0c(0xe7),'Gopgq':_0x59be0c(0xd7),'RUmLZ':function(_0x36fd1,_0x2348f6){return _0x36fd1(_0x2348f6);}},_0xe18c6a=process['env'][_0x59be0c(0xd5)];if([_0x526e1e[_0x59be0c(0x172)],_0x526e1e[_0x59be0c(0x108)]][_0x59be0c(0x142)](_0xe18c6a))return;while([_0x526e1e['KeVnK'],_0x526e1e['Gopgq']][_0x59be0c(0x142)](_0xe18c6a)){await _0x526e1e['RUmLZ'](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a129_0x3c90f8(0xff)](_0x5d7ddd){const _0x419862=a129_0x3c90f8,_0xfe7392={};_0xfe7392[_0x419862(0x13a)]=_0x419862(0x102),_0xfe7392['dMPhF']=_0x419862(0x13d),_0xfe7392[_0x419862(0x150)]='Test_Skipped_Upload',_0xfe7392[_0x419862(0x17a)]=_0x419862(0xdc),_0xfe7392[_0x419862(0xdb)]=_0x419862(0x155),_0xfe7392[_0x419862(0x105)]='Hook_End_Upload',_0xfe7392[_0x419862(0x109)]=_0x419862(0xf4);const _0x55e16e=_0xfe7392,_0x5cc117={};return _0x5cc117[_0x419862(0x163)]=_0x55e16e[_0x419862(0x13a)],_0x5cc117[_0x419862(0x10a)]=_0x55e16e[_0x419862(0xf6)],_0x5cc117[_0x419862(0x122)]=_0x55e16e[_0x419862(0x150)],_0x5cc117['LogCreated']=_0x55e16e[_0x419862(0x17a)],_0x5cc117[_0x419862(0xf3)]=_0x55e16e['YNNha'],_0x5cc117[_0x419862(0x173)]=_0x55e16e['hVUxq'],_0x5cc117['CBTSessionCreated']=_0x55e16e[_0x419862(0x109)],_0x5cc117[_0x5d7ddd['event_type']];}static async[a129_0x3c90f8(0x103)](_0x3018bb,_0x26e957=0x0,_0x2c1a33=null){const _0x47822b=a129_0x3c90f8,_0x4559cc={'tdIxS':function(_0x433841,_0x34961c){return _0x433841===_0x34961c;},'zxyFV':_0x47822b(0x14a),'jnpNJ':function(_0x51534b,_0x7ad38d){return _0x51534b!==_0x7ad38d;},'gIgkQ':_0x47822b(0x160),'aSVEG':_0x47822b(0xe7),'tbRdu':function(_0x4470c0,_0x381703,_0x3a32e6,_0x45d77c,_0x3eb7f4){return _0x4470c0(_0x381703,_0x3a32e6,_0x45d77c,_0x3eb7f4);},'IvHME':_0x47822b(0x164),'EXKmj':function(_0x564e13,_0x2a5059,_0x10ffb8,_0x2a809a,_0x47b563){return _0x564e13(_0x2a5059,_0x10ffb8,_0x2a809a,_0x47b563);},'OBbIC':function(_0x2f40f7,_0x59575f){return _0x2f40f7(_0x59575f);},'qHMfY':'Batch-Queue','zLjrx':function(_0x31b60c,_0xa7106){return _0x31b60c-_0xa7106;},'yhmcG':_0x47822b(0xde),'QiVFa':_0x47822b(0xf0),'ABzNW':function(_0x47e416,_0x16bc98){return _0x47e416(_0x16bc98);},'jZPAg':function(_0x38e1a4,_0x48689c){return _0x38e1a4!==_0x48689c;},'fcnEB':function(_0xe3050b,_0x341bb7){return _0xe3050b!==_0x341bb7;},'oTLpB':'error'};_0x4559cc[_0x47822b(0x13e)](_0x2c1a33,_0x4559cc[_0x47822b(0x113)])&&logger[_0x47822b(0x176)](_0x47822b(0x135)+_0x3018bb[_0x47822b(0x12d)][0x0]['test_run_uuid']);const _0x38d6f8=await this[_0x47822b(0xff)](_0x3018bb);let _0x46e50f=_0x3018bb,_0x438266=EVENT_ENDPOINT;_0x4559cc[_0x47822b(0x124)](_0x2c1a33,_0x4559cc[_0x47822b(0x113)])&&this[_0x47822b(0x111)][_0x47822b(0x121)]();const {shouldProceed:_0x26a535,proceedWithData:_0x6d1c9c,proceedWithUrl:_0x4a4d6f}=this[_0x47822b(0x111)][_0x47822b(0x14b)](_0x3018bb);if(!_0x26a535)return;else _0x6d1c9c&&(_0x46e50f=_0x6d1c9c,_0x438266=_0x4a4d6f);const _0x596fd9={};_0x596fd9[_0x47822b(0x115)]='Bearer\x20'+process[_0x47822b(0x162)][_0x47822b(0x10e)],_0x596fd9[_0x47822b(0x123)]=_0x4559cc[_0x47822b(0xfc)],_0x596fd9[_0x47822b(0x178)]=_0x4559cc[_0x47822b(0x134)];const _0x3c937b={};_0x3c937b[_0x47822b(0x169)]=_0x596fd9;const _0x47f83f=_0x3c937b;let _0x1fd422;try{_0x4559cc[_0x47822b(0x13e)](_0x2c1a33,_0x4559cc[_0x47822b(0x113)])?(logger[_0x47822b(0x176)](_0x47822b(0x168)+_0x3018bb?.[_0x47822b(0x12d)][0x0]?.[_0x47822b(0xe3)]),_0x1fd422=await _0x4559cc[_0x47822b(0x136)](asyncAwaitNodeReq,_0x4559cc['IvHME'],_0x438266,_0x46e50f,_0x47f83f),logger[_0x47822b(0x176)](_0x47822b(0x10d)+_0x3018bb?.[_0x47822b(0x12d)][0x0]?.['test_run_uuid'])):_0x1fd422=await _0x4559cc['EXKmj'](nodeRequest,_0x4559cc[_0x47822b(0x16f)],_0x438266,_0x46e50f,_0x47f83f);if(_0x1fd422[_0x47822b(0xe6)][_0x47822b(0xd9)]){const _0x7bd0be={};_0x7bd0be['message']=_0x1fd422['data']['error'];throw _0x7bd0be;}else{_0x4559cc[_0x47822b(0xee)](debug,(_0x4559cc[_0x47822b(0x124)](_0x438266,this[_0x47822b(0x111)]['eventUrl'])?_0x38d6f8:_0x4559cc[_0x47822b(0x119)])+'['+_0x26e957+_0x47822b(0x159)),this['requestQueueHandler'][_0x47822b(0xda)]=Math[_0x47822b(0x118)](0x0,_0x4559cc[_0x47822b(0x129)](this['requestQueueHandler'][_0x47822b(0xda)],_0x4559cc[_0x47822b(0x13e)](_0x438266,_0x4559cc[_0x47822b(0xfa)])?0x1:_0x46e50f['length']));const _0x11bbb5={};return _0x11bbb5[_0x47822b(0xfe)]=_0x4559cc[_0x47822b(0x14f)],_0x11bbb5['message']='',_0x11bbb5;}}catch(_0x3eb42d){_0x3eb42d[_0x47822b(0xd2)]?_0x4559cc[_0x47822b(0x12b)](debug,_0x47822b(0x101)+(_0x4559cc[_0x47822b(0x147)](_0x438266,this[_0x47822b(0x111)][_0x47822b(0x14c)])?_0x38d6f8:_0x4559cc[_0x47822b(0x119)])+'\x20REQUEST\x20TO\x20'+constants[_0x47822b(0x141)]+_0x47822b(0x144)+_0x3eb42d[_0x47822b(0xd2)][_0x47822b(0xfe)]+'\x20'+_0x3eb42d[_0x47822b(0xd2)][_0x47822b(0x16c)]+'\x20'+util[_0x47822b(0x132)](_0x3eb42d[_0x47822b(0xd2)]['data'])):_0x4559cc[_0x47822b(0xee)](debug,_0x47822b(0x101)+(_0x4559cc['fcnEB'](_0x438266,this[_0x47822b(0x111)][_0x47822b(0x14c)])?_0x38d6f8:_0x4559cc['qHMfY'])+_0x47822b(0x161)+constants[_0x47822b(0x141)]+'\x20:\x20'+util[_0x47822b(0x132)](_0x3eb42d));this[_0x47822b(0x111)][_0x47822b(0xda)]=Math[_0x47822b(0x118)](0x0,_0x4559cc[_0x47822b(0x129)](this[_0x47822b(0x111)][_0x47822b(0xda)],_0x4559cc[_0x47822b(0x13e)](_0x438266,_0x4559cc[_0x47822b(0xfa)])?0x1:_0x46e50f[_0x47822b(0x11f)]));const _0x5361df={};return _0x5361df['status']=_0x4559cc[_0x47822b(0x138)],_0x5361df[_0x47822b(0x17d)]=_0x3eb42d['message']||(_0x3eb42d['response']?_0x3eb42d[_0x47822b(0xd2)][_0x47822b(0xfe)]+':'+_0x3eb42d[_0x47822b(0xd2)][_0x47822b(0x16c)]:_0x3eb42d),_0x5361df;}}static async['uploadEventData'](_0x352e34,_0x456874=0x0){const _0x4f1adc=a129_0x3c90f8,_0x3d62c8={'BQENS':function(_0x107ee3,_0x218323){return _0x107ee3+_0x218323;},'cnjGX':function(_0x49589f,_0x168840){return _0x49589f(_0x168840);},'xqtmN':_0x4f1adc(0x10b),'XspqF':_0x4f1adc(0x179),'JJBIH':_0x4f1adc(0x126),'yqWUE':function(_0x4724c3,_0x1a9038,_0x44ce6c){return _0x4724c3(_0x1a9038,_0x44ce6c);},'CLHMf':'uploadEventData','jRQZH':function(_0x49a908,_0x5642ac){return _0x49a908===_0x5642ac;},'AUePm':function(_0x25a3d5,_0x2cae2d){return _0x25a3d5!==_0x2cae2d;},'RLIen':_0x4f1adc(0x12e),'INUEj':_0x4f1adc(0xe7),'NbFDl':function(_0x3fcbb0){return _0x3fcbb0();},'IPRob':function(_0x756601,_0x57357e){return _0x756601-_0x57357e;},'kfmsX':_0x4f1adc(0xd9),'ctgTB':_0x4f1adc(0x175),'CRSOj':function(_0x3a2be7,_0x2395b2){return _0x3a2be7>=_0x2395b2;},'Sznvf':function(_0x558922,_0x413254){return _0x558922-_0x413254;},'LAvga':'Retry\x20runs\x20exceeded','wxVFU':function(_0x4901a1,_0x589adf){return _0x4901a1!==_0x589adf;},'dQNpn':_0x4f1adc(0xd7),'TtutX':function(_0x293b59,_0x6eee8c,_0x34f354){return _0x293b59(_0x6eee8c,_0x34f354);}},_0x297a85=this[_0x4f1adc(0xff)](_0x352e34);_0x3d62c8['cnjGX'](trace,'Processing\x20event\x20-\x20\x27'+_0x352e34[_0x4f1adc(0x13c)]+'\x27\x20'+(bsSetupHelper[_0x4f1adc(0x156)](_0x352e34,[_0x3d62c8[_0x4f1adc(0x11c)],_0x3d62c8[_0x4f1adc(0x16b)]])||bsSetupHelper[_0x4f1adc(0x156)](_0x352e34,[_0x3d62c8[_0x4f1adc(0x116)],_0x3d62c8['XspqF']])));if(!_0x3d62c8[_0x4f1adc(0x149)](shouldProcessEventForTesthub,_0x352e34[_0x4f1adc(0x13c)],_0x3d62c8['CLHMf']))return;_0x3d62c8[_0x4f1adc(0xe1)](_0x456874,0x0)&&process[_0x4f1adc(0x162)][_0x4f1adc(0x10e)]&&_0x3d62c8[_0x4f1adc(0xf9)](process[_0x4f1adc(0x162)][_0x4f1adc(0x10e)],_0x3d62c8[_0x4f1adc(0x14e)])&&(this[_0x4f1adc(0x111)]['pendingUploads']+=0x1);if(_0x3d62c8[_0x4f1adc(0xe1)](process[_0x4f1adc(0x162)][_0x4f1adc(0xd5)],_0x3d62c8[_0x4f1adc(0xd4)])||process[_0x4f1adc(0x162)][_0x4f1adc(0xd3)]||_0x3d62c8['NbFDl'](isPercyBuild)){if(_0x3d62c8[_0x4f1adc(0xe1)](process[_0x4f1adc(0x162)][_0x4f1adc(0x10e)],_0x3d62c8[_0x4f1adc(0x14e)])){_0x3d62c8[_0x4f1adc(0x11d)](debug,_0x4f1adc(0x101)+_0x297a85+'\x20REQUEST\x20TO\x20'+constants[_0x4f1adc(0x141)]+_0x4f1adc(0x15c)),this[_0x4f1adc(0x111)][_0x4f1adc(0xda)]=Math[_0x4f1adc(0x118)](0x0,_0x3d62c8[_0x4f1adc(0xd8)](this[_0x4f1adc(0x111)]['pendingUploads'],0x1));const _0x1d6550={};return _0x1d6550[_0x4f1adc(0xfe)]=_0x3d62c8[_0x4f1adc(0x14d)],_0x1d6550['message']=_0x3d62c8[_0x4f1adc(0x158)],_0x1d6550;}return await this[_0x4f1adc(0x103)](_0x352e34,_0x456874);}else{if(_0x3d62c8[_0x4f1adc(0x180)](_0x456874,0x5)){_0x3d62c8[_0x4f1adc(0x11d)](debug,_0x4f1adc(0x101)+_0x297a85+_0x4f1adc(0x161)+constants['TEST_REPORTING_ANALYTICS']+_0x4f1adc(0xe4)+_0x297a85+_0x4f1adc(0xe2));_0x3d62c8[_0x4f1adc(0xf9)](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x3d62c8[_0x4f1adc(0x14e)])&&(this[_0x4f1adc(0x111)][_0x4f1adc(0xda)]=Math[_0x4f1adc(0x118)](0x0,_0x3d62c8[_0x4f1adc(0xea)](this['requestQueueHandler'][_0x4f1adc(0xda)],0x1)));const _0x5dbc03={};return _0x5dbc03[_0x4f1adc(0xfe)]=_0x3d62c8[_0x4f1adc(0x14d)],_0x5dbc03[_0x4f1adc(0x17d)]=_0x3d62c8[_0x4f1adc(0x177)],_0x5dbc03;}else _0x3d62c8[_0x4f1adc(0xdf)](process[_0x4f1adc(0x162)]['BS_TESTOPS_BUILD_COMPLETED'],_0x3d62c8[_0x4f1adc(0x167)])&&_0x3d62c8[_0x4f1adc(0xd6)](setTimeout,()=>{this['uploadEventData'](_0x352e34,_0x3d62c8['BQENS'](_0x456874,0x1));},0x3e8);}}}module['exports']=SessionHandler;
|
|
1
|
+
const a129_0x380d5e=a129_0x11d1;(function(_0x565597,_0x504c39){const _0x4cd80c=a129_0x11d1,_0x169870=_0x565597();while(!![]){try{const _0x37a51c=-parseInt(_0x4cd80c(0x22e))/0x1*(parseInt(_0x4cd80c(0x1da))/0x2)+parseInt(_0x4cd80c(0x221))/0x3+-parseInt(_0x4cd80c(0x255))/0x4*(-parseInt(_0x4cd80c(0x26f))/0x5)+parseInt(_0x4cd80c(0x1f6))/0x6+parseInt(_0x4cd80c(0x272))/0x7*(parseInt(_0x4cd80c(0x27a))/0x8)+parseInt(_0x4cd80c(0x20a))/0x9*(-parseInt(_0x4cd80c(0x273))/0xa)+parseInt(_0x4cd80c(0x1d9))/0xb;if(_0x37a51c===_0x504c39)break;else _0x169870['push'](_0x169870['shift']());}catch(_0x2af6bd){_0x169870['push'](_0x169870['shift']());}}}(a129_0x2cd0,0xce8dd));function a129_0x11d1(_0x56803a,_0x15b123){const _0x2cd0b6=a129_0x2cd0();return a129_0x11d1=function(_0x11d185,_0x98cc2b){_0x11d185=_0x11d185-0x1c8;let _0x6b4d0c=_0x2cd0b6[_0x11d185];return _0x6b4d0c;},a129_0x11d1(_0x56803a,_0x15b123);}const bsSetupHelper=require(a129_0x380d5e(0x25e)),path=require(a129_0x380d5e(0x240)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a129_0x380d5e(0x253)),logger=require('../logger')[a129_0x380d5e(0x1e8)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a129_0x380d5e(0x1fd)),util=require(a129_0x380d5e(0x23b)),constants=require(a129_0x380d5e(0x21b));function a129_0x2cd0(){const _0x304eec=['Processing\x20event\x20-\x20\x27','ERROR_INVALID_CREDENTIALS','CBTSessionCreated','63PQEcrm','iVaCq','max','eQwal','username','yrMCJ','headers','CBT_Upload','getInstance','true','data','CDVSZ','QQofx','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','waitForBuildStatus','eventUrl','success','../../bin/utils/constants','build_hashed_id','XTqpU','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','nvDWX','BROWSERSTACK_TESTHUB_UUID','2317983JNQPzq','UNmTJ','BS_TESTOPS_JWT','ZctUU','Hook_End_Upload','ZJPHv','uSdob','OsQQE','BEPJn','USXZm','vFhSh','ZUcPL','statusText','12iZaKUW','Batch-Queue','TPDkn','MUPbA','oKQQO','Omefb','buildIdentifier','getGitMetaData','getUserName','dtqcc','POST','length','exports','util','api/v1/event','\x20:\x20missing\x20authentication\x20token','EXCEPTION\x20IN\x20','projectName','path','jwt','nestedKeyValue','wYKWD','Data\x20upload\x20to\x20BrowserStack\x20','getAgentVersion','\x20failed\x20due\x20to\x20','vhWXV','Sending\x20trace\x20zip\x20for\x20test:\x20','mNCgI','hsQbJ','error','inspect','WCYsN','TestRunStarted','ygSaP','mfODt','\x20REQUEST\x20TO\x20','application/json','./requestQueueHandler','SGAqe','186436sUhdsW','status','qsmXd','BS_TESTOPS_ALLOW_SCREENSHOTS','getAccessKey','event_type','HookRunStarted','CREDENTIALS_FOR_CRASH_REPORTING','TEST_REPORTING_ANALYTICS','../helper','BROWSERSTACK_RERUN','cYkUM','FGlnO','vTQtR','HNkEv','test_run_uuid','start','buildName','HookRunFinished','htwxX','HKgGs','requestQueueHandler','JjRFo','UDXPL','test_run','format','30mCoYDt','includes','sendEventData','45122nOTsdP','1203630MsmJkR','yWgFF','hook_run','uploadEventData','stringify','browserstackAutomation','null','48RyBfPE','uuid','Build\x20creation\x20successful!','QLLoX','zxTYJ','PvquD','IvvCU','allow_screenshots','app','tcJox','resolve','toISOString','buildDescription','ScZBB','Log_Upload','Content-Type','X-BSTACK-TESTOPS','ERROR_ACCESS_DENIED','false','OzIRT','getHostInfo','pendingUploads','KRGBt','getLogTag','12685376IFbJhu','160708mmeoeu','gIPtC','message','debug','cVEmG','\x20retry\x20runs\x20exceeded','NnFnq','BS_TESTOPS_BUILD_HASHED_ID','env','Retry\x20runs\x20exceeded','iUDbL','kunYZ','HxCtq','DCOMD','winstonLogger','response','api/v1/builds','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','\x20:\x20','KRPMw','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','hqhAr','password','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','pVxBX','BS_A11Y_JWT','json','TlXBw','2451762PdtsFd','Bearer\x20','UdHBz','Test_Skipped_Upload','TestRunSkipped','Authorization','errorType','../../helpers/testhub/utils','FdswF','scyVu','logs','info','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','BROWSERSTACK_TESTHUB_JWT','wZfqD','BS_TESTOPS_BUILD_COMPLETED','frameworkVersion'];a129_0x2cd0=function(){return _0x304eec;};return a129_0x2cd0();}class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler[a129_0x380d5e(0x212)]();static async['launch'](_0x1df43a,_0x16e80e){const _0x1e94ab=a129_0x380d5e,_0x3f0ac3={'TPDkn':function(_0x31991c,_0x229ac0){return _0x31991c||_0x229ac0;},'Gdmiz':function(_0x4c7cf1,_0x3c49a9){return _0x4c7cf1===_0x3c49a9;},'hqhAr':function(_0x2580de,_0xc2853){return _0x2580de(_0xc2853);},'QLLoX':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','SGAqe':_0x1e94ab(0x1d3),'eQwal':_0x1e94ab(0x1f4),'cYkUM':function(_0x2fdd18,_0x407990){return _0x2fdd18(_0x407990);},'yrMCJ':function(_0x4a8edc,_0x5ea7a0){return _0x4a8edc(_0x5ea7a0);},'tVsFO':function(_0x5aa3d2,_0x16d5ce,_0x47bca7,_0x14e42e,_0x2858c3){return _0x5aa3d2(_0x16d5ce,_0x47bca7,_0x14e42e,_0x2858c3);},'XTqpU':'POST','TlXBw':_0x1e94ab(0x1ea),'gIPtC':function(_0x74ca78,_0x55111a){return _0x74ca78(_0x55111a);},'qsmXd':_0x1e94ab(0x27c),'DHsAN':function(_0x156d7c){return _0x156d7c();},'bTsuK':'true','dtqcc':_0x1e94ab(0x279),'tcJox':function(_0x54228f,_0x30e0a1){return _0x54228f(_0x30e0a1);},'JjRFo':_0x1e94ab(0x208),'jKhmS':_0x1e94ab(0x1d2),'mfODt':'ERROR_SDK_DEPRECATED'};logger[_0x1e94ab(0x201)](_0x1e94ab(0x202)+util[_0x1e94ab(0x24c)](_0x1df43a));const _0x179dea=bsSetupHelper[_0x1e94ab(0x236)](_0x1df43a),_0x5e74dc=bsSetupHelper[_0x1e94ab(0x259)](_0x1df43a),_0x1d499d=_0x3f0ac3[_0x1e94ab(0x230)](_0x179dea,'')+':'+_0x3f0ac3[_0x1e94ab(0x230)](_0x5e74dc,'');if(_0x3f0ac3['Gdmiz'](_0x1d499d,':'))return _0x3f0ac3[_0x1e94ab(0x1ef)](debug,_0x3f0ac3[_0x1e94ab(0x27d)]),process[_0x1e94ab(0x1e2)][_0x1e94ab(0x205)]=_0x3f0ac3[_0x1e94ab(0x254)],[null,null];let _0x31220f=![],_0x14a7b9=![];if(_0x1df43a['browserstackAutomation']&&_0x1df43a[_0x1e94ab(0x1c9)])_0x14a7b9=!![];else _0x1df43a[_0x1e94ab(0x278)]&&(_0x31220f=!![]);try{const _0x51936f={'format':_0x3f0ac3[_0x1e94ab(0x20d)],'project_name':_0x1df43a[_0x1e94ab(0x23f)]||'','name':_0x1df43a[_0x1e94ab(0x266)]||path['basename'](path[_0x1e94ab(0x1cb)](process['cwd']())),'build_identifier':_0x1df43a[_0x1e94ab(0x234)],'description':_0x1df43a[_0x1e94ab(0x1cd)]||'','start_time':new Date()[_0x1e94ab(0x1cc)](),'tags':_0x3f0ac3[_0x1e94ab(0x260)](getCustomTags,_0x1df43a),'host_info':bsSetupHelper[_0x1e94ab(0x1d5)](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process[_0x1e94ab(0x1e2)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],'failed_tests_rerun':process[_0x1e94ab(0x1e2)][_0x1e94ab(0x25f)]||![],'version_control':await bsSetupHelper[_0x1e94ab(0x235)](),'observability_version':{'frameworkName':_0x16e80e['frameworkName'],'frameworkVersion':_0x16e80e[_0x1e94ab(0x206)],'sdkVersion':bsSetupHelper[_0x1e94ab(0x245)]()},'product_map':_0x3f0ac3[_0x1e94ab(0x260)](getProductMap,_0x1df43a),'test_orchestration':_0x3f0ac3[_0x1e94ab(0x20f)](getTestOrchestrationBuildStartData,_0x1df43a)},_0x119b67={};_0x119b67['username']=_0x179dea,_0x119b67[_0x1e94ab(0x1f0)]=_0x5e74dc;const _0x2f9235={'auth':_0x119b67,'headers':_0x3f0ac3['cYkUM'](getDefaultHeaders,![])},_0x109ead=await _0x3f0ac3['tVsFO'](nodeRequest,_0x3f0ac3[_0x1e94ab(0x21d)],_0x3f0ac3[_0x1e94ab(0x1f5)],_0x51936f,_0x2f9235);_0x3f0ac3[_0x1e94ab(0x1db)](debug,_0x3f0ac3[_0x1e94ab(0x257)]);const _0x37b6a4=_0x109ead[_0x1e94ab(0x214)];_0x37b6a4['build_hashed_id']&&(process[_0x1e94ab(0x1e2)][_0x1e94ab(0x220)]=_0x37b6a4[_0x1e94ab(0x21c)]);if(_0x3f0ac3['DHsAN'](isTestObservabilitySession)){process['env'][_0x1e94ab(0x205)]=_0x3f0ac3['bTsuK'];if(_0x37b6a4[_0x1e94ab(0x241)]){process[_0x1e94ab(0x1e2)][_0x1e94ab(0x223)]=_0x37b6a4[_0x1e94ab(0x241)];const _0x3c8053={};_0x3c8053[_0x1e94ab(0x20e)]=_0x179dea,_0x3c8053[_0x1e94ab(0x1f0)]=_0x5e74dc,process['env'][_0x1e94ab(0x25c)]=JSON[_0x1e94ab(0x277)](_0x3c8053);}_0x37b6a4['build_hashed_id']&&(process[_0x1e94ab(0x1e2)][_0x1e94ab(0x1e1)]=_0x37b6a4[_0x1e94ab(0x21c)]),_0x37b6a4[_0x1e94ab(0x1c8)]&&(process['env'][_0x1e94ab(0x258)]=_0x37b6a4['allow_screenshots']['toString']());}return[_0x109ead[_0x1e94ab(0x214)][_0x1e94ab(0x241)],_0x109ead[_0x1e94ab(0x214)][_0x1e94ab(0x21c)],_0x109ead['data'][_0x1e94ab(0x1c8)]];}catch(_0x1fd6d0){process[_0x1e94ab(0x1e2)][_0x1e94ab(0x220)]=_0x3f0ac3[_0x1e94ab(0x237)],process[_0x1e94ab(0x1e2)][_0x1e94ab(0x205)]=_0x3f0ac3[_0x1e94ab(0x254)],process[_0x1e94ab(0x1e2)][_0x1e94ab(0x223)]=_0x3f0ac3[_0x1e94ab(0x237)],process[_0x1e94ab(0x1e2)][_0x1e94ab(0x1e1)]=_0x3f0ac3[_0x1e94ab(0x237)],process[_0x1e94ab(0x1e2)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x3f0ac3[_0x1e94ab(0x237)];_0x1fd6d0['response']?_0x3f0ac3[_0x1e94ab(0x1ca)](debug,_0x1e94ab(0x21e)+_0x1fd6d0['response']['status']+'\x20'+_0x1fd6d0['response'][_0x1e94ab(0x22d)]+'\x20'+JSON[_0x1e94ab(0x277)](_0x1fd6d0[_0x1e94ab(0x1e9)][_0x1e94ab(0x214)])):_0x3f0ac3[_0x1e94ab(0x20f)](debug,_0x1e94ab(0x21e)+(_0x1fd6d0[_0x1e94ab(0x1dc)]||_0x1fd6d0));if(_0x1fd6d0&&_0x1fd6d0[_0x1e94ab(0x1dc)]){const _0x1e56c1=_0x1fd6d0[_0x1e94ab(0x1dc)];switch(_0x1fd6d0[_0x1e94ab(0x1fc)]){case _0x3f0ac3[_0x1e94ab(0x26b)]:logger[_0x1e94ab(0x24b)](_0x1e56c1);break;case _0x3f0ac3['jKhmS']:logger[_0x1e94ab(0x201)](_0x1e56c1);break;case _0x3f0ac3[_0x1e94ab(0x250)]:logger['error'](_0x1e56c1);break;default:logger[_0x1e94ab(0x24b)](_0x1e56c1);}}else console[_0x1e94ab(0x201)](_0x1e94ab(0x244)+constants[_0x1e94ab(0x25d)]+_0x1e94ab(0x246)+_0x1fd6d0);return[null,null,null];}}static async[a129_0x380d5e(0x218)](){const _0x516bf5=a129_0x380d5e,_0x41e8f5={'ZctUU':'true','cVEmG':_0x516bf5(0x1d3),'vTQtR':function(_0x16dcdb,_0x3e754b){return _0x16dcdb(_0x3e754b);}},_0x124aa9=process[_0x516bf5(0x1e2)][_0x516bf5(0x205)];if([_0x41e8f5[_0x516bf5(0x224)],_0x41e8f5[_0x516bf5(0x1de)]][_0x516bf5(0x270)](_0x124aa9))return;while([_0x41e8f5[_0x516bf5(0x224)],_0x41e8f5[_0x516bf5(0x1de)]][_0x516bf5(0x270)](_0x124aa9)){await _0x41e8f5[_0x516bf5(0x262)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static['getLogTag'](_0x8e04ff){const _0xb76a68=a129_0x380d5e,_0x11f892={};_0x11f892[_0xb76a68(0x27e)]='Test_Start_Upload',_0x11f892[_0xb76a68(0x1e0)]='Test_End_Upload',_0x11f892['DCOMD']=_0xb76a68(0x1f9),_0x11f892[_0xb76a68(0x1d7)]=_0xb76a68(0x1cf),_0x11f892[_0xb76a68(0x1fe)]='Hook_Start_Upload',_0x11f892[_0xb76a68(0x22a)]=_0xb76a68(0x225),_0x11f892[_0xb76a68(0x216)]=_0xb76a68(0x211);const _0x3a3fd9=_0x11f892,_0x45b4e4={};return _0x45b4e4[_0xb76a68(0x24e)]=_0x3a3fd9[_0xb76a68(0x27e)],_0x45b4e4['TestRunFinished']=_0x3a3fd9['NnFnq'],_0x45b4e4[_0xb76a68(0x1fa)]=_0x3a3fd9[_0xb76a68(0x1e7)],_0x45b4e4['LogCreated']=_0x3a3fd9[_0xb76a68(0x1d7)],_0x45b4e4[_0xb76a68(0x25b)]=_0x3a3fd9['FdswF'],_0x45b4e4[_0xb76a68(0x267)]=_0x3a3fd9['USXZm'],_0x45b4e4[_0xb76a68(0x209)]=_0x3a3fd9[_0xb76a68(0x216)],_0x45b4e4[_0x8e04ff[_0xb76a68(0x25a)]];}static async[a129_0x380d5e(0x271)](_0x35e559,_0x2db84f=0x0,_0x46d914=null){const _0x4ca4a2=a129_0x380d5e,_0x1078c5={'ZJPHv':function(_0x3ffb61,_0x1bd0ca){return _0x3ffb61===_0x1bd0ca;},'wYKWD':'sendTraceZip','HxCtq':function(_0x344c5e,_0x5a3542){return _0x344c5e!==_0x5a3542;},'ScZBB':_0x4ca4a2(0x252),'IvvCU':_0x4ca4a2(0x213),'HKgGs':function(_0x4618c9,_0x5ea2ba){return _0x4618c9===_0x5ea2ba;},'UdHBz':function(_0x3b3475,_0x5802fe,_0x4d1c76,_0x15ca98,_0xb70084){return _0x3b3475(_0x5802fe,_0x4d1c76,_0x15ca98,_0xb70084);},'iVaCq':_0x4ca4a2(0x238),'sOWum':function(_0x5d0332,_0xdec8cf,_0x2c8664,_0x458794,_0x1856eb){return _0x5d0332(_0xdec8cf,_0x2c8664,_0x458794,_0x1856eb);},'HNkEv':function(_0x58f942,_0x3d0360){return _0x58f942(_0x3d0360);},'nvDWX':_0x4ca4a2(0x22f),'UNmTJ':function(_0x184c91,_0x2f4b72){return _0x184c91-_0x2f4b72;},'WCYsN':_0x4ca4a2(0x23c),'vhWXV':_0x4ca4a2(0x21a),'fEIAf':function(_0x428a65,_0x5efe24){return _0x428a65(_0x5efe24);},'yWgFF':function(_0x2a5eb8,_0x52664d){return _0x2a5eb8!==_0x52664d;},'vFhSh':function(_0x53cc65,_0x3ed379){return _0x53cc65(_0x3ed379);},'aDlFd':function(_0xe56110,_0x325d72){return _0xe56110===_0x325d72;},'UDXPL':_0x4ca4a2(0x24b)};_0x1078c5['ZJPHv'](_0x46d914,_0x1078c5[_0x4ca4a2(0x243)])&&logger[_0x4ca4a2(0x1dd)](_0x4ca4a2(0x248)+_0x35e559['logs'][0x0][_0x4ca4a2(0x264)]);const _0x5ea60f=await this[_0x4ca4a2(0x1d8)](_0x35e559);let _0x3497c4=_0x35e559,_0x4d8b12=EVENT_ENDPOINT;_0x1078c5[_0x4ca4a2(0x1e6)](_0x46d914,_0x1078c5['wYKWD'])&&this[_0x4ca4a2(0x26a)][_0x4ca4a2(0x265)]();const {shouldProceed:_0x2d6002,proceedWithData:_0x49309b,proceedWithUrl:_0x3b444e}=this[_0x4ca4a2(0x26a)]['add'](_0x35e559);if(!_0x2d6002)return;else _0x49309b&&(_0x3497c4=_0x49309b,_0x4d8b12=_0x3b444e);const _0x5cdf43={};_0x5cdf43[_0x4ca4a2(0x1fb)]=_0x4ca4a2(0x1f7)+process['env'][_0x4ca4a2(0x203)],_0x5cdf43[_0x4ca4a2(0x1d0)]=_0x1078c5[_0x4ca4a2(0x1ce)],_0x5cdf43[_0x4ca4a2(0x1d1)]=_0x1078c5[_0x4ca4a2(0x280)];const _0x1066be={};_0x1066be[_0x4ca4a2(0x210)]=_0x5cdf43;const _0x578142=_0x1066be;let _0x130a7e;try{_0x1078c5[_0x4ca4a2(0x269)](_0x46d914,_0x1078c5[_0x4ca4a2(0x243)])?(logger[_0x4ca4a2(0x1dd)](_0x4ca4a2(0x217)+_0x35e559?.[_0x4ca4a2(0x200)][0x0]?.[_0x4ca4a2(0x264)]),_0x130a7e=await _0x1078c5[_0x4ca4a2(0x1f8)](asyncAwaitNodeReq,_0x1078c5['iVaCq'],_0x4d8b12,_0x3497c4,_0x578142),logger['debug'](_0x4ca4a2(0x1ee)+_0x35e559?.[_0x4ca4a2(0x200)][0x0]?.[_0x4ca4a2(0x264)])):_0x130a7e=await _0x1078c5['sOWum'](nodeRequest,_0x1078c5[_0x4ca4a2(0x20b)],_0x4d8b12,_0x3497c4,_0x578142);if(_0x130a7e[_0x4ca4a2(0x214)]['error']){const _0x383542={};_0x383542[_0x4ca4a2(0x1dc)]=_0x130a7e['data'][_0x4ca4a2(0x24b)];throw _0x383542;}else{_0x1078c5[_0x4ca4a2(0x263)](debug,(_0x1078c5[_0x4ca4a2(0x1e6)](_0x4d8b12,this['requestQueueHandler'][_0x4ca4a2(0x219)])?_0x5ea60f:_0x1078c5[_0x4ca4a2(0x21f)])+'['+_0x2db84f+']\x20event\x20successful!'),this[_0x4ca4a2(0x26a)]['pendingUploads']=Math[_0x4ca4a2(0x20c)](0x0,_0x1078c5['UNmTJ'](this[_0x4ca4a2(0x26a)][_0x4ca4a2(0x1d6)],_0x1078c5[_0x4ca4a2(0x226)](_0x4d8b12,_0x1078c5[_0x4ca4a2(0x24d)])?0x1:_0x3497c4[_0x4ca4a2(0x239)]));const _0x39f6fe={};return _0x39f6fe[_0x4ca4a2(0x256)]=_0x1078c5[_0x4ca4a2(0x247)],_0x39f6fe['message']='',_0x39f6fe;}}catch(_0x5cb756){_0x5cb756[_0x4ca4a2(0x1e9)]?_0x1078c5['fEIAf'](debug,_0x4ca4a2(0x23e)+(_0x1078c5[_0x4ca4a2(0x274)](_0x4d8b12,this[_0x4ca4a2(0x26a)][_0x4ca4a2(0x219)])?_0x5ea60f:_0x1078c5[_0x4ca4a2(0x21f)])+_0x4ca4a2(0x251)+constants[_0x4ca4a2(0x25d)]+_0x4ca4a2(0x1ec)+_0x5cb756[_0x4ca4a2(0x1e9)][_0x4ca4a2(0x256)]+'\x20'+_0x5cb756[_0x4ca4a2(0x1e9)]['statusText']+'\x20'+util[_0x4ca4a2(0x26e)](_0x5cb756[_0x4ca4a2(0x1e9)][_0x4ca4a2(0x214)])):_0x1078c5[_0x4ca4a2(0x22b)](debug,_0x4ca4a2(0x23e)+(_0x1078c5['HxCtq'](_0x4d8b12,this[_0x4ca4a2(0x26a)][_0x4ca4a2(0x219)])?_0x5ea60f:_0x1078c5[_0x4ca4a2(0x21f)])+_0x4ca4a2(0x251)+constants[_0x4ca4a2(0x25d)]+_0x4ca4a2(0x1ec)+util[_0x4ca4a2(0x26e)](_0x5cb756));this[_0x4ca4a2(0x26a)]['pendingUploads']=Math[_0x4ca4a2(0x20c)](0x0,_0x1078c5[_0x4ca4a2(0x222)](this[_0x4ca4a2(0x26a)][_0x4ca4a2(0x1d6)],_0x1078c5['aDlFd'](_0x4d8b12,_0x1078c5[_0x4ca4a2(0x24d)])?0x1:_0x3497c4[_0x4ca4a2(0x239)]));const _0x411e6d={};return _0x411e6d[_0x4ca4a2(0x256)]=_0x1078c5[_0x4ca4a2(0x26c)],_0x411e6d['message']=_0x5cb756[_0x4ca4a2(0x1dc)]||(_0x5cb756[_0x4ca4a2(0x1e9)]?_0x5cb756[_0x4ca4a2(0x1e9)][_0x4ca4a2(0x256)]+':'+_0x5cb756['response'][_0x4ca4a2(0x22d)]:_0x5cb756),_0x411e6d;}}static async[a129_0x380d5e(0x276)](_0x4fae30,_0x1ffa23=0x0){const _0x4a8401=a129_0x380d5e,_0x3bae0c={'kunYZ':function(_0x33aa9a,_0xee4c07){return _0x33aa9a+_0xee4c07;},'FGlnO':function(_0x59ecba,_0xffb4f9){return _0x59ecba(_0xffb4f9);},'scyVu':_0x4a8401(0x26d),'Omefb':_0x4a8401(0x27b),'uSdob':_0x4a8401(0x275),'sYoNJ':function(_0x46ccbb,_0x42e9fe,_0x4ee549){return _0x46ccbb(_0x42e9fe,_0x4ee549);},'MUPbA':_0x4a8401(0x276),'vzPGU':function(_0x3b11af,_0x492b8e){return _0x3b11af===_0x492b8e;},'OsQQE':function(_0x101852,_0x4e5ec7){return _0x101852!==_0x4e5ec7;},'htwxX':_0x4a8401(0x279),'XEpgV':function(_0x4722e9,_0x4e1477){return _0x4722e9===_0x4e1477;},'PvquD':_0x4a8401(0x213),'oKQQO':function(_0xc35271){return _0xc35271();},'wZfqD':function(_0x4072db,_0x18060e){return _0x4072db===_0x18060e;},'pVxBX':function(_0x33c47c,_0x506c7a){return _0x33c47c(_0x506c7a);},'ygSaP':function(_0x21de1a,_0x5828ea){return _0x21de1a-_0x5828ea;},'CDVSZ':_0x4a8401(0x24b),'OzIRT':_0x4a8401(0x1eb),'KRPMw':function(_0x232703,_0x56535e){return _0x232703>=_0x56535e;},'hsQbJ':function(_0x824652,_0x3344a0){return _0x824652!==_0x3344a0;},'iUDbL':function(_0x410de8,_0x8d75de){return _0x410de8-_0x8d75de;},'QRTnx':_0x4a8401(0x1e3),'ZUcPL':function(_0x326687,_0x3ec3fc){return _0x326687!==_0x3ec3fc;},'BEPJn':'false','mNCgI':function(_0x28462d,_0x4dfda3,_0x52b869){return _0x28462d(_0x4dfda3,_0x52b869);}},_0x39fb3c=this[_0x4a8401(0x1d8)](_0x4fae30);_0x3bae0c[_0x4a8401(0x261)](trace,_0x4a8401(0x207)+_0x4fae30[_0x4a8401(0x25a)]+'\x27\x20'+(bsSetupHelper[_0x4a8401(0x242)](_0x4fae30,[_0x3bae0c[_0x4a8401(0x1ff)],_0x3bae0c[_0x4a8401(0x233)]])||bsSetupHelper[_0x4a8401(0x242)](_0x4fae30,[_0x3bae0c[_0x4a8401(0x227)],_0x3bae0c[_0x4a8401(0x233)]])));if(!_0x3bae0c['sYoNJ'](shouldProcessEventForTesthub,_0x4fae30[_0x4a8401(0x25a)],_0x3bae0c[_0x4a8401(0x231)]))return;_0x3bae0c['vzPGU'](_0x1ffa23,0x0)&&process[_0x4a8401(0x1e2)][_0x4a8401(0x203)]&&_0x3bae0c[_0x4a8401(0x228)](process['env'][_0x4a8401(0x203)],_0x3bae0c[_0x4a8401(0x268)])&&(this[_0x4a8401(0x26a)][_0x4a8401(0x1d6)]+=0x1);if(_0x3bae0c['XEpgV'](process['env']['BS_TESTOPS_BUILD_COMPLETED'],_0x3bae0c[_0x4a8401(0x27f)])||process[_0x4a8401(0x1e2)][_0x4a8401(0x1f3)]||_0x3bae0c[_0x4a8401(0x232)](isPercyBuild)){if(_0x3bae0c[_0x4a8401(0x204)](process[_0x4a8401(0x1e2)][_0x4a8401(0x203)],_0x3bae0c[_0x4a8401(0x268)])){_0x3bae0c[_0x4a8401(0x1f2)](debug,_0x4a8401(0x23e)+_0x39fb3c+'\x20REQUEST\x20TO\x20'+constants[_0x4a8401(0x25d)]+_0x4a8401(0x23d)),this[_0x4a8401(0x26a)][_0x4a8401(0x1d6)]=Math[_0x4a8401(0x20c)](0x0,_0x3bae0c[_0x4a8401(0x24f)](this[_0x4a8401(0x26a)]['pendingUploads'],0x1));const _0x2e19a5={};return _0x2e19a5[_0x4a8401(0x256)]=_0x3bae0c['CDVSZ'],_0x2e19a5[_0x4a8401(0x1dc)]=_0x3bae0c[_0x4a8401(0x1d4)],_0x2e19a5;}return await this[_0x4a8401(0x271)](_0x4fae30,_0x1ffa23);}else{if(_0x3bae0c[_0x4a8401(0x1ed)](_0x1ffa23,0x5)){_0x3bae0c['pVxBX'](debug,_0x4a8401(0x23e)+_0x39fb3c+_0x4a8401(0x251)+constants[_0x4a8401(0x25d)]+_0x4a8401(0x1f1)+_0x39fb3c+_0x4a8401(0x1df));_0x3bae0c[_0x4a8401(0x24a)](process[_0x4a8401(0x1e2)][_0x4a8401(0x203)],_0x3bae0c[_0x4a8401(0x268)])&&(this[_0x4a8401(0x26a)]['pendingUploads']=Math['max'](0x0,_0x3bae0c[_0x4a8401(0x1e4)](this[_0x4a8401(0x26a)][_0x4a8401(0x1d6)],0x1)));const _0x41bb4a={};return _0x41bb4a[_0x4a8401(0x256)]=_0x3bae0c[_0x4a8401(0x215)],_0x41bb4a[_0x4a8401(0x1dc)]=_0x3bae0c['QRTnx'],_0x41bb4a;}else _0x3bae0c[_0x4a8401(0x22c)](process[_0x4a8401(0x1e2)][_0x4a8401(0x205)],_0x3bae0c[_0x4a8401(0x229)])&&_0x3bae0c[_0x4a8401(0x249)](setTimeout,()=>{const _0x4ff2e7=_0x4a8401;this[_0x4ff2e7(0x276)](_0x4fae30,_0x3bae0c[_0x4ff2e7(0x1e5)](_0x1ffa23,0x1));},0x3e8);}}}module[a129_0x380d5e(0x23a)]=SessionHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a130_0x192a6c=a130_0x3203;(function(_0x2b5537,_0x4d7d0e){const _0x305db9=a130_0x3203,_0x1e725d=_0x2b5537();while(!![]){try{const _0x119b0b=parseInt(_0x305db9(0x1c9))/0x1+-parseInt(_0x305db9(0x168))/0x2+-parseInt(_0x305db9(0x19f))/0x3+-parseInt(_0x305db9(0x156))/0x4*(parseInt(_0x305db9(0x108))/0x5)+-parseInt(_0x305db9(0x180))/0x6+parseInt(_0x305db9(0xfa))/0x7*(-parseInt(_0x305db9(0x158))/0x8)+parseInt(_0x305db9(0x123))/0x9;if(_0x119b0b===_0x4d7d0e)break;else _0x1e725d['push'](_0x1e725d['shift']());}catch(_0x220644){_0x1e725d['push'](_0x1e725d['shift']());}}}(a130_0x4970,0x8c00a));const fs=require('fs'),path=require('path'),gitLastCommit=require(a130_0x192a6c(0x14e)),getRepoInfo=require(a130_0x192a6c(0xfe)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a130_0x192a6c(0xf3)),http=require(a130_0x192a6c(0x153)),https=require(a130_0x192a6c(0x172)),child_process=require(a130_0x192a6c(0x141)),getos=require(a130_0x192a6c(0x1ea)),os=require('os'),logger=require(a130_0x192a6c(0x12c))['winstonLogger'],buildLogger=require('../logger')[a130_0x192a6c(0x157)],bsSetupHelper=require('../helper'),requestSpy=require(a130_0x192a6c(0x1a0)),constants=require('../../bin/utils/constants'),logPatcher=require('../../bin/utils/logPatcher'),util=require('util'),{fileLogger}=require(a130_0x192a6c(0x12c)),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a130_0x192a6c(0x1ec)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require('../performance/constants'),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a130_0x192a6c(0x188));exports[a130_0x192a6c(0x1ae)]=_0x3c8f15=>{const _0x2baf97=a130_0x192a6c;fileLogger[_0x2baf97(0x1e3)]('['+new Date()[_0x2baf97(0xe0)]()+_0x2baf97(0xf7)+constants[_0x2baf97(0x1bc)]+'\x20]\x20'+_0x3c8f15);},exports['debug']=_0x1a15fd=>{const _0x32bc79=a130_0x192a6c,_0x4714a6={};_0x4714a6[_0x32bc79(0x143)]=function(_0x37291e,_0xa5e3e7){return _0x37291e===_0xa5e3e7;},_0x4714a6['yKZez']=_0x32bc79(0xdb);const _0x8d55dc=_0x4714a6;fileLogger[_0x32bc79(0x159)]('['+new Date()[_0x32bc79(0xe0)]()+'][\x20'+constants[_0x32bc79(0x1bc)]+_0x32bc79(0xea)+_0x1a15fd),(_0x8d55dc[_0x32bc79(0x143)](process[_0x32bc79(0x162)]['BROWSERSTACK_TEST_REPORTING_DEBUG'],_0x8d55dc['yKZez'])||_0x8d55dc[_0x32bc79(0x143)](process[_0x32bc79(0x162)]['BROWSERSTACK_TEST_REPORTING_DEBUG'],'1')||_0x8d55dc[_0x32bc79(0x143)](process[_0x32bc79(0x162)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x8d55dc['yKZez'])||_0x8d55dc['CEGAg'](process['env'][_0x32bc79(0x128)],'1'))&&consoleHolder[_0x32bc79(0x131)]('\x0a['+new Date()['toISOString']()+'][\x20'+constants[_0x32bc79(0x1bc)]+_0x32bc79(0xea)+_0x1a15fd+'\x0a');};const a130_0x3d1c4f={};a130_0x3d1c4f['keepAlive']=!![],a130_0x3d1c4f[a130_0x192a6c(0x1df)]=0xea60,a130_0x3d1c4f[a130_0x192a6c(0x17e)]=0x2,a130_0x3d1c4f['maxTotalSockets']=0x2;const httpKeepAliveAgent=new http[(a130_0x192a6c(0x137))](a130_0x3d1c4f),a130_0x214adb={};a130_0x214adb[a130_0x192a6c(0x11f)]=!![],a130_0x214adb[a130_0x192a6c(0x1df)]=0xea60,a130_0x214adb[a130_0x192a6c(0x17e)]=0x2,a130_0x214adb[a130_0x192a6c(0x17d)]=0x2;const httpsKeepAliveAgent=new https[(a130_0x192a6c(0x137))](a130_0x214adb),a130_0x4f56e6={};a130_0x4f56e6[a130_0x192a6c(0x11f)]=!![],a130_0x4f56e6[a130_0x192a6c(0x1df)]=0xea60,a130_0x4f56e6[a130_0x192a6c(0x17e)]=0x2,a130_0x4f56e6[a130_0x192a6c(0x17d)]=0x2;function a130_0x3203(_0x5640fd,_0x12446e){const _0x49709e=a130_0x4970();return a130_0x3203=function(_0x32037d,_0x5c32d3){_0x32037d=_0x32037d-0xda;let _0x5417a3=_0x49709e[_0x32037d];return _0x5417a3;},a130_0x3203(_0x5640fd,_0x12446e);}const httpScreenshotsKeepAliveAgent=new http[(a130_0x192a6c(0x137))](a130_0x4f56e6),a130_0x547c15={};a130_0x547c15[a130_0x192a6c(0x11f)]=!![],a130_0x547c15[a130_0x192a6c(0x1df)]=0xea60,a130_0x547c15[a130_0x192a6c(0x17e)]=0x2,a130_0x547c15[a130_0x192a6c(0x17d)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a130_0x192a6c(0x137))](a130_0x547c15);function a130_0x4970(){const _0x289404=['true','@playwright/test','\x20:\x20','sbtUu','platformVersion','toISOString','LRiXs','Bearer\x20','FQkUS','bs:addLog:','bs:addPlatformDetails:','ONkXT','ktqKG','extractValuesWithRegexKeyMatch','test','\x20]\x20','BROWSERSTACK_TEST_OBSERVABILITY_YML','HOQhz','browserstack','jest','mocha','UnhandledError','OS\x20X','kozAf','./constants','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','fileName','json','][\x20','IOlHX','sleep','105Helmmb','OVqbo','3|1|0|4|5|2','gaZMk','git-repo-info','patchConsoleLogger','dhUgw','BROWSERSTACK_TEST_OBSERVABILITY','url','local_grid','uQHcc','map_','nodeRequest','IknPt','25SJXHYY','map','getUserCredentials','LsQRN','null','modifyReqForTraceUpload','rqyDX','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','TEST_PLATFORM','capabilities','nBUfF','KgyiK','agent','backtrace','data','addRequestSpy','CUCUMBER','fjgGW','^CUSTOM_TAG_\x5cd+$','GRBfm','BROWSERSTACK_TESTHUB_JWT','getPlatformDetails','CUSTOM_TAG','keepAlive','HqWZM','rpQLJ','CODECEPT_CUCUMBER','28508661iRmLaL','ziVOz','QjmfZ','TEST_OBSERVABILITY_BUILD_TAG','TEST_REPORTING_BUILD_TAG','BROWSERSTACK_OBSERVABILITY_DEBUG','vjDLJ','Visit\x20','JMoJb','../logger','release','trim','Fmbpv','test_run_uuid','log','getAccessKey','split','QjBdH','printBuildLink','Error\x20in\x20getting\x20Linux\x20Details','Agent','UTxnH','X-BSTACK-TESTOPS','qxren','linux','hnlNd','[%s][\x20','IcgFF','platformName','windows-release','child_process','pid','CEGAg','catch','xvueK','qrwqF','parse','mFpZX','LogCreated','SxIss','isUndefined','undefined','wKONU','git-last-commit','darwin','spy','Authorization','keys','http','shouldReRunObservabilityTests','asyncAwaitNodeReq','352804IwFVin','buildLogger','563784bYsoWd','debug','then','Agpdi','toString','dmNCS','object','headers','Unknown','hostname','env','Uploading\x20trace\x20logs\x20to:\x20','info','aeTHf','isInternalHook','automate','1783506sedmSa','mkukI','app-automate','replace','zftcQ','PathHelper','VYDEe','PRINT_BUILDLINK','O11Y_URL','IOnSp','https','jHZUs','EUPmV','measureWrapper','getCustomTags','HpUfw','buildTag','isArray','Test\x20timeout\x20of','Linux','includes','maxTotalSockets','maxSockets','PLAYWRIGHT','5949228XaaRAK','TEST_ATTACHMENT','NvFPg','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','removeAnsiColors','KYZLA','sendPlatformDetails','getCapabilities','../../../src/bin/utils/constants','nLrWC','lHmMs','getUserName','getBrowserStackConfig','DYkNx','annotate','ATS_HUB_URL_REGEX','relativeTestFilePath','NFoyZ','logs','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','application/json','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','expanded','rQnHl','match','boxUh','JHOWm','error','O11yHashedID','push','forEach','642099aCFFFJ','../../helpers/request-spy','HUB_URL_REGEX','getObservabilityLinkedProductName','AssertionError','BROWSERSTACK_TEST_REPORTING','default','join','Content-Type','BS_TESTOPS_BUILD_HASHED_ID','GTwhY','wOywq','codeceptjs','ZDKFM','host','trace','relative','SeqRu','mzFbV','Nvwyc','prefixTestPath','getPackageVersion','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','HTTP','WpcuV','body','vGLwE','app','zwQFW','TEST_REPORTING_ANALYTICS','getPlatform','hSwTq','length','prefix','win32','zoYPa','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','getBrowserVersion','Windows','BROWSERSTACK_CONFIG_FILE_PATH','startsWith','getDefaultHeaders','1001245tiwpsa','getFailureType','readConfig','__cloud_provider___','turboscale','BROWSERSTACK_RERUN_TESTS','platform','emit','MyNne','message','now','ObservabilitySync:','NdSlm','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','\x20]\x20Build\x20Not\x20Found\x20%s','ZkEoz','unknown_grid','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','eLYav','sejyt','\x20test\x20instance\x20:\x20','EIDqd','timeout','dist','bAyvS','failureData','silly','/builds/','JEST','HnAio','MUkEk','format','PnRuh','getos','config','lodash','tTVWC','hcQSk'];a130_0x4970=function(){return _0x289404;};return a130_0x4970();}exports[a130_0x192a6c(0x154)]=()=>{const _0x21ac5d=a130_0x192a6c,_0x2ad073={};_0x2ad073[_0x21ac5d(0x173)]=function(_0x81a3e6,_0x1c014){return _0x81a3e6!==_0x1c014;},_0x2ad073[_0x21ac5d(0x177)]=_0x21ac5d(0x10c);const _0x8688ae=_0x2ad073;return process[_0x21ac5d(0x162)][_0x21ac5d(0x1ce)]&&_0x8688ae[_0x21ac5d(0x173)](process[_0x21ac5d(0x162)][_0x21ac5d(0x1ce)],_0x8688ae[_0x21ac5d(0x177)])?!![]:![];},exports['isTestObservabilitySession']=()=>{const _0xcb2ad8=a130_0x192a6c,_0x27fed3={};_0x27fed3[_0xcb2ad8(0x146)]=function(_0x423850,_0x3082b1){return _0x423850===_0x3082b1;},_0x27fed3[_0xcb2ad8(0x165)]='true';const _0x1cc1e1=_0x27fed3;let _0x521b84=!![];return process[_0xcb2ad8(0x162)][_0xcb2ad8(0xeb)]&&(_0x521b84=_0x1cc1e1[_0xcb2ad8(0x146)](process[_0xcb2ad8(0x162)][_0xcb2ad8(0xeb)],_0x1cc1e1[_0xcb2ad8(0x165)])),process['env'][_0xcb2ad8(0x101)]&&(_0x521b84=_0x1cc1e1[_0xcb2ad8(0x146)](process[_0xcb2ad8(0x162)][_0xcb2ad8(0x101)],_0x1cc1e1[_0xcb2ad8(0x165)])),process[_0xcb2ad8(0x162)][_0xcb2ad8(0x1a4)]&&(_0x521b84=_0x1cc1e1['qrwqF'](process[_0xcb2ad8(0x162)][_0xcb2ad8(0x1a4)],_0x1cc1e1['aeTHf'])),_0x521b84;},exports['parseFileNames']=_0x469bfd=>{const _0x18f472=a130_0x192a6c;if(bsSetupHelper[_0x18f472(0x14b)](_0x469bfd))return undefined;try{return _0x469bfd[_0x18f472(0x12e)]()[_0x18f472(0x133)](',');}catch(_0x3f47f4){return undefined;}},exports[a130_0x192a6c(0x135)]=()=>{const _0x33cf55=a130_0x192a6c,_0x4fe997={'IOlHX':function(_0x265d5e,_0x462d00){return _0x265d5e(_0x462d00);},'hJlQc':'../../bin/v2/browserstackCLI','XxdhD':function(_0x22812f,_0x39592c){return _0x22812f!==_0x39592c;},'JHOWm':_0x33cf55(0x10c),'NFoyZ':function(_0x4c1fba,_0x5beeac){return _0x4c1fba!==_0x5beeac;},'lXIBW':_0x33cf55(0x14c)};return PerformanceTester[_0x33cf55(0x175)](PerformanceO11yEvents[_0x33cf55(0x16f)],async()=>{const _0x29992b=_0x33cf55;try{const _0x5e6da4=_0x4fe997[_0x29992b(0xf8)](require,_0x4fe997['hJlQc']);if(_0x5e6da4[_0x29992b(0x19c)]){const _0x374c6c=_0x29992b(0x12a)+O11Y_URL+_0x29992b(0x1e4)+_0x5e6da4[_0x29992b(0x19c)]+_0x29992b(0x10f);buildLogger[_0x29992b(0x164)](_0x374c6c);return;}if(process[_0x29992b(0x162)][_0x29992b(0x1a8)]&&_0x4fe997['XxdhD'](process[_0x29992b(0x162)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x4fe997[_0x29992b(0x19a)])&&_0x4fe997[_0x29992b(0x191)](process['env'][_0x29992b(0x1a8)],_0x4fe997['lXIBW'])){const _0x1396f0='Visit\x20'+constants[_0x29992b(0x170)]+_0x29992b(0x1e4)+process[_0x29992b(0x162)][_0x29992b(0x1a8)]+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a';buildLogger[_0x29992b(0x164)](_0x1396f0);}}catch(_0x4b672c){logger[_0x29992b(0x19b)](util[_0x29992b(0x1e8)](_0x29992b(0x13d)+constants['TEST_REPORTING_ANALYTICS']+_0x29992b(0x1d7),new Date()[_0x29992b(0xe0)](),_0x4b672c['stack']||_0x4b672c[_0x29992b(0x1d2)]||_0x4b672c));}})();},exports[a130_0x192a6c(0x1ca)]=_0x461f0f=>{const _0x3ae770=a130_0x192a6c,_0x26e684={};_0x26e684[_0x3ae770(0xda)]=_0x3ae770(0x1a3),_0x26e684[_0x3ae770(0x148)]=_0x3ae770(0x17a),_0x26e684[_0x3ae770(0x100)]='TimeoutError',_0x26e684[_0x3ae770(0x11b)]=_0x3ae770(0xf0);const _0x35882b=_0x26e684;if(!_0x461f0f)return null;const _0x46e6ad=_0x461f0f['toString']();if(_0x46e6ad[_0x3ae770(0x198)](/AssertionError/))return _0x35882b[_0x3ae770(0xda)];if(_0x46e6ad['match'](/TimeoutError/)||_0x46e6ad[_0x3ae770(0x1c7)](_0x35882b[_0x3ae770(0x148)])||_0x46e6ad[_0x3ae770(0x198)](/Timeout.*exceeded/i))return _0x35882b[_0x3ae770(0x100)];return _0x35882b[_0x3ae770(0x11b)];},exports['getFrameworkVersion']=_0x48ffa0=>{const _0x12c92b=a130_0x192a6c,_0xed89d2={};_0xed89d2['rqyDX']=_0x12c92b(0xef),_0xed89d2[_0x12c92b(0x107)]=_0x12c92b(0xdc),_0xed89d2[_0x12c92b(0x182)]=_0x12c92b(0x1ab),_0xed89d2['BHCli']=_0x12c92b(0xee),_0xed89d2[_0x12c92b(0x113)]='@cucumber/cucumber';const _0x111b5e=_0xed89d2;let _0x3933c0=null;switch(_0x48ffa0){case FRAMEWORKS['MOCHA']:_0x3933c0=bsSetupHelper[_0x12c92b(0x1b4)](_0x111b5e[_0x12c92b(0x10e)]);break;case FRAMEWORKS[_0x12c92b(0x17f)]:_0x3933c0=bsSetupHelper[_0x12c92b(0x1b4)](_0x111b5e[_0x12c92b(0x107)]);break;case FRAMEWORKS['CODECEPT']:case FRAMEWORKS[_0x12c92b(0x122)]:_0x3933c0=bsSetupHelper[_0x12c92b(0x1b4)](_0x111b5e[_0x12c92b(0x182)]);break;case FRAMEWORKS[_0x12c92b(0x1e5)]:_0x3933c0=bsSetupHelper['getPackageVersion'](_0x111b5e['BHCli']);break;case FRAMEWORKS[_0x12c92b(0x118)]:_0x3933c0=bsSetupHelper[_0x12c92b(0x1b4)](_0x111b5e['KgyiK']);break;default:break;}return _0x3933c0;},exports[a130_0x192a6c(0x18c)]=_0x2e7e55=>{const _0x548de3=a130_0x192a6c;let _0x4198ad=null;switch(_0x2e7e55){case FRAMEWORKS['PLAYWRIGHT']:_0x4198ad=process['env'][_0x548de3(0x1c6)];break;}if(!_0x4198ad)return;return bsSetupHelper[_0x548de3(0x1cb)](_0x4198ad,![]);},exports[a130_0x192a6c(0x10a)]=_0x36df71=>{const _0x5a731b=a130_0x192a6c;return{'username':bsSetupHelper[_0x5a731b(0x18b)](_0x36df71),'accessKey':bsSetupHelper[_0x5a731b(0x132)](_0x36df71)};},exports['modifyReqForTraceUpload']=(_0x4f2917,_0x221b58)=>{const _0x5c1012=a130_0x192a6c,_0x3b49f2={};_0x3b49f2[_0x5c1012(0x1d5)]=_0x5c1012(0xfc),_0x3b49f2['Fmbpv']=_0x5c1012(0x149),_0x3b49f2[_0x5c1012(0x1e6)]=_0x5c1012(0x181);const _0x323956=_0x3b49f2,_0x3a4ba3=_0x323956[_0x5c1012(0x1d5)][_0x5c1012(0x133)]('|');let _0x32e954=0x0;while(!![]){switch(_0x3a4ba3[_0x32e954++]){case'0':_0x4f2917['formData']={'data':_0x4f2917[_0x5c1012(0x1b8)][0x0][_0x5c1012(0x192)][0x0]['data'],'test_run_uuid':_0x4f2917[_0x5c1012(0x1b8)][0x0]['logs'][0x0][_0x5c1012(0x130)],'event_type':_0x323956[_0x5c1012(0x12f)],'kind':_0x323956[_0x5c1012(0x1e6)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x5c1012(0xe0)](),'fileName':_0x4f2917[_0x5c1012(0x1b8)][0x0][_0x5c1012(0x192)][0x0][_0x5c1012(0xf5)]};continue;case'1':if(!_0x4f2917[_0x5c1012(0x1b8)][0x0]||!_0x4f2917[_0x5c1012(0x1b8)][0x0][_0x5c1012(0x192)]||!_0x4f2917['body'][0x0][_0x5c1012(0x192)][_0x5c1012(0x1bf)])return;continue;case'2':delete _0x221b58[_0x5c1012(0x15f)];continue;case'3':if(!_0x4f2917[_0x5c1012(0x1b8)]||!Array[_0x5c1012(0x179)](_0x4f2917[_0x5c1012(0x1b8)]))return;continue;case'4':delete _0x4f2917[_0x5c1012(0x1b8)];continue;case'5':delete _0x4f2917[_0x5c1012(0xf6)];continue;}break;}},exports[a130_0x192a6c(0x155)]=async(_0x50a84f,_0x5a223e,_0x3783b8,_0x4c200d,_0x3f81b4=!![])=>{const _0x185edc=a130_0x192a6c,_0x5af0dc={};_0x5af0dc[_0x185edc(0x1b1)]=function(_0x1a8322,_0x487fcd){return _0x1a8322===_0x487fcd;},_0x5af0dc[_0x185edc(0x120)]=_0x185edc(0x1a7),_0x5af0dc['SSmTo']=_0x185edc(0x194),_0x5af0dc[_0x185edc(0x1ed)]=_0x185edc(0x172),_0x5af0dc['PmJpi']=function(_0x24edf9,_0xfba95b){return _0x24edf9===_0xfba95b;},_0x5af0dc[_0x185edc(0x134)]=function(_0xb39799,_0x584ff4){return _0xb39799!==_0x584ff4;},_0x5af0dc['VotQu']=_0x185edc(0x15e),_0x5af0dc[_0x185edc(0x18d)]=_0x185edc(0x195);const _0x41ac1a=_0x5af0dc,_0x3809d6={..._0x4c200d,...{'method':_0x50a84f,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x5a223e,'body':_0x3783b8,'json':_0x41ac1a[_0x185edc(0x1b1)](_0x4c200d[_0x185edc(0x15f)][_0x41ac1a['HqWZM']],_0x41ac1a['SSmTo']),'agent':API_URL[_0x185edc(0x17c)](_0x41ac1a['tTVWC'])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x41ac1a['PmJpi'](_0x5a223e,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x3809d6[_0x185edc(0x114)]=API_URL[_0x185edc(0x17c)](_0x41ac1a['tTVWC'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x185edc(0x10d)](_0x3809d6,_0x4c200d),logger[_0x185edc(0x159)](_0x185edc(0x163)+_0x3809d6[_0x185edc(0x102)]));try{const {statusCode:_0x1539a2,body:_0x4d76b8}=await bsSetupHelper[_0x185edc(0x106)](_0x50a84f,_0x5a223e,_0x3809d6,_0x4c200d,_0x3809d6[_0x185edc(0x102)]);if(_0x41ac1a['QjBdH'](_0x1539a2,0xc8))return _0x4d76b8?_0x4d76b8:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x1539a2;let _0xbdc116=_0x4d76b8;if(_0x3f81b4)try{_0x41ac1a['QjBdH'](typeof _0x4d76b8,_0x41ac1a['VotQu'])&&(_0xbdc116=JSON['parse'](_0x4d76b8));}catch(_0x209084){logger[_0x185edc(0x19b)](_0x41ac1a[_0x185edc(0x18d)],_0x4d76b8,util[_0x185edc(0x1e8)](_0x209084));}const _0x30184c={};return _0x30184c[_0x185edc(0x116)]=_0xbdc116,_0x30184c;}catch(_0x1779dd){logger[_0x185edc(0x19b)](_0x185edc(0x193)+util[_0x185edc(0x1e8)](_0x1779dd));throw _0x1779dd;}},exports[a130_0x192a6c(0x106)]=(_0x15cae7,_0x56dfe7,_0x425527,_0x4f2e4c,_0x1d4843=!![])=>{const _0x288492=a130_0x192a6c,_0x30a80d={'Tnxuh':function(_0x39ba98,_0x35ddaa){return _0x39ba98!==_0x35ddaa;},'dmNCS':function(_0xc72270,_0x306436){return _0xc72270(_0x306436);},'UTxnH':function(_0x1cd8fc,_0x4482ed){return _0x1cd8fc!==_0x4482ed;},'Agpdi':_0x288492(0x15e),'lHmMs':function(_0x54de85,_0x53cbbe){return _0x54de85(_0x53cbbe);},'FQkUS':_0x288492(0x1da),'ZkEoz':function(_0x37832f,_0x421e5b){return _0x37832f(_0x421e5b);},'wKONU':function(_0x28e177,_0x124862){return _0x28e177===_0x124862;},'mkukI':_0x288492(0x1a7),'ziVOz':_0x288492(0x194),'ZDKFM':_0x288492(0x172),'PnRuh':function(_0x219b9d,_0x5ba0c0){return _0x219b9d===_0x5ba0c0;}};return new Promise((_0x1a703a,_0xe24737)=>{const _0x357c4a=_0x288492,_0x21947b={..._0x4f2e4c,...{'method':_0x15cae7,'url':API_URL+'/'+_0x56dfe7,'body':_0x425527,'json':_0x30a80d[_0x357c4a(0x14d)](_0x4f2e4c[_0x357c4a(0x15f)][_0x30a80d[_0x357c4a(0x169)]],_0x30a80d[_0x357c4a(0x124)]),'agent':API_URL[_0x357c4a(0x17c)](_0x30a80d[_0x357c4a(0x1ac)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x30a80d[_0x357c4a(0x1e9)](_0x56dfe7,SCREENSHOT_ENDPOINT)&&(_0x21947b[_0x357c4a(0x114)]=API_URL[_0x357c4a(0x17c)](_0x30a80d[_0x357c4a(0x1ac)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x357c4a(0x106)](_0x15cae7,_0x56dfe7,_0x21947b,_0x4f2e4c,API_URL)[_0x357c4a(0x15a)](({statusCode:_0x441c06,body:_0x41c9c4})=>{const _0x465c40=_0x357c4a;if(_0x30a80d['Tnxuh'](_0x441c06,0xc8))_0x30a80d[_0x465c40(0x15d)](_0xe24737,_0x41c9c4?_0x41c9c4:_0x465c40(0xf4)+_0x441c06);else{if(_0x1d4843)try{_0x30a80d[_0x465c40(0x138)](typeof _0x41c9c4,_0x30a80d[_0x465c40(0x15b)])&&(_0x41c9c4=JSON[_0x465c40(0x147)](_0x41c9c4));}catch(_0x40db18){_0x30a80d[_0x465c40(0x18a)](_0xe24737,_0x30a80d[_0x465c40(0xe3)]);return;}const _0x48e6bd={};_0x48e6bd[_0x465c40(0x116)]=_0x41c9c4,_0x30a80d[_0x465c40(0x1d8)](_0x1a703a,_0x48e6bd);}})[_0x357c4a(0x144)](_0x14d45e=>{_0x14d45e&&_0x30a80d['ZkEoz'](_0xe24737,_0x14d45e);});});},exports['getBuildTags']=_0x55d8ca=>{const _0x3631f7=a130_0x192a6c;if(process[_0x3631f7(0x162)][_0x3631f7(0x127)])return process['env'][_0x3631f7(0x127)][_0x3631f7(0x133)](',');if(process[_0x3631f7(0x162)][_0x3631f7(0x126)])return process[_0x3631f7(0x162)]['TEST_OBSERVABILITY_BUILD_TAG'][_0x3631f7(0x133)](',');if(_0x55d8ca['buildTag'])return _0x55d8ca[_0x3631f7(0x178)];return[];},exports[a130_0x192a6c(0x1c8)]=(_0x794d9e=!![])=>{const _0xf3f8ea=a130_0x192a6c,_0x1c8735={};_0x1c8735[_0xf3f8ea(0x13e)]=_0xf3f8ea(0x194),_0x1c8735[_0xf3f8ea(0x112)]=_0xf3f8ea(0xdb),_0x1c8735[_0xf3f8ea(0x125)]=_0xf3f8ea(0x151);const _0x12320b=_0x1c8735,_0x34f501={};_0x34f501[_0xf3f8ea(0x1a7)]=_0x12320b[_0xf3f8ea(0x13e)],_0x34f501[_0xf3f8ea(0x139)]=_0x12320b['nBUfF'];const _0x3d144f=_0x34f501;return _0x794d9e&&process[_0xf3f8ea(0x162)][_0xf3f8ea(0x11c)]&&(_0x3d144f[_0x12320b[_0xf3f8ea(0x125)]]=_0xf3f8ea(0xe2)+process[_0xf3f8ea(0x162)][_0xf3f8ea(0x11c)]),_0x3d144f;},exports[a130_0x192a6c(0xe8)]=_0xebf7fa=>{const _0x3ca807=a130_0x192a6c,_0x3f69d2={};_0x3f69d2[_0x3ca807(0x189)]=_0x3ca807(0x11a);const _0x21c6cf=_0x3f69d2,_0x1f1a68=[],_0x5848cc=new RegExp(_0x21c6cf[_0x3ca807(0x189)],'i');return Object[_0x3ca807(0x152)](_0xebf7fa)['filter'](_0x45be0a=>_0x5848cc[_0x3ca807(0xe9)](_0x45be0a))[_0x3ca807(0x19e)](_0x155016=>_0x1f1a68[_0x3ca807(0x19d)](_0xebf7fa[_0x155016])),_0x1f1a68;},exports[a130_0x192a6c(0x176)]=_0x1c2cc7=>{const _0x5e2a21=a130_0x192a6c,_0x309405=[],_0x416b2a=_0x1c2cc7['customTag']||process[_0x5e2a21(0x162)][_0x5e2a21(0x11e)];return _0x416b2a&&_0x309405[_0x5e2a21(0x19d)](_0x416b2a),_0x309405['push'](...exports['extractValuesWithRegexKeyMatch'](process['env'])),_0x309405['push'](...exports[_0x5e2a21(0xe8)](_0x1c2cc7)),_0x309405;},exports[a130_0x192a6c(0x184)]=_0xd5549d=>{const _0x172187=a130_0x192a6c;if(!_0xd5549d)return'';return _0xd5549d[_0x172187(0x16b)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a130_0x192a6c(0xf9)]=(_0x4d47d1=0x64)=>new Promise(_0xf1d0fe=>setTimeout(_0xf1d0fe,_0x4d47d1));const getPlatformName=()=>{const _0x195402=a130_0x192a6c,_0x93af37={};_0x93af37['zoYPa']=function(_0x35f190,_0x49f9c8){return _0x35f190===_0x49f9c8;},_0x93af37['rpQLJ']=_0x195402(0x1c1),_0x93af37[_0x195402(0xec)]=_0x195402(0x1c5),_0x93af37[_0x195402(0xe7)]=_0x195402(0x14f),_0x93af37[_0x195402(0x16c)]=_0x195402(0xf1),_0x93af37['GTwhY']=_0x195402(0x13b),_0x93af37[_0x195402(0x14a)]=_0x195402(0x17b),_0x93af37[_0x195402(0xf2)]=_0x195402(0x160);const _0x3d35f0=_0x93af37;if(_0x3d35f0[_0x195402(0x1c2)](process[_0x195402(0x1cf)],_0x3d35f0[_0x195402(0x121)]))return _0x3d35f0[_0x195402(0xec)];if(_0x3d35f0[_0x195402(0x1c2)](process[_0x195402(0x1cf)],_0x3d35f0['ktqKG']))return _0x3d35f0[_0x195402(0x16c)];if(_0x3d35f0[_0x195402(0x1c2)](process[_0x195402(0x1cf)],_0x3d35f0[_0x195402(0x1a9)]))return _0x3d35f0[_0x195402(0x14a)];return _0x3d35f0['kozAf'];},getMacOSVersion=()=>{const _0x508586=a130_0x192a6c,_0x3140e3={};_0x3140e3[_0x508586(0x1e7)]=_0x508586(0x1d6);const _0xe45fe1=_0x3140e3;return child_process['execSync'](_0xe45fe1[_0x508586(0x1e7)])[_0x508586(0x15c)]()['trim']();},getLinuxDetails=()=>{const _0x227002={'fjgGW':function(_0x11d689,_0x2a5749){return _0x11d689(_0x2a5749);},'WpcuV':function(_0x300636,_0x5866d8){return _0x300636(_0x5866d8);}};return new Promise((_0x43255a,_0x5523d6)=>{const _0x131cf7=a130_0x3203,_0x105464={'YPyuu':function(_0x5ac927,_0x4facb6){const _0x46d6ce=a130_0x3203;return _0x227002[_0x46d6ce(0x119)](_0x5ac927,_0x4facb6);},'wFoLK':function(_0x558842,_0x3c8fcb){const _0x126d2d=a130_0x3203;return _0x227002[_0x126d2d(0x1b7)](_0x558842,_0x3c8fcb);}};_0x227002[_0x131cf7(0x1b7)](getos,(_0x533138,_0x35e243)=>{if(_0x533138)return _0x105464['YPyuu'](_0x5523d6,_0x533138);_0x105464['wFoLK'](_0x43255a,_0x35e243);});});};exports[a130_0x192a6c(0x11d)]=async()=>{const _0x394ab6=a130_0x192a6c,_0x1b3022={'JMoJb':function(_0x7c606e){return _0x7c606e();},'zwQFW':_0x394ab6(0xf1),'eLYav':_0x394ab6(0x1c5),'rQnHl':_0x394ab6(0x140),'gaZMk':_0x394ab6(0x17b),'SILsN':function(_0x4a3352){return _0x4a3352();},'xvueK':_0x394ab6(0x136)};let _0x247a58=_0x1b3022[_0x394ab6(0x12b)](getPlatformName),_0x57e91c=os[_0x394ab6(0x12d)]()[_0x394ab6(0x15c)]();switch(_0x247a58){case _0x1b3022[_0x394ab6(0x1bb)]:_0x57e91c=_0x1b3022[_0x394ab6(0x12b)](getMacOSVersion);break;case _0x1b3022[_0x394ab6(0x1db)]:try{const _0x218126=(await import(_0x1b3022[_0x394ab6(0x197)]))[_0x394ab6(0x1a5)];_0x57e91c=_0x1b3022[_0x394ab6(0x12b)](_0x218126);}catch(_0x3435b4){exports[_0x394ab6(0x159)]('Error\x20in\x20importing\x20windows-release\x20'+_0x3435b4[_0x394ab6(0x15c)]());}break;case _0x1b3022[_0x394ab6(0xfd)]:try{const _0x1305b9=await _0x1b3022['SILsN'](getLinuxDetails);_0x1305b9[_0x394ab6(0x1e0)]&&(_0x247a58=_0x1305b9['dist']),_0x1305b9['release']&&(_0x57e91c=_0x1305b9['release'][_0x394ab6(0x15c)]());}catch(_0x33cc53){exports['debug'](_0x1b3022[_0x394ab6(0x145)]);}break;default:break;}const _0x2afda2={};return _0x2afda2[_0x394ab6(0x13f)]=_0x247a58,_0x2afda2[_0x394ab6(0xdf)]=_0x57e91c,_0x2afda2;},exports[a130_0x192a6c(0x1e2)]=(_0xd02a70,_0x1b90d8)=>{const _0x2c2773=a130_0x192a6c,_0x29640b={};_0x29640b[_0x2c2773(0x1b0)]=function(_0x56cd72,_0x23d8d8){return _0x56cd72===_0x23d8d8;},_0x29640b['vjDLJ']=_0x2c2773(0xe9),_0x29640b[_0x2c2773(0x1de)]=function(_0x11e861,_0x1e2654){return _0x11e861===_0x1e2654;},_0x29640b[_0x2c2773(0x10b)]='err';const _0x4d3497=_0x29640b;if(!_0xd02a70)return[];try{if(_0x4d3497[_0x2c2773(0x1b0)](_0x1b90d8,_0x4d3497[_0x2c2773(0x129)]))return _0xd02a70[_0x2c2773(0x109)](_0x1be207=>{const _0x3fb0db=_0x2c2773,{stack:_0x4a36ff,..._0x53683c}=_0x1be207,_0x4d8acc=Object['keys'](_0x53683c)[_0x3fb0db(0x109)](_0x530954=>{return _0x530954+':\x20'+_0x53683c[_0x530954];}),_0x9505b5=_0x4a36ff?exports[_0x3fb0db(0x184)](_0x4a36ff)['split'](/\r?\n/):[exports[_0x3fb0db(0x184)](_0x1be207[_0x3fb0db(0x1d2)])],_0x1c40f3={};return _0x1c40f3['backtrace']=_0x9505b5,_0x1c40f3[_0x3fb0db(0x196)]=_0x4d8acc,_0x1c40f3;});else{if(_0x4d3497[_0x2c2773(0x1de)](_0x1b90d8,_0x4d3497['LsQRN'])){const _0x5c4cee=[],_0x1a5e77=[];return Object[_0x2c2773(0x152)](_0xd02a70)[_0x2c2773(0x19e)](_0x39c5f0=>{const _0x2b5a73=_0x2c2773;try{_0x1a5e77[_0x2b5a73(0x19d)](_0x39c5f0+':\x20'+_0xd02a70[_0x39c5f0]);}catch(_0x4932f5){exports['debug'](_0x2b5a73(0x1b5)+_0x4932f5[_0x2b5a73(0x1d2)]+_0x2b5a73(0xdd)+_0x4932f5[_0x2b5a73(0x115)]);}}),_0x5c4cee[_0x2c2773(0x19d)]({'backtrace':exports[_0x2c2773(0x184)](_0xd02a70['stack'])[_0x2c2773(0x133)](/\r?\n/),'expanded':_0x1a5e77}),_0x5c4cee;}}return[];}catch(_0x11bdc0){exports[_0x2c2773(0x159)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x11bdc0[_0x2c2773(0x1d2)]+_0x2c2773(0xdd)+_0x11bdc0[_0x2c2773(0x115)]);}return[];};class PathHelper{constructor(_0x3a2f3e,_0x2a94bc){const _0x38875f=a130_0x192a6c;this[_0x38875f(0x1eb)]=_0x3a2f3e,this['prefix']=_0x2a94bc;}[a130_0x192a6c(0x190)](_0x23e2d8){const _0x539922=a130_0x192a6c,_0x290003=this['config']['cwd']||this['config']['rootDir'];return path[_0x539922(0x1af)](_0x290003,_0x23e2d8);}[a130_0x192a6c(0x1b3)](_0x3355c4){const _0x46deb8=a130_0x192a6c,_0x4acdf5=this[_0x46deb8(0x190)](_0x3355c4);return this[_0x46deb8(0x1c0)]?path[_0x46deb8(0x1a6)](this['prefix'],_0x4acdf5):_0x4acdf5;}}exports[a130_0x192a6c(0x16d)]=PathHelper,exports[a130_0x192a6c(0x117)]=(_0xd98938=!![])=>{const _0x434c69=a130_0x192a6c,_0x243c41={};_0x243c41[_0x434c69(0x185)]=function(_0x3e99dc,_0x2158dd){return _0x3e99dc===_0x2158dd;},_0x243c41[_0x434c69(0xde)]=_0x434c69(0x139),_0x243c41[_0x434c69(0xfb)]=_0x434c69(0xdb),_0x243c41[_0x434c69(0xe6)]=_0x434c69(0x1b6),_0x243c41[_0x434c69(0x16e)]='browserstack',_0x243c41[_0x434c69(0x1b2)]=_0x434c69(0x103);const _0x55b28d=_0x243c41;requestSpy[_0x434c69(0x150)]((_0x5bd8fc,_0x43a64f)=>{const _0x1498bd=_0x434c69;_0x43a64f&&!(_0x43a64f[_0x1498bd(0x15f)]&&_0x55b28d[_0x1498bd(0x185)](_0x43a64f[_0x1498bd(0x15f)][_0x55b28d[_0x1498bd(0xde)]],_0x55b28d[_0x1498bd(0xfb)]))&&(_0x43a64f[_0x1498bd(0x1ad)]=_0x43a64f[_0x1498bd(0x161)],delete _0x43a64f['hostname'],_0xd98938&&process['emit'](_0x1498bd(0xe4)+process[_0x1498bd(0x142)],{'timestamp':new Date()[_0x1498bd(0xe0)](),'level':null,'message':null,'kind':_0x55b28d[_0x1498bd(0xe6)],'http_response':_0x43a64f})),_0x43a64f&&(constants[_0x1498bd(0x1a1)][_0x1498bd(0xe9)](_0x43a64f[_0x1498bd(0x1ad)])||constants[_0x1498bd(0x18f)][_0x1498bd(0xe9)](_0x43a64f['host']))?global['__cloud_provider___']=_0x55b28d['VYDEe']:global['__cloud_provider___']=_0x55b28d[_0x1498bd(0x1b2)];});},exports[a130_0x192a6c(0xff)]=()=>{const _0x1e85cf=a130_0x192a6c,_0x1afbf2={'vAvnn':function(_0x56fe4c,_0x4a1c03){return _0x56fe4c(_0x4a1c03);}};console={},Object[_0x1e85cf(0x152)](consoleHolder)[_0x1e85cf(0x19e)](_0x3b343b=>{_0x1afbf2['vAvnn'](isFunction,consoleHolder[_0x3b343b])?console[_0x3b343b]=(..._0x1d7acc)=>{const _0x4fda10=a130_0x3203;try{!Object[_0x4fda10(0x152)](BSTestOpsPatcher)[_0x4fda10(0x17c)](_0x3b343b)?consoleHolder[_0x3b343b](..._0x1d7acc):BSTestOpsPatcher[_0x3b343b](..._0x1d7acc);}catch(_0x43e650){consoleHolder[_0x3b343b](..._0x1d7acc);}}:console[_0x3b343b]=consoleHolder[_0x3b343b];});},exports['getSyncScript']=()=>'browserstack_executor:\x20'+JSON['stringify']({'action':a130_0x192a6c(0x18e),'arguments':{'data':a130_0x192a6c(0x1d4)+Date[a130_0x192a6c(0x1d3)](),'level':a130_0x192a6c(0x159)}}),exports[a130_0x192a6c(0x1a2)]=_0x3d881a=>{const _0x2f117f=a130_0x192a6c,_0x200d33={};_0x200d33[_0x2f117f(0x13c)]=function(_0x1f40af,_0x1e0688){return _0x1f40af===_0x1e0688;},_0x200d33[_0x2f117f(0x199)]=_0x2f117f(0xed),_0x200d33[_0x2f117f(0x1d1)]='appium:app',_0x200d33[_0x2f117f(0x1e1)]=_0x2f117f(0x1ba),_0x200d33['OMGqe']=function(_0x1fe315,_0x3a25cb){return _0x1fe315>_0x3a25cb;},_0x200d33[_0x2f117f(0x171)]=_0x2f117f(0x16a),_0x200d33[_0x2f117f(0x1b9)]='bstack:options',_0x200d33[_0x2f117f(0x1be)]='turboScaleGridDetails',_0x200d33[_0x2f117f(0x104)]=_0x2f117f(0x1cd),_0x200d33[_0x2f117f(0x1aa)]=_0x2f117f(0x167);const _0x250e7a=_0x200d33;let _0x4a7b3d=null;try{if(_0x250e7a['hnlNd'](global[_0x2f117f(0x1cc)],_0x250e7a[_0x2f117f(0x199)])){if(_0x3d881a[_0x250e7a['MyNne']]||_0x3d881a[_0x250e7a[_0x2f117f(0x1e1)]]||!bsSetupHelper[_0x2f117f(0x14b)](global['capabilities'])&&_0x250e7a['OMGqe'](global[_0x2f117f(0x111)][_0x2f117f(0x1bf)],0x0)&&(global['capabilities'][0x0][_0x250e7a['bAyvS']]||global[_0x2f117f(0x111)][0x0][_0x250e7a['MyNne']]))_0x4a7b3d=_0x250e7a['IOnSp'];else _0x3d881a[_0x250e7a[_0x2f117f(0x1b9)]]&&_0x3d881a[_0x250e7a[_0x2f117f(0x1b9)]][_0x250e7a[_0x2f117f(0x1be)]]?_0x4a7b3d=_0x250e7a[_0x2f117f(0x104)]:_0x4a7b3d=_0x250e7a[_0x2f117f(0x1aa)];}}catch(_0x144d91){exports['debug'](_0x2f117f(0x1c3)+constants[_0x2f117f(0x1bc)]+_0x2f117f(0x1dd)+_0x144d91);}return _0x4a7b3d;},exports[a130_0x192a6c(0x186)]=async(_0x5c180e,_0x340d07,_0xf8b4ff=![])=>{const _0x5b3f59=a130_0x192a6c,_0x12e8f2={};_0x12e8f2[_0x5b3f59(0x174)]=function(_0x1695e9,_0x466065){return _0x1695e9===_0x466065;},_0x12e8f2[_0x5b3f59(0xe1)]=_0x5b3f59(0xed),_0x12e8f2[_0x5b3f59(0x1dc)]=_0x5b3f59(0x1d9),_0x12e8f2[_0x5b3f59(0x13a)]=_0x5b3f59(0x110);const _0x354b9a=_0x12e8f2;try{const _0x595b19=await _0x5c180e[_0x5b3f59(0x187)](),_0x348c94=await _0x5c180e['getSession'](),_0x2c12a7={},_0x1b1a16=Object['fromEntries'](_0x348c94['getCapabilities']()[_0x5b3f59(0x105)]),_0x5e3a99={'product':exports['getObservabilityLinkedProductName'](_0x1b1a16),'capabilities':_0x1b1a16,'platform':_0x595b19[_0x5b3f59(0x1bd)](),'platform_version':bsSetupHelper['getPlatformVersion'](_0x354b9a[_0x5b3f59(0x174)](global['__cloud_provider___'],_0x354b9a[_0x5b3f59(0xe1)])),'browser':_0x595b19['getBrowserName'](),'browser_version':_0x595b19[_0x5b3f59(0x1c4)](),'session_id':_0x348c94['toJSON']()};global[_0x5b3f59(0x1cc)]?_0x2c12a7[global[_0x5b3f59(0x1cc)]]=_0x5e3a99:_0x2c12a7[_0x354b9a[_0x5b3f59(0x1dc)]]=_0x5e3a99;if(_0xf8b4ff)return _0x2c12a7;process[_0x5b3f59(0x1d0)](_0x5b3f59(0xe5)+process[_0x5b3f59(0x142)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x354b9a['qxren'],'http_response':_0x2c12a7,'uuid':_0x340d07});}catch(_0x4d7bf2){exports[_0x5b3f59(0x159)](_0x5b3f59(0x183)+_0x4d7bf2);}},exports[a130_0x192a6c(0x166)]=_0x162d88=>{const _0x5f161d=a130_0x192a6c;return _0x162d88&&_0x162d88[_0x5f161d(0x15c)]()[_0x5f161d(0x198)](/browserstack internal helper hook/);};
|
|
1
|
+
const a130_0x1ce4a5=a130_0x5522;(function(_0x2b8eb5,_0x32ea8d){const _0x414d65=a130_0x5522,_0x11ac83=_0x2b8eb5();while(!![]){try{const _0x27c549=parseInt(_0x414d65(0x1f6))/0x1*(parseInt(_0x414d65(0x246))/0x2)+parseInt(_0x414d65(0x271))/0x3*(-parseInt(_0x414d65(0x1c9))/0x4)+-parseInt(_0x414d65(0x24f))/0x5*(-parseInt(_0x414d65(0x25d))/0x6)+-parseInt(_0x414d65(0x26c))/0x7+-parseInt(_0x414d65(0x253))/0x8+parseInt(_0x414d65(0x220))/0x9*(parseInt(_0x414d65(0x25a))/0xa)+parseInt(_0x414d65(0x1b1))/0xb;if(_0x27c549===_0x32ea8d)break;else _0x11ac83['push'](_0x11ac83['shift']());}catch(_0x540134){_0x11ac83['push'](_0x11ac83['shift']());}}}(a130_0x55e8,0x917ea));const fs=require('fs'),path=require(a130_0x1ce4a5(0x1c7)),gitLastCommit=require('git-last-commit'),getRepoInfo=require(a130_0x1ce4a5(0x1fb)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a130_0x1ce4a5(0x25c)),http=require('http'),https=require('https'),child_process=require('child_process'),getos=require(a130_0x1ce4a5(0x275)),os=require('os'),logger=require('../logger')['winstonLogger'],buildLogger=require('../logger')[a130_0x1ce4a5(0x23a)],bsSetupHelper=require(a130_0x1ce4a5(0x18f)),requestSpy=require(a130_0x1ce4a5(0x1b9)),constants=require(a130_0x1ce4a5(0x22a)),logPatcher=require(a130_0x1ce4a5(0x168)),util=require(a130_0x1ce4a5(0x203)),{fileLogger}=require(a130_0x1ce4a5(0x1e9)),PerformanceTester=require(a130_0x1ce4a5(0x200)),{isFunction}=require(a130_0x1ce4a5(0x216)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require('../performance/constants'),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a130_0x1ce4a5(0x1da));exports['trace']=_0xce61a8=>{const _0x1eea4e=a130_0x1ce4a5;fileLogger[_0x1eea4e(0x162)]('['+new Date()['toISOString']()+'][\x20'+constants[_0x1eea4e(0x187)]+_0x1eea4e(0x1bf)+_0xce61a8);},exports[a130_0x1ce4a5(0x22d)]=_0x156ac3=>{const _0x447abd=a130_0x1ce4a5,_0x3ffd05={};_0x3ffd05[_0x447abd(0x1cc)]=function(_0x50b076,_0x11b3f7){return _0x50b076===_0x11b3f7;},_0x3ffd05[_0x447abd(0x264)]=_0x447abd(0x18c),_0x3ffd05[_0x447abd(0x24d)]=function(_0x3da102,_0x536aea){return _0x3da102===_0x536aea;};const _0x43aaf1=_0x3ffd05;fileLogger[_0x447abd(0x22d)]('['+new Date()[_0x447abd(0x1a4)]()+'][\x20'+constants[_0x447abd(0x187)]+'\x20]\x20'+_0x156ac3),(_0x43aaf1[_0x447abd(0x1cc)](process['env'][_0x447abd(0x1bb)],_0x43aaf1['XikGx'])||_0x43aaf1[_0x447abd(0x1cc)](process['env'][_0x447abd(0x1bb)],'1')||_0x43aaf1[_0x447abd(0x1cc)](process[_0x447abd(0x165)][_0x447abd(0x1ea)],_0x43aaf1['XikGx'])||_0x43aaf1[_0x447abd(0x24d)](process['env'][_0x447abd(0x1ea)],'1'))&&consoleHolder['log']('\x0a['+new Date()['toISOString']()+'][\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x447abd(0x1bf)+_0x156ac3+'\x0a');};const a130_0x13d218={};a130_0x13d218['keepAlive']=!![],a130_0x13d218[a130_0x1ce4a5(0x21f)]=0xea60,a130_0x13d218[a130_0x1ce4a5(0x17b)]=0x2,a130_0x13d218[a130_0x1ce4a5(0x1d5)]=0x2;function a130_0x5522(_0x3b88ae,_0x3d082d){const _0x55e801=a130_0x55e8();return a130_0x5522=function(_0x552247,_0x34c475){_0x552247=_0x552247-0x15b;let _0x2510d4=_0x55e801[_0x552247];return _0x2510d4;},a130_0x5522(_0x3b88ae,_0x3d082d);}const httpKeepAliveAgent=new http[(a130_0x1ce4a5(0x243))](a130_0x13d218),a130_0x36aa51={};function a130_0x55e8(){const _0x53204a=['length','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','\x20:\x20','sleep','emit','relativeTestFilePath','test','path','PathHelper','3652648BIcPRJ','isArray','bs:addLog:','vVxBq','JNMYZ','PLAYWRIGHT','buildTag','capabilities','Authorization','test_run_uuid','TEST_PLATFORM','CODECEPT','maxTotalSockets','AHqAb','browserstack_executor:\x20','modifyReqForTraceUpload','DWDgA','../../../src/bin/utils/constants','xbXMS','asyncAwaitNodeReq','TEST_REPORTING_BUILD_TAG','AKoUX','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','config','UIkpI','__cloud_provider___','nodeRequest','parseFileNames','evDFS','BROWSERSTACK_RERUN_TESTS','O11yHashedID','cnVrL','../logger','BROWSERSTACK_OBSERVABILITY_DEBUG','hostname','stringify','umKrr','lKcMn','err','BROWSERSTACK_TEST_OBSERVABILITY_YML','lQXJf','TEST_OBSERVABILITY_BUILD_TAG','HBjMN','printBuildLink','default','30026LaHMSO','agent','ajYXh','StIFo','bs:addPlatformDetails:','git-repo-info','now','ZhlZT','bXjsB','object','../performance/performance-tester','OS\x20X','kycBq','util','undefined','WWTKf','PdgVp','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','error','BROWSERSTACK_TESTHUB_JWT','IVHWT','JnmiF','BfgkX','getDefaultHeaders','FzTzO','getObservabilityLinkedProductName','ATS_HUB_URL_REGEX','getPackageVersion','@playwright/test','removeAnsiColors','aRdvi','GmrTf','lodash','../../bin/v2/browserstackCLI','match','platform','StvHQ','[%s][\x20','UGweT','HUB_URL_REGEX','startsWith','timeout','4059OrfsVO','https','Rrolb','app','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','xfxQz','trim','eFhZC','Linux','Odpce','../../bin/utils/constants','getSyncScript','getPlatform','debug','eYuUd','JEST','Qgcmd','extractValuesWithRegexKeyMatch','sIwUc','FYBpA','mPgKK','toString','BvRri','relative','lQjkT','json','buildLogger','hcsGS','BROWSERSTACK_TEST_REPORTING','bbUzR','wEcua','info','UjUND','darwin','uhZtF','Agent','stack','split','6epoUnq','Uploading\x20trace\x20logs\x20to:\x20','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','then','platformVersion','mNOgP','KGHFM','DDnQh','OPfzs','5vxqUZH','map','catch','serJn','9248208YJemFs','win32','brXcb','getBrowserName','ObservabilitySync:','cwd','\x20test\x20instance\x20:\x20','2510ovLOEF','GatBy','./constants','5617554FpPJGK','^CUSTOM_TAG_\x5cd+$','includes','uzSLp','LCNCq','getSession','shouldReRunObservabilityTests','XikGx','GPTpr','TimeoutError','bstack:options','DRVdm','release','XIwpA','vOsxl','5375377VbXJvZ','CChIJ','dIJYL','uRWeR','isInternalHook','3GtEnQZ','PDukD','AyMQC','failureData','getos','TEST_ATTACHMENT','filter','0|5|4|3|1|2','fileName','jkGzs','dNxFs','Jobcv','silly','qWYCp','host','env','app-automate','body','../../bin/utils/logPatcher','push','headers','jest','Error\x20in\x20getting\x20Linux\x20Details','format','psGLL','Error\x20in\x20importing\x20windows-release\x20','map_','isUndefined','getFrameworkVersion','rQrwb','XeHlk','VAQDQ','jwQfB','BS_TESTOPS_BUILD_HASHED_ID','codeceptjs','join','Test\x20timeout\x20of','maxSockets','patchConsoleLogger','DtXbl','prefix','X-BSTACK-TESTOPS','url','mocha','occYJ','FTlql','keepAlive','windows-release','mnPaB','TEST_REPORTING_ANALYTICS','sendPlatformDetails','keys','linux','ePwrl','true','AFNnW','Yufmk','../helper','application/json','browserstack','hkuDd','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','pid','UEJfp','getBuildTags','prefixTestPath','XlDeT','getPlatformVersion','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','/builds/','BROWSERSTACK_CONFIG_FILE_PATH','krpKy','Content-Type','measureWrapper','replace','Windows','getCapabilities','PygoR','toISOString','MOCHA','iGHsk','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','local_grid','message','isTestObservabilitySession','forEach','data','CUSTOM_TAG','parse','backtrace','O11Y_URL','25228577THQLhF','unknown_grid','spy','aQkuD','jMplo','getFailureType','Visit\x20','logs','../../helpers/request-spy','addRequestSpy','BROWSERSTACK_TEST_REPORTING_DEBUG','rootDir','kFSGO','fromEntries','\x20]\x20'];a130_0x55e8=function(){return _0x53204a;};return a130_0x55e8();}a130_0x36aa51['keepAlive']=!![],a130_0x36aa51[a130_0x1ce4a5(0x21f)]=0xea60,a130_0x36aa51[a130_0x1ce4a5(0x17b)]=0x2,a130_0x36aa51['maxTotalSockets']=0x2;const httpsKeepAliveAgent=new https[(a130_0x1ce4a5(0x243))](a130_0x36aa51),a130_0x1a0705={};a130_0x1a0705[a130_0x1ce4a5(0x184)]=!![],a130_0x1a0705[a130_0x1ce4a5(0x21f)]=0xea60,a130_0x1a0705[a130_0x1ce4a5(0x17b)]=0x2,a130_0x1a0705[a130_0x1ce4a5(0x1d5)]=0x2;const httpScreenshotsKeepAliveAgent=new http['Agent'](a130_0x1a0705),a130_0x1fb6bd={};a130_0x1fb6bd[a130_0x1ce4a5(0x184)]=!![],a130_0x1fb6bd[a130_0x1ce4a5(0x21f)]=0xea60,a130_0x1fb6bd[a130_0x1ce4a5(0x17b)]=0x2,a130_0x1fb6bd[a130_0x1ce4a5(0x1d5)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a130_0x1ce4a5(0x243))](a130_0x1fb6bd);exports[a130_0x1ce4a5(0x263)]=()=>{const _0x25f5eb=a130_0x1ce4a5,_0x55920b={};_0x55920b[_0x25f5eb(0x234)]=function(_0x1f3c60,_0x2ba66f){return _0x1f3c60!==_0x2ba66f;},_0x55920b[_0x25f5eb(0x1cd)]='null';const _0x407799=_0x55920b;return process['env'][_0x25f5eb(0x1e6)]&&_0x407799[_0x25f5eb(0x234)](process[_0x25f5eb(0x165)]['BROWSERSTACK_RERUN_TESTS'],_0x407799['JNMYZ'])?!![]:![];},exports[a130_0x1ce4a5(0x1aa)]=()=>{const _0x23cc43=a130_0x1ce4a5,_0x386fb5={};_0x386fb5['LCNCq']=function(_0x338d1f,_0x52a581){return _0x338d1f===_0x52a581;},_0x386fb5[_0x23cc43(0x222)]='true';const _0x53f66e=_0x386fb5;let _0x5c36c3=!![];return process[_0x23cc43(0x165)][_0x23cc43(0x1f0)]&&(_0x5c36c3=_0x53f66e['LCNCq'](process[_0x23cc43(0x165)][_0x23cc43(0x1f0)],_0x53f66e[_0x23cc43(0x222)])),process[_0x23cc43(0x165)]['BROWSERSTACK_TEST_OBSERVABILITY']&&(_0x5c36c3=_0x53f66e['LCNCq'](process['env']['BROWSERSTACK_TEST_OBSERVABILITY'],_0x53f66e['Rrolb'])),process['env'][_0x23cc43(0x23c)]&&(_0x5c36c3=_0x53f66e[_0x23cc43(0x261)](process[_0x23cc43(0x165)]['BROWSERSTACK_TEST_REPORTING'],_0x53f66e[_0x23cc43(0x222)])),_0x5c36c3;},exports[a130_0x1ce4a5(0x1e4)]=_0x2a0aec=>{const _0x127ea3=a130_0x1ce4a5;if(bsSetupHelper[_0x127ea3(0x171)](_0x2a0aec))return undefined;try{return _0x2a0aec['trim']()[_0x127ea3(0x245)](',');}catch(_0x14939c){return undefined;}},exports[a130_0x1ce4a5(0x1f4)]=()=>{const _0x434889=a130_0x1ce4a5,_0x3bdd92={'Jobcv':function(_0x2502c6,_0x17848a){return _0x2502c6(_0x17848a);},'FYBpA':_0x434889(0x217),'occYJ':function(_0xd0716d,_0xf0f133){return _0xd0716d!==_0xf0f133;},'dIJYL':'null','jMplo':_0x434889(0x204)};return PerformanceTester[_0x434889(0x19f)](PerformanceO11yEvents['PRINT_BUILDLINK'],async()=>{const _0x173ac1=_0x434889;try{const _0x43f0b0=_0x3bdd92[_0x173ac1(0x161)](require,_0x3bdd92[_0x173ac1(0x233)]);if(_0x43f0b0[_0x173ac1(0x1e7)]){const _0x51f277=_0x173ac1(0x1b7)+O11Y_URL+_0x173ac1(0x19b)+_0x43f0b0['O11yHashedID']+_0x173ac1(0x193);buildLogger[_0x173ac1(0x23f)](_0x51f277);return;}if(process[_0x173ac1(0x165)][_0x173ac1(0x177)]&&_0x3bdd92[_0x173ac1(0x182)](process[_0x173ac1(0x165)][_0x173ac1(0x177)],_0x3bdd92[_0x173ac1(0x26e)])&&_0x3bdd92[_0x173ac1(0x182)](process[_0x173ac1(0x165)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x3bdd92[_0x173ac1(0x1b5)])){const _0xfd2b65='Visit\x20'+constants[_0x173ac1(0x1b0)]+'/builds/'+process['env'][_0x173ac1(0x177)]+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a';buildLogger['info'](_0xfd2b65);}}catch(_0x2c81de){logger['error'](util[_0x173ac1(0x16d)](_0x173ac1(0x21b)+constants[_0x173ac1(0x187)]+'\x20]\x20Build\x20Not\x20Found\x20%s',new Date()['toISOString'](),_0x2c81de[_0x173ac1(0x244)]||_0x2c81de['message']||_0x2c81de));}})();},exports[a130_0x1ce4a5(0x1b6)]=_0x5cdc72=>{const _0x5880ad=a130_0x1ce4a5,_0x1774d1={};_0x1774d1['IZjwK']='AssertionError',_0x1774d1[_0x5880ad(0x20e)]=_0x5880ad(0x17a),_0x1774d1['lQXJf']=_0x5880ad(0x266),_0x1774d1[_0x5880ad(0x20b)]='UnhandledError';const _0x13ce90=_0x1774d1;if(!_0x5cdc72)return null;const _0xe08974=_0x5cdc72[_0x5880ad(0x235)]();if(_0xe08974[_0x5880ad(0x218)](/AssertionError/))return _0x13ce90['IZjwK'];if(_0xe08974[_0x5880ad(0x218)](/TimeoutError/)||_0xe08974[_0x5880ad(0x21e)](_0x13ce90[_0x5880ad(0x20e)])||_0xe08974[_0x5880ad(0x218)](/Timeout.*exceeded/i))return _0x13ce90[_0x5880ad(0x1f1)];return _0x13ce90[_0x5880ad(0x20b)];},exports[a130_0x1ce4a5(0x172)]=_0x59e105=>{const _0x35184c=a130_0x1ce4a5,_0x35313d={};_0x35313d[_0x35184c(0x23d)]=_0x35184c(0x181),_0x35313d[_0x35184c(0x26d)]=_0x35184c(0x212),_0x35313d[_0x35184c(0x173)]=_0x35184c(0x178),_0x35313d[_0x35184c(0x26f)]=_0x35184c(0x16b),_0x35313d[_0x35184c(0x1f9)]='@cucumber/cucumber';const _0x1aad29=_0x35313d;let _0x3dd0dc=null;switch(_0x59e105){case FRAMEWORKS[_0x35184c(0x1a5)]:_0x3dd0dc=bsSetupHelper['getPackageVersion'](_0x1aad29[_0x35184c(0x23d)]);break;case FRAMEWORKS['PLAYWRIGHT']:_0x3dd0dc=bsSetupHelper[_0x35184c(0x211)](_0x1aad29[_0x35184c(0x26d)]);break;case FRAMEWORKS[_0x35184c(0x1d4)]:case FRAMEWORKS['CODECEPT_CUCUMBER']:_0x3dd0dc=bsSetupHelper[_0x35184c(0x211)](_0x1aad29['rQrwb']);break;case FRAMEWORKS[_0x35184c(0x22f)]:_0x3dd0dc=bsSetupHelper['getPackageVersion'](_0x1aad29[_0x35184c(0x26f)]);break;case FRAMEWORKS['CUCUMBER']:_0x3dd0dc=bsSetupHelper[_0x35184c(0x211)](_0x1aad29[_0x35184c(0x1f9)]);break;default:break;}return _0x3dd0dc;},exports['getBrowserStackConfig']=_0xfaaaaf=>{const _0x4bbf9d=a130_0x1ce4a5;let _0x1d6635=null;switch(_0xfaaaaf){case FRAMEWORKS[_0x4bbf9d(0x1ce)]:_0x1d6635=process['env'][_0x4bbf9d(0x19c)];break;}if(!_0x1d6635)return;return bsSetupHelper['readConfig'](_0x1d6635,![]);},exports['getUserCredentials']=_0x277549=>{return{'username':bsSetupHelper['getUserName'](_0x277549),'accessKey':bsSetupHelper['getAccessKey'](_0x277549)};},exports[a130_0x1ce4a5(0x1d8)]=(_0x3bdb49,_0x1396b2)=>{const _0x47a5e2=a130_0x1ce4a5,_0x591845={};_0x591845['iGHsk']=_0x47a5e2(0x15d),_0x591845[_0x47a5e2(0x25b)]='LogCreated',_0x591845[_0x47a5e2(0x26b)]=_0x47a5e2(0x15b);const _0x48c386=_0x591845,_0x3f20f1=_0x48c386[_0x47a5e2(0x1a6)][_0x47a5e2(0x245)]('|');let _0x16db2e=0x0;while(!![]){switch(_0x3f20f1[_0x16db2e++]){case'0':if(!_0x3bdb49['body']||!Array[_0x47a5e2(0x1ca)](_0x3bdb49['body']))return;continue;case'1':delete _0x3bdb49[_0x47a5e2(0x239)];continue;case'2':delete _0x1396b2[_0x47a5e2(0x16a)];continue;case'3':delete _0x3bdb49[_0x47a5e2(0x167)];continue;case'4':_0x3bdb49['formData']={'data':_0x3bdb49['body'][0x0]['logs'][0x0][_0x47a5e2(0x1ac)],'test_run_uuid':_0x3bdb49[_0x47a5e2(0x167)][0x0][_0x47a5e2(0x1b8)][0x0][_0x47a5e2(0x1d2)],'event_type':_0x48c386[_0x47a5e2(0x25b)],'kind':_0x48c386['vOsxl'],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x47a5e2(0x1a4)](),'fileName':_0x3bdb49[_0x47a5e2(0x167)][0x0]['logs'][0x0][_0x47a5e2(0x15e)]};continue;case'5':if(!_0x3bdb49[_0x47a5e2(0x167)][0x0]||!_0x3bdb49[_0x47a5e2(0x167)][0x0]['logs']||!_0x3bdb49[_0x47a5e2(0x167)][0x0][_0x47a5e2(0x1b8)][_0x47a5e2(0x1c0)])return;continue;}break;}},exports[a130_0x1ce4a5(0x1dc)]=async(_0x5eefb9,_0x45c9d3,_0x24bbea,_0x2115db,_0x215a76=!![])=>{const _0x27f239=a130_0x1ce4a5,_0x3abbed={};_0x3abbed[_0x27f239(0x18e)]=function(_0x5150c9,_0x22e109){return _0x5150c9===_0x22e109;},_0x3abbed[_0x27f239(0x255)]=_0x27f239(0x19e),_0x3abbed[_0x27f239(0x268)]=_0x27f239(0x190),_0x3abbed[_0x27f239(0x1fd)]=_0x27f239(0x221),_0x3abbed[_0x27f239(0x229)]=function(_0xca2eff,_0x574b65){return _0xca2eff===_0x574b65;},_0x3abbed[_0x27f239(0x1db)]=function(_0xdfa365,_0xfbc8cf){return _0xdfa365!==_0xfbc8cf;},_0x3abbed[_0x27f239(0x18b)]=function(_0x4134ea,_0x2aa84f){return _0x4134ea!==_0x2aa84f;},_0x3abbed[_0x27f239(0x265)]=_0x27f239(0x1ff),_0x3abbed[_0x27f239(0x21a)]='Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s';const _0x120cef=_0x3abbed,_0x4147b1={..._0x2115db,...{'method':_0x5eefb9,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x45c9d3,'body':_0x24bbea,'json':_0x120cef[_0x27f239(0x18e)](_0x2115db[_0x27f239(0x16a)][_0x120cef[_0x27f239(0x255)]],_0x120cef[_0x27f239(0x268)]),'agent':API_URL[_0x27f239(0x25f)](_0x120cef[_0x27f239(0x1fd)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x120cef[_0x27f239(0x229)](_0x45c9d3,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x4147b1[_0x27f239(0x1f7)]=API_URL['includes'](_0x120cef[_0x27f239(0x1fd)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x27f239(0x1d8)](_0x4147b1,_0x2115db),logger[_0x27f239(0x22d)](_0x27f239(0x247)+_0x4147b1[_0x27f239(0x180)]));try{const {statusCode:_0x5e8f7d,body:_0x2d2b35}=await bsSetupHelper[_0x27f239(0x1e3)](_0x5eefb9,_0x45c9d3,_0x4147b1,_0x2115db,_0x4147b1[_0x27f239(0x180)]);if(_0x120cef[_0x27f239(0x1db)](_0x5e8f7d,0xc8))return _0x2d2b35?_0x2d2b35:_0x27f239(0x1df)+_0x5e8f7d;let _0x4c52d0=_0x2d2b35;if(_0x215a76)try{_0x120cef[_0x27f239(0x18b)](typeof _0x2d2b35,_0x120cef[_0x27f239(0x265)])&&(_0x4c52d0=JSON[_0x27f239(0x1ae)](_0x2d2b35));}catch(_0x29479a){logger[_0x27f239(0x208)](_0x120cef[_0x27f239(0x21a)],_0x2d2b35,util['format'](_0x29479a));}const _0x22b8df={};return _0x22b8df[_0x27f239(0x1ac)]=_0x4c52d0,_0x22b8df;}catch(_0x5b9c58){logger[_0x27f239(0x208)](_0x27f239(0x19a)+util[_0x27f239(0x16d)](_0x5b9c58));throw _0x5b9c58;}},exports[a130_0x1ce4a5(0x1e3)]=(_0x134fe9,_0x459d7f,_0x40b9da,_0x7be91a,_0x24c1f5=!![])=>{const _0x44b05c=a130_0x1ce4a5,_0x422a0b={'WWTKf':function(_0x2e5a0d,_0x34132d){return _0x2e5a0d!==_0x34132d;},'bXjsB':function(_0x9897fb,_0x5f4d57){return _0x9897fb(_0x5f4d57);},'kFSGO':_0x44b05c(0x1ff),'serJn':function(_0xebf82,_0x5b7a70){return _0xebf82(_0x5b7a70);},'uzSLp':_0x44b05c(0x207),'UjUND':function(_0x5c326e,_0x366d29){return _0x5c326e===_0x366d29;},'Qgcmd':_0x44b05c(0x19e),'lQjkT':_0x44b05c(0x190),'xfxQz':_0x44b05c(0x221)};return new Promise((_0xca5a96,_0x50a829)=>{const _0x5bb3a7=_0x44b05c,_0x3aaf54={'XIwpA':function(_0x1cad16,_0x423d4c){return _0x422a0b['WWTKf'](_0x1cad16,_0x423d4c);},'XlDeT':function(_0x41feb7,_0x1ba4ed){return _0x422a0b['bXjsB'](_0x41feb7,_0x1ba4ed);},'umKrr':function(_0x29c91e,_0x171891){const _0x552096=a130_0x5522;return _0x422a0b[_0x552096(0x205)](_0x29c91e,_0x171891);},'eFhZC':_0x422a0b[_0x5bb3a7(0x1bd)],'lKcMn':function(_0x11e194,_0x16dfeb){const _0x5c3adc=_0x5bb3a7;return _0x422a0b[_0x5c3adc(0x252)](_0x11e194,_0x16dfeb);},'PdgVp':_0x422a0b[_0x5bb3a7(0x260)],'BfgkX':function(_0x1a529d,_0x3bd7fb){const _0x47e755=_0x5bb3a7;return _0x422a0b[_0x47e755(0x1fe)](_0x1a529d,_0x3bd7fb);}},_0x3af1f6={..._0x7be91a,...{'method':_0x134fe9,'url':API_URL+'/'+_0x459d7f,'body':_0x40b9da,'json':_0x422a0b[_0x5bb3a7(0x240)](_0x7be91a[_0x5bb3a7(0x16a)][_0x422a0b[_0x5bb3a7(0x230)]],_0x422a0b[_0x5bb3a7(0x238)]),'agent':API_URL[_0x5bb3a7(0x25f)](_0x422a0b[_0x5bb3a7(0x225)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x422a0b['UjUND'](_0x459d7f,SCREENSHOT_ENDPOINT)&&(_0x3af1f6[_0x5bb3a7(0x1f7)]=API_URL['includes'](_0x422a0b['xfxQz'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper['nodeRequest'](_0x134fe9,_0x459d7f,_0x3af1f6,_0x7be91a,API_URL)[_0x5bb3a7(0x249)](({statusCode:_0x52396b,body:_0x51dce7})=>{const _0x541510=_0x5bb3a7;if(_0x3aaf54[_0x541510(0x26a)](_0x52396b,0xc8))_0x3aaf54[_0x541510(0x198)](_0x50a829,_0x51dce7?_0x51dce7:_0x541510(0x1df)+_0x52396b);else{if(_0x24c1f5)try{_0x3aaf54[_0x541510(0x1ed)](typeof _0x51dce7,_0x3aaf54[_0x541510(0x227)])&&(_0x51dce7=JSON[_0x541510(0x1ae)](_0x51dce7));}catch(_0x38d2a9){_0x3aaf54[_0x541510(0x1ee)](_0x50a829,_0x3aaf54[_0x541510(0x206)]);return;}const _0x2691d5={};_0x2691d5[_0x541510(0x1ac)]=_0x51dce7,_0x3aaf54[_0x541510(0x1ee)](_0xca5a96,_0x2691d5);}})[_0x5bb3a7(0x251)](_0x31162c=>{const _0x348394=_0x5bb3a7;_0x31162c&&_0x3aaf54[_0x348394(0x20c)](_0x50a829,_0x31162c);});});},exports[a130_0x1ce4a5(0x196)]=_0x2cfbf8=>{const _0x18bf7e=a130_0x1ce4a5;if(process[_0x18bf7e(0x165)][_0x18bf7e(0x1dd)])return process['env'][_0x18bf7e(0x1dd)][_0x18bf7e(0x245)](',');if(process['env'][_0x18bf7e(0x1f2)])return process[_0x18bf7e(0x165)][_0x18bf7e(0x1f2)][_0x18bf7e(0x245)](',');if(_0x2cfbf8[_0x18bf7e(0x1cf)])return _0x2cfbf8[_0x18bf7e(0x1cf)];return[];},exports[a130_0x1ce4a5(0x20d)]=(_0x15d144=!![])=>{const _0x5984b0=a130_0x1ce4a5,_0x30c864={};_0x30c864[_0x5984b0(0x20a)]='application/json',_0x30c864[_0x5984b0(0x183)]='true',_0x30c864[_0x5984b0(0x19d)]=_0x5984b0(0x1d1);const _0x2a5364=_0x30c864,_0x3bc3e1={};_0x3bc3e1[_0x5984b0(0x19e)]=_0x2a5364[_0x5984b0(0x20a)],_0x3bc3e1[_0x5984b0(0x17f)]=_0x2a5364[_0x5984b0(0x183)];const _0x80c208=_0x3bc3e1;return _0x15d144&&process[_0x5984b0(0x165)][_0x5984b0(0x209)]&&(_0x80c208[_0x2a5364['krpKy']]='Bearer\x20'+process[_0x5984b0(0x165)][_0x5984b0(0x209)]),_0x80c208;},exports[a130_0x1ce4a5(0x231)]=_0x22a484=>{const _0x1f24dd=a130_0x1ce4a5,_0x44a9a9={};_0x44a9a9[_0x1f24dd(0x1e8)]=_0x1f24dd(0x25e);const _0x387109=_0x44a9a9,_0xb9f89=[],_0xc10b00=new RegExp(_0x387109[_0x1f24dd(0x1e8)],'i');return Object[_0x1f24dd(0x189)](_0x22a484)[_0x1f24dd(0x15c)](_0x425d71=>_0xc10b00[_0x1f24dd(0x1c6)](_0x425d71))[_0x1f24dd(0x1ab)](_0x54e3e3=>_0xb9f89[_0x1f24dd(0x169)](_0x22a484[_0x54e3e3])),_0xb9f89;},exports['getCustomTags']=_0x4ab3e0=>{const _0x558c30=a130_0x1ce4a5,_0x1a335f=[],_0x472c8e=_0x4ab3e0['customTag']||process[_0x558c30(0x165)][_0x558c30(0x1ad)];return _0x472c8e&&_0x1a335f[_0x558c30(0x169)](_0x472c8e),_0x1a335f[_0x558c30(0x169)](...exports[_0x558c30(0x231)](process['env'])),_0x1a335f[_0x558c30(0x169)](...exports[_0x558c30(0x231)](_0x4ab3e0)),_0x1a335f;},exports['removeAnsiColors']=_0x30f091=>{const _0x47e678=a130_0x1ce4a5;if(!_0x30f091)return'';return _0x30f091[_0x47e678(0x1a0)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a130_0x1ce4a5(0x1c3)]=(_0x188216=0x64)=>new Promise(_0x131fef=>setTimeout(_0x131fef,_0x188216));const getPlatformName=()=>{const _0x25cfb6=a130_0x1ce4a5,_0x8655d4={};_0x8655d4['mnPaB']=function(_0x1ff568,_0x5b122){return _0x1ff568===_0x5b122;},_0x8655d4[_0x25cfb6(0x1a3)]=_0x25cfb6(0x254),_0x8655d4[_0x25cfb6(0x176)]=_0x25cfb6(0x1a1),_0x8655d4[_0x25cfb6(0x174)]=_0x25cfb6(0x241),_0x8655d4[_0x25cfb6(0x195)]=_0x25cfb6(0x201),_0x8655d4[_0x25cfb6(0x1d9)]=function(_0x4d2623,_0x5425fd){return _0x4d2623===_0x5425fd;},_0x8655d4['dNxFs']=_0x25cfb6(0x18a),_0x8655d4['OZTzH']='Linux',_0x8655d4[_0x25cfb6(0x1d6)]='Unknown';const _0x5a79f4=_0x8655d4;if(_0x5a79f4[_0x25cfb6(0x186)](process[_0x25cfb6(0x219)],_0x5a79f4['PygoR']))return _0x5a79f4[_0x25cfb6(0x176)];if(_0x5a79f4['mnPaB'](process[_0x25cfb6(0x219)],_0x5a79f4['XeHlk']))return _0x5a79f4['UEJfp'];if(_0x5a79f4[_0x25cfb6(0x1d9)](process['platform'],_0x5a79f4[_0x25cfb6(0x160)]))return _0x5a79f4['OZTzH'];return _0x5a79f4[_0x25cfb6(0x1d6)];},getMacOSVersion=()=>{const _0x41b05f=a130_0x1ce4a5,_0x180e41={};_0x180e41['PDukD']=_0x41b05f(0x1c1);const _0x27eca1=_0x180e41;return child_process['execSync'](_0x27eca1[_0x41b05f(0x272)])[_0x41b05f(0x235)]()[_0x41b05f(0x226)]();},getLinuxDetails=()=>{const _0x34430e={'UGweT':function(_0x4b85e2,_0x38fd83){return _0x4b85e2(_0x38fd83);}};return new Promise((_0x3f636b,_0x37ac88)=>{const _0x1cf0aa=a130_0x5522,_0x57e105={'vKLqM':function(_0x54b30d,_0x525991){const _0x3f9937=a130_0x5522;return _0x34430e[_0x3f9937(0x21c)](_0x54b30d,_0x525991);},'exVPx':function(_0x4c3b72,_0x9e9473){const _0x56c884=a130_0x5522;return _0x34430e[_0x56c884(0x21c)](_0x4c3b72,_0x9e9473);}};_0x34430e[_0x1cf0aa(0x21c)](getos,(_0x47cacb,_0x1b993b)=>{if(_0x47cacb)return _0x57e105['vKLqM'](_0x37ac88,_0x47cacb);_0x57e105['exVPx'](_0x3f636b,_0x1b993b);});});};exports['getPlatformDetails']=async()=>{const _0x51d10c=a130_0x1ce4a5,_0x1682ae={'OPfzs':function(_0x139b5a){return _0x139b5a();},'qWYCp':_0x51d10c(0x201),'UOzTU':_0x51d10c(0x1a1),'RiPda':_0x51d10c(0x185),'sIwUc':function(_0xfde34c){return _0xfde34c();},'hkuDd':_0x51d10c(0x228),'AKoUX':function(_0x374abd){return _0x374abd();},'VaRkV':_0x51d10c(0x16c)};let _0x3ad288=_0x1682ae[_0x51d10c(0x24e)](getPlatformName),_0x24251e=os[_0x51d10c(0x269)]()[_0x51d10c(0x235)]();switch(_0x3ad288){case _0x1682ae[_0x51d10c(0x163)]:_0x24251e=_0x1682ae[_0x51d10c(0x24e)](getMacOSVersion);break;case _0x1682ae['UOzTU']:try{const _0x2500d2=(await import(_0x1682ae['RiPda']))[_0x51d10c(0x1f5)];_0x24251e=_0x1682ae[_0x51d10c(0x232)](_0x2500d2);}catch(_0x40b130){exports[_0x51d10c(0x22d)](_0x51d10c(0x16f)+_0x40b130[_0x51d10c(0x235)]());}break;case _0x1682ae[_0x51d10c(0x192)]:try{const _0x380d07=await _0x1682ae[_0x51d10c(0x1de)](getLinuxDetails);_0x380d07['dist']&&(_0x3ad288=_0x380d07['dist']),_0x380d07['release']&&(_0x24251e=_0x380d07[_0x51d10c(0x269)][_0x51d10c(0x235)]());}catch(_0xaca562){exports['debug'](_0x1682ae['VaRkV']);}break;default:break;}const _0x1fac60={};return _0x1fac60['platformName']=_0x3ad288,_0x1fac60[_0x51d10c(0x24a)]=_0x24251e,_0x1fac60;},exports[a130_0x1ce4a5(0x274)]=(_0xfdcf76,_0x170777)=>{const _0x8394b2=a130_0x1ce4a5,_0x42f031={};_0x42f031[_0x8394b2(0x15f)]=function(_0x49d63e,_0x1ee850){return _0x49d63e===_0x1ee850;},_0x42f031['IwLJQ']=_0x8394b2(0x1c6),_0x42f031['VAQDQ']=_0x8394b2(0x1ef);const _0x227d87=_0x42f031;if(!_0xfdcf76)return[];try{if(_0x227d87[_0x8394b2(0x15f)](_0x170777,_0x227d87['IwLJQ']))return _0xfdcf76[_0x8394b2(0x250)](_0x1da132=>{const _0x14e5a6=_0x8394b2,{stack:_0x313205,..._0x2e98d4}=_0x1da132,_0x3ff66a=Object['keys'](_0x2e98d4)[_0x14e5a6(0x250)](_0x159378=>{return _0x159378+':\x20'+_0x2e98d4[_0x159378];}),_0x2a5545=_0x313205?exports['removeAnsiColors'](_0x313205)[_0x14e5a6(0x245)](/\r?\n/):[exports[_0x14e5a6(0x213)](_0x1da132[_0x14e5a6(0x1a9)])],_0x35f601={};return _0x35f601[_0x14e5a6(0x1af)]=_0x2a5545,_0x35f601['expanded']=_0x3ff66a,_0x35f601;});else{if(_0x227d87[_0x8394b2(0x15f)](_0x170777,_0x227d87[_0x8394b2(0x175)])){const _0x367ed2=[],_0x5dedbd=[];return Object[_0x8394b2(0x189)](_0xfdcf76)['forEach'](_0x4af521=>{const _0x105946=_0x8394b2;try{_0x5dedbd['push'](_0x4af521+':\x20'+_0xfdcf76[_0x4af521]);}catch(_0x33f6ae){exports['debug'](_0x105946(0x248)+_0x33f6ae[_0x105946(0x1a9)]+_0x105946(0x1c2)+_0x33f6ae['backtrace']);}}),_0x367ed2[_0x8394b2(0x169)]({'backtrace':exports[_0x8394b2(0x213)](_0xfdcf76['stack'])[_0x8394b2(0x245)](/\r?\n/),'expanded':_0x5dedbd}),_0x367ed2;}}return[];}catch(_0x16d5b3){exports[_0x8394b2(0x22d)](_0x8394b2(0x248)+_0x16d5b3[_0x8394b2(0x1a9)]+_0x8394b2(0x1c2)+_0x16d5b3[_0x8394b2(0x1af)]);}return[];};class PathHelper{constructor(_0x51a0f0,_0x2d48b3){const _0x5f5c55=a130_0x1ce4a5;this['config']=_0x51a0f0,this[_0x5f5c55(0x17e)]=_0x2d48b3;}[a130_0x1ce4a5(0x1c5)](_0x1024c7){const _0x43549d=a130_0x1ce4a5,_0x57df48=this[_0x43549d(0x1e0)][_0x43549d(0x258)]||this[_0x43549d(0x1e0)][_0x43549d(0x1bc)];return path[_0x43549d(0x237)](_0x57df48,_0x1024c7);}[a130_0x1ce4a5(0x197)](_0x356ffc){const _0xf7b03d=a130_0x1ce4a5,_0x22945a=this[_0xf7b03d(0x1c5)](_0x356ffc);return this[_0xf7b03d(0x17e)]?path[_0xf7b03d(0x179)](this['prefix'],_0x22945a):_0x22945a;}}exports[a130_0x1ce4a5(0x1c8)]=PathHelper,exports[a130_0x1ce4a5(0x1ba)]=(_0x16c730=!![])=>{const _0x4fc6c2=a130_0x1ce4a5,_0x1e3d87={};_0x1e3d87[_0x4fc6c2(0x202)]=function(_0x133c12,_0x4bcf2e){return _0x133c12===_0x4bcf2e;},_0x1e3d87['rwhRT']=_0x4fc6c2(0x17f),_0x1e3d87[_0x4fc6c2(0x214)]=_0x4fc6c2(0x18c),_0x1e3d87[_0x4fc6c2(0x1f8)]='HTTP',_0x1e3d87[_0x4fc6c2(0x215)]=_0x4fc6c2(0x191),_0x1e3d87['wEcua']=_0x4fc6c2(0x1a8);const _0x2dbdf3=_0x1e3d87;requestSpy[_0x4fc6c2(0x1b3)]((_0x544774,_0x1fe946)=>{const _0x28a577=_0x4fc6c2;_0x1fe946&&!(_0x1fe946[_0x28a577(0x16a)]&&_0x2dbdf3['kycBq'](_0x1fe946[_0x28a577(0x16a)][_0x2dbdf3['rwhRT']],_0x2dbdf3[_0x28a577(0x214)]))&&(_0x1fe946[_0x28a577(0x164)]=_0x1fe946[_0x28a577(0x1eb)],delete _0x1fe946[_0x28a577(0x1eb)],_0x16c730&&process[_0x28a577(0x1c4)](_0x28a577(0x1cb)+process[_0x28a577(0x194)],{'timestamp':new Date()[_0x28a577(0x1a4)](),'level':null,'message':null,'kind':_0x2dbdf3['ajYXh'],'http_response':_0x1fe946})),_0x1fe946&&(constants[_0x28a577(0x21d)][_0x28a577(0x1c6)](_0x1fe946[_0x28a577(0x164)])||constants[_0x28a577(0x210)][_0x28a577(0x1c6)](_0x1fe946[_0x28a577(0x164)]))?global[_0x28a577(0x1e2)]=_0x2dbdf3[_0x28a577(0x215)]:global[_0x28a577(0x1e2)]=_0x2dbdf3[_0x28a577(0x23e)];});},exports[a130_0x1ce4a5(0x17c)]=()=>{const _0x2365b4=a130_0x1ce4a5,_0x29dcea={'KGHFM':function(_0x1fa070,_0x1e3c49){return _0x1fa070(_0x1e3c49);}};console={},Object[_0x2365b4(0x189)](consoleHolder)[_0x2365b4(0x1ab)](_0x1541c9=>{const _0x584c91=_0x2365b4;_0x29dcea[_0x584c91(0x24c)](isFunction,consoleHolder[_0x1541c9])?console[_0x1541c9]=(..._0x2a1e64)=>{const _0x5aec47=_0x584c91;try{!Object[_0x5aec47(0x189)](BSTestOpsPatcher)[_0x5aec47(0x25f)](_0x1541c9)?consoleHolder[_0x1541c9](..._0x2a1e64):BSTestOpsPatcher[_0x1541c9](..._0x2a1e64);}catch(_0x1a727c){consoleHolder[_0x1541c9](..._0x2a1e64);}}:console[_0x1541c9]=consoleHolder[_0x1541c9];});},exports[a130_0x1ce4a5(0x22b)]=()=>a130_0x1ce4a5(0x1d7)+JSON[a130_0x1ce4a5(0x1ec)]({'action':'annotate','arguments':{'data':a130_0x1ce4a5(0x257)+Date[a130_0x1ce4a5(0x1fc)](),'level':'debug'}}),exports[a130_0x1ce4a5(0x20f)]=_0x50ec9f=>{const _0x3bc01e=a130_0x1ce4a5,_0x1c5aa3={};_0x1c5aa3[_0x3bc01e(0x22e)]=function(_0x1ddc71,_0x2e7b0c){return _0x1ddc71===_0x2e7b0c;},_0x1c5aa3[_0x3bc01e(0x23b)]=_0x3bc01e(0x191),_0x1c5aa3[_0x3bc01e(0x1b4)]='appium:app',_0x1c5aa3[_0x3bc01e(0x24b)]=_0x3bc01e(0x223),_0x1c5aa3[_0x3bc01e(0x1f3)]=function(_0x50e3e2,_0x108591){return _0x50e3e2>_0x108591;},_0x1c5aa3[_0x3bc01e(0x18d)]=_0x3bc01e(0x166),_0x1c5aa3[_0x3bc01e(0x273)]=_0x3bc01e(0x267),_0x1c5aa3['lJPll']='turboScaleGridDetails',_0x1c5aa3[_0x3bc01e(0x236)]='turboscale',_0x1c5aa3[_0x3bc01e(0x16e)]='automate';const _0x16b3df=_0x1c5aa3;let _0x5a1116=null;try{if(_0x16b3df[_0x3bc01e(0x22e)](global[_0x3bc01e(0x1e2)],_0x16b3df[_0x3bc01e(0x23b)])){if(_0x50ec9f[_0x16b3df[_0x3bc01e(0x1b4)]]||_0x50ec9f[_0x16b3df[_0x3bc01e(0x24b)]]||!bsSetupHelper[_0x3bc01e(0x171)](global[_0x3bc01e(0x1d0)])&&_0x16b3df[_0x3bc01e(0x1f3)](global['capabilities']['length'],0x0)&&(global[_0x3bc01e(0x1d0)][0x0][_0x16b3df[_0x3bc01e(0x24b)]]||global['capabilities'][0x0][_0x16b3df['aQkuD']]))_0x5a1116=_0x16b3df[_0x3bc01e(0x18d)];else _0x50ec9f[_0x16b3df['AyMQC']]&&_0x50ec9f[_0x16b3df[_0x3bc01e(0x273)]][_0x16b3df['lJPll']]?_0x5a1116=_0x16b3df[_0x3bc01e(0x236)]:_0x5a1116=_0x16b3df['psGLL'];}}catch(_0x47db58){exports[_0x3bc01e(0x22d)](_0x3bc01e(0x1a7)+constants[_0x3bc01e(0x187)]+_0x3bc01e(0x259)+_0x47db58);}return _0x5a1116;},exports[a130_0x1ce4a5(0x188)]=async(_0xdf36d1,_0x497947,_0x19401a=![])=>{const _0x5dc2ee=a130_0x1ce4a5,_0x2fa467={};_0x2fa467[_0x5dc2ee(0x1e5)]=function(_0x477327,_0x225f80){return _0x477327===_0x225f80;},_0x2fa467[_0x5dc2ee(0x1e1)]=_0x5dc2ee(0x191),_0x2fa467['uhZtF']=_0x5dc2ee(0x1b2),_0x2fa467['DtXbl']=_0x5dc2ee(0x1d3);const _0x2b0955=_0x2fa467;try{const _0x56270f=await _0xdf36d1[_0x5dc2ee(0x1a2)](),_0x2c34ad=await _0xdf36d1[_0x5dc2ee(0x262)](),_0x138533={},_0x9403fc=Object[_0x5dc2ee(0x1be)](_0x2c34ad[_0x5dc2ee(0x1a2)]()[_0x5dc2ee(0x170)]),_0x4bfb40={'product':exports[_0x5dc2ee(0x20f)](_0x9403fc),'capabilities':_0x9403fc,'platform':_0x56270f[_0x5dc2ee(0x22c)](),'platform_version':bsSetupHelper[_0x5dc2ee(0x199)](_0x2b0955['evDFS'](global[_0x5dc2ee(0x1e2)],_0x2b0955[_0x5dc2ee(0x1e1)])),'browser':_0x56270f[_0x5dc2ee(0x256)](),'browser_version':_0x56270f['getBrowserVersion'](),'session_id':_0x2c34ad['toJSON']()};global[_0x5dc2ee(0x1e2)]?_0x138533[global[_0x5dc2ee(0x1e2)]]=_0x4bfb40:_0x138533[_0x2b0955[_0x5dc2ee(0x242)]]=_0x4bfb40;if(_0x19401a)return _0x138533;process[_0x5dc2ee(0x1c4)](_0x5dc2ee(0x1fa)+process[_0x5dc2ee(0x194)],{'timestamp':new Date()[_0x5dc2ee(0x1a4)](),'level':null,'message':null,'kind':_0x2b0955[_0x5dc2ee(0x17d)],'http_response':_0x138533,'uuid':_0x497947});}catch(_0x23b637){exports['debug'](_0x5dc2ee(0x224)+_0x23b637);}},exports[a130_0x1ce4a5(0x270)]=_0xf78ac1=>{const _0x56d0cb=a130_0x1ce4a5;return _0xf78ac1&&_0xf78ac1[_0x56d0cb(0x235)]()[_0x56d0cb(0x218)](/browserstack internal helper hook/);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a131_0x11bead=a131_0x22b7;function a131_0x22b7(_0x4f9f46,_0x18881f){var _0x50dc66=a131_0x50dc();return a131_0x22b7=function(_0x22b733,_0x2584de){_0x22b733=_0x22b733-0x1f0;var _0x392f7b=_0x50dc66[_0x22b733];return _0x392f7b;},a131_0x22b7(_0x4f9f46,_0x18881f);}(function(_0x101124,_0x461215){var _0x2cc7f5=a131_0x22b7,_0x5cd635=_0x101124();while(!![]){try{var _0x3bae35=parseInt(_0x2cc7f5(0x1fa))/0x1*(parseInt(_0x2cc7f5(0x1f1))/0x2)+-parseInt(_0x2cc7f5(0x1fd))/0x3*(parseInt(_0x2cc7f5(0x1f9))/0x4)+-parseInt(_0x2cc7f5(0x1fe))/0x5*(-parseInt(_0x2cc7f5(0x1fc))/0x6)+parseInt(_0x2cc7f5(0x1ff))/0x7+parseInt(_0x2cc7f5(0x1f6))/0x8*(parseInt(_0x2cc7f5(0x1f7))/0x9)+-parseInt(_0x2cc7f5(0x200))/0xa+-parseInt(_0x2cc7f5(0x1f5))/0xb;if(_0x3bae35===_0x461215)break;else _0x5cd635['push'](_0x5cd635['shift']());}catch(_0x4d8f2f){_0x5cd635['push'](_0x5cd635['shift']());}}}(a131_0x50dc,0xdac57));var a131_0x36c015={};function a131_0x50dc(){var _0x126b63=['78093wNaLwz','ORCHESTRATION_API_URL','68524AYIVje','1FfCeGF','testorchestration/api/v1/failed-tests','5748qeuOSd','165BmUHdm','2845ZKLWQi','11519382yHFzQB','3540340rQAiij','https://collector-observability.browserstack.com','1402462LdkGoF','exports','FAILED_TESTS_ENDPOINT','SPLIT_TESTS_ENDPOINT','9509456BabIyy','152bCjqEm'];a131_0x50dc=function(){return _0x126b63;};return a131_0x50dc();}a131_0x36c015[a131_0x11bead(0x1f8)]=a131_0x11bead(0x1f0),a131_0x36c015[a131_0x11bead(0x1f3)]=a131_0x11bead(0x1fb),a131_0x36c015[a131_0x11bead(0x1f4)]='testorchestration/api/v1/split-tests',module[a131_0x11bead(0x1f2)]=a131_0x36c015;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a132_0x57bd11=a132_0x7799;(function(_0x89e739,_0x569aa3){const _0x4cd8f8=a132_0x7799,_0x1c84de=_0x89e739();while(!![]){try{const _0x1afffd=parseInt(_0x4cd8f8(0x172))/0x1+parseInt(_0x4cd8f8(0x17c))/0x2*(parseInt(_0x4cd8f8(0x183))/0x3)+parseInt(_0x4cd8f8(0x16d))/0x4+parseInt(_0x4cd8f8(0x1b2))/0x5+parseInt(_0x4cd8f8(0x1ac))/0x6*(parseInt(_0x4cd8f8(0x143))/0x7)+parseInt(_0x4cd8f8(0x142))/0x8+-parseInt(_0x4cd8f8(0x166))/0x9;if(_0x1afffd===_0x569aa3)break;else _0x1c84de['push'](_0x1c84de['shift']());}catch(_0x2647bb){_0x1c84de['push'](_0x1c84de['shift']());}}}(a132_0x5ed5,0x6e70d));function a132_0x5ed5(){const _0x5ef736=['235617akBhYY','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','dnQXf','jJZPN','sRbDD','onTestDone','error','qPigV','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','stack',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','newState','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','BROWSERSTACK_BUILD_RUN_IDENTIFIER','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','projectName','_CI]\x20Error\x20sending\x20failed\x20test\x20','length','failureThresholdCount','stopPolling','failedTests','VoIXr','tKbxz','startPolling','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','hcPeO','../logger','XzuJx','failed','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','dHnUk','reportedFailuresToAPI','_Local]\x20State\x20initialized\x20from\x20file.','BROWSERSTACK_TOTAL_NODE_COUNT','WwnXX','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','BROWSERSTACK_NODE_INDEX','stateFilePath','_CI]\x20Error\x20during\x20polling\x20logic:\x20','5190iuPSTX','_fetchAPIFailedCount','buildRunIdentifier','_sendFailedTestsToAPI','_CI]\x20API\x20failed\x20count\x20updated:\x20','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','2106670spjQyO','naomp','FpBgD','dnFbr','sbgTB','aTqKn','\x0aStack:\x20','winstonLogger',',\x20CI\x20Mode:\x20','isCIMode','pollingInterval','./requestUtils','_getDefaultState','lastAPIFailedCount','exports','QclcB','failFastState.json','catch','putFailedTests','failFastState.lock','3690544WdyCcH','2471jbcgAh','recordTestResult','_pollFailedTests','size','env','FailFastManager','info','existsSync','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','WUcAE','failFastActiveMarkerPath','ptRTW','warn','IARRF','from','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20',',\x20threshold:\x20','readState','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','\x20to\x20API:\x20','\x20(was\x20','writeState','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','eMsow','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','XJrXL','join','uniqueFailedTests','eCVnA','buildName','isKUO','ms.','debug','add','18455994EJjNsC','oRjfR','mxOfR','LgyVx','SxWRq','RFRTy','nJQws','1477644MnMYzG','QkICq','state','mwUpd','kvgmQ','710006IVRZhF','BnOnq','passed','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','zboZt','failFastActive','lockFilePath','shouldFailFast','path','message','6kenPhj','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','getFailedTestsCount','failFast.active','_CI]\x20Polling\x20started\x20with\x20interval:\x20','fileHelper','failFastConfig'];a132_0x5ed5=function(){return _0x5ef736;};return a132_0x5ed5();}function a132_0x7799(_0x2cf439,_0xe7eb1b){const _0x5ed563=a132_0x5ed5();return a132_0x7799=function(_0x77997b,_0x238bf2){_0x77997b=_0x77997b-0x137;let _0x43689a=_0x5ed563[_0x77997b];return _0x43689a;},a132_0x7799(_0x2cf439,_0xe7eb1b);}const fs=require('fs'),path=require(a132_0x57bd11(0x17a)),FileHelper=require('./fileHelper'),RequestUtils=require(a132_0x57bd11(0x139)),logger=require(a132_0x57bd11(0x19e))[a132_0x57bd11(0x1b9)],POLLING_INTERVAL=0x2710,TAG=a132_0x57bd11(0x148);class FailFastManager{constructor(_0xfa4490,_0x4b392a,_0x53016c){const _0x81b70b=a132_0x57bd11,_0x53b89f={};_0x53b89f[_0x81b70b(0x185)]=function(_0x211636,_0x58c267){return _0x211636+_0x58c267;},_0x53b89f['mLJmF']='\x0aStack:\x20',_0x53b89f[_0x81b70b(0x176)]=function(_0x26dbf7,_0x2e5efc){return _0x26dbf7||_0x2e5efc;},_0x53b89f[_0x81b70b(0x167)]=_0x81b70b(0x13e),_0x53b89f[_0x81b70b(0x16a)]=_0x81b70b(0x141),_0x53b89f[_0x81b70b(0x16e)]=_0x81b70b(0x17f);const _0x3acc45=_0x53b89f;this[_0x81b70b(0x182)]=_0x3acc45['zboZt'](_0xfa4490,{}),this[_0x81b70b(0x161)]=_0x4b392a,this[_0x81b70b(0x192)]=_0x53016c,this[_0x81b70b(0x137)]=!!(process[_0x81b70b(0x147)][_0x81b70b(0x190)]&&process[_0x81b70b(0x147)][_0x81b70b(0x1a9)]&&process[_0x81b70b(0x147)][_0x81b70b(0x1a5)]);const _0x20e3fe=this['failFastConfig']['workingDir'];this['stateFilePath']=path[_0x81b70b(0x15e)](_0x20e3fe,_0x3acc45[_0x81b70b(0x167)]),this[_0x81b70b(0x178)]=path['join'](_0x20e3fe,_0x3acc45[_0x81b70b(0x16a)]),this[_0x81b70b(0x14d)]=path[_0x81b70b(0x15e)](_0x20e3fe,_0x3acc45[_0x81b70b(0x16e)]),this[_0x81b70b(0x181)]=new FileHelper(this[_0x81b70b(0x182)],this[_0x81b70b(0x1aa)],this[_0x81b70b(0x178)],this[_0x81b70b(0x13a)]()),this[_0x81b70b(0x16f)]=this[_0x81b70b(0x13a)](),this['pollingInterval']=null,this[_0x81b70b(0x137)]&&(this[_0x81b70b(0x1a3)]=new Set()),this['_initializeStateFromFile']()[_0x81b70b(0x13f)](_0xdf15c8=>{const _0x1816d0=_0x81b70b;logger[_0x1816d0(0x189)]('['+TAG+_0x1816d0(0x18d)+_0xdf15c8[_0x1816d0(0x17b)]+(_0xdf15c8[_0x1816d0(0x18c)]?_0x3acc45['dnQXf'](_0x3acc45['mLJmF'],_0xdf15c8[_0x1816d0(0x18c)]):'')),this[_0x1816d0(0x16f)]=this[_0x1816d0(0x13a)]();}),this[_0x81b70b(0x137)]&&this[_0x81b70b(0x19a)](),logger[_0x81b70b(0x164)]('['+TAG+']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20'+this[_0x81b70b(0x182)][_0x81b70b(0x195)]+_0x81b70b(0x1ba)+this['isCIMode']);}[a132_0x57bd11(0x13a)](){const _0x29f540={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x29f540;}async['_initializeStateFromFile'](){const _0x3a592d=a132_0x57bd11,_0x27f0cc={};_0x27f0cc[_0x3a592d(0x173)]=function(_0x453355,_0x102d68){return _0x453355+_0x102d68;},_0x27f0cc['naomp']='\x0aStack:\x20';const _0x4d411c=_0x27f0cc;if(this[_0x3a592d(0x137)])try{fs['existsSync'](this[_0x3a592d(0x14d)])&&(this[_0x3a592d(0x16f)][_0x3a592d(0x177)]=!![],logger[_0x3a592d(0x164)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.'));}catch(_0x5a5e4a){logger[_0x3a592d(0x189)]('['+TAG+_0x3a592d(0x1b1)+_0x5a5e4a[_0x3a592d(0x17b)]+(_0x5a5e4a[_0x3a592d(0x18c)]?_0x4d411c[_0x3a592d(0x173)](_0x4d411c[_0x3a592d(0x1b3)],_0x5a5e4a[_0x3a592d(0x18c)]):''));}else try{const _0x3d9665=await this['fileHelper'][_0x3a592d(0x154)]();if(_0x3d9665)this[_0x3a592d(0x16f)]={...this[_0x3a592d(0x13a)](),..._0x3d9665,'uniqueFailedTests':new Set(_0x3d9665[_0x3a592d(0x15f)]||[])},logger['debug']('['+TAG+_0x3a592d(0x1a4));else{logger[_0x3a592d(0x164)]('['+TAG+_0x3a592d(0x18f));const _0x859337=this[_0x3a592d(0x13a)](),_0x16aea8={..._0x859337,'uniqueFailedTests':Array['from'](_0x859337[_0x3a592d(0x15f)])};await this[_0x3a592d(0x181)][_0x3a592d(0x158)](_0x16aea8),this[_0x3a592d(0x16f)]=_0x859337;}}catch(_0x4a45e9){logger[_0x3a592d(0x164)]('['+TAG+'_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20'+_0x4a45e9[_0x3a592d(0x17b)]+(_0x4a45e9[_0x3a592d(0x18c)]?_0x4d411c[_0x3a592d(0x173)](_0x4d411c[_0x3a592d(0x1b3)],_0x4a45e9['stack']):'')),this[_0x3a592d(0x16f)]=this[_0x3a592d(0x13a)]();}}async[a132_0x57bd11(0x188)](_0x38fca6,_0x679b83){const _0xb5f734=a132_0x57bd11,_0x4235c8={};_0x4235c8['QclcB']=function(_0x5cc17c,_0x54fa41){return _0x5cc17c>_0x54fa41;},_0x4235c8[_0xb5f734(0x199)]=_0xb5f734(0x1a0),_0x4235c8[_0xb5f734(0x162)]=_0xb5f734(0x174),_0x4235c8[_0xb5f734(0x1b4)]=function(_0x5892e3,_0x4d8e8f){return _0x5892e3+_0x4d8e8f;},_0x4235c8['dnFbr']='\x0aStack:\x20',_0x4235c8[_0xb5f734(0x171)]=function(_0x152508,_0x588b7a){return _0x152508||_0x588b7a;};const _0x33822b=_0x4235c8;if(this[_0xb5f734(0x137)])this[_0xb5f734(0x16f)]['totalTests']+=0x1,_0x679b83&&_0x33822b[_0xb5f734(0x13d)](_0x679b83[_0xb5f734(0x194)],0x0)&&(!this['reportedFailuresToAPI']['has'](_0x38fca6)&&(await this[_0xb5f734(0x1af)](_0x38fca6),this[_0xb5f734(0x1a3)][_0xb5f734(0x165)](_0x38fca6)));else try{const _0x356355={'fullName':_0x38fca6,'status':_0x679b83&&_0x33822b[_0xb5f734(0x13d)](_0x679b83['length'],0x0)?_0x33822b[_0xb5f734(0x199)]:_0x33822b[_0xb5f734(0x162)]},_0x3c7e3f=await this[_0xb5f734(0x181)][_0xb5f734(0x144)](_0x356355);this[_0xb5f734(0x16f)]={...this[_0xb5f734(0x13a)](),..._0x3c7e3f[_0xb5f734(0x18e)],'uniqueFailedTests':new Set(_0x3c7e3f[_0xb5f734(0x18e)][_0xb5f734(0x15f)]||[])};}catch(_0x32ce3f){logger[_0xb5f734(0x189)]('['+TAG+_0xb5f734(0x1a7)+_0x32ce3f[_0xb5f734(0x17b)]+(_0x32ce3f[_0xb5f734(0x18c)]?_0x33822b[_0xb5f734(0x1b4)](_0x33822b[_0xb5f734(0x1b5)],_0x32ce3f[_0xb5f734(0x18c)]):''));try{const _0x3aea9e=await this[_0xb5f734(0x181)]['readState']();this[_0xb5f734(0x16f)]={...this[_0xb5f734(0x13a)](),..._0x33822b['kvgmQ'](_0x3aea9e,{}),'uniqueFailedTests':new Set(_0x3aea9e?_0x3aea9e[_0xb5f734(0x15f)]||[]:[])},logger[_0xb5f734(0x164)]('['+TAG+_0xb5f734(0x15c));}catch(_0x3d6890){logger[_0xb5f734(0x189)]('['+TAG+_0xb5f734(0x175)+_0x3d6890[_0xb5f734(0x17b)]+(_0x3d6890[_0xb5f734(0x18c)]?_0x33822b['FpBgD'](_0x33822b['dnFbr'],_0x3d6890[_0xb5f734(0x18c)]):'')),this['state']=this[_0xb5f734(0x13a)]();}}}async['_sendFailedTestsToAPI'](_0x4d6e6a){const _0x125d1e=a132_0x57bd11,_0x135067={};_0x135067[_0x125d1e(0x1a2)]=function(_0x283dd8,_0x3a99e8){return _0x283dd8+_0x3a99e8;},_0x135067[_0x125d1e(0x160)]=_0x125d1e(0x1b8);const _0x5316c7=_0x135067;if(!this[_0x125d1e(0x137)]||!_0x4d6e6a)return;try{logger[_0x125d1e(0x164)]('['+TAG+_0x125d1e(0x1a8)+_0x4d6e6a);const _0x4464c4={};_0x4464c4['buildName']=this[_0x125d1e(0x161)],_0x4464c4['projectName']=this['projectName'],_0x4464c4[_0x125d1e(0x197)]=[_0x4d6e6a],_0x4464c4['buildRunIdentifier']=process['env'][_0x125d1e(0x190)],await RequestUtils[_0x125d1e(0x140)](_0x4464c4);}catch(_0x2ebc62){logger['error']('['+TAG+_0x125d1e(0x193)+_0x4d6e6a+_0x125d1e(0x156)+_0x2ebc62['message']+(_0x2ebc62['stack']?_0x5316c7[_0x125d1e(0x1a2)](_0x5316c7[_0x125d1e(0x160)],_0x2ebc62[_0x125d1e(0x18c)]):''));}}async[a132_0x57bd11(0x1ad)](){const _0x3e6a7f=a132_0x57bd11,_0xdcae39={};_0xdcae39['ptRTW']=function(_0x31b3c0,_0x961156){return _0x31b3c0===_0x961156;},_0xdcae39[_0x3e6a7f(0x1b6)]='number',_0xdcae39[_0x3e6a7f(0x198)]=function(_0x17e02e,_0x599e7f){return _0x17e02e+_0x599e7f;},_0xdcae39[_0x3e6a7f(0x1a6)]=_0x3e6a7f(0x1b8),_0xdcae39[_0x3e6a7f(0x16b)]=function(_0x362f79,_0x42371d){return _0x362f79!==_0x42371d;};const _0x3b3c98=_0xdcae39;if(!this['isCIMode'])return 0x0;try{const _0x4f5eb1={};_0x4f5eb1[_0x3e6a7f(0x161)]=this[_0x3e6a7f(0x161)],_0x4f5eb1[_0x3e6a7f(0x192)]=this[_0x3e6a7f(0x192)],_0x4f5eb1[_0x3e6a7f(0x1ae)]=process['env'][_0x3e6a7f(0x190)];const _0x2a0bf2=await RequestUtils[_0x3e6a7f(0x17e)](_0x4f5eb1);return logger[_0x3e6a7f(0x164)]('['+TAG+_0x3e6a7f(0x152)+_0x2a0bf2),_0x3b3c98[_0x3e6a7f(0x14e)](typeof _0x2a0bf2,_0x3b3c98[_0x3e6a7f(0x1b6)])?_0x2a0bf2:0x0;}catch(_0x1496ed){return logger[_0x3e6a7f(0x189)]('['+TAG+_0x3e6a7f(0x184)+_0x1496ed[_0x3e6a7f(0x17b)]+(_0x1496ed[_0x3e6a7f(0x18c)]?_0x3b3c98[_0x3e6a7f(0x198)](_0x3b3c98[_0x3e6a7f(0x1a6)],_0x1496ed[_0x3e6a7f(0x18c)]):'')),_0x3b3c98[_0x3e6a7f(0x16b)](this[_0x3e6a7f(0x16f)][_0x3e6a7f(0x13b)],undefined)?this[_0x3e6a7f(0x16f)][_0x3e6a7f(0x13b)]:0x0;}}async[a132_0x57bd11(0x145)](){const _0x38b4cf=a132_0x57bd11,_0x30a942={};_0x30a942[_0x38b4cf(0x169)]=function(_0x1968e3,_0x351734){return _0x1968e3!==_0x351734;},_0x30a942['WUcAE']=function(_0x262c0d,_0xf03e20){return _0x262c0d+_0xf03e20;},_0x30a942[_0x38b4cf(0x187)]=_0x38b4cf(0x1b8);const _0x2f737c=_0x30a942;if(!this[_0x38b4cf(0x137)])return;try{const _0x4646a4=await this['_fetchAPIFailedCount']();_0x2f737c['LgyVx'](_0x4646a4,this['state']['lastAPIFailedCount'])&&(logger[_0x38b4cf(0x164)]('['+TAG+_0x38b4cf(0x1b0)+_0x4646a4+_0x38b4cf(0x157)+this['state'][_0x38b4cf(0x13b)]+')'),this[_0x38b4cf(0x16f)]['lastAPIFailedCount']=_0x4646a4);}catch(_0x1697d4){logger['error']('['+TAG+_0x38b4cf(0x1ab)+_0x1697d4['message']+(_0x1697d4['stack']?_0x2f737c[_0x38b4cf(0x14c)](_0x2f737c[_0x38b4cf(0x187)],_0x1697d4[_0x38b4cf(0x18c)]):''));}}async[a132_0x57bd11(0x19a)](){const _0x121de5=a132_0x57bd11,_0x1217c1={'aTqKn':function(_0x5ec3b2,_0x5a41cc,_0x296213){return _0x5ec3b2(_0x5a41cc,_0x296213);}};this[_0x121de5(0x138)]&&this[_0x121de5(0x196)](),this[_0x121de5(0x137)]&&(await this[_0x121de5(0x145)](),this['pollingInterval']=_0x1217c1[_0x121de5(0x1b7)](setInterval,async()=>{await this['_pollFailedTests']();},POLLING_INTERVAL),logger[_0x121de5(0x164)]('['+TAG+_0x121de5(0x180)+POLLING_INTERVAL+_0x121de5(0x163)));}[a132_0x57bd11(0x196)](){const _0x307971=a132_0x57bd11,_0x4ac691={'XzuJx':function(_0x1c0e71,_0x2b0f1a){return _0x1c0e71(_0x2b0f1a);}};this[_0x307971(0x138)]&&(_0x4ac691[_0x307971(0x19f)](clearInterval,this[_0x307971(0x138)]),this[_0x307971(0x138)]=null,logger[_0x307971(0x164)]('['+TAG+']\x20Polling\x20stopped.'));}async[a132_0x57bd11(0x179)](){const _0x4ea683=a132_0x57bd11,_0x36544c={};_0x36544c['jJZPN']=function(_0x2f36c6,_0x3c2793){return _0x2f36c6===_0x3c2793;},_0x36544c['mwUpd']=function(_0x156e6b,_0x434809){return _0x156e6b<=_0x434809;},_0x36544c[_0x4ea683(0x19d)]=function(_0x237b83,_0x482f18){return _0x237b83+_0x482f18;},_0x36544c[_0x4ea683(0x18a)]='\x0aStack:\x20',_0x36544c[_0x4ea683(0x150)]=function(_0x435a95,_0x43a9da){return _0x435a95!==_0x43a9da;},_0x36544c[_0x4ea683(0x168)]=function(_0x343e9e,_0x7e145c){return _0x343e9e>=_0x7e145c;},_0x36544c[_0x4ea683(0x15d)]=function(_0x38d556,_0x53c019){return _0x38d556+_0x53c019;};const _0x12af6c=_0x36544c,{failureThresholdCount:_0x335920}=this[_0x4ea683(0x182)];if(_0x12af6c[_0x4ea683(0x186)](_0x335920,null)||_0x12af6c[_0x4ea683(0x186)](_0x335920,undefined)||_0x12af6c[_0x4ea683(0x170)](_0x335920,0x0))return logger[_0x4ea683(0x164)]('['+TAG+']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.'),![];if(this[_0x4ea683(0x137)]){try{if(fs[_0x4ea683(0x14a)](this['failFastActiveMarkerPath']))return logger[_0x4ea683(0x164)]('['+TAG+_0x4ea683(0x1a1)),!this[_0x4ea683(0x16f)][_0x4ea683(0x177)]&&(this['state']['failFastActive']=!![]),this[_0x4ea683(0x196)](),!![];}catch(_0x4a4fbf){logger[_0x4ea683(0x189)]('['+TAG+'_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20'+_0x4a4fbf[_0x4ea683(0x17b)]+(_0x4a4fbf[_0x4ea683(0x18c)]?_0x12af6c['hcPeO'](_0x12af6c[_0x4ea683(0x18a)],_0x4a4fbf[_0x4ea683(0x18c)]):''));}const _0x1215d5=_0x12af6c[_0x4ea683(0x150)](this[_0x4ea683(0x16f)][_0x4ea683(0x13b)],undefined)?this[_0x4ea683(0x16f)][_0x4ea683(0x13b)]:0x0;if(_0x12af6c[_0x4ea683(0x168)](_0x1215d5,_0x335920)){logger['info']('['+TAG+_0x4ea683(0x155)+_0x1215d5+_0x4ea683(0x153)+_0x335920+'.');try{fs['writeFileSync'](this[_0x4ea683(0x14d)],new Date()['toISOString']()),logger['debug']('['+TAG+_0x4ea683(0x191)+this[_0x4ea683(0x14d)]),this[_0x4ea683(0x16f)][_0x4ea683(0x177)]=!![];}catch(_0x477466){logger[_0x4ea683(0x189)]('['+TAG+'_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20'+_0x477466[_0x4ea683(0x17b)]+(_0x477466['stack']?_0x12af6c[_0x4ea683(0x19d)](_0x12af6c[_0x4ea683(0x18a)],_0x477466[_0x4ea683(0x18c)]):''));}return this['stopPolling'](),!![];}}else{let _0x10a3d7;try{_0x10a3d7=await this[_0x4ea683(0x181)][_0x4ea683(0x154)]();if(!_0x10a3d7)return logger[_0x4ea683(0x14f)]('['+TAG+_0x4ea683(0x19b)),![];}catch(_0x18e1c1){return logger[_0x4ea683(0x189)]('['+TAG+_0x4ea683(0x17d)+_0x18e1c1[_0x4ea683(0x17b)]+(_0x18e1c1['stack']?_0x12af6c[_0x4ea683(0x15d)](_0x12af6c[_0x4ea683(0x18a)],_0x18e1c1[_0x4ea683(0x18c)]):'')),![];}this[_0x4ea683(0x16f)]={...this[_0x4ea683(0x13a)](),..._0x10a3d7,'uniqueFailedTests':new Set(_0x10a3d7[_0x4ea683(0x15f)]||[])};if(this['state'][_0x4ea683(0x177)])return logger[_0x4ea683(0x164)]('['+TAG+'_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.'),!![];const _0x387c40=this[_0x4ea683(0x16f)]['uniqueFailedTests'],_0x209829=_0x387c40[_0x4ea683(0x146)];if(_0x12af6c[_0x4ea683(0x168)](_0x209829,_0x335920)){try{logger[_0x4ea683(0x149)]('['+TAG+_0x4ea683(0x15b)+_0x209829+_0x4ea683(0x153)+_0x335920+'.'),this[_0x4ea683(0x16f)][_0x4ea683(0x177)]=!![];}catch(_0x5d4309){logger[_0x4ea683(0x189)]('['+TAG+_0x4ea683(0x18b)+_0x5d4309['message']+(_0x5d4309[_0x4ea683(0x18c)]?_0x12af6c[_0x4ea683(0x15d)](_0x12af6c[_0x4ea683(0x18a)],_0x5d4309[_0x4ea683(0x18c)]):''));}return!![];}}return![];}async['cleanup'](){const _0x3163bd=a132_0x57bd11,_0x27443e={};_0x27443e[_0x3163bd(0x15a)]=function(_0x58bb0e,_0x2d7655){return _0x58bb0e+_0x2d7655;},_0x27443e[_0x3163bd(0x16c)]=_0x3163bd(0x1b8);const _0x9ab85=_0x27443e;this[_0x3163bd(0x196)]();if(this[_0x3163bd(0x137)])logger[_0x3163bd(0x164)]('['+TAG+_0x3163bd(0x159));else try{const _0x64a5e1={...this['state'],'uniqueFailedTests':Array[_0x3163bd(0x151)](this[_0x3163bd(0x16f)][_0x3163bd(0x15f)]||new Set())};await this['fileHelper']['writeState'](_0x64a5e1),logger[_0x3163bd(0x164)]('['+TAG+_0x3163bd(0x14b));}catch(_0x484d02){logger[_0x3163bd(0x189)]('['+TAG+_0x3163bd(0x19c)+_0x484d02[_0x3163bd(0x17b)]+(_0x484d02[_0x3163bd(0x18c)]?_0x9ab85[_0x3163bd(0x15a)](_0x9ab85['nJQws'],_0x484d02[_0x3163bd(0x18c)]):''));}}}module[a132_0x57bd11(0x13c)]=FailFastManager;
|
|
1
|
+
function a132_0x3428(_0x295206,_0x416cd5){const _0x7f2e75=a132_0x7f2e();return a132_0x3428=function(_0x3428e4,_0x3aacad){_0x3428e4=_0x3428e4-0x8c;let _0x3ae3bc=_0x7f2e75[_0x3428e4];return _0x3ae3bc;},a132_0x3428(_0x295206,_0x416cd5);}function a132_0x7f2e(){const _0x24bc3e=['stopPolling',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','354264NEKIJj','17PLxnJU','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','DGSKf','existsSync','recordTestResult','buildName','winstonLogger','failFastConfig','yAMOV','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','CQOkE','SLLWh','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','warn','IaMLp','fileHelper','GMIev',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','error','writeFileSync','_initializeStateFromFile','totalTests','buildRunIdentifier','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','from','DOCsf','sGuJz','129304aoyUok','PlIsU','exports','hMkdQ','has','vYZdX','FSOkF','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','fKAdm','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','DnTuT','failFastActive','message','AzTYx','getFailedTestsCount','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','readState','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','putFailedTests','catch','stateFilePath','BsMIG','kvBiJ','KiTKv','iKZRp','xzhVH','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','_sendFailedTestsToAPI','LVcOh','lockFilePath','failFastActiveMarkerPath','./requestUtils','_getDefaultState','5875296rRgvTu','_pollFailedTests','KPLPA','size','MteuR','nhqZY','length','zHFFL','uRiqW','debug','writeState','\x0aStack:\x20','cleanup','11513076wcFEFC','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','DccBI','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.',',\x20CI\x20Mode:\x20','qxYLF','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','AIPrD',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','stack','uniqueFailedTests','7211358zGjvnf','5VbUpIk','shouldFailFast','428684iRNWfy','ms.','passed','32817960TRWzmc','reportedFailuresToAPI','env','isCIMode','onTestDone','PGbnf','wKJdF',',\x20threshold:\x20','_fetchAPIFailedCount','lXbdL','RjkAz','rMfWV','dHyvQ','288sSuvye','state','number','add','startPolling','join','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','projectName','FailFastManager','eIBBt','info','failedTests','HgSRi','newState','_Local]\x20State\x20initialized\x20from\x20file.','OwBxW','failFastState.lock','pollingInterval','lastAPIFailedCount','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20'];a132_0x7f2e=function(){return _0x24bc3e;};return a132_0x7f2e();}const a132_0x54ad94=a132_0x3428;(function(_0x5d5ee5,_0x1aba34){const _0x181af8=a132_0x3428,_0x4e1874=_0x5d5ee5();while(!![]){try{const _0x5e8b2b=parseInt(_0x181af8(0xa8))/0x1*(parseInt(_0x181af8(0xc3))/0x2)+-parseInt(_0x181af8(0xe4))/0x3+parseInt(_0x181af8(0xff))/0x4*(parseInt(_0x181af8(0xfd))/0x5)+-parseInt(_0x181af8(0xf1))/0x6+-parseInt(_0x181af8(0xfc))/0x7+parseInt(_0x181af8(0xa7))/0x8*(parseInt(_0x181af8(0x90))/0x9)+parseInt(_0x181af8(0x102))/0xa;if(_0x5e8b2b===_0x1aba34)break;else _0x4e1874['push'](_0x4e1874['shift']());}catch(_0x57f850){_0x4e1874['push'](_0x4e1874['shift']());}}}(a132_0x7f2e,0xf3903));const fs=require('fs'),path=require('path'),FileHelper=require('./fileHelper'),RequestUtils=require(a132_0x54ad94(0xe2)),logger=require('../logger')[a132_0x54ad94(0xae)],POLLING_INTERVAL=0x2710,TAG=a132_0x54ad94(0x99);class FailFastManager{constructor(_0x3866a2,_0x28653c,_0x31d465){const _0x5b122a=a132_0x54ad94,_0x328b20={};_0x328b20[_0x5b122a(0x9a)]=function(_0x2d6e6b,_0x302d1a){return _0x2d6e6b+_0x302d1a;},_0x328b20[_0x5b122a(0xc8)]=_0x5b122a(0xef),_0x328b20['PlIsU']=function(_0xf5c3a1,_0x4b7320){return _0xf5c3a1||_0x4b7320;},_0x328b20['KPLPA']='failFastState.json',_0x328b20['dHyvQ']=_0x5b122a(0xa1),_0x328b20[_0x5b122a(0xc2)]='failFast.active';const _0x3812a7=_0x328b20;this['failFastConfig']=_0x3812a7[_0x5b122a(0xc4)](_0x3866a2,{}),this[_0x5b122a(0xad)]=_0x28653c,this[_0x5b122a(0x98)]=_0x31d465,this['isCIMode']=!!(process[_0x5b122a(0x104)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER']&&process[_0x5b122a(0x104)]['BROWSERSTACK_NODE_INDEX']&&process[_0x5b122a(0x104)]['BROWSERSTACK_TOTAL_NODE_COUNT']);const _0x168418=this[_0x5b122a(0xaf)]['workingDir'];this['stateFilePath']=path[_0x5b122a(0x95)](_0x168418,_0x3812a7[_0x5b122a(0xe6)]),this['lockFilePath']=path[_0x5b122a(0x95)](_0x168418,_0x3812a7[_0x5b122a(0x8f)]),this[_0x5b122a(0xe1)]=path[_0x5b122a(0x95)](_0x168418,_0x3812a7[_0x5b122a(0xc2)]),this[_0x5b122a(0xb7)]=new FileHelper(this['failFastConfig'],this[_0x5b122a(0xd7)],this[_0x5b122a(0xe0)],this[_0x5b122a(0xe3)]()),this[_0x5b122a(0x91)]=this[_0x5b122a(0xe3)](),this['pollingInterval']=null,this[_0x5b122a(0x105)]&&(this[_0x5b122a(0x103)]=new Set()),this[_0x5b122a(0xbc)]()[_0x5b122a(0xd6)](_0x422740=>{const _0x4d38c4=_0x5b122a;logger[_0x4d38c4(0xba)]('['+TAG+_0x4d38c4(0xf9)+_0x422740[_0x4d38c4(0xcf)]+(_0x422740['stack']?_0x3812a7[_0x4d38c4(0x9a)](_0x3812a7[_0x4d38c4(0xc8)],_0x422740[_0x4d38c4(0xfa)]):'')),this['state']=this['_getDefaultState']();}),this[_0x5b122a(0x105)]&&this[_0x5b122a(0x94)](),logger[_0x5b122a(0xed)]('['+TAG+_0x5b122a(0xa6)+this['failFastConfig']['failureThresholdCount']+_0x5b122a(0xf5)+this['isCIMode']);}[a132_0x54ad94(0xe3)](){const _0x3f43f8={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x3f43f8;}async[a132_0x54ad94(0xbc)](){const _0x9f69d4=a132_0x54ad94,_0x4f6d57={};_0x4f6d57[_0x9f69d4(0xe9)]=function(_0x2f6089,_0x48c21b){return _0x2f6089+_0x48c21b;},_0x4f6d57['DnTuT']=_0x9f69d4(0xef),_0x4f6d57[_0x9f69d4(0xdf)]=function(_0x109296,_0x36fcf2){return _0x109296+_0x36fcf2;};const _0x2069ac=_0x4f6d57;if(this['isCIMode'])try{fs[_0x9f69d4(0xab)](this['failFastActiveMarkerPath'])&&(this[_0x9f69d4(0x91)]['failFastActive']=!![],logger[_0x9f69d4(0xed)]('['+TAG+_0x9f69d4(0xf2)));}catch(_0x2ce260){logger['error']('['+TAG+_0x9f69d4(0x97)+_0x2ce260[_0x9f69d4(0xcf)]+(_0x2ce260[_0x9f69d4(0xfa)]?_0x2069ac[_0x9f69d4(0xe9)](_0x2069ac['DnTuT'],_0x2ce260[_0x9f69d4(0xfa)]):''));}else try{const _0xafea5f=await this[_0x9f69d4(0xb7)][_0x9f69d4(0xd3)]();if(_0xafea5f)this[_0x9f69d4(0x91)]={...this[_0x9f69d4(0xe3)](),..._0xafea5f,'uniqueFailedTests':new Set(_0xafea5f['uniqueFailedTests']||[])},logger['debug']('['+TAG+_0x9f69d4(0x9f));else{logger[_0x9f69d4(0xed)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.');const _0x59c20f=this[_0x9f69d4(0xe3)](),_0x2150af={..._0x59c20f,'uniqueFailedTests':Array[_0x9f69d4(0xc0)](_0x59c20f['uniqueFailedTests'])};await this[_0x9f69d4(0xb7)][_0x9f69d4(0xee)](_0x2150af),this[_0x9f69d4(0x91)]=_0x59c20f;}}catch(_0x538aa6){logger[_0x9f69d4(0xed)]('['+TAG+_0x9f69d4(0xf7)+_0x538aa6[_0x9f69d4(0xcf)]+(_0x538aa6[_0x9f69d4(0xfa)]?_0x2069ac[_0x9f69d4(0xdf)](_0x2069ac[_0x9f69d4(0xcd)],_0x538aa6[_0x9f69d4(0xfa)]):'')),this[_0x9f69d4(0x91)]=this[_0x9f69d4(0xe3)]();}}async[a132_0x54ad94(0x106)](_0x1effc8,_0x266301){const _0x4d5875=a132_0x54ad94,_0x4608d8={};_0x4608d8['hMkdQ']=function(_0x551c2b,_0x586a44){return _0x551c2b>_0x586a44;},_0x4608d8[_0x4d5875(0xa0)]=function(_0xe2698e,_0x375d9e){return _0xe2698e>_0x375d9e;},_0x4608d8[_0x4d5875(0xc1)]='failed',_0x4608d8[_0x4d5875(0xf3)]=_0x4d5875(0x101),_0x4608d8[_0x4d5875(0xf6)]=function(_0x328428,_0x535007){return _0x328428+_0x535007;},_0x4608d8[_0x4d5875(0xf8)]=_0x4d5875(0xef),_0x4608d8[_0x4d5875(0x8c)]=function(_0x5ab697,_0x58ec08){return _0x5ab697||_0x58ec08;};const _0x12245f=_0x4608d8;if(this['isCIMode'])this[_0x4d5875(0x91)][_0x4d5875(0xbd)]+=0x1,_0x266301&&_0x12245f[_0x4d5875(0xc6)](_0x266301[_0x4d5875(0xea)],0x0)&&(!this['reportedFailuresToAPI'][_0x4d5875(0xc7)](_0x1effc8)&&(await this['_sendFailedTestsToAPI'](_0x1effc8),this[_0x4d5875(0x103)][_0x4d5875(0x93)](_0x1effc8)));else try{const _0x17e11a={'fullName':_0x1effc8,'status':_0x266301&&_0x12245f[_0x4d5875(0xa0)](_0x266301[_0x4d5875(0xea)],0x0)?_0x12245f[_0x4d5875(0xc1)]:_0x12245f['DccBI']},_0x4ef411=await this[_0x4d5875(0xb7)][_0x4d5875(0xac)](_0x17e11a);this[_0x4d5875(0x91)]={...this[_0x4d5875(0xe3)](),..._0x4ef411[_0x4d5875(0x9e)],'uniqueFailedTests':new Set(_0x4ef411[_0x4d5875(0x9e)]['uniqueFailedTests']||[])};}catch(_0x1d4ee7){logger[_0x4d5875(0xba)]('['+TAG+'_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20'+_0x1d4ee7[_0x4d5875(0xcf)]+(_0x1d4ee7['stack']?_0x12245f['qxYLF'](_0x12245f[_0x4d5875(0xf8)],_0x1d4ee7[_0x4d5875(0xfa)]):''));try{const _0x2fec56=await this['fileHelper']['readState']();this[_0x4d5875(0x91)]={...this[_0x4d5875(0xe3)](),..._0x12245f[_0x4d5875(0x8c)](_0x2fec56,{}),'uniqueFailedTests':new Set(_0x2fec56?_0x2fec56[_0x4d5875(0xfb)]||[]:[])},logger['debug']('['+TAG+_0x4d5875(0xb4));}catch(_0x1ba89f){logger[_0x4d5875(0xba)]('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0x1ba89f[_0x4d5875(0xcf)]+(_0x1ba89f['stack']?_0x12245f['qxYLF'](_0x12245f[_0x4d5875(0xf8)],_0x1ba89f[_0x4d5875(0xfa)]):'')),this[_0x4d5875(0x91)]=this['_getDefaultState']();}}}async[a132_0x54ad94(0xde)](_0x4eb893){const _0x4dcc50=a132_0x54ad94,_0x2209be={};_0x2209be[_0x4dcc50(0xb3)]=function(_0x1d37ac,_0x97efe8){return _0x1d37ac+_0x97efe8;},_0x2209be[_0x4dcc50(0xdb)]='\x0aStack:\x20';const _0x4783e0=_0x2209be;if(!this['isCIMode']||!_0x4eb893)return;try{logger[_0x4dcc50(0xed)]('['+TAG+_0x4dcc50(0xb1)+_0x4eb893);const _0x4c7ce5={};_0x4c7ce5[_0x4dcc50(0xad)]=this['buildName'],_0x4c7ce5['projectName']=this[_0x4dcc50(0x98)],_0x4c7ce5[_0x4dcc50(0x9c)]=[_0x4eb893],_0x4c7ce5[_0x4dcc50(0xbe)]=process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],await RequestUtils[_0x4dcc50(0xd5)](_0x4c7ce5);}catch(_0x4bf8f3){logger[_0x4dcc50(0xba)]('['+TAG+'_CI]\x20Error\x20sending\x20failed\x20test\x20'+_0x4eb893+'\x20to\x20API:\x20'+_0x4bf8f3[_0x4dcc50(0xcf)]+(_0x4bf8f3[_0x4dcc50(0xfa)]?_0x4783e0[_0x4dcc50(0xb3)](_0x4783e0['iKZRp'],_0x4bf8f3[_0x4dcc50(0xfa)]):''));}}async[a132_0x54ad94(0x10a)](){const _0x509de5=a132_0x54ad94,_0x32fc25={};_0x32fc25['wKJdF']=function(_0x551384,_0xc7d30a){return _0x551384===_0xc7d30a;},_0x32fc25[_0x509de5(0xe8)]=_0x509de5(0x92),_0x32fc25[_0x509de5(0xaa)]=function(_0x4e09e6,_0x26e907){return _0x4e09e6+_0x26e907;},_0x32fc25[_0x509de5(0xd0)]=_0x509de5(0xef),_0x32fc25[_0x509de5(0xeb)]=function(_0x3ac3b2,_0x2809d7){return _0x3ac3b2!==_0x2809d7;};const _0x4a258a=_0x32fc25;if(!this[_0x509de5(0x105)])return 0x0;try{const _0x443a61={};_0x443a61[_0x509de5(0xad)]=this[_0x509de5(0xad)],_0x443a61[_0x509de5(0x98)]=this[_0x509de5(0x98)],_0x443a61[_0x509de5(0xbe)]=process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];const _0x16870f=await RequestUtils[_0x509de5(0xd1)](_0x443a61);return logger[_0x509de5(0xed)]('['+TAG+_0x509de5(0xca)+_0x16870f),_0x4a258a[_0x509de5(0x108)](typeof _0x16870f,_0x4a258a[_0x509de5(0xe8)])?_0x16870f:0x0;}catch(_0x5a4670){return logger[_0x509de5(0xba)]('['+TAG+_0x509de5(0xdd)+_0x5a4670[_0x509de5(0xcf)]+(_0x5a4670['stack']?_0x4a258a[_0x509de5(0xaa)](_0x4a258a[_0x509de5(0xd0)],_0x5a4670[_0x509de5(0xfa)]):'')),_0x4a258a[_0x509de5(0xeb)](this[_0x509de5(0x91)][_0x509de5(0xa3)],undefined)?this['state'][_0x509de5(0xa3)]:0x0;}}async[a132_0x54ad94(0xe5)](){const _0x21e4fe=a132_0x54ad94,_0x4106ee={};_0x4106ee[_0x21e4fe(0xb0)]=function(_0x15a20a,_0x258d81){return _0x15a20a!==_0x258d81;},_0x4106ee[_0x21e4fe(0x9d)]=function(_0x3896e0,_0x2bd0af){return _0x3896e0+_0x2bd0af;},_0x4106ee[_0x21e4fe(0xdc)]=_0x21e4fe(0xef);const _0x867c82=_0x4106ee;if(!this[_0x21e4fe(0x105)])return;try{const _0x287710=await this[_0x21e4fe(0x10a)]();_0x867c82[_0x21e4fe(0xb0)](_0x287710,this[_0x21e4fe(0x91)]['lastAPIFailedCount'])&&(logger[_0x21e4fe(0xed)]('['+TAG+'_CI]\x20API\x20failed\x20count\x20updated:\x20'+_0x287710+'\x20(was\x20'+this[_0x21e4fe(0x91)][_0x21e4fe(0xa3)]+')'),this[_0x21e4fe(0x91)][_0x21e4fe(0xa3)]=_0x287710);}catch(_0x5a702e){logger[_0x21e4fe(0xba)]('['+TAG+'_CI]\x20Error\x20during\x20polling\x20logic:\x20'+_0x5a702e[_0x21e4fe(0xcf)]+(_0x5a702e[_0x21e4fe(0xfa)]?_0x867c82[_0x21e4fe(0x9d)](_0x867c82[_0x21e4fe(0xdc)],_0x5a702e['stack']):''));}}async['startPolling'](){const _0x3f50f5=a132_0x54ad94,_0x2ccb2b={'FSOkF':function(_0x5f10f0,_0x5dc7d8,_0x2c86ce){return _0x5f10f0(_0x5dc7d8,_0x2c86ce);}};this[_0x3f50f5(0xa2)]&&this['stopPolling'](),this['isCIMode']&&(await this[_0x3f50f5(0xe5)](),this[_0x3f50f5(0xa2)]=_0x2ccb2b[_0x3f50f5(0xc9)](setInterval,async()=>{const _0xef37b2=_0x3f50f5;await this[_0xef37b2(0xe5)]();},POLLING_INTERVAL),logger[_0x3f50f5(0xed)]('['+TAG+'_CI]\x20Polling\x20started\x20with\x20interval:\x20'+POLLING_INTERVAL+_0x3f50f5(0x100)));}[a132_0x54ad94(0xa5)](){const _0x509043=a132_0x54ad94,_0x1261bb={'pwAdm':function(_0xe32f90,_0x2656c8){return _0xe32f90(_0x2656c8);}};this[_0x509043(0xa2)]&&(_0x1261bb['pwAdm'](clearInterval,this['pollingInterval']),this[_0x509043(0xa2)]=null,logger[_0x509043(0xed)]('['+TAG+']\x20Polling\x20stopped.'));}async[a132_0x54ad94(0xfe)](){const _0xaad4c4=a132_0x54ad94,_0x568d82={};_0x568d82['fKAdm']=function(_0x209162,_0x1e3719){return _0x209162===_0x1e3719;},_0x568d82[_0xaad4c4(0xd8)]=function(_0x1b4da5,_0x1fab6a){return _0x1b4da5===_0x1fab6a;},_0x568d82[_0xaad4c4(0xd9)]=function(_0x14b643,_0x354125){return _0x14b643<=_0x354125;},_0x568d82['RjkAz']=function(_0xb5d1fa,_0x3b0c3f){return _0xb5d1fa+_0x3b0c3f;},_0x568d82['uRiqW']=_0xaad4c4(0xef),_0x568d82[_0xaad4c4(0xda)]=function(_0x4c5ae5,_0x1ef653){return _0x4c5ae5!==_0x1ef653;},_0x568d82[_0xaad4c4(0x107)]=function(_0x415c55,_0x51efdb){return _0x415c55>=_0x51efdb;},_0x568d82[_0xaad4c4(0xb8)]=function(_0x4db128,_0xfa6fe3){return _0x4db128+_0xfa6fe3;},_0x568d82[_0xaad4c4(0x8e)]=function(_0x1eb408,_0x4552df){return _0x1eb408+_0x4552df;};const _0x571838=_0x568d82,{failureThresholdCount:_0x13107e}=this[_0xaad4c4(0xaf)];if(_0x571838[_0xaad4c4(0xcb)](_0x13107e,null)||_0x571838[_0xaad4c4(0xd8)](_0x13107e,undefined)||_0x571838[_0xaad4c4(0xd9)](_0x13107e,0x0))return logger[_0xaad4c4(0xed)]('['+TAG+_0xaad4c4(0xb9)),![];if(this['isCIMode']){try{if(fs[_0xaad4c4(0xab)](this[_0xaad4c4(0xe1)]))return logger[_0xaad4c4(0xed)]('['+TAG+_0xaad4c4(0xcc)),!this[_0xaad4c4(0x91)][_0xaad4c4(0xce)]&&(this[_0xaad4c4(0x91)][_0xaad4c4(0xce)]=!![]),this['stopPolling'](),!![];}catch(_0x7a180a){logger[_0xaad4c4(0xba)]('['+TAG+_0xaad4c4(0x97)+_0x7a180a['message']+(_0x7a180a[_0xaad4c4(0xfa)]?_0x571838[_0xaad4c4(0x8d)](_0x571838[_0xaad4c4(0xec)],_0x7a180a[_0xaad4c4(0xfa)]):''));}const _0x1520eb=_0x571838[_0xaad4c4(0xda)](this['state'][_0xaad4c4(0xa3)],undefined)?this[_0xaad4c4(0x91)]['lastAPIFailedCount']:0x0;if(_0x571838[_0xaad4c4(0x107)](_0x1520eb,_0x13107e)){logger[_0xaad4c4(0x9b)]('['+TAG+'_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x1520eb+_0xaad4c4(0x109)+_0x13107e+'.');try{fs[_0xaad4c4(0xbb)](this[_0xaad4c4(0xe1)],new Date()['toISOString']()),logger[_0xaad4c4(0xed)]('['+TAG+'_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20'+this['failFastActiveMarkerPath']),this[_0xaad4c4(0x91)]['failFastActive']=!![];}catch(_0x3a575e){logger[_0xaad4c4(0xba)]('['+TAG+_0xaad4c4(0xa9)+_0x3a575e['message']+(_0x3a575e[_0xaad4c4(0xfa)]?_0x571838[_0xaad4c4(0xb8)](_0x571838[_0xaad4c4(0xec)],_0x3a575e['stack']):''));}return this[_0xaad4c4(0xa5)](),!![];}}else{let _0x10a4c1;try{_0x10a4c1=await this[_0xaad4c4(0xb7)][_0xaad4c4(0xd3)]();if(!_0x10a4c1)return logger[_0xaad4c4(0xb5)]('['+TAG+_0xaad4c4(0xbf)),![];}catch(_0x18ea3c){return logger[_0xaad4c4(0xba)]('['+TAG+'_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20'+_0x18ea3c['message']+(_0x18ea3c[_0xaad4c4(0xfa)]?_0x571838[_0xaad4c4(0x8d)](_0x571838[_0xaad4c4(0xec)],_0x18ea3c['stack']):'')),![];}this[_0xaad4c4(0x91)]={...this[_0xaad4c4(0xe3)](),..._0x10a4c1,'uniqueFailedTests':new Set(_0x10a4c1[_0xaad4c4(0xfb)]||[])};if(this[_0xaad4c4(0x91)][_0xaad4c4(0xce)])return logger[_0xaad4c4(0xed)]('['+TAG+_0xaad4c4(0x96)),!![];const _0x28a84e=this[_0xaad4c4(0x91)]['uniqueFailedTests'],_0x3390f2=_0x28a84e[_0xaad4c4(0xe7)];if(_0x571838[_0xaad4c4(0x107)](_0x3390f2,_0x13107e)){try{logger[_0xaad4c4(0x9b)]('['+TAG+_0xaad4c4(0xd4)+_0x3390f2+_0xaad4c4(0x109)+_0x13107e+'.'),this['state'][_0xaad4c4(0xce)]=!![];}catch(_0x5c5b9d){logger[_0xaad4c4(0xba)]('['+TAG+_0xaad4c4(0xa4)+_0x5c5b9d[_0xaad4c4(0xcf)]+(_0x5c5b9d['stack']?_0x571838['rMfWV'](_0x571838['uRiqW'],_0x5c5b9d['stack']):''));}return!![];}}return![];}async[a132_0x54ad94(0xf0)](){const _0x5b3ef1=a132_0x54ad94,_0x436851={};_0x436851[_0x5b3ef1(0xb6)]=function(_0x570585,_0x4338bc){return _0x570585+_0x4338bc;},_0x436851['CQOkE']=_0x5b3ef1(0xef);const _0x7d3a26=_0x436851;this['stopPolling']();if(this[_0x5b3ef1(0x105)])logger['debug']('['+TAG+_0x5b3ef1(0xf4));else try{const _0x3c7692={...this['state'],'uniqueFailedTests':Array[_0x5b3ef1(0xc0)](this[_0x5b3ef1(0x91)][_0x5b3ef1(0xfb)]||new Set())};await this[_0x5b3ef1(0xb7)]['writeState'](_0x3c7692),logger['debug']('['+TAG+'_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.');}catch(_0x2a68b2){logger[_0x5b3ef1(0xba)]('['+TAG+_0x5b3ef1(0xd2)+_0x2a68b2[_0x5b3ef1(0xcf)]+(_0x2a68b2[_0x5b3ef1(0xfa)]?_0x7d3a26['IaMLp'](_0x7d3a26[_0x5b3ef1(0xb2)],_0x2a68b2[_0x5b3ef1(0xfa)]):''));}}}module[a132_0x54ad94(0xc5)]=FailFastManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a133_0x1eb6(_0x303ff2,_0x2bf966){const _0x5056e4=a133_0x5056();return a133_0x1eb6=function(_0x1eb627,_0x2358d4){_0x1eb627=_0x1eb627-0x6f;let _0x97bbb7=_0x5056e4[_0x1eb627];return _0x97bbb7;},a133_0x1eb6(_0x303ff2,_0x2bf966);}const a133_0x4ba8fe=a133_0x1eb6;function a133_0x5056(){const _0x15e3ef=['split',']\x20Error\x20releasing\x20lock:\x20','../logger','uniqueFailedTests','code','210QpMSqI','totalTests','XFdgh','writeState','releaseLock','failed','voAQU','parse','12201723QMwmRo','utf8','lockFilePath',']\x20Error\x20creating\x20state\x20file:\x20','acquireLock','778631HTWnSB','error','922898PXnfRL','0|3|2|4|1','winstonLogger','stringify','1225059vZGgkm','isArray',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','function','EEXIST','2648070PyTbOl','XBcpI','Icmbk','stateFilePath','writeFileSync','isNewFailure','warn','add','updateAPIFailedCount','lastAPIFailedCount','5mpUukv','recordTestResult','readFileSync','9POqiba','404229txFtNA','message','newState','defaultState','exports','905624MQNTEa','unlinkSync',']\x20Error\x20writing\x20state\x20file:\x20','readState','jXrsf','lubPv','oNusL','stack','DmClk','Qhppa','96YvYzLS','has'];a133_0x5056=function(){return _0x15e3ef;};return a133_0x5056();}(function(_0x3786c6,_0x1a006e){const _0x202862=a133_0x1eb6,_0x5aa9d3=_0x3786c6();while(!![]){try{const _0x5ef839=parseInt(_0x202862(0x99))/0x1+-parseInt(_0x202862(0x82))/0x2*(-parseInt(_0x202862(0x98))/0x3)+parseInt(_0x202862(0x9e))/0x4*(-parseInt(_0x202862(0x95))/0x5)+-parseInt(_0x202862(0x8b))/0x6+parseInt(_0x202862(0x80))/0x7*(-parseInt(_0x202862(0xa8))/0x8)+-parseInt(_0x202862(0x7b))/0x9+-parseInt(_0x202862(0x73))/0xa*(-parseInt(_0x202862(0x86))/0xb);if(_0x5ef839===_0x1a006e)break;else _0x5aa9d3['push'](_0x5aa9d3['shift']());}catch(_0xfa7bcb){_0x5aa9d3['push'](_0x5aa9d3['shift']());}}}(a133_0x5056,0xbbc07));const fs=require('fs'),logger=require(a133_0x4ba8fe(0x70))[a133_0x4ba8fe(0x84)],TAG='FailFastFileHelper';class FileHelper{constructor(_0x487b5a,_0x18e084,_0x5cef54,_0x49eebe){const _0x297d1c=a133_0x4ba8fe,_0x1e96ac={};_0x1e96ac[_0x297d1c(0x8d)]=_0x297d1c(0x83),_0x1e96ac[_0x297d1c(0x79)]=_0x297d1c(0x7c);const _0x254d70=_0x1e96ac,_0xc04b54=_0x254d70[_0x297d1c(0x8d)][_0x297d1c(0xaa)]('|');let _0x40b6c4=0x0;while(!![]){switch(_0xc04b54[_0x40b6c4++]){case'0':this['failFastConfig']=_0x487b5a;continue;case'1':if(!fs['existsSync'](this['stateFilePath']))try{fs[_0x297d1c(0x8f)](this[_0x297d1c(0x8e)],'{}',_0x254d70[_0x297d1c(0x79)]);}catch(_0x1a7413){logger[_0x297d1c(0x81)]('['+TAG+_0x297d1c(0x7e)+_0x1a7413[_0x297d1c(0x9a)]+'\x20'+_0x1a7413[_0x297d1c(0xa5)]);}continue;case'2':this[_0x297d1c(0x7d)]=_0x5cef54;continue;case'3':this[_0x297d1c(0x8e)]=_0x18e084;continue;case'4':this[_0x297d1c(0x9c)]=_0x49eebe;continue;}break;}}async[a133_0x4ba8fe(0x7f)](){const _0xd6693e=a133_0x4ba8fe,_0x208383={};_0x208383['oNusL']=function(_0x5bac94,_0xeb8204){return _0x5bac94===_0xeb8204;},_0x208383[_0xd6693e(0xa3)]=_0xd6693e(0x8a);const _0x10741a=_0x208383;let _0x23fd9a;try{return _0x23fd9a=fs['openSync'](this[_0xd6693e(0x7d)],'wx'),_0x23fd9a;}catch(_0x32bb25){if(_0x10741a[_0xd6693e(0xa4)](_0x32bb25[_0xd6693e(0x72)],_0x10741a[_0xd6693e(0xa3)]))return null;throw _0x32bb25;}}async[a133_0x4ba8fe(0x77)](_0x398066){const _0x5ed2e5=a133_0x4ba8fe;if(_0x398066)try{fs['closeSync'](_0x398066),fs[_0x5ed2e5(0x9f)](this[_0x5ed2e5(0x7d)]);}catch(_0x3e997a){logger[_0x5ed2e5(0x81)]('['+TAG+_0x5ed2e5(0x6f)+_0x3e997a[_0x5ed2e5(0x9a)]+'\x20'+_0x3e997a[_0x5ed2e5(0xa5)]);}}[a133_0x4ba8fe(0xa1)](){const _0x13a695=a133_0x4ba8fe,_0x1faf2a={};_0x1faf2a[_0x13a695(0xa6)]='utf8';const _0x59a028=_0x1faf2a;try{const _0x537c3d=fs[_0x13a695(0x97)](this[_0x13a695(0x8e)],_0x59a028[_0x13a695(0xa6)]);return JSON['parse'](_0x537c3d);}catch(_0x469b63){return logger[_0x13a695(0x81)]('['+TAG+']\x20Error\x20reading\x20state\x20file:\x20'+_0x469b63[_0x13a695(0x9a)]+'\x20'+_0x469b63[_0x13a695(0xa5)]),null;}}async[a133_0x4ba8fe(0x76)](_0x251643){const _0x25da50=a133_0x4ba8fe,_0x19d4f6={..._0x251643,'uniqueFailedTests':Array[_0x25da50(0x87)](_0x251643[_0x25da50(0x71)])?_0x251643['uniqueFailedTests']:Array['from'](_0x251643['uniqueFailedTests']||[])};try{fs[_0x25da50(0x8f)](this['stateFilePath'],JSON[_0x25da50(0x85)](_0x19d4f6,null,0x2));}catch(_0x3ea521){logger[_0x25da50(0x81)]('['+TAG+_0x25da50(0xa0)+_0x3ea521[_0x25da50(0x9a)]+'\x20'+_0x3ea521[_0x25da50(0xa5)]);throw _0x3ea521;}}async[a133_0x4ba8fe(0x96)](_0x397a39,_0x1ab8ca){const _0x34d738=a133_0x4ba8fe,_0xdbbef5={};_0xdbbef5[_0x34d738(0xa7)]=function(_0x5ba7dc,_0x3ad0e1){return _0x5ba7dc!==_0x3ad0e1;},_0xdbbef5[_0x34d738(0xa2)]=_0x34d738(0x89),_0xdbbef5['XBcpI']=function(_0x5624b0,_0x3e0283){return _0x5624b0===_0x3e0283;},_0xdbbef5[_0x34d738(0x75)]=_0x34d738(0x78);const _0x1a7673=_0xdbbef5,_0xcf2854=await this[_0x34d738(0x7f)]();if(!_0xcf2854)return logger[_0x34d738(0x91)]('['+TAG+_0x34d738(0x88)),{'newState':this[_0x34d738(0xa1)]()||this[_0x34d738(0x9c)],'isNewFailure':![]};try{let _0x15dc64=this[_0x34d738(0xa1)]();!_0x15dc64&&(_0x15dc64=JSON[_0x34d738(0x7a)](JSON[_0x34d738(0x85)](this['defaultState'])));if(!_0x15dc64['uniqueFailedTests']||_0x1a7673[_0x34d738(0xa7)](typeof _0x15dc64['uniqueFailedTests'][Symbol['iterator']],_0x1a7673['jXrsf']))_0x15dc64[_0x34d738(0x71)]=new Set();else Array['isArray'](_0x15dc64[_0x34d738(0x71)])&&(_0x15dc64[_0x34d738(0x71)]=new Set(_0x15dc64[_0x34d738(0x71)]));_0x15dc64[_0x34d738(0x74)]=_0x1ab8ca;let _0x54bb6e=![];_0x1a7673[_0x34d738(0x8c)](_0x397a39['status'],_0x1a7673[_0x34d738(0x75)])&&(_0x15dc64['failedTests']+=0x1,!_0x15dc64[_0x34d738(0x71)][_0x34d738(0xa9)](_0x397a39['fullName'])&&(_0x15dc64['uniqueFailedTests'][_0x34d738(0x92)](_0x397a39['fullName']),_0x54bb6e=!![]));await this['writeState'](_0x15dc64);const _0x2434ef={};return _0x2434ef[_0x34d738(0x9b)]=_0x15dc64,_0x2434ef[_0x34d738(0x90)]=_0x54bb6e,_0x2434ef;}finally{await this[_0x34d738(0x77)](_0xcf2854);}}async[a133_0x4ba8fe(0x93)](_0x210cb1){const _0x21dbbb=a133_0x4ba8fe,_0x3fc674=await this[_0x21dbbb(0x7f)]();if(!_0x3fc674)return logger[_0x21dbbb(0x91)]('['+TAG+']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.'),this[_0x21dbbb(0xa1)]()||this['defaultState'];try{let _0x7c4652=this[_0x21dbbb(0xa1)]();return!_0x7c4652&&(_0x7c4652=JSON[_0x21dbbb(0x7a)](JSON['stringify'](this[_0x21dbbb(0x9c)]))),_0x7c4652[_0x21dbbb(0x94)]=_0x210cb1,await this[_0x21dbbb(0x76)](_0x7c4652),_0x7c4652;}finally{await this[_0x21dbbb(0x77)](_0x3fc674);}}}module[a133_0x4ba8fe(0x9d)]=FileHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a134_0x58cd38=a134_0x4d02;function a134_0x1465(){const _0x38c1f2=['getRetryCount','getBuildStartData','135452BSRBmM','appendFileSync','retry_tests_on_failure','testOrchestrationOptions','config','jest','8712jZbUBN','getEnabled','existsSync','getRerunPreviouslyFailed','runPreviouslyFailedFirst','toLowerCase','getFailureThreshold','1240ovgTTN','rerun_previously_failed','97848FsPAuE','has','rerunPreviouslyFailed','isRetryEnabled','retryTestsOnFailure','maxRetries','isAbortBuildOnFailureEnabled','isAbortBuildOnFailureSupported','8XXHUUY','enable','12397528wUduyH','getOrchestrationData','_setSkipFlakyAndFailed','_setTestOrdering','abort_build_','enabled','_setRunPreviouslyFailedFirst','_instance','join','3630UuPvyD','getSkipFlakyAndFailed','_setRerunPreviouslyFailed','skipFlakyAndFailed','985135RSQSbD','skip_failing_and_flaky','writeFailureToFile','BROWSERSTACK_TESTHUB_UUID','getInstance','skipFlakyandFailed','name','getName','246687AykQiD','CJajT','abort_build_on_failure','../logger','getTestOrderingName','9hbslCU','tmpdir','env','path','4585vNCyPd','.txt','testOrderingEnabled','kyqHU','testOrdering','disable','getRunPreviouslyFailedFirst'];a134_0x1465=function(){return _0x38c1f2;};return a134_0x1465();}(function(_0x21160a,_0x3fd392){const _0x5b8baf=a134_0x4d02,_0x4e0b79=_0x21160a();while(!![]){try{const _0x3a14c1=parseInt(_0x5b8baf(0x116))/0x1*(-parseInt(_0x5b8baf(0x123))/0x2)+-parseInt(_0x5b8baf(0x111))/0x3+parseInt(_0x5b8baf(0xfa))/0x4*(parseInt(_0x5b8baf(0x109))/0x5)+-parseInt(_0x5b8baf(0x105))/0x6*(parseInt(_0x5b8baf(0x11a))/0x7)+parseInt(_0x5b8baf(0x132))/0x8+parseInt(_0x5b8baf(0x129))/0x9*(-parseInt(_0x5b8baf(0x130))/0xa)+parseInt(_0x5b8baf(0xfc))/0xb;if(_0x3a14c1===_0x3fd392)break;else _0x4e0b79['push'](_0x4e0b79['shift']());}catch(_0x5cf744){_0x4e0b79['push'](_0x4e0b79['shift']());}}}(a134_0x1465,0x4f68f));const os=require('os'),path=require(a134_0x58cd38(0x119)),fs=require('fs'),logger=require(a134_0x58cd38(0x114))['winstonLogger'],RETRY_TESTS_ON_FAILURE=a134_0x58cd38(0xf6),ABORT_BUILD_ON_FAILURE='abortBuildOnFailure',RUN_PREVIOUSLY_FAILED_FIRST=a134_0x58cd38(0x12d),RERUN_PREVIOUSLY_FAILED=a134_0x58cd38(0x134),SKIP_FLAKY_AND_FAILED=a134_0x58cd38(0x10e),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_0x58cd38(0x128)]);function a134_0x4d02(_0x11d0a0,_0x3aa927){const _0x146528=a134_0x1465();return a134_0x4d02=function(_0x4d02bb,_0x36d406){_0x4d02bb=_0x4d02bb-0xf5;let _0x462a09=_0x146528[_0x4d02bb];return _0x462a09;},a134_0x4d02(_0x11d0a0,_0x3aa927);}class TestOrdering{constructor(){const _0x769122=a134_0x58cd38;this[_0x769122(0x101)]=![],this[_0x769122(0x10f)]=null;}['enable'](_0x43885f){const _0x131323=a134_0x58cd38;this[_0x131323(0x101)]=!![],this[_0x131323(0x10f)]=_0x43885f;}[a134_0x58cd38(0x11f)](){const _0x42111c=a134_0x58cd38;this[_0x42111c(0x101)]=![],this[_0x42111c(0x10f)]=null;}[a134_0x58cd38(0x12a)](){const _0x4c5fa3=a134_0x58cd38;return this[_0x4c5fa3(0x101)];}[a134_0x58cd38(0x110)](){return this['name'];}}class OrchestrationUtils{static ['_instance']=null;constructor(_0x5ab5e2){const _0x374273=a134_0x58cd38,_0x2c6cda={};_0x2c6cda['kyqHU']=function(_0xaaea07,_0x4d21ca){return _0xaaea07||_0x4d21ca;};const _0x2e5e40=_0x2c6cda;this[_0x374273(0x12d)]=![],this[_0x374273(0x134)]=![],this[_0x374273(0x108)]=![],this['testOrdering']=new TestOrdering(),this[_0x374273(0x127)]=_0x2e5e40[_0x374273(0x11d)](_0x5ab5e2,{});const _0x879a2=_0x5ab5e2&&_0x5ab5e2[_0x374273(0x126)]||{};this[_0x374273(0x102)](_0x879a2[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this['_setRerunPreviouslyFailed'](_0x879a2[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x374273(0xfe)](_0x879a2[SKIP_FLAKY_AND_FAILED]||![]);}static[a134_0x58cd38(0x10d)](_0x20d8ba){const _0x577ab9=a134_0x58cd38;return!OrchestrationUtils[_0x577ab9(0x103)]&&_0x20d8ba&&(OrchestrationUtils[_0x577ab9(0x103)]=new OrchestrationUtils(_0x20d8ba)),OrchestrationUtils['_instance'];}['isRetryEnabled'](){const _0x4b6fee=a134_0x58cd38,_0xa1bf1c=(this['config']['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0xa1bf1c[_0x4b6fee(0x101)];}[a134_0x58cd38(0x121)](){const _0x990b7=a134_0x58cd38,_0x55fbd3=(this['config'][_0x990b7(0x126)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x367ba5=0x0;return this[_0x990b7(0xf5)](this[_0x990b7(0x127)])&&(_0x367ba5=_0x55fbd3[_0x990b7(0xf7)]||0x1),_0x367ba5;}[a134_0x58cd38(0xfd)](){const _0x485399=a134_0x58cd38,_0x335eae=this[_0x485399(0x127)][_0x485399(0x126)]||{},_0x1dfc6e={};for(const _0x3e6dee in _0x335eae){ALLOWED_ORCHESTRATION_KEYS[_0x485399(0x133)](_0x3e6dee)&&(_0x1dfc6e[_0x3e6dee]=_0x335eae[_0x3e6dee]);}return _0x1dfc6e;}['checkAbortBuildFileExists'](){const _0x5b845b=a134_0x58cd38,_0x3dad74=process[_0x5b845b(0x118)][_0x5b845b(0x10c)],_0x53d731=path['join'](os[_0x5b845b(0x117)](),_0x5b845b(0x100)+_0x3dad74);return fs[_0x5b845b(0x12b)](_0x53d731);}[a134_0x58cd38(0x10b)](_0x274e2f){const _0x51ac6a=a134_0x58cd38,_0x13f7d7=process[_0x51ac6a(0x118)][_0x51ac6a(0x10c)],_0x33ded7=path[_0x51ac6a(0x104)](os[_0x51ac6a(0x117)](),'failed_tests_'+_0x13f7d7+_0x51ac6a(0x11b));fs[_0x51ac6a(0x124)](_0x33ded7,_0x274e2f+'\x0a');}[a134_0x58cd38(0xf9)](_0x3fb7e1){const _0x11fab5=a134_0x58cd38,_0x12858d={};_0x12858d['CJajT']=function(_0x4cc700,_0x3a2383){return _0x4cc700||_0x3a2383;};const _0x1110bc=_0x12858d;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x11fab5(0x133)](_0x1110bc[_0x11fab5(0x112)](_0x3fb7e1,'')[_0x11fab5(0x12e)]());}[a134_0x58cd38(0xf8)](){const _0x4857d0=a134_0x58cd38,_0x45ba00=(this['config'][_0x4857d0(0x126)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x45ba00[_0x4857d0(0x101)];}[a134_0x58cd38(0x12f)](){const _0x17bf20=a134_0x58cd38,_0x3b8025=(this['config'][_0x17bf20(0x126)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x3b8025['maxFailures']||0x5;;}[a134_0x58cd38(0x120)](){const _0x3fe422=a134_0x58cd38;return this[_0x3fe422(0x12d)];}[a134_0x58cd38(0x102)](_0x3b7fc1){const _0x52fd9e=a134_0x58cd38;this[_0x52fd9e(0x12d)]=!!_0x3b7fc1,this[_0x52fd9e(0xff)]();}['getRerunPreviouslyFailed'](){const _0x2753f2=a134_0x58cd38;return this[_0x2753f2(0x134)];}[a134_0x58cd38(0x107)](_0x427b57){const _0x3f444f=a134_0x58cd38;this[_0x3f444f(0x134)]=!!_0x427b57,this[_0x3f444f(0xff)]();}[a134_0x58cd38(0x106)](){const _0xa1162d=a134_0x58cd38;return this[_0xa1162d(0x108)];}[a134_0x58cd38(0xfe)](_0x14a7a4){const _0x44ef56=a134_0x58cd38;this['skipFlakyAndFailed']=!!_0x14a7a4,this[_0x44ef56(0xff)]();}[a134_0x58cd38(0xff)](){const _0x382ec2=a134_0x58cd38;if(this[_0x382ec2(0x12d)])this[_0x382ec2(0x134)]=![],this[_0x382ec2(0x108)]=![],this[_0x382ec2(0x11e)][_0x382ec2(0xfb)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this['rerunPreviouslyFailed'])this[_0x382ec2(0x12d)]=![],this[_0x382ec2(0x108)]=![],this['testOrdering']['enable'](RERUN_PREVIOUSLY_FAILED);else this[_0x382ec2(0x108)]?(this[_0x382ec2(0x12d)]=![],this['rerunPreviouslyFailed']=![],this[_0x382ec2(0x11e)]['enable'](SKIP_FLAKY_AND_FAILED)):this['testOrdering'][_0x382ec2(0x11f)]();}}[a134_0x58cd38(0x11c)](){const _0x3ebc3a=a134_0x58cd38;return this[_0x3ebc3a(0x11e)][_0x3ebc3a(0x12a)]();}[a134_0x58cd38(0x115)](){const _0x4eb8ef=a134_0x58cd38;if(this['testOrdering'][_0x4eb8ef(0x12a)]())return this[_0x4eb8ef(0x11e)][_0x4eb8ef(0x110)]();return null;}[a134_0x58cd38(0x122)](){const _0x3996a7=a134_0x58cd38,_0x5015d7={};return _0x5015d7[_0x3996a7(0x131)]={'enabled':this[_0x3996a7(0x12c)]()},_0x5015d7['run_previously_failed_first']={'enabled':this['getRunPreviouslyFailedFirst']()},_0x5015d7[_0x3996a7(0x10a)]={'enabled':this[_0x3996a7(0x106)]()},this[_0x3996a7(0xf5)]()&&(_0x5015d7[_0x3996a7(0x125)]={'enabled':!![],'max_retries':this['getRetryCount']()}),this['isAbortBuildOnFailureEnabled']()&&(_0x5015d7[_0x3996a7(0x113)]={'enabled':!![],'max_failures':this[_0x3996a7(0x12f)]()}),_0x5015d7;}}module['exports']=OrchestrationUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a135_0x492895=a135_0x2fc2;(function(_0x5ea94b,_0x15c17b){const _0x53a37e=a135_0x2fc2,_0x1f719=_0x5ea94b();while(!![]){try{const _0x5e760d=parseInt(_0x53a37e(0xbb))/0x1*(parseInt(_0x53a37e(0x95))/0x2)+-parseInt(_0x53a37e(0xa8))/0x3+-parseInt(_0x53a37e(0xac))/0x4*(parseInt(_0x53a37e(0xb5))/0x5)+parseInt(_0x53a37e(0x7a))/0x6*(parseInt(_0x53a37e(0xb7))/0x7)+-parseInt(_0x53a37e(0x90))/0x8*(parseInt(_0x53a37e(0x79))/0x9)+-parseInt(_0x53a37e(0x93))/0xa+-parseInt(_0x53a37e(0xad))/0xb*(-parseInt(_0x53a37e(0x9b))/0xc);if(_0x5e760d===_0x15c17b)break;else _0x1f719['push'](_0x1f719['shift']());}catch(_0x10f68a){_0x1f719['push'](_0x1f719['shift']());}}}(a135_0x5d9f,0xae88a));const https=require('https'),{URL}=require('url'),logger=require('../logger')['winstonLogger'],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a135_0x492895(0xa3)),TAG=a135_0x492895(0x87);function a135_0x2fc2(_0x111cf4,_0x485225){const _0x5d9fbb=a135_0x5d9f();return a135_0x2fc2=function(_0x2fc22d,_0x5832c6){_0x2fc22d=_0x2fc22d-0x79;let _0x934665=_0x5d9fbb[_0x2fc22d];return _0x934665;},a135_0x2fc2(_0x111cf4,_0x485225);}function a135_0x5d9f(){const _0x50dac7=[',\x20buildRunIdentifier=','debug','xncuN','Test\x20added','NTdpC',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','6832608sXsUJk','IDhPy','QoEuR','8946660mMecij','sgRto','104vDfFEg',',\x20status:\x20','OuGAW','body','end','_request','20496ToFpTC',',\x20projectName=','stringify','failedTestsCount','parse','headers','putFailedTests','application/json','./constants','undefined','write','status','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','3569484NpHaCV',']\x20Error\x20in\x20putFailedTests:\x20','BRdnP','statusCode','2818212DtVkFy','11561SyzTkr','sRaXe','uKnlN','stack',']\x20Error\x20in\x20getFailedTestsCount:\x20','PUT','message','wZvyM','5sDihSq','GET','7NkdyxU','Xqglv',']\x20Sending\x20GET\x20to\x20','zzLLR','21809XgdALq','IgAFB','&buildRunIdentifier=','jJmXM','GYxQK','nMkCr','cYaBn','getSplitFiles',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','\x20with\x20headers:\x20','BLldy','9uQLVLe','8573022cBXQTk','error','?buildName=','BROWSERSTACK_TESTHUB_JWT','\x20request\x20to\x20','oczll','\x20and\x20data:\x20','env','efGMo','phWIB',']\x20Sending\x20','getFailedTestsCount','Authorization','RequestUtils','&projectName=','POST'];a135_0x5d9f=function(){return _0x50dac7;};return a135_0x5d9f();}class RequestUtils{static async[a135_0x492895(0x9a)](_0x5779fe,_0x173a33,_0x23a223=null){const _0x19e8d6=a135_0x492895,_0x298959={'xncuN':'data','IDGTb':_0x19e8d6(0x99),'sgRto':function(_0x5a3c9b,_0x436b36){return _0x5a3c9b(_0x436b36);},'IDhPy':'error','GYxQK':function(_0x5a866c,_0x563a81){return _0x5a866c===_0x563a81;},'UlLqK':_0x19e8d6(0x89),'IgAFB':function(_0x2ea6b2,_0x1b8db0){return _0x2ea6b2===_0x1b8db0;},'jJmXM':'PUT','QoEuR':_0x19e8d6(0xa2),'cYaBn':function(_0xe23302,_0x6360c0){return _0xe23302+_0x6360c0;}},_0x2cbdfa=process[_0x19e8d6(0x81)][_0x19e8d6(0x7d)]||'',_0x46d69b={};_0x46d69b[_0x19e8d6(0x86)]='Bearer\x20'+_0x2cbdfa,_0x46d69b['Content-Type']=_0x298959[_0x19e8d6(0x92)];const _0x40eafd=_0x46d69b,{hostname:_0x31de3c,pathname:_0x66e46e,search:_0x55cf18}=new URL(_0x173a33),_0x4d9363={'hostname':_0x31de3c,'path':_0x298959[_0x19e8d6(0xc1)](_0x66e46e,_0x55cf18),'method':_0x5779fe,'headers':_0x40eafd};return logger[_0x19e8d6(0x8b)]('['+TAG+_0x19e8d6(0x84)+_0x5779fe+_0x19e8d6(0x7e)+_0x173a33+_0x19e8d6(0xc4)+JSON[_0x19e8d6(0x9d)](_0x40eafd)+_0x19e8d6(0x80)+JSON[_0x19e8d6(0x9d)](_0x23a223)+'\x20and\x20token:\x20'+_0x2cbdfa),new Promise((_0x46525e,_0x489d3c)=>{const _0x141af0=_0x19e8d6,_0x4cb377={'Xqglv':function(_0x33d944,_0x142eef){const _0x276eee=a135_0x2fc2;return _0x298959[_0x276eee(0x94)](_0x33d944,_0x142eef);}},_0x4dcd07=https['request'](_0x4d9363,_0x275066=>{const _0x59d47b=a135_0x2fc2;let _0x4a5977='';_0x275066['on'](_0x298959[_0x59d47b(0x8c)],_0x377f64=>{_0x4a5977+=_0x377f64;}),_0x275066['on'](_0x298959['IDGTb'],()=>{const _0x122ab8=_0x59d47b;try{const _0x31be0c=_0x4a5977?JSON[_0x122ab8(0x9f)](_0x4a5977):{},_0x19fe3c={};_0x19fe3c[_0x122ab8(0xa6)]=_0x275066[_0x122ab8(0xab)],_0x19fe3c[_0x122ab8(0x98)]=_0x31be0c,_0x19fe3c[_0x122ab8(0xa0)]=_0x275066['headers'],_0x4cb377[_0x122ab8(0xb8)](_0x46525e,_0x19fe3c);}catch(_0x848cdd){logger[_0x122ab8(0x7b)]('['+TAG+_0x122ab8(0xc3)+_0x4a5977+'\x20-\x20'+_0x848cdd['message']+'\x20'+_0x848cdd[_0x122ab8(0xb0)]),_0x4cb377['Xqglv'](_0x489d3c,new Error('Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x848cdd['message']));}});});_0x4dcd07['on'](_0x298959[_0x141af0(0x91)],_0x46632c=>{const _0x2748f5=_0x141af0;logger[_0x2748f5(0x7b)]('['+TAG+']\x20Request\x20failed\x20for\x20'+_0x5779fe+'\x20'+_0x173a33+':\x20'+_0x46632c[_0x2748f5(0xb3)]+'\x20'+_0x46632c[_0x2748f5(0xb0)]),_0x4cb377[_0x2748f5(0xb8)](_0x489d3c,_0x46632c);}),_0x23a223&&(_0x298959[_0x141af0(0xbf)](_0x5779fe,_0x298959['UlLqK'])||_0x298959[_0x141af0(0xbc)](_0x5779fe,_0x298959[_0x141af0(0xbe)]))&&_0x4dcd07[_0x141af0(0xa5)](JSON[_0x141af0(0x9d)](_0x23a223)),_0x4dcd07[_0x141af0(0x99)]();});}static async['postSplitFiles'](_0x362b9b){const _0x4eeba6=a135_0x492895,_0x5b69c3={};_0x5b69c3['ZLYTs']='POST',_0x5b69c3['BRdnP']=function(_0x345b7e,_0x5e1a88){return _0x345b7e===_0x5e1a88;};const _0x377425=_0x5b69c3,_0x4ceaaa=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x566a79=await this['_request'](_0x377425['ZLYTs'],_0x4ceaaa,_0x362b9b);return _0x377425[_0x4eeba6(0xaa)](_0x566a79[_0x4eeba6(0xa6)],0xc8)?logger['debug']('['+TAG+_0x4eeba6(0x8f)+_0x4ceaaa):logger[_0x4eeba6(0x7b)]('['+TAG+']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20'+_0x4ceaaa+':\x20'+JSON[_0x4eeba6(0x9d)](_0x566a79[_0x4eeba6(0x98)])+_0x4eeba6(0x96)+_0x566a79[_0x4eeba6(0xa6)]),_0x566a79;}catch(_0x5642db){logger[_0x4eeba6(0x7b)]('['+TAG+_0x4eeba6(0xa9)+_0x5642db['message']+'\x20'+_0x5642db[_0x4eeba6(0xb0)]);const _0x279d32={};_0x279d32['message']=_0x5642db[_0x4eeba6(0xb3)];const _0x4c35ea={};return _0x4c35ea[_0x4eeba6(0xa6)]=0x1f4,_0x4c35ea[_0x4eeba6(0x98)]=_0x279d32,_0x4c35ea;}}static async[a135_0x492895(0xc2)](_0x27ea52){const _0x5ddd02=a135_0x492895,_0x37b512={};_0x37b512[_0x5ddd02(0xaf)]=_0x5ddd02(0xb6),_0x37b512[_0x5ddd02(0x82)]=function(_0x4c694b,_0x2cb67d){return _0x4c694b===_0x2cb67d;};const _0x427992=_0x37b512;try{const _0x206aa4=await this[_0x5ddd02(0x9a)](_0x427992[_0x5ddd02(0xaf)],_0x27ea52);if(_0x427992[_0x5ddd02(0x82)](_0x206aa4['status'],0xc8))return _0x206aa4[_0x5ddd02(0x98)];return{};}catch(_0x1d1c34){return logger[_0x5ddd02(0x7b)]('['+TAG+_0x5ddd02(0xa9)+_0x1d1c34['message']+'\x20'+_0x1d1c34['stack']),{};}}static async[a135_0x492895(0xa1)](_0xcab97e){const _0x5320b7=a135_0x492895,_0xe2d66f={};_0xe2d66f['phWIB']=_0x5320b7(0xb2),_0xe2d66f[_0x5320b7(0xc5)]=function(_0x25045e,_0x595ec8){return _0x25045e===_0x595ec8;},_0xe2d66f['sRaXe']=_0x5320b7(0x8d);const _0x59dd0c=_0xe2d66f,_0x2b6077=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x103a99=await this['_request'](_0x59dd0c[_0x5320b7(0x83)],_0x2b6077,_0xcab97e);if(_0x59dd0c['BLldy'](_0x103a99[_0x5320b7(0xa6)],0xc8)&&_0x103a99[_0x5320b7(0x98)]&&_0x59dd0c[_0x5320b7(0xc5)](_0x103a99['body'][_0x5320b7(0xb3)],_0x59dd0c[_0x5320b7(0xae)]))return!![];return![];}catch(_0x5aaec1){logger[_0x5320b7(0x7b)]('['+TAG+_0x5320b7(0xa9)+_0x5aaec1[_0x5320b7(0xb3)]+'\x20'+_0x5aaec1[_0x5320b7(0xb0)]);const _0x26a640={};_0x26a640[_0x5320b7(0xb3)]=_0x5aaec1[_0x5320b7(0xb3)];const _0x1d833b={};return _0x1d833b['status']=0x1f4,_0x1d833b[_0x5320b7(0x98)]=_0x26a640,_0x1d833b;}}static async[a135_0x492895(0x85)](_0x59bd0d){const _0x33b20a=a135_0x492895,_0x496c1f={'wZvyM':function(_0x1cfd36,_0x3e0283){return _0x1cfd36||_0x3e0283;},'oczll':_0x33b20a(0xa7),'zzLLR':function(_0x33b1c0,_0x30604f){return _0x33b1c0(_0x30604f);},'OuGAW':function(_0x30260f,_0x574832){return _0x30260f(_0x574832);},'NTdpC':_0x33b20a(0xb6),'Hvmve':function(_0xcfc95e,_0x13a606){return _0xcfc95e===_0x13a606;},'soTkE':function(_0x59aecf,_0x12cecd){return _0x59aecf!==_0x12cecd;},'nMkCr':_0x33b20a(0xa4)},{buildName:_0x4907c5,buildRunIdentifier:_0x461895,projectName:_0xccbb74}=_0x59bd0d;if(_0x496c1f[_0x33b20a(0xb4)](!_0x4907c5,!_0x461895)||!_0xccbb74){logger[_0x33b20a(0x7b)]('['+TAG+']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName='+_0x4907c5+_0x33b20a(0x8a)+_0x461895+_0x33b20a(0x9c)+_0xccbb74);const _0x5da4ba={};_0x5da4ba['message']=_0x496c1f[_0x33b20a(0x7f)];const _0x1799ef={};return _0x1799ef[_0x33b20a(0xa6)]=0x190,_0x1799ef[_0x33b20a(0x98)]=_0x5da4ba,_0x1799ef;}const _0x556f83=_0x33b20a(0x7c)+_0x496c1f[_0x33b20a(0xba)](encodeURIComponent,_0x4907c5)+_0x33b20a(0xbd)+_0x496c1f[_0x33b20a(0xba)](encodeURIComponent,_0x461895)+_0x33b20a(0x88)+_0x496c1f[_0x33b20a(0x97)](encodeURIComponent,_0xccbb74),_0x2ba95b=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x556f83;try{logger[_0x33b20a(0x8b)]('['+TAG+_0x33b20a(0xb9)+_0x2ba95b);let _0x54e4f3=0x0;const _0x390b0d=await this[_0x33b20a(0x9a)](_0x496c1f[_0x33b20a(0x8e)],_0x2ba95b);return _0x496c1f['Hvmve'](_0x390b0d[_0x33b20a(0xa6)],0xc8)&&_0x390b0d['body']&&_0x496c1f['soTkE'](typeof _0x390b0d[_0x33b20a(0x98)][_0x33b20a(0x9e)],_0x496c1f[_0x33b20a(0xc0)])&&(_0x54e4f3=_0x496c1f[_0x33b20a(0xba)](Number,_0x390b0d[_0x33b20a(0x98)][_0x33b20a(0x9e)])),_0x54e4f3;}catch(_0x901cfa){logger['error']('['+TAG+_0x33b20a(0xb1)+_0x901cfa['message']+'\x20'+_0x901cfa[_0x33b20a(0xb0)]);const _0x3ce82a={};_0x3ce82a[_0x33b20a(0xb3)]=_0x901cfa[_0x33b20a(0xb3)];const _0x4bb903={};return _0x4bb903[_0x33b20a(0xa6)]=0x1f4,_0x4bb903[_0x33b20a(0x98)]=_0x3ce82a,_0x4bb903;}}}module['exports']=RequestUtils;
|
|
1
|
+
const a135_0x275eea=a135_0x37a0;(function(_0xd47316,_0x588f9e){const _0x2dcb11=a135_0x37a0,_0x36be2c=_0xd47316();while(!![]){try{const _0x15a2c5=-parseInt(_0x2dcb11(0xba))/0x1*(-parseInt(_0x2dcb11(0xbb))/0x2)+-parseInt(_0x2dcb11(0xc0))/0x3+parseInt(_0x2dcb11(0xe6))/0x4+parseInt(_0x2dcb11(0xe5))/0x5+-parseInt(_0x2dcb11(0xe2))/0x6*(parseInt(_0x2dcb11(0xa1))/0x7)+-parseInt(_0x2dcb11(0xe3))/0x8*(parseInt(_0x2dcb11(0xb4))/0x9)+-parseInt(_0x2dcb11(0x9f))/0xa;if(_0x15a2c5===_0x588f9e)break;else _0x36be2c['push'](_0x36be2c['shift']());}catch(_0x1a6069){_0x36be2c['push'](_0x36be2c['shift']());}}}(a135_0x588e,0x40842));function a135_0x588e(){const _0x3d4b85=[']\x20Error\x20in\x20putFailedTests:\x20','parse',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','data','rvaxu','ksUcL','Content-Type','gCgGQ','&buildRunIdentifier=','ZjjHr','https','application/json','Authorization','KVHhv','CDkwA','request','JURrL','ySJak','WMKzB','DotCG','PUT',']\x20Error\x20in\x20getFailedTestsCount:\x20','yMbWJ','url','error','gVfoc',',\x20buildRunIdentifier=','YeWKk','pQvTj','Test\x20added','7710zOyvvq','195016sxxSJH',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','2594140Lgcaee','466024eeQlcJ','CaWKS','RequestUtils','../logger','Lqgwx','hjNYE','\x20request\x20to\x20','hhIyw','stack','gUnTP','sHfYO','594540BEMPiR','FmVqq','518ImNjHn','hbNmv','GET','headers',']\x20Request\x20failed\x20for\x20','HCkLL','failedTestsCount','debug','POST','ASmxh','write','message','stringify','&projectName=','undefined','status','AbJYo','\x20and\x20token:\x20','env','72plxumz','putFailedTests','postSplitFiles','?buildName=','\x20and\x20data:\x20','DiAWc','4moyqEH','42062TBJlaK','\x20with\x20headers:\x20','dlEaq',',\x20status:\x20','Failed\x20to\x20parse\x20JSON\x20response:\x20','316920jqaerU','statusCode','_request','body'];a135_0x588e=function(){return _0x3d4b85;};return a135_0x588e();}const https=require(a135_0x275eea(0xce)),{URL}=require(a135_0x275eea(0xdb)),logger=require(a135_0x275eea(0xe9))['winstonLogger'],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require('./constants'),TAG=a135_0x275eea(0xe8);function a135_0x37a0(_0xd87136,_0x1325de){const _0x588e27=a135_0x588e();return a135_0x37a0=function(_0x37a088,_0x1c1e51){_0x37a088=_0x37a088-0x9c;let _0x4a5f97=_0x588e27[_0x37a088];return _0x4a5f97;},a135_0x37a0(_0xd87136,_0x1325de);}class RequestUtils{static async[a135_0x275eea(0xc2)](_0x299ca9,_0x50aa76,_0x442e67=null){const _0x4ffbeb=a135_0x275eea,_0x548161={'hbNmv':function(_0x4a56b2,_0x1464b3){return _0x4a56b2(_0x1464b3);},'vTVvC':function(_0x5e086d,_0x14a561){return _0x5e086d(_0x14a561);},'gTpMA':_0x4ffbeb(0xc7),'KVHhv':'end','JURrL':_0x4ffbeb(0xdc),'DiAWc':function(_0x304e59,_0x43da0e){return _0x304e59===_0x43da0e;},'DotCG':'POST','ySJak':function(_0x43d983,_0x4a88e6){return _0x43d983===_0x4a88e6;},'WMKzB':_0x4ffbeb(0xd8),'gCgGQ':_0x4ffbeb(0xcf),'SyBeF':function(_0x39037a,_0x2d6ba8){return _0x39037a+_0x2d6ba8;}},_0x34a9fa=process[_0x4ffbeb(0xb3)]['BROWSERSTACK_TESTHUB_JWT']||'',_0x51cb87={};_0x51cb87[_0x4ffbeb(0xd0)]='Bearer\x20'+_0x34a9fa,_0x51cb87[_0x4ffbeb(0xca)]=_0x548161[_0x4ffbeb(0xcb)];const _0x234530=_0x51cb87,{hostname:_0x1d6911,pathname:_0x5359c2,search:_0x4a9442}=new URL(_0x50aa76),_0x26d548={'hostname':_0x1d6911,'path':_0x548161['SyBeF'](_0x5359c2,_0x4a9442),'method':_0x299ca9,'headers':_0x234530};return logger[_0x4ffbeb(0xa8)]('['+TAG+']\x20Sending\x20'+_0x299ca9+_0x4ffbeb(0xec)+_0x50aa76+_0x4ffbeb(0xbc)+JSON['stringify'](_0x234530)+_0x4ffbeb(0xb8)+JSON[_0x4ffbeb(0xad)](_0x442e67)+_0x4ffbeb(0xb2)+_0x34a9fa),new Promise((_0x44694f,_0x288bec)=>{const _0x293f47=_0x4ffbeb,_0x45a4b0={'VurGv':function(_0x5e1c97,_0x10bd03){return _0x548161['vTVvC'](_0x5e1c97,_0x10bd03);},'esUJF':function(_0xc9a176,_0x1a8056){const _0x2f413a=a135_0x37a0;return _0x548161[_0x2f413a(0xa2)](_0xc9a176,_0x1a8056);},'sHfYO':_0x548161['gTpMA'],'Lqgwx':_0x548161[_0x293f47(0xd1)]},_0x1800ca=https[_0x293f47(0xd3)](_0x26d548,_0x24c880=>{const _0x3b87f3=_0x293f47;let _0x54d08c='';_0x24c880['on'](_0x45a4b0[_0x3b87f3(0x9e)],_0x21ebb6=>{_0x54d08c+=_0x21ebb6;}),_0x24c880['on'](_0x45a4b0[_0x3b87f3(0xea)],()=>{const _0x405231=_0x3b87f3;try{const _0x549c7d=_0x54d08c?JSON[_0x405231(0xc5)](_0x54d08c):{},_0x226c0d={};_0x226c0d[_0x405231(0xb0)]=_0x24c880[_0x405231(0xc1)],_0x226c0d[_0x405231(0xc3)]=_0x549c7d,_0x226c0d[_0x405231(0xa4)]=_0x24c880['headers'],_0x45a4b0['VurGv'](_0x44694f,_0x226c0d);}catch(_0x2add81){logger[_0x405231(0xdc)]('['+TAG+_0x405231(0xe4)+_0x54d08c+'\x20-\x20'+_0x2add81['message']+'\x20'+_0x2add81[_0x405231(0x9c)]),_0x45a4b0['esUJF'](_0x288bec,new Error(_0x405231(0xbf)+_0x2add81[_0x405231(0xac)]));}});});_0x1800ca['on'](_0x548161[_0x293f47(0xd4)],_0x58eb4e=>{const _0xfd47eb=_0x293f47;logger[_0xfd47eb(0xdc)]('['+TAG+_0xfd47eb(0xa5)+_0x299ca9+'\x20'+_0x50aa76+':\x20'+_0x58eb4e[_0xfd47eb(0xac)]+'\x20'+_0x58eb4e[_0xfd47eb(0x9c)]),_0x548161[_0xfd47eb(0xa2)](_0x288bec,_0x58eb4e);}),_0x442e67&&(_0x548161[_0x293f47(0xb9)](_0x299ca9,_0x548161[_0x293f47(0xd7)])||_0x548161[_0x293f47(0xd5)](_0x299ca9,_0x548161[_0x293f47(0xd6)]))&&_0x1800ca[_0x293f47(0xab)](JSON[_0x293f47(0xad)](_0x442e67)),_0x1800ca['end']();});}static async[a135_0x275eea(0xb6)](_0x5502e7){const _0x212787=a135_0x275eea,_0x4f67cc={};_0x4f67cc[_0x212787(0xa0)]=_0x212787(0xa9),_0x4f67cc[_0x212787(0xd2)]=function(_0x402cd6,_0x766d4f){return _0x402cd6===_0x766d4f;};const _0x4cff99=_0x4f67cc,_0x5e0d0e=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x20d449=await this[_0x212787(0xc2)](_0x4cff99[_0x212787(0xa0)],_0x5e0d0e,_0x5502e7);return _0x4cff99[_0x212787(0xd2)](_0x20d449[_0x212787(0xb0)],0xc8)?logger['debug']('['+TAG+']\x20Successfully\x20posted\x20split\x20files\x20to\x20'+_0x5e0d0e):logger[_0x212787(0xdc)]('['+TAG+']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20'+_0x5e0d0e+':\x20'+JSON[_0x212787(0xad)](_0x20d449[_0x212787(0xc3)])+_0x212787(0xbe)+_0x20d449[_0x212787(0xb0)]),_0x20d449;}catch(_0x1e4bac){logger[_0x212787(0xdc)]('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x1e4bac[_0x212787(0xac)]+'\x20'+_0x1e4bac[_0x212787(0x9c)]);const _0x164c73={};_0x164c73[_0x212787(0xac)]=_0x1e4bac['message'];const _0x5f0f93={};return _0x5f0f93[_0x212787(0xb0)]=0x1f4,_0x5f0f93['body']=_0x164c73,_0x5f0f93;}}static async['getSplitFiles'](_0x11dba2){const _0x44caff=a135_0x275eea,_0x10c74b={};_0x10c74b[_0x44caff(0xaa)]=_0x44caff(0xa3),_0x10c74b[_0x44caff(0xeb)]=function(_0x4e572e,_0x522349){return _0x4e572e===_0x522349;};const _0x46984e=_0x10c74b;try{const _0x58e686=await this[_0x44caff(0xc2)](_0x46984e[_0x44caff(0xaa)],_0x11dba2);if(_0x46984e[_0x44caff(0xeb)](_0x58e686[_0x44caff(0xb0)],0xc8))return _0x58e686[_0x44caff(0xc3)];return{};}catch(_0x3c1f62){return logger['error']('['+TAG+_0x44caff(0xc4)+_0x3c1f62[_0x44caff(0xac)]+'\x20'+_0x3c1f62[_0x44caff(0x9c)]),{};}}static async[a135_0x275eea(0xb5)](_0x3866d3){const _0x1e45ee=a135_0x275eea,_0x36c505={};_0x36c505[_0x1e45ee(0xcd)]=_0x1e45ee(0xd8),_0x36c505[_0x1e45ee(0xa6)]=function(_0x204075,_0x1ac40c){return _0x204075===_0x1ac40c;},_0x36c505['hhIyw']=function(_0x2c6e36,_0x50624d){return _0x2c6e36===_0x50624d;},_0x36c505[_0x1e45ee(0xb1)]=_0x1e45ee(0xe1);const _0x306208=_0x36c505,_0x8a26a1=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x58d33b=await this[_0x1e45ee(0xc2)](_0x306208[_0x1e45ee(0xcd)],_0x8a26a1,_0x3866d3);if(_0x306208['HCkLL'](_0x58d33b[_0x1e45ee(0xb0)],0xc8)&&_0x58d33b[_0x1e45ee(0xc3)]&&_0x306208[_0x1e45ee(0xed)](_0x58d33b[_0x1e45ee(0xc3)]['message'],_0x306208[_0x1e45ee(0xb1)]))return!![];return![];}catch(_0x1873f0){logger[_0x1e45ee(0xdc)]('['+TAG+_0x1e45ee(0xc4)+_0x1873f0['message']+'\x20'+_0x1873f0[_0x1e45ee(0x9c)]);const _0x158662={};_0x158662[_0x1e45ee(0xac)]=_0x1873f0['message'];const _0x274e3a={};return _0x274e3a[_0x1e45ee(0xb0)]=0x1f4,_0x274e3a['body']=_0x158662,_0x274e3a;}}static async['getFailedTestsCount'](_0x5d4ecb){const _0x3375c0=a135_0x275eea,_0x391688={'dlEaq':function(_0x31e80b,_0xacd0c9){return _0x31e80b||_0xacd0c9;},'pQvTj':'Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','CaWKS':function(_0x2b8375,_0x27beb2){return _0x2b8375(_0x27beb2);},'gVfoc':function(_0x2e4840,_0x518d38){return _0x2e4840(_0x518d38);},'yMbWJ':_0x3375c0(0xa3),'ksUcL':function(_0xb045a1,_0x490867){return _0xb045a1===_0x490867;},'gUnTP':function(_0x3bc781,_0x436490){return _0x3bc781!==_0x436490;},'YeWKk':_0x3375c0(0xaf),'rvaxu':function(_0x3a7cf7,_0x1a3273){return _0x3a7cf7(_0x1a3273);}},{buildName:_0x5310ba,buildRunIdentifier:_0x134c73,projectName:_0x55a764}=_0x5d4ecb;if(_0x391688[_0x3375c0(0xbd)](!_0x5310ba,!_0x134c73)||!_0x55a764){logger['error']('['+TAG+_0x3375c0(0xc6)+_0x5310ba+_0x3375c0(0xde)+_0x134c73+',\x20projectName='+_0x55a764);const _0x44bf05={};_0x44bf05['message']=_0x391688[_0x3375c0(0xe0)];const _0x4571ad={};return _0x4571ad['status']=0x190,_0x4571ad[_0x3375c0(0xc3)]=_0x44bf05,_0x4571ad;}const _0x3b3554=_0x3375c0(0xb7)+_0x391688[_0x3375c0(0xe7)](encodeURIComponent,_0x5310ba)+_0x3375c0(0xcc)+_0x391688[_0x3375c0(0xdd)](encodeURIComponent,_0x134c73)+_0x3375c0(0xae)+_0x391688[_0x3375c0(0xdd)](encodeURIComponent,_0x55a764),_0x2d0068=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x3b3554;try{logger[_0x3375c0(0xa8)]('['+TAG+']\x20Sending\x20GET\x20to\x20'+_0x2d0068);let _0x5b200b=0x0;const _0x5da053=await this['_request'](_0x391688[_0x3375c0(0xda)],_0x2d0068);return _0x391688[_0x3375c0(0xc9)](_0x5da053[_0x3375c0(0xb0)],0xc8)&&_0x5da053[_0x3375c0(0xc3)]&&_0x391688[_0x3375c0(0x9d)](typeof _0x5da053[_0x3375c0(0xc3)][_0x3375c0(0xa7)],_0x391688[_0x3375c0(0xdf)])&&(_0x5b200b=_0x391688[_0x3375c0(0xc8)](Number,_0x5da053['body'][_0x3375c0(0xa7)])),_0x5b200b;}catch(_0x8feb20){logger[_0x3375c0(0xdc)]('['+TAG+_0x3375c0(0xd9)+_0x8feb20['message']+'\x20'+_0x8feb20[_0x3375c0(0x9c)]);const _0x33bf9f={};_0x33bf9f['message']=_0x8feb20[_0x3375c0(0xac)];const _0x3c4860={};return _0x3c4860[_0x3375c0(0xb0)]=0x1f4,_0x3c4860['body']=_0x33bf9f,_0x3c4860;}}}module['exports']=RequestUtils;
|