browserstack-node-sdk 1.40.8 → 1.41.1
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/browserstack.pw.yml.sample +3 -3
- package/browserstack.yml.sample +3 -3
- 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_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
|
+
const a117_0x11b399=a117_0x31fd;(function(_0x356233,_0x559aaf){const _0xb83b02=a117_0x31fd,_0x432ecc=_0x356233();while(!![]){try{const _0x2f971f=parseInt(_0xb83b02(0x1a0))/0x1+parseInt(_0xb83b02(0x227))/0x2*(parseInt(_0xb83b02(0x283))/0x3)+parseInt(_0xb83b02(0x1a1))/0x4*(parseInt(_0xb83b02(0x1ba))/0x5)+parseInt(_0xb83b02(0x1a9))/0x6+-parseInt(_0xb83b02(0x272))/0x7*(parseInt(_0xb83b02(0x28d))/0x8)+parseInt(_0xb83b02(0x275))/0x9*(parseInt(_0xb83b02(0x1f1))/0xa)+-parseInt(_0xb83b02(0x1dc))/0xb;if(_0x2f971f===_0x559aaf)break;else _0x432ecc['push'](_0x432ecc['shift']());}catch(_0x3ac073){_0x432ecc['push'](_0x432ecc['shift']());}}}(a117_0x59eb,0x95b9d));const fs=require('fs'),path=require('path'),gitLastCommit=require(a117_0x11b399(0x223)),getRepoInfo=require('git-repo-info'),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a117_0x11b399(0x18a)),http=require(a117_0x11b399(0x23e)),https=require('https'),child_process=require(a117_0x11b399(0x22a)),getos=require(a117_0x11b399(0x1c3)),os=require('os'),logger=require(a117_0x11b399(0x198))[a117_0x11b399(0x1f2)],bsSetupHelper=require(a117_0x11b399(0x26a)),requestSpy=require(a117_0x11b399(0x247)),constants=require('../../bin/utils/constants'),logPatcher=require(a117_0x11b399(0x1f5)),util=require(a117_0x11b399(0x26f)),{fileLogger}=require(a117_0x11b399(0x198)),PerformanceTester=require(a117_0x11b399(0x1f9)),{isFunction}=require(a117_0x11b399(0x233)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require('../performance/constants'),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a117_0x11b399(0x1fe));exports[a117_0x11b399(0x21e)]=_0x4132c4=>{const _0x5a7e4b=a117_0x11b399;fileLogger[_0x5a7e4b(0x220)]('['+new Date()[_0x5a7e4b(0x1d5)]()+'][\x20'+constants[_0x5a7e4b(0x1c4)]+_0x5a7e4b(0x280)+_0x4132c4);},exports[a117_0x11b399(0x1b3)]=_0x18b656=>{const _0x27f442=a117_0x11b399,_0x477841={};_0x477841[_0x27f442(0x224)]=function(_0x2b6b99,_0x4f80f3){return _0x2b6b99===_0x4f80f3;},_0x477841[_0x27f442(0x20c)]=_0x27f442(0x256),_0x477841['LytnB']=function(_0x29f6f8,_0x1f1369){return _0x29f6f8===_0x1f1369;};const _0x49157c=_0x477841;fileLogger[_0x27f442(0x1b3)]('['+new Date()['toISOString']()+'][\x20'+constants[_0x27f442(0x1c4)]+_0x27f442(0x280)+_0x18b656),(_0x49157c[_0x27f442(0x224)](process[_0x27f442(0x1ee)][_0x27f442(0x1e2)],_0x49157c[_0x27f442(0x20c)])||_0x49157c[_0x27f442(0x224)](process[_0x27f442(0x1ee)][_0x27f442(0x1e2)],'1')||_0x49157c[_0x27f442(0x224)](process['env'][_0x27f442(0x1ce)],_0x49157c['MzWAs'])||_0x49157c[_0x27f442(0x215)](process[_0x27f442(0x1ee)][_0x27f442(0x1ce)],'1'))&&consoleHolder[_0x27f442(0x1a3)]('\x0a['+new Date()['toISOString']()+_0x27f442(0x1a8)+constants[_0x27f442(0x1c4)]+_0x27f442(0x280)+_0x18b656+'\x0a');};const a117_0x3092cf={};a117_0x3092cf[a117_0x11b399(0x1bc)]=!![],a117_0x3092cf['timeout']=0xea60,a117_0x3092cf['maxSockets']=0x2,a117_0x3092cf['maxTotalSockets']=0x2;function a117_0x31fd(_0x5c34eb,_0x566ef5){const _0x59eb2e=a117_0x59eb();return a117_0x31fd=function(_0x31fddc,_0x26ee9a){_0x31fddc=_0x31fddc-0x189;let _0x2c8470=_0x59eb2e[_0x31fddc];return _0x2c8470;},a117_0x31fd(_0x5c34eb,_0x566ef5);}const httpKeepAliveAgent=new http[(a117_0x11b399(0x271))](a117_0x3092cf),a117_0x1f5872={};a117_0x1f5872[a117_0x11b399(0x1bc)]=!![],a117_0x1f5872[a117_0x11b399(0x19d)]=0xea60,a117_0x1f5872['maxSockets']=0x2,a117_0x1f5872[a117_0x11b399(0x1d4)]=0x2;const httpsKeepAliveAgent=new https[(a117_0x11b399(0x271))](a117_0x1f5872),a117_0x5eac70={};a117_0x5eac70['keepAlive']=!![],a117_0x5eac70[a117_0x11b399(0x19d)]=0xea60,a117_0x5eac70[a117_0x11b399(0x1ab)]=0x2,a117_0x5eac70[a117_0x11b399(0x1d4)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a117_0x11b399(0x271))](a117_0x5eac70),a117_0x1e3a8f={};a117_0x1e3a8f['keepAlive']=!![],a117_0x1e3a8f[a117_0x11b399(0x19d)]=0xea60,a117_0x1e3a8f[a117_0x11b399(0x1ab)]=0x2,a117_0x1e3a8f[a117_0x11b399(0x1d4)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a117_0x11b399(0x271))](a117_0x1e3a8f);exports['shouldReRunObservabilityTests']=()=>{const _0x280241=a117_0x11b399,_0x2681e1={};_0x2681e1[_0x280241(0x228)]=function(_0x33861e,_0x13be39){return _0x33861e!==_0x13be39;},_0x2681e1[_0x280241(0x234)]=_0x280241(0x1b7);const _0x3d644f=_0x2681e1;return process[_0x280241(0x1ee)][_0x280241(0x296)]&&_0x3d644f[_0x280241(0x228)](process['env'][_0x280241(0x296)],_0x3d644f[_0x280241(0x234)])?!![]:![];},exports[a117_0x11b399(0x218)]=()=>{const _0x4a9bb6=a117_0x11b399,_0x21cba6={};_0x21cba6[_0x4a9bb6(0x29a)]=function(_0x575a42,_0x3a4194){return _0x575a42===_0x3a4194;},_0x21cba6[_0x4a9bb6(0x1ef)]=_0x4a9bb6(0x256),_0x21cba6['omBzn']=function(_0x5c0d2f,_0x90fa56){return _0x5c0d2f===_0x90fa56;};const _0x1613b3=_0x21cba6;let _0x3e1767=!![];return process[_0x4a9bb6(0x1ee)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x3e1767=_0x1613b3[_0x4a9bb6(0x29a)](process[_0x4a9bb6(0x1ee)][_0x4a9bb6(0x1eb)],_0x1613b3[_0x4a9bb6(0x1ef)])),process[_0x4a9bb6(0x1ee)][_0x4a9bb6(0x2a1)]&&(_0x3e1767=_0x1613b3[_0x4a9bb6(0x29a)](process['env']['BROWSERSTACK_TEST_OBSERVABILITY'],_0x1613b3[_0x4a9bb6(0x1ef)])),process['env'][_0x4a9bb6(0x277)]&&(_0x3e1767=_0x1613b3[_0x4a9bb6(0x1dd)](process[_0x4a9bb6(0x1ee)]['BROWSERSTACK_TEST_REPORTING'],_0x1613b3[_0x4a9bb6(0x1ef)])),_0x3e1767;},exports[a117_0x11b399(0x239)]=_0x2cbd33=>{const _0x2c5196=a117_0x11b399;if(bsSetupHelper[_0x2c5196(0x196)](_0x2cbd33))return undefined;try{return _0x2cbd33[_0x2c5196(0x1cf)]()[_0x2c5196(0x295)](',');}catch(_0x55e5e8){return undefined;}},exports[a117_0x11b399(0x261)]=()=>{const _0x398144=a117_0x11b399,_0x38b5f8={'AmxtK':function(_0x5a86bc,_0x269aad){return _0x5a86bc(_0x269aad);},'wVuPC':_0x398144(0x18e),'vbCdG':function(_0x480f1b,_0x22d255){return _0x480f1b!==_0x22d255;},'wBzmq':_0x398144(0x1b7),'uxmfp':_0x398144(0x199)};return PerformanceTester[_0x398144(0x28b)](PerformanceO11yEvents['PRINT_BUILDLINK'],async()=>{const _0xed578=_0x398144;try{const _0x20066e=_0x38b5f8[_0xed578(0x205)](require,_0x38b5f8['wVuPC']);if(_0x20066e[_0xed578(0x238)]){logger[_0xed578(0x20a)](_0xed578(0x18b)+O11Y_URL+_0xed578(0x231)+_0x20066e[_0xed578(0x238)]+_0xed578(0x282));return;}process[_0xed578(0x1ee)][_0xed578(0x294)]&&_0x38b5f8['vbCdG'](process[_0xed578(0x1ee)][_0xed578(0x294)],_0x38b5f8[_0xed578(0x29d)])&&_0x38b5f8['vbCdG'](process[_0xed578(0x1ee)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x38b5f8[_0xed578(0x20d)])&&logger[_0xed578(0x20a)](_0xed578(0x18b)+constants[_0xed578(0x24c)]+_0xed578(0x231)+process['env']['BS_TESTOPS_BUILD_HASHED_ID']+_0xed578(0x282));}catch(_0x370c01){logger[_0xed578(0x1ad)](util[_0xed578(0x1d8)]('[%s][\x20'+constants[_0xed578(0x1c4)]+_0xed578(0x284),new Date()[_0xed578(0x1d5)](),_0x370c01[_0xed578(0x1d6)]||_0x370c01[_0xed578(0x1fa)]||_0x370c01));}})();},exports[a117_0x11b399(0x21c)]=_0x408091=>{const _0x26f753=a117_0x11b399,_0x134c3d={};_0x134c3d['HpIhv']=_0x26f753(0x23c),_0x134c3d['mwKMs']=_0x26f753(0x1ec);const _0x6fb22c=_0x134c3d;if(!_0x408091)return null;return _0x408091['toString']()[_0x26f753(0x25f)](/AssertionError/)?_0x6fb22c['HpIhv']:_0x6fb22c['mwKMs'];},exports[a117_0x11b399(0x1c1)]=_0x1ee529=>{const _0x543848=a117_0x11b399,_0x6a154={};_0x6a154[_0x543848(0x265)]=_0x543848(0x262),_0x6a154[_0x543848(0x1a7)]=_0x543848(0x1d3),_0x6a154[_0x543848(0x212)]=_0x543848(0x1f6),_0x6a154['JdXrX']=_0x543848(0x24d),_0x6a154[_0x543848(0x2a2)]=_0x543848(0x253);const _0x55ce91=_0x6a154;let _0x300068=null;switch(_0x1ee529){case FRAMEWORKS[_0x543848(0x1db)]:_0x300068=bsSetupHelper[_0x543848(0x2a5)](_0x55ce91['SSFVU']);break;case FRAMEWORKS[_0x543848(0x25c)]:_0x300068=bsSetupHelper['getPackageVersion'](_0x55ce91['zApil']);break;case FRAMEWORKS[_0x543848(0x29f)]:case FRAMEWORKS[_0x543848(0x21a)]:_0x300068=bsSetupHelper[_0x543848(0x2a5)](_0x55ce91[_0x543848(0x212)]);break;case FRAMEWORKS[_0x543848(0x248)]:_0x300068=bsSetupHelper[_0x543848(0x2a5)](_0x55ce91[_0x543848(0x237)]);break;case FRAMEWORKS[_0x543848(0x1bf)]:_0x300068=bsSetupHelper['getPackageVersion'](_0x55ce91[_0x543848(0x2a2)]);break;default:break;}return _0x300068;},exports['getBrowserStackConfig']=_0x4002c1=>{const _0x183015=a117_0x11b399;let _0x153e75=null;switch(_0x4002c1){case FRAMEWORKS[_0x183015(0x25c)]:_0x153e75=process[_0x183015(0x1ee)][_0x183015(0x250)];break;}if(!_0x153e75)return;return bsSetupHelper[_0x183015(0x29e)](_0x153e75,![]);},exports[a117_0x11b399(0x26b)]=_0x1aa135=>{const _0x243f6a=a117_0x11b399;return{'username':bsSetupHelper['getUserName'](_0x1aa135),'accessKey':bsSetupHelper[_0x243f6a(0x192)](_0x1aa135)};},exports[a117_0x11b399(0x251)]=(_0x233659,_0x37925b)=>{const _0x5b75d8=a117_0x11b399,_0x1342be={};_0x1342be['seoGC']=_0x5b75d8(0x1be),_0x1342be[_0x5b75d8(0x268)]=_0x5b75d8(0x281),_0x1342be['VbvHP']=_0x5b75d8(0x23a);const _0x2c7e60=_0x1342be,_0x208548=_0x2c7e60[_0x5b75d8(0x1ff)]['split']('|');let _0x4a2c75=0x0;while(!![]){switch(_0x208548[_0x4a2c75++]){case'0':if(!_0x233659[_0x5b75d8(0x20e)][0x0]||!_0x233659[_0x5b75d8(0x20e)][0x0]['logs']||!_0x233659['body'][0x0][_0x5b75d8(0x204)][_0x5b75d8(0x1d1)])return;continue;case'1':delete _0x37925b['headers'];continue;case'2':if(!_0x233659[_0x5b75d8(0x20e)]||!Array[_0x5b75d8(0x219)](_0x233659['body']))return;continue;case'3':delete _0x233659[_0x5b75d8(0x20e)];continue;case'4':delete _0x233659[_0x5b75d8(0x263)];continue;case'5':_0x233659['formData']={'data':_0x233659[_0x5b75d8(0x20e)][0x0][_0x5b75d8(0x204)][0x0][_0x5b75d8(0x288)],'test_run_uuid':_0x233659[_0x5b75d8(0x20e)][0x0]['logs'][0x0]['test_run_uuid'],'event_type':_0x2c7e60[_0x5b75d8(0x268)],'kind':_0x2c7e60['VbvHP'],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x5b75d8(0x1d5)](),'fileName':_0x233659[_0x5b75d8(0x20e)][0x0][_0x5b75d8(0x204)][0x0]['fileName']};continue;}break;}},exports[a117_0x11b399(0x1bd)]=async(_0x233033,_0x491cff,_0x5a03e4,_0x5e68c5,_0x7e6e48=!![])=>{const _0x5b713e=a117_0x11b399,_0x4ecc8a={};_0x4ecc8a[_0x5b713e(0x1cb)]=function(_0x2e02ba,_0x4138e9){return _0x2e02ba===_0x4138e9;},_0x4ecc8a['BbZvc']=_0x5b713e(0x1c9),_0x4ecc8a[_0x5b713e(0x22f)]=_0x5b713e(0x264),_0x4ecc8a[_0x5b713e(0x278)]=_0x5b713e(0x21f),_0x4ecc8a[_0x5b713e(0x293)]=function(_0x3cf3d8,_0x4bcfdb){return _0x3cf3d8!==_0x4bcfdb;},_0x4ecc8a[_0x5b713e(0x2a6)]=_0x5b713e(0x1fb),_0x4ecc8a['zcxja']=_0x5b713e(0x208);const _0x4ce65b=_0x4ecc8a,_0x18b14a={..._0x5e68c5,...{'method':_0x233033,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x491cff,'body':_0x5a03e4,'json':_0x4ce65b[_0x5b713e(0x1cb)](_0x5e68c5[_0x5b713e(0x258)][_0x4ce65b[_0x5b713e(0x1e1)]],_0x4ce65b[_0x5b713e(0x22f)]),'agent':API_URL[_0x5b713e(0x25e)](_0x4ce65b[_0x5b713e(0x278)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x4ce65b[_0x5b713e(0x1cb)](_0x491cff,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x18b14a['agent']=API_URL['includes'](_0x4ce65b[_0x5b713e(0x278)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x18b14a,_0x5e68c5),logger[_0x5b713e(0x1b3)](_0x5b713e(0x214)+_0x18b14a[_0x5b713e(0x255)]));try{const {statusCode:_0x3b1cc9,body:_0x456b52}=await bsSetupHelper[_0x5b713e(0x1af)](_0x233033,_0x491cff,_0x18b14a,_0x5e68c5,_0x18b14a[_0x5b713e(0x255)]);if(_0x4ce65b[_0x5b713e(0x293)](_0x3b1cc9,0xc8))return _0x456b52?_0x456b52:_0x5b713e(0x1c6)+_0x3b1cc9;let _0x4f8a9e=_0x456b52;if(_0x7e6e48)try{_0x4ce65b[_0x5b713e(0x293)](typeof _0x456b52,_0x4ce65b[_0x5b713e(0x2a6)])&&(_0x4f8a9e=JSON['parse'](_0x456b52));}catch(_0x550d5e){logger[_0x5b713e(0x1ad)](_0x4ce65b[_0x5b713e(0x19c)],_0x456b52,util[_0x5b713e(0x1d8)](_0x550d5e));}const _0x541249={};return _0x541249[_0x5b713e(0x288)]=_0x4f8a9e,_0x541249;}catch(_0x3b2925){logger['error'](_0x5b713e(0x1ea)+util[_0x5b713e(0x1d8)](_0x3b2925));throw _0x3b2925;}},exports[a117_0x11b399(0x1af)]=(_0x55434c,_0x224638,_0x4272c1,_0x56adfb,_0x2606d7=!![])=>{const _0x450d91=a117_0x11b399,_0x18b7db={'qHRiK':function(_0x287641,_0x1c72c1){return _0x287641(_0x1c72c1);},'jCAMZ':function(_0xbbfecf,_0x13fcb8){return _0xbbfecf!==_0x13fcb8;},'XbdvG':function(_0x1b0c93,_0x387a9f){return _0x1b0c93(_0x387a9f);},'zzvJG':'object','KDKlP':function(_0x208c9d,_0x11fbbc){return _0x208c9d(_0x11fbbc);},'GYMcU':_0x450d91(0x27d),'uPHZr':function(_0x3e2450,_0x303a33){return _0x3e2450===_0x303a33;},'FCvXw':_0x450d91(0x1c9),'OCmNu':_0x450d91(0x264),'XpuWy':'https'};return new Promise((_0x11c622,_0x3dc30b)=>{const _0xe332bc=_0x450d91,_0x4a902a={'rukXA':function(_0x445c7e,_0x4ca088){return _0x18b7db['jCAMZ'](_0x445c7e,_0x4ca088);},'rThvQ':function(_0x1c6388,_0x4655ad){const _0x1416a1=a117_0x31fd;return _0x18b7db[_0x1416a1(0x20f)](_0x1c6388,_0x4655ad);},'kHTRW':function(_0x35210b,_0x54b94c){const _0x10e3f9=a117_0x31fd;return _0x18b7db[_0x10e3f9(0x18c)](_0x35210b,_0x54b94c);},'pByZj':_0x18b7db[_0xe332bc(0x22c)],'lMfuD':function(_0x37fee6,_0x447161){const _0x4584d1=_0xe332bc;return _0x18b7db[_0x4584d1(0x19e)](_0x37fee6,_0x447161);},'MTyxT':_0x18b7db[_0xe332bc(0x1b8)],'lZAxe':function(_0x65e20c,_0x2f874d){const _0xcb164c=_0xe332bc;return _0x18b7db[_0xcb164c(0x21b)](_0x65e20c,_0x2f874d);}},_0x11c865={..._0x56adfb,...{'method':_0x55434c,'url':API_URL+'/'+_0x224638,'body':_0x4272c1,'json':_0x18b7db[_0xe332bc(0x1c0)](_0x56adfb[_0xe332bc(0x258)][_0x18b7db[_0xe332bc(0x1c2)]],_0x18b7db['OCmNu']),'agent':API_URL[_0xe332bc(0x25e)](_0x18b7db[_0xe332bc(0x1c5)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x18b7db[_0xe332bc(0x1c0)](_0x224638,SCREENSHOT_ENDPOINT)&&(_0x11c865[_0xe332bc(0x257)]=API_URL['includes'](_0x18b7db['XpuWy'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper['nodeRequest'](_0x55434c,_0x224638,_0x11c865,_0x56adfb,API_URL)['then'](({statusCode:_0x2b3ba1,body:_0x4091d1})=>{const _0x4154b7=_0xe332bc;if(_0x4a902a['rukXA'](_0x2b3ba1,0xc8))_0x4a902a[_0x4154b7(0x287)](_0x3dc30b,_0x4091d1?_0x4091d1:_0x4154b7(0x1c6)+_0x2b3ba1);else{if(_0x2606d7)try{_0x4a902a[_0x4154b7(0x20b)](typeof _0x4091d1,_0x4a902a['pByZj'])&&(_0x4091d1=JSON[_0x4154b7(0x240)](_0x4091d1));}catch(_0x324586){_0x4a902a[_0x4154b7(0x260)](_0x3dc30b,_0x4a902a[_0x4154b7(0x273)]);return;}const _0x455bfc={};_0x455bfc[_0x4154b7(0x288)]=_0x4091d1,_0x4a902a[_0x4154b7(0x191)](_0x11c622,_0x455bfc);}})[_0xe332bc(0x297)](_0x4c7679=>{const _0x29611f=_0xe332bc;_0x4c7679&&_0x18b7db[_0x29611f(0x21b)](_0x3dc30b,_0x4c7679);});});},exports[a117_0x11b399(0x276)]=_0x17bcc1=>{const _0x48a796=a117_0x11b399;if(process[_0x48a796(0x1ee)]['TEST_REPORTING_BUILD_TAG'])return process['env'][_0x48a796(0x1da)][_0x48a796(0x295)](',');if(process[_0x48a796(0x1ee)][_0x48a796(0x1de)])return process['env']['TEST_OBSERVABILITY_BUILD_TAG'][_0x48a796(0x295)](',');if(_0x17bcc1[_0x48a796(0x252)])return _0x17bcc1['buildTag'];return[];},exports[a117_0x11b399(0x26e)]=(_0xd63bb0=!![])=>{const _0x54206a=a117_0x11b399,_0x4aeaa9={};_0x4aeaa9[_0x54206a(0x226)]=_0x54206a(0x264),_0x4aeaa9[_0x54206a(0x1f8)]=_0x54206a(0x256),_0x4aeaa9[_0x54206a(0x28e)]=_0x54206a(0x207);const _0x4f38df=_0x4aeaa9,_0x48fac8={};_0x48fac8[_0x54206a(0x1c9)]=_0x4f38df[_0x54206a(0x226)],_0x48fac8[_0x54206a(0x28a)]=_0x4f38df[_0x54206a(0x1f8)];const _0x2b66df=_0x48fac8;return _0xd63bb0&&process[_0x54206a(0x1ee)][_0x54206a(0x24a)]&&(_0x2b66df[_0x4f38df['WIMGG']]=_0x54206a(0x1ca)+process[_0x54206a(0x1ee)]['BROWSERSTACK_TESTHUB_JWT']),_0x2b66df;},exports['extractValuesWithRegexKeyMatch']=_0x414513=>{const _0x4a818c=a117_0x11b399,_0x2c452f={};_0x2c452f[_0x4a818c(0x1bb)]=_0x4a818c(0x24b);const _0x4e03bb=_0x2c452f,_0x21bf59=[],_0x3903b7=new RegExp(_0x4e03bb['lIskM'],'i');return Object[_0x4a818c(0x1e0)](_0x414513)[_0x4a818c(0x246)](_0x1b3af6=>_0x3903b7[_0x4a818c(0x1e8)](_0x1b3af6))[_0x4a818c(0x244)](_0x26f5b2=>_0x21bf59[_0x4a818c(0x29b)](_0x414513[_0x26f5b2])),_0x21bf59;},exports[a117_0x11b399(0x210)]=_0xd7eefe=>{const _0x457507=a117_0x11b399,_0x27e222=[],_0x3b595c=_0xd7eefe[_0x457507(0x195)]||process[_0x457507(0x1ee)][_0x457507(0x243)];return _0x3b595c&&_0x27e222[_0x457507(0x29b)](_0x3b595c),_0x27e222['push'](...exports[_0x457507(0x289)](process[_0x457507(0x1ee)])),_0x27e222[_0x457507(0x29b)](...exports[_0x457507(0x289)](_0xd7eefe)),_0x27e222;},exports[a117_0x11b399(0x213)]=_0x3f958f=>{const _0x4d7723=a117_0x11b399;if(!_0x3f958f)return'';return _0x3f958f[_0x4d7723(0x19b)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a117_0x11b399(0x1b9)]=(_0x2477c6=0x64)=>new Promise(_0x5ad367=>setTimeout(_0x5ad367,_0x2477c6));const getPlatformName=()=>{const _0x35d52a=a117_0x11b399,_0x28e84f={};_0x28e84f[_0x35d52a(0x2a0)]=function(_0x27db09,_0x33cfca){return _0x27db09===_0x33cfca;},_0x28e84f['exltw']=_0x35d52a(0x1e4),_0x28e84f[_0x35d52a(0x1b5)]='Windows',_0x28e84f[_0x35d52a(0x267)]=function(_0xc0a43b,_0xd4e393){return _0xc0a43b===_0xd4e393;},_0x28e84f[_0x35d52a(0x298)]='darwin',_0x28e84f[_0x35d52a(0x23b)]=_0x35d52a(0x225),_0x28e84f[_0x35d52a(0x194)]=_0x35d52a(0x211),_0x28e84f[_0x35d52a(0x292)]=_0x35d52a(0x206),_0x28e84f[_0x35d52a(0x27b)]=_0x35d52a(0x190);const _0x1d92c9=_0x28e84f;if(_0x1d92c9[_0x35d52a(0x2a0)](process[_0x35d52a(0x1d2)],_0x1d92c9[_0x35d52a(0x1aa)]))return _0x1d92c9[_0x35d52a(0x1b5)];if(_0x1d92c9[_0x35d52a(0x267)](process[_0x35d52a(0x1d2)],_0x1d92c9['YHBbk']))return _0x1d92c9[_0x35d52a(0x23b)];if(_0x1d92c9[_0x35d52a(0x2a0)](process['platform'],_0x1d92c9[_0x35d52a(0x194)]))return _0x1d92c9[_0x35d52a(0x292)];return _0x1d92c9[_0x35d52a(0x27b)];},getMacOSVersion=()=>{const _0x65d4fd=a117_0x11b399,_0x45af82={};_0x45af82[_0x65d4fd(0x27a)]=_0x65d4fd(0x25b);const _0x808469=_0x45af82;return child_process[_0x65d4fd(0x274)](_0x808469[_0x65d4fd(0x27a)])[_0x65d4fd(0x236)]()[_0x65d4fd(0x1cf)]();},getLinuxDetails=()=>{const _0x208ad2={'KKwxp':function(_0x4c979e,_0xb171f8){return _0x4c979e(_0xb171f8);},'IBNCo':function(_0x50a254,_0x3ac37a){return _0x50a254(_0x3ac37a);}};return new Promise((_0x4985c1,_0x46b19d)=>{const _0x54fd5f=a117_0x31fd,_0x5d0938={'uGFmN':function(_0x1951e3,_0x151f62){return _0x208ad2['KKwxp'](_0x1951e3,_0x151f62);},'tMPUL':function(_0x288e41,_0x5f3ebf){const _0x52553e=a117_0x31fd;return _0x208ad2[_0x52553e(0x1b6)](_0x288e41,_0x5f3ebf);}};_0x208ad2[_0x54fd5f(0x291)](getos,(_0xa495d,_0x3ddc26)=>{const _0x44cb6d=_0x54fd5f;if(_0xa495d)return _0x5d0938[_0x44cb6d(0x18d)](_0x46b19d,_0xa495d);_0x5d0938[_0x44cb6d(0x1ac)](_0x4985c1,_0x3ddc26);});});};function a117_0x59eb(){const _0x502aee=['OS\x20X','GcRQa','6gQSnTD','TvbrJ','lXFhE','child_process','appium:app','zzvJG','capabilities','\x20:\x20','NVYrW','release','/builds/','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','lodash','AXKNo','spy','toString','JdXrX','O11yHashedID','parseFileNames','TEST_ATTACHMENT','NgnFF','AssertionError','local_grid','http','map','parse','NTDAR','FvbpL','CUSTOM_TAG','forEach','Error\x20in\x20getting\x20Linux\x20Details','filter','../../helpers/request-spy','JEST','getPlatform','BROWSERSTACK_TESTHUB_JWT','^CUSTOM_TAG_\x5cd+$','O11Y_URL','jest','FNjKE','lGCWO','BROWSERSTACK_CONFIG_FILE_PATH','modifyReqForTraceUpload','buildTag','@cucumber/cucumber','prefix','url','true','agent','headers','bs:addLog:','ObservabilitySync:','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','PLAYWRIGHT','wQRzr','includes','match','lMfuD','printBuildLink','mocha','json','application/json','SSFVU','oNBEB','hxCsv','WAGHB','platformVersion','../helper','getUserCredentials','wYupM','annotate','getDefaultHeaders','util','turboScaleGridDetails','Agent','4081PVHywR','MTyxT','execSync','714213gjbVFO','getBuildTags','BROWSERSTACK_TEST_REPORTING','UUSUp','browserstack','tgMaG','UVSZO','default','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','getBrowserName','sendPlatformDetails','\x20]\x20','LogCreated','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','1051707UeCdsl','\x20]\x20Build\x20Not\x20Found\x20%s','map_','rOaXn','rThvQ','data','extractValuesWithRegexKeyMatch','X-BSTACK-TESTOPS','measureWrapper','getBrowserVersion','5560miWPkZ','WIMGG','toJSON','cwd','IBNCo','NXtlk','kwNXV','BS_TESTOPS_BUILD_HASHED_ID','split','BROWSERSTACK_RERUN_TESTS','catch','YHBbk','enLAh','FYKYG','push','bs:addPlatformDetails:','wBzmq','readConfig','CODECEPT','ybFXM','BROWSERSTACK_TEST_OBSERVABILITY','FnMAv','expanded','ppFRi','getPackageVersion','rNGma','Windows','./constants','Visit\x20','jCAMZ','uGFmN','../../bin/v2/browserstackCLI','Qknpm','Unknown','lZAxe','getAccessKey','ATS_HUB_URL_REGEX','cpePz','customTag','isUndefined','emit','../logger','undefined','dlGnU','replace','zcxja','timeout','KDKlP','automate','703910sSFDor','76fFfpTJ','host','log','backtrace','prefixTestPath','wnKmM','zApil','][\x20','4852692WlwLQU','exltw','maxSockets','tMPUL','error','windows-release','nodeRequest','platformName','HUB_URL_REGEX','relativeTestFilePath','debug','lvriZ','JPvME','KKwxp','null','GYMcU','sleep','152170SttwdC','lIskM','keepAlive','asyncAwaitNodeReq','2|0|5|3|4|1','CUCUMBER','uPHZr','getFrameworkVersion','FCvXw','getos','TEST_REPORTING_ANALYTICS','XpuWy','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','hostname','ouODs','Content-Type','Bearer\x20','yYnsI','config','XkTrO','BROWSERSTACK_OBSERVABILITY_DEBUG','trim','getCapabilities','length','platform','@playwright/test','maxTotalSockets','toISOString','stack','jqYLU','format','RlDOa','TEST_REPORTING_BUILD_TAG','MOCHA','35586991LyfOSg','omBzn','TEST_OBSERVABILITY_BUILD_TAG','AKvPN','keys','BbZvc','BROWSERSTACK_TEST_REPORTING_DEBUG','getSyncScript','win32','nzkIU','bstack:options','pid','test','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','BROWSERSTACK_TEST_OBSERVABILITY_YML','UnhandledError','stringify','env','fyyXv','TXwnf','140GXNLdi','winstonLogger','addRequestSpy','uOhBI','../../bin/utils/logPatcher','codeceptjs','yqrkP','lkKNQ','../performance/performance-tester','message','object','dist','nttSu','../../../src/bin/utils/constants','seoGC','getPlatformDetails','rootDir','RiILq','__cloud_provider___','logs','AmxtK','Linux','Authorization','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','app','info','kHTRW','MzWAs','uxmfp','body','XbdvG','getCustomTags','linux','cmDBr','removeAnsiColors','Uploading\x20trace\x20logs\x20to:\x20','LytnB','HTTP','getSession','isTestObservabilitySession','isArray','CODECEPT_CUCUMBER','qHRiK','getFailureType','TEST_PLATFORM','trace','https','silly','failureData','patchConsoleLogger','git-last-commit','SFoFk'];a117_0x59eb=function(){return _0x502aee;};return a117_0x59eb();}exports[a117_0x11b399(0x200)]=async()=>{const _0x33b5e4=a117_0x11b399,_0x2d5246={'enLAh':function(_0x3220be){return _0x3220be();},'jqYLU':'OS\x20X','FNjKE':function(_0x56daaa){return _0x56daaa();},'lXFhE':_0x33b5e4(0x189),'uOhBI':_0x33b5e4(0x1ae),'ZKzoR':_0x33b5e4(0x206),'zIzVd':_0x33b5e4(0x245)};let _0x415f6f=_0x2d5246[_0x33b5e4(0x299)](getPlatformName),_0x380dd1=os['release']()['toString']();switch(_0x415f6f){case _0x2d5246[_0x33b5e4(0x1d7)]:_0x380dd1=_0x2d5246[_0x33b5e4(0x24e)](getMacOSVersion);break;case _0x2d5246[_0x33b5e4(0x229)]:try{const _0x1bfa91=(await import(_0x2d5246[_0x33b5e4(0x1f4)]))[_0x33b5e4(0x27c)];_0x380dd1=_0x2d5246['FNjKE'](_0x1bfa91);}catch(_0x467031){exports[_0x33b5e4(0x1b3)]('Error\x20in\x20importing\x20windows-release\x20'+_0x467031[_0x33b5e4(0x236)]());}break;case _0x2d5246['ZKzoR']:try{const _0x330741=await _0x2d5246['enLAh'](getLinuxDetails);_0x330741['dist']&&(_0x415f6f=_0x330741[_0x33b5e4(0x1fc)]),_0x330741[_0x33b5e4(0x230)]&&(_0x380dd1=_0x330741[_0x33b5e4(0x230)][_0x33b5e4(0x236)]());}catch(_0x39abf9){exports[_0x33b5e4(0x1b3)](_0x2d5246['zIzVd']);}break;default:break;}const _0x3bd4fc={};return _0x3bd4fc[_0x33b5e4(0x1b0)]=_0x415f6f,_0x3bd4fc[_0x33b5e4(0x269)]=_0x380dd1,_0x3bd4fc;},exports[a117_0x11b399(0x221)]=(_0xe77804,_0x4b0e21)=>{const _0x689725=a117_0x11b399,_0x37ce29={};_0x37ce29[_0x689725(0x1df)]=function(_0x516046,_0x5893cc){return _0x516046===_0x5893cc;},_0x37ce29[_0x689725(0x1b4)]=_0x689725(0x1e8),_0x37ce29[_0x689725(0x26c)]=function(_0x54d7a4,_0x43d047){return _0x54d7a4===_0x43d047;},_0x37ce29[_0x689725(0x286)]='err';const _0x1a4a8e=_0x37ce29;if(!_0xe77804)return[];try{if(_0x1a4a8e[_0x689725(0x1df)](_0x4b0e21,_0x1a4a8e[_0x689725(0x1b4)]))return _0xe77804[_0x689725(0x23f)](_0x3d1853=>{const _0x5a4a89=_0x689725,{stack:_0x245a1d,..._0x2ff391}=_0x3d1853,_0x2012f6=Object[_0x5a4a89(0x1e0)](_0x2ff391)['map'](_0x1faa6c=>{return _0x1faa6c+':\x20'+_0x2ff391[_0x1faa6c];}),_0x25bc78=_0x245a1d?exports[_0x5a4a89(0x213)](_0x245a1d)[_0x5a4a89(0x295)](/\r?\n/):[exports[_0x5a4a89(0x213)](_0x3d1853[_0x5a4a89(0x1fa)])],_0x1b72b={};return _0x1b72b['backtrace']=_0x25bc78,_0x1b72b[_0x5a4a89(0x2a3)]=_0x2012f6,_0x1b72b;});else{if(_0x1a4a8e[_0x689725(0x26c)](_0x4b0e21,_0x1a4a8e['rOaXn'])){const _0x35c5dc=[],_0x11d49b=[];return Object[_0x689725(0x1e0)](_0xe77804)[_0x689725(0x244)](_0x2bf18f=>{const _0x3a276e=_0x689725;try{_0x11d49b['push'](_0x2bf18f+':\x20'+_0xe77804[_0x2bf18f]);}catch(_0x32ee6a){exports['debug'](_0x3a276e(0x1e9)+_0x32ee6a[_0x3a276e(0x1fa)]+_0x3a276e(0x22e)+_0x32ee6a[_0x3a276e(0x1a4)]);}}),_0x35c5dc[_0x689725(0x29b)]({'backtrace':exports[_0x689725(0x213)](_0xe77804['stack'])['split'](/\r?\n/),'expanded':_0x11d49b}),_0x35c5dc;}}return[];}catch(_0x2ef82e){exports[_0x689725(0x1b3)](_0x689725(0x1e9)+_0x2ef82e[_0x689725(0x1fa)]+'\x20:\x20'+_0x2ef82e[_0x689725(0x1a4)]);}return[];};class PathHelper{constructor(_0x3160b9,_0x2724bd){const _0x31b1ec=a117_0x11b399;this[_0x31b1ec(0x1cc)]=_0x3160b9,this['prefix']=_0x2724bd;}[a117_0x11b399(0x1b2)](_0x51eaa9){const _0x2fe0e2=a117_0x11b399,_0x30a2eb=this[_0x2fe0e2(0x1cc)][_0x2fe0e2(0x290)]||this[_0x2fe0e2(0x1cc)][_0x2fe0e2(0x201)];return path['relative'](_0x30a2eb,_0x51eaa9);}[a117_0x11b399(0x1a5)](_0x3e4b21){const _0x447aa5=a117_0x11b399,_0x1fb111=this['relativeTestFilePath'](_0x3e4b21);return this[_0x447aa5(0x254)]?path['join'](this[_0x447aa5(0x254)],_0x1fb111):_0x1fb111;}}exports['PathHelper']=PathHelper,exports[a117_0x11b399(0x1f3)]=(_0x13e8a4=!![])=>{const _0x2819fd=a117_0x11b399,_0x5bb293={};_0x5bb293[_0x2819fd(0x1e5)]=function(_0x4dce13,_0x20dc6f){return _0x4dce13===_0x20dc6f;},_0x5bb293[_0x2819fd(0x2a4)]=_0x2819fd(0x28a),_0x5bb293['TXwnf']=_0x2819fd(0x256),_0x5bb293[_0x2819fd(0x1cd)]=_0x2819fd(0x216),_0x5bb293[_0x2819fd(0x241)]=_0x2819fd(0x279),_0x5bb293[_0x2819fd(0x242)]=_0x2819fd(0x23d);const _0x53fc81=_0x5bb293;requestSpy[_0x2819fd(0x235)]((_0x34c1d8,_0x1b9a1f)=>{const _0x37e630=_0x2819fd;_0x1b9a1f&&!(_0x1b9a1f[_0x37e630(0x258)]&&_0x53fc81[_0x37e630(0x1e5)](_0x1b9a1f[_0x37e630(0x258)][_0x53fc81[_0x37e630(0x2a4)]],_0x53fc81[_0x37e630(0x1f0)]))&&(_0x1b9a1f[_0x37e630(0x1a2)]=_0x1b9a1f[_0x37e630(0x1c7)],delete _0x1b9a1f[_0x37e630(0x1c7)],_0x13e8a4&&process['emit'](_0x37e630(0x259)+process[_0x37e630(0x1e7)],{'timestamp':new Date()[_0x37e630(0x1d5)](),'level':null,'message':null,'kind':_0x53fc81[_0x37e630(0x1cd)],'http_response':_0x1b9a1f})),_0x1b9a1f&&(constants[_0x37e630(0x1b1)][_0x37e630(0x1e8)](_0x1b9a1f[_0x37e630(0x1a2)])||constants[_0x37e630(0x193)][_0x37e630(0x1e8)](_0x1b9a1f[_0x37e630(0x1a2)]))?global['__cloud_provider___']=_0x53fc81['NTDAR']:global['__cloud_provider___']=_0x53fc81['FvbpL'];});},exports[a117_0x11b399(0x222)]=()=>{const _0x43552b=a117_0x11b399,_0x46c1fe={'HyMtf':function(_0x23e5c8,_0xf83657){return _0x23e5c8(_0xf83657);}};console={},Object[_0x43552b(0x1e0)](consoleHolder)[_0x43552b(0x244)](_0x5d1f24=>{_0x46c1fe['HyMtf'](isFunction,consoleHolder[_0x5d1f24])?console[_0x5d1f24]=(..._0x2f15a8)=>{const _0xdd576a=a117_0x31fd;try{!Object[_0xdd576a(0x1e0)](BSTestOpsPatcher)[_0xdd576a(0x25e)](_0x5d1f24)?consoleHolder[_0x5d1f24](..._0x2f15a8):BSTestOpsPatcher[_0x5d1f24](..._0x2f15a8);}catch(_0x12faf0){consoleHolder[_0x5d1f24](..._0x2f15a8);}}:console[_0x5d1f24]=consoleHolder[_0x5d1f24];});},exports[a117_0x11b399(0x1e3)]=()=>'browserstack_executor:\x20'+JSON[a117_0x11b399(0x1ed)]({'action':a117_0x11b399(0x26d),'arguments':{'data':a117_0x11b399(0x25a)+Date['now'](),'level':a117_0x11b399(0x1b3)}}),exports['getObservabilityLinkedProductName']=_0x56cae7=>{const _0x33e911=a117_0x11b399,_0x1ed803={};_0x1ed803['RxGWi']=function(_0x5cd56c,_0x277785){return _0x5cd56c===_0x277785;},_0x1ed803['lGCWO']=_0x33e911(0x279),_0x1ed803[_0x33e911(0x1a6)]=_0x33e911(0x22b),_0x1ed803[_0x33e911(0x1d9)]=_0x33e911(0x209),_0x1ed803[_0x33e911(0x1f7)]=function(_0x532da1,_0x4e3fb7){return _0x532da1>_0x4e3fb7;},_0x1ed803['pjyMr']='app-automate',_0x1ed803[_0x33e911(0x1c8)]=_0x33e911(0x1e6),_0x1ed803[_0x33e911(0x202)]=_0x33e911(0x270),_0x1ed803[_0x33e911(0x1fd)]='turboscale',_0x1ed803[_0x33e911(0x25d)]=_0x33e911(0x19f);const _0x39dc20=_0x1ed803;let _0x4c06b6=null;try{if(_0x39dc20['RxGWi'](global[_0x33e911(0x203)],_0x39dc20[_0x33e911(0x24f)])){if(_0x56cae7[_0x39dc20[_0x33e911(0x1a6)]]||_0x56cae7[_0x39dc20['RlDOa']]||!bsSetupHelper[_0x33e911(0x196)](global[_0x33e911(0x22d)])&&_0x39dc20[_0x33e911(0x1f7)](global[_0x33e911(0x22d)][_0x33e911(0x1d1)],0x0)&&(global[_0x33e911(0x22d)][0x0][_0x39dc20[_0x33e911(0x1d9)]]||global[_0x33e911(0x22d)][0x0][_0x39dc20[_0x33e911(0x1a6)]]))_0x4c06b6=_0x39dc20['pjyMr'];else _0x56cae7[_0x39dc20[_0x33e911(0x1c8)]]&&_0x56cae7[_0x39dc20[_0x33e911(0x1c8)]][_0x39dc20[_0x33e911(0x202)]]?_0x4c06b6=_0x39dc20[_0x33e911(0x1fd)]:_0x4c06b6=_0x39dc20[_0x33e911(0x25d)];}}catch(_0x53f58f){exports[_0x33e911(0x1b3)](_0x33e911(0x232)+constants[_0x33e911(0x1c4)]+'\x20test\x20instance\x20:\x20'+_0x53f58f);}return _0x4c06b6;},exports[a117_0x11b399(0x27f)]=async(_0x887ac,_0x195ab9,_0x20b236=![])=>{const _0x2403d8=a117_0x11b399,_0x958225={};_0x958225['pyOih']=function(_0x1ed8fe,_0x55d5f5){return _0x1ed8fe===_0x55d5f5;},_0x958225[_0x2403d8(0x18f)]=_0x2403d8(0x279),_0x958225[_0x2403d8(0x266)]='unknown_grid',_0x958225[_0x2403d8(0x19a)]=_0x2403d8(0x21d);const _0x2c85e3=_0x958225;try{const _0x5a390c=await _0x887ac['getCapabilities'](),_0x9793d3=await _0x887ac[_0x2403d8(0x217)](),_0x89dce8={},_0x1bf728=Object['fromEntries'](_0x9793d3[_0x2403d8(0x1d0)]()[_0x2403d8(0x285)]),_0x3125ff={'product':exports['getObservabilityLinkedProductName'](_0x1bf728),'capabilities':_0x1bf728,'platform':_0x5a390c[_0x2403d8(0x249)](),'platform_version':bsSetupHelper['getPlatformVersion'](_0x2c85e3['pyOih'](global[_0x2403d8(0x203)],_0x2c85e3['Qknpm'])),'browser':_0x5a390c[_0x2403d8(0x27e)](),'browser_version':_0x5a390c[_0x2403d8(0x28c)](),'session_id':_0x9793d3[_0x2403d8(0x28f)]()};global[_0x2403d8(0x203)]?_0x89dce8[global[_0x2403d8(0x203)]]=_0x3125ff:_0x89dce8[_0x2c85e3[_0x2403d8(0x266)]]=_0x3125ff;if(_0x20b236)return _0x89dce8;process[_0x2403d8(0x197)](_0x2403d8(0x29c)+process[_0x2403d8(0x1e7)],{'timestamp':new Date()[_0x2403d8(0x1d5)](),'level':null,'message':null,'kind':_0x2c85e3['dlGnU'],'http_response':_0x89dce8,'uuid':_0x195ab9});}catch(_0x185a64){exports[_0x2403d8(0x1b3)]('Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x185a64);}},exports['isInternalHook']=_0x3ae01f=>{const _0xe76bd9=a117_0x11b399;return _0x3ae01f&&_0x3ae01f[_0xe76bd9(0x236)]()[_0xe76bd9(0x25f)](/browserstack internal helper hook/);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a118_0x55de67=a118_0xbfd4;function a118_0xbfd4(_0x4d1ebc,_0x3c6c1b){var _0x4882dd=a118_0x4882();return a118_0xbfd4=function(_0xbfd4dd,_0x24415f){_0xbfd4dd=_0xbfd4dd-0x78;var _0x39bc21=_0x4882dd[_0xbfd4dd];return _0x39bc21;},a118_0xbfd4(_0x4d1ebc,_0x3c6c1b);}(function(_0x29456a,_0x6dced0){var _0x13be69=a118_0xbfd4,_0x407740=_0x29456a();while(!![]){try{var _0x3d4765=-parseInt(_0x13be69(0x87))/0x1+parseInt(_0x13be69(0x84))/0x2+-parseInt(_0x13be69(0x82))/0x3+parseInt(_0x13be69(0x7d))/0x4+-parseInt(_0x13be69(0x7f))/0x5+-parseInt(_0x13be69(0x80))/0x6*(parseInt(_0x13be69(0x79))/0x7)+parseInt(_0x13be69(0x78))/0x8*(parseInt(_0x13be69(0x7b))/0x9);if(_0x3d4765===_0x6dced0)break;else _0x407740['push'](_0x407740['shift']());}catch(_0x845d95){_0x407740['push'](_0x407740['shift']());}}}(a118_0x4882,0x25c42));var a118_0x4ab550={};function a118_0x4882(){var _0xd7f6a9=['1143835lAWdUn','72eofPJM','testorchestration/api/v1/failed-tests','506403cPZRdI','https://collector-observability.browserstack.com','8860LSpBCs','ORCHESTRATION_API_URL','exports','220616TqQSRe','56DgiGin','48559NQkdQc','testorchestration/api/v1/split-tests','1064970VkuuEK','FAILED_TESTS_ENDPOINT','93512KcpDpB','SPLIT_TESTS_ENDPOINT'];a118_0x4882=function(){return _0xd7f6a9;};return a118_0x4882();}a118_0x4ab550[a118_0x55de67(0x85)]=a118_0x55de67(0x83),a118_0x4ab550[a118_0x55de67(0x7c)]=a118_0x55de67(0x81),a118_0x4ab550[a118_0x55de67(0x7e)]=a118_0x55de67(0x7a),module[a118_0x55de67(0x86)]=a118_0x4ab550;
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a119_0x419370=a119_0x27f5;(function(_0xf5bd10,_0x4d03a1){const _0x106633=a119_0x27f5,_0x26fc47=_0xf5bd10();while(!![]){try{const _0x534f20=-parseInt(_0x106633(0x1c8))/0x1+parseInt(_0x106633(0x194))/0x2*(parseInt(_0x106633(0x1dc))/0x3)+-parseInt(_0x106633(0x1c7))/0x4*(-parseInt(_0x106633(0x1b1))/0x5)+parseInt(_0x106633(0x1be))/0x6*(parseInt(_0x106633(0x188))/0x7)+parseInt(_0x106633(0x1e3))/0x8+-parseInt(_0x106633(0x1ce))/0x9+parseInt(_0x106633(0x1b9))/0xa*(-parseInt(_0x106633(0x1ad))/0xb);if(_0x534f20===_0x4d03a1)break;else _0x26fc47['push'](_0x26fc47['shift']());}catch(_0x410347){_0x26fc47['push'](_0x26fc47['shift']());}}}(a119_0x1bf1,0x30c8f));function a119_0x1bf1(){const _0x229ab6=['winstonLogger','_sendFailedTestsToAPI','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','toISOString','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','_CI]\x20API\x20failed\x20count\x20updated:\x20','failedTests','QzuLl','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','reportedFailuresToAPI','15ZfiaQI','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','_Local]\x20State\x20initialized\x20from\x20file.','stopPolling','TMqzQ','failFast.active','uhAbU','1825296WwqxgZ','failFastActiveMarkerPath','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','nnWFS','fileHelper','yLGul','size','projectName','xCphj','getFailedTestsCount','from','nVIGO',',\x20threshold:\x20','BROWSERSTACK_BUILD_RUN_IDENTIFIER','_fetchAPIFailedCount','stack','_CI]\x20Polling\x20started\x20with\x20interval:\x20','startPolling','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','add','hUaHP','failFastActive','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','workingDir','fXgru','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','TvYPC','warn','lastAPIFailedCount','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','exports','readState','lxMzX','CKSTJ','passed','cozCh',',\x20CI\x20Mode:\x20','eVZHF','buildName','stateFilePath',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','FailFastManager','info','uniqueFailedTests','_initializeStateFromFile','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','shouldFailFast','jpOIA','BROWSERSTACK_NODE_INDEX','debug','945iDUdHo','length','_pollFailedTests','FPgsK','putFailedTests','failFastConfig','../logger','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20',']\x20Polling\x20stopped.','failureThresholdCount','kAGrj','JbZtE','108822PMmTXM','has','join','ms.','buildRunIdentifier','pollingInterval','writeFileSync','_getDefaultState','ymsdX','newState',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','PnwTU','MTTGr','writeState','mZAXP','env','\x20to\x20API:\x20','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','qiBUy','cleanup','catch','tVAPP','\x20(was\x20','Sburz','3391487MyzUPQ','recordTestResult','BROWSERSTACK_TOTAL_NODE_COUNT','VJjkx','1636220MPuXvu','LIGNI','state','totalTests','cBpks','pqLls','rumkQ','isCIMode','10yOptCR','IPBAs',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','ymWCx','error','7710ZypSgU','\x0aStack:\x20','VFgPT','NUgwT','number','LWZWq','failFastState.lock','failFastState.json','_CI]\x20Error\x20during\x20polling\x20logic:\x20','4ktydoL','134714kHNGOG','message','existsSync','nDWar','onTestDone','lockFilePath','3222738WZDpyx','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','DEWIu'];a119_0x1bf1=function(){return _0x229ab6;};return a119_0x1bf1();}const fs=require('fs'),path=require('path'),FileHelper=require('./fileHelper'),RequestUtils=require('./requestUtils'),logger=require(a119_0x419370(0x18e))[a119_0x419370(0x1d1)],POLLING_INTERVAL=0x2710,TAG=a119_0x419370(0x20c);function a119_0x27f5(_0xeaeaab,_0xf23068){const _0x1bf135=a119_0x1bf1();return a119_0x27f5=function(_0x27f5fd,_0x36cd4a){_0x27f5fd=_0x27f5fd-0x184;let _0x1f62f2=_0x1bf135[_0x27f5fd];return _0x1f62f2;},a119_0x27f5(_0xeaeaab,_0xf23068);}class FailFastManager{constructor(_0x240006,_0x50cc02,_0x1f5e14){const _0x3782e4=a119_0x419370,_0x224241={};_0x224241[_0x3782e4(0x204)]=function(_0xf9ddb4,_0x59151b){return _0xf9ddb4+_0x59151b;},_0x224241[_0x3782e4(0x1eb)]=_0x3782e4(0x1bf),_0x224241[_0x3782e4(0x1e2)]=function(_0x5de9da,_0xd041a8){return _0x5de9da||_0xd041a8;},_0x224241[_0x3782e4(0x1e8)]=_0x3782e4(0x1c5),_0x224241[_0x3782e4(0x203)]=_0x3782e4(0x1c4),_0x224241['jBxGa']=_0x3782e4(0x1e1);const _0x1e07db=_0x224241;this[_0x3782e4(0x18d)]=_0x1e07db[_0x3782e4(0x1e2)](_0x240006,{}),this[_0x3782e4(0x209)]=_0x50cc02,this[_0x3782e4(0x1ea)]=_0x1f5e14,this[_0x3782e4(0x1b8)]=!!(process[_0x3782e4(0x1a4)][_0x3782e4(0x1f0)]&&process[_0x3782e4(0x1a4)][_0x3782e4(0x186)]&&process[_0x3782e4(0x1a4)][_0x3782e4(0x1af)]);const _0x5c64ae=this[_0x3782e4(0x18d)][_0x3782e4(0x1fa)];this[_0x3782e4(0x20a)]=path[_0x3782e4(0x196)](_0x5c64ae,_0x1e07db[_0x3782e4(0x1e8)]),this[_0x3782e4(0x1cd)]=path[_0x3782e4(0x196)](_0x5c64ae,_0x1e07db['lxMzX']),this[_0x3782e4(0x1e4)]=path['join'](_0x5c64ae,_0x1e07db['jBxGa']),this[_0x3782e4(0x1e7)]=new FileHelper(this[_0x3782e4(0x18d)],this[_0x3782e4(0x20a)],this[_0x3782e4(0x1cd)],this['_getDefaultState']()),this[_0x3782e4(0x1b3)]=this[_0x3782e4(0x19b)](),this[_0x3782e4(0x199)]=null,this[_0x3782e4(0x1b8)]&&(this[_0x3782e4(0x1db)]=new Set()),this[_0x3782e4(0x20f)]()[_0x3782e4(0x1a9)](_0x449a66=>{const _0x597766=_0x3782e4;logger[_0x597766(0x1bd)]('['+TAG+_0x597766(0x19e)+_0x449a66[_0x597766(0x1c9)]+(_0x449a66[_0x597766(0x1f2)]?_0x1e07db[_0x597766(0x204)](_0x1e07db[_0x597766(0x1eb)],_0x449a66[_0x597766(0x1f2)]):'')),this[_0x597766(0x1b3)]=this[_0x597766(0x19b)]();}),this[_0x3782e4(0x1b8)]&&this[_0x3782e4(0x1f4)](),logger[_0x3782e4(0x187)]('['+TAG+_0x3782e4(0x20b)+this['failFastConfig'][_0x3782e4(0x191)]+_0x3782e4(0x207)+this[_0x3782e4(0x1b8)]);}[a119_0x419370(0x19b)](){const _0x3c16e3={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x3c16e3;}async[a119_0x419370(0x20f)](){const _0x2c9191=a119_0x419370,_0x53829f={};_0x53829f[_0x2c9191(0x192)]=function(_0x5c1096,_0x257a6f){return _0x5c1096+_0x257a6f;},_0x53829f[_0x2c9191(0x185)]='\x0aStack:\x20',_0x53829f[_0x2c9191(0x1c1)]=function(_0x214289,_0x41611c){return _0x214289+_0x41611c;};const _0x199417=_0x53829f;if(this['isCIMode'])try{fs[_0x2c9191(0x1ca)](this[_0x2c9191(0x1e4)])&&(this[_0x2c9191(0x1b3)][_0x2c9191(0x1f8)]=!![],logger[_0x2c9191(0x187)]('['+TAG+_0x2c9191(0x19f)));}catch(_0x354438){logger[_0x2c9191(0x1bd)]('['+TAG+_0x2c9191(0x210)+_0x354438[_0x2c9191(0x1c9)]+(_0x354438[_0x2c9191(0x1f2)]?_0x199417['kAGrj'](_0x199417[_0x2c9191(0x185)],_0x354438[_0x2c9191(0x1f2)]):''));}else try{const _0x32e651=await this[_0x2c9191(0x1e7)][_0x2c9191(0x202)]();if(_0x32e651)this[_0x2c9191(0x1b3)]={...this[_0x2c9191(0x19b)](),..._0x32e651,'uniqueFailedTests':new Set(_0x32e651['uniqueFailedTests']||[])},logger['debug']('['+TAG+_0x2c9191(0x1de));else{logger[_0x2c9191(0x187)]('['+TAG+_0x2c9191(0x1d5));const _0x582010=this['_getDefaultState'](),_0x192360={..._0x582010,'uniqueFailedTests':Array[_0x2c9191(0x1ed)](_0x582010[_0x2c9191(0x20e)])};await this[_0x2c9191(0x1e7)][_0x2c9191(0x1a2)](_0x192360),this[_0x2c9191(0x1b3)]=_0x582010;}}catch(_0x5a5e0b){logger[_0x2c9191(0x187)]('['+TAG+_0x2c9191(0x1dd)+_0x5a5e0b[_0x2c9191(0x1c9)]+(_0x5a5e0b[_0x2c9191(0x1f2)]?_0x199417[_0x2c9191(0x1c1)](_0x199417[_0x2c9191(0x185)],_0x5a5e0b[_0x2c9191(0x1f2)]):'')),this['state']=this[_0x2c9191(0x19b)]();}}async[a119_0x419370(0x1cc)](_0x479f83,_0x5e7b01){const _0x32d78b=a119_0x419370,_0x34f178={};_0x34f178[_0x32d78b(0x1a0)]=function(_0x5d92d1,_0x454596){return _0x5d92d1>_0x454596;},_0x34f178[_0x32d78b(0x1bc)]=function(_0x1644db,_0x47d07f){return _0x1644db>_0x47d07f;},_0x34f178[_0x32d78b(0x1b7)]='failed',_0x34f178[_0x32d78b(0x1e0)]=_0x32d78b(0x205),_0x34f178['kcGfP']=function(_0x542288,_0x3c96de){return _0x542288+_0x3c96de;},_0x34f178[_0x32d78b(0x208)]=_0x32d78b(0x1bf),_0x34f178[_0x32d78b(0x18b)]=function(_0x36b30b,_0x2415a8){return _0x36b30b||_0x2415a8;},_0x34f178[_0x32d78b(0x1fd)]=function(_0x511b2c,_0x4d72fc){return _0x511b2c+_0x4d72fc;};const _0xb7ee72=_0x34f178;if(this[_0x32d78b(0x1b8)])this[_0x32d78b(0x1b3)][_0x32d78b(0x1b4)]+=0x1,_0x5e7b01&&_0xb7ee72[_0x32d78b(0x1a0)](_0x5e7b01[_0x32d78b(0x189)],0x0)&&(!this['reportedFailuresToAPI'][_0x32d78b(0x195)](_0x479f83)&&(await this[_0x32d78b(0x1d2)](_0x479f83),this[_0x32d78b(0x1db)][_0x32d78b(0x1f6)](_0x479f83)));else try{const _0x256b5d={'fullName':_0x479f83,'status':_0x5e7b01&&_0xb7ee72[_0x32d78b(0x1bc)](_0x5e7b01[_0x32d78b(0x189)],0x0)?_0xb7ee72['rumkQ']:_0xb7ee72[_0x32d78b(0x1e0)]},_0x59ef15=await this['fileHelper'][_0x32d78b(0x1ae)](_0x256b5d);this['state']={...this[_0x32d78b(0x19b)](),..._0x59ef15[_0x32d78b(0x19d)],'uniqueFailedTests':new Set(_0x59ef15['newState'][_0x32d78b(0x20e)]||[])};}catch(_0x2113ba){logger[_0x32d78b(0x1bd)]('['+TAG+_0x32d78b(0x200)+_0x2113ba[_0x32d78b(0x1c9)]+(_0x2113ba['stack']?_0xb7ee72['kcGfP'](_0xb7ee72['eVZHF'],_0x2113ba[_0x32d78b(0x1f2)]):''));try{const _0x1feedd=await this[_0x32d78b(0x1e7)][_0x32d78b(0x202)]();this[_0x32d78b(0x1b3)]={...this[_0x32d78b(0x19b)](),..._0xb7ee72[_0x32d78b(0x18b)](_0x1feedd,{}),'uniqueFailedTests':new Set(_0x1feedd?_0x1feedd[_0x32d78b(0x20e)]||[]:[])},logger[_0x32d78b(0x187)]('['+TAG+_0x32d78b(0x1e5));}catch(_0x4514ba){logger[_0x32d78b(0x1bd)]('['+TAG+_0x32d78b(0x1cf)+_0x4514ba['message']+(_0x4514ba[_0x32d78b(0x1f2)]?_0xb7ee72[_0x32d78b(0x1fd)](_0xb7ee72[_0x32d78b(0x208)],_0x4514ba[_0x32d78b(0x1f2)]):'')),this[_0x32d78b(0x1b3)]=this['_getDefaultState']();}}}async[a119_0x419370(0x1d2)](_0x2c6c69){const _0x41f499=a119_0x419370,_0x4a69c3={};_0x4a69c3['qiBUy']=function(_0x583eef,_0x3ff15b){return _0x583eef+_0x3ff15b;},_0x4a69c3['MTTGr']=_0x41f499(0x1bf);const _0x3aa994=_0x4a69c3;if(!this['isCIMode']||!_0x2c6c69)return;try{logger[_0x41f499(0x187)]('['+TAG+_0x41f499(0x18f)+_0x2c6c69);const _0x30da8c={};_0x30da8c[_0x41f499(0x209)]=this[_0x41f499(0x209)],_0x30da8c[_0x41f499(0x1ea)]=this['projectName'],_0x30da8c[_0x41f499(0x1d7)]=[_0x2c6c69],_0x30da8c[_0x41f499(0x198)]=process[_0x41f499(0x1a4)][_0x41f499(0x1f0)],await RequestUtils[_0x41f499(0x18c)](_0x30da8c);}catch(_0x2fad88){logger[_0x41f499(0x1bd)]('['+TAG+'_CI]\x20Error\x20sending\x20failed\x20test\x20'+_0x2c6c69+_0x41f499(0x1a5)+_0x2fad88['message']+(_0x2fad88['stack']?_0x3aa994[_0x41f499(0x1a7)](_0x3aa994[_0x41f499(0x1a1)],_0x2fad88[_0x41f499(0x1f2)]):''));}}async[a119_0x419370(0x1f1)](){const _0x48355e=a119_0x419370,_0x3c8d63={};_0x3c8d63[_0x48355e(0x1c3)]=function(_0x18cf2d,_0xca414d){return _0x18cf2d===_0xca414d;},_0x3c8d63[_0x48355e(0x1b2)]=_0x48355e(0x1c2),_0x3c8d63[_0x48355e(0x1cb)]=function(_0x3ae28f,_0x199496){return _0x3ae28f+_0x199496;},_0x3c8d63[_0x48355e(0x19c)]=_0x48355e(0x1bf),_0x3c8d63[_0x48355e(0x1ee)]=function(_0x767a6f,_0x360b2a){return _0x767a6f!==_0x360b2a;};const _0x4db85a=_0x3c8d63;if(!this['isCIMode'])return 0x0;try{const _0x125271={};_0x125271['buildName']=this[_0x48355e(0x209)],_0x125271[_0x48355e(0x1ea)]=this[_0x48355e(0x1ea)],_0x125271['buildRunIdentifier']=process[_0x48355e(0x1a4)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];const _0x266347=await RequestUtils[_0x48355e(0x1ec)](_0x125271);return logger['debug']('['+TAG+_0x48355e(0x1a6)+_0x266347),_0x4db85a[_0x48355e(0x1c3)](typeof _0x266347,_0x4db85a[_0x48355e(0x1b2)])?_0x266347:0x0;}catch(_0x1924c5){return logger['error']('['+TAG+'_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20'+_0x1924c5[_0x48355e(0x1c9)]+(_0x1924c5[_0x48355e(0x1f2)]?_0x4db85a['nDWar'](_0x4db85a['ymsdX'],_0x1924c5[_0x48355e(0x1f2)]):'')),_0x4db85a[_0x48355e(0x1ee)](this[_0x48355e(0x1b3)][_0x48355e(0x1ff)],undefined)?this['state']['lastAPIFailedCount']:0x0;}}async[a119_0x419370(0x18a)](){const _0x4f5e3d=a119_0x419370,_0x3ac1ce={};_0x3ac1ce[_0x4f5e3d(0x1a3)]=function(_0x1c2164,_0x1119f5){return _0x1c2164!==_0x1119f5;},_0x3ac1ce[_0x4f5e3d(0x1ac)]=function(_0x41526a,_0x4e07d0){return _0x41526a+_0x4e07d0;},_0x3ac1ce['DEWIu']=_0x4f5e3d(0x1bf);const _0x4b3281=_0x3ac1ce;if(!this['isCIMode'])return;try{const _0x4dd032=await this[_0x4f5e3d(0x1f1)]();_0x4b3281[_0x4f5e3d(0x1a3)](_0x4dd032,this[_0x4f5e3d(0x1b3)]['lastAPIFailedCount'])&&(logger[_0x4f5e3d(0x187)]('['+TAG+_0x4f5e3d(0x1d6)+_0x4dd032+_0x4f5e3d(0x1ab)+this['state']['lastAPIFailedCount']+')'),this[_0x4f5e3d(0x1b3)][_0x4f5e3d(0x1ff)]=_0x4dd032);}catch(_0x2c25bb){logger[_0x4f5e3d(0x1bd)]('['+TAG+_0x4f5e3d(0x1c6)+_0x2c25bb[_0x4f5e3d(0x1c9)]+(_0x2c25bb[_0x4f5e3d(0x1f2)]?_0x4b3281[_0x4f5e3d(0x1ac)](_0x4b3281[_0x4f5e3d(0x1d0)],_0x2c25bb[_0x4f5e3d(0x1f2)]):''));}}async['startPolling'](){const _0x2afaac=a119_0x419370,_0x53fafe={'IPBAs':function(_0x514b4b,_0x2354ad,_0x1b55c5){return _0x514b4b(_0x2354ad,_0x1b55c5);}};this['pollingInterval']&&this['stopPolling'](),this[_0x2afaac(0x1b8)]&&(await this[_0x2afaac(0x18a)](),this[_0x2afaac(0x199)]=_0x53fafe[_0x2afaac(0x1ba)](setInterval,async()=>{await this['_pollFailedTests']();},POLLING_INTERVAL),logger[_0x2afaac(0x187)]('['+TAG+_0x2afaac(0x1f3)+POLLING_INTERVAL+_0x2afaac(0x197)));}[a119_0x419370(0x1df)](){const _0x52a5d2=a119_0x419370,_0x3d17b4={'hUaHP':function(_0x4f71d4,_0x23f1ab){return _0x4f71d4(_0x23f1ab);}};this['pollingInterval']&&(_0x3d17b4[_0x52a5d2(0x1f7)](clearInterval,this[_0x52a5d2(0x199)]),this[_0x52a5d2(0x199)]=null,logger[_0x52a5d2(0x187)]('['+TAG+_0x52a5d2(0x190)));}async[a119_0x419370(0x184)](){const _0x20d203=a119_0x419370,_0x5c2e34={};_0x5c2e34['VFgPT']=function(_0x4dc620,_0x4b3ef1){return _0x4dc620===_0x4b3ef1;},_0x5c2e34[_0x20d203(0x1fb)]=function(_0x3ac5d5,_0x40c8f4){return _0x3ac5d5===_0x40c8f4;},_0x5c2e34[_0x20d203(0x1aa)]=function(_0x440994,_0x345a72){return _0x440994<=_0x345a72;},_0x5c2e34[_0x20d203(0x1b5)]=function(_0x49de8a,_0x3feac5){return _0x49de8a+_0x3feac5;},_0x5c2e34[_0x20d203(0x1e6)]=_0x20d203(0x1bf),_0x5c2e34[_0x20d203(0x1d8)]=function(_0x594ecc,_0x3afd14){return _0x594ecc!==_0x3afd14;},_0x5c2e34[_0x20d203(0x1b0)]=function(_0x22bb12,_0x507ba9){return _0x22bb12>=_0x507ba9;},_0x5c2e34[_0x20d203(0x206)]=function(_0x19b7f5,_0x392e29){return _0x19b7f5+_0x392e29;};const _0x5640a8=_0x5c2e34,{failureThresholdCount:_0x3abdad}=this[_0x20d203(0x18d)];if(_0x5640a8[_0x20d203(0x1c0)](_0x3abdad,null)||_0x5640a8['fXgru'](_0x3abdad,undefined)||_0x5640a8[_0x20d203(0x1aa)](_0x3abdad,0x0))return logger[_0x20d203(0x187)]('['+TAG+_0x20d203(0x1bb)),![];if(this[_0x20d203(0x1b8)]){try{if(fs[_0x20d203(0x1ca)](this[_0x20d203(0x1e4)]))return logger[_0x20d203(0x187)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.'),!this[_0x20d203(0x1b3)]['failFastActive']&&(this[_0x20d203(0x1b3)][_0x20d203(0x1f8)]=!![]),this['stopPolling'](),!![];}catch(_0x3cef21){logger[_0x20d203(0x1bd)]('['+TAG+_0x20d203(0x210)+_0x3cef21['message']+(_0x3cef21[_0x20d203(0x1f2)]?_0x5640a8[_0x20d203(0x1b5)](_0x5640a8[_0x20d203(0x1e6)],_0x3cef21[_0x20d203(0x1f2)]):''));}const _0x249b1b=_0x5640a8[_0x20d203(0x1d8)](this[_0x20d203(0x1b3)][_0x20d203(0x1ff)],undefined)?this[_0x20d203(0x1b3)]['lastAPIFailedCount']:0x0;if(_0x5640a8[_0x20d203(0x1b0)](_0x249b1b,_0x3abdad)){logger['info']('['+TAG+'_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x249b1b+',\x20threshold:\x20'+_0x3abdad+'.');try{fs[_0x20d203(0x19a)](this[_0x20d203(0x1e4)],new Date()[_0x20d203(0x1d4)]()),logger[_0x20d203(0x187)]('['+TAG+'_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20'+this[_0x20d203(0x1e4)]),this['state'][_0x20d203(0x1f8)]=!![];}catch(_0x60799){logger[_0x20d203(0x1bd)]('['+TAG+_0x20d203(0x1d3)+_0x60799['message']+(_0x60799[_0x20d203(0x1f2)]?_0x5640a8[_0x20d203(0x1b5)](_0x5640a8['nnWFS'],_0x60799[_0x20d203(0x1f2)]):''));}return this[_0x20d203(0x1df)](),!![];}}else{let _0x2074d4;try{_0x2074d4=await this['fileHelper'][_0x20d203(0x202)]();if(!_0x2074d4)return logger[_0x20d203(0x1fe)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.'),![];}catch(_0x21740f){return logger[_0x20d203(0x1bd)]('['+TAG+'_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20'+_0x21740f[_0x20d203(0x1c9)]+(_0x21740f[_0x20d203(0x1f2)]?_0x5640a8[_0x20d203(0x206)](_0x5640a8[_0x20d203(0x1e6)],_0x21740f[_0x20d203(0x1f2)]):'')),![];}this[_0x20d203(0x1b3)]={...this[_0x20d203(0x19b)](),..._0x2074d4,'uniqueFailedTests':new Set(_0x2074d4['uniqueFailedTests']||[])};if(this[_0x20d203(0x1b3)]['failFastActive'])return logger[_0x20d203(0x187)]('['+TAG+_0x20d203(0x1da)),!![];const _0x34166a=this['state'][_0x20d203(0x20e)],_0x166931=_0x34166a[_0x20d203(0x1e9)];if(_0x5640a8[_0x20d203(0x1b0)](_0x166931,_0x3abdad)){try{logger[_0x20d203(0x20d)]('['+TAG+_0x20d203(0x1f9)+_0x166931+_0x20d203(0x1ef)+_0x3abdad+'.'),this[_0x20d203(0x1b3)][_0x20d203(0x1f8)]=!![];}catch(_0xc137f3){logger['error']('['+TAG+_0x20d203(0x1d9)+_0xc137f3[_0x20d203(0x1c9)]+(_0xc137f3[_0x20d203(0x1f2)]?_0x5640a8[_0x20d203(0x1b5)](_0x5640a8[_0x20d203(0x1e6)],_0xc137f3['stack']):''));}return!![];}}return![];}async[a119_0x419370(0x1a8)](){const _0xd97bcc=a119_0x419370,_0x40a67e={};_0x40a67e[_0xd97bcc(0x1b6)]=function(_0x517388,_0x84a34){return _0x517388+_0x84a34;},_0x40a67e['JbZtE']=_0xd97bcc(0x1bf);const _0x356fb3=_0x40a67e;this[_0xd97bcc(0x1df)]();if(this['isCIMode'])logger[_0xd97bcc(0x187)]('['+TAG+'_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.');else try{const _0xcee72a={...this[_0xd97bcc(0x1b3)],'uniqueFailedTests':Array[_0xd97bcc(0x1ed)](this[_0xd97bcc(0x1b3)][_0xd97bcc(0x20e)]||new Set())};await this[_0xd97bcc(0x1e7)][_0xd97bcc(0x1a2)](_0xcee72a),logger[_0xd97bcc(0x187)]('['+TAG+_0xd97bcc(0x1f5));}catch(_0x3b572e){logger[_0xd97bcc(0x1bd)]('['+TAG+_0xd97bcc(0x1fc)+_0x3b572e[_0xd97bcc(0x1c9)]+(_0x3b572e['stack']?_0x356fb3[_0xd97bcc(0x1b6)](_0x356fb3[_0xd97bcc(0x193)],_0x3b572e[_0xd97bcc(0x1f2)]):''));}}}module[a119_0x419370(0x201)]=FailFastManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a120_0xa057bd=a120_0x4c92;function a120_0x22d8(){const _0x4aa13e=['utf8','uniqueFailedTests','21760beNike','68oVGwkT','10xPyMkz','message','writeFileSync','218382FggIkQ','parse','5235390KcSVqM','from','isNewFailure','function','exports','ISWLS','gHatz','oDjuE',']\x20Error\x20writing\x20state\x20file:\x20','winstonLogger','yaYxn','stack','acquireLock','releaseLock','3|2|1|4|0','7gEMIip',']\x20Error\x20releasing\x20lock:\x20','totalTests','EEXIST','writeState','isArray','ewrbl',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.',']\x20Error\x20reading\x20state\x20file:\x20','stringify','openSync','error','lockFilePath','status','ZmnGs','failFastConfig','mOPSB','warn','newState','165861DCEQvW','failedTests','code','fullName','stateFilePath','add','926552uNNsiu',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','defaultState','readState','697188zgNDtS','258467HoijjK','oWxoN'];a120_0x22d8=function(){return _0x4aa13e;};return a120_0x22d8();}function a120_0x4c92(_0x5b4159,_0x560de2){const _0x22d896=a120_0x22d8();return a120_0x4c92=function(_0x4c92ec,_0x3c1cb4){_0x4c92ec=_0x4c92ec-0x16d;let _0x1e94e8=_0x22d896[_0x4c92ec];return _0x1e94e8;},a120_0x4c92(_0x5b4159,_0x560de2);}(function(_0x16371d,_0x304c2b){const _0x1e015=a120_0x4c92,_0x30549e=_0x16371d();while(!![]){try{const _0x12094b=-parseInt(_0x1e015(0x18f))/0x1+parseInt(_0x1e015(0x198))/0x2+-parseInt(_0x1e015(0x184))/0x3+-parseInt(_0x1e015(0x194))/0x4*(-parseInt(_0x1e015(0x193))/0x5)+parseInt(_0x1e015(0x18e))/0x6*(-parseInt(_0x1e015(0x171))/0x7)+-parseInt(_0x1e015(0x18a))/0x8+parseInt(_0x1e015(0x19a))/0x9*(parseInt(_0x1e015(0x195))/0xa);if(_0x12094b===_0x304c2b)break;else _0x30549e['push'](_0x30549e['shift']());}catch(_0x4e9680){_0x30549e['push'](_0x30549e['shift']());}}}(a120_0x22d8,0x357ea));const fs=require('fs'),logger=require('../logger')[a120_0xa057bd(0x1a3)],TAG='FailFastFileHelper';class FileHelper{constructor(_0x8a88ba,_0x12bd95,_0x46398a,_0x16bf3f){const _0x1e8a92=a120_0xa057bd,_0x248675={};_0x248675['ZmnGs']=_0x1e8a92(0x170),_0x248675[_0x1e8a92(0x181)]=_0x1e8a92(0x191);const _0x1a57f4=_0x248675,_0x5668a2=_0x1a57f4[_0x1e8a92(0x17f)]['split']('|');let _0x4466e3=0x0;while(!![]){switch(_0x5668a2[_0x4466e3++]){case'0':if(!fs['existsSync'](this[_0x1e8a92(0x188)]))try{fs[_0x1e8a92(0x197)](this['stateFilePath'],'{}',_0x1a57f4[_0x1e8a92(0x181)]);}catch(_0x5835d0){logger[_0x1e8a92(0x17c)]('['+TAG+']\x20Error\x20creating\x20state\x20file:\x20'+_0x5835d0[_0x1e8a92(0x196)]+'\x20'+_0x5835d0[_0x1e8a92(0x16d)]);}continue;case'1':this[_0x1e8a92(0x17d)]=_0x46398a;continue;case'2':this[_0x1e8a92(0x188)]=_0x12bd95;continue;case'3':this[_0x1e8a92(0x180)]=_0x8a88ba;continue;case'4':this[_0x1e8a92(0x18c)]=_0x16bf3f;continue;}break;}}async[a120_0xa057bd(0x16e)](){const _0xc81f86=a120_0xa057bd,_0x1ef126={};_0x1ef126[_0xc81f86(0x19f)]=function(_0x4fe56c,_0x531677){return _0x4fe56c===_0x531677;},_0x1ef126[_0xc81f86(0x190)]=_0xc81f86(0x174);const _0x4f8bbf=_0x1ef126;let _0x531fa3;try{return _0x531fa3=fs[_0xc81f86(0x17b)](this[_0xc81f86(0x17d)],'wx'),_0x531fa3;}catch(_0x20bd8b){if(_0x4f8bbf['ISWLS'](_0x20bd8b[_0xc81f86(0x186)],_0x4f8bbf['oWxoN']))return null;throw _0x20bd8b;}}async[a120_0xa057bd(0x16f)](_0x3458c7){const _0x1f5f1f=a120_0xa057bd;if(_0x3458c7)try{fs['closeSync'](_0x3458c7),fs['unlinkSync'](this[_0x1f5f1f(0x17d)]);}catch(_0x510615){logger['error']('['+TAG+_0x1f5f1f(0x172)+_0x510615[_0x1f5f1f(0x196)]+'\x20'+_0x510615[_0x1f5f1f(0x16d)]);}}['readState'](){const _0x86f0e5=a120_0xa057bd,_0x476809={};_0x476809[_0x86f0e5(0x1a4)]=_0x86f0e5(0x191);const _0x5234fd=_0x476809;try{const _0x7c5bd4=fs['readFileSync'](this[_0x86f0e5(0x188)],_0x5234fd[_0x86f0e5(0x1a4)]);return JSON['parse'](_0x7c5bd4);}catch(_0x5ada85){return logger[_0x86f0e5(0x17c)]('['+TAG+_0x86f0e5(0x179)+_0x5ada85['message']+'\x20'+_0x5ada85[_0x86f0e5(0x16d)]),null;}}async[a120_0xa057bd(0x175)](_0x5b0b4e){const _0x2ca394=a120_0xa057bd,_0x5ddf71={..._0x5b0b4e,'uniqueFailedTests':Array['isArray'](_0x5b0b4e['uniqueFailedTests'])?_0x5b0b4e['uniqueFailedTests']:Array[_0x2ca394(0x19b)](_0x5b0b4e['uniqueFailedTests']||[])};try{fs['writeFileSync'](this[_0x2ca394(0x188)],JSON['stringify'](_0x5ddf71,null,0x2));}catch(_0x23018d){logger[_0x2ca394(0x17c)]('['+TAG+_0x2ca394(0x1a2)+_0x23018d['message']+'\x20'+_0x23018d['stack']);throw _0x23018d;}}async['recordTestResult'](_0xbdf558,_0x4d6e37){const _0x2da4fc=a120_0xa057bd,_0xcb2c68={};_0xcb2c68[_0x2da4fc(0x1a0)]=function(_0x1fd047,_0x42a8d8){return _0x1fd047!==_0x42a8d8;},_0xcb2c68['CaHRn']=_0x2da4fc(0x19d),_0xcb2c68[_0x2da4fc(0x1a1)]=function(_0x34fbb0,_0x112d7e){return _0x34fbb0===_0x112d7e;},_0xcb2c68[_0x2da4fc(0x177)]='failed';const _0x8e78e7=_0xcb2c68,_0x196e4c=await this[_0x2da4fc(0x16e)]();if(!_0x196e4c)return logger[_0x2da4fc(0x182)]('['+TAG+_0x2da4fc(0x178)),{'newState':this[_0x2da4fc(0x18d)]()||this['defaultState'],'isNewFailure':![]};try{let _0x2b6d78=this[_0x2da4fc(0x18d)]();!_0x2b6d78&&(_0x2b6d78=JSON[_0x2da4fc(0x199)](JSON[_0x2da4fc(0x17a)](this[_0x2da4fc(0x18c)])));if(!_0x2b6d78[_0x2da4fc(0x192)]||_0x8e78e7[_0x2da4fc(0x1a0)](typeof _0x2b6d78[_0x2da4fc(0x192)][Symbol['iterator']],_0x8e78e7['CaHRn']))_0x2b6d78['uniqueFailedTests']=new Set();else Array[_0x2da4fc(0x176)](_0x2b6d78[_0x2da4fc(0x192)])&&(_0x2b6d78[_0x2da4fc(0x192)]=new Set(_0x2b6d78[_0x2da4fc(0x192)]));_0x2b6d78[_0x2da4fc(0x173)]=_0x4d6e37;let _0x16e870=![];_0x8e78e7['oDjuE'](_0xbdf558[_0x2da4fc(0x17e)],_0x8e78e7[_0x2da4fc(0x177)])&&(_0x2b6d78[_0x2da4fc(0x185)]+=0x1,!_0x2b6d78['uniqueFailedTests']['has'](_0xbdf558[_0x2da4fc(0x187)])&&(_0x2b6d78[_0x2da4fc(0x192)][_0x2da4fc(0x189)](_0xbdf558[_0x2da4fc(0x187)]),_0x16e870=!![]));await this[_0x2da4fc(0x175)](_0x2b6d78);const _0x11998d={};return _0x11998d[_0x2da4fc(0x183)]=_0x2b6d78,_0x11998d[_0x2da4fc(0x19c)]=_0x16e870,_0x11998d;}finally{await this[_0x2da4fc(0x16f)](_0x196e4c);}}async['updateAPIFailedCount'](_0x2689f0){const _0x315c4a=a120_0xa057bd,_0x2ed42c=await this[_0x315c4a(0x16e)]();if(!_0x2ed42c)return logger[_0x315c4a(0x182)]('['+TAG+_0x315c4a(0x18b)),this[_0x315c4a(0x18d)]()||this['defaultState'];try{let _0x182632=this[_0x315c4a(0x18d)]();return!_0x182632&&(_0x182632=JSON['parse'](JSON['stringify'](this['defaultState']))),_0x182632['lastAPIFailedCount']=_0x2689f0,await this['writeState'](_0x182632),_0x182632;}finally{await this[_0x315c4a(0x16f)](_0x2ed42c);}}}module[a120_0xa057bd(0x19e)]=FileHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121_0x3c8c57=a121_0x3b50;(function(_0x17ae49,_0x4ed80f){const _0xd8aebc=a121_0x3b50,_0x411e96=_0x17ae49();while(!![]){try{const _0x2d146c=-parseInt(_0xd8aebc(0x191))/0x1+parseInt(_0xd8aebc(0x180))/0x2*(parseInt(_0xd8aebc(0x1b6))/0x3)+parseInt(_0xd8aebc(0x17f))/0x4+-parseInt(_0xd8aebc(0x18c))/0x5+parseInt(_0xd8aebc(0x1b0))/0x6+-parseInt(_0xd8aebc(0x195))/0x7*(parseInt(_0xd8aebc(0x197))/0x8)+-parseInt(_0xd8aebc(0x1a2))/0x9;if(_0x2d146c===_0x4ed80f)break;else _0x411e96['push'](_0x411e96['shift']());}catch(_0xe36fa1){_0x411e96['push'](_0x411e96['shift']());}}}(a121_0x10d2,0x4d314));function a121_0x3b50(_0x4f86c9,_0x5129d6){const _0x10d247=a121_0x10d2();return a121_0x3b50=function(_0x3b5046,_0x469b97){_0x3b5046=_0x3b5046-0x17d;let _0x278301=_0x10d247[_0x3b5046];return _0x278301;},a121_0x3b50(_0x4f86c9,_0x5129d6);}function a121_0x10d2(){const _0x6a9562=['getSkipFlakyAndFailed','getOrchestrationData','join','2396916kLXsPR','BROWSERSTACK_TESTHUB_UUID','name','isRetryEnabled','getBuildStartData','toLowerCase','636zryTFZ','abortBuildOnFailure','tmpdir','_setTestOrdering','retry_tests_on_failure','abort_build_','2347960NsqjPE','4198zNwNbR','_setRerunPreviouslyFailed','runPreviouslyFailedFirst','appendFileSync','abort_build_on_failure','existsSync','testOrderingEnabled','maxRetries','getName','run_previously_failed_first','getRunPreviouslyFailedFirst','UCZhS','1038145BGGdOI','testOrchestrationOptions','getRerunPreviouslyFailed','isAbortBuildOnFailureEnabled','config','135994fqIPiu','getFailureThreshold','getTestOrderingName','getInstance','610519CWmVSB','winstonLogger','40jcuBDI','rerunPreviouslyFailed','getRetryCount','maxFailures','xJMqY','has','path','../logger','rerun_previously_failed','.txt','isAbortBuildOnFailureSupported','3020184aobSBF','exports','env','_instance','_setSkipFlakyAndFailed','testOrdering','enabled','getEnabled','_setRunPreviouslyFailedFirst','skipFlakyAndFailed','disable'];a121_0x10d2=function(){return _0x6a9562;};return a121_0x10d2();}const os=require('os'),path=require(a121_0x3c8c57(0x19d)),fs=require('fs'),logger=require(a121_0x3c8c57(0x19e))[a121_0x3c8c57(0x196)],RETRY_TESTS_ON_FAILURE='retryTestsOnFailure',ABORT_BUILD_ON_FAILURE=a121_0x3c8c57(0x1b7),RUN_PREVIOUSLY_FAILED_FIRST=a121_0x3c8c57(0x182),RERUN_PREVIOUSLY_FAILED=a121_0x3c8c57(0x198),SKIP_FLAKY_AND_FAILED='skipFlakyandFailed',ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set(['jest']);class TestOrdering{constructor(){const _0x5615ea=a121_0x3c8c57;this['enabled']=![],this[_0x5615ea(0x1b2)]=null;}['enable'](_0x5f1b54){const _0x7af149=a121_0x3c8c57;this[_0x7af149(0x1a8)]=!![],this[_0x7af149(0x1b2)]=_0x5f1b54;}[a121_0x3c8c57(0x1ac)](){const _0x3bb5cf=a121_0x3c8c57;this[_0x3bb5cf(0x1a8)]=![],this[_0x3bb5cf(0x1b2)]=null;}[a121_0x3c8c57(0x1a9)](){return this['enabled'];}[a121_0x3c8c57(0x188)](){return this['name'];}}class OrchestrationUtils{static ['_instance']=null;constructor(_0x33a511){const _0x4412a3=a121_0x3c8c57,_0x31c8f0={};_0x31c8f0[_0x4412a3(0x19b)]=function(_0x521e10,_0x431ddc){return _0x521e10||_0x431ddc;};const _0x4303c9=_0x31c8f0;this[_0x4412a3(0x182)]=![],this[_0x4412a3(0x198)]=![],this[_0x4412a3(0x1ab)]=![],this[_0x4412a3(0x1a7)]=new TestOrdering(),this[_0x4412a3(0x190)]=_0x4303c9[_0x4412a3(0x19b)](_0x33a511,{});const _0x4d88fb=_0x33a511&&_0x33a511['testOrchestrationOptions']||{};this[_0x4412a3(0x1aa)](_0x4d88fb[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x4412a3(0x181)](_0x4d88fb[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x4412a3(0x1a6)](_0x4d88fb[SKIP_FLAKY_AND_FAILED]||![]);}static[a121_0x3c8c57(0x194)](_0xc5f965){const _0x891526=a121_0x3c8c57;return!OrchestrationUtils['_instance']&&_0xc5f965&&(OrchestrationUtils[_0x891526(0x1a5)]=new OrchestrationUtils(_0xc5f965)),OrchestrationUtils[_0x891526(0x1a5)];}['isRetryEnabled'](){const _0x49ab62=a121_0x3c8c57,_0x32cdfb=(this[_0x49ab62(0x190)]['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x32cdfb[_0x49ab62(0x1a8)];}[a121_0x3c8c57(0x199)](){const _0x5837f3=a121_0x3c8c57,_0x56470b=(this[_0x5837f3(0x190)][_0x5837f3(0x18d)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x35941f=0x0;return this['isRetryEnabled'](this[_0x5837f3(0x190)])&&(_0x35941f=_0x56470b[_0x5837f3(0x187)]||0x1),_0x35941f;}[a121_0x3c8c57(0x1ae)](){const _0x909544=a121_0x3c8c57,_0x19e907=this[_0x909544(0x190)]['testOrchestrationOptions']||{},_0x2cf912={};for(const _0x227a9e in _0x19e907){ALLOWED_ORCHESTRATION_KEYS[_0x909544(0x19c)](_0x227a9e)&&(_0x2cf912[_0x227a9e]=_0x19e907[_0x227a9e]);}return _0x2cf912;}['checkAbortBuildFileExists'](){const _0x4af0ca=a121_0x3c8c57,_0x549c6b=process['env']['BROWSERSTACK_TESTHUB_UUID'],_0x3e06d8=path['join'](os['tmpdir'](),_0x4af0ca(0x17e)+_0x549c6b);return fs[_0x4af0ca(0x185)](_0x3e06d8);}['writeFailureToFile'](_0x4c8cbd){const _0x289d83=a121_0x3c8c57,_0x2ac558=process[_0x289d83(0x1a4)][_0x289d83(0x1b1)],_0x3d0d73=path[_0x289d83(0x1af)](os[_0x289d83(0x1b8)](),'failed_tests_'+_0x2ac558+_0x289d83(0x1a0));fs[_0x289d83(0x183)](_0x3d0d73,_0x4c8cbd+'\x0a');}[a121_0x3c8c57(0x1a1)](_0x4a8d83){const _0x3eedef=a121_0x3c8c57,_0x33b3c6={};_0x33b3c6['UCZhS']=function(_0x2097be,_0x22e141){return _0x2097be||_0x22e141;};const _0x557e46=_0x33b3c6;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x3eedef(0x19c)](_0x557e46[_0x3eedef(0x18b)](_0x4a8d83,'')[_0x3eedef(0x1b5)]());}[a121_0x3c8c57(0x18f)](){const _0x10f278=a121_0x3c8c57,_0x5f04ce=(this[_0x10f278(0x190)][_0x10f278(0x18d)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x5f04ce[_0x10f278(0x1a8)];}[a121_0x3c8c57(0x192)](){const _0x429e84=a121_0x3c8c57,_0x334387=(this[_0x429e84(0x190)][_0x429e84(0x18d)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x334387[_0x429e84(0x19a)]||0x5;;}['getRunPreviouslyFailedFirst'](){const _0x442e24=a121_0x3c8c57;return this[_0x442e24(0x182)];}[a121_0x3c8c57(0x1aa)](_0x2cdc8b){const _0x2299e1=a121_0x3c8c57;this[_0x2299e1(0x182)]=!!_0x2cdc8b,this['_setTestOrdering']();}[a121_0x3c8c57(0x18e)](){return this['rerunPreviouslyFailed'];}['_setRerunPreviouslyFailed'](_0xf1633f){const _0x117c4d=a121_0x3c8c57;this[_0x117c4d(0x198)]=!!_0xf1633f,this[_0x117c4d(0x1b9)]();}[a121_0x3c8c57(0x1ad)](){const _0xd0be7=a121_0x3c8c57;return this[_0xd0be7(0x1ab)];}[a121_0x3c8c57(0x1a6)](_0x6a6ee3){const _0x4d56c0=a121_0x3c8c57;this[_0x4d56c0(0x1ab)]=!!_0x6a6ee3,this[_0x4d56c0(0x1b9)]();}[a121_0x3c8c57(0x1b9)](){const _0x4d6a8b=a121_0x3c8c57;if(this[_0x4d6a8b(0x182)])this['rerunPreviouslyFailed']=![],this['skipFlakyAndFailed']=![],this[_0x4d6a8b(0x1a7)]['enable'](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x4d6a8b(0x198)])this[_0x4d6a8b(0x182)]=![],this[_0x4d6a8b(0x1ab)]=![],this['testOrdering']['enable'](RERUN_PREVIOUSLY_FAILED);else this[_0x4d6a8b(0x1ab)]?(this[_0x4d6a8b(0x182)]=![],this[_0x4d6a8b(0x198)]=![],this[_0x4d6a8b(0x1a7)]['enable'](SKIP_FLAKY_AND_FAILED)):this[_0x4d6a8b(0x1a7)][_0x4d6a8b(0x1ac)]();}}[a121_0x3c8c57(0x186)](){const _0x5753c2=a121_0x3c8c57;return this[_0x5753c2(0x1a7)][_0x5753c2(0x1a9)]();}[a121_0x3c8c57(0x193)](){const _0x3c2f2e=a121_0x3c8c57;if(this[_0x3c2f2e(0x1a7)]['getEnabled']())return this['testOrdering']['getName']();return null;}[a121_0x3c8c57(0x1b4)](){const _0x1720fb=a121_0x3c8c57,_0x32b844={};return _0x32b844[_0x1720fb(0x19f)]={'enabled':this[_0x1720fb(0x18e)]()},_0x32b844[_0x1720fb(0x189)]={'enabled':this[_0x1720fb(0x18a)]()},_0x32b844['skip_failing_and_flaky']={'enabled':this['getSkipFlakyAndFailed']()},this[_0x1720fb(0x1b3)]()&&(_0x32b844[_0x1720fb(0x17d)]={'enabled':!![],'max_retries':this[_0x1720fb(0x199)]()}),this[_0x1720fb(0x18f)]()&&(_0x32b844[_0x1720fb(0x184)]={'enabled':!![],'max_failures':this[_0x1720fb(0x192)]()}),_0x32b844;}}module[a121_0x3c8c57(0x1a3)]=OrchestrationUtils;
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a122_0x1d8be0=a122_0x880f;(function(_0x40ad11,_0x32fdb8){const _0x293c0a=a122_0x880f,_0x2f2af0=_0x40ad11();while(!![]){try{const _0x2fb149=-parseInt(_0x293c0a(0x81))/0x1+-parseInt(_0x293c0a(0xb4))/0x2*(parseInt(_0x293c0a(0xbd))/0x3)+parseInt(_0x293c0a(0x95))/0x4+parseInt(_0x293c0a(0xa5))/0x5+parseInt(_0x293c0a(0xc1))/0x6*(parseInt(_0x293c0a(0x7b))/0x7)+parseInt(_0x293c0a(0x78))/0x8*(-parseInt(_0x293c0a(0xa3))/0x9)+parseInt(_0x293c0a(0xc7))/0xa;if(_0x2fb149===_0x32fdb8)break;else _0x2f2af0['push'](_0x2f2af0['shift']());}catch(_0x1ba2d0){_0x2f2af0['push'](_0x2f2af0['shift']());}}}(a122_0x3e4c,0xb4050));const https=require(a122_0x1d8be0(0x7a)),{URL}=require('url'),logger=require(a122_0x1d8be0(0x9b))[a122_0x1d8be0(0x90)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require('./constants'),TAG=a122_0x1d8be0(0xbb);class RequestUtils{static async[a122_0x1d8be0(0xc8)](_0x5edf7b,_0x5d50e2,_0x35c085=null){const _0x3f275f=a122_0x1d8be0,_0x41901c={'vCDSX':function(_0x3a63be,_0x3f4fc1){return _0x3a63be(_0x3f4fc1);},'DILZI':'data','sCviF':_0x3f275f(0xbc),'HwMjI':'error','EFmBm':function(_0x10add1,_0x306de2){return _0x10add1===_0x306de2;},'NaKPH':'POST','fAtGy':function(_0x13321,_0x1dcfee){return _0x13321===_0x1dcfee;},'odtIn':_0x3f275f(0xb2),'agTkd':_0x3f275f(0x98),'VLXKl':function(_0x429372,_0x484dbb){return _0x429372+_0x484dbb;}},_0x3919e5=process[_0x3f275f(0x7f)]['BROWSERSTACK_TESTHUB_JWT']||'',_0x59097c={};_0x59097c['Authorization']=_0x3f275f(0xb7)+_0x3919e5,_0x59097c[_0x3f275f(0x96)]=_0x41901c[_0x3f275f(0xa7)];const _0x18cb4e=_0x59097c,{hostname:_0x20a0a2,pathname:_0x220e6c,search:_0x20b4ee}=new URL(_0x5d50e2),_0xc08188={'hostname':_0x20a0a2,'path':_0x41901c[_0x3f275f(0xa8)](_0x220e6c,_0x20b4ee),'method':_0x5edf7b,'headers':_0x18cb4e};return logger[_0x3f275f(0xc3)]('['+TAG+_0x3f275f(0x92)+_0x5edf7b+_0x3f275f(0xaf)+_0x5d50e2+_0x3f275f(0x9f)+JSON[_0x3f275f(0x77)](_0x18cb4e)+'\x20and\x20data:\x20'+JSON['stringify'](_0x35c085)+_0x3f275f(0xa6)+_0x3919e5),new Promise((_0x13a82a,_0x2b03bc)=>{const _0x41e492=_0x3f275f,_0x15db70={'PZpVj':function(_0x2a130f,_0x22a4c9){const _0x1569f5=a122_0x880f;return _0x41901c[_0x1569f5(0x8e)](_0x2a130f,_0x22a4c9);},'yWoZg':_0x41901c[_0x41e492(0x85)],'NVFfX':_0x41901c[_0x41e492(0x83)]},_0x44a89c=https[_0x41e492(0xa1)](_0xc08188,_0x3b5864=>{const _0x3a7d65=_0x41e492,_0x32f5bf={'UkQib':function(_0x3b577c,_0x51a0aa){const _0x1dded5=a122_0x880f;return _0x15db70[_0x1dded5(0x80)](_0x3b577c,_0x51a0aa);},'IpsRZ':function(_0x324e08,_0x7e8f40){const _0x41bd46=a122_0x880f;return _0x15db70[_0x41bd46(0x80)](_0x324e08,_0x7e8f40);}};let _0x32c3cf='';_0x3b5864['on'](_0x15db70[_0x3a7d65(0xb3)],_0x5eecf7=>{_0x32c3cf+=_0x5eecf7;}),_0x3b5864['on'](_0x15db70[_0x3a7d65(0x89)],()=>{const _0x3dced3=_0x3a7d65;try{const _0x246fa7=_0x32c3cf?JSON[_0x3dced3(0x8d)](_0x32c3cf):{},_0x1d986f={};_0x1d986f[_0x3dced3(0xad)]=_0x3b5864[_0x3dced3(0x7c)],_0x1d986f[_0x3dced3(0xa4)]=_0x246fa7,_0x1d986f[_0x3dced3(0xb5)]=_0x3b5864['headers'],_0x32f5bf[_0x3dced3(0xae)](_0x13a82a,_0x1d986f);}catch(_0x575a91){logger[_0x3dced3(0x8c)]('['+TAG+_0x3dced3(0x9a)+_0x32c3cf+_0x3dced3(0x8a)+_0x575a91[_0x3dced3(0xac)]+'\x20'+_0x575a91['stack']),_0x32f5bf[_0x3dced3(0x91)](_0x2b03bc,new Error('Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x575a91[_0x3dced3(0xac)]));}});});_0x44a89c['on'](_0x41901c['HwMjI'],_0x1d068a=>{const _0x18b34d=_0x41e492;logger[_0x18b34d(0x8c)]('['+TAG+_0x18b34d(0xc4)+_0x5edf7b+'\x20'+_0x5d50e2+':\x20'+_0x1d068a['message']+'\x20'+_0x1d068a['stack']),_0x15db70[_0x18b34d(0x80)](_0x2b03bc,_0x1d068a);}),_0x35c085&&(_0x41901c[_0x41e492(0xa9)](_0x5edf7b,_0x41901c['NaKPH'])||_0x41901c[_0x41e492(0xca)](_0x5edf7b,_0x41901c['odtIn']))&&_0x44a89c[_0x41e492(0xc0)](JSON[_0x41e492(0x77)](_0x35c085)),_0x44a89c[_0x41e492(0xbc)]();});}static async[a122_0x1d8be0(0x7d)](_0x18c2ff){const _0x5da93a=a122_0x1d8be0,_0x2492d3={};_0x2492d3[_0x5da93a(0x87)]='POST',_0x2492d3[_0x5da93a(0xa0)]=function(_0x5e55b2,_0xad1954){return _0x5e55b2===_0xad1954;};const _0x1935d7=_0x2492d3,_0x431fe9=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x49a9e3=await this[_0x5da93a(0xc8)](_0x1935d7['ctiAI'],_0x431fe9,_0x18c2ff);return _0x1935d7[_0x5da93a(0xa0)](_0x49a9e3[_0x5da93a(0xad)],0xc8)?logger[_0x5da93a(0xc3)]('['+TAG+_0x5da93a(0xb9)+_0x431fe9):logger['error']('['+TAG+_0x5da93a(0x82)+_0x431fe9+':\x20'+JSON['stringify'](_0x49a9e3[_0x5da93a(0xa4)])+',\x20status:\x20'+_0x49a9e3[_0x5da93a(0xad)]),_0x49a9e3;}catch(_0x2e0c9e){logger['error']('['+TAG+_0x5da93a(0xc2)+_0x2e0c9e[_0x5da93a(0xac)]+'\x20'+_0x2e0c9e[_0x5da93a(0xc9)]);const _0x3a9e28={};_0x3a9e28[_0x5da93a(0xac)]=_0x2e0c9e[_0x5da93a(0xac)];const _0x20e884={};return _0x20e884[_0x5da93a(0xad)]=0x1f4,_0x20e884[_0x5da93a(0xa4)]=_0x3a9e28,_0x20e884;}}static async[a122_0x1d8be0(0xaa)](_0x284499){const _0x46be1b=a122_0x1d8be0,_0x1dc296={};_0x1dc296[_0x46be1b(0x84)]='GET',_0x1dc296[_0x46be1b(0x99)]=function(_0x575e23,_0x13582a){return _0x575e23===_0x13582a;};const _0x4efbac=_0x1dc296;try{const _0x2b39ef=await this[_0x46be1b(0xc8)](_0x4efbac['JbfPE'],_0x284499);if(_0x4efbac[_0x46be1b(0x99)](_0x2b39ef[_0x46be1b(0xad)],0xc8))return _0x2b39ef[_0x46be1b(0xa4)];return{};}catch(_0x3fc56f){return logger['error']('['+TAG+_0x46be1b(0xc2)+_0x3fc56f['message']+'\x20'+_0x3fc56f[_0x46be1b(0xc9)]),{};}}static async[a122_0x1d8be0(0xc6)](_0x52ff32){const _0x1d60ad=a122_0x1d8be0,_0x33c5d9={};_0x33c5d9['Duerc']=_0x1d60ad(0xb2),_0x33c5d9[_0x1d60ad(0x7e)]=function(_0x1c65c6,_0x4de42e){return _0x1c65c6===_0x4de42e;},_0x33c5d9[_0x1d60ad(0x94)]=function(_0xc4b67f,_0x443c62){return _0xc4b67f===_0x443c62;},_0x33c5d9[_0x1d60ad(0x88)]=_0x1d60ad(0xa2);const _0x3e8ccc=_0x33c5d9,_0x33a0e8=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x575038=await this['_request'](_0x3e8ccc['Duerc'],_0x33a0e8,_0x52ff32);if(_0x3e8ccc[_0x1d60ad(0x7e)](_0x575038[_0x1d60ad(0xad)],0xc8)&&_0x575038[_0x1d60ad(0xa4)]&&_0x3e8ccc[_0x1d60ad(0x94)](_0x575038[_0x1d60ad(0xa4)][_0x1d60ad(0xac)],_0x3e8ccc[_0x1d60ad(0x88)]))return!![];return![];}catch(_0x10c151){logger[_0x1d60ad(0x8c)]('['+TAG+_0x1d60ad(0xc2)+_0x10c151['message']+'\x20'+_0x10c151[_0x1d60ad(0xc9)]);const _0x1e665a={};_0x1e665a[_0x1d60ad(0xac)]=_0x10c151[_0x1d60ad(0xac)];const _0x3f62f1={};return _0x3f62f1[_0x1d60ad(0xad)]=0x1f4,_0x3f62f1[_0x1d60ad(0xa4)]=_0x1e665a,_0x3f62f1;}}static async[a122_0x1d8be0(0x8b)](_0x386035){const _0x327c82=a122_0x1d8be0,_0xe723dd={'szPWX':function(_0x42b8c5,_0x267598){return _0x42b8c5||_0x267598;},'wNSbU':'Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','oukuF':function(_0x2765e7,_0x1aeab6){return _0x2765e7(_0x1aeab6);},'eZJCy':function(_0x4b236c,_0x26b00e){return _0x4b236c(_0x26b00e);},'JSvJa':function(_0x324154,_0x587d79){return _0x324154(_0x587d79);},'ZBsaL':_0x327c82(0xb0),'ZgOxQ':function(_0x54b5f5,_0x250ab3){return _0x54b5f5===_0x250ab3;},'DUsHr':function(_0x414a6e,_0x339763){return _0x414a6e!==_0x339763;},'ueIdu':_0x327c82(0x86)},{buildName:_0x46d756,buildRunIdentifier:_0x43fa5d,projectName:_0x2c655a}=_0x386035;if(_0xe723dd[_0x327c82(0xb8)](!_0x46d756,!_0x43fa5d)||!_0x2c655a){logger[_0x327c82(0x8c)]('['+TAG+_0x327c82(0x97)+_0x46d756+_0x327c82(0xbe)+_0x43fa5d+_0x327c82(0xba)+_0x2c655a);const _0x272709={};_0x272709['message']=_0xe723dd[_0x327c82(0xb1)];const _0x48d0a2={};return _0x48d0a2[_0x327c82(0xad)]=0x190,_0x48d0a2[_0x327c82(0xa4)]=_0x272709,_0x48d0a2;}const _0x4c21c6=_0x327c82(0xc5)+_0xe723dd['oukuF'](encodeURIComponent,_0x46d756)+_0x327c82(0x9c)+_0xe723dd['eZJCy'](encodeURIComponent,_0x43fa5d)+'&projectName='+_0xe723dd['JSvJa'](encodeURIComponent,_0x2c655a),_0x42f418=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x4c21c6;try{logger[_0x327c82(0xc3)]('['+TAG+_0x327c82(0xab)+_0x42f418);let _0x48f307=0x0;const _0xd15b30=await this['_request'](_0xe723dd[_0x327c82(0x8f)],_0x42f418);return _0xe723dd['ZgOxQ'](_0xd15b30[_0x327c82(0xad)],0xc8)&&_0xd15b30[_0x327c82(0xa4)]&&_0xe723dd[_0x327c82(0x93)](typeof _0xd15b30[_0x327c82(0xa4)][_0x327c82(0x9e)],_0xe723dd[_0x327c82(0xb6)])&&(_0x48f307=_0xe723dd[_0x327c82(0x9d)](Number,_0xd15b30['body'][_0x327c82(0x9e)])),_0x48f307;}catch(_0xdd54a9){logger[_0x327c82(0x8c)]('['+TAG+_0x327c82(0xbf)+_0xdd54a9[_0x327c82(0xac)]+'\x20'+_0xdd54a9[_0x327c82(0xc9)]);const _0xde23c3={};_0xde23c3[_0x327c82(0xac)]=_0xdd54a9['message'];const _0x4ce89c={};return _0x4ce89c[_0x327c82(0xad)]=0x1f4,_0x4ce89c['body']=_0xde23c3,_0x4ce89c;}}}function a122_0x880f(_0x4a310b,_0x5e21cf){const _0x3e4c8b=a122_0x3e4c();return a122_0x880f=function(_0x880f73,_0x175fb9){_0x880f73=_0x880f73-0x77;let _0x569ce6=_0x3e4c8b[_0x880f73];return _0x569ce6;},a122_0x880f(_0x4a310b,_0x5e21cf);}function a122_0x3e4c(){const _0x375497=['DNnxM','NVFfX','\x20-\x20','getFailedTestsCount','error','parse','vCDSX','ZBsaL','winstonLogger','IpsRZ',']\x20Sending\x20','DUsHr','jnazT','2206380oRCjok','Content-Type',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','application/json','UVlsO',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','../logger','&buildRunIdentifier=','oukuF','failedTestsCount','\x20with\x20headers:\x20','fzYjq','request','Test\x20added','1273491aneafy','body','6469590eeKDoQ','\x20and\x20token:\x20','agTkd','VLXKl','EFmBm','getSplitFiles',']\x20Sending\x20GET\x20to\x20','message','status','UkQib','\x20request\x20to\x20','GET','wNSbU','PUT','yWoZg','2hjcQFP','headers','ueIdu','Bearer\x20','szPWX',']\x20Successfully\x20posted\x20split\x20files\x20to\x20',',\x20projectName=','RequestUtils','end','2018913fSknwD',',\x20buildRunIdentifier=',']\x20Error\x20in\x20getFailedTestsCount:\x20','write','6gpvjly',']\x20Error\x20in\x20putFailedTests:\x20','debug',']\x20Request\x20failed\x20for\x20','?buildName=','putFailedTests','5342170TURnHP','_request','stack','fAtGy','stringify','56hnczYx','exports','https','4088875LsMedi','statusCode','postSplitFiles','uLOmh','env','PZpVj','563031Ezgpjw',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','sCviF','JbfPE','DILZI','undefined','ctiAI'];a122_0x3e4c=function(){return _0x375497;};return a122_0x3e4c();}module[a122_0x1d8be0(0x79)]=RequestUtils;
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
const a123_0x1de22c=a123_0x2e5b;(function(_0x19bac9,_0x538225){const _0x2aba65=a123_0x2e5b,_0xe68c53=_0x19bac9();while(!![]){try{const _0x58e726=-parseInt(_0x2aba65(0x129))/0x1+parseInt(_0x2aba65(0x16f))/0x2+parseInt(_0x2aba65(0x146))/0x3+-parseInt(_0x2aba65(0x169))/0x4*(parseInt(_0x2aba65(0x124))/0x5)+parseInt(_0x2aba65(0x148))/0x6*(-parseInt(_0x2aba65(0x151))/0x7)+parseInt(_0x2aba65(0x171))/0x8*(parseInt(_0x2aba65(0x159))/0x9)+-parseInt(_0x2aba65(0x11c))/0xa;if(_0x58e726===_0x538225)break;else _0xe68c53['push'](_0xe68c53['shift']());}catch(_0x3498cf){_0xe68c53['push'](_0xe68c53['shift']());}}}(a123_0x1785,0x32c70));const logger=require(a123_0x1de22c(0x157))[a123_0x1de22c(0x122)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a123_0x1de22c(0x10b)),TestOrderingServerHandler=require('./testOrderingServerHandler'),OrchestrationUtils=require('./orchestrationUtils'),path=require(a123_0x1de22c(0x14c)),{spawnSync}=require(a123_0x1de22c(0x143)),micromatch=require(a123_0x1de22c(0x140)),fs=require('fs');function a123_0x1785(){const _0x30bcd4=['gkWxN','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','jest-util','buildIdentifier','754950nihxjv','getTestOrderingName','4296JTPjxK','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','logTestOrderingChecks','testOrderingApplied','toString','CmqIz','testMatch','IEyhY','testObservability','../helper','euDgD','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','HzUNS','ZfGvp','ZIzdK','projectName','Found\x20test\x20files:\x20','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','4|0|5|3|1|2','stringify','orchestrationUtils','isArray','Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','splitTests','fvvxl','YaOlM','1916360fBiEda','testOrderingEnabled','split','jest-runner','applied','isTestOrchestrationEnabled','winstonLogger','_shouldLogTestOrderingChecks','208730sEuLAb','KqGEx','ignore','--listTests','totalNodes','174335dcTTSG','stdout','BVZAY','rootDir','Error\x20finding\x20test\x20files:\x20','kvcon','WxbJu','guoJk','AyhRp','filter','npx','RxAJe','VfXyv','BROWSERSTACK_NODE_INDEX','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','setTestOrderingApplied','EcjKs','getOrderedTestFiles','addToOrderingInstrumentationData','VZhSy','mqyNm','error','rsPGq','micromatch','map','orderingInstrumentationData','child_process','iNpZa','yjfLB','631485zUMrkp','findTestFiles','108cIQSfW','updateBuildIdentifier','mXKgb','buildName','path','reorderTestFiles','irOOf','\x20files','uvCuk','33243KwSLFY','_initializeTestOrdering','ATyub','yIEoK','lwheU','relative','../logger','nodeIndex','6795WtKHtK','AJIse','exports','downloadedTestFilesCount','Ehhes','length','yUmsL','RziDa','BROWSERSTACK_TOTAL_NODE_COUNT','info','BROWSERSTACK_BUILD_RUN_IDENTIFIER','env','testOrderingServerHandler','matchBase','stack','debug','32wTOXsR','config'];a123_0x1785=function(){return _0x30bcd4;};return a123_0x1785();}class TestOrchestrationHandler{constructor(_0x381525){const _0xfa7df7=a123_0x1de22c,_0x27c363={};_0x27c363[_0xfa7df7(0x145)]=_0xfa7df7(0x114);const _0x3a3f5c=_0x27c363,_0x385c89=_0x3a3f5c[_0xfa7df7(0x145)][_0xfa7df7(0x11e)]('|');let _0x4a37b9=0x0;while(!![]){switch(_0x385c89[_0x4a37b9++]){case'0':this[_0xfa7df7(0x142)]={};continue;case'1':this[_0xfa7df7(0x116)]=new OrchestrationUtils(_0x381525);continue;case'2':this[_0xfa7df7(0x152)]();continue;case'3':this[_0xfa7df7(0x165)]=null;continue;case'4':this[_0xfa7df7(0x16a)]=_0x381525;continue;case'5':this[_0xfa7df7(0x105)]=![];continue;}break;}}['isTestOrchestrationEnabled'](){const _0x2bd8ca=a123_0x1de22c,_0x1b4236={'irOOf':function(_0x5d06df,_0x35392c){return _0x5d06df(_0x35392c);},'RziDa':function(_0x50c040,_0x41163d){return _0x50c040(_0x41163d);},'ZIzdK':function(_0x7367f7,_0x56ec4c){return _0x7367f7(_0x56ec4c);},'yUmsL':function(_0x3201ae,_0x3e1833){return _0x3201ae(_0x3e1833);},'hEXkH':function(_0x31c56e,_0xca7923){return _0x31c56e(_0xca7923);},'mXKgb':function(_0x251e9f,_0x36b867){return _0x251e9f(_0x36b867);},'qJjen':function(_0x32b532,_0x4d1cb1){return _0x32b532&&_0x4d1cb1;}},_0x27e267=_0x1b4236[_0x2bd8ca(0x14e)](isNotUndefined,this[_0x2bd8ca(0x16a)])&&(_0x1b4236[_0x2bd8ca(0x160)](isUndefined,this['config']['testObservability'])||_0x1b4236[_0x2bd8ca(0x110)](isTrueString,this[_0x2bd8ca(0x16a)][_0x2bd8ca(0x10a)])),_0x2705c9=this[_0x2bd8ca(0x116)][_0x2bd8ca(0x11d)](),_0x3f32df=_0x1b4236[_0x2bd8ca(0x15f)](isNotUndefined,this[_0x2bd8ca(0x16a)])&&_0x1b4236['hEXkH'](isNotUndefined,this[_0x2bd8ca(0x16a)][_0x2bd8ca(0x111)]),_0x4e00b7=_0x1b4236[_0x2bd8ca(0x14e)](isNotUndefined,this['config'])&&_0x1b4236[_0x2bd8ca(0x14a)](isNotUndefined,this['config'][_0x2bd8ca(0x14b)]);return _0x1b4236['qJjen'](_0x27e267,_0x2705c9)&&_0x3f32df&&_0x4e00b7;}[a123_0x1de22c(0x152)](){const _0x503dc4=a123_0x1de22c,_0x5371eb={};_0x5371eb[_0x503dc4(0x131)]=_0x503dc4(0x137),_0x5371eb['yIEoK']='Test\x20orchestration\x20without\x20test\x20ordering';const _0x343261=_0x5371eb;this[_0x503dc4(0x121)]()?(this[_0x503dc4(0x165)]=new TestOrderingServerHandler(this['config']),logger[_0x503dc4(0x162)](_0x343261[_0x503dc4(0x131)])):(logger[_0x503dc4(0x168)](_0x343261[_0x503dc4(0x154)]),this['logTestOrderingChecks']());}[a123_0x1de22c(0x104)](){const _0x4f1866=a123_0x1de22c,_0x18c6e2={'EcjKs':function(_0x19ce55,_0x4fbde3){return _0x19ce55(_0x4fbde3);},'zhmou':function(_0x3bd564,_0x3d320b){return _0x3bd564(_0x3d320b);},'fnzvm':function(_0x13b7da,_0x33529c){return _0x13b7da(_0x33529c);},'PyTyk':_0x4f1866(0x10d),'fvvxl':function(_0x12901f,_0x28de01){return _0x12901f(_0x28de01);},'gkWxN':function(_0x3ad462,_0x5aa4d1){return _0x3ad462(_0x5aa4d1);},'CmqIz':_0x4f1866(0x118)};if(!this[_0x4f1866(0x123)]())return;(!_0x18c6e2[_0x4f1866(0x139)](isNotUndefined,this[_0x4f1866(0x16a)])||!_0x18c6e2['zhmou'](isNotUndefined,this['config'][_0x4f1866(0x14b)])||!_0x18c6e2['fnzvm'](isNotUndefined,this[_0x4f1866(0x16a)][_0x4f1866(0x111)]))&&logger['info'](_0x18c6e2['PyTyk']),_0x18c6e2['fnzvm'](isNotUndefined,this['config'])&&_0x18c6e2[_0x4f1866(0x11a)](isNotUndefined,this[_0x4f1866(0x16a)]['testObservability'])&&!_0x18c6e2[_0x4f1866(0x16b)](isTrueString,this['config'][_0x4f1866(0x10a)])&&logger[_0x4f1866(0x162)](_0x18c6e2[_0x4f1866(0x107)]);}[a123_0x1de22c(0x123)](){const _0x55a141=a123_0x1de22c;return!this[_0x55a141(0x121)]()&&this['orchestrationUtils']['testOrderingEnabled']();}['isTestOrderingApplied'](){const _0x1ad112=a123_0x1de22c;return this[_0x1ad112(0x105)];}[a123_0x1de22c(0x138)](_0x3cd92d){const _0x494d78=a123_0x1de22c,_0x5762bd={};_0x5762bd[_0x494d78(0x155)]=_0x494d78(0x120);const _0x17a054=_0x5762bd;this[_0x494d78(0x105)]=_0x3cd92d,this[_0x494d78(0x13b)](_0x17a054['lwheU'],_0x3cd92d);}[a123_0x1de22c(0x13b)](_0x41a20c,_0x113c3f){this['orderingInstrumentationData'][_0x41a20c]=_0x113c3f;}['getOrderingInstrumentationData'](){const _0xa8cb64=a123_0x1de22c;return this[_0xa8cb64(0x142)];}[a123_0x1de22c(0x149)](){const _0x48e706=a123_0x1de22c,_0x3a2331={'ATyub':function(_0x527ec0,_0xe81a9a){return _0x527ec0(_0xe81a9a);},'iNpZa':function(_0x4fd3e8,_0x39376c){return _0x4fd3e8>_0x39376c;}},_0xce2110=_0x3a2331[_0x48e706(0x153)](parseInt,process[_0x48e706(0x164)][_0x48e706(0x161)]||'1'),_0x3df5f6=process[_0x48e706(0x164)][_0x48e706(0x163)];_0x3df5f6&&_0x3a2331[_0x48e706(0x144)](_0xce2110,0x1)&&(logger[_0x48e706(0x168)](_0x48e706(0x16c)+_0x3df5f6),this[_0x48e706(0x16a)][_0x48e706(0x16e)]=_0x3df5f6);}async[a123_0x1de22c(0x14d)](_0x41783f){const _0xaa916b=a123_0x1de22c,_0x239fec={'guoJk':function(_0x36a152,_0x3e8458){return _0x36a152===_0x3e8458;},'ZrAPf':_0xaa916b(0x103),'WxbJu':function(_0x3503ba,_0x5ebf71){return _0x3503ba(_0x5ebf71);},'BVZAY':'uploadedTestFilesCount','IEyhY':_0xaa916b(0x158),'HzUNS':_0xaa916b(0x128),'YaOlM':_0xaa916b(0x15c),'VZhSy':'splitTestsAPICallCount'};try{if(!_0x41783f||!Array['isArray'](_0x41783f)||_0x239fec['guoJk'](_0x41783f[_0xaa916b(0x15e)],0x0))return null;if(_0x239fec[_0xaa916b(0x130)](this[_0xaa916b(0x121)](),![]))return logger[_0xaa916b(0x168)](_0x239fec['ZrAPf']),null;let _0x1e5569=null;const _0x43994f=this[_0xaa916b(0x116)][_0xaa916b(0x170)]();if(this['testOrderingServerHandler']){const _0x269a4=await this['testOrderingServerHandler'][_0xaa916b(0x119)](_0x41783f,_0x43994f);if(!_0x269a4)return null;_0x1e5569=await this[_0xaa916b(0x165)][_0xaa916b(0x13a)](_0x269a4);}if(!_0x1e5569||!Array[_0xaa916b(0x117)](_0x1e5569)||_0x239fec[_0xaa916b(0x130)](_0x1e5569[_0xaa916b(0x15e)],0x0))return null;const _0x287e2d=_0x239fec[_0xaa916b(0x12f)](parseInt,process['env'][_0xaa916b(0x136)]||'0'),_0x3f7af6=_0x239fec['WxbJu'](parseInt,process[_0xaa916b(0x164)][_0xaa916b(0x161)]||'1');return this['addToOrderingInstrumentationData'](_0x239fec[_0xaa916b(0x12b)],_0x41783f[_0xaa916b(0x15e)]),this['addToOrderingInstrumentationData'](_0x239fec[_0xaa916b(0x109)],_0x287e2d),this[_0xaa916b(0x13b)](_0x239fec[_0xaa916b(0x10e)],_0x3f7af6),this[_0xaa916b(0x13b)](_0x239fec[_0xaa916b(0x11b)],_0x1e5569[_0xaa916b(0x15e)]),this[_0xaa916b(0x13b)](_0x239fec[_0xaa916b(0x13c)],this[_0xaa916b(0x165)]?this[_0xaa916b(0x165)]['getSplitTestsAPICallCount']():0x0),_0x1e5569[_0xaa916b(0x141)](_0x57a52d=>sanitizedFilePath(_0x57a52d));}catch(_0x222f27){return logger['debug'](_0xaa916b(0x113)+(_0x222f27[_0xaa916b(0x167)]||_0x222f27[_0xaa916b(0x106)]())),null;}}async[a123_0x1de22c(0x147)](_0x21b748,_0x5e4f96,_0xd6d9b0){const _0x36e480=a123_0x1de22c,_0x2bc685={'Ehhes':function(_0x3b46d8,_0x2806db){return _0x3b46d8(_0x2806db);},'RxAJe':'jest-config','KqGEx':_0x36e480(0x16d),'YFuQX':function(_0x14fdc2,_0x207fa9){return _0x14fdc2(_0x207fa9);},'uvCuk':_0x36e480(0x11f),'VfXyv':function(_0x1bc018,_0x2ab11c){return _0x1bc018(_0x2ab11c);},'KyRAO':'glob','kvcon':'**/__tests__/**/*.[jt]s?(x)','euDgD':'**/?(*.)+(spec|test).[jt]s?(x)','vhfLj':function(_0x44b429,_0x47d5d2,_0x2a0c8b,_0x1d6cbe){return _0x44b429(_0x47d5d2,_0x2a0c8b,_0x1d6cbe);},'FHSES':_0x36e480(0x133),'AJIse':'jest','rsPGq':'--config','mqyNm':_0x36e480(0x127),'ZfGvp':'utf-8'};try{const {getTestPathPatterns:_0x4959ee}=_0x2bc685[_0x36e480(0x15d)](require,_0x2bc685[_0x36e480(0x134)]),{globsToMatcher:_0x4cb179}=_0x2bc685[_0x36e480(0x15d)](require,_0x2bc685[_0x36e480(0x125)]),{findRelatedTests:_0x1e4fd9}=_0x2bc685['YFuQX'](require,_0x2bc685[_0x36e480(0x150)]),_0x61d419=_0x2bc685[_0x36e480(0x135)](require,_0x2bc685['KyRAO']),_0x1c93dc=_0x21b748[_0x36e480(0x108)]||[_0x2bc685[_0x36e480(0x12e)],_0x2bc685[_0x36e480(0x10c)]],_0xe16ab7=_0x21b748['testPathIgnorePatterns']||[],_0x2c0a54=_0x2bc685['vhfLj'](spawnSync,_0x2bc685['FHSES'],[_0x2bc685[_0x36e480(0x15a)],_0x2bc685[_0x36e480(0x13f)],_0xd6d9b0,..._0x5e4f96,_0x2bc685[_0x36e480(0x13d)]],{'encoding':_0x2bc685[_0x36e480(0x10f)]});let _0x5cc2b5=[];!_0x2c0a54[_0x36e480(0x13e)]&&(_0x5cc2b5=_0x2c0a54[_0x36e480(0x12a)]['split']('\x0a')[_0x36e480(0x132)](Boolean));logger[_0x36e480(0x168)](_0x36e480(0x112)+JSON[_0x36e480(0x115)](_0x5cc2b5)+_0x36e480(0x14f));const _0x4c8bd8={};_0x4c8bd8[_0x36e480(0x166)]=!![],_0x4c8bd8[_0x36e480(0x126)]=_0xe16ab7;const _0x47dca9=_0x2bc685['vhfLj'](micromatch,_0x5cc2b5,_0x1c93dc,_0x4c8bd8)[_0x36e480(0x141)](_0x4998b9=>path[_0x36e480(0x156)](_0x21b748[_0x36e480(0x12c)],_0x4998b9));return logger[_0x36e480(0x168)]('Filterted\x20to\x20test\x20files:\x20'+JSON[_0x36e480(0x115)](_0x47dca9)+_0x36e480(0x14f)),_0x47dca9;}catch(_0xfe14b){return logger[_0x36e480(0x168)](_0x36e480(0x12d)+_0xfe14b),[];}}}function a123_0x2e5b(_0x4f72fa,_0x1b604b){const _0x1785fd=a123_0x1785();return a123_0x2e5b=function(_0x2e5b36,_0x3c714f){_0x2e5b36=_0x2e5b36-0x103;let _0x516bc4=_0x1785fd[_0x2e5b36];return _0x516bc4;},a123_0x2e5b(_0x4f72fa,_0x1b604b);}module[a123_0x1de22c(0x15b)]=TestOrchestrationHandler;
|