browserstack-node-sdk 1.49.7 → 1.49.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a129_0x3c90f8=a129_0x3a44;function a129_0x3a44(_0x50c11f,_0x4e7b31){const _0x47c286=a129_0x47c2();return a129_0x3a44=function(_0x3a444e,_0x75e0db){_0x3a444e=_0x3a444e-0xd0;let _0x119a80=_0x47c286[_0x3a444e];return _0x119a80;},a129_0x3a44(_0x50c11f,_0x4e7b31);}(function(_0x35107e,_0x235285){const _0x31e08b=a129_0x3a44,_0x4847b7=_0x35107e();while(!![]){try{const _0x38685b=parseInt(_0x31e08b(0xf1))/0x1+parseInt(_0x31e08b(0x12a))/0x2+parseInt(_0x31e08b(0x15e))/0x3+parseInt(_0x31e08b(0xd0))/0x4*(parseInt(_0x31e08b(0x12f))/0x5)+parseInt(_0x31e08b(0xf5))/0x6*(parseInt(_0x31e08b(0xe0))/0x7)+parseInt(_0x31e08b(0x13f))/0x8*(parseInt(_0x31e08b(0x17b))/0x9)+-parseInt(_0x31e08b(0x15d))/0xa;if(_0x38685b===_0x235285)break;else _0x4847b7['push'](_0x4847b7['shift']());}catch(_0x2804fb){_0x4847b7['push'](_0x4847b7['shift']());}}}(a129_0x47c2,0x1c562));function a129_0x47c2(){const _0xe17155=['Build\x20creation\x20successful!','XspqF','statusText','yrGkD','browserstackAutomation','IvHME','BROWSERSTACK_BUILD_RUN_IDENTIFIER','password','KeVnK','HookRunFinished','CREDENTIALS_FOR_CRASH_REPORTING','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','debug','LAvga','X-BSTACK-TESTOPS','uuid','ivaip','27ZTfYqO','projectName','message','toString','BROWSERSTACK_RERUN','CRSOj','TGlYw','plHZd','1152OjwRdM','buildName','response','BS_A11Y_JWT','INUEj','BS_TESTOPS_BUILD_COMPLETED','TtutX','false','IPRob','error','pendingUploads','YNNha','Log_Upload','launch','api/v1/event','wxVFU','224EAflnZ','jRQZH','\x20retry\x20runs\x20exceeded','test_run_uuid','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','OyFru','data','true','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','./requestQueueHandler','Sznvf','BS_TESTOPS_BUILD_HASHED_ID','resolve','\x20failed\x20due\x20to\x20','OBbIC','getAccessKey','success','87634BXZtLI','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','HookRunStarted','CBT_Upload','15216eesiFY','dMPhF','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','BS_TESTOPS_ALLOW_SCREENSHOTS','AUePm','yhmcG','DlWTr','gIgkQ','ERROR_INVALID_CREDENTIALS','status','getLogTag','inspect','EXCEPTION\x20IN\x20','Test_Start_Upload','sendEventData','BROWSERSTACK_TESTHUB_UUID','hVUxq','ufbXN','../logger','Gopgq','yxjkw','TestRunFinished','test_run','./utils','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','BROWSERSTACK_TESTHUB_JWT','jwt','info','requestQueueHandler','JXWLY','zxyFV','json','Authorization','JJBIH','hcmbE','max','qHMfY','getHostInfo','path','xqtmN','cnjGX','rdJci','length','qrhao','start','TestRunSkipped','Content-Type','jnpNJ','allow_screenshots','hook_run','getInstance','ERROR_ACCESS_DENIED','zLjrx','23830PkoEvB','ABzNW','stringify','logs','null','3950rGcNJU','errorType','cwd','format','vVmlT','aSVEG','Sending\x20trace\x20zip\x20for\x20test:\x20','tbRdu','getAgentVersion','oTLpB','basename','vPWiM','frameworkName','event_type','Test_End_Upload','tdIxS','299752NyoceZ','vTwHt','TEST_REPORTING_ANALYTICS','includes','getGitMetaData','\x20:\x20','util','frameworkVersion','jZPAg','username','yqWUE','sendTraceZip','add','eventUrl','kfmsX','RLIen','QiVFa','qdMEw','build_hashed_id','buildIdentifier','ERROR_SDK_DEPRECATED','bimDv','Hook_Start_Upload','nestedKeyValue','getCiInfo','ctgTB',']\x20event\x20successful!','BS_TESTOPS_JWT','waitForBuildStatus','\x20:\x20missing\x20authentication\x20token','4535900aWAapR','147084ryOcZd','hNxtG','application/json','\x20REQUEST\x20TO\x20','env','TestRunStarted','POST','app','../../helpers/testhub/utils','dQNpn','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','headers'];a129_0x47c2=function(){return _0xe17155;};return a129_0x47c2();}const bsSetupHelper=require('../helper'),path=require(a129_0x3c90f8(0x11b)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a129_0x3c90f8(0x10c)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a129_0x3c90f8(0xe9)),logger=require(a129_0x3c90f8(0x107))['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a129_0x3c90f8(0x166)),util=require(a129_0x3c90f8(0x145)),constants=require('../../bin/utils/constants');class SessionHandler{static [a129_0x3c90f8(0x111)]=RequestQueueHandler[a129_0x3c90f8(0x127)]();static async[a129_0x3c90f8(0xdd)](_0xfb746c,_0x2ef262){const _0x5ebabd=a129_0x3c90f8,_0x2f1857={'plHZd':function(_0x20d366,_0x5999fc){return _0x20d366||_0x5999fc;},'hNxtG':function(_0x25c173,_0x22451e){return _0x25c173||_0x22451e;},'OyFru':function(_0x460a18,_0x414e1f){return _0x460a18===_0x414e1f;},'vVmlT':function(_0x32e993,_0x3d3d2b){return _0x32e993(_0x3d3d2b);},'hcmbE':_0x5ebabd(0xf7),'JXWLY':_0x5ebabd(0xd7),'xakLj':_0x5ebabd(0x114),'bimDv':function(_0x31038b,_0x1e29a2){return _0x31038b(_0x1e29a2);},'rdJci':function(_0x131951,_0x3b8747){return _0x131951(_0x3b8747);},'DlWTr':function(_0x39a47d,_0x4c0d1b,_0x3250e8,_0x306325,_0x252be6){return _0x39a47d(_0x4c0d1b,_0x3250e8,_0x306325,_0x252be6);},'ufbXN':_0x5ebabd(0x164),'csNnd':'api/v1/builds','HqHxc':_0x5ebabd(0x16a),'yrGkD':function(_0x48e346){return _0x48e346();},'RkqyA':_0x5ebabd(0xe7),'TGlYw':_0x5ebabd(0x12e),'vTwHt':_0x5ebabd(0xfd),'YKBJi':_0x5ebabd(0x128),'qrhao':_0x5ebabd(0x153)};logger[_0x5ebabd(0x110)](_0x5ebabd(0xf2)+util[_0x5ebabd(0x100)](_0xfb746c));const _0x54c0f1=bsSetupHelper['getUserName'](_0xfb746c),_0x38e97f=bsSetupHelper[_0x5ebabd(0xef)](_0xfb746c),_0x2a7eb7=_0x2f1857[_0x5ebabd(0x182)](_0x54c0f1,'')+':'+_0x2f1857[_0x5ebabd(0x15f)](_0x38e97f,'');if(_0x2f1857[_0x5ebabd(0xe5)](_0x2a7eb7,':'))return _0x2f1857[_0x5ebabd(0x133)](debug,_0x2f1857[_0x5ebabd(0x117)]),process[_0x5ebabd(0x162)]['BS_TESTOPS_BUILD_COMPLETED']=_0x2f1857[_0x5ebabd(0x112)],[null,null];let _0x4d0171=![],_0x582a85=![];if(_0xfb746c[_0x5ebabd(0x16e)]&&_0xfb746c[_0x5ebabd(0x165)])_0x582a85=!![];else _0xfb746c[_0x5ebabd(0x16e)]&&(_0x4d0171=!![]);try{const _0x25e94a={'format':_0x2f1857['xakLj'],'project_name':_0xfb746c[_0x5ebabd(0x17c)]||'','name':_0xfb746c[_0x5ebabd(0xd1)]||path[_0x5ebabd(0x139)](path[_0x5ebabd(0xec)](process[_0x5ebabd(0x131)]())),'build_identifier':_0xfb746c[_0x5ebabd(0x152)],'description':_0xfb746c['buildDescription']||'','start_time':new Date()['toISOString'](),'tags':_0x2f1857[_0x5ebabd(0x154)](getCustomTags,_0xfb746c),'host_info':bsSetupHelper[_0x5ebabd(0x11a)](),'ci_info':bsSetupHelper[_0x5ebabd(0x157)](),'build_run_identifier':process['env'][_0x5ebabd(0x170)],'failed_tests_rerun':process[_0x5ebabd(0x162)][_0x5ebabd(0x17f)]||![],'version_control':await bsSetupHelper[_0x5ebabd(0x143)](),'observability_version':{'frameworkName':_0x2ef262[_0x5ebabd(0x13b)],'frameworkVersion':_0x2ef262[_0x5ebabd(0x146)],'sdkVersion':bsSetupHelper[_0x5ebabd(0x137)]()},'product_map':_0x2f1857[_0x5ebabd(0x154)](getProductMap,_0xfb746c),'test_orchestration':_0x2f1857[_0x5ebabd(0x11e)](getTestOrchestrationBuildStartData,_0xfb746c)},_0x428b8c={};_0x428b8c[_0x5ebabd(0x148)]=_0x54c0f1,_0x428b8c[_0x5ebabd(0x171)]=_0x38e97f;const _0x23f7c8={'auth':_0x428b8c,'headers':_0x2f1857[_0x5ebabd(0x154)](getDefaultHeaders,![])},_0x4b3241=await _0x2f1857[_0x5ebabd(0xfb)](nodeRequest,_0x2f1857[_0x5ebabd(0x106)],_0x2f1857['csNnd'],_0x25e94a,_0x23f7c8);_0x2f1857[_0x5ebabd(0x133)](debug,_0x2f1857['HqHxc']);const _0x33ef72=_0x4b3241['data'];_0x33ef72[_0x5ebabd(0x151)]&&(process[_0x5ebabd(0x162)][_0x5ebabd(0x104)]=_0x33ef72[_0x5ebabd(0x151)]);if(_0x2f1857[_0x5ebabd(0x16d)](isTestObservabilitySession)){process[_0x5ebabd(0x162)][_0x5ebabd(0xd5)]=_0x2f1857['RkqyA'];if(_0x33ef72[_0x5ebabd(0x10f)]){process['env']['BS_TESTOPS_JWT']=_0x33ef72[_0x5ebabd(0x10f)];const _0x27ca07={};_0x27ca07['username']=_0x54c0f1,_0x27ca07[_0x5ebabd(0x171)]=_0x38e97f,process[_0x5ebabd(0x162)][_0x5ebabd(0x174)]=JSON[_0x5ebabd(0x12c)](_0x27ca07);}_0x33ef72[_0x5ebabd(0x151)]&&(process['env'][_0x5ebabd(0xeb)]=_0x33ef72['build_hashed_id']),_0x33ef72['allow_screenshots']&&(process['env'][_0x5ebabd(0xf8)]=_0x33ef72['allow_screenshots'][_0x5ebabd(0x17e)]());}return[_0x4b3241[_0x5ebabd(0xe6)][_0x5ebabd(0x10f)],_0x4b3241[_0x5ebabd(0xe6)][_0x5ebabd(0x151)],_0x4b3241[_0x5ebabd(0xe6)][_0x5ebabd(0x125)]];}catch(_0x3f6784){process[_0x5ebabd(0x162)][_0x5ebabd(0x104)]=_0x2f1857[_0x5ebabd(0x181)],process[_0x5ebabd(0x162)][_0x5ebabd(0xd5)]=_0x2f1857[_0x5ebabd(0x112)],process[_0x5ebabd(0x162)][_0x5ebabd(0x15a)]=_0x2f1857[_0x5ebabd(0x181)],process[_0x5ebabd(0x162)][_0x5ebabd(0xeb)]=_0x2f1857[_0x5ebabd(0x181)],process[_0x5ebabd(0x162)][_0x5ebabd(0xf8)]=_0x2f1857[_0x5ebabd(0x181)];_0x3f6784[_0x5ebabd(0xd2)]?_0x2f1857[_0x5ebabd(0x154)](debug,_0x5ebabd(0xe8)+_0x3f6784[_0x5ebabd(0xd2)][_0x5ebabd(0xfe)]+'\x20'+_0x3f6784[_0x5ebabd(0xd2)][_0x5ebabd(0x16c)]+'\x20'+JSON[_0x5ebabd(0x12c)](_0x3f6784[_0x5ebabd(0xd2)][_0x5ebabd(0xe6)])):_0x2f1857[_0x5ebabd(0x154)](debug,_0x5ebabd(0xe8)+(_0x3f6784[_0x5ebabd(0x17d)]||_0x3f6784));if(_0x3f6784&&_0x3f6784[_0x5ebabd(0x17d)]){const _0x4a2c3e=_0x3f6784['message'];switch(_0x3f6784[_0x5ebabd(0x130)]){case _0x2f1857[_0x5ebabd(0x140)]:logger[_0x5ebabd(0xd9)](_0x4a2c3e);break;case _0x2f1857['YKBJi']:logger['info'](_0x4a2c3e);break;case _0x2f1857[_0x5ebabd(0x120)]:logger[_0x5ebabd(0xd9)](_0x4a2c3e);break;default:logger[_0x5ebabd(0xd9)](_0x4a2c3e);}}else console[_0x5ebabd(0x110)]('Data\x20upload\x20to\x20BrowserStack\x20'+constants[_0x5ebabd(0x141)]+_0x5ebabd(0xed)+_0x3f6784);return[null,null,null];}}static async[a129_0x3c90f8(0x15b)](){const _0x59be0c=a129_0x3c90f8,_0x526e1e={'KeVnK':_0x59be0c(0xe7),'Gopgq':_0x59be0c(0xd7),'RUmLZ':function(_0x36fd1,_0x2348f6){return _0x36fd1(_0x2348f6);}},_0xe18c6a=process['env'][_0x59be0c(0xd5)];if([_0x526e1e[_0x59be0c(0x172)],_0x526e1e[_0x59be0c(0x108)]][_0x59be0c(0x142)](_0xe18c6a))return;while([_0x526e1e['KeVnK'],_0x526e1e['Gopgq']][_0x59be0c(0x142)](_0xe18c6a)){await _0x526e1e['RUmLZ'](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a129_0x3c90f8(0xff)](_0x5d7ddd){const _0x419862=a129_0x3c90f8,_0xfe7392={};_0xfe7392[_0x419862(0x13a)]=_0x419862(0x102),_0xfe7392['dMPhF']=_0x419862(0x13d),_0xfe7392[_0x419862(0x150)]='Test_Skipped_Upload',_0xfe7392[_0x419862(0x17a)]=_0x419862(0xdc),_0xfe7392[_0x419862(0xdb)]=_0x419862(0x155),_0xfe7392[_0x419862(0x105)]='Hook_End_Upload',_0xfe7392[_0x419862(0x109)]=_0x419862(0xf4);const _0x55e16e=_0xfe7392,_0x5cc117={};return _0x5cc117[_0x419862(0x163)]=_0x55e16e[_0x419862(0x13a)],_0x5cc117[_0x419862(0x10a)]=_0x55e16e[_0x419862(0xf6)],_0x5cc117[_0x419862(0x122)]=_0x55e16e[_0x419862(0x150)],_0x5cc117['LogCreated']=_0x55e16e[_0x419862(0x17a)],_0x5cc117[_0x419862(0xf3)]=_0x55e16e['YNNha'],_0x5cc117[_0x419862(0x173)]=_0x55e16e['hVUxq'],_0x5cc117['CBTSessionCreated']=_0x55e16e[_0x419862(0x109)],_0x5cc117[_0x5d7ddd['event_type']];}static async[a129_0x3c90f8(0x103)](_0x3018bb,_0x26e957=0x0,_0x2c1a33=null){const _0x47822b=a129_0x3c90f8,_0x4559cc={'tdIxS':function(_0x433841,_0x34961c){return _0x433841===_0x34961c;},'zxyFV':_0x47822b(0x14a),'jnpNJ':function(_0x51534b,_0x7ad38d){return _0x51534b!==_0x7ad38d;},'gIgkQ':_0x47822b(0x160),'aSVEG':_0x47822b(0xe7),'tbRdu':function(_0x4470c0,_0x381703,_0x3a32e6,_0x45d77c,_0x3eb7f4){return _0x4470c0(_0x381703,_0x3a32e6,_0x45d77c,_0x3eb7f4);},'IvHME':_0x47822b(0x164),'EXKmj':function(_0x564e13,_0x2a5059,_0x10ffb8,_0x2a809a,_0x47b563){return _0x564e13(_0x2a5059,_0x10ffb8,_0x2a809a,_0x47b563);},'OBbIC':function(_0x2f40f7,_0x59575f){return _0x2f40f7(_0x59575f);},'qHMfY':'Batch-Queue','zLjrx':function(_0x31b60c,_0xa7106){return _0x31b60c-_0xa7106;},'yhmcG':_0x47822b(0xde),'QiVFa':_0x47822b(0xf0),'ABzNW':function(_0x47e416,_0x16bc98){return _0x47e416(_0x16bc98);},'jZPAg':function(_0x38e1a4,_0x48689c){return _0x38e1a4!==_0x48689c;},'fcnEB':function(_0xe3050b,_0x341bb7){return _0xe3050b!==_0x341bb7;},'oTLpB':'error'};_0x4559cc[_0x47822b(0x13e)](_0x2c1a33,_0x4559cc[_0x47822b(0x113)])&&logger[_0x47822b(0x176)](_0x47822b(0x135)+_0x3018bb[_0x47822b(0x12d)][0x0]['test_run_uuid']);const _0x38d6f8=await this[_0x47822b(0xff)](_0x3018bb);let _0x46e50f=_0x3018bb,_0x438266=EVENT_ENDPOINT;_0x4559cc[_0x47822b(0x124)](_0x2c1a33,_0x4559cc[_0x47822b(0x113)])&&this[_0x47822b(0x111)][_0x47822b(0x121)]();const {shouldProceed:_0x26a535,proceedWithData:_0x6d1c9c,proceedWithUrl:_0x4a4d6f}=this[_0x47822b(0x111)][_0x47822b(0x14b)](_0x3018bb);if(!_0x26a535)return;else _0x6d1c9c&&(_0x46e50f=_0x6d1c9c,_0x438266=_0x4a4d6f);const _0x596fd9={};_0x596fd9[_0x47822b(0x115)]='Bearer\x20'+process[_0x47822b(0x162)][_0x47822b(0x10e)],_0x596fd9[_0x47822b(0x123)]=_0x4559cc[_0x47822b(0xfc)],_0x596fd9[_0x47822b(0x178)]=_0x4559cc[_0x47822b(0x134)];const _0x3c937b={};_0x3c937b[_0x47822b(0x169)]=_0x596fd9;const _0x47f83f=_0x3c937b;let _0x1fd422;try{_0x4559cc[_0x47822b(0x13e)](_0x2c1a33,_0x4559cc[_0x47822b(0x113)])?(logger[_0x47822b(0x176)](_0x47822b(0x168)+_0x3018bb?.[_0x47822b(0x12d)][0x0]?.[_0x47822b(0xe3)]),_0x1fd422=await _0x4559cc[_0x47822b(0x136)](asyncAwaitNodeReq,_0x4559cc['IvHME'],_0x438266,_0x46e50f,_0x47f83f),logger[_0x47822b(0x176)](_0x47822b(0x10d)+_0x3018bb?.[_0x47822b(0x12d)][0x0]?.['test_run_uuid'])):_0x1fd422=await _0x4559cc['EXKmj'](nodeRequest,_0x4559cc[_0x47822b(0x16f)],_0x438266,_0x46e50f,_0x47f83f);if(_0x1fd422[_0x47822b(0xe6)][_0x47822b(0xd9)]){const _0x7bd0be={};_0x7bd0be['message']=_0x1fd422['data']['error'];throw _0x7bd0be;}else{_0x4559cc[_0x47822b(0xee)](debug,(_0x4559cc[_0x47822b(0x124)](_0x438266,this[_0x47822b(0x111)]['eventUrl'])?_0x38d6f8:_0x4559cc[_0x47822b(0x119)])+'['+_0x26e957+_0x47822b(0x159)),this['requestQueueHandler'][_0x47822b(0xda)]=Math[_0x47822b(0x118)](0x0,_0x4559cc[_0x47822b(0x129)](this['requestQueueHandler'][_0x47822b(0xda)],_0x4559cc[_0x47822b(0x13e)](_0x438266,_0x4559cc[_0x47822b(0xfa)])?0x1:_0x46e50f['length']));const _0x11bbb5={};return _0x11bbb5[_0x47822b(0xfe)]=_0x4559cc[_0x47822b(0x14f)],_0x11bbb5['message']='',_0x11bbb5;}}catch(_0x3eb42d){_0x3eb42d[_0x47822b(0xd2)]?_0x4559cc[_0x47822b(0x12b)](debug,_0x47822b(0x101)+(_0x4559cc[_0x47822b(0x147)](_0x438266,this[_0x47822b(0x111)][_0x47822b(0x14c)])?_0x38d6f8:_0x4559cc[_0x47822b(0x119)])+'\x20REQUEST\x20TO\x20'+constants[_0x47822b(0x141)]+_0x47822b(0x144)+_0x3eb42d[_0x47822b(0xd2)][_0x47822b(0xfe)]+'\x20'+_0x3eb42d[_0x47822b(0xd2)][_0x47822b(0x16c)]+'\x20'+util[_0x47822b(0x132)](_0x3eb42d[_0x47822b(0xd2)]['data'])):_0x4559cc[_0x47822b(0xee)](debug,_0x47822b(0x101)+(_0x4559cc['fcnEB'](_0x438266,this[_0x47822b(0x111)][_0x47822b(0x14c)])?_0x38d6f8:_0x4559cc['qHMfY'])+_0x47822b(0x161)+constants[_0x47822b(0x141)]+'\x20:\x20'+util[_0x47822b(0x132)](_0x3eb42d));this[_0x47822b(0x111)][_0x47822b(0xda)]=Math[_0x47822b(0x118)](0x0,_0x4559cc[_0x47822b(0x129)](this[_0x47822b(0x111)][_0x47822b(0xda)],_0x4559cc[_0x47822b(0x13e)](_0x438266,_0x4559cc[_0x47822b(0xfa)])?0x1:_0x46e50f[_0x47822b(0x11f)]));const _0x5361df={};return _0x5361df['status']=_0x4559cc[_0x47822b(0x138)],_0x5361df[_0x47822b(0x17d)]=_0x3eb42d['message']||(_0x3eb42d['response']?_0x3eb42d[_0x47822b(0xd2)][_0x47822b(0xfe)]+':'+_0x3eb42d[_0x47822b(0xd2)][_0x47822b(0x16c)]:_0x3eb42d),_0x5361df;}}static async['uploadEventData'](_0x352e34,_0x456874=0x0){const _0x4f1adc=a129_0x3c90f8,_0x3d62c8={'BQENS':function(_0x107ee3,_0x218323){return _0x107ee3+_0x218323;},'cnjGX':function(_0x49589f,_0x168840){return _0x49589f(_0x168840);},'xqtmN':_0x4f1adc(0x10b),'XspqF':_0x4f1adc(0x179),'JJBIH':_0x4f1adc(0x126),'yqWUE':function(_0x4724c3,_0x1a9038,_0x44ce6c){return _0x4724c3(_0x1a9038,_0x44ce6c);},'CLHMf':'uploadEventData','jRQZH':function(_0x49a908,_0x5642ac){return _0x49a908===_0x5642ac;},'AUePm':function(_0x25a3d5,_0x2cae2d){return _0x25a3d5!==_0x2cae2d;},'RLIen':_0x4f1adc(0x12e),'INUEj':_0x4f1adc(0xe7),'NbFDl':function(_0x3fcbb0){return _0x3fcbb0();},'IPRob':function(_0x756601,_0x57357e){return _0x756601-_0x57357e;},'kfmsX':_0x4f1adc(0xd9),'ctgTB':_0x4f1adc(0x175),'CRSOj':function(_0x3a2be7,_0x2395b2){return _0x3a2be7>=_0x2395b2;},'Sznvf':function(_0x558922,_0x413254){return _0x558922-_0x413254;},'LAvga':'Retry\x20runs\x20exceeded','wxVFU':function(_0x4901a1,_0x589adf){return _0x4901a1!==_0x589adf;},'dQNpn':_0x4f1adc(0xd7),'TtutX':function(_0x293b59,_0x6eee8c,_0x34f354){return _0x293b59(_0x6eee8c,_0x34f354);}},_0x297a85=this[_0x4f1adc(0xff)](_0x352e34);_0x3d62c8['cnjGX'](trace,'Processing\x20event\x20-\x20\x27'+_0x352e34[_0x4f1adc(0x13c)]+'\x27\x20'+(bsSetupHelper[_0x4f1adc(0x156)](_0x352e34,[_0x3d62c8[_0x4f1adc(0x11c)],_0x3d62c8[_0x4f1adc(0x16b)]])||bsSetupHelper[_0x4f1adc(0x156)](_0x352e34,[_0x3d62c8[_0x4f1adc(0x116)],_0x3d62c8['XspqF']])));if(!_0x3d62c8[_0x4f1adc(0x149)](shouldProcessEventForTesthub,_0x352e34[_0x4f1adc(0x13c)],_0x3d62c8['CLHMf']))return;_0x3d62c8[_0x4f1adc(0xe1)](_0x456874,0x0)&&process[_0x4f1adc(0x162)][_0x4f1adc(0x10e)]&&_0x3d62c8[_0x4f1adc(0xf9)](process[_0x4f1adc(0x162)][_0x4f1adc(0x10e)],_0x3d62c8[_0x4f1adc(0x14e)])&&(this[_0x4f1adc(0x111)]['pendingUploads']+=0x1);if(_0x3d62c8[_0x4f1adc(0xe1)](process[_0x4f1adc(0x162)][_0x4f1adc(0xd5)],_0x3d62c8[_0x4f1adc(0xd4)])||process[_0x4f1adc(0x162)][_0x4f1adc(0xd3)]||_0x3d62c8['NbFDl'](isPercyBuild)){if(_0x3d62c8[_0x4f1adc(0xe1)](process[_0x4f1adc(0x162)][_0x4f1adc(0x10e)],_0x3d62c8[_0x4f1adc(0x14e)])){_0x3d62c8[_0x4f1adc(0x11d)](debug,_0x4f1adc(0x101)+_0x297a85+'\x20REQUEST\x20TO\x20'+constants[_0x4f1adc(0x141)]+_0x4f1adc(0x15c)),this[_0x4f1adc(0x111)][_0x4f1adc(0xda)]=Math[_0x4f1adc(0x118)](0x0,_0x3d62c8[_0x4f1adc(0xd8)](this[_0x4f1adc(0x111)]['pendingUploads'],0x1));const _0x1d6550={};return _0x1d6550[_0x4f1adc(0xfe)]=_0x3d62c8[_0x4f1adc(0x14d)],_0x1d6550['message']=_0x3d62c8[_0x4f1adc(0x158)],_0x1d6550;}return await this[_0x4f1adc(0x103)](_0x352e34,_0x456874);}else{if(_0x3d62c8[_0x4f1adc(0x180)](_0x456874,0x5)){_0x3d62c8[_0x4f1adc(0x11d)](debug,_0x4f1adc(0x101)+_0x297a85+_0x4f1adc(0x161)+constants['TEST_REPORTING_ANALYTICS']+_0x4f1adc(0xe4)+_0x297a85+_0x4f1adc(0xe2));_0x3d62c8[_0x4f1adc(0xf9)](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x3d62c8[_0x4f1adc(0x14e)])&&(this[_0x4f1adc(0x111)][_0x4f1adc(0xda)]=Math[_0x4f1adc(0x118)](0x0,_0x3d62c8[_0x4f1adc(0xea)](this['requestQueueHandler'][_0x4f1adc(0xda)],0x1)));const _0x5dbc03={};return _0x5dbc03[_0x4f1adc(0xfe)]=_0x3d62c8[_0x4f1adc(0x14d)],_0x5dbc03[_0x4f1adc(0x17d)]=_0x3d62c8[_0x4f1adc(0x177)],_0x5dbc03;}else _0x3d62c8[_0x4f1adc(0xdf)](process[_0x4f1adc(0x162)]['BS_TESTOPS_BUILD_COMPLETED'],_0x3d62c8[_0x4f1adc(0x167)])&&_0x3d62c8[_0x4f1adc(0xd6)](setTimeout,()=>{this['uploadEventData'](_0x352e34,_0x3d62c8['BQENS'](_0x456874,0x1));},0x3e8);}}}module['exports']=SessionHandler;
|
|
1
|
+
const a129_0x366540=a129_0x6db6;(function(_0x151ef4,_0x4d6af8){const _0x13dc07=a129_0x6db6,_0x27fd35=_0x151ef4();while(!![]){try{const _0x998603=-parseInt(_0x13dc07(0x110))/0x1+-parseInt(_0x13dc07(0x8c))/0x2*(parseInt(_0x13dc07(0xca))/0x3)+-parseInt(_0x13dc07(0xa9))/0x4+parseInt(_0x13dc07(0x13c))/0x5*(parseInt(_0x13dc07(0x111))/0x6)+-parseInt(_0x13dc07(0xa1))/0x7*(parseInt(_0x13dc07(0xc0))/0x8)+parseInt(_0x13dc07(0x10c))/0x9+parseInt(_0x13dc07(0xc7))/0xa;if(_0x998603===_0x4d6af8)break;else _0x27fd35['push'](_0x27fd35['shift']());}catch(_0xdc1056){_0x27fd35['push'](_0x27fd35['shift']());}}}(a129_0x42ab,0xac71a));function a129_0x6db6(_0x4af2fc,_0x400647){const _0x42ab88=a129_0x42ab();return a129_0x6db6=function(_0x6db668,_0x2c7f3d){_0x6db668=_0x6db668-0x81;let _0x528393=_0x42ab88[_0x6db668];return _0x528393;},a129_0x6db6(_0x4af2fc,_0x400647);}const bsSetupHelper=require(a129_0x366540(0xa3)),path=require(a129_0x366540(0x128)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a129_0x366540(0x108)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a129_0x366540(0x124)),RequestQueueHandler=require(a129_0x366540(0x11a)),logger=require('../logger')['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a129_0x366540(0x82)),util=require('util'),constants=require(a129_0x366540(0xa0));function a129_0x42ab(){const _0x402885=['test_run_uuid','logs','BS_A11Y_JWT','Authorization','Hook_Start_Upload',']\x20event\x20successful!','test_run','getAccessKey','Processing\x20event\x20-\x20\x27','oKRGc','sYFmD','HookRunStarted','inspect','resolve','mYeoU','KZEaT','kItKa','pendingUploads','XJYtP','IXIYG','errorType','null','jwt','buildDescription','xRZTI','hrUVB','GioJq','data','elhNK','rIzwM','password','waitForBuildStatus','JETyZ','format','ORVGt','myBTd','CREDENTIALS_FOR_CRASH_REPORTING','uCgwx','BROWSERSTACK_RERUN','length','./utils','success','X-BSTACK-TESTOPS','Test_End_Upload','5246406XrbXmZ','PgIbW','VMxBz','\x20retry\x20runs\x20exceeded','1283863FoTDfI','427164XIImoH','BS_TESTOPS_JWT','Batch-Queue','fBqQA','Test_Start_Upload','ajdYA','NcMxT','pzvps','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','./requestQueueHandler','POST','gtntA','browserstackAutomation','status','tyDhF','eventUrl','yXlMg','exports','htqbA','./constants','BS_TESTOPS_BUILD_COMPLETED','wzspF','requestQueueHandler','path','CBT_Upload','BS_TESTOPS_ALLOW_SCREENSHOTS','getLogTag','bTAoT','cuvYP','Content-Type','Gakqe','uploadEventData','headers','TestRunFinished','BROWSERSTACK_BUILD_RUN_IDENTIFIER','LywPL','iiGZk','toISOString','xWXKy','zoYWf','add','sdhYn','BROWSERSTACK_TESTHUB_UUID','65sRCXMF','kCksc','kjjoI','username','PBfgA','../../helpers/testhub/utils','includes','Hook_End_Upload','json','api/v1/event','\x20REQUEST\x20TO\x20','application/json','xWsVM','SDply','info','1285442uGVVMh','getHostInfo','CHVBX','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','vizGW','frameworkVersion','RJqax','KeRtn','sendEventData','env','okfaB','ZDzsk','max','BS_TESTOPS_BUILD_HASHED_ID','vbuIe','LogCreated','response','\x20:\x20','cZmqU','true','../../bin/utils/constants','128023rxvDug','JYRuq','../helper','jbhhr','app','wtcIj','Data\x20upload\x20to\x20BrowserStack\x20','ERROR_INVALID_CREDENTIALS','3501932IJZAVR','getAgentVersion','Log_Upload','qrckO','build_hashed_id','event_type','tPUJg','launch','tQMdt','Ckzpu','error','MdswA','Sending\x20trace\x20zip\x20for\x20test:\x20','Build\x20creation\x20successful!','allow_screenshots','stringify','uuid','false','wJAIp','start','nRPqt','sendTraceZip','projectName','304QNmDif','BROWSERSTACK_TESTHUB_JWT','EXCEPTION\x20IN\x20','JAyNA','sAjqF','Test_Skipped_Upload','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','26949230RwUlcy','buildIdentifier','jHUsX','3tlEmTy','statusText','hook_run','pePCL','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','VbDwN','message','\x20failed\x20due\x20to\x20','mwBtP','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','getGitMetaData','CBTSessionCreated','api/v1/builds','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','Bearer\x20','basename','TEST_REPORTING_ANALYTICS','ODDlU','wiQKC','getCiInfo','nestedKeyValue','debug'];a129_0x42ab=function(){return _0x402885;};return a129_0x42ab();}class SessionHandler{static [a129_0x366540(0x127)]=RequestQueueHandler['getInstance']();static async[a129_0x366540(0xb0)](_0x4a0d01,_0x2b86e3){const _0x22f947=a129_0x366540,_0x3d7827={'kCksc':function(_0x13d63a,_0x12a350){return _0x13d63a||_0x12a350;},'Jrjzg':function(_0x4eeca7,_0x43fb44){return _0x4eeca7===_0x43fb44;},'wJAIp':function(_0x8e21c,_0x32f96d){return _0x8e21c(_0x32f96d);},'jHUsX':_0x22f947(0xc6),'vbuIe':_0x22f947(0xba),'fBqQA':_0x22f947(0x85),'tPUJg':function(_0x31e18d,_0x4c38fc){return _0x31e18d(_0x4c38fc);},'sdhYn':function(_0x457c94,_0x4727c1){return _0x457c94(_0x4727c1);},'PgIbW':function(_0x1e0798,_0x1ac2a1,_0x222202,_0x4c4a21,_0x10f33e){return _0x1e0798(_0x1ac2a1,_0x222202,_0x4c4a21,_0x10f33e);},'sAjqF':_0x22f947(0x11b),'JETyZ':_0x22f947(0xd6),'Ckzpu':function(_0x1a9e37,_0x437e6f){return _0x1a9e37(_0x437e6f);},'XJYtP':_0x22f947(0xb6),'JYRuq':function(_0x33ee1d){return _0x33ee1d();},'ODDlU':'true','xWXKy':'null','SDply':function(_0x14e659,_0x33965a){return _0x14e659(_0x33965a);},'ajdYA':_0x22f947(0xa8),'gtntA':'ERROR_ACCESS_DENIED','cNzFd':'ERROR_SDK_DEPRECATED'};logger[_0x22f947(0x8b)]('Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20'+util[_0x22f947(0xec)](_0x4a0d01));const _0x50874f=bsSetupHelper['getUserName'](_0x4a0d01),_0x31371f=bsSetupHelper[_0x22f947(0xe7)](_0x4a0d01),_0x4a0694=_0x3d7827[_0x22f947(0x13d)](_0x50874f,'')+':'+_0x3d7827[_0x22f947(0x13d)](_0x31371f,'');if(_0x3d7827['Jrjzg'](_0x4a0694,':'))return _0x3d7827[_0x22f947(0xbb)](debug,_0x3d7827[_0x22f947(0xc9)]),process[_0x22f947(0x95)]['BS_TESTOPS_BUILD_COMPLETED']=_0x3d7827[_0x22f947(0x9a)],[null,null];let _0x22e465=![],_0x181bab=![];if(_0x4a0d01[_0x22f947(0x11d)]&&_0x4a0d01[_0x22f947(0xa5)])_0x181bab=!![];else _0x4a0d01['browserstackAutomation']&&(_0x22e465=!![]);try{const _0x825fee={'format':_0x3d7827[_0x22f947(0x114)],'project_name':_0x4a0d01[_0x22f947(0xbf)]||'','name':_0x4a0d01['buildName']||path[_0x22f947(0xd9)](path[_0x22f947(0xed)](process['cwd']())),'build_identifier':_0x4a0d01[_0x22f947(0xc8)],'description':_0x4a0d01[_0x22f947(0xf7)]||'','start_time':new Date()[_0x22f947(0x136)](),'tags':_0x3d7827[_0x22f947(0xaf)](getCustomTags,_0x4a0d01),'host_info':bsSetupHelper[_0x22f947(0x8d)](),'ci_info':bsSetupHelper[_0x22f947(0xdd)](),'build_run_identifier':process['env'][_0x22f947(0x133)],'failed_tests_rerun':process['env'][_0x22f947(0x106)]||![],'version_control':await bsSetupHelper[_0x22f947(0xd4)](),'observability_version':{'frameworkName':_0x2b86e3['frameworkName'],'frameworkVersion':_0x2b86e3[_0x22f947(0x91)],'sdkVersion':bsSetupHelper[_0x22f947(0xaa)]()},'product_map':_0x3d7827['tPUJg'](getProductMap,_0x4a0d01),'test_orchestration':_0x3d7827[_0x22f947(0xbb)](getTestOrchestrationBuildStartData,_0x4a0d01)},_0xb64721={};_0xb64721[_0x22f947(0x13f)]=_0x50874f,_0xb64721[_0x22f947(0xfe)]=_0x31371f;const _0x271e0c={'auth':_0xb64721,'headers':_0x3d7827[_0x22f947(0x13a)](getDefaultHeaders,![])},_0x5045cb=await _0x3d7827[_0x22f947(0x10d)](nodeRequest,_0x3d7827[_0x22f947(0xc4)],_0x3d7827[_0x22f947(0x100)],_0x825fee,_0x271e0c);_0x3d7827[_0x22f947(0xb2)](debug,_0x3d7827[_0x22f947(0xf2)]);const _0x5f4e00=_0x5045cb[_0x22f947(0xfb)];_0x5f4e00['build_hashed_id']&&(process[_0x22f947(0x95)]['BROWSERSTACK_TESTHUB_UUID']=_0x5f4e00[_0x22f947(0xad)]);if(_0x3d7827[_0x22f947(0xa2)](isTestObservabilitySession)){process[_0x22f947(0x95)][_0x22f947(0x125)]=_0x3d7827[_0x22f947(0xdb)];if(_0x5f4e00[_0x22f947(0xf6)]){process[_0x22f947(0x95)][_0x22f947(0x112)]=_0x5f4e00[_0x22f947(0xf6)];const _0x27ed35={};_0x27ed35['username']=_0x50874f,_0x27ed35[_0x22f947(0xfe)]=_0x31371f,process[_0x22f947(0x95)][_0x22f947(0x104)]=JSON[_0x22f947(0xb8)](_0x27ed35);}_0x5f4e00[_0x22f947(0xad)]&&(process[_0x22f947(0x95)][_0x22f947(0x99)]=_0x5f4e00[_0x22f947(0xad)]),_0x5f4e00[_0x22f947(0xb7)]&&(process[_0x22f947(0x95)][_0x22f947(0x12a)]=_0x5f4e00[_0x22f947(0xb7)]['toString']());}return[_0x5045cb[_0x22f947(0xfb)]['jwt'],_0x5045cb[_0x22f947(0xfb)][_0x22f947(0xad)],_0x5045cb[_0x22f947(0xfb)][_0x22f947(0xb7)]];}catch(_0x3ca934){process[_0x22f947(0x95)][_0x22f947(0x13b)]=_0x3d7827[_0x22f947(0x137)],process['env'][_0x22f947(0x125)]=_0x3d7827[_0x22f947(0x9a)],process[_0x22f947(0x95)][_0x22f947(0x112)]=_0x3d7827[_0x22f947(0x137)],process[_0x22f947(0x95)][_0x22f947(0x99)]=_0x3d7827['xWXKy'],process[_0x22f947(0x95)][_0x22f947(0x12a)]=_0x3d7827[_0x22f947(0x137)];_0x3ca934[_0x22f947(0x9c)]?_0x3d7827[_0x22f947(0x13a)](debug,_0x22f947(0xd7)+_0x3ca934[_0x22f947(0x9c)][_0x22f947(0x11e)]+'\x20'+_0x3ca934['response']['statusText']+'\x20'+JSON['stringify'](_0x3ca934['response'][_0x22f947(0xfb)])):_0x3d7827[_0x22f947(0x8a)](debug,_0x22f947(0xd7)+(_0x3ca934[_0x22f947(0xd0)]||_0x3ca934));if(_0x3ca934&&_0x3ca934[_0x22f947(0xd0)]){const _0x140e86=_0x3ca934['message'];switch(_0x3ca934[_0x22f947(0xf4)]){case _0x3d7827[_0x22f947(0x116)]:logger['error'](_0x140e86);break;case _0x3d7827[_0x22f947(0x11c)]:logger[_0x22f947(0x8b)](_0x140e86);break;case _0x3d7827['cNzFd']:logger['error'](_0x140e86);break;default:logger['error'](_0x140e86);}}else console[_0x22f947(0x8b)](_0x22f947(0xa7)+constants[_0x22f947(0xda)]+_0x22f947(0xd1)+_0x3ca934);return[null,null,null];}}static async[a129_0x366540(0xff)](){const _0x1ac63e=a129_0x366540,_0x1bc0a0={'NcMxT':_0x1ac63e(0x9f),'vizGW':_0x1ac63e(0xba),'bTAoT':function(_0x428988,_0x3d70e1){return _0x428988(_0x3d70e1);}},_0x226900=process[_0x1ac63e(0x95)][_0x1ac63e(0x125)];if([_0x1bc0a0['NcMxT'],_0x1bc0a0['vizGW']][_0x1ac63e(0x83)](_0x226900))return;while([_0x1bc0a0[_0x1ac63e(0x117)],_0x1bc0a0[_0x1ac63e(0x90)]][_0x1ac63e(0x83)](_0x226900)){await _0x1bc0a0[_0x1ac63e(0x12c)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static['getLogTag'](_0x561a1b){const _0x4f7331=a129_0x366540,_0x3316b3={};_0x3316b3[_0x4f7331(0x9e)]=_0x4f7331(0x115),_0x3316b3[_0x4f7331(0xf8)]=_0x4f7331(0x10b),_0x3316b3[_0x4f7331(0xf9)]=_0x4f7331(0xc5),_0x3316b3[_0x4f7331(0x93)]=_0x4f7331(0xab),_0x3316b3[_0x4f7331(0xa4)]=_0x4f7331(0xe4),_0x3316b3[_0x4f7331(0x102)]=_0x4f7331(0x84),_0x3316b3[_0x4f7331(0x11f)]=_0x4f7331(0x129);const _0x48523c=_0x3316b3,_0x284a18={};return _0x284a18['TestRunStarted']=_0x48523c[_0x4f7331(0x9e)],_0x284a18[_0x4f7331(0x132)]=_0x48523c[_0x4f7331(0xf8)],_0x284a18['TestRunSkipped']=_0x48523c['hrUVB'],_0x284a18[_0x4f7331(0x9b)]=_0x48523c['KeRtn'],_0x284a18[_0x4f7331(0xeb)]=_0x48523c[_0x4f7331(0xa4)],_0x284a18['HookRunFinished']=_0x48523c[_0x4f7331(0x102)],_0x284a18[_0x4f7331(0xd5)]=_0x48523c[_0x4f7331(0x11f)],_0x284a18[_0x561a1b[_0x4f7331(0xae)]];}static async['sendEventData'](_0x88d0,_0x57ae3a=0x0,_0x6dfbd5=null){const _0xac748a=a129_0x366540,_0x324506={'JAyNA':function(_0x433cbc,_0x58a88e){return _0x433cbc===_0x58a88e;},'xWsVM':_0xac748a(0xbe),'uCgwx':function(_0x3b3e3b,_0x3e480a){return _0x3b3e3b!==_0x3e480a;},'htqbA':_0xac748a(0x88),'kItKa':_0xac748a(0x9f),'wiQKC':function(_0x400c8f,_0x3b78e3){return _0x400c8f===_0x3b78e3;},'qrckO':function(_0x31e409,_0x435ed2,_0x48247f,_0x2f8809,_0x5ad1cf){return _0x31e409(_0x435ed2,_0x48247f,_0x2f8809,_0x5ad1cf);},'mwBtP':'POST','yXlMg':function(_0x3c256d,_0x280cb5){return _0x3c256d(_0x280cb5);},'PBfgA':_0xac748a(0x113),'tQMdt':function(_0x4772d1,_0x38774e){return _0x4772d1-_0x38774e;},'mYeoU':_0xac748a(0x86),'Gakqe':_0xac748a(0x109),'GioJq':function(_0x536b53,_0x39e33b){return _0x536b53(_0x39e33b);},'ZDzsk':function(_0x5e758d,_0x59d47a){return _0x5e758d!==_0x59d47a;},'RJqax':function(_0x3c75ec,_0x22850f){return _0x3c75ec===_0x22850f;},'iiGZk':_0xac748a(0xb3)};_0x324506[_0xac748a(0xc3)](_0x6dfbd5,_0x324506['xWsVM'])&&logger[_0xac748a(0xdf)](_0xac748a(0xb5)+_0x88d0['logs'][0x0][_0xac748a(0xe0)]);const _0x46e4e3=await this[_0xac748a(0x12b)](_0x88d0);let _0x3a4e6f=_0x88d0,_0x17821c=EVENT_ENDPOINT;_0x324506['uCgwx'](_0x6dfbd5,_0x324506[_0xac748a(0x89)])&&this['requestQueueHandler'][_0xac748a(0xbc)]();const {shouldProceed:_0x3bfba9,proceedWithData:_0x298c03,proceedWithUrl:_0x3ee1e8}=this[_0xac748a(0x127)][_0xac748a(0x139)](_0x88d0);if(!_0x3bfba9)return;else _0x298c03&&(_0x3a4e6f=_0x298c03,_0x17821c=_0x3ee1e8);const _0x82a9e3={};_0x82a9e3[_0xac748a(0xe3)]=_0xac748a(0xd8)+process[_0xac748a(0x95)][_0xac748a(0xc1)],_0x82a9e3[_0xac748a(0x12e)]=_0x324506[_0xac748a(0x123)],_0x82a9e3[_0xac748a(0x10a)]=_0x324506[_0xac748a(0xf0)];const _0x1434e7={};_0x1434e7[_0xac748a(0x131)]=_0x82a9e3;const _0x4bebfd=_0x1434e7;let _0x587e19;try{_0x324506[_0xac748a(0xdc)](_0x6dfbd5,_0x324506[_0xac748a(0x89)])?(logger[_0xac748a(0xdf)](_0xac748a(0x8f)+_0x88d0?.[_0xac748a(0xe1)][0x0]?.['test_run_uuid']),_0x587e19=await _0x324506[_0xac748a(0xac)](asyncAwaitNodeReq,_0x324506[_0xac748a(0xd2)],_0x17821c,_0x3a4e6f,_0x4bebfd),logger[_0xac748a(0xdf)](_0xac748a(0xd3)+_0x88d0?.[_0xac748a(0xe1)][0x0]?.[_0xac748a(0xe0)])):_0x587e19=await _0x324506[_0xac748a(0xac)](nodeRequest,_0x324506['mwBtP'],_0x17821c,_0x3a4e6f,_0x4bebfd);if(_0x587e19[_0xac748a(0xfb)]['error']){const _0x565d09={};_0x565d09[_0xac748a(0xd0)]=_0x587e19[_0xac748a(0xfb)][_0xac748a(0xb3)];throw _0x565d09;}else{_0x324506[_0xac748a(0x121)](debug,(_0x324506[_0xac748a(0x105)](_0x17821c,this['requestQueueHandler'][_0xac748a(0x120)])?_0x46e4e3:_0x324506[_0xac748a(0x81)])+'['+_0x57ae3a+_0xac748a(0xe5)),this[_0xac748a(0x127)]['pendingUploads']=Math['max'](0x0,_0x324506[_0xac748a(0xb1)](this[_0xac748a(0x127)][_0xac748a(0xf1)],_0x324506[_0xac748a(0xc3)](_0x17821c,_0x324506['mYeoU'])?0x1:_0x3a4e6f['length']));const _0x210511={};return _0x210511[_0xac748a(0x11e)]=_0x324506[_0xac748a(0x12f)],_0x210511[_0xac748a(0xd0)]='',_0x210511;}}catch(_0x57fe16){_0x57fe16[_0xac748a(0x9c)]?_0x324506[_0xac748a(0xfa)](debug,_0xac748a(0xc2)+(_0x324506['ZDzsk'](_0x17821c,this[_0xac748a(0x127)]['eventUrl'])?_0x46e4e3:_0x324506[_0xac748a(0x81)])+_0xac748a(0x87)+constants[_0xac748a(0xda)]+'\x20:\x20'+_0x57fe16[_0xac748a(0x9c)][_0xac748a(0x11e)]+'\x20'+_0x57fe16[_0xac748a(0x9c)][_0xac748a(0xcb)]+'\x20'+util[_0xac748a(0x101)](_0x57fe16['response'][_0xac748a(0xfb)])):_0x324506[_0xac748a(0xfa)](debug,_0xac748a(0xc2)+(_0x324506[_0xac748a(0x97)](_0x17821c,this['requestQueueHandler'][_0xac748a(0x120)])?_0x46e4e3:_0x324506[_0xac748a(0x81)])+_0xac748a(0x87)+constants[_0xac748a(0xda)]+_0xac748a(0x9d)+util['format'](_0x57fe16));this[_0xac748a(0x127)][_0xac748a(0xf1)]=Math[_0xac748a(0x98)](0x0,_0x324506[_0xac748a(0xb1)](this[_0xac748a(0x127)][_0xac748a(0xf1)],_0x324506[_0xac748a(0x92)](_0x17821c,_0x324506[_0xac748a(0xee)])?0x1:_0x3a4e6f[_0xac748a(0x107)]));const _0x532265={};return _0x532265[_0xac748a(0x11e)]=_0x324506[_0xac748a(0x135)],_0x532265['message']=_0x57fe16[_0xac748a(0xd0)]||(_0x57fe16['response']?_0x57fe16['response'][_0xac748a(0x11e)]+':'+_0x57fe16[_0xac748a(0x9c)][_0xac748a(0xcb)]:_0x57fe16),_0x532265;}}static async[a129_0x366540(0x130)](_0x5a2d47,_0x46a203=0x0){const _0xb418d8=a129_0x366540,_0x43cc58={'EBkJZ':function(_0x55f5d8,_0x20f638){return _0x55f5d8+_0x20f638;},'MdswA':function(_0x236106,_0x581f2b){return _0x236106(_0x581f2b);},'LywPL':_0xb418d8(0xe6),'kjjoI':_0xb418d8(0xb9),'elhNK':_0xb418d8(0xcc),'zoYWf':function(_0x43037f,_0x59fdc4,_0x281e66){return _0x43037f(_0x59fdc4,_0x281e66);},'CHVBX':_0xb418d8(0x130),'wtcIj':function(_0x55b14e,_0xf8330d){return _0x55b14e===_0xf8330d;},'wzspF':function(_0x2d9b3c,_0x21f989){return _0x2d9b3c!==_0x21f989;},'okfaB':_0xb418d8(0xf5),'sYFmD':function(_0x1e78b6,_0x217f44){return _0x1e78b6===_0x217f44;},'cuvYP':_0xb418d8(0x9f),'kKKXv':function(_0x59c3cd){return _0x59c3cd();},'VbDwN':function(_0xb1b098,_0x236dec){return _0xb1b098===_0x236dec;},'pzvps':function(_0x17d449,_0x245daf){return _0x17d449(_0x245daf);},'nRPqt':function(_0x1e552e,_0x1d38d4){return _0x1e552e-_0x1d38d4;},'VMxBz':_0xb418d8(0xb3),'rIzwM':_0xb418d8(0x119),'KZEaT':function(_0x54d3a7,_0x20c51c){return _0x54d3a7>=_0x20c51c;},'IXIYG':function(_0x4fd0b0,_0x253c74){return _0x4fd0b0(_0x253c74);},'pePCL':function(_0x599dec,_0x3de346){return _0x599dec-_0x3de346;},'myBTd':'Retry\x20runs\x20exceeded','gYbub':function(_0x1490df,_0x1e2bbd){return _0x1490df!==_0x1e2bbd;},'JfoJH':_0xb418d8(0xba),'oKRGc':function(_0x2eaedb,_0xca3983,_0x59bd14){return _0x2eaedb(_0xca3983,_0x59bd14);}},_0x1ef81d=this[_0xb418d8(0x12b)](_0x5a2d47);_0x43cc58[_0xb418d8(0xb4)](trace,_0xb418d8(0xe8)+_0x5a2d47[_0xb418d8(0xae)]+'\x27\x20'+(bsSetupHelper[_0xb418d8(0xde)](_0x5a2d47,[_0x43cc58[_0xb418d8(0x134)],_0x43cc58[_0xb418d8(0x13e)]])||bsSetupHelper['nestedKeyValue'](_0x5a2d47,[_0x43cc58[_0xb418d8(0xfc)],_0x43cc58[_0xb418d8(0x13e)]])));if(!_0x43cc58[_0xb418d8(0x138)](shouldProcessEventForTesthub,_0x5a2d47[_0xb418d8(0xae)],_0x43cc58[_0xb418d8(0x8e)]))return;_0x43cc58[_0xb418d8(0xa6)](_0x46a203,0x0)&&process[_0xb418d8(0x95)][_0xb418d8(0xc1)]&&_0x43cc58['wzspF'](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x43cc58[_0xb418d8(0x96)])&&(this[_0xb418d8(0x127)][_0xb418d8(0xf1)]+=0x1);if(_0x43cc58[_0xb418d8(0xea)](process[_0xb418d8(0x95)]['BS_TESTOPS_BUILD_COMPLETED'],_0x43cc58[_0xb418d8(0x12d)])||process[_0xb418d8(0x95)][_0xb418d8(0xe2)]||_0x43cc58['kKKXv'](isPercyBuild)){if(_0x43cc58[_0xb418d8(0xcf)](process[_0xb418d8(0x95)]['BROWSERSTACK_TESTHUB_JWT'],_0x43cc58[_0xb418d8(0x96)])){_0x43cc58[_0xb418d8(0x118)](debug,_0xb418d8(0xc2)+_0x1ef81d+_0xb418d8(0x87)+constants[_0xb418d8(0xda)]+'\x20:\x20missing\x20authentication\x20token'),this[_0xb418d8(0x127)][_0xb418d8(0xf1)]=Math[_0xb418d8(0x98)](0x0,_0x43cc58[_0xb418d8(0xbd)](this[_0xb418d8(0x127)][_0xb418d8(0xf1)],0x1));const _0x166eca={};return _0x166eca[_0xb418d8(0x11e)]=_0x43cc58[_0xb418d8(0x10e)],_0x166eca[_0xb418d8(0xd0)]=_0x43cc58[_0xb418d8(0xfd)],_0x166eca;}return await this[_0xb418d8(0x94)](_0x5a2d47,_0x46a203);}else{if(_0x43cc58[_0xb418d8(0xef)](_0x46a203,0x5)){_0x43cc58[_0xb418d8(0xf3)](debug,_0xb418d8(0xc2)+_0x1ef81d+_0xb418d8(0x87)+constants[_0xb418d8(0xda)]+_0xb418d8(0xce)+_0x1ef81d+_0xb418d8(0x10f));_0x43cc58[_0xb418d8(0x126)](process[_0xb418d8(0x95)][_0xb418d8(0xc1)],_0x43cc58[_0xb418d8(0x96)])&&(this[_0xb418d8(0x127)]['pendingUploads']=Math['max'](0x0,_0x43cc58[_0xb418d8(0xcd)](this[_0xb418d8(0x127)]['pendingUploads'],0x1)));const _0x3bfada={};return _0x3bfada['status']=_0x43cc58[_0xb418d8(0x10e)],_0x3bfada['message']=_0x43cc58[_0xb418d8(0x103)],_0x3bfada;}else _0x43cc58['gYbub'](process[_0xb418d8(0x95)][_0xb418d8(0x125)],_0x43cc58['JfoJH'])&&_0x43cc58[_0xb418d8(0xe9)](setTimeout,()=>{const _0x245c33=_0xb418d8;this[_0x245c33(0x130)](_0x5a2d47,_0x43cc58['EBkJZ'](_0x46a203,0x1));},0x3e8);}}}module[a129_0x366540(0x122)]=SessionHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a130_0x192a6c=a130_0x3203;(function(_0x2b5537,_0x4d7d0e){const _0x305db9=a130_0x3203,_0x1e725d=_0x2b5537();while(!![]){try{const _0x119b0b=parseInt(_0x305db9(0x1c9))/0x1+-parseInt(_0x305db9(0x168))/0x2+-parseInt(_0x305db9(0x19f))/0x3+-parseInt(_0x305db9(0x156))/0x4*(parseInt(_0x305db9(0x108))/0x5)+-parseInt(_0x305db9(0x180))/0x6+parseInt(_0x305db9(0xfa))/0x7*(-parseInt(_0x305db9(0x158))/0x8)+parseInt(_0x305db9(0x123))/0x9;if(_0x119b0b===_0x4d7d0e)break;else _0x1e725d['push'](_0x1e725d['shift']());}catch(_0x220644){_0x1e725d['push'](_0x1e725d['shift']());}}}(a130_0x4970,0x8c00a));const fs=require('fs'),path=require('path'),gitLastCommit=require(a130_0x192a6c(0x14e)),getRepoInfo=require(a130_0x192a6c(0xfe)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a130_0x192a6c(0xf3)),http=require(a130_0x192a6c(0x153)),https=require(a130_0x192a6c(0x172)),child_process=require(a130_0x192a6c(0x141)),getos=require(a130_0x192a6c(0x1ea)),os=require('os'),logger=require(a130_0x192a6c(0x12c))['winstonLogger'],buildLogger=require('../logger')[a130_0x192a6c(0x157)],bsSetupHelper=require('../helper'),requestSpy=require(a130_0x192a6c(0x1a0)),constants=require('../../bin/utils/constants'),logPatcher=require('../../bin/utils/logPatcher'),util=require('util'),{fileLogger}=require(a130_0x192a6c(0x12c)),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a130_0x192a6c(0x1ec)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require('../performance/constants'),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a130_0x192a6c(0x188));exports[a130_0x192a6c(0x1ae)]=_0x3c8f15=>{const _0x2baf97=a130_0x192a6c;fileLogger[_0x2baf97(0x1e3)]('['+new Date()[_0x2baf97(0xe0)]()+_0x2baf97(0xf7)+constants[_0x2baf97(0x1bc)]+'\x20]\x20'+_0x3c8f15);},exports['debug']=_0x1a15fd=>{const _0x32bc79=a130_0x192a6c,_0x4714a6={};_0x4714a6[_0x32bc79(0x143)]=function(_0x37291e,_0xa5e3e7){return _0x37291e===_0xa5e3e7;},_0x4714a6['yKZez']=_0x32bc79(0xdb);const _0x8d55dc=_0x4714a6;fileLogger[_0x32bc79(0x159)]('['+new Date()[_0x32bc79(0xe0)]()+'][\x20'+constants[_0x32bc79(0x1bc)]+_0x32bc79(0xea)+_0x1a15fd),(_0x8d55dc[_0x32bc79(0x143)](process[_0x32bc79(0x162)]['BROWSERSTACK_TEST_REPORTING_DEBUG'],_0x8d55dc['yKZez'])||_0x8d55dc[_0x32bc79(0x143)](process[_0x32bc79(0x162)]['BROWSERSTACK_TEST_REPORTING_DEBUG'],'1')||_0x8d55dc[_0x32bc79(0x143)](process[_0x32bc79(0x162)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x8d55dc['yKZez'])||_0x8d55dc['CEGAg'](process['env'][_0x32bc79(0x128)],'1'))&&consoleHolder[_0x32bc79(0x131)]('\x0a['+new Date()['toISOString']()+'][\x20'+constants[_0x32bc79(0x1bc)]+_0x32bc79(0xea)+_0x1a15fd+'\x0a');};const a130_0x3d1c4f={};a130_0x3d1c4f['keepAlive']=!![],a130_0x3d1c4f[a130_0x192a6c(0x1df)]=0xea60,a130_0x3d1c4f[a130_0x192a6c(0x17e)]=0x2,a130_0x3d1c4f['maxTotalSockets']=0x2;const httpKeepAliveAgent=new http[(a130_0x192a6c(0x137))](a130_0x3d1c4f),a130_0x214adb={};a130_0x214adb[a130_0x192a6c(0x11f)]=!![],a130_0x214adb[a130_0x192a6c(0x1df)]=0xea60,a130_0x214adb[a130_0x192a6c(0x17e)]=0x2,a130_0x214adb[a130_0x192a6c(0x17d)]=0x2;const httpsKeepAliveAgent=new https[(a130_0x192a6c(0x137))](a130_0x214adb),a130_0x4f56e6={};a130_0x4f56e6[a130_0x192a6c(0x11f)]=!![],a130_0x4f56e6[a130_0x192a6c(0x1df)]=0xea60,a130_0x4f56e6[a130_0x192a6c(0x17e)]=0x2,a130_0x4f56e6[a130_0x192a6c(0x17d)]=0x2;function a130_0x3203(_0x5640fd,_0x12446e){const _0x49709e=a130_0x4970();return a130_0x3203=function(_0x32037d,_0x5c32d3){_0x32037d=_0x32037d-0xda;let _0x5417a3=_0x49709e[_0x32037d];return _0x5417a3;},a130_0x3203(_0x5640fd,_0x12446e);}const httpScreenshotsKeepAliveAgent=new http[(a130_0x192a6c(0x137))](a130_0x4f56e6),a130_0x547c15={};a130_0x547c15[a130_0x192a6c(0x11f)]=!![],a130_0x547c15[a130_0x192a6c(0x1df)]=0xea60,a130_0x547c15[a130_0x192a6c(0x17e)]=0x2,a130_0x547c15[a130_0x192a6c(0x17d)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a130_0x192a6c(0x137))](a130_0x547c15);function a130_0x4970(){const _0x289404=['true','@playwright/test','\x20:\x20','sbtUu','platformVersion','toISOString','LRiXs','Bearer\x20','FQkUS','bs:addLog:','bs:addPlatformDetails:','ONkXT','ktqKG','extractValuesWithRegexKeyMatch','test','\x20]\x20','BROWSERSTACK_TEST_OBSERVABILITY_YML','HOQhz','browserstack','jest','mocha','UnhandledError','OS\x20X','kozAf','./constants','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','fileName','json','][\x20','IOlHX','sleep','105Helmmb','OVqbo','3|1|0|4|5|2','gaZMk','git-repo-info','patchConsoleLogger','dhUgw','BROWSERSTACK_TEST_OBSERVABILITY','url','local_grid','uQHcc','map_','nodeRequest','IknPt','25SJXHYY','map','getUserCredentials','LsQRN','null','modifyReqForTraceUpload','rqyDX','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','TEST_PLATFORM','capabilities','nBUfF','KgyiK','agent','backtrace','data','addRequestSpy','CUCUMBER','fjgGW','^CUSTOM_TAG_\x5cd+$','GRBfm','BROWSERSTACK_TESTHUB_JWT','getPlatformDetails','CUSTOM_TAG','keepAlive','HqWZM','rpQLJ','CODECEPT_CUCUMBER','28508661iRmLaL','ziVOz','QjmfZ','TEST_OBSERVABILITY_BUILD_TAG','TEST_REPORTING_BUILD_TAG','BROWSERSTACK_OBSERVABILITY_DEBUG','vjDLJ','Visit\x20','JMoJb','../logger','release','trim','Fmbpv','test_run_uuid','log','getAccessKey','split','QjBdH','printBuildLink','Error\x20in\x20getting\x20Linux\x20Details','Agent','UTxnH','X-BSTACK-TESTOPS','qxren','linux','hnlNd','[%s][\x20','IcgFF','platformName','windows-release','child_process','pid','CEGAg','catch','xvueK','qrwqF','parse','mFpZX','LogCreated','SxIss','isUndefined','undefined','wKONU','git-last-commit','darwin','spy','Authorization','keys','http','shouldReRunObservabilityTests','asyncAwaitNodeReq','352804IwFVin','buildLogger','563784bYsoWd','debug','then','Agpdi','toString','dmNCS','object','headers','Unknown','hostname','env','Uploading\x20trace\x20logs\x20to:\x20','info','aeTHf','isInternalHook','automate','1783506sedmSa','mkukI','app-automate','replace','zftcQ','PathHelper','VYDEe','PRINT_BUILDLINK','O11Y_URL','IOnSp','https','jHZUs','EUPmV','measureWrapper','getCustomTags','HpUfw','buildTag','isArray','Test\x20timeout\x20of','Linux','includes','maxTotalSockets','maxSockets','PLAYWRIGHT','5949228XaaRAK','TEST_ATTACHMENT','NvFPg','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','removeAnsiColors','KYZLA','sendPlatformDetails','getCapabilities','../../../src/bin/utils/constants','nLrWC','lHmMs','getUserName','getBrowserStackConfig','DYkNx','annotate','ATS_HUB_URL_REGEX','relativeTestFilePath','NFoyZ','logs','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','application/json','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','expanded','rQnHl','match','boxUh','JHOWm','error','O11yHashedID','push','forEach','642099aCFFFJ','../../helpers/request-spy','HUB_URL_REGEX','getObservabilityLinkedProductName','AssertionError','BROWSERSTACK_TEST_REPORTING','default','join','Content-Type','BS_TESTOPS_BUILD_HASHED_ID','GTwhY','wOywq','codeceptjs','ZDKFM','host','trace','relative','SeqRu','mzFbV','Nvwyc','prefixTestPath','getPackageVersion','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','HTTP','WpcuV','body','vGLwE','app','zwQFW','TEST_REPORTING_ANALYTICS','getPlatform','hSwTq','length','prefix','win32','zoYPa','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','getBrowserVersion','Windows','BROWSERSTACK_CONFIG_FILE_PATH','startsWith','getDefaultHeaders','1001245tiwpsa','getFailureType','readConfig','__cloud_provider___','turboscale','BROWSERSTACK_RERUN_TESTS','platform','emit','MyNne','message','now','ObservabilitySync:','NdSlm','awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27','\x20]\x20Build\x20Not\x20Found\x20%s','ZkEoz','unknown_grid','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','eLYav','sejyt','\x20test\x20instance\x20:\x20','EIDqd','timeout','dist','bAyvS','failureData','silly','/builds/','JEST','HnAio','MUkEk','format','PnRuh','getos','config','lodash','tTVWC','hcQSk'];a130_0x4970=function(){return _0x289404;};return a130_0x4970();}exports[a130_0x192a6c(0x154)]=()=>{const _0x21ac5d=a130_0x192a6c,_0x2ad073={};_0x2ad073[_0x21ac5d(0x173)]=function(_0x81a3e6,_0x1c014){return _0x81a3e6!==_0x1c014;},_0x2ad073[_0x21ac5d(0x177)]=_0x21ac5d(0x10c);const _0x8688ae=_0x2ad073;return process[_0x21ac5d(0x162)][_0x21ac5d(0x1ce)]&&_0x8688ae[_0x21ac5d(0x173)](process[_0x21ac5d(0x162)][_0x21ac5d(0x1ce)],_0x8688ae[_0x21ac5d(0x177)])?!![]:![];},exports['isTestObservabilitySession']=()=>{const _0xcb2ad8=a130_0x192a6c,_0x27fed3={};_0x27fed3[_0xcb2ad8(0x146)]=function(_0x423850,_0x3082b1){return _0x423850===_0x3082b1;},_0x27fed3[_0xcb2ad8(0x165)]='true';const _0x1cc1e1=_0x27fed3;let _0x521b84=!![];return process[_0xcb2ad8(0x162)][_0xcb2ad8(0xeb)]&&(_0x521b84=_0x1cc1e1[_0xcb2ad8(0x146)](process[_0xcb2ad8(0x162)][_0xcb2ad8(0xeb)],_0x1cc1e1[_0xcb2ad8(0x165)])),process['env'][_0xcb2ad8(0x101)]&&(_0x521b84=_0x1cc1e1[_0xcb2ad8(0x146)](process[_0xcb2ad8(0x162)][_0xcb2ad8(0x101)],_0x1cc1e1[_0xcb2ad8(0x165)])),process[_0xcb2ad8(0x162)][_0xcb2ad8(0x1a4)]&&(_0x521b84=_0x1cc1e1['qrwqF'](process[_0xcb2ad8(0x162)][_0xcb2ad8(0x1a4)],_0x1cc1e1['aeTHf'])),_0x521b84;},exports['parseFileNames']=_0x469bfd=>{const _0x18f472=a130_0x192a6c;if(bsSetupHelper[_0x18f472(0x14b)](_0x469bfd))return undefined;try{return _0x469bfd[_0x18f472(0x12e)]()[_0x18f472(0x133)](',');}catch(_0x3f47f4){return undefined;}},exports[a130_0x192a6c(0x135)]=()=>{const _0x33cf55=a130_0x192a6c,_0x4fe997={'IOlHX':function(_0x265d5e,_0x462d00){return _0x265d5e(_0x462d00);},'hJlQc':'../../bin/v2/browserstackCLI','XxdhD':function(_0x22812f,_0x39592c){return _0x22812f!==_0x39592c;},'JHOWm':_0x33cf55(0x10c),'NFoyZ':function(_0x4c1fba,_0x5beeac){return _0x4c1fba!==_0x5beeac;},'lXIBW':_0x33cf55(0x14c)};return PerformanceTester[_0x33cf55(0x175)](PerformanceO11yEvents[_0x33cf55(0x16f)],async()=>{const _0x29992b=_0x33cf55;try{const _0x5e6da4=_0x4fe997[_0x29992b(0xf8)](require,_0x4fe997['hJlQc']);if(_0x5e6da4[_0x29992b(0x19c)]){const _0x374c6c=_0x29992b(0x12a)+O11Y_URL+_0x29992b(0x1e4)+_0x5e6da4[_0x29992b(0x19c)]+_0x29992b(0x10f);buildLogger[_0x29992b(0x164)](_0x374c6c);return;}if(process[_0x29992b(0x162)][_0x29992b(0x1a8)]&&_0x4fe997['XxdhD'](process[_0x29992b(0x162)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x4fe997[_0x29992b(0x19a)])&&_0x4fe997[_0x29992b(0x191)](process['env'][_0x29992b(0x1a8)],_0x4fe997['lXIBW'])){const _0x1396f0='Visit\x20'+constants[_0x29992b(0x170)]+_0x29992b(0x1e4)+process[_0x29992b(0x162)][_0x29992b(0x1a8)]+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a';buildLogger[_0x29992b(0x164)](_0x1396f0);}}catch(_0x4b672c){logger[_0x29992b(0x19b)](util[_0x29992b(0x1e8)](_0x29992b(0x13d)+constants['TEST_REPORTING_ANALYTICS']+_0x29992b(0x1d7),new Date()[_0x29992b(0xe0)](),_0x4b672c['stack']||_0x4b672c[_0x29992b(0x1d2)]||_0x4b672c));}})();},exports[a130_0x192a6c(0x1ca)]=_0x461f0f=>{const _0x3ae770=a130_0x192a6c,_0x26e684={};_0x26e684[_0x3ae770(0xda)]=_0x3ae770(0x1a3),_0x26e684[_0x3ae770(0x148)]=_0x3ae770(0x17a),_0x26e684[_0x3ae770(0x100)]='TimeoutError',_0x26e684[_0x3ae770(0x11b)]=_0x3ae770(0xf0);const _0x35882b=_0x26e684;if(!_0x461f0f)return null;const _0x46e6ad=_0x461f0f['toString']();if(_0x46e6ad[_0x3ae770(0x198)](/AssertionError/))return _0x35882b[_0x3ae770(0xda)];if(_0x46e6ad['match'](/TimeoutError/)||_0x46e6ad[_0x3ae770(0x1c7)](_0x35882b[_0x3ae770(0x148)])||_0x46e6ad[_0x3ae770(0x198)](/Timeout.*exceeded/i))return _0x35882b[_0x3ae770(0x100)];return _0x35882b[_0x3ae770(0x11b)];},exports['getFrameworkVersion']=_0x48ffa0=>{const _0x12c92b=a130_0x192a6c,_0xed89d2={};_0xed89d2['rqyDX']=_0x12c92b(0xef),_0xed89d2[_0x12c92b(0x107)]=_0x12c92b(0xdc),_0xed89d2[_0x12c92b(0x182)]=_0x12c92b(0x1ab),_0xed89d2['BHCli']=_0x12c92b(0xee),_0xed89d2[_0x12c92b(0x113)]='@cucumber/cucumber';const _0x111b5e=_0xed89d2;let _0x3933c0=null;switch(_0x48ffa0){case FRAMEWORKS['MOCHA']:_0x3933c0=bsSetupHelper[_0x12c92b(0x1b4)](_0x111b5e[_0x12c92b(0x10e)]);break;case FRAMEWORKS[_0x12c92b(0x17f)]:_0x3933c0=bsSetupHelper[_0x12c92b(0x1b4)](_0x111b5e[_0x12c92b(0x107)]);break;case FRAMEWORKS['CODECEPT']:case FRAMEWORKS[_0x12c92b(0x122)]:_0x3933c0=bsSetupHelper[_0x12c92b(0x1b4)](_0x111b5e[_0x12c92b(0x182)]);break;case FRAMEWORKS[_0x12c92b(0x1e5)]:_0x3933c0=bsSetupHelper['getPackageVersion'](_0x111b5e['BHCli']);break;case FRAMEWORKS[_0x12c92b(0x118)]:_0x3933c0=bsSetupHelper[_0x12c92b(0x1b4)](_0x111b5e['KgyiK']);break;default:break;}return _0x3933c0;},exports[a130_0x192a6c(0x18c)]=_0x2e7e55=>{const _0x548de3=a130_0x192a6c;let _0x4198ad=null;switch(_0x2e7e55){case FRAMEWORKS['PLAYWRIGHT']:_0x4198ad=process['env'][_0x548de3(0x1c6)];break;}if(!_0x4198ad)return;return bsSetupHelper[_0x548de3(0x1cb)](_0x4198ad,![]);},exports[a130_0x192a6c(0x10a)]=_0x36df71=>{const _0x5a731b=a130_0x192a6c;return{'username':bsSetupHelper[_0x5a731b(0x18b)](_0x36df71),'accessKey':bsSetupHelper[_0x5a731b(0x132)](_0x36df71)};},exports['modifyReqForTraceUpload']=(_0x4f2917,_0x221b58)=>{const _0x5c1012=a130_0x192a6c,_0x3b49f2={};_0x3b49f2[_0x5c1012(0x1d5)]=_0x5c1012(0xfc),_0x3b49f2['Fmbpv']=_0x5c1012(0x149),_0x3b49f2[_0x5c1012(0x1e6)]=_0x5c1012(0x181);const _0x323956=_0x3b49f2,_0x3a4ba3=_0x323956[_0x5c1012(0x1d5)][_0x5c1012(0x133)]('|');let _0x32e954=0x0;while(!![]){switch(_0x3a4ba3[_0x32e954++]){case'0':_0x4f2917['formData']={'data':_0x4f2917[_0x5c1012(0x1b8)][0x0][_0x5c1012(0x192)][0x0]['data'],'test_run_uuid':_0x4f2917[_0x5c1012(0x1b8)][0x0]['logs'][0x0][_0x5c1012(0x130)],'event_type':_0x323956[_0x5c1012(0x12f)],'kind':_0x323956[_0x5c1012(0x1e6)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x5c1012(0xe0)](),'fileName':_0x4f2917[_0x5c1012(0x1b8)][0x0][_0x5c1012(0x192)][0x0][_0x5c1012(0xf5)]};continue;case'1':if(!_0x4f2917[_0x5c1012(0x1b8)][0x0]||!_0x4f2917[_0x5c1012(0x1b8)][0x0][_0x5c1012(0x192)]||!_0x4f2917['body'][0x0][_0x5c1012(0x192)][_0x5c1012(0x1bf)])return;continue;case'2':delete _0x221b58[_0x5c1012(0x15f)];continue;case'3':if(!_0x4f2917[_0x5c1012(0x1b8)]||!Array[_0x5c1012(0x179)](_0x4f2917[_0x5c1012(0x1b8)]))return;continue;case'4':delete _0x4f2917[_0x5c1012(0x1b8)];continue;case'5':delete _0x4f2917[_0x5c1012(0xf6)];continue;}break;}},exports[a130_0x192a6c(0x155)]=async(_0x50a84f,_0x5a223e,_0x3783b8,_0x4c200d,_0x3f81b4=!![])=>{const _0x185edc=a130_0x192a6c,_0x5af0dc={};_0x5af0dc[_0x185edc(0x1b1)]=function(_0x1a8322,_0x487fcd){return _0x1a8322===_0x487fcd;},_0x5af0dc[_0x185edc(0x120)]=_0x185edc(0x1a7),_0x5af0dc['SSmTo']=_0x185edc(0x194),_0x5af0dc[_0x185edc(0x1ed)]=_0x185edc(0x172),_0x5af0dc['PmJpi']=function(_0x24edf9,_0xfba95b){return _0x24edf9===_0xfba95b;},_0x5af0dc[_0x185edc(0x134)]=function(_0xb39799,_0x584ff4){return _0xb39799!==_0x584ff4;},_0x5af0dc['VotQu']=_0x185edc(0x15e),_0x5af0dc[_0x185edc(0x18d)]=_0x185edc(0x195);const _0x41ac1a=_0x5af0dc,_0x3809d6={..._0x4c200d,...{'method':_0x50a84f,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x5a223e,'body':_0x3783b8,'json':_0x41ac1a[_0x185edc(0x1b1)](_0x4c200d[_0x185edc(0x15f)][_0x41ac1a['HqWZM']],_0x41ac1a['SSmTo']),'agent':API_URL[_0x185edc(0x17c)](_0x41ac1a['tTVWC'])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x41ac1a['PmJpi'](_0x5a223e,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x3809d6[_0x185edc(0x114)]=API_URL[_0x185edc(0x17c)](_0x41ac1a['tTVWC'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x185edc(0x10d)](_0x3809d6,_0x4c200d),logger[_0x185edc(0x159)](_0x185edc(0x163)+_0x3809d6[_0x185edc(0x102)]));try{const {statusCode:_0x1539a2,body:_0x4d76b8}=await bsSetupHelper[_0x185edc(0x106)](_0x50a84f,_0x5a223e,_0x3809d6,_0x4c200d,_0x3809d6[_0x185edc(0x102)]);if(_0x41ac1a['QjBdH'](_0x1539a2,0xc8))return _0x4d76b8?_0x4d76b8:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x1539a2;let _0xbdc116=_0x4d76b8;if(_0x3f81b4)try{_0x41ac1a['QjBdH'](typeof _0x4d76b8,_0x41ac1a['VotQu'])&&(_0xbdc116=JSON['parse'](_0x4d76b8));}catch(_0x209084){logger[_0x185edc(0x19b)](_0x41ac1a[_0x185edc(0x18d)],_0x4d76b8,util[_0x185edc(0x1e8)](_0x209084));}const _0x30184c={};return _0x30184c[_0x185edc(0x116)]=_0xbdc116,_0x30184c;}catch(_0x1779dd){logger[_0x185edc(0x19b)](_0x185edc(0x193)+util[_0x185edc(0x1e8)](_0x1779dd));throw _0x1779dd;}},exports[a130_0x192a6c(0x106)]=(_0x15cae7,_0x56dfe7,_0x425527,_0x4f2e4c,_0x1d4843=!![])=>{const _0x288492=a130_0x192a6c,_0x30a80d={'Tnxuh':function(_0x39ba98,_0x35ddaa){return _0x39ba98!==_0x35ddaa;},'dmNCS':function(_0xc72270,_0x306436){return _0xc72270(_0x306436);},'UTxnH':function(_0x1cd8fc,_0x4482ed){return _0x1cd8fc!==_0x4482ed;},'Agpdi':_0x288492(0x15e),'lHmMs':function(_0x54de85,_0x53cbbe){return _0x54de85(_0x53cbbe);},'FQkUS':_0x288492(0x1da),'ZkEoz':function(_0x37832f,_0x421e5b){return _0x37832f(_0x421e5b);},'wKONU':function(_0x28e177,_0x124862){return _0x28e177===_0x124862;},'mkukI':_0x288492(0x1a7),'ziVOz':_0x288492(0x194),'ZDKFM':_0x288492(0x172),'PnRuh':function(_0x219b9d,_0x5ba0c0){return _0x219b9d===_0x5ba0c0;}};return new Promise((_0x1a703a,_0xe24737)=>{const _0x357c4a=_0x288492,_0x21947b={..._0x4f2e4c,...{'method':_0x15cae7,'url':API_URL+'/'+_0x56dfe7,'body':_0x425527,'json':_0x30a80d[_0x357c4a(0x14d)](_0x4f2e4c[_0x357c4a(0x15f)][_0x30a80d[_0x357c4a(0x169)]],_0x30a80d[_0x357c4a(0x124)]),'agent':API_URL[_0x357c4a(0x17c)](_0x30a80d[_0x357c4a(0x1ac)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x30a80d[_0x357c4a(0x1e9)](_0x56dfe7,SCREENSHOT_ENDPOINT)&&(_0x21947b[_0x357c4a(0x114)]=API_URL[_0x357c4a(0x17c)](_0x30a80d[_0x357c4a(0x1ac)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x357c4a(0x106)](_0x15cae7,_0x56dfe7,_0x21947b,_0x4f2e4c,API_URL)[_0x357c4a(0x15a)](({statusCode:_0x441c06,body:_0x41c9c4})=>{const _0x465c40=_0x357c4a;if(_0x30a80d['Tnxuh'](_0x441c06,0xc8))_0x30a80d[_0x465c40(0x15d)](_0xe24737,_0x41c9c4?_0x41c9c4:_0x465c40(0xf4)+_0x441c06);else{if(_0x1d4843)try{_0x30a80d[_0x465c40(0x138)](typeof _0x41c9c4,_0x30a80d[_0x465c40(0x15b)])&&(_0x41c9c4=JSON[_0x465c40(0x147)](_0x41c9c4));}catch(_0x40db18){_0x30a80d[_0x465c40(0x18a)](_0xe24737,_0x30a80d[_0x465c40(0xe3)]);return;}const _0x48e6bd={};_0x48e6bd[_0x465c40(0x116)]=_0x41c9c4,_0x30a80d[_0x465c40(0x1d8)](_0x1a703a,_0x48e6bd);}})[_0x357c4a(0x144)](_0x14d45e=>{_0x14d45e&&_0x30a80d['ZkEoz'](_0xe24737,_0x14d45e);});});},exports['getBuildTags']=_0x55d8ca=>{const _0x3631f7=a130_0x192a6c;if(process[_0x3631f7(0x162)][_0x3631f7(0x127)])return process['env'][_0x3631f7(0x127)][_0x3631f7(0x133)](',');if(process[_0x3631f7(0x162)][_0x3631f7(0x126)])return process[_0x3631f7(0x162)]['TEST_OBSERVABILITY_BUILD_TAG'][_0x3631f7(0x133)](',');if(_0x55d8ca['buildTag'])return _0x55d8ca[_0x3631f7(0x178)];return[];},exports[a130_0x192a6c(0x1c8)]=(_0x794d9e=!![])=>{const _0xf3f8ea=a130_0x192a6c,_0x1c8735={};_0x1c8735[_0xf3f8ea(0x13e)]=_0xf3f8ea(0x194),_0x1c8735[_0xf3f8ea(0x112)]=_0xf3f8ea(0xdb),_0x1c8735[_0xf3f8ea(0x125)]=_0xf3f8ea(0x151);const _0x12320b=_0x1c8735,_0x34f501={};_0x34f501[_0xf3f8ea(0x1a7)]=_0x12320b[_0xf3f8ea(0x13e)],_0x34f501[_0xf3f8ea(0x139)]=_0x12320b['nBUfF'];const _0x3d144f=_0x34f501;return _0x794d9e&&process[_0xf3f8ea(0x162)][_0xf3f8ea(0x11c)]&&(_0x3d144f[_0x12320b[_0xf3f8ea(0x125)]]=_0xf3f8ea(0xe2)+process[_0xf3f8ea(0x162)][_0xf3f8ea(0x11c)]),_0x3d144f;},exports[a130_0x192a6c(0xe8)]=_0xebf7fa=>{const _0x3ca807=a130_0x192a6c,_0x3f69d2={};_0x3f69d2[_0x3ca807(0x189)]=_0x3ca807(0x11a);const _0x21c6cf=_0x3f69d2,_0x1f1a68=[],_0x5848cc=new RegExp(_0x21c6cf[_0x3ca807(0x189)],'i');return Object[_0x3ca807(0x152)](_0xebf7fa)['filter'](_0x45be0a=>_0x5848cc[_0x3ca807(0xe9)](_0x45be0a))[_0x3ca807(0x19e)](_0x155016=>_0x1f1a68[_0x3ca807(0x19d)](_0xebf7fa[_0x155016])),_0x1f1a68;},exports[a130_0x192a6c(0x176)]=_0x1c2cc7=>{const _0x5e2a21=a130_0x192a6c,_0x309405=[],_0x416b2a=_0x1c2cc7['customTag']||process[_0x5e2a21(0x162)][_0x5e2a21(0x11e)];return _0x416b2a&&_0x309405[_0x5e2a21(0x19d)](_0x416b2a),_0x309405['push'](...exports['extractValuesWithRegexKeyMatch'](process['env'])),_0x309405['push'](...exports[_0x5e2a21(0xe8)](_0x1c2cc7)),_0x309405;},exports[a130_0x192a6c(0x184)]=_0xd5549d=>{const _0x172187=a130_0x192a6c;if(!_0xd5549d)return'';return _0xd5549d[_0x172187(0x16b)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a130_0x192a6c(0xf9)]=(_0x4d47d1=0x64)=>new Promise(_0xf1d0fe=>setTimeout(_0xf1d0fe,_0x4d47d1));const getPlatformName=()=>{const _0x195402=a130_0x192a6c,_0x93af37={};_0x93af37['zoYPa']=function(_0x35f190,_0x49f9c8){return _0x35f190===_0x49f9c8;},_0x93af37['rpQLJ']=_0x195402(0x1c1),_0x93af37[_0x195402(0xec)]=_0x195402(0x1c5),_0x93af37[_0x195402(0xe7)]=_0x195402(0x14f),_0x93af37[_0x195402(0x16c)]=_0x195402(0xf1),_0x93af37['GTwhY']=_0x195402(0x13b),_0x93af37[_0x195402(0x14a)]=_0x195402(0x17b),_0x93af37[_0x195402(0xf2)]=_0x195402(0x160);const _0x3d35f0=_0x93af37;if(_0x3d35f0[_0x195402(0x1c2)](process[_0x195402(0x1cf)],_0x3d35f0[_0x195402(0x121)]))return _0x3d35f0[_0x195402(0xec)];if(_0x3d35f0[_0x195402(0x1c2)](process[_0x195402(0x1cf)],_0x3d35f0['ktqKG']))return _0x3d35f0[_0x195402(0x16c)];if(_0x3d35f0[_0x195402(0x1c2)](process[_0x195402(0x1cf)],_0x3d35f0[_0x195402(0x1a9)]))return _0x3d35f0[_0x195402(0x14a)];return _0x3d35f0['kozAf'];},getMacOSVersion=()=>{const _0x508586=a130_0x192a6c,_0x3140e3={};_0x3140e3[_0x508586(0x1e7)]=_0x508586(0x1d6);const _0xe45fe1=_0x3140e3;return child_process['execSync'](_0xe45fe1[_0x508586(0x1e7)])[_0x508586(0x15c)]()['trim']();},getLinuxDetails=()=>{const _0x227002={'fjgGW':function(_0x11d689,_0x2a5749){return _0x11d689(_0x2a5749);},'WpcuV':function(_0x300636,_0x5866d8){return _0x300636(_0x5866d8);}};return new Promise((_0x43255a,_0x5523d6)=>{const _0x131cf7=a130_0x3203,_0x105464={'YPyuu':function(_0x5ac927,_0x4facb6){const _0x46d6ce=a130_0x3203;return _0x227002[_0x46d6ce(0x119)](_0x5ac927,_0x4facb6);},'wFoLK':function(_0x558842,_0x3c8fcb){const _0x126d2d=a130_0x3203;return _0x227002[_0x126d2d(0x1b7)](_0x558842,_0x3c8fcb);}};_0x227002[_0x131cf7(0x1b7)](getos,(_0x533138,_0x35e243)=>{if(_0x533138)return _0x105464['YPyuu'](_0x5523d6,_0x533138);_0x105464['wFoLK'](_0x43255a,_0x35e243);});});};exports[a130_0x192a6c(0x11d)]=async()=>{const _0x394ab6=a130_0x192a6c,_0x1b3022={'JMoJb':function(_0x7c606e){return _0x7c606e();},'zwQFW':_0x394ab6(0xf1),'eLYav':_0x394ab6(0x1c5),'rQnHl':_0x394ab6(0x140),'gaZMk':_0x394ab6(0x17b),'SILsN':function(_0x4a3352){return _0x4a3352();},'xvueK':_0x394ab6(0x136)};let _0x247a58=_0x1b3022[_0x394ab6(0x12b)](getPlatformName),_0x57e91c=os[_0x394ab6(0x12d)]()[_0x394ab6(0x15c)]();switch(_0x247a58){case _0x1b3022[_0x394ab6(0x1bb)]:_0x57e91c=_0x1b3022[_0x394ab6(0x12b)](getMacOSVersion);break;case _0x1b3022[_0x394ab6(0x1db)]:try{const _0x218126=(await import(_0x1b3022[_0x394ab6(0x197)]))[_0x394ab6(0x1a5)];_0x57e91c=_0x1b3022[_0x394ab6(0x12b)](_0x218126);}catch(_0x3435b4){exports[_0x394ab6(0x159)]('Error\x20in\x20importing\x20windows-release\x20'+_0x3435b4[_0x394ab6(0x15c)]());}break;case _0x1b3022[_0x394ab6(0xfd)]:try{const _0x1305b9=await _0x1b3022['SILsN'](getLinuxDetails);_0x1305b9[_0x394ab6(0x1e0)]&&(_0x247a58=_0x1305b9['dist']),_0x1305b9['release']&&(_0x57e91c=_0x1305b9['release'][_0x394ab6(0x15c)]());}catch(_0x33cc53){exports['debug'](_0x1b3022[_0x394ab6(0x145)]);}break;default:break;}const _0x2afda2={};return _0x2afda2[_0x394ab6(0x13f)]=_0x247a58,_0x2afda2[_0x394ab6(0xdf)]=_0x57e91c,_0x2afda2;},exports[a130_0x192a6c(0x1e2)]=(_0xd02a70,_0x1b90d8)=>{const _0x2c2773=a130_0x192a6c,_0x29640b={};_0x29640b[_0x2c2773(0x1b0)]=function(_0x56cd72,_0x23d8d8){return _0x56cd72===_0x23d8d8;},_0x29640b['vjDLJ']=_0x2c2773(0xe9),_0x29640b[_0x2c2773(0x1de)]=function(_0x11e861,_0x1e2654){return _0x11e861===_0x1e2654;},_0x29640b[_0x2c2773(0x10b)]='err';const _0x4d3497=_0x29640b;if(!_0xd02a70)return[];try{if(_0x4d3497[_0x2c2773(0x1b0)](_0x1b90d8,_0x4d3497[_0x2c2773(0x129)]))return _0xd02a70[_0x2c2773(0x109)](_0x1be207=>{const _0x3fb0db=_0x2c2773,{stack:_0x4a36ff,..._0x53683c}=_0x1be207,_0x4d8acc=Object['keys'](_0x53683c)[_0x3fb0db(0x109)](_0x530954=>{return _0x530954+':\x20'+_0x53683c[_0x530954];}),_0x9505b5=_0x4a36ff?exports[_0x3fb0db(0x184)](_0x4a36ff)['split'](/\r?\n/):[exports[_0x3fb0db(0x184)](_0x1be207[_0x3fb0db(0x1d2)])],_0x1c40f3={};return _0x1c40f3['backtrace']=_0x9505b5,_0x1c40f3[_0x3fb0db(0x196)]=_0x4d8acc,_0x1c40f3;});else{if(_0x4d3497[_0x2c2773(0x1de)](_0x1b90d8,_0x4d3497['LsQRN'])){const _0x5c4cee=[],_0x1a5e77=[];return Object[_0x2c2773(0x152)](_0xd02a70)[_0x2c2773(0x19e)](_0x39c5f0=>{const _0x2b5a73=_0x2c2773;try{_0x1a5e77[_0x2b5a73(0x19d)](_0x39c5f0+':\x20'+_0xd02a70[_0x39c5f0]);}catch(_0x4932f5){exports['debug'](_0x2b5a73(0x1b5)+_0x4932f5[_0x2b5a73(0x1d2)]+_0x2b5a73(0xdd)+_0x4932f5[_0x2b5a73(0x115)]);}}),_0x5c4cee[_0x2c2773(0x19d)]({'backtrace':exports[_0x2c2773(0x184)](_0xd02a70['stack'])[_0x2c2773(0x133)](/\r?\n/),'expanded':_0x1a5e77}),_0x5c4cee;}}return[];}catch(_0x11bdc0){exports[_0x2c2773(0x159)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x11bdc0[_0x2c2773(0x1d2)]+_0x2c2773(0xdd)+_0x11bdc0[_0x2c2773(0x115)]);}return[];};class PathHelper{constructor(_0x3a2f3e,_0x2a94bc){const _0x38875f=a130_0x192a6c;this[_0x38875f(0x1eb)]=_0x3a2f3e,this['prefix']=_0x2a94bc;}[a130_0x192a6c(0x190)](_0x23e2d8){const _0x539922=a130_0x192a6c,_0x290003=this['config']['cwd']||this['config']['rootDir'];return path[_0x539922(0x1af)](_0x290003,_0x23e2d8);}[a130_0x192a6c(0x1b3)](_0x3355c4){const _0x46deb8=a130_0x192a6c,_0x4acdf5=this[_0x46deb8(0x190)](_0x3355c4);return this[_0x46deb8(0x1c0)]?path[_0x46deb8(0x1a6)](this['prefix'],_0x4acdf5):_0x4acdf5;}}exports[a130_0x192a6c(0x16d)]=PathHelper,exports[a130_0x192a6c(0x117)]=(_0xd98938=!![])=>{const _0x434c69=a130_0x192a6c,_0x243c41={};_0x243c41[_0x434c69(0x185)]=function(_0x3e99dc,_0x2158dd){return _0x3e99dc===_0x2158dd;},_0x243c41[_0x434c69(0xde)]=_0x434c69(0x139),_0x243c41[_0x434c69(0xfb)]=_0x434c69(0xdb),_0x243c41[_0x434c69(0xe6)]=_0x434c69(0x1b6),_0x243c41[_0x434c69(0x16e)]='browserstack',_0x243c41[_0x434c69(0x1b2)]=_0x434c69(0x103);const _0x55b28d=_0x243c41;requestSpy[_0x434c69(0x150)]((_0x5bd8fc,_0x43a64f)=>{const _0x1498bd=_0x434c69;_0x43a64f&&!(_0x43a64f[_0x1498bd(0x15f)]&&_0x55b28d[_0x1498bd(0x185)](_0x43a64f[_0x1498bd(0x15f)][_0x55b28d[_0x1498bd(0xde)]],_0x55b28d[_0x1498bd(0xfb)]))&&(_0x43a64f[_0x1498bd(0x1ad)]=_0x43a64f[_0x1498bd(0x161)],delete _0x43a64f['hostname'],_0xd98938&&process['emit'](_0x1498bd(0xe4)+process[_0x1498bd(0x142)],{'timestamp':new Date()[_0x1498bd(0xe0)](),'level':null,'message':null,'kind':_0x55b28d[_0x1498bd(0xe6)],'http_response':_0x43a64f})),_0x43a64f&&(constants[_0x1498bd(0x1a1)][_0x1498bd(0xe9)](_0x43a64f[_0x1498bd(0x1ad)])||constants[_0x1498bd(0x18f)][_0x1498bd(0xe9)](_0x43a64f['host']))?global['__cloud_provider___']=_0x55b28d['VYDEe']:global['__cloud_provider___']=_0x55b28d[_0x1498bd(0x1b2)];});},exports[a130_0x192a6c(0xff)]=()=>{const _0x1e85cf=a130_0x192a6c,_0x1afbf2={'vAvnn':function(_0x56fe4c,_0x4a1c03){return _0x56fe4c(_0x4a1c03);}};console={},Object[_0x1e85cf(0x152)](consoleHolder)[_0x1e85cf(0x19e)](_0x3b343b=>{_0x1afbf2['vAvnn'](isFunction,consoleHolder[_0x3b343b])?console[_0x3b343b]=(..._0x1d7acc)=>{const _0x4fda10=a130_0x3203;try{!Object[_0x4fda10(0x152)](BSTestOpsPatcher)[_0x4fda10(0x17c)](_0x3b343b)?consoleHolder[_0x3b343b](..._0x1d7acc):BSTestOpsPatcher[_0x3b343b](..._0x1d7acc);}catch(_0x43e650){consoleHolder[_0x3b343b](..._0x1d7acc);}}:console[_0x3b343b]=consoleHolder[_0x3b343b];});},exports['getSyncScript']=()=>'browserstack_executor:\x20'+JSON['stringify']({'action':a130_0x192a6c(0x18e),'arguments':{'data':a130_0x192a6c(0x1d4)+Date[a130_0x192a6c(0x1d3)](),'level':a130_0x192a6c(0x159)}}),exports[a130_0x192a6c(0x1a2)]=_0x3d881a=>{const _0x2f117f=a130_0x192a6c,_0x200d33={};_0x200d33[_0x2f117f(0x13c)]=function(_0x1f40af,_0x1e0688){return _0x1f40af===_0x1e0688;},_0x200d33[_0x2f117f(0x199)]=_0x2f117f(0xed),_0x200d33[_0x2f117f(0x1d1)]='appium:app',_0x200d33[_0x2f117f(0x1e1)]=_0x2f117f(0x1ba),_0x200d33['OMGqe']=function(_0x1fe315,_0x3a25cb){return _0x1fe315>_0x3a25cb;},_0x200d33[_0x2f117f(0x171)]=_0x2f117f(0x16a),_0x200d33[_0x2f117f(0x1b9)]='bstack:options',_0x200d33[_0x2f117f(0x1be)]='turboScaleGridDetails',_0x200d33[_0x2f117f(0x104)]=_0x2f117f(0x1cd),_0x200d33[_0x2f117f(0x1aa)]=_0x2f117f(0x167);const _0x250e7a=_0x200d33;let _0x4a7b3d=null;try{if(_0x250e7a['hnlNd'](global[_0x2f117f(0x1cc)],_0x250e7a[_0x2f117f(0x199)])){if(_0x3d881a[_0x250e7a['MyNne']]||_0x3d881a[_0x250e7a[_0x2f117f(0x1e1)]]||!bsSetupHelper[_0x2f117f(0x14b)](global['capabilities'])&&_0x250e7a['OMGqe'](global[_0x2f117f(0x111)][_0x2f117f(0x1bf)],0x0)&&(global['capabilities'][0x0][_0x250e7a['bAyvS']]||global[_0x2f117f(0x111)][0x0][_0x250e7a['MyNne']]))_0x4a7b3d=_0x250e7a['IOnSp'];else _0x3d881a[_0x250e7a[_0x2f117f(0x1b9)]]&&_0x3d881a[_0x250e7a[_0x2f117f(0x1b9)]][_0x250e7a[_0x2f117f(0x1be)]]?_0x4a7b3d=_0x250e7a[_0x2f117f(0x104)]:_0x4a7b3d=_0x250e7a[_0x2f117f(0x1aa)];}}catch(_0x144d91){exports['debug'](_0x2f117f(0x1c3)+constants[_0x2f117f(0x1bc)]+_0x2f117f(0x1dd)+_0x144d91);}return _0x4a7b3d;},exports[a130_0x192a6c(0x186)]=async(_0x5c180e,_0x340d07,_0xf8b4ff=![])=>{const _0x5b3f59=a130_0x192a6c,_0x12e8f2={};_0x12e8f2[_0x5b3f59(0x174)]=function(_0x1695e9,_0x466065){return _0x1695e9===_0x466065;},_0x12e8f2[_0x5b3f59(0xe1)]=_0x5b3f59(0xed),_0x12e8f2[_0x5b3f59(0x1dc)]=_0x5b3f59(0x1d9),_0x12e8f2[_0x5b3f59(0x13a)]=_0x5b3f59(0x110);const _0x354b9a=_0x12e8f2;try{const _0x595b19=await _0x5c180e[_0x5b3f59(0x187)](),_0x348c94=await _0x5c180e['getSession'](),_0x2c12a7={},_0x1b1a16=Object['fromEntries'](_0x348c94['getCapabilities']()[_0x5b3f59(0x105)]),_0x5e3a99={'product':exports['getObservabilityLinkedProductName'](_0x1b1a16),'capabilities':_0x1b1a16,'platform':_0x595b19[_0x5b3f59(0x1bd)](),'platform_version':bsSetupHelper['getPlatformVersion'](_0x354b9a[_0x5b3f59(0x174)](global['__cloud_provider___'],_0x354b9a[_0x5b3f59(0xe1)])),'browser':_0x595b19['getBrowserName'](),'browser_version':_0x595b19[_0x5b3f59(0x1c4)](),'session_id':_0x348c94['toJSON']()};global[_0x5b3f59(0x1cc)]?_0x2c12a7[global[_0x5b3f59(0x1cc)]]=_0x5e3a99:_0x2c12a7[_0x354b9a[_0x5b3f59(0x1dc)]]=_0x5e3a99;if(_0xf8b4ff)return _0x2c12a7;process[_0x5b3f59(0x1d0)](_0x5b3f59(0xe5)+process[_0x5b3f59(0x142)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x354b9a['qxren'],'http_response':_0x2c12a7,'uuid':_0x340d07});}catch(_0x4d7bf2){exports[_0x5b3f59(0x159)](_0x5b3f59(0x183)+_0x4d7bf2);}},exports[a130_0x192a6c(0x166)]=_0x162d88=>{const _0x5f161d=a130_0x192a6c;return _0x162d88&&_0x162d88[_0x5f161d(0x15c)]()[_0x5f161d(0x198)](/browserstack internal helper hook/);};
|
|
1
|
+
const a130_0xe31c51=a130_0x56eb;(function(_0x264644,_0x462a95){const _0x525577=a130_0x56eb,_0x3e0941=_0x264644();while(!![]){try{const _0x6273d=-parseInt(_0x525577(0x234))/0x1+-parseInt(_0x525577(0x185))/0x2*(parseInt(_0x525577(0x14e))/0x3)+parseInt(_0x525577(0x189))/0x4*(parseInt(_0x525577(0x24d))/0x5)+parseInt(_0x525577(0x169))/0x6+-parseInt(_0x525577(0x22b))/0x7*(-parseInt(_0x525577(0x204))/0x8)+parseInt(_0x525577(0x15f))/0x9+-parseInt(_0x525577(0x1fe))/0xa;if(_0x6273d===_0x462a95)break;else _0x3e0941['push'](_0x3e0941['shift']());}catch(_0x397655){_0x3e0941['push'](_0x3e0941['shift']());}}}(a130_0x442a,0xae73f));const fs=require('fs'),path=require(a130_0xe31c51(0x1fd)),gitLastCommit=require(a130_0xe31c51(0x255)),getRepoInfo=require(a130_0xe31c51(0x150)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a130_0xe31c51(0x16d)),http=require(a130_0xe31c51(0x1ef)),https=require(a130_0xe31c51(0x1e6)),child_process=require(a130_0xe31c51(0x141)),getos=require('getos'),os=require('os'),logger=require('../logger')[a130_0xe31c51(0x20b)],buildLogger=require(a130_0xe31c51(0x168))['buildLogger'],bsSetupHelper=require(a130_0xe31c51(0x18f)),requestSpy=require(a130_0xe31c51(0x1f7)),constants=require(a130_0xe31c51(0x137)),logPatcher=require(a130_0xe31c51(0x221)),util=require(a130_0xe31c51(0x196)),{fileLogger}=require(a130_0xe31c51(0x168)),PerformanceTester=require(a130_0xe31c51(0x193)),{isFunction}=require(a130_0xe31c51(0x1e7)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a130_0xe31c51(0x258)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a130_0xe31c51(0x1b0));exports[a130_0xe31c51(0x253)]=_0x5e5017=>{const _0x327493=a130_0xe31c51;fileLogger[_0x327493(0x186)]('['+new Date()['toISOString']()+_0x327493(0x222)+constants[_0x327493(0x22f)]+_0x327493(0x1d4)+_0x5e5017);},exports['debug']=_0x41a08e=>{const _0x5380ae=a130_0xe31c51,_0x5ade71={};_0x5ade71[_0x5380ae(0x21d)]=function(_0x41d1b6,_0x34a20d){return _0x41d1b6===_0x34a20d;},_0x5ade71[_0x5380ae(0x1cf)]=_0x5380ae(0x24a),_0x5ade71['FnzGA']=function(_0x1e5bc5,_0x48deda){return _0x1e5bc5===_0x48deda;},_0x5ade71[_0x5380ae(0x257)]=function(_0x2ec872,_0x296657){return _0x2ec872===_0x296657;};const _0xa1c587=_0x5ade71;fileLogger['debug']('['+new Date()['toISOString']()+_0x5380ae(0x222)+constants['TEST_REPORTING_ANALYTICS']+_0x5380ae(0x1d4)+_0x41a08e),(_0xa1c587[_0x5380ae(0x21d)](process['env'][_0x5380ae(0x16b)],_0xa1c587[_0x5380ae(0x1cf)])||_0xa1c587['FnzGA'](process[_0x5380ae(0x15a)][_0x5380ae(0x16b)],'1')||_0xa1c587[_0x5380ae(0x21d)](process['env'][_0x5380ae(0x158)],_0xa1c587[_0x5380ae(0x1cf)])||_0xa1c587[_0x5380ae(0x257)](process[_0x5380ae(0x15a)][_0x5380ae(0x158)],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x5380ae(0x1e3)]()+_0x5380ae(0x222)+constants[_0x5380ae(0x22f)]+_0x5380ae(0x1d4)+_0x41a08e+'\x0a');};const a130_0x55bcfe={};a130_0x55bcfe[a130_0xe31c51(0x226)]=!![],a130_0x55bcfe[a130_0xe31c51(0x1ae)]=0xea60,a130_0x55bcfe[a130_0xe31c51(0x1d0)]=0x2,a130_0x55bcfe[a130_0xe31c51(0x156)]=0x2;const httpKeepAliveAgent=new http[(a130_0xe31c51(0x1f9))](a130_0x55bcfe),a130_0x59b75f={};function a130_0x56eb(_0x1fa7d3,_0x34056b){const _0x442a04=a130_0x442a();return a130_0x56eb=function(_0x56ebb2,_0x3ad647){_0x56ebb2=_0x56ebb2-0x134;let _0x184395=_0x442a04[_0x56ebb2];return _0x184395;},a130_0x56eb(_0x1fa7d3,_0x34056b);}a130_0x59b75f[a130_0xe31c51(0x226)]=!![],a130_0x59b75f[a130_0xe31c51(0x1ae)]=0xea60,a130_0x59b75f[a130_0xe31c51(0x1d0)]=0x2,a130_0x59b75f[a130_0xe31c51(0x156)]=0x2;const httpsKeepAliveAgent=new https[(a130_0xe31c51(0x1f9))](a130_0x59b75f),a130_0x51c9d8={};a130_0x51c9d8['keepAlive']=!![],a130_0x51c9d8['timeout']=0xea60,a130_0x51c9d8[a130_0xe31c51(0x1d0)]=0x2,a130_0x51c9d8[a130_0xe31c51(0x156)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a130_0xe31c51(0x1f9))](a130_0x51c9d8),a130_0x427ae7={};a130_0x427ae7['keepAlive']=!![],a130_0x427ae7[a130_0xe31c51(0x1ae)]=0xea60,a130_0x427ae7['maxSockets']=0x2,a130_0x427ae7[a130_0xe31c51(0x156)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a130_0xe31c51(0x1f9))](a130_0x427ae7);function a130_0x442a(){const _0x5f1128=['win32','keys','cFXzw','UnhandledError','cAmlf','5595592etVnEn','WYmsb','toJSON','match','eFntW','Test\x20timeout\x20of','emit','winstonLogger','rootDir','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','release','backtrace','message','map','HsguF','awOTO','wxZmD','xGjZG','failureData','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','oRyUg','BJVox','BROWSERSTACK_TEST_OBSERVABILITY','capabilities','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','yKAPI','aZBgJ','TEST_ATTACHMENT','TGMYf','../../bin/utils/logPatcher','][\x20','includes','getPackageVersion','CnKoK','keepAlive','iJOwp','trim','headers','sleep','14aEOBog','push','stack','fHzEW','TEST_REPORTING_ANALYTICS','@cucumber/cucumber','linux','getPlatformDetails','UJLDX','780266poXbji','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','readConfig','zKoUn','Uploading\x20trace\x20logs\x20to:\x20','CUSTOM_TAG','platformName','object','map_','rHhvk','ZteCX','SUbSK','CMRcK','getBuildTags','BROWSERSTACK_TESTHUB_JWT','parse','buildTag','\x20test\x20instance\x20:\x20','CkLhE','length','PGQlI','viKfZ','true','owMdF','hiIlM','1869245SgWqmF','oyAxg','ObservabilitySync:','ILnIP','1|5|4|3|2|0','annotate','trace','gwlwR','git-last-commit','pid','yCCdD','../performance/constants','CODECEPT','platformVersion','codeceptjs','error','../../bin/utils/constants','foRRq','mocha','GZJSy','shouldReRunObservabilityTests','QoeGS','fileName','stringify','debug','JEST','child_process','expanded','config','relativeTestFilePath','TFeDk','Error\x20in\x20getting\x20Linux\x20Details','cwd','application/json','TEST_REPORTING_BUILD_TAG','JsDni','then','PathHelper','TEST_PLATFORM','432IJLSOC','UCtwa','git-repo-info','getSession','AbBDi','getFailureType','FnOpC','relative','maxTotalSockets','jest','BROWSERSTACK_OBSERVABILITY_DEBUG','prefix','env','TimeoutError','XdFgu','BROWSERSTACK_RERUN_TESTS','turboscale','12745638qIesvM','ObzYs','parseFileNames','automate','unknown_grid','json','StWfY','QlKZq','getSyncScript','../logger','5568702EzZufF','null','BROWSERSTACK_TEST_REPORTING_DEBUG','cYgZD','./constants','windows-release','xLdeK','asyncAwaitNodeReq','HTTP','uCqED','Content-Type','fhCih','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','CGlGG','OS\x20X','__cloud_provider___','PLAYWRIGHT','darwin','xRxGc','measureWrapper','yFNEZ','url','execSync','extractValuesWithRegexKeyMatch','replace','isUndefined','DXsmi','mfeFB','1840YYyOYt','silly','removeAnsiColors','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','8dwCPZd','isArray','naEBF','VJxxw','O11Y_URL','test','../helper','/builds/','BumhR','@playwright/test','../performance/performance-tester','BROWSERSTACK_CONFIG_FILE_PATH','Npzjw','util','nvyaj','turboScaleGridDetails','sendPlatformDetails','pIGGv','info','Unknown','Error\x20in\x20importing\x20windows-release\x20','Atwfg','split','Windows','bstack:options','dyALM','WLohD','getBrowserStackConfig','rIvTK','filter','dist','uQJHc','isTestObservabilitySession','data','getPlatformVersion','isInternalHook','../../bin/v2/browserstackCLI','timeout','JLnmu','../../../src/bin/utils/constants','logs','BROWSERSTACK_TEST_REPORTING','lgXiQ','appium:app','Dneyn','xqEGR','TEST_OBSERVABILITY_BUILD_TAG','cEmyG','undefined','avWGL','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','app-automate','browserstack','TDMpF','getCapabilities','AssertionError','aQRTb','BROWSERSTACK_TEST_OBSERVABILITY_YML','kNqrl','getObservabilityLinkedProductName','nodeRequest','err','now','crgGC','Linux','body','Visit\x20','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','bs:addPlatformDetails:','MOCHA','TJRwt','maxSockets','Authorization','platform','modifyReqForTraceUpload','\x20]\x20','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','getBrowserName','NTsyp','getAccessKey','getCustomTags','jolkH','format','UpKEZ','LogCreated','X-BSTACK-TESTOPS','hostname','host','catch','RLuJr','toISOString','ysRWR','Hrvri','https','lodash','CUCUMBER','getPlatform','spy','LOgjr','\x20:\x20','agent','bs:addLog:','http','AHfxz','gtuGU','customTag','toString','OZnZt','pfgpl','FaPRZ','../../helpers/request-spy','O11yHashedID','Agent','FwKfc','BS_TESTOPS_BUILD_HASHED_ID','FAoPU','path','28635900lWLdXi'];a130_0x442a=function(){return _0x5f1128;};return a130_0x442a();}exports[a130_0xe31c51(0x13b)]=()=>{const _0x2acb2a=a130_0xe31c51,_0x4b6d24={};_0x4b6d24[_0x2acb2a(0x254)]=function(_0x31a1a2,_0x1464d9){return _0x31a1a2!==_0x1464d9;},_0x4b6d24[_0x2acb2a(0x1e2)]=_0x2acb2a(0x16a);const _0x2cad36=_0x4b6d24;return process['env'][_0x2acb2a(0x15d)]&&_0x2cad36['gwlwR'](process[_0x2acb2a(0x15a)]['BROWSERSTACK_RERUN_TESTS'],_0x2cad36[_0x2acb2a(0x1e2)])?!![]:![];},exports[a130_0xe31c51(0x1a9)]=()=>{const _0xf4c194=a130_0xe31c51,_0x54ec68={};_0x54ec68[_0xf4c194(0x248)]=function(_0x53a138,_0x4fc14b){return _0x53a138===_0x4fc14b;},_0x54ec68['XdFgu']=_0xf4c194(0x24a);const _0x399804=_0x54ec68;let _0x38049d=!![];return process[_0xf4c194(0x15a)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x38049d=_0x399804[_0xf4c194(0x248)](process[_0xf4c194(0x15a)][_0xf4c194(0x1c2)],_0x399804[_0xf4c194(0x15c)])),process[_0xf4c194(0x15a)][_0xf4c194(0x21a)]&&(_0x38049d=_0x399804['PGQlI'](process[_0xf4c194(0x15a)]['BROWSERSTACK_TEST_OBSERVABILITY'],_0x399804['XdFgu'])),process[_0xf4c194(0x15a)][_0xf4c194(0x1b2)]&&(_0x38049d=_0x399804['PGQlI'](process['env']['BROWSERSTACK_TEST_REPORTING'],_0x399804[_0xf4c194(0x15c)])),_0x38049d;},exports[a130_0xe31c51(0x161)]=_0x578dfd=>{const _0x5c7da3=a130_0xe31c51;if(bsSetupHelper[_0x5c7da3(0x182)](_0x578dfd))return undefined;try{return _0x578dfd[_0x5c7da3(0x228)]()['split'](',');}catch(_0x54df33){return undefined;}},exports['printBuildLink']=()=>{const _0x5ef8ed=a130_0xe31c51,_0x32eb41={'CMRcK':function(_0x56558a,_0x353327){return _0x56558a(_0x353327);},'fHzEW':_0x5ef8ed(0x1ad),'UCtwa':function(_0x1454dd,_0x3a1aa7){return _0x1454dd!==_0x3a1aa7;},'aZBgJ':_0x5ef8ed(0x16a),'ILnIP':_0x5ef8ed(0x1b9)};return PerformanceTester[_0x5ef8ed(0x17c)](PerformanceO11yEvents['PRINT_BUILDLINK'],async()=>{const _0x2c3154=_0x5ef8ed;try{const _0x23a970=_0x32eb41[_0x2c3154(0x240)](require,_0x32eb41[_0x2c3154(0x22e)]);if(_0x23a970[_0x2c3154(0x1f8)]){const _0x4362bb=_0x2c3154(0x1cb)+O11Y_URL+_0x2c3154(0x190)+_0x23a970['O11yHashedID']+_0x2c3154(0x217);buildLogger[_0x2c3154(0x19b)](_0x4362bb);return;}if(process[_0x2c3154(0x15a)][_0x2c3154(0x1fb)]&&_0x32eb41[_0x2c3154(0x14f)](process[_0x2c3154(0x15a)][_0x2c3154(0x1fb)],_0x32eb41[_0x2c3154(0x21e)])&&_0x32eb41['UCtwa'](process[_0x2c3154(0x15a)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x32eb41[_0x2c3154(0x250)])){const _0x22bc5d='Visit\x20'+constants[_0x2c3154(0x18d)]+_0x2c3154(0x190)+process[_0x2c3154(0x15a)][_0x2c3154(0x1fb)]+_0x2c3154(0x217);buildLogger[_0x2c3154(0x19b)](_0x22bc5d);}}catch(_0x596ee5){logger['error'](util[_0x2c3154(0x1db)]('[%s][\x20'+constants[_0x2c3154(0x22f)]+'\x20]\x20Build\x20Not\x20Found\x20%s',new Date()[_0x2c3154(0x1e3)](),_0x596ee5[_0x2c3154(0x22d)]||_0x596ee5[_0x2c3154(0x210)]||_0x596ee5));}})();},exports[a130_0xe31c51(0x153)]=_0x3e7adf=>{const _0x5d5118=a130_0xe31c51,_0xfb1895={};_0xfb1895[_0x5d5118(0x1e4)]=_0x5d5118(0x1c0),_0xfb1895[_0x5d5118(0x1ba)]=_0x5d5118(0x209),_0xfb1895[_0x5d5118(0x23e)]=_0x5d5118(0x15b),_0xfb1895[_0x5d5118(0x218)]=_0x5d5118(0x202);const _0x598b3d=_0xfb1895;if(!_0x3e7adf)return null;const _0x1ea396=_0x3e7adf['toString']();if(_0x1ea396['match'](/AssertionError/))return _0x598b3d[_0x5d5118(0x1e4)];if(_0x1ea396['match'](/TimeoutError/)||_0x1ea396['startsWith'](_0x598b3d['avWGL'])||_0x1ea396[_0x5d5118(0x207)](/Timeout.*exceeded/i))return _0x598b3d['ZteCX'];return _0x598b3d[_0x5d5118(0x218)];},exports['getFrameworkVersion']=_0x2988f3=>{const _0x26e3d6=a130_0xe31c51,_0x293779={};_0x293779[_0x26e3d6(0x225)]=_0x26e3d6(0x139),_0x293779[_0x26e3d6(0x205)]=_0x26e3d6(0x192),_0x293779[_0x26e3d6(0x212)]=_0x26e3d6(0x135),_0x293779[_0x26e3d6(0x16f)]=_0x26e3d6(0x157),_0x293779[_0x26e3d6(0x1af)]=_0x26e3d6(0x230);const _0x2ff006=_0x293779;let _0x31e34c=null;switch(_0x2988f3){case FRAMEWORKS[_0x26e3d6(0x1ce)]:_0x31e34c=bsSetupHelper[_0x26e3d6(0x224)](_0x2ff006['CnKoK']);break;case FRAMEWORKS[_0x26e3d6(0x179)]:_0x31e34c=bsSetupHelper['getPackageVersion'](_0x2ff006[_0x26e3d6(0x205)]);break;case FRAMEWORKS[_0x26e3d6(0x259)]:case FRAMEWORKS['CODECEPT_CUCUMBER']:_0x31e34c=bsSetupHelper['getPackageVersion'](_0x2ff006[_0x26e3d6(0x212)]);break;case FRAMEWORKS[_0x26e3d6(0x140)]:_0x31e34c=bsSetupHelper[_0x26e3d6(0x224)](_0x2ff006[_0x26e3d6(0x16f)]);break;case FRAMEWORKS[_0x26e3d6(0x1e8)]:_0x31e34c=bsSetupHelper[_0x26e3d6(0x224)](_0x2ff006[_0x26e3d6(0x1af)]);break;default:break;}return _0x31e34c;},exports[a130_0xe31c51(0x1a4)]=_0x1742bd=>{const _0x3d4f07=a130_0xe31c51;let _0x99fd61=null;switch(_0x1742bd){case FRAMEWORKS['PLAYWRIGHT']:_0x99fd61=process[_0x3d4f07(0x15a)][_0x3d4f07(0x194)];break;}if(!_0x99fd61)return;return bsSetupHelper[_0x3d4f07(0x236)](_0x99fd61,![]);},exports['getUserCredentials']=_0x575566=>{const _0x596e3b=a130_0xe31c51;return{'username':bsSetupHelper['getUserName'](_0x575566),'accessKey':bsSetupHelper[_0x596e3b(0x1d8)](_0x575566)};},exports['modifyReqForTraceUpload']=(_0x516ac7,_0x214931)=>{const _0x40fb5d=a130_0xe31c51,_0x3b50af={};_0x3b50af['fhCih']=_0x40fb5d(0x251),_0x3b50af[_0x40fb5d(0x1f4)]=_0x40fb5d(0x1dd),_0x3b50af[_0x40fb5d(0x16c)]=_0x40fb5d(0x21f);const _0x2fe3b7=_0x3b50af,_0x20526a=_0x2fe3b7[_0x40fb5d(0x174)][_0x40fb5d(0x19f)]('|');let _0x353dc7=0x0;while(!![]){switch(_0x20526a[_0x353dc7++]){case'0':delete _0x214931[_0x40fb5d(0x229)];continue;case'1':if(!_0x516ac7[_0x40fb5d(0x1ca)]||!Array[_0x40fb5d(0x18a)](_0x516ac7[_0x40fb5d(0x1ca)]))return;continue;case'2':delete _0x516ac7[_0x40fb5d(0x164)];continue;case'3':delete _0x516ac7['body'];continue;case'4':_0x516ac7['formData']={'data':_0x516ac7[_0x40fb5d(0x1ca)][0x0][_0x40fb5d(0x1b1)][0x0][_0x40fb5d(0x1aa)],'test_run_uuid':_0x516ac7[_0x40fb5d(0x1ca)][0x0][_0x40fb5d(0x1b1)][0x0]['test_run_uuid'],'event_type':_0x2fe3b7[_0x40fb5d(0x1f4)],'kind':_0x2fe3b7[_0x40fb5d(0x16c)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x40fb5d(0x1e3)](),'fileName':_0x516ac7[_0x40fb5d(0x1ca)][0x0][_0x40fb5d(0x1b1)][0x0][_0x40fb5d(0x13d)]};continue;case'5':if(!_0x516ac7['body'][0x0]||!_0x516ac7[_0x40fb5d(0x1ca)][0x0][_0x40fb5d(0x1b1)]||!_0x516ac7[_0x40fb5d(0x1ca)][0x0][_0x40fb5d(0x1b1)][_0x40fb5d(0x247)])return;continue;}break;}},exports[a130_0xe31c51(0x170)]=async(_0x16cbef,_0x4c5f50,_0x40d212,_0x30e16f,_0x5f5b8f=!![])=>{const _0x598649=a130_0xe31c51,_0x33474f={};_0x33474f[_0x598649(0x1a8)]=function(_0x5257ca,_0x2cf3be){return _0x5257ca===_0x2cf3be;},_0x33474f[_0x598649(0x18b)]=_0x598649(0x173),_0x33474f[_0x598649(0x1c8)]='application/json',_0x33474f[_0x598649(0x220)]=_0x598649(0x1e6),_0x33474f[_0x598649(0x19e)]=function(_0x5bbb57,_0x30c1dc){return _0x5bbb57!==_0x30c1dc;},_0x33474f['ZxLYJ']=function(_0x1ac110,_0x2a6041){return _0x1ac110!==_0x2a6041;},_0x33474f[_0x598649(0x191)]=_0x598649(0x23b),_0x33474f[_0x598649(0x183)]=_0x598649(0x20d);const _0x877373=_0x33474f,_0x7e3c2a={..._0x30e16f,...{'method':_0x16cbef,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x4c5f50,'body':_0x40d212,'json':_0x877373[_0x598649(0x1a8)](_0x30e16f[_0x598649(0x229)][_0x877373[_0x598649(0x18b)]],_0x877373[_0x598649(0x1c8)]),'agent':API_URL[_0x598649(0x223)](_0x877373['TGMYf'])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x877373[_0x598649(0x1a8)](_0x4c5f50,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x7e3c2a[_0x598649(0x1ed)]=API_URL['includes'](_0x877373[_0x598649(0x220)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x598649(0x1d3)](_0x7e3c2a,_0x30e16f),logger[_0x598649(0x13f)](_0x598649(0x238)+_0x7e3c2a['url']));try{const {statusCode:_0x261079,body:_0x4461f7}=await bsSetupHelper[_0x598649(0x1c5)](_0x16cbef,_0x4c5f50,_0x7e3c2a,_0x30e16f,_0x7e3c2a[_0x598649(0x17e)]);if(_0x877373[_0x598649(0x19e)](_0x261079,0xc8))return _0x4461f7?_0x4461f7:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x261079;let _0x4996c1=_0x4461f7;if(_0x5f5b8f)try{_0x877373['ZxLYJ'](typeof _0x4461f7,_0x877373[_0x598649(0x191)])&&(_0x4996c1=JSON['parse'](_0x4461f7));}catch(_0x4297b0){logger['error'](_0x877373[_0x598649(0x183)],_0x4461f7,util['format'](_0x4297b0));}const _0x12654e={};return _0x12654e['data']=_0x4996c1,_0x12654e;}catch(_0x1c8600){logger[_0x598649(0x136)](_0x598649(0x188)+util[_0x598649(0x1db)](_0x1c8600));throw _0x1c8600;}},exports[a130_0xe31c51(0x1c5)]=(_0x39309a,_0x10eb4a,_0x544f77,_0xb5df81,_0x4bc7f1=!![])=>{const _0x2eff73=a130_0xe31c51,_0x331c3e={'owMdF':function(_0x19b3b3,_0x25b1ec){return _0x19b3b3(_0x25b1ec);},'pfgpl':function(_0x4cbd16,_0x2101d6){return _0x4cbd16!==_0x2101d6;},'scLkf':_0x2eff73(0x23b),'Npzjw':_0x2eff73(0x21c),'NTsyp':function(_0x5143c2,_0x33d40c){return _0x5143c2===_0x33d40c;},'pIGGv':_0x2eff73(0x173),'QHHWH':_0x2eff73(0x148),'ObzYs':_0x2eff73(0x1e6)};return new Promise((_0x3a8bbe,_0x11d673)=>{const _0x316838=_0x2eff73,_0x36ff33={'TFeDk':function(_0x16a8a1,_0x592f7c){const _0x3561c4=a130_0x56eb;return _0x331c3e[_0x3561c4(0x1f5)](_0x16a8a1,_0x592f7c);},'dyALM':function(_0x477385,_0x4f125e){const _0x35b889=a130_0x56eb;return _0x331c3e[_0x35b889(0x24b)](_0x477385,_0x4f125e);},'HLtUI':_0x331c3e['scLkf'],'QlKZq':function(_0x3be2b1,_0x421341){const _0x4efaf8=a130_0x56eb;return _0x331c3e[_0x4efaf8(0x24b)](_0x3be2b1,_0x421341);},'BJVox':_0x331c3e[_0x316838(0x195)]},_0x3a11c9={..._0xb5df81,...{'method':_0x39309a,'url':API_URL+'/'+_0x10eb4a,'body':_0x544f77,'json':_0x331c3e[_0x316838(0x1d7)](_0xb5df81[_0x316838(0x229)][_0x331c3e[_0x316838(0x19a)]],_0x331c3e['QHHWH']),'agent':API_URL[_0x316838(0x223)](_0x331c3e[_0x316838(0x160)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x331c3e[_0x316838(0x1d7)](_0x10eb4a,SCREENSHOT_ENDPOINT)&&(_0x3a11c9[_0x316838(0x1ed)]=API_URL[_0x316838(0x223)](_0x331c3e[_0x316838(0x160)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x316838(0x1c5)](_0x39309a,_0x10eb4a,_0x3a11c9,_0xb5df81,API_URL)[_0x316838(0x14b)](({statusCode:_0x5b73bf,body:_0x3c530b})=>{const _0x5098da=_0x316838;if(_0x36ff33['TFeDk'](_0x5b73bf,0xc8))_0x36ff33[_0x5098da(0x1a2)](_0x11d673,_0x3c530b?_0x3c530b:_0x5098da(0x235)+_0x5b73bf);else{if(_0x4bc7f1)try{_0x36ff33[_0x5098da(0x145)](typeof _0x3c530b,_0x36ff33['HLtUI'])&&(_0x3c530b=JSON[_0x5098da(0x243)](_0x3c530b));}catch(_0xc8360){_0x36ff33[_0x5098da(0x166)](_0x11d673,_0x36ff33[_0x5098da(0x219)]);return;}const _0x44101f={};_0x44101f['data']=_0x3c530b,_0x36ff33[_0x5098da(0x166)](_0x3a8bbe,_0x44101f);}})[_0x316838(0x1e1)](_0x189d98=>{const _0x55d9f3=_0x316838;_0x189d98&&_0x331c3e[_0x55d9f3(0x24b)](_0x11d673,_0x189d98);});});},exports[a130_0xe31c51(0x241)]=_0x355b0f=>{const _0x3736a2=a130_0xe31c51;if(process['env'][_0x3736a2(0x149)])return process[_0x3736a2(0x15a)][_0x3736a2(0x149)][_0x3736a2(0x19f)](',');if(process[_0x3736a2(0x15a)][_0x3736a2(0x1b7)])return process[_0x3736a2(0x15a)]['TEST_OBSERVABILITY_BUILD_TAG'][_0x3736a2(0x19f)](',');if(_0x355b0f[_0x3736a2(0x244)])return _0x355b0f[_0x3736a2(0x244)];return[];},exports['getDefaultHeaders']=(_0x4bed72=!![])=>{const _0x20b74f=a130_0xe31c51,_0x53deac={};_0x53deac['nvyaj']=_0x20b74f(0x148),_0x53deac['StWfY']='true',_0x53deac[_0x20b74f(0x215)]=_0x20b74f(0x1d1);const _0x1c5549=_0x53deac,_0x5b1ecb={};_0x5b1ecb[_0x20b74f(0x173)]=_0x1c5549[_0x20b74f(0x197)],_0x5b1ecb[_0x20b74f(0x1de)]=_0x1c5549[_0x20b74f(0x165)];const _0x4b35b4=_0x5b1ecb;return _0x4bed72&&process['env'][_0x20b74f(0x242)]&&(_0x4b35b4[_0x1c5549[_0x20b74f(0x215)]]='Bearer\x20'+process[_0x20b74f(0x15a)][_0x20b74f(0x242)]),_0x4b35b4;},exports[a130_0xe31c51(0x180)]=_0x3223f3=>{const _0x37dce3=a130_0xe31c51,_0x4e7227={};_0x4e7227[_0x37dce3(0x1a3)]='^CUSTOM_TAG_\x5cd+$';const _0x2f12cc=_0x4e7227,_0x535c7d=[],_0x4399c1=new RegExp(_0x2f12cc[_0x37dce3(0x1a3)],'i');return Object[_0x37dce3(0x200)](_0x3223f3)[_0x37dce3(0x1a6)](_0x1e4a28=>_0x4399c1[_0x37dce3(0x18e)](_0x1e4a28))['forEach'](_0x214001=>_0x535c7d['push'](_0x3223f3[_0x214001])),_0x535c7d;},exports[a130_0xe31c51(0x1d9)]=_0x52ed73=>{const _0x249822=a130_0xe31c51,_0x496aef=[],_0x21b168=_0x52ed73[_0x249822(0x1f2)]||process[_0x249822(0x15a)][_0x249822(0x239)];return _0x21b168&&_0x496aef[_0x249822(0x22c)](_0x21b168),_0x496aef['push'](...exports[_0x249822(0x180)](process['env'])),_0x496aef['push'](...exports[_0x249822(0x180)](_0x52ed73)),_0x496aef;},exports['removeAnsiColors']=_0x5254d8=>{const _0x2a7333=a130_0xe31c51;if(!_0x5254d8)return'';return _0x5254d8[_0x2a7333(0x181)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a130_0xe31c51(0x22a)]=(_0xdc6e7d=0x64)=>new Promise(_0x193260=>setTimeout(_0x193260,_0xdc6e7d));const getPlatformName=()=>{const _0x5a0147=a130_0xe31c51,_0x518ae2={};_0x518ae2[_0x5a0147(0x1f0)]=function(_0x43584f,_0xce31d6){return _0x43584f===_0xce31d6;},_0x518ae2[_0x5a0147(0x24c)]=_0x5a0147(0x1ff),_0x518ae2[_0x5a0147(0x246)]=_0x5a0147(0x1a0),_0x518ae2['uCqED']=function(_0x16180f,_0x20b4b4){return _0x16180f===_0x20b4b4;},_0x518ae2[_0x5a0147(0x23f)]=_0x5a0147(0x17a),_0x518ae2[_0x5a0147(0x1f6)]=_0x5a0147(0x177),_0x518ae2[_0x5a0147(0x1e5)]=_0x5a0147(0x231),_0x518ae2[_0x5a0147(0x1a5)]='Linux',_0x518ae2[_0x5a0147(0x138)]=_0x5a0147(0x19c);const _0x1f49d6=_0x518ae2;if(_0x1f49d6[_0x5a0147(0x1f0)](process[_0x5a0147(0x1d2)],_0x1f49d6['hiIlM']))return _0x1f49d6['CkLhE'];if(_0x1f49d6['uCqED'](process[_0x5a0147(0x1d2)],_0x1f49d6[_0x5a0147(0x23f)]))return _0x1f49d6['FaPRZ'];if(_0x1f49d6[_0x5a0147(0x172)](process[_0x5a0147(0x1d2)],_0x1f49d6[_0x5a0147(0x1e5)]))return _0x1f49d6[_0x5a0147(0x1a5)];return _0x1f49d6[_0x5a0147(0x138)];},getMacOSVersion=()=>{const _0x4c9c5d=a130_0xe31c51,_0x50f726={};_0x50f726['FAoPU']=_0x4c9c5d(0x1bb);const _0x571fbb=_0x50f726;return child_process[_0x4c9c5d(0x17f)](_0x571fbb[_0x4c9c5d(0x1fc)])['toString']()['trim']();},getLinuxDetails=()=>{const _0xc50c1={'VJxxw':function(_0x1a95a4,_0x14680c){return _0x1a95a4(_0x14680c);},'awOTO':function(_0x1e23af,_0x41b202){return _0x1e23af(_0x41b202);}};return new Promise((_0x1306af,_0x1054a8)=>{const _0x27c807=a130_0x56eb,_0x33d1fe={'aQRTb':function(_0x102076,_0x21863e){const _0x323026=a130_0x56eb;return _0xc50c1[_0x323026(0x18c)](_0x102076,_0x21863e);}};_0xc50c1[_0x27c807(0x213)](getos,(_0xe1ef9f,_0x22a588)=>{const _0x3a8cbb=_0x27c807;if(_0xe1ef9f)return _0x33d1fe[_0x3a8cbb(0x1c1)](_0x1054a8,_0xe1ef9f);_0x33d1fe['aQRTb'](_0x1306af,_0x22a588);});});};exports[a130_0xe31c51(0x232)]=async()=>{const _0x1280a1=a130_0xe31c51,_0x28604b={'oyAxg':function(_0x309418){return _0x309418();},'cEmyG':_0x1280a1(0x177),'jHfQP':function(_0x23f6e6){return _0x23f6e6();},'eFntW':_0x1280a1(0x1a0),'viKfZ':_0x1280a1(0x16e),'cJQBI':function(_0xfa9879){return _0xfa9879();},'zKoUn':_0x1280a1(0x1c9),'CYplW':function(_0x319408){return _0x319408();},'cAmlf':_0x1280a1(0x146)};let _0xc62c5e=_0x28604b[_0x1280a1(0x24e)](getPlatformName),_0x125b7a=os['release']()[_0x1280a1(0x1f3)]();switch(_0xc62c5e){case _0x28604b[_0x1280a1(0x1b8)]:_0x125b7a=_0x28604b['jHfQP'](getMacOSVersion);break;case _0x28604b[_0x1280a1(0x208)]:try{const _0x1aaf35=(await import(_0x28604b[_0x1280a1(0x249)]))['default'];_0x125b7a=_0x28604b['cJQBI'](_0x1aaf35);}catch(_0x20827a){exports[_0x1280a1(0x13f)](_0x1280a1(0x19d)+_0x20827a[_0x1280a1(0x1f3)]());}break;case _0x28604b[_0x1280a1(0x237)]:try{const _0x4b21ad=await _0x28604b['CYplW'](getLinuxDetails);_0x4b21ad[_0x1280a1(0x1a7)]&&(_0xc62c5e=_0x4b21ad[_0x1280a1(0x1a7)]),_0x4b21ad[_0x1280a1(0x20e)]&&(_0x125b7a=_0x4b21ad['release'][_0x1280a1(0x1f3)]());}catch(_0xe8f588){exports[_0x1280a1(0x13f)](_0x28604b[_0x1280a1(0x203)]);}break;default:break;}const _0x3529d2={};return _0x3529d2[_0x1280a1(0x23a)]=_0xc62c5e,_0x3529d2[_0x1280a1(0x134)]=_0x125b7a,_0x3529d2;},exports[a130_0xe31c51(0x216)]=(_0x59bc5c,_0x254f62)=>{const _0x13532d=a130_0xe31c51,_0x3c8c8b={};_0x3c8c8b[_0x13532d(0x154)]=function(_0x3a9dc8,_0x36faf4){return _0x3a9dc8===_0x36faf4;},_0x3c8c8b[_0x13532d(0x1dc)]='test',_0x3c8c8b[_0x13532d(0x1b5)]=_0x13532d(0x1c6);const _0x4995bd=_0x3c8c8b;if(!_0x59bc5c)return[];try{if(_0x4995bd[_0x13532d(0x154)](_0x254f62,_0x4995bd[_0x13532d(0x1dc)]))return _0x59bc5c[_0x13532d(0x211)](_0x2c1404=>{const _0x2b25d3=_0x13532d,{stack:_0x229504,..._0x2c1f33}=_0x2c1404,_0x84c823=Object[_0x2b25d3(0x200)](_0x2c1f33)[_0x2b25d3(0x211)](_0x5ca5a1=>{return _0x5ca5a1+':\x20'+_0x2c1f33[_0x5ca5a1];}),_0x4a7708=_0x229504?exports['removeAnsiColors'](_0x229504)['split'](/\r?\n/):[exports['removeAnsiColors'](_0x2c1404[_0x2b25d3(0x210)])],_0x1ac622={};return _0x1ac622[_0x2b25d3(0x20f)]=_0x4a7708,_0x1ac622[_0x2b25d3(0x142)]=_0x84c823,_0x1ac622;});else{if(_0x4995bd[_0x13532d(0x154)](_0x254f62,_0x4995bd[_0x13532d(0x1b5)])){const _0x21442d=[],_0x6ccb7b=[];return Object[_0x13532d(0x200)](_0x59bc5c)['forEach'](_0x551d24=>{const _0x227510=_0x13532d;try{_0x6ccb7b[_0x227510(0x22c)](_0x551d24+':\x20'+_0x59bc5c[_0x551d24]);}catch(_0x4c5385){exports[_0x227510(0x13f)](_0x227510(0x1d5)+_0x4c5385[_0x227510(0x210)]+_0x227510(0x1ec)+_0x4c5385['backtrace']);}}),_0x21442d['push']({'backtrace':exports[_0x13532d(0x187)](_0x59bc5c[_0x13532d(0x22d)])[_0x13532d(0x19f)](/\r?\n/),'expanded':_0x6ccb7b}),_0x21442d;}}return[];}catch(_0x24840e){exports['debug']('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x24840e[_0x13532d(0x210)]+_0x13532d(0x1ec)+_0x24840e[_0x13532d(0x20f)]);}return[];};class PathHelper{constructor(_0x39c4d9,_0x56079d){const _0x2061d7=a130_0xe31c51;this[_0x2061d7(0x143)]=_0x39c4d9,this['prefix']=_0x56079d;}['relativeTestFilePath'](_0x29c7ce){const _0x330787=a130_0xe31c51,_0x4a53ad=this[_0x330787(0x143)][_0x330787(0x147)]||this[_0x330787(0x143)][_0x330787(0x20c)];return path[_0x330787(0x155)](_0x4a53ad,_0x29c7ce);}['prefixTestPath'](_0x2f389c){const _0x12b91d=a130_0xe31c51,_0x3754ea=this[_0x12b91d(0x144)](_0x2f389c);return this[_0x12b91d(0x159)]?path['join'](this[_0x12b91d(0x159)],_0x3754ea):_0x3754ea;}}exports[a130_0xe31c51(0x14c)]=PathHelper,exports['addRequestSpy']=(_0x280980=!![])=>{const _0x11b04c=a130_0xe31c51,_0x1c9eb9={};_0x1c9eb9['UJLDX']=function(_0x4bd63a,_0x4a0ad3){return _0x4bd63a===_0x4a0ad3;},_0x1c9eb9[_0x11b04c(0x17b)]=_0x11b04c(0x1de),_0x1c9eb9[_0x11b04c(0x23d)]=_0x11b04c(0x24a),_0x1c9eb9[_0x11b04c(0x1be)]=_0x11b04c(0x171),_0x1c9eb9[_0x11b04c(0x1c3)]='browserstack',_0x1c9eb9[_0x11b04c(0x152)]='local_grid';const _0x4b955=_0x1c9eb9;requestSpy[_0x11b04c(0x1ea)]((_0x1a61c0,_0x34620a)=>{const _0x4b091d=_0x11b04c;_0x34620a&&!(_0x34620a['headers']&&_0x4b955[_0x4b091d(0x233)](_0x34620a[_0x4b091d(0x229)][_0x4b955[_0x4b091d(0x17b)]],_0x4b955['rHhvk']))&&(_0x34620a[_0x4b091d(0x1e0)]=_0x34620a[_0x4b091d(0x1df)],delete _0x34620a['hostname'],_0x280980&&process[_0x4b091d(0x20a)](_0x4b091d(0x1ee)+process[_0x4b091d(0x256)],{'timestamp':new Date()[_0x4b091d(0x1e3)](),'level':null,'message':null,'kind':_0x4b955[_0x4b091d(0x1be)],'http_response':_0x34620a})),_0x34620a&&(constants['HUB_URL_REGEX'][_0x4b091d(0x18e)](_0x34620a[_0x4b091d(0x1e0)])||constants['ATS_HUB_URL_REGEX'][_0x4b091d(0x18e)](_0x34620a['host']))?global[_0x4b091d(0x178)]=_0x4b955['kNqrl']:global[_0x4b091d(0x178)]=_0x4b955['AbBDi'];});},exports['patchConsoleLogger']=()=>{const _0x4efc50=a130_0xe31c51,_0x321c2c={'GZJSy':function(_0xfcac14,_0x39eaf9){return _0xfcac14(_0x39eaf9);}};console={},Object[_0x4efc50(0x200)](consoleHolder)['forEach'](_0x501f21=>{const _0x3b7fe9=_0x4efc50;_0x321c2c[_0x3b7fe9(0x13a)](isFunction,consoleHolder[_0x501f21])?console[_0x501f21]=(..._0x13d0e5)=>{const _0x363eca=_0x3b7fe9;try{!Object[_0x363eca(0x200)](BSTestOpsPatcher)[_0x363eca(0x223)](_0x501f21)?consoleHolder[_0x501f21](..._0x13d0e5):BSTestOpsPatcher[_0x501f21](..._0x13d0e5);}catch(_0x418aca){consoleHolder[_0x501f21](..._0x13d0e5);}}:console[_0x501f21]=consoleHolder[_0x501f21];});},exports[a130_0xe31c51(0x167)]=()=>'browserstack_executor:\x20'+JSON[a130_0xe31c51(0x13e)]({'action':a130_0xe31c51(0x252),'arguments':{'data':a130_0xe31c51(0x24f)+Date[a130_0xe31c51(0x1c7)](),'level':a130_0xe31c51(0x13f)}}),exports[a130_0xe31c51(0x1c4)]=_0x181f39=>{const _0x4bcf92=a130_0xe31c51,_0x3aeec6={};_0x3aeec6[_0x4bcf92(0x201)]=function(_0x118c54,_0x24ac7d){return _0x118c54===_0x24ac7d;},_0x3aeec6[_0x4bcf92(0x1eb)]=_0x4bcf92(0x1bd),_0x3aeec6[_0x4bcf92(0x214)]=_0x4bcf92(0x1b4),_0x3aeec6[_0x4bcf92(0x1f1)]='app',_0x3aeec6[_0x4bcf92(0x1fa)]=function(_0x4c38dc,_0x4f8324){return _0x4c38dc>_0x4f8324;},_0x3aeec6[_0x4bcf92(0x13c)]=_0x4bcf92(0x1bc),_0x3aeec6[_0x4bcf92(0x1da)]=_0x4bcf92(0x1a1),_0x3aeec6[_0x4bcf92(0x176)]=_0x4bcf92(0x198),_0x3aeec6['JsDni']=_0x4bcf92(0x15e),_0x3aeec6[_0x4bcf92(0x1b6)]=_0x4bcf92(0x162);const _0x2148f3=_0x3aeec6;let _0x4e812c=null;try{if(_0x2148f3[_0x4bcf92(0x201)](global[_0x4bcf92(0x178)],_0x2148f3[_0x4bcf92(0x1eb)])){if(_0x181f39[_0x2148f3[_0x4bcf92(0x214)]]||_0x181f39[_0x2148f3[_0x4bcf92(0x1f1)]]||!bsSetupHelper[_0x4bcf92(0x182)](global[_0x4bcf92(0x21b)])&&_0x2148f3[_0x4bcf92(0x1fa)](global[_0x4bcf92(0x21b)]['length'],0x0)&&(global['capabilities'][0x0][_0x2148f3[_0x4bcf92(0x1f1)]]||global[_0x4bcf92(0x21b)][0x0][_0x2148f3[_0x4bcf92(0x214)]]))_0x4e812c=_0x2148f3['QoeGS'];else _0x181f39[_0x2148f3['jolkH']]&&_0x181f39[_0x2148f3[_0x4bcf92(0x1da)]][_0x2148f3[_0x4bcf92(0x176)]]?_0x4e812c=_0x2148f3[_0x4bcf92(0x14a)]:_0x4e812c=_0x2148f3[_0x4bcf92(0x1b6)];}}catch(_0x312476){exports[_0x4bcf92(0x13f)](_0x4bcf92(0x175)+constants[_0x4bcf92(0x22f)]+_0x4bcf92(0x245)+_0x312476);}return _0x4e812c;},exports[a130_0xe31c51(0x199)]=async(_0x3f9e0d,_0x5069ed,_0x13cf49=![])=>{const _0x37c312=a130_0xe31c51,_0x3e03b2={};_0x3e03b2[_0x37c312(0x1b3)]=function(_0x528998,_0x319b2f){return _0x528998===_0x319b2f;},_0x3e03b2['iJOwp']=_0x37c312(0x1bd),_0x3e03b2[_0x37c312(0x184)]=_0x37c312(0x163),_0x3e03b2[_0x37c312(0x17d)]=_0x37c312(0x14d);const _0x418687=_0x3e03b2;try{const _0x11e158=await _0x3f9e0d[_0x37c312(0x1bf)](),_0x355b66=await _0x3f9e0d[_0x37c312(0x151)](),_0xe96db0={},_0x3753fe=Object['fromEntries'](_0x355b66[_0x37c312(0x1bf)]()[_0x37c312(0x23c)]),_0x332c42={'product':exports[_0x37c312(0x1c4)](_0x3753fe),'capabilities':_0x3753fe,'platform':_0x11e158[_0x37c312(0x1e9)](),'platform_version':bsSetupHelper[_0x37c312(0x1ab)](_0x418687[_0x37c312(0x1b3)](global['__cloud_provider___'],_0x418687[_0x37c312(0x227)])),'browser':_0x11e158[_0x37c312(0x1d6)](),'browser_version':_0x11e158['getBrowserVersion'](),'session_id':_0x355b66[_0x37c312(0x206)]()};global[_0x37c312(0x178)]?_0xe96db0[global[_0x37c312(0x178)]]=_0x332c42:_0xe96db0[_0x418687['mfeFB']]=_0x332c42;if(_0x13cf49)return _0xe96db0;process['emit'](_0x37c312(0x1cd)+process[_0x37c312(0x256)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x418687[_0x37c312(0x17d)],'http_response':_0xe96db0,'uuid':_0x5069ed});}catch(_0x294ed2){exports['debug'](_0x37c312(0x1cc)+_0x294ed2);}},exports[a130_0xe31c51(0x1ac)]=_0x23e488=>{const _0x28cdaa=a130_0xe31c51;return _0x23e488&&_0x23e488['toString']()[_0x28cdaa(0x207)](/browserstack internal helper hook/);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a131_0xbb63(_0x56a2e4,_0x52d21e){var _0x50b544=a131_0x50b5();return a131_0xbb63=function(_0xbb6342,_0x4e2cb1){_0xbb6342=_0xbb6342-0x94;var _0x4b2b6c=_0x50b544[_0xbb6342];return _0x4b2b6c;},a131_0xbb63(_0x56a2e4,_0x52d21e);}var a131_0x42335b=a131_0xbb63;(function(_0x331f09,_0x5f2fb2){var _0xfc1533=a131_0xbb63,_0x3707c8=_0x331f09();while(!![]){try{var _0x3b9731=parseInt(_0xfc1533(0x98))/0x1*(-parseInt(_0xfc1533(0xa1))/0x2)+parseInt(_0xfc1533(0x9e))/0x3*(parseInt(_0xfc1533(0x9c))/0x4)+parseInt(_0xfc1533(0xa5))/0x5+parseInt(_0xfc1533(0x9f))/0x6*(parseInt(_0xfc1533(0x99))/0x7)+parseInt(_0xfc1533(0xa4))/0x8+-parseInt(_0xfc1533(0xa0))/0x9+-parseInt(_0xfc1533(0x96))/0xa*(parseInt(_0xfc1533(0x97))/0xb);if(_0x3b9731===_0x5f2fb2)break;else _0x3707c8['push'](_0x3707c8['shift']());}catch(_0x4e3cc4){_0x3707c8['push'](_0x3707c8['shift']());}}}(a131_0x50b5,0xd7ce0));var a131_0x1290a0={};a131_0x1290a0[a131_0x42335b(0xa3)]=a131_0x42335b(0x9a),a131_0x1290a0[a131_0x42335b(0x9b)]=a131_0x42335b(0xa2),a131_0x1290a0[a131_0x42335b(0x9d)]=a131_0x42335b(0x95),module[a131_0x42335b(0x94)]=a131_0x1290a0;function a131_0x50b5(){var _0x360412=['https://collector-observability.browserstack.com','FAILED_TESTS_ENDPOINT','9380HJAtgk','SPLIT_TESTS_ENDPOINT','411UxCDIE','18ieDZTh','6135048WaoUYK','2bgLAoK','testorchestration/api/v1/failed-tests','ORCHESTRATION_API_URL','10015248uvAsTV','3267975hPmTZb','exports','testorchestration/api/v1/split-tests','741800IWjMGB','198hjkLMO','794079agowYp','3425709MsDgtr'];a131_0x50b5=function(){return _0x360412;};return a131_0x50b5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a132_0x57bd11=a132_0x7799;(function(_0x89e739,_0x569aa3){const _0x4cd8f8=a132_0x7799,_0x1c84de=_0x89e739();while(!![]){try{const _0x1afffd=parseInt(_0x4cd8f8(0x172))/0x1+parseInt(_0x4cd8f8(0x17c))/0x2*(parseInt(_0x4cd8f8(0x183))/0x3)+parseInt(_0x4cd8f8(0x16d))/0x4+parseInt(_0x4cd8f8(0x1b2))/0x5+parseInt(_0x4cd8f8(0x1ac))/0x6*(parseInt(_0x4cd8f8(0x143))/0x7)+parseInt(_0x4cd8f8(0x142))/0x8+-parseInt(_0x4cd8f8(0x166))/0x9;if(_0x1afffd===_0x569aa3)break;else _0x1c84de['push'](_0x1c84de['shift']());}catch(_0x2647bb){_0x1c84de['push'](_0x1c84de['shift']());}}}(a132_0x5ed5,0x6e70d));function a132_0x5ed5(){const _0x5ef736=['235617akBhYY','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','dnQXf','jJZPN','sRbDD','onTestDone','error','qPigV','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','stack',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','newState','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','BROWSERSTACK_BUILD_RUN_IDENTIFIER','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','projectName','_CI]\x20Error\x20sending\x20failed\x20test\x20','length','failureThresholdCount','stopPolling','failedTests','VoIXr','tKbxz','startPolling','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','hcPeO','../logger','XzuJx','failed','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','dHnUk','reportedFailuresToAPI','_Local]\x20State\x20initialized\x20from\x20file.','BROWSERSTACK_TOTAL_NODE_COUNT','WwnXX','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','BROWSERSTACK_NODE_INDEX','stateFilePath','_CI]\x20Error\x20during\x20polling\x20logic:\x20','5190iuPSTX','_fetchAPIFailedCount','buildRunIdentifier','_sendFailedTestsToAPI','_CI]\x20API\x20failed\x20count\x20updated:\x20','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','2106670spjQyO','naomp','FpBgD','dnFbr','sbgTB','aTqKn','\x0aStack:\x20','winstonLogger',',\x20CI\x20Mode:\x20','isCIMode','pollingInterval','./requestUtils','_getDefaultState','lastAPIFailedCount','exports','QclcB','failFastState.json','catch','putFailedTests','failFastState.lock','3690544WdyCcH','2471jbcgAh','recordTestResult','_pollFailedTests','size','env','FailFastManager','info','existsSync','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','WUcAE','failFastActiveMarkerPath','ptRTW','warn','IARRF','from','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20',',\x20threshold:\x20','readState','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','\x20to\x20API:\x20','\x20(was\x20','writeState','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','eMsow','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','XJrXL','join','uniqueFailedTests','eCVnA','buildName','isKUO','ms.','debug','add','18455994EJjNsC','oRjfR','mxOfR','LgyVx','SxWRq','RFRTy','nJQws','1477644MnMYzG','QkICq','state','mwUpd','kvgmQ','710006IVRZhF','BnOnq','passed','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','zboZt','failFastActive','lockFilePath','shouldFailFast','path','message','6kenPhj','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','getFailedTestsCount','failFast.active','_CI]\x20Polling\x20started\x20with\x20interval:\x20','fileHelper','failFastConfig'];a132_0x5ed5=function(){return _0x5ef736;};return a132_0x5ed5();}function a132_0x7799(_0x2cf439,_0xe7eb1b){const _0x5ed563=a132_0x5ed5();return a132_0x7799=function(_0x77997b,_0x238bf2){_0x77997b=_0x77997b-0x137;let _0x43689a=_0x5ed563[_0x77997b];return _0x43689a;},a132_0x7799(_0x2cf439,_0xe7eb1b);}const fs=require('fs'),path=require(a132_0x57bd11(0x17a)),FileHelper=require('./fileHelper'),RequestUtils=require(a132_0x57bd11(0x139)),logger=require(a132_0x57bd11(0x19e))[a132_0x57bd11(0x1b9)],POLLING_INTERVAL=0x2710,TAG=a132_0x57bd11(0x148);class FailFastManager{constructor(_0xfa4490,_0x4b392a,_0x53016c){const _0x81b70b=a132_0x57bd11,_0x53b89f={};_0x53b89f[_0x81b70b(0x185)]=function(_0x211636,_0x58c267){return _0x211636+_0x58c267;},_0x53b89f['mLJmF']='\x0aStack:\x20',_0x53b89f[_0x81b70b(0x176)]=function(_0x26dbf7,_0x2e5efc){return _0x26dbf7||_0x2e5efc;},_0x53b89f[_0x81b70b(0x167)]=_0x81b70b(0x13e),_0x53b89f[_0x81b70b(0x16a)]=_0x81b70b(0x141),_0x53b89f[_0x81b70b(0x16e)]=_0x81b70b(0x17f);const _0x3acc45=_0x53b89f;this[_0x81b70b(0x182)]=_0x3acc45['zboZt'](_0xfa4490,{}),this[_0x81b70b(0x161)]=_0x4b392a,this[_0x81b70b(0x192)]=_0x53016c,this[_0x81b70b(0x137)]=!!(process[_0x81b70b(0x147)][_0x81b70b(0x190)]&&process[_0x81b70b(0x147)][_0x81b70b(0x1a9)]&&process[_0x81b70b(0x147)][_0x81b70b(0x1a5)]);const _0x20e3fe=this['failFastConfig']['workingDir'];this['stateFilePath']=path[_0x81b70b(0x15e)](_0x20e3fe,_0x3acc45[_0x81b70b(0x167)]),this[_0x81b70b(0x178)]=path['join'](_0x20e3fe,_0x3acc45[_0x81b70b(0x16a)]),this[_0x81b70b(0x14d)]=path[_0x81b70b(0x15e)](_0x20e3fe,_0x3acc45[_0x81b70b(0x16e)]),this[_0x81b70b(0x181)]=new FileHelper(this[_0x81b70b(0x182)],this[_0x81b70b(0x1aa)],this[_0x81b70b(0x178)],this[_0x81b70b(0x13a)]()),this[_0x81b70b(0x16f)]=this[_0x81b70b(0x13a)](),this['pollingInterval']=null,this[_0x81b70b(0x137)]&&(this[_0x81b70b(0x1a3)]=new Set()),this['_initializeStateFromFile']()[_0x81b70b(0x13f)](_0xdf15c8=>{const _0x1816d0=_0x81b70b;logger[_0x1816d0(0x189)]('['+TAG+_0x1816d0(0x18d)+_0xdf15c8[_0x1816d0(0x17b)]+(_0xdf15c8[_0x1816d0(0x18c)]?_0x3acc45['dnQXf'](_0x3acc45['mLJmF'],_0xdf15c8[_0x1816d0(0x18c)]):'')),this[_0x1816d0(0x16f)]=this[_0x1816d0(0x13a)]();}),this[_0x81b70b(0x137)]&&this[_0x81b70b(0x19a)](),logger[_0x81b70b(0x164)]('['+TAG+']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20'+this[_0x81b70b(0x182)][_0x81b70b(0x195)]+_0x81b70b(0x1ba)+this['isCIMode']);}[a132_0x57bd11(0x13a)](){const _0x29f540={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x29f540;}async['_initializeStateFromFile'](){const _0x3a592d=a132_0x57bd11,_0x27f0cc={};_0x27f0cc[_0x3a592d(0x173)]=function(_0x453355,_0x102d68){return _0x453355+_0x102d68;},_0x27f0cc['naomp']='\x0aStack:\x20';const _0x4d411c=_0x27f0cc;if(this[_0x3a592d(0x137)])try{fs['existsSync'](this[_0x3a592d(0x14d)])&&(this[_0x3a592d(0x16f)][_0x3a592d(0x177)]=!![],logger[_0x3a592d(0x164)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.'));}catch(_0x5a5e4a){logger[_0x3a592d(0x189)]('['+TAG+_0x3a592d(0x1b1)+_0x5a5e4a[_0x3a592d(0x17b)]+(_0x5a5e4a[_0x3a592d(0x18c)]?_0x4d411c[_0x3a592d(0x173)](_0x4d411c[_0x3a592d(0x1b3)],_0x5a5e4a[_0x3a592d(0x18c)]):''));}else try{const _0x3d9665=await this['fileHelper'][_0x3a592d(0x154)]();if(_0x3d9665)this[_0x3a592d(0x16f)]={...this[_0x3a592d(0x13a)](),..._0x3d9665,'uniqueFailedTests':new Set(_0x3d9665[_0x3a592d(0x15f)]||[])},logger['debug']('['+TAG+_0x3a592d(0x1a4));else{logger[_0x3a592d(0x164)]('['+TAG+_0x3a592d(0x18f));const _0x859337=this[_0x3a592d(0x13a)](),_0x16aea8={..._0x859337,'uniqueFailedTests':Array['from'](_0x859337[_0x3a592d(0x15f)])};await this[_0x3a592d(0x181)][_0x3a592d(0x158)](_0x16aea8),this[_0x3a592d(0x16f)]=_0x859337;}}catch(_0x4a45e9){logger[_0x3a592d(0x164)]('['+TAG+'_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20'+_0x4a45e9[_0x3a592d(0x17b)]+(_0x4a45e9[_0x3a592d(0x18c)]?_0x4d411c[_0x3a592d(0x173)](_0x4d411c[_0x3a592d(0x1b3)],_0x4a45e9['stack']):'')),this[_0x3a592d(0x16f)]=this[_0x3a592d(0x13a)]();}}async[a132_0x57bd11(0x188)](_0x38fca6,_0x679b83){const _0xb5f734=a132_0x57bd11,_0x4235c8={};_0x4235c8['QclcB']=function(_0x5cc17c,_0x54fa41){return _0x5cc17c>_0x54fa41;},_0x4235c8[_0xb5f734(0x199)]=_0xb5f734(0x1a0),_0x4235c8[_0xb5f734(0x162)]=_0xb5f734(0x174),_0x4235c8[_0xb5f734(0x1b4)]=function(_0x5892e3,_0x4d8e8f){return _0x5892e3+_0x4d8e8f;},_0x4235c8['dnFbr']='\x0aStack:\x20',_0x4235c8[_0xb5f734(0x171)]=function(_0x152508,_0x588b7a){return _0x152508||_0x588b7a;};const _0x33822b=_0x4235c8;if(this[_0xb5f734(0x137)])this[_0xb5f734(0x16f)]['totalTests']+=0x1,_0x679b83&&_0x33822b[_0xb5f734(0x13d)](_0x679b83[_0xb5f734(0x194)],0x0)&&(!this['reportedFailuresToAPI']['has'](_0x38fca6)&&(await this[_0xb5f734(0x1af)](_0x38fca6),this[_0xb5f734(0x1a3)][_0xb5f734(0x165)](_0x38fca6)));else try{const _0x356355={'fullName':_0x38fca6,'status':_0x679b83&&_0x33822b[_0xb5f734(0x13d)](_0x679b83['length'],0x0)?_0x33822b[_0xb5f734(0x199)]:_0x33822b[_0xb5f734(0x162)]},_0x3c7e3f=await this[_0xb5f734(0x181)][_0xb5f734(0x144)](_0x356355);this[_0xb5f734(0x16f)]={...this[_0xb5f734(0x13a)](),..._0x3c7e3f[_0xb5f734(0x18e)],'uniqueFailedTests':new Set(_0x3c7e3f[_0xb5f734(0x18e)][_0xb5f734(0x15f)]||[])};}catch(_0x32ce3f){logger[_0xb5f734(0x189)]('['+TAG+_0xb5f734(0x1a7)+_0x32ce3f[_0xb5f734(0x17b)]+(_0x32ce3f[_0xb5f734(0x18c)]?_0x33822b[_0xb5f734(0x1b4)](_0x33822b[_0xb5f734(0x1b5)],_0x32ce3f[_0xb5f734(0x18c)]):''));try{const _0x3aea9e=await this[_0xb5f734(0x181)]['readState']();this[_0xb5f734(0x16f)]={...this[_0xb5f734(0x13a)](),..._0x33822b['kvgmQ'](_0x3aea9e,{}),'uniqueFailedTests':new Set(_0x3aea9e?_0x3aea9e[_0xb5f734(0x15f)]||[]:[])},logger[_0xb5f734(0x164)]('['+TAG+_0xb5f734(0x15c));}catch(_0x3d6890){logger[_0xb5f734(0x189)]('['+TAG+_0xb5f734(0x175)+_0x3d6890[_0xb5f734(0x17b)]+(_0x3d6890[_0xb5f734(0x18c)]?_0x33822b['FpBgD'](_0x33822b['dnFbr'],_0x3d6890[_0xb5f734(0x18c)]):'')),this['state']=this[_0xb5f734(0x13a)]();}}}async['_sendFailedTestsToAPI'](_0x4d6e6a){const _0x125d1e=a132_0x57bd11,_0x135067={};_0x135067[_0x125d1e(0x1a2)]=function(_0x283dd8,_0x3a99e8){return _0x283dd8+_0x3a99e8;},_0x135067[_0x125d1e(0x160)]=_0x125d1e(0x1b8);const _0x5316c7=_0x135067;if(!this[_0x125d1e(0x137)]||!_0x4d6e6a)return;try{logger[_0x125d1e(0x164)]('['+TAG+_0x125d1e(0x1a8)+_0x4d6e6a);const _0x4464c4={};_0x4464c4['buildName']=this[_0x125d1e(0x161)],_0x4464c4['projectName']=this['projectName'],_0x4464c4[_0x125d1e(0x197)]=[_0x4d6e6a],_0x4464c4['buildRunIdentifier']=process['env'][_0x125d1e(0x190)],await RequestUtils[_0x125d1e(0x140)](_0x4464c4);}catch(_0x2ebc62){logger['error']('['+TAG+_0x125d1e(0x193)+_0x4d6e6a+_0x125d1e(0x156)+_0x2ebc62['message']+(_0x2ebc62['stack']?_0x5316c7[_0x125d1e(0x1a2)](_0x5316c7[_0x125d1e(0x160)],_0x2ebc62[_0x125d1e(0x18c)]):''));}}async[a132_0x57bd11(0x1ad)](){const _0x3e6a7f=a132_0x57bd11,_0xdcae39={};_0xdcae39['ptRTW']=function(_0x31b3c0,_0x961156){return _0x31b3c0===_0x961156;},_0xdcae39[_0x3e6a7f(0x1b6)]='number',_0xdcae39[_0x3e6a7f(0x198)]=function(_0x17e02e,_0x599e7f){return _0x17e02e+_0x599e7f;},_0xdcae39[_0x3e6a7f(0x1a6)]=_0x3e6a7f(0x1b8),_0xdcae39[_0x3e6a7f(0x16b)]=function(_0x362f79,_0x42371d){return _0x362f79!==_0x42371d;};const _0x3b3c98=_0xdcae39;if(!this['isCIMode'])return 0x0;try{const _0x4f5eb1={};_0x4f5eb1[_0x3e6a7f(0x161)]=this[_0x3e6a7f(0x161)],_0x4f5eb1[_0x3e6a7f(0x192)]=this[_0x3e6a7f(0x192)],_0x4f5eb1[_0x3e6a7f(0x1ae)]=process['env'][_0x3e6a7f(0x190)];const _0x2a0bf2=await RequestUtils[_0x3e6a7f(0x17e)](_0x4f5eb1);return logger[_0x3e6a7f(0x164)]('['+TAG+_0x3e6a7f(0x152)+_0x2a0bf2),_0x3b3c98[_0x3e6a7f(0x14e)](typeof _0x2a0bf2,_0x3b3c98[_0x3e6a7f(0x1b6)])?_0x2a0bf2:0x0;}catch(_0x1496ed){return logger[_0x3e6a7f(0x189)]('['+TAG+_0x3e6a7f(0x184)+_0x1496ed[_0x3e6a7f(0x17b)]+(_0x1496ed[_0x3e6a7f(0x18c)]?_0x3b3c98[_0x3e6a7f(0x198)](_0x3b3c98[_0x3e6a7f(0x1a6)],_0x1496ed[_0x3e6a7f(0x18c)]):'')),_0x3b3c98[_0x3e6a7f(0x16b)](this[_0x3e6a7f(0x16f)][_0x3e6a7f(0x13b)],undefined)?this[_0x3e6a7f(0x16f)][_0x3e6a7f(0x13b)]:0x0;}}async[a132_0x57bd11(0x145)](){const _0x38b4cf=a132_0x57bd11,_0x30a942={};_0x30a942[_0x38b4cf(0x169)]=function(_0x1968e3,_0x351734){return _0x1968e3!==_0x351734;},_0x30a942['WUcAE']=function(_0x262c0d,_0xf03e20){return _0x262c0d+_0xf03e20;},_0x30a942[_0x38b4cf(0x187)]=_0x38b4cf(0x1b8);const _0x2f737c=_0x30a942;if(!this[_0x38b4cf(0x137)])return;try{const _0x4646a4=await this['_fetchAPIFailedCount']();_0x2f737c['LgyVx'](_0x4646a4,this['state']['lastAPIFailedCount'])&&(logger[_0x38b4cf(0x164)]('['+TAG+_0x38b4cf(0x1b0)+_0x4646a4+_0x38b4cf(0x157)+this['state'][_0x38b4cf(0x13b)]+')'),this[_0x38b4cf(0x16f)]['lastAPIFailedCount']=_0x4646a4);}catch(_0x1697d4){logger['error']('['+TAG+_0x38b4cf(0x1ab)+_0x1697d4['message']+(_0x1697d4['stack']?_0x2f737c[_0x38b4cf(0x14c)](_0x2f737c[_0x38b4cf(0x187)],_0x1697d4[_0x38b4cf(0x18c)]):''));}}async[a132_0x57bd11(0x19a)](){const _0x121de5=a132_0x57bd11,_0x1217c1={'aTqKn':function(_0x5ec3b2,_0x5a41cc,_0x296213){return _0x5ec3b2(_0x5a41cc,_0x296213);}};this[_0x121de5(0x138)]&&this[_0x121de5(0x196)](),this[_0x121de5(0x137)]&&(await this[_0x121de5(0x145)](),this['pollingInterval']=_0x1217c1[_0x121de5(0x1b7)](setInterval,async()=>{await this['_pollFailedTests']();},POLLING_INTERVAL),logger[_0x121de5(0x164)]('['+TAG+_0x121de5(0x180)+POLLING_INTERVAL+_0x121de5(0x163)));}[a132_0x57bd11(0x196)](){const _0x307971=a132_0x57bd11,_0x4ac691={'XzuJx':function(_0x1c0e71,_0x2b0f1a){return _0x1c0e71(_0x2b0f1a);}};this[_0x307971(0x138)]&&(_0x4ac691[_0x307971(0x19f)](clearInterval,this[_0x307971(0x138)]),this[_0x307971(0x138)]=null,logger[_0x307971(0x164)]('['+TAG+']\x20Polling\x20stopped.'));}async[a132_0x57bd11(0x179)](){const _0x4ea683=a132_0x57bd11,_0x36544c={};_0x36544c['jJZPN']=function(_0x2f36c6,_0x3c2793){return _0x2f36c6===_0x3c2793;},_0x36544c['mwUpd']=function(_0x156e6b,_0x434809){return _0x156e6b<=_0x434809;},_0x36544c[_0x4ea683(0x19d)]=function(_0x237b83,_0x482f18){return _0x237b83+_0x482f18;},_0x36544c[_0x4ea683(0x18a)]='\x0aStack:\x20',_0x36544c[_0x4ea683(0x150)]=function(_0x435a95,_0x43a9da){return _0x435a95!==_0x43a9da;},_0x36544c[_0x4ea683(0x168)]=function(_0x343e9e,_0x7e145c){return _0x343e9e>=_0x7e145c;},_0x36544c[_0x4ea683(0x15d)]=function(_0x38d556,_0x53c019){return _0x38d556+_0x53c019;};const _0x12af6c=_0x36544c,{failureThresholdCount:_0x335920}=this[_0x4ea683(0x182)];if(_0x12af6c[_0x4ea683(0x186)](_0x335920,null)||_0x12af6c[_0x4ea683(0x186)](_0x335920,undefined)||_0x12af6c[_0x4ea683(0x170)](_0x335920,0x0))return logger[_0x4ea683(0x164)]('['+TAG+']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.'),![];if(this[_0x4ea683(0x137)]){try{if(fs[_0x4ea683(0x14a)](this['failFastActiveMarkerPath']))return logger[_0x4ea683(0x164)]('['+TAG+_0x4ea683(0x1a1)),!this[_0x4ea683(0x16f)][_0x4ea683(0x177)]&&(this['state']['failFastActive']=!![]),this[_0x4ea683(0x196)](),!![];}catch(_0x4a4fbf){logger[_0x4ea683(0x189)]('['+TAG+'_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20'+_0x4a4fbf[_0x4ea683(0x17b)]+(_0x4a4fbf[_0x4ea683(0x18c)]?_0x12af6c['hcPeO'](_0x12af6c[_0x4ea683(0x18a)],_0x4a4fbf[_0x4ea683(0x18c)]):''));}const _0x1215d5=_0x12af6c[_0x4ea683(0x150)](this[_0x4ea683(0x16f)][_0x4ea683(0x13b)],undefined)?this[_0x4ea683(0x16f)][_0x4ea683(0x13b)]:0x0;if(_0x12af6c[_0x4ea683(0x168)](_0x1215d5,_0x335920)){logger['info']('['+TAG+_0x4ea683(0x155)+_0x1215d5+_0x4ea683(0x153)+_0x335920+'.');try{fs['writeFileSync'](this[_0x4ea683(0x14d)],new Date()['toISOString']()),logger['debug']('['+TAG+_0x4ea683(0x191)+this[_0x4ea683(0x14d)]),this[_0x4ea683(0x16f)][_0x4ea683(0x177)]=!![];}catch(_0x477466){logger[_0x4ea683(0x189)]('['+TAG+'_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20'+_0x477466[_0x4ea683(0x17b)]+(_0x477466['stack']?_0x12af6c[_0x4ea683(0x19d)](_0x12af6c[_0x4ea683(0x18a)],_0x477466[_0x4ea683(0x18c)]):''));}return this['stopPolling'](),!![];}}else{let _0x10a3d7;try{_0x10a3d7=await this[_0x4ea683(0x181)][_0x4ea683(0x154)]();if(!_0x10a3d7)return logger[_0x4ea683(0x14f)]('['+TAG+_0x4ea683(0x19b)),![];}catch(_0x18e1c1){return logger[_0x4ea683(0x189)]('['+TAG+_0x4ea683(0x17d)+_0x18e1c1[_0x4ea683(0x17b)]+(_0x18e1c1['stack']?_0x12af6c[_0x4ea683(0x15d)](_0x12af6c[_0x4ea683(0x18a)],_0x18e1c1[_0x4ea683(0x18c)]):'')),![];}this[_0x4ea683(0x16f)]={...this[_0x4ea683(0x13a)](),..._0x10a3d7,'uniqueFailedTests':new Set(_0x10a3d7[_0x4ea683(0x15f)]||[])};if(this['state'][_0x4ea683(0x177)])return logger[_0x4ea683(0x164)]('['+TAG+'_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.'),!![];const _0x387c40=this[_0x4ea683(0x16f)]['uniqueFailedTests'],_0x209829=_0x387c40[_0x4ea683(0x146)];if(_0x12af6c[_0x4ea683(0x168)](_0x209829,_0x335920)){try{logger[_0x4ea683(0x149)]('['+TAG+_0x4ea683(0x15b)+_0x209829+_0x4ea683(0x153)+_0x335920+'.'),this[_0x4ea683(0x16f)][_0x4ea683(0x177)]=!![];}catch(_0x5d4309){logger[_0x4ea683(0x189)]('['+TAG+_0x4ea683(0x18b)+_0x5d4309['message']+(_0x5d4309[_0x4ea683(0x18c)]?_0x12af6c[_0x4ea683(0x15d)](_0x12af6c[_0x4ea683(0x18a)],_0x5d4309[_0x4ea683(0x18c)]):''));}return!![];}}return![];}async['cleanup'](){const _0x3163bd=a132_0x57bd11,_0x27443e={};_0x27443e[_0x3163bd(0x15a)]=function(_0x58bb0e,_0x2d7655){return _0x58bb0e+_0x2d7655;},_0x27443e[_0x3163bd(0x16c)]=_0x3163bd(0x1b8);const _0x9ab85=_0x27443e;this[_0x3163bd(0x196)]();if(this[_0x3163bd(0x137)])logger[_0x3163bd(0x164)]('['+TAG+_0x3163bd(0x159));else try{const _0x64a5e1={...this['state'],'uniqueFailedTests':Array[_0x3163bd(0x151)](this[_0x3163bd(0x16f)][_0x3163bd(0x15f)]||new Set())};await this['fileHelper']['writeState'](_0x64a5e1),logger[_0x3163bd(0x164)]('['+TAG+_0x3163bd(0x14b));}catch(_0x484d02){logger[_0x3163bd(0x189)]('['+TAG+_0x3163bd(0x19c)+_0x484d02[_0x3163bd(0x17b)]+(_0x484d02[_0x3163bd(0x18c)]?_0x9ab85[_0x3163bd(0x15a)](_0x9ab85['nJQws'],_0x484d02[_0x3163bd(0x18c)]):''));}}}module[a132_0x57bd11(0x13c)]=FailFastManager;
|
|
1
|
+
function a132_0x32c3(_0x466996,_0xeb9d11){const _0x48ae26=a132_0x48ae();return a132_0x32c3=function(_0x32c363,_0x142311){_0x32c363=_0x32c363-0x152;let _0x58ba56=_0x48ae26[_0x32c363];return _0x58ba56;},a132_0x32c3(_0x466996,_0xeb9d11);}function a132_0x48ae(){const _0x3d061f=['lastAPIFailedCount','recordTestResult','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','2888088OSOwqj','jHTHN','mHyMl','state','buildName','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','318clrKnU','_sendFailedTestsToAPI','error','toISOString','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','LPZRl','BROWSERSTACK_NODE_INDEX','failedTests','length','_pollFailedTests','xvqjX','from','IwqgX','HyMjB',']\x20Polling\x20stopped.','failFastActiveMarkerPath','NdIWt','_CI]\x20API\x20failed\x20count\x20updated:\x20','xdqhv','warn','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','./fileHelper','36jJwBuK','NxjtG','yEtHw','env','cleanup','join','942728vZEsTz','Xtpgt','jLApT','projectName','4612mlZlMB','stack','_initializeStateFromFile','totalTests','QlxEP','_CI]\x20Polling\x20started\x20with\x20interval:\x20','\x20(was\x20','CssiQ','vTlKZ','stateFilePath','_Local]\x20State\x20initialized\x20from\x20file.','has','lockFilePath','buildRunIdentifier','tCSgq','FdLwQ','failFast.active','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','getFailedTestsCount','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','failed','BahvX','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','uniqueFailedTests','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','ikvtN','fileHelper','oWeqh','96320wfkvrY','number','JBSSh','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','winstonLogger','zgamR','kvHUW','_getDefaultState','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','yzRoE','failFastConfig','putFailedTests','writeState','BROWSERSTACK_BUILD_RUN_IDENTIFIER','add','newState','size','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','isCIMode','hDFlQ',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','ZJmox','pfqZc','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','failureThresholdCount','shouldFailFast','2131272XHpcBl','_fetchAPIFailedCount','4377wOPjww','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20',',\x20CI\x20Mode:\x20','\x0aStack:\x20','../logger','workingDir','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20',',\x20threshold:\x20','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','NdKiZ','onTestDone','30068030fSUyRP','debug','startPolling','message','existsSync','FailFastManager','ms.','info','AVaRt','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','7927880NvRMBR','rCXlx','reportedFailuresToAPI','HiWqP','passed','pollingInterval','pPZDG','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','path',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','BROWSERSTACK_TOTAL_NODE_COUNT','readState','failFastActive','_CI]\x20Error\x20during\x20polling\x20logic:\x20','BCycx','mJkJZ','stopPolling'];a132_0x48ae=function(){return _0x3d061f;};return a132_0x48ae();}const a132_0x2fd50e=a132_0x32c3;(function(_0x5aa715,_0x185154){const _0x620e35=a132_0x32c3,_0x1b05b3=_0x5aa715();while(!![]){try{const _0x987b36=-parseInt(_0x620e35(0x1d4))/0x1+-parseInt(_0x620e35(0x1b1))/0x2+parseInt(_0x620e35(0x188))/0x3*(-parseInt(_0x620e35(0x1d8))/0x4)+parseInt(_0x620e35(0x19d))/0x5+-parseInt(_0x620e35(0x1b7))/0x6*(parseInt(_0x620e35(0x16b))/0x7)+parseInt(_0x620e35(0x186))/0x8*(parseInt(_0x620e35(0x1ce))/0x9)+parseInt(_0x620e35(0x193))/0xa;if(_0x987b36===_0x185154)break;else _0x1b05b3['push'](_0x1b05b3['shift']());}catch(_0xef9d07){_0x1b05b3['push'](_0x1b05b3['shift']());}}}(a132_0x48ae,0xd1e58));const fs=require('fs'),path=require(a132_0x2fd50e(0x1a5)),FileHelper=require(a132_0x2fd50e(0x1cd)),RequestUtils=require('./requestUtils'),logger=require(a132_0x2fd50e(0x18c))[a132_0x2fd50e(0x170)],POLLING_INTERVAL=0x2710,TAG=a132_0x2fd50e(0x198);class FailFastManager{constructor(_0x30fa9f,_0x5a2d41,_0x29f9b5){const _0x5e5d8a=a132_0x2fd50e,_0x4b39aa={};_0x4b39aa[_0x5e5d8a(0x17f)]=function(_0x6436b4,_0x4bb174){return _0x6436b4+_0x4bb174;},_0x4b39aa['OIYKY']=_0x5e5d8a(0x18b),_0x4b39aa[_0x5e5d8a(0x1c5)]=function(_0x2db917,_0x2cba14){return _0x2db917||_0x2cba14;},_0x4b39aa['kvHUW']='failFastState.json',_0x4b39aa[_0x5e5d8a(0x1a0)]='failFastState.lock',_0x4b39aa[_0x5e5d8a(0x1c2)]=_0x5e5d8a(0x15f);const _0x361d13=_0x4b39aa;this[_0x5e5d8a(0x176)]=_0x361d13[_0x5e5d8a(0x1c5)](_0x30fa9f,{}),this['buildName']=_0x5a2d41,this[_0x5e5d8a(0x1d7)]=_0x29f9b5,this[_0x5e5d8a(0x17e)]=!!(process[_0x5e5d8a(0x1d1)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER']&&process[_0x5e5d8a(0x1d1)][_0x5e5d8a(0x1be)]&&process[_0x5e5d8a(0x1d1)][_0x5e5d8a(0x1a7)]);const _0x23d7ed=this[_0x5e5d8a(0x176)][_0x5e5d8a(0x18d)];this[_0x5e5d8a(0x158)]=path[_0x5e5d8a(0x1d3)](_0x23d7ed,_0x361d13[_0x5e5d8a(0x172)]),this[_0x5e5d8a(0x15b)]=path[_0x5e5d8a(0x1d3)](_0x23d7ed,_0x361d13[_0x5e5d8a(0x1a0)]),this[_0x5e5d8a(0x1c7)]=path['join'](_0x23d7ed,_0x361d13[_0x5e5d8a(0x1c2)]),this['fileHelper']=new FileHelper(this[_0x5e5d8a(0x176)],this[_0x5e5d8a(0x158)],this[_0x5e5d8a(0x15b)],this[_0x5e5d8a(0x173)]()),this[_0x5e5d8a(0x1b4)]=this[_0x5e5d8a(0x173)](),this[_0x5e5d8a(0x1a2)]=null,this[_0x5e5d8a(0x17e)]&&(this['reportedFailuresToAPI']=new Set()),this[_0x5e5d8a(0x1da)]()['catch'](_0x317ed0=>{const _0x53127a=_0x5e5d8a;logger[_0x53127a(0x1b9)]('['+TAG+_0x53127a(0x1a6)+_0x317ed0[_0x53127a(0x196)]+(_0x317ed0[_0x53127a(0x1d9)]?_0x361d13[_0x53127a(0x17f)](_0x361d13['OIYKY'],_0x317ed0[_0x53127a(0x1d9)]):'')),this[_0x53127a(0x1b4)]=this[_0x53127a(0x173)]();}),this[_0x5e5d8a(0x17e)]&&this[_0x5e5d8a(0x195)](),logger[_0x5e5d8a(0x194)]('['+TAG+_0x5e5d8a(0x180)+this[_0x5e5d8a(0x176)][_0x5e5d8a(0x184)]+_0x5e5d8a(0x18a)+this[_0x5e5d8a(0x17e)]);}[a132_0x2fd50e(0x173)](){const _0x579462={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x579462;}async[a132_0x2fd50e(0x1da)](){const _0x319805=a132_0x2fd50e,_0x26a794={};_0x26a794['NdIWt']=function(_0x1eb27d,_0x541851){return _0x1eb27d+_0x541851;},_0x26a794[_0x319805(0x1ab)]='\x0aStack:\x20',_0x26a794[_0x319805(0x157)]=function(_0x100df4,_0x4b0526){return _0x100df4+_0x4b0526;};const _0x3588e9=_0x26a794;if(this[_0x319805(0x17e)])try{fs[_0x319805(0x197)](this['failFastActiveMarkerPath'])&&(this[_0x319805(0x1b4)][_0x319805(0x1a9)]=!![],logger[_0x319805(0x194)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.'));}catch(_0x2e5315){logger[_0x319805(0x1b9)]('['+TAG+_0x319805(0x189)+_0x2e5315['message']+(_0x2e5315[_0x319805(0x1d9)]?_0x3588e9[_0x319805(0x1c8)](_0x3588e9['BCycx'],_0x2e5315['stack']):''));}else try{const _0x5b4d29=await this[_0x319805(0x169)][_0x319805(0x1a8)]();if(_0x5b4d29)this[_0x319805(0x1b4)]={...this['_getDefaultState'](),..._0x5b4d29,'uniqueFailedTests':new Set(_0x5b4d29[_0x319805(0x166)]||[])},logger[_0x319805(0x194)]('['+TAG+_0x319805(0x159));else{logger[_0x319805(0x194)]('['+TAG+_0x319805(0x1bb));const _0x3148ea=this[_0x319805(0x173)](),_0x103231={..._0x3148ea,'uniqueFailedTests':Array[_0x319805(0x1c3)](_0x3148ea[_0x319805(0x166)])};await this[_0x319805(0x169)][_0x319805(0x178)](_0x103231),this['state']=_0x3148ea;}}catch(_0x564918){logger[_0x319805(0x194)]('['+TAG+_0x319805(0x167)+_0x564918['message']+(_0x564918['stack']?_0x3588e9[_0x319805(0x157)](_0x3588e9[_0x319805(0x1ab)],_0x564918['stack']):'')),this[_0x319805(0x1b4)]=this[_0x319805(0x173)]();}}async[a132_0x2fd50e(0x192)](_0x2fef9f,_0x38dcf0){const _0x1eac87=a132_0x2fd50e,_0x398f34={};_0x398f34[_0x1eac87(0x1b3)]=function(_0x5cc954,_0x1fcc98){return _0x5cc954>_0x1fcc98;},_0x398f34[_0x1eac87(0x1ac)]=_0x1eac87(0x163),_0x398f34[_0x1eac87(0x16d)]=_0x1eac87(0x1a1),_0x398f34[_0x1eac87(0x1b2)]=function(_0x37db9c,_0x41ea7c){return _0x37db9c+_0x41ea7c;},_0x398f34['pfqZc']=_0x1eac87(0x18b),_0x398f34['AVaRt']=function(_0x3dd099,_0xcc7ff9){return _0x3dd099||_0xcc7ff9;};const _0x197b1c=_0x398f34;if(this['isCIMode'])this['state'][_0x1eac87(0x152)]+=0x1,_0x38dcf0&&_0x197b1c[_0x1eac87(0x1b3)](_0x38dcf0[_0x1eac87(0x1c0)],0x0)&&(!this[_0x1eac87(0x19f)][_0x1eac87(0x15a)](_0x2fef9f)&&(await this[_0x1eac87(0x1b8)](_0x2fef9f),this[_0x1eac87(0x19f)][_0x1eac87(0x17a)](_0x2fef9f)));else try{const _0x18355a={'fullName':_0x2fef9f,'status':_0x38dcf0&&_0x197b1c[_0x1eac87(0x1b3)](_0x38dcf0[_0x1eac87(0x1c0)],0x0)?_0x197b1c[_0x1eac87(0x1ac)]:_0x197b1c[_0x1eac87(0x16d)]},_0x470a36=await this[_0x1eac87(0x169)][_0x1eac87(0x1af)](_0x18355a);this[_0x1eac87(0x1b4)]={...this['_getDefaultState'](),..._0x470a36[_0x1eac87(0x17b)],'uniqueFailedTests':new Set(_0x470a36[_0x1eac87(0x17b)][_0x1eac87(0x166)]||[])};}catch(_0x5a2932){logger['error']('['+TAG+'_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20'+_0x5a2932[_0x1eac87(0x196)]+(_0x5a2932['stack']?_0x197b1c[_0x1eac87(0x1b2)](_0x197b1c[_0x1eac87(0x182)],_0x5a2932[_0x1eac87(0x1d9)]):''));try{const _0x3de32f=await this[_0x1eac87(0x169)]['readState']();this[_0x1eac87(0x1b4)]={...this[_0x1eac87(0x173)](),..._0x197b1c[_0x1eac87(0x19b)](_0x3de32f,{}),'uniqueFailedTests':new Set(_0x3de32f?_0x3de32f[_0x1eac87(0x166)]||[]:[])},logger[_0x1eac87(0x194)]('['+TAG+_0x1eac87(0x165));}catch(_0x5bd84a){logger[_0x1eac87(0x1b9)]('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0x5bd84a[_0x1eac87(0x196)]+(_0x5bd84a[_0x1eac87(0x1d9)]?_0x197b1c[_0x1eac87(0x1b2)](_0x197b1c[_0x1eac87(0x182)],_0x5bd84a[_0x1eac87(0x1d9)]):'')),this['state']=this['_getDefaultState']();}}}async[a132_0x2fd50e(0x1b8)](_0x591214){const _0x354ec5=a132_0x2fd50e,_0x460dca={};_0x460dca[_0x354ec5(0x19e)]=function(_0x109659,_0x59494b){return _0x109659+_0x59494b;},_0x460dca['tCSgq']=_0x354ec5(0x18b);const _0x2c8941=_0x460dca;if(!this[_0x354ec5(0x17e)]||!_0x591214)return;try{logger['debug']('['+TAG+_0x354ec5(0x1cc)+_0x591214);const _0x468cf9={};_0x468cf9['buildName']=this[_0x354ec5(0x1b5)],_0x468cf9[_0x354ec5(0x1d7)]=this[_0x354ec5(0x1d7)],_0x468cf9[_0x354ec5(0x1bf)]=[_0x591214],_0x468cf9[_0x354ec5(0x15c)]=process['env'][_0x354ec5(0x179)],await RequestUtils[_0x354ec5(0x177)](_0x468cf9);}catch(_0x80a213){logger[_0x354ec5(0x1b9)]('['+TAG+'_CI]\x20Error\x20sending\x20failed\x20test\x20'+_0x591214+'\x20to\x20API:\x20'+_0x80a213[_0x354ec5(0x196)]+(_0x80a213[_0x354ec5(0x1d9)]?_0x2c8941['rCXlx'](_0x2c8941[_0x354ec5(0x15d)],_0x80a213[_0x354ec5(0x1d9)]):''));}}async[a132_0x2fd50e(0x187)](){const _0x543ecf=a132_0x2fd50e,_0x234ba9={};_0x234ba9['eVVRg']=function(_0x27b64f,_0x23d327){return _0x27b64f===_0x23d327;},_0x234ba9[_0x543ecf(0x1a3)]=_0x543ecf(0x16c),_0x234ba9['QlxEP']=function(_0x11692f,_0x4d3c53){return _0x11692f+_0x4d3c53;},_0x234ba9[_0x543ecf(0x1bd)]=_0x543ecf(0x18b),_0x234ba9[_0x543ecf(0x175)]=function(_0x4164a2,_0xe190ed){return _0x4164a2!==_0xe190ed;};const _0x4f7256=_0x234ba9;if(!this[_0x543ecf(0x17e)])return 0x0;try{const _0x26a147={};_0x26a147[_0x543ecf(0x1b5)]=this[_0x543ecf(0x1b5)],_0x26a147[_0x543ecf(0x1d7)]=this[_0x543ecf(0x1d7)],_0x26a147[_0x543ecf(0x15c)]=process[_0x543ecf(0x1d1)][_0x543ecf(0x179)];const _0x3cfb66=await RequestUtils[_0x543ecf(0x161)](_0x26a147);return logger[_0x543ecf(0x194)]('['+TAG+_0x543ecf(0x1a4)+_0x3cfb66),_0x4f7256['eVVRg'](typeof _0x3cfb66,_0x4f7256['pPZDG'])?_0x3cfb66:0x0;}catch(_0x181d64){return logger[_0x543ecf(0x1b9)]('['+TAG+_0x543ecf(0x18e)+_0x181d64[_0x543ecf(0x196)]+(_0x181d64[_0x543ecf(0x1d9)]?_0x4f7256[_0x543ecf(0x153)](_0x4f7256[_0x543ecf(0x1bd)],_0x181d64[_0x543ecf(0x1d9)]):'')),_0x4f7256[_0x543ecf(0x175)](this[_0x543ecf(0x1b4)]['lastAPIFailedCount'],undefined)?this[_0x543ecf(0x1b4)]['lastAPIFailedCount']:0x0;}}async[a132_0x2fd50e(0x1c1)](){const _0xe0d9c7=a132_0x2fd50e,_0x763811={};_0x763811['IwqgX']=function(_0x4eb7aa,_0x504e8a){return _0x4eb7aa!==_0x504e8a;},_0x763811[_0xe0d9c7(0x1d6)]=function(_0x558c2a,_0xe074c0){return _0x558c2a+_0xe074c0;},_0x763811[_0xe0d9c7(0x1ca)]=_0xe0d9c7(0x18b);const _0x25f247=_0x763811;if(!this[_0xe0d9c7(0x17e)])return;try{const _0x1b5d0f=await this[_0xe0d9c7(0x187)]();_0x25f247[_0xe0d9c7(0x1c4)](_0x1b5d0f,this[_0xe0d9c7(0x1b4)][_0xe0d9c7(0x1ae)])&&(logger[_0xe0d9c7(0x194)]('['+TAG+_0xe0d9c7(0x1c9)+_0x1b5d0f+_0xe0d9c7(0x155)+this['state']['lastAPIFailedCount']+')'),this['state'][_0xe0d9c7(0x1ae)]=_0x1b5d0f);}catch(_0x2278a0){logger[_0xe0d9c7(0x1b9)]('['+TAG+_0xe0d9c7(0x1aa)+_0x2278a0[_0xe0d9c7(0x196)]+(_0x2278a0['stack']?_0x25f247[_0xe0d9c7(0x1d6)](_0x25f247['xdqhv'],_0x2278a0[_0xe0d9c7(0x1d9)]):''));}}async[a132_0x2fd50e(0x195)](){const _0x12dd40=a132_0x2fd50e,_0x3d3cfd={'Xtpgt':function(_0x4d5826,_0x376895,_0x515a76){return _0x4d5826(_0x376895,_0x515a76);}};this[_0x12dd40(0x1a2)]&&this['stopPolling'](),this['isCIMode']&&(await this[_0x12dd40(0x1c1)](),this[_0x12dd40(0x1a2)]=_0x3d3cfd[_0x12dd40(0x1d5)](setInterval,async()=>{const _0x401c89=_0x12dd40;await this[_0x401c89(0x1c1)]();},POLLING_INTERVAL),logger[_0x12dd40(0x194)]('['+TAG+_0x12dd40(0x154)+POLLING_INTERVAL+_0x12dd40(0x199)));}[a132_0x2fd50e(0x1ad)](){const _0x42d1d9=a132_0x2fd50e,_0x4d2093={'NdKiZ':function(_0x26f174,_0x16af6f){return _0x26f174(_0x16af6f);}};this[_0x42d1d9(0x1a2)]&&(_0x4d2093[_0x42d1d9(0x191)](clearInterval,this[_0x42d1d9(0x1a2)]),this['pollingInterval']=null,logger[_0x42d1d9(0x194)]('['+TAG+_0x42d1d9(0x1c6)));}async[a132_0x2fd50e(0x185)](){const _0x1009df=a132_0x2fd50e,_0x556d17={};_0x556d17[_0x1009df(0x168)]=function(_0x316fdb,_0x4d3dfd){return _0x316fdb===_0x4d3dfd;},_0x556d17[_0x1009df(0x171)]=function(_0x5d48e5,_0x41e286){return _0x5d48e5<=_0x41e286;},_0x556d17[_0x1009df(0x16a)]=function(_0x7ba057,_0x51ee1a){return _0x7ba057+_0x51ee1a;},_0x556d17['FdLwQ']='\x0aStack:\x20',_0x556d17[_0x1009df(0x1d0)]=function(_0x269122,_0x593992){return _0x269122!==_0x593992;},_0x556d17[_0x1009df(0x156)]=function(_0x4779a6,_0x1ee90a){return _0x4779a6>=_0x1ee90a;},_0x556d17[_0x1009df(0x181)]=function(_0x194327,_0x12b5cc){return _0x194327+_0x12b5cc;};const _0x4dfc85=_0x556d17,{failureThresholdCount:_0x2cad63}=this[_0x1009df(0x176)];if(_0x4dfc85[_0x1009df(0x168)](_0x2cad63,null)||_0x4dfc85[_0x1009df(0x168)](_0x2cad63,undefined)||_0x4dfc85['zgamR'](_0x2cad63,0x0))return logger[_0x1009df(0x194)]('['+TAG+_0x1009df(0x1bc)),![];if(this['isCIMode']){try{if(fs[_0x1009df(0x197)](this[_0x1009df(0x1c7)]))return logger[_0x1009df(0x194)]('['+TAG+_0x1009df(0x16e)),!this[_0x1009df(0x1b4)]['failFastActive']&&(this['state'][_0x1009df(0x1a9)]=!![]),this[_0x1009df(0x1ad)](),!![];}catch(_0x5f379e){logger['error']('['+TAG+_0x1009df(0x189)+_0x5f379e['message']+(_0x5f379e[_0x1009df(0x1d9)]?_0x4dfc85['oWeqh'](_0x4dfc85[_0x1009df(0x15e)],_0x5f379e[_0x1009df(0x1d9)]):''));}const _0x56758c=_0x4dfc85[_0x1009df(0x1d0)](this[_0x1009df(0x1b4)][_0x1009df(0x1ae)],undefined)?this[_0x1009df(0x1b4)][_0x1009df(0x1ae)]:0x0;if(_0x4dfc85[_0x1009df(0x156)](_0x56758c,_0x2cad63)){logger[_0x1009df(0x19a)]('['+TAG+_0x1009df(0x190)+_0x56758c+_0x1009df(0x18f)+_0x2cad63+'.');try{fs['writeFileSync'](this[_0x1009df(0x1c7)],new Date()[_0x1009df(0x1ba)]()),logger[_0x1009df(0x194)]('['+TAG+_0x1009df(0x16f)+this['failFastActiveMarkerPath']),this[_0x1009df(0x1b4)]['failFastActive']=!![];}catch(_0x49452d){logger[_0x1009df(0x1b9)]('['+TAG+_0x1009df(0x160)+_0x49452d[_0x1009df(0x196)]+(_0x49452d[_0x1009df(0x1d9)]?_0x4dfc85[_0x1009df(0x16a)](_0x4dfc85['FdLwQ'],_0x49452d[_0x1009df(0x1d9)]):''));}return this[_0x1009df(0x1ad)](),!![];}}else{let _0x27458f;try{_0x27458f=await this[_0x1009df(0x169)][_0x1009df(0x1a8)]();if(!_0x27458f)return logger[_0x1009df(0x1cb)]('['+TAG+_0x1009df(0x1b0)),![];}catch(_0x1b09a9){return logger[_0x1009df(0x1b9)]('['+TAG+_0x1009df(0x162)+_0x1b09a9[_0x1009df(0x196)]+(_0x1b09a9['stack']?_0x4dfc85['ZJmox'](_0x4dfc85[_0x1009df(0x15e)],_0x1b09a9['stack']):'')),![];}this[_0x1009df(0x1b4)]={...this[_0x1009df(0x173)](),..._0x27458f,'uniqueFailedTests':new Set(_0x27458f[_0x1009df(0x166)]||[])};if(this['state'][_0x1009df(0x1a9)])return logger[_0x1009df(0x194)]('['+TAG+_0x1009df(0x19c)),!![];const _0x1b2406=this[_0x1009df(0x1b4)][_0x1009df(0x166)],_0x491602=_0x1b2406[_0x1009df(0x17c)];if(_0x4dfc85[_0x1009df(0x156)](_0x491602,_0x2cad63)){try{logger[_0x1009df(0x19a)]('['+TAG+_0x1009df(0x1b6)+_0x491602+',\x20threshold:\x20'+_0x2cad63+'.'),this[_0x1009df(0x1b4)]['failFastActive']=!![];}catch(_0x2dac17){logger['error']('['+TAG+_0x1009df(0x17d)+_0x2dac17['message']+(_0x2dac17[_0x1009df(0x1d9)]?_0x4dfc85[_0x1009df(0x16a)](_0x4dfc85[_0x1009df(0x15e)],_0x2dac17[_0x1009df(0x1d9)]):''));}return!![];}}return![];}async[a132_0x2fd50e(0x1d2)](){const _0x36b80c=a132_0x2fd50e,_0x4fade8={};_0x4fade8[_0x36b80c(0x164)]=function(_0x5a8e69,_0x1780ec){return _0x5a8e69+_0x1780ec;},_0x4fade8[_0x36b80c(0x1cf)]=_0x36b80c(0x18b);const _0x571873=_0x4fade8;this[_0x36b80c(0x1ad)]();if(this['isCIMode'])logger[_0x36b80c(0x194)]('['+TAG+_0x36b80c(0x183));else try{const _0x2755d9={...this[_0x36b80c(0x1b4)],'uniqueFailedTests':Array['from'](this[_0x36b80c(0x1b4)][_0x36b80c(0x166)]||new Set())};await this[_0x36b80c(0x169)]['writeState'](_0x2755d9),logger[_0x36b80c(0x194)]('['+TAG+_0x36b80c(0x174));}catch(_0x2c6690){logger[_0x36b80c(0x1b9)]('['+TAG+'_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20'+_0x2c6690[_0x36b80c(0x196)]+(_0x2c6690['stack']?_0x571873[_0x36b80c(0x164)](_0x571873[_0x36b80c(0x1cf)],_0x2c6690[_0x36b80c(0x1d9)]):''));}}}module['exports']=FailFastManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a133_0x3394(_0x1dbbc9,_0x2db2c6){const _0x1174e1=a133_0x1174();return a133_0x3394=function(_0x339456,_0x53bdd0){_0x339456=_0x339456-0x17c;let _0x286efb=_0x1174e1[_0x339456];return _0x286efb;},a133_0x3394(_0x1dbbc9,_0x2db2c6);}const a133_0x429c82=a133_0x3394;function a133_0x1174(){const _0x57ff1c=['2|3|4|0|1','newState','21yrZSsC','fullName','67172rzUXAe','5193848LZngCr','stack','lastAPIFailedCount','readState','ojWNB','utf8','status','warn','failFastConfig','writeFileSync','qISQM','from',']\x20Error\x20reading\x20state\x20file:\x20','isNewFailure','unlinkSync','defaultState','acquireLock','LmJac','198992jPyuSf','EEXIST',']\x20Error\x20creating\x20state\x20file:\x20','DvGAd','2320iwGeFB','371490AXUrtT','SbCgU','recordTestResult','code','LzPiU','NxltO','failed','message','parse','12LnyUsD','has','950550hosbRZ','function','totalTests','IldeB','releaseLock','uniqueFailedTests',']\x20Error\x20releasing\x20lock:\x20','126KmCOOV','isArray','existsSync','382RTsuKE','lockFilePath','closeSync','writeState','../logger','stateFilePath','3430380RqZAHT','IZWRR','stringify','error'];a133_0x1174=function(){return _0x57ff1c;};return a133_0x1174();}(function(_0x17822f,_0x480755){const _0x906eee=a133_0x3394,_0x303b54=_0x17822f();while(!![]){try{const _0x43d3b4=-parseInt(_0x906eee(0x17f))/0x1*(parseInt(_0x906eee(0x1a4))/0x2)+parseInt(_0x906eee(0x18b))/0x3*(-parseInt(_0x906eee(0x18d))/0x4)+parseInt(_0x906eee(0x1b0))/0x5*(-parseInt(_0x906eee(0x1ae))/0x6)+parseInt(_0x906eee(0x1a5))/0x7+parseInt(_0x906eee(0x1a0))/0x8*(parseInt(_0x906eee(0x17c))/0x9)+parseInt(_0x906eee(0x185))/0xa+parseInt(_0x906eee(0x18e))/0xb;if(_0x43d3b4===_0x480755)break;else _0x303b54['push'](_0x303b54['shift']());}catch(_0x16d151){_0x303b54['push'](_0x303b54['shift']());}}}(a133_0x1174,0x434a5));const fs=require('fs'),logger=require(a133_0x429c82(0x183))['winstonLogger'],TAG='FailFastFileHelper';class FileHelper{constructor(_0x4fed9a,_0x4620e5,_0x52adf6,_0x143e8f){const _0x533543=a133_0x429c82,_0x495c9b={};_0x495c9b[_0x533543(0x198)]=_0x533543(0x189),_0x495c9b[_0x533543(0x186)]=_0x533543(0x193);const _0x4e1f5e=_0x495c9b,_0x317153=_0x4e1f5e[_0x533543(0x198)]['split']('|');let _0x4e448b=0x0;while(!![]){switch(_0x317153[_0x4e448b++]){case'0':this[_0x533543(0x19d)]=_0x143e8f;continue;case'1':if(!fs[_0x533543(0x17e)](this[_0x533543(0x184)]))try{fs[_0x533543(0x197)](this[_0x533543(0x184)],'{}',_0x4e1f5e[_0x533543(0x186)]);}catch(_0x5c2852){logger[_0x533543(0x188)]('['+TAG+_0x533543(0x1a2)+_0x5c2852[_0x533543(0x1ac)]+'\x20'+_0x5c2852['stack']);}continue;case'2':this[_0x533543(0x196)]=_0x4fed9a;continue;case'3':this['stateFilePath']=_0x4620e5;continue;case'4':this['lockFilePath']=_0x52adf6;continue;}break;}}async[a133_0x429c82(0x19e)](){const _0x248104=a133_0x429c82,_0x45614b={};_0x45614b[_0x248104(0x1b3)]=function(_0x4fd3e5,_0x4db960){return _0x4fd3e5===_0x4db960;},_0x45614b[_0x248104(0x192)]=_0x248104(0x1a1);const _0x2aed4a=_0x45614b;let _0x274389;try{return _0x274389=fs['openSync'](this['lockFilePath'],'wx'),_0x274389;}catch(_0x3bcfc6){if(_0x2aed4a['IldeB'](_0x3bcfc6[_0x248104(0x1a8)],_0x2aed4a[_0x248104(0x192)]))return null;throw _0x3bcfc6;}}async['releaseLock'](_0x3f280){const _0x5c734e=a133_0x429c82;if(_0x3f280)try{fs[_0x5c734e(0x181)](_0x3f280),fs[_0x5c734e(0x19c)](this[_0x5c734e(0x180)]);}catch(_0x177df0){logger[_0x5c734e(0x188)]('['+TAG+_0x5c734e(0x1b6)+_0x177df0[_0x5c734e(0x1ac)]+'\x20'+_0x177df0['stack']);}}[a133_0x429c82(0x191)](){const _0x2897b7=a133_0x429c82,_0x525ea1={};_0x525ea1[_0x2897b7(0x1aa)]=_0x2897b7(0x193);const _0x1846dd=_0x525ea1;try{const _0x328e8e=fs['readFileSync'](this[_0x2897b7(0x184)],_0x1846dd[_0x2897b7(0x1aa)]);return JSON[_0x2897b7(0x1ad)](_0x328e8e);}catch(_0x256d8d){return logger[_0x2897b7(0x188)]('['+TAG+_0x2897b7(0x19a)+_0x256d8d[_0x2897b7(0x1ac)]+'\x20'+_0x256d8d[_0x2897b7(0x18f)]),null;}}async[a133_0x429c82(0x182)](_0x2d21e5){const _0x54a79f=a133_0x429c82,_0x492e16={..._0x2d21e5,'uniqueFailedTests':Array[_0x54a79f(0x17d)](_0x2d21e5[_0x54a79f(0x1b5)])?_0x2d21e5[_0x54a79f(0x1b5)]:Array[_0x54a79f(0x199)](_0x2d21e5[_0x54a79f(0x1b5)]||[])};try{fs['writeFileSync'](this[_0x54a79f(0x184)],JSON[_0x54a79f(0x187)](_0x492e16,null,0x2));}catch(_0x4a3730){logger[_0x54a79f(0x188)]('['+TAG+']\x20Error\x20writing\x20state\x20file:\x20'+_0x4a3730[_0x54a79f(0x1ac)]+'\x20'+_0x4a3730['stack']);throw _0x4a3730;}}async[a133_0x429c82(0x1a7)](_0x19fb57,_0x40f4d6){const _0x15f1ec=a133_0x429c82,_0x5796f5={};_0x5796f5[_0x15f1ec(0x1a3)]=function(_0x1c12da,_0x51ee54){return _0x1c12da!==_0x51ee54;},_0x5796f5[_0x15f1ec(0x1a9)]=_0x15f1ec(0x1b1),_0x5796f5[_0x15f1ec(0x19f)]=function(_0x5efc2d,_0x14fad9){return _0x5efc2d===_0x14fad9;},_0x5796f5[_0x15f1ec(0x1a6)]=_0x15f1ec(0x1ab);const _0x5ca55f=_0x5796f5,_0xf0ecb7=await this[_0x15f1ec(0x19e)]();if(!_0xf0ecb7)return logger[_0x15f1ec(0x195)]('['+TAG+']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.'),{'newState':this[_0x15f1ec(0x191)]()||this[_0x15f1ec(0x19d)],'isNewFailure':![]};try{let _0x5881aa=this[_0x15f1ec(0x191)]();!_0x5881aa&&(_0x5881aa=JSON[_0x15f1ec(0x1ad)](JSON[_0x15f1ec(0x187)](this[_0x15f1ec(0x19d)])));if(!_0x5881aa[_0x15f1ec(0x1b5)]||_0x5ca55f['DvGAd'](typeof _0x5881aa[_0x15f1ec(0x1b5)][Symbol['iterator']],_0x5ca55f[_0x15f1ec(0x1a9)]))_0x5881aa[_0x15f1ec(0x1b5)]=new Set();else Array['isArray'](_0x5881aa[_0x15f1ec(0x1b5)])&&(_0x5881aa['uniqueFailedTests']=new Set(_0x5881aa[_0x15f1ec(0x1b5)]));_0x5881aa[_0x15f1ec(0x1b2)]=_0x40f4d6;let _0x2b4547=![];_0x5ca55f[_0x15f1ec(0x19f)](_0x19fb57[_0x15f1ec(0x194)],_0x5ca55f[_0x15f1ec(0x1a6)])&&(_0x5881aa['failedTests']+=0x1,!_0x5881aa['uniqueFailedTests'][_0x15f1ec(0x1af)](_0x19fb57[_0x15f1ec(0x18c)])&&(_0x5881aa[_0x15f1ec(0x1b5)]['add'](_0x19fb57[_0x15f1ec(0x18c)]),_0x2b4547=!![]));await this[_0x15f1ec(0x182)](_0x5881aa);const _0x149228={};return _0x149228[_0x15f1ec(0x18a)]=_0x5881aa,_0x149228[_0x15f1ec(0x19b)]=_0x2b4547,_0x149228;}finally{await this[_0x15f1ec(0x1b4)](_0xf0ecb7);}}async['updateAPIFailedCount'](_0x316697){const _0x4bf08c=a133_0x429c82,_0x3bb8d5=await this[_0x4bf08c(0x19e)]();if(!_0x3bb8d5)return logger[_0x4bf08c(0x195)]('['+TAG+']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.'),this[_0x4bf08c(0x191)]()||this['defaultState'];try{let _0x5e6fb9=this[_0x4bf08c(0x191)]();return!_0x5e6fb9&&(_0x5e6fb9=JSON[_0x4bf08c(0x1ad)](JSON['stringify'](this[_0x4bf08c(0x19d)]))),_0x5e6fb9[_0x4bf08c(0x190)]=_0x316697,await this[_0x4bf08c(0x182)](_0x5e6fb9),_0x5e6fb9;}finally{await this[_0x4bf08c(0x1b4)](_0x3bb8d5);}}}module['exports']=FileHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a134_0x11f404=a134_0x5c47;function a134_0x5c47(_0xfddf40,_0xbc3989){const _0x4c5887=a134_0x4c58();return a134_0x5c47=function(_0x5c4783,_0xd927cc){_0x5c4783=_0x5c4783-0x140;let _0x28c2ce=_0x4c5887[_0x5c4783];return _0x28c2ce;},a134_0x5c47(_0xfddf40,_0xbc3989);}(function(_0x53680d,_0x233bfc){const _0x39871a=a134_0x5c47,_0x54d1f0=_0x53680d();while(!![]){try{const _0x31b765=-parseInt(_0x39871a(0x141))/0x1*(-parseInt(_0x39871a(0x16b))/0x2)+parseInt(_0x39871a(0x17d))/0x3+-parseInt(_0x39871a(0x17e))/0x4+parseInt(_0x39871a(0x145))/0x5*(-parseInt(_0x39871a(0x14f))/0x6)+parseInt(_0x39871a(0x16e))/0x7+parseInt(_0x39871a(0x165))/0x8*(parseInt(_0x39871a(0x17b))/0x9)+-parseInt(_0x39871a(0x171))/0xa;if(_0x31b765===_0x233bfc)break;else _0x54d1f0['push'](_0x54d1f0['shift']());}catch(_0x30dd5f){_0x54d1f0['push'](_0x54d1f0['shift']());}}}(a134_0x4c58,0x9231f));const os=require('os'),path=require(a134_0x11f404(0x143)),fs=require('fs'),logger=require(a134_0x11f404(0x161))['winstonLogger'],RETRY_TESTS_ON_FAILURE=a134_0x11f404(0x14d),ABORT_BUILD_ON_FAILURE=a134_0x11f404(0x178),RUN_PREVIOUSLY_FAILED_FIRST=a134_0x11f404(0x172),RERUN_PREVIOUSLY_FAILED=a134_0x11f404(0x169),SKIP_FLAKY_AND_FAILED='skipFlakyandFailed',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(['jest']);class TestOrdering{constructor(){const _0x29abf9=a134_0x11f404;this[_0x29abf9(0x150)]=![],this[_0x29abf9(0x14b)]=null;}['enable'](_0x56e8ea){const _0x5cf7d5=a134_0x11f404;this[_0x5cf7d5(0x150)]=!![],this[_0x5cf7d5(0x14b)]=_0x56e8ea;}[a134_0x11f404(0x142)](){this['enabled']=![],this['name']=null;}[a134_0x11f404(0x163)](){const _0x19aff5=a134_0x11f404;return this[_0x19aff5(0x150)];}['getName'](){const _0x34c0ba=a134_0x11f404;return this[_0x34c0ba(0x14b)];}}function a134_0x4c58(){const _0x41e4bf=['testOrchestrationOptions','2988585xcTmnn','1140440YkTnOU','getBuildStartData','sqcfX','checkAbortBuildFileExists','run_previously_failed_first','1tsxDzK','disable','path','getRerunPreviouslyFailed','5nQTiBb','failed_tests_','getRetryCount','writeFailureToFile','getTestOrderingName','maxFailures','name','abort_build_on_failure','retryTestsOnFailure','_instance','2027064TIjGph','enabled','wLJzk','retry_tests_on_failure','enable','existsSync','_setRunPreviouslyFailedFirst','.txt','exports','getRunPreviouslyFailedFirst','appendFileSync','getName','testOrdering','skip_failing_and_flaky','tmpdir','maxRetries','env','getOrchestrationData','../logger','skipFlakyAndFailed','getEnabled','_setTestOrdering','1360YJSEAS','join','rerun_previously_failed','abort_build_','rerunPreviouslyFailed','getFailureThreshold','797782gxEBqi','config','toLowerCase','7771358NuDmZB','isRetryEnabled','getSkipFlakyAndFailed','16877710FnbhqN','runPreviouslyFailedFirst','BROWSERSTACK_TESTHUB_UUID','has','isAbortBuildOnFailureSupported','testOrderingEnabled','getInstance','abortBuildOnFailure','_setRerunPreviouslyFailed','isAbortBuildOnFailureEnabled','21402aQkOqk'];a134_0x4c58=function(){return _0x41e4bf;};return a134_0x4c58();}class OrchestrationUtils{static [a134_0x11f404(0x14e)]=null;constructor(_0x5e4a2a){const _0xf8ebb3=a134_0x11f404,_0x227039={};_0x227039['sqcfX']=function(_0x4a4099,_0x1ca98f){return _0x4a4099||_0x1ca98f;};const _0x2d8deb=_0x227039;this['runPreviouslyFailedFirst']=![],this[_0xf8ebb3(0x169)]=![],this[_0xf8ebb3(0x162)]=![],this[_0xf8ebb3(0x15b)]=new TestOrdering(),this[_0xf8ebb3(0x16c)]=_0x2d8deb[_0xf8ebb3(0x180)](_0x5e4a2a,{});const _0xba94b5=_0x5e4a2a&&_0x5e4a2a['testOrchestrationOptions']||{};this[_0xf8ebb3(0x155)](_0xba94b5[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0xf8ebb3(0x179)](_0xba94b5[RERUN_PREVIOUSLY_FAILED]||![]),this['_setSkipFlakyAndFailed'](_0xba94b5[SKIP_FLAKY_AND_FAILED]||![]);}static[a134_0x11f404(0x177)](_0x51e51b){const _0x45088a=a134_0x11f404;return!OrchestrationUtils[_0x45088a(0x14e)]&&_0x51e51b&&(OrchestrationUtils[_0x45088a(0x14e)]=new OrchestrationUtils(_0x51e51b)),OrchestrationUtils[_0x45088a(0x14e)];}[a134_0x11f404(0x16f)](){const _0x1eb955=a134_0x11f404,_0x4bf572=(this['config'][_0x1eb955(0x17c)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x4bf572[_0x1eb955(0x150)];}[a134_0x11f404(0x147)](){const _0x11f222=a134_0x11f404,_0x140a56=(this[_0x11f222(0x16c)][_0x11f222(0x17c)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x3ff6c6=0x0;return this[_0x11f222(0x16f)](this['config'])&&(_0x3ff6c6=_0x140a56[_0x11f222(0x15e)]||0x1),_0x3ff6c6;}[a134_0x11f404(0x160)](){const _0x4f83e8=a134_0x11f404,_0x5d139a=this['config'][_0x4f83e8(0x17c)]||{},_0x2a3c39={};for(const _0x1099a6 in _0x5d139a){ALLOWED_ORCHESTRATION_KEYS[_0x4f83e8(0x174)](_0x1099a6)&&(_0x2a3c39[_0x1099a6]=_0x5d139a[_0x1099a6]);}return _0x2a3c39;}[a134_0x11f404(0x181)](){const _0x12e528=a134_0x11f404,_0x18c1ff=process[_0x12e528(0x15f)][_0x12e528(0x173)],_0x1bbdcf=path[_0x12e528(0x166)](os[_0x12e528(0x15d)](),_0x12e528(0x168)+_0x18c1ff);return fs[_0x12e528(0x154)](_0x1bbdcf);}[a134_0x11f404(0x148)](_0x1159b3){const _0x5b4712=a134_0x11f404,_0xa667cb=process[_0x5b4712(0x15f)][_0x5b4712(0x173)],_0x188e24=path[_0x5b4712(0x166)](os['tmpdir'](),_0x5b4712(0x146)+_0xa667cb+_0x5b4712(0x156));fs[_0x5b4712(0x159)](_0x188e24,_0x1159b3+'\x0a');}[a134_0x11f404(0x175)](_0xb7be45){const _0x19beb9=a134_0x11f404,_0x873c1={};_0x873c1[_0x19beb9(0x151)]=function(_0x11c857,_0x1cc12c){return _0x11c857||_0x1cc12c;};const _0x41aa69=_0x873c1;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x19beb9(0x174)](_0x41aa69[_0x19beb9(0x151)](_0xb7be45,'')[_0x19beb9(0x16d)]());}['isAbortBuildOnFailureEnabled'](){const _0xed7ee4=a134_0x11f404,_0x1455c2=(this[_0xed7ee4(0x16c)][_0xed7ee4(0x17c)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x1455c2['enabled'];}[a134_0x11f404(0x16a)](){const _0x59fdd9=a134_0x11f404,_0x54cdaa=(this[_0x59fdd9(0x16c)][_0x59fdd9(0x17c)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x54cdaa[_0x59fdd9(0x14a)]||0x5;;}[a134_0x11f404(0x158)](){const _0x3d19a=a134_0x11f404;return this[_0x3d19a(0x172)];}[a134_0x11f404(0x155)](_0x76c5d0){const _0x3329be=a134_0x11f404;this[_0x3329be(0x172)]=!!_0x76c5d0,this[_0x3329be(0x164)]();}[a134_0x11f404(0x144)](){const _0x519941=a134_0x11f404;return this[_0x519941(0x169)];}[a134_0x11f404(0x179)](_0x408c04){const _0x179ce4=a134_0x11f404;this[_0x179ce4(0x169)]=!!_0x408c04,this['_setTestOrdering']();}[a134_0x11f404(0x170)](){const _0x249a80=a134_0x11f404;return this[_0x249a80(0x162)];}['_setSkipFlakyAndFailed'](_0x22e6fc){this['skipFlakyAndFailed']=!!_0x22e6fc,this['_setTestOrdering']();}[a134_0x11f404(0x164)](){const _0xea0b13=a134_0x11f404;if(this[_0xea0b13(0x172)])this[_0xea0b13(0x169)]=![],this['skipFlakyAndFailed']=![],this[_0xea0b13(0x15b)]['enable'](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0xea0b13(0x169)])this[_0xea0b13(0x172)]=![],this[_0xea0b13(0x162)]=![],this[_0xea0b13(0x15b)][_0xea0b13(0x153)](RERUN_PREVIOUSLY_FAILED);else this[_0xea0b13(0x162)]?(this[_0xea0b13(0x172)]=![],this[_0xea0b13(0x169)]=![],this['testOrdering'][_0xea0b13(0x153)](SKIP_FLAKY_AND_FAILED)):this['testOrdering'][_0xea0b13(0x142)]();}}[a134_0x11f404(0x176)](){const _0x4cdf2f=a134_0x11f404;return this[_0x4cdf2f(0x15b)]['getEnabled']();}[a134_0x11f404(0x149)](){const _0xb57e5=a134_0x11f404;if(this[_0xb57e5(0x15b)][_0xb57e5(0x163)]())return this['testOrdering'][_0xb57e5(0x15a)]();return null;}[a134_0x11f404(0x17f)](){const _0x53a12b=a134_0x11f404,_0x3ce464={};return _0x3ce464[_0x53a12b(0x167)]={'enabled':this[_0x53a12b(0x144)]()},_0x3ce464[_0x53a12b(0x140)]={'enabled':this[_0x53a12b(0x158)]()},_0x3ce464[_0x53a12b(0x15c)]={'enabled':this[_0x53a12b(0x170)]()},this[_0x53a12b(0x16f)]()&&(_0x3ce464[_0x53a12b(0x152)]={'enabled':!![],'max_retries':this['getRetryCount']()}),this[_0x53a12b(0x17a)]()&&(_0x3ce464[_0x53a12b(0x14c)]={'enabled':!![],'max_failures':this[_0x53a12b(0x16a)]()}),_0x3ce464;}}module[a134_0x11f404(0x157)]=OrchestrationUtils;
|