browserstack-node-sdk 1.56.0 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.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/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.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/puppeteer-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/newmanTestFramework.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/puppeteerAutomationFramework.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/puppeteerDriverModule.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/caCertHelper.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/driverInitErrorReporter.js +1 -0
- 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/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.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 a142_0x4822f7=a142_0x2979;(function(_0x35467b,_0x2abf51){const _0x559fe3=a142_0x2979,_0x579f21=_0x35467b();while(!![]){try{const _0x376b12=parseInt(_0x559fe3(0x191))/0x1*(parseInt(_0x559fe3(0x1cd))/0x2)+parseInt(_0x559fe3(0x1b4))/0x3*(-parseInt(_0x559fe3(0x1c3))/0x4)+parseInt(_0x559fe3(0x181))/0x5+parseInt(_0x559fe3(0x168))/0x6+parseInt(_0x559fe3(0x180))/0x7+-parseInt(_0x559fe3(0x1ab))/0x8+parseInt(_0x559fe3(0x199))/0x9*(-parseInt(_0x559fe3(0x1b9))/0xa);if(_0x376b12===_0x2abf51)break;else _0x579f21['push'](_0x579f21['shift']());}catch(_0x68a0c3){_0x579f21['push'](_0x579f21['shift']());}}}(a142_0x5c98,0x6fc74));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a142_0x4822f7(0x17c)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a142_0x4822f7(0x17b)),{nestedKeyValue}=require(a142_0x4822f7(0x1ad)),util=require(a142_0x4822f7(0x171)),constants=require(a142_0x4822f7(0x175));function a142_0x2979(_0x4a1145,_0x373e78){const _0x5c98aa=a142_0x5c98();return a142_0x2979=function(_0x29790c,_0x31ca17){_0x29790c=_0x29790c-0x15f;let _0x38ed98=_0x5c98aa[_0x29790c];return _0x38ed98;},a142_0x2979(_0x4a1145,_0x373e78);}class RequestQueueHandler{static ['instance'];[a142_0x4822f7(0x1b6)]=0x0;constructor(){const _0x29204a=a142_0x4822f7,_0x531331={};_0x531331[_0x29204a(0x16c)]=_0x29204a(0x1bc),_0x531331[_0x29204a(0x16b)]=_0x29204a(0x174),_0x531331[_0x29204a(0x1b2)]=_0x29204a(0x187),_0x531331[_0x29204a(0x16f)]='api/v1/screenshots',_0x531331[_0x29204a(0x1d1)]='LogCreated',_0x531331[_0x29204a(0x1a4)]=_0x29204a(0x160),_0x531331['duLeS']=_0x29204a(0x196),_0x531331[_0x29204a(0x16e)]=_0x29204a(0x178),_0x531331[_0x29204a(0x1b5)]='HookRunFinished',_0x531331[_0x29204a(0x18f)]='TestRunStarted',_0x531331[_0x29204a(0x16a)]=_0x29204a(0x19b);const _0x54c1ae=_0x531331,_0x1335da=_0x54c1ae[_0x29204a(0x16c)][_0x29204a(0x17a)]('|');let _0x551e7d=0x0;while(!![]){switch(_0x1335da[_0x551e7d++]){case'0':this[_0x29204a(0x1a6)]=_0x54c1ae['cCbMX'];continue;case'1':this[_0x29204a(0x165)]=_0x54c1ae[_0x29204a(0x1b2)];continue;case'2':this[_0x29204a(0x1aa)]=_0x54c1ae[_0x29204a(0x16f)];continue;case'3':this['pollEventBatchInterval']=null;continue;case'4':this['started']=![];continue;case'5':this[_0x29204a(0x169)]=[];continue;case'6':this['BATCH_EVENT_TYPES']=[_0x54c1ae[_0x29204a(0x1d1)],_0x54c1ae['bXPJF'],_0x54c1ae['duLeS'],_0x54c1ae[_0x29204a(0x16e)],_0x54c1ae['uutsL'],_0x54c1ae[_0x29204a(0x18f)],_0x54c1ae[_0x29204a(0x16a)]];continue;}break;}}static['getInstance'](){const _0x2cd24e=a142_0x4822f7;return!RequestQueueHandler[_0x2cd24e(0x1b1)]&&(RequestQueueHandler[_0x2cd24e(0x1b1)]=new RequestQueueHandler()),RequestQueueHandler['instance'];}[a142_0x4822f7(0x19d)]=()=>{const _0x2a6fcd=a142_0x4822f7;!this[_0x2a6fcd(0x1ca)]&&(this[_0x2a6fcd(0x1ca)]=!![],this['startEventBatchPolling']());};['add']=_0x11098d=>{const _0xc190c=a142_0x4822f7,_0x59e419={'ecpVg':function(_0x550025,_0x45ec4d){return _0x550025===_0x45ec4d;},'hryWz':_0xc190c(0x1a3),'PoVdV':function(_0x4f770b,_0x2932c5){return _0x4f770b>_0x2932c5;},'KPLWG':function(_0x303388,_0x26b2bc){return _0x303388===_0x26b2bc;},'vQEpl':_0xc190c(0x1a7),'cIdlV':function(_0x3ed6bc,_0xfed9c4){return _0x3ed6bc!==_0xfed9c4;},'sHcYC':_0xc190c(0x196),'TSbkJ':function(_0x400e9a,_0x1973a0){return _0x400e9a(_0x1973a0);},'NBIFf':_0xc190c(0x1bd)};if(this[_0xc190c(0x1a5)][_0xc190c(0x1a0)](_0x11098d[_0xc190c(0x1b8)])){if(_0x11098d['logs']&&_0x11098d[_0xc190c(0x172)][0x0]&&_0x59e419[_0xc190c(0x183)](_0x11098d[_0xc190c(0x172)][0x0]['kind'],_0x59e419[_0xc190c(0x164)])){const _0x711c7e={};return _0x711c7e['shouldProceed']=!![],_0x711c7e[_0xc190c(0x19e)]=[_0x11098d],_0x711c7e[_0xc190c(0x1c5)]=this[_0xc190c(0x1aa)],_0x711c7e;}if(_0x11098d[_0xc190c(0x172)]&&_0x59e419[_0xc190c(0x173)](_0x11098d[_0xc190c(0x172)][_0xc190c(0x1bb)],0x0)&&_0x59e419[_0xc190c(0x18e)](_0x11098d[_0xc190c(0x172)][0x0][_0xc190c(0x1cb)],_0x59e419[_0xc190c(0x193)])&&_0x59e419[_0xc190c(0x18a)](_0x11098d[_0xc190c(0x1b8)],_0x59e419[_0xc190c(0x176)])){const _0x420474={};return _0x420474[_0xc190c(0x170)]=!![],_0x420474[_0xc190c(0x19e)]=[_0x11098d],_0x420474[_0xc190c(0x1c5)]=this[_0xc190c(0x165)],_0x420474;}this[_0xc190c(0x169)]['push'](_0x11098d);let _0x310744=null;const _0x1db1d4=this[_0xc190c(0x170)]();_0x1db1d4&&(_0x59e419[_0xc190c(0x198)](trace,_0x59e419[_0xc190c(0x1c2)]),_0x310744=this[_0xc190c(0x169)][_0xc190c(0x194)](0x0,BATCH_SIZE),this['queue'][_0xc190c(0x1ac)](0x0,BATCH_SIZE),this[_0xc190c(0x177)]());const _0x239f21={};return _0x239f21['shouldProceed']=_0x1db1d4,_0x239f21[_0xc190c(0x19e)]=_0x310744,_0x239f21[_0xc190c(0x1c5)]=this['eventUrl'],_0x239f21;}const _0x345352={};return _0x345352['shouldProceed']=!![],_0x345352;};[a142_0x4822f7(0x16d)]=async()=>{const _0x2506ed=a142_0x4822f7,_0xa2a065={'IiCoG':_0x2506ed(0x1ba),'EPPwB':function(_0x5bab44,_0x26cf5b){return _0x5bab44>_0x26cf5b;},'xmBQP':_0x2506ed(0x18b),'UcdYM':function(_0x518de4,_0x986ae7){return _0x518de4(_0x986ae7);}};await this['uploadPending'](),this[_0x2506ed(0x182)](_0xa2a065[_0x2506ed(0x18d)]);while(_0xa2a065[_0x2506ed(0x197)](this[_0x2506ed(0x169)][_0x2506ed(0x1bb)],0x0)){const _0x547549=this[_0x2506ed(0x169)][_0x2506ed(0x194)](0x0,BATCH_SIZE);this[_0x2506ed(0x169)]['splice'](0x0,BATCH_SIZE),await this[_0x2506ed(0x1d4)](this[_0x2506ed(0x1a6)],_0xa2a065[_0x2506ed(0x161)],_0x547549);}_0xa2a065['EPPwB'](this[_0x2506ed(0x1b6)],0x0)&&_0xa2a065[_0x2506ed(0x188)](debug,'Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20'+this[_0x2506ed(0x1b6)]);};[a142_0x4822f7(0x1d4)]=async(_0x50df78,_0x4fa13a,_0x344e07)=>{const _0x5da0f8=a142_0x4822f7,_0x29aba3={'TvLoy':function(_0x1bfd9a,_0xad79ae){return _0x1bfd9a(_0xad79ae);},'ahWLE':_0x5da0f8(0x189),'FYmwi':function(_0x3e71f7,_0x5c83bd){return _0x3e71f7(_0x5c83bd);},'waZJo':function(_0x44c3ce){return _0x44c3ce();},'FfRYw':function(_0x24df21,_0x581f95,_0x25d885,_0x54a228,_0x2e2a7b){return _0x24df21(_0x581f95,_0x25d885,_0x54a228,_0x2e2a7b);},'eTGNr':_0x5da0f8(0x162),'bDMUq':function(_0x25fa0a,_0x26c356){return _0x25fa0a(_0x26c356);},'nOJsT':function(_0x4010eb,_0x4aaff4){return _0x4010eb-_0x4aaff4;},'nQTTF':function(_0x39a242,_0x283c34){return _0x39a242-_0x283c34;}};let _0x5610ef='';try{_0x5610ef=_0x344e07[_0x5da0f8(0x1b3)](_0x42df3d=>'\x27'+_0x42df3d['event_type']+'\x27:'+(nestedKeyValue(_0x42df3d,[_0x5da0f8(0x1cf),'uuid'])||nestedKeyValue(_0x42df3d,['hook_run',_0x5da0f8(0x1d0)])))['join'](','),_0x29aba3[_0x5da0f8(0x1c0)](debug,_0x5da0f8(0x1a1)+_0x4fa13a+_0x5da0f8(0x1c4)+Buffer[_0x5da0f8(0x19a)](util['format']('%j',_0x344e07),_0x29aba3[_0x5da0f8(0x19c)])+'\x20bytes.\x20Events\x20are\x20'+_0x5610ef);}catch(_0x5ed158){_0x29aba3[_0x5da0f8(0x1c1)](debug,_0x5da0f8(0x192)+util[_0x5da0f8(0x1d3)](_0x5ed158)+'}');}const _0x169405={'headers':_0x29aba3['waZJo'](getDefaultHeaders)};try{const _0xf7e71b=await _0x29aba3[_0x5da0f8(0x1b0)](nodeRequest,_0x29aba3['eTGNr'],_0x50df78,_0x344e07,_0x169405);if(_0xf7e71b[_0x5da0f8(0x18c)][_0x5da0f8(0x166)]){const _0x2628a4={};_0x2628a4[_0x5da0f8(0x1bf)]=_0xf7e71b[_0x5da0f8(0x18c)][_0x5da0f8(0x166)];throw _0x2628a4;}else _0x29aba3['bDMUq'](debug,_0x4fa13a+_0x5da0f8(0x163)+_0x5610ef+'\x20--\x20'+util[_0x5da0f8(0x1d3)]('%j',_0xf7e71b['data'])),this[_0x5da0f8(0x1b6)]=Math['max'](0x0,_0x29aba3[_0x5da0f8(0x1d2)](this['pendingUploads'],_0x344e07[_0x5da0f8(0x1bb)]));}catch(_0x538cff){_0x538cff[_0x5da0f8(0x1ce)]?_0x29aba3[_0x5da0f8(0x1c0)](debug,_0x5da0f8(0x1a2)+_0x4fa13a+_0x5da0f8(0x1ae)+constants['TEST_REPORTING_ANALYTICS']+_0x5da0f8(0x1c7)+_0x538cff[_0x5da0f8(0x1ce)][_0x5da0f8(0x185)]+'\x20'+_0x538cff[_0x5da0f8(0x1ce)][_0x5da0f8(0x15f)]+'\x20'+util['format']('%j',_0x538cff[_0x5da0f8(0x1ce)])):_0x29aba3['TvLoy'](debug,_0x5da0f8(0x1a2)+_0x4fa13a+_0x5da0f8(0x1ae)+constants[_0x5da0f8(0x1c9)]+_0x5da0f8(0x1c7)+(_0x538cff[_0x5da0f8(0x1bf)]||_0x538cff)),this['pendingUploads']=Math[_0x5da0f8(0x19f)](0x0,_0x29aba3[_0x5da0f8(0x1a9)](this[_0x5da0f8(0x1b6)],_0x344e07['length']));}};['startEventBatchPolling']=()=>{const _0x22893d=a142_0x4822f7,_0x1c0dd0={'RzfgM':function(_0x14cc72,_0x132939){return _0x14cc72>_0x132939;},'vECEw':function(_0x3f0d70,_0x43585c){return _0x3f0d70(_0x43585c);},'DmBvR':_0x22893d(0x1be),'Qznhm':function(_0x3eee06,_0x2ad501){return _0x3eee06(_0x2ad501);},'ssNPx':function(_0x43e391,_0x1705aa,_0x4aecba){return _0x43e391(_0x1705aa,_0x4aecba);}};this[_0x22893d(0x167)]=_0x1c0dd0['ssNPx'](setInterval,async()=>{const _0x11fd0a=_0x22893d;if(_0x1c0dd0[_0x11fd0a(0x17e)](this['queue'][_0x11fd0a(0x1bb)],0x0)){_0x1c0dd0[_0x11fd0a(0x1af)](trace,_0x11fd0a(0x179)+this['queue'][_0x11fd0a(0x1bb)]);const _0xd4b99e=this[_0x11fd0a(0x169)][_0x11fd0a(0x194)](0x0,BATCH_SIZE);this[_0x11fd0a(0x169)][_0x11fd0a(0x1ac)](0x0,BATCH_SIZE),await this[_0x11fd0a(0x1d4)](this['eventUrl'],_0x1c0dd0[_0x11fd0a(0x190)],_0xd4b99e),_0x1c0dd0['Qznhm'](trace,_0x11fd0a(0x17d)+this['queue']['length']);}},BATCH_INTERVAL);};[a142_0x4822f7(0x177)]=()=>{const _0x3be22d=a142_0x4822f7,_0x1ff33c={};_0x1ff33c[_0x3be22d(0x1c8)]='RESETTING';const _0x35b73d=_0x1ff33c;this[_0x3be22d(0x182)](_0x35b73d[_0x3be22d(0x1c8)]),this['startEventBatchPolling']();};[a142_0x4822f7(0x182)]=_0x183d64=>{const _0x2e0873=a142_0x4822f7,_0x510f7b={'oZkur':function(_0x56abe1,_0x3a39f2){return _0x56abe1(_0x3a39f2);},'AQgmS':function(_0x1818c6,_0x29c388){return _0x1818c6===_0x29c388;},'BXNQf':_0x2e0873(0x1ba)};this['pollEventBatchInterval']&&(_0x510f7b[_0x2e0873(0x17f)](clearInterval,this[_0x2e0873(0x167)]),this[_0x2e0873(0x167)]=null,_0x510f7b[_0x2e0873(0x1a8)](_0x183d64,_0x510f7b[_0x2e0873(0x1c6)])&&(this['started']=![]));};[a142_0x4822f7(0x170)]=()=>{const _0xb08f14=a142_0x4822f7,_0x23d404={};_0x23d404[_0xb08f14(0x1b7)]=function(_0x4684d0,_0x272f32){return _0x4684d0>=_0x272f32;};const _0x2666c6=_0x23d404;return _0x2666c6[_0xb08f14(0x1b7)](this[_0xb08f14(0x169)]['length'],BATCH_SIZE);};async[a142_0x4822f7(0x186)](_0x2c0d60=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x4f60f1=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x198521=a142_0x4822f7,_0x5314af={'CRdYv':function(_0x472f00,_0x335b86){return _0x472f00<=_0x335b86;},'GMLVi':function(_0x4c562d,_0x2d34c4){return _0x4c562d(_0x2d34c4);},'PobJk':function(_0x413902,_0x31c768){return _0x413902-_0x31c768;}};if(_0x5314af[_0x198521(0x195)](this[_0x198521(0x1b6)],0x0)||_0x5314af['CRdYv'](_0x2c0d60,0x0))return;return await _0x5314af[_0x198521(0x1cc)](sleep,_0x4f60f1),this['uploadPending'](_0x5314af['PobJk'](_0x2c0d60,_0x4f60f1));}}function a142_0x5c98(){const _0x195da5=['NBIFf','1732988jIjaUC','.\x20Request\x20Size\x20-\x20','proceedWithUrl','BXNQf','\x20:\x20','FTpar','TEST_REPORTING_ANALYTICS','started','kind','GMLVi','2MzxJmP','response','test_run','uuid','vwSrO','nOJsT','format','batchAndPostEvents','statusText','CBTSessionCreated','xmBQP','POST','\x20event\x20successful\x20for\x20events\x20','hryWz','uploadAttachmentUrl','error','pollEventBatchInterval','2220810SDbswI','queue','mIhzF','cCbMX','idnUk','shutdown','vBKQO','rzHSI','shouldProceed','util','logs','PoVdV','api/v1/batch','../../bin/utils/constants','sHcYC','resetEventBatchPolling','TestRunSkipped','Processing\x20events.\x20Queue\x20Length\x20-\x20','split','./utils','./constants','Remaining\x20Queue\x20Length\x20-\x20','RzfgM','oZkur','4696699rDZtEk','3869290KaGaHQ','removeEventBatchPolling','ecpVg','exports','status','uploadPending','upload-attachments','UcdYM','utf8','cIdlV','Shutdown-Queue','data','IiCoG','KPLWG','GrzHC','DmBvR','42836BEeRrQ','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','vQEpl','slice','CRdYv','TestRunFinished','EPPwB','TSbkJ','7731QAhNEq','byteLength','HookRunStarted','ahWLE','start','proceedWithData','max','includes','Processing\x20batch\x20events\x20for\x20','EXCEPTION\x20IN\x20','TEST_SCREENSHOT','bXPJF','BATCH_EVENT_TYPES','eventUrl','TEST_ATTACHMENT','AQgmS','nQTTF','screenshotEventUrl','2453376WakkCr','splice','../helper','\x20REQUEST\x20TO\x20','vECEw','FfRYw','instance','AbkNE','map','6sRsdZj','uutsL','pendingUploads','acJNo','event_type','2640IpVTMT','REMOVING','length','5|4|0|2|1|6|3','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','Interval-Queue','message','TvLoy','FYmwi'];a142_0x5c98=function(){return _0x195da5;};return a142_0x5c98();}module[a142_0x4822f7(0x184)]=RequestQueueHandler;
|
|
1
|
+
function a143_0x1863(_0x5bb143,_0x9f7846){const _0x1d4912=a143_0x1d49();return a143_0x1863=function(_0x18633d,_0x19f5e6){_0x18633d=_0x18633d-0x13d;let _0x4f6fe3=_0x1d4912[_0x18633d];return _0x4f6fe3;},a143_0x1863(_0x5bb143,_0x9f7846);}function a143_0x1d49(){const _0x227e81=['dKgiA','pendingUploads','281850SjLHXj','LGkPZ','\x20:\x20','ciyQR','dROOd','event_type','VClIc','statusText','33KkUSYx','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','IbKyC','SCAMn','join','Shutdown-Queue','pdOQz','TestRunSkipped','REMOVING','daKtK','wlKsj','550170aFXafY','\x20REQUEST\x20TO\x20','TEST_ATTACHMENT','split','gYnla','../helper','1800xcIoAx','map','shutdown','slice','TEST_SCREENSHOT','batchAndPostEvents','376gENjmA','getInstance','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','removeEventBatchPolling','RphNF','pollEventBatchInterval','logs','exports','queue','HnhCS','splice','TestRunFinished','DqyAa','util','uploadPending','startEventBatchPolling','error','6604FqEOeh','Processing\x20events.\x20Queue\x20Length\x20-\x20','HookRunStarted','start','MzEBk','611ISLsMs','SMsBB','TbReJ','eventUrl','upload-attachments','message','resetEventBatchPolling','18135UmeVDY','ffhNJ','wYOFb','16MtMzZj','BqSQV','823788CCjgqh','kind','uuid','../../bin/utils/constants','nvcwA','rMOnI','CBTSessionCreated','uploadAttachmentUrl','393jlaqKO','YGFur','TEST_REPORTING_ANALYTICS','test_run','data','\x20bytes.\x20Events\x20are\x20','TestRunStarted','5|0|1|3|6|2|4','hZwEB','FMXFF','BATCH_EVENT_TYPES','HfQtj','yRqrL','doZft','wVPEy','format','kbBYx','add','length','started','HookRunFinished','EXCEPTION\x20IN\x20','shouldProceed','SJMFP','LogCreated','screenshotEventUrl','api/v1/batch','BRpUt','./constants','843997nYrpyf','./utils','proceedWithUrl','instance','byteLength','25pVEaPQ','Jxxiy','status','yXjOY','hook_run','rYoqx','POST','bslLI','mnOpp','\x20--\x20','response','Interval-Queue','api/v1/screenshots','proceedWithData','sLlVa','WQqIO'];a143_0x1d49=function(){return _0x227e81;};return a143_0x1d49();}const a143_0x33b18d=a143_0x1863;(function(_0xfebc54,_0x251a43){const _0x873a3a=a143_0x1863,_0x3181a0=_0xfebc54();while(!![]){try{const _0x4e0492=-parseInt(_0x873a3a(0x170))/0x1*(-parseInt(_0x873a3a(0x15a))/0x2)+parseInt(_0x873a3a(0x184))/0x3*(parseInt(_0x873a3a(0x16b))/0x4)+parseInt(_0x873a3a(0x1a6))/0x5*(parseInt(_0x873a3a(0x1b8))/0x6)+parseInt(_0x873a3a(0x1a1))/0x7+parseInt(_0x873a3a(0x17a))/0x8*(-parseInt(_0x873a3a(0x17c))/0x9)+parseInt(_0x873a3a(0x14e))/0xa*(-parseInt(_0x873a3a(0x143))/0xb)+-parseInt(_0x873a3a(0x154))/0xc*(parseInt(_0x873a3a(0x177))/0xd);if(_0x4e0492===_0x251a43)break;else _0x3181a0['push'](_0x3181a0['shift']());}catch(_0xdca962){_0x3181a0['push'](_0x3181a0['shift']());}}}(a143_0x1d49,0x1f8ce));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a143_0x33b18d(0x1a0)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a143_0x33b18d(0x1a2)),{nestedKeyValue}=require(a143_0x33b18d(0x153)),util=require(a143_0x33b18d(0x167)),constants=require(a143_0x33b18d(0x17f));class RequestQueueHandler{static [a143_0x33b18d(0x1a4)];[a143_0x33b18d(0x1b7)]=0x0;constructor(){const _0x3f5c08=a143_0x33b18d,_0x224104={};_0x224104[_0x3f5c08(0x191)]=_0x3f5c08(0x18b),_0x224104[_0x3f5c08(0x1b6)]=_0x3f5c08(0x19e),_0x224104[_0x3f5c08(0x1ad)]=_0x3f5c08(0x19c),_0x224104[_0x3f5c08(0x163)]=_0x3f5c08(0x182),_0x224104[_0x3f5c08(0x171)]=_0x3f5c08(0x165),_0x224104[_0x3f5c08(0x181)]=_0x3f5c08(0x14a),_0x224104[_0x3f5c08(0x192)]=_0x3f5c08(0x198),_0x224104[_0x3f5c08(0x1a7)]=_0x3f5c08(0x18a),_0x224104[_0x3f5c08(0x1b9)]=_0x3f5c08(0x16d),_0x224104['YGFur']=_0x3f5c08(0x1b2),_0x224104['daKtK']=_0x3f5c08(0x174);const _0x62facb=_0x224104,_0xb3495c=_0x62facb[_0x3f5c08(0x191)][_0x3f5c08(0x151)]('|');let _0x4f50dc=0x0;while(!![]){switch(_0xb3495c[_0x4f50dc++]){case'0':this[_0x3f5c08(0x197)]=![];continue;case'1':this[_0x3f5c08(0x173)]=_0x62facb[_0x3f5c08(0x1b6)];continue;case'2':this[_0x3f5c08(0x18e)]=[_0x62facb[_0x3f5c08(0x1ad)],_0x62facb[_0x3f5c08(0x163)],_0x62facb['SMsBB'],_0x62facb[_0x3f5c08(0x181)],_0x62facb[_0x3f5c08(0x192)],_0x62facb['Jxxiy'],_0x62facb['LGkPZ']];continue;case'3':this[_0x3f5c08(0x19d)]=_0x62facb[_0x3f5c08(0x185)];continue;case'4':this[_0x3f5c08(0x15f)]=null;continue;case'5':this[_0x3f5c08(0x162)]=[];continue;case'6':this[_0x3f5c08(0x183)]=_0x62facb[_0x3f5c08(0x14c)];continue;}break;}}static[a143_0x33b18d(0x15b)](){const _0x46d504=a143_0x33b18d;return!RequestQueueHandler[_0x46d504(0x1a4)]&&(RequestQueueHandler['instance']=new RequestQueueHandler()),RequestQueueHandler[_0x46d504(0x1a4)];}[a143_0x33b18d(0x16e)]=()=>{!this['started']&&(this['started']=!![],this['startEventBatchPolling']());};[a143_0x33b18d(0x195)]=_0x21bcf2=>{const _0x13c04f=a143_0x33b18d,_0x32a8a3={'SCAMn':function(_0x49484b,_0x4c7fb2){return _0x49484b===_0x4c7fb2;},'BqSQV':_0x13c04f(0x158),'dROOd':function(_0x443b23,_0x35e3f0){return _0x443b23>_0x35e3f0;},'rYoqx':_0x13c04f(0x150),'WQqIO':function(_0x468263,_0x513216){return _0x468263!==_0x513216;},'BRpUt':'TestRunFinished','wYOFb':function(_0x508a2d,_0x382392){return _0x508a2d(_0x382392);},'gYnla':_0x13c04f(0x144)};if(this[_0x13c04f(0x18e)]['includes'](_0x21bcf2['event_type'])){if(_0x21bcf2['logs']&&_0x21bcf2[_0x13c04f(0x160)][0x0]&&_0x32a8a3['SCAMn'](_0x21bcf2['logs'][0x0]['kind'],_0x32a8a3[_0x13c04f(0x17b)])){const _0x1924ec={};return _0x1924ec[_0x13c04f(0x19a)]=!![],_0x1924ec[_0x13c04f(0x1b3)]=[_0x21bcf2],_0x1924ec[_0x13c04f(0x1a3)]=this[_0x13c04f(0x19d)],_0x1924ec;}if(_0x21bcf2[_0x13c04f(0x160)]&&_0x32a8a3[_0x13c04f(0x13f)](_0x21bcf2['logs'][_0x13c04f(0x196)],0x0)&&_0x32a8a3[_0x13c04f(0x146)](_0x21bcf2[_0x13c04f(0x160)][0x0][_0x13c04f(0x17d)],_0x32a8a3[_0x13c04f(0x1ab)])&&_0x32a8a3[_0x13c04f(0x1b5)](_0x21bcf2['event_type'],_0x32a8a3[_0x13c04f(0x19f)])){const _0x46f84b={};return _0x46f84b[_0x13c04f(0x19a)]=!![],_0x46f84b[_0x13c04f(0x1b3)]=[_0x21bcf2],_0x46f84b[_0x13c04f(0x1a3)]=this[_0x13c04f(0x183)],_0x46f84b;}this[_0x13c04f(0x162)]['push'](_0x21bcf2);let _0x26ed79=null;const _0x22c6df=this['shouldProceed']();_0x22c6df&&(_0x32a8a3[_0x13c04f(0x179)](trace,_0x32a8a3[_0x13c04f(0x152)]),_0x26ed79=this[_0x13c04f(0x162)][_0x13c04f(0x157)](0x0,BATCH_SIZE),this['queue'][_0x13c04f(0x164)](0x0,BATCH_SIZE),this['resetEventBatchPolling']());const _0x540f15={};return _0x540f15[_0x13c04f(0x19a)]=_0x22c6df,_0x540f15['proceedWithData']=_0x26ed79,_0x540f15[_0x13c04f(0x1a3)]=this[_0x13c04f(0x173)],_0x540f15;}const _0x217a2d={};return _0x217a2d[_0x13c04f(0x19a)]=!![],_0x217a2d;};[a143_0x33b18d(0x156)]=async()=>{const _0x2e3196=a143_0x33b18d,_0x95d3b5={'IbKyC':_0x2e3196(0x14b),'GwKTc':function(_0x47eeb8,_0x3d8d7e){return _0x47eeb8>_0x3d8d7e;},'sLlVa':_0x2e3196(0x148),'jcRCo':function(_0x5717d6,_0x4a004c){return _0x5717d6(_0x4a004c);}};await this[_0x2e3196(0x168)](),this[_0x2e3196(0x15d)](_0x95d3b5[_0x2e3196(0x145)]);while(_0x95d3b5['GwKTc'](this['queue'][_0x2e3196(0x196)],0x0)){const _0x13b1c5=this[_0x2e3196(0x162)][_0x2e3196(0x157)](0x0,BATCH_SIZE);this['queue']['splice'](0x0,BATCH_SIZE),await this[_0x2e3196(0x159)](this['eventUrl'],_0x95d3b5[_0x2e3196(0x1b4)],_0x13b1c5);}_0x95d3b5['GwKTc'](this[_0x2e3196(0x1b7)],0x0)&&_0x95d3b5['jcRCo'](debug,'Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20'+this[_0x2e3196(0x1b7)]);};[a143_0x33b18d(0x159)]=async(_0x3b5015,_0x140c68,_0xdd4f51)=>{const _0xca667f=a143_0x33b18d,_0x15216e={'TbReJ':function(_0xd3cd9c,_0x352a3e){return _0xd3cd9c(_0x352a3e);},'kQgPS':'utf8','yRqrL':function(_0x3cbb45,_0x4fa6af){return _0x3cbb45(_0x4fa6af);},'DqyAa':function(_0x453926){return _0x453926();},'RphNF':function(_0x23fef8,_0x2909c6,_0x4ae20f,_0x41849c,_0x35ba90){return _0x23fef8(_0x2909c6,_0x4ae20f,_0x41849c,_0x35ba90);},'FMXFF':_0xca667f(0x1ac),'ygOdt':function(_0x368eb6,_0x41a74e){return _0x368eb6-_0x41a74e;},'wlKsj':function(_0x481ed8,_0x587ead){return _0x481ed8(_0x587ead);},'deubx':function(_0x180119,_0x224fd9){return _0x180119(_0x224fd9);},'MzEBk':function(_0x55200f,_0x5064fb){return _0x55200f-_0x5064fb;}};let _0x1615d6='';try{_0x1615d6=_0xdd4f51[_0xca667f(0x155)](_0x561461=>'\x27'+_0x561461[_0xca667f(0x140)]+'\x27:'+(nestedKeyValue(_0x561461,[_0xca667f(0x187),_0xca667f(0x17e)])||nestedKeyValue(_0x561461,[_0xca667f(0x1aa),'uuid'])))[_0xca667f(0x147)](','),_0x15216e[_0xca667f(0x172)](debug,'Processing\x20batch\x20events\x20for\x20'+_0x140c68+'.\x20Request\x20Size\x20-\x20'+Buffer[_0xca667f(0x1a5)](util['format']('%j',_0xdd4f51),_0x15216e['kQgPS'])+_0xca667f(0x189)+_0x1615d6);}catch(_0x50ee5f){_0x15216e[_0xca667f(0x190)](debug,_0xca667f(0x15c)+util['format'](_0x50ee5f)+'}');}const _0x12bc48={'headers':_0x15216e[_0xca667f(0x166)](getDefaultHeaders)};try{const _0x14633b=await _0x15216e[_0xca667f(0x15e)](nodeRequest,_0x15216e[_0xca667f(0x18d)],_0x3b5015,_0xdd4f51,_0x12bc48);if(_0x14633b['data'][_0xca667f(0x16a)]){const _0x2a7ded={};_0x2a7ded['message']=_0x14633b['data']['error'];throw _0x2a7ded;}else _0x15216e[_0xca667f(0x172)](debug,_0x140c68+'\x20event\x20successful\x20for\x20events\x20'+_0x1615d6+_0xca667f(0x1af)+util['format']('%j',_0x14633b[_0xca667f(0x188)])),this[_0xca667f(0x1b7)]=Math['max'](0x0,_0x15216e['ygOdt'](this[_0xca667f(0x1b7)],_0xdd4f51[_0xca667f(0x196)]));}catch(_0x5b7ca9){_0x5b7ca9['response']?_0x15216e[_0xca667f(0x14d)](debug,_0xca667f(0x199)+_0x140c68+_0xca667f(0x14f)+constants['TEST_REPORTING_ANALYTICS']+_0xca667f(0x13d)+_0x5b7ca9[_0xca667f(0x1b0)][_0xca667f(0x1a8)]+'\x20'+_0x5b7ca9[_0xca667f(0x1b0)][_0xca667f(0x142)]+'\x20'+util[_0xca667f(0x193)]('%j',_0x5b7ca9[_0xca667f(0x1b0)])):_0x15216e['deubx'](debug,_0xca667f(0x199)+_0x140c68+'\x20REQUEST\x20TO\x20'+constants[_0xca667f(0x186)]+_0xca667f(0x13d)+(_0x5b7ca9[_0xca667f(0x175)]||_0x5b7ca9)),this['pendingUploads']=Math['max'](0x0,_0x15216e[_0xca667f(0x16f)](this[_0xca667f(0x1b7)],_0xdd4f51[_0xca667f(0x196)]));}};[a143_0x33b18d(0x169)]=()=>{const _0x3c563f=a143_0x33b18d,_0x32aa76={'HfQtj':function(_0x5039eb,_0x2ff795){return _0x5039eb>_0x2ff795;},'nvcwA':function(_0x1ea997,_0x3cf789){return _0x1ea997(_0x3cf789);},'VClIc':_0x3c563f(0x1b1),'mnOpp':function(_0x38fff3,_0x4dac95,_0x303707){return _0x38fff3(_0x4dac95,_0x303707);}};this[_0x3c563f(0x15f)]=_0x32aa76[_0x3c563f(0x1ae)](setInterval,async()=>{const _0x21d1ba=_0x3c563f;if(_0x32aa76[_0x21d1ba(0x18f)](this[_0x21d1ba(0x162)][_0x21d1ba(0x196)],0x0)){_0x32aa76[_0x21d1ba(0x180)](trace,_0x21d1ba(0x16c)+this[_0x21d1ba(0x162)][_0x21d1ba(0x196)]);const _0x573d14=this[_0x21d1ba(0x162)][_0x21d1ba(0x157)](0x0,BATCH_SIZE);this[_0x21d1ba(0x162)]['splice'](0x0,BATCH_SIZE),await this[_0x21d1ba(0x159)](this['eventUrl'],_0x32aa76[_0x21d1ba(0x141)],_0x573d14),_0x32aa76[_0x21d1ba(0x180)](trace,'Remaining\x20Queue\x20Length\x20-\x20'+this[_0x21d1ba(0x162)][_0x21d1ba(0x196)]);}},BATCH_INTERVAL);};[a143_0x33b18d(0x176)]=()=>{const _0x286203=a143_0x33b18d,_0x1e1bf5={};_0x1e1bf5[_0x286203(0x1a9)]='RESETTING';const _0x10a09f=_0x1e1bf5;this[_0x286203(0x15d)](_0x10a09f['yXjOY']),this[_0x286203(0x169)]();};['removeEventBatchPolling']=_0x2701c9=>{const _0x169535=a143_0x33b18d,_0x55e8ec={'ciyQR':function(_0x201cf0,_0x4bf6b0){return _0x201cf0(_0x4bf6b0);},'ffhNJ':function(_0x168cf9,_0x27d3cc){return _0x168cf9===_0x27d3cc;},'hZwEB':_0x169535(0x14b)};this[_0x169535(0x15f)]&&(_0x55e8ec[_0x169535(0x13e)](clearInterval,this['pollEventBatchInterval']),this[_0x169535(0x15f)]=null,_0x55e8ec[_0x169535(0x178)](_0x2701c9,_0x55e8ec[_0x169535(0x18c)])&&(this['started']=![]));};[a143_0x33b18d(0x19a)]=()=>{const _0x439bec=a143_0x33b18d,_0x4e754f={};_0x4e754f[_0x439bec(0x149)]=function(_0x5637a1,_0x559eab){return _0x5637a1>=_0x559eab;};const _0x2e9195=_0x4e754f;return _0x2e9195[_0x439bec(0x149)](this['queue']['length'],BATCH_SIZE);};async[a143_0x33b18d(0x168)](_0x5e14cd=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x4c43cf=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x4f0b8f=a143_0x33b18d,_0x49655c={'kbBYx':function(_0x18cad8,_0x554572){return _0x18cad8<=_0x554572;},'XGsFP':function(_0x3bfefd,_0x359eda){return _0x3bfefd<=_0x359eda;},'oOgVz':function(_0x4eea7e,_0x1cffe1){return _0x4eea7e(_0x1cffe1);},'SJMFP':function(_0x16985d,_0x4bb5cd){return _0x16985d-_0x4bb5cd;}};if(_0x49655c[_0x4f0b8f(0x194)](this[_0x4f0b8f(0x1b7)],0x0)||_0x49655c['XGsFP'](_0x5e14cd,0x0))return;return await _0x49655c['oOgVz'](sleep,_0x4c43cf),this['uploadPending'](_0x49655c[_0x4f0b8f(0x19b)](_0x5e14cd,_0x4c43cf));}}module[a143_0x33b18d(0x161)]=RequestQueueHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a143_0x282a09=a143_0x59cc;(function(_0x5e5e3e,_0x1280a9){const _0xa4b3a2=a143_0x59cc,_0x1c29fb=_0x5e5e3e();while(!![]){try{const _0x385ca9=parseInt(_0xa4b3a2(0x1de))/0x1*(-parseInt(_0xa4b3a2(0x1dc))/0x2)+-parseInt(_0xa4b3a2(0x1aa))/0x3*(-parseInt(_0xa4b3a2(0x190))/0x4)+parseInt(_0xa4b3a2(0x18e))/0x5*(parseInt(_0xa4b3a2(0x18d))/0x6)+parseInt(_0xa4b3a2(0x1c4))/0x7+-parseInt(_0xa4b3a2(0x1bc))/0x8*(parseInt(_0xa4b3a2(0x1da))/0x9)+-parseInt(_0xa4b3a2(0x1ed))/0xa+parseInt(_0xa4b3a2(0x1d4))/0xb;if(_0x385ca9===_0x1280a9)break;else _0x1c29fb['push'](_0x1c29fb['shift']());}catch(_0x2933e7){_0x1c29fb['push'](_0x1c29fb['shift']());}}}(a143_0x5e31,0x3e165));const bsSetupHelper=require(a143_0x282a09(0x14d)),path=require(a143_0x282a09(0x15b)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a143_0x282a09(0x1cd)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a143_0x282a09(0x1ba)),RequestQueueHandler=require(a143_0x282a09(0x15d)),logger=require(a143_0x282a09(0x1d1))['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a143_0x282a09(0x1bd)),util=require(a143_0x282a09(0x158)),constants=require(a143_0x282a09(0x171));class SessionHandler{static [a143_0x282a09(0x1e0)]=RequestQueueHandler[a143_0x282a09(0x1d8)]();static async['launch'](_0x30c7bb,_0x4b8086){const _0x5367f4=a143_0x282a09,_0xc6a175={'AuZJN':function(_0x612e3b,_0x54e396){return _0x612e3b||_0x54e396;},'LnrwM':function(_0x1135c6,_0x577c79){return _0x1135c6===_0x577c79;},'oMoDE':function(_0xd7c04b,_0x1134e0){return _0xd7c04b(_0x1134e0);},'dBPlh':_0x5367f4(0x14e),'axjGv':'false','GNqjr':'json','aQXRS':function(_0x27856f,_0x4e5929){return _0x27856f(_0x4e5929);},'URnkk':function(_0x537835,_0x408acb,_0x53f8cf,_0x223fdc,_0x1eaab2){return _0x537835(_0x408acb,_0x53f8cf,_0x223fdc,_0x1eaab2);},'hsnUi':_0x5367f4(0x18f),'VeeaE':_0x5367f4(0x1ae),'kirKG':function(_0x5a8df5,_0x255afe){return _0x5a8df5(_0x255afe);},'DAxRz':_0x5367f4(0x19f),'unJlT':function(_0x4d56d8){return _0x4d56d8();},'AUwEf':'true','fDQmb':_0x5367f4(0x1be),'qOiaB':_0x5367f4(0x196),'idbJI':_0x5367f4(0x1a0),'AMydU':_0x5367f4(0x1ca)};logger[_0x5367f4(0x1eb)](_0x5367f4(0x1a8)+util['inspect'](_0x30c7bb));const _0x2b0115=bsSetupHelper['getUserName'](_0x30c7bb),_0x15ad00=bsSetupHelper[_0x5367f4(0x1a9)](_0x30c7bb),_0x3b7137=_0xc6a175[_0x5367f4(0x186)](_0x2b0115,'')+':'+_0xc6a175[_0x5367f4(0x186)](_0x15ad00,'');if(_0xc6a175[_0x5367f4(0x1e1)](_0x3b7137,':'))return _0xc6a175[_0x5367f4(0x1ee)](debug,_0xc6a175[_0x5367f4(0x1a3)]),process[_0x5367f4(0x180)][_0x5367f4(0x17c)]=_0xc6a175[_0x5367f4(0x143)],[null,null];let _0x35253a=![],_0x10ce35=![];if(_0x30c7bb['browserstackAutomation']&&_0x30c7bb[_0x5367f4(0x1dd)])_0x10ce35=!![];else _0x30c7bb['browserstackAutomation']&&(_0x35253a=!![]);try{const _0x2e09a3={'format':_0xc6a175[_0x5367f4(0x1cc)],'project_name':_0x30c7bb[_0x5367f4(0x18c)]||'','name':_0x30c7bb['buildName']||path['basename'](path[_0x5367f4(0x176)](process[_0x5367f4(0x1e5)]())),'build_identifier':_0x30c7bb[_0x5367f4(0x152)],'description':_0x30c7bb[_0x5367f4(0x1d3)]||'','start_time':new Date()[_0x5367f4(0x1e8)](),'tags':_0xc6a175['oMoDE'](getCustomTags,_0x30c7bb),'host_info':bsSetupHelper['getHostInfo'](),'ci_info':bsSetupHelper[_0x5367f4(0x167)](),'build_run_identifier':process['env'][_0x5367f4(0x153)],'failed_tests_rerun':process['env'][_0x5367f4(0x1c7)]||![],'version_control':await bsSetupHelper[_0x5367f4(0x1c1)](),'observability_version':{'frameworkName':_0x4b8086[_0x5367f4(0x1c8)],'frameworkVersion':_0x4b8086['frameworkVersion'],'sdkVersion':bsSetupHelper[_0x5367f4(0x17a)]()},'product_map':_0xc6a175[_0x5367f4(0x1ee)](getProductMap,_0x30c7bb),'test_orchestration':_0xc6a175[_0x5367f4(0x1ee)](getTestOrchestrationBuildStartData,_0x30c7bb)},_0xdbe0a7={};_0xdbe0a7[_0x5367f4(0x1e4)]=_0x2b0115,_0xdbe0a7[_0x5367f4(0x162)]=_0x15ad00;const _0x108fa2={'auth':_0xdbe0a7,'headers':_0xc6a175[_0x5367f4(0x1d9)](getDefaultHeaders,![])},_0x3eb329=await _0xc6a175['URnkk'](nodeRequest,_0xc6a175[_0x5367f4(0x155)],_0xc6a175['VeeaE'],_0x2e09a3,_0x108fa2);_0xc6a175['kirKG'](debug,_0xc6a175[_0x5367f4(0x182)]);const _0x54d27d=_0x3eb329['data'];_0x54d27d[_0x5367f4(0x14a)]&&(process['env'][_0x5367f4(0x181)]=_0x54d27d[_0x5367f4(0x14a)]);if(_0xc6a175[_0x5367f4(0x1b7)](isTestObservabilitySession)){process[_0x5367f4(0x180)]['BS_TESTOPS_BUILD_COMPLETED']=_0xc6a175[_0x5367f4(0x147)];if(_0x54d27d[_0x5367f4(0x194)]){process['env'][_0x5367f4(0x16c)]=_0x54d27d[_0x5367f4(0x194)];const _0x139f59={};_0x139f59[_0x5367f4(0x1e4)]=_0x2b0115,_0x139f59[_0x5367f4(0x162)]=_0x15ad00,process[_0x5367f4(0x180)][_0x5367f4(0x165)]=JSON[_0x5367f4(0x1a7)](_0x139f59);}_0x54d27d[_0x5367f4(0x14a)]&&(process[_0x5367f4(0x180)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x54d27d['build_hashed_id']),_0x54d27d[_0x5367f4(0x144)]&&(process[_0x5367f4(0x180)][_0x5367f4(0x1e3)]=_0x54d27d['allow_screenshots'][_0x5367f4(0x156)]());}return[_0x3eb329['data']['jwt'],_0x3eb329[_0x5367f4(0x1f1)]['build_hashed_id'],_0x3eb329['data'][_0x5367f4(0x144)]];}catch(_0x57a3d0){process[_0x5367f4(0x180)][_0x5367f4(0x181)]=_0xc6a175[_0x5367f4(0x1cb)],process[_0x5367f4(0x180)]['BS_TESTOPS_BUILD_COMPLETED']=_0xc6a175[_0x5367f4(0x143)],process[_0x5367f4(0x180)]['BS_TESTOPS_JWT']=_0xc6a175[_0x5367f4(0x1cb)],process['env'][_0x5367f4(0x154)]=_0xc6a175[_0x5367f4(0x1cb)],process[_0x5367f4(0x180)][_0x5367f4(0x1e3)]=_0xc6a175[_0x5367f4(0x1cb)];_0x57a3d0[_0x5367f4(0x17b)]?_0xc6a175['kirKG'](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+_0x57a3d0[_0x5367f4(0x17b)][_0x5367f4(0x177)]+'\x20'+_0x57a3d0['response']['statusText']+'\x20'+JSON[_0x5367f4(0x1a7)](_0x57a3d0['response'][_0x5367f4(0x1f1)])):_0xc6a175[_0x5367f4(0x1d9)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+(_0x57a3d0[_0x5367f4(0x178)]||_0x57a3d0));if(_0x57a3d0&&_0x57a3d0[_0x5367f4(0x178)]){const _0x41c0a8=_0x57a3d0[_0x5367f4(0x178)];switch(_0x57a3d0[_0x5367f4(0x199)]){case _0xc6a175[_0x5367f4(0x157)]:logger['error'](_0x41c0a8);break;case _0xc6a175[_0x5367f4(0x1df)]:logger['info'](_0x41c0a8);break;case _0xc6a175[_0x5367f4(0x184)]:logger[_0x5367f4(0x16f)](_0x41c0a8);break;default:logger[_0x5367f4(0x16f)](_0x41c0a8);}}else console['info'](_0x5367f4(0x15f)+constants[_0x5367f4(0x1b0)]+_0x5367f4(0x1ea)+_0x57a3d0);return[null,null,null];}}static async[a143_0x282a09(0x1e7)](){const _0x1c1b67=a143_0x282a09,_0x3a49fa={'hErSb':'true','oVzKA':_0x1c1b67(0x183),'sowyQ':function(_0x32bf84,_0x1f7221){return _0x32bf84(_0x1f7221);}},_0x1cff4f=process[_0x1c1b67(0x180)]['BS_TESTOPS_BUILD_COMPLETED'];if([_0x3a49fa[_0x1c1b67(0x188)],_0x3a49fa[_0x1c1b67(0x15e)]]['includes'](_0x1cff4f))return;while([_0x3a49fa[_0x1c1b67(0x188)],_0x3a49fa[_0x1c1b67(0x15e)]][_0x1c1b67(0x1a2)](_0x1cff4f)){await _0x3a49fa[_0x1c1b67(0x1f0)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static['getLogTag'](_0x3b96f2){const _0x55ecf2=a143_0x282a09,_0x767188={};_0x767188[_0x55ecf2(0x1af)]='Test_Start_Upload',_0x767188[_0x55ecf2(0x189)]=_0x55ecf2(0x1a6),_0x767188['jzOUZ']='Test_Skipped_Upload',_0x767188[_0x55ecf2(0x16e)]=_0x55ecf2(0x14f),_0x767188[_0x55ecf2(0x195)]=_0x55ecf2(0x17e),_0x767188['mSTJn']='Hook_End_Upload',_0x767188[_0x55ecf2(0x1c0)]=_0x55ecf2(0x1d5);const _0x24231e=_0x767188,_0x12ea98={};return _0x12ea98[_0x55ecf2(0x1a4)]=_0x24231e[_0x55ecf2(0x1af)],_0x12ea98['TestRunFinished']=_0x24231e[_0x55ecf2(0x189)],_0x12ea98[_0x55ecf2(0x187)]=_0x24231e['jzOUZ'],_0x12ea98['LogCreated']=_0x24231e['hByDO'],_0x12ea98[_0x55ecf2(0x17f)]=_0x24231e['pZTYK'],_0x12ea98[_0x55ecf2(0x1e6)]=_0x24231e['mSTJn'],_0x12ea98['CBTSessionCreated']=_0x24231e['YGxPq'],_0x12ea98[_0x3b96f2['event_type']];}static async[a143_0x282a09(0x149)](_0x187216,_0x36ab84=0x0,_0x98572=null){const _0x2fca8e=a143_0x282a09,_0x3baa19={'yQyFc':function(_0x575d76,_0x41f11a){return _0x575d76===_0x41f11a;},'lfjPv':'sendTraceZip','zAxRH':function(_0x28d522,_0x1cb3d3){return _0x28d522!==_0x1cb3d3;},'GiNWH':_0x2fca8e(0x1b8),'zOfEE':_0x2fca8e(0x16a),'huceM':function(_0x6144b6,_0x2932bc,_0x54f08b,_0x418016,_0x2fe6e0){return _0x6144b6(_0x2932bc,_0x54f08b,_0x418016,_0x2fe6e0);},'BzYLS':'POST','lIPVf':function(_0x4bc924,_0x3b2a81,_0x271244,_0x8d738b,_0x4f8a22){return _0x4bc924(_0x3b2a81,_0x271244,_0x8d738b,_0x4f8a22);},'pYfTX':function(_0x12a0f5,_0x422286){return _0x12a0f5(_0x422286);},'FUoIy':function(_0x54f8a3,_0x22a1f5){return _0x54f8a3!==_0x22a1f5;},'Zrhdx':'Batch-Queue','qWiDL':function(_0x3b6d4c,_0x3f6027){return _0x3b6d4c-_0x3f6027;},'bOgMj':function(_0x227c1c,_0x238d07){return _0x227c1c===_0x238d07;},'BeVey':_0x2fca8e(0x179),'sQrKj':_0x2fca8e(0x19e),'OuiYM':function(_0x8a3b68,_0x547f41){return _0x8a3b68(_0x547f41);},'YBSsa':function(_0x1a4d33,_0x9af1f3){return _0x1a4d33!==_0x9af1f3;},'BgBwJ':function(_0x560f12,_0x18af77){return _0x560f12-_0x18af77;},'gUECf':function(_0x5d85df,_0x14a549){return _0x5d85df===_0x14a549;},'PkpYs':_0x2fca8e(0x16f)};_0x3baa19['yQyFc'](_0x98572,_0x3baa19['lfjPv'])&&logger[_0x2fca8e(0x197)](_0x2fca8e(0x163)+_0x187216[_0x2fca8e(0x148)][0x0][_0x2fca8e(0x15a)]);const _0x421640=await this[_0x2fca8e(0x1a5)](_0x187216);let _0x49149f=_0x187216,_0x18c328=EVENT_ENDPOINT;_0x3baa19[_0x2fca8e(0x193)](_0x98572,_0x3baa19[_0x2fca8e(0x1b9)])&&this[_0x2fca8e(0x1e0)][_0x2fca8e(0x192)]();const {shouldProceed:_0x38a122,proceedWithData:_0x1d3797,proceedWithUrl:_0x718acf}=this['requestQueueHandler'][_0x2fca8e(0x145)](_0x187216);if(!_0x38a122)return;else _0x1d3797&&(_0x49149f=_0x1d3797,_0x18c328=_0x718acf);const _0xa9a9cf={};_0xa9a9cf[_0x2fca8e(0x174)]='Bearer\x20'+process[_0x2fca8e(0x180)][_0x2fca8e(0x1ce)],_0xa9a9cf['Content-Type']=_0x3baa19[_0x2fca8e(0x17d)],_0xa9a9cf[_0x2fca8e(0x1c2)]=_0x3baa19[_0x2fca8e(0x172)];const _0x174cf2={};_0x174cf2['headers']=_0xa9a9cf;const _0x22c606=_0x174cf2;let _0x5e3f78;try{_0x3baa19[_0x2fca8e(0x18a)](_0x98572,_0x3baa19['lfjPv'])?(logger[_0x2fca8e(0x197)](_0x2fca8e(0x175)+_0x187216?.[_0x2fca8e(0x148)][0x0]?.[_0x2fca8e(0x15a)]),_0x5e3f78=await _0x3baa19[_0x2fca8e(0x1ab)](asyncAwaitNodeReq,_0x3baa19[_0x2fca8e(0x19a)],_0x18c328,_0x49149f,_0x22c606),logger[_0x2fca8e(0x197)](_0x2fca8e(0x1c6)+_0x187216?.['logs'][0x0]?.[_0x2fca8e(0x15a)])):_0x5e3f78=await _0x3baa19['lIPVf'](nodeRequest,_0x3baa19[_0x2fca8e(0x19a)],_0x18c328,_0x49149f,_0x22c606);if(_0x5e3f78[_0x2fca8e(0x1f1)][_0x2fca8e(0x16f)]){const _0x2a53b2={};_0x2a53b2[_0x2fca8e(0x178)]=_0x5e3f78[_0x2fca8e(0x1f1)]['error'];throw _0x2a53b2;}else{_0x3baa19[_0x2fca8e(0x14b)](debug,(_0x3baa19[_0x2fca8e(0x1b3)](_0x18c328,this['requestQueueHandler'][_0x2fca8e(0x164)])?_0x421640:_0x3baa19[_0x2fca8e(0x1b2)])+'['+_0x36ab84+']\x20event\x20successful!'),this[_0x2fca8e(0x1e0)][_0x2fca8e(0x160)]=Math['max'](0x0,_0x3baa19[_0x2fca8e(0x16d)](this[_0x2fca8e(0x1e0)][_0x2fca8e(0x160)],_0x3baa19[_0x2fca8e(0x14c)](_0x18c328,_0x3baa19[_0x2fca8e(0x191)])?0x1:_0x49149f[_0x2fca8e(0x161)]));const _0x5c19f9={};return _0x5c19f9[_0x2fca8e(0x177)]=_0x3baa19[_0x2fca8e(0x1d0)],_0x5c19f9[_0x2fca8e(0x178)]='',_0x5c19f9;}}catch(_0x2d8dd7){_0x2d8dd7[_0x2fca8e(0x17b)]?_0x3baa19[_0x2fca8e(0x14b)](debug,_0x2fca8e(0x1d7)+(_0x3baa19[_0x2fca8e(0x193)](_0x18c328,this[_0x2fca8e(0x1e0)]['eventUrl'])?_0x421640:_0x3baa19[_0x2fca8e(0x1b2)])+_0x2fca8e(0x16b)+constants[_0x2fca8e(0x1b0)]+_0x2fca8e(0x1bb)+_0x2d8dd7[_0x2fca8e(0x17b)][_0x2fca8e(0x177)]+'\x20'+_0x2d8dd7[_0x2fca8e(0x17b)]['statusText']+'\x20'+util['format'](_0x2d8dd7[_0x2fca8e(0x17b)]['data'])):_0x3baa19[_0x2fca8e(0x1ec)](debug,'EXCEPTION\x20IN\x20'+(_0x3baa19[_0x2fca8e(0x150)](_0x18c328,this[_0x2fca8e(0x1e0)][_0x2fca8e(0x164)])?_0x421640:_0x3baa19[_0x2fca8e(0x1b2)])+_0x2fca8e(0x16b)+constants['TEST_REPORTING_ANALYTICS']+_0x2fca8e(0x1bb)+util['format'](_0x2d8dd7));this['requestQueueHandler'][_0x2fca8e(0x160)]=Math[_0x2fca8e(0x1cf)](0x0,_0x3baa19[_0x2fca8e(0x1c3)](this[_0x2fca8e(0x1e0)][_0x2fca8e(0x160)],_0x3baa19[_0x2fca8e(0x1db)](_0x18c328,_0x3baa19[_0x2fca8e(0x191)])?0x1:_0x49149f[_0x2fca8e(0x161)]));const _0x1a1b51={};return _0x1a1b51[_0x2fca8e(0x177)]=_0x3baa19[_0x2fca8e(0x19c)],_0x1a1b51[_0x2fca8e(0x178)]=_0x2d8dd7[_0x2fca8e(0x178)]||(_0x2d8dd7['response']?_0x2d8dd7['response']['status']+':'+_0x2d8dd7['response'][_0x2fca8e(0x1ef)]:_0x2d8dd7),_0x1a1b51;}}static async['uploadEventData'](_0x1d2903,_0x3b1e56=0x0){const _0x1b9db6=a143_0x282a09,_0x3b7623={'cOZdI':function(_0x156e5b,_0x4abf45){return _0x156e5b+_0x4abf45;},'ZGrnL':function(_0x3e77d1,_0x5c3e85){return _0x3e77d1(_0x5c3e85);},'mvpij':'test_run','lyacD':_0x1b9db6(0x1bf),'FUUnD':_0x1b9db6(0x169),'fQHjQ':function(_0x319078,_0x5047c0,_0x34eabc){return _0x319078(_0x5047c0,_0x34eabc);},'odYAN':_0x1b9db6(0x151),'yErdk':function(_0x753b1c,_0x2595ee){return _0x753b1c===_0x2595ee;},'PjSvS':function(_0xfa569d,_0x11d866){return _0xfa569d!==_0x11d866;},'hEPCh':_0x1b9db6(0x1be),'ZIfJH':function(_0x193ca3,_0x1e7cd2){return _0x193ca3===_0x1e7cd2;},'GkSuo':_0x1b9db6(0x16a),'QYRVn':function(_0x5d6b42){return _0x5d6b42();},'gjDQu':function(_0x270bc9,_0x43dfd2){return _0x270bc9===_0x43dfd2;},'NemXm':function(_0x1212e3,_0x429b1c){return _0x1212e3-_0x429b1c;},'slSyI':_0x1b9db6(0x16f),'TsRaI':_0x1b9db6(0x1b4),'BNWdN':function(_0x625f35,_0x2bb06f){return _0x625f35>=_0x2bb06f;},'KLlfh':function(_0x5417f9,_0x53fb56){return _0x5417f9-_0x53fb56;},'EXyKU':_0x1b9db6(0x1f2),'IwIjO':function(_0x1fdffc,_0x1f0674){return _0x1fdffc!==_0x1f0674;},'fwoTM':_0x1b9db6(0x183)},_0x441f48=this[_0x1b9db6(0x1a5)](_0x1d2903);_0x3b7623[_0x1b9db6(0x173)](trace,_0x1b9db6(0x168)+_0x1d2903[_0x1b9db6(0x1a1)]+'\x27\x20'+(bsSetupHelper['nestedKeyValue'](_0x1d2903,[_0x3b7623[_0x1b9db6(0x1d6)],_0x3b7623['lyacD']])||bsSetupHelper[_0x1b9db6(0x166)](_0x1d2903,[_0x3b7623[_0x1b9db6(0x19b)],_0x3b7623[_0x1b9db6(0x1ac)]])));if(!_0x3b7623[_0x1b9db6(0x170)](shouldProcessEventForTesthub,_0x1d2903[_0x1b9db6(0x1a1)],_0x3b7623[_0x1b9db6(0x18b)]))return;_0x3b7623['yErdk'](_0x3b1e56,0x0)&&process[_0x1b9db6(0x180)][_0x1b9db6(0x1ce)]&&_0x3b7623[_0x1b9db6(0x1e9)](process['env'][_0x1b9db6(0x1ce)],_0x3b7623[_0x1b9db6(0x198)])&&(this[_0x1b9db6(0x1e0)]['pendingUploads']+=0x1);if(_0x3b7623['ZIfJH'](process[_0x1b9db6(0x180)][_0x1b9db6(0x17c)],_0x3b7623[_0x1b9db6(0x1d2)])||process[_0x1b9db6(0x180)][_0x1b9db6(0x1ad)]||_0x3b7623[_0x1b9db6(0x159)](isPercyBuild)){if(_0x3b7623['gjDQu'](process[_0x1b9db6(0x180)][_0x1b9db6(0x1ce)],_0x3b7623['hEPCh'])){_0x3b7623[_0x1b9db6(0x173)](debug,_0x1b9db6(0x1d7)+_0x441f48+'\x20REQUEST\x20TO\x20'+constants[_0x1b9db6(0x1b0)]+_0x1b9db6(0x1c9)),this[_0x1b9db6(0x1e0)][_0x1b9db6(0x160)]=Math[_0x1b9db6(0x1cf)](0x0,_0x3b7623['NemXm'](this[_0x1b9db6(0x1e0)][_0x1b9db6(0x160)],0x1));const _0x29102e={};return _0x29102e[_0x1b9db6(0x177)]=_0x3b7623['slSyI'],_0x29102e['message']=_0x3b7623['TsRaI'],_0x29102e;}return await this[_0x1b9db6(0x149)](_0x1d2903,_0x3b1e56);}else{if(_0x3b7623[_0x1b9db6(0x1e2)](_0x3b1e56,0x5)){_0x3b7623[_0x1b9db6(0x173)](debug,'EXCEPTION\x20IN\x20'+_0x441f48+_0x1b9db6(0x16b)+constants['TEST_REPORTING_ANALYTICS']+_0x1b9db6(0x185)+_0x441f48+_0x1b9db6(0x1b6));_0x3b7623[_0x1b9db6(0x1e9)](process[_0x1b9db6(0x180)]['BROWSERSTACK_TESTHUB_JWT'],_0x3b7623[_0x1b9db6(0x198)])&&(this['requestQueueHandler'][_0x1b9db6(0x160)]=Math[_0x1b9db6(0x1cf)](0x0,_0x3b7623[_0x1b9db6(0x15c)](this[_0x1b9db6(0x1e0)][_0x1b9db6(0x160)],0x1)));const _0x55fd61={};return _0x55fd61[_0x1b9db6(0x177)]=_0x3b7623[_0x1b9db6(0x1b1)],_0x55fd61[_0x1b9db6(0x178)]=_0x3b7623['EXyKU'],_0x55fd61;}else _0x3b7623[_0x1b9db6(0x1b5)](process[_0x1b9db6(0x180)]['BS_TESTOPS_BUILD_COMPLETED'],_0x3b7623[_0x1b9db6(0x146)])&&_0x3b7623[_0x1b9db6(0x170)](setTimeout,()=>{const _0x9534d2=_0x1b9db6;this['uploadEventData'](_0x1d2903,_0x3b7623[_0x9534d2(0x1c5)](_0x3b1e56,0x1));},0x3e8);}}}function a143_0x59cc(_0x3fae22,_0x38a3f){const _0x5e317f=a143_0x5e31();return a143_0x59cc=function(_0x59cc47,_0xd51780){_0x59cc47=_0x59cc47-0x143;let _0xf3a604=_0x5e317f[_0x59cc47];return _0xf3a604;},a143_0x59cc(_0x3fae22,_0x38a3f);}module[a143_0x282a09(0x19d)]=SessionHandler;function a143_0x5e31(){const _0x44a638=['getInstance','aQXRS','18ePMhNj','gUECf','84752YiXTHw','app','1batJBO','idbJI','requestQueueHandler','LnrwM','BNWdN','BS_TESTOPS_ALLOW_SCREENSHOTS','username','cwd','HookRunFinished','waitForBuildStatus','toISOString','PjSvS','\x20failed\x20due\x20to\x20','info','OuiYM','5041640VYyCYR','oMoDE','statusText','sowyQ','data','Retry\x20runs\x20exceeded','axjGv','allow_screenshots','add','fwoTM','AUwEf','logs','sendEventData','build_hashed_id','pYfTX','bOgMj','../helper','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','Log_Upload','YBSsa','uploadEventData','buildIdentifier','BROWSERSTACK_BUILD_RUN_IDENTIFIER','BS_TESTOPS_BUILD_HASHED_ID','hsnUi','toString','qOiaB','util','QYRVn','test_run_uuid','path','KLlfh','./requestQueueHandler','oVzKA','Data\x20upload\x20to\x20BrowserStack\x20','pendingUploads','length','password','Sending\x20trace\x20zip\x20for\x20test:\x20','eventUrl','CREDENTIALS_FOR_CRASH_REPORTING','nestedKeyValue','getCiInfo','Processing\x20event\x20-\x20\x27','hook_run','true','\x20REQUEST\x20TO\x20','BS_TESTOPS_JWT','qWiDL','hByDO','error','fQHjQ','../../bin/utils/constants','zOfEE','ZGrnL','Authorization','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','resolve','status','message','api/v1/event','getAgentVersion','response','BS_TESTOPS_BUILD_COMPLETED','GiNWH','Hook_Start_Upload','HookRunStarted','env','BROWSERSTACK_TESTHUB_UUID','DAxRz','false','AMydU','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','AuZJN','TestRunSkipped','hErSb','sPISt','yQyFc','odYAN','projectName','1907922TMNxxH','5yilTWn','POST','356tbfrqN','BeVey','start','zAxRH','jwt','pZTYK','ERROR_INVALID_CREDENTIALS','debug','hEPCh','errorType','BzYLS','FUUnD','PkpYs','exports','success','Build\x20creation\x20successful!','ERROR_ACCESS_DENIED','event_type','includes','dBPlh','TestRunStarted','getLogTag','Test_End_Upload','stringify','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','getAccessKey','8505wQRlYt','huceM','lyacD','BS_A11Y_JWT','api/v1/builds','TgVEw','TEST_REPORTING_ANALYTICS','slSyI','Zrhdx','FUoIy','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','IwIjO','\x20retry\x20runs\x20exceeded','unJlT','application/json','lfjPv','./constants','\x20:\x20','1248856bpmdDk','../../helpers/testhub/utils','null','uuid','YGxPq','getGitMetaData','X-BSTACK-TESTOPS','BgBwJ','2454753sPQUbc','cOZdI','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','BROWSERSTACK_RERUN','frameworkName','\x20:\x20missing\x20authentication\x20token','ERROR_SDK_DEPRECATED','fDQmb','GNqjr','./utils','BROWSERSTACK_TESTHUB_JWT','max','sQrKj','../logger','GkSuo','buildDescription','2112902hmHynq','CBT_Upload','mvpij','EXCEPTION\x20IN\x20'];a143_0x5e31=function(){return _0x44a638;};return a143_0x5e31();}
|
|
1
|
+
const a144_0x4d87e9=a144_0x1771;(function(_0x5283f6,_0x3acc93){const _0x29909f=a144_0x1771,_0x202de5=_0x5283f6();while(!![]){try{const _0x230abf=parseInt(_0x29909f(0x193))/0x1+-parseInt(_0x29909f(0x18c))/0x2*(-parseInt(_0x29909f(0x15c))/0x3)+parseInt(_0x29909f(0x124))/0x4*(-parseInt(_0x29909f(0x172))/0x5)+parseInt(_0x29909f(0x116))/0x6+-parseInt(_0x29909f(0x179))/0x7+parseInt(_0x29909f(0x173))/0x8+parseInt(_0x29909f(0x12b))/0x9;if(_0x230abf===_0x3acc93)break;else _0x202de5['push'](_0x202de5['shift']());}catch(_0x565e59){_0x202de5['push'](_0x202de5['shift']());}}}(a144_0x4036,0x50614));function a144_0x1771(_0x4c6da1,_0x17bc1f){const _0x40361b=a144_0x4036();return a144_0x1771=function(_0x17716e,_0x99cfcf){_0x17716e=_0x17716e-0x10b;let _0x588fe6=_0x40361b[_0x17716e];return _0x588fe6;},a144_0x1771(_0x4c6da1,_0x17bc1f);}const bsSetupHelper=require('../helper'),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a144_0x4d87e9(0x19e)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a144_0x4d87e9(0x15b)),RequestQueueHandler=require(a144_0x4d87e9(0x178)),logger=require(a144_0x4d87e9(0x180))[a144_0x4d87e9(0x1ac)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a144_0x4d87e9(0x12a)),util=require(a144_0x4d87e9(0x146)),constants=require(a144_0x4d87e9(0x195));class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler[a144_0x4d87e9(0x13e)]();static async['launch'](_0x34fc3d,_0x18f70c){const _0x433e9e=a144_0x4d87e9,_0xa21b16={'REkZX':function(_0x12544c,_0x13535a){return _0x12544c||_0x13535a;},'zhjvB':function(_0x3602cc,_0x44efa1){return _0x3602cc===_0x44efa1;},'wKvse':function(_0x4368b2,_0x1b6c11){return _0x4368b2(_0x1b6c11);},'bveZM':_0x433e9e(0x175),'GLNQh':_0x433e9e(0x16f),'argmC':_0x433e9e(0x145),'tuDem':function(_0x1535f9,_0x2aadf6){return _0x1535f9(_0x2aadf6);},'eDVBd':function(_0x5ee872,_0x26ed68){return _0x5ee872(_0x26ed68);},'SUoiA':function(_0x199457,_0x55e85,_0x3ea688,_0x472cab,_0xf6849f){return _0x199457(_0x55e85,_0x3ea688,_0x472cab,_0xf6849f);},'vrSIW':_0x433e9e(0x1b6),'DTnqL':'api/v1/builds','pEgjj':function(_0x35dc9d,_0x3cfa99){return _0x35dc9d(_0x3cfa99);},'lcIvF':'Build\x20creation\x20successful!','bRhOI':function(_0x20dddb){return _0x20dddb();},'PDoBH':_0x433e9e(0x128),'Ryhuq':_0x433e9e(0x19c),'pvsQn':function(_0x3d5f3d,_0x2d1377){return _0x3d5f3d(_0x2d1377);},'NNVLE':_0x433e9e(0x133),'dnhrh':_0x433e9e(0x151),'TWXaD':_0x433e9e(0x177)};logger['info']('Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20'+util['inspect'](_0x34fc3d));const _0x141187=bsSetupHelper[_0x433e9e(0x14d)](_0x34fc3d),_0x4a3066=bsSetupHelper[_0x433e9e(0x13d)](_0x34fc3d),_0x2c2132=_0xa21b16['REkZX'](_0x141187,'')+':'+_0xa21b16[_0x433e9e(0x117)](_0x4a3066,'');if(_0xa21b16[_0x433e9e(0x15e)](_0x2c2132,':'))return _0xa21b16[_0x433e9e(0x122)](debug,_0xa21b16['bveZM']),process['env'][_0x433e9e(0x16b)]=_0xa21b16[_0x433e9e(0x18a)],[null,null];let _0x5245dd=![],_0x2b1c62=![];if(_0x34fc3d['browserstackAutomation']&&_0x34fc3d[_0x433e9e(0x125)])_0x2b1c62=!![];else _0x34fc3d[_0x433e9e(0x156)]&&(_0x5245dd=!![]);try{const _0x3614b6={'format':_0xa21b16['argmC'],'project_name':_0x34fc3d[_0x433e9e(0x186)]||'','name':_0x34fc3d[_0x433e9e(0x157)]||path[_0x433e9e(0x19a)](path['resolve'](process[_0x433e9e(0x14f)]())),'build_identifier':_0x34fc3d[_0x433e9e(0x13b)],'description':_0x34fc3d[_0x433e9e(0x141)]||'','start_time':new Date()[_0x433e9e(0x10e)](),'tags':_0xa21b16[_0x433e9e(0x189)](getCustomTags,_0x34fc3d),'host_info':bsSetupHelper[_0x433e9e(0x167)](),'ci_info':bsSetupHelper[_0x433e9e(0x188)](),'build_run_identifier':process[_0x433e9e(0x190)][_0x433e9e(0x164)],'failed_tests_rerun':process[_0x433e9e(0x190)][_0x433e9e(0x16c)]||![],'version_control':await bsSetupHelper[_0x433e9e(0x15a)](),'observability_version':{'frameworkName':_0x18f70c[_0x433e9e(0x17c)],'frameworkVersion':_0x18f70c['frameworkVersion'],'sdkVersion':bsSetupHelper[_0x433e9e(0x163)]()},'product_map':_0xa21b16[_0x433e9e(0x15d)](getProductMap,_0x34fc3d),'test_orchestration':_0xa21b16[_0x433e9e(0x122)](getTestOrchestrationBuildStartData,_0x34fc3d)},_0x4e084b={};_0x4e084b['username']=_0x141187,_0x4e084b[_0x433e9e(0x138)]=_0x4a3066;const _0x214aeb={'auth':_0x4e084b,'headers':_0xa21b16['eDVBd'](getDefaultHeaders,![])},_0x4335e4=await _0xa21b16[_0x433e9e(0x17b)](nodeRequest,_0xa21b16[_0x433e9e(0x11c)],_0xa21b16[_0x433e9e(0x150)],_0x3614b6,_0x214aeb);_0xa21b16[_0x433e9e(0x1b9)](debug,_0xa21b16[_0x433e9e(0x131)]);const _0x546a0d=_0x4335e4[_0x433e9e(0x10b)];_0x546a0d['build_hashed_id']&&(process[_0x433e9e(0x190)]['BROWSERSTACK_TESTHUB_UUID']=_0x546a0d[_0x433e9e(0x196)]);if(_0xa21b16[_0x433e9e(0x14a)](isTestObservabilitySession)){process['env']['BS_TESTOPS_BUILD_COMPLETED']=_0xa21b16[_0x433e9e(0x1b0)];if(_0x546a0d['jwt']){process['env']['BS_TESTOPS_JWT']=_0x546a0d[_0x433e9e(0x11e)];const _0x542233={};_0x542233['username']=_0x141187,_0x542233[_0x433e9e(0x138)]=_0x4a3066,process[_0x433e9e(0x190)][_0x433e9e(0x18f)]=JSON[_0x433e9e(0x11a)](_0x542233);}_0x546a0d['build_hashed_id']&&(process[_0x433e9e(0x190)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x546a0d[_0x433e9e(0x196)]),_0x546a0d['allow_screenshots']&&(process['env'][_0x433e9e(0x192)]=_0x546a0d[_0x433e9e(0x185)][_0x433e9e(0x16e)]());}return[_0x4335e4[_0x433e9e(0x10b)][_0x433e9e(0x11e)],_0x4335e4[_0x433e9e(0x10b)][_0x433e9e(0x196)],_0x4335e4['data']['allow_screenshots']];}catch(_0x1c041a){process[_0x433e9e(0x190)]['BROWSERSTACK_TESTHUB_UUID']=_0xa21b16['Ryhuq'],process[_0x433e9e(0x190)][_0x433e9e(0x16b)]=_0xa21b16[_0x433e9e(0x18a)],process[_0x433e9e(0x190)][_0x433e9e(0x137)]=_0xa21b16['Ryhuq'],process['env'][_0x433e9e(0x1a0)]=_0xa21b16[_0x433e9e(0x14b)],process['env'][_0x433e9e(0x192)]=_0xa21b16[_0x433e9e(0x14b)];_0x1c041a[_0x433e9e(0x1a5)]?_0xa21b16[_0x433e9e(0x189)](debug,_0x433e9e(0x13a)+_0x1c041a[_0x433e9e(0x1a5)][_0x433e9e(0x11f)]+'\x20'+_0x1c041a[_0x433e9e(0x1a5)][_0x433e9e(0x160)]+'\x20'+JSON['stringify'](_0x1c041a['response']['data'])):_0xa21b16['pvsQn'](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+(_0x1c041a[_0x433e9e(0x11b)]||_0x1c041a));if(_0x1c041a&&_0x1c041a[_0x433e9e(0x11b)]){const _0x423d1d=_0x1c041a[_0x433e9e(0x11b)];switch(_0x1c041a[_0x433e9e(0x1b5)]){case _0xa21b16[_0x433e9e(0x11d)]:logger['error'](_0x423d1d);break;case _0xa21b16[_0x433e9e(0x165)]:logger['info'](_0x423d1d);break;case _0xa21b16[_0x433e9e(0x132)]:logger[_0x433e9e(0x1a1)](_0x423d1d);break;default:logger[_0x433e9e(0x1a1)](_0x423d1d);}}else console[_0x433e9e(0x149)](_0x433e9e(0x1a7)+constants[_0x433e9e(0x1b3)]+_0x433e9e(0x171)+_0x1c041a);return[null,null,null];}}static async[a144_0x4d87e9(0x10f)](){const _0x20d01d=a144_0x4d87e9,_0x408759={'ukeOe':_0x20d01d(0x128),'czcIW':_0x20d01d(0x16f),'faEyb':function(_0x15367d,_0x18f9fb){return _0x15367d(_0x18f9fb);}},_0x3d334d=process[_0x20d01d(0x190)][_0x20d01d(0x16b)];if([_0x408759[_0x20d01d(0x147)],_0x408759[_0x20d01d(0x18b)]]['includes'](_0x3d334d))return;while([_0x408759[_0x20d01d(0x147)],_0x408759[_0x20d01d(0x18b)]][_0x20d01d(0x161)](_0x3d334d)){await _0x408759[_0x20d01d(0x152)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a144_0x4d87e9(0x127)](_0x52a5ec){const _0x49d688=a144_0x4d87e9,_0x5d05e0={};_0x5d05e0[_0x49d688(0x197)]='Test_Start_Upload',_0x5d05e0['elqyi']=_0x49d688(0x12c),_0x5d05e0['tTWXv']=_0x49d688(0x1aa),_0x5d05e0[_0x49d688(0x19f)]=_0x49d688(0x154),_0x5d05e0[_0x49d688(0x191)]=_0x49d688(0x12e),_0x5d05e0['FoiSU']='Hook_End_Upload',_0x5d05e0[_0x49d688(0x115)]=_0x49d688(0x181);const _0x5d0e9f=_0x5d05e0,_0x3c2896={};return _0x3c2896[_0x49d688(0x121)]=_0x5d0e9f['jjSta'],_0x3c2896[_0x49d688(0x17f)]=_0x5d0e9f[_0x49d688(0x1a4)],_0x3c2896[_0x49d688(0x1b4)]=_0x5d0e9f[_0x49d688(0x10c)],_0x3c2896[_0x49d688(0x168)]=_0x5d0e9f[_0x49d688(0x19f)],_0x3c2896[_0x49d688(0x1ad)]=_0x5d0e9f[_0x49d688(0x191)],_0x3c2896[_0x49d688(0x1b2)]=_0x5d0e9f[_0x49d688(0x14e)],_0x3c2896[_0x49d688(0x111)]=_0x5d0e9f[_0x49d688(0x115)],_0x3c2896[_0x52a5ec[_0x49d688(0x140)]];}static async['sendEventData'](_0x36e633,_0x518db0=0x0,_0x5d46ad=null){const _0x107135=a144_0x4d87e9,_0x2233ed={'MvFKq':function(_0x3c9eeb,_0x398eb1){return _0x3c9eeb===_0x398eb1;},'chTtt':'sendTraceZip','vEdzA':function(_0x56a902,_0x237799){return _0x56a902!==_0x237799;},'ROJCf':_0x107135(0x144),'JUleT':_0x107135(0x128),'IyuhB':function(_0x3e490e,_0x3d0383){return _0x3e490e===_0x3d0383;},'fesiC':function(_0xc21e3e,_0x163ad2,_0x4c7d07,_0x5c2fdb,_0x300ed1){return _0xc21e3e(_0x163ad2,_0x4c7d07,_0x5c2fdb,_0x300ed1);},'IHjtR':_0x107135(0x1b6),'ENlIm':function(_0x5d61bd,_0x3f60e6){return _0x5d61bd(_0x3f60e6);},'CvVtJ':function(_0x1637f4,_0x1c2fd6){return _0x1637f4!==_0x1c2fd6;},'OxYft':_0x107135(0x187),'lRBrJ':function(_0x223732,_0x138d49){return _0x223732-_0x138d49;},'zgGAI':function(_0x52f42e,_0x1b4b0e){return _0x52f42e===_0x1b4b0e;},'pVujM':_0x107135(0x19b),'CAHxA':_0x107135(0x13f),'WAJds':function(_0x1998b1,_0x2aa556){return _0x1998b1!==_0x2aa556;},'cBbvK':function(_0x14cc88,_0x52b8fe){return _0x14cc88(_0x52b8fe);},'eLKuB':_0x107135(0x1a1)};_0x2233ed[_0x107135(0x153)](_0x5d46ad,_0x2233ed[_0x107135(0x1a9)])&&logger[_0x107135(0x1ae)](_0x107135(0x1b8)+_0x36e633['logs'][0x0][_0x107135(0x1b1)]);const _0x1d5638=await this[_0x107135(0x127)](_0x36e633);let _0x2c482f=_0x36e633,_0x473ebf=EVENT_ENDPOINT;_0x2233ed['vEdzA'](_0x5d46ad,_0x2233ed[_0x107135(0x1a9)])&&this[_0x107135(0x148)]['start']();const {shouldProceed:_0x521c62,proceedWithData:_0x4114cb,proceedWithUrl:_0xa3f12d}=this[_0x107135(0x148)][_0x107135(0x134)](_0x36e633);if(!_0x521c62)return;else _0x4114cb&&(_0x2c482f=_0x4114cb,_0x473ebf=_0xa3f12d);const _0x53fa2f={};_0x53fa2f['Authorization']=_0x107135(0x194)+process['env'][_0x107135(0x126)],_0x53fa2f[_0x107135(0x112)]=_0x2233ed['ROJCf'],_0x53fa2f[_0x107135(0x13c)]=_0x2233ed[_0x107135(0x136)];const _0x247d65={};_0x247d65[_0x107135(0x18d)]=_0x53fa2f;const _0x398d15=_0x247d65;let _0x9d1381;try{_0x2233ed['IyuhB'](_0x5d46ad,_0x2233ed[_0x107135(0x1a9)])?(logger[_0x107135(0x1ae)](_0x107135(0x120)+_0x36e633?.[_0x107135(0x174)][0x0]?.[_0x107135(0x1b1)]),_0x9d1381=await _0x2233ed['fesiC'](asyncAwaitNodeReq,_0x2233ed[_0x107135(0x169)],_0x473ebf,_0x2c482f,_0x398d15),logger[_0x107135(0x1ae)](_0x107135(0x166)+_0x36e633?.['logs'][0x0]?.[_0x107135(0x1b1)])):_0x9d1381=await _0x2233ed['fesiC'](nodeRequest,_0x2233ed[_0x107135(0x169)],_0x473ebf,_0x2c482f,_0x398d15);if(_0x9d1381[_0x107135(0x10b)]['error']){const _0x2a035f={};_0x2a035f[_0x107135(0x11b)]=_0x9d1381[_0x107135(0x10b)][_0x107135(0x1a1)];throw _0x2a035f;}else{_0x2233ed['ENlIm'](debug,(_0x2233ed['CvVtJ'](_0x473ebf,this[_0x107135(0x148)]['eventUrl'])?_0x1d5638:_0x2233ed[_0x107135(0x18e)])+'['+_0x518db0+_0x107135(0x130)),this[_0x107135(0x148)][_0x107135(0x199)]=Math['max'](0x0,_0x2233ed[_0x107135(0x143)](this[_0x107135(0x148)][_0x107135(0x199)],_0x2233ed[_0x107135(0x176)](_0x473ebf,_0x2233ed[_0x107135(0x129)])?0x1:_0x2c482f[_0x107135(0x158)]));const _0xcc3c9={};return _0xcc3c9[_0x107135(0x11f)]=_0x2233ed[_0x107135(0x113)],_0xcc3c9['message']='',_0xcc3c9;}}catch(_0x510c74){_0x510c74[_0x107135(0x1a5)]?_0x2233ed[_0x107135(0x16d)](debug,'EXCEPTION\x20IN\x20'+(_0x2233ed[_0x107135(0x118)](_0x473ebf,this[_0x107135(0x148)]['eventUrl'])?_0x1d5638:_0x2233ed[_0x107135(0x18e)])+'\x20REQUEST\x20TO\x20'+constants[_0x107135(0x1b3)]+_0x107135(0x114)+_0x510c74[_0x107135(0x1a5)][_0x107135(0x11f)]+'\x20'+_0x510c74[_0x107135(0x1a5)][_0x107135(0x160)]+'\x20'+util['format'](_0x510c74[_0x107135(0x1a5)][_0x107135(0x10b)])):_0x2233ed['cBbvK'](debug,_0x107135(0x184)+(_0x2233ed[_0x107135(0x118)](_0x473ebf,this[_0x107135(0x148)][_0x107135(0x135)])?_0x1d5638:_0x2233ed[_0x107135(0x18e)])+_0x107135(0x182)+constants[_0x107135(0x1b3)]+'\x20:\x20'+util[_0x107135(0x110)](_0x510c74));this[_0x107135(0x148)][_0x107135(0x199)]=Math[_0x107135(0x19d)](0x0,_0x2233ed['lRBrJ'](this['requestQueueHandler'][_0x107135(0x199)],_0x2233ed[_0x107135(0x153)](_0x473ebf,_0x2233ed[_0x107135(0x129)])?0x1:_0x2c482f[_0x107135(0x158)]));const _0x17d685={};return _0x17d685[_0x107135(0x11f)]=_0x2233ed['eLKuB'],_0x17d685[_0x107135(0x11b)]=_0x510c74['message']||(_0x510c74['response']?_0x510c74['response'][_0x107135(0x11f)]+':'+_0x510c74[_0x107135(0x1a5)][_0x107135(0x160)]:_0x510c74),_0x17d685;}}static async[a144_0x4d87e9(0x12f)](_0x382be4,_0x3d3375=0x0){const _0x57caa0=a144_0x4d87e9,_0x402575={'KlGrM':function(_0x23894c,_0x55d778){return _0x23894c+_0x55d778;},'WrYua':function(_0x5ea74a,_0x22628f){return _0x5ea74a(_0x22628f);},'EqkxE':_0x57caa0(0x183),'Lkqtd':_0x57caa0(0x119),'JgXVw':_0x57caa0(0x14c),'LgKHo':function(_0x4f6d76,_0x16ed7a,_0x10c38c){return _0x4f6d76(_0x16ed7a,_0x10c38c);},'IiKrN':_0x57caa0(0x12f),'oEleA':function(_0x3ac459,_0x205c28){return _0x3ac459===_0x205c28;},'IbneD':function(_0x5b3666,_0x17537d){return _0x5b3666!==_0x17537d;},'KRZBT':_0x57caa0(0x19c),'gdxgn':function(_0x3fe375,_0x1d311e){return _0x3fe375===_0x1d311e;},'SOWFD':'true','GfDZL':function(_0x4fa73f){return _0x4fa73f();},'YcEiB':function(_0x41faad,_0x4e996f){return _0x41faad-_0x4e996f;},'mzXGB':_0x57caa0(0x1a1),'JnGWS':_0x57caa0(0x16a),'AfZiC':function(_0x18a517,_0x36dade){return _0x18a517>=_0x36dade;},'oZSOU':function(_0x4e9a35,_0x5033de){return _0x4e9a35(_0x5033de);},'baHgZ':'Retry\x20runs\x20exceeded','GBzZl':function(_0x23ed0a,_0x319a82){return _0x23ed0a!==_0x319a82;},'AyHuB':_0x57caa0(0x16f)},_0x27796e=this[_0x57caa0(0x127)](_0x382be4);_0x402575[_0x57caa0(0x17d)](trace,'Processing\x20event\x20-\x20\x27'+_0x382be4['event_type']+'\x27\x20'+(bsSetupHelper[_0x57caa0(0x1b7)](_0x382be4,[_0x402575['EqkxE'],_0x402575['Lkqtd']])||bsSetupHelper['nestedKeyValue'](_0x382be4,[_0x402575['JgXVw'],_0x402575[_0x57caa0(0x17e)]])));if(!_0x402575['LgKHo'](shouldProcessEventForTesthub,_0x382be4[_0x57caa0(0x140)],_0x402575['IiKrN']))return;_0x402575[_0x57caa0(0x1a8)](_0x3d3375,0x0)&&process[_0x57caa0(0x190)][_0x57caa0(0x126)]&&_0x402575['IbneD'](process[_0x57caa0(0x190)]['BROWSERSTACK_TESTHUB_JWT'],_0x402575['KRZBT'])&&(this['requestQueueHandler'][_0x57caa0(0x199)]+=0x1);if(_0x402575[_0x57caa0(0x1ba)](process['env'][_0x57caa0(0x16b)],_0x402575['SOWFD'])||process[_0x57caa0(0x190)][_0x57caa0(0x1a3)]||_0x402575[_0x57caa0(0x162)](isPercyBuild)){if(_0x402575[_0x57caa0(0x1a8)](process[_0x57caa0(0x190)][_0x57caa0(0x126)],_0x402575[_0x57caa0(0x123)])){_0x402575[_0x57caa0(0x17d)](debug,_0x57caa0(0x184)+_0x27796e+_0x57caa0(0x182)+constants[_0x57caa0(0x1b3)]+_0x57caa0(0x15f)),this[_0x57caa0(0x148)][_0x57caa0(0x199)]=Math[_0x57caa0(0x19d)](0x0,_0x402575[_0x57caa0(0x1ab)](this[_0x57caa0(0x148)][_0x57caa0(0x199)],0x1));const _0x306d27={};return _0x306d27['status']=_0x402575[_0x57caa0(0x139)],_0x306d27['message']=_0x402575[_0x57caa0(0x17a)],_0x306d27;}return await this[_0x57caa0(0x10d)](_0x382be4,_0x3d3375);}else{if(_0x402575[_0x57caa0(0x1a2)](_0x3d3375,0x5)){_0x402575[_0x57caa0(0x142)](debug,_0x57caa0(0x184)+_0x27796e+_0x57caa0(0x182)+constants['TEST_REPORTING_ANALYTICS']+_0x57caa0(0x198)+_0x27796e+_0x57caa0(0x170));_0x402575[_0x57caa0(0x1af)](process[_0x57caa0(0x190)][_0x57caa0(0x126)],_0x402575[_0x57caa0(0x123)])&&(this[_0x57caa0(0x148)]['pendingUploads']=Math[_0x57caa0(0x19d)](0x0,_0x402575[_0x57caa0(0x1ab)](this[_0x57caa0(0x148)]['pendingUploads'],0x1)));const _0x312b68={};return _0x312b68[_0x57caa0(0x11f)]=_0x402575[_0x57caa0(0x139)],_0x312b68[_0x57caa0(0x11b)]=_0x402575[_0x57caa0(0x12d)],_0x312b68;}else _0x402575['GBzZl'](process[_0x57caa0(0x190)]['BS_TESTOPS_BUILD_COMPLETED'],_0x402575[_0x57caa0(0x155)])&&_0x402575['LgKHo'](setTimeout,()=>{const _0x2c13bb=_0x57caa0;this[_0x2c13bb(0x12f)](_0x382be4,_0x402575[_0x2c13bb(0x1a6)](_0x3d3375,0x1));},0x3e8);}}}function a144_0x4036(){const _0x24d817=['./constants','296685MHlWRJ','eDVBd','zhjvB','\x20:\x20missing\x20authentication\x20token','statusText','includes','GfDZL','getAgentVersion','BROWSERSTACK_BUILD_RUN_IDENTIFIER','dnhrh','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','getHostInfo','LogCreated','IHjtR','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','BS_TESTOPS_BUILD_COMPLETED','BROWSERSTACK_RERUN','ENlIm','toString','false','\x20retry\x20runs\x20exceeded','\x20failed\x20due\x20to\x20','1735UymJpg','851120eJzxxs','logs','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','zgGAI','ERROR_SDK_DEPRECATED','./requestQueueHandler','4571315dRFQwJ','JnGWS','SUoiA','frameworkName','WrYua','Lkqtd','TestRunFinished','../logger','CBT_Upload','\x20REQUEST\x20TO\x20','test_run','EXCEPTION\x20IN\x20','allow_screenshots','projectName','Batch-Queue','getCiInfo','tuDem','GLNQh','czcIW','4eIgxoe','headers','OxYft','CREDENTIALS_FOR_CRASH_REPORTING','env','LZnrO','BS_TESTOPS_ALLOW_SCREENSHOTS','132281NGxZZq','Bearer\x20','../../bin/utils/constants','build_hashed_id','jjSta','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','pendingUploads','basename','api/v1/event','null','max','./utils','wdnul','BS_TESTOPS_BUILD_HASHED_ID','error','AfZiC','BS_A11Y_JWT','elqyi','response','KlGrM','Data\x20upload\x20to\x20BrowserStack\x20','oEleA','chTtt','Test_Skipped_Upload','YcEiB','winstonLogger','HookRunStarted','debug','IbneD','PDoBH','test_run_uuid','HookRunFinished','TEST_REPORTING_ANALYTICS','TestRunSkipped','errorType','POST','nestedKeyValue','Sending\x20trace\x20zip\x20for\x20test:\x20','pEgjj','gdxgn','data','tTWXv','sendEventData','toISOString','waitForBuildStatus','format','CBTSessionCreated','Content-Type','CAHxA','\x20:\x20','Gesje','273660YhZVCU','REkZX','WAJds','uuid','stringify','message','vrSIW','NNVLE','jwt','status','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','TestRunStarted','wKvse','KRZBT','7252WjWqJM','app','BROWSERSTACK_TESTHUB_JWT','getLogTag','true','pVujM','../../helpers/testhub/utils','10163889wPnJTz','Test_End_Upload','baHgZ','Hook_Start_Upload','uploadEventData',']\x20event\x20successful!','lcIvF','TWXaD','ERROR_INVALID_CREDENTIALS','add','eventUrl','JUleT','BS_TESTOPS_JWT','password','mzXGB','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','buildIdentifier','X-BSTACK-TESTOPS','getAccessKey','getInstance','success','event_type','buildDescription','oZSOU','lRBrJ','application/json','json','util','ukeOe','requestQueueHandler','info','bRhOI','Ryhuq','hook_run','getUserName','FoiSU','cwd','DTnqL','ERROR_ACCESS_DENIED','faEyb','MvFKq','Log_Upload','AyHuB','browserstackAutomation','buildName','length','exports','getGitMetaData'];a144_0x4036=function(){return _0x24d817;};return a144_0x4036();}module[a144_0x4d87e9(0x159)]=SessionHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a144_0x236029=a144_0x853e;(function(_0x22af0f,_0x7c6d19){const _0x4bc0ec=a144_0x853e,_0x1c9289=_0x22af0f();while(!![]){try{const _0x1a9399=parseInt(_0x4bc0ec(0x1f9))/0x1*(-parseInt(_0x4bc0ec(0x1be))/0x2)+parseInt(_0x4bc0ec(0x282))/0x3+-parseInt(_0x4bc0ec(0x1f1))/0x4+-parseInt(_0x4bc0ec(0x17d))/0x5*(parseInt(_0x4bc0ec(0x284))/0x6)+-parseInt(_0x4bc0ec(0x1bc))/0x7*(-parseInt(_0x4bc0ec(0x255))/0x8)+-parseInt(_0x4bc0ec(0x264))/0x9+-parseInt(_0x4bc0ec(0x225))/0xa*(-parseInt(_0x4bc0ec(0x23e))/0xb);if(_0x1a9399===_0x7c6d19)break;else _0x1c9289['push'](_0x1c9289['shift']());}catch(_0x39c3f1){_0x1c9289['push'](_0x1c9289['shift']());}}}(a144_0x2dc4,0xbcc1e));const fs=require('fs'),path=require('path'),gitLastCommit=require('git-last-commit'),getRepoInfo=require(a144_0x236029(0x1e7)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require('./constants'),http=require(a144_0x236029(0x231)),https=require(a144_0x236029(0x1fa)),child_process=require(a144_0x236029(0x198)),getos=require('getos'),os=require('os'),logger=require('../logger')[a144_0x236029(0x234)],buildLogger=require(a144_0x236029(0x28d))['buildLogger'],bsSetupHelper=require(a144_0x236029(0x276)),requestSpy=require(a144_0x236029(0x20e)),constants=require(a144_0x236029(0x1a5)),logPatcher=require('../../bin/utils/logPatcher'),util=require(a144_0x236029(0x28e)),{fileLogger}=require(a144_0x236029(0x28d)),PerformanceTester=require(a144_0x236029(0x1fd)),{isFunction}=require(a144_0x236029(0x259)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a144_0x236029(0x221)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a144_0x236029(0x268));exports[a144_0x236029(0x23d)]=_0x2a56c1=>{const _0x573c33=a144_0x236029;fileLogger[_0x573c33(0x20c)]('['+new Date()[_0x573c33(0x1c6)]()+_0x573c33(0x20b)+constants[_0x573c33(0x228)]+'\x20]\x20'+_0x2a56c1);},exports[a144_0x236029(0x181)]=_0x4cfce4=>{const _0x32778b=a144_0x236029,_0x686d62={};_0x686d62[_0x32778b(0x26f)]=function(_0x441250,_0x2a14d2){return _0x441250===_0x2a14d2;},_0x686d62['mHDml']=_0x32778b(0x21b),_0x686d62[_0x32778b(0x1c3)]=function(_0x1f5a58,_0x44de83){return _0x1f5a58===_0x44de83;},_0x686d62[_0x32778b(0x211)]=function(_0x1311e4,_0x57264b){return _0x1311e4===_0x57264b;};const _0x42374f=_0x686d62;fileLogger[_0x32778b(0x181)]('['+new Date()[_0x32778b(0x1c6)]()+_0x32778b(0x20b)+constants[_0x32778b(0x228)]+_0x32778b(0x1a3)+_0x4cfce4),(_0x42374f[_0x32778b(0x26f)](process['env'][_0x32778b(0x19d)],_0x42374f[_0x32778b(0x27f)])||_0x42374f[_0x32778b(0x26f)](process[_0x32778b(0x24d)][_0x32778b(0x19d)],'1')||_0x42374f[_0x32778b(0x1c3)](process[_0x32778b(0x24d)][_0x32778b(0x279)],_0x42374f[_0x32778b(0x27f)])||_0x42374f[_0x32778b(0x211)](process[_0x32778b(0x24d)][_0x32778b(0x279)],'1'))&&consoleHolder[_0x32778b(0x263)]('\x0a['+new Date()['toISOString']()+'][\x20'+constants[_0x32778b(0x228)]+_0x32778b(0x1a3)+_0x4cfce4+'\x0a');};const a144_0x252832={};a144_0x252832['keepAlive']=!![],a144_0x252832[a144_0x236029(0x17f)]=0xea60,a144_0x252832[a144_0x236029(0x1d6)]=0x2,a144_0x252832[a144_0x236029(0x1bd)]=0x2;const httpKeepAliveAgent=new http[(a144_0x236029(0x240))](a144_0x252832),a144_0x356471={};function a144_0x2dc4(){const _0x77a279=['yFoeS','eNnwr','bKxEF','yTWOt','WOYCU','agent','toISOString','vkQgW','bstack:options','getBrowserName','toString','shouldReRunObservabilityTests','removeAnsiColors','capabilities','backtrace','HUB_URL_REGEX','OS\x20X','then','match','ckOMY','application/json','MvsvI','maxSockets','error','lQDCF','CODECEPT','Nzlfn','IquKF','relative','sleep','darwin','join','format','qPsSu','__cloud_provider___','platformVersion','getPlatformDetails','getSession','annotate','git-repo-info','filter','pid','isTestObservabilitySession','sendPlatformDetails','LrKzO','\x20test\x20instance\x20:\x20','Authorization','getPlatform','dzxkr','5154624ZlhvpK','MvDOb','browserstack','length','win32','getCustomTags','qwIVJ','uIHDa','638QwgfAU','https','uRzRl','platform','../performance/performance-tester','logs','maGjK','RdTXE','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','BROWSERSTACK_TEST_REPORTING','lloms','ATS_HUB_URL_REGEX','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','cWBrt','CODECEPT_CUCUMBER','getPlatformVersion','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','dist','][\x20','silly','zRKdm','../../helpers/request-spy','null','HMGts','usExY','rwnJZ','LJpXj','LlquP','bs:addLog:','now','oMScO','hostname','startsWith','push','true','irkGa','\x20to\x20view\x20accessibility\x20report.\x0a','printA11yBuildLink','WMwwS','\x20]\x20Build\x20Not\x20Found\x20%s','../performance/constants','uSuac','gKAxy','oWNrt','10KsTxdg','RDoLF','BROWSERSTACK_TEST_OBSERVABILITY','TEST_REPORTING_ANALYTICS','addRequestSpy','oLipm','app','getBrowserVersion','undefined','pUKDx','includes','host','http','X-BSTACK-TESTOPS','Linux','winstonLogger','headers','GxwbI','O11yHashedID','formData','Error\x20in\x20importing\x20windows-release\x20','keepAlive','ZFITe','newman','trace','35035308tWlJGz','Uploading\x20trace\x20logs\x20to:\x20','Agent','isUndefined','O11Y_URL','GhOrS','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','xilwS','app-automate','YkNpM','PUPPETEER','TOGNM','QMZZp','bkDpu','test_run_uuid','env','TEST_OBSERVABILITY_BUILD_TAG','kLkUk','getPackageVersion','BS_TESTOPS_BUILD_HASHED_ID','PathHelper','/builds/','qcpEW','405704kRjpZw','PLAYWRIGHT','json','catch','lodash','PwrCz','Visit\x20','isArray','body','yflSm','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','[%s][\x20Accessibility\x20]\x20Error\x20printing\x20accessibility\x20build\x20link\x20%s','parseFileNames','nodeRequest','log','10280700DmtsBB','CUSTOM_TAG','IUlAZ','JDCol','../../../src/bin/utils/constants','keys','config','getUserName','uWaYX','iHTMu','readConfig','RmDQW','Content-Type','NUeZq','MOCHA','windows-release','jest','PRINT_BUILDLINK','../helper','execSync','fOaJl','BROWSERSTACK_OBSERVABILITY_DEBUG','stringify','AWuGt','TAEGl','A11yEnabled','dMhrT','mHDml','DAhLG','xTRec','574965BaLLcm','wrsFV','5244prRULY','codeceptjs','TEST_ATTACHMENT','getFailureType','fGUtx','oAtQF','YSlrl','LLRYp','fromEntries','../logger','util','err','HriFs','BROWSERSTACK_RERUN_TESTS','prefix','FrKHp','YNfVX','ZZklb','parse','tKpaL','puppeteer','EhDrz','release','iwMyj','BROWSERSTACK_PRODUCT_MAP','BROWSERSTACK_TESTHUB_JWT','getBrowserStackConfig','buildTag','turboscale','failureData','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','ynWgV','turboScaleGridDetails','info','https://accessibility.browserstack.com/automated-tests/projects/p/builds/b/1?thBuildId=','TZior','cwd','BEtVe','\x20:\x20','map','[%s][\x20','appium:app','2985FMyJYz','eDJZd','timeout','zgfBK','debug','BlixW','modifyReqForTraceUpload','patchConsoleLogger','nWBrw','stack','muXDQ','data','RSaNB','AssertionError','juuht','trim','hYSJY','TEST_REPORTING_BUILD_TAG','rsXjz','fRBxY','getAccessKey','hHAmj','asyncAwaitNodeReq','BROWSERSTACK_CONFIG_FILE_PATH','message','Windows','bKyMB','child_process','test','kDFbA','Ytvqr','customTag','BROWSERSTACK_TEST_REPORTING_DEBUG','split','getUserCredentials','toJSON','prefixTestPath','xAfpJ','\x20]\x20','BROWSERSTACK_TEST_OBSERVABILITY_YML','../../bin/utils/constants','extractValuesWithRegexKeyMatch','getBuildTags','isInternalHook','IhPjt','replace','OBNlo','getCapabilities','HOhsS','getObservabilityLinkedProductName','mocha','JEST','relativeTestFilePath','forEach','ObservabilitySync:','printBuildLink','fKwdI','ujWKL','TBGeq','BROWSERSTACK_ACCESSIBILITY','CUCUMBER','nVuGj','emit','91Jirkit','maxTotalSockets','972EZtYAy','url'];a144_0x2dc4=function(){return _0x77a279;};return a144_0x2dc4();}a144_0x356471['keepAlive']=!![],a144_0x356471[a144_0x236029(0x17f)]=0xea60,a144_0x356471[a144_0x236029(0x1d6)]=0x2,a144_0x356471[a144_0x236029(0x1bd)]=0x2;const httpsKeepAliveAgent=new https['Agent'](a144_0x356471),a144_0x9ce07f={};function a144_0x853e(_0x46c8c0,_0x446f34){const _0x2dc4d9=a144_0x2dc4();return a144_0x853e=function(_0x853e6,_0x44cc86){_0x853e6=_0x853e6-0x162;let _0x166929=_0x2dc4d9[_0x853e6];return _0x166929;},a144_0x853e(_0x46c8c0,_0x446f34);}a144_0x9ce07f['keepAlive']=!![],a144_0x9ce07f['timeout']=0xea60,a144_0x9ce07f[a144_0x236029(0x1d6)]=0x2,a144_0x9ce07f[a144_0x236029(0x1bd)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a144_0x236029(0x240))](a144_0x9ce07f),a144_0x3e587c={};a144_0x3e587c[a144_0x236029(0x23a)]=!![],a144_0x3e587c[a144_0x236029(0x17f)]=0xea60,a144_0x3e587c[a144_0x236029(0x1d6)]=0x2,a144_0x3e587c[a144_0x236029(0x1bd)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a144_0x236029(0x240))](a144_0x3e587c);exports[a144_0x236029(0x1cb)]=()=>{const _0x499f1d=a144_0x236029,_0x4faa33={};_0x4faa33[_0x499f1d(0x176)]=function(_0x3f3002,_0x4f39a5){return _0x3f3002!==_0x4f39a5;},_0x4faa33['oMScO']='null';const _0x4b5da2=_0x4faa33;return process[_0x499f1d(0x24d)][_0x499f1d(0x291)]&&_0x4b5da2[_0x499f1d(0x176)](process[_0x499f1d(0x24d)][_0x499f1d(0x291)],_0x4b5da2[_0x499f1d(0x217)])?!![]:![];},exports[a144_0x236029(0x1ea)]=()=>{const _0x3b90e7=a144_0x236029,_0x2c0235={};_0x2c0235['juuht']=function(_0x452c0c,_0x56ce39){return _0x452c0c===_0x56ce39;},_0x2c0235[_0x3b90e7(0x190)]=_0x3b90e7(0x21b),_0x2c0235[_0x3b90e7(0x278)]=function(_0x4473bc,_0xfd38b9){return _0x4473bc===_0xfd38b9;};const _0x489af5=_0x2c0235;let _0x34c93c=!![];return process[_0x3b90e7(0x24d)][_0x3b90e7(0x1a4)]&&(_0x34c93c=_0x489af5['juuht'](process[_0x3b90e7(0x24d)]['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0x489af5[_0x3b90e7(0x190)])),process[_0x3b90e7(0x24d)][_0x3b90e7(0x227)]&&(_0x34c93c=_0x489af5[_0x3b90e7(0x278)](process[_0x3b90e7(0x24d)]['BROWSERSTACK_TEST_OBSERVABILITY'],_0x489af5[_0x3b90e7(0x190)])),process[_0x3b90e7(0x24d)]['BROWSERSTACK_TEST_REPORTING']&&(_0x34c93c=_0x489af5[_0x3b90e7(0x18b)](process[_0x3b90e7(0x24d)][_0x3b90e7(0x202)],_0x489af5[_0x3b90e7(0x190)])),_0x34c93c;},exports[a144_0x236029(0x261)]=_0x1c74fc=>{const _0x349bbc=a144_0x236029;if(bsSetupHelper[_0x349bbc(0x241)](_0x1c74fc))return undefined;try{return _0x1c74fc[_0x349bbc(0x18c)]()[_0x349bbc(0x19e)](',');}catch(_0x3b5876){return undefined;}},exports[a144_0x236029(0x1b4)]=()=>{const _0x19da7e=a144_0x236029,_0x30a775={'RSaNB':function(_0xe44806,_0x14b508){return _0xe44806(_0x14b508);},'gKAxy':'../../bin/v2/browserstackCLI','zgfBK':function(_0x397b4b,_0x2446c7){return _0x397b4b!==_0x2446c7;},'GxwbI':_0x19da7e(0x20f),'bKxEF':function(_0x4e248b,_0x1a9530){return _0x4e248b!==_0x1a9530;},'GhOrS':_0x19da7e(0x22d),'nWBrw':function(_0x122eb0,_0x30da78){return _0x122eb0===_0x30da78;},'PwrCz':'true','zRKdm':function(_0x54bba4,_0x441325){return _0x54bba4&&_0x441325;}};return PerformanceTester['measureWrapper'](PerformanceO11yEvents[_0x19da7e(0x275)],async()=>{const _0x1753ca=_0x19da7e;try{const _0x29812b=_0x30a775[_0x1753ca(0x189)](require,_0x30a775[_0x1753ca(0x223)]);if(_0x29812b[_0x1753ca(0x237)]){const _0x3385b1=_0x1753ca(0x25b)+O11Y_URL+_0x1753ca(0x253)+_0x29812b[_0x1753ca(0x237)]+_0x1753ca(0x209);buildLogger[_0x1753ca(0x174)](_0x3385b1),exports['printA11yBuildLink'](_0x29812b[_0x1753ca(0x237)],_0x29812b[_0x1753ca(0x27d)]);return;}if(process[_0x1753ca(0x24d)][_0x1753ca(0x251)]&&_0x30a775[_0x1753ca(0x180)](process[_0x1753ca(0x24d)][_0x1753ca(0x251)],_0x30a775[_0x1753ca(0x236)])&&_0x30a775[_0x1753ca(0x1c2)](process[_0x1753ca(0x24d)][_0x1753ca(0x251)],_0x30a775[_0x1753ca(0x243)])){const _0x461ee9=_0x1753ca(0x25b)+constants[_0x1753ca(0x242)]+_0x1753ca(0x253)+process[_0x1753ca(0x24d)][_0x1753ca(0x251)]+_0x1753ca(0x209);buildLogger[_0x1753ca(0x174)](_0x461ee9);const _0x5ed895=_0x30a775[_0x1753ca(0x185)](process['env'][_0x1753ca(0x1b8)],_0x30a775[_0x1753ca(0x25a)]);let _0x13921e=![];try{const _0x3d6628=JSON[_0x1753ca(0x165)](process[_0x1753ca(0x24d)][_0x1753ca(0x16b)]||'{}');_0x13921e=_0x30a775['nWBrw'](_0x3d6628['app_automate'],!![]);}catch(_0x4cc0b1){}exports[_0x1753ca(0x21e)](process[_0x1753ca(0x24d)][_0x1753ca(0x251)],_0x30a775[_0x1753ca(0x20d)](_0x5ed895,!_0x13921e));}}catch(_0x379f00){logger['error'](util['format'](_0x1753ca(0x17b)+constants[_0x1753ca(0x228)]+_0x1753ca(0x220),new Date()['toISOString'](),_0x379f00[_0x1753ca(0x186)]||_0x379f00[_0x1753ca(0x195)]||_0x379f00));}})();},exports[a144_0x236029(0x21e)]=(_0x33fb2b,_0x3c5b1d)=>{const _0x50d61e=a144_0x236029,_0x1a237d={};_0x1a237d[_0x50d61e(0x271)]=function(_0x1199ec,_0x5ce753){return _0x1199ec&&_0x5ce753;},_0x1a237d[_0x50d61e(0x168)]=_0x50d61e(0x260);const _0x2bd836=_0x1a237d;try{if(_0x2bd836[_0x50d61e(0x271)](_0x3c5b1d,_0x33fb2b)){const _0x1df3be=_0x50d61e(0x175)+_0x33fb2b,_0x5c63a3=_0x50d61e(0x25b)+_0x1df3be+_0x50d61e(0x21d);buildLogger[_0x50d61e(0x174)](_0x5c63a3);}}catch(_0xd3b0ff){logger[_0x50d61e(0x1d7)](util['format'](_0x2bd836[_0x50d61e(0x168)],new Date()[_0x50d61e(0x1c6)](),_0xd3b0ff[_0x50d61e(0x186)]||_0xd3b0ff[_0x50d61e(0x195)]||_0xd3b0ff));}},exports[a144_0x236029(0x287)]=_0x5c9955=>{const _0x47f3ea=a144_0x236029,_0x1f7de1={};_0x1f7de1['bKyMB']=_0x47f3ea(0x18a),_0x1f7de1['yflSm']='Test\x20timeout\x20of',_0x1f7de1[_0x47f3ea(0x1f0)]='TimeoutError',_0x1f7de1[_0x47f3ea(0x192)]='UnhandledError';const _0x5b79d3=_0x1f7de1;if(!_0x5c9955)return null;const _0x724286=_0x5c9955[_0x47f3ea(0x1ca)]();if(_0x724286[_0x47f3ea(0x1d2)](/AssertionError/))return _0x5b79d3[_0x47f3ea(0x197)];if(_0x724286['match'](/TimeoutError/)||_0x724286[_0x47f3ea(0x219)](_0x5b79d3[_0x47f3ea(0x25e)])||_0x724286['match'](/Timeout.*exceeded/i))return _0x5b79d3[_0x47f3ea(0x1f0)];return _0x5b79d3['hHAmj'];},exports['getFrameworkVersion']=_0x338229=>{const _0x5d3c7e=a144_0x236029,_0x58927f={};_0x58927f[_0x5d3c7e(0x1d3)]=_0x5d3c7e(0x1af),_0x58927f[_0x5d3c7e(0x203)]='@playwright/test',_0x58927f[_0x5d3c7e(0x245)]=_0x5d3c7e(0x285),_0x58927f['LrKzO']=_0x5d3c7e(0x274),_0x58927f['JFpyk']='@cucumber/cucumber',_0x58927f['fGUtx']='puppeteer-core',_0x58927f['bkDpu']=_0x5d3c7e(0x167),_0x58927f['MvDOb']=_0x5d3c7e(0x23c);const _0x341c89=_0x58927f;let _0x1311ff=null;switch(_0x338229){case FRAMEWORKS[_0x5d3c7e(0x272)]:_0x1311ff=bsSetupHelper[_0x5d3c7e(0x250)](_0x341c89[_0x5d3c7e(0x1d3)]);break;case FRAMEWORKS[_0x5d3c7e(0x256)]:_0x1311ff=bsSetupHelper[_0x5d3c7e(0x250)](_0x341c89[_0x5d3c7e(0x203)]);break;case FRAMEWORKS[_0x5d3c7e(0x1d9)]:case FRAMEWORKS[_0x5d3c7e(0x207)]:_0x1311ff=bsSetupHelper[_0x5d3c7e(0x250)](_0x341c89[_0x5d3c7e(0x245)]);break;case FRAMEWORKS[_0x5d3c7e(0x1b0)]:_0x1311ff=bsSetupHelper['getPackageVersion'](_0x341c89[_0x5d3c7e(0x1ec)]);break;case FRAMEWORKS[_0x5d3c7e(0x1b9)]:_0x1311ff=bsSetupHelper['getPackageVersion'](_0x341c89['JFpyk']);break;case FRAMEWORKS[_0x5d3c7e(0x248)]:_0x1311ff=bsSetupHelper[_0x5d3c7e(0x250)](_0x341c89[_0x5d3c7e(0x288)])||bsSetupHelper['getPackageVersion'](_0x341c89[_0x5d3c7e(0x24b)]);break;case FRAMEWORKS['NEWMAN']:_0x1311ff=bsSetupHelper[_0x5d3c7e(0x250)](_0x341c89[_0x5d3c7e(0x1f2)]);break;default:break;}return _0x1311ff;},exports[a144_0x236029(0x16d)]=_0x2cf896=>{const _0xc8bf70=a144_0x236029;let _0x47ae68=null;switch(_0x2cf896){case FRAMEWORKS[_0xc8bf70(0x256)]:_0x47ae68=process[_0xc8bf70(0x24d)][_0xc8bf70(0x194)];break;}if(!_0x47ae68)return;return bsSetupHelper[_0xc8bf70(0x26e)](_0x47ae68,![]);},exports[a144_0x236029(0x19f)]=_0x502132=>{const _0x54ba21=a144_0x236029;return{'username':bsSetupHelper[_0x54ba21(0x26b)](_0x502132),'accessKey':bsSetupHelper[_0x54ba21(0x191)](_0x502132)};},exports['modifyReqForTraceUpload']=(_0x31c890,_0x30bde1)=>{const _0x26391a=a144_0x236029,_0x31953c={};_0x31953c['vkQgW']='4|0|1|5|3|2',_0x31953c[_0x26391a(0x28a)]='LogCreated',_0x31953c[_0x26391a(0x213)]=_0x26391a(0x286);const _0x2f593b=_0x31953c,_0x15d77e=_0x2f593b[_0x26391a(0x1c7)]['split']('|');let _0x5ecfac=0x0;while(!![]){switch(_0x15d77e[_0x5ecfac++]){case'0':if(!_0x31c890[_0x26391a(0x25d)][0x0]||!_0x31c890[_0x26391a(0x25d)][0x0]['logs']||!_0x31c890[_0x26391a(0x25d)][0x0][_0x26391a(0x1fe)][_0x26391a(0x1f4)])return;continue;case'1':_0x31c890[_0x26391a(0x238)]={'data':_0x31c890[_0x26391a(0x25d)][0x0][_0x26391a(0x1fe)][0x0][_0x26391a(0x188)],'test_run_uuid':_0x31c890[_0x26391a(0x25d)][0x0][_0x26391a(0x1fe)][0x0][_0x26391a(0x24c)],'event_type':_0x2f593b[_0x26391a(0x28a)],'kind':_0x2f593b[_0x26391a(0x213)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x26391a(0x1c6)](),'fileName':_0x31c890[_0x26391a(0x25d)][0x0][_0x26391a(0x1fe)][0x0]['fileName']};continue;case'2':delete _0x30bde1[_0x26391a(0x235)];continue;case'3':delete _0x31c890[_0x26391a(0x257)];continue;case'4':if(!_0x31c890[_0x26391a(0x25d)]||!Array[_0x26391a(0x25c)](_0x31c890[_0x26391a(0x25d)]))return;continue;case'5':delete _0x31c890[_0x26391a(0x25d)];continue;}break;}},exports[a144_0x236029(0x193)]=async(_0x23360c,_0x1be77d,_0x2834d6,_0x5a96eb,_0x365f5a=!![])=>{const _0x3d4893=a144_0x236029,_0xe1571a={};_0xe1571a[_0x3d4893(0x187)]=function(_0x4dab87,_0x4c7c79){return _0x4dab87===_0x4c7c79;},_0xe1571a[_0x3d4893(0x24a)]=_0x3d4893(0x270),_0xe1571a[_0x3d4893(0x1f8)]=_0x3d4893(0x1d4),_0xe1571a[_0x3d4893(0x1ab)]=_0x3d4893(0x1fa),_0xe1571a[_0x3d4893(0x19b)]=function(_0x198f4,_0x2fcea6){return _0x198f4!==_0x2fcea6;},_0xe1571a[_0x3d4893(0x222)]=function(_0x5a4659,_0xf6a748){return _0x5a4659!==_0xf6a748;},_0xe1571a[_0x3d4893(0x1ad)]='object',_0xe1571a['wrsFV']=_0x3d4893(0x205);const _0x216630=_0xe1571a,_0x5ac21e={..._0x5a96eb,...{'method':_0x23360c,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x1be77d,'body':_0x2834d6,'json':_0x216630['muXDQ'](_0x5a96eb[_0x3d4893(0x235)][_0x216630[_0x3d4893(0x24a)]],_0x216630['uIHDa']),'agent':API_URL['includes'](_0x216630[_0x3d4893(0x1ab)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x216630['muXDQ'](_0x1be77d,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x5ac21e['agent']=API_URL[_0x3d4893(0x22f)](_0x216630[_0x3d4893(0x1ab)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x3d4893(0x183)](_0x5ac21e,_0x5a96eb),logger[_0x3d4893(0x181)](_0x3d4893(0x23f)+_0x5ac21e[_0x3d4893(0x1bf)]));try{const {statusCode:_0x2b4c52,body:_0x5cca84}=await bsSetupHelper[_0x3d4893(0x262)](_0x23360c,_0x1be77d,_0x5ac21e,_0x5a96eb,_0x5ac21e[_0x3d4893(0x1bf)]);if(_0x216630[_0x3d4893(0x19b)](_0x2b4c52,0xc8))return _0x5cca84?_0x5cca84:_0x3d4893(0x25f)+_0x2b4c52;let _0x3d775a=_0x5cca84;if(_0x365f5a)try{_0x216630[_0x3d4893(0x222)](typeof _0x5cca84,_0x216630[_0x3d4893(0x1ad)])&&(_0x3d775a=JSON['parse'](_0x5cca84));}catch(_0x5b4985){logger[_0x3d4893(0x1d7)](_0x216630[_0x3d4893(0x283)],_0x5cca84,util[_0x3d4893(0x1e0)](_0x5b4985));}const _0x578d3f={};return _0x578d3f['data']=_0x3d775a,_0x578d3f;}catch(_0x49976d){logger[_0x3d4893(0x1d7)]('Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20'+util[_0x3d4893(0x1e0)](_0x49976d));throw _0x49976d;}},exports[a144_0x236029(0x262)]=(_0x4413af,_0x154a01,_0x4e337e,_0x14af3d,_0x228db6=!![])=>{const _0x18aa8a=a144_0x236029,_0xc5e65={'AWuGt':function(_0x3d4537,_0x3f99e9){return _0x3d4537!==_0x3f99e9;},'IhPjt':function(_0x19b30e,_0x263178){return _0x19b30e(_0x263178);},'kLkUk':'object','lQDCF':_0x18aa8a(0x171),'oAtQF':function(_0x1a8beb,_0x1103b1){return _0x1a8beb===_0x1103b1;},'gjKGE':_0x18aa8a(0x270),'TAEGl':'application/json','IUlAZ':_0x18aa8a(0x1fa)};return new Promise((_0x433fa2,_0xda6f95)=>{const _0x970f21=_0x18aa8a,_0x51db7e={'xTRec':function(_0x1b06a9,_0x1f392a){const _0x57caab=a144_0x853e;return _0xc5e65[_0x57caab(0x27b)](_0x1b06a9,_0x1f392a);},'LLRYp':function(_0x38f796,_0x5836d7){return _0xc5e65['IhPjt'](_0x38f796,_0x5836d7);},'RdTXE':_0xc5e65[_0x970f21(0x24f)],'hYSJY':_0xc5e65[_0x970f21(0x1d8)],'oLipm':function(_0x4a912d,_0x4630eb){const _0x2630f5=_0x970f21;return _0xc5e65[_0x2630f5(0x1a9)](_0x4a912d,_0x4630eb);}},_0xad6b8b={..._0x14af3d,...{'method':_0x4413af,'url':API_URL+'/'+_0x154a01,'body':_0x4e337e,'json':_0xc5e65[_0x970f21(0x289)](_0x14af3d[_0x970f21(0x235)][_0xc5e65['gjKGE']],_0xc5e65[_0x970f21(0x27c)]),'agent':API_URL[_0x970f21(0x22f)](_0xc5e65[_0x970f21(0x266)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0xc5e65[_0x970f21(0x289)](_0x154a01,SCREENSHOT_ENDPOINT)&&(_0xad6b8b[_0x970f21(0x1c5)]=API_URL[_0x970f21(0x22f)](_0xc5e65[_0x970f21(0x266)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x970f21(0x262)](_0x4413af,_0x154a01,_0xad6b8b,_0x14af3d,API_URL)[_0x970f21(0x1d1)](({statusCode:_0x57d37,body:_0x4c8ec0})=>{const _0x4327c9=_0x970f21;if(_0x51db7e[_0x4327c9(0x281)](_0x57d37,0xc8))_0x51db7e[_0x4327c9(0x28b)](_0xda6f95,_0x4c8ec0?_0x4c8ec0:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x57d37);else{if(_0x228db6)try{_0x51db7e[_0x4327c9(0x281)](typeof _0x4c8ec0,_0x51db7e[_0x4327c9(0x200)])&&(_0x4c8ec0=JSON[_0x4327c9(0x165)](_0x4c8ec0));}catch(_0x332ea3){_0x51db7e[_0x4327c9(0x28b)](_0xda6f95,_0x51db7e[_0x4327c9(0x18d)]);return;}const _0x571456={};_0x571456['data']=_0x4c8ec0,_0x51db7e['oLipm'](_0x433fa2,_0x571456);}})[_0x970f21(0x258)](_0x17ad76=>{const _0x302531=_0x970f21;_0x17ad76&&_0x51db7e[_0x302531(0x22a)](_0xda6f95,_0x17ad76);});});},exports[a144_0x236029(0x1a7)]=_0x45bf98=>{const _0x43bace=a144_0x236029;if(process[_0x43bace(0x24d)][_0x43bace(0x18e)])return process[_0x43bace(0x24d)]['TEST_REPORTING_BUILD_TAG'][_0x43bace(0x19e)](',');if(process['env']['TEST_OBSERVABILITY_BUILD_TAG'])return process[_0x43bace(0x24d)][_0x43bace(0x24e)][_0x43bace(0x19e)](',');if(_0x45bf98[_0x43bace(0x16e)])return _0x45bf98[_0x43bace(0x16e)];return[];},exports['getDefaultHeaders']=(_0x1c919d=!![])=>{const _0x1fabc0=a144_0x236029,_0x23f53d={};_0x23f53d['YNfVX']=_0x1fabc0(0x1d4),_0x23f53d[_0x1fabc0(0x26c)]=_0x1fabc0(0x21b),_0x23f53d[_0x1fabc0(0x1b5)]=_0x1fabc0(0x1ee);const _0x507482=_0x23f53d,_0x6d48c2={};_0x6d48c2['Content-Type']=_0x507482[_0x1fabc0(0x163)],_0x6d48c2[_0x1fabc0(0x232)]=_0x507482['uWaYX'];const _0x2f547e=_0x6d48c2;return _0x1c919d&&process[_0x1fabc0(0x24d)][_0x1fabc0(0x16c)]&&(_0x2f547e[_0x507482[_0x1fabc0(0x1b5)]]='Bearer\x20'+process['env']['BROWSERSTACK_TESTHUB_JWT']),_0x2f547e;},exports['extractValuesWithRegexKeyMatch']=_0x2fc075=>{const _0x4ab71f=a144_0x236029,_0x24a328={};_0x24a328['IquKF']='^CUSTOM_TAG_\x5cd+$';const _0xd861ef=_0x24a328,_0x35e267=[],_0x3b5eac=new RegExp(_0xd861ef[_0x4ab71f(0x1db)],'i');return Object[_0x4ab71f(0x269)](_0x2fc075)[_0x4ab71f(0x1e8)](_0x3282bc=>_0x3b5eac[_0x4ab71f(0x199)](_0x3282bc))[_0x4ab71f(0x1b2)](_0x6812fe=>_0x35e267[_0x4ab71f(0x21a)](_0x2fc075[_0x6812fe])),_0x35e267;},exports[a144_0x236029(0x1f6)]=_0x186bb1=>{const _0x1e6eef=a144_0x236029,_0x57d94a=[],_0x3369cf=_0x186bb1[_0x1e6eef(0x19c)]||process[_0x1e6eef(0x24d)][_0x1e6eef(0x265)];return _0x3369cf&&_0x57d94a[_0x1e6eef(0x21a)](_0x3369cf),_0x57d94a[_0x1e6eef(0x21a)](...exports[_0x1e6eef(0x1a6)](process[_0x1e6eef(0x24d)])),_0x57d94a[_0x1e6eef(0x21a)](...exports[_0x1e6eef(0x1a6)](_0x186bb1)),_0x57d94a;},exports[a144_0x236029(0x1cc)]=_0x3463ee=>{const _0x349017=a144_0x236029;if(!_0x3463ee)return'';return _0x3463ee[_0x349017(0x1aa)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a144_0x236029(0x1dd)]=(_0x551a2f=0x64)=>new Promise(_0x2a09ba=>setTimeout(_0x2a09ba,_0x551a2f));const getPlatformName=()=>{const _0x41fc9b=a144_0x236029,_0x1f2054={};_0x1f2054[_0x41fc9b(0x166)]=function(_0x3cb2c1,_0x246e33){return _0x3cb2c1===_0x246e33;},_0x1f2054[_0x41fc9b(0x210)]=_0x41fc9b(0x1f5),_0x1f2054['YkNpM']=_0x41fc9b(0x196),_0x1f2054['WOYCU']=function(_0x3a4ef5,_0x365f6a){return _0x3a4ef5===_0x365f6a;},_0x1f2054[_0x41fc9b(0x1a2)]=_0x41fc9b(0x1de),_0x1f2054[_0x41fc9b(0x172)]=_0x41fc9b(0x1d0),_0x1f2054['FrKHp']=function(_0x39567a,_0x4b7028){return _0x39567a===_0x4b7028;},_0x1f2054[_0x41fc9b(0x1da)]='linux',_0x1f2054['TJHbb']=_0x41fc9b(0x233),_0x1f2054[_0x41fc9b(0x27e)]='Unknown';const _0x2dd7c0=_0x1f2054;if(_0x2dd7c0[_0x41fc9b(0x166)](process[_0x41fc9b(0x1fc)],_0x2dd7c0[_0x41fc9b(0x210)]))return _0x2dd7c0[_0x41fc9b(0x247)];if(_0x2dd7c0[_0x41fc9b(0x1c4)](process[_0x41fc9b(0x1fc)],_0x2dd7c0[_0x41fc9b(0x1a2)]))return _0x2dd7c0['ynWgV'];if(_0x2dd7c0[_0x41fc9b(0x162)](process[_0x41fc9b(0x1fc)],_0x2dd7c0[_0x41fc9b(0x1da)]))return _0x2dd7c0['TJHbb'];return _0x2dd7c0[_0x41fc9b(0x27e)];},getMacOSVersion=()=>{const _0x45c6c7=a144_0x236029,_0x1bae3d={};_0x1bae3d[_0x45c6c7(0x212)]='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 _0x39623b=_0x1bae3d;return child_process[_0x45c6c7(0x277)](_0x39623b['rwnJZ'])[_0x45c6c7(0x1ca)]()[_0x45c6c7(0x18c)]();},getLinuxDetails=()=>{const _0x2ac74f={'pUKDx':function(_0x5171ff,_0x4399e7){return _0x5171ff(_0x4399e7);},'irkGa':function(_0x11e6eb,_0x463d2e){return _0x11e6eb(_0x463d2e);},'WMwwS':function(_0x2028f4,_0x14b327){return _0x2028f4(_0x14b327);}};return new Promise((_0x456b40,_0x221722)=>{const _0x347b80=a144_0x853e;_0x2ac74f[_0x347b80(0x21f)](getos,(_0xc70733,_0x1a0c73)=>{const _0x4b1122=_0x347b80;if(_0xc70733)return _0x2ac74f[_0x4b1122(0x22e)](_0x221722,_0xc70733);_0x2ac74f[_0x4b1122(0x21c)](_0x456b40,_0x1a0c73);});});};exports[a144_0x236029(0x1e4)]=async()=>{const _0x227c51=a144_0x236029,_0x1a4dea={'cWBrt':function(_0x31f329){return _0x31f329();},'BWymm':_0x227c51(0x1d0),'maGjK':_0x227c51(0x196),'BEtVe':_0x227c51(0x273),'uRzRl':_0x227c51(0x233),'TOGNM':'Error\x20in\x20getting\x20Linux\x20Details'};let _0x51d92a=_0x1a4dea['cWBrt'](getPlatformName),_0x40ffc6=os[_0x227c51(0x169)]()[_0x227c51(0x1ca)]();switch(_0x51d92a){case _0x1a4dea['BWymm']:_0x40ffc6=_0x1a4dea[_0x227c51(0x206)](getMacOSVersion);break;case _0x1a4dea[_0x227c51(0x1ff)]:try{const _0x521468=(await import(_0x1a4dea[_0x227c51(0x178)]))['default'];_0x40ffc6=_0x1a4dea['cWBrt'](_0x521468);}catch(_0x43be0d){exports[_0x227c51(0x181)](_0x227c51(0x239)+_0x43be0d[_0x227c51(0x1ca)]());}break;case _0x1a4dea[_0x227c51(0x1fb)]:try{const _0x28a69c=await _0x1a4dea[_0x227c51(0x206)](getLinuxDetails);_0x28a69c['dist']&&(_0x51d92a=_0x28a69c[_0x227c51(0x20a)]),_0x28a69c['release']&&(_0x40ffc6=_0x28a69c[_0x227c51(0x169)][_0x227c51(0x1ca)]());}catch(_0x2bc4cb){exports[_0x227c51(0x181)](_0x1a4dea[_0x227c51(0x249)]);}break;default:break;}const _0x1a9aa9={};return _0x1a9aa9['platformName']=_0x51d92a,_0x1a9aa9[_0x227c51(0x1e3)]=_0x40ffc6,_0x1a9aa9;},exports[a144_0x236029(0x170)]=(_0x12f7e7,_0x151501)=>{const _0x2fc421=a144_0x236029,_0x275e4e={};_0x275e4e[_0x2fc421(0x1d5)]=function(_0x294cbd,_0x9645ec){return _0x294cbd===_0x9645ec;},_0x275e4e[_0x2fc421(0x1ba)]='test',_0x275e4e[_0x2fc421(0x1f7)]=function(_0x381ac0,_0x481a55){return _0x381ac0===_0x481a55;},_0x275e4e[_0x2fc421(0x19a)]=_0x2fc421(0x28f);const _0x35403=_0x275e4e;if(!_0x12f7e7)return[];try{if(_0x35403[_0x2fc421(0x1d5)](_0x151501,_0x35403['nVuGj']))return!Array[_0x2fc421(0x25c)](_0x12f7e7)&&(_0x12f7e7=[_0x12f7e7]),_0x12f7e7[_0x2fc421(0x17a)](_0x574715=>{const _0x16bf37=_0x2fc421,{stack:_0x59357b,..._0x5db6dc}=_0x574715,_0x2a8cb8=Object[_0x16bf37(0x269)](_0x5db6dc)[_0x16bf37(0x17a)](_0x1771b7=>{return _0x1771b7+':\x20'+_0x5db6dc[_0x1771b7];}),_0x47a741=_0x59357b?exports[_0x16bf37(0x1cc)](_0x59357b)[_0x16bf37(0x19e)](/\r?\n/):[exports[_0x16bf37(0x1cc)](_0x574715[_0x16bf37(0x195)])],_0x498fb5={};return _0x498fb5[_0x16bf37(0x1ce)]=_0x47a741,_0x498fb5['expanded']=_0x2a8cb8,_0x498fb5;});else{if(_0x35403[_0x2fc421(0x1f7)](_0x151501,_0x35403[_0x2fc421(0x19a)])){const _0x5e396e=[],_0x5c241c=[];return Object[_0x2fc421(0x269)](_0x12f7e7)[_0x2fc421(0x1b2)](_0x275be7=>{const _0x3d3d14=_0x2fc421;try{_0x5c241c['push'](_0x275be7+':\x20'+_0x12f7e7[_0x275be7]);}catch(_0x5379e4){exports[_0x3d3d14(0x181)](_0x3d3d14(0x244)+_0x5379e4[_0x3d3d14(0x195)]+_0x3d3d14(0x179)+_0x5379e4[_0x3d3d14(0x1ce)]);}}),_0x5e396e[_0x2fc421(0x21a)]({'backtrace':exports['removeAnsiColors'](_0x12f7e7[_0x2fc421(0x186)])[_0x2fc421(0x19e)](/\r?\n/),'expanded':_0x5c241c}),_0x5e396e;}}return[];}catch(_0x3d0076){exports[_0x2fc421(0x181)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x3d0076[_0x2fc421(0x195)]+_0x2fc421(0x179)+_0x3d0076['backtrace']);}return[];};class PathHelper{constructor(_0x1c7549,_0x2c2c1d){const _0x3dabb9=a144_0x236029;this[_0x3dabb9(0x26a)]=_0x1c7549,this[_0x3dabb9(0x292)]=_0x2c2c1d;}['relativeTestFilePath'](_0x36ea03){const _0xc13788=a144_0x236029,_0x471849=this['config'][_0xc13788(0x177)]||this[_0xc13788(0x26a)]['rootDir'];return path[_0xc13788(0x1dc)](_0x471849,_0x36ea03);}[a144_0x236029(0x1a1)](_0xb604da){const _0x511bd3=a144_0x236029,_0x1018fc=this[_0x511bd3(0x1b1)](_0xb604da);return this[_0x511bd3(0x292)]?path[_0x511bd3(0x1df)](this[_0x511bd3(0x292)],_0x1018fc):_0x1018fc;}}exports[a144_0x236029(0x252)]=PathHelper,exports[a144_0x236029(0x229)]=(_0x3bc532=!![])=>{const _0x34343b=a144_0x236029,_0x1c6a2a={};_0x1c6a2a[_0x34343b(0x214)]=function(_0x8e4ca,_0x447679){return _0x8e4ca===_0x447679;},_0x1c6a2a[_0x34343b(0x16a)]='X-BSTACK-TESTOPS',_0x1c6a2a['iIZuo']='true',_0x1c6a2a['BlixW']='HTTP',_0x1c6a2a[_0x34343b(0x1b7)]=_0x34343b(0x1f3),_0x1c6a2a['DAhLG']='local_grid';const _0xf91083=_0x1c6a2a;requestSpy['spy']((_0x2e6baa,_0x3572ef)=>{const _0x110da2=_0x34343b;_0x3572ef&&!(_0x3572ef[_0x110da2(0x235)]&&_0xf91083[_0x110da2(0x214)](_0x3572ef[_0x110da2(0x235)][_0xf91083[_0x110da2(0x16a)]],_0xf91083['iIZuo']))&&(_0x3572ef['host']=_0x3572ef[_0x110da2(0x218)],delete _0x3572ef[_0x110da2(0x218)],_0x3bc532&&process[_0x110da2(0x1bb)](_0x110da2(0x215)+process[_0x110da2(0x1e9)],{'timestamp':new Date()[_0x110da2(0x1c6)](),'level':null,'message':null,'kind':_0xf91083[_0x110da2(0x182)],'http_response':_0x3572ef})),_0x3572ef&&(constants[_0x110da2(0x1cf)][_0x110da2(0x199)](_0x3572ef[_0x110da2(0x230)])||constants[_0x110da2(0x204)][_0x110da2(0x199)](_0x3572ef['host']))?global[_0x110da2(0x1e2)]=_0xf91083[_0x110da2(0x1b7)]:global[_0x110da2(0x1e2)]=_0xf91083[_0x110da2(0x280)];});},exports[a144_0x236029(0x184)]=()=>{const _0x283707=a144_0x236029,_0x4bbfca={'iHTMu':function(_0x427696,_0x473aaa){return _0x427696(_0x473aaa);}};console={},Object[_0x283707(0x269)](consoleHolder)[_0x283707(0x1b2)](_0xc70e10=>{const _0x42fe9a=_0x283707;_0x4bbfca[_0x42fe9a(0x26d)](isFunction,consoleHolder[_0xc70e10])?console[_0xc70e10]=(..._0x423d1f)=>{const _0x120159=_0x42fe9a;try{!Object['keys'](BSTestOpsPatcher)[_0x120159(0x22f)](_0xc70e10)?consoleHolder[_0xc70e10](..._0x423d1f):BSTestOpsPatcher[_0xc70e10](..._0x423d1f);}catch(_0x272571){consoleHolder[_0xc70e10](..._0x423d1f);}}:console[_0xc70e10]=consoleHolder[_0xc70e10];});},exports['getSyncScript']=()=>'browserstack_executor:\x20'+JSON[a144_0x236029(0x27a)]({'action':a144_0x236029(0x1e6),'arguments':{'data':a144_0x236029(0x1b3)+Date[a144_0x236029(0x216)](),'level':a144_0x236029(0x181)}}),exports[a144_0x236029(0x1ae)]=_0x51f611=>{const _0x260565=a144_0x236029,_0x49f279={};_0x49f279[_0x260565(0x290)]=function(_0x476c36,_0x421faf){return _0x476c36===_0x421faf;},_0x49f279[_0x260565(0x1b6)]=_0x260565(0x1f3),_0x49f279[_0x260565(0x164)]=_0x260565(0x17c),_0x49f279[_0x260565(0x18f)]=_0x260565(0x22b),_0x49f279[_0x260565(0x226)]=function(_0x133c26,_0x854b3){return _0x133c26>_0x854b3;},_0x49f279[_0x260565(0x1c1)]=_0x260565(0x246),_0x49f279['yFoeS']=_0x260565(0x1c8),_0x49f279[_0x260565(0x254)]=_0x260565(0x173),_0x49f279[_0x260565(0x267)]=_0x260565(0x16f),_0x49f279[_0x260565(0x1e1)]='automate';const _0x4b1b3d=_0x49f279;let _0x34556d=null;try{if(_0x4b1b3d[_0x260565(0x290)](global[_0x260565(0x1e2)],_0x4b1b3d[_0x260565(0x1b6)])){if(_0x51f611[_0x4b1b3d['ZZklb']]||_0x51f611[_0x4b1b3d[_0x260565(0x18f)]]||!bsSetupHelper[_0x260565(0x241)](global[_0x260565(0x1cd)])&&_0x4b1b3d[_0x260565(0x226)](global['capabilities']['length'],0x0)&&(global[_0x260565(0x1cd)][0x0][_0x4b1b3d[_0x260565(0x18f)]]||global[_0x260565(0x1cd)][0x0][_0x4b1b3d[_0x260565(0x164)]]))_0x34556d=_0x4b1b3d[_0x260565(0x1c1)];else _0x51f611[_0x4b1b3d[_0x260565(0x1c0)]]&&_0x51f611[_0x4b1b3d[_0x260565(0x1c0)]][_0x4b1b3d[_0x260565(0x254)]]?_0x34556d=_0x4b1b3d['JDCol']:_0x34556d=_0x4b1b3d[_0x260565(0x1e1)];}}catch(_0x3c5161){exports[_0x260565(0x181)]('Failed\x20to\x20determine\x20product\x20linked\x20to\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x260565(0x1ed)+_0x3c5161);}return _0x34556d;},exports[a144_0x236029(0x1eb)]=async(_0x27f950,_0x39322d,_0x1ea537=![])=>{const _0x5d0ab8=a144_0x236029,_0x10469f={};_0x10469f['dbDAJ']=function(_0x5d77aa,_0x121561){return _0x5d77aa===_0x121561;},_0x10469f[_0x5d0ab8(0x23b)]='browserstack',_0x10469f[_0x5d0ab8(0x17e)]='unknown_grid',_0x10469f[_0x5d0ab8(0x224)]='TEST_PLATFORM';const _0x509061=_0x10469f;try{const _0x5ce64d=await _0x27f950[_0x5d0ab8(0x1ac)](),_0x1c190a=await _0x27f950[_0x5d0ab8(0x1e5)](),_0x1acc1f={},_0x9d015a=Object[_0x5d0ab8(0x28c)](_0x1c190a['getCapabilities']()['map_']),_0x4c40b8={'product':exports[_0x5d0ab8(0x1ae)](_0x9d015a),'capabilities':_0x9d015a,'platform':_0x5ce64d[_0x5d0ab8(0x1ef)](),'platform_version':bsSetupHelper[_0x5d0ab8(0x208)](_0x509061['dbDAJ'](global[_0x5d0ab8(0x1e2)],_0x509061[_0x5d0ab8(0x23b)])),'browser':_0x5ce64d[_0x5d0ab8(0x1c9)](),'browser_version':_0x5ce64d[_0x5d0ab8(0x22c)](),'session_id':_0x1c190a[_0x5d0ab8(0x1a0)]()};global[_0x5d0ab8(0x1e2)]?_0x1acc1f[global[_0x5d0ab8(0x1e2)]]=_0x4c40b8:_0x1acc1f[_0x509061['eDJZd']]=_0x4c40b8;if(_0x1ea537)return _0x1acc1f;process[_0x5d0ab8(0x1bb)]('bs:addPlatformDetails:'+process[_0x5d0ab8(0x1e9)],{'timestamp':new Date()[_0x5d0ab8(0x1c6)](),'level':null,'message':null,'kind':_0x509061[_0x5d0ab8(0x224)],'http_response':_0x1acc1f,'uuid':_0x39322d});}catch(_0x39e5fd){exports['debug'](_0x5d0ab8(0x201)+_0x39e5fd);}},exports[a144_0x236029(0x1a8)]=_0x5efefb=>{const _0x49530d=a144_0x236029;return _0x5efefb&&_0x5efefb[_0x49530d(0x1ca)]()[_0x49530d(0x1d2)](/browserstack internal helper hook/);};
|
|
1
|
+
const a145_0x58f8d4=a145_0x3b09;(function(_0x183e23,_0x327b78){const _0x4b8c28=a145_0x3b09,_0x57c0aa=_0x183e23();while(!![]){try{const _0x3db6fe=parseInt(_0x4b8c28(0x193))/0x1+-parseInt(_0x4b8c28(0x182))/0x2*(-parseInt(_0x4b8c28(0x176))/0x3)+parseInt(_0x4b8c28(0x1d5))/0x4*(parseInt(_0x4b8c28(0x175))/0x5)+-parseInt(_0x4b8c28(0x1e8))/0x6+-parseInt(_0x4b8c28(0x138))/0x7*(-parseInt(_0x4b8c28(0x21c))/0x8)+-parseInt(_0x4b8c28(0x1dd))/0x9+-parseInt(_0x4b8c28(0x205))/0xa;if(_0x3db6fe===_0x327b78)break;else _0x57c0aa['push'](_0x57c0aa['shift']());}catch(_0x357358){_0x57c0aa['push'](_0x57c0aa['shift']());}}}(a145_0x3373,0xe90fa));const fs=require('fs'),path=require('path'),gitLastCommit=require(a145_0x58f8d4(0x17c)),getRepoInfo=require('git-repo-info'),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a145_0x58f8d4(0x184)),http=require(a145_0x58f8d4(0x11e)),https=require(a145_0x58f8d4(0x1e9)),child_process=require(a145_0x58f8d4(0x157)),getos=require(a145_0x58f8d4(0xf9)),os=require('os'),logger=require(a145_0x58f8d4(0x16f))[a145_0x58f8d4(0x11f)],buildLogger=require('../logger')[a145_0x58f8d4(0x214)],bsSetupHelper=require(a145_0x58f8d4(0x142)),requestSpy=require(a145_0x58f8d4(0x1da)),constants=require('../../bin/utils/constants'),logPatcher=require(a145_0x58f8d4(0x135)),util=require('util'),{fileLogger}=require(a145_0x58f8d4(0x16f)),PerformanceTester=require(a145_0x58f8d4(0x1ae)),{isFunction}=require(a145_0x58f8d4(0x1f4)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a145_0x58f8d4(0x1c9)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a145_0x58f8d4(0x10b));exports[a145_0x58f8d4(0xf7)]=_0x41386f=>{const _0x5b7abe=a145_0x58f8d4;fileLogger[_0x5b7abe(0x213)]('['+new Date()[_0x5b7abe(0x1af)]()+_0x5b7abe(0x173)+constants[_0x5b7abe(0x1aa)]+_0x5b7abe(0x10e)+_0x41386f);},exports[a145_0x58f8d4(0x188)]=_0x544f68=>{const _0x3c8703=a145_0x58f8d4,_0x44dacb={};_0x44dacb[_0x3c8703(0x1db)]=function(_0x3d653d,_0x29c0df){return _0x3d653d===_0x29c0df;},_0x44dacb[_0x3c8703(0x144)]='true',_0x44dacb[_0x3c8703(0x1a8)]=function(_0x39dd35,_0x524571){return _0x39dd35===_0x524571;};const _0xf25f7=_0x44dacb;fileLogger['debug']('['+new Date()[_0x3c8703(0x1af)]()+_0x3c8703(0x173)+constants[_0x3c8703(0x1aa)]+_0x3c8703(0x10e)+_0x544f68),(_0xf25f7[_0x3c8703(0x1db)](process[_0x3c8703(0x19a)][_0x3c8703(0x1fa)],_0xf25f7[_0x3c8703(0x144)])||_0xf25f7['XguyX'](process[_0x3c8703(0x19a)][_0x3c8703(0x1fa)],'1')||_0xf25f7[_0x3c8703(0x1db)](process[_0x3c8703(0x19a)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0xf25f7[_0x3c8703(0x144)])||_0xf25f7['nPnRp'](process[_0x3c8703(0x19a)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder[_0x3c8703(0x1de)]('\x0a['+new Date()[_0x3c8703(0x1af)]()+_0x3c8703(0x173)+constants['TEST_REPORTING_ANALYTICS']+_0x3c8703(0x10e)+_0x544f68+'\x0a');};const a145_0x5d8a47={};a145_0x5d8a47[a145_0x58f8d4(0x14b)]=!![],a145_0x5d8a47['timeout']=0xea60,a145_0x5d8a47[a145_0x58f8d4(0x18c)]=0x2,a145_0x5d8a47[a145_0x58f8d4(0x17b)]=0x2;const httpKeepAliveAgent=new http[(a145_0x58f8d4(0x1e5))](a145_0x5d8a47),a145_0x33c2e2={};a145_0x33c2e2[a145_0x58f8d4(0x14b)]=!![],a145_0x33c2e2[a145_0x58f8d4(0x210)]=0xea60,a145_0x33c2e2['maxSockets']=0x2,a145_0x33c2e2[a145_0x58f8d4(0x17b)]=0x2;const httpsKeepAliveAgent=new https[(a145_0x58f8d4(0x1e5))](a145_0x33c2e2),a145_0x38a754={};a145_0x38a754['keepAlive']=!![],a145_0x38a754[a145_0x58f8d4(0x210)]=0xea60,a145_0x38a754[a145_0x58f8d4(0x18c)]=0x2,a145_0x38a754['maxTotalSockets']=0x2;const httpScreenshotsKeepAliveAgent=new http['Agent'](a145_0x38a754),a145_0xaa7b49={};a145_0xaa7b49[a145_0x58f8d4(0x14b)]=!![],a145_0xaa7b49[a145_0x58f8d4(0x210)]=0xea60,a145_0xaa7b49[a145_0x58f8d4(0x18c)]=0x2,a145_0xaa7b49[a145_0x58f8d4(0x17b)]=0x2;const httpsScreenshotsKeepAliveAgent=new https['Agent'](a145_0xaa7b49);exports[a145_0x58f8d4(0x1d6)]=()=>{const _0x1b1c17=a145_0x58f8d4,_0x531b73={};_0x531b73['Ztyzc']=function(_0x80629b,_0x2bc586){return _0x80629b!==_0x2bc586;},_0x531b73[_0x1b1c17(0x18b)]=_0x1b1c17(0x11a);const _0x11841e=_0x531b73;return process[_0x1b1c17(0x19a)]['BROWSERSTACK_RERUN_TESTS']&&_0x11841e[_0x1b1c17(0x185)](process[_0x1b1c17(0x19a)][_0x1b1c17(0x159)],_0x11841e['FeBSM'])?!![]:![];},exports[a145_0x58f8d4(0x1b0)]=()=>{const _0x1599be=a145_0x58f8d4,_0x1556b6={};_0x1556b6['nmYcc']=function(_0x32f930,_0x545461){return _0x32f930===_0x545461;},_0x1556b6['RsYfU']=_0x1599be(0xf6);const _0x4d38b4=_0x1556b6;let _0x5c1083=!![];return process[_0x1599be(0x19a)][_0x1599be(0x183)]&&(_0x5c1083=_0x4d38b4[_0x1599be(0x1df)](process[_0x1599be(0x19a)][_0x1599be(0x183)],_0x4d38b4['RsYfU'])),process[_0x1599be(0x19a)][_0x1599be(0x20a)]&&(_0x5c1083=_0x4d38b4[_0x1599be(0x1df)](process[_0x1599be(0x19a)][_0x1599be(0x20a)],_0x4d38b4[_0x1599be(0x152)])),process['env'][_0x1599be(0x151)]&&(_0x5c1083=_0x4d38b4['nmYcc'](process['env'][_0x1599be(0x151)],_0x4d38b4[_0x1599be(0x152)])),_0x5c1083;},exports['parseFileNames']=_0x52922e=>{const _0x10432f=a145_0x58f8d4;if(bsSetupHelper[_0x10432f(0x194)](_0x52922e))return undefined;try{return _0x52922e[_0x10432f(0x115)]()[_0x10432f(0x1b8)](',');}catch(_0x4edb4a){return undefined;}},exports[a145_0x58f8d4(0x17d)]=()=>{const _0x2f6578=a145_0x58f8d4,_0x2e2a64={'RnfMl':function(_0xa756e4,_0x2b07bf){return _0xa756e4(_0x2b07bf);},'RrWyP':'../../bin/v2/browserstackCLI','mBEwV':function(_0x7cd4f,_0x28b2ce){return _0x7cd4f!==_0x28b2ce;},'UqQxk':'null','MhrFF':_0x2f6578(0x191),'jbhok':function(_0x18bed8,_0x5b18b9){return _0x18bed8===_0x5b18b9;},'hEVEi':_0x2f6578(0xf6),'sBUxB':function(_0x54b103,_0x5eac38){return _0x54b103===_0x5eac38;},'tGOvs':function(_0xaeb944,_0x177d3e){return _0xaeb944&&_0x177d3e;},'XqZvV':function(_0x28828b,_0x14f169){return _0x28828b!==_0x14f169;},'AGGyg':function(_0x37187e,_0x9815f7){return _0x37187e===_0x9815f7;},'DUsHL':function(_0xe42f34,_0x264c3b){return _0xe42f34===_0x264c3b;},'EsgFp':function(_0x171a58,_0x2e36e4){return _0x171a58&&_0x2e36e4;}};return PerformanceTester[_0x2f6578(0x208)](PerformanceO11yEvents[_0x2f6578(0x136)],async()=>{const _0x51a866=_0x2f6578;try{const _0x461d0a=_0x2e2a64[_0x51a866(0x12b)](require,_0x2e2a64[_0x51a866(0x14c)]);if(_0x461d0a[_0x51a866(0xf1)]){const _0x13eb05=_0x51a866(0x1fe)+O11Y_URL+_0x51a866(0x17a)+_0x461d0a[_0x51a866(0xf1)]+_0x51a866(0x216);buildLogger[_0x51a866(0x21e)](_0x13eb05),exports['printA11yBuildLink'](_0x461d0a[_0x51a866(0xf1)],_0x461d0a[_0x51a866(0x167)]);return;}if(process[_0x51a866(0x19a)][_0x51a866(0x18f)]&&_0x2e2a64[_0x51a866(0x211)](process[_0x51a866(0x19a)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x2e2a64['UqQxk'])&&_0x2e2a64[_0x51a866(0x211)](process[_0x51a866(0x19a)][_0x51a866(0x18f)],_0x2e2a64[_0x51a866(0x137)])){const _0x1eb7fa=_0x51a866(0x1fe)+constants[_0x51a866(0x156)]+_0x51a866(0x17a)+process['env'][_0x51a866(0x18f)]+_0x51a866(0x216);buildLogger['info'](_0x1eb7fa);const _0x2f71b2=_0x2e2a64[_0x51a866(0x21b)](process[_0x51a866(0x19a)]['BROWSERSTACK_ACCESSIBILITY'],_0x2e2a64[_0x51a866(0x19f)]);let _0x4f1d5f=![];try{const _0x21370d=JSON[_0x51a866(0x177)](process[_0x51a866(0x19a)][_0x51a866(0x187)]||'{}');_0x4f1d5f=_0x2e2a64[_0x51a866(0x1ff)](_0x21370d[_0x51a866(0x1d1)],!![]);}catch(_0xf7c1c3){}exports[_0x51a866(0x1ca)](process[_0x51a866(0x19a)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x2e2a64[_0x51a866(0x150)](_0x2f71b2,!_0x4f1d5f));return;}if(process[_0x51a866(0x19a)][_0x51a866(0xf8)]&&_0x2e2a64[_0x51a866(0x1d4)](process[_0x51a866(0x19a)][_0x51a866(0xf8)],_0x2e2a64['UqQxk'])&&_0x2e2a64[_0x51a866(0x1d4)](process[_0x51a866(0x19a)][_0x51a866(0xf8)],_0x2e2a64[_0x51a866(0x137)])){const _0x5be802=_0x51a866(0x1fe)+constants[_0x51a866(0x156)]+_0x51a866(0x17a)+process[_0x51a866(0x19a)][_0x51a866(0xf8)]+_0x51a866(0x216);buildLogger[_0x51a866(0x21e)](_0x5be802);const _0x258ae5=_0x2e2a64[_0x51a866(0x13f)](process[_0x51a866(0x19a)][_0x51a866(0xed)],_0x2e2a64['hEVEi']);let _0x4029cb=![];try{const _0x147b4e=JSON['parse'](process[_0x51a866(0x19a)][_0x51a866(0x187)]||'{}');_0x4029cb=_0x2e2a64[_0x51a866(0x16d)](_0x147b4e['app_automate'],!![]);}catch(_0x23d541){}exports['printA11yBuildLink'](process[_0x51a866(0x19a)]['BROWSERSTACK_TESTHUB_UUID'],_0x2e2a64[_0x51a866(0x1bd)](_0x258ae5,!_0x4029cb));}}catch(_0x4e3d29){logger['error'](util['format']('[%s][\x20'+constants[_0x51a866(0x1aa)]+_0x51a866(0x14d),new Date()[_0x51a866(0x1af)](),_0x4e3d29[_0x51a866(0x10d)]||_0x4e3d29[_0x51a866(0x118)]||_0x4e3d29));}})();},exports['printA11yBuildLink']=(_0xc0d4f6,_0x1f077f)=>{const _0x29b787=a145_0x58f8d4,_0x41108e={};_0x41108e[_0x29b787(0x1a1)]=function(_0xae3b34,_0x5d9c6d){return _0xae3b34&&_0x5d9c6d;},_0x41108e[_0x29b787(0xfe)]=_0x29b787(0xf4);const _0x3b2721=_0x41108e;try{if(_0x3b2721[_0x29b787(0x1a1)](_0x1f077f,_0xc0d4f6)){const _0x21e9de=_0x29b787(0x122)+_0xc0d4f6,_0x52fbe6=_0x29b787(0x1fe)+_0x21e9de+_0x29b787(0x1c5);buildLogger[_0x29b787(0x21e)](_0x52fbe6);}}catch(_0xe21451){logger[_0x29b787(0xfa)](util[_0x29b787(0x174)](_0x3b2721[_0x29b787(0xfe)],new Date()[_0x29b787(0x1af)](),_0xe21451[_0x29b787(0x10d)]||_0xe21451['message']||_0xe21451));}},exports[a145_0x58f8d4(0x153)]=_0xc2b872=>{const _0x42e564=a145_0x58f8d4,_0x37f4cd={};_0x37f4cd[_0x42e564(0xee)]='AssertionError',_0x37f4cd['nVKPg']='Test\x20timeout\x20of',_0x37f4cd[_0x42e564(0x21d)]=_0x42e564(0x162),_0x37f4cd[_0x42e564(0x1a6)]=_0x42e564(0x15d);const _0x4f481e=_0x37f4cd;if(!_0xc2b872)return null;const _0x4bc35d=_0xc2b872[_0x42e564(0x1bb)]();if(_0x4bc35d[_0x42e564(0x170)](/AssertionError/))return _0x4f481e[_0x42e564(0xee)];if(_0x4bc35d[_0x42e564(0x170)](/TimeoutError/)||_0x4bc35d[_0x42e564(0x20e)](_0x4f481e[_0x42e564(0x218)])||_0x4bc35d[_0x42e564(0x170)](/Timeout.*exceeded/i))return _0x4f481e[_0x42e564(0x21d)];return _0x4f481e[_0x42e564(0x1a6)];},exports[a145_0x58f8d4(0x1e0)]=_0x312e85=>{const _0xd41145=a145_0x58f8d4,_0x2ff8bd={};_0x2ff8bd[_0xd41145(0x1d0)]='mocha',_0x2ff8bd[_0xd41145(0x13c)]=_0xd41145(0x120),_0x2ff8bd[_0xd41145(0x15a)]=_0xd41145(0x12d),_0x2ff8bd['dAqkd']=_0xd41145(0x10a),_0x2ff8bd[_0xd41145(0x201)]='@cucumber/cucumber',_0x2ff8bd[_0xd41145(0x18d)]=_0xd41145(0x169),_0x2ff8bd['lhvWb']='puppeteer',_0x2ff8bd[_0xd41145(0x1d2)]=_0xd41145(0x124);const _0x197944=_0x2ff8bd;let _0x1d57b5=null;switch(_0x312e85){case FRAMEWORKS[_0xd41145(0x1ad)]:_0x1d57b5=bsSetupHelper['getPackageVersion'](_0x197944['XmctF']);break;case FRAMEWORKS['PLAYWRIGHT']:_0x1d57b5=bsSetupHelper[_0xd41145(0x13d)](_0x197944[_0xd41145(0x13c)]);break;case FRAMEWORKS['CODECEPT']:case FRAMEWORKS['CODECEPT_CUCUMBER']:_0x1d57b5=bsSetupHelper[_0xd41145(0x13d)](_0x197944['RIKsN']);break;case FRAMEWORKS[_0xd41145(0x1f8)]:_0x1d57b5=bsSetupHelper[_0xd41145(0x13d)](_0x197944['dAqkd']);break;case FRAMEWORKS[_0xd41145(0x18e)]:_0x1d57b5=bsSetupHelper['getPackageVersion'](_0x197944[_0xd41145(0x201)]);break;case FRAMEWORKS[_0xd41145(0x196)]:_0x1d57b5=bsSetupHelper['getPackageVersion'](_0x197944[_0xd41145(0x18d)])||bsSetupHelper[_0xd41145(0x13d)](_0x197944[_0xd41145(0x1e7)]);break;case FRAMEWORKS['NEWMAN']:_0x1d57b5=bsSetupHelper[_0xd41145(0x13d)](_0x197944[_0xd41145(0x1d2)]);break;default:break;}return _0x1d57b5;},exports['getBrowserStackConfig']=_0x142a8a=>{const _0x48e2f2=a145_0x58f8d4;let _0x441b1c=null;switch(_0x142a8a){case FRAMEWORKS['PLAYWRIGHT']:_0x441b1c=process['env'][_0x48e2f2(0x209)];break;}if(!_0x441b1c)return;return bsSetupHelper[_0x48e2f2(0x19e)](_0x441b1c,![]);},exports[a145_0x58f8d4(0x148)]=_0x246c71=>{const _0x4b8d16=a145_0x58f8d4;return{'username':bsSetupHelper[_0x4b8d16(0x1a0)](_0x246c71),'accessKey':bsSetupHelper[_0x4b8d16(0x1ab)](_0x246c71)};},exports[a145_0x58f8d4(0x161)]=(_0x369b3f,_0x58228d)=>{const _0x3c0bef=a145_0x58f8d4,_0x2f1f11={};_0x2f1f11['jpmIy']=_0x3c0bef(0x125),_0x2f1f11[_0x3c0bef(0x200)]=_0x3c0bef(0x129),_0x2f1f11[_0x3c0bef(0x1eb)]=_0x3c0bef(0x1a4);const _0x543ea1=_0x2f1f11,_0x3e6a8b=_0x543ea1[_0x3c0bef(0x1a9)][_0x3c0bef(0x1b8)]('|');let _0x34e20d=0x0;while(!![]){switch(_0x3e6a8b[_0x34e20d++]){case'0':_0x369b3f[_0x3c0bef(0x102)]={'data':_0x369b3f[_0x3c0bef(0x11c)][0x0]['logs'][0x0][_0x3c0bef(0x145)],'test_run_uuid':_0x369b3f[_0x3c0bef(0x11c)][0x0]['logs'][0x0][_0x3c0bef(0x15c)],'event_type':_0x543ea1[_0x3c0bef(0x200)],'kind':_0x543ea1['wVXJw'],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x3c0bef(0x1af)](),'fileName':_0x369b3f[_0x3c0bef(0x11c)][0x0][_0x3c0bef(0x12a)][0x0][_0x3c0bef(0x139)]};continue;case'1':delete _0x369b3f[_0x3c0bef(0x11c)];continue;case'2':if(!_0x369b3f['body'][0x0]||!_0x369b3f['body'][0x0][_0x3c0bef(0x12a)]||!_0x369b3f[_0x3c0bef(0x11c)][0x0]['logs'][_0x3c0bef(0x203)])return;continue;case'3':delete _0x58228d['headers'];continue;case'4':delete _0x369b3f[_0x3c0bef(0x20c)];continue;case'5':if(!_0x369b3f[_0x3c0bef(0x11c)]||!Array[_0x3c0bef(0x12c)](_0x369b3f['body']))return;continue;}break;}},exports[a145_0x58f8d4(0x132)]=async(_0x10d528,_0x39c29b,_0x5805f2,_0x4027ff,_0x336ffa=!![])=>{const _0xcebfa2=a145_0x58f8d4,_0x13ab97={};_0x13ab97['rGrSI']=function(_0x1ed847,_0x1660f5){return _0x1ed847===_0x1660f5;},_0x13ab97['bUhYy']=_0xcebfa2(0x160),_0x13ab97[_0xcebfa2(0x1a7)]='application/json',_0x13ab97[_0xcebfa2(0x190)]='https',_0x13ab97[_0xcebfa2(0x19d)]=function(_0x476672,_0xe020e){return _0x476672!==_0xe020e;},_0x13ab97[_0xcebfa2(0x172)]=_0xcebfa2(0x1ec),_0x13ab97[_0xcebfa2(0x189)]=_0xcebfa2(0x107);const _0xc8950c=_0x13ab97,_0x1867fc={..._0x4027ff,...{'method':_0x10d528,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x39c29b,'body':_0x5805f2,'json':_0xc8950c[_0xcebfa2(0x1f7)](_0x4027ff[_0xcebfa2(0x1f9)][_0xc8950c[_0xcebfa2(0x141)]],_0xc8950c['paPIS']),'agent':API_URL['includes'](_0xc8950c[_0xcebfa2(0x190)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0xc8950c[_0xcebfa2(0x1f7)](_0x39c29b,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x1867fc[_0xcebfa2(0x178)]=API_URL[_0xcebfa2(0x1f1)](_0xc8950c[_0xcebfa2(0x190)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x1867fc,_0x4027ff),logger[_0xcebfa2(0x188)]('Uploading\x20trace\x20logs\x20to:\x20'+_0x1867fc[_0xcebfa2(0x131)]));try{const {statusCode:_0x508f16,body:_0x78a7e1}=await bsSetupHelper[_0xcebfa2(0x17f)](_0x10d528,_0x39c29b,_0x1867fc,_0x4027ff,_0x1867fc[_0xcebfa2(0x131)]);if(_0xc8950c['iPhTV'](_0x508f16,0xc8))return _0x78a7e1?_0x78a7e1:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x508f16;let _0x111bb8=_0x78a7e1;if(_0x336ffa)try{_0xc8950c[_0xcebfa2(0x19d)](typeof _0x78a7e1,_0xc8950c[_0xcebfa2(0x172)])&&(_0x111bb8=JSON['parse'](_0x78a7e1));}catch(_0x51c9e0){logger['error'](_0xc8950c[_0xcebfa2(0x189)],_0x78a7e1,util[_0xcebfa2(0x174)](_0x51c9e0));}const _0xed6c40={};return _0xed6c40[_0xcebfa2(0x145)]=_0x111bb8,_0xed6c40;}catch(_0x11b5db){logger[_0xcebfa2(0xfa)](_0xcebfa2(0x112)+util[_0xcebfa2(0x174)](_0x11b5db));throw _0x11b5db;}},exports[a145_0x58f8d4(0x17f)]=(_0x1e7d04,_0x55694b,_0x14d31d,_0x32cdf7,_0xfec7b9=!![])=>{const _0x1e8442=a145_0x58f8d4,_0x149bc3={'KaNon':function(_0xc82050,_0x47ad6e){return _0xc82050(_0x47ad6e);},'AKVPy':function(_0x113e0e,_0x3b139b){return _0x113e0e!==_0x3b139b;},'SwmsQ':function(_0x2b447f,_0x197b8a){return _0x2b447f(_0x197b8a);},'nLOcI':'object','nCoBx':_0x1e8442(0x1a3),'oMblf':function(_0xb1ef9c,_0x5dd5f4){return _0xb1ef9c===_0x5dd5f4;},'VDGQS':_0x1e8442(0x160),'QFzbj':_0x1e8442(0x1b9),'ZRhPU':_0x1e8442(0x1e9)};return new Promise((_0x2ffd76,_0x2fec3f)=>{const _0x1b8d27=_0x1e8442,_0x1124d6={'ybYvX':function(_0x41ecff,_0x2105d3){const _0x579aef=a145_0x3b09;return _0x149bc3[_0x579aef(0x158)](_0x41ecff,_0x2105d3);},'UXLON':function(_0x236a5a,_0x421dce){const _0x596ff9=a145_0x3b09;return _0x149bc3[_0x596ff9(0xf3)](_0x236a5a,_0x421dce);},'mnGip':function(_0x48b190,_0x57939f){const _0x37e1fa=a145_0x3b09;return _0x149bc3[_0x37e1fa(0x158)](_0x48b190,_0x57939f);},'dVtYX':_0x149bc3[_0x1b8d27(0x123)],'mlKvD':function(_0x9ef33d,_0x26c651){const _0x5c49f8=_0x1b8d27;return _0x149bc3[_0x5c49f8(0xf3)](_0x9ef33d,_0x26c651);},'pcDYt':_0x149bc3['nCoBx']},_0x15a93f={..._0x32cdf7,...{'method':_0x1e7d04,'url':API_URL+'/'+_0x55694b,'body':_0x14d31d,'json':_0x149bc3['oMblf'](_0x32cdf7[_0x1b8d27(0x1f9)][_0x149bc3[_0x1b8d27(0x1e6)]],_0x149bc3[_0x1b8d27(0x130)]),'agent':API_URL[_0x1b8d27(0x1f1)](_0x149bc3[_0x1b8d27(0x109)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x149bc3[_0x1b8d27(0x1b7)](_0x55694b,SCREENSHOT_ENDPOINT)&&(_0x15a93f['agent']=API_URL[_0x1b8d27(0x1f1)](_0x149bc3[_0x1b8d27(0x109)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x1b8d27(0x17f)](_0x1e7d04,_0x55694b,_0x15a93f,_0x32cdf7,API_URL)['then'](({statusCode:_0x3fd75b,body:_0x597dfd})=>{const _0x14e912=_0x1b8d27;if(_0x1124d6['ybYvX'](_0x3fd75b,0xc8))_0x1124d6[_0x14e912(0x212)](_0x2fec3f,_0x597dfd?_0x597dfd:_0x14e912(0x108)+_0x3fd75b);else{if(_0xfec7b9)try{_0x1124d6[_0x14e912(0x219)](typeof _0x597dfd,_0x1124d6[_0x14e912(0x134)])&&(_0x597dfd=JSON['parse'](_0x597dfd));}catch(_0x4dc147){_0x1124d6[_0x14e912(0x116)](_0x2fec3f,_0x1124d6[_0x14e912(0x127)]);return;}const _0x145aa4={};_0x145aa4[_0x14e912(0x145)]=_0x597dfd,_0x1124d6[_0x14e912(0x212)](_0x2ffd76,_0x145aa4);}})[_0x1b8d27(0x113)](_0x30c8ab=>{_0x30c8ab&&_0x149bc3['KaNon'](_0x2fec3f,_0x30c8ab);});});},exports[a145_0x58f8d4(0x1cb)]=_0x14c15c=>{const _0x575d4f=a145_0x58f8d4;if(process[_0x575d4f(0x19a)]['TEST_REPORTING_BUILD_TAG'])return process[_0x575d4f(0x19a)][_0x575d4f(0x11b)][_0x575d4f(0x1b8)](',');if(process['env'][_0x575d4f(0x13e)])return process[_0x575d4f(0x19a)][_0x575d4f(0x13e)][_0x575d4f(0x1b8)](',');if(_0x14c15c[_0x575d4f(0x154)])return _0x14c15c[_0x575d4f(0x154)];return[];},exports[a145_0x58f8d4(0x147)]=(_0x31f5ff=!![])=>{const _0x542303=a145_0x58f8d4,_0x59d24b={};_0x59d24b['UoOqL']=_0x542303(0x1b9),_0x59d24b[_0x542303(0x1fc)]='true',_0x59d24b[_0x542303(0x117)]=_0x542303(0x179);const _0x8dcb73=_0x59d24b,_0x41feeb={};_0x41feeb[_0x542303(0x160)]=_0x8dcb73[_0x542303(0x168)],_0x41feeb[_0x542303(0x195)]=_0x8dcb73[_0x542303(0x1fc)];const _0x259e92=_0x41feeb;return _0x31f5ff&&process[_0x542303(0x19a)][_0x542303(0x198)]&&(_0x259e92[_0x8dcb73[_0x542303(0x117)]]=_0x542303(0x180)+process[_0x542303(0x19a)][_0x542303(0x198)]),_0x259e92;},exports[a145_0x58f8d4(0x14f)]=_0x1e04db=>{const _0x285d1d=a145_0x58f8d4,_0x5269b7={};_0x5269b7[_0x285d1d(0x215)]=_0x285d1d(0x1d9);const _0x48b627=_0x5269b7,_0x3633a3=[],_0x19bb89=new RegExp(_0x48b627[_0x285d1d(0x215)],'i');return Object[_0x285d1d(0x15e)](_0x1e04db)['filter'](_0x22b40c=>_0x19bb89[_0x285d1d(0x1ba)](_0x22b40c))[_0x285d1d(0x1cd)](_0x3c4bf3=>_0x3633a3['push'](_0x1e04db[_0x3c4bf3])),_0x3633a3;},exports[a145_0x58f8d4(0x1a5)]=_0x4512a7=>{const _0x58b25f=a145_0x58f8d4,_0x4ade13=[],_0x4375a0=_0x4512a7[_0x58b25f(0x1c0)]||process[_0x58b25f(0x19a)]['CUSTOM_TAG'];return _0x4375a0&&_0x4ade13['push'](_0x4375a0),_0x4ade13['push'](...exports['extractValuesWithRegexKeyMatch'](process[_0x58b25f(0x19a)])),_0x4ade13['push'](...exports[_0x58b25f(0x14f)](_0x4512a7)),_0x4ade13;},exports['removeAnsiColors']=_0x37af9e=>{const _0x15347e=a145_0x58f8d4;if(!_0x37af9e)return'';return _0x37af9e[_0x15347e(0x121)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports['sleep']=(_0x5edd54=0x64)=>new Promise(_0x5c8f8f=>setTimeout(_0x5c8f8f,_0x5edd54));const getPlatformName=()=>{const _0x51593b=a145_0x58f8d4,_0x2124a4={};_0x2124a4[_0x51593b(0xf5)]=function(_0x21caac,_0x36f459){return _0x21caac===_0x36f459;},_0x2124a4['JzCoU']=_0x51593b(0x1ed),_0x2124a4[_0x51593b(0xf2)]=_0x51593b(0xff),_0x2124a4['eFIei']=function(_0x5b6598,_0x26ed09){return _0x5b6598===_0x26ed09;},_0x2124a4[_0x51593b(0x12f)]=_0x51593b(0x13a),_0x2124a4[_0x51593b(0x19c)]='OS\x20X',_0x2124a4[_0x51593b(0xfd)]=_0x51593b(0xfc),_0x2124a4[_0x51593b(0x149)]=_0x51593b(0x1b4),_0x2124a4[_0x51593b(0x10f)]=_0x51593b(0x101);const _0x138632=_0x2124a4;if(_0x138632[_0x51593b(0xf5)](process[_0x51593b(0x20d)],_0x138632['JzCoU']))return _0x138632[_0x51593b(0xf2)];if(_0x138632[_0x51593b(0x165)](process[_0x51593b(0x20d)],_0x138632[_0x51593b(0x12f)]))return _0x138632['OwYJt'];if(_0x138632[_0x51593b(0xf5)](process[_0x51593b(0x20d)],_0x138632[_0x51593b(0xfd)]))return _0x138632[_0x51593b(0x149)];return _0x138632[_0x51593b(0x10f)];},getMacOSVersion=()=>{const _0x128738=a145_0x58f8d4,_0x11b76d={};_0x11b76d[_0x128738(0x1ac)]=_0x128738(0x1f6);const _0x230f6e=_0x11b76d;return child_process[_0x128738(0x10c)](_0x230f6e[_0x128738(0x1ac)])['toString']()[_0x128738(0x115)]();},getLinuxDetails=()=>{const _0x4dd685={'JjoNx':function(_0x17f87c,_0x56c5a7){return _0x17f87c(_0x56c5a7);}};return new Promise((_0x5783a2,_0x450753)=>{const _0x12fd64=a145_0x3b09,_0x52055a={'Aknoq':function(_0x117d84,_0x1f73a1){const _0x5507b0=a145_0x3b09;return _0x4dd685[_0x5507b0(0x1e2)](_0x117d84,_0x1f73a1);}};_0x4dd685[_0x12fd64(0x1e2)](getos,(_0x5c1ffd,_0x2ba064)=>{const _0x542687=_0x12fd64;if(_0x5c1ffd)return _0x52055a['Aknoq'](_0x450753,_0x5c1ffd);_0x52055a[_0x542687(0x1f0)](_0x5783a2,_0x2ba064);});});};function a145_0x3b09(_0x4de075,_0x40b2e4){const _0x337371=a145_0x3373();return a145_0x3b09=function(_0x3b09aa,_0x235f5f){_0x3b09aa=_0x3b09aa-0xec;let _0x1989c4=_0x337371[_0x3b09aa];return _0x1989c4;},a145_0x3b09(_0x4de075,_0x40b2e4);}exports[a145_0x58f8d4(0x164)]=async()=>{const _0x8cd9c7=a145_0x58f8d4,_0x552246={'zdoRK':function(_0x40cba0){return _0x40cba0();},'iDozg':_0x8cd9c7(0x1b1),'bWHdP':function(_0x1fa52f){return _0x1fa52f();},'jWCRH':_0x8cd9c7(0xff),'hLZQE':_0x8cd9c7(0x1c6),'xWXfU':_0x8cd9c7(0x1b4),'sfWwl':function(_0x4251ff){return _0x4251ff();},'EgGXd':_0x8cd9c7(0x100)};let _0x5b0475=_0x552246[_0x8cd9c7(0x18a)](getPlatformName),_0x17c161=os[_0x8cd9c7(0x1c8)]()['toString']();switch(_0x5b0475){case _0x552246[_0x8cd9c7(0x1b5)]:_0x17c161=_0x552246[_0x8cd9c7(0x110)](getMacOSVersion);break;case _0x552246[_0x8cd9c7(0x1bf)]:try{const _0x31f42c=(await import(_0x552246['hLZQE']))[_0x8cd9c7(0x1d7)];_0x17c161=_0x552246[_0x8cd9c7(0x18a)](_0x31f42c);}catch(_0x495495){exports[_0x8cd9c7(0x188)](_0x8cd9c7(0x181)+_0x495495[_0x8cd9c7(0x1bb)]());}break;case _0x552246[_0x8cd9c7(0x1ee)]:try{const _0x460f78=await _0x552246[_0x8cd9c7(0x140)](getLinuxDetails);_0x460f78[_0x8cd9c7(0x104)]&&(_0x5b0475=_0x460f78[_0x8cd9c7(0x104)]),_0x460f78[_0x8cd9c7(0x1c8)]&&(_0x17c161=_0x460f78[_0x8cd9c7(0x1c8)][_0x8cd9c7(0x1bb)]());}catch(_0x85afcc){exports[_0x8cd9c7(0x188)](_0x552246['EgGXd']);}break;default:break;}const _0x14c690={};return _0x14c690[_0x8cd9c7(0x220)]=_0x5b0475,_0x14c690[_0x8cd9c7(0x199)]=_0x17c161,_0x14c690;},exports['failureData']=(_0x5ad479,_0x18ffd2)=>{const _0x529695=a145_0x58f8d4,_0x39f6ad={};_0x39f6ad[_0x529695(0x15f)]=function(_0x423359,_0x4f6946){return _0x423359===_0x4f6946;},_0x39f6ad['OzPeb']=_0x529695(0x1ba),_0x39f6ad[_0x529695(0x20b)]=function(_0xd4445d,_0x126b51){return _0xd4445d===_0x126b51;},_0x39f6ad[_0x529695(0x1cc)]=_0x529695(0xec);const _0x4decd0=_0x39f6ad;if(!_0x5ad479)return[];try{if(_0x4decd0[_0x529695(0x15f)](_0x18ffd2,_0x4decd0[_0x529695(0x21a)]))return!Array[_0x529695(0x12c)](_0x5ad479)&&(_0x5ad479=[_0x5ad479]),_0x5ad479[_0x529695(0x171)](_0x5b3743=>{const _0x43a560=_0x529695,{stack:_0x3c87f0,..._0x3d9603}=_0x5b3743,_0x18d581=Object['keys'](_0x3d9603)['map'](_0x369668=>{return _0x369668+':\x20'+_0x3d9603[_0x369668];}),_0x19b5b8=_0x3c87f0?exports[_0x43a560(0x192)](_0x3c87f0)[_0x43a560(0x1b8)](/\r?\n/):[exports['removeAnsiColors'](_0x5b3743[_0x43a560(0x118)])],_0x3c4869={};return _0x3c4869['backtrace']=_0x19b5b8,_0x3c4869[_0x43a560(0x207)]=_0x18d581,_0x3c4869;});else{if(_0x4decd0[_0x529695(0x20b)](_0x18ffd2,_0x4decd0[_0x529695(0x1cc)])){const _0x368ad6=[],_0xd2411d=[];return Object['keys'](_0x5ad479)['forEach'](_0x2bca8c=>{const _0x36de35=_0x529695;try{_0xd2411d['push'](_0x2bca8c+':\x20'+_0x5ad479[_0x2bca8c]);}catch(_0x2dc886){exports[_0x36de35(0x188)](_0x36de35(0x1f3)+_0x2dc886[_0x36de35(0x118)]+_0x36de35(0x17e)+_0x2dc886[_0x36de35(0x114)]);}}),_0x368ad6[_0x529695(0x143)]({'backtrace':exports[_0x529695(0x192)](_0x5ad479[_0x529695(0x10d)])[_0x529695(0x1b8)](/\r?\n/),'expanded':_0xd2411d}),_0x368ad6;}}return[];}catch(_0x5bdc3b){exports['debug'](_0x529695(0x1f3)+_0x5bdc3b['message']+_0x529695(0x17e)+_0x5bdc3b['backtrace']);}return[];};class PathHelper{constructor(_0x565a98,_0x575e24){const _0x2f5a50=a145_0x58f8d4;this['config']=_0x565a98,this[_0x2f5a50(0x1e3)]=_0x575e24;}[a145_0x58f8d4(0x1d8)](_0x5a192f){const _0x5ded4e=a145_0x58f8d4,_0x211959=this['config'][_0x5ded4e(0x1be)]||this['config']['rootDir'];return path[_0x5ded4e(0x103)](_0x211959,_0x5a192f);}[a145_0x58f8d4(0x1b2)](_0x4baa27){const _0x535e50=a145_0x58f8d4,_0x4c626c=this['relativeTestFilePath'](_0x4baa27);return this[_0x535e50(0x1e3)]?path[_0x535e50(0x1b3)](this[_0x535e50(0x1e3)],_0x4c626c):_0x4c626c;}}function a145_0x3373(){const _0x5de1f5=['5LVVHYy','12CZvEly','parse','agent','Authorization','/builds/','maxTotalSockets','git-last-commit','printBuildLink','\x20:\x20','nodeRequest','Bearer\x20','Error\x20in\x20importing\x20windows-release\x20','117138NTtpYq','BROWSERSTACK_TEST_OBSERVABILITY_YML','./constants','Ztyzc','rxBji','BROWSERSTACK_PRODUCT_MAP','debug','CaXiw','zdoRK','FeBSM','maxSockets','KcFAc','CUCUMBER','BS_TESTOPS_BUILD_HASHED_ID','okITy','undefined','removeAnsiColors','981419aAfnNA','isUndefined','X-BSTACK-TESTOPS','PUPPETEER','nXFHP','BROWSERSTACK_TESTHUB_JWT','platformVersion','env','annotate','OwYJt','iPhTV','readConfig','hEVEi','getUserName','oWCDK','getSession','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','TEST_ATTACHMENT','getCustomTags','uRgkV','paPIS','nPnRp','jpmIy','TEST_REPORTING_ANALYTICS','getAccessKey','DutzM','MOCHA','../performance/performance-tester','toISOString','isTestObservabilitySession','OS\x20X','prefixTestPath','join','Linux','iDozg','toJSON','oMblf','split','application/json','test','toString','emit','EsgFp','cwd','jWCRH','customTag','tfbjX','map_','eRcwv','browserstack','\x20to\x20view\x20accessibility\x20report.\x0a','windows-release','getBrowserVersion','release','../performance/constants','printA11yBuildLink','getBuildTags','uckKz','forEach','appium:app','getSyncScript','XmctF','app_automate','sTjst','stringify','XqZvV','4395048rePjtu','shouldReRunObservabilityTests','default','relativeTestFilePath','^CUSTOM_TAG_\x5cd+$','../../helpers/request-spy','XguyX','FpDSN','2175642ThfFyD','log','nmYcc','getFrameworkVersion','kaAfn','JjoNx','prefix','automate','Agent','VDGQS','lhvWb','6599496NcZIpY','https','addRequestSpy','wVXJw','object','win32','xWXfU','__cloud_provider___','Aknoq','includes','HTTP','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','lodash','hostname','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','rGrSI','JEST','headers','BROWSERSTACK_TEST_REPORTING_DEBUG','\x20test\x20instance\x20:\x20','cKFmk','bs:addPlatformDetails:','Visit\x20','sBUxB','Grpci','nsXEx','LGlcU','length','IaNwE','1301520ljZEPr','local_grid','expanded','measureWrapper','BROWSERSTACK_CONFIG_FILE_PATH','BROWSERSTACK_TEST_OBSERVABILITY','KNkGr','json','platform','startsWith','unknown_grid','timeout','mBEwV','UXLON','silly','buildLogger','HgPOu','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','capabilities','nVKPg','mnGip','OzPeb','jbhok','47144fglEMX','FLqaV','info','getObservabilityLinkedProductName','platformName','err','BROWSERSTACK_ACCESSIBILITY','FAdCv','browserstack_executor:\x20','hzqxJ','O11yHashedID','JkiEn','SwmsQ','[%s][\x20Accessibility\x20]\x20Error\x20printing\x20accessibility\x20build\x20link\x20%s','fvGJm','true','trace','BROWSERSTACK_TESTHUB_UUID','getos','error','isInternalHook','linux','laSmB','praYl','Windows','Error\x20in\x20getting\x20Linux\x20Details','Unknown','formData','relative','dist','cErZQ','KOGpr','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','ZRhPU','jest','../../../src/bin/utils/constants','execSync','stack','\x20]\x20','HrLtB','bWHdP','turboscale','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','catch','backtrace','trim','mlKvD','JItGe','message','QbKCo','null','TEST_REPORTING_BUILD_TAG','body','RrLaR','http','winstonLogger','@playwright/test','replace','https://accessibility.browserstack.com/automated-tests/projects/p/builds/b/1?thBuildId=','nLOcI','newman','5|2|0|1|4|3','app-automate','pcDYt','bstack:options','LogCreated','logs','RnfMl','isArray','codeceptjs','ObservabilitySync:','lblxU','QFzbj','url','asyncAwaitNodeReq','OGjOO','dVtYX','../../bin/utils/logPatcher','PRINT_BUILDLINK','MhrFF','133qynkbj','fileName','darwin','Eppvi','Avmti','getPackageVersion','TEST_OBSERVABILITY_BUILD_TAG','AGGyg','sfWwl','bUhYy','../helper','push','qpcgc','data','ikXco','getDefaultHeaders','getUserCredentials','QmhVm','nbepV','keepAlive','RrWyP','\x20]\x20Build\x20Not\x20Found\x20%s','bs:addLog:','extractValuesWithRegexKeyMatch','tGOvs','BROWSERSTACK_TEST_REPORTING','RsYfU','getFailureType','buildTag','getBrowserName','O11Y_URL','child_process','AKVPy','BROWSERSTACK_RERUN_TESTS','RIKsN','patchConsoleLogger','test_run_uuid','UnhandledError','keys','RAfgj','Content-Type','modifyReqForTraceUpload','TimeoutError','pid','getPlatformDetails','eFIei','ATS_HUB_URL_REGEX','A11yEnabled','UoOqL','puppeteer-core','host','esRzf','eVwoA','DUsHL','spy','../logger','match','map','LjVnO','][\x20','format'];a145_0x3373=function(){return _0x5de1f5;};return a145_0x3373();}exports['PathHelper']=PathHelper,exports[a145_0x58f8d4(0x1ea)]=(_0x178466=!![])=>{const _0x33bbec=a145_0x58f8d4,_0x166215={};_0x166215[_0x33bbec(0xf0)]=function(_0x42627a,_0x23cd38){return _0x42627a===_0x23cd38;},_0x166215[_0x33bbec(0x106)]='X-BSTACK-TESTOPS',_0x166215[_0x33bbec(0x1c1)]='true',_0x166215[_0x33bbec(0x1e1)]=_0x33bbec(0x1f2),_0x166215[_0x33bbec(0x119)]=_0x33bbec(0x1c4),_0x166215[_0x33bbec(0x105)]=_0x33bbec(0x206);const _0x51e8ca=_0x166215;requestSpy[_0x33bbec(0x16e)]((_0x2f6982,_0x5863d5)=>{const _0x2f86de=_0x33bbec;_0x5863d5&&!(_0x5863d5[_0x2f86de(0x1f9)]&&_0x51e8ca['hzqxJ'](_0x5863d5['headers'][_0x51e8ca[_0x2f86de(0x106)]],_0x51e8ca['tfbjX']))&&(_0x5863d5[_0x2f86de(0x16a)]=_0x5863d5['hostname'],delete _0x5863d5[_0x2f86de(0x1f5)],_0x178466&&process[_0x2f86de(0x1bc)](_0x2f86de(0x14e)+process[_0x2f86de(0x163)],{'timestamp':new Date()[_0x2f86de(0x1af)](),'level':null,'message':null,'kind':_0x51e8ca[_0x2f86de(0x1e1)],'http_response':_0x5863d5})),_0x5863d5&&(constants['HUB_URL_REGEX']['test'](_0x5863d5[_0x2f86de(0x16a)])||constants[_0x2f86de(0x166)][_0x2f86de(0x1ba)](_0x5863d5[_0x2f86de(0x16a)]))?global['__cloud_provider___']=_0x51e8ca['QbKCo']:global[_0x2f86de(0x1ef)]=_0x51e8ca[_0x2f86de(0x105)];});},exports[a145_0x58f8d4(0x15b)]=()=>{const _0x5a8b4d=a145_0x58f8d4,_0xfa191b={'ikXco':function(_0x360958,_0x1a592d){return _0x360958(_0x1a592d);}};console={},Object[_0x5a8b4d(0x15e)](consoleHolder)[_0x5a8b4d(0x1cd)](_0x1c49f9=>{const _0x15a051=_0x5a8b4d;_0xfa191b[_0x15a051(0x146)](isFunction,consoleHolder[_0x1c49f9])?console[_0x1c49f9]=(..._0x24a9bc)=>{const _0x2c9aa0=_0x15a051;try{!Object[_0x2c9aa0(0x15e)](BSTestOpsPatcher)[_0x2c9aa0(0x1f1)](_0x1c49f9)?consoleHolder[_0x1c49f9](..._0x24a9bc):BSTestOpsPatcher[_0x1c49f9](..._0x24a9bc);}catch(_0x578d68){consoleHolder[_0x1c49f9](..._0x24a9bc);}}:console[_0x1c49f9]=consoleHolder[_0x1c49f9];});},exports[a145_0x58f8d4(0x1cf)]=()=>a145_0x58f8d4(0xef)+JSON[a145_0x58f8d4(0x1d3)]({'action':a145_0x58f8d4(0x19b),'arguments':{'data':a145_0x58f8d4(0x12e)+Date['now'](),'level':a145_0x58f8d4(0x188)}}),exports[a145_0x58f8d4(0x21f)]=_0x5ee815=>{const _0x42f99c=a145_0x58f8d4,_0x5300c8={};_0x5300c8[_0x42f99c(0x11d)]=function(_0xe76e6d,_0x336ae9){return _0xe76e6d===_0x336ae9;},_0x5300c8[_0x42f99c(0x1dc)]=_0x42f99c(0x1c4),_0x5300c8[_0x42f99c(0x13b)]=_0x42f99c(0x1ce),_0x5300c8[_0x42f99c(0x133)]='app',_0x5300c8['rgGro']=function(_0x1b6d9a,_0x4648f3){return _0x1b6d9a>_0x4648f3;},_0x5300c8[_0x42f99c(0x1c3)]=_0x42f99c(0x126),_0x5300c8['eVwoA']=_0x42f99c(0x128),_0x5300c8['LGlcU']='turboScaleGridDetails',_0x5300c8[_0x42f99c(0x14a)]=_0x42f99c(0x111),_0x5300c8['BPEvh']=_0x42f99c(0x1e4);const _0x4a0a21=_0x5300c8;let _0x3abb11=null;try{if(_0x4a0a21[_0x42f99c(0x11d)](global[_0x42f99c(0x1ef)],_0x4a0a21[_0x42f99c(0x1dc)])){if(_0x5ee815[_0x4a0a21[_0x42f99c(0x13b)]]||_0x5ee815[_0x4a0a21[_0x42f99c(0x133)]]||!bsSetupHelper['isUndefined'](global[_0x42f99c(0x217)])&&_0x4a0a21['rgGro'](global[_0x42f99c(0x217)][_0x42f99c(0x203)],0x0)&&(global[_0x42f99c(0x217)][0x0][_0x4a0a21[_0x42f99c(0x133)]]||global[_0x42f99c(0x217)][0x0][_0x4a0a21['Eppvi']]))_0x3abb11=_0x4a0a21[_0x42f99c(0x1c3)];else _0x5ee815[_0x4a0a21[_0x42f99c(0x16c)]]&&_0x5ee815[_0x4a0a21[_0x42f99c(0x16c)]][_0x4a0a21[_0x42f99c(0x202)]]?_0x3abb11=_0x4a0a21[_0x42f99c(0x14a)]:_0x3abb11=_0x4a0a21['BPEvh'];}}catch(_0x1d5bd3){exports['debug']('Failed\x20to\x20determine\x20product\x20linked\x20to\x20'+constants[_0x42f99c(0x1aa)]+_0x42f99c(0x1fb)+_0x1d5bd3);}return _0x3abb11;},exports['sendPlatformDetails']=async(_0xf948e0,_0xcb087d,_0x87ed90=![])=>{const _0x5b842e=a145_0x58f8d4,_0x4ccc5c={};_0x4ccc5c[_0x5b842e(0x186)]=function(_0x1b1ad7,_0x4bdfae){return _0x1b1ad7===_0x4bdfae;},_0x4ccc5c['esRzf']=_0x5b842e(0x1c4),_0x4ccc5c['nXFHP']=_0x5b842e(0x20f),_0x4ccc5c[_0x5b842e(0x204)]='TEST_PLATFORM';const _0x13bd54=_0x4ccc5c;try{const _0x21cc3a=await _0xf948e0['getCapabilities'](),_0x373f64=await _0xf948e0[_0x5b842e(0x1a2)](),_0xf76a2={},_0x34e0bd=Object['fromEntries'](_0x373f64['getCapabilities']()[_0x5b842e(0x1c2)]),_0x112c0a={'product':exports[_0x5b842e(0x21f)](_0x34e0bd),'capabilities':_0x34e0bd,'platform':_0x21cc3a['getPlatform'](),'platform_version':bsSetupHelper['getPlatformVersion'](_0x13bd54[_0x5b842e(0x186)](global[_0x5b842e(0x1ef)],_0x13bd54[_0x5b842e(0x16b)])),'browser':_0x21cc3a[_0x5b842e(0x155)](),'browser_version':_0x21cc3a[_0x5b842e(0x1c7)](),'session_id':_0x373f64[_0x5b842e(0x1b6)]()};global[_0x5b842e(0x1ef)]?_0xf76a2[global[_0x5b842e(0x1ef)]]=_0x112c0a:_0xf76a2[_0x13bd54[_0x5b842e(0x197)]]=_0x112c0a;if(_0x87ed90)return _0xf76a2;process[_0x5b842e(0x1bc)](_0x5b842e(0x1fd)+process[_0x5b842e(0x163)],{'timestamp':new Date()[_0x5b842e(0x1af)](),'level':null,'message':null,'kind':_0x13bd54[_0x5b842e(0x204)],'http_response':_0xf76a2,'uuid':_0xcb087d});}catch(_0x5df068){exports['debug']('Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x5df068);}},exports[a145_0x58f8d4(0xfb)]=_0x512ef5=>{const _0x24ae0b=a145_0x58f8d4;return _0x512ef5&&_0x512ef5[_0x24ae0b(0x1bb)]()[_0x24ae0b(0x170)](/browserstack internal helper hook/);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a146_0x293c(){var _0x52bcf2=['testorchestration/api/v1/split-tests','462404AIduKp','testorchestration/api/v1/failed-tests','10YskWZh','2631601knKOFi','12eemRrB','exports','1482888txKUiX','FAILED_TESTS_ENDPOINT','3gINZef','1493336VvzoSy','874485dqpcTi','https://collector-observability.browserstack.com','622822RKLHzd','SPLIT_TESTS_ENDPOINT','ORCHESTRATION_API_URL','3122490qmlsYO'];a146_0x293c=function(){return _0x52bcf2;};return a146_0x293c();}var a146_0x1b5799=a146_0x3791;(function(_0x2e7af5,_0x1fdd30){var _0x1964b4=a146_0x3791,_0x562135=_0x2e7af5();while(!![]){try{var _0x437485=-parseInt(_0x1964b4(0xa2))/0x1+parseInt(_0x1964b4(0xad))/0x2+-parseInt(_0x1964b4(0xaf))/0x3*(parseInt(_0x1964b4(0xa7))/0x4)+-parseInt(_0x1964b4(0xa5))/0x5+parseInt(_0x1964b4(0xab))/0x6*(parseInt(_0x1964b4(0xaa))/0x7)+parseInt(_0x1964b4(0x9f))/0x8+parseInt(_0x1964b4(0xa0))/0x9*(parseInt(_0x1964b4(0xa9))/0xa);if(_0x437485===_0x1fdd30)break;else _0x562135['push'](_0x562135['shift']());}catch(_0x1db7e1){_0x562135['push'](_0x562135['shift']());}}}(a146_0x293c,0x65221));function a146_0x3791(_0x1e822a,_0xcd6971){var _0x293c46=a146_0x293c();return a146_0x3791=function(_0x3791b3,_0x1990e3){_0x3791b3=_0x3791b3-0x9f;var _0x3930f6=_0x293c46[_0x3791b3];return _0x3930f6;},a146_0x3791(_0x1e822a,_0xcd6971);}var a146_0x165861={};a146_0x165861[a146_0x1b5799(0xa4)]=a146_0x1b5799(0xa1),a146_0x165861[a146_0x1b5799(0xae)]=a146_0x1b5799(0xa8),a146_0x165861[a146_0x1b5799(0xa3)]=a146_0x1b5799(0xa6),module[a146_0x1b5799(0xac)]=a146_0x165861;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a146_0x2173(){const _0x6d0c16=['buildRunIdentifier','_sendFailedTestsToAPI','path','lPQUR','_CI]\x20Polling\x20started\x20with\x20interval:\x20','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','\x20(was\x20','length','UjEFg','vafSc','cleanup','pMfpi','BROWSERSTACK_BUILD_RUN_IDENTIFIER','7620umfoOD','state','BROWSERSTACK_NODE_INDEX','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','791QXUTOI','163810yZLguB','stack','lastAPIFailedCount','message','mRKkU','bUGuW','PFsPQ','existsSync','_initializeStateFromFile','OBGGF','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','TSSPW','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','MeLWQ','15632320UmopQv','BROWSERSTACK_TOTAL_NODE_COUNT','_CI]\x20Error\x20sending\x20failed\x20test\x20','QaJaz','_getDefaultState','196FgYyPr','../logger','wTFCm','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','getFailedTestsCount','pollingInterval','IUHVA','PgvQV','uniqueFailedTests','failFastConfig','stateFilePath','lockFilePath','zAvAL','PtAui',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','onTestDone',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','27QQAjcs','UCQTA','stopPolling','failureThresholdCount','shouldFailFast','add','vseXT','mrVfj','passed','writeState',',\x20CI\x20Mode:\x20','exports','readState','projectName','debug','XeXHa','winstonLogger','\x20to\x20API:\x20','join','4100824TZaIzc','547196rQAzTh','31045YePemO','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','3BfAlzb','writeFileSync','_pollFailedTests','OVcHV','newState','\x0aStack:\x20','./requestUtils','533860FcBOwy','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','TUcuc','ITaov','Qlgvq','GSxal','BoeVr','_CI]\x20API\x20failed\x20count\x20updated:\x20','startPolling','fileHelper','workingDir','pCKmt','bHeZZ','buildName','sDygQ','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','FailFastManager','info','error','ms.','failFastState.lock','SinML','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20',',\x20threshold:\x20','failFastActive','reportedFailuresToAPI','isCIMode','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','IDqao','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','from',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','AEXDj','env','JMFOK','CLRrN','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','AYEKr','vOhwu','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','wCLna','failFast.active','EMFjn','failFastActiveMarkerPath','_fetchAPIFailedCount',']\x20Polling\x20stopped.'];a146_0x2173=function(){return _0x6d0c16;};return a146_0x2173();}const a146_0x49c42e=a146_0x27a2;(function(_0x6a3883,_0x2a1418){const _0x2cfc3f=a146_0x27a2,_0x37f145=_0x6a3883();while(!![]){try{const _0xf088c5=-parseInt(_0x2cfc3f(0x258))/0x1+parseInt(_0x2cfc3f(0x24e))/0x2*(parseInt(_0x2cfc3f(0x251))/0x3)+parseInt(_0x2cfc3f(0x227))/0x4*(-parseInt(_0x2cfc3f(0x24f))/0x5)+-parseInt(_0x2cfc3f(0x20f))/0x6*(-parseInt(_0x2cfc3f(0x213))/0x7)+-parseInt(_0x2cfc3f(0x24d))/0x8+-parseInt(_0x2cfc3f(0x23a))/0x9*(parseInt(_0x2cfc3f(0x214))/0xa)+parseInt(_0x2cfc3f(0x222))/0xb;if(_0xf088c5===_0x2a1418)break;else _0x37f145['push'](_0x37f145['shift']());}catch(_0xdf78ab){_0x37f145['push'](_0x37f145['shift']());}}}(a146_0x2173,0x6b06d));const fs=require('fs'),path=require(a146_0x49c42e(0x204)),FileHelper=require('./fileHelper'),RequestUtils=require(a146_0x49c42e(0x257)),logger=require(a146_0x49c42e(0x228))[a146_0x49c42e(0x24a)],POLLING_INTERVAL=0x2710,TAG=a146_0x49c42e(0x1e4);function a146_0x27a2(_0x103437,_0x228592){const _0x217350=a146_0x2173();return a146_0x27a2=function(_0x27a25a,_0x48e837){_0x27a25a=_0x27a25a-0x1d6;let _0x51694f=_0x217350[_0x27a25a];return _0x51694f;},a146_0x27a2(_0x103437,_0x228592);}class FailFastManager{constructor(_0x1ad38d,_0xef8948,_0x542523){const _0x2f783c=a146_0x49c42e,_0x59593a={};_0x59593a[_0x2f783c(0x21f)]=function(_0x5846ce,_0x5080a3){return _0x5846ce+_0x5080a3;},_0x59593a[_0x2f783c(0x1e2)]=_0x2f783c(0x256),_0x59593a[_0x2f783c(0x219)]=function(_0x505ebc,_0x4d7639){return _0x505ebc||_0x4d7639;},_0x59593a[_0x2f783c(0x229)]='failFastState.json',_0x59593a[_0x2f783c(0x1f4)]=_0x2f783c(0x1e8),_0x59593a[_0x2f783c(0x1f9)]=_0x2f783c(0x1fd);const _0x57c6c4=_0x59593a;this[_0x2f783c(0x232)]=_0x57c6c4[_0x2f783c(0x219)](_0x1ad38d,{}),this[_0x2f783c(0x1e1)]=_0xef8948,this[_0x2f783c(0x247)]=_0x542523,this['isCIMode']=!!(process[_0x2f783c(0x1f5)][_0x2f783c(0x20e)]&&process[_0x2f783c(0x1f5)][_0x2f783c(0x211)]&&process[_0x2f783c(0x1f5)][_0x2f783c(0x223)]);const _0x44d699=this[_0x2f783c(0x232)][_0x2f783c(0x1de)];this[_0x2f783c(0x233)]=path['join'](_0x44d699,_0x57c6c4['wTFCm']),this[_0x2f783c(0x234)]=path[_0x2f783c(0x24c)](_0x44d699,_0x57c6c4['AEXDj']),this[_0x2f783c(0x1ff)]=path['join'](_0x44d699,_0x57c6c4[_0x2f783c(0x1f9)]),this[_0x2f783c(0x1dd)]=new FileHelper(this['failFastConfig'],this[_0x2f783c(0x233)],this[_0x2f783c(0x234)],this['_getDefaultState']()),this[_0x2f783c(0x210)]=this[_0x2f783c(0x226)](),this[_0x2f783c(0x22e)]=null,this[_0x2f783c(0x1ee)]&&(this[_0x2f783c(0x1ed)]=new Set()),this[_0x2f783c(0x21c)]()['catch'](_0x5165c6=>{const _0x31125a=_0x2f783c;logger[_0x31125a(0x1e6)]('['+TAG+_0x31125a(0x239)+_0x5165c6[_0x31125a(0x217)]+(_0x5165c6[_0x31125a(0x215)]?_0x57c6c4['TSSPW'](_0x57c6c4[_0x31125a(0x1e2)],_0x5165c6[_0x31125a(0x215)]):'')),this[_0x31125a(0x210)]=this['_getDefaultState']();}),this[_0x2f783c(0x1ee)]&&this[_0x2f783c(0x1dc)](),logger[_0x2f783c(0x248)]('['+TAG+_0x2f783c(0x237)+this['failFastConfig'][_0x2f783c(0x23d)]+_0x2f783c(0x244)+this['isCIMode']);}[a146_0x49c42e(0x226)](){const _0x342447={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x342447;}async[a146_0x49c42e(0x21c)](){const _0x588a25=a146_0x49c42e,_0x457585={};_0x457585[_0x588a25(0x1fa)]=function(_0x4cf654,_0x44837d){return _0x4cf654+_0x44837d;},_0x457585[_0x588a25(0x20a)]=_0x588a25(0x256),_0x457585['ITaov']=function(_0x51441c,_0x137d8b){return _0x51441c+_0x137d8b;};const _0x4d5f4e=_0x457585;if(this[_0x588a25(0x1ee)])try{fs[_0x588a25(0x21b)](this[_0x588a25(0x1ff)])&&(this[_0x588a25(0x210)][_0x588a25(0x1ec)]=!![],logger['debug']('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.'));}catch(_0x5a9228){logger[_0x588a25(0x1e6)]('['+TAG+_0x588a25(0x1ef)+_0x5a9228['message']+(_0x5a9228[_0x588a25(0x215)]?_0x4d5f4e[_0x588a25(0x1fa)](_0x4d5f4e[_0x588a25(0x20a)],_0x5a9228[_0x588a25(0x215)]):''));}else try{const _0xeb3aae=await this[_0x588a25(0x1dd)][_0x588a25(0x246)]();if(_0xeb3aae)this[_0x588a25(0x210)]={...this[_0x588a25(0x226)](),..._0xeb3aae,'uniqueFailedTests':new Set(_0xeb3aae[_0x588a25(0x231)]||[])},logger[_0x588a25(0x248)]('['+TAG+'_Local]\x20State\x20initialized\x20from\x20file.');else{logger[_0x588a25(0x248)]('['+TAG+_0x588a25(0x1f1));const _0x278171=this[_0x588a25(0x226)](),_0x2509d3={..._0x278171,'uniqueFailedTests':Array[_0x588a25(0x1f2)](_0x278171[_0x588a25(0x231)])};await this['fileHelper'][_0x588a25(0x243)](_0x2509d3),this['state']=_0x278171;}}catch(_0x312bec){logger['debug']('['+TAG+'_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20'+_0x312bec['message']+(_0x312bec['stack']?_0x4d5f4e[_0x588a25(0x1d7)](_0x4d5f4e[_0x588a25(0x20a)],_0x312bec['stack']):'')),this[_0x588a25(0x210)]=this[_0x588a25(0x226)]();}}async[a146_0x49c42e(0x238)](_0x36d28c,_0x3847fe){const _0x500389=a146_0x49c42e,_0x20bccb={};_0x20bccb[_0x500389(0x1e0)]=function(_0x54deff,_0x34ff59){return _0x54deff>_0x34ff59;},_0x20bccb['GSxal']=function(_0x3e3bb0,_0x8c013a){return _0x3e3bb0>_0x8c013a;},_0x20bccb['zAvAL']='failed',_0x20bccb[_0x500389(0x1d6)]=_0x500389(0x242),_0x20bccb['PgvQV']=function(_0xa9bc20,_0x8cf7e6){return _0xa9bc20+_0x8cf7e6;},_0x20bccb['JMFOK']='\x0aStack:\x20',_0x20bccb[_0x500389(0x1df)]=function(_0x58659a,_0x4355a3){return _0x58659a||_0x4355a3;},_0x20bccb['EMFjn']=function(_0x4f06bd,_0x43070d){return _0x4f06bd+_0x43070d;};const _0x4d8e20=_0x20bccb;if(this[_0x500389(0x1ee)])this[_0x500389(0x210)]['totalTests']+=0x1,_0x3847fe&&_0x4d8e20[_0x500389(0x1e0)](_0x3847fe[_0x500389(0x209)],0x0)&&(!this[_0x500389(0x1ed)]['has'](_0x36d28c)&&(await this['_sendFailedTestsToAPI'](_0x36d28c),this[_0x500389(0x1ed)][_0x500389(0x23f)](_0x36d28c)));else try{const _0x2dfcbc={'fullName':_0x36d28c,'status':_0x3847fe&&_0x4d8e20[_0x500389(0x1d9)](_0x3847fe['length'],0x0)?_0x4d8e20[_0x500389(0x235)]:_0x4d8e20[_0x500389(0x1d6)]},_0x20313f=await this['fileHelper']['recordTestResult'](_0x2dfcbc);this[_0x500389(0x210)]={...this['_getDefaultState'](),..._0x20313f['newState'],'uniqueFailedTests':new Set(_0x20313f[_0x500389(0x255)][_0x500389(0x231)]||[])};}catch(_0x244947){logger[_0x500389(0x1e6)]('['+TAG+_0x500389(0x259)+_0x244947[_0x500389(0x217)]+(_0x244947['stack']?_0x4d8e20[_0x500389(0x230)](_0x4d8e20[_0x500389(0x1f6)],_0x244947['stack']):''));try{const _0x5cdcde=await this[_0x500389(0x1dd)][_0x500389(0x246)]();this[_0x500389(0x210)]={...this[_0x500389(0x226)](),..._0x4d8e20[_0x500389(0x1df)](_0x5cdcde,{}),'uniqueFailedTests':new Set(_0x5cdcde?_0x5cdcde['uniqueFailedTests']||[]:[])},logger[_0x500389(0x248)]('['+TAG+'_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.');}catch(_0x24973b){logger[_0x500389(0x1e6)]('['+TAG+_0x500389(0x1e3)+_0x24973b[_0x500389(0x217)]+(_0x24973b[_0x500389(0x215)]?_0x4d8e20[_0x500389(0x1fe)](_0x4d8e20[_0x500389(0x1f6)],_0x24973b[_0x500389(0x215)]):'')),this['state']=this[_0x500389(0x226)]();}}}async[a146_0x49c42e(0x203)](_0x381229){const _0x314963=a146_0x49c42e,_0x291bb1={};_0x291bb1[_0x314963(0x240)]=function(_0x428466,_0x203329){return _0x428466+_0x203329;},_0x291bb1[_0x314963(0x1f7)]=_0x314963(0x256);const _0x2e35b3=_0x291bb1;if(!this[_0x314963(0x1ee)]||!_0x381229)return;try{logger[_0x314963(0x248)]('['+TAG+_0x314963(0x21e)+_0x381229);const _0x48d3d1={};_0x48d3d1[_0x314963(0x1e1)]=this[_0x314963(0x1e1)],_0x48d3d1[_0x314963(0x247)]=this[_0x314963(0x247)],_0x48d3d1['failedTests']=[_0x381229],_0x48d3d1[_0x314963(0x202)]=process[_0x314963(0x1f5)][_0x314963(0x20e)],await RequestUtils['putFailedTests'](_0x48d3d1);}catch(_0x116b9f){logger[_0x314963(0x1e6)]('['+TAG+_0x314963(0x224)+_0x381229+_0x314963(0x24b)+_0x116b9f[_0x314963(0x217)]+(_0x116b9f[_0x314963(0x215)]?_0x2e35b3['vseXT'](_0x2e35b3[_0x314963(0x1f7)],_0x116b9f[_0x314963(0x215)]):''));}}async[a146_0x49c42e(0x200)](){const _0x4ef9e7=a146_0x49c42e,_0x1e65ae={};_0x1e65ae[_0x4ef9e7(0x236)]=function(_0x64cf6d,_0x35bbcd){return _0x64cf6d===_0x35bbcd;},_0x1e65ae[_0x4ef9e7(0x21a)]='number',_0x1e65ae[_0x4ef9e7(0x218)]=function(_0x5319c8,_0x1ac7a4){return _0x5319c8+_0x1ac7a4;},_0x1e65ae[_0x4ef9e7(0x249)]=_0x4ef9e7(0x256),_0x1e65ae['Qlgvq']=function(_0x26d881,_0x135a5a){return _0x26d881!==_0x135a5a;};const _0x5076ea=_0x1e65ae;if(!this[_0x4ef9e7(0x1ee)])return 0x0;try{const _0x4372a7={};_0x4372a7['buildName']=this[_0x4ef9e7(0x1e1)],_0x4372a7['projectName']=this['projectName'],_0x4372a7[_0x4ef9e7(0x202)]=process[_0x4ef9e7(0x1f5)][_0x4ef9e7(0x20e)];const _0x167da1=await RequestUtils[_0x4ef9e7(0x22d)](_0x4372a7);return logger['debug']('['+TAG+'_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20'+_0x167da1),_0x5076ea[_0x4ef9e7(0x236)](typeof _0x167da1,_0x5076ea[_0x4ef9e7(0x21a)])?_0x167da1:0x0;}catch(_0xccd1fb){return logger[_0x4ef9e7(0x1e6)]('['+TAG+_0x4ef9e7(0x22b)+_0xccd1fb['message']+(_0xccd1fb[_0x4ef9e7(0x215)]?_0x5076ea[_0x4ef9e7(0x218)](_0x5076ea['XeXHa'],_0xccd1fb[_0x4ef9e7(0x215)]):'')),_0x5076ea[_0x4ef9e7(0x1d8)](this[_0x4ef9e7(0x210)][_0x4ef9e7(0x216)],undefined)?this[_0x4ef9e7(0x210)][_0x4ef9e7(0x216)]:0x0;}}async['_pollFailedTests'](){const _0x1b8d61=a146_0x49c42e,_0x18adbe={};_0x18adbe['pMfpi']=function(_0x3a3b85,_0x4afc98){return _0x3a3b85!==_0x4afc98;},_0x18adbe[_0x1b8d61(0x22f)]=function(_0x11d4c0,_0x2557a9){return _0x11d4c0+_0x2557a9;},_0x18adbe[_0x1b8d61(0x1da)]=_0x1b8d61(0x256);const _0x1a1684=_0x18adbe;if(!this[_0x1b8d61(0x1ee)])return;try{const _0x302e5a=await this[_0x1b8d61(0x200)]();_0x1a1684[_0x1b8d61(0x20d)](_0x302e5a,this[_0x1b8d61(0x210)][_0x1b8d61(0x216)])&&(logger[_0x1b8d61(0x248)]('['+TAG+_0x1b8d61(0x1db)+_0x302e5a+_0x1b8d61(0x208)+this[_0x1b8d61(0x210)][_0x1b8d61(0x216)]+')'),this[_0x1b8d61(0x210)][_0x1b8d61(0x216)]=_0x302e5a);}catch(_0x3783c8){logger[_0x1b8d61(0x1e6)]('['+TAG+'_CI]\x20Error\x20during\x20polling\x20logic:\x20'+_0x3783c8[_0x1b8d61(0x217)]+(_0x3783c8[_0x1b8d61(0x215)]?_0x1a1684[_0x1b8d61(0x22f)](_0x1a1684['BoeVr'],_0x3783c8[_0x1b8d61(0x215)]):''));}}async[a146_0x49c42e(0x1dc)](){const _0x2edfc4=a146_0x49c42e,_0x349c53={'QaJaz':function(_0x280f81,_0x4ffc57,_0x5e8a6a){return _0x280f81(_0x4ffc57,_0x5e8a6a);}};this[_0x2edfc4(0x22e)]&&this[_0x2edfc4(0x23c)](),this[_0x2edfc4(0x1ee)]&&(await this[_0x2edfc4(0x253)](),this[_0x2edfc4(0x22e)]=_0x349c53[_0x2edfc4(0x225)](setInterval,async()=>{await this['_pollFailedTests']();},POLLING_INTERVAL),logger['debug']('['+TAG+_0x2edfc4(0x206)+POLLING_INTERVAL+_0x2edfc4(0x1e7)));}[a146_0x49c42e(0x23c)](){const _0x53100f=a146_0x49c42e,_0x883442={'OVcHV':function(_0x5b9ec7,_0x215a51){return _0x5b9ec7(_0x215a51);}};this[_0x53100f(0x22e)]&&(_0x883442[_0x53100f(0x254)](clearInterval,this[_0x53100f(0x22e)]),this[_0x53100f(0x22e)]=null,logger[_0x53100f(0x248)]('['+TAG+_0x53100f(0x201)));}async[a146_0x49c42e(0x23e)](){const _0x586ebd=a146_0x49c42e,_0x4db488={};_0x4db488[_0x586ebd(0x241)]=function(_0x147382,_0x5751dd){return _0x147382===_0x5751dd;},_0x4db488['KYyIl']=function(_0x14e571,_0x2d3a34){return _0x14e571<=_0x2d3a34;},_0x4db488[_0x586ebd(0x20b)]=function(_0x32b8c2,_0x4964a6){return _0x32b8c2+_0x4964a6;},_0x4db488[_0x586ebd(0x21d)]=_0x586ebd(0x256),_0x4db488[_0x586ebd(0x1fc)]=function(_0x37b7c9,_0x2a362b){return _0x37b7c9!==_0x2a362b;},_0x4db488[_0x586ebd(0x205)]=function(_0xa65fd3,_0x47c182){return _0xa65fd3>=_0x47c182;},_0x4db488[_0x586ebd(0x221)]=function(_0x275055,_0x43b40c){return _0x275055+_0x43b40c;},_0x4db488[_0x586ebd(0x1f0)]=function(_0x1a5037,_0x2b6d0f){return _0x1a5037+_0x2b6d0f;};const _0x57845b=_0x4db488,{failureThresholdCount:_0xf289d1}=this[_0x586ebd(0x232)];if(_0x57845b[_0x586ebd(0x241)](_0xf289d1,null)||_0x57845b['mrVfj'](_0xf289d1,undefined)||_0x57845b['KYyIl'](_0xf289d1,0x0))return logger[_0x586ebd(0x248)]('['+TAG+_0x586ebd(0x1f3)),![];if(this[_0x586ebd(0x1ee)]){try{if(fs[_0x586ebd(0x21b)](this['failFastActiveMarkerPath']))return logger[_0x586ebd(0x248)]('['+TAG+_0x586ebd(0x1f8)),!this[_0x586ebd(0x210)]['failFastActive']&&(this[_0x586ebd(0x210)]['failFastActive']=!![]),this[_0x586ebd(0x23c)](),!![];}catch(_0x535969){logger[_0x586ebd(0x1e6)]('['+TAG+_0x586ebd(0x1ef)+_0x535969['message']+(_0x535969[_0x586ebd(0x215)]?_0x57845b['vafSc'](_0x57845b[_0x586ebd(0x21d)],_0x535969['stack']):''));}const _0x2e631d=_0x57845b[_0x586ebd(0x1fc)](this[_0x586ebd(0x210)][_0x586ebd(0x216)],undefined)?this['state']['lastAPIFailedCount']:0x0;if(_0x57845b[_0x586ebd(0x205)](_0x2e631d,_0xf289d1)){logger['info']('['+TAG+'_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x2e631d+_0x586ebd(0x1eb)+_0xf289d1+'.');try{fs[_0x586ebd(0x252)](this[_0x586ebd(0x1ff)],new Date()['toISOString']()),logger[_0x586ebd(0x248)]('['+TAG+_0x586ebd(0x1ea)+this[_0x586ebd(0x1ff)]),this[_0x586ebd(0x210)]['failFastActive']=!![];}catch(_0x306d5a){logger[_0x586ebd(0x1e6)]('['+TAG+_0x586ebd(0x22a)+_0x306d5a[_0x586ebd(0x217)]+(_0x306d5a[_0x586ebd(0x215)]?_0x57845b['MeLWQ'](_0x57845b[_0x586ebd(0x21d)],_0x306d5a[_0x586ebd(0x215)]):''));}return this[_0x586ebd(0x23c)](),!![];}}else{let _0x3bb11f;try{_0x3bb11f=await this[_0x586ebd(0x1dd)][_0x586ebd(0x246)]();if(!_0x3bb11f)return logger['warn']('['+TAG+'_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.'),![];}catch(_0x217c45){return logger[_0x586ebd(0x1e6)]('['+TAG+_0x586ebd(0x207)+_0x217c45['message']+(_0x217c45[_0x586ebd(0x215)]?_0x57845b[_0x586ebd(0x1f0)](_0x57845b['OBGGF'],_0x217c45[_0x586ebd(0x215)]):'')),![];}this['state']={...this[_0x586ebd(0x226)](),..._0x3bb11f,'uniqueFailedTests':new Set(_0x3bb11f['uniqueFailedTests']||[])};if(this[_0x586ebd(0x210)][_0x586ebd(0x1ec)])return logger[_0x586ebd(0x248)]('['+TAG+_0x586ebd(0x220)),!![];const _0x4ece4f=this[_0x586ebd(0x210)][_0x586ebd(0x231)],_0x434de5=_0x4ece4f['size'];if(_0x57845b[_0x586ebd(0x205)](_0x434de5,_0xf289d1)){try{logger[_0x586ebd(0x1e5)]('['+TAG+'_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x434de5+_0x586ebd(0x1eb)+_0xf289d1+'.'),this[_0x586ebd(0x210)]['failFastActive']=!![];}catch(_0x589bb0){logger['error']('['+TAG+_0x586ebd(0x1fb)+_0x589bb0[_0x586ebd(0x217)]+(_0x589bb0['stack']?_0x57845b[_0x586ebd(0x20b)](_0x57845b[_0x586ebd(0x21d)],_0x589bb0['stack']):''));}return!![];}}return![];}async[a146_0x49c42e(0x20c)](){const _0x2c4ae4=a146_0x49c42e,_0x4c47ca={};_0x4c47ca['UCQTA']=function(_0xe6f674,_0x19bebb){return _0xe6f674+_0x19bebb;},_0x4c47ca[_0x2c4ae4(0x1e9)]=_0x2c4ae4(0x256);const _0x1f6cae=_0x4c47ca;this[_0x2c4ae4(0x23c)]();if(this['isCIMode'])logger[_0x2c4ae4(0x248)]('['+TAG+_0x2c4ae4(0x250));else try{const _0x57e7a6={...this['state'],'uniqueFailedTests':Array[_0x2c4ae4(0x1f2)](this[_0x2c4ae4(0x210)]['uniqueFailedTests']||new Set())};await this['fileHelper'][_0x2c4ae4(0x243)](_0x57e7a6),logger[_0x2c4ae4(0x248)]('['+TAG+_0x2c4ae4(0x212));}catch(_0x185c94){logger[_0x2c4ae4(0x1e6)]('['+TAG+_0x2c4ae4(0x22c)+_0x185c94['message']+(_0x185c94[_0x2c4ae4(0x215)]?_0x1f6cae[_0x2c4ae4(0x23b)](_0x1f6cae[_0x2c4ae4(0x1e9)],_0x185c94['stack']):''));}}}module[a146_0x49c42e(0x245)]=FailFastManager;
|
|
1
|
+
const a147_0x5343c6=a147_0x45f7;(function(_0x3c9099,_0x476ed8){const _0x37e420=a147_0x45f7,_0x574762=_0x3c9099();while(!![]){try{const _0xfcb01d=parseInt(_0x37e420(0xf7))/0x1*(-parseInt(_0x37e420(0xa4))/0x2)+parseInt(_0x37e420(0xca))/0x3+-parseInt(_0x37e420(0xdf))/0x4*(parseInt(_0x37e420(0xe1))/0x5)+-parseInt(_0x37e420(0xe7))/0x6+-parseInt(_0x37e420(0xc5))/0x7*(-parseInt(_0x37e420(0x99))/0x8)+-parseInt(_0x37e420(0xc8))/0x9+parseInt(_0x37e420(0xc6))/0xa;if(_0xfcb01d===_0x476ed8)break;else _0x574762['push'](_0x574762['shift']());}catch(_0x113e3f){_0x574762['push'](_0x574762['shift']());}}}(a147_0x21a4,0x52877));function a147_0x21a4(){const _0x1e3caa=['totalTests','_sendFailedTestsToAPI','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','fireE','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','XlxNF','10HmiOWd','getFailedTestsCount','failFast.active','stateFilePath','FailFastManager','warn','JeDPg','BROWSERSTACK_TOTAL_NODE_COUNT',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','./fileHelper','kyTkg','DHHoV','WEtJk','buildRunIdentifier','startPolling','message','yzbuN','zEnBV','DKtok','_Local]\x20State\x20initialized\x20from\x20file.','size','vIYwc','from','toISOString','shouldFailFast','fileHelper','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','writeState','projectName','mWSDT','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','QudAA','_initializeStateFromFile','4402181QAyGCy','16042620IaOJIv','znuiF','3522420xQSdSb','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','1006452UaOoFW','reportedFailuresToAPI','\x0aStack:\x20','hjqkw','ItMtg','writeFileSync','VODYn','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','\x20(was\x20','putFailedTests','lockFilePath','env','lastAPIFailedCount','_fetchAPIFailedCount','gHCGk','onTestDone','kHaVk','NGjvw','existsSync','state','PhpLI','809048nbToLi','_CI]\x20API\x20failed\x20count\x20updated:\x20','15Ealqcp','BtUBf','LvGXQ','failFastActiveMarkerPath','cleanup','GVYwZ','3679164OXOOyE','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','workingDir','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','yOpYo','isCIMode','stopPolling','recordTestResult','EoMlE','_getDefaultState',',\x20CI\x20Mode:\x20',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','failFastActive','BROWSERSTACK_NODE_INDEX','failFastConfig','123846gpixDF','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','info','error','UVufS','./requestUtils','pollingInterval','passed','readState','../logger','failFastState.json','buildName','exports','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','tpebK','uMKwx','join','_CI]\x20Error\x20sending\x20failed\x20test\x20','nVjLm','failFastState.lock','failed','length','ms.','debug','mQIef','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','uniqueFailedTests','number','_pollFailedTests','FtbEm','BROWSERSTACK_BUILD_RUN_IDENTIFIER','winstonLogger','mDzza','miAoF','stack','OTvJE',']\x20Polling\x20stopped.','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20',',\x20threshold:\x20','8CDKrTW','add','NWbVf','failedTests','SsPOZ'];a147_0x21a4=function(){return _0x1e3caa;};return a147_0x21a4();}const fs=require('fs'),path=require('path'),FileHelper=require(a147_0x5343c6(0xad)),RequestUtils=require(a147_0x5343c6(0xfc)),logger=require(a147_0x5343c6(0x100))[a147_0x5343c6(0x117)],POLLING_INTERVAL=0x2710,TAG=a147_0x5343c6(0xa8);class FailFastManager{constructor(_0x1db3d8,_0x637cc9,_0x40a922){const _0xf99f34=a147_0x5343c6,_0x5f50ca={};_0x5f50ca['mDzza']=function(_0x2f8022,_0x3ea585){return _0x2f8022+_0x3ea585;},_0x5f50ca['SsPOZ']='\x0aStack:\x20',_0x5f50ca[_0xf99f34(0x110)]=function(_0x10f707,_0x2f7adf){return _0x10f707||_0x2f7adf;},_0x5f50ca[_0xf99f34(0xb0)]=_0xf99f34(0x101),_0x5f50ca[_0xf99f34(0xaa)]=_0xf99f34(0x10b),_0x5f50ca[_0xf99f34(0xec)]=_0xf99f34(0xa6);const _0x12296c=_0x5f50ca;this[_0xf99f34(0xf6)]=_0x12296c[_0xf99f34(0x110)](_0x1db3d8,{}),this[_0xf99f34(0x102)]=_0x637cc9,this[_0xf99f34(0xc0)]=_0x40a922,this['isCIMode']=!!(process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER']&&process['env'][_0xf99f34(0xf5)]&&process[_0xf99f34(0xd5)][_0xf99f34(0xab)]);const _0x4d7dab=this[_0xf99f34(0xf6)][_0xf99f34(0xea)];this['stateFilePath']=path[_0xf99f34(0x108)](_0x4d7dab,_0x12296c[_0xf99f34(0xb0)]),this[_0xf99f34(0xd4)]=path[_0xf99f34(0x108)](_0x4d7dab,_0x12296c['JeDPg']),this[_0xf99f34(0xe4)]=path[_0xf99f34(0x108)](_0x4d7dab,_0x12296c[_0xf99f34(0xec)]),this[_0xf99f34(0xbd)]=new FileHelper(this['failFastConfig'],this[_0xf99f34(0xa7)],this['lockFilePath'],this[_0xf99f34(0xf1)]()),this[_0xf99f34(0xdd)]=this[_0xf99f34(0xf1)](),this[_0xf99f34(0xfd)]=null,this[_0xf99f34(0xed)]&&(this[_0xf99f34(0xcb)]=new Set()),this['_initializeStateFromFile']()['catch'](_0x4c9cf5=>{const _0x656c7b=_0xf99f34;logger[_0x656c7b(0xfa)]('['+TAG+_0x656c7b(0xf3)+_0x4c9cf5[_0x656c7b(0xb3)]+(_0x4c9cf5[_0x656c7b(0x11a)]?_0x12296c[_0x656c7b(0x118)](_0x12296c[_0x656c7b(0x9d)],_0x4c9cf5[_0x656c7b(0x11a)]):'')),this[_0x656c7b(0xdd)]=this[_0x656c7b(0xf1)]();}),this[_0xf99f34(0xed)]&&this[_0xf99f34(0xb2)](),logger['debug']('['+TAG+_0xf99f34(0xac)+this['failFastConfig']['failureThresholdCount']+_0xf99f34(0xf2)+this[_0xf99f34(0xed)]);}['_getDefaultState'](){const _0x5ecb17={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x5ecb17;}async[a147_0x5343c6(0xc4)](){const _0x47d059=a147_0x5343c6,_0x580ed3={};_0x580ed3['UVufS']=function(_0x4170f2,_0x4793e9){return _0x4170f2+_0x4793e9;},_0x580ed3['BtUBf']=_0x47d059(0xcc);const _0x5ac7d3=_0x580ed3;if(this[_0x47d059(0xed)])try{fs[_0x47d059(0xdc)](this['failFastActiveMarkerPath'])&&(this[_0x47d059(0xdd)][_0x47d059(0xf4)]=!![],logger[_0x47d059(0x10f)]('['+TAG+_0x47d059(0xeb)));}catch(_0x26bf03){logger[_0x47d059(0xfa)]('['+TAG+_0x47d059(0xbe)+_0x26bf03[_0x47d059(0xb3)]+(_0x26bf03['stack']?_0x5ac7d3[_0x47d059(0xfb)](_0x5ac7d3[_0x47d059(0xe2)],_0x26bf03[_0x47d059(0x11a)]):''));}else try{const _0x32d312=await this[_0x47d059(0xbd)][_0x47d059(0xff)]();if(_0x32d312)this[_0x47d059(0xdd)]={...this[_0x47d059(0xf1)](),..._0x32d312,'uniqueFailedTests':new Set(_0x32d312[_0x47d059(0x112)]||[])},logger['debug']('['+TAG+_0x47d059(0xb7));else{logger[_0x47d059(0x10f)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.');const _0x453045=this[_0x47d059(0xf1)](),_0x3e825f={..._0x453045,'uniqueFailedTests':Array['from'](_0x453045[_0x47d059(0x112)])};await this['fileHelper'][_0x47d059(0xbf)](_0x3e825f),this[_0x47d059(0xdd)]=_0x453045;}}catch(_0x1a3c6e){logger[_0x47d059(0x10f)]('['+TAG+_0x47d059(0x97)+_0x1a3c6e[_0x47d059(0xb3)]+(_0x1a3c6e[_0x47d059(0x11a)]?_0x5ac7d3[_0x47d059(0xfb)](_0x5ac7d3[_0x47d059(0xe2)],_0x1a3c6e[_0x47d059(0x11a)]):'')),this[_0x47d059(0xdd)]=this['_getDefaultState']();}}async[a147_0x5343c6(0xd9)](_0x515dcd,_0x1cffbc){const _0x463990=a147_0x5343c6,_0xf4a24e={};_0xf4a24e[_0x463990(0xdb)]=function(_0x30e820,_0x1dab88){return _0x30e820>_0x1dab88;},_0xf4a24e[_0x463990(0x10a)]=function(_0x1e732a,_0xabf0c5){return _0x1e732a>_0xabf0c5;},_0xf4a24e[_0x463990(0xc3)]=_0x463990(0x10c),_0xf4a24e['OTvJE']=_0x463990(0xfe),_0xf4a24e['XlxNF']=function(_0x2bb24b,_0xe981df){return _0x2bb24b+_0xe981df;},_0xf4a24e[_0x463990(0xd0)]=_0x463990(0xcc),_0xf4a24e['yzbuN']=function(_0x4118ae,_0x4ae11a){return _0x4118ae||_0x4ae11a;},_0xf4a24e[_0x463990(0xd8)]=function(_0x18aadd,_0x531edb){return _0x18aadd+_0x531edb;};const _0x3d141f=_0xf4a24e;if(this[_0x463990(0xed)])this[_0x463990(0xdd)][_0x463990(0x9e)]+=0x1,_0x1cffbc&&_0x3d141f[_0x463990(0xdb)](_0x1cffbc[_0x463990(0x10d)],0x0)&&(!this[_0x463990(0xcb)]['has'](_0x515dcd)&&(await this[_0x463990(0x9f)](_0x515dcd),this['reportedFailuresToAPI'][_0x463990(0x9a)](_0x515dcd)));else try{const _0x3edad0={'fullName':_0x515dcd,'status':_0x1cffbc&&_0x3d141f['nVjLm'](_0x1cffbc['length'],0x0)?_0x3d141f[_0x463990(0xc3)]:_0x3d141f[_0x463990(0x11b)]},_0x4f84db=await this[_0x463990(0xbd)][_0x463990(0xef)](_0x3edad0);this[_0x463990(0xdd)]={...this['_getDefaultState'](),..._0x4f84db['newState'],'uniqueFailedTests':new Set(_0x4f84db['newState']['uniqueFailedTests']||[])};}catch(_0x556fd3){logger[_0x463990(0xfa)]('['+TAG+_0x463990(0xc9)+_0x556fd3['message']+(_0x556fd3[_0x463990(0x11a)]?_0x3d141f[_0x463990(0xa3)](_0x3d141f[_0x463990(0xd0)],_0x556fd3[_0x463990(0x11a)]):''));try{const _0x59ce52=await this[_0x463990(0xbd)][_0x463990(0xff)]();this[_0x463990(0xdd)]={...this[_0x463990(0xf1)](),..._0x3d141f[_0x463990(0xb4)](_0x59ce52,{}),'uniqueFailedTests':new Set(_0x59ce52?_0x59ce52[_0x463990(0x112)]||[]:[])},logger[_0x463990(0x10f)]('['+TAG+_0x463990(0x104));}catch(_0x161fde){logger[_0x463990(0xfa)]('['+TAG+_0x463990(0xe8)+_0x161fde[_0x463990(0xb3)]+(_0x161fde[_0x463990(0x11a)]?_0x3d141f[_0x463990(0xd8)](_0x3d141f[_0x463990(0xd0)],_0x161fde[_0x463990(0x11a)]):'')),this['state']=this[_0x463990(0xf1)]();}}}async[a147_0x5343c6(0x9f)](_0x2f86e2){const _0x2036f6=a147_0x5343c6,_0x4553cb={};_0x4553cb['fTMTz']=function(_0x21fd92,_0x485cc6){return _0x21fd92+_0x485cc6;},_0x4553cb['fireE']=_0x2036f6(0xcc);const _0x49a230=_0x4553cb;if(!this['isCIMode']||!_0x2f86e2)return;try{logger[_0x2036f6(0x10f)]('['+TAG+_0x2036f6(0x111)+_0x2f86e2);const _0x3e786e={};_0x3e786e[_0x2036f6(0x102)]=this[_0x2036f6(0x102)],_0x3e786e[_0x2036f6(0xc0)]=this[_0x2036f6(0xc0)],_0x3e786e[_0x2036f6(0x9c)]=[_0x2f86e2],_0x3e786e[_0x2036f6(0xb1)]=process[_0x2036f6(0xd5)][_0x2036f6(0x116)],await RequestUtils[_0x2036f6(0xd3)](_0x3e786e);}catch(_0x3b1d71){logger[_0x2036f6(0xfa)]('['+TAG+_0x2036f6(0x109)+_0x2f86e2+'\x20to\x20API:\x20'+_0x3b1d71['message']+(_0x3b1d71[_0x2036f6(0x11a)]?_0x49a230['fTMTz'](_0x49a230[_0x2036f6(0xa1)],_0x3b1d71['stack']):''));}}async[a147_0x5343c6(0xd7)](){const _0x5413d1=a147_0x5343c6,_0x41e719={};_0x41e719[_0x5413d1(0xe6)]=function(_0x491a93,_0x5ba67c){return _0x491a93===_0x5ba67c;},_0x41e719[_0x5413d1(0xde)]=_0x5413d1(0x113),_0x41e719[_0x5413d1(0xae)]=function(_0x316e27,_0x34cf5e){return _0x316e27+_0x34cf5e;},_0x41e719[_0x5413d1(0x9b)]='\x0aStack:\x20',_0x41e719['FtbEm']=function(_0x434695,_0x2c604f){return _0x434695!==_0x2c604f;};const _0x427e5f=_0x41e719;if(!this[_0x5413d1(0xed)])return 0x0;try{const _0x1abcb2={};_0x1abcb2[_0x5413d1(0x102)]=this['buildName'],_0x1abcb2[_0x5413d1(0xc0)]=this[_0x5413d1(0xc0)],_0x1abcb2['buildRunIdentifier']=process[_0x5413d1(0xd5)][_0x5413d1(0x116)];const _0x464e23=await RequestUtils[_0x5413d1(0xa5)](_0x1abcb2);return logger['debug']('['+TAG+_0x5413d1(0xf8)+_0x464e23),_0x427e5f['GVYwZ'](typeof _0x464e23,_0x427e5f[_0x5413d1(0xde)])?_0x464e23:0x0;}catch(_0x188d56){return logger[_0x5413d1(0xfa)]('['+TAG+'_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20'+_0x188d56[_0x5413d1(0xb3)]+(_0x188d56['stack']?_0x427e5f[_0x5413d1(0xae)](_0x427e5f[_0x5413d1(0x9b)],_0x188d56[_0x5413d1(0x11a)]):'')),_0x427e5f[_0x5413d1(0x115)](this['state']['lastAPIFailedCount'],undefined)?this['state'][_0x5413d1(0xd6)]:0x0;}}async[a147_0x5343c6(0x114)](){const _0x2b5019=a147_0x5343c6,_0x288f2a={};_0x288f2a[_0x2b5019(0xda)]=function(_0x284082,_0x1b331d){return _0x284082!==_0x1b331d;},_0x288f2a[_0x2b5019(0xb5)]=function(_0x27b9b2,_0x59414e){return _0x27b9b2+_0x59414e;},_0x288f2a['ItMtg']=_0x2b5019(0xcc);const _0x3675e6=_0x288f2a;if(!this[_0x2b5019(0xed)])return;try{const _0x42507c=await this['_fetchAPIFailedCount']();_0x3675e6[_0x2b5019(0xda)](_0x42507c,this[_0x2b5019(0xdd)][_0x2b5019(0xd6)])&&(logger[_0x2b5019(0x10f)]('['+TAG+_0x2b5019(0xe0)+_0x42507c+_0x2b5019(0xd2)+this[_0x2b5019(0xdd)][_0x2b5019(0xd6)]+')'),this[_0x2b5019(0xdd)][_0x2b5019(0xd6)]=_0x42507c);}catch(_0x129b30){logger['error']('['+TAG+'_CI]\x20Error\x20during\x20polling\x20logic:\x20'+_0x129b30[_0x2b5019(0xb3)]+(_0x129b30[_0x2b5019(0x11a)]?_0x3675e6[_0x2b5019(0xb5)](_0x3675e6[_0x2b5019(0xce)],_0x129b30[_0x2b5019(0x11a)]):''));}}async[a147_0x5343c6(0xb2)](){const _0x38d0a9=a147_0x5343c6,_0x42692e={'vIYwc':function(_0x5c5818,_0x242515,_0x12807d){return _0x5c5818(_0x242515,_0x12807d);}};this['pollingInterval']&&this[_0x38d0a9(0xee)](),this['isCIMode']&&(await this[_0x38d0a9(0x114)](),this[_0x38d0a9(0xfd)]=_0x42692e[_0x38d0a9(0xb9)](setInterval,async()=>{const _0x4c4502=_0x38d0a9;await this[_0x4c4502(0x114)]();},POLLING_INTERVAL),logger[_0x38d0a9(0x10f)]('['+TAG+'_CI]\x20Polling\x20started\x20with\x20interval:\x20'+POLLING_INTERVAL+_0x38d0a9(0x10e)));}['stopPolling'](){const _0x3fc732=a147_0x5343c6,_0x3fefd8={'ZltEZ':function(_0x313ce6,_0x3301e8){return _0x313ce6(_0x3301e8);}};this[_0x3fc732(0xfd)]&&(_0x3fefd8['ZltEZ'](clearInterval,this['pollingInterval']),this[_0x3fc732(0xfd)]=null,logger['debug']('['+TAG+_0x3fc732(0x96)));}async[a147_0x5343c6(0xbc)](){const _0x2c76d6=a147_0x5343c6,_0x52ca35={};_0x52ca35['uMKwx']=function(_0x9e192d,_0x151f43){return _0x9e192d===_0x151f43;},_0x52ca35[_0x2c76d6(0xe3)]=function(_0x44dfcc,_0xdcf5bd){return _0x44dfcc===_0xdcf5bd;},_0x52ca35['DHHoV']=function(_0x2bbbb1,_0x453c83){return _0x2bbbb1<=_0x453c83;},_0x52ca35[_0x2c76d6(0xc7)]=function(_0x386a0e,_0x31fe7a){return _0x386a0e+_0x31fe7a;},_0x52ca35['mWSDT']=_0x2c76d6(0xcc),_0x52ca35['jtqaW']=function(_0x3b84de,_0x1329b0){return _0x3b84de!==_0x1329b0;},_0x52ca35[_0x2c76d6(0xcd)]=function(_0x16d0bf,_0x3a6ae6){return _0x16d0bf>=_0x3a6ae6;},_0x52ca35[_0x2c76d6(0xf0)]=function(_0x5a03a3,_0xac8ddf){return _0x5a03a3+_0xac8ddf;},_0x52ca35[_0x2c76d6(0x106)]=function(_0x4a8b59,_0x52f9d1){return _0x4a8b59+_0x52f9d1;};const _0x47d6e1=_0x52ca35,{failureThresholdCount:_0x4e4938}=this[_0x2c76d6(0xf6)];if(_0x47d6e1[_0x2c76d6(0x107)](_0x4e4938,null)||_0x47d6e1[_0x2c76d6(0xe3)](_0x4e4938,undefined)||_0x47d6e1[_0x2c76d6(0xaf)](_0x4e4938,0x0))return logger[_0x2c76d6(0x10f)]('['+TAG+']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.'),![];if(this[_0x2c76d6(0xed)]){try{if(fs[_0x2c76d6(0xdc)](this[_0x2c76d6(0xe4)]))return logger['debug']('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.'),!this['state']['failFastActive']&&(this[_0x2c76d6(0xdd)][_0x2c76d6(0xf4)]=!![]),this[_0x2c76d6(0xee)](),!![];}catch(_0x7ece2a){logger[_0x2c76d6(0xfa)]('['+TAG+_0x2c76d6(0xbe)+_0x7ece2a['message']+(_0x7ece2a[_0x2c76d6(0x11a)]?_0x47d6e1[_0x2c76d6(0xc7)](_0x47d6e1[_0x2c76d6(0xc1)],_0x7ece2a[_0x2c76d6(0x11a)]):''));}const _0x59d9fe=_0x47d6e1['jtqaW'](this[_0x2c76d6(0xdd)]['lastAPIFailedCount'],undefined)?this[_0x2c76d6(0xdd)][_0x2c76d6(0xd6)]:0x0;if(_0x47d6e1['hjqkw'](_0x59d9fe,_0x4e4938)){logger[_0x2c76d6(0xf9)]('['+TAG+'_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x59d9fe+',\x20threshold:\x20'+_0x4e4938+'.');try{fs[_0x2c76d6(0xcf)](this['failFastActiveMarkerPath'],new Date()[_0x2c76d6(0xbb)]()),logger['debug']('['+TAG+'_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20'+this[_0x2c76d6(0xe4)]),this[_0x2c76d6(0xdd)][_0x2c76d6(0xf4)]=!![];}catch(_0x28b0f4){logger[_0x2c76d6(0xfa)]('['+TAG+'_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20'+_0x28b0f4['message']+(_0x28b0f4[_0x2c76d6(0x11a)]?_0x47d6e1[_0x2c76d6(0xc7)](_0x47d6e1['mWSDT'],_0x28b0f4[_0x2c76d6(0x11a)]):''));}return this[_0x2c76d6(0xee)](),!![];}}else{let _0x394073;try{_0x394073=await this[_0x2c76d6(0xbd)][_0x2c76d6(0xff)]();if(!_0x394073)return logger[_0x2c76d6(0xa9)]('['+TAG+_0x2c76d6(0xd1)),![];}catch(_0x30c588){return logger[_0x2c76d6(0xfa)]('['+TAG+_0x2c76d6(0x105)+_0x30c588[_0x2c76d6(0xb3)]+(_0x30c588['stack']?_0x47d6e1[_0x2c76d6(0xf0)](_0x47d6e1[_0x2c76d6(0xc1)],_0x30c588[_0x2c76d6(0x11a)]):'')),![];}this[_0x2c76d6(0xdd)]={...this[_0x2c76d6(0xf1)](),..._0x394073,'uniqueFailedTests':new Set(_0x394073[_0x2c76d6(0x112)]||[])};if(this[_0x2c76d6(0xdd)][_0x2c76d6(0xf4)])return logger[_0x2c76d6(0x10f)]('['+TAG+'_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.'),!![];const _0x4d92ad=this[_0x2c76d6(0xdd)][_0x2c76d6(0x112)],_0x4812dd=_0x4d92ad[_0x2c76d6(0xb8)];if(_0x47d6e1[_0x2c76d6(0xcd)](_0x4812dd,_0x4e4938)){try{logger[_0x2c76d6(0xf9)]('['+TAG+_0x2c76d6(0xc2)+_0x4812dd+_0x2c76d6(0x98)+_0x4e4938+'.'),this[_0x2c76d6(0xdd)]['failFastActive']=!![];}catch(_0x303d28){logger[_0x2c76d6(0xfa)]('['+TAG+_0x2c76d6(0xe9)+_0x303d28[_0x2c76d6(0xb3)]+(_0x303d28['stack']?_0x47d6e1[_0x2c76d6(0x106)](_0x47d6e1[_0x2c76d6(0xc1)],_0x303d28[_0x2c76d6(0x11a)]):''));}return!![];}}return![];}async[a147_0x5343c6(0xe5)](){const _0x370988=a147_0x5343c6,_0x4c42f5={};_0x4c42f5['miAoF']=function(_0x2d1dd3,_0x962bde){return _0x2d1dd3+_0x962bde;},_0x4c42f5[_0x370988(0xb6)]=_0x370988(0xcc);const _0x2723a0=_0x4c42f5;this[_0x370988(0xee)]();if(this['isCIMode'])logger[_0x370988(0x10f)]('['+TAG+_0x370988(0xa2));else try{const _0x2ab1b1={...this['state'],'uniqueFailedTests':Array[_0x370988(0xba)](this['state']['uniqueFailedTests']||new Set())};await this[_0x370988(0xbd)][_0x370988(0xbf)](_0x2ab1b1),logger['debug']('['+TAG+_0x370988(0xa0));}catch(_0x4c0a29){logger['error']('['+TAG+'_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20'+_0x4c0a29[_0x370988(0xb3)]+(_0x4c0a29['stack']?_0x2723a0[_0x370988(0x119)](_0x2723a0[_0x370988(0xb6)],_0x4c0a29['stack']):''));}}}function a147_0x45f7(_0x2b0167,_0x5e2838){const _0x21a4b9=a147_0x21a4();return a147_0x45f7=function(_0x45f79f,_0x39d395){_0x45f79f=_0x45f79f-0x96;let _0x28b453=_0x21a4b9[_0x45f79f];return _0x28b453;},a147_0x45f7(_0x2b0167,_0x5e2838);}module[a147_0x5343c6(0x103)]=FailFastManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a148_0x74f1e6=a148_0x1454;function a148_0x1087(){const _0x3f0873=[']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','MiGRE','lastAPIFailedCount','FailFastFileHelper','247488mqsQtN','NguUx','recordTestResult','writeState','JRLUW','NjnwK','KIQLk','stringify','warn','iterator','fullName','winstonLogger','releaseLock','5atXWNT','KERju','function','2240931YSoSmj','newState','stateFilePath','isArray','totalTests','758728OOvpMp','failed','status','updateAPIFailedCount','../logger','utf8','exports','code','stack','qtXfd','acquireLock','failFastConfig','EEXIST','existsSync','has','14CMNCrM','UAJkK','3132564LuWiec','16980858WXVdbg',']\x20Error\x20creating\x20state\x20file:\x20',']\x20Error\x20releasing\x20lock:\x20','3929968XvesXs','readState','unlinkSync','lockFilePath','closeSync','error','message','split','failedTests',']\x20Error\x20reading\x20state\x20file:\x20','defaultState','uniqueFailedTests','writeFileSync','from','2064548RYrJHM','openSync'];a148_0x1087=function(){return _0x3f0873;};return a148_0x1087();}(function(_0x190b28,_0x11753e){const _0x2398a4=a148_0x1454,_0x9e3e31=_0x190b28();while(!![]){try{const _0x1e0fe0=parseInt(_0x2398a4(0x15b))/0x1+-parseInt(_0x2398a4(0x146))/0x2+parseInt(_0x2398a4(0x156))/0x3+-parseInt(_0x2398a4(0x140))/0x4*(-parseInt(_0x2398a4(0x153))/0x5)+parseInt(_0x2398a4(0x16c))/0x6*(parseInt(_0x2398a4(0x16a))/0x7)+-parseInt(_0x2398a4(0x170))/0x8+-parseInt(_0x2398a4(0x16d))/0x9;if(_0x1e0fe0===_0x11753e)break;else _0x9e3e31['push'](_0x9e3e31['shift']());}catch(_0x42464e){_0x9e3e31['push'](_0x9e3e31['shift']());}}}(a148_0x1087,0x89c36));const fs=require('fs'),logger=require(a148_0x74f1e6(0x15f))[a148_0x74f1e6(0x151)],TAG=a148_0x74f1e6(0x145);class FileHelper{constructor(_0x476646,_0x3ead9a,_0x1562b5,_0x231da4){const _0x2aad50=a148_0x74f1e6,_0x4f8194={};_0x4f8194[_0x2aad50(0x14c)]='0|2|1|4|3',_0x4f8194['KERju']=_0x2aad50(0x160);const _0x1008e1=_0x4f8194,_0x39b022=_0x1008e1[_0x2aad50(0x14c)][_0x2aad50(0x177)]('|');let _0x27f5f6=0x0;while(!![]){switch(_0x39b022[_0x27f5f6++]){case'0':this[_0x2aad50(0x166)]=_0x476646;continue;case'1':this[_0x2aad50(0x173)]=_0x1562b5;continue;case'2':this['stateFilePath']=_0x3ead9a;continue;case'3':if(!fs[_0x2aad50(0x168)](this[_0x2aad50(0x158)]))try{fs[_0x2aad50(0x13e)](this[_0x2aad50(0x158)],'{}',_0x1008e1[_0x2aad50(0x154)]);}catch(_0x4f5d58){logger[_0x2aad50(0x175)]('['+TAG+_0x2aad50(0x16e)+_0x4f5d58['message']+'\x20'+_0x4f5d58[_0x2aad50(0x163)]);}continue;case'4':this[_0x2aad50(0x17a)]=_0x231da4;continue;}break;}}async[a148_0x74f1e6(0x165)](){const _0x290341=a148_0x74f1e6,_0x114b90={};_0x114b90['JRLUW']=function(_0x550c14,_0x3a926d){return _0x550c14===_0x3a926d;},_0x114b90[_0x290341(0x16b)]=_0x290341(0x167);const _0x25dc74=_0x114b90;let _0x298fe4;try{return _0x298fe4=fs[_0x290341(0x141)](this[_0x290341(0x173)],'wx'),_0x298fe4;}catch(_0x4cc53f){if(_0x25dc74[_0x290341(0x14a)](_0x4cc53f[_0x290341(0x162)],_0x25dc74[_0x290341(0x16b)]))return null;throw _0x4cc53f;}}async[a148_0x74f1e6(0x152)](_0x1f8b7b){const _0x2697f4=a148_0x74f1e6;if(_0x1f8b7b)try{fs[_0x2697f4(0x174)](_0x1f8b7b),fs[_0x2697f4(0x172)](this[_0x2697f4(0x173)]);}catch(_0x104fc1){logger['error']('['+TAG+_0x2697f4(0x16f)+_0x104fc1[_0x2697f4(0x176)]+'\x20'+_0x104fc1[_0x2697f4(0x163)]);}}['readState'](){const _0x247609=a148_0x74f1e6,_0x468187={};_0x468187[_0x247609(0x147)]=_0x247609(0x160);const _0x16b88c=_0x468187;try{const _0x240826=fs['readFileSync'](this[_0x247609(0x158)],_0x16b88c[_0x247609(0x147)]);return JSON['parse'](_0x240826);}catch(_0x452df1){return logger['error']('['+TAG+_0x247609(0x179)+_0x452df1[_0x247609(0x176)]+'\x20'+_0x452df1[_0x247609(0x163)]),null;}}async[a148_0x74f1e6(0x149)](_0x50c952){const _0x4953f4=a148_0x74f1e6,_0x2e8adc={..._0x50c952,'uniqueFailedTests':Array['isArray'](_0x50c952[_0x4953f4(0x17b)])?_0x50c952['uniqueFailedTests']:Array[_0x4953f4(0x13f)](_0x50c952[_0x4953f4(0x17b)]||[])};try{fs[_0x4953f4(0x13e)](this['stateFilePath'],JSON[_0x4953f4(0x14d)](_0x2e8adc,null,0x2));}catch(_0x2bd631){logger[_0x4953f4(0x175)]('['+TAG+']\x20Error\x20writing\x20state\x20file:\x20'+_0x2bd631[_0x4953f4(0x176)]+'\x20'+_0x2bd631[_0x4953f4(0x163)]);throw _0x2bd631;}}async[a148_0x74f1e6(0x148)](_0x16f2dd,_0x5ba00c){const _0x3e8837=a148_0x74f1e6,_0x2043a6={};_0x2043a6[_0x3e8837(0x164)]=function(_0x2ea676,_0xd93183){return _0x2ea676!==_0xd93183;},_0x2043a6['NjnwK']=_0x3e8837(0x155),_0x2043a6['DkQhr']=function(_0x1da8a6,_0x51219e){return _0x1da8a6===_0x51219e;},_0x2043a6[_0x3e8837(0x143)]=_0x3e8837(0x15c);const _0x1a8791=_0x2043a6,_0x538fd7=await this[_0x3e8837(0x165)]();if(!_0x538fd7)return logger['warn']('['+TAG+']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.'),{'newState':this[_0x3e8837(0x171)]()||this[_0x3e8837(0x17a)],'isNewFailure':![]};try{let _0x4d84ba=this['readState']();!_0x4d84ba&&(_0x4d84ba=JSON['parse'](JSON[_0x3e8837(0x14d)](this[_0x3e8837(0x17a)])));if(!_0x4d84ba[_0x3e8837(0x17b)]||_0x1a8791['qtXfd'](typeof _0x4d84ba[_0x3e8837(0x17b)][Symbol[_0x3e8837(0x14f)]],_0x1a8791[_0x3e8837(0x14b)]))_0x4d84ba['uniqueFailedTests']=new Set();else Array[_0x3e8837(0x159)](_0x4d84ba[_0x3e8837(0x17b)])&&(_0x4d84ba[_0x3e8837(0x17b)]=new Set(_0x4d84ba['uniqueFailedTests']));_0x4d84ba[_0x3e8837(0x15a)]=_0x5ba00c;let _0x2cf2b2=![];_0x1a8791['DkQhr'](_0x16f2dd[_0x3e8837(0x15d)],_0x1a8791['MiGRE'])&&(_0x4d84ba[_0x3e8837(0x178)]+=0x1,!_0x4d84ba[_0x3e8837(0x17b)][_0x3e8837(0x169)](_0x16f2dd['fullName'])&&(_0x4d84ba[_0x3e8837(0x17b)]['add'](_0x16f2dd[_0x3e8837(0x150)]),_0x2cf2b2=!![]));await this[_0x3e8837(0x149)](_0x4d84ba);const _0x1d03b1={};return _0x1d03b1[_0x3e8837(0x157)]=_0x4d84ba,_0x1d03b1['isNewFailure']=_0x2cf2b2,_0x1d03b1;}finally{await this['releaseLock'](_0x538fd7);}}async[a148_0x74f1e6(0x15e)](_0x2780eb){const _0x13a185=a148_0x74f1e6,_0x165a52=await this[_0x13a185(0x165)]();if(!_0x165a52)return logger[_0x13a185(0x14e)]('['+TAG+_0x13a185(0x142)),this[_0x13a185(0x171)]()||this[_0x13a185(0x17a)];try{let _0x50fc49=this[_0x13a185(0x171)]();return!_0x50fc49&&(_0x50fc49=JSON['parse'](JSON['stringify'](this['defaultState']))),_0x50fc49[_0x13a185(0x144)]=_0x2780eb,await this[_0x13a185(0x149)](_0x50fc49),_0x50fc49;}finally{await this[_0x13a185(0x152)](_0x165a52);}}}function a148_0x1454(_0x1d1f39,_0x5979cd){const _0x108777=a148_0x1087();return a148_0x1454=function(_0x145491,_0x23efc1){_0x145491=_0x145491-0x13e;let _0x583ba4=_0x108777[_0x145491];return _0x583ba4;},a148_0x1454(_0x1d1f39,_0x5979cd);}module[a148_0x74f1e6(0x161)]=FileHelper;
|