browserstack-node-sdk 1.40.7 → 1.40.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/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/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/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a117_0x4a66fc=a117_0x539b;(function(_0x8c0ab7,_0x41aecf){const _0x580a1f=a117_0x539b,_0x55ea33=_0x8c0ab7();while(!![]){try{const _0x9d5d15=-parseInt(_0x580a1f(0xcf))/0x1*(parseInt(_0x580a1f(0x9d))/0x2)+parseInt(_0x580a1f(0xb7))/0x3*(parseInt(_0x580a1f(0xb5))/0x4)+parseInt(_0x580a1f(0xcb))/0x5+-parseInt(_0x580a1f(0x184))/0x6*(-parseInt(_0x580a1f(0x118))/0x7)+-parseInt(_0x580a1f(0xd9))/0x8*(-parseInt(_0x580a1f(0xea))/0x9)+parseInt(_0x580a1f(0x104))/0xa+-parseInt(_0x580a1f(0x197))/0xb;if(_0x9d5d15===_0x41aecf)break;else _0x55ea33['push'](_0x55ea33['shift']());}catch(_0x5bcb75){_0x55ea33['push'](_0x55ea33['shift']());}}}(a117_0x1863,0x98c53));function a117_0x539b(_0x18505c,_0x19ef0a){const _0x1863fa=a117_0x1863();return a117_0x539b=function(_0x539bad,_0x5d6659){_0x539bad=_0x539bad-0x98;let _0x274e28=_0x1863fa[_0x539bad];return _0x274e28;},a117_0x539b(_0x18505c,_0x19ef0a);}const fs=require('fs'),path=require(a117_0x4a66fc(0x166)),gitLastCommit=require(a117_0x4a66fc(0x12a)),getRepoInfo=require(a117_0x4a66fc(0xdf)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a117_0x4a66fc(0xae)),http=require('http'),https=require(a117_0x4a66fc(0x146)),child_process=require(a117_0x4a66fc(0x190)),getos=require(a117_0x4a66fc(0x138)),os=require('os'),logger=require('../logger')[a117_0x4a66fc(0x13e)],bsSetupHelper=require('../helper'),requestSpy=require(a117_0x4a66fc(0x177)),constants=require('../../bin/utils/constants'),logPatcher=require(a117_0x4a66fc(0x12d)),util=require(a117_0x4a66fc(0x19c)),{fileLogger}=require('../logger'),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a117_0x4a66fc(0xf1)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require('../performance/constants'),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require('../../../src/bin/utils/constants');exports[a117_0x4a66fc(0xaa)]=_0x5cc414=>{const _0x363402=a117_0x4a66fc;fileLogger[_0x363402(0x117)]('['+new Date()[_0x363402(0x13f)]()+_0x363402(0xc9)+_0x5cc414);},exports[a117_0x4a66fc(0x12e)]=_0xc0dd3d=>{const _0x245f01=a117_0x4a66fc,_0x424f5f={};_0x424f5f[_0x245f01(0xed)]=function(_0xea5ec9,_0x58a584){return _0xea5ec9===_0x58a584;},_0x424f5f[_0x245f01(0xf6)]=_0x245f01(0x13b),_0x424f5f[_0x245f01(0x16f)]=function(_0x2a4309,_0x3849dd){return _0x2a4309===_0x3849dd;};const _0x2be9a0=_0x424f5f;fileLogger['debug']('['+new Date()[_0x245f01(0x13f)]()+_0x245f01(0xc9)+_0xc0dd3d),(_0x2be9a0[_0x245f01(0xed)](process['env'][_0x245f01(0x186)],_0x2be9a0[_0x245f01(0xf6)])||_0x2be9a0[_0x245f01(0x16f)](process[_0x245f01(0xcc)][_0x245f01(0x186)],'1'))&&consoleHolder[_0x245f01(0xc1)]('\x0a['+new Date()[_0x245f01(0x13f)]()+'][\x20OBSERVABILITY\x20]\x20'+_0xc0dd3d+'\x0a');};const a117_0x5a8674={};a117_0x5a8674[a117_0x4a66fc(0x112)]=!![],a117_0x5a8674[a117_0x4a66fc(0x19a)]=0xea60,a117_0x5a8674[a117_0x4a66fc(0xbf)]=0x2,a117_0x5a8674[a117_0x4a66fc(0xd1)]=0x2;const httpKeepAliveAgent=new http[(a117_0x4a66fc(0x149))](a117_0x5a8674),a117_0x5c9fcd={};a117_0x5c9fcd['keepAlive']=!![],a117_0x5c9fcd[a117_0x4a66fc(0x19a)]=0xea60,a117_0x5c9fcd[a117_0x4a66fc(0xbf)]=0x2,a117_0x5c9fcd['maxTotalSockets']=0x2;const httpsKeepAliveAgent=new https[(a117_0x4a66fc(0x149))](a117_0x5c9fcd),a117_0x9a5e1e={};a117_0x9a5e1e[a117_0x4a66fc(0x112)]=!![],a117_0x9a5e1e['timeout']=0xea60,a117_0x9a5e1e['maxSockets']=0x2,a117_0x9a5e1e[a117_0x4a66fc(0xd1)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a117_0x4a66fc(0x149))](a117_0x9a5e1e),a117_0x4f47be={};a117_0x4f47be['keepAlive']=!![],a117_0x4f47be[a117_0x4a66fc(0x19a)]=0xea60,a117_0x4f47be['maxSockets']=0x2,a117_0x4f47be['maxTotalSockets']=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a117_0x4a66fc(0x149))](a117_0x4f47be);function a117_0x1863(){const _0x584f06=['application/json','BROWSERSTACK_RERUN_TESTS','getos','../../bin/v2/browserstackCLI','format','true','AoQAN','ZJVjW','winstonLogger','toISOString','turboscale','prefix','UnhandledError','getCustomTags','win32','rootDir','https','sendPlatformDetails','keys','Agent','browserstack_executor:\x20','trim','PRINT_BUILDLINK','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','iEfEX','undefined','Error\x20in\x20getting\x20Linux\x20Details','rZupe','annotate','relativeTestFilePath','shouldReRunObservabilityTests','emit','HRLQI','headers','split','VWbYn','qSwts','dRpGK','lkOoP','Windows','app-automate','relative','TEST_ATTACHMENT','platformName','bbsAn','spy','BROWSERSTACK_TEST_OBSERVABILITY','forEach','path','gRwVK','AZHCM','hostname','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','rqnbD','getObservabilityLinkedProductName','browserstack','failureData','izCSc','oyLNV','includes','bs:addLog:','fileName','HepfV','unknown_grid','DTBMi','../../helpers/request-spy','eufFw','iqYlT','err','backtrace','BhcxY','BROWSERSTACK_TESTHUB_JWT','JrBQX','platform','getBrowserName','getSyncScript','igbaO','IPOjQ','2958hborox','Unknown','BROWSERSTACK_OBSERVABILITY_DEBUG','expanded','readConfig','O11yHashedID','Linux','getPlatformDetails','windows-release','pid','Content-Type','getFailureType','child_process','fromEntries','formData','buildTag','upRky','PathHelper','logs','9875217RCiIlF','patchConsoleLogger','nodeRequest','timeout','parseFileNames','util','info','dist','BS_TESTOPS_BUILD_HASHED_ID','getBrowserVersion','getBuildTags','@cucumber/cucumber','pjAjU','stringify','removeAnsiColors','gcHmh','join','frtSW','1003406IgOzSd','error','getSession','AKPZS','CUSTOM_TAG','url','dosAG','HlZCs','data','WxCAp','TEST_PLATFORM','isArray','measureWrapper','trace','cwd','QtFbA','hktwW','./constants','extractValuesWithRegexKeyMatch','DsQOU','izGkE','rcuij','message','toJSON','2064CTACpC','CODECEPT_CUCUMBER','123JaRYCr','xpdrs','bs:addPlatformDetails:','cphgj','config','kjKXL','test','vgzGH','maxSockets','parse','log','[%s][\x20OBSERVABILITY\x20]\x20Build\x20Not\x20Found\x20%s','asyncAwaitNodeReq','platformVersion','host','Failed\x20to\x20determine\x20product\x20linked\x20to\x20Observability\x20test\x20instance\x20:\x20','linux','CUCUMBER','][\x20OBSERVABILITY\x20]\x20','map_','5392460Jxmlke','env','map','XOlim','1raXIRX','nIsxo','maxTotalSockets','Authorization','getUserName','QeeRZ','bstack:options','GDbwn','hIsrI','kbmYE','1475992LMXaMW','dcLjo','stack','GkFyH','MCmiy','GJqDK','git-repo-info','ndjfP','filter','Xaqrq','Ckmad','replace','match','default','@playwright/test','byZod','BbCwv','27sBQyfc','MVRKG','Visit\x20','RXDjQ','OS\x20X','LpwDI','HmdsV','lodash','nQrmq','getCapabilities','object','catch','LNGMP','wKOnh','push','PLAYWRIGHT','mMqGA','then','ObservabilitySync:','X-BSTACK-TESTOPS','XEDWR','modifyReqForTraceUpload','body','null','VXLhQ','getDefaultHeaders','1807680fVOfPM','getFrameworkVersion','\x20:\x20','fvUop','jest','__cloud_provider___','EJyvi','TEST_OBSERVABILITY_BUILD_TAG','sleep','soaCh','json','printBuildLink','toString','customTag','keepAlive','turboScaleGridDetails','Error\x20in\x20importing\x20windows-release\x20','gvpdy','getBrowserStackConfig','silly','2716vXSKKS','getPlatformVersion','fIkwV','/builds/','CKutQ','AzBDW','SeMLR','app','HUB_URL_REGEX','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','OUCUZ','ATS_HUB_URL_REGEX','LogCreated','release','JEST','djtZi','aXfDr','Lwymq','git-last-commit','AzXiv','mocha','../../bin/utils/logPatcher','debug','jMcad','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','HTTP','DTqQq','capabilities','getPackageVersion','length'];a117_0x1863=function(){return _0x584f06;};return a117_0x1863();}exports[a117_0x4a66fc(0x154)]=()=>{const _0x401ad3=a117_0x4a66fc,_0x544e96={};_0x544e96['XOlim']=function(_0xb682fc,_0x2e35de){return _0xb682fc!==_0x2e35de;},_0x544e96[_0x401ad3(0x115)]=_0x401ad3(0x101);const _0x4791f=_0x544e96;return process[_0x401ad3(0xcc)][_0x401ad3(0x137)]&&_0x4791f[_0x401ad3(0xce)](process[_0x401ad3(0xcc)]['BROWSERSTACK_RERUN_TESTS'],_0x4791f[_0x401ad3(0x115)])?!![]:![];},exports['isTestObservabilitySession']=()=>{const _0x2b7381=a117_0x4a66fc,_0x13d6b7={};_0x13d6b7['lkOoP']=function(_0x5b36ae,_0x5b54f8){return _0x5b36ae===_0x5b54f8;},_0x13d6b7[_0x2b7381(0xf0)]=_0x2b7381(0x13b),_0x13d6b7[_0x2b7381(0x11a)]=function(_0x38eb7c,_0x48c65b){return _0x38eb7c===_0x48c65b;};const _0x554302=_0x13d6b7;let _0x1588c1=!![];return process[_0x2b7381(0xcc)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x1588c1=_0x554302[_0x2b7381(0x15c)](process[_0x2b7381(0xcc)]['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0x554302['HmdsV'])),process[_0x2b7381(0xcc)][_0x2b7381(0x164)]&&(_0x1588c1=_0x554302[_0x2b7381(0x11a)](process[_0x2b7381(0xcc)][_0x2b7381(0x164)],_0x554302[_0x2b7381(0xf0)])),_0x1588c1;},exports[a117_0x4a66fc(0x19b)]=_0x5b907b=>{const _0x7d3dfe=a117_0x4a66fc;if(bsSetupHelper['isUndefined'](_0x5b907b))return undefined;try{return _0x5b907b[_0x7d3dfe(0x14b)]()['split'](',');}catch(_0x2367f8){return undefined;}},exports[a117_0x4a66fc(0x10f)]=()=>{const _0x35c304=a117_0x4a66fc,_0x5f5929={'QeeRZ':function(_0x61d961,_0x48f56c){return _0x61d961(_0x48f56c);},'rcuij':_0x35c304(0x139),'aaBuD':function(_0x4a2b28,_0x177509){return _0x4a2b28!==_0x177509;},'ndjfP':_0x35c304(0x101),'gRwVK':_0x35c304(0x14f),'FtlDq':_0x35c304(0xc2)};return PerformanceTester[_0x35c304(0xa9)](PerformanceO11yEvents[_0x35c304(0x14c)],async()=>{const _0x2a15ad=_0x35c304;try{const _0x541e92=_0x5f5929[_0x2a15ad(0xd4)](require,_0x5f5929[_0x2a15ad(0xb2)]);if(_0x541e92[_0x2a15ad(0x189)]){logger[_0x2a15ad(0x19d)](_0x2a15ad(0xec)+O11Y_URL+_0x2a15ad(0x11b)+_0x541e92['O11yHashedID']+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a');return;}process[_0x2a15ad(0xcc)][_0x2a15ad(0x19f)]&&_0x5f5929['aaBuD'](process[_0x2a15ad(0xcc)][_0x2a15ad(0x19f)],_0x5f5929[_0x2a15ad(0xe0)])&&_0x5f5929['aaBuD'](process[_0x2a15ad(0xcc)][_0x2a15ad(0x19f)],_0x5f5929[_0x2a15ad(0x167)])&&logger[_0x2a15ad(0x19d)](_0x2a15ad(0xec)+constants['O11Y_URL']+_0x2a15ad(0x11b)+process['env'][_0x2a15ad(0x19f)]+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a');}catch(_0x30aa19){logger['error'](util[_0x2a15ad(0x13a)](_0x5f5929['FtlDq'],new Date()[_0x2a15ad(0x13f)](),_0x30aa19[_0x2a15ad(0xdb)]||_0x30aa19['message']||_0x30aa19));}})();},exports[a117_0x4a66fc(0x18f)]=_0x35c932=>{const _0x3b7147=a117_0x4a66fc,_0x4b3d34={};_0x4b3d34[_0x3b7147(0x127)]='AssertionError',_0x4b3d34['BbCwv']=_0x3b7147(0x142);const _0x3e7913=_0x4b3d34;if(!_0x35c932)return null;return _0x35c932[_0x3b7147(0x110)]()[_0x3b7147(0xe5)](/AssertionError/)?_0x3e7913[_0x3b7147(0x127)]:_0x3e7913[_0x3b7147(0xe9)];},exports[a117_0x4a66fc(0x105)]=_0x3e9bd8=>{const _0x17d216=a117_0x4a66fc,_0x36c376={};_0x36c376['VaWIM']=_0x17d216(0x12c),_0x36c376[_0x17d216(0xb0)]=_0x17d216(0xe7),_0x36c376[_0x17d216(0x194)]='codeceptjs',_0x36c376[_0x17d216(0x176)]=_0x17d216(0x108),_0x36c376[_0x17d216(0xef)]=_0x17d216(0x1a2);const _0x291ab8=_0x36c376;let _0x3c20c7=null;switch(_0x3e9bd8){case FRAMEWORKS['MOCHA']:_0x3c20c7=bsSetupHelper['getPackageVersion'](_0x291ab8['VaWIM']);break;case FRAMEWORKS['PLAYWRIGHT']:_0x3c20c7=bsSetupHelper[_0x17d216(0x134)](_0x291ab8[_0x17d216(0xb0)]);break;case FRAMEWORKS['CODECEPT']:case FRAMEWORKS[_0x17d216(0xb6)]:_0x3c20c7=bsSetupHelper[_0x17d216(0x134)](_0x291ab8[_0x17d216(0x194)]);break;case FRAMEWORKS[_0x17d216(0x126)]:_0x3c20c7=bsSetupHelper[_0x17d216(0x134)](_0x291ab8['DTBMi']);break;case FRAMEWORKS[_0x17d216(0xc8)]:_0x3c20c7=bsSetupHelper['getPackageVersion'](_0x291ab8[_0x17d216(0xef)]);break;default:break;}return _0x3c20c7;},exports[a117_0x4a66fc(0x116)]=_0x49ffb2=>{const _0x34193c=a117_0x4a66fc;let _0x378396=null;switch(_0x49ffb2){case FRAMEWORKS[_0x34193c(0xf9)]:_0x378396=process[_0x34193c(0xcc)]['BROWSERSTACK_CONFIG_FILE_PATH'];break;}if(!_0x378396)return;return bsSetupHelper[_0x34193c(0x188)](_0x378396,![]);},exports['getUserCredentials']=_0x4ef897=>{const _0x38dbb5=a117_0x4a66fc;return{'username':bsSetupHelper[_0x38dbb5(0xd3)](_0x4ef897),'accessKey':bsSetupHelper['getAccessKey'](_0x4ef897)};},exports[a117_0x4a66fc(0xff)]=(_0x272bf1,_0x199aa3)=>{const _0x309806=a117_0x4a66fc,_0x2414a2={};_0x2414a2[_0x309806(0xd6)]='2|1|3|4|0|5',_0x2414a2[_0x309806(0xdd)]=_0x309806(0x124),_0x2414a2['rqnbD']=_0x309806(0x160);const _0x5eb0ed=_0x2414a2,_0x3a8492=_0x5eb0ed['GDbwn']['split']('|');let _0x2dbb0c=0x0;while(!![]){switch(_0x3a8492[_0x2dbb0c++]){case'0':delete _0x272bf1[_0x309806(0x10e)];continue;case'1':if(!_0x272bf1[_0x309806(0x100)][0x0]||!_0x272bf1[_0x309806(0x100)][0x0][_0x309806(0x196)]||!_0x272bf1[_0x309806(0x100)][0x0]['logs'][_0x309806(0x135)])return;continue;case'2':if(!_0x272bf1[_0x309806(0x100)]||!Array[_0x309806(0xa8)](_0x272bf1['body']))return;continue;case'3':_0x272bf1[_0x309806(0x192)]={'data':_0x272bf1['body'][0x0]['logs'][0x0][_0x309806(0xa5)],'test_run_uuid':_0x272bf1['body'][0x0][_0x309806(0x196)][0x0]['test_run_uuid'],'event_type':_0x5eb0ed[_0x309806(0xdd)],'kind':_0x5eb0ed[_0x309806(0x16b)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x309806(0x13f)](),'fileName':_0x272bf1[_0x309806(0x100)][0x0][_0x309806(0x196)][0x0][_0x309806(0x173)]};continue;case'4':delete _0x272bf1[_0x309806(0x100)];continue;case'5':delete _0x199aa3[_0x309806(0x157)];continue;}break;}},exports[a117_0x4a66fc(0xc3)]=async(_0x123b19,_0x54e71e,_0x2af0e0,_0x1a7898,_0x12483c=!![])=>{const _0x51cb07=a117_0x4a66fc,_0x495080={};_0x495080[_0x51cb07(0xfa)]=function(_0x405a1c,_0x2804b8){return _0x405a1c===_0x2804b8;},_0x495080[_0x51cb07(0xd0)]=_0x51cb07(0x18e),_0x495080[_0x51cb07(0xbe)]='application/json',_0x495080['VWbYn']='https',_0x495080[_0x51cb07(0x9a)]=function(_0xd431e0,_0x22cd43){return _0xd431e0===_0x22cd43;},_0x495080[_0x51cb07(0x12f)]=function(_0x90f84b,_0x557e8f){return _0x90f84b!==_0x557e8f;},_0x495080[_0x51cb07(0x179)]=_0x51cb07(0xf4),_0x495080[_0x51cb07(0x156)]=_0x51cb07(0x14d);const _0xe6597d=_0x495080,_0x15ee1e={..._0x1a7898,...{'method':_0x123b19,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x54e71e,'body':_0x2af0e0,'json':_0xe6597d[_0x51cb07(0xfa)](_0x1a7898[_0x51cb07(0x157)][_0xe6597d[_0x51cb07(0xd0)]],_0xe6597d[_0x51cb07(0xbe)]),'agent':API_URL['includes'](_0xe6597d[_0x51cb07(0x159)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0xe6597d[_0x51cb07(0x9a)](_0x54e71e,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x15ee1e['agent']=API_URL[_0x51cb07(0x171)](_0xe6597d['VWbYn'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x51cb07(0xff)](_0x15ee1e,_0x1a7898),logger[_0x51cb07(0x12e)]('Uploading\x20trace\x20logs\x20to:\x20'+_0x15ee1e[_0x51cb07(0xa2)]));try{const {statusCode:_0x42d0c0,body:_0x843280}=await bsSetupHelper[_0x51cb07(0x199)](_0x123b19,_0x54e71e,_0x15ee1e,_0x1a7898,_0x15ee1e[_0x51cb07(0xa2)]);if(_0xe6597d[_0x51cb07(0x12f)](_0x42d0c0,0xc8))return _0x843280?_0x843280:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x42d0c0;let _0x2aaab6=_0x843280;if(_0x12483c)try{_0xe6597d[_0x51cb07(0x12f)](typeof _0x843280,_0xe6597d[_0x51cb07(0x179)])&&(_0x2aaab6=JSON[_0x51cb07(0xc0)](_0x843280));}catch(_0x323549){logger[_0x51cb07(0x9e)](_0xe6597d[_0x51cb07(0x156)],_0x843280,util[_0x51cb07(0x13a)](_0x323549));}const _0x3a5dc6={};return _0x3a5dc6[_0x51cb07(0xa5)]=_0x2aaab6,_0x3a5dc6;}catch(_0x49e9c4){logger[_0x51cb07(0x9e)](_0x51cb07(0x16a)+util[_0x51cb07(0x13a)](_0x49e9c4));throw _0x49e9c4;}},exports[a117_0x4a66fc(0x199)]=(_0x3a4616,_0xbcbfca,_0x5f1183,_0x6fe128,_0x345db2=!![])=>{const _0x45ba91=a117_0x4a66fc,_0x428716={'IPOjQ':function(_0xcb790b,_0x132b22){return _0xcb790b!==_0x132b22;},'DTqQq':function(_0x11bc90,_0x187faa){return _0x11bc90(_0x187faa);},'iwsId':'object','bbsAn':function(_0x1677a1,_0x3a04dc){return _0x1677a1(_0x3a04dc);},'Ckmad':_0x45ba91(0x130),'eufFw':function(_0x11ceb8,_0x2b7357){return _0x11ceb8(_0x2b7357);},'EJyvi':function(_0x5a7717,_0x5c36b9){return _0x5a7717===_0x5c36b9;},'oyLNV':'Content-Type','aXfDr':_0x45ba91(0x136),'cphgj':'https','wvVWV':function(_0x3432df,_0x4dc161){return _0x3432df===_0x4dc161;}};return new Promise((_0x2da8ae,_0x5e9df2)=>{const _0x193b63=_0x45ba91,_0x3c088c={..._0x6fe128,...{'method':_0x3a4616,'url':API_URL+'/'+_0xbcbfca,'body':_0x5f1183,'json':_0x428716[_0x193b63(0x10a)](_0x6fe128[_0x193b63(0x157)][_0x428716[_0x193b63(0x170)]],_0x428716[_0x193b63(0x128)]),'agent':API_URL['includes'](_0x428716[_0x193b63(0xba)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x428716['wvVWV'](_0xbcbfca,SCREENSHOT_ENDPOINT)&&(_0x3c088c['agent']=API_URL['includes'](_0x428716['cphgj'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x193b63(0x199)](_0x3a4616,_0xbcbfca,_0x3c088c,_0x6fe128,API_URL)[_0x193b63(0xfb)](({statusCode:_0x5be716,body:_0x4c634d})=>{const _0x595944=_0x193b63;if(_0x428716[_0x595944(0x183)](_0x5be716,0xc8))_0x428716[_0x595944(0x132)](_0x5e9df2,_0x4c634d?_0x4c634d:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x5be716);else{if(_0x345db2)try{_0x428716[_0x595944(0x183)](typeof _0x4c634d,_0x428716['iwsId'])&&(_0x4c634d=JSON[_0x595944(0xc0)](_0x4c634d));}catch(_0x4f59c0){_0x428716[_0x595944(0x162)](_0x5e9df2,_0x428716[_0x595944(0xe3)]);return;}const _0x1cbf11={};_0x1cbf11['data']=_0x4c634d,_0x428716[_0x595944(0x178)](_0x2da8ae,_0x1cbf11);}})[_0x193b63(0xf5)](_0x180d54=>{const _0x4d420a=_0x193b63;_0x180d54&&_0x428716[_0x4d420a(0x178)](_0x5e9df2,_0x180d54);});});},exports[a117_0x4a66fc(0x1a1)]=_0x3fa7e0=>{const _0xbb3ac8=a117_0x4a66fc;if(process[_0xbb3ac8(0xcc)][_0xbb3ac8(0x10b)])return process['env'][_0xbb3ac8(0x10b)][_0xbb3ac8(0x158)](',');if(_0x3fa7e0['buildTag'])return _0x3fa7e0[_0xbb3ac8(0x193)];return[];},exports[a117_0x4a66fc(0x103)]=(_0x88fdfb=!![])=>{const _0x2636c4=a117_0x4a66fc,_0x5a2dd4={};_0x5a2dd4[_0x2636c4(0xfe)]=_0x2636c4(0x136),_0x5a2dd4[_0x2636c4(0xb8)]=_0x2636c4(0x13b),_0x5a2dd4[_0x2636c4(0x15a)]=_0x2636c4(0xd2);const _0x13c437=_0x5a2dd4,_0x48b387={};_0x48b387[_0x2636c4(0x18e)]=_0x13c437['XEDWR'],_0x48b387['X-BSTACK-TESTOPS']=_0x13c437[_0x2636c4(0xb8)];const _0x15144b=_0x48b387;return _0x88fdfb&&process[_0x2636c4(0xcc)][_0x2636c4(0x17d)]&&(_0x15144b[_0x13c437['qSwts']]='Bearer\x20'+process[_0x2636c4(0xcc)][_0x2636c4(0x17d)]),_0x15144b;},exports[a117_0x4a66fc(0xaf)]=_0x3d68cc=>{const _0xd1c42e=a117_0x4a66fc,_0x3951ff={};_0x3951ff['WxCAp']='^CUSTOM_TAG_\x5cd+$';const _0x278d7b=_0x3951ff,_0x4c3434=[],_0x20ea74=new RegExp(_0x278d7b[_0xd1c42e(0xa6)],'i');return Object[_0xd1c42e(0x148)](_0x3d68cc)[_0xd1c42e(0xe1)](_0x5e473b=>_0x20ea74['test'](_0x5e473b))[_0xd1c42e(0x165)](_0xef54e4=>_0x4c3434[_0xd1c42e(0xf8)](_0x3d68cc[_0xef54e4])),_0x4c3434;},exports[a117_0x4a66fc(0x143)]=_0x248a16=>{const _0x4d033b=a117_0x4a66fc,_0x5980e0=[],_0x13c0f6=_0x248a16[_0x4d033b(0x111)]||process[_0x4d033b(0xcc)][_0x4d033b(0xa1)];return _0x13c0f6&&_0x5980e0[_0x4d033b(0xf8)](_0x13c0f6),_0x5980e0['push'](...exports[_0x4d033b(0xaf)](process[_0x4d033b(0xcc)])),_0x5980e0['push'](...exports[_0x4d033b(0xaf)](_0x248a16)),_0x5980e0;},exports[a117_0x4a66fc(0x99)]=_0x46f7c8=>{const _0x2f10c1=a117_0x4a66fc;if(!_0x46f7c8)return'';return _0x46f7c8[_0x2f10c1(0xe4)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a117_0x4a66fc(0x10c)]=(_0x10dd5c=0x64)=>new Promise(_0x520bc9=>setTimeout(_0x520bc9,_0x10dd5c));const getPlatformName=()=>{const _0x291ae5=a117_0x4a66fc,_0x4af016={};_0x4af016['dVEsX']=function(_0x25d07d,_0x210d59){return _0x25d07d===_0x210d59;},_0x4af016[_0x291ae5(0xd8)]=_0x291ae5(0x144),_0x4af016[_0x291ae5(0xd7)]='Windows',_0x4af016['AKPZS']=function(_0x2af205,_0x21746c){return _0x2af205===_0x21746c;},_0x4af016[_0x291ae5(0xf2)]='darwin',_0x4af016[_0x291ae5(0x12b)]=_0x291ae5(0xee),_0x4af016[_0x291ae5(0x122)]=_0x291ae5(0xc7),_0x4af016['LoxKk']=_0x291ae5(0x18a),_0x4af016[_0x291ae5(0xda)]=_0x291ae5(0x185);const _0x5ef4ef=_0x4af016;if(_0x5ef4ef['dVEsX'](process['platform'],_0x5ef4ef[_0x291ae5(0xd8)]))return _0x5ef4ef[_0x291ae5(0xd7)];if(_0x5ef4ef[_0x291ae5(0xa0)](process[_0x291ae5(0x17f)],_0x5ef4ef[_0x291ae5(0xf2)]))return _0x5ef4ef[_0x291ae5(0x12b)];if(_0x5ef4ef['dVEsX'](process['platform'],_0x5ef4ef[_0x291ae5(0x122)]))return _0x5ef4ef['LoxKk'];return _0x5ef4ef[_0x291ae5(0xda)];},getMacOSVersion=()=>{const _0x4dd7f0=a117_0x4a66fc,_0x32dfd5={};_0x32dfd5[_0x4dd7f0(0xac)]='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 _0x204018=_0x32dfd5;return child_process['execSync'](_0x204018[_0x4dd7f0(0xac)])['toString']()[_0x4dd7f0(0x14b)]();},getLinuxDetails=()=>{const _0x2a3072={'Xaqrq':function(_0x58dd0a,_0x3c979f){return _0x58dd0a(_0x3c979f);}};return new Promise((_0x2f5f6a,_0x5b8d53)=>{const _0xcd7967=a117_0x539b;_0x2a3072[_0xcd7967(0xe2)](getos,(_0x1a0750,_0x164e90)=>{const _0x35c120=_0xcd7967;if(_0x1a0750)return _0x2a3072['Xaqrq'](_0x5b8d53,_0x1a0750);_0x2a3072[_0x35c120(0xe2)](_0x2f5f6a,_0x164e90);});});};exports[a117_0x4a66fc(0x18b)]=async()=>{const _0x1c7c2e=a117_0x4a66fc,_0x12c2c0={'kjKXL':function(_0x5261c7){return _0x5261c7();},'ytHFp':_0x1c7c2e(0xee),'RNVXD':function(_0x2c0a35){return _0x2c0a35();},'ZJVjW':_0x1c7c2e(0x15d),'SeMLR':_0x1c7c2e(0x18c),'DddSo':function(_0x740c71){return _0x740c71();},'SvfNk':_0x1c7c2e(0x18a),'rZupe':_0x1c7c2e(0x150)};let _0x476b7e=_0x12c2c0[_0x1c7c2e(0xbc)](getPlatformName),_0x3f1142=os[_0x1c7c2e(0x125)]()[_0x1c7c2e(0x110)]();switch(_0x476b7e){case _0x12c2c0['ytHFp']:_0x3f1142=_0x12c2c0['RNVXD'](getMacOSVersion);break;case _0x12c2c0[_0x1c7c2e(0x13d)]:try{const _0xac3b71=(await import(_0x12c2c0[_0x1c7c2e(0x11e)]))[_0x1c7c2e(0xe6)];_0x3f1142=_0x12c2c0['DddSo'](_0xac3b71);}catch(_0x2540c4){exports['debug'](_0x1c7c2e(0x114)+_0x2540c4[_0x1c7c2e(0x110)]());}break;case _0x12c2c0['SvfNk']:try{const _0xb70d91=await _0x12c2c0[_0x1c7c2e(0xbc)](getLinuxDetails);_0xb70d91[_0x1c7c2e(0x19e)]&&(_0x476b7e=_0xb70d91[_0x1c7c2e(0x19e)]),_0xb70d91[_0x1c7c2e(0x125)]&&(_0x3f1142=_0xb70d91[_0x1c7c2e(0x125)][_0x1c7c2e(0x110)]());}catch(_0x2b5594){exports[_0x1c7c2e(0x12e)](_0x12c2c0[_0x1c7c2e(0x151)]);}break;default:break;}const _0x3aa817={};return _0x3aa817[_0x1c7c2e(0x161)]=_0x476b7e,_0x3aa817[_0x1c7c2e(0xc4)]=_0x3f1142,_0x3aa817;},exports[a117_0x4a66fc(0x16e)]=(_0x6ab8a8,_0x3e727d)=>{const _0x1be1fa=a117_0x4a66fc,_0x41d90d={};_0x41d90d['AZHCM']=function(_0x1838e1,_0x5c7c10){return _0x1838e1===_0x5c7c10;},_0x41d90d[_0x1be1fa(0x15b)]=_0x1be1fa(0xbd),_0x41d90d[_0x1be1fa(0x17c)]=function(_0x2d644c,_0x2a518a){return _0x2d644c===_0x2a518a;},_0x41d90d['izGkE']=_0x1be1fa(0x17a);const _0x5e9f52=_0x41d90d;if(!_0x6ab8a8)return[];try{if(_0x5e9f52[_0x1be1fa(0x168)](_0x3e727d,_0x5e9f52[_0x1be1fa(0x15b)]))return _0x6ab8a8[_0x1be1fa(0xcd)](_0x54510d=>{const _0x18f7bc=_0x1be1fa,{stack:_0x300f47,..._0x298894}=_0x54510d,_0x3191f2=Object[_0x18f7bc(0x148)](_0x298894)[_0x18f7bc(0xcd)](_0x240906=>{return _0x240906+':\x20'+_0x298894[_0x240906];}),_0x3bd05e=_0x300f47?exports[_0x18f7bc(0x99)](_0x300f47)[_0x18f7bc(0x158)](/\r?\n/):[exports['removeAnsiColors'](_0x54510d['message'])],_0x18178c={};return _0x18178c['backtrace']=_0x3bd05e,_0x18178c[_0x18f7bc(0x187)]=_0x3191f2,_0x18178c;});else{if(_0x5e9f52[_0x1be1fa(0x17c)](_0x3e727d,_0x5e9f52[_0x1be1fa(0xb1)])){const _0x439d80=[],_0x1794df=[];return Object['keys'](_0x6ab8a8)[_0x1be1fa(0x165)](_0x5209b1=>{const _0x3c9b1d=_0x1be1fa;try{_0x1794df['push'](_0x5209b1+':\x20'+_0x6ab8a8[_0x5209b1]);}catch(_0x5c4a4d){exports[_0x3c9b1d(0x12e)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x5c4a4d[_0x3c9b1d(0xb3)]+_0x3c9b1d(0x106)+_0x5c4a4d[_0x3c9b1d(0x17b)]);}}),_0x439d80['push']({'backtrace':exports['removeAnsiColors'](_0x6ab8a8[_0x1be1fa(0xdb)])['split'](/\r?\n/),'expanded':_0x1794df}),_0x439d80;}}return[];}catch(_0x3e6472){exports[_0x1be1fa(0x12e)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x3e6472[_0x1be1fa(0xb3)]+_0x1be1fa(0x106)+_0x3e6472[_0x1be1fa(0x17b)]);}return[];};class PathHelper{constructor(_0x16b62c,_0x8d0e5){const _0x500e28=a117_0x4a66fc;this['config']=_0x16b62c,this[_0x500e28(0x141)]=_0x8d0e5;}['relativeTestFilePath'](_0x1a7575){const _0x5502ef=a117_0x4a66fc,_0x34c45b=this['config'][_0x5502ef(0xab)]||this[_0x5502ef(0xbb)][_0x5502ef(0x145)];return path[_0x5502ef(0x15f)](_0x34c45b,_0x1a7575);}['prefixTestPath'](_0x50f977){const _0x1e7238=a117_0x4a66fc,_0x55990e=this[_0x1e7238(0x153)](_0x50f977);return this[_0x1e7238(0x141)]?path[_0x1e7238(0x9b)](this['prefix'],_0x55990e):_0x55990e;}}exports[a117_0x4a66fc(0x195)]=PathHelper,exports['addRequestSpy']=(_0x902a11=!![])=>{const _0x17f3b5=a117_0x4a66fc,_0x190a7e={};_0x190a7e[_0x17f3b5(0x102)]=function(_0x32a68d,_0x2e265f){return _0x32a68d===_0x2e265f;},_0x190a7e[_0x17f3b5(0xdc)]=_0x17f3b5(0xfd),_0x190a7e['fvUop']=_0x17f3b5(0x13b),_0x190a7e[_0x17f3b5(0x9c)]=_0x17f3b5(0x131),_0x190a7e['pjAjU']='browserstack',_0x190a7e[_0x17f3b5(0xe8)]='local_grid';const _0x20a0c0=_0x190a7e;requestSpy[_0x17f3b5(0x163)]((_0x99a14,_0x684462)=>{const _0x1a53ed=_0x17f3b5;_0x684462&&!(_0x684462[_0x1a53ed(0x157)]&&_0x20a0c0['VXLhQ'](_0x684462['headers'][_0x20a0c0['GkFyH']],_0x20a0c0[_0x1a53ed(0x107)]))&&(_0x684462[_0x1a53ed(0xc5)]=_0x684462[_0x1a53ed(0x169)],delete _0x684462[_0x1a53ed(0x169)],_0x902a11&&process[_0x1a53ed(0x155)](_0x1a53ed(0x172)+process[_0x1a53ed(0x18d)],{'timestamp':new Date()[_0x1a53ed(0x13f)](),'level':null,'message':null,'kind':_0x20a0c0[_0x1a53ed(0x9c)],'http_response':_0x684462})),_0x684462&&(constants[_0x1a53ed(0x120)][_0x1a53ed(0xbd)](_0x684462[_0x1a53ed(0xc5)])||constants[_0x1a53ed(0x123)]['test'](_0x684462[_0x1a53ed(0xc5)]))?global['__cloud_provider___']=_0x20a0c0[_0x1a53ed(0x1a3)]:global[_0x1a53ed(0x109)]=_0x20a0c0[_0x1a53ed(0xe8)];});},exports[a117_0x4a66fc(0x198)]=()=>{const _0x9b1978=a117_0x4a66fc,_0x1ba069={'MVRKG':function(_0x561514,_0x2829b1){return _0x561514(_0x2829b1);}};console={},Object[_0x9b1978(0x148)](consoleHolder)['forEach'](_0x258dd2=>{const _0x9bb882=_0x9b1978;_0x1ba069[_0x9bb882(0xeb)](isFunction,consoleHolder[_0x258dd2])?console[_0x258dd2]=(..._0x86532d)=>{const _0x258bec=_0x9bb882;try{!Object[_0x258bec(0x148)](BSTestOpsPatcher)['includes'](_0x258dd2)?consoleHolder[_0x258dd2](..._0x86532d):BSTestOpsPatcher[_0x258dd2](..._0x86532d);}catch(_0x1bbf7a){consoleHolder[_0x258dd2](..._0x86532d);}}:console[_0x258dd2]=consoleHolder[_0x258dd2];});},exports[a117_0x4a66fc(0x181)]=()=>a117_0x4a66fc(0x14a)+JSON[a117_0x4a66fc(0x98)]({'action':a117_0x4a66fc(0x152),'arguments':{'data':a117_0x4a66fc(0xfc)+Date['now'](),'level':a117_0x4a66fc(0x12e)}}),exports[a117_0x4a66fc(0x16c)]=_0x469208=>{const _0x2de4f3=a117_0x4a66fc,_0x5331e0={};_0x5331e0[_0x2de4f3(0xa4)]=function(_0x1212d3,_0x2c05e9){return _0x1212d3===_0x2c05e9;},_0x5331e0['GJqDK']=_0x2de4f3(0x16d),_0x5331e0['iEfEX']='appium:app',_0x5331e0[_0x2de4f3(0x129)]=_0x2de4f3(0x11f),_0x5331e0[_0x2de4f3(0x10d)]=function(_0x5652a5,_0x4afb96){return _0x5652a5>_0x4afb96;},_0x5331e0['AoQAN']=_0x2de4f3(0x15e),_0x5331e0[_0x2de4f3(0xa3)]=_0x2de4f3(0xd5),_0x5331e0[_0x2de4f3(0xf7)]=_0x2de4f3(0x113),_0x5331e0['igbaO']=_0x2de4f3(0x140),_0x5331e0[_0x2de4f3(0x17e)]='automate';const _0x5165fe=_0x5331e0;let _0x5ebdd8=null;try{if(_0x5165fe[_0x2de4f3(0xa4)](global['__cloud_provider___'],_0x5165fe[_0x2de4f3(0xde)])){if(_0x469208[_0x5165fe[_0x2de4f3(0x14e)]]||_0x469208[_0x5165fe[_0x2de4f3(0x129)]]||!bsSetupHelper['isUndefined'](global[_0x2de4f3(0x133)])&&_0x5165fe[_0x2de4f3(0x10d)](global[_0x2de4f3(0x133)][_0x2de4f3(0x135)],0x0)&&(global[_0x2de4f3(0x133)][0x0][_0x5165fe['Lwymq']]||global['capabilities'][0x0][_0x5165fe['iEfEX']]))_0x5ebdd8=_0x5165fe[_0x2de4f3(0x13c)];else _0x469208[_0x5165fe[_0x2de4f3(0xa3)]]&&_0x469208[_0x5165fe['dosAG']][_0x5165fe[_0x2de4f3(0xf7)]]?_0x5ebdd8=_0x5165fe[_0x2de4f3(0x182)]:_0x5ebdd8=_0x5165fe[_0x2de4f3(0x17e)];}}catch(_0x2079c2){exports['debug'](_0x2de4f3(0xc6)+_0x2079c2);}return _0x5ebdd8;},exports[a117_0x4a66fc(0x147)]=async(_0x4419e2,_0x419445,_0x3f49de=![])=>{const _0x29334a=a117_0x4a66fc,_0xed616={};_0xed616[_0x29334a(0xad)]=function(_0x4d28e2,_0x26b1ae){return _0x4d28e2===_0x26b1ae;},_0xed616[_0x29334a(0x11d)]=_0x29334a(0x16d),_0xed616[_0x29334a(0x174)]=_0x29334a(0x175),_0xed616[_0x29334a(0x11c)]=_0x29334a(0xa7);const _0x48ece5=_0xed616;try{const _0x288c9f=await _0x4419e2[_0x29334a(0xf3)](),_0x1c5f27=await _0x4419e2[_0x29334a(0x9f)](),_0x46d982={},_0x2076f6=Object[_0x29334a(0x191)](_0x1c5f27[_0x29334a(0xf3)]()[_0x29334a(0xca)]),_0x2cff43={'product':exports['getObservabilityLinkedProductName'](_0x2076f6),'capabilities':_0x2076f6,'platform':_0x288c9f['getPlatform'](),'platform_version':bsSetupHelper[_0x29334a(0x119)](_0x48ece5[_0x29334a(0xad)](global[_0x29334a(0x109)],_0x48ece5[_0x29334a(0x11d)])),'browser':_0x288c9f[_0x29334a(0x180)](),'browser_version':_0x288c9f[_0x29334a(0x1a0)](),'session_id':_0x1c5f27[_0x29334a(0xb4)]()};global['__cloud_provider___']?_0x46d982[global['__cloud_provider___']]=_0x2cff43:_0x46d982[_0x48ece5['HepfV']]=_0x2cff43;if(_0x3f49de)return _0x46d982;process[_0x29334a(0x155)](_0x29334a(0xb9)+process[_0x29334a(0x18d)],{'timestamp':new Date()[_0x29334a(0x13f)](),'level':null,'message':null,'kind':_0x48ece5[_0x29334a(0x11c)],'http_response':_0x46d982,'uuid':_0x419445});}catch(_0x293f73){exports['debug'](_0x29334a(0x121)+_0x293f73);}},exports['isInternalHook']=_0x2bc665=>{const _0x3254cf=a117_0x4a66fc;return _0x2bc665&&_0x2bc665[_0x3254cf(0x110)]()[_0x3254cf(0xe5)](/browserstack internal helper hook/);};
|
|
1
|
+
const a117_0x17a217=a117_0x2ac2;(function(_0x318a9e,_0x2aa63f){const _0x483cab=a117_0x2ac2,_0x1e9810=_0x318a9e();while(!![]){try{const _0x1da096=-parseInt(_0x483cab(0x229))/0x1+-parseInt(_0x483cab(0x1ea))/0x2+parseInt(_0x483cab(0x28b))/0x3+parseInt(_0x483cab(0x219))/0x4+-parseInt(_0x483cab(0x19f))/0x5+parseInt(_0x483cab(0x1a3))/0x6*(parseInt(_0x483cab(0x230))/0x7)+-parseInt(_0x483cab(0x1b8))/0x8*(-parseInt(_0x483cab(0x291))/0x9);if(_0x1da096===_0x2aa63f)break;else _0x1e9810['push'](_0x1e9810['shift']());}catch(_0x56e451){_0x1e9810['push'](_0x1e9810['shift']());}}}(a117_0x1800,0x9987e));const fs=require('fs'),path=require(a117_0x17a217(0x1d0)),gitLastCommit=require(a117_0x17a217(0x225)),getRepoInfo=require(a117_0x17a217(0x201)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a117_0x17a217(0x1fd)),http=require(a117_0x17a217(0x22f)),https=require('https'),child_process=require('child_process'),getos=require(a117_0x17a217(0x28d)),os=require('os'),logger=require(a117_0x17a217(0x1a9))['winstonLogger'],bsSetupHelper=require('../helper'),requestSpy=require(a117_0x17a217(0x238)),constants=require(a117_0x17a217(0x1d8)),logPatcher=require(a117_0x17a217(0x1ae)),util=require(a117_0x17a217(0x232)),{fileLogger}=require(a117_0x17a217(0x1a9)),PerformanceTester=require(a117_0x17a217(0x266)),{isFunction}=require(a117_0x17a217(0x28a)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require('../performance/constants'),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a117_0x17a217(0x26a));exports[a117_0x17a217(0x220)]=_0x290903=>{const _0x1b816b=a117_0x17a217;fileLogger[_0x1b816b(0x1b3)]('['+new Date()[_0x1b816b(0x28f)]()+_0x1b816b(0x1bb)+_0x290903);},exports['debug']=_0xd509b1=>{const _0x2d4893=a117_0x17a217,_0x494ea4={};_0x494ea4[_0x2d4893(0x1fe)]=function(_0xd31312,_0x3f404b){return _0xd31312===_0x3f404b;},_0x494ea4[_0x2d4893(0x27d)]=_0x2d4893(0x270);const _0x3058e5=_0x494ea4;fileLogger[_0x2d4893(0x1c1)]('['+new Date()['toISOString']()+_0x2d4893(0x1bb)+_0xd509b1),(_0x3058e5['dalGP'](process['env']['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x3058e5['FaGIm'])||_0x3058e5[_0x2d4893(0x1fe)](process[_0x2d4893(0x25f)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder[_0x2d4893(0x265)]('\x0a['+new Date()[_0x2d4893(0x28f)]()+'][\x20OBSERVABILITY\x20]\x20'+_0xd509b1+'\x0a');};const a117_0x16c41d={};a117_0x16c41d[a117_0x17a217(0x1b9)]=!![],a117_0x16c41d['timeout']=0xea60,a117_0x16c41d['maxSockets']=0x2,a117_0x16c41d[a117_0x17a217(0x1e2)]=0x2;function a117_0x1800(){const _0x1ea85a=['hostname','mocha','Bearer\x20','darwin','ifhuJ','browserstack_executor:\x20','nghNS','nLMmn','uGvMF','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','execSync','bs:addLog:','printBuildLink','RVXBL','CUCUMBER','isArray','UnhandledError','SHLYH','OCIvA','bstack:options','@cucumber/cucumber','725576fPwetu','SiWSH','getCapabilities','JEST','nnvCd','turboScaleGridDetails','mvgpb','trace','LsCqq','aJAYf','olGpp','application/json','git-last-commit','getFailureType','getSession','format','952835XgwCTT','BROWSERSTACK_TESTHUB_JWT','CODECEPT','error','Visit\x20','BROWSERSTACK_CONFIG_FILE_PATH','http','348278zMulNk','https','util','CODECEPT_CUCUMBER','keys','split','aMjQZ','isTestObservabilitySession','../../helpers/request-spy','ZhuJN','ObservabilitySync:','XvjyT','stack','modifyReqForTraceUpload','browserstack','iQRPY','LpaUm','default','rbRtq','PRINT_BUILDLINK','BtNDS','ggzaF','LogCreated','toString','object','filter','app','AssertionError','RVkat','QTpCt','getAccessKey','parseFileNames','info','getObservabilityLinkedProductName','getUserCredentials','vDaqc','xuSAU','sleep','push','TEST_ATTACHMENT','ybEeO','capabilities','windows-release','getPlatformVersion','odRfl','iRHlI','lcdMM','env','RWUTk','APDda','body','fPNBm','bs:addPlatformDetails:','log','../performance/performance-tester','cwd','err','getBuildTags','../../../src/bin/utils/constants','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','kaQvt','Content-Type','nodeRequest','OS\x20X','true','emit','replace','release','relative','REHcx','Windows','test','getCustomTags','trim','asyncAwaitNodeReq','JaSUY','BXZYx','FaGIm','RytBD','zPGdP','automate','includes','FLBTp','catch','LLxBC','config','KLFbm','removeAnsiColors','dist','OomPc','lodash','467031pVsNOu','Xbevk','getos','Uploading\x20trace\x20logs\x20to:\x20','toISOString','data','5157SxhekN','BROWSERSTACK_RERUN_TESTS','rootDir','relativeTestFilePath','MDgmy','vyvQi','match','OrNhK','map_','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','readConfig','maxSockets','czzOK','RaeWH','shouldReRunObservabilityTests','buildTag','isInternalHook','pid','bwTQd','CSzuu','ZrFAT','getBrowserName','Agent','getPackageVersion','CUSTOM_TAG','json','2480455XPArmM','hGNpb','BxcbP','QElff','24cHtnfA','Linux','sendPlatformDetails','host','extractValuesWithRegexKeyMatch','prefixTestPath','../logger','forEach','ZvrFZ','backtrace','Authorization','../../bin/utils/logPatcher','YBfNc','BROWSERSTACK_TEST_OBSERVABILITY','[%s][\x20OBSERVABILITY\x20]\x20Build\x20Not\x20Found\x20%s','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','silly','BHaQd','NjjTf','jGRKY','TEST_PLATFORM','26584RQWFGn','keepAlive','getPlatformDetails','][\x20OBSERVABILITY\x20]\x20','qUtsA','__cloud_provider___','MOCHA','getSyncScript','oiKdk','debug','getBrowserVersion','SDscg','message','null','TEST_OBSERVABILITY_BUILD_TAG','ASGLW','toJSON','map','platform','TyAdD','platformVersion','prefix','INbUI','measureWrapper','path','PathHelper','PLAYWRIGHT','gkrnK','O11Y_URL','logs','xKsXh','expanded','../../bin/utils/constants','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','kUzpd','X-BSTACK-TESTOPS','parse','timeout','vZDUD','khCUQ','uWXwT','jLMLy','maxTotalSockets','@playwright/test','headers','^CUSTOM_TAG_\x5cd+$','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','awmxl','WDemB','fromEntries','724756yngLFw','cxqwa','Beavr','HoLLv','Error\x20in\x20importing\x20windows-release\x20','HTTP','AzAaK','WtSND','Ngzbt','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','getBrowserStackConfig','\x20:\x20','agent','hBtol','codeceptjs','length','nGfYU','QOcav','WexuH','./constants','dalGP','BS_TESTOPS_BUILD_HASHED_ID','join','git-repo-info','bSrVe','appium:app'];a117_0x1800=function(){return _0x1ea85a;};return a117_0x1800();}const httpKeepAliveAgent=new http[(a117_0x17a217(0x2a7))](a117_0x16c41d),a117_0x1b9b79={};a117_0x1b9b79[a117_0x17a217(0x1b9)]=!![],a117_0x1b9b79[a117_0x17a217(0x1dd)]=0xea60,a117_0x1b9b79['maxSockets']=0x2,a117_0x1b9b79['maxTotalSockets']=0x2;const httpsKeepAliveAgent=new https[(a117_0x17a217(0x2a7))](a117_0x1b9b79),a117_0x206b14={};a117_0x206b14[a117_0x17a217(0x1b9)]=!![],a117_0x206b14[a117_0x17a217(0x1dd)]=0xea60,a117_0x206b14[a117_0x17a217(0x29c)]=0x2,a117_0x206b14[a117_0x17a217(0x1e2)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a117_0x17a217(0x2a7))](a117_0x206b14),a117_0x565b5f={};a117_0x565b5f[a117_0x17a217(0x1b9)]=!![],a117_0x565b5f['timeout']=0xea60,a117_0x565b5f[a117_0x17a217(0x29c)]=0x2,a117_0x565b5f['maxTotalSockets']=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a117_0x17a217(0x2a7))](a117_0x565b5f);exports[a117_0x17a217(0x29f)]=()=>{const _0x4b6402=a117_0x17a217,_0x4b1676={};_0x4b1676[_0x4b6402(0x29d)]=function(_0x6da3d3,_0x169aaf){return _0x6da3d3!==_0x169aaf;},_0x4b1676[_0x4b6402(0x1a1)]=_0x4b6402(0x1c5);const _0x27fe6a=_0x4b1676;return process['env'][_0x4b6402(0x292)]&&_0x27fe6a[_0x4b6402(0x29d)](process['env']['BROWSERSTACK_RERUN_TESTS'],_0x27fe6a[_0x4b6402(0x1a1)])?!![]:![];},exports[a117_0x17a217(0x237)]=()=>{const _0x7534ba=a117_0x17a217,_0x1d2a07={};_0x1d2a07['fPNBm']=function(_0x27a436,_0x4aa45b){return _0x27a436===_0x4aa45b;},_0x1d2a07[_0x7534ba(0x20a)]=_0x7534ba(0x270),_0x1d2a07[_0x7534ba(0x1af)]=function(_0x427d68,_0x8e224e){return _0x427d68===_0x8e224e;};const _0x3c8130=_0x1d2a07;let _0x5e70cf=!![];return process[_0x7534ba(0x25f)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x5e70cf=_0x3c8130[_0x7534ba(0x263)](process[_0x7534ba(0x25f)]['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0x3c8130['nghNS'])),process[_0x7534ba(0x25f)][_0x7534ba(0x1b0)]&&(_0x5e70cf=_0x3c8130[_0x7534ba(0x1af)](process['env'][_0x7534ba(0x1b0)],_0x3c8130[_0x7534ba(0x20a)])),_0x5e70cf;},exports[a117_0x17a217(0x24f)]=_0x5577fd=>{if(bsSetupHelper['isUndefined'](_0x5577fd))return undefined;try{return _0x5577fd['trim']()['split'](',');}catch(_0x4fbc0a){return undefined;}},exports[a117_0x17a217(0x210)]=()=>{const _0x1e9eb4=a117_0x17a217,_0x517003={'aJAYf':function(_0x553681,_0x503b59){return _0x553681(_0x503b59);},'WDemB':'../../bin/v2/browserstackCLI','oykav':function(_0x113e41,_0x3bc80a){return _0x113e41!==_0x3bc80a;},'ZhuJN':_0x1e9eb4(0x1c5),'eIfzj':function(_0x306ec5,_0x12363d){return _0x306ec5!==_0x12363d;},'awmxl':'undefined','nGfYU':_0x1e9eb4(0x1b1)};return PerformanceTester[_0x1e9eb4(0x1cf)](PerformanceO11yEvents[_0x1e9eb4(0x243)],async()=>{const _0x209f35=_0x1e9eb4;try{const _0x5330b7=_0x517003[_0x209f35(0x222)](require,_0x517003[_0x209f35(0x1e8)]);if(_0x5330b7['O11yHashedID']){logger[_0x209f35(0x250)](_0x209f35(0x22d)+O11Y_URL+'/builds/'+_0x5330b7['O11yHashedID']+_0x209f35(0x20d));return;}process[_0x209f35(0x25f)][_0x209f35(0x1ff)]&&_0x517003['oykav'](process[_0x209f35(0x25f)][_0x209f35(0x1ff)],_0x517003[_0x209f35(0x239)])&&_0x517003['eIfzj'](process['env'][_0x209f35(0x1ff)],_0x517003[_0x209f35(0x1e7)])&&logger[_0x209f35(0x250)]('Visit\x20'+constants[_0x209f35(0x1d4)]+'/builds/'+process[_0x209f35(0x25f)][_0x209f35(0x1ff)]+_0x209f35(0x20d));}catch(_0x321167){logger[_0x209f35(0x22c)](util['format'](_0x517003[_0x209f35(0x1fa)],new Date()[_0x209f35(0x28f)](),_0x321167[_0x209f35(0x23c)]||_0x321167['message']||_0x321167));}})();},exports[a117_0x17a217(0x226)]=_0x3967b0=>{const _0x51f7bd=a117_0x17a217,_0x3d6713={};_0x3d6713[_0x51f7bd(0x1c0)]=_0x51f7bd(0x24b),_0x3d6713[_0x51f7bd(0x23b)]=_0x51f7bd(0x214);const _0x39df09=_0x3d6713;if(!_0x3967b0)return null;return _0x3967b0[_0x51f7bd(0x247)]()['match'](/AssertionError/)?_0x39df09[_0x51f7bd(0x1c0)]:_0x39df09[_0x51f7bd(0x23b)];},exports['getFrameworkVersion']=_0x256171=>{const _0xec4fb3=a117_0x17a217,_0x576d33={};_0x576d33[_0xec4fb3(0x1a0)]=_0xec4fb3(0x205),_0x576d33[_0xec4fb3(0x221)]=_0xec4fb3(0x1e3),_0x576d33[_0xec4fb3(0x215)]=_0xec4fb3(0x1f8),_0x576d33[_0xec4fb3(0x1a2)]='jest',_0x576d33['ZvrFZ']=_0xec4fb3(0x218);const _0x4336d2=_0x576d33;let _0x26b61f=null;switch(_0x256171){case FRAMEWORKS[_0xec4fb3(0x1be)]:_0x26b61f=bsSetupHelper[_0xec4fb3(0x2a8)](_0x4336d2[_0xec4fb3(0x1a0)]);break;case FRAMEWORKS[_0xec4fb3(0x1d2)]:_0x26b61f=bsSetupHelper[_0xec4fb3(0x2a8)](_0x4336d2[_0xec4fb3(0x221)]);break;case FRAMEWORKS[_0xec4fb3(0x22b)]:case FRAMEWORKS[_0xec4fb3(0x233)]:_0x26b61f=bsSetupHelper[_0xec4fb3(0x2a8)](_0x4336d2[_0xec4fb3(0x215)]);break;case FRAMEWORKS[_0xec4fb3(0x21c)]:_0x26b61f=bsSetupHelper['getPackageVersion'](_0x4336d2[_0xec4fb3(0x1a2)]);break;case FRAMEWORKS[_0xec4fb3(0x212)]:_0x26b61f=bsSetupHelper[_0xec4fb3(0x2a8)](_0x4336d2[_0xec4fb3(0x1ab)]);break;default:break;}return _0x26b61f;},exports[a117_0x17a217(0x1f4)]=_0x1fc9cb=>{const _0x4e6831=a117_0x17a217;let _0x2bc7b0=null;switch(_0x1fc9cb){case FRAMEWORKS[_0x4e6831(0x1d2)]:_0x2bc7b0=process[_0x4e6831(0x25f)][_0x4e6831(0x22e)];break;}if(!_0x2bc7b0)return;return bsSetupHelper[_0x4e6831(0x29b)](_0x2bc7b0,![]);},exports[a117_0x17a217(0x252)]=_0x55dbe7=>{const _0x10ddd7=a117_0x17a217;return{'username':bsSetupHelper['getUserName'](_0x55dbe7),'accessKey':bsSetupHelper[_0x10ddd7(0x24e)](_0x55dbe7)};},exports[a117_0x17a217(0x23d)]=(_0x5f2215,_0x2a11f0)=>{const _0x1d3656=a117_0x17a217,_0x5f1114={};_0x5f1114[_0x1d3656(0x1b6)]='0|5|1|2|4|3',_0x5f1114[_0x1d3656(0x1eb)]=_0x1d3656(0x246),_0x5f1114[_0x1d3656(0x21d)]=_0x1d3656(0x257);const _0x438799=_0x5f1114,_0x4d4057=_0x438799[_0x1d3656(0x1b6)][_0x1d3656(0x235)]('|');let _0x1a5a02=0x0;while(!![]){switch(_0x4d4057[_0x1a5a02++]){case'0':if(!_0x5f2215[_0x1d3656(0x262)]||!Array[_0x1d3656(0x213)](_0x5f2215[_0x1d3656(0x262)]))return;continue;case'1':_0x5f2215['formData']={'data':_0x5f2215[_0x1d3656(0x262)][0x0][_0x1d3656(0x1d5)][0x0]['data'],'test_run_uuid':_0x5f2215[_0x1d3656(0x262)][0x0][_0x1d3656(0x1d5)][0x0]['test_run_uuid'],'event_type':_0x438799['cxqwa'],'kind':_0x438799['nnvCd'],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x1d3656(0x28f)](),'fileName':_0x5f2215[_0x1d3656(0x262)][0x0][_0x1d3656(0x1d5)][0x0]['fileName']};continue;case'2':delete _0x5f2215[_0x1d3656(0x262)];continue;case'3':delete _0x2a11f0['headers'];continue;case'4':delete _0x5f2215[_0x1d3656(0x2aa)];continue;case'5':if(!_0x5f2215['body'][0x0]||!_0x5f2215[_0x1d3656(0x262)][0x0][_0x1d3656(0x1d5)]||!_0x5f2215[_0x1d3656(0x262)][0x0][_0x1d3656(0x1d5)][_0x1d3656(0x1f9)])return;continue;}break;}},exports[a117_0x17a217(0x27a)]=async(_0x5e91a0,_0x87b4a4,_0xce3eec,_0x10382b,_0x47cb47=!![])=>{const _0x4b489f=a117_0x17a217,_0x41fd37={};_0x41fd37['hBtol']=function(_0x2d8797,_0x461b36){return _0x2d8797===_0x461b36;},_0x41fd37[_0x4b489f(0x1da)]=_0x4b489f(0x26d),_0x41fd37[_0x4b489f(0x1f0)]='application/json',_0x41fd37[_0x4b489f(0x1c7)]=_0x4b489f(0x231),_0x41fd37[_0x4b489f(0x216)]=function(_0x45efd0,_0x53ac94){return _0x45efd0!==_0x53ac94;},_0x41fd37[_0x4b489f(0x28c)]=_0x4b489f(0x248),_0x41fd37[_0x4b489f(0x1e0)]=_0x4b489f(0x26b);const _0xb18e36=_0x41fd37,_0x3f7b87={..._0x10382b,...{'method':_0x5e91a0,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x87b4a4,'body':_0xce3eec,'json':_0xb18e36[_0x4b489f(0x1f7)](_0x10382b[_0x4b489f(0x1e4)][_0xb18e36[_0x4b489f(0x1da)]],_0xb18e36[_0x4b489f(0x1f0)]),'agent':API_URL[_0x4b489f(0x281)](_0xb18e36[_0x4b489f(0x1c7)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0xb18e36['hBtol'](_0x87b4a4,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x3f7b87[_0x4b489f(0x1f6)]=API_URL[_0x4b489f(0x281)](_0xb18e36[_0x4b489f(0x1c7)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x3f7b87,_0x10382b),logger[_0x4b489f(0x1c1)](_0x4b489f(0x28e)+_0x3f7b87['url']));try{const {statusCode:_0x15c758,body:_0x5e0beb}=await bsSetupHelper[_0x4b489f(0x26e)](_0x5e91a0,_0x87b4a4,_0x3f7b87,_0x10382b,_0x3f7b87['url']);if(_0xb18e36[_0x4b489f(0x216)](_0x15c758,0xc8))return _0x5e0beb?_0x5e0beb:_0x4b489f(0x1f3)+_0x15c758;let _0x251ab0=_0x5e0beb;if(_0x47cb47)try{_0xb18e36['OCIvA'](typeof _0x5e0beb,_0xb18e36[_0x4b489f(0x28c)])&&(_0x251ab0=JSON[_0x4b489f(0x1dc)](_0x5e0beb));}catch(_0x665c89){logger[_0x4b489f(0x22c)](_0xb18e36['uWXwT'],_0x5e0beb,util[_0x4b489f(0x228)](_0x665c89));}const _0x4c2134={};return _0x4c2134['data']=_0x251ab0,_0x4c2134;}catch(_0x5340b2){logger[_0x4b489f(0x22c)](_0x4b489f(0x1b2)+util[_0x4b489f(0x228)](_0x5340b2));throw _0x5340b2;}},exports[a117_0x17a217(0x26e)]=(_0x398644,_0x31abb8,_0x59baa7,_0x573dd4,_0x12e828=!![])=>{const _0x52008a=a117_0x17a217,_0x1bfe54={'oBLPF':function(_0x21ff7e,_0xf7a995){return _0x21ff7e(_0xf7a995);},'SDscg':function(_0x187d78,_0x5b47a4){return _0x187d78!==_0x5b47a4;},'kaQvt':function(_0x58500a,_0x3d3ca3){return _0x58500a(_0x3d3ca3);},'LLxBC':'object','ifhuJ':_0x52008a(0x29a),'ViDUi':function(_0x2c77e8,_0x4d50ec){return _0x2c77e8(_0x4d50ec);},'olGpp':function(_0x2cd3cc,_0x4a6cf8){return _0x2cd3cc===_0x4a6cf8;},'ZrFAT':_0x52008a(0x26d),'vyvQi':_0x52008a(0x224),'BHaQd':_0x52008a(0x231)};return new Promise((_0x21e1db,_0x4cb81a)=>{const _0x5426bd=_0x52008a,_0x4ab571={'vDaqc':function(_0x3e5fcf,_0x1d8f54){const _0x2f96fa=a117_0x2ac2;return _0x1bfe54[_0x2f96fa(0x1c3)](_0x3e5fcf,_0x1d8f54);},'zPGdP':function(_0x3e2889,_0x40c6cc){return _0x1bfe54['kaQvt'](_0x3e2889,_0x40c6cc);},'gkrnK':_0x1bfe54[_0x5426bd(0x284)],'SpSEd':function(_0x3640a5,_0x1a43e2){const _0x3c4ba4=_0x5426bd;return _0x1bfe54[_0x3c4ba4(0x26c)](_0x3640a5,_0x1a43e2);},'lcdMM':_0x1bfe54[_0x5426bd(0x208)],'bSrVe':function(_0x3ba66f,_0x2aa27d){return _0x1bfe54['ViDUi'](_0x3ba66f,_0x2aa27d);}},_0xa4b753={..._0x573dd4,...{'method':_0x398644,'url':API_URL+'/'+_0x31abb8,'body':_0x59baa7,'json':_0x1bfe54[_0x5426bd(0x223)](_0x573dd4[_0x5426bd(0x1e4)][_0x1bfe54[_0x5426bd(0x2a5)]],_0x1bfe54[_0x5426bd(0x296)]),'agent':API_URL[_0x5426bd(0x281)](_0x1bfe54['BHaQd'])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x1bfe54['olGpp'](_0x31abb8,SCREENSHOT_ENDPOINT)&&(_0xa4b753[_0x5426bd(0x1f6)]=API_URL[_0x5426bd(0x281)](_0x1bfe54[_0x5426bd(0x1b4)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper['nodeRequest'](_0x398644,_0x31abb8,_0xa4b753,_0x573dd4,API_URL)['then'](({statusCode:_0x5969a2,body:_0x3e5ce5})=>{const _0x21f1c1=_0x5426bd;if(_0x4ab571[_0x21f1c1(0x253)](_0x5969a2,0xc8))_0x4ab571[_0x21f1c1(0x27f)](_0x4cb81a,_0x3e5ce5?_0x3e5ce5:_0x21f1c1(0x1f3)+_0x5969a2);else{if(_0x12e828)try{_0x4ab571[_0x21f1c1(0x253)](typeof _0x3e5ce5,_0x4ab571[_0x21f1c1(0x1d3)])&&(_0x3e5ce5=JSON[_0x21f1c1(0x1dc)](_0x3e5ce5));}catch(_0x147517){_0x4ab571['SpSEd'](_0x4cb81a,_0x4ab571[_0x21f1c1(0x25e)]);return;}const _0xe79a0f={};_0xe79a0f[_0x21f1c1(0x290)]=_0x3e5ce5,_0x4ab571[_0x21f1c1(0x202)](_0x21e1db,_0xe79a0f);}})[_0x5426bd(0x283)](_0x4efdb1=>{_0x4efdb1&&_0x1bfe54['oBLPF'](_0x4cb81a,_0x4efdb1);});});},exports[a117_0x17a217(0x269)]=_0x2756c7=>{const _0x4078d0=a117_0x17a217;if(process[_0x4078d0(0x25f)]['TEST_OBSERVABILITY_BUILD_TAG'])return process[_0x4078d0(0x25f)][_0x4078d0(0x1c6)][_0x4078d0(0x235)](',');if(_0x2756c7[_0x4078d0(0x2a0)])return _0x2756c7[_0x4078d0(0x2a0)];return[];},exports['getDefaultHeaders']=(_0x273260=!![])=>{const _0x3a426a=a117_0x17a217,_0x3561cf={};_0x3561cf['ggzaF']=_0x3a426a(0x224),_0x3561cf[_0x3a426a(0x29e)]=_0x3a426a(0x270),_0x3561cf['WexuH']=_0x3a426a(0x1ad);const _0x5c4b45=_0x3561cf,_0x35fadf={};_0x35fadf['Content-Type']=_0x5c4b45[_0x3a426a(0x245)],_0x35fadf['X-BSTACK-TESTOPS']=_0x5c4b45[_0x3a426a(0x29e)];const _0x243725=_0x35fadf;return _0x273260&&process[_0x3a426a(0x25f)]['BROWSERSTACK_TESTHUB_JWT']&&(_0x243725[_0x5c4b45[_0x3a426a(0x1fc)]]=_0x3a426a(0x206)+process['env'][_0x3a426a(0x22a)]),_0x243725;},exports[a117_0x17a217(0x1a7)]=_0x1969ec=>{const _0x459961=a117_0x17a217,_0x51dce1={};_0x51dce1[_0x459961(0x289)]=_0x459961(0x1e5);const _0x4c26c7=_0x51dce1,_0x38de0d=[],_0x48cf0a=new RegExp(_0x4c26c7[_0x459961(0x289)],'i');return Object[_0x459961(0x234)](_0x1969ec)[_0x459961(0x249)](_0x3055f5=>_0x48cf0a[_0x459961(0x277)](_0x3055f5))[_0x459961(0x1aa)](_0x339f3d=>_0x38de0d[_0x459961(0x256)](_0x1969ec[_0x339f3d])),_0x38de0d;},exports[a117_0x17a217(0x278)]=_0x146acf=>{const _0x1ef745=a117_0x17a217,_0x7f5930=[],_0x266d10=_0x146acf['customTag']||process[_0x1ef745(0x25f)][_0x1ef745(0x2a9)];return _0x266d10&&_0x7f5930['push'](_0x266d10),_0x7f5930[_0x1ef745(0x256)](...exports[_0x1ef745(0x1a7)](process[_0x1ef745(0x25f)])),_0x7f5930[_0x1ef745(0x256)](...exports[_0x1ef745(0x1a7)](_0x146acf)),_0x7f5930;},exports[a117_0x17a217(0x287)]=_0x42d7de=>{const _0x21af0b=a117_0x17a217;if(!_0x42d7de)return'';return _0x42d7de[_0x21af0b(0x272)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a117_0x17a217(0x255)]=(_0x510d31=0x64)=>new Promise(_0x4e5a51=>setTimeout(_0x4e5a51,_0x510d31));const getPlatformName=()=>{const _0x50088d=a117_0x17a217,_0x14e9be={};_0x14e9be[_0x50088d(0x298)]=function(_0x387941,_0x443bb6){return _0x387941===_0x443bb6;},_0x14e9be[_0x50088d(0x1d6)]='win32',_0x14e9be[_0x50088d(0x20b)]=_0x50088d(0x276),_0x14e9be['MDgmy']=function(_0xa7c9ff,_0x508a3c){return _0xa7c9ff===_0x508a3c;},_0x14e9be[_0x50088d(0x24c)]=_0x50088d(0x207),_0x14e9be[_0x50088d(0x21a)]=_0x50088d(0x26f),_0x14e9be['LBvOw']=function(_0x17660e,_0x319e5c){return _0x17660e===_0x319e5c;},_0x14e9be[_0x50088d(0x240)]='linux',_0x14e9be[_0x50088d(0x1f1)]=_0x50088d(0x1a4),_0x14e9be[_0x50088d(0x25d)]='Unknown';const _0xbd0331=_0x14e9be;if(_0xbd0331[_0x50088d(0x298)](process[_0x50088d(0x1ca)],_0xbd0331[_0x50088d(0x1d6)]))return _0xbd0331[_0x50088d(0x20b)];if(_0xbd0331[_0x50088d(0x295)](process['platform'],_0xbd0331[_0x50088d(0x24c)]))return _0xbd0331['SiWSH'];if(_0xbd0331['LBvOw'](process['platform'],_0xbd0331[_0x50088d(0x240)]))return _0xbd0331[_0x50088d(0x1f1)];return _0xbd0331[_0x50088d(0x25d)];},getMacOSVersion=()=>{const _0x493410=a117_0x17a217,_0x4e6abe={};_0x4e6abe[_0x493410(0x236)]='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 _0x30d4b4=_0x4e6abe;return child_process[_0x493410(0x20e)](_0x30d4b4['aMjQZ'])['toString']()[_0x493410(0x279)]();},getLinuxDetails=()=>{const _0x16290a={'vZDUD':function(_0x329e03,_0x51acf2){return _0x329e03(_0x51acf2);},'jRpLI':function(_0x3644b7,_0x585dd9){return _0x3644b7(_0x585dd9);}};return new Promise((_0x16e1b9,_0x305fb2)=>{_0x16290a['jRpLI'](getos,(_0x3eee5f,_0x244b64)=>{const _0x1146d1=a117_0x2ac2;if(_0x3eee5f)return _0x16290a[_0x1146d1(0x1de)](_0x305fb2,_0x3eee5f);_0x16290a[_0x1146d1(0x1de)](_0x16e1b9,_0x244b64);});});};function a117_0x2ac2(_0x554981,_0x5676ce){const _0x18009a=a117_0x1800();return a117_0x2ac2=function(_0x2ac2e0,_0xff8278){_0x2ac2e0=_0x2ac2e0-0x19f;let _0x3796cb=_0x18009a[_0x2ac2e0];return _0x3796cb;},a117_0x2ac2(_0x554981,_0x5676ce);}exports[a117_0x17a217(0x1ba)]=async()=>{const _0x45e1f5=a117_0x17a217,_0x3e5bd1={'HoLLv':function(_0x2975c3){return _0x2975c3();},'KLFbm':_0x45e1f5(0x26f),'xuSAU':function(_0x143ce3){return _0x143ce3();},'RytBD':_0x45e1f5(0x276),'mvgpb':_0x45e1f5(0x25a),'BtNDS':_0x45e1f5(0x1a4),'APDda':'Error\x20in\x20getting\x20Linux\x20Details'};let _0x499a42=_0x3e5bd1[_0x45e1f5(0x1ed)](getPlatformName),_0xb73b2c=os[_0x45e1f5(0x273)]()[_0x45e1f5(0x247)]();switch(_0x499a42){case _0x3e5bd1[_0x45e1f5(0x286)]:_0xb73b2c=_0x3e5bd1[_0x45e1f5(0x254)](getMacOSVersion);break;case _0x3e5bd1[_0x45e1f5(0x27e)]:try{const _0x3651af=(await import(_0x3e5bd1[_0x45e1f5(0x21f)]))[_0x45e1f5(0x241)];_0xb73b2c=_0x3e5bd1[_0x45e1f5(0x254)](_0x3651af);}catch(_0x26b920){exports['debug'](_0x45e1f5(0x1ee)+_0x26b920[_0x45e1f5(0x247)]());}break;case _0x3e5bd1[_0x45e1f5(0x244)]:try{const _0x4cdcf8=await _0x3e5bd1[_0x45e1f5(0x254)](getLinuxDetails);_0x4cdcf8[_0x45e1f5(0x288)]&&(_0x499a42=_0x4cdcf8['dist']),_0x4cdcf8[_0x45e1f5(0x273)]&&(_0xb73b2c=_0x4cdcf8[_0x45e1f5(0x273)]['toString']());}catch(_0x156f11){exports[_0x45e1f5(0x1c1)](_0x3e5bd1[_0x45e1f5(0x261)]);}break;default:break;}const _0x282baa={};return _0x282baa['platformName']=_0x499a42,_0x282baa[_0x45e1f5(0x1cc)]=_0xb73b2c,_0x282baa;},exports['failureData']=(_0x17110e,_0x4d4b8b)=>{const _0x591f78=a117_0x17a217,_0x3cb06a={};_0x3cb06a[_0x591f78(0x27b)]=function(_0x22f147,_0x40b709){return _0x22f147===_0x40b709;},_0x3cb06a[_0x591f78(0x1bc)]=_0x591f78(0x277),_0x3cb06a['znQCc']=_0x591f78(0x268);const _0x4d1782=_0x3cb06a;if(!_0x17110e)return[];try{if(_0x4d1782[_0x591f78(0x27b)](_0x4d4b8b,_0x4d1782[_0x591f78(0x1bc)]))return _0x17110e[_0x591f78(0x1c9)](_0x8c84fd=>{const _0x787252=_0x591f78,{stack:_0x260a93,..._0x3c8c02}=_0x8c84fd,_0x4e233c=Object[_0x787252(0x234)](_0x3c8c02)[_0x787252(0x1c9)](_0x3e7ca5=>{return _0x3e7ca5+':\x20'+_0x3c8c02[_0x3e7ca5];}),_0x2e3cc7=_0x260a93?exports['removeAnsiColors'](_0x260a93)[_0x787252(0x235)](/\r?\n/):[exports['removeAnsiColors'](_0x8c84fd[_0x787252(0x1c4)])],_0x1c6f66={};return _0x1c6f66[_0x787252(0x1ac)]=_0x2e3cc7,_0x1c6f66[_0x787252(0x1d7)]=_0x4e233c,_0x1c6f66;});else{if(_0x4d1782[_0x591f78(0x27b)](_0x4d4b8b,_0x4d1782['znQCc'])){const _0x14e58b=[],_0x3e697f=[];return Object[_0x591f78(0x234)](_0x17110e)[_0x591f78(0x1aa)](_0x321abe=>{const _0x47a2af=_0x591f78;try{_0x3e697f[_0x47a2af(0x256)](_0x321abe+':\x20'+_0x17110e[_0x321abe]);}catch(_0x2e4b5f){exports[_0x47a2af(0x1c1)](_0x47a2af(0x1e6)+_0x2e4b5f[_0x47a2af(0x1c4)]+'\x20:\x20'+_0x2e4b5f[_0x47a2af(0x1ac)]);}}),_0x14e58b['push']({'backtrace':exports[_0x591f78(0x287)](_0x17110e[_0x591f78(0x23c)])[_0x591f78(0x235)](/\r?\n/),'expanded':_0x3e697f}),_0x14e58b;}}return[];}catch(_0x87909a){exports[_0x591f78(0x1c1)](_0x591f78(0x1e6)+_0x87909a[_0x591f78(0x1c4)]+_0x591f78(0x1f5)+_0x87909a[_0x591f78(0x1ac)]);}return[];};class PathHelper{constructor(_0x40855d,_0x53051e){const _0x44a65a=a117_0x17a217;this[_0x44a65a(0x285)]=_0x40855d,this[_0x44a65a(0x1cd)]=_0x53051e;}[a117_0x17a217(0x294)](_0x451b43){const _0x46c61f=a117_0x17a217,_0x4f1e80=this[_0x46c61f(0x285)][_0x46c61f(0x267)]||this['config'][_0x46c61f(0x293)];return path[_0x46c61f(0x274)](_0x4f1e80,_0x451b43);}[a117_0x17a217(0x1a8)](_0x34c847){const _0x474479=a117_0x17a217,_0x164ae3=this[_0x474479(0x294)](_0x34c847);return this[_0x474479(0x1cd)]?path[_0x474479(0x200)](this[_0x474479(0x1cd)],_0x164ae3):_0x164ae3;}}exports[a117_0x17a217(0x1d1)]=PathHelper,exports['addRequestSpy']=(_0x3b1010=!![])=>{const _0x7970d9=a117_0x17a217,_0x5c4b70={};_0x5c4b70[_0x7970d9(0x27c)]=function(_0x482fae,_0x4ad5fa){return _0x482fae===_0x4ad5fa;},_0x5c4b70[_0x7970d9(0x1df)]=_0x7970d9(0x1db),_0x5c4b70[_0x7970d9(0x2a3)]=_0x7970d9(0x270),_0x5c4b70[_0x7970d9(0x1f2)]=_0x7970d9(0x1ef),_0x5c4b70[_0x7970d9(0x1ec)]=_0x7970d9(0x23e),_0x5c4b70[_0x7970d9(0x25c)]='local_grid';const _0x5c70cf=_0x5c4b70;requestSpy['spy']((_0x2565d3,_0x323fdc)=>{const _0x30f941=_0x7970d9;_0x323fdc&&!(_0x323fdc[_0x30f941(0x1e4)]&&_0x5c70cf['BXZYx'](_0x323fdc[_0x30f941(0x1e4)][_0x5c70cf[_0x30f941(0x1df)]],_0x5c70cf[_0x30f941(0x2a3)]))&&(_0x323fdc[_0x30f941(0x1a6)]=_0x323fdc[_0x30f941(0x204)],delete _0x323fdc[_0x30f941(0x204)],_0x3b1010&&process[_0x30f941(0x271)](_0x30f941(0x20f)+process[_0x30f941(0x2a2)],{'timestamp':new Date()[_0x30f941(0x28f)](),'level':null,'message':null,'kind':_0x5c70cf[_0x30f941(0x1f2)],'http_response':_0x323fdc})),_0x323fdc&&(constants['HUB_URL_REGEX']['test'](_0x323fdc['host'])||constants['ATS_HUB_URL_REGEX'][_0x30f941(0x277)](_0x323fdc[_0x30f941(0x1a6)]))?global['__cloud_provider___']=_0x5c70cf[_0x30f941(0x1ec)]:global['__cloud_provider___']=_0x5c70cf[_0x30f941(0x25c)];});},exports['patchConsoleLogger']=()=>{const _0x277c36=a117_0x17a217,_0x31846c={'QOcav':function(_0x4ae118,_0xa05ea4){return _0x4ae118(_0xa05ea4);}};console={},Object['keys'](consoleHolder)[_0x277c36(0x1aa)](_0x2af38f=>{const _0x3b7d80=_0x277c36;_0x31846c[_0x3b7d80(0x1fb)](isFunction,consoleHolder[_0x2af38f])?console[_0x2af38f]=(..._0x56bf9b)=>{const _0x4591b8=_0x3b7d80;try{!Object[_0x4591b8(0x234)](BSTestOpsPatcher)[_0x4591b8(0x281)](_0x2af38f)?consoleHolder[_0x2af38f](..._0x56bf9b):BSTestOpsPatcher[_0x2af38f](..._0x56bf9b);}catch(_0x3e5e06){consoleHolder[_0x2af38f](..._0x56bf9b);}}:console[_0x2af38f]=consoleHolder[_0x2af38f];});},exports[a117_0x17a217(0x1bf)]=()=>a117_0x17a217(0x209)+JSON['stringify']({'action':'annotate','arguments':{'data':a117_0x17a217(0x23a)+Date['now'](),'level':a117_0x17a217(0x1c1)}}),exports['getObservabilityLinkedProductName']=_0x3cf53c=>{const _0x52a5b4=a117_0x17a217,_0x151443={};_0x151443[_0x52a5b4(0x1cb)]=function(_0x304150,_0x5da21b){return _0x304150===_0x5da21b;},_0x151443[_0x52a5b4(0x282)]='browserstack',_0x151443[_0x52a5b4(0x23f)]=_0x52a5b4(0x203),_0x151443['INbUI']=_0x52a5b4(0x24a),_0x151443[_0x52a5b4(0x1b5)]=function(_0x2becf5,_0x5be576){return _0x2becf5>_0x5be576;},_0x151443['RWUTk']='app-automate',_0x151443['QTpCt']=_0x52a5b4(0x217),_0x151443[_0x52a5b4(0x211)]=_0x52a5b4(0x21e),_0x151443[_0x52a5b4(0x20c)]='turboscale',_0x151443[_0x52a5b4(0x1e1)]=_0x52a5b4(0x280);const _0x1552cd=_0x151443;let _0x243573=null;try{if(_0x1552cd[_0x52a5b4(0x1cb)](global['__cloud_provider___'],_0x1552cd['FLBTp'])){if(_0x3cf53c[_0x1552cd[_0x52a5b4(0x23f)]]||_0x3cf53c[_0x1552cd[_0x52a5b4(0x1ce)]]||!bsSetupHelper['isUndefined'](global[_0x52a5b4(0x259)])&&_0x1552cd[_0x52a5b4(0x1b5)](global[_0x52a5b4(0x259)][_0x52a5b4(0x1f9)],0x0)&&(global[_0x52a5b4(0x259)][0x0][_0x1552cd[_0x52a5b4(0x1ce)]]||global['capabilities'][0x0][_0x1552cd['iQRPY']]))_0x243573=_0x1552cd[_0x52a5b4(0x260)];else _0x3cf53c[_0x1552cd[_0x52a5b4(0x24d)]]&&_0x3cf53c[_0x1552cd['QTpCt']][_0x1552cd['RVXBL']]?_0x243573=_0x1552cd[_0x52a5b4(0x20c)]:_0x243573=_0x1552cd[_0x52a5b4(0x1e1)];}}catch(_0x415773){exports[_0x52a5b4(0x1c1)]('Failed\x20to\x20determine\x20product\x20linked\x20to\x20Observability\x20test\x20instance\x20:\x20'+_0x415773);}return _0x243573;},exports[a117_0x17a217(0x1a5)]=async(_0x33467f,_0xbb0ea2,_0x2d5037=![])=>{const _0x316c31=a117_0x17a217,_0x1c942e={};_0x1c942e['CSzuu']=function(_0x165862,_0x345bd0){return _0x165862===_0x345bd0;},_0x1c942e[_0x316c31(0x275)]=_0x316c31(0x23e),_0x1c942e[_0x316c31(0x258)]='unknown_grid',_0x1c942e['rbRtq']=_0x316c31(0x1b7);const _0x59a2a3=_0x1c942e;try{const _0x638987=await _0x33467f['getCapabilities'](),_0x392199=await _0x33467f[_0x316c31(0x227)](),_0x5568b9={},_0x30b990=Object[_0x316c31(0x1e9)](_0x392199[_0x316c31(0x21b)]()[_0x316c31(0x299)]),_0x59a300={'product':exports[_0x316c31(0x251)](_0x30b990),'capabilities':_0x30b990,'platform':_0x638987['getPlatform'](),'platform_version':bsSetupHelper[_0x316c31(0x25b)](_0x59a2a3[_0x316c31(0x2a4)](global[_0x316c31(0x1bd)],_0x59a2a3[_0x316c31(0x275)])),'browser':_0x638987[_0x316c31(0x2a6)](),'browser_version':_0x638987[_0x316c31(0x1c2)](),'session_id':_0x392199[_0x316c31(0x1c8)]()};global[_0x316c31(0x1bd)]?_0x5568b9[global['__cloud_provider___']]=_0x59a300:_0x5568b9[_0x59a2a3['ybEeO']]=_0x59a300;if(_0x2d5037)return _0x5568b9;process[_0x316c31(0x271)](_0x316c31(0x264)+process[_0x316c31(0x2a2)],{'timestamp':new Date()[_0x316c31(0x28f)](),'level':null,'message':null,'kind':_0x59a2a3[_0x316c31(0x242)],'http_response':_0x5568b9,'uuid':_0xbb0ea2});}catch(_0xb04441){exports[_0x316c31(0x1c1)](_0x316c31(0x1d9)+_0xb04441);}},exports[a117_0x17a217(0x2a1)]=_0x47aa56=>{const _0x23d879=a117_0x17a217;return _0x47aa56&&_0x47aa56[_0x23d879(0x247)]()[_0x23d879(0x297)](/browserstack internal helper hook/);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a118_0x2558(_0x5c53a1,_0xad1711){var _0x4d0f50=a118_0x4d0f();return a118_0x2558=function(_0x255845,_0x247de9){_0x255845=_0x255845-0x86;var _0x56f898=_0x4d0f50[_0x255845];return _0x56f898;},a118_0x2558(_0x5c53a1,_0xad1711);}var a118_0x497fdf=a118_0x2558;(function(_0x420b42,_0x1371f1){var _0x14db32=a118_0x2558,_0x103b4b=_0x420b42();while(!![]){try{var _0x578a1f=-parseInt(_0x14db32(0x88))/0x1+parseInt(_0x14db32(0x8b))/0x2+parseInt(_0x14db32(0x8d))/0x3*(-parseInt(_0x14db32(0x87))/0x4)+-parseInt(_0x14db32(0x8e))/0x5+parseInt(_0x14db32(0x92))/0x6*(-parseInt(_0x14db32(0x96))/0x7)+-parseInt(_0x14db32(0x93))/0x8*(parseInt(_0x14db32(0x90))/0x9)+-parseInt(_0x14db32(0x95))/0xa*(-parseInt(_0x14db32(0x89))/0xb);if(_0x578a1f===_0x1371f1)break;else _0x103b4b['push'](_0x103b4b['shift']());}catch(_0x13969e){_0x103b4b['push'](_0x103b4b['shift']());}}}(a118_0x4d0f,0x41d4b));function a118_0x4d0f(){var _0x4ed58c=['88AnaFzD','240800YErRPy','2497WjOspk','SPLIT_TESTS_ENDPOINT','435328HcMVyc','https://collector-observability.browserstack.com','10572GGxZNg','2425645nGwQVN','ORCHESTRATION_API_URL','3765087vAibYE','testorchestration/api/v1/split-tests','292338JEplws','8WCqBpS','exports','58260BRiSOE','7KXkZvP','testorchestration/api/v1/failed-tests','FAILED_TESTS_ENDPOINT'];a118_0x4d0f=function(){return _0x4ed58c;};return a118_0x4d0f();}var a118_0x61879d={};a118_0x61879d[a118_0x497fdf(0x8f)]=a118_0x497fdf(0x8c),a118_0x61879d[a118_0x497fdf(0x86)]=a118_0x497fdf(0x97),a118_0x61879d[a118_0x497fdf(0x8a)]=a118_0x497fdf(0x91),module[a118_0x497fdf(0x94)]=a118_0x61879d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a119_0x4ecf(){const _0x4ea00e=['failFastActiveMarkerPath','failedTests','UiDoZ','CSriR','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','\x0aStack:\x20','PSduG','has','./fileHelper','stack','ZiKmh','writeState','readState','7952763XSiyqN','error','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20',',\x20threshold:\x20','BROWSERSTACK_NODE_INDEX','gmbnd','newState','lastAPIFailedCount','stopPolling','COYPw','uniqueFailedTests','_initializeStateFromFile','reportedFailuresToAPI','failFastState.lock','from','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','\x20to\x20API:\x20','EQfGM','2815443QhyAZO','debug','IzRig',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','_fetchAPIFailedCount','onTestDone','26hAkGhZ','VqxmT','info','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','918864ZkaOBh','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','_CI]\x20Polling\x20started\x20with\x20interval:\x20','state','qRPgk','failFastActive','hUtzy','winstonLogger',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','fSIKr','LWYNs','join','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','_CI]\x20API\x20failed\x20count\x20updated:\x20','rnkud','eIhhJ','BROWSERSTACK_TOTAL_NODE_COUNT','ySKjn','xrWvG','uWVyN','totalTests','tNLaJ','cleanup','10Gsasrd','pHTVu','failed','writeFileSync','UAgfZ','passed','6183SFcyyn','putFailedTests','pollingInterval','length','stateFilePath','lockFilePath','buildRunIdentifier','path','NpoWI','failFastConfig','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','mrwMH','wJdlm','_pollFailedTests','message','WZeKB','PrMkK','buildName','failureThresholdCount','vxBSe','BROWSERSTACK_BUILD_RUN_IDENTIFIER','1552290hcUIhr','exports','sEtLd','wzHhe','FailFastManager','\x20(was\x20','rbICj','_getDefaultState','509728RDDHbk','_CI]\x20Error\x20sending\x20failed\x20test\x20','toISOString','qJSDs','env','elbEB','fileHelper','wWIss',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','dZkYG','ms.','WKAec','520484yvdMJn','getFailedTestsCount','failFast.active','VKeFl','_sendFailedTestsToAPI','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','add','workingDir','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','Bvyxk','_CI]\x20Error\x20during\x20polling\x20logic:\x20','isCIMode','kFAnw','shouldFailFast','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','size','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20',']\x20Polling\x20stopped.','projectName','warn'];a119_0x4ecf=function(){return _0x4ea00e;};return a119_0x4ecf();}const a119_0x2869b6=a119_0x95f0;(function(_0x32dece,_0x46b1fe){const _0x51e482=a119_0x95f0,_0x16d188=_0x32dece();while(!![]){try{const _0xb48fe1=-parseInt(_0x51e482(0x87))/0x1*(parseInt(_0x51e482(0xec))/0x2)+-parseInt(_0x51e482(0xf0))/0x3+-parseInt(_0x51e482(0xb1))/0x4*(parseInt(_0x51e482(0x81))/0x5)+-parseInt(_0x51e482(0x9c))/0x6+parseInt(_0x51e482(0xd4))/0x7+parseInt(_0x51e482(0xa4))/0x8+parseInt(_0x51e482(0xe6))/0x9;if(_0xb48fe1===_0x46b1fe)break;else _0x16d188['push'](_0x16d188['shift']());}catch(_0xd018f8){_0x16d188['push'](_0x16d188['shift']());}}}(a119_0x4ecf,0x94334));function a119_0x95f0(_0xc7364,_0x47e666){const _0x4ecf55=a119_0x4ecf();return a119_0x95f0=function(_0x95f080,_0x4a9f81){_0x95f080=_0x95f080-0x7c;let _0x580430=_0x4ecf55[_0x95f080];return _0x580430;},a119_0x95f0(_0xc7364,_0x47e666);}const fs=require('fs'),path=require(a119_0x2869b6(0x8e)),FileHelper=require(a119_0x2869b6(0xcf)),RequestUtils=require('./requestUtils'),logger=require('../logger')[a119_0x2869b6(0xf7)],POLLING_INTERVAL=0x2710,TAG=a119_0x2869b6(0xa0);class FailFastManager{constructor(_0x9879af,_0x5f2f6c,_0x3759f5){const _0x310eec=a119_0x2869b6,_0x5c033b={};_0x5c033b[_0x310eec(0x103)]=function(_0x2e3720,_0x12f850){return _0x2e3720+_0x12f850;},_0x5c033b[_0x310eec(0xfa)]='\x0aStack:\x20',_0x5c033b[_0x310eec(0x96)]=function(_0x46485e,_0x2fc5ae){return _0x46485e||_0x2fc5ae;},_0x5c033b[_0x310eec(0x9a)]='failFastState.json',_0x5c033b[_0x310eec(0x82)]=_0x310eec(0xe1),_0x5c033b[_0x310eec(0xb4)]=_0x310eec(0xb3);const _0x55a923=_0x5c033b;this[_0x310eec(0x90)]=_0x55a923['WZeKB'](_0x9879af,{}),this[_0x310eec(0x98)]=_0x5f2f6c,this['projectName']=_0x3759f5,this['isCIMode']=!!(process['env'][_0x310eec(0x9b)]&&process[_0x310eec(0xa8)][_0x310eec(0xd8)]&&process['env'][_0x310eec(0x102)]);const _0x38d92c=this[_0x310eec(0x90)][_0x310eec(0xba)];this[_0x310eec(0x8b)]=path['join'](_0x38d92c,_0x55a923[_0x310eec(0x9a)]),this[_0x310eec(0x8c)]=path[_0x310eec(0xfc)](_0x38d92c,_0x55a923[_0x310eec(0x82)]),this[_0x310eec(0xc7)]=path['join'](_0x38d92c,_0x55a923[_0x310eec(0xb4)]),this[_0x310eec(0xaa)]=new FileHelper(this[_0x310eec(0x90)],this[_0x310eec(0x8b)],this[_0x310eec(0x8c)],this[_0x310eec(0xa3)]()),this['state']=this['_getDefaultState'](),this[_0x310eec(0x89)]=null,this['isCIMode']&&(this['reportedFailuresToAPI']=new Set()),this[_0x310eec(0xdf)]()['catch'](_0x246650=>{const _0x3275b3=_0x310eec;logger[_0x3275b3(0xd5)]('['+TAG+_0x3275b3(0xac)+_0x246650['message']+(_0x246650[_0x3275b3(0xd0)]?_0x55a923['ySKjn'](_0x55a923[_0x3275b3(0xfa)],_0x246650[_0x3275b3(0xd0)]):'')),this[_0x3275b3(0xf3)]=this[_0x3275b3(0xa3)]();}),this['isCIMode']&&this['startPolling'](),logger[_0x310eec(0xe7)]('['+TAG+_0x310eec(0xe9)+this[_0x310eec(0x90)][_0x310eec(0x99)]+',\x20CI\x20Mode:\x20'+this[_0x310eec(0xbe)]);}[a119_0x2869b6(0xa3)](){const _0x535a9f={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x535a9f;}async['_initializeStateFromFile'](){const _0x2c4322=a119_0x2869b6,_0x1fbb34={};_0x1fbb34[_0x2c4322(0xa9)]=function(_0x36dd29,_0x377127){return _0x36dd29+_0x377127;},_0x1fbb34[_0x2c4322(0xed)]=_0x2c4322(0xcc),_0x1fbb34[_0x2c4322(0xe5)]=function(_0x1012f8,_0x4b0bf5){return _0x1012f8+_0x4b0bf5;};const _0x2db8b3=_0x1fbb34;if(this[_0x2c4322(0xbe)])try{fs['existsSync'](this['failFastActiveMarkerPath'])&&(this[_0x2c4322(0xf3)][_0x2c4322(0xf5)]=!![],logger[_0x2c4322(0xe7)]('['+TAG+_0x2c4322(0xef)));}catch(_0x2e00c2){logger['error']('['+TAG+_0x2c4322(0xc3)+_0x2e00c2[_0x2c4322(0x95)]+(_0x2e00c2[_0x2c4322(0xd0)]?_0x2db8b3[_0x2c4322(0xa9)](_0x2db8b3[_0x2c4322(0xed)],_0x2e00c2['stack']):''));}else try{const _0x5f2ca8=await this['fileHelper']['readState']();if(_0x5f2ca8)this[_0x2c4322(0xf3)]={...this[_0x2c4322(0xa3)](),..._0x5f2ca8,'uniqueFailedTests':new Set(_0x5f2ca8[_0x2c4322(0xde)]||[])},logger['debug']('['+TAG+'_Local]\x20State\x20initialized\x20from\x20file.');else{logger[_0x2c4322(0xe7)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.');const _0x401118=this[_0x2c4322(0xa3)](),_0x2c7545={..._0x401118,'uniqueFailedTests':Array['from'](_0x401118[_0x2c4322(0xde)])};await this['fileHelper']['writeState'](_0x2c7545),this['state']=_0x401118;}}catch(_0x83e563){logger[_0x2c4322(0xe7)]('['+TAG+_0x2c4322(0xd6)+_0x83e563['message']+(_0x83e563[_0x2c4322(0xd0)]?_0x2db8b3[_0x2c4322(0xe5)](_0x2db8b3[_0x2c4322(0xed)],_0x83e563[_0x2c4322(0xd0)]):'')),this[_0x2c4322(0xf3)]=this['_getDefaultState']();}}async[a119_0x2869b6(0xeb)](_0x5d6185,_0x49f442){const _0x1672bf=a119_0x2869b6,_0x203d95={};_0x203d95[_0x1672bf(0x7f)]=function(_0x4e5e77,_0x341975){return _0x4e5e77>_0x341975;},_0x203d95[_0x1672bf(0xe8)]=function(_0x99b633,_0x52d2c0){return _0x99b633>_0x52d2c0;},_0x203d95['dZkYG']=_0x1672bf(0x83),_0x203d95['PrMkK']=_0x1672bf(0x86),_0x203d95[_0x1672bf(0x9f)]=function(_0x94156a,_0x3a0ff4){return _0x94156a+_0x3a0ff4;},_0x203d95[_0x1672bf(0xb0)]=_0x1672bf(0xcc),_0x203d95['UAgfZ']=function(_0x2053b9,_0x3b02e7){return _0x2053b9||_0x3b02e7;},_0x203d95[_0x1672bf(0xca)]=function(_0x7e04e1,_0x164f01){return _0x7e04e1+_0x164f01;};const _0x41d427=_0x203d95;if(this['isCIMode'])this['state'][_0x1672bf(0x7e)]+=0x1,_0x49f442&&_0x41d427[_0x1672bf(0x7f)](_0x49f442['length'],0x0)&&(!this['reportedFailuresToAPI'][_0x1672bf(0xce)](_0x5d6185)&&(await this[_0x1672bf(0xb5)](_0x5d6185),this[_0x1672bf(0xe0)][_0x1672bf(0xb9)](_0x5d6185)));else try{const _0x348a7d={'fullName':_0x5d6185,'status':_0x49f442&&_0x41d427[_0x1672bf(0xe8)](_0x49f442[_0x1672bf(0x8a)],0x0)?_0x41d427[_0x1672bf(0xae)]:_0x41d427[_0x1672bf(0x97)]},_0x166d22=await this[_0x1672bf(0xaa)]['recordTestResult'](_0x348a7d);this[_0x1672bf(0xf3)]={...this[_0x1672bf(0xa3)](),..._0x166d22[_0x1672bf(0xda)],'uniqueFailedTests':new Set(_0x166d22['newState'][_0x1672bf(0xde)]||[])};}catch(_0x5a0b08){logger['error']('['+TAG+_0x1672bf(0xb7)+_0x5a0b08[_0x1672bf(0x95)]+(_0x5a0b08[_0x1672bf(0xd0)]?_0x41d427[_0x1672bf(0x9f)](_0x41d427[_0x1672bf(0xb0)],_0x5a0b08[_0x1672bf(0xd0)]):''));try{const _0x41911e=await this['fileHelper'][_0x1672bf(0xd3)]();this['state']={...this['_getDefaultState'](),..._0x41d427[_0x1672bf(0x85)](_0x41911e,{}),'uniqueFailedTests':new Set(_0x41911e?_0x41911e[_0x1672bf(0xde)]||[]:[])},logger[_0x1672bf(0xe7)]('['+TAG+_0x1672bf(0xf1));}catch(_0x476253){logger[_0x1672bf(0xd5)]('['+TAG+_0x1672bf(0xcb)+_0x476253[_0x1672bf(0x95)]+(_0x476253[_0x1672bf(0xd0)]?_0x41d427['CSriR'](_0x41d427[_0x1672bf(0xb0)],_0x476253[_0x1672bf(0xd0)]):'')),this[_0x1672bf(0xf3)]=this[_0x1672bf(0xa3)]();}}}async[a119_0x2869b6(0xb5)](_0x33c3b9){const _0x15a84b=a119_0x2869b6,_0x47405d={};_0x47405d[_0x15a84b(0x101)]=function(_0x3b7297,_0x34c94d){return _0x3b7297+_0x34c94d;},_0x47405d[_0x15a84b(0x7c)]='\x0aStack:\x20';const _0x4b90db=_0x47405d;if(!this[_0x15a84b(0xbe)]||!_0x33c3b9)return;try{logger[_0x15a84b(0xe7)]('['+TAG+_0x15a84b(0xfe)+_0x33c3b9);const _0x4dd2cf={};_0x4dd2cf[_0x15a84b(0x98)]=this[_0x15a84b(0x98)],_0x4dd2cf[_0x15a84b(0xc5)]=this[_0x15a84b(0xc5)],_0x4dd2cf[_0x15a84b(0xc8)]=[_0x33c3b9],_0x4dd2cf[_0x15a84b(0x8d)]=process[_0x15a84b(0xa8)][_0x15a84b(0x9b)],await RequestUtils[_0x15a84b(0x88)](_0x4dd2cf);}catch(_0x3a4a5d){logger[_0x15a84b(0xd5)]('['+TAG+_0x15a84b(0xa5)+_0x33c3b9+_0x15a84b(0xe4)+_0x3a4a5d['message']+(_0x3a4a5d[_0x15a84b(0xd0)]?_0x4b90db[_0x15a84b(0x101)](_0x4b90db[_0x15a84b(0x7c)],_0x3a4a5d[_0x15a84b(0xd0)]):''));}}async['_fetchAPIFailedCount'](){const _0x32802c=a119_0x2869b6,_0x145511={};_0x145511[_0x32802c(0xf4)]=function(_0x22b970,_0x1ea19c){return _0x22b970===_0x1ea19c;},_0x145511[_0x32802c(0xdd)]='number',_0x145511[_0x32802c(0x92)]=function(_0x2b58e7,_0x3ff6dc){return _0x2b58e7+_0x3ff6dc;},_0x145511[_0x32802c(0xbf)]=_0x32802c(0xcc),_0x145511[_0x32802c(0xc9)]=function(_0x281fde,_0x1af606){return _0x281fde!==_0x1af606;};const _0x5a5761=_0x145511;if(!this[_0x32802c(0xbe)])return 0x0;try{const _0x29bd91={};_0x29bd91[_0x32802c(0x98)]=this[_0x32802c(0x98)],_0x29bd91[_0x32802c(0xc5)]=this['projectName'],_0x29bd91[_0x32802c(0x8d)]=process[_0x32802c(0xa8)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];const _0x2913ff=await RequestUtils[_0x32802c(0xb2)](_0x29bd91);return logger[_0x32802c(0xe7)]('['+TAG+_0x32802c(0xc1)+_0x2913ff),_0x5a5761['qRPgk'](typeof _0x2913ff,_0x5a5761['COYPw'])?_0x2913ff:0x0;}catch(_0xfc255e){return logger[_0x32802c(0xd5)]('['+TAG+_0x32802c(0xe3)+_0xfc255e[_0x32802c(0x95)]+(_0xfc255e[_0x32802c(0xd0)]?_0x5a5761[_0x32802c(0x92)](_0x5a5761[_0x32802c(0xbf)],_0xfc255e['stack']):'')),_0x5a5761[_0x32802c(0xc9)](this[_0x32802c(0xf3)]['lastAPIFailedCount'],undefined)?this[_0x32802c(0xf3)][_0x32802c(0xdb)]:0x0;}}async[a119_0x2869b6(0x94)](){const _0x363fc1=a119_0x2869b6,_0x51b021={};_0x51b021[_0x363fc1(0x93)]=function(_0x232146,_0x5d271c){return _0x232146!==_0x5d271c;},_0x51b021[_0x363fc1(0x7d)]=function(_0x54d27a,_0xd08233){return _0x54d27a+_0xd08233;},_0x51b021[_0x363fc1(0xfb)]=_0x363fc1(0xcc);const _0x541a1f=_0x51b021;if(!this[_0x363fc1(0xbe)])return;try{const _0x26be1b=await this[_0x363fc1(0xea)]();_0x541a1f[_0x363fc1(0x93)](_0x26be1b,this[_0x363fc1(0xf3)]['lastAPIFailedCount'])&&(logger['debug']('['+TAG+_0x363fc1(0xff)+_0x26be1b+_0x363fc1(0xa1)+this[_0x363fc1(0xf3)][_0x363fc1(0xdb)]+')'),this['state']['lastAPIFailedCount']=_0x26be1b);}catch(_0x319ba7){logger[_0x363fc1(0xd5)]('['+TAG+_0x363fc1(0xbd)+_0x319ba7[_0x363fc1(0x95)]+(_0x319ba7['stack']?_0x541a1f['uWVyN'](_0x541a1f[_0x363fc1(0xfb)],_0x319ba7[_0x363fc1(0xd0)]):''));}}async['startPolling'](){const _0x26d8f6=a119_0x2869b6,_0x276af8={'gmbnd':function(_0x433f9b,_0xdc4858,_0x26b743){return _0x433f9b(_0xdc4858,_0x26b743);}};this[_0x26d8f6(0x89)]&&this[_0x26d8f6(0xdc)](),this['isCIMode']&&(await this[_0x26d8f6(0x94)](),this[_0x26d8f6(0x89)]=_0x276af8[_0x26d8f6(0xd9)](setInterval,async()=>{const _0x29f99d=_0x26d8f6;await this[_0x29f99d(0x94)]();},POLLING_INTERVAL),logger['debug']('['+TAG+_0x26d8f6(0xf2)+POLLING_INTERVAL+_0x26d8f6(0xaf)));}[a119_0x2869b6(0xdc)](){const _0x503258=a119_0x2869b6,_0x4f33b2={'JmXdr':function(_0x298abc,_0x4a4c98){return _0x298abc(_0x4a4c98);}};this[_0x503258(0x89)]&&(_0x4f33b2['JmXdr'](clearInterval,this['pollingInterval']),this[_0x503258(0x89)]=null,logger[_0x503258(0xe7)]('['+TAG+_0x503258(0xc4)));}async[a119_0x2869b6(0xc0)](){const _0x3d9657=a119_0x2869b6,_0x152e7b={};_0x152e7b['wWIss']=function(_0x1aebe3,_0x7f5a6){return _0x1aebe3===_0x7f5a6;},_0x152e7b['NpoWI']=function(_0x5b65e4,_0x3d0d18){return _0x5b65e4<=_0x3d0d18;},_0x152e7b[_0x3d9657(0xcd)]=function(_0x2ea5e4,_0x293ee9){return _0x2ea5e4+_0x293ee9;},_0x152e7b[_0x3d9657(0xa7)]='\x0aStack:\x20',_0x152e7b['sfOYY']=function(_0x388ff3,_0x438dfb){return _0x388ff3!==_0x438dfb;},_0x152e7b['rnkud']=function(_0x54a0d6,_0x29c799){return _0x54a0d6>=_0x29c799;},_0x152e7b[_0x3d9657(0xf6)]=function(_0x288729,_0x269941){return _0x288729+_0x269941;},_0x152e7b[_0x3d9657(0xd1)]=function(_0x1992df,_0x5b70e2){return _0x1992df+_0x5b70e2;},_0x152e7b['Bvyxk']=function(_0x58397a,_0x39d25a){return _0x58397a>=_0x39d25a;};const _0x35cf28=_0x152e7b,{failureThresholdCount:_0x2716b8}=this['failFastConfig'];if(_0x35cf28[_0x3d9657(0xab)](_0x2716b8,null)||_0x35cf28['wWIss'](_0x2716b8,undefined)||_0x35cf28[_0x3d9657(0x8f)](_0x2716b8,0x0))return logger['debug']('['+TAG+_0x3d9657(0xf8)),![];if(this['isCIMode']){try{if(fs['existsSync'](this['failFastActiveMarkerPath']))return logger[_0x3d9657(0xe7)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.'),!this[_0x3d9657(0xf3)]['failFastActive']&&(this['state'][_0x3d9657(0xf5)]=!![]),this[_0x3d9657(0xdc)](),!![];}catch(_0x4ecb86){logger[_0x3d9657(0xd5)]('['+TAG+'_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20'+_0x4ecb86[_0x3d9657(0x95)]+(_0x4ecb86[_0x3d9657(0xd0)]?_0x35cf28['PSduG'](_0x35cf28['qJSDs'],_0x4ecb86[_0x3d9657(0xd0)]):''));}const _0x4fd5a2=_0x35cf28['sfOYY'](this[_0x3d9657(0xf3)]['lastAPIFailedCount'],undefined)?this[_0x3d9657(0xf3)][_0x3d9657(0xdb)]:0x0;if(_0x35cf28[_0x3d9657(0x100)](_0x4fd5a2,_0x2716b8)){logger[_0x3d9657(0xee)]('['+TAG+_0x3d9657(0xfd)+_0x4fd5a2+_0x3d9657(0xd7)+_0x2716b8+'.');try{fs[_0x3d9657(0x84)](this[_0x3d9657(0xc7)],new Date()[_0x3d9657(0xa6)]()),logger[_0x3d9657(0xe7)]('['+TAG+_0x3d9657(0xf9)+this[_0x3d9657(0xc7)]),this[_0x3d9657(0xf3)][_0x3d9657(0xf5)]=!![];}catch(_0x51450c){logger[_0x3d9657(0xd5)]('['+TAG+_0x3d9657(0xb8)+_0x51450c[_0x3d9657(0x95)]+(_0x51450c[_0x3d9657(0xd0)]?_0x35cf28[_0x3d9657(0xf6)](_0x35cf28[_0x3d9657(0xa7)],_0x51450c[_0x3d9657(0xd0)]):''));}return this['stopPolling'](),!![];}}else{let _0x307616;try{_0x307616=await this[_0x3d9657(0xaa)]['readState']();if(!_0x307616)return logger[_0x3d9657(0xc6)]('['+TAG+_0x3d9657(0xb6)),![];}catch(_0x2c741c){return logger['error']('['+TAG+_0x3d9657(0x91)+_0x2c741c[_0x3d9657(0x95)]+(_0x2c741c['stack']?_0x35cf28['ZiKmh'](_0x35cf28[_0x3d9657(0xa7)],_0x2c741c[_0x3d9657(0xd0)]):'')),![];}this['state']={...this['_getDefaultState'](),..._0x307616,'uniqueFailedTests':new Set(_0x307616[_0x3d9657(0xde)]||[])};if(this[_0x3d9657(0xf3)]['failFastActive'])return logger[_0x3d9657(0xe7)]('['+TAG+'_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.'),!![];const _0x155eaa=this[_0x3d9657(0xf3)][_0x3d9657(0xde)],_0x13cceb=_0x155eaa[_0x3d9657(0xc2)];if(_0x35cf28[_0x3d9657(0xbc)](_0x13cceb,_0x2716b8)){try{logger[_0x3d9657(0xee)]('['+TAG+'_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x13cceb+_0x3d9657(0xd7)+_0x2716b8+'.'),this['state'][_0x3d9657(0xf5)]=!![];}catch(_0x25b0e4){logger[_0x3d9657(0xd5)]('['+TAG+_0x3d9657(0xad)+_0x25b0e4[_0x3d9657(0x95)]+(_0x25b0e4[_0x3d9657(0xd0)]?_0x35cf28[_0x3d9657(0xcd)](_0x35cf28[_0x3d9657(0xa7)],_0x25b0e4[_0x3d9657(0xd0)]):''));}return!![];}}return![];}async[a119_0x2869b6(0x80)](){const _0x44e63a=a119_0x2869b6,_0x39d02e={};_0x39d02e['sEtLd']=function(_0x39aac1,_0x3f5cb9){return _0x39aac1+_0x3f5cb9;},_0x39d02e[_0x44e63a(0xa2)]='\x0aStack:\x20';const _0x4bcbc7=_0x39d02e;this[_0x44e63a(0xdc)]();if(this[_0x44e63a(0xbe)])logger['debug']('['+TAG+'_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.');else try{const _0x30014c={...this[_0x44e63a(0xf3)],'uniqueFailedTests':Array[_0x44e63a(0xe2)](this[_0x44e63a(0xf3)][_0x44e63a(0xde)]||new Set())};await this['fileHelper'][_0x44e63a(0xd2)](_0x30014c),logger['debug']('['+TAG+_0x44e63a(0xbb));}catch(_0x4797e9){logger[_0x44e63a(0xd5)]('['+TAG+'_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20'+_0x4797e9[_0x44e63a(0x95)]+(_0x4797e9[_0x44e63a(0xd0)]?_0x4bcbc7[_0x44e63a(0x9e)](_0x4bcbc7[_0x44e63a(0xa2)],_0x4797e9[_0x44e63a(0xd0)]):''));}}}module[a119_0x2869b6(0x9d)]=FailFastManager;
|
|
1
|
+
const a119_0x481a0a=a119_0x555a;(function(_0x57130a,_0x2b204b){const _0x4e4f28=a119_0x555a,_0x4f2606=_0x57130a();while(!![]){try{const _0xbaa28d=parseInt(_0x4e4f28(0xf3))/0x1+parseInt(_0x4e4f28(0xeb))/0x2*(-parseInt(_0x4e4f28(0xb0))/0x3)+parseInt(_0x4e4f28(0x10a))/0x4+-parseInt(_0x4e4f28(0x10d))/0x5*(parseInt(_0x4e4f28(0xf6))/0x6)+-parseInt(_0x4e4f28(0xe2))/0x7*(parseInt(_0x4e4f28(0xb9))/0x8)+parseInt(_0x4e4f28(0x124))/0x9+parseInt(_0x4e4f28(0xc5))/0xa;if(_0xbaa28d===_0x2b204b)break;else _0x4f2606['push'](_0x4f2606['shift']());}catch(_0x335012){_0x4f2606['push'](_0x4f2606['shift']());}}}(a119_0x5d1a,0x2b0d5));function a119_0x555a(_0x4159b0,_0x2b3dd7){const _0x5d1a78=a119_0x5d1a();return a119_0x555a=function(_0x555a22,_0x17d4a0){_0x555a22=_0x555a22-0xa9;let _0x4667f7=_0x5d1a78[_0x555a22];return _0x4667f7;},a119_0x555a(_0x4159b0,_0x2b3dd7);}const fs=require('fs'),path=require('path'),FileHelper=require(a119_0x481a0a(0xf5)),RequestUtils=require(a119_0x481a0a(0xf8)),logger=require(a119_0x481a0a(0x109))[a119_0x481a0a(0x12b)],POLLING_INTERVAL=0x2710,TAG=a119_0x481a0a(0xb3);class FailFastManager{constructor(_0xba47af,_0x2307d9,_0x3a9cea){const _0x239d8f=a119_0x481a0a,_0x2733cd={};_0x2733cd[_0x239d8f(0xbd)]=function(_0x2c23d8,_0x836f22){return _0x2c23d8+_0x836f22;},_0x2733cd[_0x239d8f(0xfe)]=_0x239d8f(0x102),_0x2733cd['EXRYO']=function(_0x53068d,_0x49f604){return _0x53068d||_0x49f604;},_0x2733cd[_0x239d8f(0xd6)]=_0x239d8f(0xfa),_0x2733cd[_0x239d8f(0xb4)]=_0x239d8f(0xe9),_0x2733cd[_0x239d8f(0xa9)]=_0x239d8f(0xe1);const _0x48582b=_0x2733cd;this['failFastConfig']=_0x48582b['EXRYO'](_0xba47af,{}),this[_0x239d8f(0xde)]=_0x2307d9,this[_0x239d8f(0xd9)]=_0x3a9cea,this['isCIMode']=!!(process[_0x239d8f(0xce)][_0x239d8f(0xd8)]&&process[_0x239d8f(0xce)]['BROWSERSTACK_NODE_INDEX']&&process[_0x239d8f(0xce)][_0x239d8f(0xb2)]);const _0x2fe654=this[_0x239d8f(0xef)][_0x239d8f(0x11c)];this['stateFilePath']=path[_0x239d8f(0xdd)](_0x2fe654,_0x48582b['qgCZG']),this[_0x239d8f(0xbb)]=path['join'](_0x2fe654,_0x48582b[_0x239d8f(0xb4)]),this[_0x239d8f(0xd3)]=path['join'](_0x2fe654,_0x48582b[_0x239d8f(0xa9)]),this['fileHelper']=new FileHelper(this['failFastConfig'],this['stateFilePath'],this[_0x239d8f(0xbb)],this['_getDefaultState']()),this[_0x239d8f(0x121)]=this[_0x239d8f(0xcb)](),this[_0x239d8f(0x10e)]=null,this[_0x239d8f(0xfc)]&&(this[_0x239d8f(0xe5)]=new Set()),this[_0x239d8f(0xdc)]()[_0x239d8f(0x106)](_0x464267=>{const _0x209139=_0x239d8f;logger[_0x209139(0x11d)]('['+TAG+_0x209139(0x12d)+_0x464267[_0x209139(0xd2)]+(_0x464267['stack']?_0x48582b['XqMOH'](_0x48582b[_0x209139(0xfe)],_0x464267['stack']):'')),this[_0x209139(0x121)]=this[_0x209139(0xcb)]();}),this[_0x239d8f(0xfc)]&&this[_0x239d8f(0x128)](),logger['debug']('['+TAG+_0x239d8f(0xf1)+this['failFastConfig'][_0x239d8f(0x110)]+_0x239d8f(0x111)+this[_0x239d8f(0xfc)]);}[a119_0x481a0a(0xcb)](){const _0x1b5e8e={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x1b5e8e;}async['_initializeStateFromFile'](){const _0x10615f=a119_0x481a0a,_0x835e38={};_0x835e38[_0x10615f(0x100)]=function(_0x5dd583,_0x18a52d){return _0x5dd583+_0x18a52d;},_0x835e38[_0x10615f(0xb1)]=_0x10615f(0x102);const _0xd1c4af=_0x835e38;if(this[_0x10615f(0xfc)])try{fs[_0x10615f(0xaf)](this[_0x10615f(0xd3)])&&(this[_0x10615f(0x121)][_0x10615f(0x120)]=!![],logger[_0x10615f(0xc6)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.'));}catch(_0x2af5f3){logger['error']('['+TAG+_0x10615f(0x11f)+_0x2af5f3[_0x10615f(0xd2)]+(_0x2af5f3[_0x10615f(0xf7)]?_0xd1c4af[_0x10615f(0x100)](_0xd1c4af[_0x10615f(0xb1)],_0x2af5f3[_0x10615f(0xf7)]):''));}else try{const _0x53fc84=await this['fileHelper'][_0x10615f(0xd1)]();if(_0x53fc84)this['state']={...this[_0x10615f(0xcb)](),..._0x53fc84,'uniqueFailedTests':new Set(_0x53fc84[_0x10615f(0xf0)]||[])},logger['debug']('['+TAG+_0x10615f(0xc8));else{logger['debug']('['+TAG+_0x10615f(0xfb));const _0x35b5ea=this['_getDefaultState'](),_0x10f0cc={..._0x35b5ea,'uniqueFailedTests':Array[_0x10615f(0x129)](_0x35b5ea[_0x10615f(0xf0)])};await this[_0x10615f(0x126)][_0x10615f(0x11e)](_0x10f0cc),this[_0x10615f(0x121)]=_0x35b5ea;}}catch(_0x19277a){logger[_0x10615f(0xc6)]('['+TAG+_0x10615f(0xac)+_0x19277a[_0x10615f(0xd2)]+(_0x19277a[_0x10615f(0xf7)]?_0xd1c4af[_0x10615f(0x100)](_0xd1c4af[_0x10615f(0xb1)],_0x19277a['stack']):'')),this[_0x10615f(0x121)]=this[_0x10615f(0xcb)]();}}async['onTestDone'](_0x8d06f8,_0x4bd05a){const _0x408883=a119_0x481a0a,_0x373108={};_0x373108['vQRgl']=function(_0x24a782,_0x26cbaa){return _0x24a782>_0x26cbaa;},_0x373108[_0x408883(0xe7)]=_0x408883(0x112),_0x373108[_0x408883(0xc2)]='passed',_0x373108['pQVRV']=function(_0x2311b8,_0x509289){return _0x2311b8+_0x509289;},_0x373108['GglFO']=_0x408883(0x102),_0x373108[_0x408883(0xcc)]=function(_0x5aac32,_0x4a5d4d){return _0x5aac32||_0x4a5d4d;};const _0x1cd8b7=_0x373108;if(this[_0x408883(0xfc)])this['state'][_0x408883(0xed)]+=0x1,_0x4bd05a&&_0x1cd8b7[_0x408883(0xab)](_0x4bd05a['length'],0x0)&&(!this[_0x408883(0xe5)]['has'](_0x8d06f8)&&(await this[_0x408883(0xcd)](_0x8d06f8),this['reportedFailuresToAPI'][_0x408883(0xc1)](_0x8d06f8)));else try{const _0x9b0908={'fullName':_0x8d06f8,'status':_0x4bd05a&&_0x1cd8b7['vQRgl'](_0x4bd05a[_0x408883(0x122)],0x0)?_0x1cd8b7[_0x408883(0xe7)]:_0x1cd8b7[_0x408883(0xc2)]},_0x3bdcaa=await this[_0x408883(0x126)][_0x408883(0xd0)](_0x9b0908);this[_0x408883(0x121)]={...this[_0x408883(0xcb)](),..._0x3bdcaa[_0x408883(0xc0)],'uniqueFailedTests':new Set(_0x3bdcaa[_0x408883(0xc0)][_0x408883(0xf0)]||[])};}catch(_0x5e3533){logger['error']('['+TAG+_0x408883(0xee)+_0x5e3533[_0x408883(0xd2)]+(_0x5e3533[_0x408883(0xf7)]?_0x1cd8b7[_0x408883(0x113)](_0x1cd8b7[_0x408883(0xdb)],_0x5e3533['stack']):''));try{const _0xe99579=await this[_0x408883(0x126)][_0x408883(0xd1)]();this[_0x408883(0x121)]={...this[_0x408883(0xcb)](),..._0x1cd8b7[_0x408883(0xcc)](_0xe99579,{}),'uniqueFailedTests':new Set(_0xe99579?_0xe99579['uniqueFailedTests']||[]:[])},logger[_0x408883(0xc6)]('['+TAG+_0x408883(0xc3));}catch(_0x5425fc){logger['error']('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0x5425fc['message']+(_0x5425fc[_0x408883(0xf7)]?_0x1cd8b7[_0x408883(0x113)](_0x1cd8b7[_0x408883(0xdb)],_0x5425fc[_0x408883(0xf7)]):'')),this[_0x408883(0x121)]=this[_0x408883(0xcb)]();}}}async[a119_0x481a0a(0xcd)](_0x1a4d3c){const _0x5a5854=a119_0x481a0a,_0x273f25={};_0x273f25['vKxIb']=function(_0x48b748,_0x5efdfe){return _0x48b748+_0x5efdfe;},_0x273f25[_0x5a5854(0xca)]=_0x5a5854(0x102);const _0x57fc74=_0x273f25;if(!this[_0x5a5854(0xfc)]||!_0x1a4d3c)return;try{logger['debug']('['+TAG+_0x5a5854(0xba)+_0x1a4d3c);const _0x20be95={};_0x20be95[_0x5a5854(0xde)]=this[_0x5a5854(0xde)],_0x20be95['projectName']=this['projectName'],_0x20be95[_0x5a5854(0xb7)]=[_0x1a4d3c],_0x20be95[_0x5a5854(0x119)]=process['env'][_0x5a5854(0xd8)],await RequestUtils[_0x5a5854(0x101)](_0x20be95);}catch(_0x1574d3){logger[_0x5a5854(0x11d)]('['+TAG+_0x5a5854(0xbf)+_0x1a4d3c+_0x5a5854(0x12c)+_0x1574d3['message']+(_0x1574d3[_0x5a5854(0xf7)]?_0x57fc74[_0x5a5854(0x125)](_0x57fc74[_0x5a5854(0xca)],_0x1574d3[_0x5a5854(0xf7)]):''));}}async[a119_0x481a0a(0x10b)](){const _0x59b5d3=a119_0x481a0a,_0x16f832={};_0x16f832[_0x59b5d3(0x12a)]=function(_0x11227e,_0x2ccd4c){return _0x11227e===_0x2ccd4c;},_0x16f832[_0x59b5d3(0xda)]=_0x59b5d3(0x104),_0x16f832[_0x59b5d3(0xbc)]=function(_0x405e96,_0x189beb){return _0x405e96+_0x189beb;},_0x16f832[_0x59b5d3(0xd4)]='\x0aStack:\x20',_0x16f832[_0x59b5d3(0x115)]=function(_0x239583,_0x4883ea){return _0x239583!==_0x4883ea;};const _0x16419e=_0x16f832;if(!this[_0x59b5d3(0xfc)])return 0x0;try{const _0x1f74f3={};_0x1f74f3[_0x59b5d3(0xde)]=this['buildName'],_0x1f74f3[_0x59b5d3(0xd9)]=this[_0x59b5d3(0xd9)],_0x1f74f3[_0x59b5d3(0x119)]=process[_0x59b5d3(0xce)][_0x59b5d3(0xd8)];const _0x55c067=await RequestUtils[_0x59b5d3(0xad)](_0x1f74f3);return logger[_0x59b5d3(0xc6)]('['+TAG+_0x59b5d3(0xe3)+_0x55c067),_0x16419e[_0x59b5d3(0x12a)](typeof _0x55c067,_0x16419e[_0x59b5d3(0xda)])?_0x55c067:0x0;}catch(_0x2b48e9){return logger['error']('['+TAG+_0x59b5d3(0x114)+_0x2b48e9[_0x59b5d3(0xd2)]+(_0x2b48e9[_0x59b5d3(0xf7)]?_0x16419e[_0x59b5d3(0xbc)](_0x16419e[_0x59b5d3(0xd4)],_0x2b48e9[_0x59b5d3(0xf7)]):'')),_0x16419e[_0x59b5d3(0x115)](this[_0x59b5d3(0x121)][_0x59b5d3(0x103)],undefined)?this[_0x59b5d3(0x121)][_0x59b5d3(0x103)]:0x0;}}async['_pollFailedTests'](){const _0x26e04f=a119_0x481a0a,_0x45d0e8={};_0x45d0e8[_0x26e04f(0xf4)]=function(_0x4ebcaa,_0x4a2f82){return _0x4ebcaa!==_0x4a2f82;},_0x45d0e8[_0x26e04f(0x10f)]=function(_0xace305,_0x384d7b){return _0xace305+_0x384d7b;},_0x45d0e8[_0x26e04f(0xf2)]=_0x26e04f(0x102);const _0x3cf730=_0x45d0e8;if(!this['isCIMode'])return;try{const _0x5bd5a9=await this[_0x26e04f(0x10b)]();_0x3cf730[_0x26e04f(0xf4)](_0x5bd5a9,this[_0x26e04f(0x121)][_0x26e04f(0x103)])&&(logger[_0x26e04f(0xc6)]('['+TAG+'_CI]\x20API\x20failed\x20count\x20updated:\x20'+_0x5bd5a9+_0x26e04f(0x116)+this[_0x26e04f(0x121)][_0x26e04f(0x103)]+')'),this['state'][_0x26e04f(0x103)]=_0x5bd5a9);}catch(_0x5a09d1){logger[_0x26e04f(0x11d)]('['+TAG+_0x26e04f(0x117)+_0x5a09d1[_0x26e04f(0xd2)]+(_0x5a09d1[_0x26e04f(0xf7)]?_0x3cf730[_0x26e04f(0x10f)](_0x3cf730[_0x26e04f(0xf2)],_0x5a09d1[_0x26e04f(0xf7)]):''));}}async[a119_0x481a0a(0x128)](){const _0x40d99b=a119_0x481a0a,_0x311142={'XqcMN':function(_0x30fc0d,_0x1382cf,_0xcd7c2c){return _0x30fc0d(_0x1382cf,_0xcd7c2c);}};this[_0x40d99b(0x10e)]&&this[_0x40d99b(0x11a)](),this['isCIMode']&&(await this['_pollFailedTests'](),this[_0x40d99b(0x10e)]=_0x311142[_0x40d99b(0xdf)](setInterval,async()=>{await this['_pollFailedTests']();},POLLING_INTERVAL),logger[_0x40d99b(0xc6)]('['+TAG+'_CI]\x20Polling\x20started\x20with\x20interval:\x20'+POLLING_INTERVAL+_0x40d99b(0xe0)));}[a119_0x481a0a(0x11a)](){const _0x167591=a119_0x481a0a,_0x34b19d={'dfLev':function(_0x178f7b,_0x59ec17){return _0x178f7b(_0x59ec17);}};this[_0x167591(0x10e)]&&(_0x34b19d['dfLev'](clearInterval,this[_0x167591(0x10e)]),this[_0x167591(0x10e)]=null,logger[_0x167591(0xc6)]('['+TAG+_0x167591(0x10c)));}async['shouldFailFast'](){const _0x5d2a03=a119_0x481a0a,_0x219416={};_0x219416[_0x5d2a03(0xc9)]=function(_0xe3b8ec,_0x59e6e0){return _0xe3b8ec===_0x59e6e0;},_0x219416[_0x5d2a03(0xe4)]=function(_0x4ad9e3,_0x31d3d9){return _0x4ad9e3===_0x31d3d9;},_0x219416[_0x5d2a03(0x123)]=function(_0x4b1e53,_0x455206){return _0x4b1e53<=_0x455206;},_0x219416['gqJaQ']=function(_0x3786d4,_0x4d1896){return _0x3786d4+_0x4d1896;},_0x219416['SJtSy']=_0x5d2a03(0x102),_0x219416[_0x5d2a03(0xcf)]=function(_0x5bd3c0,_0x5af175){return _0x5bd3c0!==_0x5af175;},_0x219416[_0x5d2a03(0x118)]=function(_0x5346e2,_0x27ca3a){return _0x5346e2>=_0x27ca3a;},_0x219416[_0x5d2a03(0xc4)]=function(_0x30af59,_0x1083f0){return _0x30af59+_0x1083f0;},_0x219416[_0x5d2a03(0xd7)]=function(_0x559b08,_0x55734e){return _0x559b08+_0x55734e;},_0x219416[_0x5d2a03(0xd5)]=function(_0x5ab4fb,_0x2ed770){return _0x5ab4fb+_0x2ed770;};const _0x4e0195=_0x219416,{failureThresholdCount:_0x12046a}=this['failFastConfig'];if(_0x4e0195[_0x5d2a03(0xc9)](_0x12046a,null)||_0x4e0195['slshd'](_0x12046a,undefined)||_0x4e0195[_0x5d2a03(0x123)](_0x12046a,0x0))return logger['debug']('['+TAG+_0x5d2a03(0xaa)),![];if(this[_0x5d2a03(0xfc)]){try{if(fs[_0x5d2a03(0xaf)](this[_0x5d2a03(0xd3)]))return logger[_0x5d2a03(0xc6)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.'),!this[_0x5d2a03(0x121)][_0x5d2a03(0x120)]&&(this[_0x5d2a03(0x121)][_0x5d2a03(0x120)]=!![]),this[_0x5d2a03(0x11a)](),!![];}catch(_0x550ba4){logger[_0x5d2a03(0x11d)]('['+TAG+_0x5d2a03(0x11f)+_0x550ba4[_0x5d2a03(0xd2)]+(_0x550ba4['stack']?_0x4e0195[_0x5d2a03(0xe6)](_0x4e0195[_0x5d2a03(0x108)],_0x550ba4['stack']):''));}const _0x13a9d4=_0x4e0195[_0x5d2a03(0xcf)](this['state']['lastAPIFailedCount'],undefined)?this['state'][_0x5d2a03(0x103)]:0x0;if(_0x4e0195[_0x5d2a03(0x118)](_0x13a9d4,_0x12046a)){logger['info']('['+TAG+_0x5d2a03(0xbe)+_0x13a9d4+_0x5d2a03(0xae)+_0x12046a+'.');try{fs['writeFileSync'](this[_0x5d2a03(0xd3)],new Date()[_0x5d2a03(0xe8)]()),logger[_0x5d2a03(0xc6)]('['+TAG+_0x5d2a03(0x107)+this[_0x5d2a03(0xd3)]),this['state'][_0x5d2a03(0x120)]=!![];}catch(_0x3dcbb7){logger[_0x5d2a03(0x11d)]('['+TAG+'_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20'+_0x3dcbb7[_0x5d2a03(0xd2)]+(_0x3dcbb7['stack']?_0x4e0195['hwmQa'](_0x4e0195[_0x5d2a03(0x108)],_0x3dcbb7[_0x5d2a03(0xf7)]):''));}return this[_0x5d2a03(0x11a)](),!![];}}else{let _0x4a8b48;try{_0x4a8b48=await this['fileHelper'][_0x5d2a03(0xd1)]();if(!_0x4a8b48)return logger[_0x5d2a03(0xec)]('['+TAG+_0x5d2a03(0xb6)),![];}catch(_0x3f2653){return logger['error']('['+TAG+_0x5d2a03(0x127)+_0x3f2653[_0x5d2a03(0xd2)]+(_0x3f2653[_0x5d2a03(0xf7)]?_0x4e0195[_0x5d2a03(0xd7)](_0x4e0195['SJtSy'],_0x3f2653[_0x5d2a03(0xf7)]):'')),![];}this['state']={...this[_0x5d2a03(0xcb)](),..._0x4a8b48,'uniqueFailedTests':new Set(_0x4a8b48[_0x5d2a03(0xf0)]||[])};if(this['state']['failFastActive'])return logger[_0x5d2a03(0xc6)]('['+TAG+'_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.'),!![];const _0x229f9f=this[_0x5d2a03(0x121)][_0x5d2a03(0xf0)],_0x251149=_0x229f9f[_0x5d2a03(0xb5)];if(_0x4e0195[_0x5d2a03(0x118)](_0x251149,_0x12046a)){try{logger[_0x5d2a03(0xff)]('['+TAG+_0x5d2a03(0xea)+_0x251149+',\x20threshold:\x20'+_0x12046a+'.'),this['state'][_0x5d2a03(0x120)]=!![];}catch(_0x2fb2fd){logger['error']('['+TAG+'_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20'+_0x2fb2fd[_0x5d2a03(0xd2)]+(_0x2fb2fd[_0x5d2a03(0xf7)]?_0x4e0195[_0x5d2a03(0xd5)](_0x4e0195[_0x5d2a03(0x108)],_0x2fb2fd[_0x5d2a03(0xf7)]):''));}return!![];}}return![];}async[a119_0x481a0a(0x105)](){const _0x423b34=a119_0x481a0a,_0x766132={};_0x766132['ZSYLH']=function(_0x1b5297,_0x2a6814){return _0x1b5297+_0x2a6814;},_0x766132[_0x423b34(0xc7)]=_0x423b34(0x102);const _0x2c5168=_0x766132;this[_0x423b34(0x11a)]();if(this[_0x423b34(0xfc)])logger[_0x423b34(0xc6)]('['+TAG+'_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.');else try{const _0x3ab175={...this[_0x423b34(0x121)],'uniqueFailedTests':Array[_0x423b34(0x129)](this['state'][_0x423b34(0xf0)]||new Set())};await this[_0x423b34(0x126)][_0x423b34(0x11e)](_0x3ab175),logger[_0x423b34(0xc6)]('['+TAG+_0x423b34(0xb8));}catch(_0x48c5ee){logger[_0x423b34(0x11d)]('['+TAG+_0x423b34(0xfd)+_0x48c5ee[_0x423b34(0xd2)]+(_0x48c5ee[_0x423b34(0xf7)]?_0x2c5168[_0x423b34(0x11b)](_0x2c5168[_0x423b34(0xc7)],_0x48c5ee[_0x423b34(0xf7)]):''));}}}function a119_0x5d1a(){const _0x262bef=[',\x20threshold:\x20','existsSync','3TZUXvT','upIAc','BROWSERSTACK_TOTAL_NODE_COUNT','FailFastManager','xBzNd','size','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','failedTests','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','532536dVENwT','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','lockFilePath','dLmuX','XqMOH','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','_CI]\x20Error\x20sending\x20failed\x20test\x20','newState','add','ISNuv','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','hwmQa','1953910uYFydt','debug','wtgyt','_Local]\x20State\x20initialized\x20from\x20file.','eVfKP','rpyux','_getDefaultState','jEely','_sendFailedTestsToAPI','env','zgwVC','recordTestResult','readState','message','failFastActiveMarkerPath','cugzU','LIstN','qgCZG','hQlHy','BROWSERSTACK_BUILD_RUN_IDENTIFIER','projectName','Bnvhg','GglFO','_initializeStateFromFile','join','buildName','XqcMN','ms.','failFast.active','7FcYhan','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','slshd','reportedFailuresToAPI','gqJaQ','PYUNS','toISOString','failFastState.lock','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','572986lsftIs','warn','totalTests','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','failFastConfig','uniqueFailedTests',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','pDpZB','38563MrFfPE','ZfHtQ','./fileHelper','451368CbBoVA','stack','./requestUtils','exports','failFastState.json','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','isCIMode','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','eAbCN','info','RAyCa','putFailedTests','\x0aStack:\x20','lastAPIFailedCount','number','cleanup','catch','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','SJtSy','../logger','73872SickFS','_fetchAPIFailedCount',']\x20Polling\x20stopped.','5OymuJg','pollingInterval','llHJz','failureThresholdCount',',\x20CI\x20Mode:\x20','failed','pQVRV','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','LKrge','\x20(was\x20','_CI]\x20Error\x20during\x20polling\x20logic:\x20','MfKYo','buildRunIdentifier','stopPolling','ZSYLH','workingDir','error','writeState','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','failFastActive','state','length','vKzHS','3169863alHMiY','vKxIb','fileHelper','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','startPolling','from','IvfQR','winstonLogger','\x20to\x20API:\x20',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','IWMkS',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','vQRgl','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','getFailedTestsCount'];a119_0x5d1a=function(){return _0x262bef;};return a119_0x5d1a();}module[a119_0x481a0a(0xf9)]=FailFastManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a120_0xbeb615=a120_0x5842;(function(_0x7332d2,_0x5bf1d2){const _0x28c7dc=a120_0x5842,_0x306fa1=_0x7332d2();while(!![]){try{const _0x1d4482=parseInt(_0x28c7dc(0xc3))/0x1+parseInt(_0x28c7dc(0xe5))/0x2+parseInt(_0x28c7dc(0xcd))/0x3*(-parseInt(_0x28c7dc(0xf2))/0x4)+-parseInt(_0x28c7dc(0xee))/0x5*(-parseInt(_0x28c7dc(0xd4))/0x6)+parseInt(_0x28c7dc(0xec))/0x7*(-parseInt(_0x28c7dc(0xc9))/0x8)+parseInt(_0x28c7dc(0xea))/0x9+-parseInt(_0x28c7dc(0xcc))/0xa;if(_0x1d4482===_0x5bf1d2)break;else _0x306fa1['push'](_0x306fa1['shift']());}catch(_0x583fcc){_0x306fa1['push'](_0x306fa1['shift']());}}}(a120_0x7403,0x5f2bb));function a120_0x7403(){const _0x3ed633=['PXTWL','SzQrw',']\x20Error\x20releasing\x20lock:\x20','status','error','dzjHq','isArray','245264XhxXoP','lockFilePath','isNewFailure','uniqueFailedTests','openSync','5899644nHLSGz','iterator','2631692toxxNS','parse','3580AzTVCs',']\x20Error\x20creating\x20state\x20file:\x20','winstonLogger','has','268FSGLwv','EEXIST','writeState','stateFilePath','kPKRy','function','741520ShOHLy','writeFileSync','message','acquireLock','totalTests','OFTdz','8VENZmw','readState','releaseLock','8839370rlDalc','23640OqpqSj','closeSync','newState','defaultState','warn','existsSync',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','5514hTUwts',']\x20Error\x20reading\x20state\x20file:\x20','OQZkt','ljIFt','lastAPIFailedCount','stack',']\x20Error\x20writing\x20state\x20file:\x20','from','fullName','readFileSync'];a120_0x7403=function(){return _0x3ed633;};return a120_0x7403();}function a120_0x5842(_0x2e1e6f,_0x12c932){const _0x74037e=a120_0x7403();return a120_0x5842=function(_0x5842fa,_0x43b2b7){_0x5842fa=_0x5842fa-0xbe;let _0xc4a8eb=_0x74037e[_0x5842fa];return _0xc4a8eb;},a120_0x5842(_0x2e1e6f,_0x12c932);}const fs=require('fs'),logger=require('../logger')[a120_0xbeb615(0xf0)],TAG='FailFastFileHelper';class FileHelper{constructor(_0x319722,_0x29e6fc,_0x204caa,_0x2cfe16){const _0x54f517=a120_0xbeb615,_0x13492f={};_0x13492f[_0x54f517(0xde)]='2|4|0|1|3',_0x13492f[_0x54f517(0xdf)]='utf8';const _0x45e949=_0x13492f,_0x1e3168=_0x45e949['PXTWL']['split']('|');let _0x49529d=0x0;while(!![]){switch(_0x1e3168[_0x49529d++]){case'0':this[_0x54f517(0xe6)]=_0x204caa;continue;case'1':this[_0x54f517(0xd0)]=_0x2cfe16;continue;case'2':this['failFastConfig']=_0x319722;continue;case'3':if(!fs[_0x54f517(0xd2)](this[_0x54f517(0xc0)]))try{fs[_0x54f517(0xc4)](this[_0x54f517(0xc0)],'{}',_0x45e949[_0x54f517(0xdf)]);}catch(_0x29fe02){logger[_0x54f517(0xe2)]('['+TAG+_0x54f517(0xef)+_0x29fe02[_0x54f517(0xc5)]+'\x20'+_0x29fe02[_0x54f517(0xd9)]);}continue;case'4':this[_0x54f517(0xc0)]=_0x29e6fc;continue;}break;}}async[a120_0xbeb615(0xc6)](){const _0x59399c=a120_0xbeb615,_0xae9490={};_0xae9490[_0x59399c(0xc8)]=function(_0xb31e0c,_0x3842f7){return _0xb31e0c===_0x3842f7;},_0xae9490[_0x59399c(0xe3)]=_0x59399c(0xbe);const _0x473f36=_0xae9490;let _0x4bc382;try{return _0x4bc382=fs[_0x59399c(0xe9)](this[_0x59399c(0xe6)],'wx'),_0x4bc382;}catch(_0x56a41b){if(_0x473f36['OFTdz'](_0x56a41b['code'],_0x473f36[_0x59399c(0xe3)]))return null;throw _0x56a41b;}}async[a120_0xbeb615(0xcb)](_0x1ecab9){const _0x47d16e=a120_0xbeb615;if(_0x1ecab9)try{fs[_0x47d16e(0xce)](_0x1ecab9),fs['unlinkSync'](this[_0x47d16e(0xe6)]);}catch(_0x4c91be){logger[_0x47d16e(0xe2)]('['+TAG+_0x47d16e(0xe0)+_0x4c91be[_0x47d16e(0xc5)]+'\x20'+_0x4c91be[_0x47d16e(0xd9)]);}}[a120_0xbeb615(0xca)](){const _0x463d22=a120_0xbeb615,_0x4dce02={};_0x4dce02[_0x463d22(0xd7)]='utf8';const _0x4fa7ff=_0x4dce02;try{const _0x165de6=fs[_0x463d22(0xdd)](this[_0x463d22(0xc0)],_0x4fa7ff[_0x463d22(0xd7)]);return JSON[_0x463d22(0xed)](_0x165de6);}catch(_0x98453c){return logger[_0x463d22(0xe2)]('['+TAG+_0x463d22(0xd5)+_0x98453c[_0x463d22(0xc5)]+'\x20'+_0x98453c[_0x463d22(0xd9)]),null;}}async[a120_0xbeb615(0xbf)](_0x45b6bc){const _0x10c4d7=a120_0xbeb615,_0x1ebcc6={..._0x45b6bc,'uniqueFailedTests':Array[_0x10c4d7(0xe4)](_0x45b6bc[_0x10c4d7(0xe8)])?_0x45b6bc[_0x10c4d7(0xe8)]:Array[_0x10c4d7(0xdb)](_0x45b6bc['uniqueFailedTests']||[])};try{fs[_0x10c4d7(0xc4)](this[_0x10c4d7(0xc0)],JSON['stringify'](_0x1ebcc6,null,0x2));}catch(_0x2f1a6c){logger['error']('['+TAG+_0x10c4d7(0xda)+_0x2f1a6c[_0x10c4d7(0xc5)]+'\x20'+_0x2f1a6c[_0x10c4d7(0xd9)]);throw _0x2f1a6c;}}async['recordTestResult'](_0x2d572e,_0x4fed6d){const _0x3a719c=a120_0xbeb615,_0x2533d9={};_0x2533d9[_0x3a719c(0xc1)]=function(_0x253eec,_0x2895af){return _0x253eec!==_0x2895af;},_0x2533d9['mvRxZ']=_0x3a719c(0xc2),_0x2533d9[_0x3a719c(0xd6)]=function(_0x1d454f,_0x2d53d5){return _0x1d454f===_0x2d53d5;},_0x2533d9['PtWdZ']='failed';const _0x3a744b=_0x2533d9,_0x14d3a7=await this[_0x3a719c(0xc6)]();if(!_0x14d3a7)return logger[_0x3a719c(0xd1)]('['+TAG+_0x3a719c(0xd3)),{'newState':this['readState']()||this[_0x3a719c(0xd0)],'isNewFailure':![]};try{let _0x598ea7=this[_0x3a719c(0xca)]();!_0x598ea7&&(_0x598ea7=JSON[_0x3a719c(0xed)](JSON['stringify'](this['defaultState'])));if(!_0x598ea7[_0x3a719c(0xe8)]||_0x3a744b[_0x3a719c(0xc1)](typeof _0x598ea7[_0x3a719c(0xe8)][Symbol[_0x3a719c(0xeb)]],_0x3a744b['mvRxZ']))_0x598ea7[_0x3a719c(0xe8)]=new Set();else Array[_0x3a719c(0xe4)](_0x598ea7[_0x3a719c(0xe8)])&&(_0x598ea7[_0x3a719c(0xe8)]=new Set(_0x598ea7[_0x3a719c(0xe8)]));_0x598ea7[_0x3a719c(0xc7)]=_0x4fed6d;let _0x46f44c=![];_0x3a744b['OQZkt'](_0x2d572e[_0x3a719c(0xe1)],_0x3a744b['PtWdZ'])&&(_0x598ea7['failedTests']+=0x1,!_0x598ea7[_0x3a719c(0xe8)][_0x3a719c(0xf1)](_0x2d572e[_0x3a719c(0xdc)])&&(_0x598ea7[_0x3a719c(0xe8)]['add'](_0x2d572e[_0x3a719c(0xdc)]),_0x46f44c=!![]));await this[_0x3a719c(0xbf)](_0x598ea7);const _0x39d2c0={};return _0x39d2c0[_0x3a719c(0xcf)]=_0x598ea7,_0x39d2c0[_0x3a719c(0xe7)]=_0x46f44c,_0x39d2c0;}finally{await this[_0x3a719c(0xcb)](_0x14d3a7);}}async['updateAPIFailedCount'](_0x4fdfed){const _0x159373=a120_0xbeb615,_0x11ded6=await this[_0x159373(0xc6)]();if(!_0x11ded6)return logger['warn']('['+TAG+']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.'),this['readState']()||this[_0x159373(0xd0)];try{let _0x3329d2=this['readState']();return!_0x3329d2&&(_0x3329d2=JSON[_0x159373(0xed)](JSON['stringify'](this['defaultState']))),_0x3329d2[_0x159373(0xd8)]=_0x4fdfed,await this[_0x159373(0xbf)](_0x3329d2),_0x3329d2;}finally{await this[_0x159373(0xcb)](_0x11ded6);}}}module['exports']=FileHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a121_0x159f5f=a121_0x1962;(function(_0x59c1fe,_0x3e3b93){const _0x434adc=a121_0x1962,_0x463d4c=_0x59c1fe();while(!![]){try{const _0x40707e=-parseInt(_0x434adc(0x89))/0x1+-parseInt(_0x434adc(0x9f))/0x2*(parseInt(_0x434adc(0x92))/0x3)+-parseInt(_0x434adc(0x7f))/0x4*(parseInt(_0x434adc(0xad))/0x5)+parseInt(_0x434adc(0x84))/0x6*(parseInt(_0x434adc(0x9d))/0x7)+parseInt(_0x434adc(0xae))/0x8*(parseInt(_0x434adc(0xb3))/0x9)+-parseInt(_0x434adc(0xaf))/0xa*(parseInt(_0x434adc(0x76))/0xb)+-parseInt(_0x434adc(0x74))/0xc*(-parseInt(_0x434adc(0x90))/0xd);if(_0x40707e===_0x3e3b93)break;else _0x463d4c['push'](_0x463d4c['shift']());}catch(_0x26962a){_0x463d4c['push'](_0x463d4c['shift']());}}}(a121_0x1e7f,0x1c6a1));const os=require('os'),path=require(a121_0x159f5f(0x86)),fs=require('fs'),logger=require(a121_0x159f5f(0xa9))[a121_0x159f5f(0x7e)],RETRY_TESTS_ON_FAILURE=a121_0x159f5f(0x77),ABORT_BUILD_ON_FAILURE=a121_0x159f5f(0x8d),RUN_PREVIOUSLY_FAILED_FIRST=a121_0x159f5f(0x8b),RERUN_PREVIOUSLY_FAILED=a121_0x159f5f(0x82),SKIP_FLAKY_AND_FAILED=a121_0x159f5f(0x8f),ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set([a121_0x159f5f(0xa8)]);function a121_0x1962(_0x4a1211,_0x130ffe){const _0x1e7f89=a121_0x1e7f();return a121_0x1962=function(_0x19629e,_0x58edfe){_0x19629e=_0x19629e-0x73;let _0x324800=_0x1e7f89[_0x19629e];return _0x324800;},a121_0x1962(_0x4a1211,_0x130ffe);}class TestOrdering{constructor(){const _0x47ef54=a121_0x159f5f;this[_0x47ef54(0x8a)]=![],this[_0x47ef54(0x97)]=null;}['enable'](_0x3a0b6b){const _0x355601=a121_0x159f5f;this['enabled']=!![],this[_0x355601(0x97)]=_0x3a0b6b;}[a121_0x159f5f(0x96)](){const _0x582325=a121_0x159f5f;this[_0x582325(0x8a)]=![],this[_0x582325(0x97)]=null;}['getEnabled'](){const _0x10a11e=a121_0x159f5f;return this[_0x10a11e(0x8a)];}[a121_0x159f5f(0x99)](){const _0x22846b=a121_0x159f5f;return this[_0x22846b(0x97)];}}class OrchestrationUtils{static [a121_0x159f5f(0x79)]=null;constructor(_0xce4932){const _0x52582d=a121_0x159f5f,_0x141470={};_0x141470[_0x52582d(0x94)]=function(_0xe23040,_0x18c299){return _0xe23040||_0x18c299;};const _0x4ab48c=_0x141470;this[_0x52582d(0x8b)]=![],this[_0x52582d(0x82)]=![],this[_0x52582d(0x7d)]=![],this[_0x52582d(0x7a)]=new TestOrdering(),this[_0x52582d(0x9a)]=_0x4ab48c['gugyr'](_0xce4932,{});const _0x1dede9=_0xce4932&&_0xce4932[_0x52582d(0xa0)]||{};this[_0x52582d(0xa6)](_0x1dede9[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x52582d(0x88)](_0x1dede9[RERUN_PREVIOUSLY_FAILED]||![]),this['_setSkipFlakyAndFailed'](_0x1dede9[SKIP_FLAKY_AND_FAILED]||![]);}static[a121_0x159f5f(0x7b)](_0x1e0e71){const _0x2b1e4e=a121_0x159f5f;return!OrchestrationUtils[_0x2b1e4e(0x79)]&&_0x1e0e71&&(OrchestrationUtils[_0x2b1e4e(0x79)]=new OrchestrationUtils(_0x1e0e71)),OrchestrationUtils[_0x2b1e4e(0x79)];}[a121_0x159f5f(0x9e)](){const _0x449a6b=a121_0x159f5f,_0xefdf3f=(this[_0x449a6b(0x9a)][_0x449a6b(0xa0)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0xefdf3f[_0x449a6b(0x8a)];}[a121_0x159f5f(0x81)](){const _0x496bf0=a121_0x159f5f,_0xaf5bd9=(this[_0x496bf0(0x9a)][_0x496bf0(0xa0)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x45fab3=0x0;return this[_0x496bf0(0x9e)](this[_0x496bf0(0x9a)])&&(_0x45fab3=_0xaf5bd9[_0x496bf0(0xab)]||0x1),_0x45fab3;}[a121_0x159f5f(0xb1)](){const _0x242b82=a121_0x159f5f,_0x4c47bf=this[_0x242b82(0x9a)][_0x242b82(0xa0)]||{},_0x32aa01={};for(const _0x3811c6 in _0x4c47bf){ALLOWED_ORCHESTRATION_KEYS['has'](_0x3811c6)&&(_0x32aa01[_0x3811c6]=_0x4c47bf[_0x3811c6]);}return _0x32aa01;}['checkAbortBuildFileExists'](){const _0x11e961=a121_0x159f5f,_0x1426b1=process[_0x11e961(0x7c)][_0x11e961(0x9b)],_0x434cf6=path[_0x11e961(0x8c)](os[_0x11e961(0xa5)](),_0x11e961(0xaa)+_0x1426b1);return fs[_0x11e961(0x78)](_0x434cf6);}[a121_0x159f5f(0xa7)](_0x4cea0b){const _0x27b8b3=a121_0x159f5f,_0x183319=process[_0x27b8b3(0x7c)][_0x27b8b3(0x9b)],_0x3c6bb4=path['join'](os[_0x27b8b3(0xa5)](),'failed_tests_'+_0x183319+_0x27b8b3(0x8e));fs[_0x27b8b3(0x91)](_0x3c6bb4,_0x4cea0b+'\x0a');}[a121_0x159f5f(0x73)](_0x34356e){const _0x2e0a26=a121_0x159f5f,_0x12cb1d={};_0x12cb1d[_0x2e0a26(0x98)]=function(_0x19ec13,_0x1cf26d){return _0x19ec13||_0x1cf26d;};const _0x100449=_0x12cb1d;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x2e0a26(0x93)](_0x100449[_0x2e0a26(0x98)](_0x34356e,'')['toLowerCase']());}[a121_0x159f5f(0xb4)](){const _0x5233d3=a121_0x159f5f,_0xcb483e=(this['config'][_0x5233d3(0xa0)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0xcb483e[_0x5233d3(0x8a)];}[a121_0x159f5f(0x9c)](){const _0x15e1fb=a121_0x159f5f,_0x43ec29=(this['config'][_0x15e1fb(0xa0)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x43ec29[_0x15e1fb(0xa3)]||0x5;;}[a121_0x159f5f(0x75)](){const _0x397ce3=a121_0x159f5f;return this[_0x397ce3(0x8b)];}[a121_0x159f5f(0xa6)](_0x214a40){this['runPreviouslyFailedFirst']=!!_0x214a40,this['_setTestOrdering']();}[a121_0x159f5f(0x87)](){const _0x11f16d=a121_0x159f5f;return this[_0x11f16d(0x82)];}[a121_0x159f5f(0x88)](_0x2cb9e2){const _0x3f88fb=a121_0x159f5f;this['rerunPreviouslyFailed']=!!_0x2cb9e2,this[_0x3f88fb(0x83)]();}[a121_0x159f5f(0x80)](){const _0x2ff205=a121_0x159f5f;return this[_0x2ff205(0x7d)];}['_setSkipFlakyAndFailed'](_0x236f5e){const _0x4d1848=a121_0x159f5f;this[_0x4d1848(0x7d)]=!!_0x236f5e,this['_setTestOrdering']();}[a121_0x159f5f(0x83)](){const _0x575439=a121_0x159f5f;if(this[_0x575439(0x8b)])this['rerunPreviouslyFailed']=![],this['skipFlakyAndFailed']=![],this[_0x575439(0x7a)]['enable'](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x575439(0x82)])this[_0x575439(0x8b)]=![],this['skipFlakyAndFailed']=![],this[_0x575439(0x7a)][_0x575439(0xac)](RERUN_PREVIOUSLY_FAILED);else this[_0x575439(0x7d)]?(this['runPreviouslyFailedFirst']=![],this['rerunPreviouslyFailed']=![],this[_0x575439(0x7a)][_0x575439(0xac)](SKIP_FLAKY_AND_FAILED)):this[_0x575439(0x7a)][_0x575439(0x96)]();}}[a121_0x159f5f(0xa2)](){const _0xac8ced=a121_0x159f5f;return this['testOrdering'][_0xac8ced(0xb2)]();}['getTestOrderingName'](){const _0x14ccce=a121_0x159f5f;if(this[_0x14ccce(0x7a)][_0x14ccce(0xb2)]())return this['testOrdering'][_0x14ccce(0x99)]();return null;}['getBuildStartData'](){const _0x1a227a=a121_0x159f5f,_0x5e6a1a={};return _0x5e6a1a[_0x1a227a(0xb0)]={'enabled':this['getRerunPreviouslyFailed']()},_0x5e6a1a['run_previously_failed_first']={'enabled':this['getRunPreviouslyFailedFirst']()},_0x5e6a1a[_0x1a227a(0x85)]={'enabled':this[_0x1a227a(0x80)]()},this[_0x1a227a(0x9e)]()&&(_0x5e6a1a[_0x1a227a(0xa4)]={'enabled':!![],'max_retries':this[_0x1a227a(0x81)]()}),this[_0x1a227a(0xb4)]()&&(_0x5e6a1a[_0x1a227a(0x95)]={'enabled':!![],'max_failures':this[_0x1a227a(0x9c)]()}),_0x5e6a1a;}}function a121_0x1e7f(){const _0x20cd99=['1232066pDhfci','retryTestsOnFailure','existsSync','_instance','testOrdering','getInstance','env','skipFlakyAndFailed','winstonLogger','28GsbDWe','getSkipFlakyAndFailed','getRetryCount','rerunPreviouslyFailed','_setTestOrdering','306258hlmtBg','skip_failing_and_flaky','path','getRerunPreviouslyFailed','_setRerunPreviouslyFailed','72631VOZzfz','enabled','runPreviouslyFailedFirst','join','abortBuildOnFailure','.txt','skipFlakyandFailed','161902idQNCT','appendFileSync','3Lolejl','has','gugyr','abort_build_on_failure','disable','name','AeXUM','getName','config','BROWSERSTACK_TESTHUB_UUID','getFailureThreshold','7QIQJkR','isRetryEnabled','135112IZXLZK','testOrchestrationOptions','exports','testOrderingEnabled','maxFailures','retry_tests_on_failure','tmpdir','_setRunPreviouslyFailedFirst','writeFailureToFile','jest','../logger','abort_build_','maxRetries','enable','116235iAxtso','44680AiPpJN','20hgPrgM','rerun_previously_failed','getOrchestrationData','getEnabled','252ZMlbOU','isAbortBuildOnFailureEnabled','isAbortBuildOnFailureSupported','420vbxHsu','getRunPreviouslyFailedFirst'];a121_0x1e7f=function(){return _0x20cd99;};return a121_0x1e7f();}module[a121_0x159f5f(0xa1)]=OrchestrationUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a122_0x140bd1=a122_0x3f5c;(function(_0x2b1a75,_0x3f24b0){const _0x3929c3=a122_0x3f5c,_0x17adbf=_0x2b1a75();while(!![]){try{const _0x42aee3=-parseInt(_0x3929c3(0x13e))/0x1*(-parseInt(_0x3929c3(0x170))/0x2)+-parseInt(_0x3929c3(0x185))/0x3+parseInt(_0x3929c3(0x187))/0x4*(-parseInt(_0x3929c3(0x175))/0x5)+-parseInt(_0x3929c3(0x17c))/0x6*(parseInt(_0x3929c3(0x161))/0x7)+-parseInt(_0x3929c3(0x17d))/0x8+-parseInt(_0x3929c3(0x178))/0x9+parseInt(_0x3929c3(0x159))/0xa*(parseInt(_0x3929c3(0x145))/0xb);if(_0x42aee3===_0x3f24b0)break;else _0x17adbf['push'](_0x17adbf['shift']());}catch(_0x3ac6c6){_0x17adbf['push'](_0x17adbf['shift']());}}}(a122_0x5974,0xde64f));function a122_0x5974(){const _0x5ddcaa=['JGmWL','IgtZT','body','31589338dQpwZv','winstonLogger',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','eOTlm','stack','status','data',']\x20Error\x20in\x20getFailedTestsCount:\x20','rOzIm','kjXNo','undefined','agLzw','kinDJ','putFailedTests',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','getSplitFiles','stringify','write','https','\x20with\x20headers:\x20','20DzoQGe',']\x20Sending\x20GET\x20to\x20','message','getFailedTestsCount','inpeB','dAsdY','end','jTRoC','3605lSNjjW','GzPZa','GET','BROWSERSTACK_TESTHUB_JWT','XkNiO','Test\x20added','_request','LdQqU',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','kgoxM','url',']\x20Request\x20failed\x20for\x20','TjmOi','BkwiF','CHiyW','23398ARCaSo','mbKNj',',\x20buildRunIdentifier=','error','PUT','90ufsRzI','hMrRy','postSplitFiles','9498978ecLlAh','loBRT','&projectName=','\x20and\x20data:\x20','6816jZNEjx','14121888PoYCEV','RequestUtils','&buildRunIdentifier=',',\x20status:\x20','\x20-\x20','./constants','../logger','request','3973734JyhNMl','\x20request\x20to\x20','113724txDcDZ','BsoVb','MOMsy','debug',']\x20Error\x20in\x20putFailedTests:\x20',']\x20Sending\x20','fZHYR','AlcMc','env','wnMqC','failedTestsCount','headers','35nhhpqW','vVfZy','eDVYa','esOty'];a122_0x5974=function(){return _0x5ddcaa;};return a122_0x5974();}const https=require(a122_0x140bd1(0x157)),{URL}=require(a122_0x140bd1(0x16b)),logger=require(a122_0x140bd1(0x183))[a122_0x140bd1(0x146)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a122_0x140bd1(0x182)),TAG=a122_0x140bd1(0x17e);class RequestUtils{static async['_request'](_0x3bfac2,_0x5df3e5,_0x50e1fb=null){const _0x1191f9=a122_0x140bd1,_0xba537f={'kinDJ':function(_0xc5344,_0x22bce8){return _0xc5344(_0x22bce8);},'loBRT':function(_0x5bea4d,_0x13b3ee){return _0x5bea4d(_0x13b3ee);},'inpeB':_0x1191f9(0x14b),'jTRoC':_0x1191f9(0x15f),'iDpeG':_0x1191f9(0x173),'dAsdY':function(_0x104352,_0x14103a){return _0x104352===_0x14103a;},'vVfZy':'POST','BkwiF':function(_0x198f6f,_0x2338ee){return _0x198f6f===_0x2338ee;},'fZHYR':'PUT','esOty':'application/json','rOzIm':function(_0x32c10a,_0x400b31){return _0x32c10a+_0x400b31;}},_0xa7af72=process[_0x1191f9(0x18f)][_0x1191f9(0x164)]||'',_0x2ed1d3={};_0x2ed1d3['Authorization']='Bearer\x20'+_0xa7af72,_0x2ed1d3['Content-Type']=_0xba537f[_0x1191f9(0x141)];const _0x1360b5=_0x2ed1d3,{hostname:_0x3cca16,pathname:_0x59f782,search:_0x37283c}=new URL(_0x5df3e5),_0x46063f={'hostname':_0x3cca16,'path':_0xba537f[_0x1191f9(0x14d)](_0x59f782,_0x37283c),'method':_0x3bfac2,'headers':_0x1360b5};return logger[_0x1191f9(0x18a)]('['+TAG+_0x1191f9(0x18c)+_0x3bfac2+_0x1191f9(0x186)+_0x5df3e5+_0x1191f9(0x158)+JSON[_0x1191f9(0x155)](_0x1360b5)+_0x1191f9(0x17b)+JSON['stringify'](_0x50e1fb)+'\x20and\x20token:\x20'+_0xa7af72),new Promise((_0x473caf,_0x56b648)=>{const _0x42b651=_0x1191f9,_0x476a81={'IpxPp':function(_0x397a35,_0xe0b731){const _0x415698=a122_0x3f5c;return _0xba537f[_0x415698(0x179)](_0x397a35,_0xe0b731);},'XkNiO':_0xba537f[_0x42b651(0x15d)],'eDVYa':_0xba537f[_0x42b651(0x160)]},_0x4b3d7d=https[_0x42b651(0x184)](_0x46063f,_0x5a49ba=>{const _0x4c70e8=_0x42b651,_0x51120c={'TjmOi':function(_0x4faafe,_0x10aadc){return _0x476a81['IpxPp'](_0x4faafe,_0x10aadc);},'CHiyW':function(_0x46ee56,_0x1fd369){return _0x476a81['IpxPp'](_0x46ee56,_0x1fd369);}};let _0x4218e4='';_0x5a49ba['on'](_0x476a81[_0x4c70e8(0x165)],_0x1425d3=>{_0x4218e4+=_0x1425d3;}),_0x5a49ba['on'](_0x476a81[_0x4c70e8(0x140)],()=>{const _0x15808a=_0x4c70e8;try{const _0xe520a=_0x4218e4?JSON['parse'](_0x4218e4):{},_0x851a2f={};_0x851a2f[_0x15808a(0x14a)]=_0x5a49ba['statusCode'],_0x851a2f[_0x15808a(0x144)]=_0xe520a,_0x851a2f['headers']=_0x5a49ba[_0x15808a(0x13d)],_0x51120c[_0x15808a(0x16d)](_0x473caf,_0x851a2f);}catch(_0x4ccc8d){logger[_0x15808a(0x173)]('['+TAG+']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x4218e4+_0x15808a(0x181)+_0x4ccc8d[_0x15808a(0x15b)]+'\x20'+_0x4ccc8d[_0x15808a(0x149)]),_0x51120c[_0x15808a(0x16f)](_0x56b648,new Error('Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x4ccc8d['message']));}});});_0x4b3d7d['on'](_0xba537f['iDpeG'],_0x55b707=>{const _0xc5bcc2=_0x42b651;logger[_0xc5bcc2(0x173)]('['+TAG+_0xc5bcc2(0x16c)+_0x3bfac2+'\x20'+_0x5df3e5+':\x20'+_0x55b707[_0xc5bcc2(0x15b)]+'\x20'+_0x55b707[_0xc5bcc2(0x149)]),_0xba537f[_0xc5bcc2(0x151)](_0x56b648,_0x55b707);}),_0x50e1fb&&(_0xba537f[_0x42b651(0x15e)](_0x3bfac2,_0xba537f[_0x42b651(0x13f)])||_0xba537f[_0x42b651(0x16e)](_0x3bfac2,_0xba537f[_0x42b651(0x18d)]))&&_0x4b3d7d[_0x42b651(0x156)](JSON[_0x42b651(0x155)](_0x50e1fb)),_0x4b3d7d['end']();});}static async[a122_0x140bd1(0x177)](_0x1db5b0){const _0x28718b=a122_0x140bd1,_0x522f83={};_0x522f83[_0x28718b(0x148)]='POST',_0x522f83[_0x28718b(0x142)]=function(_0x16d9c6,_0x86eb92){return _0x16d9c6===_0x86eb92;};const _0x3a8e81=_0x522f83,_0x2bc47c=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x4ee663=await this[_0x28718b(0x167)](_0x3a8e81[_0x28718b(0x148)],_0x2bc47c,_0x1db5b0);return _0x3a8e81[_0x28718b(0x142)](_0x4ee663[_0x28718b(0x14a)],0xc8)?logger[_0x28718b(0x18a)]('['+TAG+_0x28718b(0x147)+_0x2bc47c):logger[_0x28718b(0x173)]('['+TAG+_0x28718b(0x169)+_0x2bc47c+':\x20'+JSON[_0x28718b(0x155)](_0x4ee663[_0x28718b(0x144)])+_0x28718b(0x180)+_0x4ee663['status']),_0x4ee663;}catch(_0x1a15e){logger['error']('['+TAG+_0x28718b(0x18b)+_0x1a15e[_0x28718b(0x15b)]+'\x20'+_0x1a15e[_0x28718b(0x149)]);const _0x3e4d4e={};_0x3e4d4e[_0x28718b(0x15b)]=_0x1a15e[_0x28718b(0x15b)];const _0x2f65d7={};return _0x2f65d7[_0x28718b(0x14a)]=0x1f4,_0x2f65d7[_0x28718b(0x144)]=_0x3e4d4e,_0x2f65d7;}}static async[a122_0x140bd1(0x154)](_0xe287d0){const _0x507cc1=a122_0x140bd1,_0x543520={};_0x543520[_0x507cc1(0x188)]=_0x507cc1(0x163),_0x543520[_0x507cc1(0x189)]=function(_0x41f3c3,_0x51b636){return _0x41f3c3===_0x51b636;};const _0x1e9ebb=_0x543520;try{const _0x2f45bd=await this[_0x507cc1(0x167)](_0x1e9ebb[_0x507cc1(0x188)],_0xe287d0);if(_0x1e9ebb[_0x507cc1(0x189)](_0x2f45bd[_0x507cc1(0x14a)],0xc8))return _0x2f45bd[_0x507cc1(0x144)];return{};}catch(_0xdb4eb4){return logger['error']('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0xdb4eb4['message']+'\x20'+_0xdb4eb4[_0x507cc1(0x149)]),{};}}static async[a122_0x140bd1(0x152)](_0x5cefda){const _0x2310fe=a122_0x140bd1,_0x318719={};_0x318719[_0x2310fe(0x143)]=_0x2310fe(0x174),_0x318719[_0x2310fe(0x171)]=function(_0x2972d4,_0x290096){return _0x2972d4===_0x290096;},_0x318719['hMrRy']=function(_0x53fed3,_0x30d57f){return _0x53fed3===_0x30d57f;},_0x318719[_0x2310fe(0x18e)]=_0x2310fe(0x166);const _0x3c66e5=_0x318719,_0x37a5cb=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x4008b0=await this[_0x2310fe(0x167)](_0x3c66e5['IgtZT'],_0x37a5cb,_0x5cefda);if(_0x3c66e5[_0x2310fe(0x171)](_0x4008b0[_0x2310fe(0x14a)],0xc8)&&_0x4008b0[_0x2310fe(0x144)]&&_0x3c66e5[_0x2310fe(0x176)](_0x4008b0[_0x2310fe(0x144)][_0x2310fe(0x15b)],_0x3c66e5['AlcMc']))return!![];return![];}catch(_0x2a51b0){logger[_0x2310fe(0x173)]('['+TAG+_0x2310fe(0x18b)+_0x2a51b0['message']+'\x20'+_0x2a51b0['stack']);const _0x43a90a={};_0x43a90a[_0x2310fe(0x15b)]=_0x2a51b0[_0x2310fe(0x15b)];const _0x8049ac={};return _0x8049ac[_0x2310fe(0x14a)]=0x1f4,_0x8049ac[_0x2310fe(0x144)]=_0x43a90a,_0x8049ac;}}static async[a122_0x140bd1(0x15c)](_0x259bcf){const _0x398282=a122_0x140bd1,_0x3c1b95={'kjXNo':function(_0x5471ce,_0x284dd4){return _0x5471ce||_0x284dd4;},'agLzw':'Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','LdQqU':function(_0xe182c4,_0x769c30){return _0xe182c4(_0x769c30);},'qGwCV':_0x398282(0x163),'GzPZa':function(_0x37a445,_0x14dfd3){return _0x37a445===_0x14dfd3;},'kgoxM':function(_0x148a55,_0xa93eea){return _0x148a55!==_0xa93eea;},'wnMqC':_0x398282(0x14f)},{buildName:_0x51fa3f,buildRunIdentifier:_0x131e91,projectName:_0x31d257}=_0x259bcf;if(_0x3c1b95[_0x398282(0x14e)](!_0x51fa3f,!_0x131e91)||!_0x31d257){logger[_0x398282(0x173)]('['+TAG+_0x398282(0x153)+_0x51fa3f+_0x398282(0x172)+_0x131e91+',\x20projectName='+_0x31d257);const _0x5e02ce={};_0x5e02ce[_0x398282(0x15b)]=_0x3c1b95[_0x398282(0x150)];const _0x3df6a6={};return _0x3df6a6['status']=0x190,_0x3df6a6[_0x398282(0x144)]=_0x5e02ce,_0x3df6a6;}const _0x4f0573='?buildName='+_0x3c1b95[_0x398282(0x168)](encodeURIComponent,_0x51fa3f)+_0x398282(0x17f)+_0x3c1b95[_0x398282(0x168)](encodeURIComponent,_0x131e91)+_0x398282(0x17a)+_0x3c1b95[_0x398282(0x168)](encodeURIComponent,_0x31d257),_0x63c9e2=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x4f0573;try{logger['debug']('['+TAG+_0x398282(0x15a)+_0x63c9e2);let _0x528620=0x0;const _0x4d3058=await this[_0x398282(0x167)](_0x3c1b95['qGwCV'],_0x63c9e2);return _0x3c1b95[_0x398282(0x162)](_0x4d3058[_0x398282(0x14a)],0xc8)&&_0x4d3058[_0x398282(0x144)]&&_0x3c1b95[_0x398282(0x16a)](typeof _0x4d3058[_0x398282(0x144)][_0x398282(0x191)],_0x3c1b95[_0x398282(0x190)])&&(_0x528620=_0x3c1b95[_0x398282(0x168)](Number,_0x4d3058[_0x398282(0x144)]['failedTestsCount'])),_0x528620;}catch(_0x30eda4){logger[_0x398282(0x173)]('['+TAG+_0x398282(0x14c)+_0x30eda4[_0x398282(0x15b)]+'\x20'+_0x30eda4['stack']);const _0x26c4eb={};_0x26c4eb['message']=_0x30eda4['message'];const _0x476900={};return _0x476900[_0x398282(0x14a)]=0x1f4,_0x476900[_0x398282(0x144)]=_0x26c4eb,_0x476900;}}}function a122_0x3f5c(_0x46b8f8,_0x1481ea){const _0x597420=a122_0x5974();return a122_0x3f5c=function(_0x3f5c77,_0x22b10c){_0x3f5c77=_0x3f5c77-0x13d;let _0x1d8b83=_0x597420[_0x3f5c77];return _0x1d8b83;},a122_0x3f5c(_0x46b8f8,_0x1481ea);}module['exports']=RequestUtils;
|
|
1
|
+
const a122_0x291d1c=a122_0x115c;(function(_0x3133f8,_0x18cf2b){const _0x2b4244=a122_0x115c,_0x3c9182=_0x3133f8();while(!![]){try{const _0x4c9a9c=-parseInt(_0x2b4244(0x12d))/0x1+parseInt(_0x2b4244(0x114))/0x2*(parseInt(_0x2b4244(0x13a))/0x3)+parseInt(_0x2b4244(0x122))/0x4+-parseInt(_0x2b4244(0xfa))/0x5+-parseInt(_0x2b4244(0x121))/0x6*(parseInt(_0x2b4244(0x102))/0x7)+parseInt(_0x2b4244(0x100))/0x8*(-parseInt(_0x2b4244(0x123))/0x9)+-parseInt(_0x2b4244(0x104))/0xa*(-parseInt(_0x2b4244(0x10d))/0xb);if(_0x4c9a9c===_0x18cf2b)break;else _0x3c9182['push'](_0x3c9182['shift']());}catch(_0x3ae6ca){_0x3c9182['push'](_0x3c9182['shift']());}}}(a122_0x5b5c,0x54442));function a122_0x115c(_0x52776f,_0x10a57a){const _0x5b5c8f=a122_0x5b5c();return a122_0x115c=function(_0x115c49,_0x3acaeb){_0x115c49=_0x115c49-0xf4;let _0x4ec1f4=_0x5b5c8f[_0x115c49];return _0x4ec1f4;},a122_0x115c(_0x52776f,_0x10a57a);}const https=require(a122_0x291d1c(0x11c)),{URL}=require('url'),logger=require(a122_0x291d1c(0x12e))[a122_0x291d1c(0x133)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a122_0x291d1c(0x109)),TAG=a122_0x291d1c(0x116);function a122_0x5b5c(){const _0x33d6b0=['application/json',']\x20Error\x20in\x20putFailedTests:\x20','ozspG','542190mIUArC','../logger',']\x20Sending\x20GET\x20to\x20','_request','error','PhoHe','winstonLogger','\x20request\x20to\x20','data','\x20with\x20headers:\x20','stringify','BeArL','?buildName=','2019rDNLGW','\x20-\x20','env',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','CZGHV','AWgZO','Test\x20added','2434350gRUiJN','message','&projectName=','OoiRT',',\x20projectName=','xzpnd','4589168vtuWky','\x20and\x20data:\x20','105zYBRri','exports','1950OlWjTz',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=',']\x20Request\x20failed\x20for\x20','kKrsn','kobGJ','./constants','iWSEO','PUT','Bearer\x20','79981DPZpZJ','getFailedTestsCount','hvTBb','uEfHQ','putFailedTests','stack','PidMT','632ObPYso','POST','RequestUtils','YsopW','EBFfy','jmdkx','postSplitFiles','GET','https','status','XKySn','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','debug','27186MwzNgw','1541248NAHwMw','9fpFHrU','VjDdj','bRbCB','headers','oJUWU','body','bfkkw'];a122_0x5b5c=function(){return _0x33d6b0;};return a122_0x5b5c();}class RequestUtils{static async[a122_0x291d1c(0x130)](_0x525217,_0x13197f,_0x14624c=null){const _0x183639=a122_0x291d1c,_0x19f9e1={'AWgZO':function(_0xd00aa1,_0x368b9d){return _0xd00aa1(_0x368b9d);},'kKrsn':_0x183639(0x135),'hvTBb':'end','LjKoT':function(_0x8abe6e,_0x4d34d7){return _0x8abe6e(_0x4d34d7);},'bRbCB':_0x183639(0x131),'WoaPv':function(_0x5697f8,_0x2dc8c4){return _0x5697f8===_0x2dc8c4;},'OoiRT':_0x183639(0x115),'Grapn':function(_0x46cc0c,_0x5ef175){return _0x46cc0c===_0x5ef175;},'pZmWr':_0x183639(0x10b),'iKxqp':_0x183639(0x12a),'bfkkw':function(_0x28c8c3,_0x42946e){return _0x28c8c3+_0x42946e;}},_0x1b7457=process[_0x183639(0xf5)]['BROWSERSTACK_TESTHUB_JWT']||'',_0x3287c={};_0x3287c['Authorization']=_0x183639(0x10c)+_0x1b7457,_0x3287c['Content-Type']=_0x19f9e1['iKxqp'];const _0x45012b=_0x3287c,{hostname:_0x22af09,pathname:_0x455d04,search:_0x9f000b}=new URL(_0x13197f),_0x2b7b33={'hostname':_0x22af09,'path':_0x19f9e1[_0x183639(0x129)](_0x455d04,_0x9f000b),'method':_0x525217,'headers':_0x45012b};return logger[_0x183639(0x120)]('['+TAG+']\x20Sending\x20'+_0x525217+_0x183639(0x134)+_0x13197f+_0x183639(0x136)+JSON[_0x183639(0x137)](_0x45012b)+_0x183639(0x101)+JSON[_0x183639(0x137)](_0x14624c)+'\x20and\x20token:\x20'+_0x1b7457),new Promise((_0x224315,_0x34db60)=>{const _0x152b84=_0x183639,_0xa564c1={'YsopW':function(_0xcbdcae,_0x1b9d7c){return _0x19f9e1['LjKoT'](_0xcbdcae,_0x1b9d7c);}},_0x2bd0eb=https['request'](_0x2b7b33,_0x212368=>{const _0x1f9836=a122_0x115c,_0x1ab136={'iWSEO':function(_0x1a5641,_0x243021){const _0x12d1f7=a122_0x115c;return _0x19f9e1[_0x12d1f7(0xf8)](_0x1a5641,_0x243021);},'PidMT':function(_0x48c022,_0x14af5e){const _0x3bf04d=a122_0x115c;return _0x19f9e1[_0x3bf04d(0xf8)](_0x48c022,_0x14af5e);}};let _0x3830d9='';_0x212368['on'](_0x19f9e1[_0x1f9836(0x107)],_0x4e7dd4=>{_0x3830d9+=_0x4e7dd4;}),_0x212368['on'](_0x19f9e1[_0x1f9836(0x10f)],()=>{const _0x36deb6=_0x1f9836;try{const _0x4b675a=_0x3830d9?JSON['parse'](_0x3830d9):{},_0x1b2a52={};_0x1b2a52[_0x36deb6(0x11d)]=_0x212368['statusCode'],_0x1b2a52[_0x36deb6(0x128)]=_0x4b675a,_0x1b2a52[_0x36deb6(0x126)]=_0x212368[_0x36deb6(0x126)],_0x1ab136[_0x36deb6(0x10a)](_0x224315,_0x1b2a52);}catch(_0x4a935e){logger[_0x36deb6(0x131)]('['+TAG+']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x3830d9+_0x36deb6(0xf4)+_0x4a935e[_0x36deb6(0xfb)]+'\x20'+_0x4a935e[_0x36deb6(0x112)]),_0x1ab136[_0x36deb6(0x113)](_0x34db60,new Error('Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x4a935e[_0x36deb6(0xfb)]));}});});_0x2bd0eb['on'](_0x19f9e1[_0x152b84(0x125)],_0x46a8a7=>{const _0x361b5d=_0x152b84;logger[_0x361b5d(0x131)]('['+TAG+_0x361b5d(0x106)+_0x525217+'\x20'+_0x13197f+':\x20'+_0x46a8a7[_0x361b5d(0xfb)]+'\x20'+_0x46a8a7['stack']),_0xa564c1[_0x361b5d(0x117)](_0x34db60,_0x46a8a7);}),_0x14624c&&(_0x19f9e1['WoaPv'](_0x525217,_0x19f9e1[_0x152b84(0xfd)])||_0x19f9e1['Grapn'](_0x525217,_0x19f9e1['pZmWr']))&&_0x2bd0eb['write'](JSON[_0x152b84(0x137)](_0x14624c)),_0x2bd0eb['end']();});}static async[a122_0x291d1c(0x11a)](_0x448228){const _0x3e6aea=a122_0x291d1c,_0x414a9c={};_0x414a9c[_0x3e6aea(0x132)]=_0x3e6aea(0x115),_0x414a9c['oJUWU']=function(_0x4bb91c,_0x4f562a){return _0x4bb91c===_0x4f562a;};const _0x4bb3e5=_0x414a9c,_0x568bbf=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x47ae88=await this[_0x3e6aea(0x130)](_0x4bb3e5[_0x3e6aea(0x132)],_0x568bbf,_0x448228);return _0x4bb3e5[_0x3e6aea(0x127)](_0x47ae88['status'],0xc8)?logger['debug']('['+TAG+_0x3e6aea(0xf6)+_0x568bbf):logger[_0x3e6aea(0x131)]('['+TAG+']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20'+_0x568bbf+':\x20'+JSON[_0x3e6aea(0x137)](_0x47ae88['body'])+',\x20status:\x20'+_0x47ae88[_0x3e6aea(0x11d)]),_0x47ae88;}catch(_0x14a9de){logger['error']('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x14a9de[_0x3e6aea(0xfb)]+'\x20'+_0x14a9de[_0x3e6aea(0x112)]);const _0x51b953={};_0x51b953['message']=_0x14a9de[_0x3e6aea(0xfb)];const _0x3f1a0b={};return _0x3f1a0b[_0x3e6aea(0x11d)]=0x1f4,_0x3f1a0b[_0x3e6aea(0x128)]=_0x51b953,_0x3f1a0b;}}static async['getSplitFiles'](_0x16cc11){const _0x56f655=a122_0x291d1c,_0x244f1a={};_0x244f1a[_0x56f655(0x124)]=_0x56f655(0x11b),_0x244f1a[_0x56f655(0xff)]=function(_0x2b09b,_0x1d8b6e){return _0x2b09b===_0x1d8b6e;};const _0x838db6=_0x244f1a;try{const _0x16aef4=await this['_request'](_0x838db6['VjDdj'],_0x16cc11);if(_0x838db6['xzpnd'](_0x16aef4[_0x56f655(0x11d)],0xc8))return _0x16aef4['body'];return{};}catch(_0x27575c){return logger['error']('['+TAG+_0x56f655(0x12b)+_0x27575c[_0x56f655(0xfb)]+'\x20'+_0x27575c[_0x56f655(0x112)]),{};}}static async[a122_0x291d1c(0x111)](_0x1ce8e5){const _0x1afc7b=a122_0x291d1c,_0x47c7c6={};_0x47c7c6[_0x1afc7b(0x110)]=_0x1afc7b(0x10b),_0x47c7c6[_0x1afc7b(0x118)]=function(_0xeea2ad,_0x3578ed){return _0xeea2ad===_0x3578ed;},_0x47c7c6['BeArL']=_0x1afc7b(0xf9);const _0x39ecd5=_0x47c7c6,_0x29e1a0=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0xb3be56=await this[_0x1afc7b(0x130)](_0x39ecd5['uEfHQ'],_0x29e1a0,_0x1ce8e5);if(_0x39ecd5[_0x1afc7b(0x118)](_0xb3be56['status'],0xc8)&&_0xb3be56[_0x1afc7b(0x128)]&&_0x39ecd5['EBFfy'](_0xb3be56[_0x1afc7b(0x128)]['message'],_0x39ecd5[_0x1afc7b(0x138)]))return!![];return![];}catch(_0x491fca){logger[_0x1afc7b(0x131)]('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x491fca[_0x1afc7b(0xfb)]+'\x20'+_0x491fca[_0x1afc7b(0x112)]);const _0x4fb2ed={};_0x4fb2ed[_0x1afc7b(0xfb)]=_0x491fca['message'];const _0x3151f7={};return _0x3151f7[_0x1afc7b(0x11d)]=0x1f4,_0x3151f7['body']=_0x4fb2ed,_0x3151f7;}}static async[a122_0x291d1c(0x10e)](_0x292f7f){const _0x5bfde4=a122_0x291d1c,_0xed95ac={'xoAqq':function(_0x13ff1a,_0x18906a){return _0x13ff1a||_0x18906a;},'CZGHV':_0x5bfde4(0x11f),'kobGJ':function(_0x383de4,_0x52824d){return _0x383de4(_0x52824d);},'XKySn':function(_0xe90e43,_0x1b8d61){return _0xe90e43(_0x1b8d61);},'itHxF':'GET','LVOGF':function(_0x3ed3ef,_0x21ea01){return _0x3ed3ef===_0x21ea01;},'ozspG':function(_0x4d867e,_0x46ebc3){return _0x4d867e!==_0x46ebc3;},'jmdkx':'undefined'},{buildName:_0x17fa53,buildRunIdentifier:_0x2ab826,projectName:_0x105135}=_0x292f7f;if(_0xed95ac['xoAqq'](!_0x17fa53,!_0x2ab826)||!_0x105135){logger[_0x5bfde4(0x131)]('['+TAG+_0x5bfde4(0x105)+_0x17fa53+',\x20buildRunIdentifier='+_0x2ab826+_0x5bfde4(0xfe)+_0x105135);const _0x4ed0de={};_0x4ed0de['message']=_0xed95ac[_0x5bfde4(0xf7)];const _0x330125={};return _0x330125[_0x5bfde4(0x11d)]=0x190,_0x330125[_0x5bfde4(0x128)]=_0x4ed0de,_0x330125;}const _0x54a8f6=_0x5bfde4(0x139)+_0xed95ac[_0x5bfde4(0x108)](encodeURIComponent,_0x17fa53)+'&buildRunIdentifier='+_0xed95ac[_0x5bfde4(0x108)](encodeURIComponent,_0x2ab826)+_0x5bfde4(0xfc)+_0xed95ac[_0x5bfde4(0x11e)](encodeURIComponent,_0x105135),_0x5ec52d=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x54a8f6;try{logger['debug']('['+TAG+_0x5bfde4(0x12f)+_0x5ec52d);let _0x30d016=0x0;const _0xbd912b=await this['_request'](_0xed95ac['itHxF'],_0x5ec52d);return _0xed95ac['LVOGF'](_0xbd912b['status'],0xc8)&&_0xbd912b[_0x5bfde4(0x128)]&&_0xed95ac[_0x5bfde4(0x12c)](typeof _0xbd912b[_0x5bfde4(0x128)]['failedTestsCount'],_0xed95ac[_0x5bfde4(0x119)])&&(_0x30d016=_0xed95ac[_0x5bfde4(0x11e)](Number,_0xbd912b[_0x5bfde4(0x128)]['failedTestsCount'])),_0x30d016;}catch(_0x2088e){logger[_0x5bfde4(0x131)]('['+TAG+']\x20Error\x20in\x20getFailedTestsCount:\x20'+_0x2088e[_0x5bfde4(0xfb)]+'\x20'+_0x2088e[_0x5bfde4(0x112)]);const _0x25a8ed={};_0x25a8ed[_0x5bfde4(0xfb)]=_0x2088e[_0x5bfde4(0xfb)];const _0x7100b9={};return _0x7100b9[_0x5bfde4(0x11d)]=0x1f4,_0x7100b9['body']=_0x25a8ed,_0x7100b9;}}}module[a122_0x291d1c(0x103)]=RequestUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a123_0x5e815b=a123_0x331f;(function(_0x174643,_0x571883){const _0x44892d=a123_0x331f,_0x1c273f=_0x174643();while(!![]){try{const _0x28ad33=-parseInt(_0x44892d(0x1ba))/0x1+parseInt(_0x44892d(0x162))/0x2*(parseInt(_0x44892d(0x18b))/0x3)+-parseInt(_0x44892d(0x17e))/0x4*(-parseInt(_0x44892d(0x17b))/0x5)+-parseInt(_0x44892d(0x16a))/0x6*(-parseInt(_0x44892d(0x18d))/0x7)+-parseInt(_0x44892d(0x1cb))/0x8+parseInt(_0x44892d(0x1be))/0x9+-parseInt(_0x44892d(0x1b7))/0xa;if(_0x28ad33===_0x571883)break;else _0x1c273f['push'](_0x1c273f['shift']());}catch(_0x3088fa){_0x1c273f['push'](_0x1c273f['shift']());}}}(a123_0x1af2,0xb5f9e));function a123_0x1af2(){const _0x2c2144=['zbSUG','BROWSERSTACK_TOTAL_NODE_COUNT','getOrderedTestFiles','vlbmz','dVvNp','VWxEp','QmxBi','findTestFiles','map','jdsmC','MmNRl','buildIdentifier','jZaTj','projectName','Error\x20finding\x20test\x20files:\x20','hOIwg','hNrrT','winstonLogger','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','isArray','1|2|5|4|0|3','jest-util','fFalr','rootDir','Filterted\x20to\x20test\x20files:\x20','logTestOrderingChecks','--config','addToOrderingInstrumentationData','bVAlf','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','2707690rEhFSv','jest','testObservability','1354670hTAAuy','Test\x20Reordering\x20is\x20unavailable\x20because\x20testObservability\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','isTestOrchestrationEnabled','testOrderingApplied','13217427NTkImU','_initializeTestOrdering','debug','jest-runner','buildName','lkWuf','KtEqZ','utf-8','splitTests','stack','LYfCz','WtcKB','stdout','141064mYMVbx','getSplitTestsAPICallCount','./testOrderingServerHandler','npx','splitTestsAPICallCount','igdjk','testOrderingEnabled','50LAfEJu','nNoZR','testOrderingServerHandler','oPqnC','testPathIgnorePatterns','YVPxP','--listTests','length','1746rlvNzt','**/?(*.)+(spec|test).[jt]s?(x)','isTestOrderingApplied','FCoHG','\x20files','updateBuildIdentifier','info','Nrkgh','WsZnq','./orchestrationUtils','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','BROWSERSTACK_BUILD_RUN_IDENTIFIER','stringify','orderingInstrumentationData','BqYtE','BmtcS','child_process','1205PTWRNZ','path','exports','6084bcAAji','BUQZn','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','uploadedTestFilesCount','GcQua','getOrderingInstrumentationData','_shouldLogTestOrderingChecks','getTestOrderingName','WqdNA','glob','AuwrG','split','config','58467ypehbg','Pompj','1589pwZEqv','nodeIndex','downloadedTestFilesCount','intvm','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','env','setTestOrderingApplied','orchestrationUtils','iVCkA','jNfSw','juimt','micromatch'];a123_0x1af2=function(){return _0x2c2144;};return a123_0x1af2();}function a123_0x331f(_0x4729a1,_0x1acccb){const _0x1af2d6=a123_0x1af2();return a123_0x331f=function(_0x331f63,_0xa20951){_0x331f63=_0x331f63-0x15c;let _0x3beae5=_0x1af2d6[_0x331f63];return _0x3beae5;},a123_0x331f(_0x4729a1,_0x1acccb);}const logger=require('../logger')[a123_0x5e815b(0x1aa)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require('../helper'),TestOrderingServerHandler=require(a123_0x5e815b(0x15d)),OrchestrationUtils=require(a123_0x5e815b(0x173)),path=require(a123_0x5e815b(0x17c)),{spawnSync}=require(a123_0x5e815b(0x17a)),micromatch=require(a123_0x5e815b(0x198)),fs=require('fs');class TestOrchestrationHandler{constructor(_0x2004b2){const _0x5108cc=a123_0x5e815b,_0x58280d={};_0x58280d[_0x5108cc(0x1a9)]=_0x5108cc(0x1ad);const _0x494fc9=_0x58280d,_0x5a3b25=_0x494fc9[_0x5108cc(0x1a9)][_0x5108cc(0x189)]('|');let _0x1082e1=0x0;while(!![]){switch(_0x5a3b25[_0x1082e1++]){case'0':this[_0x5108cc(0x194)]=new OrchestrationUtils(_0x2004b2);continue;case'1':this[_0x5108cc(0x18a)]=_0x2004b2;continue;case'2':this[_0x5108cc(0x177)]={};continue;case'3':this[_0x5108cc(0x1bf)]();continue;case'4':this['testOrderingServerHandler']=null;continue;case'5':this[_0x5108cc(0x1bd)]=![];continue;}break;}}['isTestOrchestrationEnabled'](){const _0x2d9a26=a123_0x5e815b,_0x498b15={'WtcKB':function(_0x2499bc,_0x3329fd){return _0x2499bc(_0x3329fd);},'juimt':function(_0x412c67,_0x491f83){return _0x412c67(_0x491f83);},'HhLeA':function(_0x5689af,_0x2ef43f){return _0x5689af(_0x2ef43f);},'BUQZn':function(_0x429eee,_0x1f493e){return _0x429eee(_0x1f493e);},'Pompj':function(_0x21f0ce,_0x57546f){return _0x21f0ce(_0x57546f);},'VWxEp':function(_0x13fc28,_0xc402d1){return _0x13fc28(_0xc402d1);},'WqdNA':function(_0x459a80,_0x46160d){return _0x459a80&&_0x46160d;}},_0x34f7d0=_0x498b15['WtcKB'](isNotUndefined,this[_0x2d9a26(0x18a)])&&(_0x498b15[_0x2d9a26(0x197)](isUndefined,this[_0x2d9a26(0x18a)][_0x2d9a26(0x1b9)])||_0x498b15[_0x2d9a26(0x1c9)](isTrueString,this[_0x2d9a26(0x18a)][_0x2d9a26(0x1b9)])),_0x554974=this[_0x2d9a26(0x194)]['testOrderingEnabled'](),_0x3b544b=_0x498b15['HhLeA'](isNotUndefined,this[_0x2d9a26(0x18a)])&&_0x498b15[_0x2d9a26(0x17f)](isNotUndefined,this[_0x2d9a26(0x18a)]['projectName']),_0x453d3e=_0x498b15[_0x2d9a26(0x18c)](isNotUndefined,this['config'])&&_0x498b15[_0x2d9a26(0x19e)](isNotUndefined,this[_0x2d9a26(0x18a)]['buildName']);return _0x498b15[_0x2d9a26(0x186)](_0x34f7d0,_0x554974)&&_0x3b544b&&_0x453d3e;}['_initializeTestOrdering'](){const _0x369eda=a123_0x5e815b,_0x32887f={};_0x32887f['fFalr']=_0x369eda(0x1b6),_0x32887f[_0x369eda(0x196)]='Test\x20orchestration\x20without\x20test\x20ordering';const _0x40accd=_0x32887f;this[_0x369eda(0x1bc)]()?(this[_0x369eda(0x164)]=new TestOrderingServerHandler(this[_0x369eda(0x18a)]),logger['info'](_0x40accd[_0x369eda(0x1af)])):(logger[_0x369eda(0x1c0)](_0x40accd[_0x369eda(0x196)]),this[_0x369eda(0x1b2)]());}[a123_0x5e815b(0x1b2)](){const _0x41664d=a123_0x5e815b,_0x244ceb={'WsZnq':function(_0x282270,_0x3b7610){return _0x282270(_0x3b7610);},'KtEqZ':_0x41664d(0x191),'igdjk':function(_0x1c1e89,_0x5ac1f9){return _0x1c1e89(_0x5ac1f9);},'MtzNe':function(_0x51144b,_0x5f10e9){return _0x51144b(_0x5f10e9);},'intvm':_0x41664d(0x1bb)};if(!this['_shouldLogTestOrderingChecks']())return;(!_0x244ceb[_0x41664d(0x172)](isNotUndefined,this[_0x41664d(0x18a)])||!_0x244ceb[_0x41664d(0x172)](isNotUndefined,this[_0x41664d(0x18a)][_0x41664d(0x1c2)])||!_0x244ceb[_0x41664d(0x172)](isNotUndefined,this[_0x41664d(0x18a)][_0x41664d(0x1a6)]))&&logger[_0x41664d(0x170)](_0x244ceb[_0x41664d(0x1c4)]),_0x244ceb[_0x41664d(0x160)](isNotUndefined,this[_0x41664d(0x18a)])&&_0x244ceb[_0x41664d(0x160)](isNotUndefined,this['config'][_0x41664d(0x1b9)])&&!_0x244ceb['MtzNe'](isTrueString,this[_0x41664d(0x18a)][_0x41664d(0x1b9)])&&logger[_0x41664d(0x170)](_0x244ceb[_0x41664d(0x190)]);}[a123_0x5e815b(0x184)](){const _0x14b914=a123_0x5e815b;return!this[_0x14b914(0x1bc)]()&&this[_0x14b914(0x194)][_0x14b914(0x161)]();}[a123_0x5e815b(0x16c)](){const _0x4d84da=a123_0x5e815b;return this[_0x4d84da(0x1bd)];}[a123_0x5e815b(0x193)](_0x407dc4){const _0x3a0e2f=a123_0x5e815b,_0x2085af={};_0x2085af[_0x3a0e2f(0x1a2)]='applied';const _0x5d1a4e=_0x2085af;this['testOrderingApplied']=_0x407dc4,this[_0x3a0e2f(0x1b4)](_0x5d1a4e[_0x3a0e2f(0x1a2)],_0x407dc4);}[a123_0x5e815b(0x1b4)](_0x917642,_0x3476b4){const _0x3da1b9=a123_0x5e815b;this[_0x3da1b9(0x177)][_0x917642]=_0x3476b4;}[a123_0x5e815b(0x183)](){const _0x3211b3=a123_0x5e815b;return this[_0x3211b3(0x177)];}[a123_0x5e815b(0x16f)](){const _0x3a9775=a123_0x5e815b,_0x3f5fd2={'tvUeE':function(_0x29df95,_0x46b8fe){return _0x29df95(_0x46b8fe);},'QmxBi':function(_0x5c4288,_0x10918d){return _0x5c4288>_0x10918d;}},_0x1b5ce2=_0x3f5fd2['tvUeE'](parseInt,process['env'][_0x3a9775(0x19a)]||'1'),_0x37610b=process[_0x3a9775(0x192)][_0x3a9775(0x175)];_0x37610b&&_0x3f5fd2[_0x3a9775(0x19f)](_0x1b5ce2,0x1)&&(logger[_0x3a9775(0x1c0)](_0x3a9775(0x180)+_0x37610b),this[_0x3a9775(0x18a)][_0x3a9775(0x1a4)]=_0x37610b);}async['reorderTestFiles'](_0x38237e){const _0x1efc65=a123_0x5e815b,_0x5b3da6={'zbSUG':function(_0x271a18,_0x1bffc5){return _0x271a18===_0x1bffc5;},'bVAlf':_0x1efc65(0x174),'nNoZR':function(_0x1c0b36,_0x3a062e){return _0x1c0b36===_0x3a062e;},'iVCkA':function(_0x5ba2ca,_0x2ce2b3){return _0x5ba2ca(_0x2ce2b3);},'MmNRl':function(_0x3bbcae,_0x37006e){return _0x3bbcae(_0x37006e);},'lkWuf':_0x1efc65(0x181),'BqYtE':_0x1efc65(0x18e),'dVvNp':'totalNodes','FCoHG':_0x1efc65(0x18f),'GcQua':_0x1efc65(0x15f)};try{if(!_0x38237e||!Array[_0x1efc65(0x1ac)](_0x38237e)||_0x5b3da6['zbSUG'](_0x38237e['length'],0x0))return null;if(_0x5b3da6[_0x1efc65(0x199)](this[_0x1efc65(0x1bc)](),![]))return logger[_0x1efc65(0x1c0)](_0x5b3da6[_0x1efc65(0x1b5)]),null;let _0x3a0eea=null;const _0x1f422d=this[_0x1efc65(0x194)][_0x1efc65(0x185)]();if(this[_0x1efc65(0x164)]){const _0x184ad4=await this[_0x1efc65(0x164)][_0x1efc65(0x1c6)](_0x38237e,_0x1f422d);if(!_0x184ad4)return null;_0x3a0eea=await this[_0x1efc65(0x164)][_0x1efc65(0x19b)](_0x184ad4);}if(!_0x3a0eea||!Array['isArray'](_0x3a0eea)||_0x5b3da6[_0x1efc65(0x163)](_0x3a0eea[_0x1efc65(0x169)],0x0))return null;const _0x3363ff=_0x5b3da6[_0x1efc65(0x195)](parseInt,process[_0x1efc65(0x192)]['BROWSERSTACK_NODE_INDEX']||'0'),_0x57f055=_0x5b3da6[_0x1efc65(0x1a3)](parseInt,process[_0x1efc65(0x192)][_0x1efc65(0x19a)]||'1');return this[_0x1efc65(0x1b4)](_0x5b3da6[_0x1efc65(0x1c3)],_0x38237e[_0x1efc65(0x169)]),this[_0x1efc65(0x1b4)](_0x5b3da6[_0x1efc65(0x178)],_0x3363ff),this[_0x1efc65(0x1b4)](_0x5b3da6[_0x1efc65(0x19d)],_0x57f055),this['addToOrderingInstrumentationData'](_0x5b3da6[_0x1efc65(0x16d)],_0x3a0eea['length']),this['addToOrderingInstrumentationData'](_0x5b3da6[_0x1efc65(0x182)],this[_0x1efc65(0x164)]?this[_0x1efc65(0x164)][_0x1efc65(0x15c)]():0x0),_0x3a0eea['map'](_0x5499ee=>sanitizedFilePath(_0x5499ee));}catch(_0x48bf6c){return logger[_0x1efc65(0x1c0)](_0x1efc65(0x1ab)+(_0x48bf6c[_0x1efc65(0x1c7)]||_0x48bf6c['toString']())),null;}}async[a123_0x5e815b(0x1a0)](_0x5eba0b,_0x473617,_0x10b47b){const _0x9f7b84=a123_0x5e815b,_0x76d2d1={'YVPxP':function(_0x3f1ba5,_0x33e891){return _0x3f1ba5(_0x33e891);},'oPqnC':'jest-config','wOyPP':_0x9f7b84(0x1ae),'AuwrG':function(_0x5cd85c,_0x2a4578){return _0x5cd85c(_0x2a4578);},'hOIwg':_0x9f7b84(0x1c1),'USXZw':function(_0x132e97,_0x4ec6f9){return _0x132e97(_0x4ec6f9);},'QGcuL':_0x9f7b84(0x187),'cRbzZ':'**/__tests__/**/*.[jt]s?(x)','BmtcS':_0x9f7b84(0x16b),'kfKRM':function(_0x536f34,_0x9f02a7,_0x4c15f7,_0x50d594){return _0x536f34(_0x9f02a7,_0x4c15f7,_0x50d594);},'LYfCz':_0x9f7b84(0x15e),'Nrkgh':_0x9f7b84(0x1b8),'vlbmz':_0x9f7b84(0x1b3),'jZaTj':_0x9f7b84(0x168),'mrsSZ':_0x9f7b84(0x1c5)};try{const {getTestPathPatterns:_0x4c543d}=_0x76d2d1[_0x9f7b84(0x167)](require,_0x76d2d1[_0x9f7b84(0x165)]),{globsToMatcher:_0x50db6f}=_0x76d2d1['YVPxP'](require,_0x76d2d1['wOyPP']),{findRelatedTests:_0x2564e6}=_0x76d2d1[_0x9f7b84(0x188)](require,_0x76d2d1[_0x9f7b84(0x1a8)]),_0x3784f2=_0x76d2d1['USXZw'](require,_0x76d2d1['QGcuL']),_0x5317ef=_0x5eba0b['testMatch']||[_0x76d2d1['cRbzZ'],_0x76d2d1[_0x9f7b84(0x179)]],_0x367107=_0x5eba0b[_0x9f7b84(0x166)]||[],_0x1db4c1=_0x76d2d1['kfKRM'](spawnSync,_0x76d2d1[_0x9f7b84(0x1c8)],[_0x76d2d1[_0x9f7b84(0x171)],_0x76d2d1[_0x9f7b84(0x19c)],_0x10b47b,..._0x473617,_0x76d2d1[_0x9f7b84(0x1a5)]],{'encoding':_0x76d2d1['mrsSZ']});let _0x4def06=[];!_0x1db4c1['error']&&(_0x4def06=_0x1db4c1[_0x9f7b84(0x1ca)][_0x9f7b84(0x189)]('\x0a')['filter'](Boolean));logger[_0x9f7b84(0x1c0)]('Found\x20test\x20files:\x20'+JSON[_0x9f7b84(0x176)](_0x4def06)+_0x9f7b84(0x16e));const _0x576fae={};_0x576fae['matchBase']=!![],_0x576fae['ignore']=_0x367107;const _0x1354f9=_0x76d2d1['kfKRM'](micromatch,_0x4def06,_0x5317ef,_0x576fae)[_0x9f7b84(0x1a1)](_0xedb242=>path['relative'](_0x5eba0b[_0x9f7b84(0x1b0)],_0xedb242));return logger['debug'](_0x9f7b84(0x1b1)+JSON[_0x9f7b84(0x176)](_0x1354f9)+_0x9f7b84(0x16e)),_0x1354f9;}catch(_0xab1ba8){return logger[_0x9f7b84(0x1c0)](_0x9f7b84(0x1a7)+_0xab1ba8),[];}}}module[a123_0x5e815b(0x17d)]=TestOrchestrationHandler;
|
|
1
|
+
function a123_0x1a24(_0x2e2bd9,_0x110cc6){const _0x51d8ef=a123_0x51d8();return a123_0x1a24=function(_0x1a2423,_0x1d96d2){_0x1a2423=_0x1a2423-0x64;let _0x5111c2=_0x51d8ef[_0x1a2423];return _0x5111c2;},a123_0x1a24(_0x2e2bd9,_0x110cc6);}function a123_0x51d8(){const _0x2cd88f=['FpSwZ','rzUtE','Neile','jest-runner','\x20files','LzVtu','DaLHn','Test\x20Reordering\x20is\x20unavailable\x20because\x20testObservability\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','stack','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','4|3|0|5|2|1','4dlUhed','testOrderingEnabled','2085424UBsbsH','getSplitTestsAPICallCount','jest-config','--config','--listTests','zZpal','zQtME','GLlPC','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','GyBzf','npx','debug','522538lpEdMo','Filterted\x20to\x20test\x20files:\x20','downloadedTestFilesCount','TTbLa','testOrderingApplied','map','4430UnhzUu','info','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','splitTests','buildIdentifier','dwhEE','Test\x20orchestration\x20without\x20test\x20ordering','FCvNE','_initializeTestOrdering','env','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','split','2226000FeVxdf','BFRpI','stringify','AHPiv','UpJhh','getOrderingInstrumentationData','updateBuildIdentifier','uDJfM','orderingInstrumentationData','buildName','projectName','KciVL','NavVk','testOrderingServerHandler','../helper','Found\x20test\x20files:\x20','ZiLjz','uploadedTestFilesCount','rootDir','logTestOrderingChecks','./orchestrationUtils','micromatch','getOrderedTestFiles','getTestOrderingName','nodeIndex','dysrC','addToOrderingInstrumentationData','EXcWY','IBWbE','testPathIgnorePatterns','OmtWQ','6764443ylpIum','length','qlTaH','Tsell','**/__tests__/**/*.[jt]s?(x)','isTestOrderingApplied','ignore','testObservability','matchBase','dYYXL','glob','config','skyoR','relative','setTestOrderingApplied','Error\x20finding\x20test\x20files:\x20','306rQNomP','3504892dcGKHd','MdChf','nKdsp','GUvvC','jest-util','splitTestsAPICallCount','BROWSERSTACK_NODE_INDEX','../logger','pjoEC','exports','testMatch','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','RPWjp','BROWSERSTACK_TOTAL_NODE_COUNT','isTestOrchestrationEnabled','stdout','child_process','BROWSERSTACK_BUILD_RUN_IDENTIFIER','orchestrationUtils','isArray','HgMXp','ikIiH','_shouldLogTestOrderingChecks','filter','cjzgf','2046XFhyXC','gSCMQ','921070ebTcSr'];a123_0x51d8=function(){return _0x2cd88f;};return a123_0x51d8();}const a123_0x68677d=a123_0x1a24;(function(_0x4802e2,_0x185792){const _0x13715e=a123_0x1a24,_0x56e88b=_0x4802e2();while(!![]){try{const _0x2d88b6=parseInt(_0x13715e(0x9c))/0x1*(parseInt(_0x13715e(0xaa))/0x2)+parseInt(_0x13715e(0xbc))/0x3+parseInt(_0x13715e(0x75))/0x4+parseInt(_0x13715e(0xb0))/0x5*(parseInt(_0x13715e(0x8e))/0x6)+parseInt(_0x13715e(0x64))/0x7+-parseInt(_0x13715e(0x9e))/0x8+-parseInt(_0x13715e(0x74))/0x9*(parseInt(_0x13715e(0x90))/0xa);if(_0x2d88b6===_0x185792)break;else _0x56e88b['push'](_0x56e88b['shift']());}catch(_0x7b1e4c){_0x56e88b['push'](_0x56e88b['shift']());}}}(a123_0x51d8,0x83b42));const logger=require(a123_0x68677d(0x7c))['winstonLogger'],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a123_0x68677d(0xca)),TestOrderingServerHandler=require('./testOrderingServerHandler'),OrchestrationUtils=require(a123_0x68677d(0xd0)),path=require('path'),{spawnSync}=require(a123_0x68677d(0x85)),micromatch=require(a123_0x68677d(0xd1)),fs=require('fs');class TestOrchestrationHandler{constructor(_0x2102eb){const _0xca3ed1=a123_0x68677d,_0x2167de={};_0x2167de['DaLHn']=_0xca3ed1(0x9b);const _0x35c044=_0x2167de,_0x3e9601=_0x35c044[_0xca3ed1(0x97)][_0xca3ed1(0xbb)]('|');let _0x5217b7=0x0;while(!![]){switch(_0x3e9601[_0x5217b7++]){case'0':this[_0xca3ed1(0xae)]=![];continue;case'1':this[_0xca3ed1(0xb8)]();continue;case'2':this['orchestrationUtils']=new OrchestrationUtils(_0x2102eb);continue;case'3':this[_0xca3ed1(0xc4)]={};continue;case'4':this[_0xca3ed1(0x6f)]=_0x2102eb;continue;case'5':this[_0xca3ed1(0xc9)]=null;continue;}break;}}['isTestOrchestrationEnabled'](){const _0x13559f=a123_0x68677d,_0x682996={'AHPiv':function(_0x340f0f,_0x18de14){return _0x340f0f(_0x18de14);},'nKdsp':function(_0x1f7689,_0x273878){return _0x1f7689(_0x273878);},'GyBzf':function(_0x707edb,_0x6be646){return _0x707edb(_0x6be646);},'KciVL':function(_0x26ede6,_0x39d58e){return _0x26ede6(_0x39d58e);},'zZpal':function(_0x154dad,_0x3c3787){return _0x154dad&&_0x3c3787;}},_0x15b7a2=_0x682996[_0x13559f(0xbf)](isNotUndefined,this['config'])&&(_0x682996['nKdsp'](isUndefined,this['config'][_0x13559f(0x6b)])||_0x682996[_0x13559f(0xa7)](isTrueString,this[_0x13559f(0x6f)]['testObservability'])),_0x116bc9=this[_0x13559f(0x87)][_0x13559f(0x9d)](),_0x3a68db=_0x682996[_0x13559f(0xbf)](isNotUndefined,this[_0x13559f(0x6f)])&&_0x682996[_0x13559f(0x77)](isNotUndefined,this[_0x13559f(0x6f)][_0x13559f(0xc6)]),_0x87cee1=_0x682996[_0x13559f(0xa7)](isNotUndefined,this[_0x13559f(0x6f)])&&_0x682996[_0x13559f(0xc7)](isNotUndefined,this[_0x13559f(0x6f)][_0x13559f(0xc5)]);return _0x682996[_0x13559f(0xa3)](_0x15b7a2,_0x116bc9)&&_0x3a68db&&_0x87cee1;}[a123_0x68677d(0xb8)](){const _0x5e54c2=a123_0x68677d,_0x165863={};_0x165863['dwhEE']=_0x5e54c2(0x80),_0x165863[_0x5e54c2(0x78)]=_0x5e54c2(0xb6);const _0x4388d0=_0x165863;this[_0x5e54c2(0x83)]()?(this['testOrderingServerHandler']=new TestOrderingServerHandler(this[_0x5e54c2(0x6f)]),logger[_0x5e54c2(0xb1)](_0x4388d0[_0x5e54c2(0xb5)])):(logger[_0x5e54c2(0xa9)](_0x4388d0[_0x5e54c2(0x78)]),this[_0x5e54c2(0xcf)]());}['logTestOrderingChecks'](){const _0x368264=a123_0x68677d,_0xe7aa2b={'mqxYP':function(_0x4ad052,_0x1d876f){return _0x4ad052(_0x1d876f);},'OmtWQ':function(_0x4d6b9b,_0x65eda7){return _0x4d6b9b(_0x65eda7);},'EXcWY':_0x368264(0xb2),'WVYqG':function(_0x468330,_0x1fe909){return _0x468330(_0x1fe909);},'Neile':function(_0x131e59,_0x226cb5){return _0x131e59(_0x226cb5);},'bTwks':_0x368264(0x98)};if(!this[_0x368264(0x8b)]())return;(!_0xe7aa2b['mqxYP'](isNotUndefined,this[_0x368264(0x6f)])||!_0xe7aa2b['OmtWQ'](isNotUndefined,this['config'][_0x368264(0xc5)])||!_0xe7aa2b[_0x368264(0xda)](isNotUndefined,this[_0x368264(0x6f)]['projectName']))&&logger['info'](_0xe7aa2b[_0x368264(0xd7)]),_0xe7aa2b['WVYqG'](isNotUndefined,this[_0x368264(0x6f)])&&_0xe7aa2b[_0x368264(0x93)](isNotUndefined,this[_0x368264(0x6f)]['testObservability'])&&!_0xe7aa2b[_0x368264(0xda)](isTrueString,this[_0x368264(0x6f)][_0x368264(0x6b)])&&logger[_0x368264(0xb1)](_0xe7aa2b['bTwks']);}[a123_0x68677d(0x8b)](){const _0x3393c3=a123_0x68677d;return!this['isTestOrchestrationEnabled']()&&this[_0x3393c3(0x87)][_0x3393c3(0x9d)]();}[a123_0x68677d(0x69)](){return this['testOrderingApplied'];}[a123_0x68677d(0x72)](_0x2216ea){const _0x1fc7b2=a123_0x68677d,_0x286e9b={};_0x286e9b[_0x1fc7b2(0x7d)]='applied';const _0x145c4e=_0x286e9b;this['testOrderingApplied']=_0x2216ea,this[_0x1fc7b2(0xd6)](_0x145c4e[_0x1fc7b2(0x7d)],_0x2216ea);}['addToOrderingInstrumentationData'](_0x515757,_0x2e9cd0){const _0x5193d8=a123_0x68677d;this[_0x5193d8(0xc4)][_0x515757]=_0x2e9cd0;}[a123_0x68677d(0xc1)](){const _0x368d8f=a123_0x68677d;return this[_0x368d8f(0xc4)];}[a123_0x68677d(0xc2)](){const _0x52eae1=a123_0x68677d,_0x9bceb0={'pzXWY':function(_0x2fe1cc,_0x3efdea){return _0x2fe1cc(_0x3efdea);},'ZiLjz':function(_0x1c6034,_0x229fca){return _0x1c6034>_0x229fca;}},_0x4b20bf=_0x9bceb0['pzXWY'](parseInt,process[_0x52eae1(0xb9)][_0x52eae1(0x82)]||'1'),_0x22ec7b=process[_0x52eae1(0xb9)][_0x52eae1(0x86)];_0x22ec7b&&_0x9bceb0[_0x52eae1(0xcc)](_0x4b20bf,0x1)&&(logger[_0x52eae1(0xa9)](_0x52eae1(0xba)+_0x22ec7b),this['config'][_0x52eae1(0xb4)]=_0x22ec7b);}async['reorderTestFiles'](_0x100857){const _0x193b0b=a123_0x68677d,_0x53c18e={'FpSwZ':function(_0x415286,_0x35ef22){return _0x415286===_0x35ef22;},'KDyYj':function(_0x577281,_0x3fd7cf){return _0x577281===_0x3fd7cf;},'GURnr':_0x193b0b(0xa6),'IBWbE':function(_0x37bce1,_0x1235c1){return _0x37bce1===_0x1235c1;},'zQtME':function(_0x2f6042,_0x259bc4){return _0x2f6042(_0x259bc4);},'MdChf':function(_0x56c441,_0x368c1d){return _0x56c441(_0x368c1d);},'Tsell':_0x193b0b(0xcd),'dysrC':_0x193b0b(0xd4),'skyoR':'totalNodes','BFRpI':_0x193b0b(0xac),'FCvNE':_0x193b0b(0x7a)};try{if(!_0x100857||!Array[_0x193b0b(0x88)](_0x100857)||_0x53c18e[_0x193b0b(0x91)](_0x100857[_0x193b0b(0x65)],0x0))return null;if(_0x53c18e['KDyYj'](this[_0x193b0b(0x83)](),![]))return logger['debug'](_0x53c18e['GURnr']),null;let _0x5678e5=null;const _0x25fb81=this[_0x193b0b(0x87)][_0x193b0b(0xd3)]();if(this[_0x193b0b(0xc9)]){const _0x259ae8=await this[_0x193b0b(0xc9)][_0x193b0b(0xb3)](_0x100857,_0x25fb81);if(!_0x259ae8)return null;_0x5678e5=await this[_0x193b0b(0xc9)][_0x193b0b(0xd2)](_0x259ae8);}if(!_0x5678e5||!Array[_0x193b0b(0x88)](_0x5678e5)||_0x53c18e[_0x193b0b(0xd8)](_0x5678e5[_0x193b0b(0x65)],0x0))return null;const _0x4f93d3=_0x53c18e[_0x193b0b(0xa4)](parseInt,process[_0x193b0b(0xb9)][_0x193b0b(0x7b)]||'0'),_0x5e5661=_0x53c18e[_0x193b0b(0x76)](parseInt,process[_0x193b0b(0xb9)]['BROWSERSTACK_TOTAL_NODE_COUNT']||'1');return this[_0x193b0b(0xd6)](_0x53c18e[_0x193b0b(0x67)],_0x100857['length']),this[_0x193b0b(0xd6)](_0x53c18e[_0x193b0b(0xd5)],_0x4f93d3),this['addToOrderingInstrumentationData'](_0x53c18e[_0x193b0b(0x70)],_0x5e5661),this[_0x193b0b(0xd6)](_0x53c18e[_0x193b0b(0xbd)],_0x5678e5['length']),this[_0x193b0b(0xd6)](_0x53c18e[_0x193b0b(0xb7)],this[_0x193b0b(0xc9)]?this[_0x193b0b(0xc9)][_0x193b0b(0x9f)]():0x0),_0x5678e5['map'](_0x38b6db=>sanitizedFilePath(_0x38b6db));}catch(_0x54e6be){return logger[_0x193b0b(0xa9)](_0x193b0b(0x9a)+(_0x54e6be[_0x193b0b(0x99)]||_0x54e6be['toString']())),null;}}async['findTestFiles'](_0x16dd69,_0x5a3e57,_0x1e347c){const _0x56e874=a123_0x68677d,_0x22d4d5={'dYYXL':function(_0x1d45a9,_0x3a7e5d){return _0x1d45a9(_0x3a7e5d);},'RPWjp':_0x56e874(0xa0),'TTbLa':_0x56e874(0x79),'uDJfM':function(_0x1941f8,_0x21e54e){return _0x1941f8(_0x21e54e);},'rzUtE':_0x56e874(0x94),'NavVk':_0x56e874(0x6e),'AWWoS':_0x56e874(0x68),'LzVtu':'**/?(*.)+(spec|test).[jt]s?(x)','cjzgf':function(_0x3fcacd,_0x2309b3,_0xcadf8a,_0x13dbc1){return _0x3fcacd(_0x2309b3,_0xcadf8a,_0x13dbc1);},'ikIiH':_0x56e874(0xa8),'HgMXp':'jest','gSCMQ':_0x56e874(0xa1),'GLlPC':_0x56e874(0xa2),'UpJhh':'utf-8','qlTaH':function(_0x40b5bc,_0x5ce2b7,_0x2c7cc1,_0xb963b4){return _0x40b5bc(_0x5ce2b7,_0x2c7cc1,_0xb963b4);}};try{const {getTestPathPatterns:_0x44b9e7}=_0x22d4d5[_0x56e874(0x6d)](require,_0x22d4d5[_0x56e874(0x81)]),{globsToMatcher:_0x4616b9}=_0x22d4d5[_0x56e874(0x6d)](require,_0x22d4d5[_0x56e874(0xad)]),{findRelatedTests:_0x5a0b32}=_0x22d4d5[_0x56e874(0xc3)](require,_0x22d4d5[_0x56e874(0x92)]),_0x55c36b=_0x22d4d5['uDJfM'](require,_0x22d4d5[_0x56e874(0xc8)]),_0x4fc6ed=_0x16dd69[_0x56e874(0x7f)]||[_0x22d4d5['AWWoS'],_0x22d4d5[_0x56e874(0x96)]],_0x4e20b5=_0x16dd69[_0x56e874(0xd9)]||[],_0x230583=_0x22d4d5[_0x56e874(0x8d)](spawnSync,_0x22d4d5[_0x56e874(0x8a)],[_0x22d4d5[_0x56e874(0x89)],_0x22d4d5[_0x56e874(0x8f)],_0x1e347c,..._0x5a3e57,_0x22d4d5[_0x56e874(0xa5)]],{'encoding':_0x22d4d5[_0x56e874(0xc0)]});let _0x469823=[];!_0x230583['error']&&(_0x469823=_0x230583[_0x56e874(0x84)]['split']('\x0a')[_0x56e874(0x8c)](Boolean));logger[_0x56e874(0xa9)](_0x56e874(0xcb)+JSON[_0x56e874(0xbe)](_0x469823)+'\x20files');const _0x30bd4e={};_0x30bd4e[_0x56e874(0x6c)]=!![],_0x30bd4e[_0x56e874(0x6a)]=_0x4e20b5;const _0x42c06a=_0x22d4d5[_0x56e874(0x66)](micromatch,_0x469823,_0x4fc6ed,_0x30bd4e)[_0x56e874(0xaf)](_0x14fdc0=>path[_0x56e874(0x71)](_0x16dd69[_0x56e874(0xce)],_0x14fdc0));return logger[_0x56e874(0xa9)](_0x56e874(0xab)+JSON[_0x56e874(0xbe)](_0x42c06a)+_0x56e874(0x95)),_0x42c06a;}catch(_0x1410c8){return logger['debug'](_0x56e874(0x73)+_0x1410c8),[];}}}module[a123_0x68677d(0x7e)]=TestOrchestrationHandler;
|