browserstack-node-sdk 1.42.2 → 1.42.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/cucumber-sessionDetails.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/playwright-patcher.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/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a120_0x1caf(){const _0x2f0886=['../performance/performance-tester','../../bin/utils/logPatcher','CODECEPT','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','lDiQb','^CUSTOM_TAG_\x5cd+$','BROWSERSTACK_TEST_OBSERVABILITY_YML','local_grid','PathHelper','ztibB','getFailureType','message','Error\x20in\x20importing\x20windows-release\x20','TEST_PLATFORM','507570dmRNig','./constants','KbSpd','host','isTestObservabilitySession','iHxVH','getPackageVersion','../logger','Mdxeh','expanded','xrvSw','toString','Rybzs','iIuen','prefixTestPath','6291pQsrRW','tvXQJ','forEach','filter','4|1|2|0|3|5','RICTG','getSyncScript','AOhtt','getBrowserName','relative','bMiYu','BROWSERSTACK_OBSERVABILITY_DEBUG','Uploading\x20trace\x20logs\x20to:\x20','MMwmo','ATS_HUB_URL_REGEX','addRequestSpy','BROWSERSTACK_RERUN_TESTS','test_run_uuid','IgHwZ','getCapabilities','729568mBQyrx','sScQK','EzENl','default','vlaKE','now','BROWSERSTACK_TEST_OBSERVABILITY','4okJaYh','nodeRequest','getUserName','2591510xjmYnm','aJJaY','maxSockets','YwqDO','ZWFOs','QdwzX','bs:addLog:','asJPD','winstonLogger','XBhuo','join','../performance/constants','UihuE','TEST_REPORTING_BUILD_TAG','CUSTOM_TAG','18400oRZxHn','length','config','backtrace','getPlatformVersion','mceDo','agent','customTag','https','\x20]\x20Build\x20Not\x20Found\x20%s','dkGpJ','SeXdL','measureWrapper','keys','getos','getDefaultHeaders','TEST_ATTACHMENT','getObservabilityLinkedProductName','browserstack','1259122zfCiPH','annotate','GxKxT','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','sQZzp','lodash','RYXbX','Linux','shouldReRunObservabilityTests','][\x20','pyrGy','HUB_URL_REGEX','UdXGM','url','match','debug','[%s][\x20','failureData','../../bin/utils/constants','true','rootDir','object','BROWSERSTACK_TEST_REPORTING_DEBUG','emit','map','ZVvQv','eNZTM','mocha','PRINT_BUILDLINK','BROWSERSTACK_TEST_REPORTING','err','keepAlive','sleep','parse','release','cJwZG','getSession','toJSON','../../bin/v2/browserstackCLI','X-BSTACK-TESTOPS','nnTlM','data','removeAnsiColors','trace','getBrowserVersion','O11Y_URL','http','FxRuA','ZhTtY','error','buildTag','relativeTestFilePath','LogCreated','/builds/','stack','SMDGY','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','application/json','browserstack_executor:\x20','__cloud_provider___','util','QOjjE','split','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','ojfVv','lmttQ','TEST_REPORTING_ANALYTICS','toISOString','getAccessKey','extractValuesWithRegexKeyMatch','format','app-automate','body','fromEntries','turboscale','getBrowserStackConfig','app','RUoPa','bstack:options','asyncAwaitNodeReq','JNJYn','smXoI','Visit\x20','automate','test','112092BPLsLj','windows-release','RzXza','LIVCQ','dist','platform','formData','BROWSERSTACK_TESTHUB_JWT','path','DlTLC','lPQjI','timeout','printBuildLink','RmKkM','turboScaleGridDetails','\x20test\x20instance\x20:\x20','Sxqep','kjEjh','capabilities','TEST_OBSERVABILITY_BUILD_TAG','getPlatformDetails','mhEbt','MHetA','TxGlW','yvlCE','698SnStpp','ehxaQ','patchConsoleLogger','spy','AssertionError','Windows','env','maxTotalSockets','../helper','\x20]\x20','headers','getFrameworkVersion','pMdTD','BS_TESTOPS_BUILD_HASHED_ID','log','YWPqN','modifyReqForTraceUpload','LRAre','appium:app','json','codeceptjs','dobuE','lbtCZ','getCustomTags','push','git-repo-info','trim','child_process','Agent','undefined','KIMlO','pid','getBuildTags','77CCScnG','vyYMF','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','catch','Content-Type','ObservabilitySync:','AVipr','unknown_grid','isUndefined','DgTMc','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','NCndF','stringify','PLAYWRIGHT','pKmTP','xGEud','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','includes','Authorization','SdvNt','logs','Znnlq','iuTcE','CUCUMBER','zyOVB','fqmvf','prefix','O11yHashedID','hQDRU','zGKOV','replace','jest','UnhandledError','KdzeF','NykMu','win32','xIEhK','git-last-commit','getPlatform','\x20:\x20','OS\x20X','info','isArray','MOCHA','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','UzEoc','null','platformVersion'];a120_0x1caf=function(){return _0x2f0886;};return a120_0x1caf();}const a120_0x4e99a3=a120_0x4d01;(function(_0xc91dda,_0x280e1f){const _0x5f4d30=a120_0x4d01,_0x2d445c=_0xc91dda();while(!![]){try{const _0x2eea06=-parseInt(_0x5f4d30(0x23b))/0x1+parseInt(_0x5f4d30(0x1cc))/0x2+parseInt(_0x5f4d30(0x17d))/0x3+-parseInt(_0x5f4d30(0x1a7))/0x4*(-parseInt(_0x5f4d30(0x1aa))/0x5)+parseInt(_0x5f4d30(0x222))/0x6*(parseInt(_0x5f4d30(0x25c))/0x7)+parseInt(_0x5f4d30(0x1a0))/0x8+-parseInt(_0x5f4d30(0x18c))/0x9*(parseInt(_0x5f4d30(0x1b9))/0xa);if(_0x2eea06===_0x280e1f)break;else _0x2d445c['push'](_0x2d445c['shift']());}catch(_0x44e772){_0x2d445c['push'](_0x2d445c['shift']());}}}(a120_0x1caf,0x4fced));const fs=require('fs'),path=require(a120_0x4e99a3(0x22a)),gitLastCommit=require(a120_0x4e99a3(0x281)),getRepoInfo=require(a120_0x4e99a3(0x254)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a120_0x4e99a3(0x17e)),http=require(a120_0x4e99a3(0x1fa)),https=require('https'),child_process=require(a120_0x4e99a3(0x256)),getos=require(a120_0x4e99a3(0x1c7)),os=require('os'),logger=require(a120_0x4e99a3(0x184))[a120_0x4e99a3(0x1b2)],bsSetupHelper=require(a120_0x4e99a3(0x243)),requestSpy=require('../../helpers/request-spy'),constants=require(a120_0x4e99a3(0x1de)),logPatcher=require(a120_0x4e99a3(0x28d)),util=require(a120_0x4e99a3(0x208)),{fileLogger}=require('../logger'),PerformanceTester=require(a120_0x4e99a3(0x28c)),{isFunction}=require(a120_0x4e99a3(0x1d1)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a120_0x4e99a3(0x1b5)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require('../../../src/bin/utils/constants');exports[a120_0x4e99a3(0x1f7)]=_0x26121e=>{const _0x5f302e=a120_0x4e99a3;fileLogger['silly']('['+new Date()[_0x5f302e(0x210)]()+'][\x20'+constants[_0x5f302e(0x20f)]+'\x20]\x20'+_0x26121e);},exports[a120_0x4e99a3(0x1db)]=_0x47735f=>{const _0x586fdf=a120_0x4e99a3,_0x23ccee={};_0x23ccee[_0x586fdf(0x17f)]=function(_0xc2cf81,_0x5d76ae){return _0xc2cf81===_0x5d76ae;},_0x23ccee[_0x586fdf(0x19e)]=_0x586fdf(0x1df),_0x23ccee['dobuE']=function(_0x4ee837,_0x5297a){return _0x4ee837===_0x5297a;};const _0xa06ec3=_0x23ccee;fileLogger[_0x586fdf(0x1db)]('['+new Date()[_0x586fdf(0x210)]()+_0x586fdf(0x1d5)+constants['TEST_REPORTING_ANALYTICS']+_0x586fdf(0x244)+_0x47735f),(_0xa06ec3['KbSpd'](process[_0x586fdf(0x241)][_0x586fdf(0x1e2)],_0xa06ec3['IgHwZ'])||_0xa06ec3[_0x586fdf(0x17f)](process[_0x586fdf(0x241)]['BROWSERSTACK_TEST_REPORTING_DEBUG'],'1')||_0xa06ec3[_0x586fdf(0x17f)](process[_0x586fdf(0x241)][_0x586fdf(0x197)],_0xa06ec3[_0x586fdf(0x19e)])||_0xa06ec3[_0x586fdf(0x250)](process[_0x586fdf(0x241)][_0x586fdf(0x197)],'1'))&&consoleHolder[_0x586fdf(0x249)]('\x0a['+new Date()[_0x586fdf(0x210)]()+'][\x20'+constants[_0x586fdf(0x20f)]+_0x586fdf(0x244)+_0x47735f+'\x0a');};const a120_0x279b30={};a120_0x279b30[a120_0x4e99a3(0x1eb)]=!![],a120_0x279b30[a120_0x4e99a3(0x22d)]=0xea60,a120_0x279b30[a120_0x4e99a3(0x1ac)]=0x2,a120_0x279b30[a120_0x4e99a3(0x242)]=0x2;const httpKeepAliveAgent=new http[(a120_0x4e99a3(0x257))](a120_0x279b30),a120_0x8c929f={};a120_0x8c929f[a120_0x4e99a3(0x1eb)]=!![],a120_0x8c929f[a120_0x4e99a3(0x22d)]=0xea60,a120_0x8c929f['maxSockets']=0x2,a120_0x8c929f[a120_0x4e99a3(0x242)]=0x2;const httpsKeepAliveAgent=new https['Agent'](a120_0x8c929f),a120_0x2d511b={};a120_0x2d511b['keepAlive']=!![],a120_0x2d511b[a120_0x4e99a3(0x22d)]=0xea60,a120_0x2d511b[a120_0x4e99a3(0x1ac)]=0x2,a120_0x2d511b[a120_0x4e99a3(0x242)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a120_0x4e99a3(0x257))](a120_0x2d511b),a120_0x61c9d1={};a120_0x61c9d1[a120_0x4e99a3(0x1eb)]=!![],a120_0x61c9d1[a120_0x4e99a3(0x22d)]=0xea60,a120_0x61c9d1[a120_0x4e99a3(0x1ac)]=0x2,a120_0x61c9d1[a120_0x4e99a3(0x242)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a120_0x4e99a3(0x257))](a120_0x61c9d1);exports[a120_0x4e99a3(0x1d4)]=()=>{const _0x19e242=a120_0x4e99a3,_0x412a80={};_0x412a80[_0x19e242(0x189)]=function(_0x56d12f,_0x43d87e){return _0x56d12f!==_0x43d87e;},_0x412a80[_0x19e242(0x1ab)]=_0x19e242(0x28a);const _0x7fc9f=_0x412a80;return process[_0x19e242(0x241)][_0x19e242(0x19c)]&&_0x7fc9f[_0x19e242(0x189)](process[_0x19e242(0x241)][_0x19e242(0x19c)],_0x7fc9f[_0x19e242(0x1ab)])?!![]:![];},exports[a120_0x4e99a3(0x181)]=()=>{const _0x20d1f5=a120_0x4e99a3,_0x2c70d1={};_0x2c70d1[_0x20d1f5(0x1e5)]=function(_0x89e29c,_0x4424b8){return _0x89e29c===_0x4424b8;},_0x2c70d1[_0x20d1f5(0x1e6)]=_0x20d1f5(0x1df),_0x2c70d1['bMiYu']=function(_0x32bafd,_0x27f4a0){return _0x32bafd===_0x27f4a0;};const _0x1f35c1=_0x2c70d1;let _0x1743ac=!![];return process[_0x20d1f5(0x241)][_0x20d1f5(0x292)]&&(_0x1743ac=_0x1f35c1[_0x20d1f5(0x1e5)](process[_0x20d1f5(0x241)]['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0x1f35c1[_0x20d1f5(0x1e6)])),process[_0x20d1f5(0x241)][_0x20d1f5(0x1a6)]&&(_0x1743ac=_0x1f35c1[_0x20d1f5(0x1e5)](process[_0x20d1f5(0x241)][_0x20d1f5(0x1a6)],_0x1f35c1[_0x20d1f5(0x1e6)])),process[_0x20d1f5(0x241)][_0x20d1f5(0x1e9)]&&(_0x1743ac=_0x1f35c1[_0x20d1f5(0x196)](process[_0x20d1f5(0x241)][_0x20d1f5(0x1e9)],_0x1f35c1[_0x20d1f5(0x1e6)])),_0x1743ac;},exports['parseFileNames']=_0x1d7ca9=>{const _0x50b3d0=a120_0x4e99a3;if(bsSetupHelper[_0x50b3d0(0x264)](_0x1d7ca9))return undefined;try{return _0x1d7ca9['trim']()[_0x50b3d0(0x20a)](',');}catch(_0x23c065){return undefined;}},exports[a120_0x4e99a3(0x22e)]=()=>{const _0x505337=a120_0x4e99a3,_0x4649a8={'AVipr':function(_0x561c9f,_0x2d0051){return _0x561c9f(_0x2d0051);},'UdXGM':_0x505337(0x1f2),'SMDGY':function(_0x59ff06,_0x1f58d6){return _0x59ff06!==_0x1f58d6;},'aJxnP':_0x505337(0x28a),'MwEgI':_0x505337(0x258)};return PerformanceTester[_0x505337(0x1c5)](PerformanceO11yEvents[_0x505337(0x1e8)],async()=>{const _0xcb4adc=_0x505337;try{const _0x4d087f=_0x4649a8[_0xcb4adc(0x262)](require,_0x4649a8[_0xcb4adc(0x1d8)]);if(_0x4d087f[_0xcb4adc(0x277)]){logger[_0xcb4adc(0x285)](_0xcb4adc(0x21f)+O11Y_URL+_0xcb4adc(0x201)+_0x4d087f[_0xcb4adc(0x277)]+_0xcb4adc(0x25e));return;}process['env'][_0xcb4adc(0x248)]&&_0x4649a8['SMDGY'](process[_0xcb4adc(0x241)][_0xcb4adc(0x248)],_0x4649a8['aJxnP'])&&_0x4649a8[_0xcb4adc(0x203)](process[_0xcb4adc(0x241)][_0xcb4adc(0x248)],_0x4649a8['MwEgI'])&&logger['info'](_0xcb4adc(0x21f)+constants[_0xcb4adc(0x1f9)]+'/builds/'+process[_0xcb4adc(0x241)]['BS_TESTOPS_BUILD_HASHED_ID']+_0xcb4adc(0x25e));}catch(_0x61324b){logger[_0xcb4adc(0x1fd)](util[_0xcb4adc(0x213)](_0xcb4adc(0x1dc)+constants['TEST_REPORTING_ANALYTICS']+_0xcb4adc(0x1c2),new Date()[_0xcb4adc(0x210)](),_0x61324b[_0xcb4adc(0x202)]||_0x61324b['message']||_0x61324b));}})();},exports[a120_0x4e99a3(0x179)]=_0xece1d6=>{const _0x1a542d=a120_0x4e99a3,_0x4c1b70={};_0x4c1b70[_0x1a542d(0x1b6)]=_0x1a542d(0x23f),_0x4c1b70[_0x1a542d(0x27d)]=_0x1a542d(0x27c);const _0x9a3b9d=_0x4c1b70;if(!_0xece1d6)return null;return _0xece1d6[_0x1a542d(0x188)]()[_0x1a542d(0x1da)](/AssertionError/)?_0x9a3b9d[_0x1a542d(0x1b6)]:_0x9a3b9d[_0x1a542d(0x27d)];},exports[a120_0x4e99a3(0x246)]=_0x37eec2=>{const _0x53cec7=a120_0x4e99a3,_0x8c6fb1={};_0x8c6fb1[_0x53cec7(0x25d)]=_0x53cec7(0x1e7),_0x8c6fb1[_0x53cec7(0x1f4)]='@playwright/test',_0x8c6fb1['Mdxeh']=_0x53cec7(0x24f),_0x8c6fb1[_0x53cec7(0x22f)]=_0x53cec7(0x27b),_0x8c6fb1['mceDo']='@cucumber/cucumber';const _0x1cc1c3=_0x8c6fb1;let _0x23eee9=null;switch(_0x37eec2){case FRAMEWORKS[_0x53cec7(0x287)]:_0x23eee9=bsSetupHelper[_0x53cec7(0x183)](_0x1cc1c3[_0x53cec7(0x25d)]);break;case FRAMEWORKS[_0x53cec7(0x269)]:_0x23eee9=bsSetupHelper[_0x53cec7(0x183)](_0x1cc1c3[_0x53cec7(0x1f4)]);break;case FRAMEWORKS[_0x53cec7(0x28e)]:case FRAMEWORKS['CODECEPT_CUCUMBER']:_0x23eee9=bsSetupHelper[_0x53cec7(0x183)](_0x1cc1c3[_0x53cec7(0x185)]);break;case FRAMEWORKS['JEST']:_0x23eee9=bsSetupHelper[_0x53cec7(0x183)](_0x1cc1c3[_0x53cec7(0x22f)]);break;case FRAMEWORKS[_0x53cec7(0x273)]:_0x23eee9=bsSetupHelper['getPackageVersion'](_0x1cc1c3[_0x53cec7(0x1be)]);break;default:break;}return _0x23eee9;},exports[a120_0x4e99a3(0x218)]=_0x3ecac0=>{const _0x583d51=a120_0x4e99a3;let _0x29a216=null;switch(_0x3ecac0){case FRAMEWORKS[_0x583d51(0x269)]:_0x29a216=process['env']['BROWSERSTACK_CONFIG_FILE_PATH'];break;}if(!_0x29a216)return;return bsSetupHelper['readConfig'](_0x29a216,![]);},exports['getUserCredentials']=_0x5e7938=>{const _0x1f9426=a120_0x4e99a3;return{'username':bsSetupHelper[_0x1f9426(0x1a9)](_0x5e7938),'accessKey':bsSetupHelper[_0x1f9426(0x211)](_0x5e7938)};},exports[a120_0x4e99a3(0x24b)]=(_0x3aeeb8,_0x38c45b)=>{const _0x1bb95e=a120_0x4e99a3,_0xdb2394={};_0xdb2394[_0x1bb95e(0x26b)]=_0x1bb95e(0x190),_0xdb2394[_0x1bb95e(0x271)]=_0x1bb95e(0x200),_0xdb2394[_0x1bb95e(0x1b3)]=_0x1bb95e(0x1c9);const _0x1063f6=_0xdb2394,_0x50f262=_0x1063f6['xGEud'][_0x1bb95e(0x20a)]('|');let _0x576aea=0x0;while(!![]){switch(_0x50f262[_0x576aea++]){case'0':delete _0x3aeeb8['body'];continue;case'1':if(!_0x3aeeb8[_0x1bb95e(0x215)][0x0]||!_0x3aeeb8['body'][0x0][_0x1bb95e(0x270)]||!_0x3aeeb8['body'][0x0]['logs'][_0x1bb95e(0x1ba)])return;continue;case'2':_0x3aeeb8[_0x1bb95e(0x228)]={'data':_0x3aeeb8[_0x1bb95e(0x215)][0x0][_0x1bb95e(0x270)][0x0][_0x1bb95e(0x1f5)],'test_run_uuid':_0x3aeeb8['body'][0x0][_0x1bb95e(0x270)][0x0][_0x1bb95e(0x19d)],'event_type':_0x1063f6[_0x1bb95e(0x271)],'kind':_0x1063f6[_0x1bb95e(0x1b3)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x1bb95e(0x210)](),'fileName':_0x3aeeb8[_0x1bb95e(0x215)][0x0]['logs'][0x0]['fileName']};continue;case'3':delete _0x3aeeb8[_0x1bb95e(0x24e)];continue;case'4':if(!_0x3aeeb8[_0x1bb95e(0x215)]||!Array[_0x1bb95e(0x286)](_0x3aeeb8['body']))return;continue;case'5':delete _0x38c45b['headers'];continue;}break;}},exports[a120_0x4e99a3(0x21c)]=async(_0x21ef9b,_0x13f425,_0x56116e,_0x526fc1,_0x36002f=!![])=>{const _0x4e5389=a120_0x4e99a3,_0x5ee5cd={};_0x5ee5cd[_0x4e5389(0x193)]=function(_0x2df5d4,_0x563f9d){return _0x2df5d4===_0x563f9d;},_0x5ee5cd['bJpKj']='Content-Type',_0x5ee5cd[_0x4e5389(0x18a)]=_0x4e5389(0x205),_0x5ee5cd[_0x4e5389(0x1ef)]=_0x4e5389(0x1c1),_0x5ee5cd[_0x4e5389(0x247)]=function(_0x3b951c,_0x2f55a2){return _0x3b951c!==_0x2f55a2;},_0x5ee5cd[_0x4e5389(0x1b1)]=_0x4e5389(0x1e1),_0x5ee5cd[_0x4e5389(0x21e)]=_0x4e5389(0x20c);const _0x682985=_0x5ee5cd,_0x38fbcb={..._0x526fc1,...{'method':_0x21ef9b,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x13f425,'body':_0x56116e,'json':_0x682985[_0x4e5389(0x193)](_0x526fc1['headers'][_0x682985['bJpKj']],_0x682985[_0x4e5389(0x18a)]),'agent':API_URL[_0x4e5389(0x26d)](_0x682985[_0x4e5389(0x1ef)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x682985[_0x4e5389(0x193)](_0x13f425,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x38fbcb[_0x4e5389(0x1bf)]=API_URL[_0x4e5389(0x26d)](_0x682985[_0x4e5389(0x1ef)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x38fbcb,_0x526fc1),logger['debug'](_0x4e5389(0x198)+_0x38fbcb['url']));try{const {statusCode:_0x338d2b,body:_0x9c880e}=await bsSetupHelper[_0x4e5389(0x1a8)](_0x21ef9b,_0x13f425,_0x38fbcb,_0x526fc1,_0x38fbcb[_0x4e5389(0x1d9)]);if(_0x682985[_0x4e5389(0x247)](_0x338d2b,0xc8))return _0x9c880e?_0x9c880e:_0x4e5389(0x1cf)+_0x338d2b;let _0x5e0f34=_0x9c880e;if(_0x36002f)try{_0x682985[_0x4e5389(0x247)](typeof _0x9c880e,_0x682985[_0x4e5389(0x1b1)])&&(_0x5e0f34=JSON[_0x4e5389(0x1ed)](_0x9c880e));}catch(_0x41031a){logger[_0x4e5389(0x1fd)](_0x682985['smXoI'],_0x9c880e,util['format'](_0x41031a));}const _0x3099b3={};return _0x3099b3[_0x4e5389(0x1f5)]=_0x5e0f34,_0x3099b3;}catch(_0x2d67b9){logger['error'](_0x4e5389(0x28f)+util[_0x4e5389(0x213)](_0x2d67b9));throw _0x2d67b9;}},exports['nodeRequest']=(_0x56e7b2,_0x24a6b7,_0x39aa95,_0x53489d,_0x41f862=!![])=>{const _0x10e400=a120_0x4e99a3,_0x2ac542={'YwqDO':function(_0x4d98ec,_0x2c6dc2){return _0x4d98ec!==_0x2c6dc2;},'GxKxT':function(_0x4a935f,_0x5ecaa9){return _0x4a935f(_0x5ecaa9);},'BKZbU':function(_0x5280e6,_0x241fc0){return _0x5280e6!==_0x241fc0;},'vlaKE':_0x10e400(0x1e1),'sQZzp':_0x10e400(0x266),'DlTLC':function(_0x33c73a,_0x4afe2b){return _0x33c73a===_0x4afe2b;},'YWPqN':_0x10e400(0x260),'RzXza':_0x10e400(0x205),'zGKOV':'https'};return new Promise((_0x4a61cb,_0x15b733)=>{const _0x5d81a1=_0x10e400,_0x51f611={'KIMlO':function(_0x3096f4,_0x42ae01){const _0x136485=a120_0x4d01;return _0x2ac542[_0x136485(0x1ce)](_0x3096f4,_0x42ae01);}},_0x50d6cd={..._0x53489d,...{'method':_0x56e7b2,'url':API_URL+'/'+_0x24a6b7,'body':_0x39aa95,'json':_0x2ac542[_0x5d81a1(0x22b)](_0x53489d[_0x5d81a1(0x245)][_0x2ac542[_0x5d81a1(0x24a)]],_0x2ac542[_0x5d81a1(0x224)]),'agent':API_URL[_0x5d81a1(0x26d)](_0x2ac542[_0x5d81a1(0x279)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x2ac542[_0x5d81a1(0x22b)](_0x24a6b7,SCREENSHOT_ENDPOINT)&&(_0x50d6cd[_0x5d81a1(0x1bf)]=API_URL[_0x5d81a1(0x26d)](_0x2ac542[_0x5d81a1(0x279)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper['nodeRequest'](_0x56e7b2,_0x24a6b7,_0x50d6cd,_0x53489d,API_URL)['then'](({statusCode:_0x5cf973,body:_0x3a1827})=>{const _0x443c14=_0x5d81a1;if(_0x2ac542[_0x443c14(0x1ad)](_0x5cf973,0xc8))_0x2ac542[_0x443c14(0x1ce)](_0x15b733,_0x3a1827?_0x3a1827:_0x443c14(0x1cf)+_0x5cf973);else{if(_0x41f862)try{_0x2ac542['BKZbU'](typeof _0x3a1827,_0x2ac542[_0x443c14(0x1a4)])&&(_0x3a1827=JSON[_0x443c14(0x1ed)](_0x3a1827));}catch(_0x56469a){_0x2ac542[_0x443c14(0x1ce)](_0x15b733,_0x2ac542[_0x443c14(0x1d0)]);return;}const _0x9c118d={};_0x9c118d[_0x443c14(0x1f5)]=_0x3a1827,_0x2ac542[_0x443c14(0x1ce)](_0x4a61cb,_0x9c118d);}})[_0x5d81a1(0x25f)](_0x2e9065=>{const _0x5236bb=_0x5d81a1;_0x2e9065&&_0x51f611[_0x5236bb(0x259)](_0x15b733,_0x2e9065);});});},exports[a120_0x4e99a3(0x25b)]=_0x1d0519=>{const _0x533fcd=a120_0x4e99a3;if(process[_0x533fcd(0x241)][_0x533fcd(0x1b7)])return process['env'][_0x533fcd(0x1b7)][_0x533fcd(0x20a)](',');if(process[_0x533fcd(0x241)][_0x533fcd(0x235)])return process[_0x533fcd(0x241)]['TEST_OBSERVABILITY_BUILD_TAG'][_0x533fcd(0x20a)](',');if(_0x1d0519[_0x533fcd(0x1fe)])return _0x1d0519[_0x533fcd(0x1fe)];return[];},exports[a120_0x4e99a3(0x1c8)]=(_0x1895f4=!![])=>{const _0x5b697e=a120_0x4e99a3,_0x47d0d0={};_0x47d0d0[_0x5b697e(0x199)]='application/json',_0x47d0d0[_0x5b697e(0x209)]='true',_0x47d0d0['reoOO']=_0x5b697e(0x26e);const _0x510d7f=_0x47d0d0,_0x271c85={};_0x271c85['Content-Type']=_0x510d7f['MMwmo'],_0x271c85[_0x5b697e(0x1f3)]=_0x510d7f[_0x5b697e(0x209)];const _0x169a86=_0x271c85;return _0x1895f4&&process[_0x5b697e(0x241)][_0x5b697e(0x229)]&&(_0x169a86[_0x510d7f['reoOO']]='Bearer\x20'+process[_0x5b697e(0x241)][_0x5b697e(0x229)]),_0x169a86;},exports['extractValuesWithRegexKeyMatch']=_0x1288e4=>{const _0x1282cd=a120_0x4e99a3,_0x7010bb={};_0x7010bb['xrvSw']=_0x1282cd(0x291);const _0x46bf39=_0x7010bb,_0x39392a=[],_0x9098e4=new RegExp(_0x46bf39[_0x1282cd(0x187)],'i');return Object[_0x1282cd(0x1c6)](_0x1288e4)[_0x1282cd(0x18f)](_0x7fda90=>_0x9098e4[_0x1282cd(0x221)](_0x7fda90))[_0x1282cd(0x18e)](_0x351f7a=>_0x39392a[_0x1282cd(0x253)](_0x1288e4[_0x351f7a])),_0x39392a;},exports[a120_0x4e99a3(0x252)]=_0x58626a=>{const _0x5109f4=a120_0x4e99a3,_0x4b5b27=[],_0x1a299b=_0x58626a[_0x5109f4(0x1c0)]||process[_0x5109f4(0x241)][_0x5109f4(0x1b8)];return _0x1a299b&&_0x4b5b27[_0x5109f4(0x253)](_0x1a299b),_0x4b5b27['push'](...exports[_0x5109f4(0x212)](process[_0x5109f4(0x241)])),_0x4b5b27[_0x5109f4(0x253)](...exports[_0x5109f4(0x212)](_0x58626a)),_0x4b5b27;},exports[a120_0x4e99a3(0x1f6)]=_0x39fa42=>{const _0x31e3fc=a120_0x4e99a3;if(!_0x39fa42)return'';return _0x39fa42[_0x31e3fc(0x27a)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a120_0x4e99a3(0x1ec)]=(_0x3aa8a0=0x64)=>new Promise(_0x44f6b7=>setTimeout(_0x44f6b7,_0x3aa8a0));function a120_0x4d01(_0x3ba5b5,_0x3efb1f){const _0x1caf88=a120_0x1caf();return a120_0x4d01=function(_0x4d01c9,_0x122e0a){_0x4d01c9=_0x4d01c9-0x179;let _0x3efc7e=_0x1caf88[_0x4d01c9];return _0x3efc7e;},a120_0x4d01(_0x3ba5b5,_0x3efb1f);}const getPlatformName=()=>{const _0x4c6833=a120_0x4e99a3,_0x428b9b={};_0x428b9b[_0x4c6833(0x265)]=function(_0x50563d,_0x29d641){return _0x50563d===_0x29d641;},_0x428b9b['QdwzX']=_0x4c6833(0x27f),_0x428b9b['MHetA']=_0x4c6833(0x240),_0x428b9b['SeXdL']=function(_0x328102,_0x39022c){return _0x328102===_0x39022c;},_0x428b9b[_0x4c6833(0x21a)]='darwin',_0x428b9b[_0x4c6833(0x275)]=_0x4c6833(0x284),_0x428b9b[_0x4c6833(0x182)]=function(_0x47d6ba,_0x2b51ca){return _0x47d6ba===_0x2b51ca;},_0x428b9b[_0x4c6833(0x1a1)]='linux',_0x428b9b[_0x4c6833(0x274)]=_0x4c6833(0x1d3),_0x428b9b[_0x4c6833(0x20d)]='Unknown';const _0x21729b=_0x428b9b;if(_0x21729b[_0x4c6833(0x265)](process[_0x4c6833(0x227)],_0x21729b[_0x4c6833(0x1af)]))return _0x21729b[_0x4c6833(0x238)];if(_0x21729b[_0x4c6833(0x1c4)](process[_0x4c6833(0x227)],_0x21729b[_0x4c6833(0x21a)]))return _0x21729b[_0x4c6833(0x275)];if(_0x21729b[_0x4c6833(0x182)](process[_0x4c6833(0x227)],_0x21729b[_0x4c6833(0x1a1)]))return _0x21729b[_0x4c6833(0x274)];return _0x21729b[_0x4c6833(0x20d)];},getMacOSVersion=()=>{const _0x217ab9=a120_0x4e99a3,_0x33e1d0={};_0x33e1d0[_0x217ab9(0x26a)]=_0x217ab9(0x204);const _0x26c354=_0x33e1d0;return child_process['execSync'](_0x26c354[_0x217ab9(0x26a)])[_0x217ab9(0x188)]()[_0x217ab9(0x255)]();},getLinuxDetails=()=>{const _0x145bba={'lPQjI':function(_0x2af032,_0x4f8169){return _0x2af032(_0x4f8169);},'LIVCQ':function(_0x506d5e,_0x3ce68e){return _0x506d5e(_0x3ce68e);}};return new Promise((_0x54aad0,_0x16953a)=>{const _0x1b009d=a120_0x4d01,_0x5a8612={'hQDRU':function(_0x21c403,_0x573427){const _0x4d0207=a120_0x4d01;return _0x145bba[_0x4d0207(0x22c)](_0x21c403,_0x573427);}};_0x145bba[_0x1b009d(0x225)](getos,(_0x59b637,_0x515f29)=>{const _0x32a8a4=_0x1b009d;if(_0x59b637)return _0x5a8612['hQDRU'](_0x16953a,_0x59b637);_0x5a8612[_0x32a8a4(0x278)](_0x54aad0,_0x515f29);});});};exports[a120_0x4e99a3(0x236)]=async()=>{const _0x2b65a6=a120_0x4e99a3,_0x5a8318={'ZWFOs':function(_0x394ea6){return _0x394ea6();},'TxGlW':_0x2b65a6(0x284),'ztibB':_0x2b65a6(0x240),'yvlCE':_0x2b65a6(0x223),'rXOfJ':_0x2b65a6(0x1d3),'iuTcE':'Error\x20in\x20getting\x20Linux\x20Details'};let _0x318654=_0x5a8318[_0x2b65a6(0x1ae)](getPlatformName),_0x4a2f12=os['release']()[_0x2b65a6(0x188)]();switch(_0x318654){case _0x5a8318[_0x2b65a6(0x239)]:_0x4a2f12=_0x5a8318[_0x2b65a6(0x1ae)](getMacOSVersion);break;case _0x5a8318[_0x2b65a6(0x295)]:try{const _0x2d6dd0=(await import(_0x5a8318[_0x2b65a6(0x23a)]))[_0x2b65a6(0x1a3)];_0x4a2f12=_0x5a8318[_0x2b65a6(0x1ae)](_0x2d6dd0);}catch(_0x3d1a8b){exports[_0x2b65a6(0x1db)](_0x2b65a6(0x17b)+_0x3d1a8b['toString']());}break;case _0x5a8318['rXOfJ']:try{const _0x3ad86a=await _0x5a8318[_0x2b65a6(0x1ae)](getLinuxDetails);_0x3ad86a[_0x2b65a6(0x226)]&&(_0x318654=_0x3ad86a[_0x2b65a6(0x226)]),_0x3ad86a[_0x2b65a6(0x1ee)]&&(_0x4a2f12=_0x3ad86a['release']['toString']());}catch(_0x1a408e){exports[_0x2b65a6(0x1db)](_0x5a8318[_0x2b65a6(0x272)]);}break;default:break;}const _0x47df56={};return _0x47df56['platformName']=_0x318654,_0x47df56[_0x2b65a6(0x28b)]=_0x4a2f12,_0x47df56;},exports[a120_0x4e99a3(0x1dd)]=(_0x1692cc,_0x3ff1b3)=>{const _0xa46621=a120_0x4e99a3,_0x2a8408={};_0x2a8408[_0xa46621(0x290)]=function(_0x1ec82f,_0x49833d){return _0x1ec82f===_0x49833d;},_0x2a8408[_0xa46621(0x1d6)]='test',_0x2a8408[_0xa46621(0x289)]=_0xa46621(0x1ea);const _0x5883c8=_0x2a8408;if(!_0x1692cc)return[];try{if(_0x5883c8[_0xa46621(0x290)](_0x3ff1b3,_0x5883c8[_0xa46621(0x1d6)]))return _0x1692cc[_0xa46621(0x1e4)](_0x56952a=>{const _0x26ee74=_0xa46621,{stack:_0x4fb83c,..._0xb02a3}=_0x56952a,_0x612801=Object[_0x26ee74(0x1c6)](_0xb02a3)[_0x26ee74(0x1e4)](_0x186e51=>{return _0x186e51+':\x20'+_0xb02a3[_0x186e51];}),_0xf25425=_0x4fb83c?exports[_0x26ee74(0x1f6)](_0x4fb83c)[_0x26ee74(0x20a)](/\r?\n/):[exports['removeAnsiColors'](_0x56952a['message'])],_0x42eb43={};return _0x42eb43['backtrace']=_0xf25425,_0x42eb43[_0x26ee74(0x186)]=_0x612801,_0x42eb43;});else{if(_0x5883c8[_0xa46621(0x290)](_0x3ff1b3,_0x5883c8['UzEoc'])){const _0x40c688=[],_0x1db480=[];return Object[_0xa46621(0x1c6)](_0x1692cc)[_0xa46621(0x18e)](_0x5b25f5=>{const _0x47a65f=_0xa46621;try{_0x1db480[_0x47a65f(0x253)](_0x5b25f5+':\x20'+_0x1692cc[_0x5b25f5]);}catch(_0x2f91eb){exports[_0x47a65f(0x1db)](_0x47a65f(0x26c)+_0x2f91eb['message']+'\x20:\x20'+_0x2f91eb[_0x47a65f(0x1bc)]);}}),_0x40c688[_0xa46621(0x253)]({'backtrace':exports['removeAnsiColors'](_0x1692cc[_0xa46621(0x202)])[_0xa46621(0x20a)](/\r?\n/),'expanded':_0x1db480}),_0x40c688;}}return[];}catch(_0x1d16c5){exports[_0xa46621(0x1db)](_0xa46621(0x26c)+_0x1d16c5[_0xa46621(0x17a)]+_0xa46621(0x283)+_0x1d16c5[_0xa46621(0x1bc)]);}return[];};class PathHelper{constructor(_0x13cab6,_0x252311){const _0x55af9f=a120_0x4e99a3;this[_0x55af9f(0x1bb)]=_0x13cab6,this[_0x55af9f(0x276)]=_0x252311;}[a120_0x4e99a3(0x1ff)](_0x5eb818){const _0x4a6c48=a120_0x4e99a3,_0x21041a=this[_0x4a6c48(0x1bb)]['cwd']||this[_0x4a6c48(0x1bb)][_0x4a6c48(0x1e0)];return path[_0x4a6c48(0x195)](_0x21041a,_0x5eb818);}[a120_0x4e99a3(0x18b)](_0x4596c6){const _0x14d416=a120_0x4e99a3,_0x4b6d68=this[_0x14d416(0x1ff)](_0x4596c6);return this[_0x14d416(0x276)]?path[_0x14d416(0x1b4)](this['prefix'],_0x4b6d68):_0x4b6d68;}}exports[a120_0x4e99a3(0x294)]=PathHelper,exports[a120_0x4e99a3(0x19b)]=(_0x2a31f0=!![])=>{const _0x505bfb=a120_0x4e99a3,_0x35659c={};_0x35659c[_0x505bfb(0x1fc)]=function(_0x132d47,_0x57175e){return _0x132d47===_0x57175e;},_0x35659c[_0x505bfb(0x1a2)]='X-BSTACK-TESTOPS',_0x35659c[_0x505bfb(0x267)]='true',_0x35659c['QngcR']='HTTP',_0x35659c[_0x505bfb(0x191)]=_0x505bfb(0x1cb),_0x35659c['JNJYn']=_0x505bfb(0x293);const _0x1ab474=_0x35659c;requestSpy[_0x505bfb(0x23e)]((_0x171ef3,_0x45d5a6)=>{const _0x4132ce=_0x505bfb;_0x45d5a6&&!(_0x45d5a6[_0x4132ce(0x245)]&&_0x1ab474[_0x4132ce(0x1fc)](_0x45d5a6[_0x4132ce(0x245)][_0x1ab474[_0x4132ce(0x1a2)]],_0x1ab474['NCndF']))&&(_0x45d5a6[_0x4132ce(0x180)]=_0x45d5a6['hostname'],delete _0x45d5a6['hostname'],_0x2a31f0&&process[_0x4132ce(0x1e3)](_0x4132ce(0x1b0)+process[_0x4132ce(0x25a)],{'timestamp':new Date()[_0x4132ce(0x210)](),'level':null,'message':null,'kind':_0x1ab474['QngcR'],'http_response':_0x45d5a6})),_0x45d5a6&&(constants[_0x4132ce(0x1d7)][_0x4132ce(0x221)](_0x45d5a6[_0x4132ce(0x180)])||constants[_0x4132ce(0x19a)][_0x4132ce(0x221)](_0x45d5a6['host']))?global[_0x4132ce(0x207)]=_0x1ab474['RICTG']:global[_0x4132ce(0x207)]=_0x1ab474[_0x4132ce(0x21d)];});},exports[a120_0x4e99a3(0x23d)]=()=>{const _0x308d0b=a120_0x4e99a3,_0xe3428a={'jkZXs':function(_0x2a9fb9,_0x22dbb0){return _0x2a9fb9(_0x22dbb0);}};console={},Object[_0x308d0b(0x1c6)](consoleHolder)['forEach'](_0x3350fd=>{_0xe3428a['jkZXs'](isFunction,consoleHolder[_0x3350fd])?console[_0x3350fd]=(..._0x305b7d)=>{const _0x5b05b1=a120_0x4d01;try{!Object[_0x5b05b1(0x1c6)](BSTestOpsPatcher)['includes'](_0x3350fd)?consoleHolder[_0x3350fd](..._0x305b7d):BSTestOpsPatcher[_0x3350fd](..._0x305b7d);}catch(_0x2b4d26){consoleHolder[_0x3350fd](..._0x305b7d);}}:console[_0x3350fd]=consoleHolder[_0x3350fd];});},exports[a120_0x4e99a3(0x192)]=()=>a120_0x4e99a3(0x206)+JSON[a120_0x4e99a3(0x268)]({'action':a120_0x4e99a3(0x1cd),'arguments':{'data':a120_0x4e99a3(0x261)+Date[a120_0x4e99a3(0x1a5)](),'level':a120_0x4e99a3(0x1db)}}),exports[a120_0x4e99a3(0x1ca)]=_0x298107=>{const _0x350aa0=a120_0x4e99a3,_0x2dd3af={};_0x2dd3af[_0x350aa0(0x20e)]=function(_0x175202,_0x1c4901){return _0x175202===_0x1c4901;},_0x2dd3af[_0x350aa0(0x18d)]=_0x350aa0(0x1cb),_0x2dd3af[_0x350aa0(0x280)]=_0x350aa0(0x24d),_0x2dd3af[_0x350aa0(0x251)]=_0x350aa0(0x219),_0x2dd3af['RYXbX']=function(_0x22c392,_0x6e9e42){return _0x22c392>_0x6e9e42;},_0x2dd3af[_0x350aa0(0x23c)]=_0x350aa0(0x214),_0x2dd3af[_0x350aa0(0x232)]=_0x350aa0(0x21b),_0x2dd3af[_0x350aa0(0x1fb)]=_0x350aa0(0x230),_0x2dd3af[_0x350aa0(0x237)]=_0x350aa0(0x217),_0x2dd3af[_0x350aa0(0x24c)]=_0x350aa0(0x220);const _0x5f3c54=_0x2dd3af;let _0x525669=null;try{if(_0x5f3c54[_0x350aa0(0x20e)](global[_0x350aa0(0x207)],_0x5f3c54['tvXQJ'])){if(_0x298107[_0x5f3c54[_0x350aa0(0x280)]]||_0x298107[_0x5f3c54[_0x350aa0(0x251)]]||!bsSetupHelper[_0x350aa0(0x264)](global['capabilities'])&&_0x5f3c54[_0x350aa0(0x1d2)](global[_0x350aa0(0x234)][_0x350aa0(0x1ba)],0x0)&&(global[_0x350aa0(0x234)][0x0][_0x5f3c54[_0x350aa0(0x251)]]||global[_0x350aa0(0x234)][0x0][_0x5f3c54[_0x350aa0(0x280)]]))_0x525669=_0x5f3c54[_0x350aa0(0x23c)];else _0x298107[_0x5f3c54[_0x350aa0(0x232)]]&&_0x298107[_0x5f3c54[_0x350aa0(0x232)]][_0x5f3c54['FxRuA']]?_0x525669=_0x5f3c54[_0x350aa0(0x237)]:_0x525669=_0x5f3c54[_0x350aa0(0x24c)];}}catch(_0x2110c4){exports[_0x350aa0(0x1db)](_0x350aa0(0x20b)+constants[_0x350aa0(0x20f)]+_0x350aa0(0x231)+_0x2110c4);}return _0x525669;},exports['sendPlatformDetails']=async(_0x224070,_0x4febee,_0x2b8d21=![])=>{const _0x1f6bff=a120_0x4e99a3,_0x4ad420={};_0x4ad420[_0x1f6bff(0x233)]=function(_0x3bf3e4,_0x172001){return _0x3bf3e4===_0x172001;},_0x4ad420[_0x1f6bff(0x27e)]=_0x1f6bff(0x1cb),_0x4ad420[_0x1f6bff(0x26f)]=_0x1f6bff(0x263),_0x4ad420[_0x1f6bff(0x1c3)]=_0x1f6bff(0x17c);const _0x3d7072=_0x4ad420;try{const _0x1f2593=await _0x224070[_0x1f6bff(0x19f)](),_0x2675fb=await _0x224070[_0x1f6bff(0x1f0)](),_0x2dd822={},_0xe95ad=Object[_0x1f6bff(0x216)](_0x2675fb[_0x1f6bff(0x19f)]()['map_']),_0x2b81c={'product':exports[_0x1f6bff(0x1ca)](_0xe95ad),'capabilities':_0xe95ad,'platform':_0x1f2593[_0x1f6bff(0x282)](),'platform_version':bsSetupHelper[_0x1f6bff(0x1bd)](_0x3d7072['kjEjh'](global[_0x1f6bff(0x207)],_0x3d7072['NykMu'])),'browser':_0x1f2593[_0x1f6bff(0x194)](),'browser_version':_0x1f2593[_0x1f6bff(0x1f8)](),'session_id':_0x2675fb[_0x1f6bff(0x1f1)]()};global[_0x1f6bff(0x207)]?_0x2dd822[global[_0x1f6bff(0x207)]]=_0x2b81c:_0x2dd822[_0x3d7072[_0x1f6bff(0x26f)]]=_0x2b81c;if(_0x2b8d21)return _0x2dd822;process[_0x1f6bff(0x1e3)]('bs:addPlatformDetails:'+process[_0x1f6bff(0x25a)],{'timestamp':new Date()[_0x1f6bff(0x210)](),'level':null,'message':null,'kind':_0x3d7072['dkGpJ'],'http_response':_0x2dd822,'uuid':_0x4febee});}catch(_0x293ef5){exports[_0x1f6bff(0x1db)](_0x1f6bff(0x288)+_0x293ef5);}},exports['isInternalHook']=_0xa5408e=>{const _0x557ef7=a120_0x4e99a3;return _0xa5408e&&_0xa5408e[_0x557ef7(0x188)]()[_0x557ef7(0x1da)](/browserstack internal helper hook/);};
|
|
1
|
+
const a120_0x49dcf7=a120_0x57e4;function a120_0x57e4(_0x383287,_0xa4e04f){const _0x5b1ca3=a120_0x5b1c();return a120_0x57e4=function(_0x57e4cd,_0x375a8d){_0x57e4cd=_0x57e4cd-0x1cb;let _0x5d745b=_0x5b1ca3[_0x57e4cd];return _0x5d745b;},a120_0x57e4(_0x383287,_0xa4e04f);}(function(_0x594850,_0x421b16){const _0x4c656e=a120_0x57e4,_0x11fddf=_0x594850();while(!![]){try{const _0x33648a=parseInt(_0x4c656e(0x21a))/0x1+parseInt(_0x4c656e(0x205))/0x2+-parseInt(_0x4c656e(0x277))/0x3*(-parseInt(_0x4c656e(0x21c))/0x4)+-parseInt(_0x4c656e(0x1ce))/0x5*(-parseInt(_0x4c656e(0x234))/0x6)+parseInt(_0x4c656e(0x236))/0x7*(-parseInt(_0x4c656e(0x1f8))/0x8)+-parseInt(_0x4c656e(0x29d))/0x9+parseInt(_0x4c656e(0x1ef))/0xa*(-parseInt(_0x4c656e(0x1f3))/0xb);if(_0x33648a===_0x421b16)break;else _0x11fddf['push'](_0x11fddf['shift']());}catch(_0x32e1ac){_0x11fddf['push'](_0x11fddf['shift']());}}}(a120_0x5b1c,0xaea1a));const fs=require('fs'),path=require(a120_0x49dcf7(0x26a)),gitLastCommit=require(a120_0x49dcf7(0x244)),getRepoInfo=require(a120_0x49dcf7(0x200)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a120_0x49dcf7(0x20b)),http=require(a120_0x49dcf7(0x1e1)),https=require('https'),child_process=require(a120_0x49dcf7(0x21e)),getos=require(a120_0x49dcf7(0x28d)),os=require('os'),logger=require(a120_0x49dcf7(0x214))[a120_0x49dcf7(0x20a)],bsSetupHelper=require(a120_0x49dcf7(0x2a2)),requestSpy=require(a120_0x49dcf7(0x2a0)),constants=require(a120_0x49dcf7(0x2c8)),logPatcher=require('../../bin/utils/logPatcher'),util=require(a120_0x49dcf7(0x2b1)),{fileLogger}=require(a120_0x49dcf7(0x214)),PerformanceTester=require(a120_0x49dcf7(0x2ab)),{isFunction}=require('lodash'),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require('../performance/constants'),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a120_0x49dcf7(0x22a));exports[a120_0x49dcf7(0x1d1)]=_0x4dda34=>{const _0x5d640e=a120_0x49dcf7;fileLogger[_0x5d640e(0x1f9)]('['+new Date()[_0x5d640e(0x1e7)]()+'][\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x5d640e(0x2d3)+_0x4dda34);},exports[a120_0x49dcf7(0x237)]=_0x2719b5=>{const _0x1b994d=a120_0x49dcf7,_0x4c9120={};_0x4c9120[_0x1b994d(0x1fb)]=function(_0x31f349,_0xd37fb6){return _0x31f349===_0xd37fb6;},_0x4c9120['srADK']='true',_0x4c9120[_0x1b994d(0x1da)]=function(_0xa6f583,_0xfe62f1){return _0xa6f583===_0xfe62f1;},_0x4c9120[_0x1b994d(0x26b)]=function(_0x1177d0,_0x22b851){return _0x1177d0===_0x22b851;};const _0x54ed62=_0x4c9120;fileLogger[_0x1b994d(0x237)]('['+new Date()['toISOString']()+_0x1b994d(0x1d2)+constants[_0x1b994d(0x252)]+_0x1b994d(0x2d3)+_0x2719b5),(_0x54ed62['xNEdk'](process[_0x1b994d(0x289)][_0x1b994d(0x272)],_0x54ed62[_0x1b994d(0x2ca)])||_0x54ed62[_0x1b994d(0x1da)](process[_0x1b994d(0x289)]['BROWSERSTACK_TEST_REPORTING_DEBUG'],'1')||_0x54ed62[_0x1b994d(0x26b)](process[_0x1b994d(0x289)][_0x1b994d(0x1cf)],_0x54ed62[_0x1b994d(0x2ca)])||_0x54ed62[_0x1b994d(0x26b)](process[_0x1b994d(0x289)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x1b994d(0x1e7)]()+'][\x20'+constants[_0x1b994d(0x252)]+'\x20]\x20'+_0x2719b5+'\x0a');};const a120_0xce3c72={};a120_0xce3c72['keepAlive']=!![],a120_0xce3c72[a120_0x49dcf7(0x2c0)]=0xea60,a120_0xce3c72[a120_0x49dcf7(0x28a)]=0x2,a120_0xce3c72['maxTotalSockets']=0x2;const httpKeepAliveAgent=new http[(a120_0x49dcf7(0x29e))](a120_0xce3c72),a120_0x160b43={};function a120_0x5b1c(){const _0x1f9b79=['expanded','TEST_REPORTING_ANALYTICS','getObservabilityLinkedProductName','@cucumber/cucumber','emit','browserstack','NapFP','fTQkz','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','getDefaultHeaders','sQzdg','BygJY','null','Error\x20in\x20getting\x20Linux\x20Details','Visit\x20','wveRH','getPackageVersion','BROWSERSTACK_TEST_REPORTING','Windows','AssertionError','jUCxO','pid','rootDir','bs:addLog:','Uploading\x20trace\x20logs\x20to:\x20','path','OdqRp','nQzDo','dLkEe','NpJQo','getPlatformDetails','stringify','getPlatform','BROWSERSTACK_TEST_REPORTING_DEBUG','fromEntries','app-automate','isUndefined','map','8829UMDgjZ','getSyncScript','Cnxbi','dist','wVncK','browserstack_executor:\x20','relativeTestFilePath','tvfDt','trim','ATS_HUB_URL_REGEX','getPlatformVersion','SHIas','extractValuesWithRegexKeyMatch','MNaBB','host','ArTGr','TEST_PLATFORM','CEmrI','env','maxSockets','EouyK','ZqukC','getos','bstack:options','linux','jest','ngMpy','ObservabilitySync:','https','push','Nztvb','patchConsoleLogger','mocha','Cqasb','stack','annotate','BROWSERSTACK_RERUN_TESTS','IDpbh','4642380GFbUXa','Agent','VrndI','../../helpers/request-spy','local_grid','../helper','capabilities','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','mGDwg','match','message','EfAmq','@playwright/test','aGBzn','../performance/performance-tester','yaijM','fIXbU','mJPRR','hostname','relative','util','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','keepAlive','eJgWt','\x20:\x20','true','TWhcv','2|0|3|4|5|1','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','isArray','getFrameworkVersion','WgLNB','Ikyag','AhLTx','WKPRM','timeout','cHkmd','fzWnG','sleep','TIpOi','XsOdv','QJDUB','../../bin/v2/browserstackCLI','../../bin/utils/constants','platformVersion','srADK','CODECEPT','shouldReRunObservabilityTests','ZDaAZ','DKrtE','JLsai','Error\x20in\x20importing\x20windows-release\x20','Content-Type','object','\x20]\x20','asyncAwaitNodeReq','getUserCredentials','test','prefix','OS\x20X','removeAnsiColors','iuPjL','FBUiE','agent','KMxyN','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','YuRWx','headers','isTestObservabilitySession','2842550QwTxGV','BROWSERSTACK_OBSERVABILITY_DEBUG','win32','trace','][\x20','HUB_URL_REGEX','format','CMOHZ','config','addRequestSpy','measureWrapper','TEST_ATTACHMENT','fVPva','YGvSy','sendPlatformDetails','wElAh','getCustomTags','platformName','BzlXM','http','dwqQt','O11Y_URL','qFRoF','YfxJp','buildTag','toISOString','EBgpk','logs','bs:addPlatformDetails:','__cloud_provider___','GtmZg','hoRXu','getBrowserName','1630RwtavD','ptpwB','application/json','getCapabilities','21725biqXfl','default','body','toString','Bearer\x20','813848EqunzS','silly','BROWSERSTACK_CONFIG_FILE_PATH','xNEdk','X-BSTACK-TESTOPS','VrKKF','getBrowserVersion','fileName','git-repo-info','BS_TESTOPS_BUILD_HASHED_ID','url','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','release','672612yFoKSF','mTrWO','KiPiQ','uFATN','map_','winstonLogger','./constants','keys','eSQlZ','hHDhf','dAIRG','length','Linux','filter','^CUSTOM_TAG_\x5cd+$','../logger','join','labzU','darwin','codeceptjs','maxTotalSockets','1345532HPSvXn','appium:app','988RgDiiE','split','child_process','modifyReqForTraceUpload','youVI','rZEbS','RrTCB','BROWSERSTACK_TESTHUB_JWT','qJBtk','data','ectDz','LogCreated','PLAYWRIGHT','cwd','../../../src/bin/utils/constants','UnhandledError','error','CODECEPT_CUCUMBER','windows-release','formData','tjGwx','Unknown','INgdm','CUSTOM_TAG','6ceXmSF','failureData','98iZbNyy','debug','info','KRLko','parse','fAikR','backtrace','NcjUW','YbMWy','toJSON','oJGho','HfQcT','wIVLT','unknown_grid','git-last-commit','RPacd','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','forEach','getUserName','test_run_uuid','AqdkM','MOCHA','nodeRequest','CUCUMBER','includes','sHpjU','getSession'];a120_0x5b1c=function(){return _0x1f9b79;};return a120_0x5b1c();}a120_0x160b43[a120_0x49dcf7(0x2b3)]=!![],a120_0x160b43[a120_0x49dcf7(0x2c0)]=0xea60,a120_0x160b43[a120_0x49dcf7(0x28a)]=0x2,a120_0x160b43['maxTotalSockets']=0x2;const httpsKeepAliveAgent=new https[(a120_0x49dcf7(0x29e))](a120_0x160b43),a120_0x43cce2={};a120_0x43cce2[a120_0x49dcf7(0x2b3)]=!![],a120_0x43cce2[a120_0x49dcf7(0x2c0)]=0xea60,a120_0x43cce2[a120_0x49dcf7(0x28a)]=0x2,a120_0x43cce2['maxTotalSockets']=0x2;const httpScreenshotsKeepAliveAgent=new http[(a120_0x49dcf7(0x29e))](a120_0x43cce2),a120_0x39bb05={};a120_0x39bb05[a120_0x49dcf7(0x2b3)]=!![],a120_0x39bb05['timeout']=0xea60,a120_0x39bb05['maxSockets']=0x2,a120_0x39bb05[a120_0x49dcf7(0x219)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a120_0x49dcf7(0x29e))](a120_0x39bb05);exports[a120_0x49dcf7(0x2cc)]=()=>{const _0x256a30=a120_0x49dcf7,_0x17ebe3={};_0x17ebe3[_0x256a30(0x1d5)]=function(_0x31d99f,_0x2a6585){return _0x31d99f!==_0x2a6585;},_0x17ebe3[_0x256a30(0x242)]=_0x256a30(0x25d);const _0x50a617=_0x17ebe3;return process[_0x256a30(0x289)][_0x256a30(0x29b)]&&_0x50a617[_0x256a30(0x1d5)](process['env'][_0x256a30(0x29b)],_0x50a617[_0x256a30(0x242)])?!![]:![];},exports[a120_0x49dcf7(0x1cd)]=()=>{const _0x38ec40=a120_0x49dcf7,_0x1d52ee={};_0x1d52ee[_0x38ec40(0x2a8)]=function(_0x4330b7,_0x7dba0a){return _0x4330b7===_0x7dba0a;},_0x1d52ee[_0x38ec40(0x24f)]='true',_0x1d52ee['EouyK']=function(_0x436320,_0x4465b0){return _0x436320===_0x4465b0;};const _0x4da919=_0x1d52ee;let _0x4585d0=!![];return process[_0x38ec40(0x289)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x4585d0=_0x4da919[_0x38ec40(0x2a8)](process[_0x38ec40(0x289)]['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0x4da919[_0x38ec40(0x24f)])),process[_0x38ec40(0x289)]['BROWSERSTACK_TEST_OBSERVABILITY']&&(_0x4585d0=_0x4da919[_0x38ec40(0x28b)](process['env']['BROWSERSTACK_TEST_OBSERVABILITY'],_0x4da919[_0x38ec40(0x24f)])),process[_0x38ec40(0x289)][_0x38ec40(0x262)]&&(_0x4585d0=_0x4da919[_0x38ec40(0x28b)](process[_0x38ec40(0x289)][_0x38ec40(0x262)],_0x4da919[_0x38ec40(0x24f)])),_0x4585d0;},exports['parseFileNames']=_0x433b23=>{const _0x1abb38=a120_0x49dcf7;if(bsSetupHelper[_0x1abb38(0x275)](_0x433b23))return undefined;try{return _0x433b23['trim']()[_0x1abb38(0x21d)](',');}catch(_0x8e7ddb){return undefined;}},exports['printBuildLink']=()=>{const _0x44dae4=a120_0x49dcf7,_0x3aa46a={'VrKKF':function(_0x2b0187,_0x3777d9){return _0x2b0187(_0x3777d9);},'CEmrI':_0x44dae4(0x2c7),'mTrWO':function(_0x4b84b6,_0x97cdff){return _0x4b84b6!==_0x97cdff;},'tFLYb':_0x44dae4(0x25d),'tvfDt':function(_0x574ef7,_0x7ba55b){return _0x574ef7!==_0x7ba55b;},'BygJY':'undefined'};return PerformanceTester[_0x44dae4(0x1d8)](PerformanceO11yEvents['PRINT_BUILDLINK'],async()=>{const _0x477a1f=_0x44dae4;try{const _0x1f2617=_0x3aa46a[_0x477a1f(0x1fd)](require,_0x3aa46a[_0x477a1f(0x288)]);if(_0x1f2617['O11yHashedID']){logger[_0x477a1f(0x238)]('Visit\x20'+O11Y_URL+'/builds/'+_0x1f2617['O11yHashedID']+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a');return;}process[_0x477a1f(0x289)]['BS_TESTOPS_BUILD_HASHED_ID']&&_0x3aa46a[_0x477a1f(0x206)](process[_0x477a1f(0x289)][_0x477a1f(0x201)],_0x3aa46a['tFLYb'])&&_0x3aa46a[_0x477a1f(0x27e)](process[_0x477a1f(0x289)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x3aa46a[_0x477a1f(0x25c)])&&logger[_0x477a1f(0x238)](_0x477a1f(0x25f)+constants[_0x477a1f(0x1e3)]+'/builds/'+process['env']['BS_TESTOPS_BUILD_HASHED_ID']+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a');}catch(_0x17bfd9){logger[_0x477a1f(0x22c)](util[_0x477a1f(0x1d4)]('[%s][\x20'+constants['TEST_REPORTING_ANALYTICS']+'\x20]\x20Build\x20Not\x20Found\x20%s',new Date()['toISOString'](),_0x17bfd9[_0x477a1f(0x299)]||_0x17bfd9['message']||_0x17bfd9));}})();},exports['getFailureType']=_0x5b0940=>{const _0x4b4e68=a120_0x49dcf7,_0x52a8b8={};_0x52a8b8[_0x4b4e68(0x2c6)]=_0x4b4e68(0x264),_0x52a8b8['HfQcT']=_0x4b4e68(0x22b);const _0x4c2e10=_0x52a8b8;if(!_0x5b0940)return null;return _0x5b0940['toString']()[_0x4b4e68(0x2a6)](/AssertionError/)?_0x4c2e10[_0x4b4e68(0x2c6)]:_0x4c2e10[_0x4b4e68(0x241)];},exports[a120_0x49dcf7(0x2bb)]=_0x40ed21=>{const _0x28815c=a120_0x49dcf7,_0xb4fe2d={};_0xb4fe2d[_0x28815c(0x27b)]=_0x28815c(0x297),_0xb4fe2d[_0x28815c(0x298)]=_0x28815c(0x2a9),_0xb4fe2d[_0x28815c(0x226)]=_0x28815c(0x218),_0xb4fe2d[_0x28815c(0x279)]=_0x28815c(0x290),_0xb4fe2d['NpJQo']=_0x28815c(0x254);const _0x41be94=_0xb4fe2d;let _0x3b93a9=null;switch(_0x40ed21){case FRAMEWORKS[_0x28815c(0x24b)]:_0x3b93a9=bsSetupHelper['getPackageVersion'](_0x41be94['wVncK']);break;case FRAMEWORKS[_0x28815c(0x228)]:_0x3b93a9=bsSetupHelper['getPackageVersion'](_0x41be94[_0x28815c(0x298)]);break;case FRAMEWORKS[_0x28815c(0x2cb)]:case FRAMEWORKS[_0x28815c(0x22d)]:_0x3b93a9=bsSetupHelper['getPackageVersion'](_0x41be94[_0x28815c(0x226)]);break;case FRAMEWORKS['JEST']:_0x3b93a9=bsSetupHelper['getPackageVersion'](_0x41be94['Cnxbi']);break;case FRAMEWORKS[_0x28815c(0x24d)]:_0x3b93a9=bsSetupHelper[_0x28815c(0x261)](_0x41be94[_0x28815c(0x26e)]);break;default:break;}return _0x3b93a9;},exports['getBrowserStackConfig']=_0x484259=>{const _0x2c5558=a120_0x49dcf7;let _0x605f53=null;switch(_0x484259){case FRAMEWORKS[_0x2c5558(0x228)]:_0x605f53=process['env'][_0x2c5558(0x1fa)];break;}if(!_0x605f53)return;return bsSetupHelper['readConfig'](_0x605f53,![]);},exports[a120_0x49dcf7(0x2d5)]=_0x415627=>{const _0x4ef40f=a120_0x49dcf7;return{'username':bsSetupHelper[_0x4ef40f(0x248)](_0x415627),'accessKey':bsSetupHelper['getAccessKey'](_0x415627)};},exports[a120_0x49dcf7(0x21f)]=(_0x7d9c0f,_0x200940)=>{const _0x45604f=a120_0x49dcf7,_0x122757={};_0x122757[_0x45604f(0x230)]=_0x45604f(0x2b8),_0x122757['UeWQM']=_0x45604f(0x227),_0x122757['dLkEe']=_0x45604f(0x1d9);const _0x1e9242=_0x122757,_0x43ea67=_0x1e9242['tjGwx']['split']('|');let _0xde3de0=0x0;while(!![]){switch(_0x43ea67[_0xde3de0++]){case'0':if(!_0x7d9c0f[_0x45604f(0x1f5)][0x0]||!_0x7d9c0f[_0x45604f(0x1f5)][0x0][_0x45604f(0x1e9)]||!_0x7d9c0f[_0x45604f(0x1f5)][0x0][_0x45604f(0x1e9)][_0x45604f(0x210)])return;continue;case'1':delete _0x200940[_0x45604f(0x1cc)];continue;case'2':if(!_0x7d9c0f[_0x45604f(0x1f5)]||!Array[_0x45604f(0x2ba)](_0x7d9c0f[_0x45604f(0x1f5)]))return;continue;case'3':_0x7d9c0f[_0x45604f(0x22f)]={'data':_0x7d9c0f[_0x45604f(0x1f5)][0x0][_0x45604f(0x1e9)][0x0][_0x45604f(0x225)],'test_run_uuid':_0x7d9c0f[_0x45604f(0x1f5)][0x0][_0x45604f(0x1e9)][0x0][_0x45604f(0x249)],'event_type':_0x1e9242['UeWQM'],'kind':_0x1e9242[_0x45604f(0x26d)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x45604f(0x1e7)](),'fileName':_0x7d9c0f[_0x45604f(0x1f5)][0x0][_0x45604f(0x1e9)][0x0][_0x45604f(0x1ff)]};continue;case'4':delete _0x7d9c0f[_0x45604f(0x1f5)];continue;case'5':delete _0x7d9c0f['json'];continue;}break;}},exports[a120_0x49dcf7(0x2d4)]=async(_0x1625e3,_0x58de0e,_0x40ff74,_0x21db04,_0x55db2e=!![])=>{const _0x1ab949=a120_0x49dcf7,_0xbfd1ae={};_0xbfd1ae[_0x1ab949(0x2bf)]=function(_0x1bf4a2,_0x42363c){return _0x1bf4a2===_0x42363c;},_0xbfd1ae[_0x1ab949(0x24a)]=_0x1ab949(0x2d1),_0xbfd1ae[_0x1ab949(0x245)]=_0x1ab949(0x1f1),_0xbfd1ae[_0x1ab949(0x2db)]=_0x1ab949(0x293),_0xbfd1ae[_0x1ab949(0x2c2)]=function(_0x12fd73,_0x503141){return _0x12fd73===_0x503141;},_0xbfd1ae[_0x1ab949(0x232)]=function(_0xf992ed,_0x58c36d){return _0xf992ed!==_0x58c36d;},_0xbfd1ae[_0x1ab949(0x1e0)]=_0x1ab949(0x2d2),_0xbfd1ae['KMyHG']=_0x1ab949(0x2de);const _0xb26d8f=_0xbfd1ae,_0xc06d79={..._0x21db04,...{'method':_0x1625e3,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x58de0e,'body':_0x40ff74,'json':_0xb26d8f[_0x1ab949(0x2bf)](_0x21db04['headers'][_0xb26d8f['AqdkM']],_0xb26d8f[_0x1ab949(0x245)]),'agent':API_URL[_0x1ab949(0x24e)](_0xb26d8f[_0x1ab949(0x2db)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0xb26d8f[_0x1ab949(0x2c2)](_0x58de0e,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0xc06d79[_0x1ab949(0x2dc)]=API_URL[_0x1ab949(0x24e)](_0xb26d8f[_0x1ab949(0x2db)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x1ab949(0x21f)](_0xc06d79,_0x21db04),logger[_0x1ab949(0x237)](_0x1ab949(0x269)+_0xc06d79[_0x1ab949(0x202)]));try{const {statusCode:_0x136bb2,body:_0x259127}=await bsSetupHelper[_0x1ab949(0x24c)](_0x1625e3,_0x58de0e,_0xc06d79,_0x21db04,_0xc06d79[_0x1ab949(0x202)]);if(_0xb26d8f['INgdm'](_0x136bb2,0xc8))return _0x259127?_0x259127:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x136bb2;let _0x51bd6a=_0x259127;if(_0x55db2e)try{_0xb26d8f['INgdm'](typeof _0x259127,_0xb26d8f[_0x1ab949(0x1e0)])&&(_0x51bd6a=JSON[_0x1ab949(0x23a)](_0x259127));}catch(_0x4fe465){logger[_0x1ab949(0x22c)](_0xb26d8f['KMyHG'],_0x259127,util[_0x1ab949(0x1d4)](_0x4fe465));}const _0x524864={};return _0x524864[_0x1ab949(0x225)]=_0x51bd6a,_0x524864;}catch(_0xd6a5ef){logger[_0x1ab949(0x22c)](_0x1ab949(0x2b9)+util[_0x1ab949(0x1d4)](_0xd6a5ef));throw _0xd6a5ef;}},exports[a120_0x49dcf7(0x24c)]=(_0x564f40,_0x5ce7b0,_0x495ad4,_0x3ec321,_0x85133c=!![])=>{const _0x1a05c2=a120_0x49dcf7,_0x47e696={'lEQBc':function(_0x45d03f,_0x43de63){return _0x45d03f!==_0x43de63;},'DKrtE':function(_0x389931,_0x3b03df){return _0x389931(_0x3b03df);},'gyMGy':function(_0x4ee279,_0x36d534){return _0x4ee279!==_0x36d534;},'lUKTG':_0x1a05c2(0x2d2),'cHkmd':_0x1a05c2(0x203),'pSADV':function(_0x5531c8,_0x445ceb){return _0x5531c8(_0x445ceb);},'ijDVK':function(_0x2185ed,_0x56328e){return _0x2185ed(_0x56328e);},'WgLNB':function(_0x3ad8a5,_0x4aeca1){return _0x3ad8a5===_0x4aeca1;},'qFRoF':_0x1a05c2(0x2d1),'ArTGr':_0x1a05c2(0x1f1),'dAIRG':'https','NcjUW':function(_0x2c97ca,_0x1f8fdf){return _0x2c97ca===_0x1f8fdf;}};return new Promise((_0x8204a9,_0x428eee)=>{const _0x747f27=_0x1a05c2,_0x41ab68={'uFATN':function(_0x306c15,_0x29de9c){return _0x47e696['lEQBc'](_0x306c15,_0x29de9c);},'IDpbh':function(_0xb0b9be,_0xe1527){const _0x20b749=a120_0x57e4;return _0x47e696[_0x20b749(0x2ce)](_0xb0b9be,_0xe1527);},'QbHlo':function(_0x4bb5d3,_0x24aaa7){return _0x47e696['gyMGy'](_0x4bb5d3,_0x24aaa7);},'ngMpy':_0x47e696['lUKTG'],'mGDwg':_0x47e696[_0x747f27(0x2c1)],'youVI':function(_0x6d9c6e,_0x5e4f57){return _0x47e696['pSADV'](_0x6d9c6e,_0x5e4f57);},'ENvta':function(_0x301b19,_0x32af70){return _0x47e696['ijDVK'](_0x301b19,_0x32af70);}},_0x54a51c={..._0x3ec321,...{'method':_0x564f40,'url':API_URL+'/'+_0x5ce7b0,'body':_0x495ad4,'json':_0x47e696[_0x747f27(0x2bc)](_0x3ec321[_0x747f27(0x1cc)][_0x47e696[_0x747f27(0x1e4)]],_0x47e696[_0x747f27(0x286)]),'agent':API_URL[_0x747f27(0x24e)](_0x47e696[_0x747f27(0x20f)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x47e696[_0x747f27(0x23d)](_0x5ce7b0,SCREENSHOT_ENDPOINT)&&(_0x54a51c[_0x747f27(0x2dc)]=API_URL[_0x747f27(0x24e)](_0x47e696[_0x747f27(0x20f)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper['nodeRequest'](_0x564f40,_0x5ce7b0,_0x54a51c,_0x3ec321,API_URL)['then'](({statusCode:_0x16c00c,body:_0x11e164})=>{const _0x516088=_0x747f27;if(_0x41ab68[_0x516088(0x208)](_0x16c00c,0xc8))_0x41ab68['IDpbh'](_0x428eee,_0x11e164?_0x11e164:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x16c00c);else{if(_0x85133c)try{_0x41ab68['QbHlo'](typeof _0x11e164,_0x41ab68[_0x516088(0x291)])&&(_0x11e164=JSON['parse'](_0x11e164));}catch(_0x81f879){_0x41ab68[_0x516088(0x29c)](_0x428eee,_0x41ab68[_0x516088(0x2a5)]);return;}const _0x177f68={};_0x177f68[_0x516088(0x225)]=_0x11e164,_0x41ab68[_0x516088(0x220)](_0x8204a9,_0x177f68);}})['catch'](_0x2d85b0=>{_0x2d85b0&&_0x41ab68['ENvta'](_0x428eee,_0x2d85b0);});});},exports['getBuildTags']=_0x2d2e28=>{const _0x41bbc=a120_0x49dcf7;if(process['env']['TEST_REPORTING_BUILD_TAG'])return process['env']['TEST_REPORTING_BUILD_TAG'][_0x41bbc(0x21d)](',');if(process[_0x41bbc(0x289)]['TEST_OBSERVABILITY_BUILD_TAG'])return process[_0x41bbc(0x289)]['TEST_OBSERVABILITY_BUILD_TAG'][_0x41bbc(0x21d)](',');if(_0x2d2e28[_0x41bbc(0x1e6)])return _0x2d2e28['buildTag'];return[];},exports[a120_0x49dcf7(0x25a)]=(_0x8358ca=!![])=>{const _0x55e96c=a120_0x49dcf7,_0x1f5995={};_0x1f5995['Opbqu']=_0x55e96c(0x1f1),_0x1f5995['hHDhf']=_0x55e96c(0x2b6),_0x1f5995[_0x55e96c(0x2ae)]='Authorization';const _0x15b856=_0x1f5995,_0x3c3c0a={};_0x3c3c0a[_0x55e96c(0x2d1)]=_0x15b856['Opbqu'],_0x3c3c0a[_0x55e96c(0x1fc)]=_0x15b856[_0x55e96c(0x20e)];const _0x306beb=_0x3c3c0a;return _0x8358ca&&process['env'][_0x55e96c(0x223)]&&(_0x306beb[_0x15b856['mJPRR']]=_0x55e96c(0x1f7)+process[_0x55e96c(0x289)]['BROWSERSTACK_TESTHUB_JWT']),_0x306beb;},exports['extractValuesWithRegexKeyMatch']=_0x5d179c=>{const _0x56b452=a120_0x49dcf7,_0x5c5fe1={};_0x5c5fe1[_0x56b452(0x2ad)]=_0x56b452(0x213);const _0x98fbbc=_0x5c5fe1,_0x2896ed=[],_0x1c2155=new RegExp(_0x98fbbc[_0x56b452(0x2ad)],'i');return Object[_0x56b452(0x20c)](_0x5d179c)[_0x56b452(0x212)](_0x3915a5=>_0x1c2155['test'](_0x3915a5))['forEach'](_0x720550=>_0x2896ed[_0x56b452(0x294)](_0x5d179c[_0x720550])),_0x2896ed;},exports[a120_0x49dcf7(0x1de)]=_0x12b6f1=>{const _0x472aba=a120_0x49dcf7,_0x4adbf3=[],_0x23914f=_0x12b6f1['customTag']||process[_0x472aba(0x289)][_0x472aba(0x233)];return _0x23914f&&_0x4adbf3[_0x472aba(0x294)](_0x23914f),_0x4adbf3[_0x472aba(0x294)](...exports[_0x472aba(0x283)](process[_0x472aba(0x289)])),_0x4adbf3[_0x472aba(0x294)](...exports[_0x472aba(0x283)](_0x12b6f1)),_0x4adbf3;},exports['removeAnsiColors']=_0x468bae=>{if(!_0x468bae)return'';return _0x468bae['replace'](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a120_0x49dcf7(0x2c3)]=(_0x5b50b0=0x64)=>new Promise(_0x13327a=>setTimeout(_0x13327a,_0x5b50b0));const getPlatformName=()=>{const _0x32d253=a120_0x49dcf7,_0x5e83f8={};_0x5e83f8[_0x32d253(0x2da)]=function(_0x18eaa7,_0xbb73e){return _0x18eaa7===_0xbb73e;},_0x5e83f8[_0x32d253(0x1f0)]=_0x32d253(0x1d0),_0x5e83f8[_0x32d253(0x216)]=_0x32d253(0x263),_0x5e83f8['sQzdg']=function(_0x46d9a7,_0x40b833){return _0x46d9a7===_0x40b833;},_0x5e83f8[_0x32d253(0x207)]=_0x32d253(0x217),_0x5e83f8[_0x32d253(0x222)]='OS\x20X',_0x5e83f8[_0x32d253(0x2dd)]=_0x32d253(0x28f),_0x5e83f8[_0x32d253(0x2b4)]=_0x32d253(0x211),_0x5e83f8[_0x32d253(0x2c4)]=_0x32d253(0x231);const _0x5c3958=_0x5e83f8;if(_0x5c3958[_0x32d253(0x2da)](process['platform'],_0x5c3958['ptpwB']))return _0x5c3958[_0x32d253(0x216)];if(_0x5c3958[_0x32d253(0x25b)](process['platform'],_0x5c3958[_0x32d253(0x207)]))return _0x5c3958[_0x32d253(0x222)];if(_0x5c3958['iuPjL'](process['platform'],_0x5c3958[_0x32d253(0x2dd)]))return _0x5c3958['eJgWt'];return _0x5c3958[_0x32d253(0x2c4)];},getMacOSVersion=()=>{const _0x189611=a120_0x49dcf7,_0x1228a2={};_0x1228a2[_0x189611(0x221)]=_0x189611(0x2b2);const _0x5d4eb0=_0x1228a2;return child_process['execSync'](_0x5d4eb0['rZEbS'])['toString']()[_0x189611(0x27f)]();},getLinuxDetails=()=>{const _0x28e09c={'dUfne':function(_0x5f67b0,_0x5a3335){return _0x5f67b0(_0x5a3335);},'wveRH':function(_0x48dbcc,_0x1324c2){return _0x48dbcc(_0x1324c2);}};return new Promise((_0x52c4d9,_0x5bc63f)=>{_0x28e09c['dUfne'](getos,(_0x4e2716,_0x24600f)=>{const _0xebcae3=a120_0x57e4;if(_0x4e2716)return _0x28e09c['dUfne'](_0x5bc63f,_0x4e2716);_0x28e09c[_0xebcae3(0x260)](_0x52c4d9,_0x24600f);});});};exports[a120_0x49dcf7(0x26f)]=async()=>{const _0x30f3d7=a120_0x49dcf7,_0x46d499={'YGvSy':function(_0x4b6414){return _0x4b6414();},'KRLko':_0x30f3d7(0x2d8),'VrndI':'Windows','eSQlZ':_0x30f3d7(0x22e),'TWhcv':_0x30f3d7(0x211),'Desdd':function(_0x29a82b){return _0x29a82b();},'yaijM':_0x30f3d7(0x25e)};let _0xc09f8f=_0x46d499['YGvSy'](getPlatformName),_0x172807=os['release']()[_0x30f3d7(0x1f6)]();switch(_0xc09f8f){case _0x46d499[_0x30f3d7(0x239)]:_0x172807=_0x46d499['YGvSy'](getMacOSVersion);break;case _0x46d499[_0x30f3d7(0x29f)]:try{const _0x13096c=(await import(_0x46d499[_0x30f3d7(0x20d)]))[_0x30f3d7(0x1f4)];_0x172807=_0x46d499[_0x30f3d7(0x1db)](_0x13096c);}catch(_0x31851a){exports['debug'](_0x30f3d7(0x2d0)+_0x31851a['toString']());}break;case _0x46d499[_0x30f3d7(0x2b7)]:try{const _0x12730f=await _0x46d499['Desdd'](getLinuxDetails);_0x12730f[_0x30f3d7(0x27a)]&&(_0xc09f8f=_0x12730f['dist']),_0x12730f[_0x30f3d7(0x204)]&&(_0x172807=_0x12730f[_0x30f3d7(0x204)][_0x30f3d7(0x1f6)]());}catch(_0x514019){exports['debug'](_0x46d499[_0x30f3d7(0x2ac)]);}break;default:break;}const _0x226433={};return _0x226433[_0x30f3d7(0x1df)]=_0xc09f8f,_0x226433[_0x30f3d7(0x2c9)]=_0x172807,_0x226433;},exports[a120_0x49dcf7(0x235)]=(_0x47b602,_0x3dcd0a)=>{const _0x35a92a=a120_0x49dcf7,_0x469150={};_0x469150[_0x35a92a(0x265)]=function(_0x2323ec,_0x5d1c33){return _0x2323ec===_0x5d1c33;},_0x469150[_0x35a92a(0x2cf)]=_0x35a92a(0x2d6),_0x469150[_0x35a92a(0x295)]=function(_0x4e148c,_0x12b388){return _0x4e148c===_0x12b388;},_0x469150[_0x35a92a(0x257)]='err';const _0x4ab387=_0x469150;if(!_0x47b602)return[];try{if(_0x4ab387[_0x35a92a(0x265)](_0x3dcd0a,_0x4ab387['JLsai']))return _0x47b602[_0x35a92a(0x276)](_0x28479e=>{const _0x10d33e=_0x35a92a,{stack:_0x381edd,..._0x2a4c7f}=_0x28479e,_0x39e139=Object[_0x10d33e(0x20c)](_0x2a4c7f)[_0x10d33e(0x276)](_0x21850f=>{return _0x21850f+':\x20'+_0x2a4c7f[_0x21850f];}),_0x3a9652=_0x381edd?exports[_0x10d33e(0x2d9)](_0x381edd)[_0x10d33e(0x21d)](/\r?\n/):[exports[_0x10d33e(0x2d9)](_0x28479e[_0x10d33e(0x2a7)])],_0x3db8b7={};return _0x3db8b7[_0x10d33e(0x23c)]=_0x3a9652,_0x3db8b7[_0x10d33e(0x251)]=_0x39e139,_0x3db8b7;});else{if(_0x4ab387['Nztvb'](_0x3dcd0a,_0x4ab387[_0x35a92a(0x257)])){const _0x4125ed=[],_0x15a752=[];return Object[_0x35a92a(0x20c)](_0x47b602)[_0x35a92a(0x247)](_0x390949=>{const _0xc9195f=_0x35a92a;try{_0x15a752[_0xc9195f(0x294)](_0x390949+':\x20'+_0x47b602[_0x390949]);}catch(_0x5f41b4){exports[_0xc9195f(0x237)](_0xc9195f(0x2a4)+_0x5f41b4[_0xc9195f(0x2a7)]+_0xc9195f(0x2b5)+_0x5f41b4[_0xc9195f(0x23c)]);}}),_0x4125ed[_0x35a92a(0x294)]({'backtrace':exports['removeAnsiColors'](_0x47b602[_0x35a92a(0x299)])['split'](/\r?\n/),'expanded':_0x15a752}),_0x4125ed;}}return[];}catch(_0x1f2014){exports[_0x35a92a(0x237)](_0x35a92a(0x2a4)+_0x1f2014[_0x35a92a(0x2a7)]+_0x35a92a(0x2b5)+_0x1f2014[_0x35a92a(0x23c)]);}return[];};class PathHelper{constructor(_0x2f9b95,_0x9e4046){const _0x1ed08f=a120_0x49dcf7;this['config']=_0x2f9b95,this[_0x1ed08f(0x2d7)]=_0x9e4046;}[a120_0x49dcf7(0x27d)](_0x5d3d28){const _0x31078d=a120_0x49dcf7,_0x10b3d3=this[_0x31078d(0x1d6)][_0x31078d(0x229)]||this[_0x31078d(0x1d6)][_0x31078d(0x267)];return path[_0x31078d(0x2b0)](_0x10b3d3,_0x5d3d28);}['prefixTestPath'](_0x3cdce9){const _0x366e58=a120_0x49dcf7,_0x42b24a=this['relativeTestFilePath'](_0x3cdce9);return this[_0x366e58(0x2d7)]?path[_0x366e58(0x215)](this['prefix'],_0x42b24a):_0x42b24a;}}exports['PathHelper']=PathHelper,exports[a120_0x49dcf7(0x1d7)]=(_0x1f3306=!![])=>{const _0x4f5c9b=a120_0x49dcf7,_0xa929ce={};_0xa929ce[_0x4f5c9b(0x2aa)]=function(_0x1ee755,_0x4ff471){return _0x1ee755===_0x4ff471;},_0xa929ce['AhLTx']='X-BSTACK-TESTOPS',_0xa929ce[_0x4f5c9b(0x2c5)]='true',_0xa929ce['hoRXu']='HTTP',_0xa929ce[_0x4f5c9b(0x258)]=_0x4f5c9b(0x256),_0xa929ce[_0x4f5c9b(0x1e2)]=_0x4f5c9b(0x2a1);const _0x1fc4de=_0xa929ce;requestSpy['spy']((_0x2c962c,_0x2325bd)=>{const _0xd5adb5=_0x4f5c9b;_0x2325bd&&!(_0x2325bd[_0xd5adb5(0x1cc)]&&_0x1fc4de['aGBzn'](_0x2325bd['headers'][_0x1fc4de[_0xd5adb5(0x2be)]],_0x1fc4de[_0xd5adb5(0x2c5)]))&&(_0x2325bd[_0xd5adb5(0x285)]=_0x2325bd[_0xd5adb5(0x2af)],delete _0x2325bd[_0xd5adb5(0x2af)],_0x1f3306&&process[_0xd5adb5(0x255)](_0xd5adb5(0x268)+process[_0xd5adb5(0x266)],{'timestamp':new Date()[_0xd5adb5(0x1e7)](),'level':null,'message':null,'kind':_0x1fc4de[_0xd5adb5(0x1ed)],'http_response':_0x2325bd})),_0x2325bd&&(constants[_0xd5adb5(0x1d3)][_0xd5adb5(0x2d6)](_0x2325bd[_0xd5adb5(0x285)])||constants[_0xd5adb5(0x280)][_0xd5adb5(0x2d6)](_0x2325bd[_0xd5adb5(0x285)]))?global['__cloud_provider___']=_0x1fc4de['fTQkz']:global[_0xd5adb5(0x1eb)]=_0x1fc4de[_0xd5adb5(0x1e2)];});},exports[a120_0x49dcf7(0x296)]=()=>{const _0x52dda6=a120_0x49dcf7,_0x509828={'ZDaAZ':function(_0x48c8f9,_0x4fe090){return _0x48c8f9(_0x4fe090);}};console={},Object[_0x52dda6(0x20c)](consoleHolder)[_0x52dda6(0x247)](_0x336164=>{const _0x25552a=_0x52dda6;_0x509828[_0x25552a(0x2cd)](isFunction,consoleHolder[_0x336164])?console[_0x336164]=(..._0x4d23d0)=>{const _0x5f3fca=_0x25552a;try{!Object['keys'](BSTestOpsPatcher)[_0x5f3fca(0x24e)](_0x336164)?consoleHolder[_0x336164](..._0x4d23d0):BSTestOpsPatcher[_0x336164](..._0x4d23d0);}catch(_0x2e6877){consoleHolder[_0x336164](..._0x4d23d0);}}:console[_0x336164]=consoleHolder[_0x336164];});},exports[a120_0x49dcf7(0x278)]=()=>a120_0x49dcf7(0x27c)+JSON[a120_0x49dcf7(0x270)]({'action':a120_0x49dcf7(0x29a),'arguments':{'data':a120_0x49dcf7(0x292)+Date['now'](),'level':a120_0x49dcf7(0x237)}}),exports[a120_0x49dcf7(0x253)]=_0x22cbb8=>{const _0x635532=a120_0x49dcf7,_0x377ff9={};_0x377ff9[_0x635532(0x1dd)]=function(_0x2daf40,_0x25fa27){return _0x2daf40===_0x25fa27;},_0x377ff9[_0x635532(0x240)]=_0x635532(0x256),_0x377ff9[_0x635532(0x23b)]=_0x635532(0x21b),_0x377ff9[_0x635532(0x282)]='app',_0x377ff9['MNaBB']=function(_0x57cc31,_0x1f02b0){return _0x57cc31>_0x1f02b0;},_0x377ff9[_0x635532(0x1e5)]=_0x635532(0x274),_0x377ff9[_0x635532(0x1cb)]=_0x635532(0x28e),_0x377ff9[_0x635532(0x2bd)]='turboScaleGridDetails',_0x377ff9[_0x635532(0x23e)]='turboscale',_0x377ff9[_0x635532(0x26c)]='automate';const _0x44607e=_0x377ff9;let _0x1e1e08=null;try{if(_0x44607e['wElAh'](global[_0x635532(0x1eb)],_0x44607e[_0x635532(0x240)])){if(_0x22cbb8[_0x44607e['fAikR']]||_0x22cbb8[_0x44607e[_0x635532(0x282)]]||!bsSetupHelper[_0x635532(0x275)](global[_0x635532(0x2a3)])&&_0x44607e[_0x635532(0x284)](global[_0x635532(0x2a3)][_0x635532(0x210)],0x0)&&(global['capabilities'][0x0][_0x44607e['SHIas']]||global[_0x635532(0x2a3)][0x0][_0x44607e['fAikR']]))_0x1e1e08=_0x44607e[_0x635532(0x1e5)];else _0x22cbb8[_0x44607e[_0x635532(0x1cb)]]&&_0x22cbb8[_0x44607e['YuRWx']][_0x44607e['Ikyag']]?_0x1e1e08=_0x44607e[_0x635532(0x23e)]:_0x1e1e08=_0x44607e['nQzDo'];}}catch(_0x385ca3){exports['debug'](_0x635532(0x259)+constants[_0x635532(0x252)]+'\x20test\x20instance\x20:\x20'+_0x385ca3);}return _0x1e1e08;},exports[a120_0x49dcf7(0x1dc)]=async(_0x43b8ed,_0x5f0ea3,_0x551387=![])=>{const _0x52ad29=a120_0x49dcf7,_0x139e59={};_0x139e59[_0x52ad29(0x1e8)]=function(_0x155ffe,_0x2fb9ce){return _0x155ffe===_0x2fb9ce;},_0x139e59[_0x52ad29(0x224)]=_0x52ad29(0x256),_0x139e59[_0x52ad29(0x28c)]=_0x52ad29(0x243),_0x139e59['GtmZg']=_0x52ad29(0x287);const _0x223560=_0x139e59;try{const _0x257056=await _0x43b8ed[_0x52ad29(0x1f2)](),_0x4559cf=await _0x43b8ed[_0x52ad29(0x250)](),_0x459c05={},_0x148c90=Object[_0x52ad29(0x273)](_0x4559cf[_0x52ad29(0x1f2)]()[_0x52ad29(0x209)]),_0x19b88f={'product':exports['getObservabilityLinkedProductName'](_0x148c90),'capabilities':_0x148c90,'platform':_0x257056[_0x52ad29(0x271)](),'platform_version':bsSetupHelper[_0x52ad29(0x281)](_0x223560[_0x52ad29(0x1e8)](global[_0x52ad29(0x1eb)],_0x223560[_0x52ad29(0x224)])),'browser':_0x257056[_0x52ad29(0x1ee)](),'browser_version':_0x257056[_0x52ad29(0x1fe)](),'session_id':_0x4559cf[_0x52ad29(0x23f)]()};global[_0x52ad29(0x1eb)]?_0x459c05[global[_0x52ad29(0x1eb)]]=_0x19b88f:_0x459c05[_0x223560['ZqukC']]=_0x19b88f;if(_0x551387)return _0x459c05;process[_0x52ad29(0x255)](_0x52ad29(0x1ea)+process['pid'],{'timestamp':new Date()[_0x52ad29(0x1e7)](),'level':null,'message':null,'kind':_0x223560[_0x52ad29(0x1ec)],'http_response':_0x459c05,'uuid':_0x5f0ea3});}catch(_0x2c2e5b){exports[_0x52ad29(0x237)](_0x52ad29(0x246)+_0x2c2e5b);}},exports['isInternalHook']=_0x183bfd=>{const _0x67c77f=a120_0x49dcf7;return _0x183bfd&&_0x183bfd['toString']()[_0x67c77f(0x2a6)](/browserstack internal helper hook/);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a121_0x54472f=a121_0x4cba;function a121_0x359b(){var _0x5229dd=['1040jyJIHP','4380uWpwGt','135tPbcwN','SPLIT_TESTS_ENDPOINT','337228OAKrTs','9LrhUgL','11389ynTVpO','testorchestration/api/v1/split-tests','2803075coHHEc','exports','1939610WZMmAz','1585orhzsW','11654gPtWkZ','https://collector-observability.browserstack.com','468531KyvqWF','testorchestration/api/v1/failed-tests'];a121_0x359b=function(){return _0x5229dd;};return a121_0x359b();}function a121_0x4cba(_0x115381,_0xc68a7c){var _0x359bc4=a121_0x359b();return a121_0x4cba=function(_0x4cba6b,_0x174f28){_0x4cba6b=_0x4cba6b-0x149;var _0x5191bb=_0x359bc4[_0x4cba6b];return _0x5191bb;},a121_0x4cba(_0x115381,_0xc68a7c);}(function(_0x390b7d,_0x407cfe){var _0x4a812b=a121_0x4cba,_0xd87e5d=_0x390b7d();while(!![]){try{var _0x1b50b7=parseInt(_0x4a812b(0x152))/0x1+-parseInt(_0x4a812b(0x150))/0x2*(parseInt(_0x4a812b(0x156))/0x3)+parseInt(_0x4a812b(0x158))/0x4+-parseInt(_0x4a812b(0x14f))/0x5*(parseInt(_0x4a812b(0x155))/0x6)+parseInt(_0x4a812b(0x14a))/0x7*(-parseInt(_0x4a812b(0x154))/0x8)+parseInt(_0x4a812b(0x149))/0x9*(parseInt(_0x4a812b(0x14e))/0xa)+parseInt(_0x4a812b(0x14c))/0xb;if(_0x1b50b7===_0x407cfe)break;else _0xd87e5d['push'](_0xd87e5d['shift']());}catch(_0x3b1520){_0xd87e5d['push'](_0xd87e5d['shift']());}}}(a121_0x359b,0x48629));var a121_0x2a941c={};a121_0x2a941c['ORCHESTRATION_API_URL']=a121_0x54472f(0x151),a121_0x2a941c['FAILED_TESTS_ENDPOINT']=a121_0x54472f(0x153),a121_0x2a941c[a121_0x54472f(0x157)]=a121_0x54472f(0x14b),module[a121_0x54472f(0x14d)]=a121_0x2a941c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a122_0x4a2c2e=a122_0x4fda;function a122_0x4fda(_0x532548,_0x1a0232){const _0x69c5f1=a122_0x69c5();return a122_0x4fda=function(_0x4fda04,_0x3a29ff){_0x4fda04=_0x4fda04-0x17d;let _0x14deca=_0x69c5f1[_0x4fda04];return _0x14deca;},a122_0x4fda(_0x532548,_0x1a0232);}(function(_0x38eb06,_0x2174af){const _0x12a564=a122_0x4fda,_0x2c69b1=_0x38eb06();while(!![]){try{const _0x5db791=parseInt(_0x12a564(0x1f5))/0x1+-parseInt(_0x12a564(0x1f7))/0x2+-parseInt(_0x12a564(0x1a9))/0x3+parseInt(_0x12a564(0x1b3))/0x4*(parseInt(_0x12a564(0x1af))/0x5)+-parseInt(_0x12a564(0x1ab))/0x6*(parseInt(_0x12a564(0x1e7))/0x7)+parseInt(_0x12a564(0x1cf))/0x8*(parseInt(_0x12a564(0x1e4))/0x9)+parseInt(_0x12a564(0x183))/0xa;if(_0x5db791===_0x2174af)break;else _0x2c69b1['push'](_0x2c69b1['shift']());}catch(_0x10e15c){_0x2c69b1['push'](_0x2c69b1['shift']());}}}(a122_0x69c5,0xe726b));const fs=require('fs'),path=require(a122_0x4a2c2e(0x1bb)),FileHelper=require(a122_0x4a2c2e(0x1b0)),RequestUtils=require(a122_0x4a2c2e(0x1a4)),logger=require(a122_0x4a2c2e(0x1a0))[a122_0x4a2c2e(0x1f0)],POLLING_INTERVAL=0x2710,TAG='FailFastManager';class FailFastManager{constructor(_0x458e07,_0xf69535,_0x37cde2){const _0x2d3898=a122_0x4a2c2e,_0x2a42fc={};_0x2a42fc['dmMTn']=function(_0x520820,_0x309ba3){return _0x520820+_0x309ba3;},_0x2a42fc[_0x2d3898(0x184)]=_0x2d3898(0x1c5),_0x2a42fc[_0x2d3898(0x1f1)]=function(_0x1bd2ba,_0x167b1f){return _0x1bd2ba||_0x167b1f;},_0x2a42fc[_0x2d3898(0x1ae)]=_0x2d3898(0x193),_0x2a42fc[_0x2d3898(0x19e)]=_0x2d3898(0x18b),_0x2a42fc[_0x2d3898(0x1d0)]='failFast.active';const _0x3a0121=_0x2a42fc;this[_0x2d3898(0x19c)]=_0x3a0121[_0x2d3898(0x1f1)](_0x458e07,{}),this[_0x2d3898(0x1a6)]=_0xf69535,this[_0x2d3898(0x1bf)]=_0x37cde2,this[_0x2d3898(0x187)]=!!(process[_0x2d3898(0x1e1)][_0x2d3898(0x18f)]&&process[_0x2d3898(0x1e1)]['BROWSERSTACK_NODE_INDEX']&&process[_0x2d3898(0x1e1)][_0x2d3898(0x185)]);const _0x31fde5=this[_0x2d3898(0x19c)][_0x2d3898(0x180)];this['stateFilePath']=path[_0x2d3898(0x197)](_0x31fde5,_0x3a0121[_0x2d3898(0x1ae)]),this[_0x2d3898(0x190)]=path[_0x2d3898(0x197)](_0x31fde5,_0x3a0121[_0x2d3898(0x19e)]),this[_0x2d3898(0x1ef)]=path[_0x2d3898(0x197)](_0x31fde5,_0x3a0121[_0x2d3898(0x1d0)]),this[_0x2d3898(0x1be)]=new FileHelper(this[_0x2d3898(0x19c)],this['stateFilePath'],this['lockFilePath'],this[_0x2d3898(0x1ce)]()),this[_0x2d3898(0x186)]=this[_0x2d3898(0x1ce)](),this[_0x2d3898(0x1b2)]=null,this[_0x2d3898(0x187)]&&(this['reportedFailuresToAPI']=new Set()),this[_0x2d3898(0x1a1)]()[_0x2d3898(0x18e)](_0x313563=>{const _0x128175=_0x2d3898;logger[_0x128175(0x1fe)]('['+TAG+_0x128175(0x18a)+_0x313563[_0x128175(0x1f6)]+(_0x313563['stack']?_0x3a0121[_0x128175(0x1ed)](_0x3a0121[_0x128175(0x184)],_0x313563['stack']):'')),this['state']=this[_0x128175(0x1ce)]();}),this[_0x2d3898(0x187)]&&this['startPolling'](),logger['debug']('['+TAG+_0x2d3898(0x196)+this[_0x2d3898(0x19c)][_0x2d3898(0x1ad)]+_0x2d3898(0x182)+this[_0x2d3898(0x187)]);}[a122_0x4a2c2e(0x1ce)](){const _0x5e2b58={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x5e2b58;}async[a122_0x4a2c2e(0x1a1)](){const _0x2246a6=a122_0x4a2c2e,_0x1af17e={};_0x1af17e[_0x2246a6(0x1e3)]=function(_0x2023a5,_0x37082d){return _0x2023a5+_0x37082d;},_0x1af17e['yUNqC']=_0x2246a6(0x1c5);const _0x3ed29c=_0x1af17e;if(this['isCIMode'])try{fs[_0x2246a6(0x199)](this[_0x2246a6(0x1ef)])&&(this['state'][_0x2246a6(0x1b6)]=!![],logger[_0x2246a6(0x1a8)]('['+TAG+_0x2246a6(0x1c7)));}catch(_0x21b6cf){logger[_0x2246a6(0x1fe)]('['+TAG+_0x2246a6(0x1a2)+_0x21b6cf[_0x2246a6(0x1f6)]+(_0x21b6cf[_0x2246a6(0x1dc)]?_0x3ed29c[_0x2246a6(0x1e3)](_0x3ed29c[_0x2246a6(0x1f2)],_0x21b6cf[_0x2246a6(0x1dc)]):''));}else try{const _0x1533b0=await this[_0x2246a6(0x1be)]['readState']();if(_0x1533b0)this[_0x2246a6(0x186)]={...this['_getDefaultState'](),..._0x1533b0,'uniqueFailedTests':new Set(_0x1533b0[_0x2246a6(0x1f3)]||[])},logger[_0x2246a6(0x1a8)]('['+TAG+_0x2246a6(0x1a5));else{logger[_0x2246a6(0x1a8)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.');const _0x20906e=this[_0x2246a6(0x1ce)](),_0x23a3ea={..._0x20906e,'uniqueFailedTests':Array[_0x2246a6(0x1e2)](_0x20906e[_0x2246a6(0x1f3)])};await this[_0x2246a6(0x1be)]['writeState'](_0x23a3ea),this[_0x2246a6(0x186)]=_0x20906e;}}catch(_0x5cd612){logger[_0x2246a6(0x1a8)]('['+TAG+_0x2246a6(0x1e5)+_0x5cd612[_0x2246a6(0x1f6)]+(_0x5cd612[_0x2246a6(0x1dc)]?_0x3ed29c['IFFLK'](_0x3ed29c[_0x2246a6(0x1f2)],_0x5cd612[_0x2246a6(0x1dc)]):'')),this['state']=this[_0x2246a6(0x1ce)]();}}async[a122_0x4a2c2e(0x1e0)](_0x20c606,_0x23cf1a){const _0x295ffc=a122_0x4a2c2e,_0x3834c6={};_0x3834c6[_0x295ffc(0x1dd)]=function(_0x30f33b,_0x16a061){return _0x30f33b>_0x16a061;},_0x3834c6['Gxwas']=_0x295ffc(0x1c4),_0x3834c6[_0x295ffc(0x1c0)]=_0x295ffc(0x18d),_0x3834c6[_0x295ffc(0x188)]=function(_0x180247,_0x47fbc5){return _0x180247+_0x47fbc5;},_0x3834c6[_0x295ffc(0x1de)]=_0x295ffc(0x1c5),_0x3834c6[_0x295ffc(0x1cd)]=function(_0x3b51ac,_0x904b42){return _0x3b51ac||_0x904b42;},_0x3834c6[_0x295ffc(0x1a7)]=function(_0x5a5f7d,_0x455f02){return _0x5a5f7d+_0x455f02;};const _0x8c1cf=_0x3834c6;if(this['isCIMode'])this[_0x295ffc(0x186)][_0x295ffc(0x19d)]+=0x1,_0x23cf1a&&_0x8c1cf[_0x295ffc(0x1dd)](_0x23cf1a[_0x295ffc(0x1c6)],0x0)&&(!this[_0x295ffc(0x18c)]['has'](_0x20c606)&&(await this['_sendFailedTestsToAPI'](_0x20c606),this[_0x295ffc(0x18c)][_0x295ffc(0x1ff)](_0x20c606)));else try{const _0x5d8989={'fullName':_0x20c606,'status':_0x23cf1a&&_0x8c1cf['Mrplv'](_0x23cf1a[_0x295ffc(0x1c6)],0x0)?_0x8c1cf['Gxwas']:_0x8c1cf[_0x295ffc(0x1c0)]},_0x43d549=await this['fileHelper'][_0x295ffc(0x1fd)](_0x5d8989);this['state']={...this[_0x295ffc(0x1ce)](),..._0x43d549[_0x295ffc(0x1d2)],'uniqueFailedTests':new Set(_0x43d549[_0x295ffc(0x1d2)][_0x295ffc(0x1f3)]||[])};}catch(_0x1ea7f1){logger[_0x295ffc(0x1fe)]('['+TAG+'_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20'+_0x1ea7f1[_0x295ffc(0x1f6)]+(_0x1ea7f1[_0x295ffc(0x1dc)]?_0x8c1cf[_0x295ffc(0x188)](_0x8c1cf['mCkGC'],_0x1ea7f1[_0x295ffc(0x1dc)]):''));try{const _0x574372=await this[_0x295ffc(0x1be)][_0x295ffc(0x1e9)]();this[_0x295ffc(0x186)]={...this[_0x295ffc(0x1ce)](),..._0x8c1cf[_0x295ffc(0x1cd)](_0x574372,{}),'uniqueFailedTests':new Set(_0x574372?_0x574372[_0x295ffc(0x1f3)]||[]:[])},logger[_0x295ffc(0x1a8)]('['+TAG+_0x295ffc(0x1ba));}catch(_0x79240d){logger[_0x295ffc(0x1fe)]('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0x79240d[_0x295ffc(0x1f6)]+(_0x79240d['stack']?_0x8c1cf[_0x295ffc(0x1a7)](_0x8c1cf[_0x295ffc(0x1de)],_0x79240d[_0x295ffc(0x1dc)]):'')),this[_0x295ffc(0x186)]=this[_0x295ffc(0x1ce)]();}}}async[a122_0x4a2c2e(0x1b5)](_0x214592){const _0x44ba7b=a122_0x4a2c2e,_0x11f750={};_0x11f750[_0x44ba7b(0x1bc)]=function(_0x4276f1,_0x1935fe){return _0x4276f1+_0x1935fe;},_0x11f750[_0x44ba7b(0x19f)]=_0x44ba7b(0x1c5);const _0xcca45b=_0x11f750;if(!this[_0x44ba7b(0x187)]||!_0x214592)return;try{logger[_0x44ba7b(0x1a8)]('['+TAG+_0x44ba7b(0x1ac)+_0x214592);const _0x578146={};_0x578146[_0x44ba7b(0x1a6)]=this[_0x44ba7b(0x1a6)],_0x578146[_0x44ba7b(0x1bf)]=this[_0x44ba7b(0x1bf)],_0x578146[_0x44ba7b(0x1b8)]=[_0x214592],_0x578146[_0x44ba7b(0x1fa)]=process[_0x44ba7b(0x1e1)][_0x44ba7b(0x18f)],await RequestUtils[_0x44ba7b(0x1df)](_0x578146);}catch(_0x3d1fa0){logger[_0x44ba7b(0x1fe)]('['+TAG+_0x44ba7b(0x1e6)+_0x214592+_0x44ba7b(0x1b7)+_0x3d1fa0[_0x44ba7b(0x1f6)]+(_0x3d1fa0[_0x44ba7b(0x1dc)]?_0xcca45b[_0x44ba7b(0x1bc)](_0xcca45b[_0x44ba7b(0x19f)],_0x3d1fa0['stack']):''));}}async['_fetchAPIFailedCount'](){const _0x14f40c=a122_0x4a2c2e,_0x5661eb={};_0x5661eb['kjaIS']=function(_0x2557f8,_0x403b52){return _0x2557f8===_0x403b52;},_0x5661eb['LoVvq']='number',_0x5661eb[_0x14f40c(0x1d7)]=function(_0x28e874,_0x433a8b){return _0x28e874+_0x433a8b;},_0x5661eb['CQaOl']=_0x14f40c(0x1c5),_0x5661eb[_0x14f40c(0x194)]=function(_0xe35669,_0x246337){return _0xe35669!==_0x246337;};const _0x22d4d0=_0x5661eb;if(!this[_0x14f40c(0x187)])return 0x0;try{const _0x38d9d7={};_0x38d9d7[_0x14f40c(0x1a6)]=this[_0x14f40c(0x1a6)],_0x38d9d7[_0x14f40c(0x1bf)]=this[_0x14f40c(0x1bf)],_0x38d9d7[_0x14f40c(0x1fa)]=process[_0x14f40c(0x1e1)][_0x14f40c(0x18f)];const _0x1d74bf=await RequestUtils[_0x14f40c(0x17d)](_0x38d9d7);return logger[_0x14f40c(0x1a8)]('['+TAG+_0x14f40c(0x1b9)+_0x1d74bf),_0x22d4d0[_0x14f40c(0x1eb)](typeof _0x1d74bf,_0x22d4d0[_0x14f40c(0x1d8)])?_0x1d74bf:0x0;}catch(_0x1278ca){return logger[_0x14f40c(0x1fe)]('['+TAG+'_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20'+_0x1278ca[_0x14f40c(0x1f6)]+(_0x1278ca[_0x14f40c(0x1dc)]?_0x22d4d0['OyQkM'](_0x22d4d0[_0x14f40c(0x1d4)],_0x1278ca[_0x14f40c(0x1dc)]):'')),_0x22d4d0[_0x14f40c(0x194)](this[_0x14f40c(0x186)][_0x14f40c(0x198)],undefined)?this[_0x14f40c(0x186)][_0x14f40c(0x198)]:0x0;}}async[a122_0x4a2c2e(0x1fc)](){const _0x46f212=a122_0x4a2c2e,_0x142ae8={};_0x142ae8['zEZAZ']=function(_0xb42c80,_0x3caede){return _0xb42c80!==_0x3caede;},_0x142ae8[_0x46f212(0x1c1)]=function(_0x35b680,_0x2af97a){return _0x35b680+_0x2af97a;},_0x142ae8[_0x46f212(0x1c8)]=_0x46f212(0x1c5);const _0x3f1b01=_0x142ae8;if(!this['isCIMode'])return;try{const _0x482618=await this['_fetchAPIFailedCount']();_0x3f1b01[_0x46f212(0x1d6)](_0x482618,this[_0x46f212(0x186)][_0x46f212(0x198)])&&(logger['debug']('['+TAG+_0x46f212(0x1d3)+_0x482618+_0x46f212(0x192)+this[_0x46f212(0x186)][_0x46f212(0x198)]+')'),this[_0x46f212(0x186)]['lastAPIFailedCount']=_0x482618);}catch(_0x317cde){logger[_0x46f212(0x1fe)]('['+TAG+_0x46f212(0x1b1)+_0x317cde[_0x46f212(0x1f6)]+(_0x317cde[_0x46f212(0x1dc)]?_0x3f1b01[_0x46f212(0x1c1)](_0x3f1b01['hSAgA'],_0x317cde['stack']):''));}}async['startPolling'](){const _0x38cd93=a122_0x4a2c2e,_0x13def5={'VkSiq':function(_0x4bb335,_0x50faa8,_0x4834bb){return _0x4bb335(_0x50faa8,_0x4834bb);}};this['pollingInterval']&&this['stopPolling'](),this['isCIMode']&&(await this[_0x38cd93(0x1fc)](),this['pollingInterval']=_0x13def5['VkSiq'](setInterval,async()=>{const _0x3c9b56=_0x38cd93;await this[_0x3c9b56(0x1fc)]();},POLLING_INTERVAL),logger[_0x38cd93(0x1a8)]('['+TAG+_0x38cd93(0x1ea)+POLLING_INTERVAL+_0x38cd93(0x19a)));}[a122_0x4a2c2e(0x1f9)](){const _0x16e20b=a122_0x4a2c2e,_0x12b60e={'wHTXU':function(_0x4f9079,_0x2e5270){return _0x4f9079(_0x2e5270);}};this['pollingInterval']&&(_0x12b60e[_0x16e20b(0x1d5)](clearInterval,this[_0x16e20b(0x1b2)]),this[_0x16e20b(0x1b2)]=null,logger[_0x16e20b(0x1a8)]('['+TAG+_0x16e20b(0x17e)));}async[a122_0x4a2c2e(0x1aa)](){const _0x20115b=a122_0x4a2c2e,_0x8a3bb5={};_0x8a3bb5[_0x20115b(0x1f8)]=function(_0xff799a,_0x45a6a7){return _0xff799a===_0x45a6a7;},_0x8a3bb5[_0x20115b(0x200)]=function(_0x12a789,_0x3c2dc8){return _0x12a789===_0x3c2dc8;},_0x8a3bb5[_0x20115b(0x1c3)]=function(_0x49b660,_0xf7c94f){return _0x49b660<=_0xf7c94f;},_0x8a3bb5['uzDeP']=function(_0x1f3293,_0x30eb01){return _0x1f3293+_0x30eb01;},_0x8a3bb5[_0x20115b(0x1cc)]=_0x20115b(0x1c5),_0x8a3bb5[_0x20115b(0x1ca)]=function(_0x12aa42,_0x3d785a){return _0x12aa42!==_0x3d785a;},_0x8a3bb5[_0x20115b(0x1d9)]=function(_0x276940,_0xde4046){return _0x276940>=_0xde4046;},_0x8a3bb5['QVvkR']=function(_0x5df034,_0x565854){return _0x5df034+_0x565854;};const _0x1427d7=_0x8a3bb5,{failureThresholdCount:_0x322d2a}=this[_0x20115b(0x19c)];if(_0x1427d7[_0x20115b(0x1f8)](_0x322d2a,null)||_0x1427d7['eIdcw'](_0x322d2a,undefined)||_0x1427d7[_0x20115b(0x1c3)](_0x322d2a,0x0))return logger['debug']('['+TAG+_0x20115b(0x1c2)),![];if(this[_0x20115b(0x187)]){try{if(fs[_0x20115b(0x199)](this['failFastActiveMarkerPath']))return logger['debug']('['+TAG+_0x20115b(0x189)),!this['state'][_0x20115b(0x1b6)]&&(this['state'][_0x20115b(0x1b6)]=!![]),this[_0x20115b(0x1f9)](),!![];}catch(_0x474d39){logger[_0x20115b(0x1fe)]('['+TAG+_0x20115b(0x1a2)+_0x474d39[_0x20115b(0x1f6)]+(_0x474d39[_0x20115b(0x1dc)]?_0x1427d7[_0x20115b(0x1bd)](_0x1427d7[_0x20115b(0x1cc)],_0x474d39[_0x20115b(0x1dc)]):''));}const _0x446d9f=_0x1427d7[_0x20115b(0x1ca)](this[_0x20115b(0x186)][_0x20115b(0x198)],undefined)?this[_0x20115b(0x186)][_0x20115b(0x198)]:0x0;if(_0x1427d7[_0x20115b(0x1d9)](_0x446d9f,_0x322d2a)){logger['info']('['+TAG+'_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x446d9f+_0x20115b(0x195)+_0x322d2a+'.');try{fs[_0x20115b(0x1a3)](this['failFastActiveMarkerPath'],new Date()[_0x20115b(0x1d1)]()),logger[_0x20115b(0x1a8)]('['+TAG+'_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20'+this[_0x20115b(0x1ef)]),this[_0x20115b(0x186)][_0x20115b(0x1b6)]=!![];}catch(_0xf6e2c7){logger['error']('['+TAG+_0x20115b(0x1ee)+_0xf6e2c7[_0x20115b(0x1f6)]+(_0xf6e2c7[_0x20115b(0x1dc)]?_0x1427d7[_0x20115b(0x1bd)](_0x1427d7[_0x20115b(0x1cc)],_0xf6e2c7[_0x20115b(0x1dc)]):''));}return this[_0x20115b(0x1f9)](),!![];}}else{let _0x139ed4;try{_0x139ed4=await this[_0x20115b(0x1be)][_0x20115b(0x1e9)]();if(!_0x139ed4)return logger[_0x20115b(0x1cb)]('['+TAG+_0x20115b(0x181)),![];}catch(_0x4f4c34){return logger[_0x20115b(0x1fe)]('['+TAG+'_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20'+_0x4f4c34[_0x20115b(0x1f6)]+(_0x4f4c34[_0x20115b(0x1dc)]?_0x1427d7[_0x20115b(0x1bd)](_0x1427d7[_0x20115b(0x1cc)],_0x4f4c34[_0x20115b(0x1dc)]):'')),![];}this[_0x20115b(0x186)]={...this[_0x20115b(0x1ce)](),..._0x139ed4,'uniqueFailedTests':new Set(_0x139ed4[_0x20115b(0x1f3)]||[])};if(this[_0x20115b(0x186)][_0x20115b(0x1b6)])return logger[_0x20115b(0x1a8)]('['+TAG+'_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.'),!![];const _0x1b59f7=this[_0x20115b(0x186)]['uniqueFailedTests'],_0x1c6e00=_0x1b59f7[_0x20115b(0x1db)];if(_0x1427d7['srVgD'](_0x1c6e00,_0x322d2a)){try{logger[_0x20115b(0x1fb)]('['+TAG+_0x20115b(0x1ec)+_0x1c6e00+_0x20115b(0x195)+_0x322d2a+'.'),this[_0x20115b(0x186)][_0x20115b(0x1b6)]=!![];}catch(_0x5a9ccb){logger[_0x20115b(0x1fe)]('['+TAG+_0x20115b(0x1b4)+_0x5a9ccb[_0x20115b(0x1f6)]+(_0x5a9ccb['stack']?_0x1427d7[_0x20115b(0x19b)](_0x1427d7['PWACa'],_0x5a9ccb[_0x20115b(0x1dc)]):''));}return!![];}}return![];}async[a122_0x4a2c2e(0x191)](){const _0x5adc61=a122_0x4a2c2e,_0x21b1e2={};_0x21b1e2[_0x5adc61(0x1c9)]=function(_0xd6ec97,_0x254827){return _0xd6ec97+_0x254827;},_0x21b1e2['hZNVM']='\x0aStack:\x20';const _0xb65b15=_0x21b1e2;this[_0x5adc61(0x1f9)]();if(this['isCIMode'])logger[_0x5adc61(0x1a8)]('['+TAG+_0x5adc61(0x17f));else try{const _0x6816e5={...this[_0x5adc61(0x186)],'uniqueFailedTests':Array[_0x5adc61(0x1e2)](this[_0x5adc61(0x186)][_0x5adc61(0x1f3)]||new Set())};await this['fileHelper']['writeState'](_0x6816e5),logger[_0x5adc61(0x1a8)]('['+TAG+_0x5adc61(0x1e8));}catch(_0x5bf86e){logger[_0x5adc61(0x1fe)]('['+TAG+_0x5adc61(0x1da)+_0x5bf86e[_0x5adc61(0x1f6)]+(_0x5bf86e[_0x5adc61(0x1dc)]?_0xb65b15[_0x5adc61(0x1c9)](_0xb65b15['hZNVM'],_0x5bf86e[_0x5adc61(0x1dc)]):''));}}}function a122_0x69c5(){const _0x519796=['projectName','gkCJk','MImJr',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','XPxLw','failed','\x0aStack:\x20','length','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','hSAgA','lezdU','iVNbq','warn','PWACa','hFXml','_getDefaultState','6874872YPJvgg','XdcoT','toISOString','newState','_CI]\x20API\x20failed\x20count\x20updated:\x20','CQaOl','wHTXU','zEZAZ','OyQkM','LoVvq','srVgD','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','size','stack','Mrplv','mCkGC','putFailedTests','onTestDone','env','from','IFFLK','9ManOSo','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','_CI]\x20Error\x20sending\x20failed\x20test\x20','29407hlqFql','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','readState','_CI]\x20Polling\x20started\x20with\x20interval:\x20','kjaIS','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','dmMTn','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','failFastActiveMarkerPath','winstonLogger','ckTJF','yUNqC','uniqueFailedTests','exports','1214762uHsctr','message','1009238qeKsQB','aeZod','stopPolling','buildRunIdentifier','info','_pollFailedTests','recordTestResult','error','add','eIdcw','getFailedTestsCount',']\x20Polling\x20stopped.','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','workingDir','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.',',\x20CI\x20Mode:\x20','13162210sZUoWh','sOVUu','BROWSERSTACK_TOTAL_NODE_COUNT','state','isCIMode','oQPya','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','failFastState.lock','reportedFailuresToAPI','passed','catch','BROWSERSTACK_BUILD_RUN_IDENTIFIER','lockFilePath','cleanup','\x20(was\x20','failFastState.json','LbXDX',',\x20threshold:\x20',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','join','lastAPIFailedCount','existsSync','ms.','QVvkR','failFastConfig','totalTests','lPmzt','PmhsB','../logger','_initializeStateFromFile','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','writeFileSync','./requestUtils','_Local]\x20State\x20initialized\x20from\x20file.','buildName','tlKQA','debug','2638212yHRipk','shouldFailFast','2082lcTRFx','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','failureThresholdCount','vhglD','6615DSbKhd','./fileHelper','_CI]\x20Error\x20during\x20polling\x20logic:\x20','pollingInterval','1204BuJzki','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','_sendFailedTestsToAPI','failFastActive','\x20to\x20API:\x20','failedTests','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','path','CXfSd','uzDeP','fileHelper'];a122_0x69c5=function(){return _0x519796;};return a122_0x69c5();}module[a122_0x4a2c2e(0x1f4)]=FailFastManager;
|
|
1
|
+
const a122_0x5c41b5=a122_0x2ca2;(function(_0x3b040d,_0x4df7a6){const _0x4299ff=a122_0x2ca2,_0x339400=_0x3b040d();while(!![]){try{const _0x32768c=parseInt(_0x4299ff(0x221))/0x1+-parseInt(_0x4299ff(0x1fc))/0x2+-parseInt(_0x4299ff(0x226))/0x3+parseInt(_0x4299ff(0x272))/0x4+parseInt(_0x4299ff(0x1f6))/0x5+-parseInt(_0x4299ff(0x218))/0x6*(-parseInt(_0x4299ff(0x258))/0x7)+-parseInt(_0x4299ff(0x276))/0x8*(parseInt(_0x4299ff(0x22f))/0x9);if(_0x32768c===_0x4df7a6)break;else _0x339400['push'](_0x339400['shift']());}catch(_0x147122){_0x339400['push'](_0x339400['shift']());}}}(a122_0x56e9,0xd9eb2));function a122_0x56e9(){const _0x3e56e7=['sstRV','size','state','JaHZc','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','writeFileSync','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','30DCekso','ZrlNV','\x20to\x20API:\x20','failFastActiveMarkerPath','error','isCIMode','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','startPolling','readState','1319684vFPATd','buildRunIdentifier','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','zhrCz','2788002GsCmvQ','WHVoo','WEpYJ','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','BROWSERSTACK_NODE_INDEX','failFastConfig','toISOString','aPJzV','workingDir','63eDzhgO','from','_pollFailedTests','ScmCl','path','exports','FubCA','kNunT','doEex','LdlQw','LDRWn','ynpnm','../logger','add','VElJD','_getDefaultState','ohDsX','pdkmD','BROWSERSTACK_BUILD_RUN_IDENTIFIER','projectName','\x0aStack:\x20','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','fileHelper','stack','failedTests','_CI]\x20API\x20failed\x20count\x20updated:\x20','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','gDkmM','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','failureThresholdCount','sRCLP','_CI]\x20Error\x20during\x20polling\x20logic:\x20','cleanup','reportedFailuresToAPI','shouldFailFast','stateFilePath','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','onTestDone','OiUmR','EwHYT','ms.','2468585aturpf','uniqueFailedTests','MoFDq','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','passed','VhePg','ePrNF','existsSync','MVxvI','writeState','GcorS','info','mOixp','GWcIH','stopPolling',']\x20Polling\x20stopped.','NWKVR','putFailedTests','xOzTe','recordTestResult','number','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','newState','message','cRakn','wCqYE','241604ldFMte','_sendFailedTestsToAPI','_initializeStateFromFile',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','1854024yaIRsl','buildName','failFastActive','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','VvOte','lastAPIFailedCount','join','4112115KoKThD','totalTests','failed','warn','catch','FailFastManager','1043168cCCuzg',',\x20threshold:\x20','_CI]\x20Error\x20sending\x20failed\x20test\x20','getFailedTestsCount','wCqNT','pollingInterval','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','hgyMP','./fileHelper','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','debug',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','lockFilePath','env','BROWSERSTACK_TOTAL_NODE_COUNT','fAwBq','DfQXL','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','length',',\x20CI\x20Mode:\x20'];a122_0x56e9=function(){return _0x3e56e7;};return a122_0x56e9();}const fs=require('fs'),path=require(a122_0x5c41b5(0x233)),FileHelper=require(a122_0x5c41b5(0x204)),RequestUtils=require('./requestUtils'),logger=require(a122_0x5c41b5(0x23b))['winstonLogger'],POLLING_INTERVAL=0x2710,TAG=a122_0x5c41b5(0x1fb);function a122_0x2ca2(_0x304be7,_0x298e03){const _0x56e983=a122_0x56e9();return a122_0x2ca2=function(_0x2ca2b6,_0x363b12){_0x2ca2b6=_0x2ca2b6-0x1f4;let _0x49ba6b=_0x56e983[_0x2ca2b6];return _0x49ba6b;},a122_0x2ca2(_0x304be7,_0x298e03);}class FailFastManager{constructor(_0x100107,_0x536492,_0x3b543d){const _0x56806a=a122_0x5c41b5,_0x2b222e={};_0x2b222e[_0x56806a(0x262)]=function(_0x3a10b1,_0x52e693){return _0x3a10b1+_0x52e693;},_0x2b222e['LDRWn']=_0x56806a(0x243),_0x2b222e['ZrlNV']=function(_0x4fbabe,_0x47b8dc){return _0x4fbabe||_0x47b8dc;},_0x2b222e[_0x56806a(0x271)]='failFastState.json',_0x2b222e['WEpYJ']='failFastState.lock',_0x2b222e['pdkmD']='failFast.active';const _0x2188c8=_0x2b222e;this[_0x56806a(0x22b)]=_0x2188c8[_0x56806a(0x219)](_0x100107,{}),this[_0x56806a(0x277)]=_0x536492,this['projectName']=_0x3b543d,this[_0x56806a(0x21d)]=!!(process['env'][_0x56806a(0x241)]&&process[_0x56806a(0x20a)][_0x56806a(0x22a)]&&process[_0x56806a(0x20a)][_0x56806a(0x20b)]);const _0x46e02e=this[_0x56806a(0x22b)][_0x56806a(0x22e)];this[_0x56806a(0x252)]=path[_0x56806a(0x1f5)](_0x46e02e,_0x2188c8[_0x56806a(0x271)]),this[_0x56806a(0x209)]=path[_0x56806a(0x1f5)](_0x46e02e,_0x2188c8[_0x56806a(0x228)]),this['failFastActiveMarkerPath']=path[_0x56806a(0x1f5)](_0x46e02e,_0x2188c8[_0x56806a(0x240)]),this['fileHelper']=new FileHelper(this[_0x56806a(0x22b)],this[_0x56806a(0x252)],this[_0x56806a(0x209)],this['_getDefaultState']()),this[_0x56806a(0x213)]=this[_0x56806a(0x23e)](),this['pollingInterval']=null,this[_0x56806a(0x21d)]&&(this[_0x56806a(0x250)]=new Set()),this[_0x56806a(0x274)]()[_0x56806a(0x1fa)](_0xea6dd3=>{const _0x233094=_0x56806a;logger[_0x233094(0x21c)]('['+TAG+']\x20Critical\x20error\x20during\x20async\x20initialization:\x20'+_0xea6dd3[_0x233094(0x26f)]+(_0xea6dd3[_0x233094(0x246)]?_0x2188c8[_0x233094(0x262)](_0x2188c8[_0x233094(0x239)],_0xea6dd3[_0x233094(0x246)]):'')),this[_0x233094(0x213)]=this[_0x233094(0x23e)]();}),this[_0x56806a(0x21d)]&&this[_0x56806a(0x21f)](),logger[_0x56806a(0x207)]('['+TAG+_0x56806a(0x208)+this[_0x56806a(0x22b)][_0x56806a(0x24c)]+_0x56806a(0x210)+this['isCIMode']);}['_getDefaultState'](){const _0x5a5cff={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x5a5cff;}async['_initializeStateFromFile'](){const _0xfdcbb0=a122_0x5c41b5,_0x4650ab={};_0x4650ab[_0xfdcbb0(0x23a)]=function(_0x528592,_0x441afa){return _0x528592+_0x441afa;},_0x4650ab[_0xfdcbb0(0x23f)]='\x0aStack:\x20';const _0x582b79=_0x4650ab;if(this[_0xfdcbb0(0x21d)])try{fs['existsSync'](this[_0xfdcbb0(0x21b)])&&(this['state'][_0xfdcbb0(0x278)]=!![],logger[_0xfdcbb0(0x207)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.'));}catch(_0xf372d3){logger[_0xfdcbb0(0x21c)]('['+TAG+_0xfdcbb0(0x21e)+_0xf372d3[_0xfdcbb0(0x26f)]+(_0xf372d3[_0xfdcbb0(0x246)]?_0x582b79[_0xfdcbb0(0x23a)](_0x582b79[_0xfdcbb0(0x23f)],_0xf372d3[_0xfdcbb0(0x246)]):''));}else try{const _0x4c6d47=await this[_0xfdcbb0(0x245)][_0xfdcbb0(0x220)]();if(_0x4c6d47)this[_0xfdcbb0(0x213)]={...this[_0xfdcbb0(0x23e)](),..._0x4c6d47,'uniqueFailedTests':new Set(_0x4c6d47[_0xfdcbb0(0x259)]||[])},logger['debug']('['+TAG+'_Local]\x20State\x20initialized\x20from\x20file.');else{logger[_0xfdcbb0(0x207)]('['+TAG+_0xfdcbb0(0x202));const _0x4a893d=this[_0xfdcbb0(0x23e)](),_0x17cf4d={..._0x4a893d,'uniqueFailedTests':Array[_0xfdcbb0(0x230)](_0x4a893d['uniqueFailedTests'])};await this[_0xfdcbb0(0x245)][_0xfdcbb0(0x261)](_0x17cf4d),this[_0xfdcbb0(0x213)]=_0x4a893d;}}catch(_0x3d4ce6){logger[_0xfdcbb0(0x207)]('['+TAG+'_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20'+_0x3d4ce6[_0xfdcbb0(0x26f)]+(_0x3d4ce6['stack']?_0x582b79[_0xfdcbb0(0x23a)](_0x582b79['ohDsX'],_0x3d4ce6[_0xfdcbb0(0x246)]):'')),this['state']=this[_0xfdcbb0(0x23e)]();}}async[a122_0x5c41b5(0x254)](_0xf525bc,_0x2b0f98){const _0x5e97d1=a122_0x5c41b5,_0x4788f5={};_0x4788f5[_0x5e97d1(0x22d)]=function(_0xa9811c,_0x5f5210){return _0xa9811c>_0x5f5210;},_0x4788f5['fXcCe']=function(_0x28fdaf,_0x1ff332){return _0x28fdaf>_0x1ff332;},_0x4788f5[_0x5e97d1(0x235)]=_0x5e97d1(0x1f8),_0x4788f5[_0x5e97d1(0x24d)]=_0x5e97d1(0x25c),_0x4788f5[_0x5e97d1(0x23d)]=function(_0x52c965,_0x21b322){return _0x52c965+_0x21b322;},_0x4788f5[_0x5e97d1(0x270)]=_0x5e97d1(0x243),_0x4788f5[_0x5e97d1(0x25a)]=function(_0x14b34c,_0x1f738f){return _0x14b34c||_0x1f738f;},_0x4788f5['wCqNT']=function(_0x120a7d,_0x36397d){return _0x120a7d+_0x36397d;};const _0x3a83e9=_0x4788f5;if(this[_0x5e97d1(0x21d)])this[_0x5e97d1(0x213)][_0x5e97d1(0x1f7)]+=0x1,_0x2b0f98&&_0x3a83e9[_0x5e97d1(0x22d)](_0x2b0f98['length'],0x0)&&(!this['reportedFailuresToAPI']['has'](_0xf525bc)&&(await this[_0x5e97d1(0x273)](_0xf525bc),this[_0x5e97d1(0x250)][_0x5e97d1(0x23c)](_0xf525bc)));else try{const _0xc83525={'fullName':_0xf525bc,'status':_0x2b0f98&&_0x3a83e9['fXcCe'](_0x2b0f98[_0x5e97d1(0x20f)],0x0)?_0x3a83e9['FubCA']:_0x3a83e9[_0x5e97d1(0x24d)]},_0x4a30df=await this[_0x5e97d1(0x245)][_0x5e97d1(0x26b)](_0xc83525);this[_0x5e97d1(0x213)]={...this[_0x5e97d1(0x23e)](),..._0x4a30df['newState'],'uniqueFailedTests':new Set(_0x4a30df[_0x5e97d1(0x26e)][_0x5e97d1(0x259)]||[])};}catch(_0x37c92c){logger[_0x5e97d1(0x21c)]('['+TAG+_0x5e97d1(0x279)+_0x37c92c[_0x5e97d1(0x26f)]+(_0x37c92c[_0x5e97d1(0x246)]?_0x3a83e9[_0x5e97d1(0x23d)](_0x3a83e9[_0x5e97d1(0x270)],_0x37c92c[_0x5e97d1(0x246)]):''));try{const _0x378745=await this[_0x5e97d1(0x245)]['readState']();this[_0x5e97d1(0x213)]={...this[_0x5e97d1(0x23e)](),..._0x3a83e9[_0x5e97d1(0x25a)](_0x378745,{}),'uniqueFailedTests':new Set(_0x378745?_0x378745['uniqueFailedTests']||[]:[])},logger[_0x5e97d1(0x207)]('['+TAG+_0x5e97d1(0x215));}catch(_0x5d9fd6){logger[_0x5e97d1(0x21c)]('['+TAG+_0x5e97d1(0x206)+_0x5d9fd6[_0x5e97d1(0x26f)]+(_0x5d9fd6['stack']?_0x3a83e9[_0x5e97d1(0x200)](_0x3a83e9['cRakn'],_0x5d9fd6[_0x5e97d1(0x246)]):'')),this[_0x5e97d1(0x213)]=this['_getDefaultState']();}}}async[a122_0x5c41b5(0x273)](_0x4abe86){const _0x3f4657=a122_0x5c41b5,_0x3008d9={};_0x3008d9[_0x3f4657(0x20d)]=function(_0x556e4b,_0x2f353a){return _0x556e4b+_0x2f353a;},_0x3008d9[_0x3f4657(0x214)]='\x0aStack:\x20';const _0x362493=_0x3008d9;if(!this[_0x3f4657(0x21d)]||!_0x4abe86)return;try{logger[_0x3f4657(0x207)]('['+TAG+_0x3f4657(0x20e)+_0x4abe86);const _0x26709b={};_0x26709b[_0x3f4657(0x277)]=this['buildName'],_0x26709b[_0x3f4657(0x242)]=this[_0x3f4657(0x242)],_0x26709b[_0x3f4657(0x247)]=[_0x4abe86],_0x26709b[_0x3f4657(0x222)]=process[_0x3f4657(0x20a)][_0x3f4657(0x241)],await RequestUtils[_0x3f4657(0x269)](_0x26709b);}catch(_0x3b2978){logger[_0x3f4657(0x21c)]('['+TAG+_0x3f4657(0x1fe)+_0x4abe86+_0x3f4657(0x21a)+_0x3b2978[_0x3f4657(0x26f)]+(_0x3b2978['stack']?_0x362493[_0x3f4657(0x20d)](_0x362493[_0x3f4657(0x214)],_0x3b2978[_0x3f4657(0x246)]):''));}}async['_fetchAPIFailedCount'](){const _0x5ab046=a122_0x5c41b5,_0x45a318={};_0x45a318[_0x5ab046(0x227)]=function(_0x3619cf,_0x315ec1){return _0x3619cf===_0x315ec1;},_0x45a318[_0x5ab046(0x27a)]=_0x5ab046(0x26c),_0x45a318[_0x5ab046(0x24a)]=function(_0x355683,_0x2ec0e6){return _0x355683+_0x2ec0e6;},_0x45a318['sXzQK']=_0x5ab046(0x243),_0x45a318[_0x5ab046(0x238)]=function(_0x569247,_0x45c535){return _0x569247!==_0x45c535;};const _0x54f69f=_0x45a318;if(!this[_0x5ab046(0x21d)])return 0x0;try{const _0x360ef7={};_0x360ef7[_0x5ab046(0x277)]=this[_0x5ab046(0x277)],_0x360ef7[_0x5ab046(0x242)]=this[_0x5ab046(0x242)],_0x360ef7[_0x5ab046(0x222)]=process[_0x5ab046(0x20a)][_0x5ab046(0x241)];const _0x52e91f=await RequestUtils[_0x5ab046(0x1ff)](_0x360ef7);return logger[_0x5ab046(0x207)]('['+TAG+'_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20'+_0x52e91f),_0x54f69f[_0x5ab046(0x227)](typeof _0x52e91f,_0x54f69f[_0x5ab046(0x27a)])?_0x52e91f:0x0;}catch(_0x2fca37){return logger['error']('['+TAG+_0x5ab046(0x249)+_0x2fca37[_0x5ab046(0x26f)]+(_0x2fca37['stack']?_0x54f69f[_0x5ab046(0x24a)](_0x54f69f['sXzQK'],_0x2fca37[_0x5ab046(0x246)]):'')),_0x54f69f[_0x5ab046(0x238)](this[_0x5ab046(0x213)][_0x5ab046(0x1f4)],undefined)?this[_0x5ab046(0x213)][_0x5ab046(0x1f4)]:0x0;}}async[a122_0x5c41b5(0x231)](){const _0x45824c=a122_0x5c41b5,_0x882fc4={};_0x882fc4['sstRV']=function(_0x590409,_0x449acc){return _0x590409!==_0x449acc;},_0x882fc4[_0x45824c(0x20c)]=function(_0x54ffce,_0x1f442b){return _0x54ffce+_0x1f442b;},_0x882fc4[_0x45824c(0x265)]=_0x45824c(0x243);const _0x2d1563=_0x882fc4;if(!this[_0x45824c(0x21d)])return;try{const _0x8c28f2=await this['_fetchAPIFailedCount']();_0x2d1563[_0x45824c(0x211)](_0x8c28f2,this['state'][_0x45824c(0x1f4)])&&(logger[_0x45824c(0x207)]('['+TAG+_0x45824c(0x248)+_0x8c28f2+'\x20(was\x20'+this['state'][_0x45824c(0x1f4)]+')'),this[_0x45824c(0x213)][_0x45824c(0x1f4)]=_0x8c28f2);}catch(_0x5c88b3){logger[_0x45824c(0x21c)]('['+TAG+_0x45824c(0x24e)+_0x5c88b3[_0x45824c(0x26f)]+(_0x5c88b3['stack']?_0x2d1563[_0x45824c(0x20c)](_0x2d1563[_0x45824c(0x265)],_0x5c88b3[_0x45824c(0x246)]):''));}}async['startPolling'](){const _0x304d98=a122_0x5c41b5,_0x29c5d7={'PsyDA':function(_0x46d6cb,_0x35e824,_0x7b9942){return _0x46d6cb(_0x35e824,_0x7b9942);}};this[_0x304d98(0x201)]&&this[_0x304d98(0x266)](),this[_0x304d98(0x21d)]&&(await this['_pollFailedTests'](),this['pollingInterval']=_0x29c5d7['PsyDA'](setInterval,async()=>{const _0x317efa=_0x304d98;await this[_0x317efa(0x231)]();},POLLING_INTERVAL),logger[_0x304d98(0x207)]('['+TAG+'_CI]\x20Polling\x20started\x20with\x20interval:\x20'+POLLING_INTERVAL+_0x304d98(0x257)));}[a122_0x5c41b5(0x266)](){const _0x2093a5=a122_0x5c41b5,_0x156fc8={'ePrNF':function(_0x5e0d7c,_0x3022a5){return _0x5e0d7c(_0x3022a5);}};this[_0x2093a5(0x201)]&&(_0x156fc8[_0x2093a5(0x25e)](clearInterval,this[_0x2093a5(0x201)]),this[_0x2093a5(0x201)]=null,logger['debug']('['+TAG+_0x2093a5(0x267)));}async[a122_0x5c41b5(0x251)](){const _0x27c2dd=a122_0x5c41b5,_0x41f228={};_0x41f228[_0x27c2dd(0x225)]=function(_0x479042,_0x594617){return _0x479042===_0x594617;},_0x41f228[_0x27c2dd(0x255)]=function(_0x3caec3,_0x46c166){return _0x3caec3===_0x46c166;},_0x41f228[_0x27c2dd(0x268)]=function(_0x2f2f19,_0x482d9d){return _0x2f2f19<=_0x482d9d;},_0x41f228['doEex']=function(_0x14f27e,_0xbf8460){return _0x14f27e+_0xbf8460;},_0x41f228[_0x27c2dd(0x264)]=_0x27c2dd(0x243),_0x41f228['xOzTe']=function(_0x7a44b3,_0xb2b9d5){return _0x7a44b3!==_0xb2b9d5;},_0x41f228[_0x27c2dd(0x203)]=function(_0x25771f,_0x308b6e){return _0x25771f>=_0x308b6e;},_0x41f228[_0x27c2dd(0x25d)]=function(_0x3a443a,_0x5078e7){return _0x3a443a+_0x5078e7;},_0x41f228[_0x27c2dd(0x260)]=function(_0x4a0adb,_0x15ec22){return _0x4a0adb+_0x15ec22;},_0x41f228[_0x27c2dd(0x256)]=function(_0x99aeb7,_0x14fb89){return _0x99aeb7>=_0x14fb89;};const _0x9ee2b2=_0x41f228,{failureThresholdCount:_0x468aa3}=this[_0x27c2dd(0x22b)];if(_0x9ee2b2['zhrCz'](_0x468aa3,null)||_0x9ee2b2[_0x27c2dd(0x255)](_0x468aa3,undefined)||_0x9ee2b2[_0x27c2dd(0x268)](_0x468aa3,0x0))return logger[_0x27c2dd(0x207)]('['+TAG+_0x27c2dd(0x275)),![];if(this['isCIMode']){try{if(fs[_0x27c2dd(0x25f)](this['failFastActiveMarkerPath']))return logger[_0x27c2dd(0x207)]('['+TAG+_0x27c2dd(0x223)),!this[_0x27c2dd(0x213)][_0x27c2dd(0x278)]&&(this['state'][_0x27c2dd(0x278)]=!![]),this[_0x27c2dd(0x266)](),!![];}catch(_0x18fe57){logger['error']('['+TAG+_0x27c2dd(0x21e)+_0x18fe57[_0x27c2dd(0x26f)]+(_0x18fe57['stack']?_0x9ee2b2[_0x27c2dd(0x237)](_0x9ee2b2[_0x27c2dd(0x264)],_0x18fe57[_0x27c2dd(0x246)]):''));}const _0x4955e0=_0x9ee2b2[_0x27c2dd(0x26a)](this[_0x27c2dd(0x213)][_0x27c2dd(0x1f4)],undefined)?this[_0x27c2dd(0x213)][_0x27c2dd(0x1f4)]:0x0;if(_0x9ee2b2['hgyMP'](_0x4955e0,_0x468aa3)){logger[_0x27c2dd(0x263)]('['+TAG+'_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x4955e0+_0x27c2dd(0x1fd)+_0x468aa3+'.');try{fs[_0x27c2dd(0x216)](this[_0x27c2dd(0x21b)],new Date()[_0x27c2dd(0x22c)]()),logger[_0x27c2dd(0x207)]('['+TAG+_0x27c2dd(0x24b)+this[_0x27c2dd(0x21b)]),this[_0x27c2dd(0x213)][_0x27c2dd(0x278)]=!![];}catch(_0x4f53ae){logger[_0x27c2dd(0x21c)]('['+TAG+_0x27c2dd(0x205)+_0x4f53ae[_0x27c2dd(0x26f)]+(_0x4f53ae[_0x27c2dd(0x246)]?_0x9ee2b2['VhePg'](_0x9ee2b2[_0x27c2dd(0x264)],_0x4f53ae['stack']):''));}return this[_0x27c2dd(0x266)](),!![];}}else{let _0x289b46;try{_0x289b46=await this[_0x27c2dd(0x245)]['readState']();if(!_0x289b46)return logger[_0x27c2dd(0x1f9)]('['+TAG+_0x27c2dd(0x244)),![];}catch(_0x31214a){return logger[_0x27c2dd(0x21c)]('['+TAG+_0x27c2dd(0x224)+_0x31214a[_0x27c2dd(0x26f)]+(_0x31214a['stack']?_0x9ee2b2[_0x27c2dd(0x260)](_0x9ee2b2[_0x27c2dd(0x264)],_0x31214a[_0x27c2dd(0x246)]):'')),![];}this['state']={...this[_0x27c2dd(0x23e)](),..._0x289b46,'uniqueFailedTests':new Set(_0x289b46[_0x27c2dd(0x259)]||[])};if(this['state']['failFastActive'])return logger[_0x27c2dd(0x207)]('['+TAG+_0x27c2dd(0x217)),!![];const _0xe2c2dc=this[_0x27c2dd(0x213)][_0x27c2dd(0x259)],_0x428d0=_0xe2c2dc[_0x27c2dd(0x212)];if(_0x9ee2b2['EwHYT'](_0x428d0,_0x468aa3)){try{logger[_0x27c2dd(0x263)]('['+TAG+'_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x428d0+',\x20threshold:\x20'+_0x468aa3+'.'),this['state'][_0x27c2dd(0x278)]=!![];}catch(_0x4a9d1d){logger['error']('['+TAG+_0x27c2dd(0x26d)+_0x4a9d1d['message']+(_0x4a9d1d[_0x27c2dd(0x246)]?_0x9ee2b2[_0x27c2dd(0x25d)](_0x9ee2b2[_0x27c2dd(0x264)],_0x4a9d1d[_0x27c2dd(0x246)]):''));}return!![];}}return![];}async[a122_0x5c41b5(0x24f)](){const _0x38e655=a122_0x5c41b5,_0x2bdc08={};_0x2bdc08[_0x38e655(0x236)]=function(_0x33e610,_0x47f33b){return _0x33e610+_0x47f33b;},_0x2bdc08[_0x38e655(0x232)]='\x0aStack:\x20';const _0x2e48cd=_0x2bdc08;this[_0x38e655(0x266)]();if(this['isCIMode'])logger[_0x38e655(0x207)]('['+TAG+_0x38e655(0x253));else try{const _0x925381={...this[_0x38e655(0x213)],'uniqueFailedTests':Array[_0x38e655(0x230)](this[_0x38e655(0x213)][_0x38e655(0x259)]||new Set())};await this[_0x38e655(0x245)]['writeState'](_0x925381),logger[_0x38e655(0x207)]('['+TAG+_0x38e655(0x25b));}catch(_0x2a4a45){logger[_0x38e655(0x21c)]('['+TAG+_0x38e655(0x229)+_0x2a4a45['message']+(_0x2a4a45[_0x38e655(0x246)]?_0x2e48cd[_0x38e655(0x236)](_0x2e48cd[_0x38e655(0x232)],_0x2a4a45[_0x38e655(0x246)]):''));}}}module[a122_0x5c41b5(0x234)]=FailFastManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x41a164=a123_0xfa39;(function(_0x105343,_0x2354f6){const _0x392b32=a123_0xfa39,_0x1d546f=_0x105343();while(!![]){try{const _0x428cc9=parseInt(_0x392b32(0x211))/0x1*(-parseInt(_0x392b32(0x222))/0x2)+-parseInt(_0x392b32(0x214))/0x3+parseInt(_0x392b32(0x201))/0x4*(-parseInt(_0x392b32(0x206))/0x5)+parseInt(_0x392b32(0x215))/0x6+parseInt(_0x392b32(0x1fd))/0x7*(parseInt(_0x392b32(0x209))/0x8)+parseInt(_0x392b32(0x204))/0x9+parseInt(_0x392b32(0x1f0))/0xa;if(_0x428cc9===_0x2354f6)break;else _0x1d546f['push'](_0x1d546f['shift']());}catch(_0x612957){_0x1d546f['push'](_0x1d546f['shift']());}}}(a123_0x34ba,0x5ead2));function a123_0xfa39(_0x4eb743,_0x5822ac){const _0x34ba6d=a123_0x34ba();return a123_0xfa39=function(_0xfa39cb,_0x121e7c){_0xfa39cb=_0xfa39cb-0x1ef;let _0x48de2b=_0x34ba6d[_0xfa39cb];return _0x48de2b;},a123_0xfa39(_0x4eb743,_0x5822ac);}function a123_0x34ba(){const _0x5a70e5=['newState','DVmMb','257164NZOXjS','iAhiH','from','4528413nrnbYb','add','60bXyHFf','defaultState','zRkNG','5464832smCZQp','vlgvq','updateAPIFailedCount',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','lastAPIFailedCount','writeState','fgVaT','lockFilePath','11XImVTm','unlinkSync','acquireLock','967032VYXFNF','436476crhTud','exports','FailFastFileHelper',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','stateFilePath','../logger','closeSync','stringify',']\x20Error\x20releasing\x20lock:\x20',']\x20Error\x20writing\x20state\x20file:\x20',']\x20Error\x20reading\x20state\x20file:\x20','warn','error','50492IKluxj','isNewFailure','WXSeK','readState','EaHtN','winstonLogger','function','stack','message','recordTestResult','totalTests','5003290LaeYzw','has','3|4|1|2|0','failFastConfig','mdHrX','EEXIST','fullName','iterator','writeFileSync','isArray','parse','releaseLock','failed','7ycSLYA','uniqueFailedTests'];a123_0x34ba=function(){return _0x5a70e5;};return a123_0x34ba();}const fs=require('fs'),logger=require(a123_0x41a164(0x21a))[a123_0x41a164(0x227)],TAG=a123_0x41a164(0x217);class FileHelper{constructor(_0x12aff4,_0x2612e2,_0x55b14a,_0x91b7bb){const _0x5b09a5=a123_0x41a164,_0x2fbba9={};_0x2fbba9[_0x5b09a5(0x1f4)]=_0x5b09a5(0x1f2),_0x2fbba9['iAhiH']='utf8';const _0x4c3836=_0x2fbba9,_0x5b5b04=_0x4c3836[_0x5b09a5(0x1f4)]['split']('|');let _0x55cbf9=0x0;while(!![]){switch(_0x5b5b04[_0x55cbf9++]){case'0':if(!fs['existsSync'](this['stateFilePath']))try{fs[_0x5b09a5(0x1f8)](this[_0x5b09a5(0x219)],'{}',_0x4c3836[_0x5b09a5(0x202)]);}catch(_0x59e9b0){logger['error']('['+TAG+']\x20Error\x20creating\x20state\x20file:\x20'+_0x59e9b0['message']+'\x20'+_0x59e9b0['stack']);}continue;case'1':this[_0x5b09a5(0x210)]=_0x55b14a;continue;case'2':this[_0x5b09a5(0x207)]=_0x91b7bb;continue;case'3':this[_0x5b09a5(0x1f3)]=_0x12aff4;continue;case'4':this['stateFilePath']=_0x2612e2;continue;}break;}}async['acquireLock'](){const _0x487bd4=a123_0x41a164,_0x43e509={};_0x43e509[_0x487bd4(0x226)]=function(_0x47fa1e,_0x51b44e){return _0x47fa1e===_0x51b44e;},_0x43e509[_0x487bd4(0x208)]=_0x487bd4(0x1f5);const _0xd800c8=_0x43e509;let _0x334cf0;try{return _0x334cf0=fs['openSync'](this[_0x487bd4(0x210)],'wx'),_0x334cf0;}catch(_0x5c0668){if(_0xd800c8['EaHtN'](_0x5c0668['code'],_0xd800c8[_0x487bd4(0x208)]))return null;throw _0x5c0668;}}async['releaseLock'](_0x50e435){const _0xe2ab2b=a123_0x41a164;if(_0x50e435)try{fs[_0xe2ab2b(0x21b)](_0x50e435),fs[_0xe2ab2b(0x212)](this[_0xe2ab2b(0x210)]);}catch(_0x81c7c7){logger[_0xe2ab2b(0x221)]('['+TAG+_0xe2ab2b(0x21d)+_0x81c7c7[_0xe2ab2b(0x22a)]+'\x20'+_0x81c7c7[_0xe2ab2b(0x229)]);}}[a123_0x41a164(0x225)](){const _0x2f1105=a123_0x41a164,_0x2bc795={};_0x2bc795[_0x2f1105(0x20f)]='utf8';const _0xf503a=_0x2bc795;try{const _0x1fb330=fs['readFileSync'](this[_0x2f1105(0x219)],_0xf503a[_0x2f1105(0x20f)]);return JSON[_0x2f1105(0x1fa)](_0x1fb330);}catch(_0x298023){return logger[_0x2f1105(0x221)]('['+TAG+_0x2f1105(0x21f)+_0x298023['message']+'\x20'+_0x298023[_0x2f1105(0x229)]),null;}}async[a123_0x41a164(0x20e)](_0x1471f7){const _0x4e93bf=a123_0x41a164,_0x32044e={..._0x1471f7,'uniqueFailedTests':Array[_0x4e93bf(0x1f9)](_0x1471f7['uniqueFailedTests'])?_0x1471f7[_0x4e93bf(0x1fe)]:Array[_0x4e93bf(0x203)](_0x1471f7[_0x4e93bf(0x1fe)]||[])};try{fs[_0x4e93bf(0x1f8)](this[_0x4e93bf(0x219)],JSON[_0x4e93bf(0x21c)](_0x32044e,null,0x2));}catch(_0x120b26){logger['error']('['+TAG+_0x4e93bf(0x21e)+_0x120b26[_0x4e93bf(0x22a)]+'\x20'+_0x120b26['stack']);throw _0x120b26;}}async[a123_0x41a164(0x22b)](_0x2f7b7e,_0x5bf934){const _0x3cec2f=a123_0x41a164,_0x22674f={};_0x22674f['zHGEq']=function(_0x308e0f,_0x468c34){return _0x308e0f!==_0x468c34;},_0x22674f[_0x3cec2f(0x224)]=_0x3cec2f(0x228),_0x22674f[_0x3cec2f(0x20a)]=function(_0x5a84a3,_0x44bfbe){return _0x5a84a3===_0x44bfbe;},_0x22674f[_0x3cec2f(0x200)]=_0x3cec2f(0x1fc);const _0x4b7a43=_0x22674f,_0x1d2795=await this[_0x3cec2f(0x213)]();if(!_0x1d2795)return logger[_0x3cec2f(0x220)]('['+TAG+_0x3cec2f(0x218)),{'newState':this['readState']()||this['defaultState'],'isNewFailure':![]};try{let _0x36ed9d=this['readState']();!_0x36ed9d&&(_0x36ed9d=JSON[_0x3cec2f(0x1fa)](JSON[_0x3cec2f(0x21c)](this['defaultState'])));if(!_0x36ed9d[_0x3cec2f(0x1fe)]||_0x4b7a43['zHGEq'](typeof _0x36ed9d[_0x3cec2f(0x1fe)][Symbol[_0x3cec2f(0x1f7)]],_0x4b7a43[_0x3cec2f(0x224)]))_0x36ed9d[_0x3cec2f(0x1fe)]=new Set();else Array[_0x3cec2f(0x1f9)](_0x36ed9d[_0x3cec2f(0x1fe)])&&(_0x36ed9d[_0x3cec2f(0x1fe)]=new Set(_0x36ed9d[_0x3cec2f(0x1fe)]));_0x36ed9d[_0x3cec2f(0x1ef)]=_0x5bf934;let _0x58edca=![];_0x4b7a43[_0x3cec2f(0x20a)](_0x2f7b7e['status'],_0x4b7a43[_0x3cec2f(0x200)])&&(_0x36ed9d['failedTests']+=0x1,!_0x36ed9d['uniqueFailedTests'][_0x3cec2f(0x1f1)](_0x2f7b7e[_0x3cec2f(0x1f6)])&&(_0x36ed9d[_0x3cec2f(0x1fe)][_0x3cec2f(0x205)](_0x2f7b7e[_0x3cec2f(0x1f6)]),_0x58edca=!![]));await this[_0x3cec2f(0x20e)](_0x36ed9d);const _0x74b57a={};return _0x74b57a[_0x3cec2f(0x1ff)]=_0x36ed9d,_0x74b57a[_0x3cec2f(0x223)]=_0x58edca,_0x74b57a;}finally{await this['releaseLock'](_0x1d2795);}}async[a123_0x41a164(0x20b)](_0xa5924f){const _0x28f0f3=a123_0x41a164,_0x5b565a=await this[_0x28f0f3(0x213)]();if(!_0x5b565a)return logger['warn']('['+TAG+_0x28f0f3(0x20c)),this[_0x28f0f3(0x225)]()||this[_0x28f0f3(0x207)];try{let _0x54fb32=this[_0x28f0f3(0x225)]();return!_0x54fb32&&(_0x54fb32=JSON['parse'](JSON[_0x28f0f3(0x21c)](this['defaultState']))),_0x54fb32[_0x28f0f3(0x20d)]=_0xa5924f,await this['writeState'](_0x54fb32),_0x54fb32;}finally{await this[_0x28f0f3(0x1fb)](_0x5b565a);}}}module[a123_0x41a164(0x216)]=FileHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124_0x3dda2e=a124_0x3fa0;(function(_0x181159,_0x2d0c9d){const _0x47b599=a124_0x3fa0,_0x4f9156=_0x181159();while(!![]){try{const _0x18a198=parseInt(_0x47b599(0x148))/0x1+-parseInt(_0x47b599(0x12c))/0x2*(parseInt(_0x47b599(0x147))/0x3)+-parseInt(_0x47b599(0x129))/0x4+-parseInt(_0x47b599(0x13e))/0x5*(parseInt(_0x47b599(0x136))/0x6)+parseInt(_0x47b599(0x126))/0x7*(-parseInt(_0x47b599(0x116))/0x8)+-parseInt(_0x47b599(0x13c))/0x9*(-parseInt(_0x47b599(0x11c))/0xa)+-parseInt(_0x47b599(0x12d))/0xb*(-parseInt(_0x47b599(0x11d))/0xc);if(_0x18a198===_0x2d0c9d)break;else _0x4f9156['push'](_0x4f9156['shift']());}catch(_0x95e220){_0x4f9156['push'](_0x4f9156['shift']());}}}(a124_0x42f5,0x5fab5));const os=require('os'),path=require(a124_0x3dda2e(0x113)),fs=require('fs'),logger=require(a124_0x3dda2e(0x14a))[a124_0x3dda2e(0x13a)],RETRY_TESTS_ON_FAILURE=a124_0x3dda2e(0x112),ABORT_BUILD_ON_FAILURE='abortBuildOnFailure',RUN_PREVIOUSLY_FAILED_FIRST=a124_0x3dda2e(0x149),RERUN_PREVIOUSLY_FAILED=a124_0x3dda2e(0x114),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([a124_0x3dda2e(0x13b)]);class TestOrdering{constructor(){const _0x4812f9=a124_0x3dda2e;this[_0x4812f9(0x120)]=![],this['name']=null;}[a124_0x3dda2e(0x11a)](_0xf2416e){const _0x375f72=a124_0x3dda2e;this[_0x375f72(0x120)]=!![],this['name']=_0xf2416e;}[a124_0x3dda2e(0x110)](){const _0x3f94cb=a124_0x3dda2e;this[_0x3f94cb(0x120)]=![],this['name']=null;}[a124_0x3dda2e(0x124)](){const _0x2d4c40=a124_0x3dda2e;return this[_0x2d4c40(0x120)];}[a124_0x3dda2e(0x131)](){return this['name'];}}function a124_0x42f5(){const _0x23b641=['run_previously_failed_first','48728dOqRqo','11lZAceu','tmpdir','isRetryEnabled','getSkipFlakyAndFailed','getName','_setSkipFlakyAndFailed','_setRunPreviouslyFailedFirst','maxFailures','toLowerCase','642dznYAh','getRetryCount','MpKNi','.txt','winstonLogger','jest','306OBSpby','abort_build_','18215YjniJW','testOrchestrationOptions','_instance','has','rerun_previously_failed','join','xuwal','isAbortBuildOnFailureSupported','_setTestOrdering','84ckiiEJ','523213dtQllb','runPreviouslyFailedFirst','../logger','env','BROWSERSTACK_TESTHUB_UUID','abort_build_on_failure','getOrchestrationData','disable','config','retryTestsOnFailure','path','rerunPreviouslyFailed','checkAbortBuildFileExists','2258248paaatg','getBuildStartData','_setRerunPreviouslyFailed','getRerunPreviouslyFailed','enable','maxRetries','194370CNrTyB','15048732ISRihT','testOrderingEnabled','retry_tests_on_failure','enabled','skip_failing_and_flaky','getFailureThreshold','isAbortBuildOnFailureEnabled','getEnabled','testOrdering','7VJptif','getInstance','getRunPreviouslyFailedFirst','2767988uIRaae','skipFlakyAndFailed'];a124_0x42f5=function(){return _0x23b641;};return a124_0x42f5();}function a124_0x3fa0(_0xbd92b6,_0x5f5c69){const _0x42f587=a124_0x42f5();return a124_0x3fa0=function(_0x3fa04a,_0x533e9e){_0x3fa04a=_0x3fa04a-0x10f;let _0x47874=_0x42f587[_0x3fa04a];return _0x47874;},a124_0x3fa0(_0xbd92b6,_0x5f5c69);}class OrchestrationUtils{static [a124_0x3dda2e(0x140)]=null;constructor(_0x9602a1){const _0x321835=a124_0x3dda2e,_0x2ff656={};_0x2ff656[_0x321835(0x138)]=function(_0x552fff,_0x5b1d21){return _0x552fff||_0x5b1d21;};const _0x3adfa9=_0x2ff656;this[_0x321835(0x149)]=![],this['rerunPreviouslyFailed']=![],this[_0x321835(0x12a)]=![],this['testOrdering']=new TestOrdering(),this[_0x321835(0x111)]=_0x3adfa9['MpKNi'](_0x9602a1,{});const _0x825703=_0x9602a1&&_0x9602a1['testOrchestrationOptions']||{};this[_0x321835(0x133)](_0x825703[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x321835(0x118)](_0x825703[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x321835(0x132)](_0x825703[SKIP_FLAKY_AND_FAILED]||![]);}static[a124_0x3dda2e(0x127)](_0x48f79f){const _0x8248de=a124_0x3dda2e;return!OrchestrationUtils[_0x8248de(0x140)]&&_0x48f79f&&(OrchestrationUtils['_instance']=new OrchestrationUtils(_0x48f79f)),OrchestrationUtils[_0x8248de(0x140)];}[a124_0x3dda2e(0x12f)](){const _0x351a3b=a124_0x3dda2e,_0x4cedf8=(this[_0x351a3b(0x111)]['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x4cedf8[_0x351a3b(0x120)];}[a124_0x3dda2e(0x137)](){const _0x1fcbc3=a124_0x3dda2e,_0x40f825=(this[_0x1fcbc3(0x111)][_0x1fcbc3(0x13f)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x101210=0x0;return this[_0x1fcbc3(0x12f)](this[_0x1fcbc3(0x111)])&&(_0x101210=_0x40f825[_0x1fcbc3(0x11b)]||0x1),_0x101210;}[a124_0x3dda2e(0x10f)](){const _0x5b5987=a124_0x3dda2e,_0x49142b=this[_0x5b5987(0x111)]['testOrchestrationOptions']||{},_0x2c6278={};for(const _0x4e14c0 in _0x49142b){ALLOWED_ORCHESTRATION_KEYS[_0x5b5987(0x141)](_0x4e14c0)&&(_0x2c6278[_0x4e14c0]=_0x49142b[_0x4e14c0]);}return _0x2c6278;}[a124_0x3dda2e(0x115)](){const _0x23d947=a124_0x3dda2e,_0x5dbeec=process[_0x23d947(0x14b)][_0x23d947(0x14c)],_0x3039e8=path['join'](os['tmpdir'](),_0x23d947(0x13d)+_0x5dbeec);return fs['existsSync'](_0x3039e8);}['writeFailureToFile'](_0x4bbd97){const _0x174bc7=a124_0x3dda2e,_0x1b0c58=process[_0x174bc7(0x14b)][_0x174bc7(0x14c)],_0x456cd5=path[_0x174bc7(0x143)](os[_0x174bc7(0x12e)](),'failed_tests_'+_0x1b0c58+_0x174bc7(0x139));fs['appendFileSync'](_0x456cd5,_0x4bbd97+'\x0a');}[a124_0x3dda2e(0x145)](_0x5d7a44){const _0xc8c46b=a124_0x3dda2e,_0xbb40b6={};_0xbb40b6['xuwal']=function(_0x4aac2b,_0x15bc69){return _0x4aac2b||_0x15bc69;};const _0x58f7b9=_0xbb40b6;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0xc8c46b(0x141)](_0x58f7b9[_0xc8c46b(0x144)](_0x5d7a44,'')[_0xc8c46b(0x135)]());}[a124_0x3dda2e(0x123)](){const _0x277534=a124_0x3dda2e,_0x56c661=(this['config'][_0x277534(0x13f)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x56c661[_0x277534(0x120)];}[a124_0x3dda2e(0x122)](){const _0x3c9f40=a124_0x3dda2e,_0x563e89=(this['config']['testOrchestrationOptions']||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x563e89[_0x3c9f40(0x134)]||0x5;;}[a124_0x3dda2e(0x128)](){return this['runPreviouslyFailedFirst'];}[a124_0x3dda2e(0x133)](_0x577d43){const _0x3b48b4=a124_0x3dda2e;this[_0x3b48b4(0x149)]=!!_0x577d43,this[_0x3b48b4(0x146)]();}[a124_0x3dda2e(0x119)](){const _0x12b3ec=a124_0x3dda2e;return this[_0x12b3ec(0x114)];}['_setRerunPreviouslyFailed'](_0x3a1a32){const _0x33f8c3=a124_0x3dda2e;this['rerunPreviouslyFailed']=!!_0x3a1a32,this[_0x33f8c3(0x146)]();}[a124_0x3dda2e(0x130)](){const _0xc92d76=a124_0x3dda2e;return this[_0xc92d76(0x12a)];}['_setSkipFlakyAndFailed'](_0x44ba0d){const _0x50ad74=a124_0x3dda2e;this['skipFlakyAndFailed']=!!_0x44ba0d,this[_0x50ad74(0x146)]();}[a124_0x3dda2e(0x146)](){const _0x517bf2=a124_0x3dda2e;if(this[_0x517bf2(0x149)])this[_0x517bf2(0x114)]=![],this[_0x517bf2(0x12a)]=![],this[_0x517bf2(0x125)]['enable'](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x517bf2(0x114)])this[_0x517bf2(0x149)]=![],this[_0x517bf2(0x12a)]=![],this[_0x517bf2(0x125)]['enable'](RERUN_PREVIOUSLY_FAILED);else this['skipFlakyAndFailed']?(this[_0x517bf2(0x149)]=![],this[_0x517bf2(0x114)]=![],this[_0x517bf2(0x125)][_0x517bf2(0x11a)](SKIP_FLAKY_AND_FAILED)):this['testOrdering']['disable']();}}[a124_0x3dda2e(0x11e)](){const _0x2bae9d=a124_0x3dda2e;return this[_0x2bae9d(0x125)][_0x2bae9d(0x124)]();}['getTestOrderingName'](){const _0x1e068d=a124_0x3dda2e;if(this[_0x1e068d(0x125)][_0x1e068d(0x124)]())return this[_0x1e068d(0x125)][_0x1e068d(0x131)]();return null;}[a124_0x3dda2e(0x117)](){const _0x1e00d8=a124_0x3dda2e,_0x2d8b00={};return _0x2d8b00[_0x1e00d8(0x142)]={'enabled':this[_0x1e00d8(0x119)]()},_0x2d8b00[_0x1e00d8(0x12b)]={'enabled':this[_0x1e00d8(0x128)]()},_0x2d8b00[_0x1e00d8(0x121)]={'enabled':this[_0x1e00d8(0x130)]()},this[_0x1e00d8(0x12f)]()&&(_0x2d8b00[_0x1e00d8(0x11f)]={'enabled':!![],'max_retries':this[_0x1e00d8(0x137)]()}),this[_0x1e00d8(0x123)]()&&(_0x2d8b00[_0x1e00d8(0x14d)]={'enabled':!![],'max_failures':this[_0x1e00d8(0x122)]()}),_0x2d8b00;}}module['exports']=OrchestrationUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a125_0x375822=a125_0x411a;function a125_0x411a(_0x33109a,_0x4429a9){const _0x4f0175=a125_0x4f01();return a125_0x411a=function(_0x411a49,_0x26d818){_0x411a49=_0x411a49-0xea;let _0x384b8a=_0x4f0175[_0x411a49];return _0x384b8a;},a125_0x411a(_0x33109a,_0x4429a9);}(function(_0x123cc8,_0x5b38fb){const _0x1e617c=a125_0x411a,_0x3ef160=_0x123cc8();while(!![]){try{const _0x37a4fb=-parseInt(_0x1e617c(0x128))/0x1*(parseInt(_0x1e617c(0x13b))/0x2)+parseInt(_0x1e617c(0x134))/0x3*(-parseInt(_0x1e617c(0xfd))/0x4)+-parseInt(_0x1e617c(0x125))/0x5*(-parseInt(_0x1e617c(0x13d))/0x6)+parseInt(_0x1e617c(0x11d))/0x7*(-parseInt(_0x1e617c(0x12d))/0x8)+-parseInt(_0x1e617c(0xf5))/0x9+-parseInt(_0x1e617c(0x124))/0xa*(-parseInt(_0x1e617c(0x100))/0xb)+parseInt(_0x1e617c(0x11c))/0xc;if(_0x37a4fb===_0x5b38fb)break;else _0x3ef160['push'](_0x3ef160['shift']());}catch(_0x4b5134){_0x3ef160['push'](_0x3ef160['shift']());}}}(a125_0x4f01,0xa78dc));const https=require(a125_0x375822(0x10f)),{URL}=require(a125_0x375822(0x116)),logger=require(a125_0x375822(0xfe))[a125_0x375822(0x107)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require('./constants'),TAG=a125_0x375822(0x11a);function a125_0x4f01(){const _0x5530d9=['pdBQK','230ClQgzk','10QujHPN','application/json','Whlqs','1115315glRNCr','\x20-\x20','mbCcX','postSplitFiles','message','2728FKqmoR','undefined','fpaaD','XDIqy','ZrCVE','getFailedTestsCount','status','1010127uWzvtv','POST',']\x20Sending\x20',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','?buildName=','ehEIJ','Test\x20added','2KoarMR','Bearer\x20','798654CrktGM','debug','FZxFk','Failed\x20to\x20parse\x20JSON\x20response:\x20','stack','beCCg','FZGUB','Sdcpy','dLOxB','WzFvu','nCiiZ',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','ygkjB','5449311hujcfn',']\x20Error\x20in\x20putFailedTests:\x20','body','xuEsF','request','RJuyt','zbjTL',',\x20projectName=','4bhwNjr','../logger','&buildRunIdentifier=','441749JlmyIt',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','jxyEX','putFailedTests','kmldu','LJcIr','DTFPj','winstonLogger','dSPvv','\x20and\x20data:\x20','error','end','stringify','exports','&projectName=','https',']\x20Request\x20failed\x20for\x20','TbznW','PUT',',\x20buildRunIdentifier=','\x20and\x20token:\x20','failedTestsCount','url','data',',\x20status:\x20','parse','RequestUtils','RclRY','21503352DgCaXA','4886lCGeDI','aaTlB','headers','GET','env','_request'];a125_0x4f01=function(){return _0x5530d9;};return a125_0x4f01();}class RequestUtils{static async[a125_0x375822(0x122)](_0x5eb4ee,_0x352c69,_0x2273e6=null){const _0x5732df=a125_0x375822,_0x316794={'nCiiZ':function(_0x1a5637,_0x4e0e7e){return _0x1a5637(_0x4e0e7e);},'mbCcX':function(_0x351588,_0x22b92c){return _0x351588(_0x22b92c);},'IzAAz':_0x5732df(0x117),'dSPvv':_0x5732df(0x10b),'DTFPj':_0x5732df(0x10a),'ehEIJ':function(_0x5cc6d7,_0x1f8564){return _0x5cc6d7===_0x1f8564;},'jxyEX':_0x5732df(0x135),'ZrCVE':_0x5732df(0x112),'aaTlB':_0x5732df(0x126),'xerfd':function(_0x30a14d,_0x24d4f7){return _0x30a14d+_0x24d4f7;}},_0x29f44f=process[_0x5732df(0x121)]['BROWSERSTACK_TESTHUB_JWT']||'',_0x1424f2={};_0x1424f2['Authorization']=_0x5732df(0x13c)+_0x29f44f,_0x1424f2['Content-Type']=_0x316794[_0x5732df(0x11e)];const _0x175fe7=_0x1424f2,{hostname:_0x585d14,pathname:_0x29ac69,search:_0x41914f}=new URL(_0x352c69),_0x550176={'hostname':_0x585d14,'path':_0x316794['xerfd'](_0x29ac69,_0x41914f),'method':_0x5eb4ee,'headers':_0x175fe7};return logger[_0x5732df(0x13e)]('['+TAG+_0x5732df(0x136)+_0x5eb4ee+'\x20request\x20to\x20'+_0x352c69+'\x20with\x20headers:\x20'+JSON[_0x5732df(0x10c)](_0x175fe7)+_0x5732df(0x109)+JSON['stringify'](_0x2273e6)+_0x5732df(0x114)+_0x29f44f),new Promise((_0x3cdcd6,_0x3b3058)=>{const _0x597717=_0x5732df,_0x728f5={'RclRY':function(_0x22b6ff,_0xbc5d40){const _0x23ac08=a125_0x411a;return _0x316794[_0x23ac08(0x12a)](_0x22b6ff,_0xbc5d40);},'MDyga':function(_0x24167d,_0x3ee888){const _0x2f883e=a125_0x411a;return _0x316794[_0x2f883e(0x12a)](_0x24167d,_0x3ee888);},'FZxFk':_0x316794['IzAAz'],'zbjTL':_0x316794[_0x597717(0x108)]},_0x128898=https[_0x597717(0xf9)](_0x550176,_0x364b96=>{const _0x497a83=_0x597717;let _0x423eec='';_0x364b96['on'](_0x728f5[_0x497a83(0xea)],_0xc9f270=>{_0x423eec+=_0xc9f270;}),_0x364b96['on'](_0x728f5[_0x497a83(0xfb)],()=>{const _0x316f46=_0x497a83;try{const _0x1f2851=_0x423eec?JSON[_0x316f46(0x119)](_0x423eec):{},_0x6fa5f={};_0x6fa5f[_0x316f46(0x133)]=_0x364b96['statusCode'],_0x6fa5f['body']=_0x1f2851,_0x6fa5f[_0x316f46(0x11f)]=_0x364b96[_0x316f46(0x11f)],_0x728f5[_0x316f46(0x11b)](_0x3cdcd6,_0x6fa5f);}catch(_0xf92f0){logger[_0x316f46(0x10a)]('['+TAG+_0x316f46(0x137)+_0x423eec+_0x316f46(0x129)+_0xf92f0[_0x316f46(0x12c)]+'\x20'+_0xf92f0['stack']),_0x728f5['MDyga'](_0x3b3058,new Error(_0x316f46(0xeb)+_0xf92f0[_0x316f46(0x12c)]));}});});_0x128898['on'](_0x316794[_0x597717(0x106)],_0x1ddae8=>{const _0x5b75c6=_0x597717;logger['error']('['+TAG+_0x5b75c6(0x110)+_0x5eb4ee+'\x20'+_0x352c69+':\x20'+_0x1ddae8[_0x5b75c6(0x12c)]+'\x20'+_0x1ddae8['stack']),_0x316794[_0x5b75c6(0xf2)](_0x3b3058,_0x1ddae8);}),_0x2273e6&&(_0x316794[_0x597717(0x139)](_0x5eb4ee,_0x316794[_0x597717(0x102)])||_0x316794[_0x597717(0x139)](_0x5eb4ee,_0x316794[_0x597717(0x131)]))&&_0x128898['write'](JSON['stringify'](_0x2273e6)),_0x128898[_0x597717(0x10b)]();});}static async[a125_0x375822(0x12b)](_0x47b6ae){const _0x56b6bc=a125_0x375822,_0x41a5c7={};_0x41a5c7[_0x56b6bc(0x127)]='POST',_0x41a5c7['Sdcpy']=function(_0xf2ddc1,_0x462055){return _0xf2ddc1===_0x462055;};const _0x1ce0b7=_0x41a5c7,_0x36e21e=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x520dad=await this[_0x56b6bc(0x122)](_0x1ce0b7['Whlqs'],_0x36e21e,_0x47b6ae);return _0x1ce0b7[_0x56b6bc(0xef)](_0x520dad[_0x56b6bc(0x133)],0xc8)?logger[_0x56b6bc(0x13e)]('['+TAG+_0x56b6bc(0x101)+_0x36e21e):logger[_0x56b6bc(0x10a)]('['+TAG+']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20'+_0x36e21e+':\x20'+JSON[_0x56b6bc(0x10c)](_0x520dad[_0x56b6bc(0xf7)])+_0x56b6bc(0x118)+_0x520dad[_0x56b6bc(0x133)]),_0x520dad;}catch(_0x1b0f81){logger[_0x56b6bc(0x10a)]('['+TAG+_0x56b6bc(0xf6)+_0x1b0f81[_0x56b6bc(0x12c)]+'\x20'+_0x1b0f81[_0x56b6bc(0xec)]);const _0xdb431e={};_0xdb431e[_0x56b6bc(0x12c)]=_0x1b0f81[_0x56b6bc(0x12c)];const _0x2fb1a8={};return _0x2fb1a8[_0x56b6bc(0x133)]=0x1f4,_0x2fb1a8[_0x56b6bc(0xf7)]=_0xdb431e,_0x2fb1a8;}}static async['getSplitFiles'](_0x199c90){const _0x212c89=a125_0x375822,_0x206944={};_0x206944[_0x212c89(0x130)]=_0x212c89(0x120),_0x206944[_0x212c89(0xee)]=function(_0xf3e451,_0x24f0aa){return _0xf3e451===_0x24f0aa;};const _0x38e149=_0x206944;try{const _0x53494c=await this['_request'](_0x38e149[_0x212c89(0x130)],_0x199c90);if(_0x38e149[_0x212c89(0xee)](_0x53494c['status'],0xc8))return _0x53494c[_0x212c89(0xf7)];return{};}catch(_0x3f8ce5){return logger[_0x212c89(0x10a)]('['+TAG+_0x212c89(0xf6)+_0x3f8ce5[_0x212c89(0x12c)]+'\x20'+_0x3f8ce5[_0x212c89(0xec)]),{};}}static async[a125_0x375822(0x103)](_0xc87e3a){const _0x1012d5=a125_0x375822,_0x54044f={};_0x54044f['TbznW']=_0x1012d5(0x112),_0x54044f['WzFvu']=function(_0x2e7cb1,_0x277bf7){return _0x2e7cb1===_0x277bf7;},_0x54044f[_0x1012d5(0x123)]=function(_0x3be097,_0x2edfa6){return _0x3be097===_0x2edfa6;},_0x54044f[_0x1012d5(0xed)]=_0x1012d5(0x13a);const _0x246c21=_0x54044f,_0x91cd6c=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x2bb5ee=await this['_request'](_0x246c21[_0x1012d5(0x111)],_0x91cd6c,_0xc87e3a);if(_0x246c21[_0x1012d5(0xf1)](_0x2bb5ee[_0x1012d5(0x133)],0xc8)&&_0x2bb5ee['body']&&_0x246c21[_0x1012d5(0x123)](_0x2bb5ee[_0x1012d5(0xf7)][_0x1012d5(0x12c)],_0x246c21[_0x1012d5(0xed)]))return!![];return![];}catch(_0xb7b62c){logger[_0x1012d5(0x10a)]('['+TAG+_0x1012d5(0xf6)+_0xb7b62c[_0x1012d5(0x12c)]+'\x20'+_0xb7b62c[_0x1012d5(0xec)]);const _0x813f8d={};_0x813f8d[_0x1012d5(0x12c)]=_0xb7b62c[_0x1012d5(0x12c)];const _0x188fd={};return _0x188fd[_0x1012d5(0x133)]=0x1f4,_0x188fd[_0x1012d5(0xf7)]=_0x813f8d,_0x188fd;}}static async[a125_0x375822(0x132)](_0x12dfc9){const _0x412092=a125_0x375822,_0x434e1e={'ygkjB':function(_0x5392dd,_0x950187){return _0x5392dd||_0x950187;},'sCkBD':'Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','LJcIr':function(_0x17254f,_0x5bf5a1){return _0x17254f(_0x5bf5a1);},'xuEsF':function(_0xe22ce,_0x2879b9){return _0xe22ce(_0x2879b9);},'dLOxB':_0x412092(0x120),'RJuyt':function(_0x51f0b3,_0x4133da){return _0x51f0b3===_0x4133da;},'kmldu':function(_0x1b662a,_0x17a28c){return _0x1b662a!==_0x17a28c;},'fpaaD':_0x412092(0x12e)},{buildName:_0x67303a,buildRunIdentifier:_0x519812,projectName:_0x2e0671}=_0x12dfc9;if(_0x434e1e[_0x412092(0xf4)](!_0x67303a,!_0x519812)||!_0x2e0671){logger[_0x412092(0x10a)]('['+TAG+_0x412092(0xf3)+_0x67303a+_0x412092(0x113)+_0x519812+_0x412092(0xfc)+_0x2e0671);const _0x4ff0fe={};_0x4ff0fe['message']=_0x434e1e['sCkBD'];const _0x4cce89={};return _0x4cce89[_0x412092(0x133)]=0x190,_0x4cce89[_0x412092(0xf7)]=_0x4ff0fe,_0x4cce89;}const _0xcc5e47=_0x412092(0x138)+_0x434e1e[_0x412092(0x105)](encodeURIComponent,_0x67303a)+_0x412092(0xff)+_0x434e1e[_0x412092(0xf8)](encodeURIComponent,_0x519812)+_0x412092(0x10e)+_0x434e1e[_0x412092(0xf8)](encodeURIComponent,_0x2e0671),_0x3cfd72=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0xcc5e47;try{logger['debug']('['+TAG+']\x20Sending\x20GET\x20to\x20'+_0x3cfd72);let _0x3baa38=0x0;const _0x5e3c18=await this['_request'](_0x434e1e[_0x412092(0xf0)],_0x3cfd72);return _0x434e1e[_0x412092(0xfa)](_0x5e3c18[_0x412092(0x133)],0xc8)&&_0x5e3c18['body']&&_0x434e1e[_0x412092(0x104)](typeof _0x5e3c18[_0x412092(0xf7)][_0x412092(0x115)],_0x434e1e[_0x412092(0x12f)])&&(_0x3baa38=_0x434e1e[_0x412092(0xf8)](Number,_0x5e3c18[_0x412092(0xf7)][_0x412092(0x115)])),_0x3baa38;}catch(_0x48d1ff){logger['error']('['+TAG+']\x20Error\x20in\x20getFailedTestsCount:\x20'+_0x48d1ff[_0x412092(0x12c)]+'\x20'+_0x48d1ff[_0x412092(0xec)]);const _0x39adba={};_0x39adba[_0x412092(0x12c)]=_0x48d1ff[_0x412092(0x12c)];const _0x358008={};return _0x358008[_0x412092(0x133)]=0x1f4,_0x358008[_0x412092(0xf7)]=_0x39adba,_0x358008;}}}module[a125_0x375822(0x10d)]=RequestUtils;
|
|
1
|
+
const a125_0x2fb356=a125_0x285e;function a125_0x285e(_0x4eb9e8,_0x319771){const _0x593ada=a125_0x593a();return a125_0x285e=function(_0x285e0d,_0x192576){_0x285e0d=_0x285e0d-0x1a6;let _0x22e0fc=_0x593ada[_0x285e0d];return _0x22e0fc;},a125_0x285e(_0x4eb9e8,_0x319771);}(function(_0x3e0425,_0x509a81){const _0x54a25c=a125_0x285e,_0x57d658=_0x3e0425();while(!![]){try{const _0x463c78=parseInt(_0x54a25c(0x1bd))/0x1+-parseInt(_0x54a25c(0x1ad))/0x2*(parseInt(_0x54a25c(0x1d4))/0x3)+parseInt(_0x54a25c(0x1c6))/0x4*(parseInt(_0x54a25c(0x1b9))/0x5)+-parseInt(_0x54a25c(0x1a9))/0x6+-parseInt(_0x54a25c(0x1bc))/0x7+parseInt(_0x54a25c(0x1ba))/0x8*(-parseInt(_0x54a25c(0x1d5))/0x9)+parseInt(_0x54a25c(0x1df))/0xa;if(_0x463c78===_0x509a81)break;else _0x57d658['push'](_0x57d658['shift']());}catch(_0x47b369){_0x57d658['push'](_0x57d658['shift']());}}}(a125_0x593a,0xc4320));const https=require('https'),{URL}=require(a125_0x2fb356(0x1af)),logger=require(a125_0x2fb356(0x1e6))['winstonLogger'],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a125_0x2fb356(0x1b8)),TAG=a125_0x2fb356(0x1c4);class RequestUtils{static async[a125_0x2fb356(0x1cc)](_0x5071ce,_0x364a76,_0x155c9d=null){const _0xb0f0b9=a125_0x2fb356,_0x29c79d={'nQNLY':function(_0x45a802,_0x22adce){return _0x45a802(_0x22adce);},'jUmFU':_0xb0f0b9(0x1b6),'NKqjy':_0xb0f0b9(0x1e1),'FxTNB':function(_0x47f942,_0x5edc90){return _0x47f942(_0x5edc90);},'XyBSd':'error','ktAxE':function(_0x17d5a2,_0x561e6b){return _0x17d5a2===_0x561e6b;},'arHvb':_0xb0f0b9(0x1bf),'AhBmc':function(_0x29403e,_0x3a202a){return _0x29403e===_0x3a202a;},'zpYgR':'PUT','Dejaj':_0xb0f0b9(0x1d9),'QfUXA':function(_0x3ec501,_0x233bff){return _0x3ec501+_0x233bff;}},_0x2daa7a=process[_0xb0f0b9(0x1c8)][_0xb0f0b9(0x1d3)]||'',_0x44ffa8={};_0x44ffa8[_0xb0f0b9(0x1ca)]='Bearer\x20'+_0x2daa7a,_0x44ffa8['Content-Type']=_0x29c79d['Dejaj'];const _0x4f30c0=_0x44ffa8,{hostname:_0x2befaa,pathname:_0x27e632,search:_0x383819}=new URL(_0x364a76),_0x39fc32={'hostname':_0x2befaa,'path':_0x29c79d['QfUXA'](_0x27e632,_0x383819),'method':_0x5071ce,'headers':_0x4f30c0};return logger[_0xb0f0b9(0x1ed)]('['+TAG+_0xb0f0b9(0x1aa)+_0x5071ce+_0xb0f0b9(0x1d1)+_0x364a76+_0xb0f0b9(0x1ae)+JSON[_0xb0f0b9(0x1f2)](_0x4f30c0)+_0xb0f0b9(0x1e2)+JSON[_0xb0f0b9(0x1f2)](_0x155c9d)+_0xb0f0b9(0x1c0)+_0x2daa7a),new Promise((_0x4bfe2d,_0x5183a6)=>{const _0x1a536e=_0xb0f0b9,_0x42adab={'iHPJq':function(_0x1daae5,_0x52d3b5){const _0xc9efbf=a125_0x285e;return _0x29c79d[_0xc9efbf(0x1d8)](_0x1daae5,_0x52d3b5);}},_0x263b23=https[_0x1a536e(0x1d2)](_0x39fc32,_0x42f302=>{const _0x12e6e0=_0x1a536e,_0x5e68c2={'kmRPC':function(_0x248d58,_0x19d6e8){const _0x16b5a6=a125_0x285e;return _0x29c79d[_0x16b5a6(0x1da)](_0x248d58,_0x19d6e8);},'oAxum':function(_0x274862,_0x5daa3b){return _0x29c79d['nQNLY'](_0x274862,_0x5daa3b);}};let _0x3513cc='';_0x42f302['on'](_0x29c79d[_0x12e6e0(0x1b3)],_0x937ceb=>{_0x3513cc+=_0x937ceb;}),_0x42f302['on'](_0x29c79d[_0x12e6e0(0x1a7)],()=>{const _0x16748b=_0x12e6e0;try{const _0x201517=_0x3513cc?JSON[_0x16748b(0x1dd)](_0x3513cc):{},_0x294bff={};_0x294bff['status']=_0x42f302['statusCode'],_0x294bff[_0x16748b(0x1de)]=_0x201517,_0x294bff[_0x16748b(0x1b4)]=_0x42f302['headers'],_0x5e68c2[_0x16748b(0x1d7)](_0x4bfe2d,_0x294bff);}catch(_0x30cd9c){logger[_0x16748b(0x1cb)]('['+TAG+_0x16748b(0x1e4)+_0x3513cc+'\x20-\x20'+_0x30cd9c[_0x16748b(0x1e9)]+'\x20'+_0x30cd9c[_0x16748b(0x1f4)]),_0x5e68c2[_0x16748b(0x1c3)](_0x5183a6,new Error(_0x16748b(0x1f3)+_0x30cd9c['message']));}});});_0x263b23['on'](_0x29c79d['XyBSd'],_0x348d16=>{const _0x68119d=_0x1a536e;logger[_0x68119d(0x1cb)]('['+TAG+_0x68119d(0x1f5)+_0x5071ce+'\x20'+_0x364a76+':\x20'+_0x348d16[_0x68119d(0x1e9)]+'\x20'+_0x348d16[_0x68119d(0x1f4)]),_0x42adab['iHPJq'](_0x5183a6,_0x348d16);}),_0x155c9d&&(_0x29c79d[_0x1a536e(0x1c5)](_0x5071ce,_0x29c79d['arHvb'])||_0x29c79d['AhBmc'](_0x5071ce,_0x29c79d[_0x1a536e(0x1d0)]))&&_0x263b23[_0x1a536e(0x1ec)](JSON[_0x1a536e(0x1f2)](_0x155c9d)),_0x263b23[_0x1a536e(0x1e1)]();});}static async[a125_0x2fb356(0x1f6)](_0x11a383){const _0x205b58=a125_0x2fb356,_0x242249={};_0x242249[_0x205b58(0x1e7)]='POST',_0x242249['DJxnX']=function(_0x5d4c23,_0x5d3bcc){return _0x5d4c23===_0x5d3bcc;};const _0x1ff7e4=_0x242249,_0x397c7c=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x4f588b=await this[_0x205b58(0x1cc)](_0x1ff7e4[_0x205b58(0x1e7)],_0x397c7c,_0x11a383);return _0x1ff7e4[_0x205b58(0x1e3)](_0x4f588b[_0x205b58(0x1ef)],0xc8)?logger['debug']('['+TAG+_0x205b58(0x1b0)+_0x397c7c):logger[_0x205b58(0x1cb)]('['+TAG+_0x205b58(0x1b5)+_0x397c7c+':\x20'+JSON['stringify'](_0x4f588b[_0x205b58(0x1de)])+',\x20status:\x20'+_0x4f588b[_0x205b58(0x1ef)]),_0x4f588b;}catch(_0x20fdf4){logger[_0x205b58(0x1cb)]('['+TAG+_0x205b58(0x1eb)+_0x20fdf4[_0x205b58(0x1e9)]+'\x20'+_0x20fdf4[_0x205b58(0x1f4)]);const _0xf00574={};_0xf00574[_0x205b58(0x1e9)]=_0x20fdf4[_0x205b58(0x1e9)];const _0x9d3b6a={};return _0x9d3b6a['status']=0x1f4,_0x9d3b6a[_0x205b58(0x1de)]=_0xf00574,_0x9d3b6a;}}static async[a125_0x2fb356(0x1ee)](_0x45aeea){const _0xaf2cd3=a125_0x2fb356,_0x3a5c50={};_0x3a5c50[_0xaf2cd3(0x1a8)]=_0xaf2cd3(0x1b1),_0x3a5c50['NkAqg']=function(_0x637ac6,_0x50ead2){return _0x637ac6===_0x50ead2;};const _0x32bb89=_0x3a5c50;try{const _0x393e12=await this[_0xaf2cd3(0x1cc)](_0x32bb89[_0xaf2cd3(0x1a8)],_0x45aeea);if(_0x32bb89['NkAqg'](_0x393e12[_0xaf2cd3(0x1ef)],0xc8))return _0x393e12[_0xaf2cd3(0x1de)];return{};}catch(_0x4fcabb){return logger[_0xaf2cd3(0x1cb)]('['+TAG+_0xaf2cd3(0x1eb)+_0x4fcabb['message']+'\x20'+_0x4fcabb[_0xaf2cd3(0x1f4)]),{};}}static async[a125_0x2fb356(0x1be)](_0x162229){const _0xae2f14=a125_0x2fb356,_0x53d56e={};_0x53d56e[_0xae2f14(0x1a6)]='PUT',_0x53d56e[_0xae2f14(0x1c7)]=function(_0x453913,_0xc93b21){return _0x453913===_0xc93b21;},_0x53d56e[_0xae2f14(0x1bb)]=function(_0x70e113,_0x3f9908){return _0x70e113===_0x3f9908;},_0x53d56e[_0xae2f14(0x1c9)]=_0xae2f14(0x1ab);const _0x336794=_0x53d56e,_0x17c7cb=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x173863=await this[_0xae2f14(0x1cc)](_0x336794[_0xae2f14(0x1a6)],_0x17c7cb,_0x162229);if(_0x336794['Nxlcl'](_0x173863[_0xae2f14(0x1ef)],0xc8)&&_0x173863['body']&&_0x336794[_0xae2f14(0x1bb)](_0x173863[_0xae2f14(0x1de)]['message'],_0x336794[_0xae2f14(0x1c9)]))return!![];return![];}catch(_0x404656){logger[_0xae2f14(0x1cb)]('['+TAG+_0xae2f14(0x1eb)+_0x404656[_0xae2f14(0x1e9)]+'\x20'+_0x404656['stack']);const _0x1ed243={};_0x1ed243[_0xae2f14(0x1e9)]=_0x404656['message'];const _0x4e04f6={};return _0x4e04f6['status']=0x1f4,_0x4e04f6[_0xae2f14(0x1de)]=_0x1ed243,_0x4e04f6;}}static async['getFailedTestsCount'](_0x461462){const _0x4948c9=a125_0x2fb356,_0x10410b={'LAUwV':function(_0x4beafc,_0x15cc1b){return _0x4beafc||_0x15cc1b;},'HkawT':_0x4948c9(0x1e0),'vrpqB':function(_0x2fe26b,_0x5c20b5){return _0x2fe26b(_0x5c20b5);},'UenLy':function(_0x12d868,_0x2aa4cb){return _0x12d868(_0x2aa4cb);},'qqCfp':function(_0x318059,_0x1134fb){return _0x318059(_0x1134fb);},'qfOeJ':_0x4948c9(0x1b1),'ZXvJX':function(_0x363dbf,_0x573514){return _0x363dbf===_0x573514;},'pQjoZ':function(_0x471f94,_0x2149dc){return _0x471f94!==_0x2149dc;},'BnaEN':_0x4948c9(0x1dc),'gnHFn':function(_0x1f52b6,_0x179eb5){return _0x1f52b6(_0x179eb5);}},{buildName:_0x1ec764,buildRunIdentifier:_0x5cde12,projectName:_0x1c6010}=_0x461462;if(_0x10410b[_0x4948c9(0x1db)](!_0x1ec764,!_0x5cde12)||!_0x1c6010){logger['error']('['+TAG+_0x4948c9(0x1b2)+_0x1ec764+_0x4948c9(0x1e8)+_0x5cde12+_0x4948c9(0x1cd)+_0x1c6010);const _0x8aa2e7={};_0x8aa2e7[_0x4948c9(0x1e9)]=_0x10410b[_0x4948c9(0x1b7)];const _0x130c91={};return _0x130c91['status']=0x190,_0x130c91[_0x4948c9(0x1de)]=_0x8aa2e7,_0x130c91;}const _0x230909=_0x4948c9(0x1ac)+_0x10410b[_0x4948c9(0x1f0)](encodeURIComponent,_0x1ec764)+'&buildRunIdentifier='+_0x10410b[_0x4948c9(0x1e5)](encodeURIComponent,_0x5cde12)+_0x4948c9(0x1f1)+_0x10410b['qqCfp'](encodeURIComponent,_0x1c6010),_0x5044fa=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x230909;try{logger[_0x4948c9(0x1ed)]('['+TAG+_0x4948c9(0x1c2)+_0x5044fa);let _0x5ee287=0x0;const _0xfb96e8=await this[_0x4948c9(0x1cc)](_0x10410b['qfOeJ'],_0x5044fa);return _0x10410b[_0x4948c9(0x1c1)](_0xfb96e8[_0x4948c9(0x1ef)],0xc8)&&_0xfb96e8[_0x4948c9(0x1de)]&&_0x10410b[_0x4948c9(0x1cf)](typeof _0xfb96e8[_0x4948c9(0x1de)][_0x4948c9(0x1d6)],_0x10410b['BnaEN'])&&(_0x5ee287=_0x10410b[_0x4948c9(0x1ce)](Number,_0xfb96e8[_0x4948c9(0x1de)][_0x4948c9(0x1d6)])),_0x5ee287;}catch(_0x18ee32){logger[_0x4948c9(0x1cb)]('['+TAG+']\x20Error\x20in\x20getFailedTestsCount:\x20'+_0x18ee32['message']+'\x20'+_0x18ee32[_0x4948c9(0x1f4)]);const _0x55a796={};_0x55a796[_0x4948c9(0x1e9)]=_0x18ee32[_0x4948c9(0x1e9)];const _0xefc560={};return _0xefc560['status']=0x1f4,_0xefc560[_0x4948c9(0x1de)]=_0x55a796,_0xefc560;}}}module[a125_0x2fb356(0x1ea)]=RequestUtils;function a125_0x593a(){const _0x1d5861=[']\x20Sending\x20','Test\x20added','?buildName=','2eqZteg','\x20with\x20headers:\x20','url',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','GET',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','jUmFU','headers',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','data','HkawT','./constants','2098220gzgwfN','528wbeosi','efXLB','8462552nKANKo','10549wqiaCN','putFailedTests','POST','\x20and\x20token:\x20','ZXvJX',']\x20Sending\x20GET\x20to\x20','oAxum','RequestUtils','ktAxE','4nfFwyx','Nxlcl','env','TJfXh','Authorization','error','_request',',\x20projectName=','gnHFn','pQjoZ','zpYgR','\x20request\x20to\x20','request','BROWSERSTACK_TESTHUB_JWT','4802439NlmWwa','141921vFQBPP','failedTestsCount','kmRPC','FxTNB','application/json','nQNLY','LAUwV','undefined','parse','body','44445920RXRvqJ','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','end','\x20and\x20data:\x20','DJxnX',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','UenLy','../logger','RfNnU',',\x20buildRunIdentifier=','message','exports',']\x20Error\x20in\x20putFailedTests:\x20','write','debug','getSplitFiles','status','vrpqB','&projectName=','stringify','Failed\x20to\x20parse\x20JSON\x20response:\x20','stack',']\x20Request\x20failed\x20for\x20','postSplitFiles','tkypw','NKqjy','yhpRf','1323996IPqTlL'];a125_0x593a=function(){return _0x1d5861;};return a125_0x593a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a126_0x27c2(){const _0x1c124c=['DaSXo','rDfgd','downloadedTestFilesCount','3808992xgTHij','ZlBNZ','orderingInstrumentationData','isTestOrchestrationEnabled','MkLey','MQUbf','hpqGM','637224eAdhha','exports','rJoQD','13YQUHcc','jest-util','MBHqA','testPathIgnorePatterns','getSplitTestsAPICallCount','jest','_shouldLogTestOrderingChecks','stringify','rjofT','glob','buildName','micromatch','_initializeTestOrdering','wJeIw','splitTests','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','testOrderingEnabled','gSwed','\x20files','getOrderingInstrumentationData','yWWfb','getTestOrderingName','YTMli','addToOrderingInstrumentationData','env','npx','gPVuJ','cVvqL','config','sdvGp','debug','Found\x20test\x20files:\x20','**/__tests__/**/*.[jt]s?(x)','3|2|1|0|5|4','BROWSERSTACK_BUILD_RUN_IDENTIFIER','testOrderingApplied','166623fIAsDi','applied','835555juYvro','../helper','split','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','winstonLogger','BROWSERSTACK_TOTAL_NODE_COUNT','VmqLE','../logger','--config','length','ignore','orchestrationUtils','getOrderedTestFiles','Test\x20orchestration\x20without\x20test\x20ordering','Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','YKlad','451FSDbyh','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','stack','filter','splitTestsAPICallCount','matchBase','jpBov','logTestOrderingChecks','nodeIndex','153190OBjZXe','JDgWI','testOrderingServerHandler','stdout','swIrv','testMatch','**/?(*.)+(spec|test).[jt]s?(x)','AMINq','utf-8','jest-runner','SNdHJ','FDpgj','isArray','4kjruWy','error','path','info','4KDQMML','4968qeYIJo','MBTLs','Error\x20finding\x20test\x20files:\x20','6543pkgIoR','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','15426204BIJivw','child_process','./orchestrationUtils','testObservability','DAztE','7FmucmJ','uQWrH','rootDir','hSugw','KrJKL','YrxQc','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','projectName','map','BROWSERSTACK_NODE_INDEX'];a126_0x27c2=function(){return _0x1c124c;};return a126_0x27c2();}const a126_0x104078=a126_0x339e;(function(_0xb23fa2,_0x25d0b9){const _0x25cceb=a126_0x339e,_0x2e9bc5=_0xb23fa2();while(!![]){try{const _0x2ae5ce=-parseInt(_0x25cceb(0x226))/0x1*(parseInt(_0x25cceb(0x1dc))/0x2)+parseInt(_0x25cceb(0x1ff))/0x3*(-parseInt(_0x25cceb(0x1e0))/0x4)+parseInt(_0x25cceb(0x228))/0x5+-parseInt(_0x25cceb(0x1f8))/0x6*(parseInt(_0x25cceb(0x1eb))/0x7)+parseInt(_0x25cceb(0x1e1))/0x8*(-parseInt(_0x25cceb(0x1e4))/0x9)+-parseInt(_0x25cceb(0x241))/0xa*(-parseInt(_0x25cceb(0x238))/0xb)+-parseInt(_0x25cceb(0x1e6))/0xc*(-parseInt(_0x25cceb(0x202))/0xd);if(_0x2ae5ce===_0x25d0b9)break;else _0x2e9bc5['push'](_0x2e9bc5['shift']());}catch(_0x3d6a56){_0x2e9bc5['push'](_0x2e9bc5['shift']());}}}(a126_0x27c2,0x6d8f2));const logger=require(a126_0x104078(0x22f))[a126_0x104078(0x22c)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a126_0x104078(0x229)),TestOrderingServerHandler=require('./testOrderingServerHandler'),OrchestrationUtils=require(a126_0x104078(0x1e8)),path=require(a126_0x104078(0x1de)),{spawnSync}=require(a126_0x104078(0x1e7)),micromatch=require(a126_0x104078(0x20d)),fs=require('fs');function a126_0x339e(_0x108a94,_0x3a48c0){const _0x27c227=a126_0x27c2();return a126_0x339e=function(_0x339e76,_0x126886){_0x339e76=_0x339e76-0x1da;let _0xbdaefe=_0x27c227[_0x339e76];return _0xbdaefe;},a126_0x339e(_0x108a94,_0x3a48c0);}class TestOrchestrationHandler{constructor(_0x2422dd){const _0x474d7b=a126_0x104078,_0x150436={};_0x150436['uQWrH']=_0x474d7b(0x223);const _0x543350=_0x150436,_0x17ea9c=_0x543350[_0x474d7b(0x1ec)][_0x474d7b(0x22a)]('|');let _0x2e115b=0x0;while(!![]){switch(_0x17ea9c[_0x2e115b++]){case'0':this[_0x474d7b(0x243)]=null;continue;case'1':this[_0x474d7b(0x225)]=![];continue;case'2':this[_0x474d7b(0x1fa)]={};continue;case'3':this[_0x474d7b(0x21e)]=_0x2422dd;continue;case'4':this[_0x474d7b(0x20e)]();continue;case'5':this['orchestrationUtils']=new OrchestrationUtils(_0x2422dd);continue;}break;}}[a126_0x104078(0x1fb)](){const _0x2f15d0=a126_0x104078,_0x4f67f9={'hpqGM':function(_0x293300,_0x1d38c6){return _0x293300(_0x1d38c6);},'YTMli':function(_0x32064e,_0x157eeb){return _0x32064e(_0x157eeb);},'ZlBNZ':function(_0x4e889c,_0x49f562){return _0x4e889c(_0x49f562);},'yWWfb':function(_0x382d4c,_0x573bbc){return _0x382d4c&&_0x573bbc;}},_0x10a510=_0x4f67f9[_0x2f15d0(0x1fe)](isNotUndefined,this[_0x2f15d0(0x21e)])&&(_0x4f67f9[_0x2f15d0(0x1fe)](isUndefined,this['config']['testObservability'])||_0x4f67f9[_0x2f15d0(0x1fe)](isTrueString,this[_0x2f15d0(0x21e)]['testObservability'])),_0x379ce7=this[_0x2f15d0(0x233)]['testOrderingEnabled'](),_0x59fbf6=_0x4f67f9[_0x2f15d0(0x218)](isNotUndefined,this[_0x2f15d0(0x21e)])&&_0x4f67f9[_0x2f15d0(0x1f9)](isNotUndefined,this[_0x2f15d0(0x21e)][_0x2f15d0(0x1f2)]),_0x40083c=_0x4f67f9['YTMli'](isNotUndefined,this['config'])&&_0x4f67f9[_0x2f15d0(0x1fe)](isNotUndefined,this[_0x2f15d0(0x21e)][_0x2f15d0(0x20c)]);return _0x4f67f9[_0x2f15d0(0x216)](_0x10a510,_0x379ce7)&&_0x59fbf6&&_0x40083c;}['_initializeTestOrdering'](){const _0x44774e=a126_0x104078,_0x276ffc={};_0x276ffc[_0x44774e(0x1fc)]=_0x44774e(0x1f1),_0x276ffc[_0x44774e(0x204)]=_0x44774e(0x235);const _0xc441d1=_0x276ffc;this[_0x44774e(0x1fb)]()?(this[_0x44774e(0x243)]=new TestOrderingServerHandler(this[_0x44774e(0x21e)]),logger[_0x44774e(0x1df)](_0xc441d1[_0x44774e(0x1fc)])):(logger[_0x44774e(0x220)](_0xc441d1[_0x44774e(0x204)]),this['logTestOrderingChecks']());}[a126_0x104078(0x23f)](){const _0x3588fe=a126_0x104078,_0x26713c={'FDkqD':function(_0x373466,_0x393c71){return _0x373466(_0x393c71);},'TJKfO':function(_0x30a8ea,_0x2e2cc4){return _0x30a8ea(_0x2e2cc4);},'MBTLs':function(_0x5d8091,_0x27d1c8){return _0x5d8091(_0x27d1c8);},'yTNsb':_0x3588fe(0x239),'ByrTy':function(_0x190633,_0x1ad2fd){return _0x190633(_0x1ad2fd);},'FDpgj':function(_0x359691,_0x1ea381){return _0x359691(_0x1ea381);},'kPcCz':function(_0x50a52f,_0x3177bc){return _0x50a52f(_0x3177bc);},'DaSXo':_0x3588fe(0x236)};if(!this[_0x3588fe(0x208)]())return;(!_0x26713c['FDkqD'](isNotUndefined,this[_0x3588fe(0x21e)])||!_0x26713c['TJKfO'](isNotUndefined,this[_0x3588fe(0x21e)][_0x3588fe(0x20c)])||!_0x26713c[_0x3588fe(0x1e2)](isNotUndefined,this[_0x3588fe(0x21e)][_0x3588fe(0x1f2)]))&&logger['info'](_0x26713c['yTNsb']),_0x26713c['ByrTy'](isNotUndefined,this[_0x3588fe(0x21e)])&&_0x26713c[_0x3588fe(0x1da)](isNotUndefined,this[_0x3588fe(0x21e)]['testObservability'])&&!_0x26713c['kPcCz'](isTrueString,this[_0x3588fe(0x21e)][_0x3588fe(0x1e9)])&&logger[_0x3588fe(0x1df)](_0x26713c[_0x3588fe(0x1f5)]);}[a126_0x104078(0x208)](){const _0x2d3b54=a126_0x104078;return!this[_0x2d3b54(0x1fb)]()&&this['orchestrationUtils'][_0x2d3b54(0x212)]();}['isTestOrderingApplied'](){const _0x172aaa=a126_0x104078;return this[_0x172aaa(0x225)];}['setTestOrderingApplied'](_0x1aa18b){const _0x3b5f6e=a126_0x104078,_0x6e48e6={};_0x6e48e6[_0x3b5f6e(0x1f0)]=_0x3b5f6e(0x227);const _0x4f0801=_0x6e48e6;this[_0x3b5f6e(0x225)]=_0x1aa18b,this[_0x3b5f6e(0x219)](_0x4f0801[_0x3b5f6e(0x1f0)],_0x1aa18b);}[a126_0x104078(0x219)](_0x29e147,_0x479e4e){const _0x3d2060=a126_0x104078;this[_0x3d2060(0x1fa)][_0x29e147]=_0x479e4e;}[a126_0x104078(0x215)](){const _0x33ffcc=a126_0x104078;return this[_0x33ffcc(0x1fa)];}['updateBuildIdentifier'](){const _0x16224e=a126_0x104078,_0x575e01={'DAztE':function(_0x4365c3,_0x364ffe){return _0x4365c3(_0x364ffe);},'lIwiO':function(_0x1839c7,_0x487401){return _0x1839c7>_0x487401;}},_0x3ce42e=_0x575e01[_0x16224e(0x1ea)](parseInt,process[_0x16224e(0x21a)][_0x16224e(0x22d)]||'1'),_0x1ef8fd=process[_0x16224e(0x21a)][_0x16224e(0x224)];_0x1ef8fd&&_0x575e01['lIwiO'](_0x3ce42e,0x1)&&(logger[_0x16224e(0x220)](_0x16224e(0x22b)+_0x1ef8fd),this['config']['buildIdentifier']=_0x1ef8fd);}async['reorderTestFiles'](_0x10f1c7){const _0x146b64=a126_0x104078,_0x4a3ffd={'JDgWI':function(_0x2b3dcf,_0x180ac4){return _0x2b3dcf===_0x180ac4;},'XYJCr':_0x146b64(0x211),'hSugw':function(_0x102ad6,_0x1f4778){return _0x102ad6===_0x1f4778;},'YKlad':function(_0x22bd23,_0x5bdc27){return _0x22bd23(_0x5bdc27);},'AMINq':'uploadedTestFilesCount','KrJKL':_0x146b64(0x240),'MQUbf':'totalNodes','rDfgd':_0x146b64(0x1f7),'XpDqj':_0x146b64(0x23c)};try{if(!_0x10f1c7||!Array['isArray'](_0x10f1c7)||_0x4a3ffd[_0x146b64(0x242)](_0x10f1c7['length'],0x0))return null;if(_0x4a3ffd['JDgWI'](this[_0x146b64(0x1fb)](),![]))return logger[_0x146b64(0x220)](_0x4a3ffd['XYJCr']),null;let _0x16c78f=null;const _0x27a8a8=this[_0x146b64(0x233)][_0x146b64(0x217)]();if(this[_0x146b64(0x243)]){const _0x49eb28=await this[_0x146b64(0x243)][_0x146b64(0x210)](_0x10f1c7,_0x27a8a8);if(!_0x49eb28)return null;_0x16c78f=await this['testOrderingServerHandler'][_0x146b64(0x234)](_0x49eb28);}if(!_0x16c78f||!Array[_0x146b64(0x1db)](_0x16c78f)||_0x4a3ffd[_0x146b64(0x1ee)](_0x16c78f['length'],0x0))return null;const _0x72691b=_0x4a3ffd[_0x146b64(0x237)](parseInt,process[_0x146b64(0x21a)][_0x146b64(0x1f4)]||'0'),_0x3bfcb0=_0x4a3ffd[_0x146b64(0x237)](parseInt,process[_0x146b64(0x21a)][_0x146b64(0x22d)]||'1');return this['addToOrderingInstrumentationData'](_0x4a3ffd[_0x146b64(0x248)],_0x10f1c7[_0x146b64(0x231)]),this[_0x146b64(0x219)](_0x4a3ffd[_0x146b64(0x1ef)],_0x72691b),this[_0x146b64(0x219)](_0x4a3ffd[_0x146b64(0x1fd)],_0x3bfcb0),this['addToOrderingInstrumentationData'](_0x4a3ffd[_0x146b64(0x1f6)],_0x16c78f[_0x146b64(0x231)]),this['addToOrderingInstrumentationData'](_0x4a3ffd['XpDqj'],this['testOrderingServerHandler']?this[_0x146b64(0x243)][_0x146b64(0x206)]():0x0),_0x16c78f[_0x146b64(0x1f3)](_0x48a3dd=>sanitizedFilePath(_0x48a3dd));}catch(_0x3f9c00){return logger[_0x146b64(0x220)](_0x146b64(0x1e5)+(_0x3f9c00[_0x146b64(0x23a)]||_0x3f9c00['toString']())),null;}}async['findTestFiles'](_0x3774d3,_0xb163d3,_0x4db01d){const _0x1967ce=a126_0x104078,_0x2941a0={'nqdhi':function(_0xb1935e,_0x3107b3){return _0xb1935e(_0x3107b3);},'gSwed':'jest-config','SNdHJ':function(_0x158be1,_0x350d2b){return _0x158be1(_0x350d2b);},'sdvGp':_0x1967ce(0x203),'jpBov':function(_0x92b7ac,_0x6116c5){return _0x92b7ac(_0x6116c5);},'rjofT':_0x1967ce(0x24a),'LJDAW':_0x1967ce(0x20b),'SULjP':_0x1967ce(0x222),'rJoQD':_0x1967ce(0x247),'wJeIw':function(_0xaf27c8,_0x389ccd,_0x35c3b4,_0x42f57c){return _0xaf27c8(_0x389ccd,_0x35c3b4,_0x42f57c);},'cVvqL':_0x1967ce(0x21b),'aJCIJ':_0x1967ce(0x207),'gPVuJ':_0x1967ce(0x230),'VmqLE':'--listTests','swIrv':_0x1967ce(0x249),'iIgRZ':function(_0x16d16b,_0x71412d,_0x4e3ab7,_0x3e3bb8){return _0x16d16b(_0x71412d,_0x4e3ab7,_0x3e3bb8);}};try{const {getTestPathPatterns:_0x4ee63e}=_0x2941a0['nqdhi'](require,_0x2941a0[_0x1967ce(0x213)]),{globsToMatcher:_0x43ad4c}=_0x2941a0[_0x1967ce(0x24b)](require,_0x2941a0[_0x1967ce(0x21f)]),{findRelatedTests:_0x17830c}=_0x2941a0['jpBov'](require,_0x2941a0[_0x1967ce(0x20a)]),_0x45cf13=_0x2941a0[_0x1967ce(0x23e)](require,_0x2941a0['LJDAW']),_0x2564d3=_0x3774d3[_0x1967ce(0x246)]||[_0x2941a0['SULjP'],_0x2941a0[_0x1967ce(0x201)]],_0x20bffe=_0x3774d3[_0x1967ce(0x205)]||[],_0xcd33cc=_0x2941a0[_0x1967ce(0x20f)](spawnSync,_0x2941a0[_0x1967ce(0x21d)],[_0x2941a0['aJCIJ'],_0x2941a0[_0x1967ce(0x21c)],_0x4db01d,..._0xb163d3,_0x2941a0[_0x1967ce(0x22e)]],{'encoding':_0x2941a0[_0x1967ce(0x245)]});let _0x179f38=[];!_0xcd33cc[_0x1967ce(0x1dd)]&&(_0x179f38=_0xcd33cc[_0x1967ce(0x244)]['split']('\x0a')[_0x1967ce(0x23b)](Boolean));logger[_0x1967ce(0x220)](_0x1967ce(0x221)+JSON[_0x1967ce(0x209)](_0x179f38)+_0x1967ce(0x214));const _0x4a82e4={};_0x4a82e4[_0x1967ce(0x23d)]=!![],_0x4a82e4[_0x1967ce(0x232)]=_0x20bffe;const _0x5d236e=_0x2941a0['iIgRZ'](micromatch,_0x179f38,_0x2564d3,_0x4a82e4)['map'](_0x1bd28a=>path['relative'](_0x3774d3[_0x1967ce(0x1ed)],_0x1bd28a));return logger['debug']('Filterted\x20to\x20test\x20files:\x20'+JSON[_0x1967ce(0x209)](_0x5d236e)+'\x20files'),_0x5d236e;}catch(_0x5cab0f){return logger[_0x1967ce(0x220)](_0x1967ce(0x1e3)+_0x5cab0f),[];}}}module[a126_0x104078(0x200)]=TestOrchestrationHandler;
|
|
1
|
+
const a126_0x4dbbb7=a126_0x42ad;function a126_0x42ad(_0x4b375b,_0x1c5f3f){const _0x56b0dc=a126_0x56b0();return a126_0x42ad=function(_0x42ad6e,_0x5b4802){_0x42ad6e=_0x42ad6e-0x163;let _0x317905=_0x56b0dc[_0x42ad6e];return _0x317905;},a126_0x42ad(_0x4b375b,_0x1c5f3f);}function a126_0x56b0(){const _0x30884f=['setTestOrderingApplied','utf-8','flcPL','2670260Ddbkjj','24892870vAVyCG','winstonLogger','_shouldLogTestOrderingChecks','ttoBL','exports','env','error','Error\x20finding\x20test\x20files:\x20','dgjSI','oycmB','UYIgy','logTestOrderingChecks','getTestOrderingName','lXpec','testOrderingApplied','yUwnO','rBSgA','Found\x20test\x20files:\x20','BROWSERSTACK_NODE_INDEX','orderingInstrumentationData','totalNodes','config','matchBase','bMkEQ','ignore','testOrderingEnabled','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','hWuLQ','SCnWd','toString','length','Opzsx','addToOrderingInstrumentationData','CFVfn','applied','stringify','updateBuildIdentifier','--listTests','buildName','RVcBv','jest-runner','info','rQHqE','2|0|5|4|1|3','relative','2303548WPmIQh','projectName','mazXe','testObservability','lcQBc','buildIdentifier','\x20files','isTestOrderingApplied','jest','jjKyp','isTestOrchestrationEnabled','splitTests','jest-util','WWXTO','child_process','Filterted\x20to\x20test\x20files:\x20','testMatch','**/?(*.)+(spec|test).[jt]s?(x)','RLVxx','filter','split','./orchestrationUtils','--config','ztydg','9tQqxqN','micromatch','MDmCD','./testOrderingServerHandler','testOrderingServerHandler','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','stdout','8uYSSil','debug','skkPl','dsSya','4083618HBXgmu','QATnM','639841nlLGgz','getOrderedTestFiles','orchestrationUtils','HORvp','30dGSrOj','findTestFiles','5276868LPAfsD','map','rootDir','VEefm','isArray','giznR','eZtRS','DCULQ','path','evWuc','Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','glob','fsWfj','165076OdsQiw','**/__tests__/**/*.[jt]s?(x)'];a126_0x56b0=function(){return _0x30884f;};return a126_0x56b0();}(function(_0x41d072,_0x1cf61b){const _0x10d566=a126_0x42ad,_0xa50b37=_0x41d072();while(!![]){try{const _0x55ec19=parseInt(_0x10d566(0x1cc))/0x1+-parseInt(_0x10d566(0x174))/0x2*(-parseInt(_0x10d566(0x164))/0x3)+parseInt(_0x10d566(0x1a7))/0x4+-parseInt(_0x10d566(0x179))/0x5+parseInt(_0x10d566(0x166))/0x6+-parseInt(_0x10d566(0x1ca))/0x7*(-parseInt(_0x10d566(0x1c6))/0x8)+-parseInt(_0x10d566(0x1bf))/0x9*(parseInt(_0x10d566(0x17a))/0xa);if(_0x55ec19===_0x1cf61b)break;else _0xa50b37['push'](_0xa50b37['shift']());}catch(_0x5388e6){_0xa50b37['push'](_0xa50b37['shift']());}}}(a126_0x56b0,0x7556d));const logger=require('../logger')[a126_0x4dbbb7(0x17b)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require('../helper'),TestOrderingServerHandler=require(a126_0x4dbbb7(0x1c2)),OrchestrationUtils=require(a126_0x4dbbb7(0x1bc)),path=require(a126_0x4dbbb7(0x16e)),{spawnSync}=require(a126_0x4dbbb7(0x1b5)),micromatch=require(a126_0x4dbbb7(0x1c0)),fs=require('fs');class TestOrchestrationHandler{constructor(_0x2cafdd){const _0xd0dae4=a126_0x4dbbb7,_0x42299f={};_0x42299f[_0xd0dae4(0x173)]=_0xd0dae4(0x1a5);const _0x59a56f=_0x42299f,_0x92e609=_0x59a56f[_0xd0dae4(0x173)][_0xd0dae4(0x1bb)]('|');let _0x383d9e=0x0;while(!![]){switch(_0x92e609[_0x383d9e++]){case'0':this[_0xd0dae4(0x18d)]={};continue;case'1':this[_0xd0dae4(0x1ce)]=new OrchestrationUtils(_0x2cafdd);continue;case'2':this[_0xd0dae4(0x18f)]=_0x2cafdd;continue;case'3':this['_initializeTestOrdering']();continue;case'4':this[_0xd0dae4(0x1c3)]=null;continue;case'5':this[_0xd0dae4(0x188)]=![];continue;}break;}}[a126_0x4dbbb7(0x1b1)](){const _0x1780fd=a126_0x4dbbb7,_0x4a6533={'hWuLQ':function(_0x52ad77,_0x14156d){return _0x52ad77(_0x14156d);},'DCULQ':function(_0x30cc26,_0x416ff5){return _0x30cc26(_0x416ff5);},'jjKyp':function(_0x34d207,_0xc9a874){return _0x34d207(_0xc9a874);},'ZCZcT':function(_0x36423b,_0x2cba2b){return _0x36423b(_0x2cba2b);},'dgjSI':function(_0x8f4683,_0x1ba90a){return _0x8f4683(_0x1ba90a);},'VEefm':function(_0x55fb28,_0x22f5e2){return _0x55fb28&&_0x22f5e2;}},_0x5faceb=_0x4a6533[_0x1780fd(0x195)](isNotUndefined,this[_0x1780fd(0x18f)])&&(_0x4a6533[_0x1780fd(0x16d)](isUndefined,this[_0x1780fd(0x18f)]['testObservability'])||_0x4a6533[_0x1780fd(0x1b0)](isTrueString,this['config'][_0x1780fd(0x1aa)])),_0x567ab1=this[_0x1780fd(0x1ce)]['testOrderingEnabled'](),_0x43284f=_0x4a6533['jjKyp'](isNotUndefined,this['config'])&&_0x4a6533[_0x1780fd(0x16d)](isNotUndefined,this[_0x1780fd(0x18f)]['projectName']),_0x2b8456=_0x4a6533['ZCZcT'](isNotUndefined,this[_0x1780fd(0x18f)])&&_0x4a6533[_0x1780fd(0x182)](isNotUndefined,this['config'][_0x1780fd(0x1a0)]);return _0x4a6533[_0x1780fd(0x169)](_0x5faceb,_0x567ab1)&&_0x43284f&&_0x2b8456;}['_initializeTestOrdering'](){const _0x307c95=a126_0x4dbbb7,_0x17d61e={};_0x17d61e[_0x307c95(0x163)]='Test\x20orchestration\x20with\x20test\x20ordering\x20enabled',_0x17d61e['jciXs']='Test\x20orchestration\x20without\x20test\x20ordering';const _0x922e18=_0x17d61e;this[_0x307c95(0x1b1)]()?(this[_0x307c95(0x1c3)]=new TestOrderingServerHandler(this[_0x307c95(0x18f)]),logger['info'](_0x922e18[_0x307c95(0x163)])):(logger[_0x307c95(0x1c7)](_0x922e18['jciXs']),this[_0x307c95(0x185)]());}[a126_0x4dbbb7(0x185)](){const _0x46732b=a126_0x4dbbb7,_0x1aafc8={'bMkEQ':function(_0x26c47f,_0x4190c7){return _0x26c47f(_0x4190c7);},'mazXe':_0x46732b(0x171),'uMoyr':_0x46732b(0x170)};if(!this[_0x46732b(0x17c)]())return;(!_0x1aafc8['bMkEQ'](isNotUndefined,this[_0x46732b(0x18f)])||!_0x1aafc8[_0x46732b(0x191)](isNotUndefined,this[_0x46732b(0x18f)]['buildName'])||!_0x1aafc8[_0x46732b(0x191)](isNotUndefined,this[_0x46732b(0x18f)][_0x46732b(0x1a8)]))&&logger['info'](_0x1aafc8[_0x46732b(0x1a9)]),_0x1aafc8[_0x46732b(0x191)](isNotUndefined,this[_0x46732b(0x18f)])&&_0x1aafc8[_0x46732b(0x191)](isNotUndefined,this[_0x46732b(0x18f)][_0x46732b(0x1aa)])&&!_0x1aafc8[_0x46732b(0x191)](isTrueString,this[_0x46732b(0x18f)]['testObservability'])&&logger[_0x46732b(0x1a3)](_0x1aafc8['uMoyr']);}['_shouldLogTestOrderingChecks'](){const _0x150520=a126_0x4dbbb7;return!this[_0x150520(0x1b1)]()&&this[_0x150520(0x1ce)][_0x150520(0x193)]();}[a126_0x4dbbb7(0x1ae)](){const _0x362d02=a126_0x4dbbb7;return this[_0x362d02(0x188)];}[a126_0x4dbbb7(0x176)](_0x26841f){const _0x3030db=a126_0x4dbbb7,_0x35fb10={};_0x35fb10['cwvUE']=_0x3030db(0x19c);const _0x4eec67=_0x35fb10;this['testOrderingApplied']=_0x26841f,this[_0x3030db(0x19a)](_0x4eec67['cwvUE'],_0x26841f);}[a126_0x4dbbb7(0x19a)](_0xd3b9d7,_0x2121b1){const _0x35fbee=a126_0x4dbbb7;this[_0x35fbee(0x18d)][_0xd3b9d7]=_0x2121b1;}['getOrderingInstrumentationData'](){const _0x538d0a=a126_0x4dbbb7;return this[_0x538d0a(0x18d)];}[a126_0x4dbbb7(0x19e)](){const _0x42bac1=a126_0x4dbbb7,_0x3aaf7c={'CFVfn':function(_0x1aff1c,_0x7fe6b7){return _0x1aff1c(_0x7fe6b7);},'WwuBt':function(_0x3d8ede,_0x31f481){return _0x3d8ede>_0x31f481;}},_0x5a9da9=_0x3aaf7c[_0x42bac1(0x19b)](parseInt,process['env']['BROWSERSTACK_TOTAL_NODE_COUNT']||'1'),_0x527567=process[_0x42bac1(0x17f)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];_0x527567&&_0x3aaf7c['WwuBt'](_0x5a9da9,0x1)&&(logger['debug']('[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20'+_0x527567),this['config'][_0x42bac1(0x1ac)]=_0x527567);}async['reorderTestFiles'](_0x3d1b28){const _0x46e6e1=a126_0x4dbbb7,_0x9ca112={'RVcBv':function(_0x4c93e3,_0x2e4301){return _0x4c93e3===_0x2e4301;},'nBuwk':function(_0xa3bc18,_0x208c9d){return _0xa3bc18===_0x208c9d;},'aFdeN':_0x46e6e1(0x1c4),'UYIgy':function(_0x4eccde,_0x2a0d52){return _0x4eccde===_0x2a0d52;},'eZtRS':function(_0x24dabf,_0x546c55){return _0x24dabf(_0x546c55);},'Rnpkm':'uploadedTestFilesCount','QATnM':'nodeIndex','evWuc':_0x46e6e1(0x18e),'giznR':'downloadedTestFilesCount','ztydg':'splitTestsAPICallCount'};try{if(!_0x3d1b28||!Array[_0x46e6e1(0x16a)](_0x3d1b28)||_0x9ca112[_0x46e6e1(0x1a1)](_0x3d1b28[_0x46e6e1(0x198)],0x0))return null;if(_0x9ca112['nBuwk'](this[_0x46e6e1(0x1b1)](),![]))return logger[_0x46e6e1(0x1c7)](_0x9ca112['aFdeN']),null;let _0x1ebdad=null;const _0x1912d1=this['orchestrationUtils'][_0x46e6e1(0x186)]();if(this[_0x46e6e1(0x1c3)]){const _0x5df3f4=await this[_0x46e6e1(0x1c3)][_0x46e6e1(0x1b2)](_0x3d1b28,_0x1912d1);if(!_0x5df3f4)return null;_0x1ebdad=await this[_0x46e6e1(0x1c3)][_0x46e6e1(0x1cd)](_0x5df3f4);}if(!_0x1ebdad||!Array['isArray'](_0x1ebdad)||_0x9ca112[_0x46e6e1(0x184)](_0x1ebdad[_0x46e6e1(0x198)],0x0))return null;const _0x1ee990=_0x9ca112[_0x46e6e1(0x16c)](parseInt,process[_0x46e6e1(0x17f)][_0x46e6e1(0x18c)]||'0'),_0x593f53=_0x9ca112['eZtRS'](parseInt,process[_0x46e6e1(0x17f)]['BROWSERSTACK_TOTAL_NODE_COUNT']||'1');return this['addToOrderingInstrumentationData'](_0x9ca112['Rnpkm'],_0x3d1b28['length']),this[_0x46e6e1(0x19a)](_0x9ca112[_0x46e6e1(0x1cb)],_0x1ee990),this[_0x46e6e1(0x19a)](_0x9ca112[_0x46e6e1(0x16f)],_0x593f53),this[_0x46e6e1(0x19a)](_0x9ca112[_0x46e6e1(0x16b)],_0x1ebdad[_0x46e6e1(0x198)]),this[_0x46e6e1(0x19a)](_0x9ca112[_0x46e6e1(0x1be)],this['testOrderingServerHandler']?this[_0x46e6e1(0x1c3)]['getSplitTestsAPICallCount']():0x0),_0x1ebdad[_0x46e6e1(0x167)](_0x24093e=>sanitizedFilePath(_0x24093e));}catch(_0x44801c){return logger[_0x46e6e1(0x1c7)](_0x46e6e1(0x194)+(_0x44801c['stack']||_0x44801c[_0x46e6e1(0x197)]())),null;}}async[a126_0x4dbbb7(0x165)](_0x1ea7f1,_0x5c7202,_0xaf8f95){const _0x37a2d9=a126_0x4dbbb7,_0x4cec91={'yUwnO':function(_0x542f0e,_0xe0b4f4){return _0x542f0e(_0xe0b4f4);},'Opzsx':'jest-config','tKFYe':function(_0x3dd084,_0x1bf856){return _0x3dd084(_0x1bf856);},'ttoBL':_0x37a2d9(0x1b3),'rQHqE':function(_0x40ec53,_0x205ca3){return _0x40ec53(_0x205ca3);},'MDmCD':_0x37a2d9(0x1a2),'SCnWd':_0x37a2d9(0x172),'skkPl':_0x37a2d9(0x175),'RLVxx':_0x37a2d9(0x1b8),'lXpec':function(_0x26cd57,_0x536415,_0x113dd5,_0x344904){return _0x26cd57(_0x536415,_0x113dd5,_0x344904);},'oycmB':'npx','flcPL':_0x37a2d9(0x1af),'dsSya':_0x37a2d9(0x1bd),'rBSgA':_0x37a2d9(0x19f),'WWXTO':_0x37a2d9(0x177),'lcQBc':function(_0x45cbc4,_0x2abb85,_0x5265d4,_0x387ecd){return _0x45cbc4(_0x2abb85,_0x5265d4,_0x387ecd);}};try{const {getTestPathPatterns:_0x51a3d1}=_0x4cec91[_0x37a2d9(0x189)](require,_0x4cec91[_0x37a2d9(0x199)]),{globsToMatcher:_0x95f1e4}=_0x4cec91['tKFYe'](require,_0x4cec91[_0x37a2d9(0x17d)]),{findRelatedTests:_0x26f2b3}=_0x4cec91[_0x37a2d9(0x1a4)](require,_0x4cec91[_0x37a2d9(0x1c1)]),_0x28ec77=_0x4cec91[_0x37a2d9(0x1a4)](require,_0x4cec91[_0x37a2d9(0x196)]),_0x5af113=_0x1ea7f1[_0x37a2d9(0x1b7)]||[_0x4cec91[_0x37a2d9(0x1c8)],_0x4cec91[_0x37a2d9(0x1b9)]],_0x1f231b=_0x1ea7f1['testPathIgnorePatterns']||[],_0x45fc14=_0x4cec91[_0x37a2d9(0x187)](spawnSync,_0x4cec91[_0x37a2d9(0x183)],[_0x4cec91[_0x37a2d9(0x178)],_0x4cec91[_0x37a2d9(0x1c9)],_0xaf8f95,..._0x5c7202,_0x4cec91[_0x37a2d9(0x18a)]],{'encoding':_0x4cec91[_0x37a2d9(0x1b4)]});let _0x191747=[];!_0x45fc14[_0x37a2d9(0x180)]&&(_0x191747=_0x45fc14[_0x37a2d9(0x1c5)][_0x37a2d9(0x1bb)]('\x0a')[_0x37a2d9(0x1ba)](Boolean));logger[_0x37a2d9(0x1c7)](_0x37a2d9(0x18b)+JSON[_0x37a2d9(0x19d)](_0x191747)+_0x37a2d9(0x1ad));const _0x4fae0c={};_0x4fae0c[_0x37a2d9(0x190)]=!![],_0x4fae0c[_0x37a2d9(0x192)]=_0x1f231b;const _0x7afe8c=_0x4cec91[_0x37a2d9(0x1ab)](micromatch,_0x191747,_0x5af113,_0x4fae0c)['map'](_0xeb676b=>path[_0x37a2d9(0x1a6)](_0x1ea7f1[_0x37a2d9(0x168)],_0xeb676b));return logger[_0x37a2d9(0x1c7)](_0x37a2d9(0x1b6)+JSON[_0x37a2d9(0x19d)](_0x7afe8c)+_0x37a2d9(0x1ad)),_0x7afe8c;}catch(_0x494f14){return logger[_0x37a2d9(0x1c7)](_0x37a2d9(0x181)+_0x494f14),[];}}}module[a126_0x4dbbb7(0x17e)]=TestOrchestrationHandler;
|