browserstack-node-sdk 1.49.12 → 1.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +2 -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_0x3bcfe0=a129_0x280c;(function(_0x8e314b,_0x344836){const _0x3dd5e0=a129_0x280c,_0x3ac7e4=_0x8e314b();while(!![]){try{const _0x222d9a=parseInt(_0x3dd5e0(0x183))/0x1+-parseInt(_0x3dd5e0(0x215))/0x2+parseInt(_0x3dd5e0(0x1a7))/0x3+-parseInt(_0x3dd5e0(0x191))/0x4+parseInt(_0x3dd5e0(0x1f7))/0x5*(-parseInt(_0x3dd5e0(0x1db))/0x6)+parseInt(_0x3dd5e0(0x185))/0x7*(parseInt(_0x3dd5e0(0x1fc))/0x8)+parseInt(_0x3dd5e0(0x17e))/0x9;if(_0x222d9a===_0x344836)break;else _0x3ac7e4['push'](_0x3ac7e4['shift']());}catch(_0x6afb7f){_0x3ac7e4['push'](_0x3ac7e4['shift']());}}}(a129_0x1ffe,0xa5acf));function a129_0x1ffe(){const _0x4f2cb6=['event_type','basename','vlTXg','ERROR_ACCESS_DENIED','null','waitForBuildStatus','BROWSERSTACK_BUILD_RUN_IDENTIFIER','api/v1/event','Sending\x20trace\x20zip\x20for\x20test:\x20','true','YimtL','path','Retry\x20runs\x20exceeded','BIruM','YcERK','LyfUD','app','includes','jwt','length','BROWSERSTACK_TESTHUB_UUID','eventUrl','BS_TESTOPS_BUILD_COMPLETED','./constants','pSovZ','debug','Test_Skipped_Upload','138745RQItUG','TEST_REPORTING_ANALYTICS','BePTd','BS_TESTOPS_BUILD_HASHED_ID','\x20retry\x20runs\x20exceeded','56LtuZxg','getHostInfo','getCiInfo','allow_screenshots','XgZvb','cwd','HNuxO','winstonLogger','hook_run','Test_Start_Upload','ERROR_INVALID_CREDENTIALS','requestQueueHandler','lARfM','status','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','info','error','CBTSessionCreated','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','message','CREDENTIALS_FOR_CRASH_REPORTING','frameworkName','Hook_End_Upload','Hook_Start_Upload','cFgMV','2040594umTXim','env','NzQdJ','toString','util','\x20:\x20','ERROR_SDK_DEPRECATED','nKmvv','Data\x20upload\x20to\x20BrowserStack\x20','hMZzn','buildName','ZlDkr','CYrNt','getGitMetaData','X-BSTACK-TESTOPS','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','browserstackAutomation','lPteI','IsNbe','BROWSERSTACK_TESTHUB_JWT','Build\x20creation\x20successful!','azmpQ','BROWSERSTACK_RERUN',']\x20event\x20successful!','nhlGZ','HookRunStarted','WbqBJ','cQsDo','TjHqN','EXCEPTION\x20IN\x20','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','sendTraceZip','data','6376914pQtMrj','Authorization','headers','pendingUploads','Processing\x20event\x20-\x20\x27','1097296mfFqCh','./utils','214781HziBMj','format','qeSou','test_run_uuid','getAgentVersion','Xynqa','success','JgiJw','GdUMx','yNdzc','SQzNN','Test_End_Upload','2077800yDLuYg','build_hashed_id','Batch-Queue','uploadEventData','username','Bearer\x20','kaGLi','application/json','inspect','WrETg','Content-Type','CBT_Upload','hlDnC','IwzOW','api/v1/builds','tzqIt','JQpze','auSsL','test_run','aQIFu','ZknLh','errorType','1425663AHIsLP','auhSO','projectName','zHIvv','password','launch','statusText','sendEventData','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','qfpBX','getInstance','getLogTag','NvuRv','ZetHl','FkGiA','XylGv','nestedKeyValue','uuid','kVUcq','VsXVl','LsobI','../logger','FATWU','getUserName','cljLx','logs','qwJVE','swISB','OiPTm','start','BS_TESTOPS_JWT','yGjwP','response','ELawd','kCdec','yHeeV','POST','DLvBE','uuhxC','KgyLY','LogCreated','stringify','wPkFJ','exports','gnsLJ','\x20REQUEST\x20TO\x20','TestRunFinished','false','ulDzl','toISOString','max','BS_A11Y_JWT','60SKEmMR'];a129_0x1ffe=function(){return _0x4f2cb6;};return a129_0x1ffe();}const bsSetupHelper=require('../helper'),path=require(a129_0x3bcfe0(0x1e7)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a129_0x3bcfe0(0x184)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a129_0x3bcfe0(0x1f3)),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a129_0x3bcfe0(0x1bc))[a129_0x3bcfe0(0x203)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require('../../helpers/testhub/utils'),util=require(a129_0x3bcfe0(0x219)),constants=require('../../bin/utils/constants');function a129_0x280c(_0x530948,_0x3102f8){const _0x1ffe8b=a129_0x1ffe();return a129_0x280c=function(_0x280cfb,_0x1c72b7){_0x280cfb=_0x280cfb-0x174;let _0x2f3bd1=_0x1ffe8b[_0x280cfb];return _0x2f3bd1;},a129_0x280c(_0x530948,_0x3102f8);}class SessionHandler{static [a129_0x3bcfe0(0x207)]=RequestQueueHandler[a129_0x3bcfe0(0x1b1)]();static async[a129_0x3bcfe0(0x1ac)](_0x14779f,_0x3a4b05){const _0x3790e5=a129_0x3bcfe0,_0x108509={'CYrNt':function(_0x353415,_0x52ea74){return _0x353415||_0x52ea74;},'lARfM':function(_0x21b61f,_0xfea5bc){return _0x21b61f||_0xfea5bc;},'yHeeV':function(_0x3e8382,_0x127d74){return _0x3e8382===_0x127d74;},'YimtL':function(_0xf0ee48,_0x307380){return _0xf0ee48(_0x307380);},'hlDnC':_0x3790e5(0x17b),'qwJVE':_0x3790e5(0x1d6),'aEvfY':'json','lUNzW':function(_0x667417,_0x417b81){return _0x667417(_0x417b81);},'UiPbO':function(_0xb21f5e,_0x3a321f){return _0xb21f5e(_0x3a321f);},'ELawd':function(_0x2a23dd,_0x51de1e){return _0x2a23dd(_0x51de1e);},'vlTXg':function(_0x280646,_0x276d92,_0x318aea,_0x209026,_0x2e7958){return _0x280646(_0x276d92,_0x318aea,_0x209026,_0x2e7958);},'yNdzc':_0x3790e5(0x1cb),'kCdec':_0x3790e5(0x19f),'Xynqa':_0x3790e5(0x229),'YcERK':function(_0x46285b){return _0x46285b();},'yjmUY':_0x3790e5(0x1e5),'ZknLh':_0x3790e5(0x1e0),'WbqBJ':function(_0x2bdf65,_0x36e49c){return _0x2bdf65(_0x36e49c);},'rJTyH':_0x3790e5(0x206),'qfpBX':_0x3790e5(0x1df),'cQsDo':_0x3790e5(0x21b)};logger[_0x3790e5(0x20b)]('Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20'+util[_0x3790e5(0x199)](_0x14779f));const _0x813a69=bsSetupHelper[_0x3790e5(0x1be)](_0x14779f),_0x17e007=bsSetupHelper['getAccessKey'](_0x14779f),_0x5f0d64=_0x108509[_0x3790e5(0x221)](_0x813a69,'')+':'+_0x108509[_0x3790e5(0x208)](_0x17e007,'');if(_0x108509[_0x3790e5(0x1ca)](_0x5f0d64,':'))return _0x108509[_0x3790e5(0x1e6)](debug,_0x108509[_0x3790e5(0x19d)]),process[_0x3790e5(0x216)][_0x3790e5(0x1f2)]=_0x108509[_0x3790e5(0x1c1)],[null,null];let _0x32c32c=![],_0x27bae6=![];if(_0x14779f[_0x3790e5(0x225)]&&_0x14779f[_0x3790e5(0x1ec)])_0x27bae6=!![];else _0x14779f[_0x3790e5(0x225)]&&(_0x32c32c=!![]);try{const _0x43f106={'format':_0x108509['aEvfY'],'project_name':_0x14779f[_0x3790e5(0x1a9)]||'','name':_0x14779f[_0x3790e5(0x21f)]||path[_0x3790e5(0x1dd)](path['resolve'](process[_0x3790e5(0x201)]())),'build_identifier':_0x14779f['buildIdentifier'],'description':_0x14779f['buildDescription']||'','start_time':new Date()[_0x3790e5(0x1d8)](),'tags':_0x108509['lUNzW'](getCustomTags,_0x14779f),'host_info':bsSetupHelper[_0x3790e5(0x1fd)](),'ci_info':bsSetupHelper[_0x3790e5(0x1fe)](),'build_run_identifier':process[_0x3790e5(0x216)][_0x3790e5(0x1e2)],'failed_tests_rerun':process[_0x3790e5(0x216)][_0x3790e5(0x22b)]||![],'version_control':await bsSetupHelper[_0x3790e5(0x222)](),'observability_version':{'frameworkName':_0x3a4b05[_0x3790e5(0x211)],'frameworkVersion':_0x3a4b05['frameworkVersion'],'sdkVersion':bsSetupHelper[_0x3790e5(0x189)]()},'product_map':_0x108509['YimtL'](getProductMap,_0x14779f),'test_orchestration':_0x108509['UiPbO'](getTestOrchestrationBuildStartData,_0x14779f)},_0x1ee9c2={};_0x1ee9c2['username']=_0x813a69,_0x1ee9c2[_0x3790e5(0x1ab)]=_0x17e007;const _0x175621={'auth':_0x1ee9c2,'headers':_0x108509[_0x3790e5(0x1c8)](getDefaultHeaders,![])},_0x377366=await _0x108509[_0x3790e5(0x1de)](nodeRequest,_0x108509[_0x3790e5(0x18e)],_0x108509[_0x3790e5(0x1c9)],_0x43f106,_0x175621);_0x108509['UiPbO'](debug,_0x108509[_0x3790e5(0x18a)]);const _0x920365=_0x377366[_0x3790e5(0x17d)];_0x920365['build_hashed_id']&&(process['env'][_0x3790e5(0x1f0)]=_0x920365[_0x3790e5(0x192)]);if(_0x108509[_0x3790e5(0x1ea)](isTestObservabilitySession)){process['env']['BS_TESTOPS_BUILD_COMPLETED']=_0x108509['yjmUY'];if(_0x920365['jwt']){process[_0x3790e5(0x216)][_0x3790e5(0x1c5)]=_0x920365[_0x3790e5(0x1ee)];const _0x2dd937={};_0x2dd937[_0x3790e5(0x195)]=_0x813a69,_0x2dd937['password']=_0x17e007,process['env'][_0x3790e5(0x210)]=JSON[_0x3790e5(0x1d0)](_0x2dd937);}_0x920365['build_hashed_id']&&(process['env'][_0x3790e5(0x1fa)]=_0x920365[_0x3790e5(0x192)]),_0x920365[_0x3790e5(0x1ff)]&&(process[_0x3790e5(0x216)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x920365[_0x3790e5(0x1ff)][_0x3790e5(0x218)]());}return[_0x377366[_0x3790e5(0x17d)][_0x3790e5(0x1ee)],_0x377366[_0x3790e5(0x17d)][_0x3790e5(0x192)],_0x377366['data'][_0x3790e5(0x1ff)]];}catch(_0x2b0bfc){process[_0x3790e5(0x216)][_0x3790e5(0x1f0)]=_0x108509[_0x3790e5(0x1a5)],process[_0x3790e5(0x216)]['BS_TESTOPS_BUILD_COMPLETED']=_0x108509['qwJVE'],process[_0x3790e5(0x216)][_0x3790e5(0x1c5)]=_0x108509['ZknLh'],process[_0x3790e5(0x216)][_0x3790e5(0x1fa)]=_0x108509['ZknLh'],process[_0x3790e5(0x216)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x108509[_0x3790e5(0x1a5)];_0x2b0bfc[_0x3790e5(0x1c7)]?_0x108509[_0x3790e5(0x177)](debug,_0x3790e5(0x1af)+_0x2b0bfc[_0x3790e5(0x1c7)][_0x3790e5(0x209)]+'\x20'+_0x2b0bfc[_0x3790e5(0x1c7)][_0x3790e5(0x1ad)]+'\x20'+JSON[_0x3790e5(0x1d0)](_0x2b0bfc[_0x3790e5(0x1c7)][_0x3790e5(0x17d)])):_0x108509[_0x3790e5(0x1c8)](debug,_0x3790e5(0x1af)+(_0x2b0bfc['message']||_0x2b0bfc));if(_0x2b0bfc&&_0x2b0bfc['message']){const _0x127b29=_0x2b0bfc[_0x3790e5(0x20f)];switch(_0x2b0bfc[_0x3790e5(0x1a6)]){case _0x108509['rJTyH']:logger['error'](_0x127b29);break;case _0x108509[_0x3790e5(0x1b0)]:logger['info'](_0x127b29);break;case _0x108509[_0x3790e5(0x178)]:logger['error'](_0x127b29);break;default:logger[_0x3790e5(0x20c)](_0x127b29);}}else console['info'](_0x3790e5(0x21d)+constants[_0x3790e5(0x1f8)]+'\x20failed\x20due\x20to\x20'+_0x2b0bfc);return[null,null,null];}}static async[a129_0x3bcfe0(0x1e1)](){const _0x5af77c=a129_0x3bcfe0,_0x28b0c1={'qeSou':_0x5af77c(0x1e5),'NvuRv':_0x5af77c(0x1d6),'cFgMV':function(_0x1412c7,_0x50064e){return _0x1412c7(_0x50064e);}},_0x51fcd8=process['env']['BS_TESTOPS_BUILD_COMPLETED'];if([_0x28b0c1[_0x5af77c(0x187)],_0x28b0c1[_0x5af77c(0x1b3)]][_0x5af77c(0x1ed)](_0x51fcd8))return;while([_0x28b0c1[_0x5af77c(0x187)],_0x28b0c1[_0x5af77c(0x1b3)]][_0x5af77c(0x1ed)](_0x51fcd8)){await _0x28b0c1[_0x5af77c(0x214)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static['getLogTag'](_0x54a45c){const _0x32df05=a129_0x3bcfe0,_0x53941c={};_0x53941c['TjHqN']=_0x32df05(0x205),_0x53941c[_0x32df05(0x1a8)]=_0x32df05(0x190),_0x53941c[_0x32df05(0x22a)]=_0x32df05(0x1f6),_0x53941c['BePTd']='Log_Upload',_0x53941c[_0x32df05(0x1bd)]=_0x32df05(0x213),_0x53941c['zHIvv']=_0x32df05(0x212),_0x53941c[_0x32df05(0x18c)]=_0x32df05(0x19c);const _0x301bdd=_0x53941c,_0x5c9825={};return _0x5c9825['TestRunStarted']=_0x301bdd[_0x32df05(0x179)],_0x5c9825[_0x32df05(0x1d5)]=_0x301bdd[_0x32df05(0x1a8)],_0x5c9825['TestRunSkipped']=_0x301bdd['azmpQ'],_0x5c9825[_0x32df05(0x1cf)]=_0x301bdd[_0x32df05(0x1f9)],_0x5c9825[_0x32df05(0x176)]=_0x301bdd[_0x32df05(0x1bd)],_0x5c9825['HookRunFinished']=_0x301bdd[_0x32df05(0x1aa)],_0x5c9825[_0x32df05(0x20d)]=_0x301bdd['JgiJw'],_0x5c9825[_0x54a45c['event_type']];}static async['sendEventData'](_0x539f5a,_0x430da2=0x0,_0xe94233=null){const _0x425606=a129_0x3bcfe0,_0x4a83a1={'ZePZl':function(_0x4ec487,_0x48cfe6){return _0x4ec487===_0x48cfe6;},'FkGiA':_0x425606(0x17c),'XgZvb':function(_0xecc64d,_0x3e3650){return _0xecc64d!==_0x3e3650;},'ulDzl':_0x425606(0x198),'UOcEH':_0x425606(0x1e5),'FxRcS':function(_0x29c53e,_0xbc8123,_0x50ecc6,_0xadba64,_0x318344){return _0x29c53e(_0xbc8123,_0x50ecc6,_0xadba64,_0x318344);},'HNuxO':_0x425606(0x1cb),'FVkww':function(_0x245a9e,_0x322208,_0xa1295f,_0x206247,_0x324330){return _0x245a9e(_0x322208,_0xa1295f,_0x206247,_0x324330);},'wPkFJ':function(_0x392838,_0x254dfb){return _0x392838(_0x254dfb);},'GdUMx':function(_0x41426e,_0x1390e2){return _0x41426e!==_0x1390e2;},'pSovZ':_0x425606(0x193),'uuhxC':function(_0x2f797a,_0x16e6a4){return _0x2f797a-_0x16e6a4;},'LsobI':function(_0x3a65c4,_0x324112){return _0x3a65c4===_0x324112;},'gnsLJ':_0x425606(0x1e3),'yGjwP':_0x425606(0x18b),'kaGLi':function(_0x359d24,_0x389254){return _0x359d24(_0x389254);},'aQIFu':function(_0x43509a,_0x4f3f3c){return _0x43509a!==_0x4f3f3c;},'ZlDkr':function(_0x53bf58,_0x448adf){return _0x53bf58===_0x448adf;},'kVUcq':'error'};_0x4a83a1['ZePZl'](_0xe94233,_0x4a83a1[_0x425606(0x1b5)])&&logger['debug'](_0x425606(0x1e4)+_0x539f5a[_0x425606(0x1c0)][0x0][_0x425606(0x188)]);const _0x115b8c=await this[_0x425606(0x1b2)](_0x539f5a);let _0x233f7c=_0x539f5a,_0x43c829=EVENT_ENDPOINT;_0x4a83a1[_0x425606(0x200)](_0xe94233,_0x4a83a1['FkGiA'])&&this[_0x425606(0x207)][_0x425606(0x1c4)]();const {shouldProceed:_0x245f7f,proceedWithData:_0x4f0677,proceedWithUrl:_0xa9d3}=this[_0x425606(0x207)]['add'](_0x539f5a);if(!_0x245f7f)return;else _0x4f0677&&(_0x233f7c=_0x4f0677,_0x43c829=_0xa9d3);const _0x41a81c={};_0x41a81c[_0x425606(0x17f)]=_0x425606(0x196)+process['env'][_0x425606(0x228)],_0x41a81c[_0x425606(0x19b)]=_0x4a83a1[_0x425606(0x1d7)],_0x41a81c[_0x425606(0x223)]=_0x4a83a1['UOcEH'];const _0x3a7b59={};_0x3a7b59[_0x425606(0x180)]=_0x41a81c;const _0x2ca25a=_0x3a7b59;let _0x2307de;try{_0x4a83a1['ZePZl'](_0xe94233,_0x4a83a1[_0x425606(0x1b5)])?(logger[_0x425606(0x1f5)](_0x425606(0x20a)+_0x539f5a?.[_0x425606(0x1c0)][0x0]?.['test_run_uuid']),_0x2307de=await _0x4a83a1['FxRcS'](asyncAwaitNodeReq,_0x4a83a1[_0x425606(0x202)],_0x43c829,_0x233f7c,_0x2ca25a),logger[_0x425606(0x1f5)](_0x425606(0x224)+_0x539f5a?.[_0x425606(0x1c0)][0x0]?.[_0x425606(0x188)])):_0x2307de=await _0x4a83a1['FVkww'](nodeRequest,_0x4a83a1['HNuxO'],_0x43c829,_0x233f7c,_0x2ca25a);if(_0x2307de[_0x425606(0x17d)][_0x425606(0x20c)]){const _0xa5ac86={};_0xa5ac86[_0x425606(0x20f)]=_0x2307de[_0x425606(0x17d)]['error'];throw _0xa5ac86;}else{_0x4a83a1[_0x425606(0x1d1)](debug,(_0x4a83a1[_0x425606(0x18d)](_0x43c829,this['requestQueueHandler'][_0x425606(0x1f1)])?_0x115b8c:_0x4a83a1[_0x425606(0x1f4)])+'['+_0x430da2+_0x425606(0x174)),this[_0x425606(0x207)]['pendingUploads']=Math['max'](0x0,_0x4a83a1[_0x425606(0x1cd)](this[_0x425606(0x207)][_0x425606(0x181)],_0x4a83a1[_0x425606(0x1bb)](_0x43c829,_0x4a83a1[_0x425606(0x1d3)])?0x1:_0x233f7c[_0x425606(0x1ef)]));const _0x236ba5={};return _0x236ba5[_0x425606(0x209)]=_0x4a83a1[_0x425606(0x1c6)],_0x236ba5[_0x425606(0x20f)]='',_0x236ba5;}}catch(_0x256a39){_0x256a39['response']?_0x4a83a1[_0x425606(0x197)](debug,_0x425606(0x17a)+(_0x4a83a1[_0x425606(0x1a4)](_0x43c829,this[_0x425606(0x207)][_0x425606(0x1f1)])?_0x115b8c:_0x4a83a1[_0x425606(0x1f4)])+_0x425606(0x1d4)+constants[_0x425606(0x1f8)]+'\x20:\x20'+_0x256a39['response'][_0x425606(0x209)]+'\x20'+_0x256a39[_0x425606(0x1c7)][_0x425606(0x1ad)]+'\x20'+util[_0x425606(0x186)](_0x256a39['response'][_0x425606(0x17d)])):_0x4a83a1[_0x425606(0x1d1)](debug,_0x425606(0x17a)+(_0x4a83a1[_0x425606(0x1a4)](_0x43c829,this[_0x425606(0x207)]['eventUrl'])?_0x115b8c:_0x4a83a1[_0x425606(0x1f4)])+_0x425606(0x1d4)+constants[_0x425606(0x1f8)]+_0x425606(0x21a)+util[_0x425606(0x186)](_0x256a39));this[_0x425606(0x207)][_0x425606(0x181)]=Math[_0x425606(0x1d9)](0x0,_0x4a83a1[_0x425606(0x1cd)](this[_0x425606(0x207)]['pendingUploads'],_0x4a83a1[_0x425606(0x220)](_0x43c829,_0x4a83a1[_0x425606(0x1d3)])?0x1:_0x233f7c[_0x425606(0x1ef)]));const _0x4f08a5={};return _0x4f08a5['status']=_0x4a83a1[_0x425606(0x1b9)],_0x4f08a5['message']=_0x256a39[_0x425606(0x20f)]||(_0x256a39[_0x425606(0x1c7)]?_0x256a39['response'][_0x425606(0x209)]+':'+_0x256a39[_0x425606(0x1c7)][_0x425606(0x1ad)]:_0x256a39),_0x4f08a5;}}static async[a129_0x3bcfe0(0x194)](_0x37083d,_0x350d5d=0x0){const _0x199e7f=a129_0x3bcfe0,_0x41111c={'BIruM':function(_0x1dcb29,_0x7961cd){return _0x1dcb29+_0x7961cd;},'ZetHl':function(_0xf5545d,_0x27a893){return _0xf5545d(_0x27a893);},'VsXVl':_0x199e7f(0x1a3),'JQpze':_0x199e7f(0x1b8),'NzQdJ':_0x199e7f(0x204),'kgJGo':function(_0x43e553,_0x2c1a80,_0x4ad2e2){return _0x43e553(_0x2c1a80,_0x4ad2e2);},'cljLx':_0x199e7f(0x194),'SQzNN':function(_0x5655a6,_0x201814){return _0x5655a6===_0x201814;},'lPteI':function(_0x4d766a,_0x2aa9d7){return _0x4d766a!==_0x2aa9d7;},'swISB':_0x199e7f(0x1e0),'KMibc':function(_0x487169,_0xfac42e){return _0x487169===_0xfac42e;},'DLvBE':_0x199e7f(0x1e5),'nKmvv':function(_0x5ee3e1){return _0x5ee3e1();},'WrETg':function(_0x2ddf69,_0x4b07aa){return _0x2ddf69===_0x4b07aa;},'fhMiE':function(_0x27558e,_0x201b97){return _0x27558e(_0x201b97);},'KgyLY':function(_0x2819e0,_0x4d3fbd){return _0x2819e0-_0x4d3fbd;},'OiPTm':'error','auSsL':_0x199e7f(0x20e),'IsNbe':function(_0x19fb5b,_0x4d4d05){return _0x19fb5b>=_0x4d4d05;},'LyfUD':function(_0x148f55,_0x367755){return _0x148f55(_0x367755);},'IwzOW':function(_0x496a2b,_0x557ce8){return _0x496a2b!==_0x557ce8;},'nhlGZ':_0x199e7f(0x1e8),'hMZzn':function(_0x5e2529,_0x18f35a){return _0x5e2529!==_0x18f35a;},'XylGv':'false','tzqIt':function(_0x2dc5de,_0x2d1faf,_0x3e268){return _0x2dc5de(_0x2d1faf,_0x3e268);}},_0xfd0f5d=this[_0x199e7f(0x1b2)](_0x37083d);_0x41111c[_0x199e7f(0x1b4)](trace,_0x199e7f(0x182)+_0x37083d[_0x199e7f(0x1dc)]+'\x27\x20'+(bsSetupHelper[_0x199e7f(0x1b7)](_0x37083d,[_0x41111c[_0x199e7f(0x1ba)],_0x41111c[_0x199e7f(0x1a1)]])||bsSetupHelper[_0x199e7f(0x1b7)](_0x37083d,[_0x41111c[_0x199e7f(0x217)],_0x41111c['JQpze']])));if(!_0x41111c['kgJGo'](shouldProcessEventForTesthub,_0x37083d[_0x199e7f(0x1dc)],_0x41111c[_0x199e7f(0x1bf)]))return;_0x41111c[_0x199e7f(0x18f)](_0x350d5d,0x0)&&process['env'][_0x199e7f(0x228)]&&_0x41111c[_0x199e7f(0x226)](process[_0x199e7f(0x216)][_0x199e7f(0x228)],_0x41111c[_0x199e7f(0x1c2)])&&(this['requestQueueHandler'][_0x199e7f(0x181)]+=0x1);if(_0x41111c['KMibc'](process['env'][_0x199e7f(0x1f2)],_0x41111c[_0x199e7f(0x1cc)])||process[_0x199e7f(0x216)][_0x199e7f(0x1da)]||_0x41111c[_0x199e7f(0x21c)](isPercyBuild)){if(_0x41111c[_0x199e7f(0x19a)](process['env'][_0x199e7f(0x228)],_0x41111c[_0x199e7f(0x1c2)])){_0x41111c['fhMiE'](debug,_0x199e7f(0x17a)+_0xfd0f5d+_0x199e7f(0x1d4)+constants[_0x199e7f(0x1f8)]+'\x20:\x20missing\x20authentication\x20token'),this[_0x199e7f(0x207)]['pendingUploads']=Math[_0x199e7f(0x1d9)](0x0,_0x41111c[_0x199e7f(0x1ce)](this[_0x199e7f(0x207)][_0x199e7f(0x181)],0x1));const _0x5c72da={};return _0x5c72da['status']=_0x41111c[_0x199e7f(0x1c3)],_0x5c72da[_0x199e7f(0x20f)]=_0x41111c[_0x199e7f(0x1a2)],_0x5c72da;}return await this[_0x199e7f(0x1ae)](_0x37083d,_0x350d5d);}else{if(_0x41111c[_0x199e7f(0x227)](_0x350d5d,0x5)){_0x41111c[_0x199e7f(0x1eb)](debug,'EXCEPTION\x20IN\x20'+_0xfd0f5d+_0x199e7f(0x1d4)+constants[_0x199e7f(0x1f8)]+'\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20'+_0xfd0f5d+_0x199e7f(0x1fb));_0x41111c[_0x199e7f(0x19e)](process[_0x199e7f(0x216)][_0x199e7f(0x228)],_0x41111c['swISB'])&&(this[_0x199e7f(0x207)][_0x199e7f(0x181)]=Math[_0x199e7f(0x1d9)](0x0,_0x41111c[_0x199e7f(0x1ce)](this['requestQueueHandler'][_0x199e7f(0x181)],0x1)));const _0x23fbf5={};return _0x23fbf5[_0x199e7f(0x209)]=_0x41111c[_0x199e7f(0x1c3)],_0x23fbf5[_0x199e7f(0x20f)]=_0x41111c[_0x199e7f(0x175)],_0x23fbf5;}else _0x41111c[_0x199e7f(0x21e)](process[_0x199e7f(0x216)][_0x199e7f(0x1f2)],_0x41111c[_0x199e7f(0x1b6)])&&_0x41111c[_0x199e7f(0x1a0)](setTimeout,()=>{const _0x3105c1=_0x199e7f;this[_0x3105c1(0x194)](_0x37083d,_0x41111c[_0x3105c1(0x1e9)](_0x350d5d,0x1));},0x3e8);}}}module[a129_0x3bcfe0(0x1d2)]=SessionHandler;
|
|
1
|
+
function a129_0xb0e0(){const _0x318741=['EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','Batch-Queue','resolve','buildName','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','pQfsU','\x20REQUEST\x20TO\x20','Authorization','ecJrC','WutOg','TdSoF','BS_TESTOPS_BUILD_HASHED_ID','HookRunStarted','wIFgH','ERROR_INVALID_CREDENTIALS','length','EsefV','xwqwC','X-BSTACK-TESTOPS','hdqOT','build_hashed_id','Test_End_Upload','trxEq','fedil','QnuQj','frameworkName','api/v1/builds',']\x20event\x20successful!','BS_TESTOPS_ALLOW_SCREENSHOTS','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','ICJnn','LogCreated','toString','zVmEE','Retry\x20runs\x20exceeded','info','debug','Processing\x20event\x20-\x20\x27','Log_Upload','ERROR_SDK_DEPRECATED','./requestQueueHandler','eventUrl','max','pkRqG','UzzDK','getInstance','username','6YebAqb','206790IOkThx','Hook_End_Upload','path','getAccessKey','jwt','util','browserstackAutomation','buildDescription','toISOString','uploadEventData','Bearer\x20','BS_TESTOPS_BUILD_COMPLETED','event_type','Poywe','password','../logger','nhofd','jlCwb','tFpEh','includes','format','AbxNW','\x20:\x20','BROWSERSTACK_TESTHUB_JWT','errorType','requestQueueHandler','TEST_REPORTING_ANALYTICS','PMhJK','BROWSERSTACK_TESTHUB_UUID','yHyiO','false','getLogTag','inspect','\x20:\x20missing\x20authentication\x20token','basename','../../helpers/testhub/utils','./constants','null','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','YLvsH','FzIXI','hook_run','winstonLogger','success','sendTraceZip','136dxvLSv','gSGxD','logs','Content-Type','error','IPYmj','allow_screenshots','data','Sending\x20trace\x20zip\x20for\x20test:\x20','env','app','56mrQrxe','nestedKeyValue','uuid','BRoQo','Data\x20upload\x20to\x20BrowserStack\x20','stringify','TestRunSkipped','JRyHB','sendEventData','hfAKM','iDGqz','vMorH','2999590sJcibs','projectName','PCLOe','6430750nACIMB','ucyzG','GXiEZ','./utils','POST','test_run','lXgXD','TestRunStarted','getUserName','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','CawmW','uNGkG','6039100MKajAP','application/json','657cgKjfo','yuToo','hFTYx','qcOQr','status','bmEXe','true','GMWpl','237jjcvvU','HookRunFinished','eFhLJ','RTENj','add','start','message','zyJPs','10702gOfFKh','Hook_Start_Upload','BS_TESTOPS_JWT','SmklE','LtrZT','pendingUploads','buildIdentifier','TRUUQ','CBT_Upload','response','BROWSERSTACK_BUILD_RUN_IDENTIFIER','../../bin/utils/constants','Build\x20creation\x20successful!','dPxRq','statusText','ouAnd','BROWSERSTACK_RERUN','4027968mOfihS','getCiInfo','QonqE','headers','EXCEPTION\x20IN\x20','\x20failed\x20due\x20to\x20','getAgentVersion','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','YVOKc','VIZQG'];a129_0xb0e0=function(){return _0x318741;};return a129_0xb0e0();}const a129_0x57e204=a129_0x5139;(function(_0x1dfbda,_0x3f2a43){const _0x2e7e4e=a129_0x5139,_0x9ebc4b=_0x1dfbda();while(!![]){try{const _0x65cf76=-parseInt(_0x2e7e4e(0x1e6))/0x1*(-parseInt(_0x2e7e4e(0x1ee))/0x2)+-parseInt(_0x2e7e4e(0x239))/0x3*(-parseInt(_0x2e7e4e(0x1c1))/0x4)+-parseInt(_0x2e7e4e(0x1dc))/0x5*(parseInt(_0x2e7e4e(0x238))/0x6)+parseInt(_0x2e7e4e(0x1ff))/0x7+-parseInt(_0x2e7e4e(0x1b6))/0x8*(parseInt(_0x2e7e4e(0x1de))/0x9)+-parseInt(_0x2e7e4e(0x1d0))/0xa+-parseInt(_0x2e7e4e(0x1cd))/0xb;if(_0x65cf76===_0x3f2a43)break;else _0x9ebc4b['push'](_0x9ebc4b['shift']());}catch(_0x2891ca){_0x9ebc4b['push'](_0x9ebc4b['shift']());}}}(a129_0xb0e0,0xa6f1d));const bsSetupHelper=require('../helper'),path=require(a129_0x57e204(0x23b)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a129_0x57e204(0x1d3)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a129_0x57e204(0x25d)),RequestQueueHandler=require(a129_0x57e204(0x231)),logger=require(a129_0x57e204(0x248))[a129_0x57e204(0x263)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a129_0x57e204(0x25c)),util=require(a129_0x57e204(0x23e)),constants=require(a129_0x57e204(0x1f9));function a129_0x5139(_0x22e388,_0x54f55d){const _0xb0e0eb=a129_0xb0e0();return a129_0x5139=function(_0x513968,_0x36f3a5){_0x513968=_0x513968-0x1b6;let _0x25e9eb=_0xb0e0eb[_0x513968];return _0x25e9eb;},a129_0x5139(_0x22e388,_0x54f55d);}class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler[a129_0x57e204(0x236)]();static async['launch'](_0x3bb24f,_0x4e609c){const _0x281466=a129_0x57e204,_0x2f1a4d={'MUATK':function(_0xa86d98,_0x2a3476){return _0xa86d98||_0x2a3476;},'eFhLJ':function(_0x332a4b,_0x4fc0c2){return _0x332a4b||_0x4fc0c2;},'QnuQj':function(_0x5b5c03,_0x585bcd){return _0x5b5c03===_0x585bcd;},'UzzDK':function(_0x4c64d3,_0x5c3183){return _0x4c64d3(_0x5c3183);},'lXgXD':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','ucyzG':_0x281466(0x257),'HsbSG':'json','CawmW':function(_0x1aeb3e,_0x48f0f2){return _0x1aeb3e(_0x48f0f2);},'yHyiO':function(_0x193021,_0x117c39){return _0x193021(_0x117c39);},'AOJJE':function(_0x248a0f,_0x1c9547,_0x5cbbe1,_0x910427,_0x4620bf){return _0x248a0f(_0x1c9547,_0x5cbbe1,_0x910427,_0x4620bf);},'wIFgH':_0x281466(0x1d4),'jlCwb':_0x281466(0x223),'VdCdQ':function(_0x30e3d2,_0x1e477a){return _0x30e3d2(_0x1e477a);},'TRUUQ':_0x281466(0x1fa),'AbxNW':function(_0x1efa42){return _0x1efa42();},'yuToo':_0x281466(0x1e4),'DwSoO':'null','NFEAS':function(_0x1d82c7,_0x13bb7b){return _0x1d82c7(_0x13bb7b);},'qTaZv':_0x281466(0x217),'EsefV':'ERROR_ACCESS_DENIED','gSGxD':_0x281466(0x230)};logger[_0x281466(0x22c)](_0x281466(0x20d)+util[_0x281466(0x259)](_0x3bb24f));const _0x5287be=bsSetupHelper[_0x281466(0x1d8)](_0x3bb24f),_0x5d1dd8=bsSetupHelper[_0x281466(0x23c)](_0x3bb24f),_0xf06f92=_0x2f1a4d['MUATK'](_0x5287be,'')+':'+_0x2f1a4d[_0x281466(0x1e8)](_0x5d1dd8,'');if(_0x2f1a4d[_0x281466(0x221)](_0xf06f92,':'))return _0x2f1a4d['UzzDK'](debug,_0x2f1a4d[_0x281466(0x1d6)]),process[_0x281466(0x1bf)][_0x281466(0x244)]=_0x2f1a4d[_0x281466(0x1d1)],[null,null];let _0x50465e=![],_0x1219d0=![];if(_0x3bb24f['browserstackAutomation']&&_0x3bb24f[_0x281466(0x1c0)])_0x1219d0=!![];else _0x3bb24f[_0x281466(0x23f)]&&(_0x50465e=!![]);try{const _0x644734={'format':_0x2f1a4d['HsbSG'],'project_name':_0x3bb24f[_0x281466(0x1ce)]||'','name':_0x3bb24f[_0x281466(0x20c)]||path[_0x281466(0x25b)](path[_0x281466(0x20b)](process['cwd']())),'build_identifier':_0x3bb24f[_0x281466(0x1f4)],'description':_0x3bb24f[_0x281466(0x240)]||'','start_time':new Date()[_0x281466(0x241)](),'tags':_0x2f1a4d[_0x281466(0x1da)](getCustomTags,_0x3bb24f),'host_info':bsSetupHelper['getHostInfo'](),'ci_info':bsSetupHelper[_0x281466(0x200)](),'build_run_identifier':process[_0x281466(0x1bf)][_0x281466(0x1f8)],'failed_tests_rerun':process[_0x281466(0x1bf)][_0x281466(0x1fe)]||![],'version_control':await bsSetupHelper['getGitMetaData'](),'observability_version':{'frameworkName':_0x4e609c[_0x281466(0x222)],'frameworkVersion':_0x4e609c['frameworkVersion'],'sdkVersion':bsSetupHelper[_0x281466(0x205)]()},'product_map':_0x2f1a4d[_0x281466(0x256)](getProductMap,_0x3bb24f),'test_orchestration':_0x2f1a4d[_0x281466(0x256)](getTestOrchestrationBuildStartData,_0x3bb24f)},_0x1c2b8a={};_0x1c2b8a[_0x281466(0x237)]=_0x5287be,_0x1c2b8a[_0x281466(0x247)]=_0x5d1dd8;const _0x2c52b8={'auth':_0x1c2b8a,'headers':_0x2f1a4d[_0x281466(0x235)](getDefaultHeaders,![])},_0x2ac7ce=await _0x2f1a4d['AOJJE'](nodeRequest,_0x2f1a4d[_0x281466(0x216)],_0x2f1a4d[_0x281466(0x24a)],_0x644734,_0x2c52b8);_0x2f1a4d['VdCdQ'](debug,_0x2f1a4d[_0x281466(0x1f5)]);const _0x1904f8=_0x2ac7ce[_0x281466(0x1bd)];_0x1904f8['build_hashed_id']&&(process['env'][_0x281466(0x255)]=_0x1904f8[_0x281466(0x21d)]);if(_0x2f1a4d[_0x281466(0x24e)](isTestObservabilitySession)){process[_0x281466(0x1bf)][_0x281466(0x244)]=_0x2f1a4d[_0x281466(0x1df)];if(_0x1904f8[_0x281466(0x23d)]){process[_0x281466(0x1bf)][_0x281466(0x1f0)]=_0x1904f8[_0x281466(0x23d)];const _0x206ecd={};_0x206ecd['username']=_0x5287be,_0x206ecd[_0x281466(0x247)]=_0x5d1dd8,process[_0x281466(0x1bf)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x281466(0x1c6)](_0x206ecd);}_0x1904f8[_0x281466(0x21d)]&&(process[_0x281466(0x1bf)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x1904f8['build_hashed_id']),_0x1904f8['allow_screenshots']&&(process[_0x281466(0x1bf)][_0x281466(0x225)]=_0x1904f8[_0x281466(0x1bc)][_0x281466(0x229)]());}return[_0x2ac7ce[_0x281466(0x1bd)][_0x281466(0x23d)],_0x2ac7ce[_0x281466(0x1bd)]['build_hashed_id'],_0x2ac7ce['data'][_0x281466(0x1bc)]];}catch(_0x39a03c){process[_0x281466(0x1bf)]['BROWSERSTACK_TESTHUB_UUID']=_0x2f1a4d['DwSoO'],process[_0x281466(0x1bf)][_0x281466(0x244)]=_0x2f1a4d['ucyzG'],process[_0x281466(0x1bf)]['BS_TESTOPS_JWT']=_0x2f1a4d['DwSoO'],process['env'][_0x281466(0x214)]=_0x2f1a4d['DwSoO'],process[_0x281466(0x1bf)][_0x281466(0x225)]=_0x2f1a4d['DwSoO'];_0x39a03c['response']?_0x2f1a4d['NFEAS'](debug,_0x281466(0x209)+_0x39a03c[_0x281466(0x1f7)][_0x281466(0x1e2)]+'\x20'+_0x39a03c['response'][_0x281466(0x1fc)]+'\x20'+JSON[_0x281466(0x1c6)](_0x39a03c['response']['data'])):_0x2f1a4d[_0x281466(0x235)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+(_0x39a03c['message']||_0x39a03c));if(_0x39a03c&&_0x39a03c[_0x281466(0x1ec)]){const _0x547539=_0x39a03c[_0x281466(0x1ec)];switch(_0x39a03c[_0x281466(0x251)]){case _0x2f1a4d['qTaZv']:logger[_0x281466(0x1ba)](_0x547539);break;case _0x2f1a4d[_0x281466(0x219)]:logger[_0x281466(0x22c)](_0x547539);break;case _0x2f1a4d[_0x281466(0x1b7)]:logger[_0x281466(0x1ba)](_0x547539);break;default:logger['error'](_0x547539);}}else console[_0x281466(0x22c)](_0x281466(0x1c5)+constants[_0x281466(0x253)]+_0x281466(0x204)+_0x39a03c);return[null,null,null];}}static async['waitForBuildStatus'](){const _0x68b7a0=a129_0x57e204,_0x3838ee={'qcOQr':'true','ouAnd':'false','IPYmj':function(_0x267176,_0x221297){return _0x267176(_0x221297);}},_0x5aab23=process[_0x68b7a0(0x1bf)][_0x68b7a0(0x244)];if([_0x3838ee[_0x68b7a0(0x1e1)],_0x3838ee[_0x68b7a0(0x1fd)]][_0x68b7a0(0x24c)](_0x5aab23))return;while([_0x3838ee[_0x68b7a0(0x1e1)],_0x3838ee[_0x68b7a0(0x1fd)]]['includes'](_0x5aab23)){await _0x3838ee[_0x68b7a0(0x1bb)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a129_0x57e204(0x258)](_0xe9a1a5){const _0x2e71aa=a129_0x57e204,_0x45237a={};_0x45237a[_0x2e71aa(0x260)]='Test_Start_Upload',_0x45237a[_0x2e71aa(0x24b)]=_0x2e71aa(0x21e),_0x45237a[_0x2e71aa(0x22a)]='Test_Skipped_Upload',_0x45237a['aVyqQ']=_0x2e71aa(0x22f),_0x45237a[_0x2e71aa(0x21f)]=_0x2e71aa(0x1ef),_0x45237a[_0x2e71aa(0x212)]=_0x2e71aa(0x23a),_0x45237a[_0x2e71aa(0x1e5)]=_0x2e71aa(0x1f6);const _0x25f16f=_0x45237a,_0x178381={};return _0x178381[_0x2e71aa(0x1d7)]=_0x25f16f[_0x2e71aa(0x260)],_0x178381['TestRunFinished']=_0x25f16f[_0x2e71aa(0x24b)],_0x178381[_0x2e71aa(0x1c7)]=_0x25f16f[_0x2e71aa(0x22a)],_0x178381[_0x2e71aa(0x228)]=_0x25f16f['aVyqQ'],_0x178381[_0x2e71aa(0x215)]=_0x25f16f[_0x2e71aa(0x21f)],_0x178381[_0x2e71aa(0x1e7)]=_0x25f16f[_0x2e71aa(0x212)],_0x178381['CBTSessionCreated']=_0x25f16f[_0x2e71aa(0x1e5)],_0x178381[_0xe9a1a5[_0x2e71aa(0x245)]];}static async['sendEventData'](_0x18cb07,_0x58e1c0=0x0,_0x1854fe=null){const _0x4527da=a129_0x57e204,_0x519810={'PCLOe':function(_0x1fa722,_0x58dcff){return _0x1fa722===_0x58dcff;},'LtrZT':_0x4527da(0x265),'SmklE':function(_0x59cfa5,_0x14b8a6){return _0x59cfa5!==_0x14b8a6;},'BvGlE':_0x4527da(0x1dd),'RTENj':_0x4527da(0x1e4),'PMhJK':function(_0x3dc3b3,_0x1d2373){return _0x3dc3b3===_0x1d2373;},'FpbCj':function(_0x83ed9e,_0x262eb3,_0xea85e8,_0x2b494f,_0x19154c){return _0x83ed9e(_0x262eb3,_0xea85e8,_0x2b494f,_0x19154c);},'TdSoF':_0x4527da(0x1d4),'zyJPs':function(_0x40c000,_0x4d89aa,_0x1ce3f8,_0x1f8421,_0x180de1){return _0x40c000(_0x4d89aa,_0x1ce3f8,_0x1f8421,_0x180de1);},'bmEXe':function(_0x4f3a3c,_0x1b01b8){return _0x4f3a3c(_0x1b01b8);},'BRoQo':function(_0x3b3e41,_0x5e3f10){return _0x3b3e41!==_0x5e3f10;},'iDGqz':_0x4527da(0x20a),'pkRqG':function(_0x18d2c4,_0x5e2857){return _0x18d2c4-_0x5e2857;},'uNGkG':'api/v1/event','ISKUQ':_0x4527da(0x264),'WnDLj':function(_0x506f88,_0x5577ab){return _0x506f88(_0x5577ab);},'hfAKM':function(_0x5a2138,_0x8415c2){return _0x5a2138-_0x8415c2;},'JRyHB':_0x4527da(0x1ba)};_0x519810[_0x4527da(0x1cf)](_0x1854fe,_0x519810[_0x4527da(0x1f2)])&&logger[_0x4527da(0x22d)](_0x4527da(0x1be)+_0x18cb07[_0x4527da(0x1b8)][0x0]['test_run_uuid']);const _0x55b25a=await this[_0x4527da(0x258)](_0x18cb07);let _0xb18b9c=_0x18cb07,_0x165a2a=EVENT_ENDPOINT;_0x519810[_0x4527da(0x1f1)](_0x1854fe,_0x519810[_0x4527da(0x1f2)])&&this['requestQueueHandler'][_0x4527da(0x1eb)]();const {shouldProceed:_0x1a816d,proceedWithData:_0x2a21ca,proceedWithUrl:_0xf89cc8}=this[_0x4527da(0x252)][_0x4527da(0x1ea)](_0x18cb07);if(!_0x1a816d)return;else _0x2a21ca&&(_0xb18b9c=_0x2a21ca,_0x165a2a=_0xf89cc8);const _0x2f1dbd={};_0x2f1dbd[_0x4527da(0x210)]=_0x4527da(0x243)+process[_0x4527da(0x1bf)][_0x4527da(0x250)],_0x2f1dbd[_0x4527da(0x1b9)]=_0x519810['BvGlE'],_0x2f1dbd[_0x4527da(0x21b)]=_0x519810[_0x4527da(0x1e9)];const _0xb8e4b7={};_0xb8e4b7[_0x4527da(0x202)]=_0x2f1dbd;const _0x2de79c=_0xb8e4b7;let _0x555b1f;try{_0x519810[_0x4527da(0x254)](_0x1854fe,_0x519810[_0x4527da(0x1f2)])?(logger['debug'](_0x4527da(0x226)+_0x18cb07?.['logs'][0x0]?.['test_run_uuid']),_0x555b1f=await _0x519810['FpbCj'](asyncAwaitNodeReq,_0x519810[_0x4527da(0x213)],_0x165a2a,_0xb18b9c,_0x2de79c),logger[_0x4527da(0x22d)](_0x4527da(0x1d9)+_0x18cb07?.[_0x4527da(0x1b8)][0x0]?.['test_run_uuid'])):_0x555b1f=await _0x519810[_0x4527da(0x1ed)](nodeRequest,_0x519810[_0x4527da(0x213)],_0x165a2a,_0xb18b9c,_0x2de79c);if(_0x555b1f[_0x4527da(0x1bd)][_0x4527da(0x1ba)]){const _0x1f44f7={};_0x1f44f7[_0x4527da(0x1ec)]=_0x555b1f['data'][_0x4527da(0x1ba)];throw _0x1f44f7;}else{_0x519810[_0x4527da(0x1e3)](debug,(_0x519810[_0x4527da(0x1c4)](_0x165a2a,this[_0x4527da(0x252)][_0x4527da(0x232)])?_0x55b25a:_0x519810[_0x4527da(0x1cb)])+'['+_0x58e1c0+_0x4527da(0x224)),this[_0x4527da(0x252)][_0x4527da(0x1f3)]=Math[_0x4527da(0x233)](0x0,_0x519810[_0x4527da(0x234)](this[_0x4527da(0x252)][_0x4527da(0x1f3)],_0x519810['PCLOe'](_0x165a2a,_0x519810[_0x4527da(0x1db)])?0x1:_0xb18b9c[_0x4527da(0x218)]));const _0x582e37={};return _0x582e37[_0x4527da(0x1e2)]=_0x519810['ISKUQ'],_0x582e37['message']='',_0x582e37;}}catch(_0x14becf){_0x14becf[_0x4527da(0x1f7)]?_0x519810[_0x4527da(0x1e3)](debug,_0x4527da(0x203)+(_0x519810[_0x4527da(0x1c4)](_0x165a2a,this[_0x4527da(0x252)][_0x4527da(0x232)])?_0x55b25a:_0x519810['iDGqz'])+_0x4527da(0x20f)+constants[_0x4527da(0x253)]+_0x4527da(0x24f)+_0x14becf[_0x4527da(0x1f7)][_0x4527da(0x1e2)]+'\x20'+_0x14becf[_0x4527da(0x1f7)]['statusText']+'\x20'+util['format'](_0x14becf['response'][_0x4527da(0x1bd)])):_0x519810['WnDLj'](debug,_0x4527da(0x203)+(_0x519810['SmklE'](_0x165a2a,this[_0x4527da(0x252)]['eventUrl'])?_0x55b25a:_0x519810[_0x4527da(0x1cb)])+_0x4527da(0x20f)+constants[_0x4527da(0x253)]+'\x20:\x20'+util[_0x4527da(0x24d)](_0x14becf));this[_0x4527da(0x252)][_0x4527da(0x1f3)]=Math['max'](0x0,_0x519810[_0x4527da(0x1ca)](this[_0x4527da(0x252)][_0x4527da(0x1f3)],_0x519810[_0x4527da(0x1cf)](_0x165a2a,_0x519810[_0x4527da(0x1db)])?0x1:_0xb18b9c['length']));const _0x4383c5={};return _0x4383c5[_0x4527da(0x1e2)]=_0x519810[_0x4527da(0x1c8)],_0x4383c5[_0x4527da(0x1ec)]=_0x14becf['message']||(_0x14becf[_0x4527da(0x1f7)]?_0x14becf[_0x4527da(0x1f7)][_0x4527da(0x1e2)]+':'+_0x14becf['response']['statusText']:_0x14becf),_0x4383c5;}}static async[a129_0x57e204(0x242)](_0x11917c,_0x3fae5f=0x0){const _0x5cbefa=a129_0x57e204,_0x586097={'fPVMR':function(_0xd6a3d,_0xf4706a){return _0xd6a3d+_0xf4706a;},'fedil':function(_0x911061,_0x49f81f){return _0x911061(_0x49f81f);},'rGfUE':_0x5cbefa(0x1d5),'xwqwC':_0x5cbefa(0x1c3),'uMiXY':_0x5cbefa(0x262),'ecJrC':function(_0x1a581c,_0x1f9db8,_0xdeedf2){return _0x1a581c(_0x1f9db8,_0xdeedf2);},'vMorH':_0x5cbefa(0x242),'nhofd':function(_0x126a08,_0xa71001){return _0x126a08===_0xa71001;},'QonqE':function(_0xa4742a,_0x5d68a9){return _0xa4742a!==_0x5d68a9;},'ICJnn':_0x5cbefa(0x25e),'GRFED':function(_0x1e0da3,_0x1b71cf){return _0x1e0da3===_0x1b71cf;},'hdqOT':_0x5cbefa(0x1e4),'Poywe':function(_0x4d0571){return _0x4d0571();},'RlCkf':function(_0x5d3737,_0x49eb75){return _0x5d3737-_0x49eb75;},'VIZQG':_0x5cbefa(0x1ba),'GXiEZ':_0x5cbefa(0x206),'dPxRq':function(_0x235bfb,_0x313a8a){return _0x235bfb>=_0x313a8a;},'pQfsU':function(_0x53eef6,_0x383bea){return _0x53eef6(_0x383bea);},'hFTYx':function(_0x95e27c,_0x31dd2e){return _0x95e27c-_0x31dd2e;},'FzIXI':_0x5cbefa(0x22b),'YVOKc':_0x5cbefa(0x257)},_0x19505b=this[_0x5cbefa(0x258)](_0x11917c);_0x586097[_0x5cbefa(0x220)](trace,_0x5cbefa(0x22e)+_0x11917c[_0x5cbefa(0x245)]+'\x27\x20'+(bsSetupHelper[_0x5cbefa(0x1c2)](_0x11917c,[_0x586097['rGfUE'],_0x586097[_0x5cbefa(0x21a)]])||bsSetupHelper['nestedKeyValue'](_0x11917c,[_0x586097['uMiXY'],_0x586097[_0x5cbefa(0x21a)]])));if(!_0x586097[_0x5cbefa(0x211)](shouldProcessEventForTesthub,_0x11917c[_0x5cbefa(0x245)],_0x586097[_0x5cbefa(0x1cc)]))return;_0x586097[_0x5cbefa(0x249)](_0x3fae5f,0x0)&&process['env'][_0x5cbefa(0x250)]&&_0x586097['QonqE'](process[_0x5cbefa(0x1bf)][_0x5cbefa(0x250)],_0x586097[_0x5cbefa(0x227)])&&(this[_0x5cbefa(0x252)][_0x5cbefa(0x1f3)]+=0x1);if(_0x586097['GRFED'](process[_0x5cbefa(0x1bf)]['BS_TESTOPS_BUILD_COMPLETED'],_0x586097[_0x5cbefa(0x21c)])||process[_0x5cbefa(0x1bf)]['BS_A11Y_JWT']||_0x586097[_0x5cbefa(0x246)](isPercyBuild)){if(_0x586097[_0x5cbefa(0x249)](process['env'][_0x5cbefa(0x250)],_0x586097[_0x5cbefa(0x227)])){_0x586097[_0x5cbefa(0x220)](debug,_0x5cbefa(0x203)+_0x19505b+_0x5cbefa(0x20f)+constants[_0x5cbefa(0x253)]+_0x5cbefa(0x25a)),this[_0x5cbefa(0x252)][_0x5cbefa(0x1f3)]=Math[_0x5cbefa(0x233)](0x0,_0x586097['RlCkf'](this[_0x5cbefa(0x252)]['pendingUploads'],0x1));const _0x43b3a5={};return _0x43b3a5[_0x5cbefa(0x1e2)]=_0x586097[_0x5cbefa(0x208)],_0x43b3a5[_0x5cbefa(0x1ec)]=_0x586097[_0x5cbefa(0x1d2)],_0x43b3a5;}return await this[_0x5cbefa(0x1c9)](_0x11917c,_0x3fae5f);}else{if(_0x586097[_0x5cbefa(0x1fb)](_0x3fae5f,0x5)){_0x586097[_0x5cbefa(0x20e)](debug,_0x5cbefa(0x203)+_0x19505b+'\x20REQUEST\x20TO\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x5cbefa(0x25f)+_0x19505b+'\x20retry\x20runs\x20exceeded');_0x586097[_0x5cbefa(0x201)](process[_0x5cbefa(0x1bf)][_0x5cbefa(0x250)],_0x586097['ICJnn'])&&(this['requestQueueHandler']['pendingUploads']=Math[_0x5cbefa(0x233)](0x0,_0x586097[_0x5cbefa(0x1e0)](this[_0x5cbefa(0x252)][_0x5cbefa(0x1f3)],0x1)));const _0x504f68={};return _0x504f68[_0x5cbefa(0x1e2)]=_0x586097[_0x5cbefa(0x208)],_0x504f68[_0x5cbefa(0x1ec)]=_0x586097[_0x5cbefa(0x261)],_0x504f68;}else _0x586097[_0x5cbefa(0x201)](process[_0x5cbefa(0x1bf)][_0x5cbefa(0x244)],_0x586097[_0x5cbefa(0x207)])&&_0x586097[_0x5cbefa(0x211)](setTimeout,()=>{this['uploadEventData'](_0x11917c,_0x586097['fPVMR'](_0x3fae5f,0x1));},0x3e8);}}}module['exports']=SessionHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a130_0x3805f6=a130_0x34fd;(function(_0x5731a9,_0x1dd760){const _0x155e76=a130_0x34fd,_0x25d583=_0x5731a9();while(!![]){try{const _0x5e2fec=parseInt(_0x155e76(0x229))/0x1+parseInt(_0x155e76(0x210))/0x2*(parseInt(_0x155e76(0x1b1))/0x3)+parseInt(_0x155e76(0x1fc))/0x4*(parseInt(_0x155e76(0x1c5))/0x5)+parseInt(_0x155e76(0x237))/0x6+-parseInt(_0x155e76(0x235))/0x7+-parseInt(_0x155e76(0x222))/0x8+parseInt(_0x155e76(0x1ba))/0x9;if(_0x5e2fec===_0x1dd760)break;else _0x25d583['push'](_0x25d583['shift']());}catch(_0x56cf59){_0x25d583['push'](_0x25d583['shift']());}}}(a130_0x2564,0xed0db));const fs=require('fs'),path=require(a130_0x3805f6(0x217)),gitLastCommit=require('git-last-commit'),getRepoInfo=require(a130_0x3805f6(0x25f)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a130_0x3805f6(0x258)),http=require('http'),https=require(a130_0x3805f6(0x191)),child_process=require(a130_0x3805f6(0x193)),getos=require('getos'),os=require('os'),logger=require(a130_0x3805f6(0x1d4))[a130_0x3805f6(0x290)],buildLogger=require(a130_0x3805f6(0x1d4))[a130_0x3805f6(0x26b)],bsSetupHelper=require('../helper'),requestSpy=require(a130_0x3805f6(0x269)),constants=require(a130_0x3805f6(0x1eb)),logPatcher=require(a130_0x3805f6(0x27e)),util=require(a130_0x3805f6(0x1d6)),{fileLogger}=require('../logger'),PerformanceTester=require(a130_0x3805f6(0x1d0)),{isFunction}=require(a130_0x3805f6(0x195)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a130_0x3805f6(0x28f)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a130_0x3805f6(0x21a));exports[a130_0x3805f6(0x1fd)]=_0x2581d2=>{const _0x1c8915=a130_0x3805f6;fileLogger['silly']('['+new Date()['toISOString']()+'][\x20'+constants[_0x1c8915(0x273)]+_0x1c8915(0x19e)+_0x2581d2);},exports['debug']=_0x290ce7=>{const _0x28ff8e=a130_0x3805f6,_0x3a3991={};_0x3a3991[_0x28ff8e(0x1f0)]=function(_0x14fe7a,_0x34d468){return _0x14fe7a===_0x34d468;},_0x3a3991['qpttA']=_0x28ff8e(0x1b0);const _0x1efe77=_0x3a3991;fileLogger['debug']('['+new Date()[_0x28ff8e(0x23c)]()+_0x28ff8e(0x219)+constants['TEST_REPORTING_ANALYTICS']+_0x28ff8e(0x19e)+_0x290ce7),(_0x1efe77[_0x28ff8e(0x1f0)](process[_0x28ff8e(0x1c0)]['BROWSERSTACK_TEST_REPORTING_DEBUG'],_0x1efe77[_0x28ff8e(0x211)])||_0x1efe77['OxKBJ'](process['env'][_0x28ff8e(0x1d1)],'1')||_0x1efe77[_0x28ff8e(0x1f0)](process[_0x28ff8e(0x1c0)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x1efe77[_0x28ff8e(0x211)])||_0x1efe77[_0x28ff8e(0x1f0)](process[_0x28ff8e(0x1c0)][_0x28ff8e(0x1ac)],'1'))&&consoleHolder[_0x28ff8e(0x1af)]('\x0a['+new Date()['toISOString']()+_0x28ff8e(0x219)+constants['TEST_REPORTING_ANALYTICS']+_0x28ff8e(0x19e)+_0x290ce7+'\x0a');};function a130_0x34fd(_0x1e5add,_0x88ba3){const _0x2564f8=a130_0x2564();return a130_0x34fd=function(_0x34fd17,_0x3c1c2a){_0x34fd17=_0x34fd17-0x183;let _0xf8aa33=_0x2564f8[_0x34fd17];return _0xf8aa33;},a130_0x34fd(_0x1e5add,_0x88ba3);}const a130_0x4f9d8d={};a130_0x4f9d8d[a130_0x3805f6(0x1ae)]=!![],a130_0x4f9d8d['timeout']=0xea60,a130_0x4f9d8d['maxSockets']=0x2,a130_0x4f9d8d[a130_0x3805f6(0x24c)]=0x2;const httpKeepAliveAgent=new http[(a130_0x3805f6(0x18e))](a130_0x4f9d8d),a130_0x508ac9={};a130_0x508ac9[a130_0x3805f6(0x1ae)]=!![],a130_0x508ac9['timeout']=0xea60,a130_0x508ac9[a130_0x3805f6(0x289)]=0x2,a130_0x508ac9['maxTotalSockets']=0x2;const httpsKeepAliveAgent=new https[(a130_0x3805f6(0x18e))](a130_0x508ac9),a130_0x507451={};a130_0x507451[a130_0x3805f6(0x1ae)]=!![],a130_0x507451[a130_0x3805f6(0x1d7)]=0xea60,a130_0x507451[a130_0x3805f6(0x289)]=0x2,a130_0x507451[a130_0x3805f6(0x24c)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a130_0x3805f6(0x18e))](a130_0x507451),a130_0x59efd4={};function a130_0x2564(){const _0x48d308=['BROWSERSTACK_RERUN_TESTS','MgxvI','\x20test\x20instance\x20:\x20','sYjOU','20kNrLWB','data','BS_TESTOPS_BUILD_HASHED_ID','app-automate','RrFPj','lDkvw','browserstack','keys','dpUHi','PxJXM','CIEkW','../performance/performance-tester','BROWSERSTACK_TEST_REPORTING_DEBUG','yfxNt','bHhZn','../logger','\x20:\x20','util','timeout','XeDCu','qbOqs','ZhSQz','error','headers','getAccessKey','release','removeAnsiColors','match','mfUgx','nhUTN','Windows','BROWSERSTACK_TEST_OBSERVABILITY','CODECEPT','PfCDk','PLAYWRIGHT','vzAOM','capabilities','includes','../../bin/utils/constants','HUB_URL_REGEX','JxfEw','mmoeU','dist','OxKBJ','logs','getPackageVersion','XTvUZ','@playwright/test','relativeTestFilePath','CaLCr','getBrowserName','IKjjZ','KvnbK','mFUfY','LUpeQ','499244dqOPyG','trace','prefixTestPath','jhiOD','PGAWL','cwd','ILFkZ','patchConsoleLogger','XnubB','config','EtMnc','spy','darwin','execSync','Visit\x20','AssertionError','info','CUSTOM_TAG','onCEj','local_grid','6hrSBVZ','qpttA','json','RlIAD','getObservabilityLinkedProductName','null','X-BSTACK-TESTOPS','path','qtaay','][\x20','../../../src/bin/utils/constants','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','TEST_REPORTING_BUILD_TAG','OS\x20X','[%s][\x20','platformVersion','test','nHuzO','2622136BGDXDh','getCapabilities','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','host','bs:addLog:','undefined','HMXaN','235554gdvFRs','VklTK','message','object','isTestObservabilitySession','nodeRequest','DZeJK','PathHelper','expanded','TimeoutError','toJSON','prefix','11602010PjdYlf','shouldReRunObservabilityTests','1096728HxYjFI','map_','FaoPP','now','CPFkZ','toISOString','BROWSERSTACK_TESTHUB_JWT','codeceptjs','rootDir','agent','IAObH','err','Unknown','vNhzQ','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','toString','hostname','Linux','^CUSTOM_TAG_\x5cd+$','anKES','BROWSERSTACK_TEST_OBSERVABILITY_YML','maxTotalSockets','formData','ATS_HUB_URL_REGEX','WWXiP','isArray','fromEntries','jest','QKTFI','platform','Test\x20timeout\x20of','QTDAj','body','./constants','forEach','getSyncScript','dcLTq','pid','lwzNT','printBuildLink','git-repo-info','BROWSERSTACK_CONFIG_FILE_PATH','@cucumber/cucumber','gpyBf','bTYmC','parse','push','sleep','Authorization','startsWith','../../helpers/request-spy','BROWSERSTACK_TEST_REPORTING','buildLogger','DmHYf','length','rlyTq','sVcrJ','default','ICWSZ','buildTag','TEST_REPORTING_ANALYTICS','vXkWh','map','win32','split','CODECEPT_CUCUMBER','addRequestSpy','debug','VApEH','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','uHDmh','../../bin/utils/logPatcher','VFNoq','getBrowserStackConfig','TEST_ATTACHMENT','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','turboScaleGridDetails','join','zYCJr','vpmFP','annotate','Bearer\x20','maxSockets','TEST_OBSERVABILITY_BUILD_TAG','getUserName','application/json','mocha','Error\x20in\x20importing\x20windows-release\x20','../performance/constants','winstonLogger','Content-Type','getPlatformVersion','PlpZE','FhlZZ','gcjch','UnhandledError','linux','Stkqq','getBrowserVersion','VSgwa','JEST','Agent','\x20]\x20Build\x20Not\x20Found\x20%s','QXKEY','https','asyncAwaitNodeReq','child_process','SkIuA','lodash','llKXG','dEkfo','bstack:options','yyFQC','MMHfU','relative','getSession','3|1|4|5|0|2','\x20]\x20','format','ebjVR','sendPlatformDetails','automate','wyBoC','O11yHashedID','getDefaultHeaders','backtrace','test_run_uuid','getFrameworkVersion','KrkJA','getPlatform','modifyReqForTraceUpload','BROWSERSTACK_OBSERVABILITY_DEBUG','ObservabilitySync:','keepAlive','log','true','1347909gvnAoH','extractValuesWithRegexKeyMatch','cSkVi','/builds/','KcspO','TEST_PLATFORM','OreAf','__cloud_provider___','VEInb','6216057qyScOe','wDZzA','qHHKo','url','axCjh','HTTP','env'];a130_0x2564=function(){return _0x48d308;};return a130_0x2564();}a130_0x59efd4[a130_0x3805f6(0x1ae)]=!![],a130_0x59efd4[a130_0x3805f6(0x1d7)]=0xea60,a130_0x59efd4[a130_0x3805f6(0x289)]=0x2,a130_0x59efd4[a130_0x3805f6(0x24c)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a130_0x3805f6(0x18e))](a130_0x59efd4);exports[a130_0x3805f6(0x236)]=()=>{const _0x3de537=a130_0x3805f6,_0x194b2d={};_0x194b2d['FaoPP']=function(_0x30e014,_0x105e0c){return _0x30e014!==_0x105e0c;},_0x194b2d[_0x3de537(0x1ed)]=_0x3de537(0x215);const _0x51d24d=_0x194b2d;return process[_0x3de537(0x1c0)]['BROWSERSTACK_RERUN_TESTS']&&_0x51d24d[_0x3de537(0x239)](process[_0x3de537(0x1c0)][_0x3de537(0x1c1)],_0x51d24d['JxfEw'])?!![]:![];},exports[a130_0x3805f6(0x22d)]=()=>{const _0x263ade=a130_0x3805f6,_0x6f2c76={};_0x6f2c76[_0x263ade(0x256)]=function(_0x1cb0b4,_0x4b9db9){return _0x1cb0b4===_0x4b9db9;},_0x6f2c76['PlpZE']='true',_0x6f2c76[_0x263ade(0x1b5)]=function(_0x333dc5,_0x1909b5){return _0x333dc5===_0x1909b5;};const _0x33c81a=_0x6f2c76;let _0x2b8459=!![];return process['env']['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x2b8459=_0x33c81a[_0x263ade(0x256)](process[_0x263ade(0x1c0)][_0x263ade(0x24b)],_0x33c81a[_0x263ade(0x185)])),process[_0x263ade(0x1c0)][_0x263ade(0x1e4)]&&(_0x2b8459=_0x33c81a['QTDAj'](process[_0x263ade(0x1c0)][_0x263ade(0x1e4)],_0x33c81a[_0x263ade(0x185)])),process['env'][_0x263ade(0x26a)]&&(_0x2b8459=_0x33c81a['KcspO'](process[_0x263ade(0x1c0)][_0x263ade(0x26a)],_0x33c81a[_0x263ade(0x185)])),_0x2b8459;},exports['parseFileNames']=_0x15bf69=>{if(bsSetupHelper['isUndefined'](_0x15bf69))return undefined;try{return _0x15bf69['trim']()['split'](',');}catch(_0x55ee84){return undefined;}},exports[a130_0x3805f6(0x25e)]=()=>{const _0x313bd1=a130_0x3805f6,_0x44f58b={'KvnbK':function(_0x4f546f,_0xbcc909){return _0x4f546f(_0xbcc909);},'VSgwa':'../../bin/v2/browserstackCLI','VklTK':function(_0x415ed3,_0x185952){return _0x415ed3!==_0x185952;},'PGAWL':_0x313bd1(0x215),'xQlUo':_0x313bd1(0x227)};return PerformanceTester['measureWrapper'](PerformanceO11yEvents['PRINT_BUILDLINK'],async()=>{const _0x408114=_0x313bd1;try{const _0x9a20f9=_0x44f58b[_0x408114(0x1f9)](require,_0x44f58b[_0x408114(0x18c)]);if(_0x9a20f9['O11yHashedID']){const _0x3d1e24=_0x408114(0x20a)+O11Y_URL+_0x408114(0x1b4)+_0x9a20f9[_0x408114(0x1a4)]+_0x408114(0x282);buildLogger['info'](_0x3d1e24);return;}if(process[_0x408114(0x1c0)][_0x408114(0x1c7)]&&_0x44f58b[_0x408114(0x22a)](process[_0x408114(0x1c0)][_0x408114(0x1c7)],_0x44f58b[_0x408114(0x200)])&&_0x44f58b['VklTK'](process['env'][_0x408114(0x1c7)],_0x44f58b['xQlUo'])){const _0x388e3a=_0x408114(0x20a)+constants['O11Y_URL']+_0x408114(0x1b4)+process['env'][_0x408114(0x1c7)]+_0x408114(0x282);buildLogger[_0x408114(0x20c)](_0x388e3a);}}catch(_0x3f78c7){logger['error'](util[_0x408114(0x19f)](_0x408114(0x21e)+constants['TEST_REPORTING_ANALYTICS']+_0x408114(0x18f),new Date()[_0x408114(0x23c)](),_0x3f78c7['stack']||_0x3f78c7[_0x408114(0x22b)]||_0x3f78c7));}})();},exports['getFailureType']=_0x3802a5=>{const _0x546766=a130_0x3805f6,_0xe8bea5={};_0xe8bea5[_0x546766(0x204)]=_0x546766(0x20b),_0xe8bea5[_0x546766(0x221)]=_0x546766(0x255),_0xe8bea5[_0x546766(0x1bb)]=_0x546766(0x232),_0xe8bea5[_0x546766(0x1c4)]=_0x546766(0x188);const _0x317063=_0xe8bea5;if(!_0x3802a5)return null;const _0x51086b=_0x3802a5[_0x546766(0x246)]();if(_0x51086b[_0x546766(0x1e0)](/AssertionError/))return _0x317063[_0x546766(0x204)];if(_0x51086b[_0x546766(0x1e0)](/TimeoutError/)||_0x51086b[_0x546766(0x268)](_0x317063['nHuzO'])||_0x51086b[_0x546766(0x1e0)](/Timeout.*exceeded/i))return _0x317063[_0x546766(0x1bb)];return _0x317063[_0x546766(0x1c4)];},exports[a130_0x3805f6(0x1a8)]=_0x489a9e=>{const _0x2c1524=a130_0x3805f6,_0x25a996={};_0x25a996['dkpJy']=_0x2c1524(0x28d),_0x25a996['wyBoC']=_0x2c1524(0x1f4),_0x25a996[_0x2c1524(0x263)]=_0x2c1524(0x23e),_0x25a996[_0x2c1524(0x25d)]=_0x2c1524(0x252),_0x25a996[_0x2c1524(0x1e8)]=_0x2c1524(0x261);const _0x9b9c37=_0x25a996;let _0x32fd19=null;switch(_0x489a9e){case FRAMEWORKS['MOCHA']:_0x32fd19=bsSetupHelper[_0x2c1524(0x1f2)](_0x9b9c37['dkpJy']);break;case FRAMEWORKS[_0x2c1524(0x1e7)]:_0x32fd19=bsSetupHelper[_0x2c1524(0x1f2)](_0x9b9c37[_0x2c1524(0x1a3)]);break;case FRAMEWORKS[_0x2c1524(0x1e5)]:case FRAMEWORKS[_0x2c1524(0x278)]:_0x32fd19=bsSetupHelper['getPackageVersion'](_0x9b9c37[_0x2c1524(0x263)]);break;case FRAMEWORKS[_0x2c1524(0x18d)]:_0x32fd19=bsSetupHelper[_0x2c1524(0x1f2)](_0x9b9c37[_0x2c1524(0x25d)]);break;case FRAMEWORKS['CUCUMBER']:_0x32fd19=bsSetupHelper[_0x2c1524(0x1f2)](_0x9b9c37[_0x2c1524(0x1e8)]);break;default:break;}return _0x32fd19;},exports[a130_0x3805f6(0x280)]=_0x2a684a=>{const _0x4fe90d=a130_0x3805f6;let _0x2e9416=null;switch(_0x2a684a){case FRAMEWORKS[_0x4fe90d(0x1e7)]:_0x2e9416=process[_0x4fe90d(0x1c0)][_0x4fe90d(0x260)];break;}if(!_0x2e9416)return;return bsSetupHelper['readConfig'](_0x2e9416,![]);},exports['getUserCredentials']=_0x3a76c6=>{const _0xecc86b=a130_0x3805f6;return{'username':bsSetupHelper[_0xecc86b(0x28b)](_0x3a76c6),'accessKey':bsSetupHelper[_0xecc86b(0x1dd)](_0x3a76c6)};},exports[a130_0x3805f6(0x1ab)]=(_0x3c3493,_0x10465d)=>{const _0x12bd6=a130_0x3805f6,_0x578f2b={};_0x578f2b[_0x12bd6(0x196)]=_0x12bd6(0x19d),_0x578f2b[_0x12bd6(0x262)]='LogCreated',_0x578f2b[_0x12bd6(0x206)]=_0x12bd6(0x281);const _0x16154b=_0x578f2b,_0x30af1b=_0x16154b['llKXG'][_0x12bd6(0x277)]('|');let _0x2608ba=0x0;while(!![]){switch(_0x30af1b[_0x2608ba++]){case'0':delete _0x3c3493[_0x12bd6(0x212)];continue;case'1':if(!_0x3c3493[_0x12bd6(0x257)][0x0]||!_0x3c3493['body'][0x0][_0x12bd6(0x1f1)]||!_0x3c3493[_0x12bd6(0x257)][0x0][_0x12bd6(0x1f1)]['length'])return;continue;case'2':delete _0x10465d[_0x12bd6(0x1dc)];continue;case'3':if(!_0x3c3493[_0x12bd6(0x257)]||!Array[_0x12bd6(0x250)](_0x3c3493[_0x12bd6(0x257)]))return;continue;case'4':_0x3c3493[_0x12bd6(0x24d)]={'data':_0x3c3493[_0x12bd6(0x257)][0x0][_0x12bd6(0x1f1)][0x0][_0x12bd6(0x1c6)],'test_run_uuid':_0x3c3493[_0x12bd6(0x257)][0x0][_0x12bd6(0x1f1)][0x0][_0x12bd6(0x1a7)],'event_type':_0x16154b[_0x12bd6(0x262)],'kind':_0x16154b['EtMnc'],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x12bd6(0x23c)](),'fileName':_0x3c3493[_0x12bd6(0x257)][0x0]['logs'][0x0]['fileName']};continue;case'5':delete _0x3c3493['body'];continue;}break;}},exports[a130_0x3805f6(0x192)]=async(_0x4c3016,_0x569dd9,_0x1e9d32,_0x34b156,_0x5b2cd4=!![])=>{const _0x1b3a37=a130_0x3805f6,_0x39ff1c={};_0x39ff1c['dEkfo']=function(_0x501e10,_0x27c9e0){return _0x501e10===_0x27c9e0;},_0x39ff1c[_0x1b3a37(0x1b7)]='Content-Type',_0x39ff1c[_0x1b3a37(0x1f6)]='application/json',_0x39ff1c['DZeJK']=_0x1b3a37(0x191),_0x39ff1c[_0x1b3a37(0x27b)]=function(_0x5f43af,_0x5a19f8){return _0x5f43af!==_0x5a19f8;},_0x39ff1c[_0x1b3a37(0x228)]=function(_0x14fd44,_0x274c0a){return _0x14fd44!==_0x274c0a;},_0x39ff1c[_0x1b3a37(0x1f8)]=_0x1b3a37(0x22c),_0x39ff1c[_0x1b3a37(0x1cd)]='Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s';const _0x404fa6=_0x39ff1c,_0x376d96={..._0x34b156,...{'method':_0x4c3016,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x569dd9,'body':_0x1e9d32,'json':_0x404fa6[_0x1b3a37(0x197)](_0x34b156[_0x1b3a37(0x1dc)][_0x404fa6[_0x1b3a37(0x1b7)]],_0x404fa6[_0x1b3a37(0x1f6)]),'agent':API_URL[_0x1b3a37(0x1ea)](_0x404fa6[_0x1b3a37(0x22f)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x404fa6[_0x1b3a37(0x197)](_0x569dd9,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x376d96[_0x1b3a37(0x240)]=API_URL[_0x1b3a37(0x1ea)](_0x404fa6[_0x1b3a37(0x22f)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x376d96,_0x34b156),logger[_0x1b3a37(0x27a)]('Uploading\x20trace\x20logs\x20to:\x20'+_0x376d96['url']));try{const {statusCode:_0x1cfeab,body:_0x45e51e}=await bsSetupHelper['nodeRequest'](_0x4c3016,_0x569dd9,_0x376d96,_0x34b156,_0x376d96[_0x1b3a37(0x1bd)]);if(_0x404fa6[_0x1b3a37(0x27b)](_0x1cfeab,0xc8))return _0x45e51e?_0x45e51e:_0x1b3a37(0x21b)+_0x1cfeab;let _0x20f5a7=_0x45e51e;if(_0x5b2cd4)try{_0x404fa6[_0x1b3a37(0x228)](typeof _0x45e51e,_0x404fa6['IKjjZ'])&&(_0x20f5a7=JSON[_0x1b3a37(0x264)](_0x45e51e));}catch(_0x295ab9){logger[_0x1b3a37(0x1db)](_0x404fa6[_0x1b3a37(0x1cd)],_0x45e51e,util['format'](_0x295ab9));}const _0x293fd6={};return _0x293fd6[_0x1b3a37(0x1c6)]=_0x20f5a7,_0x293fd6;}catch(_0x530648){logger[_0x1b3a37(0x1db)]('Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20'+util['format'](_0x530648));throw _0x530648;}},exports[a130_0x3805f6(0x22e)]=(_0x11cc9e,_0x56cb50,_0x782fbf,_0xa84a03,_0x3eac8c=!![])=>{const _0x40618d=a130_0x3805f6,_0x25497e={'XeDCu':function(_0x2b5585,_0xe4a9ce){return _0x2b5585!==_0xe4a9ce;},'vpmFP':function(_0x15fca4,_0xfe5682){return _0x15fca4(_0xfe5682);},'VaAnd':_0x40618d(0x22c),'KpXbP':_0x40618d(0x27c),'KVhHE':function(_0x4b8480,_0x718c5b){return _0x4b8480(_0x718c5b);},'XSNVs':function(_0x1dc785,_0x22bbb7){return _0x1dc785===_0x22bbb7;},'vXkWh':_0x40618d(0x183),'KrkJA':'application/json','rlyTq':'https','LUpeQ':function(_0x2cd926,_0x4308c7){return _0x2cd926===_0x4308c7;}};return new Promise((_0x2fbad0,_0x41646a)=>{const _0xfc5202=_0x40618d,_0x493a1d={'PxJXM':function(_0x3cb97d,_0x116c2f){return _0x25497e['KVhHE'](_0x3cb97d,_0x116c2f);}},_0x5aa288={..._0xa84a03,...{'method':_0x11cc9e,'url':API_URL+'/'+_0x56cb50,'body':_0x782fbf,'json':_0x25497e['XSNVs'](_0xa84a03['headers'][_0x25497e[_0xfc5202(0x274)]],_0x25497e[_0xfc5202(0x1a9)]),'agent':API_URL[_0xfc5202(0x1ea)](_0x25497e[_0xfc5202(0x26e)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x25497e[_0xfc5202(0x1fb)](_0x56cb50,SCREENSHOT_ENDPOINT)&&(_0x5aa288[_0xfc5202(0x240)]=API_URL['includes'](_0x25497e['rlyTq'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper['nodeRequest'](_0x11cc9e,_0x56cb50,_0x5aa288,_0xa84a03,API_URL)['then'](({statusCode:_0x287f4e,body:_0x1dac31})=>{const _0x4b507c=_0xfc5202;if(_0x25497e[_0x4b507c(0x1d8)](_0x287f4e,0xc8))_0x25497e[_0x4b507c(0x286)](_0x41646a,_0x1dac31?_0x1dac31:_0x4b507c(0x21b)+_0x287f4e);else{if(_0x3eac8c)try{_0x25497e[_0x4b507c(0x1d8)](typeof _0x1dac31,_0x25497e['VaAnd'])&&(_0x1dac31=JSON[_0x4b507c(0x264)](_0x1dac31));}catch(_0x1356e4){_0x25497e[_0x4b507c(0x286)](_0x41646a,_0x25497e['KpXbP']);return;}const _0x4b3b1a={};_0x4b3b1a[_0x4b507c(0x1c6)]=_0x1dac31,_0x25497e[_0x4b507c(0x286)](_0x2fbad0,_0x4b3b1a);}})['catch'](_0x439d4b=>{const _0x5e9d55=_0xfc5202;_0x439d4b&&_0x493a1d[_0x5e9d55(0x1ce)](_0x41646a,_0x439d4b);});});},exports['getBuildTags']=_0x306823=>{const _0xc91f=a130_0x3805f6;if(process[_0xc91f(0x1c0)]['TEST_REPORTING_BUILD_TAG'])return process[_0xc91f(0x1c0)][_0xc91f(0x21c)][_0xc91f(0x277)](',');if(process['env'][_0xc91f(0x28a)])return process[_0xc91f(0x1c0)]['TEST_OBSERVABILITY_BUILD_TAG']['split'](',');if(_0x306823[_0xc91f(0x272)])return _0x306823['buildTag'];return[];},exports[a130_0x3805f6(0x1a5)]=(_0x3dc5a2=!![])=>{const _0x4b2173=a130_0x3805f6,_0x5556aa={};_0x5556aa['qbOqs']=_0x4b2173(0x28c),_0x5556aa[_0x4b2173(0x18a)]='true',_0x5556aa[_0x4b2173(0x218)]=_0x4b2173(0x267);const _0x135602=_0x5556aa,_0x409684={};_0x409684[_0x4b2173(0x183)]=_0x135602[_0x4b2173(0x1d9)],_0x409684[_0x4b2173(0x216)]=_0x135602[_0x4b2173(0x18a)];const _0x471062=_0x409684;return _0x3dc5a2&&process[_0x4b2173(0x1c0)][_0x4b2173(0x23d)]&&(_0x471062[_0x135602[_0x4b2173(0x218)]]=_0x4b2173(0x288)+process[_0x4b2173(0x1c0)][_0x4b2173(0x23d)]),_0x471062;},exports['extractValuesWithRegexKeyMatch']=_0x4db074=>{const _0x1dad7f=a130_0x3805f6,_0x32ec39={};_0x32ec39[_0x1dad7f(0x1a0)]=_0x1dad7f(0x249);const _0x3db47a=_0x32ec39,_0x57eb93=[],_0x1b1990=new RegExp(_0x3db47a[_0x1dad7f(0x1a0)],'i');return Object['keys'](_0x4db074)['filter'](_0x4f8e33=>_0x1b1990[_0x1dad7f(0x220)](_0x4f8e33))[_0x1dad7f(0x259)](_0x2958bd=>_0x57eb93[_0x1dad7f(0x265)](_0x4db074[_0x2958bd])),_0x57eb93;},exports['getCustomTags']=_0x4cf8c1=>{const _0x55e8f2=a130_0x3805f6,_0x5d2b03=[],_0x486804=_0x4cf8c1['customTag']||process['env'][_0x55e8f2(0x20d)];return _0x486804&&_0x5d2b03[_0x55e8f2(0x265)](_0x486804),_0x5d2b03[_0x55e8f2(0x265)](...exports['extractValuesWithRegexKeyMatch'](process[_0x55e8f2(0x1c0)])),_0x5d2b03[_0x55e8f2(0x265)](...exports[_0x55e8f2(0x1b2)](_0x4cf8c1)),_0x5d2b03;},exports['removeAnsiColors']=_0x1a3434=>{if(!_0x1a3434)return'';return _0x1a3434['replace'](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a130_0x3805f6(0x266)]=(_0x4ee00f=0x64)=>new Promise(_0x5c5c59=>setTimeout(_0x5c5c59,_0x4ee00f));const getPlatformName=()=>{const _0x3bff71=a130_0x3805f6,_0x2716c2={};_0x2716c2[_0x3bff71(0x1cf)]=function(_0x3b4386,_0x10205e){return _0x3b4386===_0x10205e;},_0x2716c2['VEInb']=_0x3bff71(0x276),_0x2716c2[_0x3bff71(0x26f)]=_0x3bff71(0x1e3),_0x2716c2['ICWSZ']=function(_0x103764,_0x15b903){return _0x103764===_0x15b903;},_0x2716c2[_0x3bff71(0x24f)]=_0x3bff71(0x208),_0x2716c2['qHHKo']=_0x3bff71(0x21d),_0x2716c2[_0x3bff71(0x194)]=function(_0x872cba,_0x1fd3cc){return _0x872cba===_0x1fd3cc;},_0x2716c2[_0x3bff71(0x1e6)]=_0x3bff71(0x189),_0x2716c2[_0x3bff71(0x25b)]=_0x3bff71(0x248),_0x2716c2[_0x3bff71(0x1b3)]=_0x3bff71(0x243);const _0x21add2=_0x2716c2;if(_0x21add2[_0x3bff71(0x1cf)](process['platform'],_0x21add2[_0x3bff71(0x1b9)]))return _0x21add2['sVcrJ'];if(_0x21add2[_0x3bff71(0x271)](process[_0x3bff71(0x254)],_0x21add2['WWXiP']))return _0x21add2[_0x3bff71(0x1bc)];if(_0x21add2[_0x3bff71(0x194)](process[_0x3bff71(0x254)],_0x21add2[_0x3bff71(0x1e6)]))return _0x21add2[_0x3bff71(0x25b)];return _0x21add2[_0x3bff71(0x1b3)];},getMacOSVersion=()=>{const _0x5502e2=a130_0x3805f6,_0x2677f4={};_0x2677f4['bHhZn']='awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27';const _0x39cd18=_0x2677f4;return child_process[_0x5502e2(0x209)](_0x39cd18[_0x5502e2(0x1d3)])[_0x5502e2(0x246)]()['trim']();},getLinuxDetails=()=>{const _0xe5ca50={'axCjh':function(_0x3e81a2,_0x24a44c){return _0x3e81a2(_0x24a44c);},'VFNoq':function(_0xa56b20,_0x1d6a8f){return _0xa56b20(_0x1d6a8f);}};return new Promise((_0x5e0a96,_0x4fa970)=>{const _0x5b15e9=a130_0x34fd,_0x62c6f1={'MgxvI':function(_0x46afb8,_0x260dae){const _0x2d95df=a130_0x34fd;return _0xe5ca50[_0x2d95df(0x1be)](_0x46afb8,_0x260dae);}};_0xe5ca50[_0x5b15e9(0x27f)](getos,(_0xd0657a,_0x220d36)=>{const _0x1b8ec0=_0x5b15e9;if(_0xd0657a)return _0x62c6f1[_0x1b8ec0(0x1c2)](_0x4fa970,_0xd0657a);_0x62c6f1[_0x1b8ec0(0x1c2)](_0x5e0a96,_0x220d36);});});};exports['getPlatformDetails']=async()=>{const _0x5ef216=a130_0x3805f6,_0x552f1a={'DmHYf':function(_0x2305d4){return _0x2305d4();},'rcoDu':_0x5ef216(0x21d),'Syqsn':function(_0x27ff38){return _0x27ff38();},'zYCJr':_0x5ef216(0x1e3),'SJQmr':'windows-release','mFUfY':function(_0x3a68ff){return _0x3a68ff();},'cWulz':_0x5ef216(0x248),'mfUgx':'Error\x20in\x20getting\x20Linux\x20Details'};let _0x1212b7=_0x552f1a[_0x5ef216(0x26c)](getPlatformName),_0x211422=os[_0x5ef216(0x1de)]()[_0x5ef216(0x246)]();switch(_0x1212b7){case _0x552f1a['rcoDu']:_0x211422=_0x552f1a['Syqsn'](getMacOSVersion);break;case _0x552f1a[_0x5ef216(0x285)]:try{const _0x549351=(await import(_0x552f1a['SJQmr']))[_0x5ef216(0x270)];_0x211422=_0x552f1a[_0x5ef216(0x1fa)](_0x549351);}catch(_0x4dd95e){exports['debug'](_0x5ef216(0x28e)+_0x4dd95e['toString']());}break;case _0x552f1a['cWulz']:try{const _0x47c4ae=await _0x552f1a['DmHYf'](getLinuxDetails);_0x47c4ae[_0x5ef216(0x1ef)]&&(_0x1212b7=_0x47c4ae[_0x5ef216(0x1ef)]),_0x47c4ae[_0x5ef216(0x1de)]&&(_0x211422=_0x47c4ae[_0x5ef216(0x1de)][_0x5ef216(0x246)]());}catch(_0x44d30b){exports[_0x5ef216(0x27a)](_0x552f1a[_0x5ef216(0x1e1)]);}break;default:break;}const _0xf50c65={};return _0xf50c65['platformName']=_0x1212b7,_0xf50c65[_0x5ef216(0x21f)]=_0x211422,_0xf50c65;},exports['failureData']=(_0x2ad5c7,_0x4b2b4a)=>{const _0x4685ca=a130_0x3805f6,_0x59cfad={};_0x59cfad['vNhzQ']=function(_0x5f7bfc,_0x5a76b8){return _0x5f7bfc===_0x5a76b8;},_0x59cfad[_0x4685ca(0x1ee)]=_0x4685ca(0x220),_0x59cfad[_0x4685ca(0x1ff)]=_0x4685ca(0x242);const _0x98fe93=_0x59cfad;if(!_0x2ad5c7)return[];try{if(_0x98fe93['vNhzQ'](_0x4b2b4a,_0x98fe93['mmoeU']))return _0x2ad5c7[_0x4685ca(0x275)](_0xb21a48=>{const _0x485e30=_0x4685ca,{stack:_0x3124b8,..._0x2b7686}=_0xb21a48,_0x4afd99=Object['keys'](_0x2b7686)[_0x485e30(0x275)](_0x45139e=>{return _0x45139e+':\x20'+_0x2b7686[_0x45139e];}),_0x198ce5=_0x3124b8?exports[_0x485e30(0x1df)](_0x3124b8)[_0x485e30(0x277)](/\r?\n/):[exports[_0x485e30(0x1df)](_0xb21a48[_0x485e30(0x22b)])],_0x55dd8d={};return _0x55dd8d[_0x485e30(0x1a6)]=_0x198ce5,_0x55dd8d[_0x485e30(0x231)]=_0x4afd99,_0x55dd8d;});else{if(_0x98fe93[_0x4685ca(0x244)](_0x4b2b4a,_0x98fe93[_0x4685ca(0x1ff)])){const _0x4328c4=[],_0x2e854c=[];return Object[_0x4685ca(0x1cc)](_0x2ad5c7)['forEach'](_0x3e2474=>{const _0x1a9df4=_0x4685ca;try{_0x2e854c[_0x1a9df4(0x265)](_0x3e2474+':\x20'+_0x2ad5c7[_0x3e2474]);}catch(_0x19633f){exports['debug'](_0x1a9df4(0x245)+_0x19633f[_0x1a9df4(0x22b)]+_0x1a9df4(0x1d5)+_0x19633f['backtrace']);}}),_0x4328c4['push']({'backtrace':exports[_0x4685ca(0x1df)](_0x2ad5c7['stack'])[_0x4685ca(0x277)](/\r?\n/),'expanded':_0x2e854c}),_0x4328c4;}}return[];}catch(_0x500685){exports[_0x4685ca(0x27a)](_0x4685ca(0x245)+_0x500685[_0x4685ca(0x22b)]+_0x4685ca(0x1d5)+_0x500685[_0x4685ca(0x1a6)]);}return[];};class PathHelper{constructor(_0x5c70d1,_0x242cb4){const _0x3fc9fb=a130_0x3805f6;this[_0x3fc9fb(0x205)]=_0x5c70d1,this[_0x3fc9fb(0x234)]=_0x242cb4;}[a130_0x3805f6(0x1f5)](_0x10b70f){const _0x5f365c=a130_0x3805f6,_0x2392d4=this[_0x5f365c(0x205)][_0x5f365c(0x201)]||this['config'][_0x5f365c(0x23f)];return path[_0x5f365c(0x19b)](_0x2392d4,_0x10b70f);}[a130_0x3805f6(0x1fe)](_0x2894a3){const _0x387655=a130_0x3805f6,_0x2d986b=this[_0x387655(0x1f5)](_0x2894a3);return this[_0x387655(0x234)]?path[_0x387655(0x284)](this[_0x387655(0x234)],_0x2d986b):_0x2d986b;}}exports[a130_0x3805f6(0x230)]=PathHelper,exports[a130_0x3805f6(0x279)]=(_0x294602=!![])=>{const _0x2df91f=a130_0x3805f6,_0x11034c={};_0x11034c[_0x2df91f(0x190)]=function(_0x2a5155,_0x2d0432){return _0x2a5155===_0x2d0432;},_0x11034c[_0x2df91f(0x1da)]=_0x2df91f(0x216),_0x11034c[_0x2df91f(0x23b)]='true',_0x11034c[_0x2df91f(0x19a)]=_0x2df91f(0x1bf),_0x11034c['ILFkZ']=_0x2df91f(0x1cb),_0x11034c[_0x2df91f(0x20e)]=_0x2df91f(0x20f);const _0x30a7a5=_0x11034c;requestSpy[_0x2df91f(0x207)]((_0x31118b,_0x58f3f6)=>{const _0x12fd53=_0x2df91f;_0x58f3f6&&!(_0x58f3f6[_0x12fd53(0x1dc)]&&_0x30a7a5[_0x12fd53(0x190)](_0x58f3f6[_0x12fd53(0x1dc)][_0x30a7a5['ZhSQz']],_0x30a7a5[_0x12fd53(0x23b)]))&&(_0x58f3f6['host']=_0x58f3f6[_0x12fd53(0x247)],delete _0x58f3f6[_0x12fd53(0x247)],_0x294602&&process['emit'](_0x12fd53(0x226)+process[_0x12fd53(0x25c)],{'timestamp':new Date()[_0x12fd53(0x23c)](),'level':null,'message':null,'kind':_0x30a7a5[_0x12fd53(0x19a)],'http_response':_0x58f3f6})),_0x58f3f6&&(constants[_0x12fd53(0x1ec)]['test'](_0x58f3f6[_0x12fd53(0x225)])||constants[_0x12fd53(0x24e)][_0x12fd53(0x220)](_0x58f3f6[_0x12fd53(0x225)]))?global[_0x12fd53(0x1b8)]=_0x30a7a5[_0x12fd53(0x202)]:global[_0x12fd53(0x1b8)]=_0x30a7a5[_0x12fd53(0x20e)];});},exports[a130_0x3805f6(0x203)]=()=>{const _0x28379e=a130_0x3805f6,_0x2336d7={'JVQJb':function(_0x45044c,_0x2f0986){return _0x45044c(_0x2f0986);}};console={},Object[_0x28379e(0x1cc)](consoleHolder)['forEach'](_0x2fc87d=>{_0x2336d7['JVQJb'](isFunction,consoleHolder[_0x2fc87d])?console[_0x2fc87d]=(..._0x1e5207)=>{try{!Object['keys'](BSTestOpsPatcher)['includes'](_0x2fc87d)?consoleHolder[_0x2fc87d](..._0x1e5207):BSTestOpsPatcher[_0x2fc87d](..._0x1e5207);}catch(_0x5595be){consoleHolder[_0x2fc87d](..._0x1e5207);}}:console[_0x2fc87d]=consoleHolder[_0x2fc87d];});},exports[a130_0x3805f6(0x25a)]=()=>'browserstack_executor:\x20'+JSON['stringify']({'action':a130_0x3805f6(0x287),'arguments':{'data':a130_0x3805f6(0x1ad)+Date[a130_0x3805f6(0x23a)](),'level':a130_0x3805f6(0x27a)}}),exports[a130_0x3805f6(0x214)]=_0x219923=>{const _0x355dcd=a130_0x3805f6,_0xbc8504={};_0xbc8504[_0x355dcd(0x241)]=function(_0x3e2c60,_0x5e81c1){return _0x3e2c60===_0x5e81c1;},_0xbc8504[_0x355dcd(0x27d)]=_0x355dcd(0x1cb),_0xbc8504[_0x355dcd(0x186)]='appium:app',_0xbc8504['yyFQC']='app',_0xbc8504['QKTFI']=function(_0x4728ee,_0xbe3189){return _0x4728ee>_0xbe3189;},_0xbc8504[_0x355dcd(0x1ca)]=_0x355dcd(0x1c8),_0xbc8504['yfxNt']=_0x355dcd(0x198),_0xbc8504['LuYsk']=_0x355dcd(0x283),_0xbc8504['anKES']='turboscale',_0xbc8504[_0x355dcd(0x1c9)]=_0x355dcd(0x1a2);const _0xf3b334=_0xbc8504;let _0x54dd62=null;try{if(_0xf3b334[_0x355dcd(0x241)](global['__cloud_provider___'],_0xf3b334[_0x355dcd(0x27d)])){if(_0x219923[_0xf3b334[_0x355dcd(0x186)]]||_0x219923[_0xf3b334[_0x355dcd(0x199)]]||!bsSetupHelper['isUndefined'](global['capabilities'])&&_0xf3b334[_0x355dcd(0x253)](global['capabilities'][_0x355dcd(0x26d)],0x0)&&(global[_0x355dcd(0x1e9)][0x0][_0xf3b334[_0x355dcd(0x199)]]||global[_0x355dcd(0x1e9)][0x0][_0xf3b334[_0x355dcd(0x186)]]))_0x54dd62=_0xf3b334[_0x355dcd(0x1ca)];else _0x219923[_0xf3b334[_0x355dcd(0x1d2)]]&&_0x219923[_0xf3b334[_0x355dcd(0x1d2)]][_0xf3b334['LuYsk']]?_0x54dd62=_0xf3b334[_0x355dcd(0x24a)]:_0x54dd62=_0xf3b334[_0x355dcd(0x1c9)];}}catch(_0x100c1a){exports[_0x355dcd(0x27a)](_0x355dcd(0x224)+constants['TEST_REPORTING_ANALYTICS']+_0x355dcd(0x1c3)+_0x100c1a);}return _0x54dd62;},exports[a130_0x3805f6(0x1a1)]=async(_0x53c424,_0x4dd03b,_0x32af97=![])=>{const _0x11ea1c=a130_0x3805f6,_0x4e3cb5={};_0x4e3cb5[_0x11ea1c(0x187)]=function(_0x1a651b,_0x833f0d){return _0x1a651b===_0x833f0d;},_0x4e3cb5[_0x11ea1c(0x1f3)]=_0x11ea1c(0x1cb),_0x4e3cb5['nhUTN']='unknown_grid',_0x4e3cb5[_0x11ea1c(0x213)]=_0x11ea1c(0x1b6);const _0x42a8aa=_0x4e3cb5;try{const _0x170164=await _0x53c424[_0x11ea1c(0x223)](),_0x151332=await _0x53c424[_0x11ea1c(0x19c)](),_0x151908={},_0x96fa89=Object[_0x11ea1c(0x251)](_0x151332[_0x11ea1c(0x223)]()[_0x11ea1c(0x238)]),_0x2c0c78={'product':exports[_0x11ea1c(0x214)](_0x96fa89),'capabilities':_0x96fa89,'platform':_0x170164[_0x11ea1c(0x1aa)](),'platform_version':bsSetupHelper[_0x11ea1c(0x184)](_0x42a8aa[_0x11ea1c(0x187)](global[_0x11ea1c(0x1b8)],_0x42a8aa[_0x11ea1c(0x1f3)])),'browser':_0x170164[_0x11ea1c(0x1f7)](),'browser_version':_0x170164[_0x11ea1c(0x18b)](),'session_id':_0x151332[_0x11ea1c(0x233)]()};global[_0x11ea1c(0x1b8)]?_0x151908[global[_0x11ea1c(0x1b8)]]=_0x2c0c78:_0x151908[_0x42a8aa[_0x11ea1c(0x1e2)]]=_0x2c0c78;if(_0x32af97)return _0x151908;process['emit']('bs:addPlatformDetails:'+process[_0x11ea1c(0x25c)],{'timestamp':new Date()[_0x11ea1c(0x23c)](),'level':null,'message':null,'kind':_0x42a8aa[_0x11ea1c(0x213)],'http_response':_0x151908,'uuid':_0x4dd03b});}catch(_0x3ec2fe){exports['debug']('Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x3ec2fe);}},exports['isInternalHook']=_0x6bed5d=>{const _0x5d007f=a130_0x3805f6;return _0x6bed5d&&_0x6bed5d[_0x5d007f(0x246)]()[_0x5d007f(0x1e0)](/browserstack internal helper hook/);};
|
|
1
|
+
const a130_0x496190=a130_0x5400;function a130_0x5400(_0xfb47f3,_0x28b1e9){const _0x31550a=a130_0x3155();return a130_0x5400=function(_0x54000e,_0x42fc9b){_0x54000e=_0x54000e-0x1de;let _0x153286=_0x31550a[_0x54000e];return _0x153286;},a130_0x5400(_0xfb47f3,_0x28b1e9);}(function(_0x132e14,_0x41bebe){const _0x33cbfe=a130_0x5400,_0x300021=_0x132e14();while(!![]){try{const _0x44ead5=parseInt(_0x33cbfe(0x21e))/0x1*(-parseInt(_0x33cbfe(0x1fa))/0x2)+parseInt(_0x33cbfe(0x2cd))/0x3+parseInt(_0x33cbfe(0x26c))/0x4+parseInt(_0x33cbfe(0x264))/0x5+-parseInt(_0x33cbfe(0x233))/0x6+-parseInt(_0x33cbfe(0x2d2))/0x7+parseInt(_0x33cbfe(0x246))/0x8;if(_0x44ead5===_0x41bebe)break;else _0x300021['push'](_0x300021['shift']());}catch(_0x1b56de){_0x300021['push'](_0x300021['shift']());}}}(a130_0x3155,0x4d98e));const fs=require('fs'),path=require(a130_0x496190(0x1f0)),gitLastCommit=require('git-last-commit'),getRepoInfo=require(a130_0x496190(0x280)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a130_0x496190(0x222)),http=require(a130_0x496190(0x27b)),https=require(a130_0x496190(0x231)),child_process=require(a130_0x496190(0x283)),getos=require(a130_0x496190(0x2c1)),os=require('os'),logger=require(a130_0x496190(0x297))[a130_0x496190(0x2b9)],buildLogger=require(a130_0x496190(0x297))[a130_0x496190(0x2c4)],bsSetupHelper=require(a130_0x496190(0x26b)),requestSpy=require(a130_0x496190(0x268)),constants=require(a130_0x496190(0x1f6)),logPatcher=require('../../bin/utils/logPatcher'),util=require(a130_0x496190(0x25a)),{fileLogger}=require(a130_0x496190(0x297)),PerformanceTester=require(a130_0x496190(0x1e2)),{isFunction}=require(a130_0x496190(0x2a1)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a130_0x496190(0x2ce)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a130_0x496190(0x259));exports[a130_0x496190(0x2ec)]=_0x590108=>{const _0x40c61a=a130_0x496190;fileLogger[_0x40c61a(0x2f1)]('['+new Date()['toISOString']()+_0x40c61a(0x2d4)+constants[_0x40c61a(0x281)]+_0x40c61a(0x278)+_0x590108);},exports['debug']=_0x36bc7e=>{const _0x3494a3=a130_0x496190,_0x144e28={};_0x144e28['GcaMT']=function(_0x5b6a86,_0x3e5ebb){return _0x5b6a86===_0x3e5ebb;},_0x144e28[_0x3494a3(0x2e4)]=_0x3494a3(0x1e6),_0x144e28[_0x3494a3(0x267)]=function(_0x42f111,_0x3e4446){return _0x42f111===_0x3e4446;};const _0x43d409=_0x144e28;fileLogger[_0x3494a3(0x26f)]('['+new Date()['toISOString']()+_0x3494a3(0x2d4)+constants['TEST_REPORTING_ANALYTICS']+_0x3494a3(0x278)+_0x36bc7e),(_0x43d409[_0x3494a3(0x292)](process[_0x3494a3(0x29b)][_0x3494a3(0x24a)],_0x43d409['kAHWt'])||_0x43d409[_0x3494a3(0x292)](process['env']['BROWSERSTACK_TEST_REPORTING_DEBUG'],'1')||_0x43d409['GcaMT'](process['env'][_0x3494a3(0x29c)],_0x43d409[_0x3494a3(0x2e4)])||_0x43d409[_0x3494a3(0x267)](process[_0x3494a3(0x29b)][_0x3494a3(0x29c)],'1'))&&consoleHolder[_0x3494a3(0x1ea)]('\x0a['+new Date()[_0x3494a3(0x1f3)]()+_0x3494a3(0x2d4)+constants[_0x3494a3(0x281)]+_0x3494a3(0x278)+_0x36bc7e+'\x0a');};const a130_0x3f7b48={};a130_0x3f7b48[a130_0x496190(0x241)]=!![],a130_0x3f7b48[a130_0x496190(0x266)]=0xea60,a130_0x3f7b48['maxSockets']=0x2,a130_0x3f7b48[a130_0x496190(0x235)]=0x2;const httpKeepAliveAgent=new http[(a130_0x496190(0x252))](a130_0x3f7b48),a130_0x1f1273={};a130_0x1f1273['keepAlive']=!![],a130_0x1f1273[a130_0x496190(0x266)]=0xea60,a130_0x1f1273[a130_0x496190(0x2e6)]=0x2,a130_0x1f1273[a130_0x496190(0x235)]=0x2;const httpsKeepAliveAgent=new https[(a130_0x496190(0x252))](a130_0x1f1273),a130_0x4f8174={};a130_0x4f8174[a130_0x496190(0x241)]=!![],a130_0x4f8174[a130_0x496190(0x266)]=0xea60,a130_0x4f8174[a130_0x496190(0x2e6)]=0x2,a130_0x4f8174[a130_0x496190(0x235)]=0x2;function a130_0x3155(){const _0x3bcafc=['CUSTOM_TAG','http','mSSDn','now','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','XtHtz','git-repo-info','TEST_REPORTING_ANALYTICS','jtAXy','child_process','getUserCredentials','xGuwO','trim','shouldReRunObservabilityTests','O11yHashedID','Bearer\x20','toString','zOZOQ','glSEU','getBrowserName','\x20:\x20','format','MOCHA','BROWSERSTACK_TEST_REPORTING','GcaMT','isUndefined','dist','@playwright/test','fbCtV','../logger','measureWrapper','Error\x20in\x20getting\x20Linux\x20Details','getCustomTags','env','BROWSERSTACK_OBSERVABILITY_DEBUG','uXfAD','OS\x20X','QHxRE','EnDBH','lodash','Test\x20timeout\x20of','AssertionError','headers','json','CODECEPT_CUCUMBER','patchConsoleLogger','fromEntries','rfhbE','toJSON','xBuwu','split','xcXNE','keys','map_','zfhWD','prefixTestPath','codeceptjs','darwin','PLAYWRIGHT','browserstack','xQIAd','BROWSERSTACK_RERUN_TESTS','HUB_URL_REGEX','winstonLogger','platform','hctAP','OlPhF','HptPJ','includes','automate','AvCis','getos','annotate','match','buildLogger','getPlatform','host','RBjTR','cHIjE','mGOBv','capabilities','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','NBpAp','264456Ddiouq','../performance/constants','ObservabilitySync:','spy','BuPzp','1745800OfqVqt','gcniI','][\x20','logs','dAjFM','application/json','getCapabilities','length','QyNnY','stack','startsWith','getUserName','xoNOb','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','then','emit','NtuTJ','getFrameworkVersion','kAHWt','turboscale','maxSockets','cXXWv','uDlBj','printBuildLink','Peixe','platformName','trace','edJOF','buildTag','Zxpyf','config','silly','aLfVK','FGgoW','DcvFq','formData','app','filter','win32','BROWSERSTACK_TESTHUB_JWT','VeOQg','__cloud_provider___','body','qMVHI','Error\x20in\x20importing\x20windows-release\x20','OuUwy','PathHelper','bSYio','henSB','../performance/performance-tester','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','TEST_PLATFORM','browserstack_executor:\x20','true','getFailureType','getBrowserVersion','bKXqi','log','BROWSERSTACK_TEST_OBSERVABILITY','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','^CUSTOM_TAG_\x5cd+$','sleep','hostname','path','StcBr','fileName','toISOString','SxLUh','Windows','../../bin/utils/constants','JCpwa','X-BSTACK-TESTOPS','object','18bSIkLH','SwRjc','ECmKD','Uploading\x20trace\x20logs\x20to:\x20','message','Qzriw','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','bs:addLog:','KwGeo','err','GIwrU','stringify','BgVOm','backtrace','sendPlatformDetails','PRINT_BUILDLINK','Linux','tokBK','app-automate','HDXJF','isInternalHook','forEach','extractValuesWithRegexKeyMatch','NjRyz','info','eefSn','error','release','data','catch','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','TEST_REPORTING_BUILD_TAG','yHSpH','VZuCO','RPdhn','getBrowserStackConfig','30842jcDuaV','@cucumber/cucumber','lwQfz','null','./constants','addRequestSpy','agent','BROWSERSTACK_TEST_OBSERVABILITY_YML','pid','yxqlE','GkCjV','getPackageVersion','fXLbu','TEST_OBSERVABILITY_BUILD_TAG','isArray','Qcxkg','nodeRequest','bdvrr','RnRIr','https','getBuildTags','3392592lIShox','TEST_ATTACHMENT','maxTotalSockets','parse','Ddonj','mSDlj','rrSCo','HTTP','appium:app','url','rootDir','cADyv','getPlatformVersion','removeAnsiColors','keepAlive','FHNDE','TqYrm','expanded','nwAGz','6507176gcqKBM','Nwjvy','getPlatformDetails','opsyo','BROWSERSTACK_TEST_REPORTING_DEBUG','bstack:options','LcRjM','/builds/','kbxbo','[%s][\x20','XNDTO','UomIr','Agent','gdPDl','isTestObservabilitySession','map','CwAMD','Authorization','BS_TESTOPS_BUILD_HASHED_ID','../../../src/bin/utils/constants','util','getObservabilityLinkedProductName','modifyReqForTraceUpload','PxZxC','FaFsj','test','linux','LoBwf','idJMp','relativeTestFilePath','1858690xqUFOK','WWlKl','timeout','ViIvC','../../helpers/request-spy','mSyUU','jest','../helper','547844yKPqlc','ERMOe','push','debug','sboAv','Content-Type','iKWIK','RqVZq','prefix','windows-release','join','LogCreated','\x20]\x20','readConfig'];a130_0x3155=function(){return _0x3bcafc;};return a130_0x3155();}const httpScreenshotsKeepAliveAgent=new http['Agent'](a130_0x4f8174),a130_0x24c2c3={};a130_0x24c2c3['keepAlive']=!![],a130_0x24c2c3[a130_0x496190(0x266)]=0xea60,a130_0x24c2c3['maxSockets']=0x2,a130_0x24c2c3[a130_0x496190(0x235)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a130_0x496190(0x252))](a130_0x24c2c3);exports[a130_0x496190(0x287)]=()=>{const _0x3f23ce=a130_0x496190,_0x3b9621={};_0x3b9621['XNDTO']=function(_0x1543d6,_0x4fce3f){return _0x1543d6!==_0x4fce3f;},_0x3b9621['hctAP']=_0x3f23ce(0x221);const _0x115729=_0x3b9621;return process[_0x3f23ce(0x29b)][_0x3f23ce(0x2b7)]&&_0x115729[_0x3f23ce(0x250)](process[_0x3f23ce(0x29b)][_0x3f23ce(0x2b7)],_0x115729[_0x3f23ce(0x2bb)])?!![]:![];},exports[a130_0x496190(0x254)]=()=>{const _0x3714c3=a130_0x496190,_0x535ffd={};_0x535ffd[_0x3714c3(0x22f)]=function(_0x36eceb,_0xf03d07){return _0x36eceb===_0xf03d07;},_0x535ffd[_0x3714c3(0x245)]='true',_0x535ffd['sXXSe']=function(_0x3f67e2,_0x245bbd){return _0x3f67e2===_0x245bbd;},_0x535ffd[_0x3714c3(0x2e7)]=function(_0x2b2254,_0x4bc6e6){return _0x2b2254===_0x4bc6e6;};const _0x8b293f=_0x535ffd;let _0x4c4df1=!![];return process[_0x3714c3(0x29b)][_0x3714c3(0x225)]&&(_0x4c4df1=_0x8b293f[_0x3714c3(0x22f)](process[_0x3714c3(0x29b)][_0x3714c3(0x225)],_0x8b293f[_0x3714c3(0x245)])),process['env'][_0x3714c3(0x1eb)]&&(_0x4c4df1=_0x8b293f['sXXSe'](process[_0x3714c3(0x29b)][_0x3714c3(0x1eb)],_0x8b293f['nwAGz'])),process[_0x3714c3(0x29b)][_0x3714c3(0x291)]&&(_0x4c4df1=_0x8b293f[_0x3714c3(0x2e7)](process[_0x3714c3(0x29b)][_0x3714c3(0x291)],_0x8b293f[_0x3714c3(0x245)])),_0x4c4df1;},exports['parseFileNames']=_0x4c0d55=>{const _0x4049eb=a130_0x496190;if(bsSetupHelper[_0x4049eb(0x293)](_0x4c0d55))return undefined;try{return _0x4c0d55[_0x4049eb(0x286)]()[_0x4049eb(0x2ac)](',');}catch(_0x1073a1){return undefined;}},exports[a130_0x496190(0x2e9)]=()=>{const _0x51e953=a130_0x496190,_0x408139={'aLfVK':function(_0x87d767,_0x43c107){return _0x87d767(_0x43c107);},'FHNDE':'../../bin/v2/browserstackCLI','QHxRE':function(_0x533560,_0x2a330b){return _0x533560!==_0x2a330b;},'MJAnO':_0x51e953(0x221),'RnRIr':'undefined'};return PerformanceTester[_0x51e953(0x298)](PerformanceO11yEvents[_0x51e953(0x209)],async()=>{const _0x59ff3c=_0x51e953;try{const _0x24ceaa=_0x408139[_0x59ff3c(0x2f2)](require,_0x408139[_0x59ff3c(0x242)]);if(_0x24ceaa[_0x59ff3c(0x288)]){const _0x43645c='Visit\x20'+O11Y_URL+_0x59ff3c(0x24d)+_0x24ceaa[_0x59ff3c(0x288)]+_0x59ff3c(0x1e3);buildLogger['info'](_0x43645c);return;}if(process[_0x59ff3c(0x29b)][_0x59ff3c(0x258)]&&_0x408139[_0x59ff3c(0x29f)](process[_0x59ff3c(0x29b)][_0x59ff3c(0x258)],_0x408139['MJAnO'])&&_0x408139[_0x59ff3c(0x29f)](process[_0x59ff3c(0x29b)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x408139[_0x59ff3c(0x230)])){const _0x4c9c43='Visit\x20'+constants['O11Y_URL']+_0x59ff3c(0x24d)+process[_0x59ff3c(0x29b)][_0x59ff3c(0x258)]+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a';buildLogger[_0x59ff3c(0x212)](_0x4c9c43);}}catch(_0x361bbc){logger[_0x59ff3c(0x214)](util[_0x59ff3c(0x28f)](_0x59ff3c(0x24f)+constants[_0x59ff3c(0x281)]+'\x20]\x20Build\x20Not\x20Found\x20%s',new Date()[_0x59ff3c(0x1f3)](),_0x361bbc['stack']||_0x361bbc[_0x59ff3c(0x1fe)]||_0x361bbc));}})();},exports[a130_0x496190(0x1e7)]=_0x485db4=>{const _0x52f1f2=a130_0x496190,_0x3d7bab={};_0x3d7bab[_0x52f1f2(0x1e1)]=_0x52f1f2(0x2a3),_0x3d7bab[_0x52f1f2(0x239)]=_0x52f1f2(0x2a2),_0x3d7bab[_0x52f1f2(0x2c8)]='TimeoutError',_0x3d7bab[_0x52f1f2(0x2e8)]='UnhandledError';const _0x413944=_0x3d7bab;if(!_0x485db4)return null;const _0x3c13f6=_0x485db4[_0x52f1f2(0x28a)]();if(_0x3c13f6[_0x52f1f2(0x2c3)](/AssertionError/))return _0x413944[_0x52f1f2(0x1e1)];if(_0x3c13f6[_0x52f1f2(0x2c3)](/TimeoutError/)||_0x3c13f6[_0x52f1f2(0x2dc)](_0x413944[_0x52f1f2(0x239)])||_0x3c13f6[_0x52f1f2(0x2c3)](/Timeout.*exceeded/i))return _0x413944[_0x52f1f2(0x2c8)];return _0x413944[_0x52f1f2(0x2e8)];},exports[a130_0x496190(0x2e3)]=_0x4eeb46=>{const _0x156fdc=a130_0x496190,_0x5338c5={};_0x5338c5[_0x156fdc(0x2d1)]='mocha',_0x5338c5[_0x156fdc(0x228)]=_0x156fdc(0x295),_0x5338c5[_0x156fdc(0x2ab)]=_0x156fdc(0x2b2),_0x5338c5['zfhWD']=_0x156fdc(0x26a),_0x5338c5[_0x156fdc(0x2cc)]=_0x156fdc(0x21f);const _0x4e1458=_0x5338c5;let _0x267b76=null;switch(_0x4eeb46){case FRAMEWORKS[_0x156fdc(0x290)]:_0x267b76=bsSetupHelper[_0x156fdc(0x229)](_0x4e1458['BuPzp']);break;case FRAMEWORKS['PLAYWRIGHT']:_0x267b76=bsSetupHelper[_0x156fdc(0x229)](_0x4e1458[_0x156fdc(0x228)]);break;case FRAMEWORKS['CODECEPT']:case FRAMEWORKS[_0x156fdc(0x2a6)]:_0x267b76=bsSetupHelper[_0x156fdc(0x229)](_0x4e1458[_0x156fdc(0x2ab)]);break;case FRAMEWORKS['JEST']:_0x267b76=bsSetupHelper[_0x156fdc(0x229)](_0x4e1458[_0x156fdc(0x2b0)]);break;case FRAMEWORKS['CUCUMBER']:_0x267b76=bsSetupHelper['getPackageVersion'](_0x4e1458[_0x156fdc(0x2cc)]);break;default:break;}return _0x267b76;},exports[a130_0x496190(0x21d)]=_0x51ed17=>{const _0x56014e=a130_0x496190;let _0x2ea3c4=null;switch(_0x51ed17){case FRAMEWORKS[_0x56014e(0x2b4)]:_0x2ea3c4=process[_0x56014e(0x29b)]['BROWSERSTACK_CONFIG_FILE_PATH'];break;}if(!_0x2ea3c4)return;return bsSetupHelper[_0x56014e(0x279)](_0x2ea3c4,![]);},exports[a130_0x496190(0x284)]=_0x1432ab=>{const _0x34fbf4=a130_0x496190;return{'username':bsSetupHelper[_0x34fbf4(0x2dd)](_0x1432ab),'accessKey':bsSetupHelper['getAccessKey'](_0x1432ab)};},exports[a130_0x496190(0x25c)]=(_0x607ff5,_0x2b0357)=>{const _0x4612f2=a130_0x496190,_0x1f5aba={};_0x1f5aba[_0x4612f2(0x2d3)]='2|4|5|0|1|3',_0x1f5aba[_0x4612f2(0x237)]=_0x4612f2(0x277),_0x1f5aba['cADyv']=_0x4612f2(0x234);const _0x569be3=_0x1f5aba,_0xaebef4=_0x569be3[_0x4612f2(0x2d3)]['split']('|');let _0x4641d1=0x0;while(!![]){switch(_0xaebef4[_0x4641d1++]){case'0':delete _0x607ff5[_0x4612f2(0x2fc)];continue;case'1':delete _0x607ff5[_0x4612f2(0x2a5)];continue;case'2':if(!_0x607ff5[_0x4612f2(0x2fc)]||!Array[_0x4612f2(0x22c)](_0x607ff5[_0x4612f2(0x2fc)]))return;continue;case'3':delete _0x2b0357['headers'];continue;case'4':if(!_0x607ff5[_0x4612f2(0x2fc)][0x0]||!_0x607ff5[_0x4612f2(0x2fc)][0x0][_0x4612f2(0x2d5)]||!_0x607ff5[_0x4612f2(0x2fc)][0x0][_0x4612f2(0x2d5)]['length'])return;continue;case'5':_0x607ff5[_0x4612f2(0x2f5)]={'data':_0x607ff5[_0x4612f2(0x2fc)][0x0][_0x4612f2(0x2d5)][0x0][_0x4612f2(0x216)],'test_run_uuid':_0x607ff5[_0x4612f2(0x2fc)][0x0]['logs'][0x0]['test_run_uuid'],'event_type':_0x569be3[_0x4612f2(0x237)],'kind':_0x569be3[_0x4612f2(0x23e)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x4612f2(0x1f3)](),'fileName':_0x607ff5[_0x4612f2(0x2fc)][0x0][_0x4612f2(0x2d5)][0x0][_0x4612f2(0x1f2)]};continue;}break;}},exports['asyncAwaitNodeReq']=async(_0x2f0590,_0x365290,_0x521f36,_0x4f04ad,_0x34e3e2=!![])=>{const _0x4eceb9=a130_0x496190,_0x4073f9={};_0x4073f9[_0x4eceb9(0x27f)]=function(_0x27f906,_0x1d3e2a){return _0x27f906===_0x1d3e2a;},_0x4073f9[_0x4eceb9(0x2c7)]=_0x4eceb9(0x271),_0x4073f9[_0x4eceb9(0x2a0)]=_0x4eceb9(0x2d7),_0x4073f9[_0x4eceb9(0x21c)]='https',_0x4073f9['mSyUU']=function(_0x363ff3,_0xfd096a){return _0x363ff3===_0xfd096a;},_0x4073f9[_0x4eceb9(0x282)]=function(_0x461578,_0x226793){return _0x461578!==_0x226793;},_0x4073f9[_0x4eceb9(0x285)]=function(_0xff67b3,_0x317236){return _0xff67b3!==_0x317236;},_0x4073f9['BgVOm']=_0x4eceb9(0x1f9),_0x4073f9[_0x4eceb9(0x2d6)]='Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s';const _0x1c185a=_0x4073f9,_0x1e19cb={..._0x4f04ad,...{'method':_0x2f0590,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x365290,'body':_0x521f36,'json':_0x1c185a['XtHtz'](_0x4f04ad[_0x4eceb9(0x2a4)][_0x1c185a[_0x4eceb9(0x2c7)]],_0x1c185a[_0x4eceb9(0x2a0)]),'agent':API_URL[_0x4eceb9(0x2be)](_0x1c185a[_0x4eceb9(0x21c)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x1c185a[_0x4eceb9(0x269)](_0x365290,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x1e19cb[_0x4eceb9(0x224)]=API_URL['includes'](_0x1c185a[_0x4eceb9(0x21c)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x4eceb9(0x25c)](_0x1e19cb,_0x4f04ad),logger[_0x4eceb9(0x26f)](_0x4eceb9(0x1fd)+_0x1e19cb[_0x4eceb9(0x23c)]));try{const {statusCode:_0x1419fb,body:_0x744c03}=await bsSetupHelper[_0x4eceb9(0x22e)](_0x2f0590,_0x365290,_0x1e19cb,_0x4f04ad,_0x1e19cb[_0x4eceb9(0x23c)]);if(_0x1c185a[_0x4eceb9(0x282)](_0x1419fb,0xc8))return _0x744c03?_0x744c03:_0x4eceb9(0x2cb)+_0x1419fb;let _0x182100=_0x744c03;if(_0x34e3e2)try{_0x1c185a[_0x4eceb9(0x285)](typeof _0x744c03,_0x1c185a[_0x4eceb9(0x206)])&&(_0x182100=JSON[_0x4eceb9(0x236)](_0x744c03));}catch(_0x27f371){logger[_0x4eceb9(0x214)](_0x1c185a[_0x4eceb9(0x2d6)],_0x744c03,util['format'](_0x27f371));}const _0x2092ad={};return _0x2092ad[_0x4eceb9(0x216)]=_0x182100,_0x2092ad;}catch(_0x343de0){logger[_0x4eceb9(0x214)](_0x4eceb9(0x27e)+util[_0x4eceb9(0x28f)](_0x343de0));throw _0x343de0;}},exports[a130_0x496190(0x22e)]=(_0x427b41,_0x1449e5,_0x694c65,_0x13dd29,_0x230f26=!![])=>{const _0x50f355=a130_0x496190,_0x418f24={'VeOQg':function(_0x400214,_0x31e091){return _0x400214!==_0x31e091;},'WWlKl':function(_0x111702,_0x427179){return _0x111702(_0x427179);},'SwRjc':_0x50f355(0x1f9),'PxZxC':function(_0x1c11cb,_0x23af36){return _0x1c11cb(_0x23af36);},'mGOBv':_0x50f355(0x1ec),'idJMp':function(_0x3e533c,_0x564f23){return _0x3e533c===_0x564f23;},'ECmKD':_0x50f355(0x271),'eefSn':_0x50f355(0x2d7),'Qzriw':_0x50f355(0x231)};return new Promise((_0x1b2aab,_0x424c89)=>{const _0x170a9e=_0x50f355,_0x3a8171={'AvCis':function(_0x33412e,_0x4560df){const _0x222db7=a130_0x5400;return _0x418f24[_0x222db7(0x2fa)](_0x33412e,_0x4560df);},'qMVHI':function(_0x116141,_0x25335c){const _0x52a6b3=a130_0x5400;return _0x418f24[_0x52a6b3(0x265)](_0x116141,_0x25335c);},'bKXqi':_0x418f24[_0x170a9e(0x1fb)],'zOZOQ':function(_0x19c1bb,_0x2d92a7){const _0x3ab591=_0x170a9e;return _0x418f24[_0x3ab591(0x25d)](_0x19c1bb,_0x2d92a7);},'LoBwf':_0x418f24[_0x170a9e(0x2c9)],'RqVZq':function(_0x497c23,_0x2c5880){const _0xcfd5ca=_0x170a9e;return _0x418f24[_0xcfd5ca(0x265)](_0x497c23,_0x2c5880);}},_0xccda09={..._0x13dd29,...{'method':_0x427b41,'url':API_URL+'/'+_0x1449e5,'body':_0x694c65,'json':_0x418f24[_0x170a9e(0x262)](_0x13dd29[_0x170a9e(0x2a4)][_0x418f24[_0x170a9e(0x1fc)]],_0x418f24[_0x170a9e(0x213)]),'agent':API_URL['includes'](_0x418f24[_0x170a9e(0x1ff)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x418f24[_0x170a9e(0x262)](_0x1449e5,SCREENSHOT_ENDPOINT)&&(_0xccda09[_0x170a9e(0x224)]=API_URL['includes'](_0x418f24['Qzriw'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x170a9e(0x22e)](_0x427b41,_0x1449e5,_0xccda09,_0x13dd29,API_URL)[_0x170a9e(0x2e0)](({statusCode:_0x12f501,body:_0x42a2f7})=>{const _0x21127b=_0x170a9e;if(_0x3a8171[_0x21127b(0x2c0)](_0x12f501,0xc8))_0x3a8171['qMVHI'](_0x424c89,_0x42a2f7?_0x42a2f7:_0x21127b(0x2cb)+_0x12f501);else{if(_0x230f26)try{_0x3a8171['AvCis'](typeof _0x42a2f7,_0x3a8171[_0x21127b(0x1e9)])&&(_0x42a2f7=JSON[_0x21127b(0x236)](_0x42a2f7));}catch(_0xf77896){_0x3a8171[_0x21127b(0x28b)](_0x424c89,_0x3a8171[_0x21127b(0x261)]);return;}const _0x491490={};_0x491490[_0x21127b(0x216)]=_0x42a2f7,_0x3a8171[_0x21127b(0x273)](_0x1b2aab,_0x491490);}})[_0x170a9e(0x217)](_0x233130=>{const _0x379c75=_0x170a9e;_0x233130&&_0x3a8171[_0x379c75(0x2fd)](_0x424c89,_0x233130);});});},exports[a130_0x496190(0x232)]=_0x5e91f8=>{const _0x52d09c=a130_0x496190;if(process['env'][_0x52d09c(0x219)])return process[_0x52d09c(0x29b)][_0x52d09c(0x219)][_0x52d09c(0x2ac)](',');if(process['env'][_0x52d09c(0x22b)])return process['env'][_0x52d09c(0x22b)][_0x52d09c(0x2ac)](',');if(_0x5e91f8['buildTag'])return _0x5e91f8[_0x52d09c(0x2ee)];return[];},exports['getDefaultHeaders']=(_0x47a75a=!![])=>{const _0x4f8738=a130_0x496190,_0x4cd2ec={};_0x4cd2ec[_0x4f8738(0x2ad)]='application/json',_0x4cd2ec['GIwrU']=_0x4f8738(0x1e6),_0x4cd2ec[_0x4f8738(0x24e)]=_0x4f8738(0x257);const _0x3061b8=_0x4cd2ec,_0x36f97a={};_0x36f97a[_0x4f8738(0x271)]=_0x3061b8[_0x4f8738(0x2ad)],_0x36f97a[_0x4f8738(0x1f8)]=_0x3061b8[_0x4f8738(0x204)];const _0x11eb3d=_0x36f97a;return _0x47a75a&&process[_0x4f8738(0x29b)]['BROWSERSTACK_TESTHUB_JWT']&&(_0x11eb3d[_0x3061b8['kbxbo']]=_0x4f8738(0x289)+process['env'][_0x4f8738(0x2f9)]),_0x11eb3d;},exports['extractValuesWithRegexKeyMatch']=_0x1c0f40=>{const _0x1d447b=a130_0x496190,_0x148a69={};_0x148a69['HDXJF']=_0x1d447b(0x1ed);const _0x4ca131=_0x148a69,_0x38b917=[],_0x32cfac=new RegExp(_0x4ca131[_0x1d447b(0x20d)],'i');return Object[_0x1d447b(0x2ae)](_0x1c0f40)[_0x1d447b(0x2f7)](_0x76804a=>_0x32cfac['test'](_0x76804a))[_0x1d447b(0x20f)](_0x11954f=>_0x38b917['push'](_0x1c0f40[_0x11954f])),_0x38b917;},exports[a130_0x496190(0x29a)]=_0x3142ad=>{const _0x26e4c4=a130_0x496190,_0x27449e=[],_0x45cb8a=_0x3142ad['customTag']||process[_0x26e4c4(0x29b)][_0x26e4c4(0x27a)];return _0x45cb8a&&_0x27449e['push'](_0x45cb8a),_0x27449e[_0x26e4c4(0x26e)](...exports['extractValuesWithRegexKeyMatch'](process[_0x26e4c4(0x29b)])),_0x27449e[_0x26e4c4(0x26e)](...exports[_0x26e4c4(0x210)](_0x3142ad)),_0x27449e;},exports[a130_0x496190(0x240)]=_0x1aa8fb=>{if(!_0x1aa8fb)return'';return _0x1aa8fb['replace'](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a130_0x496190(0x1ee)]=(_0x3afbea=0x64)=>new Promise(_0x2b0af7=>setTimeout(_0x2b0af7,_0x3afbea));const getPlatformName=()=>{const _0x3dd71a=a130_0x496190,_0x1d225f={};_0x1d225f[_0x3dd71a(0x21a)]=function(_0x3ebd4b,_0x169de9){return _0x3ebd4b===_0x169de9;},_0x1d225f[_0x3dd71a(0x2de)]=_0x3dd71a(0x2f8),_0x1d225f[_0x3dd71a(0x2a9)]='Windows',_0x1d225f['mSDlj']=function(_0x19f791,_0x532db2){return _0x19f791===_0x532db2;},_0x1d225f[_0x3dd71a(0x272)]=_0x3dd71a(0x2b3),_0x1d225f[_0x3dd71a(0x26d)]=_0x3dd71a(0x29e),_0x1d225f[_0x3dd71a(0x2bd)]=_0x3dd71a(0x260),_0x1d225f['tokBK']=_0x3dd71a(0x20a),_0x1d225f[_0x3dd71a(0x2e2)]='Unknown';const _0x146e2a=_0x1d225f;if(_0x146e2a[_0x3dd71a(0x21a)](process[_0x3dd71a(0x2ba)],_0x146e2a[_0x3dd71a(0x2de)]))return _0x146e2a[_0x3dd71a(0x2a9)];if(_0x146e2a[_0x3dd71a(0x238)](process['platform'],_0x146e2a['iKWIK']))return _0x146e2a[_0x3dd71a(0x26d)];if(_0x146e2a[_0x3dd71a(0x238)](process[_0x3dd71a(0x2ba)],_0x146e2a['HptPJ']))return _0x146e2a[_0x3dd71a(0x20b)];return _0x146e2a[_0x3dd71a(0x2e2)];},getMacOSVersion=()=>{const _0xf36e14=a130_0x496190,_0x37ada4={};_0x37ada4['Vdyqi']=_0xf36e14(0x218);const _0x3264ab=_0x37ada4;return child_process['execSync'](_0x3264ab['Vdyqi'])[_0xf36e14(0x28a)]()[_0xf36e14(0x286)]();},getLinuxDetails=()=>{const _0x262146={'fbCtV':function(_0x2ad051,_0xa95fce){return _0x2ad051(_0xa95fce);},'opsyo':function(_0xb2c0f8,_0x38c2a9){return _0xb2c0f8(_0x38c2a9);}};return new Promise((_0x3092b4,_0x52abdf)=>{const _0x339d30=a130_0x5400,_0x3bc4e0={'SxLUh':function(_0x352757,_0x191b1d){const _0x3b3943=a130_0x5400;return _0x262146[_0x3b3943(0x296)](_0x352757,_0x191b1d);}};_0x262146[_0x339d30(0x249)](getos,(_0x305b8b,_0x158d5a)=>{const _0x5e4d15=_0x339d30;if(_0x305b8b)return _0x3bc4e0['SxLUh'](_0x52abdf,_0x305b8b);_0x3bc4e0[_0x5e4d15(0x1f4)](_0x3092b4,_0x158d5a);});});};exports[a130_0x496190(0x248)]=async()=>{const _0x29a45f=a130_0x496190,_0x11ea55={'DcvFq':function(_0x293439){return _0x293439();},'Nwjvy':'OS\x20X','uXfAD':_0x29a45f(0x1f5),'CwAMD':_0x29a45f(0x275),'OlPhF':function(_0x21b718){return _0x21b718();},'oLrrS':'Linux','mSSDn':_0x29a45f(0x299)};let _0x43264d=_0x11ea55[_0x29a45f(0x2f4)](getPlatformName),_0x32b09e=os[_0x29a45f(0x215)]()['toString']();switch(_0x43264d){case _0x11ea55[_0x29a45f(0x247)]:_0x32b09e=_0x11ea55[_0x29a45f(0x2f4)](getMacOSVersion);break;case _0x11ea55[_0x29a45f(0x29d)]:try{const _0x10631d=(await import(_0x11ea55[_0x29a45f(0x256)]))['default'];_0x32b09e=_0x11ea55[_0x29a45f(0x2bc)](_0x10631d);}catch(_0x4d3c33){exports[_0x29a45f(0x26f)](_0x29a45f(0x2fe)+_0x4d3c33['toString']());}break;case _0x11ea55['oLrrS']:try{const _0xbd6fa3=await _0x11ea55[_0x29a45f(0x2bc)](getLinuxDetails);_0xbd6fa3[_0x29a45f(0x294)]&&(_0x43264d=_0xbd6fa3['dist']),_0xbd6fa3[_0x29a45f(0x215)]&&(_0x32b09e=_0xbd6fa3[_0x29a45f(0x215)][_0x29a45f(0x28a)]());}catch(_0x2d8ef3){exports['debug'](_0x11ea55[_0x29a45f(0x27c)]);}break;default:break;}const _0x5b7992={};return _0x5b7992[_0x29a45f(0x2eb)]=_0x43264d,_0x5b7992['platformVersion']=_0x32b09e,_0x5b7992;},exports['failureData']=(_0x3aaa92,_0xbafa1f)=>{const _0x1c0a32=a130_0x496190,_0x1bf48c={};_0x1bf48c[_0x1c0a32(0x1de)]=function(_0x5459dc,_0x299c9d){return _0x5459dc===_0x299c9d;},_0x1bf48c[_0x1c0a32(0x253)]=_0x1c0a32(0x25f),_0x1bf48c[_0x1c0a32(0x2b6)]=function(_0x378cac,_0x507e67){return _0x378cac===_0x507e67;},_0x1bf48c[_0x1c0a32(0x243)]=_0x1c0a32(0x203);const _0x43faea=_0x1bf48c;if(!_0x3aaa92)return[];try{if(_0x43faea[_0x1c0a32(0x1de)](_0xbafa1f,_0x43faea[_0x1c0a32(0x253)]))return _0x3aaa92['map'](_0x48d480=>{const _0x316e09=_0x1c0a32,{stack:_0x37f72a,..._0x35f06d}=_0x48d480,_0x1e8e99=Object['keys'](_0x35f06d)[_0x316e09(0x255)](_0xc8cc7d=>{return _0xc8cc7d+':\x20'+_0x35f06d[_0xc8cc7d];}),_0x567ff3=_0x37f72a?exports[_0x316e09(0x240)](_0x37f72a)['split'](/\r?\n/):[exports[_0x316e09(0x240)](_0x48d480['message'])],_0x1b9c23={};return _0x1b9c23[_0x316e09(0x207)]=_0x567ff3,_0x1b9c23[_0x316e09(0x244)]=_0x1e8e99,_0x1b9c23;});else{if(_0x43faea['xQIAd'](_0xbafa1f,_0x43faea[_0x1c0a32(0x243)])){const _0x2e736f=[],_0x425f06=[];return Object['keys'](_0x3aaa92)['forEach'](_0x406995=>{const _0x90890b=_0x1c0a32;try{_0x425f06[_0x90890b(0x26e)](_0x406995+':\x20'+_0x3aaa92[_0x406995]);}catch(_0x5e735f){exports[_0x90890b(0x26f)](_0x90890b(0x200)+_0x5e735f[_0x90890b(0x1fe)]+_0x90890b(0x28e)+_0x5e735f[_0x90890b(0x207)]);}}),_0x2e736f[_0x1c0a32(0x26e)]({'backtrace':exports['removeAnsiColors'](_0x3aaa92[_0x1c0a32(0x2db)])[_0x1c0a32(0x2ac)](/\r?\n/),'expanded':_0x425f06}),_0x2e736f;}}return[];}catch(_0x576339){exports[_0x1c0a32(0x26f)](_0x1c0a32(0x200)+_0x576339[_0x1c0a32(0x1fe)]+_0x1c0a32(0x28e)+_0x576339[_0x1c0a32(0x207)]);}return[];};class PathHelper{constructor(_0x1af0a5,_0x364263){this['config']=_0x1af0a5,this['prefix']=_0x364263;}[a130_0x496190(0x263)](_0x43ab40){const _0x30aa6b=a130_0x496190,_0x260d61=this[_0x30aa6b(0x2f0)]['cwd']||this['config'][_0x30aa6b(0x23d)];return path['relative'](_0x260d61,_0x43ab40);}[a130_0x496190(0x2b1)](_0x26a387){const _0x23ef6d=a130_0x496190,_0x5590cf=this[_0x23ef6d(0x263)](_0x26a387);return this[_0x23ef6d(0x274)]?path[_0x23ef6d(0x276)](this[_0x23ef6d(0x274)],_0x5590cf):_0x5590cf;}}exports[a130_0x496190(0x1df)]=PathHelper,exports[a130_0x496190(0x223)]=(_0x16fdba=!![])=>{const _0x1d76e8=a130_0x496190,_0x5d3d84={};_0x5d3d84[_0x1d76e8(0x22d)]=function(_0x5af6ce,_0x98bdd0){return _0x5af6ce===_0x98bdd0;},_0x5d3d84[_0x1d76e8(0x220)]='X-BSTACK-TESTOPS',_0x5d3d84[_0x1d76e8(0x1f1)]=_0x1d76e8(0x1e6),_0x5d3d84[_0x1d76e8(0x2da)]=_0x1d76e8(0x23a),_0x5d3d84[_0x1d76e8(0x21b)]=_0x1d76e8(0x2b5),_0x5d3d84['edJOF']='local_grid';const _0xa18d50=_0x5d3d84;requestSpy[_0x1d76e8(0x2d0)]((_0x547bdf,_0x2017d1)=>{const _0x550099=_0x1d76e8;_0x2017d1&&!(_0x2017d1[_0x550099(0x2a4)]&&_0xa18d50[_0x550099(0x22d)](_0x2017d1[_0x550099(0x2a4)][_0xa18d50[_0x550099(0x220)]],_0xa18d50['StcBr']))&&(_0x2017d1[_0x550099(0x2c6)]=_0x2017d1[_0x550099(0x1ef)],delete _0x2017d1[_0x550099(0x1ef)],_0x16fdba&&process[_0x550099(0x2e1)](_0x550099(0x201)+process['pid'],{'timestamp':new Date()[_0x550099(0x1f3)](),'level':null,'message':null,'kind':_0xa18d50[_0x550099(0x2da)],'http_response':_0x2017d1})),_0x2017d1&&(constants[_0x550099(0x2b8)][_0x550099(0x25f)](_0x2017d1['host'])||constants['ATS_HUB_URL_REGEX'][_0x550099(0x25f)](_0x2017d1[_0x550099(0x2c6)]))?global[_0x550099(0x2fb)]=_0xa18d50[_0x550099(0x21b)]:global[_0x550099(0x2fb)]=_0xa18d50[_0x550099(0x2ed)];});},exports[a130_0x496190(0x2a7)]=()=>{const _0x413662=a130_0x496190,_0x5513b8={'LcRjM':function(_0x51411e,_0x468b33){return _0x51411e(_0x468b33);}};console={},Object[_0x413662(0x2ae)](consoleHolder)[_0x413662(0x20f)](_0x5c0920=>{const _0x68c5f=_0x413662;_0x5513b8[_0x68c5f(0x24c)](isFunction,consoleHolder[_0x5c0920])?console[_0x5c0920]=(..._0x481e10)=>{const _0x2904a8=_0x68c5f;try{!Object[_0x2904a8(0x2ae)](BSTestOpsPatcher)[_0x2904a8(0x2be)](_0x5c0920)?consoleHolder[_0x5c0920](..._0x481e10):BSTestOpsPatcher[_0x5c0920](..._0x481e10);}catch(_0x83c92d){consoleHolder[_0x5c0920](..._0x481e10);}}:console[_0x5c0920]=consoleHolder[_0x5c0920];});},exports['getSyncScript']=()=>a130_0x496190(0x1e5)+JSON[a130_0x496190(0x205)]({'action':a130_0x496190(0x2c2),'arguments':{'data':a130_0x496190(0x2cf)+Date[a130_0x496190(0x27d)](),'level':a130_0x496190(0x26f)}}),exports[a130_0x496190(0x25b)]=_0x225ab9=>{const _0x1b868a=a130_0x496190,_0xfaee98={};_0xfaee98[_0x1b868a(0x2ef)]=function(_0x1f3391,_0x42a8dc){return _0x1f3391===_0x42a8dc;},_0xfaee98[_0x1b868a(0x211)]=_0x1b868a(0x2b5),_0xfaee98['yxqlE']=_0x1b868a(0x23b),_0xfaee98['UomIr']=_0x1b868a(0x2f6),_0xfaee98['Turqd']=function(_0x192799,_0x99146e){return _0x192799>_0x99146e;},_0xfaee98[_0x1b868a(0x25e)]=_0x1b868a(0x20c),_0xfaee98[_0x1b868a(0x28c)]=_0x1b868a(0x24b),_0xfaee98[_0x1b868a(0x202)]='turboScaleGridDetails',_0xfaee98[_0x1b868a(0x2f3)]=_0x1b868a(0x2e5),_0xfaee98['Peixe']=_0x1b868a(0x2bf);const _0x2e28cd=_0xfaee98;let _0xa30d17=null;try{if(_0x2e28cd['Zxpyf'](global['__cloud_provider___'],_0x2e28cd[_0x1b868a(0x211)])){if(_0x225ab9[_0x2e28cd[_0x1b868a(0x227)]]||_0x225ab9[_0x2e28cd[_0x1b868a(0x251)]]||!bsSetupHelper[_0x1b868a(0x293)](global[_0x1b868a(0x2ca)])&&_0x2e28cd['Turqd'](global['capabilities'][_0x1b868a(0x2d9)],0x0)&&(global['capabilities'][0x0][_0x2e28cd[_0x1b868a(0x251)]]||global['capabilities'][0x0][_0x2e28cd[_0x1b868a(0x227)]]))_0xa30d17=_0x2e28cd['FaFsj'];else _0x225ab9[_0x2e28cd[_0x1b868a(0x28c)]]&&_0x225ab9[_0x2e28cd[_0x1b868a(0x28c)]][_0x2e28cd[_0x1b868a(0x202)]]?_0xa30d17=_0x2e28cd[_0x1b868a(0x2f3)]:_0xa30d17=_0x2e28cd[_0x1b868a(0x2ea)];}}catch(_0x37c5bb){exports[_0x1b868a(0x26f)]('Failed\x20to\x20determine\x20product\x20linked\x20to\x20'+constants[_0x1b868a(0x281)]+'\x20test\x20instance\x20:\x20'+_0x37c5bb);}return _0xa30d17;},exports[a130_0x496190(0x208)]=async(_0x31821a,_0x578b5b,_0x1d1eea=![])=>{const _0x129d78=a130_0x496190,_0x37ab68={};_0x37ab68['fXLbu']=function(_0x20a8de,_0x445469){return _0x20a8de===_0x445469;},_0x37ab68[_0x129d78(0x1f7)]='browserstack',_0x37ab68[_0x129d78(0x270)]='unknown_grid',_0x37ab68[_0x129d78(0x1e0)]=_0x129d78(0x1e4);const _0x4c3132=_0x37ab68;try{const _0x1eafc9=await _0x31821a[_0x129d78(0x2d8)](),_0x2c0a35=await _0x31821a['getSession'](),_0x18e96f={},_0x1d048a=Object[_0x129d78(0x2a8)](_0x2c0a35[_0x129d78(0x2d8)]()[_0x129d78(0x2af)]),_0x3c5c07={'product':exports[_0x129d78(0x25b)](_0x1d048a),'capabilities':_0x1d048a,'platform':_0x1eafc9[_0x129d78(0x2c5)](),'platform_version':bsSetupHelper[_0x129d78(0x23f)](_0x4c3132[_0x129d78(0x22a)](global['__cloud_provider___'],_0x4c3132['JCpwa'])),'browser':_0x1eafc9[_0x129d78(0x28d)](),'browser_version':_0x1eafc9[_0x129d78(0x1e8)](),'session_id':_0x2c0a35[_0x129d78(0x2aa)]()};global['__cloud_provider___']?_0x18e96f[global[_0x129d78(0x2fb)]]=_0x3c5c07:_0x18e96f[_0x4c3132['sboAv']]=_0x3c5c07;if(_0x1d1eea)return _0x18e96f;process['emit']('bs:addPlatformDetails:'+process[_0x129d78(0x226)],{'timestamp':new Date()[_0x129d78(0x1f3)](),'level':null,'message':null,'kind':_0x4c3132[_0x129d78(0x1e0)],'http_response':_0x18e96f,'uuid':_0x578b5b});}catch(_0x5afb29){exports[_0x129d78(0x26f)](_0x129d78(0x2df)+_0x5afb29);}},exports[a130_0x496190(0x20e)]=_0x10989a=>{const _0x40607a=a130_0x496190;return _0x10989a&&_0x10989a[_0x40607a(0x28a)]()[_0x40607a(0x2c3)](/browserstack internal helper hook/);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a131_0xb8a55e=a131_0x1a0e;(function(_0x5f515a,_0x5db506){var _0x509bcd=a131_0x1a0e,_0x2e8dd6=_0x5f515a();while(!![]){try{var _0x50bd10=parseInt(_0x509bcd(0xa7))/0x1*(parseInt(_0x509bcd(0xa2))/0x2)+-parseInt(_0x509bcd(0xaf))/0x3*(parseInt(_0x509bcd(0xb2))/0x4)+-parseInt(_0x509bcd(0xa8))/0x5*(parseInt(_0x509bcd(0xac))/0x6)+parseInt(_0x509bcd(0xb3))/0x7*(-parseInt(_0x509bcd(0xb1))/0x8)+parseInt(_0x509bcd(0xa5))/0x9*(-parseInt(_0x509bcd(0xab))/0xa)+parseInt(_0x509bcd(0xa3))/0xb+parseInt(_0x509bcd(0xad))/0xc;if(_0x50bd10===_0x5db506)break;else _0x2e8dd6['push'](_0x2e8dd6['shift']());}catch(_0x305c3){_0x2e8dd6['push'](_0x2e8dd6['shift']());}}}(a131_0x5c78,0xda6f0));function a131_0x1a0e(_0x2ca30a,_0x8de682){var _0x5c786d=a131_0x5c78();return a131_0x1a0e=function(_0x1a0ec4,_0x53e34a){_0x1a0ec4=_0x1a0ec4-0xa2;var _0x284574=_0x5c786d[_0x1a0ec4];return _0x284574;},a131_0x1a0e(_0x2ca30a,_0x8de682);}function a131_0x5c78(){var _0x395c51=['406ThzBto','34nlWJQe','15555672zzVbls','testorchestration/api/v1/split-tests','12340935jgsSfb','SPLIT_TESTS_ENDPOINT','33903xrhGMR','1945Pofywr','https://collector-observability.browserstack.com','ORCHESTRATION_API_URL','10AkwvQY','1506mlzPFb','21436176EtWrSb','FAILED_TESTS_ENDPOINT','639837ETckgy','testorchestration/api/v1/failed-tests','47848acZUmI','20LisyEh'];a131_0x5c78=function(){return _0x395c51;};return a131_0x5c78();}var a131_0x19e682={};a131_0x19e682[a131_0xb8a55e(0xaa)]=a131_0xb8a55e(0xa9),a131_0x19e682[a131_0xb8a55e(0xae)]=a131_0xb8a55e(0xb0),a131_0x19e682[a131_0xb8a55e(0xa6)]=a131_0xb8a55e(0xa4),module['exports']=a131_0x19e682;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a132_0x17313f=a132_0x463a;function a132_0x463a(_0x3d409f,_0x4bc07b){const _0x58f21b=a132_0x58f2();return a132_0x463a=function(_0x463ae4,_0x244344){_0x463ae4=_0x463ae4-0x72;let _0x482ffe=_0x58f21b[_0x463ae4];return _0x482ffe;},a132_0x463a(_0x3d409f,_0x4bc07b);}(function(_0x44a0f4,_0x120e07){const _0x1e15d6=a132_0x463a,_0xa60eb7=_0x44a0f4();while(!![]){try{const _0x2735b6=parseInt(_0x1e15d6(0x93))/0x1*(-parseInt(_0x1e15d6(0x96))/0x2)+parseInt(_0x1e15d6(0xf8))/0x3+parseInt(_0x1e15d6(0xe9))/0x4*(parseInt(_0x1e15d6(0xc1))/0x5)+-parseInt(_0x1e15d6(0xaf))/0x6+-parseInt(_0x1e15d6(0xc8))/0x7*(parseInt(_0x1e15d6(0x99))/0x8)+-parseInt(_0x1e15d6(0xc5))/0x9+parseInt(_0x1e15d6(0xd0))/0xa;if(_0x2735b6===_0x120e07)break;else _0xa60eb7['push'](_0xa60eb7['shift']());}catch(_0x48268c){_0xa60eb7['push'](_0xa60eb7['shift']());}}}(a132_0x58f2,0xf29ea));const fs=require('fs'),path=require(a132_0x17313f(0xf7)),FileHelper=require(a132_0x17313f(0xae)),RequestUtils=require(a132_0x17313f(0xca)),logger=require(a132_0x17313f(0xa2))[a132_0x17313f(0xa1)],POLLING_INTERVAL=0x2710,TAG=a132_0x17313f(0xed);function a132_0x58f2(){const _0x22a286=['cleanup','join','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','toISOString','failureThresholdCount',',\x20threshold:\x20','_getDefaultState','add','./fileHelper','10317528ySXNhV','EIBeV','_sendFailedTestsToAPI','MebIP','workingDir','has','message','lockFilePath','ffPwE','JvAHc','stopPolling','_CI]\x20API\x20failed\x20count\x20updated:\x20','wUKTi','stack','newState','length','isCIMode','projectName','3892195qmmdtS','buildName','BROWSERSTACK_TOTAL_NODE_COUNT','failFastState.lock','14686695gQkUgi','qlqxl','failFastConfig','161539GEJVJz','rfdEV','./requestUtils','tXbmn','WsgOh','jafdZ','exports','hTzzs','45980420coXtxO','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','writeState','info','existsSync','_CI]\x20Polling\x20started\x20with\x20interval:\x20','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','failFastActive','passed','YFFvf','_pollFailedTests','efIdv',']\x20Polling\x20stopped.','readState','irmWw','GcOLi','BROWSERSTACK_BUILD_RUN_IDENTIFIER','size',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','failed','ms.','state','failFastActiveMarkerPath','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','zoNXR','4QIkFAk','lemuF','error','WrVvS','FailFastManager','TLasT','YIhMe','from','QrzCX','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','uniqueFailedTests','reportedFailuresToAPI','NSAEO','path','1940706fbauTA','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','FUMje','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','failFast.active','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','tZNUy','BiMCA','catch','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','debug','pGRQW','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','zgRhX','_initializeStateFromFile','recordTestResult','_CI]\x20Error\x20during\x20polling\x20logic:\x20','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','_fetchAPIFailedCount','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','stateFilePath','env','HgHSd','caPEV','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','fileHelper','ghCtd','jfwSR','\x0aStack:\x20','yEeti','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','shouldFailFast','WrjJN','NcNei','totalTests','46643vDTfLr','buildRunIdentifier','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','68rPFIoW','JbLbX','writeFileSync','32fnMzZJ','SFikC','JthaU','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','startPolling','bIXsC','_CI]\x20Error\x20sending\x20failed\x20test\x20','OqkHO','winstonLogger','../logger','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','lastAPIFailedCount','pollingInterval'];a132_0x58f2=function(){return _0x22a286;};return a132_0x58f2();}class FailFastManager{constructor(_0xa4a566,_0x28d3cb,_0x380022){const _0x4a68c4=a132_0x17313f,_0x4168be={};_0x4168be[_0x4a68c4(0xee)]=function(_0x376c2c,_0x347de4){return _0x376c2c+_0x347de4;},_0x4168be[_0x4a68c4(0x8b)]=_0x4a68c4(0x8c),_0x4168be[_0x4a68c4(0xea)]=function(_0x3b41e5,_0x16db33){return _0x3b41e5||_0x16db33;},_0x4168be[_0x4a68c4(0x91)]='failFastState.json',_0x4168be[_0x4a68c4(0x7b)]=_0x4a68c4(0xc4),_0x4168be[_0x4a68c4(0xcb)]=_0x4a68c4(0x74);const _0x11c481=_0x4168be;this[_0x4a68c4(0xc7)]=_0x11c481[_0x4a68c4(0xea)](_0xa4a566,{}),this['buildName']=_0x28d3cb,this[_0x4a68c4(0xc0)]=_0x380022,this[_0x4a68c4(0xbf)]=!!(process[_0x4a68c4(0x85)][_0x4a68c4(0xe0)]&&process[_0x4a68c4(0x85)]['BROWSERSTACK_NODE_INDEX']&&process[_0x4a68c4(0x85)][_0x4a68c4(0xc3)]);const _0x64e3d8=this['failFastConfig'][_0x4a68c4(0xb3)];this['stateFilePath']=path[_0x4a68c4(0xa7)](_0x64e3d8,_0x11c481['NcNei']),this[_0x4a68c4(0xb6)]=path[_0x4a68c4(0xa7)](_0x64e3d8,_0x11c481['pGRQW']),this[_0x4a68c4(0xe6)]=path['join'](_0x64e3d8,_0x11c481[_0x4a68c4(0xcb)]),this[_0x4a68c4(0x89)]=new FileHelper(this[_0x4a68c4(0xc7)],this[_0x4a68c4(0x84)],this[_0x4a68c4(0xb6)],this[_0x4a68c4(0xac)]()),this['state']=this['_getDefaultState'](),this[_0x4a68c4(0xa5)]=null,this[_0x4a68c4(0xbf)]&&(this[_0x4a68c4(0xf5)]=new Set()),this[_0x4a68c4(0x7e)]()[_0x4a68c4(0x78)](_0x3e90ce=>{const _0x1b7c06=_0x4a68c4;logger['error']('['+TAG+_0x1b7c06(0xe2)+_0x3e90ce[_0x1b7c06(0xb5)]+(_0x3e90ce[_0x1b7c06(0xbc)]?_0x11c481['TLasT'](_0x11c481[_0x1b7c06(0x8b)],_0x3e90ce[_0x1b7c06(0xbc)]):'')),this['state']=this[_0x1b7c06(0xac)]();}),this['isCIMode']&&this[_0x4a68c4(0x9d)](),logger[_0x4a68c4(0x7a)]('['+TAG+']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20'+this['failFastConfig'][_0x4a68c4(0xaa)]+',\x20CI\x20Mode:\x20'+this['isCIMode']);}[a132_0x17313f(0xac)](){const _0x2c422e={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x2c422e;}async['_initializeStateFromFile'](){const _0x444e6e=a132_0x17313f,_0x305356={};_0x305356[_0x444e6e(0xc9)]=function(_0x53d58c,_0x2d5210){return _0x53d58c+_0x2d5210;},_0x305356['HgHSd']=_0x444e6e(0x8c),_0x305356[_0x444e6e(0x77)]=function(_0xce68db,_0x86ac11){return _0xce68db+_0x86ac11;};const _0x3a3681=_0x305356;if(this['isCIMode'])try{fs[_0x444e6e(0xd4)](this[_0x444e6e(0xe6)])&&(this['state'][_0x444e6e(0xd7)]=!![],logger[_0x444e6e(0x7a)]('['+TAG+_0x444e6e(0xa3)));}catch(_0x933db4){logger[_0x444e6e(0xeb)]('['+TAG+_0x444e6e(0x75)+_0x933db4[_0x444e6e(0xb5)]+(_0x933db4[_0x444e6e(0xbc)]?_0x3a3681[_0x444e6e(0xc9)](_0x3a3681[_0x444e6e(0x86)],_0x933db4[_0x444e6e(0xbc)]):''));}else try{const _0x5d4643=await this['fileHelper']['readState']();if(_0x5d4643)this[_0x444e6e(0xe5)]={...this['_getDefaultState'](),..._0x5d4643,'uniqueFailedTests':new Set(_0x5d4643['uniqueFailedTests']||[])},logger[_0x444e6e(0x7a)]('['+TAG+'_Local]\x20State\x20initialized\x20from\x20file.');else{logger['debug']('['+TAG+_0x444e6e(0xd6));const _0x2a5be4=this['_getDefaultState'](),_0xd41972={..._0x2a5be4,'uniqueFailedTests':Array[_0x444e6e(0xf0)](_0x2a5be4[_0x444e6e(0xf4)])};await this[_0x444e6e(0x89)][_0x444e6e(0xd2)](_0xd41972),this[_0x444e6e(0xe5)]=_0x2a5be4;}}catch(_0x3c5651){logger[_0x444e6e(0x7a)]('['+TAG+_0x444e6e(0x73)+_0x3c5651[_0x444e6e(0xb5)]+(_0x3c5651[_0x444e6e(0xbc)]?_0x3a3681['BiMCA'](_0x3a3681[_0x444e6e(0x86)],_0x3c5651[_0x444e6e(0xbc)]):'')),this['state']=this[_0x444e6e(0xac)]();}}async['onTestDone'](_0x27d885,_0x524057){const _0x3d0475=a132_0x17313f,_0xbd973f={};_0xbd973f['yEeti']=function(_0x38c04e,_0x4d8a20){return _0x38c04e>_0x4d8a20;},_0xbd973f[_0x3d0475(0xdf)]=function(_0x3c1527,_0x4a26fa){return _0x3c1527>_0x4a26fa;},_0xbd973f['QrzCX']=_0x3d0475(0xe3),_0xbd973f['NSAEO']=_0x3d0475(0xd8),_0xbd973f[_0x3d0475(0xb2)]=function(_0x1df1f0,_0x30bb5e){return _0x1df1f0+_0x30bb5e;},_0xbd973f[_0x3d0475(0x90)]=_0x3d0475(0x8c),_0xbd973f[_0x3d0475(0xcc)]=function(_0x2de31e,_0x40c89e){return _0x2de31e||_0x40c89e;};const _0xf9e3b6=_0xbd973f;if(this[_0x3d0475(0xbf)])this[_0x3d0475(0xe5)][_0x3d0475(0x92)]+=0x1,_0x524057&&_0xf9e3b6[_0x3d0475(0x8d)](_0x524057['length'],0x0)&&(!this[_0x3d0475(0xf5)][_0x3d0475(0xb4)](_0x27d885)&&(await this['_sendFailedTestsToAPI'](_0x27d885),this[_0x3d0475(0xf5)][_0x3d0475(0xad)](_0x27d885)));else try{const _0x125428={'fullName':_0x27d885,'status':_0x524057&&_0xf9e3b6[_0x3d0475(0xdf)](_0x524057[_0x3d0475(0xbe)],0x0)?_0xf9e3b6[_0x3d0475(0xf1)]:_0xf9e3b6[_0x3d0475(0xf6)]},_0x4e1db0=await this['fileHelper'][_0x3d0475(0x7f)](_0x125428);this[_0x3d0475(0xe5)]={...this[_0x3d0475(0xac)](),..._0x4e1db0[_0x3d0475(0xbd)],'uniqueFailedTests':new Set(_0x4e1db0[_0x3d0475(0xbd)]['uniqueFailedTests']||[])};}catch(_0x5d75d3){logger[_0x3d0475(0xeb)]('['+TAG+_0x3d0475(0x88)+_0x5d75d3[_0x3d0475(0xb5)]+(_0x5d75d3['stack']?_0xf9e3b6[_0x3d0475(0xb2)](_0xf9e3b6['WrjJN'],_0x5d75d3[_0x3d0475(0xbc)]):''));try{const _0x41a4eb=await this[_0x3d0475(0x89)]['readState']();this[_0x3d0475(0xe5)]={...this[_0x3d0475(0xac)](),..._0xf9e3b6[_0x3d0475(0xcc)](_0x41a4eb,{}),'uniqueFailedTests':new Set(_0x41a4eb?_0x41a4eb[_0x3d0475(0xf4)]||[]:[])},logger[_0x3d0475(0x7a)]('['+TAG+_0x3d0475(0x8e));}catch(_0xe8d1cf){logger[_0x3d0475(0xeb)]('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0xe8d1cf[_0x3d0475(0xb5)]+(_0xe8d1cf[_0x3d0475(0xbc)]?_0xf9e3b6[_0x3d0475(0xb2)](_0xf9e3b6['WrjJN'],_0xe8d1cf[_0x3d0475(0xbc)]):'')),this['state']=this[_0x3d0475(0xac)]();}}}async[a132_0x17313f(0xb1)](_0x35d662){const _0x170224=a132_0x17313f,_0x51c1ee={};_0x51c1ee['YIhMe']=function(_0xce1a46,_0x245bab){return _0xce1a46+_0x245bab;},_0x51c1ee[_0x170224(0x9b)]='\x0aStack:\x20';const _0x4af14a=_0x51c1ee;if(!this[_0x170224(0xbf)]||!_0x35d662)return;try{logger[_0x170224(0x7a)]('['+TAG+_0x170224(0x9c)+_0x35d662);const _0x5e0aa2={};_0x5e0aa2['buildName']=this[_0x170224(0xc2)],_0x5e0aa2[_0x170224(0xc0)]=this['projectName'],_0x5e0aa2['failedTests']=[_0x35d662],_0x5e0aa2[_0x170224(0x94)]=process[_0x170224(0x85)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],await RequestUtils['putFailedTests'](_0x5e0aa2);}catch(_0x301f14){logger[_0x170224(0xeb)]('['+TAG+_0x170224(0x9f)+_0x35d662+'\x20to\x20API:\x20'+_0x301f14[_0x170224(0xb5)]+(_0x301f14[_0x170224(0xbc)]?_0x4af14a[_0x170224(0xef)](_0x4af14a[_0x170224(0x9b)],_0x301f14[_0x170224(0xbc)]):''));}}async[a132_0x17313f(0x82)](){const _0x49e923=a132_0x17313f,_0x319b47={};_0x319b47[_0x49e923(0xdb)]=function(_0x2bcf52,_0xb2bd1f){return _0x2bcf52===_0xb2bd1f;},_0x319b47[_0x49e923(0xbb)]='number',_0x319b47[_0x49e923(0x97)]=function(_0x3b4947,_0x33fefd){return _0x3b4947+_0x33fefd;},_0x319b47[_0x49e923(0x76)]=_0x49e923(0x8c),_0x319b47[_0x49e923(0x9e)]=function(_0x462160,_0x5d9ba2){return _0x462160!==_0x5d9ba2;};const _0x331cc7=_0x319b47;if(!this[_0x49e923(0xbf)])return 0x0;try{const _0x30724b={};_0x30724b[_0x49e923(0xc2)]=this[_0x49e923(0xc2)],_0x30724b['projectName']=this[_0x49e923(0xc0)],_0x30724b['buildRunIdentifier']=process[_0x49e923(0x85)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];const _0x261d07=await RequestUtils['getFailedTestsCount'](_0x30724b);return logger[_0x49e923(0x7a)]('['+TAG+_0x49e923(0x7c)+_0x261d07),_0x331cc7[_0x49e923(0xdb)](typeof _0x261d07,_0x331cc7[_0x49e923(0xbb)])?_0x261d07:0x0;}catch(_0xc8ddf6){return logger[_0x49e923(0xeb)]('['+TAG+_0x49e923(0xa8)+_0xc8ddf6[_0x49e923(0xb5)]+(_0xc8ddf6[_0x49e923(0xbc)]?_0x331cc7['JbLbX'](_0x331cc7[_0x49e923(0x76)],_0xc8ddf6[_0x49e923(0xbc)]):'')),_0x331cc7[_0x49e923(0x9e)](this[_0x49e923(0xe5)][_0x49e923(0xa4)],undefined)?this[_0x49e923(0xe5)][_0x49e923(0xa4)]:0x0;}}async['_pollFailedTests'](){const _0x383d57=a132_0x17313f,_0x4663e6={};_0x4663e6['JvAHc']=function(_0x304152,_0x3b2d68){return _0x304152!==_0x3b2d68;},_0x4663e6[_0x383d57(0xc6)]=function(_0x298564,_0x4795bd){return _0x298564+_0x4795bd;},_0x4663e6[_0x383d57(0xde)]=_0x383d57(0x8c);const _0x45af99=_0x4663e6;if(!this[_0x383d57(0xbf)])return;try{const _0x15fbd7=await this[_0x383d57(0x82)]();_0x45af99[_0x383d57(0xb8)](_0x15fbd7,this[_0x383d57(0xe5)][_0x383d57(0xa4)])&&(logger[_0x383d57(0x7a)]('['+TAG+_0x383d57(0xba)+_0x15fbd7+'\x20(was\x20'+this[_0x383d57(0xe5)][_0x383d57(0xa4)]+')'),this[_0x383d57(0xe5)][_0x383d57(0xa4)]=_0x15fbd7);}catch(_0x576088){logger[_0x383d57(0xeb)]('['+TAG+_0x383d57(0x80)+_0x576088['message']+(_0x576088[_0x383d57(0xbc)]?_0x45af99['qlqxl'](_0x45af99[_0x383d57(0xde)],_0x576088[_0x383d57(0xbc)]):''));}}async[a132_0x17313f(0x9d)](){const _0x28ef0e=a132_0x17313f,_0x544f9f={'zgRhX':function(_0x5e4a0b,_0x1546dc,_0x2c1d21){return _0x5e4a0b(_0x1546dc,_0x2c1d21);}};this[_0x28ef0e(0xa5)]&&this[_0x28ef0e(0xb9)](),this[_0x28ef0e(0xbf)]&&(await this[_0x28ef0e(0xda)](),this[_0x28ef0e(0xa5)]=_0x544f9f[_0x28ef0e(0x7d)](setInterval,async()=>{await this['_pollFailedTests']();},POLLING_INTERVAL),logger[_0x28ef0e(0x7a)]('['+TAG+_0x28ef0e(0xd5)+POLLING_INTERVAL+_0x28ef0e(0xe4)));}[a132_0x17313f(0xb9)](){const _0x4a5ceb=a132_0x17313f,_0x74a262={'GgJJZ':function(_0xd55814,_0x39d468){return _0xd55814(_0x39d468);}};this['pollingInterval']&&(_0x74a262['GgJJZ'](clearInterval,this['pollingInterval']),this[_0x4a5ceb(0xa5)]=null,logger[_0x4a5ceb(0x7a)]('['+TAG+_0x4a5ceb(0xdc)));}async[a132_0x17313f(0x8f)](){const _0x35ce6b=a132_0x17313f,_0x55221b={};_0x55221b[_0x35ce6b(0xd9)]=function(_0x580021,_0x1557ee){return _0x580021===_0x1557ee;},_0x55221b[_0x35ce6b(0xcd)]=function(_0x183437,_0x4b2f05){return _0x183437===_0x4b2f05;},_0x55221b['hTzzs']=function(_0xcb3938,_0x4fd590){return _0xcb3938<=_0x4fd590;},_0x55221b[_0x35ce6b(0xe8)]=function(_0x229f06,_0x5999c8){return _0x229f06+_0x5999c8;},_0x55221b[_0x35ce6b(0x87)]=_0x35ce6b(0x8c),_0x55221b[_0x35ce6b(0xa0)]=function(_0x540e3b,_0x3d3c6b){return _0x540e3b!==_0x3d3c6b;},_0x55221b['WrVvS']=function(_0x40e824,_0x2d808c){return _0x40e824>=_0x2d808c;},_0x55221b[_0x35ce6b(0x8a)]=function(_0x37c8ff,_0x291f4a){return _0x37c8ff+_0x291f4a;},_0x55221b[_0x35ce6b(0xb7)]=function(_0xafa594,_0x1bd768){return _0xafa594>=_0x1bd768;},_0x55221b['SFikC']=function(_0x2df10f,_0x454ee1){return _0x2df10f+_0x454ee1;};const _0x5e817f=_0x55221b,{failureThresholdCount:_0x13d504}=this[_0x35ce6b(0xc7)];if(_0x5e817f['YFFvf'](_0x13d504,null)||_0x5e817f[_0x35ce6b(0xcd)](_0x13d504,undefined)||_0x5e817f[_0x35ce6b(0xcf)](_0x13d504,0x0))return logger[_0x35ce6b(0x7a)]('['+TAG+']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.'),![];if(this['isCIMode']){try{if(fs[_0x35ce6b(0xd4)](this['failFastActiveMarkerPath']))return logger[_0x35ce6b(0x7a)]('['+TAG+_0x35ce6b(0x95)),!this[_0x35ce6b(0xe5)][_0x35ce6b(0xd7)]&&(this[_0x35ce6b(0xe5)]['failFastActive']=!![]),this[_0x35ce6b(0xb9)](),!![];}catch(_0xa31196){logger[_0x35ce6b(0xeb)]('['+TAG+_0x35ce6b(0x75)+_0xa31196[_0x35ce6b(0xb5)]+(_0xa31196[_0x35ce6b(0xbc)]?_0x5e817f[_0x35ce6b(0xe8)](_0x5e817f[_0x35ce6b(0x87)],_0xa31196['stack']):''));}const _0x3eb8de=_0x5e817f['OqkHO'](this[_0x35ce6b(0xe5)][_0x35ce6b(0xa4)],undefined)?this[_0x35ce6b(0xe5)][_0x35ce6b(0xa4)]:0x0;if(_0x5e817f[_0x35ce6b(0xec)](_0x3eb8de,_0x13d504)){logger['info']('['+TAG+_0x35ce6b(0x81)+_0x3eb8de+_0x35ce6b(0xab)+_0x13d504+'.');try{fs[_0x35ce6b(0x98)](this[_0x35ce6b(0xe6)],new Date()[_0x35ce6b(0xa9)]()),logger[_0x35ce6b(0x7a)]('['+TAG+'_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20'+this['failFastActiveMarkerPath']),this[_0x35ce6b(0xe5)]['failFastActive']=!![];}catch(_0x4307a6){logger['error']('['+TAG+_0x35ce6b(0xf2)+_0x4307a6[_0x35ce6b(0xb5)]+(_0x4307a6['stack']?_0x5e817f['zoNXR'](_0x5e817f[_0x35ce6b(0x87)],_0x4307a6[_0x35ce6b(0xbc)]):''));}return this['stopPolling'](),!![];}}else{let _0x52b538;try{_0x52b538=await this[_0x35ce6b(0x89)][_0x35ce6b(0xdd)]();if(!_0x52b538)return logger['warn']('['+TAG+_0x35ce6b(0xd1)),![];}catch(_0x55ee4){return logger['error']('['+TAG+'_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20'+_0x55ee4[_0x35ce6b(0xb5)]+(_0x55ee4[_0x35ce6b(0xbc)]?_0x5e817f[_0x35ce6b(0x8a)](_0x5e817f[_0x35ce6b(0x87)],_0x55ee4[_0x35ce6b(0xbc)]):'')),![];}this[_0x35ce6b(0xe5)]={...this['_getDefaultState'](),..._0x52b538,'uniqueFailedTests':new Set(_0x52b538[_0x35ce6b(0xf4)]||[])};if(this[_0x35ce6b(0xe5)]['failFastActive'])return logger[_0x35ce6b(0x7a)]('['+TAG+_0x35ce6b(0x83)),!![];const _0x59d4f4=this['state'][_0x35ce6b(0xf4)],_0x5ad786=_0x59d4f4[_0x35ce6b(0xe1)];if(_0x5e817f[_0x35ce6b(0xb7)](_0x5ad786,_0x13d504)){try{logger[_0x35ce6b(0xd3)]('['+TAG+_0x35ce6b(0x79)+_0x5ad786+',\x20threshold:\x20'+_0x13d504+'.'),this['state'][_0x35ce6b(0xd7)]=!![];}catch(_0x418d31){logger[_0x35ce6b(0xeb)]('['+TAG+_0x35ce6b(0xf9)+_0x418d31[_0x35ce6b(0xb5)]+(_0x418d31[_0x35ce6b(0xbc)]?_0x5e817f[_0x35ce6b(0x9a)](_0x5e817f[_0x35ce6b(0x87)],_0x418d31[_0x35ce6b(0xbc)]):''));}return!![];}}return![];}async[a132_0x17313f(0xa6)](){const _0x48e04c=a132_0x17313f,_0x330f43={};_0x330f43[_0x48e04c(0xb0)]=function(_0xbbb02d,_0x2045a1){return _0xbbb02d+_0x2045a1;},_0x330f43[_0x48e04c(0x72)]=_0x48e04c(0x8c);const _0x401141=_0x330f43;this[_0x48e04c(0xb9)]();if(this[_0x48e04c(0xbf)])logger['debug']('['+TAG+_0x48e04c(0xf3));else try{const _0x4dd461={...this[_0x48e04c(0xe5)],'uniqueFailedTests':Array[_0x48e04c(0xf0)](this['state'][_0x48e04c(0xf4)]||new Set())};await this['fileHelper'][_0x48e04c(0xd2)](_0x4dd461),logger[_0x48e04c(0x7a)]('['+TAG+'_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.');}catch(_0x104ea7){logger[_0x48e04c(0xeb)]('['+TAG+_0x48e04c(0xe7)+_0x104ea7['message']+(_0x104ea7[_0x48e04c(0xbc)]?_0x401141[_0x48e04c(0xb0)](_0x401141['FUMje'],_0x104ea7[_0x48e04c(0xbc)]):''));}}}module[a132_0x17313f(0xce)]=FailFastManager;
|
|
1
|
+
function a132_0x41a9(_0x54cc47,_0x210fd3){const _0x4cb8d7=a132_0x4cb8();return a132_0x41a9=function(_0x41a998,_0x1045b7){_0x41a998=_0x41a998-0x132;let _0x26a610=_0x4cb8d7[_0x41a998];return _0x26a610;},a132_0x41a9(_0x54cc47,_0x210fd3);}const a132_0x20b17c=a132_0x41a9;(function(_0x456083,_0x5af6a6){const _0x282a35=a132_0x41a9,_0x3561a9=_0x456083();while(!![]){try{const _0x4a50c7=-parseInt(_0x282a35(0x171))/0x1*(parseInt(_0x282a35(0x144))/0x2)+parseInt(_0x282a35(0x1a4))/0x3+parseInt(_0x282a35(0x15f))/0x4*(-parseInt(_0x282a35(0x164))/0x5)+-parseInt(_0x282a35(0x1ac))/0x6+-parseInt(_0x282a35(0x14a))/0x7*(-parseInt(_0x282a35(0x1a9))/0x8)+-parseInt(_0x282a35(0x168))/0x9*(parseInt(_0x282a35(0x14b))/0xa)+parseInt(_0x282a35(0x1ab))/0xb;if(_0x4a50c7===_0x5af6a6)break;else _0x3561a9['push'](_0x3561a9['shift']());}catch(_0x39bbc3){_0x3561a9['push'](_0x3561a9['shift']());}}}(a132_0x4cb8,0x277ed));const fs=require('fs'),path=require('path'),FileHelper=require(a132_0x20b17c(0x16c)),RequestUtils=require(a132_0x20b17c(0x1b0)),logger=require('../logger')[a132_0x20b17c(0x18b)],POLLING_INTERVAL=0x2710,TAG=a132_0x20b17c(0x190);class FailFastManager{constructor(_0x4a5dd6,_0x5286dd,_0x3d7a4c){const _0x29c499=a132_0x20b17c,_0x10b29f={};_0x10b29f[_0x29c499(0x196)]=function(_0x4a1582,_0x34cba2){return _0x4a1582+_0x34cba2;},_0x10b29f[_0x29c499(0x188)]='\x0aStack:\x20',_0x10b29f['UPWXM']=function(_0x30ab44,_0x181eb1){return _0x30ab44||_0x181eb1;},_0x10b29f[_0x29c499(0x135)]=_0x29c499(0x1a7),_0x10b29f['EyOBZ']=_0x29c499(0x14d),_0x10b29f[_0x29c499(0x19a)]=_0x29c499(0x149);const _0x27784a=_0x10b29f;this[_0x29c499(0x19d)]=_0x27784a[_0x29c499(0x134)](_0x4a5dd6,{}),this[_0x29c499(0x18d)]=_0x5286dd,this[_0x29c499(0x1b1)]=_0x3d7a4c,this[_0x29c499(0x189)]=!!(process['env'][_0x29c499(0x1a0)]&&process[_0x29c499(0x157)]['BROWSERSTACK_NODE_INDEX']&&process[_0x29c499(0x157)][_0x29c499(0x17a)]);const _0xe793b8=this[_0x29c499(0x19d)][_0x29c499(0x1b5)];this[_0x29c499(0x1a6)]=path['join'](_0xe793b8,_0x27784a[_0x29c499(0x135)]),this[_0x29c499(0x191)]=path[_0x29c499(0x173)](_0xe793b8,_0x27784a[_0x29c499(0x13a)]),this[_0x29c499(0x169)]=path[_0x29c499(0x173)](_0xe793b8,_0x27784a[_0x29c499(0x19a)]),this['fileHelper']=new FileHelper(this['failFastConfig'],this[_0x29c499(0x1a6)],this[_0x29c499(0x191)],this['_getDefaultState']()),this['state']=this[_0x29c499(0x146)](),this['pollingInterval']=null,this[_0x29c499(0x189)]&&(this['reportedFailuresToAPI']=new Set()),this[_0x29c499(0x182)]()['catch'](_0x3eba98=>{const _0x4bf98d=_0x29c499;logger[_0x4bf98d(0x15b)]('['+TAG+']\x20Critical\x20error\x20during\x20async\x20initialization:\x20'+_0x3eba98[_0x4bf98d(0x14f)]+(_0x3eba98[_0x4bf98d(0x19c)]?_0x27784a['GEPkN'](_0x27784a[_0x4bf98d(0x188)],_0x3eba98[_0x4bf98d(0x19c)]):'')),this['state']=this['_getDefaultState']();}),this[_0x29c499(0x189)]&&this['startPolling'](),logger[_0x29c499(0x153)]('['+TAG+_0x29c499(0x177)+this[_0x29c499(0x19d)][_0x29c499(0x19b)]+_0x29c499(0x162)+this[_0x29c499(0x189)]);}[a132_0x20b17c(0x146)](){const _0x9bf93e={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x9bf93e;}async[a132_0x20b17c(0x182)](){const _0x3994e3=a132_0x20b17c,_0x592e55={};_0x592e55[_0x3994e3(0x140)]=function(_0x1328b8,_0x2e2c43){return _0x1328b8+_0x2e2c43;},_0x592e55[_0x3994e3(0x154)]=_0x3994e3(0x198),_0x592e55[_0x3994e3(0x137)]=function(_0x565294,_0x5dcf37){return _0x565294+_0x5dcf37;};const _0x41640a=_0x592e55;if(this[_0x3994e3(0x189)])try{fs['existsSync'](this[_0x3994e3(0x169)])&&(this[_0x3994e3(0x16d)]['failFastActive']=!![],logger['debug']('['+TAG+_0x3994e3(0x150)));}catch(_0x23384f){logger[_0x3994e3(0x15b)]('['+TAG+_0x3994e3(0x1b2)+_0x23384f['message']+(_0x23384f[_0x3994e3(0x19c)]?_0x41640a['WLAfP'](_0x41640a['MMdyD'],_0x23384f['stack']):''));}else try{const _0xaadf0d=await this[_0x3994e3(0x163)][_0x3994e3(0x156)]();if(_0xaadf0d)this['state']={...this[_0x3994e3(0x146)](),..._0xaadf0d,'uniqueFailedTests':new Set(_0xaadf0d[_0x3994e3(0x142)]||[])},logger[_0x3994e3(0x153)]('['+TAG+_0x3994e3(0x181));else{logger['debug']('['+TAG+_0x3994e3(0x13c));const _0x5c4cdf=this[_0x3994e3(0x146)](),_0x36fe94={..._0x5c4cdf,'uniqueFailedTests':Array['from'](_0x5c4cdf[_0x3994e3(0x142)])};await this[_0x3994e3(0x163)]['writeState'](_0x36fe94),this['state']=_0x5c4cdf;}}catch(_0x136530){logger[_0x3994e3(0x153)]('['+TAG+_0x3994e3(0x15e)+_0x136530[_0x3994e3(0x14f)]+(_0x136530[_0x3994e3(0x19c)]?_0x41640a[_0x3994e3(0x137)](_0x41640a[_0x3994e3(0x154)],_0x136530[_0x3994e3(0x19c)]):'')),this['state']=this['_getDefaultState']();}}async['onTestDone'](_0x7d64c1,_0x308054){const _0xa65bac=a132_0x20b17c,_0x4fc6cc={};_0x4fc6cc[_0xa65bac(0x199)]=function(_0x4ca933,_0xa248c1){return _0x4ca933>_0xa248c1;},_0x4fc6cc[_0xa65bac(0x167)]=function(_0xa9323d,_0x1395d5){return _0xa9323d>_0x1395d5;},_0x4fc6cc[_0xa65bac(0x1aa)]=_0xa65bac(0x176),_0x4fc6cc['IVQTb']=_0xa65bac(0x18c),_0x4fc6cc[_0xa65bac(0x180)]=function(_0x4fb200,_0x121809){return _0x4fb200+_0x121809;},_0x4fc6cc[_0xa65bac(0x14e)]=_0xa65bac(0x198),_0x4fc6cc['WpLpJ']=function(_0x3ac9f5,_0x118860){return _0x3ac9f5||_0x118860;};const _0x5f306c=_0x4fc6cc;if(this[_0xa65bac(0x189)])this['state']['totalTests']+=0x1,_0x308054&&_0x5f306c[_0xa65bac(0x199)](_0x308054[_0xa65bac(0x1a8)],0x0)&&(!this['reportedFailuresToAPI'][_0xa65bac(0x17f)](_0x7d64c1)&&(await this['_sendFailedTestsToAPI'](_0x7d64c1),this[_0xa65bac(0x187)]['add'](_0x7d64c1)));else try{const _0x106798={'fullName':_0x7d64c1,'status':_0x308054&&_0x5f306c[_0xa65bac(0x167)](_0x308054[_0xa65bac(0x1a8)],0x0)?_0x5f306c[_0xa65bac(0x1aa)]:_0x5f306c[_0xa65bac(0x18e)]},_0x1c74b6=await this[_0xa65bac(0x163)][_0xa65bac(0x192)](_0x106798);this[_0xa65bac(0x16d)]={...this[_0xa65bac(0x146)](),..._0x1c74b6[_0xa65bac(0x170)],'uniqueFailedTests':new Set(_0x1c74b6[_0xa65bac(0x170)]['uniqueFailedTests']||[])};}catch(_0x1272ae){logger['error']('['+TAG+_0xa65bac(0x13d)+_0x1272ae[_0xa65bac(0x14f)]+(_0x1272ae[_0xa65bac(0x19c)]?_0x5f306c[_0xa65bac(0x180)](_0x5f306c[_0xa65bac(0x14e)],_0x1272ae[_0xa65bac(0x19c)]):''));try{const _0x3c4eca=await this[_0xa65bac(0x163)]['readState']();this['state']={...this[_0xa65bac(0x146)](),..._0x5f306c['WpLpJ'](_0x3c4eca,{}),'uniqueFailedTests':new Set(_0x3c4eca?_0x3c4eca[_0xa65bac(0x142)]||[]:[])},logger['debug']('['+TAG+_0xa65bac(0x1b6));}catch(_0x5f39d7){logger[_0xa65bac(0x15b)]('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0x5f39d7[_0xa65bac(0x14f)]+(_0x5f39d7[_0xa65bac(0x19c)]?_0x5f306c['gcIJk'](_0x5f306c[_0xa65bac(0x14e)],_0x5f39d7[_0xa65bac(0x19c)]):'')),this[_0xa65bac(0x16d)]=this[_0xa65bac(0x146)]();}}}async[a132_0x20b17c(0x159)](_0x38051c){const _0x1649ad=a132_0x20b17c,_0x45114d={};_0x45114d['nXRlY']=function(_0x1bad78,_0x3aa80c){return _0x1bad78+_0x3aa80c;},_0x45114d[_0x1649ad(0x17c)]=_0x1649ad(0x198);const _0x5d08e0=_0x45114d;if(!this[_0x1649ad(0x189)]||!_0x38051c)return;try{logger[_0x1649ad(0x153)]('['+TAG+'_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20'+_0x38051c);const _0x579088={};_0x579088['buildName']=this['buildName'],_0x579088[_0x1649ad(0x1b1)]=this['projectName'],_0x579088[_0x1649ad(0x178)]=[_0x38051c],_0x579088[_0x1649ad(0x193)]=process[_0x1649ad(0x157)][_0x1649ad(0x1a0)],await RequestUtils[_0x1649ad(0x16e)](_0x579088);}catch(_0x4c294a){logger[_0x1649ad(0x15b)]('['+TAG+_0x1649ad(0x16b)+_0x38051c+_0x1649ad(0x148)+_0x4c294a[_0x1649ad(0x14f)]+(_0x4c294a['stack']?_0x5d08e0[_0x1649ad(0x1a5)](_0x5d08e0[_0x1649ad(0x17c)],_0x4c294a['stack']):''));}}async[a132_0x20b17c(0x1a2)](){const _0x2db20e=a132_0x20b17c,_0x3b65f9={};_0x3b65f9['XQaYg']=function(_0xb29f1c,_0x4a4cdc){return _0xb29f1c===_0x4a4cdc;},_0x3b65f9[_0x2db20e(0x17e)]=_0x2db20e(0x141),_0x3b65f9['woATl']=function(_0x1a8a96,_0x24e727){return _0x1a8a96+_0x24e727;},_0x3b65f9[_0x2db20e(0x15d)]=_0x2db20e(0x198),_0x3b65f9[_0x2db20e(0x13f)]=function(_0x16c7af,_0x2f60b5){return _0x16c7af!==_0x2f60b5;};const _0x2a8b0c=_0x3b65f9;if(!this[_0x2db20e(0x189)])return 0x0;try{const _0xc8bcfa={};_0xc8bcfa[_0x2db20e(0x18d)]=this['buildName'],_0xc8bcfa['projectName']=this[_0x2db20e(0x1b1)],_0xc8bcfa[_0x2db20e(0x193)]=process['env'][_0x2db20e(0x1a0)];const _0x399dfd=await RequestUtils[_0x2db20e(0x1a3)](_0xc8bcfa);return logger['debug']('['+TAG+'_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20'+_0x399dfd),_0x2a8b0c[_0x2db20e(0x195)](typeof _0x399dfd,_0x2a8b0c[_0x2db20e(0x17e)])?_0x399dfd:0x0;}catch(_0x2a554a){return logger[_0x2db20e(0x15b)]('['+TAG+_0x2db20e(0x133)+_0x2a554a[_0x2db20e(0x14f)]+(_0x2a554a[_0x2db20e(0x19c)]?_0x2a8b0c[_0x2db20e(0x147)](_0x2a8b0c[_0x2db20e(0x15d)],_0x2a554a[_0x2db20e(0x19c)]):'')),_0x2a8b0c[_0x2db20e(0x13f)](this[_0x2db20e(0x16d)]['lastAPIFailedCount'],undefined)?this[_0x2db20e(0x16d)][_0x2db20e(0x151)]:0x0;}}async[a132_0x20b17c(0x194)](){const _0x45e638=a132_0x20b17c,_0x54fc07={};_0x54fc07['UtQWx']=function(_0x16984e,_0x25f3b6){return _0x16984e!==_0x25f3b6;},_0x54fc07[_0x45e638(0x174)]=function(_0x2610c3,_0x281120){return _0x2610c3+_0x281120;},_0x54fc07[_0x45e638(0x17b)]='\x0aStack:\x20';const _0x157798=_0x54fc07;if(!this['isCIMode'])return;try{const _0x4802b7=await this['_fetchAPIFailedCount']();_0x157798[_0x45e638(0x158)](_0x4802b7,this['state'][_0x45e638(0x151)])&&(logger['debug']('['+TAG+_0x45e638(0x17d)+_0x4802b7+'\x20(was\x20'+this[_0x45e638(0x16d)][_0x45e638(0x151)]+')'),this[_0x45e638(0x16d)][_0x45e638(0x151)]=_0x4802b7);}catch(_0x9ccd70){logger[_0x45e638(0x15b)]('['+TAG+'_CI]\x20Error\x20during\x20polling\x20logic:\x20'+_0x9ccd70['message']+(_0x9ccd70[_0x45e638(0x19c)]?_0x157798[_0x45e638(0x174)](_0x157798[_0x45e638(0x17b)],_0x9ccd70[_0x45e638(0x19c)]):''));}}async['startPolling'](){const _0x5e0d82=a132_0x20b17c,_0x4551f0={'ArYzp':function(_0x423573,_0xf7019f,_0x2f8a5f){return _0x423573(_0xf7019f,_0x2f8a5f);}};this['pollingInterval']&&this[_0x5e0d82(0x139)](),this[_0x5e0d82(0x189)]&&(await this[_0x5e0d82(0x194)](),this[_0x5e0d82(0x14c)]=_0x4551f0[_0x5e0d82(0x143)](setInterval,async()=>{await this['_pollFailedTests']();},POLLING_INTERVAL),logger[_0x5e0d82(0x153)]('['+TAG+_0x5e0d82(0x160)+POLLING_INTERVAL+'ms.'));}[a132_0x20b17c(0x139)](){const _0x3f9015=a132_0x20b17c,_0x1e7b2a={'EWQTT':function(_0x3be24f,_0x9b9d03){return _0x3be24f(_0x9b9d03);}};this['pollingInterval']&&(_0x1e7b2a['EWQTT'](clearInterval,this['pollingInterval']),this['pollingInterval']=null,logger[_0x3f9015(0x153)]('['+TAG+']\x20Polling\x20stopped.'));}async[a132_0x20b17c(0x1ae)](){const _0x4eb082=a132_0x20b17c,_0x29bb69={};_0x29bb69[_0x4eb082(0x179)]=function(_0xab48d1,_0x1bb7d3){return _0xab48d1===_0x1bb7d3;},_0x29bb69[_0x4eb082(0x152)]=function(_0x390009,_0x3ffa44){return _0x390009<=_0x3ffa44;},_0x29bb69[_0x4eb082(0x1b4)]=function(_0x44e54e,_0x41a3a7){return _0x44e54e+_0x41a3a7;},_0x29bb69[_0x4eb082(0x16a)]='\x0aStack:\x20',_0x29bb69[_0x4eb082(0x18a)]=function(_0x48e1de,_0x56ebb6){return _0x48e1de!==_0x56ebb6;},_0x29bb69['VhOGI']=function(_0x447385,_0x8405fb){return _0x447385>=_0x8405fb;},_0x29bb69[_0x4eb082(0x1af)]=function(_0x3b0816,_0x57a52a){return _0x3b0816>=_0x57a52a;},_0x29bb69[_0x4eb082(0x1ad)]=function(_0x46c028,_0x309f79){return _0x46c028+_0x309f79;};const _0x294124=_0x29bb69,{failureThresholdCount:_0x39af0e}=this[_0x4eb082(0x19d)];if(_0x294124['umrqm'](_0x39af0e,null)||_0x294124[_0x4eb082(0x179)](_0x39af0e,undefined)||_0x294124[_0x4eb082(0x152)](_0x39af0e,0x0))return logger['debug']('['+TAG+_0x4eb082(0x138)),![];if(this[_0x4eb082(0x189)]){try{if(fs['existsSync'](this[_0x4eb082(0x169)]))return logger['debug']('['+TAG+_0x4eb082(0x18f)),!this[_0x4eb082(0x16d)][_0x4eb082(0x145)]&&(this['state'][_0x4eb082(0x145)]=!![]),this[_0x4eb082(0x139)](),!![];}catch(_0x55d193){logger[_0x4eb082(0x15b)]('['+TAG+_0x4eb082(0x1b2)+_0x55d193[_0x4eb082(0x14f)]+(_0x55d193[_0x4eb082(0x19c)]?_0x294124[_0x4eb082(0x1b4)](_0x294124[_0x4eb082(0x16a)],_0x55d193[_0x4eb082(0x19c)]):''));}const _0x24b6b1=_0x294124[_0x4eb082(0x18a)](this[_0x4eb082(0x16d)]['lastAPIFailedCount'],undefined)?this[_0x4eb082(0x16d)][_0x4eb082(0x151)]:0x0;if(_0x294124[_0x4eb082(0x132)](_0x24b6b1,_0x39af0e)){logger[_0x4eb082(0x136)]('['+TAG+_0x4eb082(0x19f)+_0x24b6b1+_0x4eb082(0x183)+_0x39af0e+'.');try{fs[_0x4eb082(0x1a1)](this['failFastActiveMarkerPath'],new Date()[_0x4eb082(0x197)]()),logger['debug']('['+TAG+_0x4eb082(0x165)+this[_0x4eb082(0x169)]),this[_0x4eb082(0x16d)][_0x4eb082(0x145)]=!![];}catch(_0x239433){logger[_0x4eb082(0x15b)]('['+TAG+_0x4eb082(0x175)+_0x239433[_0x4eb082(0x14f)]+(_0x239433['stack']?_0x294124['AENmx'](_0x294124[_0x4eb082(0x16a)],_0x239433[_0x4eb082(0x19c)]):''));}return this['stopPolling'](),!![];}}else{let _0x363d3a;try{_0x363d3a=await this[_0x4eb082(0x163)][_0x4eb082(0x156)]();if(!_0x363d3a)return logger[_0x4eb082(0x15c)]('['+TAG+_0x4eb082(0x172)),![];}catch(_0xa34726){return logger[_0x4eb082(0x15b)]('['+TAG+_0x4eb082(0x15a)+_0xa34726[_0x4eb082(0x14f)]+(_0xa34726['stack']?_0x294124[_0x4eb082(0x1b4)](_0x294124['yEkxG'],_0xa34726[_0x4eb082(0x19c)]):'')),![];}this['state']={...this['_getDefaultState'](),..._0x363d3a,'uniqueFailedTests':new Set(_0x363d3a[_0x4eb082(0x142)]||[])};if(this[_0x4eb082(0x16d)][_0x4eb082(0x145)])return logger[_0x4eb082(0x153)]('['+TAG+_0x4eb082(0x1b3)),!![];const _0x3c0aa3=this[_0x4eb082(0x16d)][_0x4eb082(0x142)],_0x16a60c=_0x3c0aa3[_0x4eb082(0x186)];if(_0x294124['yMpGW'](_0x16a60c,_0x39af0e)){try{logger['info']('['+TAG+_0x4eb082(0x184)+_0x16a60c+_0x4eb082(0x183)+_0x39af0e+'.'),this[_0x4eb082(0x16d)][_0x4eb082(0x145)]=!![];}catch(_0x38799c){logger['error']('['+TAG+_0x4eb082(0x161)+_0x38799c[_0x4eb082(0x14f)]+(_0x38799c['stack']?_0x294124[_0x4eb082(0x1ad)](_0x294124[_0x4eb082(0x16a)],_0x38799c[_0x4eb082(0x19c)]):''));}return!![];}}return![];}async[a132_0x20b17c(0x13b)](){const _0x225621=a132_0x20b17c,_0x464895={};_0x464895[_0x225621(0x185)]=function(_0xae9c9,_0x3fed81){return _0xae9c9+_0x3fed81;},_0x464895[_0x225621(0x13e)]='\x0aStack:\x20';const _0x25bc75=_0x464895;this[_0x225621(0x139)]();if(this[_0x225621(0x189)])logger[_0x225621(0x153)]('['+TAG+'_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.');else try{const _0x26f346={...this[_0x225621(0x16d)],'uniqueFailedTests':Array[_0x225621(0x16f)](this[_0x225621(0x16d)][_0x225621(0x142)]||new Set())};await this[_0x225621(0x163)]['writeState'](_0x26f346),logger[_0x225621(0x153)]('['+TAG+_0x225621(0x19e));}catch(_0x5c4970){logger[_0x225621(0x15b)]('['+TAG+_0x225621(0x166)+_0x5c4970['message']+(_0x5c4970[_0x225621(0x19c)]?_0x25bc75['ZIKVA'](_0x25bc75[_0x225621(0x13e)],_0x5c4970['stack']):''));}}}module[a132_0x20b17c(0x155)]=FailFastManager;function a132_0x4cb8(){const _0x260737=['_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','UPWXM','bdLjK','info','tQcvA',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','stopPolling','EyOBZ','cleanup','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','iLhRw','ZFCMR','WLAfP','number','uniqueFailedTests','ArYzp','12ICvIWS','failFastActive','_getDefaultState','woATl','\x20to\x20API:\x20','failFast.active','7bcObQP','2720420tfEFkP','pollingInterval','failFastState.lock','jQIWZ','message','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','lastAPIFailedCount','ALwCp','debug','MMdyD','exports','readState','env','UtQWx','_sendFailedTestsToAPI','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','error','warn','wRZMY','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','1227300arkIOc','_CI]\x20Polling\x20started\x20with\x20interval:\x20','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20',',\x20CI\x20Mode:\x20','fileHelper','5nFQfDb','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','qmGnf','9fQneEx','failFastActiveMarkerPath','yEkxG','_CI]\x20Error\x20sending\x20failed\x20test\x20','./fileHelper','state','putFailedTests','from','newState','32949oHWvMO','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','join','ZRHES','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','failed',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','failedTests','umrqm','BROWSERSTACK_TOTAL_NODE_COUNT','uVPyg','wDamk','_CI]\x20API\x20failed\x20count\x20updated:\x20','QkOsV','has','gcIJk','_Local]\x20State\x20initialized\x20from\x20file.','_initializeStateFromFile',',\x20threshold:\x20','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','ZIKVA','size','reportedFailuresToAPI','dyOta','isCIMode','KodUa','winstonLogger','passed','buildName','IVQTb','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','FailFastManager','lockFilePath','recordTestResult','buildRunIdentifier','_pollFailedTests','XQaYg','GEPkN','toISOString','\x0aStack:\x20','JrrfX','foSeq','failureThresholdCount','stack','failFastConfig','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','BROWSERSTACK_BUILD_RUN_IDENTIFIER','writeFileSync','_fetchAPIFailedCount','getFailedTestsCount','518355nWkvcg','nXRlY','stateFilePath','failFastState.json','length','2160272RDqrCc','mxlXv','8299775eXvRBO','1554060FNdQGr','OyhxK','shouldFailFast','yMpGW','./requestUtils','projectName','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','AENmx','workingDir','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','VhOGI'];a132_0x4cb8=function(){return _0x260737;};return a132_0x4cb8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a133_0x30bfd9=a133_0x27da;(function(_0x4a7b55,_0x5252e3){const _0x1f8ea3=a133_0x27da,_0x328c44=_0x4a7b55();while(!![]){try{const _0xca8224=-parseInt(_0x1f8ea3(0x1d2))/0x1*(-parseInt(_0x1f8ea3(0x1c0))/0x2)+-parseInt(_0x1f8ea3(0x1b5))/0x3*(parseInt(_0x1f8ea3(0x1c4))/0x4)+parseInt(_0x1f8ea3(0x1e4))/0x5+parseInt(_0x1f8ea3(0x1d6))/0x6+parseInt(_0x1f8ea3(0x1bf))/0x7+parseInt(_0x1f8ea3(0x1b4))/0x8*(-parseInt(_0x1f8ea3(0x1bd))/0x9)+-parseInt(_0x1f8ea3(0x1c3))/0xa;if(_0xca8224===_0x5252e3)break;else _0x328c44['push'](_0x328c44['shift']());}catch(_0x383f9a){_0x328c44['push'](_0x328c44['shift']());}}}(a133_0x2d63,0x226a2));const fs=require('fs'),logger=require(a133_0x30bfd9(0x1da))[a133_0x30bfd9(0x1ce)],TAG=a133_0x30bfd9(0x1cf);class FileHelper{constructor(_0x246b32,_0x3ef3cb,_0x3bb334,_0x2f97fb){const _0x506b8d=a133_0x30bfd9,_0x5a58ac={};_0x5a58ac['wFmke']=_0x506b8d(0x1e5),_0x5a58ac[_0x506b8d(0x1de)]=_0x506b8d(0x1c9);const _0x545395=_0x5a58ac,_0x57d14e=_0x545395[_0x506b8d(0x1ec)]['split']('|');let _0x444f29=0x0;while(!![]){switch(_0x57d14e[_0x444f29++]){case'0':this['stateFilePath']=_0x3ef3cb;continue;case'1':this[_0x506b8d(0x1e6)]=_0x3bb334;continue;case'2':if(!fs['existsSync'](this[_0x506b8d(0x1c2)]))try{fs[_0x506b8d(0x1c8)](this[_0x506b8d(0x1c2)],'{}',_0x545395[_0x506b8d(0x1de)]);}catch(_0x11cbed){logger[_0x506b8d(0x1e2)]('['+TAG+_0x506b8d(0x1c5)+_0x11cbed[_0x506b8d(0x1cd)]+'\x20'+_0x11cbed[_0x506b8d(0x1eb)]);}continue;case'3':this[_0x506b8d(0x1c1)]=_0x246b32;continue;case'4':this[_0x506b8d(0x1df)]=_0x2f97fb;continue;}break;}}async[a133_0x30bfd9(0x1be)](){const _0x296493=a133_0x30bfd9,_0x2d278d={};_0x2d278d[_0x296493(0x1dc)]=function(_0x2a9527,_0x579efa){return _0x2a9527===_0x579efa;},_0x2d278d['asYHO']=_0x296493(0x1ba);const _0x64c51f=_0x2d278d;let _0x133a06;try{return _0x133a06=fs[_0x296493(0x1bc)](this[_0x296493(0x1e6)],'wx'),_0x133a06;}catch(_0x1b68c2){if(_0x64c51f[_0x296493(0x1dc)](_0x1b68c2[_0x296493(0x1d7)],_0x64c51f[_0x296493(0x1bb)]))return null;throw _0x1b68c2;}}async['releaseLock'](_0x694e47){const _0x1f95e2=a133_0x30bfd9;if(_0x694e47)try{fs[_0x1f95e2(0x1b6)](_0x694e47),fs[_0x1f95e2(0x1d8)](this[_0x1f95e2(0x1e6)]);}catch(_0x5c8cce){logger[_0x1f95e2(0x1e2)]('['+TAG+_0x1f95e2(0x1d3)+_0x5c8cce[_0x1f95e2(0x1cd)]+'\x20'+_0x5c8cce[_0x1f95e2(0x1eb)]);}}[a133_0x30bfd9(0x1b3)](){const _0x192cea=a133_0x30bfd9,_0xfca3b4={};_0xfca3b4['gBwZe']=_0x192cea(0x1c9);const _0x429a28=_0xfca3b4;try{const _0x42f18b=fs[_0x192cea(0x1e9)](this[_0x192cea(0x1c2)],_0x429a28[_0x192cea(0x1e7)]);return JSON[_0x192cea(0x1b8)](_0x42f18b);}catch(_0x1063de){return logger['error']('['+TAG+_0x192cea(0x1f0)+_0x1063de[_0x192cea(0x1cd)]+'\x20'+_0x1063de[_0x192cea(0x1eb)]),null;}}async[a133_0x30bfd9(0x1d1)](_0x1f57ff){const _0x4196de=a133_0x30bfd9,_0x54de01={..._0x1f57ff,'uniqueFailedTests':Array['isArray'](_0x1f57ff[_0x4196de(0x1e8)])?_0x1f57ff[_0x4196de(0x1e8)]:Array[_0x4196de(0x1ed)](_0x1f57ff['uniqueFailedTests']||[])};try{fs[_0x4196de(0x1c8)](this[_0x4196de(0x1c2)],JSON['stringify'](_0x54de01,null,0x2));}catch(_0x37d643){logger[_0x4196de(0x1e2)]('['+TAG+']\x20Error\x20writing\x20state\x20file:\x20'+_0x37d643[_0x4196de(0x1cd)]+'\x20'+_0x37d643[_0x4196de(0x1eb)]);throw _0x37d643;}}async[a133_0x30bfd9(0x1e3)](_0x538ad3,_0x3a2972){const _0x11b439=a133_0x30bfd9,_0x25c9c3={};_0x25c9c3['ovgEd']=function(_0x59c1ab,_0x2d0977){return _0x59c1ab!==_0x2d0977;},_0x25c9c3[_0x11b439(0x1db)]=_0x11b439(0x1d5),_0x25c9c3[_0x11b439(0x1d4)]=function(_0x11812d,_0x2a95f4){return _0x11812d===_0x2a95f4;},_0x25c9c3[_0x11b439(0x1b7)]=_0x11b439(0x1ca);const _0x4d977f=_0x25c9c3,_0x52845d=await this['acquireLock']();if(!_0x52845d)return logger[_0x11b439(0x1cc)]('['+TAG+_0x11b439(0x1b9)),{'newState':this['readState']()||this[_0x11b439(0x1df)],'isNewFailure':![]};try{let _0x2c662f=this[_0x11b439(0x1b3)]();!_0x2c662f&&(_0x2c662f=JSON[_0x11b439(0x1b8)](JSON[_0x11b439(0x1e0)](this[_0x11b439(0x1df)])));if(!_0x2c662f[_0x11b439(0x1e8)]||_0x4d977f[_0x11b439(0x1f1)](typeof _0x2c662f[_0x11b439(0x1e8)][Symbol['iterator']],_0x4d977f[_0x11b439(0x1db)]))_0x2c662f[_0x11b439(0x1e8)]=new Set();else Array[_0x11b439(0x1d9)](_0x2c662f[_0x11b439(0x1e8)])&&(_0x2c662f[_0x11b439(0x1e8)]=new Set(_0x2c662f['uniqueFailedTests']));_0x2c662f[_0x11b439(0x1c7)]=_0x3a2972;let _0x3b546d=![];_0x4d977f[_0x11b439(0x1d4)](_0x538ad3[_0x11b439(0x1dd)],_0x4d977f['DuomU'])&&(_0x2c662f[_0x11b439(0x1c6)]+=0x1,!_0x2c662f[_0x11b439(0x1e8)]['has'](_0x538ad3[_0x11b439(0x1ea)])&&(_0x2c662f[_0x11b439(0x1e8)][_0x11b439(0x1ee)](_0x538ad3['fullName']),_0x3b546d=!![]));await this[_0x11b439(0x1d1)](_0x2c662f);const _0x3eb0fd={};return _0x3eb0fd[_0x11b439(0x1e1)]=_0x2c662f,_0x3eb0fd['isNewFailure']=_0x3b546d,_0x3eb0fd;}finally{await this[_0x11b439(0x1d0)](_0x52845d);}}async['updateAPIFailedCount'](_0x2593a7){const _0x312e8b=a133_0x30bfd9,_0x3a25a9=await this['acquireLock']();if(!_0x3a25a9)return logger[_0x312e8b(0x1cc)]('['+TAG+_0x312e8b(0x1cb)),this[_0x312e8b(0x1b3)]()||this[_0x312e8b(0x1df)];try{let _0x308bbd=this[_0x312e8b(0x1b3)]();return!_0x308bbd&&(_0x308bbd=JSON[_0x312e8b(0x1b8)](JSON['stringify'](this[_0x312e8b(0x1df)]))),_0x308bbd['lastAPIFailedCount']=_0x2593a7,await this['writeState'](_0x308bbd),_0x308bbd;}finally{await this[_0x312e8b(0x1d0)](_0x3a25a9);}}}module[a133_0x30bfd9(0x1ef)]=FileHelper;function a133_0x27da(_0x44036e,_0x482dd0){const _0x2d631f=a133_0x2d63();return a133_0x27da=function(_0x27dabc,_0x3d2fe5){_0x27dabc=_0x27dabc-0x1b3;let _0x459324=_0x2d631f[_0x27dabc];return _0x459324;},a133_0x27da(_0x44036e,_0x482dd0);}function a133_0x2d63(){const _0x37b7bd=['lockFilePath','gBwZe','uniqueFailedTests','readFileSync','fullName','stack','wFmke','from','add','exports',']\x20Error\x20reading\x20state\x20file:\x20','ovgEd','readState','56jsvJzd','3axcdNJ','closeSync','DuomU','parse',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','EEXIST','asYHO','openSync','52101DtMnvy','acquireLock','1939357KhmnTr','2NRffPy','failFastConfig','stateFilePath','4648290qfhUIv','184152zIfffa',']\x20Error\x20creating\x20state\x20file:\x20','failedTests','totalTests','writeFileSync','utf8','failed',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','warn','message','winstonLogger','FailFastFileHelper','releaseLock','writeState','65772GXsDeU',']\x20Error\x20releasing\x20lock:\x20','ZxMYA','function','1217406sJBGcc','code','unlinkSync','isArray','../logger','HmLXe','ncnSv','status','aRQdq','defaultState','stringify','newState','error','recordTestResult','733140EzANTU','3|0|1|4|2'];a133_0x2d63=function(){return _0x37b7bd;};return a133_0x2d63();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a134_0x28ec07=a134_0x2e89;(function(_0x4c8fb5,_0x2d0e6f){const _0x8124a4=a134_0x2e89,_0x1ff6e6=_0x4c8fb5();while(!![]){try{const _0x4d6e2f=parseInt(_0x8124a4(0xca))/0x1*(-parseInt(_0x8124a4(0xff))/0x2)+parseInt(_0x8124a4(0x105))/0x3+parseInt(_0x8124a4(0xd9))/0x4*(parseInt(_0x8124a4(0xd8))/0x5)+-parseInt(_0x8124a4(0x106))/0x6*(-parseInt(_0x8124a4(0x100))/0x7)+-parseInt(_0x8124a4(0xc7))/0x8+-parseInt(_0x8124a4(0xd5))/0x9*(-parseInt(_0x8124a4(0xfb))/0xa)+parseInt(_0x8124a4(0x107))/0xb*(-parseInt(_0x8124a4(0xf1))/0xc);if(_0x4d6e2f===_0x2d0e6f)break;else _0x1ff6e6['push'](_0x1ff6e6['shift']());}catch(_0x3d1260){_0x1ff6e6['push'](_0x1ff6e6['shift']());}}}(a134_0x1352,0x81e93));const os=require('os'),path=require(a134_0x28ec07(0xdc)),fs=require('fs'),logger=require(a134_0x28ec07(0xed))[a134_0x28ec07(0xd1)],RETRY_TESTS_ON_FAILURE=a134_0x28ec07(0xcd),ABORT_BUILD_ON_FAILURE=a134_0x28ec07(0x104),RUN_PREVIOUSLY_FAILED_FIRST='runPreviouslyFailedFirst',RERUN_PREVIOUSLY_FAILED=a134_0x28ec07(0xfd),SKIP_FLAKY_AND_FAILED=a134_0x28ec07(0xdb),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_0x28ec07(0xd6)]);class TestOrdering{constructor(){const _0x2a4bc4=a134_0x28ec07;this[_0x2a4bc4(0xf8)]=![],this['name']=null;}[a134_0x28ec07(0xf6)](_0x176e32){const _0x3ea470=a134_0x28ec07;this['enabled']=!![],this[_0x3ea470(0xe5)]=_0x176e32;}[a134_0x28ec07(0x102)](){const _0x129bcb=a134_0x28ec07;this[_0x129bcb(0xf8)]=![],this[_0x129bcb(0xe5)]=null;}[a134_0x28ec07(0xf4)](){const _0x58da99=a134_0x28ec07;return this[_0x58da99(0xf8)];}[a134_0x28ec07(0xf7)](){return this['name'];}}class OrchestrationUtils{static ['_instance']=null;constructor(_0x54f97b){const _0x5b24a4=a134_0x28ec07,_0x170eb2={};_0x170eb2[_0x5b24a4(0x101)]=function(_0x5e7e90,_0xd28c19){return _0x5e7e90||_0xd28c19;};const _0x17923f=_0x170eb2;this['runPreviouslyFailedFirst']=![],this['rerunPreviouslyFailed']=![],this[_0x5b24a4(0xe7)]=![],this[_0x5b24a4(0xef)]=new TestOrdering(),this[_0x5b24a4(0xda)]=_0x17923f[_0x5b24a4(0x101)](_0x54f97b,{});const _0x17f7ce=_0x54f97b&&_0x54f97b[_0x5b24a4(0xcb)]||{};this[_0x5b24a4(0xe3)](_0x17f7ce[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x5b24a4(0xe8)](_0x17f7ce[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x5b24a4(0xc9)](_0x17f7ce[SKIP_FLAKY_AND_FAILED]||![]);}static[a134_0x28ec07(0xe6)](_0x47bf64){const _0x12bf94=a134_0x28ec07;return!OrchestrationUtils[_0x12bf94(0xc8)]&&_0x47bf64&&(OrchestrationUtils['_instance']=new OrchestrationUtils(_0x47bf64)),OrchestrationUtils[_0x12bf94(0xc8)];}[a134_0x28ec07(0xdf)](){const _0x178cf4=a134_0x28ec07,_0x208c61=(this['config'][_0x178cf4(0xcb)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x208c61[_0x178cf4(0xf8)];}[a134_0x28ec07(0xf2)](){const _0x37da06=a134_0x28ec07,_0x12b3bd=(this[_0x37da06(0xda)][_0x37da06(0xcb)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x1f2a26=0x0;return this['isRetryEnabled'](this['config'])&&(_0x1f2a26=_0x12b3bd[_0x37da06(0xfc)]||0x1),_0x1f2a26;}['getOrchestrationData'](){const _0x53df88=a134_0x28ec07,_0x369753=this[_0x53df88(0xda)][_0x53df88(0xcb)]||{},_0x5b3db4={};for(const _0x1554a0 in _0x369753){ALLOWED_ORCHESTRATION_KEYS[_0x53df88(0xe9)](_0x1554a0)&&(_0x5b3db4[_0x1554a0]=_0x369753[_0x1554a0]);}return _0x5b3db4;}[a134_0x28ec07(0xde)](){const _0x3d302c=a134_0x28ec07,_0x402e60=process['env'][_0x3d302c(0x103)],_0x24ac61=path[_0x3d302c(0xcc)](os[_0x3d302c(0xf0)](),_0x3d302c(0xd2)+_0x402e60);return fs[_0x3d302c(0xee)](_0x24ac61);}[a134_0x28ec07(0xf5)](_0x345670){const _0x9ce461=a134_0x28ec07,_0x5aca00=process['env'][_0x9ce461(0x103)],_0x5be4d4=path[_0x9ce461(0xcc)](os[_0x9ce461(0xf0)](),_0x9ce461(0xf3)+_0x5aca00+'.txt');fs[_0x9ce461(0xfa)](_0x5be4d4,_0x345670+'\x0a');}[a134_0x28ec07(0xe4)](_0x5de63a){const _0x26a653=a134_0x28ec07,_0x50acfd={};_0x50acfd['TUJzQ']=function(_0x2693fc,_0x22a1f8){return _0x2693fc||_0x22a1f8;};const _0x4ee28a=_0x50acfd;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x26a653(0xe9)](_0x4ee28a[_0x26a653(0xce)](_0x5de63a,'')[_0x26a653(0xea)]());}[a134_0x28ec07(0xfe)](){const _0x41d473=(this['config']['testOrchestrationOptions']||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x41d473['enabled'];}['getFailureThreshold'](){const _0x23d881=a134_0x28ec07,_0x577ef4=(this[_0x23d881(0xda)][_0x23d881(0xcb)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x577ef4['maxFailures']||0x5;;}[a134_0x28ec07(0xe2)](){const _0x4502f4=a134_0x28ec07;return this[_0x4502f4(0xec)];}['_setRunPreviouslyFailedFirst'](_0x56fb6f){const _0x22d02b=a134_0x28ec07;this[_0x22d02b(0xec)]=!!_0x56fb6f,this[_0x22d02b(0xd0)]();}[a134_0x28ec07(0xd4)](){const _0x1e29da=a134_0x28ec07;return this[_0x1e29da(0xfd)];}[a134_0x28ec07(0xe8)](_0x3a494b){const _0x235d19=a134_0x28ec07;this[_0x235d19(0xfd)]=!!_0x3a494b,this['_setTestOrdering']();}['getSkipFlakyAndFailed'](){const _0x3eb3dd=a134_0x28ec07;return this[_0x3eb3dd(0xe7)];}[a134_0x28ec07(0xc9)](_0x3816e2){const _0x2583f3=a134_0x28ec07;this[_0x2583f3(0xe7)]=!!_0x3816e2,this[_0x2583f3(0xd0)]();}[a134_0x28ec07(0xd0)](){const _0x118dfd=a134_0x28ec07;if(this[_0x118dfd(0xec)])this[_0x118dfd(0xfd)]=![],this[_0x118dfd(0xe7)]=![],this['testOrdering'][_0x118dfd(0xf6)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x118dfd(0xfd)])this[_0x118dfd(0xec)]=![],this[_0x118dfd(0xe7)]=![],this[_0x118dfd(0xef)]['enable'](RERUN_PREVIOUSLY_FAILED);else this[_0x118dfd(0xe7)]?(this['runPreviouslyFailedFirst']=![],this[_0x118dfd(0xfd)]=![],this[_0x118dfd(0xef)][_0x118dfd(0xf6)](SKIP_FLAKY_AND_FAILED)):this['testOrdering'][_0x118dfd(0x102)]();}}[a134_0x28ec07(0xdd)](){const _0x2bc0b5=a134_0x28ec07;return this[_0x2bc0b5(0xef)][_0x2bc0b5(0xf4)]();}['getTestOrderingName'](){const _0xc64a06=a134_0x28ec07;if(this[_0xc64a06(0xef)][_0xc64a06(0xf4)]())return this[_0xc64a06(0xef)][_0xc64a06(0xf7)]();return null;}[a134_0x28ec07(0xe0)](){const _0x23c925=a134_0x28ec07,_0x2303f7={};return _0x2303f7['rerun_previously_failed']={'enabled':this[_0x23c925(0xd4)]()},_0x2303f7[_0x23c925(0xd7)]={'enabled':this[_0x23c925(0xe2)]()},_0x2303f7[_0x23c925(0xeb)]={'enabled':this['getSkipFlakyAndFailed']()},this['isRetryEnabled']()&&(_0x2303f7[_0x23c925(0xcf)]={'enabled':!![],'max_retries':this[_0x23c925(0xf2)]()}),this['isAbortBuildOnFailureEnabled']()&&(_0x2303f7[_0x23c925(0xd3)]={'enabled':!![],'max_failures':this[_0x23c925(0xe1)]()}),_0x2303f7;}}function a134_0x2e89(_0x15ebbc,_0x23077a){const _0x135295=a134_0x1352();return a134_0x2e89=function(_0x2e894c,_0x74f2a7){_0x2e894c=_0x2e894c-0xc7;let _0x4df985=_0x135295[_0x2e894c];return _0x4df985;},a134_0x2e89(_0x15ebbc,_0x23077a);}module[a134_0x28ec07(0xf9)]=OrchestrationUtils;function a134_0x1352(){const _0x4b16aa=['skipFlakyAndFailed','_setRerunPreviouslyFailed','has','toLowerCase','skip_failing_and_flaky','runPreviouslyFailedFirst','../logger','existsSync','testOrdering','tmpdir','12tMoCgC','getRetryCount','failed_tests_','getEnabled','writeFailureToFile','enable','getName','enabled','exports','appendFileSync','9000vadpnG','maxRetries','rerunPreviouslyFailed','isAbortBuildOnFailureEnabled','38828MhEZih','28XRdIGp','KRejK','disable','BROWSERSTACK_TESTHUB_UUID','abortBuildOnFailure','235815xwlVWk','1268094AYCGCA','5851967qpotRf','1807776ZxtDXy','_instance','_setSkipFlakyAndFailed','10utccNY','testOrchestrationOptions','join','retryTestsOnFailure','TUJzQ','retry_tests_on_failure','_setTestOrdering','winstonLogger','abort_build_','abort_build_on_failure','getRerunPreviouslyFailed','2430lWBGve','jest','run_previously_failed_first','1895DvLTRb','3348WeSafj','config','skipFlakyandFailed','path','testOrderingEnabled','checkAbortBuildFileExists','isRetryEnabled','getBuildStartData','getFailureThreshold','getRunPreviouslyFailedFirst','_setRunPreviouslyFailedFirst','isAbortBuildOnFailureSupported','name','getInstance'];a134_0x1352=function(){return _0x4b16aa;};return a134_0x1352();}
|