browserstack-node-sdk 1.49.10 → 1.49.11
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_0x3a6561=a129_0x58e2;function a129_0x58e2(_0x3c413c,_0x4c60fa){const _0x106eca=a129_0x106e();return a129_0x58e2=function(_0x58e278,_0x549667){_0x58e278=_0x58e278-0x1cb;let _0x306aee=_0x106eca[_0x58e278];return _0x306aee;},a129_0x58e2(_0x3c413c,_0x4c60fa);}(function(_0x1b99b9,_0x39ada6){const _0x188d3a=a129_0x58e2,_0x7f5e40=_0x1b99b9();while(!![]){try{const _0xd9bee6=-parseInt(_0x188d3a(0x1d8))/0x1*(-parseInt(_0x188d3a(0x1cd))/0x2)+-parseInt(_0x188d3a(0x1d0))/0x3*(parseInt(_0x188d3a(0x263))/0x4)+parseInt(_0x188d3a(0x21c))/0x5+parseInt(_0x188d3a(0x227))/0x6*(-parseInt(_0x188d3a(0x20a))/0x7)+parseInt(_0x188d3a(0x268))/0x8*(-parseInt(_0x188d3a(0x254))/0x9)+-parseInt(_0x188d3a(0x274))/0xa+parseInt(_0x188d3a(0x225))/0xb;if(_0xd9bee6===_0x39ada6)break;else _0x7f5e40['push'](_0x7f5e40['shift']());}catch(_0x4ac12a){_0x7f5e40['push'](_0x7f5e40['shift']());}}}(a129_0x106e,0x1ab4a));const bsSetupHelper=require(a129_0x3a6561(0x279)),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a129_0x3a6561(0x212)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a129_0x3a6561(0x235)),RequestQueueHandler=require(a129_0x3a6561(0x1d5)),logger=require(a129_0x3a6561(0x282))['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require('../../helpers/testhub/utils'),util=require(a129_0x3a6561(0x1d3)),constants=require(a129_0x3a6561(0x266));class SessionHandler{static [a129_0x3a6561(0x1fa)]=RequestQueueHandler[a129_0x3a6561(0x27d)]();static async[a129_0x3a6561(0x209)](_0x4743d1,_0x3346bb){const _0x2e7f33=a129_0x3a6561,_0x323b80={'ZQfnR':function(_0xf7879b,_0x5a3793){return _0xf7879b||_0x5a3793;},'vBZAU':function(_0x373bb3,_0x972259){return _0x373bb3===_0x972259;},'jDQxw':function(_0x1b1e14,_0x4f99af){return _0x1b1e14(_0x4f99af);},'nRZiG':_0x2e7f33(0x280),'omfrx':'false','IURhb':_0x2e7f33(0x22b),'pcBzZ':function(_0x380b09,_0x4b73c3){return _0x380b09(_0x4b73c3);},'uYoss':function(_0x12e331,_0x18c9b9){return _0x12e331(_0x18c9b9);},'EiasU':function(_0x44d447,_0x44296a,_0x5daf3f,_0x482be0,_0x3e0f01){return _0x44d447(_0x44296a,_0x5daf3f,_0x482be0,_0x3e0f01);},'XFMtf':_0x2e7f33(0x220),'gekAo':_0x2e7f33(0x260),'vCgYy':function(_0x1e0494,_0x31b55a){return _0x1e0494(_0x31b55a);},'UyONZ':_0x2e7f33(0x21d),'fnquT':function(_0x14b372){return _0x14b372();},'eqkRV':_0x2e7f33(0x204),'GDhah':_0x2e7f33(0x276),'qONfD':_0x2e7f33(0x26b),'oxCKY':_0x2e7f33(0x277),'lKJkC':'ERROR_SDK_DEPRECATED'};logger['info']('Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20'+util[_0x2e7f33(0x1ed)](_0x4743d1));const _0x34e5ef=bsSetupHelper[_0x2e7f33(0x217)](_0x4743d1),_0x8ee7ab=bsSetupHelper[_0x2e7f33(0x22e)](_0x4743d1),_0x1239ec=_0x323b80[_0x2e7f33(0x1f6)](_0x34e5ef,'')+':'+_0x323b80[_0x2e7f33(0x1f6)](_0x8ee7ab,'');if(_0x323b80[_0x2e7f33(0x22c)](_0x1239ec,':'))return _0x323b80[_0x2e7f33(0x201)](debug,_0x323b80['nRZiG']),process[_0x2e7f33(0x23a)][_0x2e7f33(0x1df)]=_0x323b80[_0x2e7f33(0x203)],[null,null];let _0x4e48d5=![],_0x561622=![];if(_0x4743d1['browserstackAutomation']&&_0x4743d1['app'])_0x561622=!![];else _0x4743d1['browserstackAutomation']&&(_0x4e48d5=!![]);try{const _0x3e58b9={'format':_0x323b80[_0x2e7f33(0x26d)],'project_name':_0x4743d1[_0x2e7f33(0x240)]||'','name':_0x4743d1[_0x2e7f33(0x252)]||path[_0x2e7f33(0x1cf)](path['resolve'](process[_0x2e7f33(0x241)]())),'build_identifier':_0x4743d1[_0x2e7f33(0x202)],'description':_0x4743d1[_0x2e7f33(0x1d2)]||'','start_time':new Date()[_0x2e7f33(0x1d1)](),'tags':_0x323b80[_0x2e7f33(0x24e)](getCustomTags,_0x4743d1),'host_info':bsSetupHelper[_0x2e7f33(0x1f1)](),'ci_info':bsSetupHelper[_0x2e7f33(0x27e)](),'build_run_identifier':process[_0x2e7f33(0x23a)][_0x2e7f33(0x232)],'failed_tests_rerun':process[_0x2e7f33(0x23a)][_0x2e7f33(0x1f0)]||![],'version_control':await bsSetupHelper[_0x2e7f33(0x222)](),'observability_version':{'frameworkName':_0x3346bb['frameworkName'],'frameworkVersion':_0x3346bb[_0x2e7f33(0x25e)],'sdkVersion':bsSetupHelper['getAgentVersion']()},'product_map':_0x323b80['pcBzZ'](getProductMap,_0x4743d1),'test_orchestration':_0x323b80[_0x2e7f33(0x24e)](getTestOrchestrationBuildStartData,_0x4743d1)},_0x44cb58={};_0x44cb58[_0x2e7f33(0x273)]=_0x34e5ef,_0x44cb58[_0x2e7f33(0x215)]=_0x8ee7ab;const _0x52b2a9={'auth':_0x44cb58,'headers':_0x323b80[_0x2e7f33(0x25f)](getDefaultHeaders,![])},_0x458e78=await _0x323b80[_0x2e7f33(0x26c)](nodeRequest,_0x323b80[_0x2e7f33(0x1e0)],_0x323b80[_0x2e7f33(0x1e6)],_0x3e58b9,_0x52b2a9);_0x323b80[_0x2e7f33(0x26e)](debug,_0x323b80['UyONZ']);const _0x45c2ea=_0x458e78[_0x2e7f33(0x1e8)];_0x45c2ea[_0x2e7f33(0x256)]&&(process[_0x2e7f33(0x23a)]['BROWSERSTACK_TESTHUB_UUID']=_0x45c2ea[_0x2e7f33(0x256)]);if(_0x323b80[_0x2e7f33(0x272)](isTestObservabilitySession)){process[_0x2e7f33(0x23a)][_0x2e7f33(0x1df)]=_0x323b80['eqkRV'];if(_0x45c2ea['jwt']){process[_0x2e7f33(0x23a)][_0x2e7f33(0x261)]=_0x45c2ea[_0x2e7f33(0x259)];const _0x53733e={};_0x53733e[_0x2e7f33(0x273)]=_0x34e5ef,_0x53733e[_0x2e7f33(0x215)]=_0x8ee7ab,process[_0x2e7f33(0x23a)][_0x2e7f33(0x1fb)]=JSON['stringify'](_0x53733e);}_0x45c2ea['build_hashed_id']&&(process[_0x2e7f33(0x23a)][_0x2e7f33(0x27c)]=_0x45c2ea[_0x2e7f33(0x256)]),_0x45c2ea[_0x2e7f33(0x22f)]&&(process[_0x2e7f33(0x23a)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x45c2ea['allow_screenshots'][_0x2e7f33(0x24f)]());}return[_0x458e78[_0x2e7f33(0x1e8)][_0x2e7f33(0x259)],_0x458e78[_0x2e7f33(0x1e8)][_0x2e7f33(0x256)],_0x458e78[_0x2e7f33(0x1e8)]['allow_screenshots']];}catch(_0x441550){process['env'][_0x2e7f33(0x216)]=_0x323b80[_0x2e7f33(0x271)],process[_0x2e7f33(0x23a)][_0x2e7f33(0x1df)]=_0x323b80[_0x2e7f33(0x203)],process[_0x2e7f33(0x23a)][_0x2e7f33(0x261)]=_0x323b80[_0x2e7f33(0x271)],process[_0x2e7f33(0x23a)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x323b80['GDhah'],process[_0x2e7f33(0x23a)][_0x2e7f33(0x230)]=_0x323b80['GDhah'];_0x441550[_0x2e7f33(0x27b)]?_0x323b80['vCgYy'](debug,_0x2e7f33(0x1e9)+_0x441550[_0x2e7f33(0x27b)][_0x2e7f33(0x214)]+'\x20'+_0x441550[_0x2e7f33(0x27b)][_0x2e7f33(0x21b)]+'\x20'+JSON[_0x2e7f33(0x257)](_0x441550[_0x2e7f33(0x27b)][_0x2e7f33(0x1e8)])):_0x323b80['uYoss'](debug,_0x2e7f33(0x1e9)+(_0x441550[_0x2e7f33(0x1ff)]||_0x441550));if(_0x441550&&_0x441550[_0x2e7f33(0x1ff)]){const _0x4d07d0=_0x441550['message'];switch(_0x441550[_0x2e7f33(0x23e)]){case _0x323b80[_0x2e7f33(0x1f3)]:logger[_0x2e7f33(0x1f4)](_0x4d07d0);break;case _0x323b80[_0x2e7f33(0x233)]:logger[_0x2e7f33(0x264)](_0x4d07d0);break;case _0x323b80[_0x2e7f33(0x258)]:logger[_0x2e7f33(0x1f4)](_0x4d07d0);break;default:logger[_0x2e7f33(0x1f4)](_0x4d07d0);}}else console['info']('Data\x20upload\x20to\x20BrowserStack\x20'+constants[_0x2e7f33(0x1d7)]+_0x2e7f33(0x1de)+_0x441550);return[null,null,null];}}static async[a129_0x3a6561(0x228)](){const _0x970bc8=a129_0x3a6561,_0x159020={'hYCKd':_0x970bc8(0x204),'WBauV':_0x970bc8(0x221),'VyXPs':function(_0x12a4b3,_0x229a97){return _0x12a4b3(_0x229a97);}},_0x9af5aa=process[_0x970bc8(0x23a)][_0x970bc8(0x1df)];if([_0x159020['hYCKd'],_0x159020[_0x970bc8(0x244)]][_0x970bc8(0x23d)](_0x9af5aa))return;while([_0x159020[_0x970bc8(0x23f)],_0x159020[_0x970bc8(0x244)]][_0x970bc8(0x23d)](_0x9af5aa)){await _0x159020[_0x970bc8(0x22a)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a129_0x3a6561(0x1fd)](_0x224e0b){const _0x5b30a4=a129_0x3a6561,_0x17a23c={};_0x17a23c[_0x5b30a4(0x20e)]='Test_Start_Upload',_0x17a23c[_0x5b30a4(0x1e1)]='Test_End_Upload',_0x17a23c[_0x5b30a4(0x250)]=_0x5b30a4(0x243),_0x17a23c['HdcUe']='Log_Upload',_0x17a23c['wbmmr']=_0x5b30a4(0x1f5),_0x17a23c[_0x5b30a4(0x22d)]=_0x5b30a4(0x21a),_0x17a23c[_0x5b30a4(0x25b)]='CBT_Upload';const _0x25542a=_0x17a23c,_0x262892={};return _0x262892['TestRunStarted']=_0x25542a[_0x5b30a4(0x20e)],_0x262892[_0x5b30a4(0x265)]=_0x25542a['TGIIa'],_0x262892[_0x5b30a4(0x234)]=_0x25542a[_0x5b30a4(0x250)],_0x262892['LogCreated']=_0x25542a['HdcUe'],_0x262892[_0x5b30a4(0x229)]=_0x25542a[_0x5b30a4(0x262)],_0x262892[_0x5b30a4(0x1ec)]=_0x25542a['xsaKR'],_0x262892[_0x5b30a4(0x1d9)]=_0x25542a[_0x5b30a4(0x25b)],_0x262892[_0x224e0b[_0x5b30a4(0x208)]];}static async[a129_0x3a6561(0x27f)](_0x284ba1,_0x2428cd=0x0,_0x4d79bf=null){const _0x362eb4=a129_0x3a6561,_0x48e673={'SEaby':function(_0x5abaac,_0xa375b6){return _0x5abaac===_0xa375b6;},'NCxzA':_0x362eb4(0x1f7),'oCmCn':function(_0x340f46,_0x220cf0){return _0x340f46!==_0x220cf0;},'glVlp':_0x362eb4(0x242),'GPnWb':_0x362eb4(0x204),'FbLLn':function(_0x9fa091,_0x29d3df){return _0x9fa091===_0x29d3df;},'ZLxTr':function(_0x54df25,_0x15435b,_0x8211f1,_0x56984f,_0x1b22e9){return _0x54df25(_0x15435b,_0x8211f1,_0x56984f,_0x1b22e9);},'LBqbd':_0x362eb4(0x220),'RDaew':function(_0x2f4969,_0x39af08,_0x5ab8f2,_0x5962c6,_0x45c6ea){return _0x2f4969(_0x39af08,_0x5ab8f2,_0x5962c6,_0x45c6ea);},'YDaYA':function(_0x4245ae,_0x123e29){return _0x4245ae(_0x123e29);},'lYqDb':function(_0x2c497b,_0x2e925c){return _0x2c497b!==_0x2e925c;},'VoJQR':_0x362eb4(0x24a),'PXRju':function(_0x18c269,_0xdf97df){return _0x18c269-_0xdf97df;},'EIDgQ':'api/v1/event','TEWgl':_0x362eb4(0x251),'lEFDp':function(_0x4613b1,_0x5ba58d){return _0x4613b1(_0x5ba58d);},'xVkhq':function(_0x31479d,_0x2beace){return _0x31479d!==_0x2beace;},'FaapG':function(_0x52b995,_0x3a3a6e){return _0x52b995!==_0x3a3a6e;},'FFgbs':function(_0x5ccfb3,_0x29414a){return _0x5ccfb3===_0x29414a;},'CRBpZ':'error'};_0x48e673['SEaby'](_0x4d79bf,_0x48e673['NCxzA'])&&logger['debug'](_0x362eb4(0x23c)+_0x284ba1[_0x362eb4(0x1f9)][0x0][_0x362eb4(0x1ef)]);const _0x30a017=await this[_0x362eb4(0x1fd)](_0x284ba1);let _0xf0daae=_0x284ba1,_0x1e9366=EVENT_ENDPOINT;_0x48e673[_0x362eb4(0x24c)](_0x4d79bf,_0x48e673[_0x362eb4(0x1dd)])&&this[_0x362eb4(0x1fa)][_0x362eb4(0x21e)]();const {shouldProceed:_0x1b0254,proceedWithData:_0x16b34d,proceedWithUrl:_0x17f17e}=this[_0x362eb4(0x1fa)]['add'](_0x284ba1);if(!_0x1b0254)return;else _0x16b34d&&(_0xf0daae=_0x16b34d,_0x1e9366=_0x17f17e);const _0x3efc99={};_0x3efc99[_0x362eb4(0x26a)]=_0x362eb4(0x1d4)+process[_0x362eb4(0x23a)][_0x362eb4(0x269)],_0x3efc99[_0x362eb4(0x231)]=_0x48e673['glVlp'],_0x3efc99['X-BSTACK-TESTOPS']=_0x48e673[_0x362eb4(0x223)];const _0x3dd689={};_0x3dd689[_0x362eb4(0x219)]=_0x3efc99;const _0x172321=_0x3dd689;let _0xa41b0b;try{_0x48e673['FbLLn'](_0x4d79bf,_0x48e673['NCxzA'])?(logger[_0x362eb4(0x206)](_0x362eb4(0x1cb)+_0x284ba1?.['logs'][0x0]?.[_0x362eb4(0x1ef)]),_0xa41b0b=await _0x48e673[_0x362eb4(0x270)](asyncAwaitNodeReq,_0x48e673['LBqbd'],_0x1e9366,_0xf0daae,_0x172321),logger[_0x362eb4(0x206)](_0x362eb4(0x246)+_0x284ba1?.[_0x362eb4(0x1f9)][0x0]?.[_0x362eb4(0x1ef)])):_0xa41b0b=await _0x48e673[_0x362eb4(0x218)](nodeRequest,_0x48e673[_0x362eb4(0x1fe)],_0x1e9366,_0xf0daae,_0x172321);if(_0xa41b0b[_0x362eb4(0x1e8)][_0x362eb4(0x1f4)]){const _0x1cd620={};_0x1cd620[_0x362eb4(0x1ff)]=_0xa41b0b[_0x362eb4(0x1e8)][_0x362eb4(0x1f4)];throw _0x1cd620;}else{_0x48e673[_0x362eb4(0x278)](debug,(_0x48e673['lYqDb'](_0x1e9366,this[_0x362eb4(0x1fa)][_0x362eb4(0x224)])?_0x30a017:_0x48e673[_0x362eb4(0x20c)])+'['+_0x2428cd+_0x362eb4(0x1e2)),this[_0x362eb4(0x1fa)]['pendingUploads']=Math[_0x362eb4(0x1e5)](0x0,_0x48e673[_0x362eb4(0x25d)](this[_0x362eb4(0x1fa)][_0x362eb4(0x1db)],_0x48e673[_0x362eb4(0x255)](_0x1e9366,_0x48e673[_0x362eb4(0x248)])?0x1:_0xf0daae[_0x362eb4(0x213)]));const _0x15e27f={};return _0x15e27f[_0x362eb4(0x214)]=_0x48e673[_0x362eb4(0x1cc)],_0x15e27f['message']='',_0x15e27f;}}catch(_0x13a8c5){_0x13a8c5[_0x362eb4(0x27b)]?_0x48e673[_0x362eb4(0x238)](debug,_0x362eb4(0x20b)+(_0x48e673[_0x362eb4(0x245)](_0x1e9366,this[_0x362eb4(0x1fa)][_0x362eb4(0x224)])?_0x30a017:_0x48e673[_0x362eb4(0x20c)])+_0x362eb4(0x205)+constants[_0x362eb4(0x1d7)]+_0x362eb4(0x275)+_0x13a8c5['response'][_0x362eb4(0x214)]+'\x20'+_0x13a8c5[_0x362eb4(0x27b)][_0x362eb4(0x21b)]+'\x20'+util[_0x362eb4(0x21f)](_0x13a8c5[_0x362eb4(0x27b)][_0x362eb4(0x1e8)])):_0x48e673[_0x362eb4(0x278)](debug,'EXCEPTION\x20IN\x20'+(_0x48e673[_0x362eb4(0x1f2)](_0x1e9366,this['requestQueueHandler']['eventUrl'])?_0x30a017:_0x48e673[_0x362eb4(0x20c)])+_0x362eb4(0x205)+constants['TEST_REPORTING_ANALYTICS']+_0x362eb4(0x275)+util[_0x362eb4(0x21f)](_0x13a8c5));this['requestQueueHandler'][_0x362eb4(0x1db)]=Math['max'](0x0,_0x48e673[_0x362eb4(0x25d)](this[_0x362eb4(0x1fa)][_0x362eb4(0x1db)],_0x48e673['FFgbs'](_0x1e9366,_0x48e673[_0x362eb4(0x248)])?0x1:_0xf0daae['length']));const _0x59d25a={};return _0x59d25a[_0x362eb4(0x214)]=_0x48e673[_0x362eb4(0x25c)],_0x59d25a[_0x362eb4(0x1ff)]=_0x13a8c5[_0x362eb4(0x1ff)]||(_0x13a8c5['response']?_0x13a8c5[_0x362eb4(0x27b)][_0x362eb4(0x214)]+':'+_0x13a8c5[_0x362eb4(0x27b)][_0x362eb4(0x21b)]:_0x13a8c5),_0x59d25a;}}static async[a129_0x3a6561(0x1e7)](_0x40b893,_0x5c13c9=0x0){const _0x508db0=a129_0x3a6561,_0x3d4131={'ywxxW':function(_0x34e614,_0x2d5b98){return _0x34e614+_0x2d5b98;},'zTrZS':function(_0x36e41b,_0x122c25){return _0x36e41b(_0x122c25);},'jbjRw':_0x508db0(0x237),'tQgZm':_0x508db0(0x26f),'OVPvU':_0x508db0(0x25a),'HfbQI':function(_0x4207e,_0x48a528,_0x25e129){return _0x4207e(_0x48a528,_0x25e129);},'lXpIl':_0x508db0(0x1e7),'baNiZ':function(_0x1e9775,_0x172faa){return _0x1e9775===_0x172faa;},'EVJmc':function(_0x329a91,_0x4d4226){return _0x329a91!==_0x4d4226;},'CHyjW':_0x508db0(0x276),'mHdIa':function(_0x35cffe,_0x1008aa){return _0x35cffe===_0x1008aa;},'HCeCM':'true','wxTpw':function(_0x10d094){return _0x10d094();},'JQKPm':function(_0x2f092d,_0x6f951){return _0x2f092d===_0x6f951;},'qIZRE':function(_0x2310c8,_0x1b37a3){return _0x2310c8-_0x1b37a3;},'CidWP':_0x508db0(0x1f4),'nvLuI':_0x508db0(0x1fc),'VCxBn':function(_0x64e95c,_0xe51821){return _0x64e95c>=_0xe51821;},'XuuRK':function(_0xa08253,_0x59791){return _0xa08253(_0x59791);},'MVSSU':function(_0x5a3acd,_0x50c9f9){return _0x5a3acd-_0x50c9f9;},'XFClA':'Retry\x20runs\x20exceeded','uQZAY':function(_0x4e77b7,_0x4f358c){return _0x4e77b7!==_0x4f358c;},'QXQJI':_0x508db0(0x221)},_0x5e5fff=this['getLogTag'](_0x40b893);_0x3d4131['zTrZS'](trace,_0x508db0(0x236)+_0x40b893[_0x508db0(0x208)]+'\x27\x20'+(bsSetupHelper[_0x508db0(0x27a)](_0x40b893,[_0x3d4131[_0x508db0(0x1ea)],_0x3d4131[_0x508db0(0x20f)]])||bsSetupHelper[_0x508db0(0x27a)](_0x40b893,[_0x3d4131['OVPvU'],_0x3d4131[_0x508db0(0x20f)]])));if(!_0x3d4131['HfbQI'](shouldProcessEventForTesthub,_0x40b893[_0x508db0(0x208)],_0x3d4131[_0x508db0(0x253)]))return;_0x3d4131[_0x508db0(0x1da)](_0x5c13c9,0x0)&&process[_0x508db0(0x23a)][_0x508db0(0x269)]&&_0x3d4131[_0x508db0(0x247)](process[_0x508db0(0x23a)][_0x508db0(0x269)],_0x3d4131[_0x508db0(0x267)])&&(this[_0x508db0(0x1fa)]['pendingUploads']+=0x1);if(_0x3d4131[_0x508db0(0x207)](process['env'][_0x508db0(0x1df)],_0x3d4131[_0x508db0(0x281)])||process['env'][_0x508db0(0x200)]||_0x3d4131[_0x508db0(0x1e4)](isPercyBuild)){if(_0x3d4131[_0x508db0(0x249)](process[_0x508db0(0x23a)][_0x508db0(0x269)],_0x3d4131[_0x508db0(0x267)])){_0x3d4131[_0x508db0(0x24b)](debug,_0x508db0(0x20b)+_0x5e5fff+_0x508db0(0x205)+constants[_0x508db0(0x1d7)]+'\x20:\x20missing\x20authentication\x20token'),this[_0x508db0(0x1fa)]['pendingUploads']=Math[_0x508db0(0x1e5)](0x0,_0x3d4131[_0x508db0(0x1eb)](this[_0x508db0(0x1fa)][_0x508db0(0x1db)],0x1));const _0x17c151={};return _0x17c151[_0x508db0(0x214)]=_0x3d4131[_0x508db0(0x211)],_0x17c151['message']=_0x3d4131[_0x508db0(0x24d)],_0x17c151;}return await this['sendEventData'](_0x40b893,_0x5c13c9);}else{if(_0x3d4131[_0x508db0(0x1ce)](_0x5c13c9,0x5)){_0x3d4131[_0x508db0(0x210)](debug,_0x508db0(0x20b)+_0x5e5fff+_0x508db0(0x205)+constants[_0x508db0(0x1d7)]+_0x508db0(0x239)+_0x5e5fff+_0x508db0(0x23b));_0x3d4131[_0x508db0(0x247)](process[_0x508db0(0x23a)][_0x508db0(0x269)],_0x3d4131['CHyjW'])&&(this[_0x508db0(0x1fa)][_0x508db0(0x1db)]=Math[_0x508db0(0x1e5)](0x0,_0x3d4131[_0x508db0(0x226)](this['requestQueueHandler'][_0x508db0(0x1db)],0x1)));const _0xb9adef={};return _0xb9adef[_0x508db0(0x214)]=_0x3d4131[_0x508db0(0x211)],_0xb9adef[_0x508db0(0x1ff)]=_0x3d4131[_0x508db0(0x1ee)],_0xb9adef;}else _0x3d4131[_0x508db0(0x1d6)](process['env'][_0x508db0(0x1df)],_0x3d4131[_0x508db0(0x1dc)])&&_0x3d4131[_0x508db0(0x1e3)](setTimeout,()=>{const _0x302b94=_0x508db0;this['uploadEventData'](_0x40b893,_0x3d4131[_0x302b94(0x1f8)](_0x5c13c9,0x1));},0x3e8);}}}function a129_0x106e(){const _0xb48ca2=['info','TestRunFinished','../../bin/utils/constants','CHyjW','8bNcRnX','BROWSERSTACK_TESTHUB_JWT','Authorization','ERROR_INVALID_CREDENTIALS','EiasU','IURhb','vCgYy','uuid','ZLxTr','GDhah','fnquT','username','1575000sITYVM','\x20:\x20','null','ERROR_ACCESS_DENIED','YDaYA','../helper','nestedKeyValue','response','BS_TESTOPS_BUILD_HASHED_ID','getInstance','getCiInfo','sendEventData','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','HCeCM','../logger','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','TEWgl','69578uctoLU','VCxBn','basename','10155cObDCp','toISOString','buildDescription','util','Bearer\x20','./requestQueueHandler','uQZAY','TEST_REPORTING_ANALYTICS','2PajClE','CBTSessionCreated','baNiZ','pendingUploads','QXQJI','NCxzA','\x20failed\x20due\x20to\x20','BS_TESTOPS_BUILD_COMPLETED','XFMtf','TGIIa',']\x20event\x20successful!','HfbQI','wxTpw','max','gekAo','uploadEventData','data','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','jbjRw','qIZRE','HookRunFinished','inspect','XFClA','test_run_uuid','BROWSERSTACK_RERUN','getHostInfo','FaapG','qONfD','error','Hook_Start_Upload','ZQfnR','sendTraceZip','ywxxW','logs','requestQueueHandler','CREDENTIALS_FOR_CRASH_REPORTING','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','getLogTag','LBqbd','message','BS_A11Y_JWT','jDQxw','buildIdentifier','omfrx','true','\x20REQUEST\x20TO\x20','debug','mHdIa','event_type','launch','14CiFuav','EXCEPTION\x20IN\x20','VoJQR','exports','ozYxi','tQgZm','XuuRK','CidWP','./utils','length','status','password','BROWSERSTACK_TESTHUB_UUID','getUserName','RDaew','headers','Hook_End_Upload','statusText','352480vjqPwc','Build\x20creation\x20successful!','start','format','POST','false','getGitMetaData','GPnWb','eventUrl','5683678SzgLWS','MVSSU','398166yeNlYu','waitForBuildStatus','HookRunStarted','VyXPs','json','vBZAU','xsaKR','getAccessKey','allow_screenshots','BS_TESTOPS_ALLOW_SCREENSHOTS','Content-Type','BROWSERSTACK_BUILD_RUN_IDENTIFIER','oxCKY','TestRunSkipped','./constants','Processing\x20event\x20-\x20\x27','test_run','lEFDp','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','env','\x20retry\x20runs\x20exceeded','Sending\x20trace\x20zip\x20for\x20test:\x20','includes','errorType','hYCKd','projectName','cwd','application/json','Test_Skipped_Upload','WBauV','xVkhq','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','EVJmc','EIDgQ','JQKPm','Batch-Queue','zTrZS','oCmCn','nvLuI','pcBzZ','toString','gjycm','success','buildName','lXpIl','791226ZTOqbl','SEaby','build_hashed_id','stringify','lKJkC','jwt','hook_run','MpqTs','CRBpZ','PXRju','frameworkVersion','uYoss','api/v1/builds','BS_TESTOPS_JWT','wbmmr','200ERYfzP'];a129_0x106e=function(){return _0xb48ca2;};return a129_0x106e();}module[a129_0x3a6561(0x20d)]=SessionHandler;
|
|
1
|
+
const a129_0x29bd02=a129_0x1332;(function(_0x4b5aaa,_0x327280){const _0x3ee1cb=a129_0x1332,_0x2b598f=_0x4b5aaa();while(!![]){try{const _0x1c738d=parseInt(_0x3ee1cb(0x17d))/0x1+-parseInt(_0x3ee1cb(0x1e2))/0x2+-parseInt(_0x3ee1cb(0x1a4))/0x3+parseInt(_0x3ee1cb(0x1f8))/0x4+-parseInt(_0x3ee1cb(0x18a))/0x5*(-parseInt(_0x3ee1cb(0x1d8))/0x6)+-parseInt(_0x3ee1cb(0x1c5))/0x7+parseInt(_0x3ee1cb(0x21b))/0x8;if(_0x1c738d===_0x327280)break;else _0x2b598f['push'](_0x2b598f['shift']());}catch(_0x5d35da){_0x2b598f['push'](_0x2b598f['shift']());}}}(a129_0x4654,0x51f1c));function a129_0x4654(){const _0x503b2b=['TestRunSkipped','IFJes','TEST_REPORTING_ANALYTICS','Retry\x20runs\x20exceeded','HookRunStarted','CMoan','X-BSTACK-TESTOPS','Bearer\x20','OWfEX','PZupx','uFlAO','basename','MTpTa','eUdjY','1751946cXEolK','RlGPn','nestedKeyValue','USbIu','Test_Skipped_Upload','UHJFc','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','ERROR_SDK_DEPRECATED','getAccessKey','jwt','KlZXa','toString','Authorization','pendingUploads','POST','sendEventData','buildIdentifier','BS_A11Y_JWT','TestRunFinished','wwZHj','xqZNq','Test_Start_Upload','danpd','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','\x20failed\x20due\x20to\x20','env','lwMFt','api/v1/builds','getAgentVersion','../../bin/utils/constants','getInstance','mMQRe','waitForBuildStatus','2729832cxDxeI','DaDif','false','sendTraceZip','byOjD','errorType','BS_TESTOPS_BUILD_HASHED_ID','\x20retry\x20runs\x20exceeded','cwd','yNYwp','KjlIL','includes','api/v1/event','add','bduFZ','max','KVElz','frameworkVersion','Qbuui','354fafkcy','Kxqsf','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','cLuCd','true','test_run_uuid','BMvjt','YTecA','nOILI','getLogTag','871442MxFKGp','aAIbs','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','BS_TESTOPS_JWT','\x20REQUEST\x20TO\x20','EXCEPTION\x20IN\x20','FagnN','Content-Type','vjcEJ','OWuTl','ASgsM','error','Test_End_Upload','BS_TESTOPS_ALLOW_SCREENSHOTS','uuid','Build\x20creation\x20successful!','resolve','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','sOenA','getCiInfo',']\x20event\x20successful!','tIOPU','1913016bRxQVu','util','length','VYyMy','app','projectName','\x20:\x20','getUserName','Data\x20upload\x20to\x20BrowserStack\x20','password','ZtsAH','douWp','Log_Upload','uploadEventData','TrbUD','ycsjt','data','kffeq','JAHuq','status','BROWSERSTACK_TESTHUB_JWT','statusText','EjRLo','CREDENTIALS_FOR_CRASH_REPORTING','\x20:\x20missing\x20authentication\x20token','BROWSERSTACK_RERUN','skwUB','WlCPk','ERROR_ACCESS_DENIED','hook_run','Seivd','allow_screenshots','requestQueueHandler','toISOString','pPFsv','5171504xfxtwv','start','buildDescription','BROWSERSTACK_BUILD_RUN_IDENTIFIER','Hook_Start_Upload','mUKtm','response','eventUrl','bIjVo','info','build_hashed_id','Johrj','fxqEY','event_type','BROWSERSTACK_TESTHUB_UUID','bBSPW','stringify','nJozw','avfHc','BS_TESTOPS_BUILD_COMPLETED','555967CtqboG','exports','message','success','winstonLogger','browserstackAutomation','headers','iUCvu','IsQph','debug','logs','xhRZF','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','5480KYHVIV','./utils','VSzZH','qwyaB','EPzuX','username','format','../logger','Espcj','PygIy','dhssy','uiPHG'];a129_0x4654=function(){return _0x503b2b;};return a129_0x4654();}const bsSetupHelper=require('../helper'),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a129_0x29bd02(0x18b)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a129_0x29bd02(0x191))[a129_0x29bd02(0x181)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require('../../helpers/testhub/utils'),util=require(a129_0x29bd02(0x1f9)),constants=require(a129_0x29bd02(0x1c1));class SessionHandler{static [a129_0x29bd02(0x218)]=RequestQueueHandler[a129_0x29bd02(0x1c2)]();static async['launch'](_0x41793b,_0xdaa33d){const _0x440adc=a129_0x29bd02,_0x5d0cb9={'USbIu':function(_0x5a2b7c,_0x49449a){return _0x5a2b7c||_0x49449a;},'douWp':function(_0x3ba8f3,_0x41b0b4){return _0x3ba8f3===_0x41b0b4;},'eUdjY':function(_0x1acf3f,_0x11c461){return _0x1acf3f(_0x11c461);},'qwyaB':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','gfvol':_0x440adc(0x1c7),'Seivd':'json','fxqEY':function(_0x2a4c6b,_0x217dbc){return _0x2a4c6b(_0x217dbc);},'Kxqsf':function(_0x269ff6,_0x44dd1c){return _0x269ff6(_0x44dd1c);},'USZcJ':function(_0x3766d0,_0x45df12){return _0x3766d0(_0x45df12);},'Johrj':function(_0x2946cd,_0x11a8a7,_0x11b094,_0x15897c,_0x25031f){return _0x2946cd(_0x11a8a7,_0x11b094,_0x15897c,_0x25031f);},'IhlNa':_0x440adc(0x1b2),'mserv':_0x440adc(0x1bf),'MTpTa':function(_0x33b1cc,_0x1842ed){return _0x33b1cc(_0x1842ed);},'CrBpC':_0x440adc(0x1f1),'kffeq':function(_0xcb998){return _0xcb998();},'KlZXa':_0x440adc(0x1dc),'VSzZH':'null','dhssy':function(_0x5a9c41,_0x5235d4){return _0x5a9c41(_0x5235d4);},'wwZHj':function(_0x2029fd,_0x1e0ef0){return _0x2029fd(_0x1e0ef0);},'pPFsv':'ERROR_INVALID_CREDENTIALS','nOILI':_0x440adc(0x214),'mMQRe':_0x440adc(0x1ab)};logger[_0x440adc(0x224)](_0x440adc(0x1bb)+util['inspect'](_0x41793b));const _0x4a3bf0=bsSetupHelper[_0x440adc(0x1ff)](_0x41793b),_0x45e233=bsSetupHelper[_0x440adc(0x1ac)](_0x41793b),_0x369b05=_0x5d0cb9[_0x440adc(0x1a7)](_0x4a3bf0,'')+':'+_0x5d0cb9[_0x440adc(0x1a7)](_0x45e233,'');if(_0x5d0cb9[_0x440adc(0x203)](_0x369b05,':'))return _0x5d0cb9[_0x440adc(0x1a3)](debug,_0x5d0cb9[_0x440adc(0x18d)]),process['env'][_0x440adc(0x17c)]=_0x5d0cb9['gfvol'],[null,null];let _0x232f60=![],_0x44d890=![];if(_0x41793b['browserstackAutomation']&&_0x41793b[_0x440adc(0x1fc)])_0x44d890=!![];else _0x41793b[_0x440adc(0x182)]&&(_0x232f60=!![]);try{const _0x398b70={'format':_0x5d0cb9[_0x440adc(0x216)],'project_name':_0x41793b[_0x440adc(0x1fd)]||'','name':_0x41793b['buildName']||path[_0x440adc(0x1a1)](path[_0x440adc(0x1f2)](process[_0x440adc(0x1cd)]())),'build_identifier':_0x41793b[_0x440adc(0x1b4)],'description':_0x41793b[_0x440adc(0x21d)]||'','start_time':new Date()[_0x440adc(0x219)](),'tags':_0x5d0cb9[_0x440adc(0x175)](getCustomTags,_0x41793b),'host_info':bsSetupHelper['getHostInfo'](),'ci_info':bsSetupHelper[_0x440adc(0x1f5)](),'build_run_identifier':process['env'][_0x440adc(0x21e)],'failed_tests_rerun':process[_0x440adc(0x1bd)][_0x440adc(0x211)]||![],'version_control':await bsSetupHelper['getGitMetaData'](),'observability_version':{'frameworkName':_0xdaa33d['frameworkName'],'frameworkVersion':_0xdaa33d[_0x440adc(0x1d6)],'sdkVersion':bsSetupHelper[_0x440adc(0x1c0)]()},'product_map':_0x5d0cb9[_0x440adc(0x1d9)](getProductMap,_0x41793b),'test_orchestration':_0x5d0cb9[_0x440adc(0x1a3)](getTestOrchestrationBuildStartData,_0x41793b)},_0x37a8e3={};_0x37a8e3[_0x440adc(0x18f)]=_0x4a3bf0,_0x37a8e3[_0x440adc(0x201)]=_0x45e233;const _0x57d6f6={'auth':_0x37a8e3,'headers':_0x5d0cb9['USZcJ'](getDefaultHeaders,![])},_0x2f81a6=await _0x5d0cb9[_0x440adc(0x174)](nodeRequest,_0x5d0cb9['IhlNa'],_0x5d0cb9['mserv'],_0x398b70,_0x57d6f6);_0x5d0cb9[_0x440adc(0x1a2)](debug,_0x5d0cb9['CrBpC']);const _0x162c49=_0x2f81a6[_0x440adc(0x208)];_0x162c49['build_hashed_id']&&(process[_0x440adc(0x1bd)][_0x440adc(0x177)]=_0x162c49['build_hashed_id']);if(_0x5d0cb9[_0x440adc(0x209)](isTestObservabilitySession)){process[_0x440adc(0x1bd)][_0x440adc(0x17c)]=_0x5d0cb9[_0x440adc(0x1ae)];if(_0x162c49[_0x440adc(0x1ad)]){process[_0x440adc(0x1bd)][_0x440adc(0x1e5)]=_0x162c49[_0x440adc(0x1ad)];const _0x45d801={};_0x45d801[_0x440adc(0x18f)]=_0x4a3bf0,_0x45d801[_0x440adc(0x201)]=_0x45e233,process[_0x440adc(0x1bd)][_0x440adc(0x20f)]=JSON[_0x440adc(0x179)](_0x45d801);}_0x162c49['build_hashed_id']&&(process[_0x440adc(0x1bd)][_0x440adc(0x1cb)]=_0x162c49['build_hashed_id']),_0x162c49[_0x440adc(0x217)]&&(process['env'][_0x440adc(0x1ef)]=_0x162c49['allow_screenshots'][_0x440adc(0x1af)]());}return[_0x2f81a6[_0x440adc(0x208)][_0x440adc(0x1ad)],_0x2f81a6['data'][_0x440adc(0x225)],_0x2f81a6[_0x440adc(0x208)][_0x440adc(0x217)]];}catch(_0x34507a){process[_0x440adc(0x1bd)][_0x440adc(0x177)]=_0x5d0cb9['VSzZH'],process['env']['BS_TESTOPS_BUILD_COMPLETED']=_0x5d0cb9['gfvol'],process[_0x440adc(0x1bd)][_0x440adc(0x1e5)]=_0x5d0cb9[_0x440adc(0x18c)],process['env'][_0x440adc(0x1cb)]=_0x5d0cb9[_0x440adc(0x18c)],process[_0x440adc(0x1bd)][_0x440adc(0x1ef)]=_0x5d0cb9[_0x440adc(0x18c)];_0x34507a[_0x440adc(0x221)]?_0x5d0cb9[_0x440adc(0x194)](debug,_0x440adc(0x1aa)+_0x34507a[_0x440adc(0x221)][_0x440adc(0x20b)]+'\x20'+_0x34507a[_0x440adc(0x221)]['statusText']+'\x20'+JSON[_0x440adc(0x179)](_0x34507a['response'][_0x440adc(0x208)])):_0x5d0cb9[_0x440adc(0x1b7)](debug,_0x440adc(0x1aa)+(_0x34507a[_0x440adc(0x17f)]||_0x34507a));if(_0x34507a&&_0x34507a[_0x440adc(0x17f)]){const _0xc83cb5=_0x34507a['message'];switch(_0x34507a[_0x440adc(0x1ca)]){case _0x5d0cb9[_0x440adc(0x21a)]:logger[_0x440adc(0x1ed)](_0xc83cb5);break;case _0x5d0cb9[_0x440adc(0x1e0)]:logger[_0x440adc(0x224)](_0xc83cb5);break;case _0x5d0cb9[_0x440adc(0x1c3)]:logger[_0x440adc(0x1ed)](_0xc83cb5);break;default:logger[_0x440adc(0x1ed)](_0xc83cb5);}}else console[_0x440adc(0x224)](_0x440adc(0x200)+constants[_0x440adc(0x198)]+_0x440adc(0x1bc)+_0x34507a);return[null,null,null];}}static async[a129_0x29bd02(0x1c4)](){const _0x5b810d=a129_0x29bd02,_0x537bca={'avfHc':'true','sOenA':'false','TrbUD':function(_0x3dd3ae,_0x58dfed){return _0x3dd3ae(_0x58dfed);}},_0x355970=process[_0x5b810d(0x1bd)][_0x5b810d(0x17c)];if([_0x537bca[_0x5b810d(0x17b)],_0x537bca[_0x5b810d(0x1f4)]][_0x5b810d(0x1d0)](_0x355970))return;while([_0x537bca[_0x5b810d(0x17b)],_0x537bca[_0x5b810d(0x1f4)]]['includes'](_0x355970)){await _0x537bca[_0x5b810d(0x206)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a129_0x29bd02(0x1e1)](_0x3b3035){const _0x49c817=a129_0x29bd02,_0x6419d1={};_0x6419d1['vjcEJ']=_0x49c817(0x1b9),_0x6419d1['danpd']=_0x49c817(0x1ee),_0x6419d1[_0x49c817(0x20e)]=_0x49c817(0x1a8),_0x6419d1[_0x49c817(0x17a)]=_0x49c817(0x204),_0x6419d1[_0x49c817(0x213)]=_0x49c817(0x21f),_0x6419d1['KVElz']='Hook_End_Upload',_0x6419d1[_0x49c817(0x20a)]='CBT_Upload';const _0x5e5cfd=_0x6419d1,_0x5a06b9={};return _0x5a06b9['TestRunStarted']=_0x5e5cfd[_0x49c817(0x1ea)],_0x5a06b9[_0x49c817(0x1b6)]=_0x5e5cfd[_0x49c817(0x1ba)],_0x5a06b9[_0x49c817(0x196)]=_0x5e5cfd['EjRLo'],_0x5a06b9['LogCreated']=_0x5e5cfd['nJozw'],_0x5a06b9[_0x49c817(0x19a)]=_0x5e5cfd['WlCPk'],_0x5a06b9['HookRunFinished']=_0x5e5cfd[_0x49c817(0x1d5)],_0x5a06b9['CBTSessionCreated']=_0x5e5cfd[_0x49c817(0x20a)],_0x5a06b9[_0x3b3035[_0x49c817(0x176)]];}static async[a129_0x29bd02(0x1b3)](_0x39b1e0,_0x114573=0x0,_0x2fe069=null){const _0x38374b=a129_0x29bd02,_0x383ba6={'CMoan':function(_0x2c31ec,_0x304546){return _0x2c31ec===_0x304546;},'BMvjt':_0x38374b(0x1c8),'yNYwp':function(_0x36eef3,_0x271137){return _0x36eef3!==_0x271137;},'lwMFt':'application/json','xhRZF':_0x38374b(0x1dc),'PygIy':function(_0x8fddc,_0x4c769a,_0xa5e6a9,_0x252d9d,_0x303622){return _0x8fddc(_0x4c769a,_0xa5e6a9,_0x252d9d,_0x303622);},'ycsjt':_0x38374b(0x1b2),'bBSPW':function(_0x35c8b8,_0x112049,_0x3834c4,_0x445b0e,_0x2b6308){return _0x35c8b8(_0x112049,_0x3834c4,_0x445b0e,_0x2b6308);},'RlGPn':function(_0x51b371,_0x4be40a){return _0x51b371(_0x4be40a);},'ZtsAH':'Batch-Queue','bduFZ':function(_0x3ab3da,_0x580e06){return _0x3ab3da-_0x580e06;},'VYyMy':function(_0x5a38d1,_0xa9b30c){return _0x5a38d1===_0xa9b30c;},'iUCvu':_0x38374b(0x1d1),'PZupx':_0x38374b(0x180),'fYwsz':function(_0x5cb128,_0x3ae217){return _0x5cb128(_0x3ae217);},'xqZNq':function(_0x5c05fb,_0x459cb0){return _0x5c05fb!==_0x459cb0;},'OWfEX':function(_0xe78edc,_0xc59d5e){return _0xe78edc!==_0xc59d5e;},'uFlAO':function(_0x2ad994,_0x330e13){return _0x2ad994-_0x330e13;},'BzuAe':_0x38374b(0x1ed)};_0x383ba6[_0x38374b(0x19b)](_0x2fe069,_0x383ba6[_0x38374b(0x1de)])&&logger['debug']('Sending\x20trace\x20zip\x20for\x20test:\x20'+_0x39b1e0['logs'][0x0][_0x38374b(0x1dd)]);const _0x1223a5=await this['getLogTag'](_0x39b1e0);let _0x14b8ed=_0x39b1e0,_0x17bd87=EVENT_ENDPOINT;_0x383ba6[_0x38374b(0x1ce)](_0x2fe069,_0x383ba6[_0x38374b(0x1de)])&&this['requestQueueHandler'][_0x38374b(0x21c)]();const {shouldProceed:_0xfd2484,proceedWithData:_0x51b603,proceedWithUrl:_0x5f5bbf}=this[_0x38374b(0x218)][_0x38374b(0x1d2)](_0x39b1e0);if(!_0xfd2484)return;else _0x51b603&&(_0x14b8ed=_0x51b603,_0x17bd87=_0x5f5bbf);const _0x534307={};_0x534307[_0x38374b(0x1b0)]=_0x38374b(0x19d)+process[_0x38374b(0x1bd)][_0x38374b(0x20c)],_0x534307[_0x38374b(0x1e9)]=_0x383ba6[_0x38374b(0x1be)],_0x534307[_0x38374b(0x19c)]=_0x383ba6[_0x38374b(0x188)];const _0x868546={};_0x868546[_0x38374b(0x183)]=_0x534307;const _0x1aa8e8=_0x868546;let _0x4e9331;try{_0x383ba6['CMoan'](_0x2fe069,_0x383ba6[_0x38374b(0x1de)])?(logger['debug'](_0x38374b(0x1da)+_0x39b1e0?.['logs'][0x0]?.['test_run_uuid']),_0x4e9331=await _0x383ba6[_0x38374b(0x193)](asyncAwaitNodeReq,_0x383ba6['ycsjt'],_0x17bd87,_0x14b8ed,_0x1aa8e8),logger[_0x38374b(0x186)](_0x38374b(0x1f3)+_0x39b1e0?.[_0x38374b(0x187)][0x0]?.[_0x38374b(0x1dd)])):_0x4e9331=await _0x383ba6[_0x38374b(0x178)](nodeRequest,_0x383ba6[_0x38374b(0x207)],_0x17bd87,_0x14b8ed,_0x1aa8e8);if(_0x4e9331['data'][_0x38374b(0x1ed)]){const _0x2b0717={};_0x2b0717[_0x38374b(0x17f)]=_0x4e9331[_0x38374b(0x208)][_0x38374b(0x1ed)];throw _0x2b0717;}else{_0x383ba6[_0x38374b(0x1a5)](debug,(_0x383ba6[_0x38374b(0x1ce)](_0x17bd87,this[_0x38374b(0x218)][_0x38374b(0x222)])?_0x1223a5:_0x383ba6[_0x38374b(0x202)])+'['+_0x114573+_0x38374b(0x1f6)),this[_0x38374b(0x218)][_0x38374b(0x1b1)]=Math['max'](0x0,_0x383ba6[_0x38374b(0x1d3)](this[_0x38374b(0x218)][_0x38374b(0x1b1)],_0x383ba6[_0x38374b(0x1fb)](_0x17bd87,_0x383ba6[_0x38374b(0x184)])?0x1:_0x14b8ed[_0x38374b(0x1fa)]));const _0x987274={};return _0x987274[_0x38374b(0x20b)]=_0x383ba6[_0x38374b(0x19f)],_0x987274['message']='',_0x987274;}}catch(_0x199221){_0x199221[_0x38374b(0x221)]?_0x383ba6['fYwsz'](debug,_0x38374b(0x1e7)+(_0x383ba6[_0x38374b(0x1b8)](_0x17bd87,this[_0x38374b(0x218)][_0x38374b(0x222)])?_0x1223a5:_0x383ba6[_0x38374b(0x202)])+'\x20REQUEST\x20TO\x20'+constants[_0x38374b(0x198)]+_0x38374b(0x1fe)+_0x199221[_0x38374b(0x221)]['status']+'\x20'+_0x199221[_0x38374b(0x221)][_0x38374b(0x20d)]+'\x20'+util['format'](_0x199221[_0x38374b(0x221)]['data'])):_0x383ba6['RlGPn'](debug,_0x38374b(0x1e7)+(_0x383ba6[_0x38374b(0x19e)](_0x17bd87,this[_0x38374b(0x218)][_0x38374b(0x222)])?_0x1223a5:_0x383ba6[_0x38374b(0x202)])+_0x38374b(0x1e6)+constants['TEST_REPORTING_ANALYTICS']+_0x38374b(0x1fe)+util[_0x38374b(0x190)](_0x199221));this[_0x38374b(0x218)]['pendingUploads']=Math[_0x38374b(0x1d4)](0x0,_0x383ba6[_0x38374b(0x1a0)](this[_0x38374b(0x218)][_0x38374b(0x1b1)],_0x383ba6['VYyMy'](_0x17bd87,_0x383ba6[_0x38374b(0x184)])?0x1:_0x14b8ed[_0x38374b(0x1fa)]));const _0x36c473={};return _0x36c473[_0x38374b(0x20b)]=_0x383ba6['BzuAe'],_0x36c473[_0x38374b(0x17f)]=_0x199221['message']||(_0x199221[_0x38374b(0x221)]?_0x199221[_0x38374b(0x221)]['status']+':'+_0x199221[_0x38374b(0x221)][_0x38374b(0x20d)]:_0x199221),_0x36c473;}}static async[a129_0x29bd02(0x205)](_0x22f965,_0x4ee9a3=0x0){const _0x496d0e=a129_0x29bd02,_0x31b0c9={'Espcj':function(_0x4215c1,_0x46a9e8){return _0x4215c1+_0x46a9e8;},'OcXAw':function(_0xbf2df4,_0x50b1ab){return _0xbf2df4(_0x50b1ab);},'FagnN':'test_run','uiPHG':_0x496d0e(0x1f0),'mUKtm':_0x496d0e(0x215),'byOjD':function(_0x543efd,_0x465f7f,_0x4484c2){return _0x543efd(_0x465f7f,_0x4484c2);},'ASgsM':'uploadEventData','DaDif':function(_0x522686,_0x2d720e){return _0x522686===_0x2d720e;},'aAIbs':function(_0xf814d4,_0x535f94){return _0xf814d4!==_0x535f94;},'YTecA':'null','KjlIL':_0x496d0e(0x1dc),'vNpWO':function(_0x2e68f8){return _0x2e68f8();},'OWuTl':function(_0x458779,_0xaf8d0c){return _0x458779(_0xaf8d0c);},'Qbuui':function(_0x35e96a,_0x8279de){return _0x35e96a-_0x8279de;},'IsQph':_0x496d0e(0x1ed),'cLuCd':_0x496d0e(0x189),'skwUB':function(_0x286a8c,_0x2ba455){return _0x286a8c>=_0x2ba455;},'bIjVo':function(_0x5b7bf3,_0x369e3a){return _0x5b7bf3-_0x369e3a;},'tIOPU':_0x496d0e(0x199),'EPzuX':function(_0x307553,_0x414cc9){return _0x307553!==_0x414cc9;},'IFJes':_0x496d0e(0x1c7),'UHJFc':function(_0x280dd4,_0xaf64a,_0x2feece){return _0x280dd4(_0xaf64a,_0x2feece);}},_0x7257be=this[_0x496d0e(0x1e1)](_0x22f965);_0x31b0c9['OcXAw'](trace,'Processing\x20event\x20-\x20\x27'+_0x22f965[_0x496d0e(0x176)]+'\x27\x20'+(bsSetupHelper[_0x496d0e(0x1a6)](_0x22f965,[_0x31b0c9[_0x496d0e(0x1e8)],_0x31b0c9[_0x496d0e(0x195)]])||bsSetupHelper[_0x496d0e(0x1a6)](_0x22f965,[_0x31b0c9[_0x496d0e(0x220)],_0x31b0c9[_0x496d0e(0x195)]])));if(!_0x31b0c9[_0x496d0e(0x1c9)](shouldProcessEventForTesthub,_0x22f965[_0x496d0e(0x176)],_0x31b0c9[_0x496d0e(0x1ec)]))return;_0x31b0c9['DaDif'](_0x4ee9a3,0x0)&&process[_0x496d0e(0x1bd)][_0x496d0e(0x20c)]&&_0x31b0c9[_0x496d0e(0x1e3)](process[_0x496d0e(0x1bd)][_0x496d0e(0x20c)],_0x31b0c9[_0x496d0e(0x1df)])&&(this[_0x496d0e(0x218)][_0x496d0e(0x1b1)]+=0x1);if(_0x31b0c9[_0x496d0e(0x1c6)](process[_0x496d0e(0x1bd)]['BS_TESTOPS_BUILD_COMPLETED'],_0x31b0c9[_0x496d0e(0x1cf)])||process[_0x496d0e(0x1bd)][_0x496d0e(0x1b5)]||_0x31b0c9['vNpWO'](isPercyBuild)){if(_0x31b0c9[_0x496d0e(0x1c6)](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x31b0c9[_0x496d0e(0x1df)])){_0x31b0c9[_0x496d0e(0x1eb)](debug,_0x496d0e(0x1e7)+_0x7257be+'\x20REQUEST\x20TO\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x496d0e(0x210)),this['requestQueueHandler'][_0x496d0e(0x1b1)]=Math[_0x496d0e(0x1d4)](0x0,_0x31b0c9[_0x496d0e(0x1d7)](this['requestQueueHandler'][_0x496d0e(0x1b1)],0x1));const _0x20b1a5={};return _0x20b1a5[_0x496d0e(0x20b)]=_0x31b0c9[_0x496d0e(0x185)],_0x20b1a5['message']=_0x31b0c9[_0x496d0e(0x1db)],_0x20b1a5;}return await this[_0x496d0e(0x1b3)](_0x22f965,_0x4ee9a3);}else{if(_0x31b0c9[_0x496d0e(0x212)](_0x4ee9a3,0x5)){_0x31b0c9[_0x496d0e(0x1eb)](debug,'EXCEPTION\x20IN\x20'+_0x7257be+_0x496d0e(0x1e6)+constants[_0x496d0e(0x198)]+_0x496d0e(0x1e4)+_0x7257be+_0x496d0e(0x1cc));_0x31b0c9[_0x496d0e(0x1e3)](process['env'][_0x496d0e(0x20c)],_0x31b0c9[_0x496d0e(0x1df)])&&(this[_0x496d0e(0x218)][_0x496d0e(0x1b1)]=Math[_0x496d0e(0x1d4)](0x0,_0x31b0c9[_0x496d0e(0x223)](this[_0x496d0e(0x218)][_0x496d0e(0x1b1)],0x1)));const _0x5814ea={};return _0x5814ea['status']=_0x31b0c9[_0x496d0e(0x185)],_0x5814ea[_0x496d0e(0x17f)]=_0x31b0c9[_0x496d0e(0x1f7)],_0x5814ea;}else _0x31b0c9[_0x496d0e(0x18e)](process[_0x496d0e(0x1bd)][_0x496d0e(0x17c)],_0x31b0c9[_0x496d0e(0x197)])&&_0x31b0c9[_0x496d0e(0x1a9)](setTimeout,()=>{const _0x4c5b6b=_0x496d0e;this[_0x4c5b6b(0x205)](_0x22f965,_0x31b0c9[_0x4c5b6b(0x192)](_0x4ee9a3,0x1));},0x3e8);}}}function a129_0x1332(_0x378256,_0xdc5ec4){const _0x46540f=a129_0x4654();return a129_0x1332=function(_0x133246,_0x289845){_0x133246=_0x133246-0x174;let _0xb1ebbf=_0x46540f[_0x133246];return _0xb1ebbf;},a129_0x1332(_0x378256,_0xdc5ec4);}module[a129_0x29bd02(0x17e)]=SessionHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a130_0x18aa(_0x4563e4,_0x454337){const _0x2532f0=a130_0x2532();return a130_0x18aa=function(_0x18aab8,_0xa65dd4){_0x18aab8=_0x18aab8-0xca;let _0x19561d=_0x2532f0[_0x18aab8];return _0x19561d;},a130_0x18aa(_0x4563e4,_0x454337);}const a130_0x22a702=a130_0x18aa;(function(_0x410100,_0x58b179){const _0xed045e=a130_0x18aa,_0x38102f=_0x410100();while(!![]){try{const _0x4e05e0=parseInt(_0xed045e(0xe3))/0x1+parseInt(_0xed045e(0x10f))/0x2+-parseInt(_0xed045e(0x174))/0x3+parseInt(_0xed045e(0x108))/0x4+parseInt(_0xed045e(0x155))/0x5*(-parseInt(_0xed045e(0x1b0))/0x6)+-parseInt(_0xed045e(0xda))/0x7+parseInt(_0xed045e(0x163))/0x8;if(_0x4e05e0===_0x58b179)break;else _0x38102f['push'](_0x38102f['shift']());}catch(_0x4bf7b8){_0x38102f['push'](_0x38102f['shift']());}}}(a130_0x2532,0xb9842));const fs=require('fs'),path=require(a130_0x22a702(0xe0)),gitLastCommit=require(a130_0x22a702(0x1ca)),getRepoInfo=require('git-repo-info'),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a130_0x22a702(0x11f)),http=require(a130_0x22a702(0xdc)),https=require('https'),child_process=require(a130_0x22a702(0x1bd)),getos=require(a130_0x22a702(0xeb)),os=require('os'),logger=require(a130_0x22a702(0x1c9))[a130_0x22a702(0x14b)],buildLogger=require(a130_0x22a702(0x1c9))[a130_0x22a702(0x1b7)],bsSetupHelper=require(a130_0x22a702(0x17f)),requestSpy=require('../../helpers/request-spy'),constants=require(a130_0x22a702(0xce)),logPatcher=require('../../bin/utils/logPatcher'),util=require(a130_0x22a702(0xdb)),{fileLogger}=require(a130_0x22a702(0x1c9)),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a130_0x22a702(0xfb)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require('../performance/constants'),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require('../../../src/bin/utils/constants');exports[a130_0x22a702(0x1e0)]=_0x24228c=>{const _0x40c9da=a130_0x22a702;fileLogger[_0x40c9da(0x172)]('['+new Date()[_0x40c9da(0xca)]()+_0x40c9da(0x15c)+constants[_0x40c9da(0xfe)]+'\x20]\x20'+_0x24228c);},exports[a130_0x22a702(0x1b8)]=_0x4cb76e=>{const _0x26c622=a130_0x22a702,_0x540f1c={};_0x540f1c['qvpBy']=function(_0x25e4e6,_0x2be7ea){return _0x25e4e6===_0x2be7ea;},_0x540f1c[_0x26c622(0x19a)]=_0x26c622(0xfd),_0x540f1c[_0x26c622(0x176)]=function(_0xbf5d88,_0x29e70c){return _0xbf5d88===_0x29e70c;},_0x540f1c[_0x26c622(0x142)]=function(_0x52ae39,_0x2ff3ab){return _0x52ae39===_0x2ff3ab;};const _0x19c9e7=_0x540f1c;fileLogger[_0x26c622(0x1b8)]('['+new Date()['toISOString']()+_0x26c622(0x15c)+constants['TEST_REPORTING_ANALYTICS']+_0x26c622(0x152)+_0x4cb76e),(_0x19c9e7[_0x26c622(0x1d1)](process[_0x26c622(0x187)][_0x26c622(0x175)],_0x19c9e7['sMOYS'])||_0x19c9e7[_0x26c622(0x176)](process[_0x26c622(0x187)][_0x26c622(0x175)],'1')||_0x19c9e7['qvpBy'](process['env'][_0x26c622(0x124)],_0x19c9e7['sMOYS'])||_0x19c9e7[_0x26c622(0x142)](process[_0x26c622(0x187)][_0x26c622(0x124)],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x26c622(0xca)]()+_0x26c622(0x15c)+constants[_0x26c622(0xfe)]+_0x26c622(0x152)+_0x4cb76e+'\x0a');};const a130_0x495a08={};a130_0x495a08[a130_0x22a702(0xcd)]=!![],a130_0x495a08[a130_0x22a702(0x1a8)]=0xea60,a130_0x495a08['maxSockets']=0x2,a130_0x495a08[a130_0x22a702(0xd5)]=0x2;const httpKeepAliveAgent=new http['Agent'](a130_0x495a08),a130_0x525a1b={};a130_0x525a1b['keepAlive']=!![],a130_0x525a1b['timeout']=0xea60,a130_0x525a1b['maxSockets']=0x2,a130_0x525a1b['maxTotalSockets']=0x2;const httpsKeepAliveAgent=new https[(a130_0x22a702(0x1be))](a130_0x525a1b),a130_0x55456b={};a130_0x55456b[a130_0x22a702(0xcd)]=!![],a130_0x55456b[a130_0x22a702(0x1a8)]=0xea60,a130_0x55456b[a130_0x22a702(0x157)]=0x2,a130_0x55456b[a130_0x22a702(0xd5)]=0x2;const httpScreenshotsKeepAliveAgent=new http['Agent'](a130_0x55456b),a130_0x4e3b6c={};a130_0x4e3b6c['keepAlive']=!![],a130_0x4e3b6c[a130_0x22a702(0x1a8)]=0xea60,a130_0x4e3b6c[a130_0x22a702(0x157)]=0x2,a130_0x4e3b6c[a130_0x22a702(0xd5)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a130_0x22a702(0x1be))](a130_0x4e3b6c);exports[a130_0x22a702(0x1b3)]=()=>{const _0x281e3b=a130_0x22a702,_0x10b0fe={};_0x10b0fe[_0x281e3b(0x1cd)]=function(_0x4567ec,_0x20c70d){return _0x4567ec!==_0x20c70d;},_0x10b0fe[_0x281e3b(0x1ce)]=_0x281e3b(0x16e);const _0x287ad5=_0x10b0fe;return process['env'][_0x281e3b(0x1a0)]&&_0x287ad5['HDota'](process[_0x281e3b(0x187)][_0x281e3b(0x1a0)],_0x287ad5[_0x281e3b(0x1ce)])?!![]:![];},exports['isTestObservabilitySession']=()=>{const _0x142960=a130_0x22a702,_0xb580a1={};_0xb580a1[_0x142960(0x123)]=function(_0x4b3d46,_0x2a80a7){return _0x4b3d46===_0x2a80a7;},_0xb580a1['kTony']=_0x142960(0xfd),_0xb580a1[_0x142960(0x1c4)]=function(_0x49999e,_0x29f693){return _0x49999e===_0x29f693;};const _0x36aec5=_0xb580a1;let _0x17cfd3=!![];return process['env'][_0x142960(0x17c)]&&(_0x17cfd3=_0x36aec5[_0x142960(0x123)](process[_0x142960(0x187)][_0x142960(0x17c)],_0x36aec5[_0x142960(0x137)])),process[_0x142960(0x187)][_0x142960(0x181)]&&(_0x17cfd3=_0x36aec5['XNVrC'](process[_0x142960(0x187)][_0x142960(0x181)],_0x36aec5[_0x142960(0x137)])),process[_0x142960(0x187)][_0x142960(0x12f)]&&(_0x17cfd3=_0x36aec5[_0x142960(0x1c4)](process[_0x142960(0x187)][_0x142960(0x12f)],_0x36aec5[_0x142960(0x137)])),_0x17cfd3;},exports[a130_0x22a702(0x177)]=_0xddb518=>{const _0x1e2305=a130_0x22a702;if(bsSetupHelper[_0x1e2305(0x1de)](_0xddb518))return undefined;try{return _0xddb518[_0x1e2305(0x197)]()[_0x1e2305(0x138)](',');}catch(_0x43f483){return undefined;}},exports[a130_0x22a702(0x114)]=()=>{const _0x4f20f1=a130_0x22a702,_0xd05f06={'yhPBC':function(_0x1e022f,_0x2d78d4){return _0x1e022f(_0x2d78d4);},'EYSfg':_0x4f20f1(0x140),'teemn':function(_0x1e503f,_0x53c819){return _0x1e503f!==_0x53c819;},'jJINO':_0x4f20f1(0x16e),'VGxpx':function(_0x55567f,_0x496f40){return _0x55567f!==_0x496f40;},'nmVDm':_0x4f20f1(0x13d)};return PerformanceTester[_0x4f20f1(0x145)](PerformanceO11yEvents[_0x4f20f1(0x1a2)],async()=>{const _0xaf8dba=_0x4f20f1;try{const _0x537971=_0xd05f06[_0xaf8dba(0x1df)](require,_0xd05f06[_0xaf8dba(0x100)]);if(_0x537971['O11yHashedID']){const _0x56b162=_0xaf8dba(0x170)+O11Y_URL+_0xaf8dba(0x1e1)+_0x537971[_0xaf8dba(0x158)]+_0xaf8dba(0x11b);buildLogger[_0xaf8dba(0xe5)](_0x56b162);return;}if(process[_0xaf8dba(0x187)][_0xaf8dba(0xd3)]&&_0xd05f06[_0xaf8dba(0x168)](process[_0xaf8dba(0x187)][_0xaf8dba(0xd3)],_0xd05f06[_0xaf8dba(0x15e)])&&_0xd05f06[_0xaf8dba(0x166)](process['env']['BS_TESTOPS_BUILD_HASHED_ID'],_0xd05f06[_0xaf8dba(0xcb)])){const _0x3ca147=_0xaf8dba(0x170)+constants[_0xaf8dba(0x1c6)]+_0xaf8dba(0x1e1)+process[_0xaf8dba(0x187)]['BS_TESTOPS_BUILD_HASHED_ID']+_0xaf8dba(0x11b);buildLogger[_0xaf8dba(0xe5)](_0x3ca147);}}catch(_0x35c436){logger[_0xaf8dba(0x16c)](util['format'](_0xaf8dba(0x194)+constants['TEST_REPORTING_ANALYTICS']+_0xaf8dba(0x1e4),new Date()[_0xaf8dba(0xca)](),_0x35c436['stack']||_0x35c436[_0xaf8dba(0xd0)]||_0x35c436));}})();},exports[a130_0x22a702(0x103)]=_0x4b744e=>{const _0x20f6c3=a130_0x22a702,_0x22f167={};_0x22f167[_0x20f6c3(0x1d4)]=_0x20f6c3(0x115),_0x22f167[_0x20f6c3(0x121)]=_0x20f6c3(0x1dd),_0x22f167[_0x20f6c3(0x117)]=_0x20f6c3(0x1c3),_0x22f167[_0x20f6c3(0x14c)]=_0x20f6c3(0xee);const _0x4b8b74=_0x22f167;if(!_0x4b744e)return null;const _0x333a44=_0x4b744e[_0x20f6c3(0x1d6)]();if(_0x333a44['match'](/AssertionError/))return _0x4b8b74[_0x20f6c3(0x1d4)];if(_0x333a44[_0x20f6c3(0x169)](/TimeoutError/)||_0x333a44['startsWith'](_0x4b8b74['xPCRm'])||_0x333a44[_0x20f6c3(0x169)](/Timeout.*exceeded/i))return _0x4b8b74[_0x20f6c3(0x117)];return _0x4b8b74['hMFWV'];},exports[a130_0x22a702(0x1c0)]=_0x34cccc=>{const _0x367a94=a130_0x22a702,_0x46cd39={};_0x46cd39[_0x367a94(0x1bc)]=_0x367a94(0xed),_0x46cd39[_0x367a94(0x12d)]=_0x367a94(0x1b4),_0x46cd39[_0x367a94(0x160)]='codeceptjs',_0x46cd39[_0x367a94(0x1c1)]=_0x367a94(0x127),_0x46cd39['qCfcF']=_0x367a94(0xdf);const _0x4bb5c2=_0x46cd39;let _0x4d71c8=null;switch(_0x34cccc){case FRAMEWORKS[_0x367a94(0x186)]:_0x4d71c8=bsSetupHelper[_0x367a94(0x112)](_0x4bb5c2[_0x367a94(0x1bc)]);break;case FRAMEWORKS['PLAYWRIGHT']:_0x4d71c8=bsSetupHelper[_0x367a94(0x112)](_0x4bb5c2[_0x367a94(0x12d)]);break;case FRAMEWORKS[_0x367a94(0x15f)]:case FRAMEWORKS['CODECEPT_CUCUMBER']:_0x4d71c8=bsSetupHelper[_0x367a94(0x112)](_0x4bb5c2['DvjdE']);break;case FRAMEWORKS[_0x367a94(0xf3)]:_0x4d71c8=bsSetupHelper[_0x367a94(0x112)](_0x4bb5c2[_0x367a94(0x1c1)]);break;case FRAMEWORKS['CUCUMBER']:_0x4d71c8=bsSetupHelper[_0x367a94(0x112)](_0x4bb5c2[_0x367a94(0x14f)]);break;default:break;}return _0x4d71c8;},exports[a130_0x22a702(0x105)]=_0x25f9d6=>{const _0x31f6b4=a130_0x22a702;let _0x360fd5=null;switch(_0x25f9d6){case FRAMEWORKS[_0x31f6b4(0x1da)]:_0x360fd5=process[_0x31f6b4(0x187)][_0x31f6b4(0x136)];break;}if(!_0x360fd5)return;return bsSetupHelper[_0x31f6b4(0x16d)](_0x360fd5,![]);},exports[a130_0x22a702(0x10b)]=_0x50c1ba=>{const _0x16f562=a130_0x22a702;return{'username':bsSetupHelper[_0x16f562(0x1e5)](_0x50c1ba),'accessKey':bsSetupHelper[_0x16f562(0xd9)](_0x50c1ba)};},exports[a130_0x22a702(0x198)]=(_0x1bac04,_0xf3c76f)=>{const _0x3b36e7=a130_0x22a702,_0x2f42b9={};_0x2f42b9[_0x3b36e7(0xe9)]=_0x3b36e7(0x1d2),_0x2f42b9[_0x3b36e7(0x185)]=_0x3b36e7(0x15a),_0x2f42b9[_0x3b36e7(0x18b)]=_0x3b36e7(0x14e);const _0x21f79b=_0x2f42b9,_0x340655=_0x21f79b['mNlLs'][_0x3b36e7(0x138)]('|');let _0x1d0fd7=0x0;while(!![]){switch(_0x340655[_0x1d0fd7++]){case'0':if(!_0x1bac04['body']||!Array[_0x3b36e7(0x164)](_0x1bac04['body']))return;continue;case'1':_0x1bac04[_0x3b36e7(0x101)]={'data':_0x1bac04[_0x3b36e7(0x1a7)][0x0][_0x3b36e7(0x1b1)][0x0][_0x3b36e7(0x199)],'test_run_uuid':_0x1bac04[_0x3b36e7(0x1a7)][0x0][_0x3b36e7(0x1b1)][0x0][_0x3b36e7(0x12a)],'event_type':_0x21f79b[_0x3b36e7(0x185)],'kind':_0x21f79b[_0x3b36e7(0x18b)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x3b36e7(0xca)](),'fileName':_0x1bac04[_0x3b36e7(0x1a7)][0x0][_0x3b36e7(0x1b1)][0x0][_0x3b36e7(0xe6)]};continue;case'2':delete _0x1bac04['body'];continue;case'3':if(!_0x1bac04['body'][0x0]||!_0x1bac04[_0x3b36e7(0x1a7)][0x0][_0x3b36e7(0x1b1)]||!_0x1bac04[_0x3b36e7(0x1a7)][0x0]['logs'][_0x3b36e7(0x1e2)])return;continue;case'4':delete _0xf3c76f[_0x3b36e7(0x182)];continue;case'5':delete _0x1bac04[_0x3b36e7(0x13b)];continue;}break;}},exports[a130_0x22a702(0xd2)]=async(_0xd60660,_0x1ca1eb,_0x5d1429,_0x35435e,_0x406f3b=!![])=>{const _0x3f779a=a130_0x22a702,_0x35e676={};_0x35e676[_0x3f779a(0x180)]=function(_0x260613,_0x5aab85){return _0x260613===_0x5aab85;},_0x35e676[_0x3f779a(0xd4)]=_0x3f779a(0x1aa),_0x35e676[_0x3f779a(0xf6)]=_0x3f779a(0xec),_0x35e676[_0x3f779a(0xd8)]=_0x3f779a(0x143),_0x35e676[_0x3f779a(0x133)]=function(_0x1656f1,_0x4e7f10){return _0x1656f1!==_0x4e7f10;},_0x35e676[_0x3f779a(0x111)]=_0x3f779a(0xfc),_0x35e676[_0x3f779a(0x146)]='Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s';const _0x455ace=_0x35e676,_0x1e7a5b={..._0x35435e,...{'method':_0xd60660,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x1ca1eb,'body':_0x5d1429,'json':_0x455ace[_0x3f779a(0x180)](_0x35435e[_0x3f779a(0x182)][_0x455ace['FFrKw']],_0x455ace[_0x3f779a(0xf6)]),'agent':API_URL[_0x3f779a(0x110)](_0x455ace[_0x3f779a(0xd8)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x455ace['ByOzW'](_0x1ca1eb,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x1e7a5b['agent']=API_URL[_0x3f779a(0x110)](_0x455ace['zvrkN'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x1e7a5b,_0x35435e),logger[_0x3f779a(0x1b8)](_0x3f779a(0xf8)+_0x1e7a5b['url']));try{const {statusCode:_0x166460,body:_0x572a11}=await bsSetupHelper[_0x3f779a(0x1a9)](_0xd60660,_0x1ca1eb,_0x1e7a5b,_0x35435e,_0x1e7a5b['url']);if(_0x455ace[_0x3f779a(0x133)](_0x166460,0xc8))return _0x572a11?_0x572a11:_0x3f779a(0x131)+_0x166460;let _0x4b4ab8=_0x572a11;if(_0x406f3b)try{_0x455ace[_0x3f779a(0x133)](typeof _0x572a11,_0x455ace[_0x3f779a(0x111)])&&(_0x4b4ab8=JSON[_0x3f779a(0x144)](_0x572a11));}catch(_0xeb7f92){logger[_0x3f779a(0x16c)](_0x455ace['Jlfga'],_0x572a11,util['format'](_0xeb7f92));}const _0x4e4908={};return _0x4e4908['data']=_0x4b4ab8,_0x4e4908;}catch(_0x317bbb){logger[_0x3f779a(0x16c)](_0x3f779a(0x1ac)+util['format'](_0x317bbb));throw _0x317bbb;}},exports[a130_0x22a702(0x1a9)]=(_0x29127b,_0x5e6155,_0x269c9b,_0x518399,_0x259b24=!![])=>{const _0x5bf09c=a130_0x22a702,_0x2dadbb={'btwEC':function(_0x261e21,_0x3eb708){return _0x261e21!==_0x3eb708;},'xKULv':function(_0x1e7a35,_0x52be84){return _0x1e7a35(_0x52be84);},'iVXIO':_0x5bf09c(0xfc),'smIqZ':function(_0x3794cb,_0x27d120){return _0x3794cb(_0x27d120);},'IVroo':_0x5bf09c(0x12b),'Nbqsi':function(_0x130a13,_0x130191){return _0x130a13(_0x130191);},'lNtOV':function(_0x166b74,_0x22e3b3){return _0x166b74===_0x22e3b3;},'Zlbvw':_0x5bf09c(0x1aa),'DuOhk':_0x5bf09c(0xec),'nfyuo':_0x5bf09c(0x143)};return new Promise((_0x8b3b42,_0x43fe17)=>{const _0x1743d9=_0x5bf09c,_0x338a79={'GbSGz':function(_0x5dc1d3,_0xd594ec){const _0x4a0bca=a130_0x18aa;return _0x2dadbb[_0x4a0bca(0x1ae)](_0x5dc1d3,_0xd594ec);}},_0x115a1a={..._0x518399,...{'method':_0x29127b,'url':API_URL+'/'+_0x5e6155,'body':_0x269c9b,'json':_0x2dadbb[_0x1743d9(0x17d)](_0x518399[_0x1743d9(0x182)][_0x2dadbb['Zlbvw']],_0x2dadbb[_0x1743d9(0x10d)]),'agent':API_URL[_0x1743d9(0x110)](_0x2dadbb[_0x1743d9(0x132)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x2dadbb['lNtOV'](_0x5e6155,SCREENSHOT_ENDPOINT)&&(_0x115a1a['agent']=API_URL[_0x1743d9(0x110)](_0x2dadbb[_0x1743d9(0x132)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x1743d9(0x1a9)](_0x29127b,_0x5e6155,_0x115a1a,_0x518399,API_URL)['then'](({statusCode:_0x1992b0,body:_0x2cd5c1})=>{const _0x1b1cd0=_0x1743d9;if(_0x2dadbb['btwEC'](_0x1992b0,0xc8))_0x2dadbb['xKULv'](_0x43fe17,_0x2cd5c1?_0x2cd5c1:_0x1b1cd0(0x131)+_0x1992b0);else{if(_0x259b24)try{_0x2dadbb[_0x1b1cd0(0xcf)](typeof _0x2cd5c1,_0x2dadbb['iVXIO'])&&(_0x2cd5c1=JSON[_0x1b1cd0(0x144)](_0x2cd5c1));}catch(_0x253ea7){_0x2dadbb[_0x1b1cd0(0x1ae)](_0x43fe17,_0x2dadbb[_0x1b1cd0(0x128)]);return;}const _0x13d422={};_0x13d422['data']=_0x2cd5c1,_0x2dadbb['Nbqsi'](_0x8b3b42,_0x13d422);}})[_0x1743d9(0x19d)](_0x1df700=>{_0x1df700&&_0x338a79['GbSGz'](_0x43fe17,_0x1df700);});});},exports[a130_0x22a702(0x16f)]=_0x1d6a93=>{const _0x4c3d33=a130_0x22a702;if(process['env'][_0x4c3d33(0x129)])return process['env']['TEST_REPORTING_BUILD_TAG']['split'](',');if(process[_0x4c3d33(0x187)][_0x4c3d33(0x147)])return process[_0x4c3d33(0x187)][_0x4c3d33(0x147)][_0x4c3d33(0x138)](',');if(_0x1d6a93[_0x4c3d33(0x19f)])return _0x1d6a93['buildTag'];return[];},exports['getDefaultHeaders']=(_0x52de27=!![])=>{const _0x2882de=a130_0x22a702,_0x57bf65={};_0x57bf65[_0x2882de(0x12e)]=_0x2882de(0xec),_0x57bf65['YyKgq']=_0x2882de(0xfd),_0x57bf65[_0x2882de(0x18c)]=_0x2882de(0x134);const _0x374564=_0x57bf65,_0x1df543={};_0x1df543['Content-Type']=_0x374564['OplkF'],_0x1df543[_0x2882de(0x1c7)]=_0x374564[_0x2882de(0x120)];const _0x3c701e=_0x1df543;return _0x52de27&&process[_0x2882de(0x187)][_0x2882de(0x1b6)]&&(_0x3c701e[_0x374564[_0x2882de(0x18c)]]=_0x2882de(0x1a5)+process['env'][_0x2882de(0x1b6)]),_0x3c701e;},exports[a130_0x22a702(0xd6)]=_0x2704d5=>{const _0x3b1faa=a130_0x22a702,_0x5e26d4={};_0x5e26d4['ZLqNp']='^CUSTOM_TAG_\x5cd+$';const _0x5b7442=_0x5e26d4,_0x88cdd3=[],_0x14b1ed=new RegExp(_0x5b7442[_0x3b1faa(0xf2)],'i');return Object[_0x3b1faa(0x1d5)](_0x2704d5)[_0x3b1faa(0x1af)](_0x17c996=>_0x14b1ed[_0x3b1faa(0x151)](_0x17c996))['forEach'](_0x427197=>_0x88cdd3[_0x3b1faa(0x1ba)](_0x2704d5[_0x427197])),_0x88cdd3;},exports[a130_0x22a702(0x17b)]=_0x27b563=>{const _0x3c8332=a130_0x22a702,_0x3437fe=[],_0x5f20a7=_0x27b563[_0x3c8332(0x1a4)]||process[_0x3c8332(0x187)][_0x3c8332(0x14d)];return _0x5f20a7&&_0x3437fe[_0x3c8332(0x1ba)](_0x5f20a7),_0x3437fe[_0x3c8332(0x1ba)](...exports[_0x3c8332(0xd6)](process[_0x3c8332(0x187)])),_0x3437fe[_0x3c8332(0x1ba)](...exports[_0x3c8332(0xd6)](_0x27b563)),_0x3437fe;},exports[a130_0x22a702(0x1cb)]=_0xf20feb=>{const _0x5e780c=a130_0x22a702;if(!_0xf20feb)return'';return _0xf20feb[_0x5e780c(0x1b5)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports['sleep']=(_0x248e51=0x64)=>new Promise(_0x224c0d=>setTimeout(_0x224c0d,_0x248e51));const getPlatformName=()=>{const _0x1362fe=a130_0x22a702,_0x3a8683={};_0x3a8683[_0x1362fe(0x139)]=function(_0x22610b,_0xf1b5e3){return _0x22610b===_0xf1b5e3;},_0x3a8683[_0x1362fe(0x178)]='win32',_0x3a8683['KIMaB']='Windows',_0x3a8683['Eotnu']=function(_0x38a6fc,_0x504186){return _0x38a6fc===_0x504186;},_0x3a8683[_0x1362fe(0x11d)]='darwin',_0x3a8683['NStVD']=_0x1362fe(0x1ab),_0x3a8683[_0x1362fe(0x1b2)]='linux',_0x3a8683[_0x1362fe(0x19b)]=_0x1362fe(0x116),_0x3a8683[_0x1362fe(0x109)]=_0x1362fe(0xd1);const _0x26dda3=_0x3a8683;if(_0x26dda3['smEqe'](process[_0x1362fe(0x17e)],_0x26dda3[_0x1362fe(0x178)]))return _0x26dda3[_0x1362fe(0x161)];if(_0x26dda3[_0x1362fe(0x159)](process[_0x1362fe(0x17e)],_0x26dda3[_0x1362fe(0x11d)]))return _0x26dda3['NStVD'];if(_0x26dda3[_0x1362fe(0x159)](process[_0x1362fe(0x17e)],_0x26dda3['LQusD']))return _0x26dda3[_0x1362fe(0x19b)];return _0x26dda3[_0x1362fe(0x109)];},getMacOSVersion=()=>{const _0x191737=a130_0x22a702,_0x1e414b={};_0x1e414b[_0x191737(0x135)]='awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27';const _0x2957a4=_0x1e414b;return child_process['execSync'](_0x2957a4[_0x191737(0x135)])[_0x191737(0x1d6)]()[_0x191737(0x197)]();},getLinuxDetails=()=>{const _0x2bb50a={'ziUMt':function(_0x2470a7,_0x35f94d){return _0x2470a7(_0x35f94d);},'pPQNl':function(_0x9c4b43,_0x40b4f9){return _0x9c4b43(_0x40b4f9);}};return new Promise((_0x3c01ea,_0x1d9d24)=>{const _0x31036f=a130_0x18aa,_0xcb34f4={'AHpsO':function(_0x3eda97,_0x2dcb6b){const _0x4c55dc=a130_0x18aa;return _0x2bb50a[_0x4c55dc(0x1d7)](_0x3eda97,_0x2dcb6b);}};_0x2bb50a[_0x31036f(0x184)](getos,(_0x39996c,_0x5c2d73)=>{const _0x575198=_0x31036f;if(_0x39996c)return _0xcb34f4[_0x575198(0x193)](_0x1d9d24,_0x39996c);_0xcb34f4[_0x575198(0x193)](_0x3c01ea,_0x5c2d73);});});};exports[a130_0x22a702(0x10a)]=async()=>{const _0x330192=a130_0x22a702,_0x2274c5={'weobN':function(_0x4c8a42){return _0x4c8a42();},'ROsZy':'OS\x20X','MWEco':'Windows','tnPcG':_0x330192(0x11c),'YvLCV':'Linux','oYCvF':_0x330192(0x1c8)};let _0x44bf28=_0x2274c5[_0x330192(0x13a)](getPlatformName),_0x6f4afb=os[_0x330192(0x1a6)]()[_0x330192(0x1d6)]();switch(_0x44bf28){case _0x2274c5[_0x330192(0x1cc)]:_0x6f4afb=_0x2274c5[_0x330192(0x13a)](getMacOSVersion);break;case _0x2274c5[_0x330192(0x125)]:try{const _0x78e57d=(await import(_0x2274c5['tnPcG']))[_0x330192(0xf4)];_0x6f4afb=_0x2274c5[_0x330192(0x13a)](_0x78e57d);}catch(_0x457b50){exports[_0x330192(0x1b8)](_0x330192(0xdd)+_0x457b50[_0x330192(0x1d6)]());}break;case _0x2274c5[_0x330192(0xf7)]:try{const _0x4fe5f1=await _0x2274c5['weobN'](getLinuxDetails);_0x4fe5f1[_0x330192(0x189)]&&(_0x44bf28=_0x4fe5f1['dist']),_0x4fe5f1[_0x330192(0x1a6)]&&(_0x6f4afb=_0x4fe5f1[_0x330192(0x1a6)][_0x330192(0x1d6)]());}catch(_0x3c7bda){exports[_0x330192(0x1b8)](_0x2274c5[_0x330192(0x11e)]);}break;default:break;}const _0x18bb48={};return _0x18bb48[_0x330192(0x188)]=_0x44bf28,_0x18bb48[_0x330192(0x16b)]=_0x6f4afb,_0x18bb48;},exports[a130_0x22a702(0xea)]=(_0x2e274b,_0x2da1e0)=>{const _0x239bd2=a130_0x22a702,_0x2d94ad={};_0x2d94ad[_0x239bd2(0xe1)]=function(_0x275112,_0x1223eb){return _0x275112===_0x1223eb;},_0x2d94ad[_0x239bd2(0x1c2)]=_0x239bd2(0x151),_0x2d94ad['mLWmk']=function(_0x5c9e97,_0x1c5392){return _0x5c9e97===_0x1c5392;},_0x2d94ad[_0x239bd2(0x10c)]=_0x239bd2(0x130);const _0x2f00f8=_0x2d94ad;if(!_0x2e274b)return[];try{if(_0x2f00f8[_0x239bd2(0xe1)](_0x2da1e0,_0x2f00f8[_0x239bd2(0x1c2)]))return _0x2e274b[_0x239bd2(0x15b)](_0x26e944=>{const _0x35b3a9=_0x239bd2,{stack:_0x37f4d4,..._0x2c80a5}=_0x26e944,_0x17fee4=Object[_0x35b3a9(0x1d5)](_0x2c80a5)[_0x35b3a9(0x15b)](_0x18101d=>{return _0x18101d+':\x20'+_0x2c80a5[_0x18101d];}),_0x43ce5a=_0x37f4d4?exports['removeAnsiColors'](_0x37f4d4)['split'](/\r?\n/):[exports['removeAnsiColors'](_0x26e944['message'])],_0x2217a0={};return _0x2217a0[_0x35b3a9(0x12c)]=_0x43ce5a,_0x2217a0[_0x35b3a9(0x15d)]=_0x17fee4,_0x2217a0;});else{if(_0x2f00f8['mLWmk'](_0x2da1e0,_0x2f00f8['gbFGK'])){const _0x312955=[],_0xf6cd2a=[];return Object['keys'](_0x2e274b)[_0x239bd2(0x18f)](_0xd4e1aa=>{const _0x55dcd8=_0x239bd2;try{_0xf6cd2a[_0x55dcd8(0x1ba)](_0xd4e1aa+':\x20'+_0x2e274b[_0xd4e1aa]);}catch(_0x1914ba){exports[_0x55dcd8(0x1b8)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x1914ba['message']+_0x55dcd8(0x14a)+_0x1914ba[_0x55dcd8(0x12c)]);}}),_0x312955[_0x239bd2(0x1ba)]({'backtrace':exports['removeAnsiColors'](_0x2e274b['stack'])['split'](/\r?\n/),'expanded':_0xf6cd2a}),_0x312955;}}return[];}catch(_0x177d2f){exports[_0x239bd2(0x1b8)](_0x239bd2(0x171)+_0x177d2f[_0x239bd2(0xd0)]+_0x239bd2(0x14a)+_0x177d2f['backtrace']);}return[];};function a130_0x2532(){const _0x1359a9=['CODECEPT','DvjdE','KIMaB','AJlbz','22184168zsrxYf','isArray','__cloud_provider___','VGxpx','sendPlatformDetails','teemn','match','map_','platformVersion','error','readConfig','null','getBuildTags','Visit\x20','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','silly','getCapabilities','3308754DMpmdY','BROWSERSTACK_TEST_REPORTING_DEBUG','YtWSu','parseFileNames','oaycp','appium:app','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','getCustomTags','BROWSERSTACK_TEST_OBSERVABILITY_YML','lNtOV','platform','../helper','ByOzW','BROWSERSTACK_TEST_OBSERVABILITY','headers','KpQrR','pPQNl','NELFS','MOCHA','env','platformName','dist','LPaoH','KmbqX','hQSlT','host','stringify','forEach','unknown_grid','XgstK','xyieb','AHpsO','[%s][\x20','addRequestSpy','browserstack','trim','modifyReqForTraceUpload','data','sMOYS','FnJdP','prefixTestPath','catch','atLQV','buildTag','BROWSERSTACK_RERUN_TESTS','ATS_HUB_URL_REGEX','PRINT_BUILDLINK','cxfMn','customTag','Bearer\x20','release','body','timeout','nodeRequest','Content-Type','OS\x20X','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','capabilities','smIqZ','filter','18QHBwHo','logs','LQusD','shouldReRunObservabilityTests','@playwright/test','replace','BROWSERSTACK_TESTHUB_JWT','buildLogger','debug','join','push','patchConsoleLogger','BQAhy','child_process','Agent','app-automate','getFrameworkVersion','xeZXX','SjccN','TimeoutError','ppSou','HTTP','O11Y_URL','X-BSTACK-TESTOPS','Error\x20in\x20getting\x20Linux\x20Details','../logger','git-last-commit','removeAnsiColors','ROsZy','HDota','vXYDd','ffnaZ','xUPvm','qvpBy','0|3|1|2|5|4','cwd','YrVgO','keys','toString','ziUMt','app','getObservabilityLinkedProductName','PLAYWRIGHT','TEST_PLATFORM','pid','Test\x20timeout\x20of','isUndefined','yhPBC','trace','/builds/','length','loMIK','\x20]\x20Build\x20Not\x20Found\x20%s','getUserName','toISOString','nmVDm','bs:addPlatformDetails:','keepAlive','../../bin/utils/constants','btwEC','message','Unknown','asyncAwaitNodeReq','BS_TESTOPS_BUILD_HASHED_ID','FFrKw','maxTotalSockets','extractValuesWithRegexKeyMatch','IabjJ','zvrkN','getAccessKey','7530124cjEpbS','util','http','Error\x20in\x20importing\x20windows-release\x20','getPlatformVersion','@cucumber/cucumber','path','sjBMD','rootDir','568775HBEETs','getSyncScript','info','fileName','LszOL','relativeTestFilePath','mNlLs','failureData','getos','application/json','mocha','UnhandledError','PathHelper','isInternalHook','iVLXW','ZLqNp','JEST','default','emit','KNxLD','YvLCV','Uploading\x20trace\x20logs\x20to:\x20','PgVTH','config','lodash','object','true','TEST_REPORTING_ANALYTICS','bstack:options','EYSfg','formData','toJSON','getFailureType','LeIak','getBrowserStackConfig','getBrowserName','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','1229960gNTbPr','WXxGt','getPlatformDetails','getUserCredentials','gbFGK','DuOhk','browserstack_executor:\x20','702734nRlIYL','includes','JmyHK','getPackageVersion','getPlatform','printBuildLink','AssertionError','Linux','ittOH','hostname','prefix','now','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','windows-release','OITWm','oYCvF','./constants','YyKgq','xPCRm','caObk','XNVrC','BROWSERSTACK_OBSERVABILITY_DEBUG','MWEco','relative','jest','IVroo','TEST_REPORTING_BUILD_TAG','test_run_uuid','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','backtrace','oCXaa','OplkF','BROWSERSTACK_TEST_REPORTING','err','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','nfyuo','SwFPK','Authorization','JSuaC','BROWSERSTACK_CONFIG_FILE_PATH','kTony','split','smEqe','weobN','json','annotate','undefined','ObservabilitySync:','turboScaleGridDetails','../../bin/v2/browserstackCLI','CxXUy','MTcgO','https','parse','measureWrapper','Jlfga','TEST_OBSERVABILITY_BUILD_TAG','AHhQk','rVaUe','\x20:\x20','winstonLogger','hMFWV','CUSTOM_TAG','TEST_ATTACHMENT','qCfcF','turboscale','test','\x20]\x20','local_grid','automate','1770215EPsRXU','HUB_URL_REGEX','maxSockets','O11yHashedID','Eotnu','LogCreated','map','][\x20','expanded','jJINO'];a130_0x2532=function(){return _0x1359a9;};return a130_0x2532();}class PathHelper{constructor(_0x5b0f5a,_0x4bb8d0){const _0x454ab8=a130_0x22a702;this['config']=_0x5b0f5a,this[_0x454ab8(0x119)]=_0x4bb8d0;}[a130_0x22a702(0xe8)](_0x22c5f9){const _0x1ee754=a130_0x22a702,_0x13c5ad=this['config'][_0x1ee754(0x1d3)]||this[_0x1ee754(0xfa)][_0x1ee754(0xe2)];return path[_0x1ee754(0x126)](_0x13c5ad,_0x22c5f9);}[a130_0x22a702(0x19c)](_0x1d50a3){const _0x2cac96=a130_0x22a702,_0x7653fe=this[_0x2cac96(0xe8)](_0x1d50a3);return this[_0x2cac96(0x119)]?path[_0x2cac96(0x1b9)](this[_0x2cac96(0x119)],_0x7653fe):_0x7653fe;}}exports[a130_0x22a702(0xef)]=PathHelper,exports[a130_0x22a702(0x195)]=(_0x24bf91=!![])=>{const _0x4bac22=a130_0x22a702,_0x3cfa27={};_0x3cfa27[_0x4bac22(0x122)]=function(_0x1f464a,_0x4c3856){return _0x1f464a===_0x4c3856;},_0x3cfa27[_0x4bac22(0x1cf)]=_0x4bac22(0x1c7),_0x3cfa27[_0x4bac22(0xf1)]='true',_0x3cfa27[_0x4bac22(0xf9)]=_0x4bac22(0x1c5),_0x3cfa27[_0x4bac22(0x149)]=_0x4bac22(0x196),_0x3cfa27[_0x4bac22(0x183)]=_0x4bac22(0x153);const _0x2f325d=_0x3cfa27;requestSpy['spy']((_0x291d65,_0x38526f)=>{const _0x5539c3=_0x4bac22;_0x38526f&&!(_0x38526f[_0x5539c3(0x182)]&&_0x2f325d[_0x5539c3(0x122)](_0x38526f[_0x5539c3(0x182)][_0x2f325d[_0x5539c3(0x1cf)]],_0x2f325d[_0x5539c3(0xf1)]))&&(_0x38526f[_0x5539c3(0x18d)]=_0x38526f['hostname'],delete _0x38526f[_0x5539c3(0x118)],_0x24bf91&&process['emit']('bs:addLog:'+process[_0x5539c3(0x1dc)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x2f325d[_0x5539c3(0xf9)],'http_response':_0x38526f})),_0x38526f&&(constants[_0x5539c3(0x156)]['test'](_0x38526f['host'])||constants[_0x5539c3(0x1a1)]['test'](_0x38526f[_0x5539c3(0x18d)]))?global[_0x5539c3(0x165)]=_0x2f325d[_0x5539c3(0x149)]:global[_0x5539c3(0x165)]=_0x2f325d[_0x5539c3(0x183)];});},exports[a130_0x22a702(0x1bb)]=()=>{const _0x23b1dc=a130_0x22a702,_0xadf81c={'LPaoH':function(_0x13f09f,_0x3b508a){return _0x13f09f(_0x3b508a);}};console={},Object[_0x23b1dc(0x1d5)](consoleHolder)[_0x23b1dc(0x18f)](_0x4d9a24=>{const _0x521ef7=_0x23b1dc;_0xadf81c[_0x521ef7(0x18a)](isFunction,consoleHolder[_0x4d9a24])?console[_0x4d9a24]=(..._0x3e6d7f)=>{const _0x1e8f6d=_0x521ef7;try{!Object[_0x1e8f6d(0x1d5)](BSTestOpsPatcher)['includes'](_0x4d9a24)?consoleHolder[_0x4d9a24](..._0x3e6d7f):BSTestOpsPatcher[_0x4d9a24](..._0x3e6d7f);}catch(_0x161b4f){consoleHolder[_0x4d9a24](..._0x3e6d7f);}}:console[_0x4d9a24]=consoleHolder[_0x4d9a24];});},exports[a130_0x22a702(0xe4)]=()=>a130_0x22a702(0x10e)+JSON[a130_0x22a702(0x18e)]({'action':a130_0x22a702(0x13c),'arguments':{'data':a130_0x22a702(0x13e)+Date[a130_0x22a702(0x11a)](),'level':'debug'}}),exports[a130_0x22a702(0x1d9)]=_0x2a1863=>{const _0x197da5=a130_0x22a702,_0x539744={};_0x539744[_0x197da5(0x1a3)]=function(_0x4f17cb,_0x53e500){return _0x4f17cb===_0x53e500;},_0x539744[_0x197da5(0x192)]=_0x197da5(0x196),_0x539744[_0x197da5(0xe7)]=_0x197da5(0x179),_0x539744['CxXUy']=_0x197da5(0x1d8),_0x539744['ySSzt']=function(_0x4042ee,_0x59ab8d){return _0x4042ee>_0x59ab8d;},_0x539744[_0x197da5(0x104)]=_0x197da5(0x1bf),_0x539744['XgstK']=_0x197da5(0xff),_0x539744['xUPvm']=_0x197da5(0x13f),_0x539744[_0x197da5(0xd7)]=_0x197da5(0x150),_0x539744[_0x197da5(0x1e3)]=_0x197da5(0x154);const _0x2253d6=_0x539744;let _0x27bf9e=null;try{if(_0x2253d6[_0x197da5(0x1a3)](global['__cloud_provider___'],_0x2253d6[_0x197da5(0x192)])){if(_0x2a1863[_0x2253d6['LszOL']]||_0x2a1863[_0x2253d6[_0x197da5(0x141)]]||!bsSetupHelper['isUndefined'](global[_0x197da5(0x1ad)])&&_0x2253d6['ySSzt'](global[_0x197da5(0x1ad)][_0x197da5(0x1e2)],0x0)&&(global['capabilities'][0x0][_0x2253d6[_0x197da5(0x141)]]||global[_0x197da5(0x1ad)][0x0][_0x2253d6[_0x197da5(0xe7)]]))_0x27bf9e=_0x2253d6[_0x197da5(0x104)];else _0x2a1863[_0x2253d6['XgstK']]&&_0x2a1863[_0x2253d6[_0x197da5(0x191)]][_0x2253d6[_0x197da5(0x1d0)]]?_0x27bf9e=_0x2253d6[_0x197da5(0xd7)]:_0x27bf9e=_0x2253d6[_0x197da5(0x1e3)];}}catch(_0x40479b){exports[_0x197da5(0x1b8)](_0x197da5(0x17a)+constants[_0x197da5(0xfe)]+'\x20test\x20instance\x20:\x20'+_0x40479b);}return _0x27bf9e;},exports[a130_0x22a702(0x167)]=async(_0x8b30db,_0x980586,_0x139079=![])=>{const _0x200672=a130_0x22a702,_0x1c0589={};_0x1c0589[_0x200672(0x162)]=function(_0x10da54,_0x561e86){return _0x10da54===_0x561e86;},_0x1c0589['LPbKW']=_0x200672(0x196),_0x1c0589[_0x200672(0x148)]=_0x200672(0x190),_0x1c0589['atLQV']=_0x200672(0x1db);const _0x2db808=_0x1c0589;try{const _0x3dbf89=await _0x8b30db[_0x200672(0x173)](),_0x4e4a07=await _0x8b30db['getSession'](),_0x487949={},_0x11b840=Object['fromEntries'](_0x4e4a07['getCapabilities']()[_0x200672(0x16a)]),_0x3bc0d9={'product':exports[_0x200672(0x1d9)](_0x11b840),'capabilities':_0x11b840,'platform':_0x3dbf89[_0x200672(0x113)](),'platform_version':bsSetupHelper[_0x200672(0xde)](_0x2db808['AJlbz'](global[_0x200672(0x165)],_0x2db808['LPbKW'])),'browser':_0x3dbf89[_0x200672(0x106)](),'browser_version':_0x3dbf89['getBrowserVersion'](),'session_id':_0x4e4a07[_0x200672(0x102)]()};global[_0x200672(0x165)]?_0x487949[global[_0x200672(0x165)]]=_0x3bc0d9:_0x487949[_0x2db808[_0x200672(0x148)]]=_0x3bc0d9;if(_0x139079)return _0x487949;process[_0x200672(0xf5)](_0x200672(0xcc)+process[_0x200672(0x1dc)],{'timestamp':new Date()[_0x200672(0xca)](),'level':null,'message':null,'kind':_0x2db808[_0x200672(0x19e)],'http_response':_0x487949,'uuid':_0x980586});}catch(_0x5cae1c){exports[_0x200672(0x1b8)](_0x200672(0x107)+_0x5cae1c);}},exports[a130_0x22a702(0xf0)]=_0x1eacd9=>{const _0x5e2ed7=a130_0x22a702;return _0x1eacd9&&_0x1eacd9[_0x5e2ed7(0x1d6)]()['match'](/browserstack internal helper hook/);};
|
|
1
|
+
const a130_0xed6e4f=a130_0x589e;(function(_0x1a8e24,_0x155c0e){const _0x371c16=a130_0x589e,_0x348c89=_0x1a8e24();while(!![]){try{const _0x55b36a=parseInt(_0x371c16(0xab))/0x1*(-parseInt(_0x371c16(0xbe))/0x2)+-parseInt(_0x371c16(0x11e))/0x3*(parseInt(_0x371c16(0xc6))/0x4)+parseInt(_0x371c16(0x105))/0x5+-parseInt(_0x371c16(0x17d))/0x6+-parseInt(_0x371c16(0x176))/0x7*(-parseInt(_0x371c16(0xcb))/0x8)+-parseInt(_0x371c16(0xeb))/0x9*(-parseInt(_0x371c16(0x192))/0xa)+parseInt(_0x371c16(0x1a1))/0xb;if(_0x55b36a===_0x155c0e)break;else _0x348c89['push'](_0x348c89['shift']());}catch(_0x3ac390){_0x348c89['push'](_0x348c89['shift']());}}}(a130_0x1a2a,0xc91c1));const fs=require('fs'),path=require('path'),gitLastCommit=require(a130_0xed6e4f(0x175)),getRepoInfo=require(a130_0xed6e4f(0x1b3)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require('./constants'),http=require(a130_0xed6e4f(0x1a0)),https=require(a130_0xed6e4f(0xb2)),child_process=require('child_process'),getos=require('getos'),os=require('os'),logger=require(a130_0xed6e4f(0xf9))[a130_0xed6e4f(0x1a2)],buildLogger=require(a130_0xed6e4f(0xf9))[a130_0xed6e4f(0x103)],bsSetupHelper=require(a130_0xed6e4f(0x1b7)),requestSpy=require(a130_0xed6e4f(0xcd)),constants=require('../../bin/utils/constants'),logPatcher=require(a130_0xed6e4f(0x108)),util=require(a130_0xed6e4f(0xc1)),{fileLogger}=require('../logger'),PerformanceTester=require(a130_0xed6e4f(0x11d)),{isFunction}=require(a130_0xed6e4f(0x162)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a130_0xed6e4f(0x179)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require('../../../src/bin/utils/constants');exports[a130_0xed6e4f(0x14f)]=_0x57dbf7=>{const _0x1bed7d=a130_0xed6e4f;fileLogger[_0x1bed7d(0x17c)]('['+new Date()[_0x1bed7d(0x1b0)]()+_0x1bed7d(0xd2)+constants[_0x1bed7d(0x14d)]+_0x1bed7d(0x186)+_0x57dbf7);},exports[a130_0xed6e4f(0x101)]=_0x2b3419=>{const _0x23ebe7=a130_0xed6e4f,_0x1846b2={};_0x1846b2['udtiR']=function(_0x3d4fe0,_0x39c251){return _0x3d4fe0===_0x39c251;},_0x1846b2[_0x23ebe7(0x18c)]=_0x23ebe7(0x16a);const _0x23e6bd=_0x1846b2;fileLogger[_0x23ebe7(0x101)]('['+new Date()['toISOString']()+_0x23ebe7(0xd2)+constants[_0x23ebe7(0x14d)]+_0x23ebe7(0x186)+_0x2b3419),(_0x23e6bd['udtiR'](process[_0x23ebe7(0x13c)][_0x23ebe7(0xa0)],_0x23e6bd['QLUxJ'])||_0x23e6bd['udtiR'](process[_0x23ebe7(0x13c)][_0x23ebe7(0xa0)],'1')||_0x23e6bd[_0x23ebe7(0x166)](process[_0x23ebe7(0x13c)][_0x23ebe7(0x158)],_0x23e6bd[_0x23ebe7(0x18c)])||_0x23e6bd[_0x23ebe7(0x166)](process[_0x23ebe7(0x13c)][_0x23ebe7(0x158)],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x23ebe7(0x1b0)]()+_0x23ebe7(0xd2)+constants[_0x23ebe7(0x14d)]+_0x23ebe7(0x186)+_0x2b3419+'\x0a');};const a130_0x18f3f3={};a130_0x18f3f3[a130_0xed6e4f(0x187)]=!![],a130_0x18f3f3['timeout']=0xea60,a130_0x18f3f3[a130_0xed6e4f(0xb5)]=0x2,a130_0x18f3f3[a130_0xed6e4f(0x137)]=0x2;const httpKeepAliveAgent=new http[(a130_0xed6e4f(0xb1))](a130_0x18f3f3),a130_0x138d79={};a130_0x138d79[a130_0xed6e4f(0x187)]=!![],a130_0x138d79[a130_0xed6e4f(0xf5)]=0xea60,a130_0x138d79['maxSockets']=0x2,a130_0x138d79[a130_0xed6e4f(0x137)]=0x2;const httpsKeepAliveAgent=new https[(a130_0xed6e4f(0xb1))](a130_0x138d79),a130_0x1be8a4={};a130_0x1be8a4[a130_0xed6e4f(0x187)]=!![],a130_0x1be8a4['timeout']=0xea60,a130_0x1be8a4[a130_0xed6e4f(0xb5)]=0x2,a130_0x1be8a4[a130_0xed6e4f(0x137)]=0x2;function a130_0x1a2a(){const _0x11321d=['CUSTOM_TAG','pFjjo','mocha','release','XUosB','TEST_ATTACHMENT','getSession','buildTag','TEST_OBSERVABILITY_BUILD_TAG','JExPu','NbmaQ','vPxGW','prefix','paZvK','BROWSERSTACK_RERUN_TESTS','getPackageVersion','map_','pgZRJ','headers','../performance/performance-tester','3zYogLb','parse','fnOdE','nflVQ','PTktc','pPmxf','xmSGS','customTag','PLAYWRIGHT','BROWSERSTACK_TEST_OBSERVABILITY_YML','application/json','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','oeEhB','asyncAwaitNodeReq','platformVersion','TgDXr','hivQA','BROWSERSTACK_CONFIG_FILE_PATH','url','QQtRw','ZjfBB','codeceptjs','EPfDR','addRequestSpy','info','maxTotalSockets','error','vriJB','UbjrL','removeAnsiColors','env','jvjts','test_run_uuid','uSzbk','LogCreated','win32','Error\x20in\x20getting\x20Linux\x20Details','map','push','CODECEPT_CUCUMBER','fMYxq','printBuildLink','dist','OS\x20X','ARVWa','getUserCredentials','appium:app','TEST_REPORTING_ANALYTICS','cUNvJ','trace','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','getPlatform','replace','BROWSERSTACK_TEST_REPORTING','Visit\x20','tOsLt','wQFPJ','TimeoutError','BROWSERSTACK_OBSERVABILITY_DEBUG','fromEntries','getFrameworkVersion','yksPf','pid','body','execSync','\x20]\x20Build\x20Not\x20Found\x20%s','[%s][\x20','uVRaK','lodash','relative','local_grid','undefined','udtiR','QfYDv','sleep','LXPum','true','format','message','UsjPx','patchConsoleLogger','oUwpo','__cloud_provider___','host','Xsdzj','ZAyQN','PhvJd','git-last-commit','157003VRIajK','data','keys','../performance/constants','CODECEPT','capabilities','silly','1590240DkdZHH','getPlatformVersion','getAccessKey','xCIQN','X-BSTACK-TESTOPS','backtrace','Authorization','BROWSERSTACK_TEST_OBSERVABILITY','OZPtB','\x20]\x20','keepAlive','FQfxT','UgnUD','err','kiDuJ','QLUxJ','NAICv','spy','readConfig','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','join','3190leMZKF','dUQQp','toString','@playwright/test','isArray','stringify','cpEKU','flJiq','AJfrB','TCWwX','Windows','sendPlatformDetails','MYUml','TEST_REPORTING_BUILD_TAG','http','18400195mQXowp','winstonLogger','emit','gFIkn','wLThS','getObservabilityLinkedProductName','fnebq','trim','qeTdW','dIIoT','jPuBB','includes','bs:addLog:','extractValuesWithRegexKeyMatch','platform','toISOString','Bearer\x20','windows-release','git-repo-info','getCustomTags','HHWfM','JOHaY','../helper','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','browserstack_executor:\x20','GTFQa','sFyKW','\x20:\x20','annotate','bstack:options','startsWith','catch','BROWSERSTACK_TEST_REPORTING_DEBUG','Linux','ZRWEx','parseFileNames','toJSON','getBuildTags','ByMTB','xGUlv','nodeRequest','KViKl','slVit','1nyxsPa','json','rootDir','BROWSERSTACK_TESTHUB_JWT','\x20test\x20instance\x20:\x20','^CUSTOM_TAG_\x5cd+$','Agent','https','Content-Type','hostname','maxSockets','sykrP','../../bin/v2/browserstackCLI','config','filter','IAaBA','getUserName','/builds/','formData','2884462AaSRgp','fqJfG','RQihE','util','AssertionError','isUndefined','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','getDefaultHeaders','3861380bbllHM','jXdkQ','NpIDi','FYHaw','MOCHA','144djrQVi','match','../../helpers/request-spy','forEach','null','bs:addPlatformDetails:','shouldReRunObservabilityTests','][\x20','split','Uploading\x20trace\x20logs\x20to:\x20','turboscale','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','turboScaleGridDetails','BnXRi','object','stack','xhHOa','HUB_URL_REGEX','DVhni','getPlatformDetails','4|2|1|5|0|3','CLabI','DAYQN','unknown_grid','app','uclZV','getBrowserName','modifyReqForTraceUpload','getCapabilities','cParK','pFkDN','ATS_HUB_URL_REGEX','28323xhXVfI','agent','lDrHi','O11yHashedID','default','automate','BS_TESTOPS_BUILD_HASHED_ID','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','aKjxz','logs','timeout','length','awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27','fileName','../logger','HTTP','linux','dvmlK','GqJQQ','JztqK','JEST','isInternalHook','debug','test','buildLogger','gHCuz','2080005OFTxqv','RpsPa','O11Y_URL','../../bin/utils/logPatcher','Unknown'];a130_0x1a2a=function(){return _0x11321d;};return a130_0x1a2a();}const httpScreenshotsKeepAliveAgent=new http[(a130_0xed6e4f(0xb1))](a130_0x1be8a4),a130_0x225c5d={};a130_0x225c5d[a130_0xed6e4f(0x187)]=!![],a130_0x225c5d['timeout']=0xea60,a130_0x225c5d['maxSockets']=0x2,a130_0x225c5d[a130_0xed6e4f(0x137)]=0x2;const httpsScreenshotsKeepAliveAgent=new https['Agent'](a130_0x225c5d);exports[a130_0xed6e4f(0xd1)]=()=>{const _0x2da682=a130_0xed6e4f,_0x2e2f1e={};_0x2e2f1e[_0x2da682(0x146)]=function(_0x151248,_0x3ac63e){return _0x151248!==_0x3ac63e;},_0x2e2f1e[_0x2da682(0x16d)]=_0x2da682(0xcf);const _0x58968b=_0x2e2f1e;return process[_0x2da682(0x13c)][_0x2da682(0x118)]&&_0x58968b[_0x2da682(0x146)](process[_0x2da682(0x13c)][_0x2da682(0x118)],_0x58968b[_0x2da682(0x16d)])?!![]:![];},exports['isTestObservabilitySession']=()=>{const _0x1ee32d=a130_0xed6e4f,_0x55cebb={};_0x55cebb[_0x1ee32d(0x193)]=function(_0x5b1c3a,_0x59feea){return _0x5b1c3a===_0x59feea;},_0x55cebb[_0x1ee32d(0x1b6)]=_0x1ee32d(0x16a),_0x55cebb[_0x1ee32d(0x134)]=function(_0x4b1867,_0x294347){return _0x4b1867===_0x294347;},_0x55cebb[_0x1ee32d(0x189)]=function(_0x2ee0bc,_0x162934){return _0x2ee0bc===_0x162934;};const _0x32f187=_0x55cebb;let _0xd21d86=!![];return process[_0x1ee32d(0x13c)][_0x1ee32d(0x127)]&&(_0xd21d86=_0x32f187[_0x1ee32d(0x193)](process[_0x1ee32d(0x13c)][_0x1ee32d(0x127)],_0x32f187[_0x1ee32d(0x1b6)])),process[_0x1ee32d(0x13c)][_0x1ee32d(0x184)]&&(_0xd21d86=_0x32f187['EPfDR'](process[_0x1ee32d(0x13c)][_0x1ee32d(0x184)],_0x32f187[_0x1ee32d(0x1b6)])),process['env']['BROWSERSTACK_TEST_REPORTING']&&(_0xd21d86=_0x32f187[_0x1ee32d(0x189)](process['env'][_0x1ee32d(0x153)],_0x32f187[_0x1ee32d(0x1b6)])),_0xd21d86;},exports[a130_0xed6e4f(0xa3)]=_0x1bcb77=>{const _0x25e959=a130_0xed6e4f;if(bsSetupHelper[_0x25e959(0xc3)](_0x1bcb77))return undefined;try{return _0x1bcb77[_0x25e959(0x1a8)]()['split'](',');}catch(_0x28e826){return undefined;}},exports[a130_0xed6e4f(0x147)]=()=>{const _0x78c3c1=a130_0xed6e4f,_0xf720e8={'pgZRJ':function(_0x4f9c2b,_0x130671){return _0x4f9c2b(_0x130671);},'GGZLk':_0x78c3c1(0xb7),'vPxGW':function(_0x458e5e,_0x19f3f2){return _0x458e5e!==_0x19f3f2;},'FYHaw':_0x78c3c1(0xcf),'CRfbs':_0x78c3c1(0x165)};return PerformanceTester['measureWrapper'](PerformanceO11yEvents['PRINT_BUILDLINK'],async()=>{const _0x3ae2e7=_0x78c3c1;try{const _0x40d9d3=_0xf720e8[_0x3ae2e7(0x11b)](require,_0xf720e8['GGZLk']);if(_0x40d9d3[_0x3ae2e7(0xee)]){const _0x32885b='Visit\x20'+O11Y_URL+_0x3ae2e7(0xbc)+_0x40d9d3[_0x3ae2e7(0xee)]+_0x3ae2e7(0x150);buildLogger[_0x3ae2e7(0x136)](_0x32885b);return;}if(process['env'][_0x3ae2e7(0xf1)]&&_0xf720e8[_0x3ae2e7(0x115)](process[_0x3ae2e7(0x13c)][_0x3ae2e7(0xf1)],_0xf720e8[_0x3ae2e7(0xc9)])&&_0xf720e8[_0x3ae2e7(0x115)](process[_0x3ae2e7(0x13c)][_0x3ae2e7(0xf1)],_0xf720e8['CRfbs'])){const _0x4445e0=_0x3ae2e7(0x154)+constants[_0x3ae2e7(0x107)]+_0x3ae2e7(0xbc)+process[_0x3ae2e7(0x13c)]['BS_TESTOPS_BUILD_HASHED_ID']+_0x3ae2e7(0x150);buildLogger[_0x3ae2e7(0x136)](_0x4445e0);}}catch(_0x1ed4c9){logger['error'](util['format'](_0x3ae2e7(0x160)+constants['TEST_REPORTING_ANALYTICS']+_0x3ae2e7(0x15f),new Date()[_0x3ae2e7(0x1b0)](),_0x1ed4c9[_0x3ae2e7(0xda)]||_0x1ed4c9[_0x3ae2e7(0x16c)]||_0x1ed4c9));}})();},exports['getFailureType']=_0x455a60=>{const _0x37ef3e=a130_0xed6e4f,_0x1e9085={};_0x1e9085['aKjxz']=_0x37ef3e(0xc2),_0x1e9085[_0x37ef3e(0x10e)]='Test\x20timeout\x20of',_0x1e9085['hivQA']=_0x37ef3e(0x157),_0x1e9085[_0x37ef3e(0x13a)]='UnhandledError';const _0x1c35f0=_0x1e9085;if(!_0x455a60)return null;const _0x48b82b=_0x455a60['toString']();if(_0x48b82b[_0x37ef3e(0xcc)](/AssertionError/))return _0x1c35f0[_0x37ef3e(0xf3)];if(_0x48b82b['match'](/TimeoutError/)||_0x48b82b[_0x37ef3e(0x9e)](_0x1c35f0['XUosB'])||_0x48b82b[_0x37ef3e(0xcc)](/Timeout.*exceeded/i))return _0x1c35f0[_0x37ef3e(0x12e)];return _0x1c35f0['UbjrL'];},exports[a130_0xed6e4f(0x15a)]=_0x345545=>{const _0x34dfb6=a130_0xed6e4f,_0x2a0e32={};_0x2a0e32['MZHaH']=_0x34dfb6(0x10c),_0x2a0e32[_0x34dfb6(0xba)]=_0x34dfb6(0x195),_0x2a0e32['ljrAH']=_0x34dfb6(0x133),_0x2a0e32[_0x34dfb6(0x167)]='jest',_0x2a0e32[_0x34dfb6(0xed)]='@cucumber/cucumber';const _0x4abe46=_0x2a0e32;let _0x9a9f4=null;switch(_0x345545){case FRAMEWORKS[_0x34dfb6(0xca)]:_0x9a9f4=bsSetupHelper[_0x34dfb6(0x119)](_0x4abe46['MZHaH']);break;case FRAMEWORKS[_0x34dfb6(0x126)]:_0x9a9f4=bsSetupHelper[_0x34dfb6(0x119)](_0x4abe46[_0x34dfb6(0xba)]);break;case FRAMEWORKS[_0x34dfb6(0x17a)]:case FRAMEWORKS[_0x34dfb6(0x145)]:_0x9a9f4=bsSetupHelper[_0x34dfb6(0x119)](_0x4abe46['ljrAH']);break;case FRAMEWORKS[_0x34dfb6(0xff)]:_0x9a9f4=bsSetupHelper[_0x34dfb6(0x119)](_0x4abe46[_0x34dfb6(0x167)]);break;case FRAMEWORKS['CUCUMBER']:_0x9a9f4=bsSetupHelper[_0x34dfb6(0x119)](_0x4abe46['lDrHi']);break;default:break;}return _0x9a9f4;},exports['getBrowserStackConfig']=_0x99b29e=>{const _0x1e20df=a130_0xed6e4f;let _0x44d915=null;switch(_0x99b29e){case FRAMEWORKS['PLAYWRIGHT']:_0x44d915=process['env'][_0x1e20df(0x12f)];break;}if(!_0x44d915)return;return bsSetupHelper[_0x1e20df(0x18f)](_0x44d915,![]);},exports[a130_0xed6e4f(0x14b)]=_0x3773b5=>{const _0x5da6e1=a130_0xed6e4f;return{'username':bsSetupHelper[_0x5da6e1(0xbb)](_0x3773b5),'accessKey':bsSetupHelper[_0x5da6e1(0x17f)](_0x3773b5)};},exports[a130_0xed6e4f(0xe6)]=(_0x35211e,_0x497852)=>{const _0x5bebff=a130_0xed6e4f,_0x52008a={};_0x52008a[_0x5bebff(0x120)]=_0x5bebff(0xdf),_0x52008a[_0x5bebff(0x1a4)]=_0x5bebff(0x140),_0x52008a['tOsLt']=_0x5bebff(0x10f);const _0x4d8e50=_0x52008a,_0x18285c=_0x4d8e50[_0x5bebff(0x120)][_0x5bebff(0xd3)]('|');let _0x4b2d1d=0x0;while(!![]){switch(_0x18285c[_0x4b2d1d++]){case'0':delete _0x35211e[_0x5bebff(0xac)];continue;case'1':_0x35211e[_0x5bebff(0xbd)]={'data':_0x35211e[_0x5bebff(0x15d)][0x0][_0x5bebff(0xf4)][0x0][_0x5bebff(0x177)],'test_run_uuid':_0x35211e[_0x5bebff(0x15d)][0x0][_0x5bebff(0xf4)][0x0][_0x5bebff(0x13e)],'event_type':_0x4d8e50[_0x5bebff(0x1a4)],'kind':_0x4d8e50[_0x5bebff(0x155)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()['toISOString'](),'fileName':_0x35211e[_0x5bebff(0x15d)][0x0]['logs'][0x0][_0x5bebff(0xf8)]};continue;case'2':if(!_0x35211e[_0x5bebff(0x15d)][0x0]||!_0x35211e[_0x5bebff(0x15d)][0x0][_0x5bebff(0xf4)]||!_0x35211e[_0x5bebff(0x15d)][0x0][_0x5bebff(0xf4)][_0x5bebff(0xf6)])return;continue;case'3':delete _0x497852[_0x5bebff(0x11c)];continue;case'4':if(!_0x35211e['body']||!Array[_0x5bebff(0x196)](_0x35211e['body']))return;continue;case'5':delete _0x35211e[_0x5bebff(0x15d)];continue;}break;}},exports[a130_0xed6e4f(0x12b)]=async(_0x4d4632,_0xcd56ac,_0x28a1c5,_0x3405e0,_0x43b393=!![])=>{const _0x5b2ee1=a130_0xed6e4f,_0x4b6d57={};_0x4b6d57[_0x5b2ee1(0xe8)]=function(_0x695fd9,_0x56350b){return _0x695fd9===_0x56350b;},_0x4b6d57[_0x5b2ee1(0xa7)]='Content-Type',_0x4b6d57['cUNvJ']=_0x5b2ee1(0x128),_0x4b6d57[_0x5b2ee1(0x123)]='https',_0x4b6d57[_0x5b2ee1(0xaa)]=function(_0x5f0ea5,_0x59fcb4){return _0x5f0ea5===_0x59fcb4;},_0x4b6d57[_0x5b2ee1(0x131)]=function(_0x1f72f5,_0x4ffbde){return _0x1f72f5!==_0x4ffbde;},_0x4b6d57[_0x5b2ee1(0xa6)]=function(_0x2a8e44,_0x493f5c){return _0x2a8e44!==_0x493f5c;},_0x4b6d57['RpsPa']=_0x5b2ee1(0xd9),_0x4b6d57[_0x5b2ee1(0x156)]=_0x5b2ee1(0xd6);const _0x4cff25=_0x4b6d57,_0x8bfb8a={..._0x3405e0,...{'method':_0x4d4632,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0xcd56ac,'body':_0x28a1c5,'json':_0x4cff25[_0x5b2ee1(0xe8)](_0x3405e0[_0x5b2ee1(0x11c)][_0x4cff25[_0x5b2ee1(0xa7)]],_0x4cff25[_0x5b2ee1(0x14e)]),'agent':API_URL['includes'](_0x4cff25[_0x5b2ee1(0x123)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x4cff25[_0x5b2ee1(0xaa)](_0xcd56ac,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x8bfb8a[_0x5b2ee1(0xec)]=API_URL['includes'](_0x4cff25[_0x5b2ee1(0x123)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x8bfb8a,_0x3405e0),logger[_0x5b2ee1(0x101)](_0x5b2ee1(0xd4)+_0x8bfb8a[_0x5b2ee1(0x130)]));try{const {statusCode:_0x44d46b,body:_0x1782dd}=await bsSetupHelper[_0x5b2ee1(0xa8)](_0x4d4632,_0xcd56ac,_0x8bfb8a,_0x3405e0,_0x8bfb8a[_0x5b2ee1(0x130)]);if(_0x4cff25['QQtRw'](_0x44d46b,0xc8))return _0x1782dd?_0x1782dd:_0x5b2ee1(0x1b8)+_0x44d46b;let _0x593dfa=_0x1782dd;if(_0x43b393)try{_0x4cff25[_0x5b2ee1(0xa6)](typeof _0x1782dd,_0x4cff25[_0x5b2ee1(0x106)])&&(_0x593dfa=JSON[_0x5b2ee1(0x11f)](_0x1782dd));}catch(_0x32636){logger[_0x5b2ee1(0x138)](_0x4cff25[_0x5b2ee1(0x156)],_0x1782dd,util['format'](_0x32636));}const _0x57c0b5={};return _0x57c0b5[_0x5b2ee1(0x177)]=_0x593dfa,_0x57c0b5;}catch(_0x2fd6c5){logger['error'](_0x5b2ee1(0xf2)+util[_0x5b2ee1(0x16b)](_0x2fd6c5));throw _0x2fd6c5;}},exports[a130_0xed6e4f(0xa8)]=(_0x32e129,_0x4f8184,_0x1edc64,_0x3f23f3,_0x29e568=!![])=>{const _0x27c55f=a130_0xed6e4f,_0x4ef569={'xhHOa':function(_0x3eacb0,_0x12660f){return _0x3eacb0!==_0x12660f;},'uVRaK':function(_0x54bf9d,_0x34a36c){return _0x54bf9d(_0x34a36c);},'CLabI':_0x27c55f(0xd9),'TowCS':'Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','cpEKU':function(_0x390c77,_0x5dbb28){return _0x390c77(_0x5dbb28);},'fnebq':function(_0x161639,_0x455774){return _0x161639===_0x455774;},'qeTdW':_0x27c55f(0xb3),'LXPum':_0x27c55f(0x128),'flJiq':_0x27c55f(0xb2),'QTdHi':function(_0x709c1d,_0x452659){return _0x709c1d===_0x452659;}};return new Promise((_0x38fef8,_0x3c6d53)=>{const _0x4c5508=_0x27c55f,_0x463bbf={'sFyKW':function(_0x5e02f6,_0x25871f){return _0x4ef569['uVRaK'](_0x5e02f6,_0x25871f);}},_0x22d4a4={..._0x3f23f3,...{'method':_0x32e129,'url':API_URL+'/'+_0x4f8184,'body':_0x1edc64,'json':_0x4ef569[_0x4c5508(0x1a7)](_0x3f23f3[_0x4c5508(0x11c)][_0x4ef569[_0x4c5508(0x1a9)]],_0x4ef569[_0x4c5508(0x169)]),'agent':API_URL[_0x4c5508(0x1ac)](_0x4ef569[_0x4c5508(0x199)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x4ef569['QTdHi'](_0x4f8184,SCREENSHOT_ENDPOINT)&&(_0x22d4a4[_0x4c5508(0xec)]=API_URL[_0x4c5508(0x1ac)](_0x4ef569[_0x4c5508(0x199)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x4c5508(0xa8)](_0x32e129,_0x4f8184,_0x22d4a4,_0x3f23f3,API_URL)['then'](({statusCode:_0xd3f1e0,body:_0x576f9b})=>{const _0x2d056c=_0x4c5508;if(_0x4ef569[_0x2d056c(0xdb)](_0xd3f1e0,0xc8))_0x4ef569[_0x2d056c(0x161)](_0x3c6d53,_0x576f9b?_0x576f9b:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0xd3f1e0);else{if(_0x29e568)try{_0x4ef569[_0x2d056c(0xdb)](typeof _0x576f9b,_0x4ef569[_0x2d056c(0xe0)])&&(_0x576f9b=JSON[_0x2d056c(0x11f)](_0x576f9b));}catch(_0x240226){_0x4ef569[_0x2d056c(0x161)](_0x3c6d53,_0x4ef569['TowCS']);return;}const _0x141151={};_0x141151[_0x2d056c(0x177)]=_0x576f9b,_0x4ef569[_0x2d056c(0x198)](_0x38fef8,_0x141151);}})[_0x4c5508(0x9f)](_0x5608a1=>{const _0x3fbdb4=_0x4c5508;_0x5608a1&&_0x463bbf[_0x3fbdb4(0x1bb)](_0x3c6d53,_0x5608a1);});});},exports[a130_0xed6e4f(0xa5)]=_0x31a211=>{const _0x186420=a130_0xed6e4f;if(process['env'][_0x186420(0x19f)])return process[_0x186420(0x13c)][_0x186420(0x19f)]['split'](',');if(process['env'][_0x186420(0x112)])return process[_0x186420(0x13c)][_0x186420(0x112)]['split'](',');if(_0x31a211[_0x186420(0x111)])return _0x31a211[_0x186420(0x111)];return[];},exports[a130_0xed6e4f(0xc5)]=(_0x2ddc5c=!![])=>{const _0x12ff7e=a130_0xed6e4f,_0x690a52={};_0x690a52['dIIoT']=_0x12ff7e(0x128),_0x690a52[_0x12ff7e(0x12d)]=_0x12ff7e(0x16a),_0x690a52[_0x12ff7e(0x15b)]=_0x12ff7e(0x183);const _0x5cd684=_0x690a52,_0x324b0d={};_0x324b0d['Content-Type']=_0x5cd684[_0x12ff7e(0x1aa)],_0x324b0d[_0x12ff7e(0x181)]=_0x5cd684[_0x12ff7e(0x12d)];const _0x5d1c56=_0x324b0d;return _0x2ddc5c&&process[_0x12ff7e(0x13c)][_0x12ff7e(0xae)]&&(_0x5d1c56[_0x5cd684['yksPf']]=_0x12ff7e(0x1b1)+process[_0x12ff7e(0x13c)][_0x12ff7e(0xae)]),_0x5d1c56;},exports['extractValuesWithRegexKeyMatch']=_0x3e26f4=>{const _0x45beb0=a130_0xed6e4f,_0x245ef0={};_0x245ef0[_0x45beb0(0x13f)]=_0x45beb0(0xb0);const _0x3b73c6=_0x245ef0,_0x5c5eff=[],_0x1acb78=new RegExp(_0x3b73c6[_0x45beb0(0x13f)],'i');return Object[_0x45beb0(0x178)](_0x3e26f4)[_0x45beb0(0xb9)](_0x231bb0=>_0x1acb78[_0x45beb0(0x102)](_0x231bb0))['forEach'](_0x1cbc0f=>_0x5c5eff[_0x45beb0(0x144)](_0x3e26f4[_0x1cbc0f])),_0x5c5eff;},exports[a130_0xed6e4f(0x1b4)]=_0x6a8f95=>{const _0x3d6998=a130_0xed6e4f,_0x270179=[],_0x3bf769=_0x6a8f95[_0x3d6998(0x125)]||process[_0x3d6998(0x13c)][_0x3d6998(0x10a)];return _0x3bf769&&_0x270179[_0x3d6998(0x144)](_0x3bf769),_0x270179[_0x3d6998(0x144)](...exports[_0x3d6998(0x1ae)](process['env'])),_0x270179[_0x3d6998(0x144)](...exports[_0x3d6998(0x1ae)](_0x6a8f95)),_0x270179;},exports[a130_0xed6e4f(0x13b)]=_0x1dd19c=>{const _0x52a1e7=a130_0xed6e4f;if(!_0x1dd19c)return'';return _0x1dd19c[_0x52a1e7(0x152)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a130_0xed6e4f(0x168)]=(_0x5527ff=0x64)=>new Promise(_0x592ec1=>setTimeout(_0x592ec1,_0x5527ff));const getPlatformName=()=>{const _0x593f9f=a130_0xed6e4f,_0x34741a={};_0x34741a[_0x593f9f(0xa9)]=function(_0x29a3e5,_0x2c971c){return _0x29a3e5===_0x2c971c;},_0x34741a[_0x593f9f(0xc0)]=_0x593f9f(0x141),_0x34741a[_0x593f9f(0x172)]=_0x593f9f(0x19c),_0x34741a[_0x593f9f(0x122)]=function(_0x6cb7e7,_0x11e18f){return _0x6cb7e7===_0x11e18f;},_0x34741a[_0x593f9f(0x113)]='darwin',_0x34741a[_0x593f9f(0xfc)]=_0x593f9f(0x149),_0x34741a['BnXRi']=function(_0x45d57f,_0x3f4601){return _0x45d57f===_0x3f4601;},_0x34741a[_0x593f9f(0x1a5)]=_0x593f9f(0xfb),_0x34741a[_0x593f9f(0x1b5)]='Linux',_0x34741a[_0x593f9f(0x18d)]=_0x593f9f(0x109);const _0x29ca4a=_0x34741a;if(_0x29ca4a[_0x593f9f(0xa9)](process[_0x593f9f(0x1af)],_0x29ca4a[_0x593f9f(0xc0)]))return _0x29ca4a[_0x593f9f(0x172)];if(_0x29ca4a[_0x593f9f(0x122)](process[_0x593f9f(0x1af)],_0x29ca4a['JExPu']))return _0x29ca4a[_0x593f9f(0xfc)];if(_0x29ca4a[_0x593f9f(0xd8)](process[_0x593f9f(0x1af)],_0x29ca4a[_0x593f9f(0x1a5)]))return _0x29ca4a[_0x593f9f(0x1b5)];return _0x29ca4a['NAICv'];},getMacOSVersion=()=>{const _0x562feb=a130_0xed6e4f,_0x32790a={};_0x32790a[_0x562feb(0x180)]=_0x562feb(0xf7);const _0x843be3=_0x32790a;return child_process[_0x562feb(0x15e)](_0x843be3[_0x562feb(0x180)])[_0x562feb(0x194)]()['trim']();},getLinuxDetails=()=>{const _0x4a55b5={'NbmaQ':function(_0x1a922e,_0x48066d){return _0x1a922e(_0x48066d);},'ZRWEx':function(_0x197b10,_0x41bf46){return _0x197b10(_0x41bf46);}};return new Promise((_0x2a600b,_0x370025)=>{const _0x52a48f=a130_0x589e,_0x6e902f={'AJfrB':function(_0x180e5a,_0x16b6cd){const _0x32a5f6=a130_0x589e;return _0x4a55b5[_0x32a5f6(0x114)](_0x180e5a,_0x16b6cd);}};_0x4a55b5[_0x52a48f(0xa2)](getos,(_0x56fab3,_0x8afd63)=>{const _0x2dbbc1=_0x52a48f;if(_0x56fab3)return _0x6e902f[_0x2dbbc1(0x19a)](_0x370025,_0x56fab3);_0x6e902f['AJfrB'](_0x2a600b,_0x8afd63);});});};function a130_0x589e(_0x539e80,_0x1e17a1){const _0x1a2a5a=a130_0x1a2a();return a130_0x589e=function(_0x589e0f,_0x23b673){_0x589e0f=_0x589e0f-0x9b;let _0x22d859=_0x1a2a5a[_0x589e0f];return _0x22d859;},a130_0x589e(_0x539e80,_0x1e17a1);}exports[a130_0xed6e4f(0xde)]=async()=>{const _0x1157cb=a130_0xed6e4f,_0x3906b3={'fqJfG':function(_0x93898){return _0x93898();},'ARVWa':_0x1157cb(0x149),'TCWwX':function(_0x20af97){return _0x20af97();},'faoor':'Windows','ZAyQN':_0x1157cb(0x1b2),'ZrgCo':_0x1157cb(0xa1),'pFkDN':function(_0x38d682){return _0x38d682();},'vriJB':_0x1157cb(0x142)};let _0x2ed2bb=_0x3906b3[_0x1157cb(0xbf)](getPlatformName),_0x45b0d8=os[_0x1157cb(0x10d)]()[_0x1157cb(0x194)]();switch(_0x2ed2bb){case _0x3906b3[_0x1157cb(0x14a)]:_0x45b0d8=_0x3906b3[_0x1157cb(0x19b)](getMacOSVersion);break;case _0x3906b3['faoor']:try{const _0x1df40b=(await import(_0x3906b3[_0x1157cb(0x173)]))[_0x1157cb(0xef)];_0x45b0d8=_0x3906b3[_0x1157cb(0xbf)](_0x1df40b);}catch(_0x2ee84b){exports[_0x1157cb(0x101)]('Error\x20in\x20importing\x20windows-release\x20'+_0x2ee84b[_0x1157cb(0x194)]());}break;case _0x3906b3['ZrgCo']:try{const _0x212ec5=await _0x3906b3[_0x1157cb(0xe9)](getLinuxDetails);_0x212ec5[_0x1157cb(0x148)]&&(_0x2ed2bb=_0x212ec5['dist']),_0x212ec5['release']&&(_0x45b0d8=_0x212ec5[_0x1157cb(0x10d)][_0x1157cb(0x194)]());}catch(_0x556e34){exports[_0x1157cb(0x101)](_0x3906b3[_0x1157cb(0x139)]);}break;default:break;}const _0xe0321d={};return _0xe0321d['platformName']=_0x2ed2bb,_0xe0321d[_0x1157cb(0x12c)]=_0x45b0d8,_0xe0321d;},exports['failureData']=(_0x1f6a18,_0x3c3d9b)=>{const _0x4d3166=a130_0xed6e4f,_0x2b9537={};_0x2b9537['tvbgA']=function(_0x57f737,_0x3da833){return _0x57f737===_0x3da833;},_0x2b9537[_0x4d3166(0x1ab)]=_0x4d3166(0x102),_0x2b9537[_0x4d3166(0x185)]=function(_0x297f9e,_0x20eee6){return _0x297f9e===_0x20eee6;},_0x2b9537['FQfxT']=_0x4d3166(0x18a);const _0x3c8199=_0x2b9537;if(!_0x1f6a18)return[];try{if(_0x3c8199['tvbgA'](_0x3c3d9b,_0x3c8199['jPuBB']))return _0x1f6a18[_0x4d3166(0x143)](_0x3f3604=>{const _0x1000c0=_0x4d3166,{stack:_0x15bb8e,..._0x435f01}=_0x3f3604,_0x50b3d0=Object['keys'](_0x435f01)['map'](_0x65e157=>{return _0x65e157+':\x20'+_0x435f01[_0x65e157];}),_0x27184e=_0x15bb8e?exports[_0x1000c0(0x13b)](_0x15bb8e)[_0x1000c0(0xd3)](/\r?\n/):[exports[_0x1000c0(0x13b)](_0x3f3604[_0x1000c0(0x16c)])],_0x3bee1f={};return _0x3bee1f[_0x1000c0(0x182)]=_0x27184e,_0x3bee1f['expanded']=_0x50b3d0,_0x3bee1f;});else{if(_0x3c8199[_0x4d3166(0x185)](_0x3c3d9b,_0x3c8199[_0x4d3166(0x188)])){const _0x3a6e1b=[],_0x4313de=[];return Object[_0x4d3166(0x178)](_0x1f6a18)['forEach'](_0x45414d=>{const _0x2d9ea1=_0x4d3166;try{_0x4313de['push'](_0x45414d+':\x20'+_0x1f6a18[_0x45414d]);}catch(_0x28bf46){exports[_0x2d9ea1(0x101)](_0x2d9ea1(0x190)+_0x28bf46['message']+_0x2d9ea1(0x9b)+_0x28bf46[_0x2d9ea1(0x182)]);}}),_0x3a6e1b[_0x4d3166(0x144)]({'backtrace':exports[_0x4d3166(0x13b)](_0x1f6a18[_0x4d3166(0xda)])[_0x4d3166(0xd3)](/\r?\n/),'expanded':_0x4313de}),_0x3a6e1b;}}return[];}catch(_0x265deb){exports['debug']('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x265deb[_0x4d3166(0x16c)]+_0x4d3166(0x9b)+_0x265deb['backtrace']);}return[];};class PathHelper{constructor(_0xd99b7c,_0x34dd48){const _0x3bee9e=a130_0xed6e4f;this['config']=_0xd99b7c,this[_0x3bee9e(0x116)]=_0x34dd48;}['relativeTestFilePath'](_0x194c3c){const _0x463f01=a130_0xed6e4f,_0x1c6399=this[_0x463f01(0xb8)]['cwd']||this['config'][_0x463f01(0xad)];return path[_0x463f01(0x163)](_0x1c6399,_0x194c3c);}['prefixTestPath'](_0x14e4d5){const _0x14f489=a130_0xed6e4f,_0x13a748=this['relativeTestFilePath'](_0x14e4d5);return this[_0x14f489(0x116)]?path[_0x14f489(0x191)](this[_0x14f489(0x116)],_0x13a748):_0x13a748;}}exports['PathHelper']=PathHelper,exports[a130_0xed6e4f(0x135)]=(_0x23acba=!![])=>{const _0x234c5f=a130_0xed6e4f,_0xade4bf={};_0xade4bf[_0x234c5f(0xe4)]=function(_0x376af3,_0x519c55){return _0x376af3===_0x519c55;},_0xade4bf[_0x234c5f(0xfe)]=_0x234c5f(0x181),_0xade4bf[_0x234c5f(0xfd)]=_0x234c5f(0x16a),_0xade4bf[_0x234c5f(0x13d)]=_0x234c5f(0xfa),_0xade4bf[_0x234c5f(0x104)]='browserstack',_0xade4bf['xmSGS']=_0x234c5f(0x164);const _0x3a0a9b=_0xade4bf;requestSpy[_0x234c5f(0x18e)]((_0x477b25,_0x2e31f3)=>{const _0x18b459=_0x234c5f;_0x2e31f3&&!(_0x2e31f3[_0x18b459(0x11c)]&&_0x3a0a9b[_0x18b459(0xe4)](_0x2e31f3[_0x18b459(0x11c)][_0x3a0a9b[_0x18b459(0xfe)]],_0x3a0a9b[_0x18b459(0xfd)]))&&(_0x2e31f3[_0x18b459(0x171)]=_0x2e31f3[_0x18b459(0xb4)],delete _0x2e31f3[_0x18b459(0xb4)],_0x23acba&&process['emit'](_0x18b459(0x1ad)+process[_0x18b459(0x15c)],{'timestamp':new Date()[_0x18b459(0x1b0)](),'level':null,'message':null,'kind':_0x3a0a9b[_0x18b459(0x13d)],'http_response':_0x2e31f3})),_0x2e31f3&&(constants[_0x18b459(0xdc)][_0x18b459(0x102)](_0x2e31f3['host'])||constants[_0x18b459(0xea)][_0x18b459(0x102)](_0x2e31f3[_0x18b459(0x171)]))?global[_0x18b459(0x170)]=_0x3a0a9b[_0x18b459(0x104)]:global[_0x18b459(0x170)]=_0x3a0a9b[_0x18b459(0x124)];});},exports[a130_0xed6e4f(0x16e)]=()=>{const _0x4bf7df=a130_0xed6e4f,_0x4c269b={'MYUml':function(_0x325ae3,_0x24eb23){return _0x325ae3(_0x24eb23);}};console={},Object['keys'](consoleHolder)[_0x4bf7df(0xce)](_0xcee9ad=>{const _0x536e74=_0x4bf7df;_0x4c269b[_0x536e74(0x19e)](isFunction,consoleHolder[_0xcee9ad])?console[_0xcee9ad]=(..._0xe4663)=>{const _0xe9cf38=_0x536e74;try{!Object[_0xe9cf38(0x178)](BSTestOpsPatcher)[_0xe9cf38(0x1ac)](_0xcee9ad)?consoleHolder[_0xcee9ad](..._0xe4663):BSTestOpsPatcher[_0xcee9ad](..._0xe4663);}catch(_0x396953){consoleHolder[_0xcee9ad](..._0xe4663);}}:console[_0xcee9ad]=consoleHolder[_0xcee9ad];});},exports['getSyncScript']=()=>a130_0xed6e4f(0x1b9)+JSON[a130_0xed6e4f(0x197)]({'action':a130_0xed6e4f(0x9c),'arguments':{'data':'ObservabilitySync:'+Date['now'](),'level':a130_0xed6e4f(0x101)}}),exports['getObservabilityLinkedProductName']=_0x2c513d=>{const _0x2aebab=a130_0xed6e4f,_0x5c9227={};_0x5c9227[_0x2aebab(0x132)]=function(_0x970ce5,_0x368deb){return _0x970ce5===_0x368deb;},_0x5c9227[_0x2aebab(0x12a)]='browserstack',_0x5c9227['sykrP']=_0x2aebab(0x14c),_0x5c9227[_0x2aebab(0x1ba)]=_0x2aebab(0xe3),_0x5c9227[_0x2aebab(0x174)]=function(_0xe0484e,_0x2118ca){return _0xe0484e>_0x2118ca;},_0x5c9227[_0x2aebab(0x10b)]='app-automate',_0x5c9227[_0x2aebab(0x16f)]=_0x2aebab(0x9d),_0x5c9227[_0x2aebab(0xdd)]=_0x2aebab(0xd7),_0x5c9227[_0x2aebab(0x117)]=_0x2aebab(0xd5),_0x5c9227[_0x2aebab(0x18b)]=_0x2aebab(0xf0);const _0x4c0ab4=_0x5c9227;let _0x5e705f=null;try{if(_0x4c0ab4[_0x2aebab(0x132)](global[_0x2aebab(0x170)],_0x4c0ab4['oeEhB'])){if(_0x2c513d[_0x4c0ab4[_0x2aebab(0xb6)]]||_0x2c513d[_0x4c0ab4[_0x2aebab(0x1ba)]]||!bsSetupHelper['isUndefined'](global[_0x2aebab(0x17b)])&&_0x4c0ab4[_0x2aebab(0x174)](global[_0x2aebab(0x17b)][_0x2aebab(0xf6)],0x0)&&(global['capabilities'][0x0][_0x4c0ab4['GTFQa']]||global[_0x2aebab(0x17b)][0x0][_0x4c0ab4[_0x2aebab(0xb6)]]))_0x5e705f=_0x4c0ab4[_0x2aebab(0x10b)];else _0x2c513d[_0x4c0ab4[_0x2aebab(0x16f)]]&&_0x2c513d[_0x4c0ab4[_0x2aebab(0x16f)]][_0x4c0ab4['DVhni']]?_0x5e705f=_0x4c0ab4[_0x2aebab(0x117)]:_0x5e705f=_0x4c0ab4[_0x2aebab(0x18b)];}}catch(_0x3a11f6){exports['debug'](_0x2aebab(0x129)+constants[_0x2aebab(0x14d)]+_0x2aebab(0xaf)+_0x3a11f6);}return _0x5e705f;},exports[a130_0xed6e4f(0x19d)]=async(_0x2277a7,_0x4b9339,_0x2817ed=![])=>{const _0x5cd08a=a130_0xed6e4f,_0x5aa0e5={};_0x5aa0e5[_0x5cd08a(0xc8)]=function(_0x35a492,_0x157b31){return _0x35a492===_0x157b31;},_0x5aa0e5[_0x5cd08a(0x121)]='browserstack',_0x5aa0e5[_0x5cd08a(0xc7)]=_0x5cd08a(0xe2),_0x5aa0e5[_0x5cd08a(0xe1)]='TEST_PLATFORM';const _0x18033c=_0x5aa0e5;try{const _0x41e4eb=await _0x2277a7[_0x5cd08a(0xe7)](),_0x417354=await _0x2277a7[_0x5cd08a(0x110)](),_0x5bfbe8={},_0x10ac9c=Object[_0x5cd08a(0x159)](_0x417354[_0x5cd08a(0xe7)]()[_0x5cd08a(0x11a)]),_0x2a7ef5={'product':exports[_0x5cd08a(0x1a6)](_0x10ac9c),'capabilities':_0x10ac9c,'platform':_0x41e4eb[_0x5cd08a(0x151)](),'platform_version':bsSetupHelper[_0x5cd08a(0x17e)](_0x18033c['NpIDi'](global['__cloud_provider___'],_0x18033c[_0x5cd08a(0x121)])),'browser':_0x41e4eb[_0x5cd08a(0xe5)](),'browser_version':_0x41e4eb['getBrowserVersion'](),'session_id':_0x417354[_0x5cd08a(0xa4)]()};global['__cloud_provider___']?_0x5bfbe8[global[_0x5cd08a(0x170)]]=_0x2a7ef5:_0x5bfbe8[_0x18033c['jXdkQ']]=_0x2a7ef5;if(_0x2817ed)return _0x5bfbe8;process[_0x5cd08a(0x1a3)](_0x5cd08a(0xd0)+process[_0x5cd08a(0x15c)],{'timestamp':new Date()[_0x5cd08a(0x1b0)](),'level':null,'message':null,'kind':_0x18033c[_0x5cd08a(0xe1)],'http_response':_0x5bfbe8,'uuid':_0x4b9339});}catch(_0xb7f81c){exports[_0x5cd08a(0x101)](_0x5cd08a(0xc4)+_0xb7f81c);}},exports[a130_0xed6e4f(0x100)]=_0x16a4ce=>{const _0x33cdb4=a130_0xed6e4f;return _0x16a4ce&&_0x16a4ce[_0x33cdb4(0x194)]()[_0x33cdb4(0xcc)](/browserstack internal helper hook/);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a131_0x2b32(){var _0x25691e=['594160RFxUuw','5geskVw','exports','ORCHESTRATION_API_URL','FAILED_TESTS_ENDPOINT','594093OFMoMk','testorchestration/api/v1/failed-tests','3422720wOPSFN','2LJBQuj','testorchestration/api/v1/split-tests','4074174JrsmqI','2230992BoNOhh','1428884rBvnmO','400654tsTUsX'];a131_0x2b32=function(){return _0x25691e;};return a131_0x2b32();}var a131_0x17a8c6=a131_0x14b6;(function(_0x1ff92f,_0x22d37e){var _0x3fcd92=a131_0x14b6,_0x36ec99=_0x1ff92f();while(!![]){try{var _0x11fef7=parseInt(_0x3fcd92(0xc6))/0x1*(parseInt(_0x3fcd92(0xbd))/0x2)+-parseInt(_0x3fcd92(0xc3))/0x3+parseInt(_0x3fcd92(0xbc))/0x4*(-parseInt(_0x3fcd92(0xbf))/0x5)+parseInt(_0x3fcd92(0xbb))/0x6+-parseInt(_0x3fcd92(0xc5))/0x7+parseInt(_0x3fcd92(0xbe))/0x8+parseInt(_0x3fcd92(0xba))/0x9;if(_0x11fef7===_0x22d37e)break;else _0x36ec99['push'](_0x36ec99['shift']());}catch(_0x45f1b4){_0x36ec99['push'](_0x36ec99['shift']());}}}(a131_0x2b32,0x3e4fe));var a131_0xb679c5={};function a131_0x14b6(_0x8b57e0,_0x55b088){var _0x2b326e=a131_0x2b32();return a131_0x14b6=function(_0x14b64c,_0x3c4a13){_0x14b64c=_0x14b64c-0xb9;var _0x24cdba=_0x2b326e[_0x14b64c];return _0x24cdba;},a131_0x14b6(_0x8b57e0,_0x55b088);}a131_0xb679c5[a131_0x17a8c6(0xc1)]='https://collector-observability.browserstack.com',a131_0xb679c5[a131_0x17a8c6(0xc2)]=a131_0x17a8c6(0xc4),a131_0xb679c5['SPLIT_TESTS_ENDPOINT']=a131_0x17a8c6(0xb9),module[a131_0x17a8c6(0xc0)]=a131_0xb679c5;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a132_0x4da5(_0x386343,_0x228f01){const _0x298aa3=a132_0x298a();return a132_0x4da5=function(_0x4da513,_0x55fcbf){_0x4da513=_0x4da513-0x133;let _0x138a54=_0x298aa3[_0x4da513];return _0x138a54;},a132_0x4da5(_0x386343,_0x228f01);}const a132_0x1ddec9=a132_0x4da5;(function(_0x1ca8c3,_0x202d33){const _0x4283e8=a132_0x4da5,_0x5aded0=_0x1ca8c3();while(!![]){try{const _0x17fdf9=-parseInt(_0x4283e8(0x175))/0x1*(-parseInt(_0x4283e8(0x172))/0x2)+-parseInt(_0x4283e8(0x1a1))/0x3+-parseInt(_0x4283e8(0x18f))/0x4+parseInt(_0x4283e8(0x1ad))/0x5*(-parseInt(_0x4283e8(0x15a))/0x6)+parseInt(_0x4283e8(0x19a))/0x7+-parseInt(_0x4283e8(0x139))/0x8*(parseInt(_0x4283e8(0x154))/0x9)+parseInt(_0x4283e8(0x13e))/0xa;if(_0x17fdf9===_0x202d33)break;else _0x5aded0['push'](_0x5aded0['shift']());}catch(_0x1055cd){_0x5aded0['push'](_0x5aded0['shift']());}}}(a132_0x298a,0x9933c));const fs=require('fs'),path=require(a132_0x1ddec9(0x198)),FileHelper=require(a132_0x1ddec9(0x138)),RequestUtils=require(a132_0x1ddec9(0x170)),logger=require(a132_0x1ddec9(0x157))[a132_0x1ddec9(0x146)],POLLING_INTERVAL=0x2710,TAG=a132_0x1ddec9(0x19d);function a132_0x298a(){const _0x4e60da=['toISOString','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20',']\x20Polling\x20stopped.','_Local]\x20State\x20initialized\x20from\x20file.','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','BlfAq','fMkbO','BROWSERSTACK_TOTAL_NODE_COUNT','zzBjL','failedTests','from','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','_getDefaultState','error','wwxMc','RXWIu','RSsHS','reportedFailuresToAPI','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','1805600oACFlb','sSvVC','stopPolling','TxHcU','THRZR','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','failFastConfig','catch','KyiiE','path','stateFilePath','4918816UnVzAD','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','htjOi','FailFastManager','failFastState.json','length','gwNUJ','272676YNihHa','getFailedTestsCount','dhcPt','debug','stack','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','nXoyL','VigUe','wReEN','pollingInterval','lockFilePath','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','5TtmXsl','LeIjv','writeState','add','failFastActiveMarkerPath','writeFileSync','workingDir','\x20(was\x20','KvDwV','failFastState.lock','OpIhJ','YeIJW','failFastActive','failureThresholdCount','state','NiSdz','_sendFailedTestsToAPI','wrlii','info','./fileHelper','8945776KHGXbk','ZIuEm','buildRunIdentifier','gRRGT','LTafz','13162920WbTgsU','join','startPolling','buildName','projectName','passed','gTmim','_initializeStateFromFile','winstonLogger','warn','readState','cleanup','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','NVOKE','exports','uveLt','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','BoNaL','doObd','putFailedTests','lastAPIFailedCount','failFast.active','9ORLHqU','number','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','../logger','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','QwapJ','2476746iRVszL','GyJNQ','ms.','fCOaD','failed',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','env','newState','DLusX','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','existsSync',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','yfgxs','_pollFailedTests','_CI]\x20Error\x20sending\x20failed\x20test\x20','_fetchAPIFailedCount','BROWSERSTACK_BUILD_RUN_IDENTIFIER','\x0aStack:\x20','isCIMode','totalTests','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','OdUyZ','./requestUtils','fileHelper','2FhVtue','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.',',\x20CI\x20Mode:\x20','681841AMiiNJ','_CI]\x20API\x20failed\x20count\x20updated:\x20','onTestDone','message',',\x20threshold:\x20','uniqueFailedTests','zSuwi'];a132_0x298a=function(){return _0x4e60da;};return a132_0x298a();}class FailFastManager{constructor(_0x27afd4,_0x5c4292,_0x368869){const _0x50c1a9=a132_0x1ddec9,_0x139a44={};_0x139a44[_0x50c1a9(0x190)]=function(_0x8b7875,_0x9d4e11){return _0x8b7875+_0x9d4e11;},_0x139a44[_0x50c1a9(0x1a3)]='\x0aStack:\x20',_0x139a44['doObd']=function(_0x4157f5,_0x576975){return _0x4157f5||_0x576975;},_0x139a44[_0x50c1a9(0x193)]=_0x50c1a9(0x19e),_0x139a44[_0x50c1a9(0x166)]=_0x50c1a9(0x1b6),_0x139a44[_0x50c1a9(0x181)]=_0x50c1a9(0x153);const _0x2c356=_0x139a44;this[_0x50c1a9(0x195)]=_0x2c356[_0x50c1a9(0x150)](_0x27afd4,{}),this['buildName']=_0x5c4292,this['projectName']=_0x368869,this[_0x50c1a9(0x16c)]=!!(process[_0x50c1a9(0x160)][_0x50c1a9(0x16a)]&&process[_0x50c1a9(0x160)]['BROWSERSTACK_NODE_INDEX']&&process[_0x50c1a9(0x160)][_0x50c1a9(0x183)]);const _0x2374cc=this[_0x50c1a9(0x195)][_0x50c1a9(0x1b3)];this['stateFilePath']=path[_0x50c1a9(0x13f)](_0x2374cc,_0x2c356[_0x50c1a9(0x193)]),this[_0x50c1a9(0x1ab)]=path['join'](_0x2374cc,_0x2c356[_0x50c1a9(0x166)]),this[_0x50c1a9(0x1b1)]=path[_0x50c1a9(0x13f)](_0x2374cc,_0x2c356[_0x50c1a9(0x181)]),this[_0x50c1a9(0x171)]=new FileHelper(this[_0x50c1a9(0x195)],this[_0x50c1a9(0x199)],this[_0x50c1a9(0x1ab)],this[_0x50c1a9(0x188)]()),this[_0x50c1a9(0x133)]=this['_getDefaultState'](),this[_0x50c1a9(0x1aa)]=null,this['isCIMode']&&(this[_0x50c1a9(0x18d)]=new Set()),this[_0x50c1a9(0x145)]()[_0x50c1a9(0x196)](_0x4445f4=>{const _0x62d825=_0x50c1a9;logger[_0x62d825(0x189)]('['+TAG+_0x62d825(0x15f)+_0x4445f4['message']+(_0x4445f4[_0x62d825(0x1a5)]?_0x2c356['sSvVC'](_0x2c356[_0x62d825(0x1a3)],_0x4445f4[_0x62d825(0x1a5)]):'')),this['state']=this[_0x62d825(0x188)]();}),this[_0x50c1a9(0x16c)]&&this['startPolling'](),logger[_0x50c1a9(0x1a4)]('['+TAG+']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20'+this['failFastConfig'][_0x50c1a9(0x1ba)]+_0x50c1a9(0x174)+this['isCIMode']);}[a132_0x1ddec9(0x188)](){const _0x14419e={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x14419e;}async[a132_0x1ddec9(0x145)](){const _0x400780=a132_0x1ddec9,_0x3b516c={};_0x3b516c[_0x400780(0x1a9)]=function(_0x57d7c9,_0x13fdd5){return _0x57d7c9+_0x13fdd5;},_0x3b516c[_0x400780(0x1a0)]=_0x400780(0x16b);const _0x5f47a2=_0x3b516c;if(this['isCIMode'])try{fs[_0x400780(0x164)](this[_0x400780(0x1b1)])&&(this[_0x400780(0x133)][_0x400780(0x1b9)]=!![],logger[_0x400780(0x1a4)]('['+TAG+_0x400780(0x19b)));}catch(_0x233718){logger[_0x400780(0x189)]('['+TAG+_0x400780(0x187)+_0x233718[_0x400780(0x178)]+(_0x233718['stack']?_0x5f47a2[_0x400780(0x1a9)](_0x5f47a2[_0x400780(0x1a0)],_0x233718[_0x400780(0x1a5)]):''));}else try{const _0x1b6bcd=await this['fileHelper'][_0x400780(0x148)]();if(_0x1b6bcd)this[_0x400780(0x133)]={...this[_0x400780(0x188)](),..._0x1b6bcd,'uniqueFailedTests':new Set(_0x1b6bcd['uniqueFailedTests']||[])},logger['debug']('['+TAG+_0x400780(0x17f));else{logger[_0x400780(0x1a4)]('['+TAG+_0x400780(0x156));const _0x5cdada=this[_0x400780(0x188)](),_0x4d9034={..._0x5cdada,'uniqueFailedTests':Array[_0x400780(0x186)](_0x5cdada[_0x400780(0x17a)])};await this[_0x400780(0x171)][_0x400780(0x1af)](_0x4d9034),this['state']=_0x5cdada;}}catch(_0x310b9d){logger[_0x400780(0x1a4)]('['+TAG+'_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20'+_0x310b9d['message']+(_0x310b9d['stack']?_0x5f47a2[_0x400780(0x1a9)](_0x5f47a2[_0x400780(0x1a0)],_0x310b9d['stack']):'')),this[_0x400780(0x133)]=this['_getDefaultState']();}}async[a132_0x1ddec9(0x177)](_0x52ed50,_0x4f2832){const _0x47402f=a132_0x1ddec9,_0x4bbf08={};_0x4bbf08['TxHcU']=function(_0x212a68,_0x174e0e){return _0x212a68>_0x174e0e;},_0x4bbf08[_0x47402f(0x1b7)]=function(_0x4c21cb,_0x15db4e){return _0x4c21cb>_0x15db4e;},_0x4bbf08[_0x47402f(0x184)]=_0x47402f(0x15e),_0x4bbf08[_0x47402f(0x18a)]=_0x47402f(0x143),_0x4bbf08['gKubO']=function(_0x3bfe96,_0x2e69e6){return _0x3bfe96+_0x2e69e6;},_0x4bbf08[_0x47402f(0x14d)]='\x0aStack:\x20',_0x4bbf08[_0x47402f(0x197)]=function(_0x155ef0,_0x3ba235){return _0x155ef0||_0x3ba235;},_0x4bbf08[_0x47402f(0x1b5)]=function(_0x2469bf,_0x132418){return _0x2469bf+_0x132418;};const _0x185f97=_0x4bbf08;if(this[_0x47402f(0x16c)])this[_0x47402f(0x133)][_0x47402f(0x16d)]+=0x1,_0x4f2832&&_0x185f97[_0x47402f(0x192)](_0x4f2832[_0x47402f(0x19f)],0x0)&&(!this[_0x47402f(0x18d)]['has'](_0x52ed50)&&(await this[_0x47402f(0x135)](_0x52ed50),this[_0x47402f(0x18d)][_0x47402f(0x1b0)](_0x52ed50)));else try{const _0x2dc4d6={'fullName':_0x52ed50,'status':_0x4f2832&&_0x185f97[_0x47402f(0x1b7)](_0x4f2832[_0x47402f(0x19f)],0x0)?_0x185f97['zzBjL']:_0x185f97[_0x47402f(0x18a)]},_0x2cb31a=await this['fileHelper']['recordTestResult'](_0x2dc4d6);this[_0x47402f(0x133)]={...this[_0x47402f(0x188)](),..._0x2cb31a['newState'],'uniqueFailedTests':new Set(_0x2cb31a[_0x47402f(0x161)][_0x47402f(0x17a)]||[])};}catch(_0x20be91){logger[_0x47402f(0x189)]('['+TAG+_0x47402f(0x17d)+_0x20be91[_0x47402f(0x178)]+(_0x20be91[_0x47402f(0x1a5)]?_0x185f97['gKubO'](_0x185f97[_0x47402f(0x14d)],_0x20be91[_0x47402f(0x1a5)]):''));try{const _0x4315f6=await this[_0x47402f(0x171)][_0x47402f(0x148)]();this[_0x47402f(0x133)]={...this[_0x47402f(0x188)](),..._0x185f97[_0x47402f(0x197)](_0x4315f6,{}),'uniqueFailedTests':new Set(_0x4315f6?_0x4315f6[_0x47402f(0x17a)]||[]:[])},logger[_0x47402f(0x1a4)]('['+TAG+_0x47402f(0x158));}catch(_0x2968fa){logger[_0x47402f(0x189)]('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0x2968fa['message']+(_0x2968fa[_0x47402f(0x1a5)]?_0x185f97['KvDwV'](_0x185f97[_0x47402f(0x14d)],_0x2968fa[_0x47402f(0x1a5)]):'')),this[_0x47402f(0x133)]=this['_getDefaultState']();}}}async[a132_0x1ddec9(0x135)](_0x307f95){const _0x119fe3=a132_0x1ddec9,_0x5af485={};_0x5af485[_0x119fe3(0x19c)]=function(_0x111049,_0x370484){return _0x111049+_0x370484;},_0x5af485['fCOaD']=_0x119fe3(0x16b);const _0x1027ee=_0x5af485;if(!this['isCIMode']||!_0x307f95)return;try{logger['debug']('['+TAG+_0x119fe3(0x18e)+_0x307f95);const _0x5e53dc={};_0x5e53dc['buildName']=this[_0x119fe3(0x141)],_0x5e53dc[_0x119fe3(0x142)]=this[_0x119fe3(0x142)],_0x5e53dc[_0x119fe3(0x185)]=[_0x307f95],_0x5e53dc[_0x119fe3(0x13b)]=process[_0x119fe3(0x160)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],await RequestUtils[_0x119fe3(0x151)](_0x5e53dc);}catch(_0x2aea6a){logger['error']('['+TAG+_0x119fe3(0x168)+_0x307f95+'\x20to\x20API:\x20'+_0x2aea6a[_0x119fe3(0x178)]+(_0x2aea6a[_0x119fe3(0x1a5)]?_0x1027ee[_0x119fe3(0x19c)](_0x1027ee[_0x119fe3(0x15d)],_0x2aea6a['stack']):''));}}async[a132_0x1ddec9(0x169)](){const _0x91aa6e=a132_0x1ddec9,_0x21effb={};_0x21effb[_0x91aa6e(0x162)]=function(_0x1e895a,_0x567ecd){return _0x1e895a===_0x567ecd;},_0x21effb['NVOKE']=_0x91aa6e(0x155),_0x21effb[_0x91aa6e(0x1a8)]=function(_0x421e64,_0x36a0da){return _0x421e64+_0x36a0da;},_0x21effb['ZIuEm']=_0x91aa6e(0x16b),_0x21effb['RSsHS']=function(_0x265e56,_0x97dc8d){return _0x265e56!==_0x97dc8d;};const _0x2eb901=_0x21effb;if(!this[_0x91aa6e(0x16c)])return 0x0;try{const _0x50ee3e={};_0x50ee3e[_0x91aa6e(0x141)]=this[_0x91aa6e(0x141)],_0x50ee3e['projectName']=this[_0x91aa6e(0x142)],_0x50ee3e[_0x91aa6e(0x13b)]=process[_0x91aa6e(0x160)][_0x91aa6e(0x16a)];const _0x1e55a9=await RequestUtils[_0x91aa6e(0x1a2)](_0x50ee3e);return logger[_0x91aa6e(0x1a4)]('['+TAG+_0x91aa6e(0x14e)+_0x1e55a9),_0x2eb901[_0x91aa6e(0x162)](typeof _0x1e55a9,_0x2eb901[_0x91aa6e(0x14b)])?_0x1e55a9:0x0;}catch(_0x3da895){return logger[_0x91aa6e(0x189)]('['+TAG+_0x91aa6e(0x16e)+_0x3da895[_0x91aa6e(0x178)]+(_0x3da895[_0x91aa6e(0x1a5)]?_0x2eb901[_0x91aa6e(0x1a8)](_0x2eb901[_0x91aa6e(0x13a)],_0x3da895['stack']):'')),_0x2eb901[_0x91aa6e(0x18c)](this[_0x91aa6e(0x133)][_0x91aa6e(0x152)],undefined)?this[_0x91aa6e(0x133)][_0x91aa6e(0x152)]:0x0;}}async[a132_0x1ddec9(0x167)](){const _0x8d9c19=a132_0x1ddec9,_0x2c7c6c={};_0x2c7c6c[_0x8d9c19(0x182)]=function(_0x243c89,_0x22b367){return _0x243c89!==_0x22b367;},_0x2c7c6c[_0x8d9c19(0x16f)]=function(_0x40a507,_0x3d8dd0){return _0x40a507+_0x3d8dd0;},_0x2c7c6c['RXWIu']=_0x8d9c19(0x16b);const _0x306319=_0x2c7c6c;if(!this['isCIMode'])return;try{const _0x4dc9e7=await this['_fetchAPIFailedCount']();_0x306319[_0x8d9c19(0x182)](_0x4dc9e7,this[_0x8d9c19(0x133)][_0x8d9c19(0x152)])&&(logger['debug']('['+TAG+_0x8d9c19(0x176)+_0x4dc9e7+_0x8d9c19(0x1b4)+this[_0x8d9c19(0x133)][_0x8d9c19(0x152)]+')'),this[_0x8d9c19(0x133)][_0x8d9c19(0x152)]=_0x4dc9e7);}catch(_0x3841ca){logger[_0x8d9c19(0x189)]('['+TAG+'_CI]\x20Error\x20during\x20polling\x20logic:\x20'+_0x3841ca[_0x8d9c19(0x178)]+(_0x3841ca[_0x8d9c19(0x1a5)]?_0x306319['OdUyZ'](_0x306319[_0x8d9c19(0x18b)],_0x3841ca['stack']):''));}}async[a132_0x1ddec9(0x140)](){const _0x51474b=a132_0x1ddec9,_0x4154d6={'gRRGT':function(_0x47f4cb,_0x4ca4a5,_0x1ddc84){return _0x47f4cb(_0x4ca4a5,_0x1ddc84);}};this[_0x51474b(0x1aa)]&&this[_0x51474b(0x191)](),this[_0x51474b(0x16c)]&&(await this['_pollFailedTests'](),this[_0x51474b(0x1aa)]=_0x4154d6[_0x51474b(0x13c)](setInterval,async()=>{const _0x34468a=_0x51474b;await this[_0x34468a(0x167)]();},POLLING_INTERVAL),logger[_0x51474b(0x1a4)]('['+TAG+'_CI]\x20Polling\x20started\x20with\x20interval:\x20'+POLLING_INTERVAL+_0x51474b(0x15c)));}['stopPolling'](){const _0x3a2cf9=a132_0x1ddec9,_0x36d538={'cSJWI':function(_0x3776c1,_0x22e493){return _0x3776c1(_0x22e493);}};this[_0x3a2cf9(0x1aa)]&&(_0x36d538['cSJWI'](clearInterval,this[_0x3a2cf9(0x1aa)]),this[_0x3a2cf9(0x1aa)]=null,logger[_0x3a2cf9(0x1a4)]('['+TAG+_0x3a2cf9(0x17e)));}async['shouldFailFast'](){const _0x35cb8b=a132_0x1ddec9,_0x499413={};_0x499413[_0x35cb8b(0x1a7)]=function(_0x1612f1,_0x4773ee){return _0x1612f1===_0x4773ee;},_0x499413[_0x35cb8b(0x1ae)]=function(_0x4dbeb0,_0x36ec4f){return _0x4dbeb0===_0x36ec4f;},_0x499413[_0x35cb8b(0x14f)]=function(_0x50bb1a,_0x1e8e4a){return _0x50bb1a<=_0x1e8e4a;},_0x499413[_0x35cb8b(0x134)]=function(_0x150559,_0x4f939b){return _0x150559+_0x4f939b;},_0x499413['QwapJ']=_0x35cb8b(0x16b),_0x499413['QLpPC']=function(_0x4ec775,_0x3b0df4){return _0x4ec775!==_0x3b0df4;},_0x499413[_0x35cb8b(0x144)]=function(_0x428fec,_0x47a3e6){return _0x428fec>=_0x47a3e6;},_0x499413[_0x35cb8b(0x13d)]=function(_0x23b94d,_0x52628d){return _0x23b94d+_0x52628d;},_0x499413['YeIJW']=function(_0x350371,_0x53ebc7){return _0x350371+_0x53ebc7;},_0x499413[_0x35cb8b(0x15b)]=function(_0x2490f2,_0x40cb82){return _0x2490f2>=_0x40cb82;};const _0x25d7ad=_0x499413,{failureThresholdCount:_0x40b916}=this[_0x35cb8b(0x195)];if(_0x25d7ad[_0x35cb8b(0x1a7)](_0x40b916,null)||_0x25d7ad[_0x35cb8b(0x1ae)](_0x40b916,undefined)||_0x25d7ad[_0x35cb8b(0x14f)](_0x40b916,0x0))return logger[_0x35cb8b(0x1a4)]('['+TAG+_0x35cb8b(0x165)),![];if(this[_0x35cb8b(0x16c)]){try{if(fs[_0x35cb8b(0x164)](this[_0x35cb8b(0x1b1)]))return logger[_0x35cb8b(0x1a4)]('['+TAG+_0x35cb8b(0x1a6)),!this[_0x35cb8b(0x133)][_0x35cb8b(0x1b9)]&&(this[_0x35cb8b(0x133)][_0x35cb8b(0x1b9)]=!![]),this[_0x35cb8b(0x191)](),!![];}catch(_0x2854ad){logger[_0x35cb8b(0x189)]('['+TAG+_0x35cb8b(0x187)+_0x2854ad[_0x35cb8b(0x178)]+(_0x2854ad[_0x35cb8b(0x1a5)]?_0x25d7ad['NiSdz'](_0x25d7ad[_0x35cb8b(0x159)],_0x2854ad[_0x35cb8b(0x1a5)]):''));}const _0x245238=_0x25d7ad['QLpPC'](this[_0x35cb8b(0x133)][_0x35cb8b(0x152)],undefined)?this['state'][_0x35cb8b(0x152)]:0x0;if(_0x25d7ad[_0x35cb8b(0x144)](_0x245238,_0x40b916)){logger['info']('['+TAG+_0x35cb8b(0x180)+_0x245238+_0x35cb8b(0x179)+_0x40b916+'.');try{fs[_0x35cb8b(0x1b2)](this[_0x35cb8b(0x1b1)],new Date()[_0x35cb8b(0x17c)]()),logger[_0x35cb8b(0x1a4)]('['+TAG+'_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20'+this['failFastActiveMarkerPath']),this[_0x35cb8b(0x133)]['failFastActive']=!![];}catch(_0x1485d4){logger['error']('['+TAG+'_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20'+_0x1485d4[_0x35cb8b(0x178)]+(_0x1485d4['stack']?_0x25d7ad['LTafz'](_0x25d7ad[_0x35cb8b(0x159)],_0x1485d4[_0x35cb8b(0x1a5)]):''));}return this[_0x35cb8b(0x191)](),!![];}}else{let _0x254fce;try{_0x254fce=await this[_0x35cb8b(0x171)][_0x35cb8b(0x148)]();if(!_0x254fce)return logger[_0x35cb8b(0x147)]('['+TAG+_0x35cb8b(0x194)),![];}catch(_0xfa9064){return logger['error']('['+TAG+_0x35cb8b(0x14a)+_0xfa9064[_0x35cb8b(0x178)]+(_0xfa9064['stack']?_0x25d7ad[_0x35cb8b(0x1b8)](_0x25d7ad['QwapJ'],_0xfa9064[_0x35cb8b(0x1a5)]):'')),![];}this['state']={...this[_0x35cb8b(0x188)](),..._0x254fce,'uniqueFailedTests':new Set(_0x254fce[_0x35cb8b(0x17a)]||[])};if(this[_0x35cb8b(0x133)][_0x35cb8b(0x1b9)])return logger[_0x35cb8b(0x1a4)]('['+TAG+_0x35cb8b(0x1ac)),!![];const _0x37b1f7=this['state'][_0x35cb8b(0x17a)],_0x1189f5=_0x37b1f7['size'];if(_0x25d7ad[_0x35cb8b(0x15b)](_0x1189f5,_0x40b916)){try{logger[_0x35cb8b(0x137)]('['+TAG+'_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x1189f5+_0x35cb8b(0x179)+_0x40b916+'.'),this[_0x35cb8b(0x133)][_0x35cb8b(0x1b9)]=!![];}catch(_0x24cc05){logger[_0x35cb8b(0x189)]('['+TAG+_0x35cb8b(0x163)+_0x24cc05[_0x35cb8b(0x178)]+(_0x24cc05[_0x35cb8b(0x1a5)]?_0x25d7ad[_0x35cb8b(0x1b8)](_0x25d7ad[_0x35cb8b(0x159)],_0x24cc05['stack']):''));}return!![];}}return![];}async[a132_0x1ddec9(0x149)](){const _0x4461eb=a132_0x1ddec9,_0x4227c3={};_0x4227c3[_0x4461eb(0x136)]=function(_0x4dc422,_0x425e4a){return _0x4dc422+_0x425e4a;},_0x4227c3[_0x4461eb(0x17b)]=_0x4461eb(0x16b);const _0x5cbab6=_0x4227c3;this[_0x4461eb(0x191)]();if(this[_0x4461eb(0x16c)])logger[_0x4461eb(0x1a4)]('['+TAG+'_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.');else try{const _0x4d1a0d={...this[_0x4461eb(0x133)],'uniqueFailedTests':Array[_0x4461eb(0x186)](this[_0x4461eb(0x133)][_0x4461eb(0x17a)]||new Set())};await this[_0x4461eb(0x171)][_0x4461eb(0x1af)](_0x4d1a0d),logger[_0x4461eb(0x1a4)]('['+TAG+_0x4461eb(0x173));}catch(_0xd8c57){logger['error']('['+TAG+'_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20'+_0xd8c57[_0x4461eb(0x178)]+(_0xd8c57[_0x4461eb(0x1a5)]?_0x5cbab6[_0x4461eb(0x136)](_0x5cbab6[_0x4461eb(0x17b)],_0xd8c57[_0x4461eb(0x1a5)]):''));}}}module[a132_0x1ddec9(0x14c)]=FailFastManager;
|
|
1
|
+
const a132_0x1a80ee=a132_0x2002;(function(_0x22743b,_0x3c592b){const _0x8ec74d=a132_0x2002,_0x39e7e5=_0x22743b();while(!![]){try{const _0x4966b6=parseInt(_0x8ec74d(0x20d))/0x1+-parseInt(_0x8ec74d(0x1fe))/0x2+parseInt(_0x8ec74d(0x1e0))/0x3+parseInt(_0x8ec74d(0x1f8))/0x4+parseInt(_0x8ec74d(0x1b8))/0x5+-parseInt(_0x8ec74d(0x1de))/0x6*(-parseInt(_0x8ec74d(0x213))/0x7)+-parseInt(_0x8ec74d(0x18d))/0x8;if(_0x4966b6===_0x3c592b)break;else _0x39e7e5['push'](_0x39e7e5['shift']());}catch(_0x1b6f32){_0x39e7e5['push'](_0x39e7e5['shift']());}}}(a132_0x247b,0x3b6c7));const fs=require('fs'),path=require(a132_0x1a80ee(0x1a6)),FileHelper=require(a132_0x1a80ee(0x1b5)),RequestUtils=require('./requestUtils'),logger=require(a132_0x1a80ee(0x209))['winstonLogger'],POLLING_INTERVAL=0x2710,TAG=a132_0x1a80ee(0x1d9);class FailFastManager{constructor(_0x2bd8eb,_0x2108b7,_0x2c3f3d){const _0x70d7b1=a132_0x1a80ee,_0x4bdcbb={};_0x4bdcbb[_0x70d7b1(0x1d0)]=function(_0x1e3f31,_0x2d10b0){return _0x1e3f31+_0x2d10b0;},_0x4bdcbb[_0x70d7b1(0x20c)]='\x0aStack:\x20',_0x4bdcbb[_0x70d7b1(0x195)]=function(_0xfb076f,_0x2b3c20){return _0xfb076f||_0x2b3c20;},_0x4bdcbb[_0x70d7b1(0x1f4)]=_0x70d7b1(0x1d2),_0x4bdcbb[_0x70d7b1(0x211)]=_0x70d7b1(0x1a8),_0x4bdcbb[_0x70d7b1(0x1d8)]=_0x70d7b1(0x1c8);const _0x25d9c7=_0x4bdcbb;this[_0x70d7b1(0x1c6)]=_0x25d9c7[_0x70d7b1(0x195)](_0x2bd8eb,{}),this[_0x70d7b1(0x1ad)]=_0x2108b7,this[_0x70d7b1(0x1d7)]=_0x2c3f3d,this[_0x70d7b1(0x1ae)]=!!(process[_0x70d7b1(0x1b9)][_0x70d7b1(0x1b3)]&&process[_0x70d7b1(0x1b9)][_0x70d7b1(0x1a9)]&&process[_0x70d7b1(0x1b9)]['BROWSERSTACK_TOTAL_NODE_COUNT']);const _0x2b354a=this[_0x70d7b1(0x1c6)][_0x70d7b1(0x1dc)];this['stateFilePath']=path[_0x70d7b1(0x1e7)](_0x2b354a,_0x25d9c7[_0x70d7b1(0x1f4)]),this[_0x70d7b1(0x1a5)]=path[_0x70d7b1(0x1e7)](_0x2b354a,_0x25d9c7[_0x70d7b1(0x211)]),this['failFastActiveMarkerPath']=path[_0x70d7b1(0x1e7)](_0x2b354a,_0x25d9c7[_0x70d7b1(0x1d8)]),this[_0x70d7b1(0x1fc)]=new FileHelper(this['failFastConfig'],this[_0x70d7b1(0x194)],this[_0x70d7b1(0x1a5)],this['_getDefaultState']()),this[_0x70d7b1(0x19a)]=this[_0x70d7b1(0x1f6)](),this[_0x70d7b1(0x1d3)]=null,this['isCIMode']&&(this['reportedFailuresToAPI']=new Set()),this[_0x70d7b1(0x1f2)]()[_0x70d7b1(0x207)](_0x53a83e=>{const _0xc88c66=_0x70d7b1;logger[_0xc88c66(0x1c3)]('['+TAG+_0xc88c66(0x1e2)+_0x53a83e['message']+(_0x53a83e['stack']?_0x25d9c7[_0xc88c66(0x1d0)](_0x25d9c7[_0xc88c66(0x20c)],_0x53a83e['stack']):'')),this[_0xc88c66(0x19a)]=this[_0xc88c66(0x1f6)]();}),this['isCIMode']&&this[_0x70d7b1(0x1b4)](),logger[_0x70d7b1(0x1b0)]('['+TAG+_0x70d7b1(0x1a7)+this['failFastConfig'][_0x70d7b1(0x1e9)]+_0x70d7b1(0x1ff)+this['isCIMode']);}[a132_0x1a80ee(0x1f6)](){const _0x1978aa={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x1978aa;}async[a132_0x1a80ee(0x1f2)](){const _0x3c2156=a132_0x1a80ee,_0x1a6da4={};_0x1a6da4[_0x3c2156(0x1fa)]=function(_0x56fb77,_0x35a691){return _0x56fb77+_0x35a691;},_0x1a6da4[_0x3c2156(0x1c0)]=_0x3c2156(0x196);const _0x4cbec0=_0x1a6da4;if(this[_0x3c2156(0x1ae)])try{fs[_0x3c2156(0x202)](this['failFastActiveMarkerPath'])&&(this[_0x3c2156(0x19a)][_0x3c2156(0x1cf)]=!![],logger[_0x3c2156(0x1b0)]('['+TAG+_0x3c2156(0x1c2)));}catch(_0x1b8812){logger[_0x3c2156(0x1c3)]('['+TAG+_0x3c2156(0x19d)+_0x1b8812[_0x3c2156(0x206)]+(_0x1b8812[_0x3c2156(0x201)]?_0x4cbec0[_0x3c2156(0x1fa)](_0x4cbec0[_0x3c2156(0x1c0)],_0x1b8812[_0x3c2156(0x201)]):''));}else try{const _0x2e5f5d=await this['fileHelper']['readState']();if(_0x2e5f5d)this[_0x3c2156(0x19a)]={...this['_getDefaultState'](),..._0x2e5f5d,'uniqueFailedTests':new Set(_0x2e5f5d[_0x3c2156(0x197)]||[])},logger[_0x3c2156(0x1b0)]('['+TAG+_0x3c2156(0x20a));else{logger['debug']('['+TAG+_0x3c2156(0x1e6));const _0x23f1c3=this[_0x3c2156(0x1f6)](),_0x1c87c2={..._0x23f1c3,'uniqueFailedTests':Array[_0x3c2156(0x205)](_0x23f1c3[_0x3c2156(0x197)])};await this['fileHelper'][_0x3c2156(0x1f1)](_0x1c87c2),this['state']=_0x23f1c3;}}catch(_0x3e9140){logger[_0x3c2156(0x1b0)]('['+TAG+_0x3c2156(0x1cb)+_0x3e9140[_0x3c2156(0x206)]+(_0x3e9140['stack']?_0x4cbec0[_0x3c2156(0x1fa)](_0x4cbec0[_0x3c2156(0x1c0)],_0x3e9140[_0x3c2156(0x201)]):'')),this[_0x3c2156(0x19a)]=this[_0x3c2156(0x1f6)]();}}async[a132_0x1a80ee(0x18f)](_0x343b5e,_0x5adc94){const _0x45b8b4=a132_0x1a80ee,_0x4b0054={};_0x4b0054[_0x45b8b4(0x1d5)]=function(_0x55476c,_0x585ab6){return _0x55476c>_0x585ab6;},_0x4b0054[_0x45b8b4(0x1c5)]=function(_0x529af8,_0x2e445e){return _0x529af8>_0x2e445e;},_0x4b0054[_0x45b8b4(0x1bc)]=_0x45b8b4(0x20e),_0x4b0054['obunS']=_0x45b8b4(0x1d4),_0x4b0054['xFIeF']=function(_0x18113c,_0x2036ce){return _0x18113c+_0x2036ce;},_0x4b0054['NOkbE']=_0x45b8b4(0x196),_0x4b0054[_0x45b8b4(0x190)]=function(_0x5b2a39,_0x226f5d){return _0x5b2a39||_0x226f5d;};const _0x4d4540=_0x4b0054;if(this[_0x45b8b4(0x1ae)])this[_0x45b8b4(0x19a)][_0x45b8b4(0x204)]+=0x1,_0x5adc94&&_0x4d4540['wuyPE'](_0x5adc94[_0x45b8b4(0x1e4)],0x0)&&(!this['reportedFailuresToAPI'][_0x45b8b4(0x1c4)](_0x343b5e)&&(await this[_0x45b8b4(0x1f9)](_0x343b5e),this[_0x45b8b4(0x1c7)][_0x45b8b4(0x1f3)](_0x343b5e)));else try{const _0x1b0457={'fullName':_0x343b5e,'status':_0x5adc94&&_0x4d4540[_0x45b8b4(0x1c5)](_0x5adc94[_0x45b8b4(0x1e4)],0x0)?_0x4d4540['WcRMN']:_0x4d4540['obunS']},_0x4ee4ea=await this[_0x45b8b4(0x1fc)][_0x45b8b4(0x18e)](_0x1b0457);this[_0x45b8b4(0x19a)]={...this[_0x45b8b4(0x1f6)](),..._0x4ee4ea['newState'],'uniqueFailedTests':new Set(_0x4ee4ea[_0x45b8b4(0x1da)][_0x45b8b4(0x197)]||[])};}catch(_0x5982a9){logger[_0x45b8b4(0x1c3)]('['+TAG+_0x45b8b4(0x1a0)+_0x5982a9[_0x45b8b4(0x206)]+(_0x5982a9[_0x45b8b4(0x201)]?_0x4d4540[_0x45b8b4(0x19b)](_0x4d4540[_0x45b8b4(0x1ac)],_0x5982a9[_0x45b8b4(0x201)]):''));try{const _0x12313d=await this['fileHelper']['readState']();this[_0x45b8b4(0x19a)]={...this[_0x45b8b4(0x1f6)](),..._0x4d4540[_0x45b8b4(0x190)](_0x12313d,{}),'uniqueFailedTests':new Set(_0x12313d?_0x12313d[_0x45b8b4(0x197)]||[]:[])},logger['debug']('['+TAG+_0x45b8b4(0x19e));}catch(_0x2fabfd){logger[_0x45b8b4(0x1c3)]('['+TAG+_0x45b8b4(0x19c)+_0x2fabfd['message']+(_0x2fabfd[_0x45b8b4(0x201)]?_0x4d4540[_0x45b8b4(0x19b)](_0x4d4540[_0x45b8b4(0x1ac)],_0x2fabfd['stack']):'')),this[_0x45b8b4(0x19a)]=this['_getDefaultState']();}}}async[a132_0x1a80ee(0x1f9)](_0x4a0299){const _0x362463=a132_0x1a80ee,_0x3f4bd0={};_0x3f4bd0['jAhTi']=function(_0x4c8a05,_0x160cc7){return _0x4c8a05+_0x160cc7;},_0x3f4bd0['jBZhN']=_0x362463(0x196);const _0x1946d7=_0x3f4bd0;if(!this['isCIMode']||!_0x4a0299)return;try{logger[_0x362463(0x1b0)]('['+TAG+'_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20'+_0x4a0299);const _0x22c67b={};_0x22c67b[_0x362463(0x1ad)]=this[_0x362463(0x1ad)],_0x22c67b[_0x362463(0x1d7)]=this[_0x362463(0x1d7)],_0x22c67b[_0x362463(0x1a1)]=[_0x4a0299],_0x22c67b[_0x362463(0x20f)]=process['env'][_0x362463(0x1b3)],await RequestUtils[_0x362463(0x1cd)](_0x22c67b);}catch(_0x2d7619){logger['error']('['+TAG+'_CI]\x20Error\x20sending\x20failed\x20test\x20'+_0x4a0299+_0x362463(0x193)+_0x2d7619['message']+(_0x2d7619[_0x362463(0x201)]?_0x1946d7[_0x362463(0x1b1)](_0x1946d7[_0x362463(0x1e3)],_0x2d7619[_0x362463(0x201)]):''));}}async[a132_0x1a80ee(0x192)](){const _0x3ec539=a132_0x1a80ee,_0x59d774={};_0x59d774[_0x3ec539(0x199)]=function(_0xa3303b,_0x47ff6b){return _0xa3303b===_0x47ff6b;},_0x59d774['yDVsa']='number',_0x59d774[_0x3ec539(0x1b7)]=function(_0x24fe99,_0x2d5936){return _0x24fe99+_0x2d5936;},_0x59d774[_0x3ec539(0x191)]=_0x3ec539(0x196),_0x59d774[_0x3ec539(0x1a4)]=function(_0x91f54e,_0xd37111){return _0x91f54e!==_0xd37111;};const _0x4d7bc4=_0x59d774;if(!this[_0x3ec539(0x1ae)])return 0x0;try{const _0x12e130={};_0x12e130[_0x3ec539(0x1ad)]=this[_0x3ec539(0x1ad)],_0x12e130[_0x3ec539(0x1d7)]=this[_0x3ec539(0x1d7)],_0x12e130[_0x3ec539(0x20f)]=process[_0x3ec539(0x1b9)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];const _0x1086f7=await RequestUtils[_0x3ec539(0x1fd)](_0x12e130);return logger['debug']('['+TAG+_0x3ec539(0x1ed)+_0x1086f7),_0x4d7bc4[_0x3ec539(0x199)](typeof _0x1086f7,_0x4d7bc4[_0x3ec539(0x1c9)])?_0x1086f7:0x0;}catch(_0x4f3966){return logger[_0x3ec539(0x1c3)]('['+TAG+_0x3ec539(0x198)+_0x4f3966[_0x3ec539(0x206)]+(_0x4f3966[_0x3ec539(0x201)]?_0x4d7bc4['HFloa'](_0x4d7bc4[_0x3ec539(0x191)],_0x4f3966[_0x3ec539(0x201)]):'')),_0x4d7bc4['DrhEK'](this[_0x3ec539(0x19a)][_0x3ec539(0x1a3)],undefined)?this['state'][_0x3ec539(0x1a3)]:0x0;}}async[a132_0x1a80ee(0x1cc)](){const _0x2d3747=a132_0x1a80ee,_0xc06c51={};_0xc06c51[_0x2d3747(0x1db)]=function(_0xa17af3,_0x3c55d4){return _0xa17af3!==_0x3c55d4;},_0xc06c51['dMEYp']=function(_0x4229dd,_0x4964c4){return _0x4229dd+_0x4964c4;},_0xc06c51['RuWeI']=_0x2d3747(0x196);const _0xda05cc=_0xc06c51;if(!this[_0x2d3747(0x1ae)])return;try{const _0x422f54=await this[_0x2d3747(0x192)]();_0xda05cc['lyypi'](_0x422f54,this[_0x2d3747(0x19a)]['lastAPIFailedCount'])&&(logger[_0x2d3747(0x1b0)]('['+TAG+_0x2d3747(0x1ea)+_0x422f54+_0x2d3747(0x1d6)+this['state'][_0x2d3747(0x1a3)]+')'),this[_0x2d3747(0x19a)][_0x2d3747(0x1a3)]=_0x422f54);}catch(_0x1f9ceb){logger['error']('['+TAG+_0x2d3747(0x1f7)+_0x1f9ceb[_0x2d3747(0x206)]+(_0x1f9ceb[_0x2d3747(0x201)]?_0xda05cc['dMEYp'](_0xda05cc[_0x2d3747(0x1ef)],_0x1f9ceb['stack']):''));}}async[a132_0x1a80ee(0x1b4)](){const _0xf7d369=a132_0x1a80ee,_0x16fbe1={'VDaYS':function(_0x6335d9,_0x4f4fc2,_0x2fb04c){return _0x6335d9(_0x4f4fc2,_0x2fb04c);}};this['pollingInterval']&&this[_0xf7d369(0x1ba)](),this[_0xf7d369(0x1ae)]&&(await this['_pollFailedTests'](),this['pollingInterval']=_0x16fbe1[_0xf7d369(0x1bd)](setInterval,async()=>{const _0x5197b8=_0xf7d369;await this[_0x5197b8(0x1cc)]();},POLLING_INTERVAL),logger['debug']('['+TAG+'_CI]\x20Polling\x20started\x20with\x20interval:\x20'+POLLING_INTERVAL+_0xf7d369(0x20b)));}[a132_0x1a80ee(0x1ba)](){const _0x58dcd8=a132_0x1a80ee,_0x2a28f6={'tbzrQ':function(_0x52e763,_0x5d1e4b){return _0x52e763(_0x5d1e4b);}};this[_0x58dcd8(0x1d3)]&&(_0x2a28f6[_0x58dcd8(0x1eb)](clearInterval,this[_0x58dcd8(0x1d3)]),this[_0x58dcd8(0x1d3)]=null,logger[_0x58dcd8(0x1b0)]('['+TAG+_0x58dcd8(0x1e1)));}async['shouldFailFast'](){const _0x3921ae=a132_0x1a80ee,_0x3cddf1={};_0x3cddf1['gEljO']=function(_0xfefaa2,_0x3f1652){return _0xfefaa2===_0x3f1652;},_0x3cddf1['DJqUV']=function(_0x5e610b,_0x31e389){return _0x5e610b<=_0x31e389;},_0x3cddf1[_0x3921ae(0x1e5)]=function(_0x225595,_0x47c5dd){return _0x225595+_0x47c5dd;},_0x3cddf1[_0x3921ae(0x208)]=_0x3921ae(0x196),_0x3cddf1[_0x3921ae(0x203)]=function(_0x2487da,_0x5638de){return _0x2487da!==_0x5638de;},_0x3cddf1[_0x3921ae(0x1ee)]=function(_0x113c66,_0x1f9905){return _0x113c66>=_0x1f9905;},_0x3cddf1['tKPYh']=function(_0x5381da,_0x22bd10){return _0x5381da+_0x22bd10;},_0x3cddf1['yOirn']=function(_0x5aac7e,_0x1a410d){return _0x5aac7e>=_0x1a410d;},_0x3cddf1[_0x3921ae(0x1f5)]=function(_0x2c25f1,_0x5afd22){return _0x2c25f1+_0x5afd22;};const _0x50178d=_0x3cddf1,{failureThresholdCount:_0x5f2b42}=this[_0x3921ae(0x1c6)];if(_0x50178d[_0x3921ae(0x1ce)](_0x5f2b42,null)||_0x50178d[_0x3921ae(0x1ce)](_0x5f2b42,undefined)||_0x50178d[_0x3921ae(0x1ab)](_0x5f2b42,0x0))return logger[_0x3921ae(0x1b0)]('['+TAG+']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.'),![];if(this['isCIMode']){try{if(fs[_0x3921ae(0x202)](this[_0x3921ae(0x1a2)]))return logger[_0x3921ae(0x1b0)]('['+TAG+_0x3921ae(0x1b2)),!this[_0x3921ae(0x19a)][_0x3921ae(0x1cf)]&&(this[_0x3921ae(0x19a)][_0x3921ae(0x1cf)]=!![]),this[_0x3921ae(0x1ba)](),!![];}catch(_0x523181){logger['error']('['+TAG+_0x3921ae(0x19d)+_0x523181['message']+(_0x523181[_0x3921ae(0x201)]?_0x50178d[_0x3921ae(0x1e5)](_0x50178d[_0x3921ae(0x208)],_0x523181[_0x3921ae(0x201)]):''));}const _0x2635c5=_0x50178d[_0x3921ae(0x203)](this[_0x3921ae(0x19a)][_0x3921ae(0x1a3)],undefined)?this[_0x3921ae(0x19a)][_0x3921ae(0x1a3)]:0x0;if(_0x50178d[_0x3921ae(0x1ee)](_0x2635c5,_0x5f2b42)){logger[_0x3921ae(0x1ca)]('['+TAG+_0x3921ae(0x1df)+_0x2635c5+_0x3921ae(0x1d1)+_0x5f2b42+'.');try{fs[_0x3921ae(0x1dd)](this['failFastActiveMarkerPath'],new Date()[_0x3921ae(0x1fb)]()),logger['debug']('['+TAG+_0x3921ae(0x212)+this[_0x3921ae(0x1a2)]),this[_0x3921ae(0x19a)][_0x3921ae(0x1cf)]=!![];}catch(_0x41e784){logger['error']('['+TAG+_0x3921ae(0x1b6)+_0x41e784[_0x3921ae(0x206)]+(_0x41e784[_0x3921ae(0x201)]?_0x50178d[_0x3921ae(0x1e5)](_0x50178d[_0x3921ae(0x208)],_0x41e784[_0x3921ae(0x201)]):''));}return this[_0x3921ae(0x1ba)](),!![];}}else{let _0x26b630;try{_0x26b630=await this[_0x3921ae(0x1fc)][_0x3921ae(0x1be)]();if(!_0x26b630)return logger[_0x3921ae(0x19f)]('['+TAG+_0x3921ae(0x1aa)),![];}catch(_0x5f4e6a){return logger[_0x3921ae(0x1c3)]('['+TAG+'_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20'+_0x5f4e6a[_0x3921ae(0x206)]+(_0x5f4e6a[_0x3921ae(0x201)]?_0x50178d[_0x3921ae(0x1ec)](_0x50178d[_0x3921ae(0x208)],_0x5f4e6a['stack']):'')),![];}this[_0x3921ae(0x19a)]={...this[_0x3921ae(0x1f6)](),..._0x26b630,'uniqueFailedTests':new Set(_0x26b630[_0x3921ae(0x197)]||[])};if(this[_0x3921ae(0x19a)][_0x3921ae(0x1cf)])return logger['debug']('['+TAG+_0x3921ae(0x1af)),!![];const _0x1a4257=this['state']['uniqueFailedTests'],_0x4a0ff0=_0x1a4257['size'];if(_0x50178d[_0x3921ae(0x1f0)](_0x4a0ff0,_0x5f2b42)){try{logger[_0x3921ae(0x1ca)]('['+TAG+_0x3921ae(0x214)+_0x4a0ff0+_0x3921ae(0x1d1)+_0x5f2b42+'.'),this[_0x3921ae(0x19a)]['failFastActive']=!![];}catch(_0x4fff05){logger[_0x3921ae(0x1c3)]('['+TAG+'_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20'+_0x4fff05[_0x3921ae(0x206)]+(_0x4fff05[_0x3921ae(0x201)]?_0x50178d['WJHLu'](_0x50178d[_0x3921ae(0x208)],_0x4fff05[_0x3921ae(0x201)]):''));}return!![];}}return![];}async['cleanup'](){const _0x111a72=a132_0x1a80ee,_0x122225={};_0x122225[_0x111a72(0x210)]=function(_0x59e289,_0x2c35e6){return _0x59e289+_0x2c35e6;},_0x122225[_0x111a72(0x1e8)]=_0x111a72(0x196);const _0x48c700=_0x122225;this[_0x111a72(0x1ba)]();if(this[_0x111a72(0x1ae)])logger['debug']('['+TAG+_0x111a72(0x200));else try{const _0x461b82={...this['state'],'uniqueFailedTests':Array[_0x111a72(0x205)](this[_0x111a72(0x19a)][_0x111a72(0x197)]||new Set())};await this[_0x111a72(0x1fc)][_0x111a72(0x1f1)](_0x461b82),logger['debug']('['+TAG+_0x111a72(0x1c1));}catch(_0x3b3a47){logger[_0x111a72(0x1c3)]('['+TAG+_0x111a72(0x1bb)+_0x3b3a47['message']+(_0x3b3a47[_0x111a72(0x201)]?_0x48c700[_0x111a72(0x210)](_0x48c700['WLFJp'],_0x3b3a47['stack']):''));}}}function a132_0x2002(_0x4f64cb,_0x466ebf){const _0x247ba2=a132_0x247b();return a132_0x2002=function(_0x2002c0,_0xf13f1){_0x2002c0=_0x2002c0-0x18d;let _0x5b163f=_0x247ba2[_0x2002c0];return _0x5b163f;},a132_0x2002(_0x4f64cb,_0x466ebf);}function a132_0x247b(){const _0x496e2d=['jBZhN','length','DUCNc','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','join','WLFJp','failureThresholdCount','_CI]\x20API\x20failed\x20count\x20updated:\x20','tbzrQ','tKPYh','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','AhvLL','RuWeI','yOirn','writeState','_initializeStateFromFile','add','SMSQZ','WJHLu','_getDefaultState','_CI]\x20Error\x20during\x20polling\x20logic:\x20','1097644AWtMYE','_sendFailedTestsToAPI','fjigj','toISOString','fileHelper','getFailedTestsCount','261508xOwAZX',',\x20CI\x20Mode:\x20','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','stack','existsSync','ZBCfu','totalTests','from','message','catch','sxksk','../logger','_Local]\x20State\x20initialized\x20from\x20file.','ms.','SUDfo','177392MqCuAA','failed','buildRunIdentifier','OQWlo','nqfxY','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','574301LEHYlg','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','7880976AjxMrH','recordTestResult','onTestDone','UbWzf','zEGpS','_fetchAPIFailedCount','\x20to\x20API:\x20','stateFilePath','kuGqt','\x0aStack:\x20','uniqueFailedTests','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','UoNkW','state','xFIeF','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','warn','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','failedTests','failFastActiveMarkerPath','lastAPIFailedCount','DrhEK','lockFilePath','path',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','failFastState.lock','BROWSERSTACK_NODE_INDEX','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','DJqUV','NOkbE','buildName','isCIMode','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','debug','jAhTi','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','BROWSERSTACK_BUILD_RUN_IDENTIFIER','startPolling','./fileHelper','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','HFloa','2400950PilSGd','env','stopPolling','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','WcRMN','VDaYS','readState','exports','SVjjj','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','error','has','uKNyo','failFastConfig','reportedFailuresToAPI','failFast.active','yDVsa','info','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','_pollFailedTests','putFailedTests','gEljO','failFastActive','losUH',',\x20threshold:\x20','failFastState.json','pollingInterval','passed','wuyPE','\x20(was\x20','projectName','dfNIj','FailFastManager','newState','lyypi','workingDir','writeFileSync','6yfcqvk','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','1035717jFtiKa',']\x20Polling\x20stopped.',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20'];a132_0x247b=function(){return _0x496e2d;};return a132_0x247b();}module[a132_0x1a80ee(0x1bf)]=FailFastManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a133_0x32a811=a133_0x44d0;(function(_0x401ff8,_0x3bb736){const _0x4b1b98=a133_0x44d0,_0x222000=_0x401ff8();while(!![]){try{const _0x5eef90=-parseInt(_0x4b1b98(0x10c))/0x1+parseInt(_0x4b1b98(0xee))/0x2+parseInt(_0x4b1b98(0xf1))/0x3*(parseInt(_0x4b1b98(0x115))/0x4)+parseInt(_0x4b1b98(0x116))/0x5*(-parseInt(_0x4b1b98(0x10f))/0x6)+-parseInt(_0x4b1b98(0xfb))/0x7+-parseInt(_0x4b1b98(0x108))/0x8*(parseInt(_0x4b1b98(0xe2))/0x9)+parseInt(_0x4b1b98(0x119))/0xa*(parseInt(_0x4b1b98(0xe4))/0xb);if(_0x5eef90===_0x3bb736)break;else _0x222000['push'](_0x222000['shift']());}catch(_0x4e5d7a){_0x222000['push'](_0x222000['shift']());}}}(a133_0xb6ef,0x39218));const fs=require('fs'),logger=require(a133_0x32a811(0x107))[a133_0x32a811(0x102)],TAG='FailFastFileHelper';class FileHelper{constructor(_0x12b59f,_0x1add71,_0x13417b,_0x158335){const _0x9c6349=a133_0x32a811,_0x4e0e53={};_0x4e0e53['UGcVa']=_0x9c6349(0xf3),_0x4e0e53['mzvcG']=_0x9c6349(0xef);const _0x4e0376=_0x4e0e53,_0x52207b=_0x4e0376[_0x9c6349(0xfd)][_0x9c6349(0xf5)]('|');let _0x2363e9=0x0;while(!![]){switch(_0x52207b[_0x2363e9++]){case'0':if(!fs[_0x9c6349(0x10d)](this[_0x9c6349(0xf0)]))try{fs['writeFileSync'](this[_0x9c6349(0xf0)],'{}',_0x4e0376['mzvcG']);}catch(_0x4b5d35){logger[_0x9c6349(0xdc)]('['+TAG+_0x9c6349(0x109)+_0x4b5d35['message']+'\x20'+_0x4b5d35[_0x9c6349(0xf8)]);}continue;case'1':this[_0x9c6349(0xf0)]=_0x1add71;continue;case'2':this['defaultState']=_0x158335;continue;case'3':this[_0x9c6349(0xeb)]=_0x13417b;continue;case'4':this[_0x9c6349(0xe3)]=_0x12b59f;continue;}break;}}async[a133_0x32a811(0x114)](){const _0x41a0b3=a133_0x32a811,_0x200dce={};_0x200dce[_0x41a0b3(0xf2)]=function(_0x13a8ea,_0x38207){return _0x13a8ea===_0x38207;},_0x200dce[_0x41a0b3(0xf7)]=_0x41a0b3(0xf4);const _0x119718=_0x200dce;let _0xfecf17;try{return _0xfecf17=fs[_0x41a0b3(0x105)](this['lockFilePath'],'wx'),_0xfecf17;}catch(_0x55519b){if(_0x119718[_0x41a0b3(0xf2)](_0x55519b[_0x41a0b3(0xdd)],_0x119718[_0x41a0b3(0xf7)]))return null;throw _0x55519b;}}async[a133_0x32a811(0x10e)](_0x398c02){const _0x2103af=a133_0x32a811;if(_0x398c02)try{fs[_0x2103af(0x103)](_0x398c02),fs['unlinkSync'](this['lockFilePath']);}catch(_0x4eec4b){logger[_0x2103af(0xdc)]('['+TAG+_0x2103af(0xde)+_0x4eec4b[_0x2103af(0xe9)]+'\x20'+_0x4eec4b['stack']);}}[a133_0x32a811(0xfc)](){const _0x9c5758=a133_0x32a811,_0x43b6ce={};_0x43b6ce[_0x9c5758(0x110)]=_0x9c5758(0xef);const _0x477bfc=_0x43b6ce;try{const _0x398941=fs['readFileSync'](this[_0x9c5758(0xf0)],_0x477bfc['kaChb']);return JSON[_0x9c5758(0xe7)](_0x398941);}catch(_0x1e1c0c){return logger[_0x9c5758(0xdc)]('['+TAG+_0x9c5758(0xdf)+_0x1e1c0c['message']+'\x20'+_0x1e1c0c[_0x9c5758(0xf8)]),null;}}async[a133_0x32a811(0x117)](_0x4daae6){const _0x23de4f=a133_0x32a811,_0x588b99={..._0x4daae6,'uniqueFailedTests':Array[_0x23de4f(0x111)](_0x4daae6['uniqueFailedTests'])?_0x4daae6[_0x23de4f(0x10b)]:Array[_0x23de4f(0xf6)](_0x4daae6[_0x23de4f(0x10b)]||[])};try{fs[_0x23de4f(0xe6)](this[_0x23de4f(0xf0)],JSON[_0x23de4f(0xed)](_0x588b99,null,0x2));}catch(_0x201e4b){logger[_0x23de4f(0xdc)]('['+TAG+_0x23de4f(0xe8)+_0x201e4b[_0x23de4f(0xe9)]+'\x20'+_0x201e4b[_0x23de4f(0xf8)]);throw _0x201e4b;}}async[a133_0x32a811(0xfa)](_0x71a948,_0x492806){const _0x3cf4b8=a133_0x32a811,_0x1981b1={};_0x1981b1[_0x3cf4b8(0xec)]=function(_0x280073,_0x3fda05){return _0x280073!==_0x3fda05;},_0x1981b1['wzqXA']=_0x3cf4b8(0xea),_0x1981b1['GZFIg']=function(_0xe2df50,_0xa2ae){return _0xe2df50===_0xa2ae;},_0x1981b1[_0x3cf4b8(0xe1)]=_0x3cf4b8(0xe5);const _0x299f42=_0x1981b1,_0x4a1b99=await this['acquireLock']();if(!_0x4a1b99)return logger[_0x3cf4b8(0x104)]('['+TAG+_0x3cf4b8(0x100)),{'newState':this[_0x3cf4b8(0xfc)]()||this['defaultState'],'isNewFailure':![]};try{let _0x532022=this[_0x3cf4b8(0xfc)]();!_0x532022&&(_0x532022=JSON[_0x3cf4b8(0xe7)](JSON[_0x3cf4b8(0xed)](this[_0x3cf4b8(0x106)])));if(!_0x532022['uniqueFailedTests']||_0x299f42['csRLZ'](typeof _0x532022[_0x3cf4b8(0x10b)][Symbol['iterator']],_0x299f42['wzqXA']))_0x532022[_0x3cf4b8(0x10b)]=new Set();else Array['isArray'](_0x532022[_0x3cf4b8(0x10b)])&&(_0x532022[_0x3cf4b8(0x10b)]=new Set(_0x532022[_0x3cf4b8(0x10b)]));_0x532022[_0x3cf4b8(0xfe)]=_0x492806;let _0x1d4b7a=![];_0x299f42[_0x3cf4b8(0xff)](_0x71a948['status'],_0x299f42[_0x3cf4b8(0xe1)])&&(_0x532022[_0x3cf4b8(0x101)]+=0x1,!_0x532022[_0x3cf4b8(0x10b)]['has'](_0x71a948[_0x3cf4b8(0x113)])&&(_0x532022[_0x3cf4b8(0x10b)]['add'](_0x71a948[_0x3cf4b8(0x113)]),_0x1d4b7a=!![]));await this[_0x3cf4b8(0x117)](_0x532022);const _0x107a11={};return _0x107a11[_0x3cf4b8(0x10a)]=_0x532022,_0x107a11[_0x3cf4b8(0xe0)]=_0x1d4b7a,_0x107a11;}finally{await this['releaseLock'](_0x4a1b99);}}async[a133_0x32a811(0x118)](_0x458d22){const _0x50ff7a=a133_0x32a811,_0x3efe92=await this[_0x50ff7a(0x114)]();if(!_0x3efe92)return logger[_0x50ff7a(0x104)]('['+TAG+_0x50ff7a(0xf9)),this['readState']()||this[_0x50ff7a(0x106)];try{let _0x5c76e9=this['readState']();return!_0x5c76e9&&(_0x5c76e9=JSON['parse'](JSON[_0x50ff7a(0xed)](this[_0x50ff7a(0x106)]))),_0x5c76e9[_0x50ff7a(0x112)]=_0x458d22,await this['writeState'](_0x5c76e9),_0x5c76e9;}finally{await this[_0x50ff7a(0x10e)](_0x3efe92);}}}function a133_0xb6ef(){const _0x3e2429=['code',']\x20Error\x20releasing\x20lock:\x20',']\x20Error\x20reading\x20state\x20file:\x20','isNewFailure','zJRpg','38178hKhwJG','failFastConfig','282216ISOVgD','failed','writeFileSync','parse',']\x20Error\x20writing\x20state\x20file:\x20','message','function','lockFilePath','csRLZ','stringify','865554dRyNnR','utf8','stateFilePath','344334IFuBXw','IIeDa','4|1|3|2|0','EEXIST','split','from','VOUcU','stack',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','recordTestResult','1773751RJjpHk','readState','UGcVa','totalTests','GZFIg',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','failedTests','winstonLogger','closeSync','warn','openSync','defaultState','../logger','776MZJCfD',']\x20Error\x20creating\x20state\x20file:\x20','newState','uniqueFailedTests','341682bpeOov','existsSync','releaseLock','460068wCOYAt','kaChb','isArray','lastAPIFailedCount','fullName','acquireLock','4SoXOhv','5TJfEVU','writeState','updateAPIFailedCount','300rQVjLn','error'];a133_0xb6ef=function(){return _0x3e2429;};return a133_0xb6ef();}function a133_0x44d0(_0x657250,_0x3ad717){const _0xb6ef5a=a133_0xb6ef();return a133_0x44d0=function(_0x44d09b,_0x3235b3){_0x44d09b=_0x44d09b-0xdc;let _0x1446bb=_0xb6ef5a[_0x44d09b];return _0x1446bb;},a133_0x44d0(_0x657250,_0x3ad717);}module['exports']=FileHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a134_0x24c997=a134_0xde23;(function(_0x470526,_0x5ebd84){const _0x56e717=a134_0xde23,_0x138a9b=_0x470526();while(!![]){try{const _0x15a563=-parseInt(_0x56e717(0x120))/0x1+parseInt(_0x56e717(0xfc))/0x2*(-parseInt(_0x56e717(0xec))/0x3)+-parseInt(_0x56e717(0xef))/0x4*(parseInt(_0x56e717(0x104))/0x5)+parseInt(_0x56e717(0x118))/0x6*(-parseInt(_0x56e717(0x115))/0x7)+parseInt(_0x56e717(0xf9))/0x8*(parseInt(_0x56e717(0x11c))/0x9)+parseInt(_0x56e717(0xf8))/0xa+parseInt(_0x56e717(0xf1))/0xb;if(_0x15a563===_0x5ebd84)break;else _0x138a9b['push'](_0x138a9b['shift']());}catch(_0x4e7e6f){_0x138a9b['push'](_0x138a9b['shift']());}}}(a134_0x7fc1,0x5a295));const os=require('os'),path=require('path'),fs=require('fs'),logger=require(a134_0x24c997(0x128))['winstonLogger'],RETRY_TESTS_ON_FAILURE=a134_0x24c997(0xf0),ABORT_BUILD_ON_FAILURE=a134_0x24c997(0xf4),RUN_PREVIOUSLY_FAILED_FIRST=a134_0x24c997(0x112),RERUN_PREVIOUSLY_FAILED='rerunPreviouslyFailed',SKIP_FLAKY_AND_FAILED=a134_0x24c997(0x10a),ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set([a134_0x24c997(0x10e)]);class TestOrdering{constructor(){const _0xc7d4ae=a134_0x24c997;this[_0xc7d4ae(0xf3)]=![],this[_0xc7d4ae(0x10c)]=null;}[a134_0x24c997(0x10f)](_0x346eb4){const _0x3af344=a134_0x24c997;this[_0x3af344(0xf3)]=!![],this['name']=_0x346eb4;}[a134_0x24c997(0x109)](){const _0x53ba80=a134_0x24c997;this[_0x53ba80(0xf3)]=![],this[_0x53ba80(0x10c)]=null;}[a134_0x24c997(0xfa)](){const _0x198a50=a134_0x24c997;return this[_0x198a50(0xf3)];}[a134_0x24c997(0xf2)](){const _0x44464a=a134_0x24c997;return this[_0x44464a(0x10c)];}}function a134_0x7fc1(){const _0x10a8fa=['appendFileSync','rerunPreviouslyFailed','runPreviouslyFailedFirst','writeFailureToFile','env','2178064JSIjBz','getRunPreviouslyFailedFirst','getRetryCount','12WVADpV','testOrdering','getRerunPreviouslyFailed','rerun_previously_failed','9GOumIJ','join','abort_build_on_failure','getOrchestrationData','501654vdgsmc','testOrchestrationOptions','existsSync','skipFlakyAndFailed','_instance','getInstance','getFailureThreshold','tmpdir','../logger','isRetryEnabled','831YPQgnJ','retry_tests_on_failure','toLowerCase','4fCcKiV','retryTestsOnFailure','9209772jMWyfb','getName','enabled','abortBuildOnFailure','skip_failing_and_flaky','qvdFs','getBuildStartData','6921310sBddYG','817456CquvVA','getEnabled','_setSkipFlakyAndFailed','118njcvLS','_setTestOrdering','BROWSERSTACK_TESTHUB_UUID','getSkipFlakyAndFailed','abort_build_','isAbortBuildOnFailureEnabled','has','config','609815IyLbWK','_setRerunPreviouslyFailed','_setRunPreviouslyFailedFirst','testOrderingEnabled','run_previously_failed_first','disable','skipFlakyandFailed','VpyTC','name','failed_tests_','jest','enable'];a134_0x7fc1=function(){return _0x10a8fa;};return a134_0x7fc1();}function a134_0xde23(_0x704e62,_0x43f6a9){const _0x7fc191=a134_0x7fc1();return a134_0xde23=function(_0xde23a9,_0xe81ca6){_0xde23a9=_0xde23a9-0xeb;let _0x6a28b3=_0x7fc191[_0xde23a9];return _0x6a28b3;},a134_0xde23(_0x704e62,_0x43f6a9);}class OrchestrationUtils{static ['_instance']=null;constructor(_0x1266ec){const _0x452430=a134_0x24c997,_0xedf47e={};_0xedf47e[_0x452430(0x10b)]=function(_0x2bf1a3,_0xe1daac){return _0x2bf1a3||_0xe1daac;};const _0x296914=_0xedf47e;this[_0x452430(0x112)]=![],this[_0x452430(0x111)]=![],this['skipFlakyAndFailed']=![],this[_0x452430(0x119)]=new TestOrdering(),this[_0x452430(0x103)]=_0x296914['VpyTC'](_0x1266ec,{});const _0x4a777b=_0x1266ec&&_0x1266ec[_0x452430(0x121)]||{};this[_0x452430(0x106)](_0x4a777b[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x452430(0x105)](_0x4a777b[RERUN_PREVIOUSLY_FAILED]||![]),this['_setSkipFlakyAndFailed'](_0x4a777b[SKIP_FLAKY_AND_FAILED]||![]);}static[a134_0x24c997(0x125)](_0x840cad){const _0x4976a1=a134_0x24c997;return!OrchestrationUtils['_instance']&&_0x840cad&&(OrchestrationUtils[_0x4976a1(0x124)]=new OrchestrationUtils(_0x840cad)),OrchestrationUtils[_0x4976a1(0x124)];}[a134_0x24c997(0xeb)](){const _0x5846cb=a134_0x24c997,_0x16b11a=(this[_0x5846cb(0x103)]['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x16b11a[_0x5846cb(0xf3)];}[a134_0x24c997(0x117)](){const _0x1938c5=a134_0x24c997,_0x356a5d=(this[_0x1938c5(0x103)]['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x555c52=0x0;return this['isRetryEnabled'](this[_0x1938c5(0x103)])&&(_0x555c52=_0x356a5d['maxRetries']||0x1),_0x555c52;}[a134_0x24c997(0x11f)](){const _0x121461=a134_0x24c997,_0x4de2a3=this[_0x121461(0x103)][_0x121461(0x121)]||{},_0x494d7e={};for(const _0x331457 in _0x4de2a3){ALLOWED_ORCHESTRATION_KEYS[_0x121461(0x102)](_0x331457)&&(_0x494d7e[_0x331457]=_0x4de2a3[_0x331457]);}return _0x494d7e;}['checkAbortBuildFileExists'](){const _0x3f89f3=a134_0x24c997,_0x458bb0=process[_0x3f89f3(0x114)][_0x3f89f3(0xfe)],_0x45dc82=path[_0x3f89f3(0x11d)](os['tmpdir'](),_0x3f89f3(0x100)+_0x458bb0);return fs[_0x3f89f3(0x122)](_0x45dc82);}[a134_0x24c997(0x113)](_0x16ab5e){const _0x4b2985=a134_0x24c997,_0xac8665=process[_0x4b2985(0x114)][_0x4b2985(0xfe)],_0x8b4065=path['join'](os[_0x4b2985(0x127)](),_0x4b2985(0x10d)+_0xac8665+'.txt');fs[_0x4b2985(0x110)](_0x8b4065,_0x16ab5e+'\x0a');}['isAbortBuildOnFailureSupported'](_0x3e923f){const _0x5a9790=a134_0x24c997,_0xbcf6f0={};_0xbcf6f0[_0x5a9790(0xf6)]=function(_0x587d1b,_0x62a517){return _0x587d1b||_0x62a517;};const _0x4b263e=_0xbcf6f0;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x5a9790(0x102)](_0x4b263e[_0x5a9790(0xf6)](_0x3e923f,'')[_0x5a9790(0xee)]());}[a134_0x24c997(0x101)](){const _0x2b6fbe=a134_0x24c997,_0x165f7d=(this[_0x2b6fbe(0x103)][_0x2b6fbe(0x121)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x165f7d[_0x2b6fbe(0xf3)];}[a134_0x24c997(0x126)](){const _0x62c31a=a134_0x24c997,_0xd32455=(this[_0x62c31a(0x103)][_0x62c31a(0x121)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0xd32455['maxFailures']||0x5;;}[a134_0x24c997(0x116)](){return this['runPreviouslyFailedFirst'];}[a134_0x24c997(0x106)](_0x2e311e){const _0x5e9777=a134_0x24c997;this['runPreviouslyFailedFirst']=!!_0x2e311e,this[_0x5e9777(0xfd)]();}['getRerunPreviouslyFailed'](){const _0x2100e1=a134_0x24c997;return this[_0x2100e1(0x111)];}['_setRerunPreviouslyFailed'](_0x316663){const _0x3be591=a134_0x24c997;this[_0x3be591(0x111)]=!!_0x316663,this[_0x3be591(0xfd)]();}[a134_0x24c997(0xff)](){const _0x2c7142=a134_0x24c997;return this[_0x2c7142(0x123)];}[a134_0x24c997(0xfb)](_0x4cafc9){const _0x1478cb=a134_0x24c997;this[_0x1478cb(0x123)]=!!_0x4cafc9,this[_0x1478cb(0xfd)]();}[a134_0x24c997(0xfd)](){const _0x2fcd4d=a134_0x24c997;if(this[_0x2fcd4d(0x112)])this[_0x2fcd4d(0x111)]=![],this[_0x2fcd4d(0x123)]=![],this[_0x2fcd4d(0x119)][_0x2fcd4d(0x10f)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x2fcd4d(0x111)])this[_0x2fcd4d(0x112)]=![],this[_0x2fcd4d(0x123)]=![],this[_0x2fcd4d(0x119)]['enable'](RERUN_PREVIOUSLY_FAILED);else this[_0x2fcd4d(0x123)]?(this['runPreviouslyFailedFirst']=![],this[_0x2fcd4d(0x111)]=![],this[_0x2fcd4d(0x119)]['enable'](SKIP_FLAKY_AND_FAILED)):this['testOrdering']['disable']();}}[a134_0x24c997(0x107)](){const _0x41e4d5=a134_0x24c997;return this[_0x41e4d5(0x119)]['getEnabled']();}['getTestOrderingName'](){const _0x333075=a134_0x24c997;if(this[_0x333075(0x119)][_0x333075(0xfa)]())return this[_0x333075(0x119)][_0x333075(0xf2)]();return null;}[a134_0x24c997(0xf7)](){const _0x1e5b13=a134_0x24c997,_0x475627={};return _0x475627[_0x1e5b13(0x11b)]={'enabled':this[_0x1e5b13(0x11a)]()},_0x475627[_0x1e5b13(0x108)]={'enabled':this[_0x1e5b13(0x116)]()},_0x475627[_0x1e5b13(0xf5)]={'enabled':this[_0x1e5b13(0xff)]()},this['isRetryEnabled']()&&(_0x475627[_0x1e5b13(0xed)]={'enabled':!![],'max_retries':this[_0x1e5b13(0x117)]()}),this['isAbortBuildOnFailureEnabled']()&&(_0x475627[_0x1e5b13(0x11e)]={'enabled':!![],'max_failures':this['getFailureThreshold']()}),_0x475627;}}module['exports']=OrchestrationUtils;
|