browserstack-node-sdk 1.42.2 → 1.42.4
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_0x4dc769=a120_0x2af3;function a120_0x2af3(_0x4da090,_0x313295){const _0x533bce=a120_0x533b();return a120_0x2af3=function(_0x2af33e,_0x1d9494){_0x2af33e=_0x2af33e-0x69;let _0xb26790=_0x533bce[_0x2af33e];return _0xb26790;},a120_0x2af3(_0x4da090,_0x313295);}(function(_0x33f48a,_0x42f3ae){const _0x4ad0f1=a120_0x2af3,_0x3ffb28=_0x33f48a();while(!![]){try{const _0x13c1d3=-parseInt(_0x4ad0f1(0x101))/0x1+parseInt(_0x4ad0f1(0x6c))/0x2+-parseInt(_0x4ad0f1(0x142))/0x3+parseInt(_0x4ad0f1(0x163))/0x4*(-parseInt(_0x4ad0f1(0x7f))/0x5)+-parseInt(_0x4ad0f1(0x146))/0x6*(parseInt(_0x4ad0f1(0x10e))/0x7)+-parseInt(_0x4ad0f1(0xf0))/0x8*(parseInt(_0x4ad0f1(0x12f))/0x9)+parseInt(_0x4ad0f1(0xfb))/0xa;if(_0x13c1d3===_0x42f3ae)break;else _0x3ffb28['push'](_0x3ffb28['shift']());}catch(_0x24484f){_0x3ffb28['push'](_0x3ffb28['shift']());}}}(a120_0x533b,0x1b91a));const fs=require('fs'),path=require('path'),gitLastCommit=require(a120_0x4dc769(0xfd)),getRepoInfo=require('git-repo-info'),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require('./constants'),http=require('http'),https=require(a120_0x4dc769(0x126)),child_process=require(a120_0x4dc769(0xcf)),getos=require('getos'),os=require('os'),logger=require(a120_0x4dc769(0x15a))[a120_0x4dc769(0xc6)],bsSetupHelper=require(a120_0x4dc769(0xdf)),requestSpy=require(a120_0x4dc769(0xc2)),constants=require(a120_0x4dc769(0xa2)),logPatcher=require(a120_0x4dc769(0x10c)),util=require(a120_0x4dc769(0x16e)),{fileLogger}=require('../logger'),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a120_0x4dc769(0xd4)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a120_0x4dc769(0x16d)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require('../../../src/bin/utils/constants');exports[a120_0x4dc769(0x169)]=_0x425f22=>{const _0x5e9f84=a120_0x4dc769;fileLogger['silly']('['+new Date()[_0x5e9f84(0x81)]()+_0x5e9f84(0xa4)+constants[_0x5e9f84(0x11e)]+_0x5e9f84(0x9b)+_0x425f22);},exports[a120_0x4dc769(0x139)]=_0x3cd433=>{const _0x4656c2=a120_0x4dc769,_0x39b514={};_0x39b514['XTxZG']=function(_0x11d65f,_0x47f5f4){return _0x11d65f===_0x47f5f4;},_0x39b514['xvbzb']=_0x4656c2(0x166),_0x39b514[_0x4656c2(0x9a)]=function(_0x4a6954,_0x5f299a){return _0x4a6954===_0x5f299a;};const _0x46e0db=_0x39b514;fileLogger['debug']('['+new Date()[_0x4656c2(0x81)]()+_0x4656c2(0xa4)+constants['TEST_REPORTING_ANALYTICS']+_0x4656c2(0x9b)+_0x3cd433),(_0x46e0db['XTxZG'](process['env'][_0x4656c2(0x10a)],_0x46e0db['xvbzb'])||_0x46e0db[_0x4656c2(0x9a)](process[_0x4656c2(0x87)][_0x4656c2(0x10a)],'1')||_0x46e0db['szlbe'](process[_0x4656c2(0x87)][_0x4656c2(0x6a)],_0x46e0db[_0x4656c2(0x150)])||_0x46e0db[_0x4656c2(0x9a)](process['env'][_0x4656c2(0x6a)],'1'))&&consoleHolder[_0x4656c2(0xa6)]('\x0a['+new Date()[_0x4656c2(0x81)]()+_0x4656c2(0xa4)+constants[_0x4656c2(0x11e)]+'\x20]\x20'+_0x3cd433+'\x0a');};const a120_0x4a59ca={};a120_0x4a59ca[a120_0x4dc769(0xb1)]=!![],a120_0x4a59ca[a120_0x4dc769(0xac)]=0xea60,a120_0x4a59ca[a120_0x4dc769(0x129)]=0x2,a120_0x4a59ca[a120_0x4dc769(0x102)]=0x2;const httpKeepAliveAgent=new http[(a120_0x4dc769(0x14a))](a120_0x4a59ca),a120_0xdb1974={};a120_0xdb1974[a120_0x4dc769(0xb1)]=!![],a120_0xdb1974['timeout']=0xea60,a120_0xdb1974[a120_0x4dc769(0x129)]=0x2,a120_0xdb1974[a120_0x4dc769(0x102)]=0x2;const httpsKeepAliveAgent=new https[(a120_0x4dc769(0x14a))](a120_0xdb1974),a120_0x566f0c={};a120_0x566f0c[a120_0x4dc769(0xb1)]=!![],a120_0x566f0c['timeout']=0xea60,a120_0x566f0c['maxSockets']=0x2,a120_0x566f0c[a120_0x4dc769(0x102)]=0x2;const httpScreenshotsKeepAliveAgent=new http['Agent'](a120_0x566f0c),a120_0x2f489b={};a120_0x2f489b[a120_0x4dc769(0xb1)]=!![],a120_0x2f489b['timeout']=0xea60,a120_0x2f489b[a120_0x4dc769(0x129)]=0x2,a120_0x2f489b[a120_0x4dc769(0x102)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a120_0x4dc769(0x14a))](a120_0x2f489b);exports[a120_0x4dc769(0x170)]=()=>{const _0x5ba026=a120_0x4dc769,_0x3eb04a={};_0x3eb04a[_0x5ba026(0x86)]=function(_0x2c7ddb,_0x23faba){return _0x2c7ddb!==_0x23faba;},_0x3eb04a[_0x5ba026(0xd7)]=_0x5ba026(0x120);const _0x25e33e=_0x3eb04a;return process[_0x5ba026(0x87)][_0x5ba026(0x160)]&&_0x25e33e[_0x5ba026(0x86)](process[_0x5ba026(0x87)][_0x5ba026(0x160)],_0x25e33e[_0x5ba026(0xd7)])?!![]:![];},exports[a120_0x4dc769(0x12e)]=()=>{const _0x24ff3e=a120_0x4dc769,_0x1f3076={};_0x1f3076['ImzfW']=function(_0x2aa2ed,_0x339a3d){return _0x2aa2ed===_0x339a3d;},_0x1f3076[_0x24ff3e(0xa7)]='true',_0x1f3076[_0x24ff3e(0x14d)]=function(_0x14d690,_0x19f5f4){return _0x14d690===_0x19f5f4;};const _0x14c3f2=_0x1f3076;let _0x3a4b5d=!![];return process[_0x24ff3e(0x87)][_0x24ff3e(0xf7)]&&(_0x3a4b5d=_0x14c3f2[_0x24ff3e(0x71)](process[_0x24ff3e(0x87)]['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0x14c3f2[_0x24ff3e(0xa7)])),process[_0x24ff3e(0x87)][_0x24ff3e(0x12d)]&&(_0x3a4b5d=_0x14c3f2['uQCeG'](process[_0x24ff3e(0x87)][_0x24ff3e(0x12d)],_0x14c3f2[_0x24ff3e(0xa7)])),process[_0x24ff3e(0x87)]['BROWSERSTACK_TEST_REPORTING']&&(_0x3a4b5d=_0x14c3f2[_0x24ff3e(0x71)](process[_0x24ff3e(0x87)][_0x24ff3e(0xbc)],_0x14c3f2[_0x24ff3e(0xa7)])),_0x3a4b5d;},exports[a120_0x4dc769(0xa1)]=_0x45bdfc=>{const _0xada794=a120_0x4dc769;if(bsSetupHelper[_0xada794(0xd5)](_0x45bdfc))return undefined;try{return _0x45bdfc['trim']()[_0xada794(0xa9)](',');}catch(_0x5c3e4b){return undefined;}},exports[a120_0x4dc769(0xda)]=()=>{const _0x8f3c26=a120_0x4dc769,_0x1572be={'dtZpM':function(_0x54764f,_0x12ff52){return _0x54764f(_0x12ff52);},'tPMWJ':'../../bin/v2/browserstackCLI','gJnpC':function(_0x3158a3,_0x409cca){return _0x3158a3!==_0x409cca;},'SYEQs':_0x8f3c26(0x120),'MXpyA':function(_0xcf9e89,_0x46086b){return _0xcf9e89!==_0x46086b;},'bgryI':'undefined'};return PerformanceTester[_0x8f3c26(0x111)](PerformanceO11yEvents[_0x8f3c26(0x128)],async()=>{const _0x258522=_0x8f3c26;try{const _0x524cde=_0x1572be[_0x258522(0x176)](require,_0x1572be[_0x258522(0xfc)]);if(_0x524cde[_0x258522(0x77)]){logger[_0x258522(0x7e)](_0x258522(0x78)+O11Y_URL+_0x258522(0x69)+_0x524cde[_0x258522(0x77)]+_0x258522(0x168));return;}process[_0x258522(0x87)][_0x258522(0xb3)]&&_0x1572be[_0x258522(0xc9)](process['env'][_0x258522(0xb3)],_0x1572be[_0x258522(0x73)])&&_0x1572be[_0x258522(0x121)](process[_0x258522(0x87)][_0x258522(0xb3)],_0x1572be[_0x258522(0x109)])&&logger[_0x258522(0x7e)](_0x258522(0x78)+constants[_0x258522(0x114)]+_0x258522(0x69)+process['env'][_0x258522(0xb3)]+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a');}catch(_0x520ddb){logger[_0x258522(0x118)](util[_0x258522(0xbf)](_0x258522(0xe8)+constants[_0x258522(0x11e)]+_0x258522(0xdb),new Date()[_0x258522(0x81)](),_0x520ddb[_0x258522(0x88)]||_0x520ddb['message']||_0x520ddb));}})();},exports['getFailureType']=_0x5d5743=>{const _0x5dc2af=a120_0x4dc769,_0x2567be={};_0x2567be['uXeJy']='AssertionError',_0x2567be['KDWbt']=_0x5dc2af(0x131);const _0x1a99a8=_0x2567be;if(!_0x5d5743)return null;return _0x5d5743[_0x5dc2af(0xc5)]()[_0x5dc2af(0x155)](/AssertionError/)?_0x1a99a8['uXeJy']:_0x1a99a8['KDWbt'];},exports[a120_0x4dc769(0xd3)]=_0x3a41e0=>{const _0x109c94=a120_0x4dc769,_0x555327={};_0x555327[_0x109c94(0x153)]=_0x109c94(0x12b),_0x555327[_0x109c94(0x112)]=_0x109c94(0xd9),_0x555327[_0x109c94(0x145)]=_0x109c94(0x80),_0x555327[_0x109c94(0x83)]=_0x109c94(0x70),_0x555327[_0x109c94(0x7d)]='@cucumber/cucumber';const _0x3b3eec=_0x555327;let _0x169425=null;switch(_0x3a41e0){case FRAMEWORKS[_0x109c94(0x11f)]:_0x169425=bsSetupHelper[_0x109c94(0xad)](_0x3b3eec[_0x109c94(0x153)]);break;case FRAMEWORKS[_0x109c94(0x124)]:_0x169425=bsSetupHelper[_0x109c94(0xad)](_0x3b3eec['KTIEN']);break;case FRAMEWORKS[_0x109c94(0x16a)]:case FRAMEWORKS[_0x109c94(0x9f)]:_0x169425=bsSetupHelper[_0x109c94(0xad)](_0x3b3eec['snrSC']);break;case FRAMEWORKS[_0x109c94(0x105)]:_0x169425=bsSetupHelper[_0x109c94(0xad)](_0x3b3eec['BgCPc']);break;case FRAMEWORKS[_0x109c94(0x123)]:_0x169425=bsSetupHelper[_0x109c94(0xad)](_0x3b3eec[_0x109c94(0x7d)]);break;default:break;}return _0x169425;},exports['getBrowserStackConfig']=_0x5a4bcd=>{const _0x4e72af=a120_0x4dc769;let _0x21cfde=null;switch(_0x5a4bcd){case FRAMEWORKS['PLAYWRIGHT']:_0x21cfde=process[_0x4e72af(0x87)][_0x4e72af(0xd8)];break;}if(!_0x21cfde)return;return bsSetupHelper['readConfig'](_0x21cfde,![]);},exports[a120_0x4dc769(0xcb)]=_0x3f7779=>{const _0x3ae7bd=a120_0x4dc769;return{'username':bsSetupHelper[_0x3ae7bd(0x96)](_0x3f7779),'accessKey':bsSetupHelper[_0x3ae7bd(0xb8)](_0x3f7779)};},exports[a120_0x4dc769(0x16b)]=(_0x2738de,_0x32c881)=>{const _0x20d17f=a120_0x4dc769,_0x2c4f9b={};_0x2c4f9b[_0x20d17f(0x82)]=_0x20d17f(0x133),_0x2c4f9b['ZXwoO']=_0x20d17f(0x134),_0x2c4f9b[_0x20d17f(0x15d)]='TEST_ATTACHMENT';const _0x5abd3a=_0x2c4f9b,_0x2c2ddc=_0x5abd3a[_0x20d17f(0x82)][_0x20d17f(0xa9)]('|');let _0x4d9870=0x0;while(!![]){switch(_0x2c2ddc[_0x4d9870++]){case'0':delete _0x2738de[_0x20d17f(0x90)];continue;case'1':if(!_0x2738de[_0x20d17f(0x90)]||!Array['isArray'](_0x2738de[_0x20d17f(0x90)]))return;continue;case'2':delete _0x2738de[_0x20d17f(0x148)];continue;case'3':_0x2738de[_0x20d17f(0x10d)]={'data':_0x2738de['body'][0x0][_0x20d17f(0xd0)][0x0]['data'],'test_run_uuid':_0x2738de[_0x20d17f(0x90)][0x0]['logs'][0x0]['test_run_uuid'],'event_type':_0x5abd3a[_0x20d17f(0x9d)],'kind':_0x5abd3a['Bxyny'],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x20d17f(0x81)](),'fileName':_0x2738de[_0x20d17f(0x90)][0x0][_0x20d17f(0xd0)][0x0][_0x20d17f(0xd1)]};continue;case'4':if(!_0x2738de['body'][0x0]||!_0x2738de['body'][0x0][_0x20d17f(0xd0)]||!_0x2738de[_0x20d17f(0x90)][0x0][_0x20d17f(0xd0)][_0x20d17f(0x151)])return;continue;case'5':delete _0x32c881[_0x20d17f(0x14c)];continue;}break;}},exports[a120_0x4dc769(0xf1)]=async(_0x25fc13,_0x315830,_0x33fef0,_0x3d8cf4,_0x1d9b1b=!![])=>{const _0x5c9721=a120_0x4dc769,_0x138c0c={};_0x138c0c['jmDMk']=function(_0x4bb5e9,_0x49c169){return _0x4bb5e9===_0x49c169;},_0x138c0c[_0x5c9721(0x11b)]='Content-Type',_0x138c0c['aPmxj']=_0x5c9721(0x108),_0x138c0c[_0x5c9721(0x13f)]=_0x5c9721(0x126),_0x138c0c[_0x5c9721(0x117)]=function(_0x2ece1,_0x237962){return _0x2ece1===_0x237962;},_0x138c0c[_0x5c9721(0x119)]=function(_0x170daa,_0x2005b0){return _0x170daa!==_0x2005b0;},_0x138c0c['vxrxU']=_0x5c9721(0xf9),_0x138c0c['QBSbY']=_0x5c9721(0x16f);const _0x460f77=_0x138c0c,_0x37cb69={..._0x3d8cf4,...{'method':_0x25fc13,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x315830,'body':_0x33fef0,'json':_0x460f77['jmDMk'](_0x3d8cf4[_0x5c9721(0x14c)][_0x460f77[_0x5c9721(0x11b)]],_0x460f77[_0x5c9721(0x149)]),'agent':API_URL[_0x5c9721(0x162)](_0x460f77['YDkHe'])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x460f77[_0x5c9721(0x117)](_0x315830,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x37cb69['agent']=API_URL[_0x5c9721(0x162)](_0x460f77[_0x5c9721(0x13f)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x37cb69,_0x3d8cf4),logger[_0x5c9721(0x139)](_0x5c9721(0x177)+_0x37cb69[_0x5c9721(0x172)]));try{const {statusCode:_0x52f8a6,body:_0x248379}=await bsSetupHelper['nodeRequest'](_0x25fc13,_0x315830,_0x37cb69,_0x3d8cf4,_0x37cb69[_0x5c9721(0x172)]);if(_0x460f77[_0x5c9721(0x119)](_0x52f8a6,0xc8))return _0x248379?_0x248379:_0x5c9721(0xa5)+_0x52f8a6;let _0xb91014=_0x248379;if(_0x1d9b1b)try{_0x460f77[_0x5c9721(0x119)](typeof _0x248379,_0x460f77[_0x5c9721(0x144)])&&(_0xb91014=JSON[_0x5c9721(0xfa)](_0x248379));}catch(_0x4ef3fe){logger[_0x5c9721(0x118)](_0x460f77['QBSbY'],_0x248379,util['format'](_0x4ef3fe));}const _0x342f87={};return _0x342f87[_0x5c9721(0xec)]=_0xb91014,_0x342f87;}catch(_0x598bb0){logger[_0x5c9721(0x118)](_0x5c9721(0xce)+util['format'](_0x598bb0));throw _0x598bb0;}},exports[a120_0x4dc769(0x75)]=(_0x5125af,_0x45c171,_0x2e166d,_0x2be03e,_0x203b75=!![])=>{const _0x12578c=a120_0x4dc769,_0x53ab34={'lCzxn':function(_0x4b9cd4,_0x3f62f3){return _0x4b9cd4!==_0x3f62f3;},'aWsKv':function(_0x218374,_0x2e599e){return _0x218374(_0x2e599e);},'gYTdu':_0x12578c(0xf9),'WkpNq':function(_0x202b9f,_0x5571f5){return _0x202b9f(_0x5571f5);},'KrZeM':'Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','xmLpB':function(_0x1e1016,_0x21ed3f){return _0x1e1016(_0x21ed3f);},'KRZLe':function(_0x255b27,_0x5c7af7){return _0x255b27(_0x5c7af7);},'qPAXZ':function(_0x14d906,_0x3d49d0){return _0x14d906===_0x3d49d0;},'UfevL':_0x12578c(0x157),'OJUGq':_0x12578c(0x108),'HSMbo':_0x12578c(0x126),'DTBqR':function(_0x1cd656,_0x33e421){return _0x1cd656===_0x33e421;}};return new Promise((_0x37e6a3,_0x38a272)=>{const _0x4f5b09=_0x12578c,_0xab0c4e={..._0x2be03e,...{'method':_0x5125af,'url':API_URL+'/'+_0x45c171,'body':_0x2e166d,'json':_0x53ab34[_0x4f5b09(0x6f)](_0x2be03e['headers'][_0x53ab34[_0x4f5b09(0x132)]],_0x53ab34['OJUGq']),'agent':API_URL['includes'](_0x53ab34[_0x4f5b09(0x152)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x53ab34['DTBqR'](_0x45c171,SCREENSHOT_ENDPOINT)&&(_0xab0c4e[_0x4f5b09(0x10f)]=API_URL[_0x4f5b09(0x162)](_0x53ab34[_0x4f5b09(0x152)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x4f5b09(0x75)](_0x5125af,_0x45c171,_0xab0c4e,_0x2be03e,API_URL)[_0x4f5b09(0x8d)](({statusCode:_0x13124c,body:_0x3652dc})=>{const _0x23dec3=_0x4f5b09;if(_0x53ab34[_0x23dec3(0xb9)](_0x13124c,0xc8))_0x53ab34['aWsKv'](_0x38a272,_0x3652dc?_0x3652dc:_0x23dec3(0xa5)+_0x13124c);else{if(_0x203b75)try{_0x53ab34['lCzxn'](typeof _0x3652dc,_0x53ab34['gYTdu'])&&(_0x3652dc=JSON[_0x23dec3(0xfa)](_0x3652dc));}catch(_0x1a0c7){_0x53ab34[_0x23dec3(0xc4)](_0x38a272,_0x53ab34[_0x23dec3(0x116)]);return;}const _0x1b759a={};_0x1b759a[_0x23dec3(0xec)]=_0x3652dc,_0x53ab34['xmLpB'](_0x37e6a3,_0x1b759a);}})['catch'](_0x4c7449=>{const _0x4a99c8=_0x4f5b09;_0x4c7449&&_0x53ab34[_0x4a99c8(0xf8)](_0x38a272,_0x4c7449);});});},exports[a120_0x4dc769(0x158)]=_0xa8e1e2=>{const _0x331242=a120_0x4dc769;if(process[_0x331242(0x87)][_0x331242(0xcc)])return process['env'][_0x331242(0xcc)]['split'](',');if(process[_0x331242(0x87)][_0x331242(0x9c)])return process[_0x331242(0x87)]['TEST_OBSERVABILITY_BUILD_TAG'][_0x331242(0xa9)](',');if(_0xa8e1e2[_0x331242(0xeb)])return _0xa8e1e2[_0x331242(0xeb)];return[];},exports[a120_0x4dc769(0x11d)]=(_0x1a1869=!![])=>{const _0x2fa149=a120_0x4dc769,_0x147136={};_0x147136[_0x2fa149(0xe0)]=_0x2fa149(0x108),_0x147136['rIaQj']=_0x2fa149(0x166),_0x147136['TVCtC']='Authorization';const _0x882580=_0x147136,_0x47568c={};_0x47568c[_0x2fa149(0x157)]=_0x882580['iiWuw'],_0x47568c['X-BSTACK-TESTOPS']=_0x882580[_0x2fa149(0x15c)];const _0x201645=_0x47568c;return _0x1a1869&&process[_0x2fa149(0x87)][_0x2fa149(0x97)]&&(_0x201645[_0x882580['TVCtC']]='Bearer\x20'+process[_0x2fa149(0x87)][_0x2fa149(0x97)]),_0x201645;},exports[a120_0x4dc769(0x15f)]=_0x483597=>{const _0xcd3101=a120_0x4dc769,_0x4d302e={};_0x4d302e['QJWnn']=_0xcd3101(0xa0);const _0x3fb230=_0x4d302e,_0x49b2a5=[],_0x265c3f=new RegExp(_0x3fb230[_0xcd3101(0x173)],'i');return Object[_0xcd3101(0xcd)](_0x483597)[_0xcd3101(0xc1)](_0x15bcb8=>_0x265c3f[_0xcd3101(0x8f)](_0x15bcb8))[_0xcd3101(0x136)](_0x4d42eb=>_0x49b2a5[_0xcd3101(0x13e)](_0x483597[_0x4d42eb])),_0x49b2a5;},exports[a120_0x4dc769(0x6e)]=_0x279227=>{const _0x219afe=a120_0x4dc769,_0x2b6a0f=[],_0xcd9462=_0x279227['customTag']||process['env']['CUSTOM_TAG'];return _0xcd9462&&_0x2b6a0f['push'](_0xcd9462),_0x2b6a0f['push'](...exports[_0x219afe(0x15f)](process[_0x219afe(0x87)])),_0x2b6a0f['push'](...exports[_0x219afe(0x15f)](_0x279227)),_0x2b6a0f;},exports['removeAnsiColors']=_0x285e80=>{const _0x189143=a120_0x4dc769;if(!_0x285e80)return'';return _0x285e80[_0x189143(0xe7)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports['sleep']=(_0x4a6b65=0x64)=>new Promise(_0xd02845=>setTimeout(_0xd02845,_0x4a6b65));const getPlatformName=()=>{const _0x1717f9=a120_0x4dc769,_0x12ca18={};_0x12ca18[_0x1717f9(0xb6)]=function(_0x6bc35e,_0xb4afd6){return _0x6bc35e===_0xb4afd6;},_0x12ca18[_0x1717f9(0x137)]='win32',_0x12ca18['FQxlB']=_0x1717f9(0x85),_0x12ca18[_0x1717f9(0x104)]=_0x1717f9(0x167),_0x12ca18[_0x1717f9(0x10b)]=_0x1717f9(0xc3),_0x12ca18[_0x1717f9(0x15b)]=function(_0x3241a8,_0x127f74){return _0x3241a8===_0x127f74;},_0x12ca18[_0x1717f9(0x7c)]=_0x1717f9(0x95),_0x12ca18[_0x1717f9(0x165)]=_0x1717f9(0x12c),_0x12ca18[_0x1717f9(0x107)]=_0x1717f9(0x14e);const _0x380a98=_0x12ca18;if(_0x380a98['dZqUT'](process[_0x1717f9(0xbe)],_0x380a98[_0x1717f9(0x137)]))return _0x380a98['FQxlB'];if(_0x380a98[_0x1717f9(0xb6)](process[_0x1717f9(0xbe)],_0x380a98['menrq']))return _0x380a98[_0x1717f9(0x10b)];if(_0x380a98[_0x1717f9(0x15b)](process[_0x1717f9(0xbe)],_0x380a98[_0x1717f9(0x7c)]))return _0x380a98[_0x1717f9(0x165)];return _0x380a98[_0x1717f9(0x107)];},getMacOSVersion=()=>{const _0x164271=a120_0x4dc769,_0x121b9e={};_0x121b9e[_0x164271(0x100)]=_0x164271(0x115);const _0x5cd549=_0x121b9e;return child_process[_0x164271(0x89)](_0x5cd549[_0x164271(0x100)])[_0x164271(0xc5)]()[_0x164271(0xbd)]();},getLinuxDetails=()=>{const _0x3c5877={'HDXuw':function(_0x19fdf4,_0x519d94){return _0x19fdf4(_0x519d94);},'uKZOK':function(_0x1f6e65,_0x3040cd){return _0x1f6e65(_0x3040cd);}};return new Promise((_0x4283a4,_0x4b1240)=>{const _0x3ddd56=a120_0x2af3;_0x3c5877[_0x3ddd56(0xab)](getos,(_0x46e8b2,_0x3bc0fb)=>{const _0x28c558=_0x3ddd56;if(_0x46e8b2)return _0x3c5877[_0x28c558(0xb4)](_0x4b1240,_0x46e8b2);_0x3c5877[_0x28c558(0xb4)](_0x4283a4,_0x3bc0fb);});});};exports['getPlatformDetails']=async()=>{const _0x14fa0f=a120_0x4dc769,_0x3acaf8={'lZmYj':function(_0x29b224){return _0x29b224();},'ykUpa':_0x14fa0f(0xc3),'eDjVi':function(_0x11cec8){return _0x11cec8();},'dJziN':_0x14fa0f(0x85),'aqrYc':_0x14fa0f(0xea),'JYELt':function(_0x45db13){return _0x45db13();},'izwKj':_0x14fa0f(0x12c),'tugWl':function(_0x298f54){return _0x298f54();},'esGTG':_0x14fa0f(0xb2)};let _0x21bcd8=_0x3acaf8['lZmYj'](getPlatformName),_0x26ecf2=os['release']()[_0x14fa0f(0xc5)]();switch(_0x21bcd8){case _0x3acaf8['ykUpa']:_0x26ecf2=_0x3acaf8[_0x14fa0f(0x13d)](getMacOSVersion);break;case _0x3acaf8['dJziN']:try{const _0x4bef24=(await import(_0x3acaf8[_0x14fa0f(0xf4)]))[_0x14fa0f(0x9e)];_0x26ecf2=_0x3acaf8[_0x14fa0f(0x8e)](_0x4bef24);}catch(_0x3152e9){exports[_0x14fa0f(0x139)](_0x14fa0f(0x147)+_0x3152e9['toString']());}break;case _0x3acaf8[_0x14fa0f(0xc8)]:try{const _0x15120a=await _0x3acaf8[_0x14fa0f(0x13a)](getLinuxDetails);_0x15120a[_0x14fa0f(0x103)]&&(_0x21bcd8=_0x15120a[_0x14fa0f(0x103)]),_0x15120a[_0x14fa0f(0xca)]&&(_0x26ecf2=_0x15120a['release']['toString']());}catch(_0x263c4c){exports['debug'](_0x3acaf8[_0x14fa0f(0x159)]);}break;default:break;}const _0x456b6a={};return _0x456b6a['platformName']=_0x21bcd8,_0x456b6a['platformVersion']=_0x26ecf2,_0x456b6a;},exports[a120_0x4dc769(0x72)]=(_0x189581,_0x514356)=>{const _0xeef3d=a120_0x4dc769,_0x50f6a5={};_0x50f6a5[_0xeef3d(0x130)]=function(_0xd73cd7,_0x1a4d45){return _0xd73cd7===_0x1a4d45;},_0x50f6a5[_0xeef3d(0x12a)]=_0xeef3d(0x8f),_0x50f6a5[_0xeef3d(0xde)]=function(_0x26b380,_0xc86f34){return _0x26b380===_0xc86f34;},_0x50f6a5[_0xeef3d(0xed)]=_0xeef3d(0x11a);const _0x53a56f=_0x50f6a5;if(!_0x189581)return[];try{if(_0x53a56f[_0xeef3d(0x130)](_0x514356,_0x53a56f[_0xeef3d(0x12a)]))return _0x189581['map'](_0x4ce39a=>{const _0x24245a=_0xeef3d,{stack:_0x2eb56c,..._0x1b4a44}=_0x4ce39a,_0x5a8fbf=Object['keys'](_0x1b4a44)['map'](_0x519f59=>{return _0x519f59+':\x20'+_0x1b4a44[_0x519f59];}),_0x3a44fd=_0x2eb56c?exports[_0x24245a(0xf3)](_0x2eb56c)[_0x24245a(0xa9)](/\r?\n/):[exports['removeAnsiColors'](_0x4ce39a[_0x24245a(0xa8)])],_0x369d1d={};return _0x369d1d[_0x24245a(0xe6)]=_0x3a44fd,_0x369d1d[_0x24245a(0x8c)]=_0x5a8fbf,_0x369d1d;});else{if(_0x53a56f[_0xeef3d(0xde)](_0x514356,_0x53a56f[_0xeef3d(0xed)])){const _0x4cf2a7=[],_0x3e5214=[];return Object[_0xeef3d(0xcd)](_0x189581)[_0xeef3d(0x136)](_0x653b4d=>{const _0x345f20=_0xeef3d;try{_0x3e5214[_0x345f20(0x13e)](_0x653b4d+':\x20'+_0x189581[_0x653b4d]);}catch(_0x9a0d1b){exports['debug'](_0x345f20(0x161)+_0x9a0d1b[_0x345f20(0xa8)]+_0x345f20(0x14f)+_0x9a0d1b[_0x345f20(0xe6)]);}}),_0x4cf2a7[_0xeef3d(0x13e)]({'backtrace':exports[_0xeef3d(0xf3)](_0x189581[_0xeef3d(0x88)])[_0xeef3d(0xa9)](/\r?\n/),'expanded':_0x3e5214}),_0x4cf2a7;}}return[];}catch(_0x2015fa){exports[_0xeef3d(0x139)](_0xeef3d(0x161)+_0x2015fa[_0xeef3d(0xa8)]+_0xeef3d(0x14f)+_0x2015fa['backtrace']);}return[];};function a120_0x533b(){const _0x502261=['PaGdu','BROWSERSTACK_TEST_REPORTING','trim','platform','format','PathHelper','filter','../../helpers/request-spy','OS\x20X','WkpNq','toString','winstonLogger','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','izwKj','gJnpC','release','getUserCredentials','TEST_REPORTING_BUILD_TAG','keys','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','child_process','logs','fileName','app-automate','getFrameworkVersion','lodash','isUndefined','relativeTestFilePath','ztDAv','BROWSERSTACK_CONFIG_FILE_PATH','@playwright/test','printBuildLink','\x20]\x20Build\x20Not\x20Found\x20%s','NXLkO','local_grid','QnFgO','../helper','iiWuw','pwUIX','NWJOY','getPlatform','oogpY','rootDir','backtrace','replace','[%s][\x20','bstack:options','windows-release','buildTag','data','WjcbI','FJSSu','ObservabilitySync:','700496SAPVEQ','asyncAwaitNodeReq','pid','removeAnsiColors','aqrYc','vceNU','capabilities','BROWSERSTACK_TEST_OBSERVABILITY_YML','KRZLe','object','parse','4958880ajiBpq','tPMWJ','git-last-commit','klTZE','turboscale','OhoOI','156986BDxewM','maxTotalSockets','dist','menrq','JEST','stringify','jnMiz','application/json','bgryI','BROWSERSTACK_TEST_REPORTING_DEBUG','HteQA','../../bin/utils/logPatcher','formData','57911SzZvOs','agent','turboScaleGridDetails','measureWrapper','KTIEN','CzBmr','O11Y_URL','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','KrZeM','KjZVN','error','BWVrf','err','eEZnm','ZFoGs','getDefaultHeaders','TEST_REPORTING_ANALYTICS','MOCHA','null','MXpyA','unknown_grid','CUCUMBER','PLAYWRIGHT','annotate','https','getObservabilityLinkedProductName','PRINT_BUILDLINK','maxSockets','bCtoK','mocha','Linux','BROWSERSTACK_TEST_OBSERVABILITY','isTestObservabilitySession','9PjnRlK','xHTsB','UnhandledError','UfevL','1|4|3|0|2|5','LogCreated','unMOZ','forEach','bPmWv','bWSNY','debug','tugWl','VPQkd','\x20test\x20instance\x20:\x20','eDjVi','push','YDkHe','now','getSyncScript','37155WFqVmd','isInternalHook','vxrxU','snrSC','12zjAhuK','Error\x20in\x20importing\x20windows-release\x20','json','aPmxj','Agent','getCapabilities','headers','uQCeG','Unknown','\x20:\x20','xvbzb','length','HSMbo','ZvKuM','browserstack_executor:\x20','match','patchConsoleLogger','Content-Type','getBuildTags','esGTG','../logger','eOsuQ','rIaQj','Bxyny','bFdlS','extractValuesWithRegexKeyMatch','BROWSERSTACK_RERUN_TESTS','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','includes','1720HTLYMF','app','ZeEwh','true','darwin','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','trace','CODECEPT','modifyReqForTraceUpload','nElMK','../performance/constants','util','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','shouldReRunObservabilityTests','addRequestSpy','url','QJWnn','TEST_PLATFORM','HTTP','dtZpM','Uploading\x20trace\x20logs\x20to:\x20','/builds/','BROWSERSTACK_OBSERVABILITY_DEBUG','toJSON','32146FfutKx','SeEoL','getCustomTags','qPAXZ','jest','ImzfW','failureData','SYEQs','Wyuzc','nodeRequest','vBHwj','O11yHashedID','Visit\x20','getBrowserName','bs:addPlatformDetails:','config','pnfjV','wEpGs','info','1460CMLJxf','codeceptjs','toISOString','qIVDz','BgCPc','cwd','Windows','MTzOM','env','stack','execSync','join','getSession','expanded','then','JYELt','test','body','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','X-BSTACK-TESTOPS','appium:app','WlGGj','linux','getUserName','BROWSERSTACK_TESTHUB_JWT','zlObK','spy','szlbe','\x20]\x20','TEST_OBSERVABILITY_BUILD_TAG','ZXwoO','default','CODECEPT_CUCUMBER','^CUSTOM_TAG_\x5cd+$','parseFileNames','../../bin/utils/constants','bs:addLog:','][\x20','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','log','ZlfGJ','message','split','prefix','uKZOK','timeout','getPackageVersion','host','browserstack','rlDWe','keepAlive','Error\x20in\x20getting\x20Linux\x20Details','BS_TESTOPS_BUILD_HASHED_ID','HDXuw','getPlatformVersion','dZqUT','hostname','getAccessKey','lCzxn','__cloud_provider___'];a120_0x533b=function(){return _0x502261;};return a120_0x533b();}class PathHelper{constructor(_0x3083f9,_0x454e1b){const _0x38fc9d=a120_0x4dc769;this[_0x38fc9d(0x7b)]=_0x3083f9,this[_0x38fc9d(0xaa)]=_0x454e1b;}[a120_0x4dc769(0xd6)](_0x4b3e31){const _0x13415d=a120_0x4dc769,_0xd90506=this[_0x13415d(0x7b)][_0x13415d(0x84)]||this[_0x13415d(0x7b)][_0x13415d(0xe5)];return path['relative'](_0xd90506,_0x4b3e31);}['prefixTestPath'](_0x1c7871){const _0x26dc1d=a120_0x4dc769,_0x4ca1c1=this[_0x26dc1d(0xd6)](_0x1c7871);return this['prefix']?path[_0x26dc1d(0x8a)](this[_0x26dc1d(0xaa)],_0x4ca1c1):_0x4ca1c1;}}exports[a120_0x4dc769(0xc0)]=PathHelper,exports[a120_0x4dc769(0x171)]=(_0x246d4e=!![])=>{const _0x45b58c=a120_0x4dc769,_0x4735cf={};_0x4735cf[_0x45b58c(0xe2)]=function(_0x3748c5,_0x563a3e){return _0x3748c5===_0x563a3e;},_0x4735cf[_0x45b58c(0xf5)]=_0x45b58c(0x92),_0x4735cf[_0x45b58c(0xfe)]='true',_0x4735cf[_0x45b58c(0x94)]=_0x45b58c(0x175),_0x4735cf['bWSNY']=_0x45b58c(0xaf),_0x4735cf['SeEoL']=_0x45b58c(0xdd);const _0x25374f=_0x4735cf;requestSpy[_0x45b58c(0x99)]((_0x4a8562,_0x12bbe3)=>{const _0xb463b3=_0x45b58c;_0x12bbe3&&!(_0x12bbe3[_0xb463b3(0x14c)]&&_0x25374f[_0xb463b3(0xe2)](_0x12bbe3[_0xb463b3(0x14c)][_0x25374f[_0xb463b3(0xf5)]],_0x25374f[_0xb463b3(0xfe)]))&&(_0x12bbe3[_0xb463b3(0xae)]=_0x12bbe3[_0xb463b3(0xb7)],delete _0x12bbe3[_0xb463b3(0xb7)],_0x246d4e&&process['emit'](_0xb463b3(0xa3)+process[_0xb463b3(0xf2)],{'timestamp':new Date()[_0xb463b3(0x81)](),'level':null,'message':null,'kind':_0x25374f[_0xb463b3(0x94)],'http_response':_0x12bbe3})),_0x12bbe3&&(constants['HUB_URL_REGEX']['test'](_0x12bbe3[_0xb463b3(0xae)])||constants['ATS_HUB_URL_REGEX'][_0xb463b3(0x8f)](_0x12bbe3[_0xb463b3(0xae)]))?global['__cloud_provider___']=_0x25374f[_0xb463b3(0x138)]:global[_0xb463b3(0xba)]=_0x25374f[_0xb463b3(0x6d)];});},exports[a120_0x4dc769(0x156)]=()=>{const _0x3a7dc6=a120_0x4dc769,_0x4e06c9={'Wyuzc':function(_0x471ef1,_0x2349e8){return _0x471ef1(_0x2349e8);}};console={},Object[_0x3a7dc6(0xcd)](consoleHolder)[_0x3a7dc6(0x136)](_0x21c329=>{const _0x578539=_0x3a7dc6;_0x4e06c9[_0x578539(0x74)](isFunction,consoleHolder[_0x21c329])?console[_0x21c329]=(..._0x4df1bb)=>{const _0x24276a=_0x578539;try{!Object[_0x24276a(0xcd)](BSTestOpsPatcher)[_0x24276a(0x162)](_0x21c329)?consoleHolder[_0x21c329](..._0x4df1bb):BSTestOpsPatcher[_0x21c329](..._0x4df1bb);}catch(_0x413815){consoleHolder[_0x21c329](..._0x4df1bb);}}:console[_0x21c329]=consoleHolder[_0x21c329];});},exports[a120_0x4dc769(0x141)]=()=>a120_0x4dc769(0x154)+JSON[a120_0x4dc769(0x106)]({'action':a120_0x4dc769(0x125),'arguments':{'data':a120_0x4dc769(0xef)+Date[a120_0x4dc769(0x140)](),'level':a120_0x4dc769(0x139)}}),exports[a120_0x4dc769(0x127)]=_0x141e7e=>{const _0x5bcaf5=a120_0x4dc769,_0x115d11={};_0x115d11['oogpY']=function(_0x5c885f,_0x3f0c24){return _0x5c885f===_0x3f0c24;},_0x115d11[_0x5bcaf5(0x13b)]=_0x5bcaf5(0xaf),_0x115d11[_0x5bcaf5(0x76)]=_0x5bcaf5(0x93),_0x115d11[_0x5bcaf5(0x113)]=_0x5bcaf5(0x164),_0x115d11[_0x5bcaf5(0xee)]=function(_0x2a8581,_0x366916){return _0x2a8581>_0x366916;},_0x115d11['bFdlS']=_0x5bcaf5(0xd2),_0x115d11[_0x5bcaf5(0xe1)]=_0x5bcaf5(0xe9),_0x115d11['PaGdu']=_0x5bcaf5(0x110),_0x115d11[_0x5bcaf5(0x16c)]=_0x5bcaf5(0xff),_0x115d11['rlDWe']='automate';const _0x53b7a4=_0x115d11;let _0x49bb5a=null;try{if(_0x53b7a4[_0x5bcaf5(0xe4)](global[_0x5bcaf5(0xba)],_0x53b7a4['VPQkd'])){if(_0x141e7e[_0x53b7a4['vBHwj']]||_0x141e7e[_0x53b7a4['CzBmr']]||!bsSetupHelper['isUndefined'](global[_0x5bcaf5(0xf6)])&&_0x53b7a4[_0x5bcaf5(0xee)](global[_0x5bcaf5(0xf6)]['length'],0x0)&&(global[_0x5bcaf5(0xf6)][0x0][_0x53b7a4['CzBmr']]||global[_0x5bcaf5(0xf6)][0x0][_0x53b7a4[_0x5bcaf5(0x76)]]))_0x49bb5a=_0x53b7a4[_0x5bcaf5(0x15e)];else _0x141e7e[_0x53b7a4[_0x5bcaf5(0xe1)]]&&_0x141e7e[_0x53b7a4[_0x5bcaf5(0xe1)]][_0x53b7a4[_0x5bcaf5(0xbb)]]?_0x49bb5a=_0x53b7a4[_0x5bcaf5(0x16c)]:_0x49bb5a=_0x53b7a4[_0x5bcaf5(0xb0)];}}catch(_0x4c1161){exports[_0x5bcaf5(0x139)](_0x5bcaf5(0xc7)+constants[_0x5bcaf5(0x11e)]+_0x5bcaf5(0x13c)+_0x4c1161);}return _0x49bb5a;},exports['sendPlatformDetails']=async(_0x55b1c3,_0x147d8a,_0x28b715=![])=>{const _0x1e7556=a120_0x4dc769,_0x50bfb7={};_0x50bfb7['NXLkO']=function(_0x3a46ec,_0x35d656){return _0x3a46ec===_0x35d656;},_0x50bfb7[_0x1e7556(0x98)]='browserstack',_0x50bfb7['unMOZ']=_0x1e7556(0x122),_0x50bfb7['ZFoGs']=_0x1e7556(0x174);const _0x173c87=_0x50bfb7;try{const _0x6d02e3=await _0x55b1c3[_0x1e7556(0x14b)](),_0x576b0e=await _0x55b1c3[_0x1e7556(0x8b)](),_0x3ed3bb={},_0x547cf4=Object['fromEntries'](_0x576b0e[_0x1e7556(0x14b)]()['map_']),_0x3ae17e={'product':exports['getObservabilityLinkedProductName'](_0x547cf4),'capabilities':_0x547cf4,'platform':_0x6d02e3[_0x1e7556(0xe3)](),'platform_version':bsSetupHelper[_0x1e7556(0xb5)](_0x173c87[_0x1e7556(0xdc)](global[_0x1e7556(0xba)],_0x173c87[_0x1e7556(0x98)])),'browser':_0x6d02e3[_0x1e7556(0x79)](),'browser_version':_0x6d02e3['getBrowserVersion'](),'session_id':_0x576b0e[_0x1e7556(0x6b)]()};global[_0x1e7556(0xba)]?_0x3ed3bb[global[_0x1e7556(0xba)]]=_0x3ae17e:_0x3ed3bb[_0x173c87[_0x1e7556(0x135)]]=_0x3ae17e;if(_0x28b715)return _0x3ed3bb;process['emit'](_0x1e7556(0x7a)+process['pid'],{'timestamp':new Date()[_0x1e7556(0x81)](),'level':null,'message':null,'kind':_0x173c87[_0x1e7556(0x11c)],'http_response':_0x3ed3bb,'uuid':_0x147d8a});}catch(_0x1c8d81){exports[_0x1e7556(0x139)](_0x1e7556(0x91)+_0x1c8d81);}},exports[a120_0x4dc769(0x143)]=_0x550be5=>{const _0x23b5ab=a120_0x4dc769;return _0x550be5&&_0x550be5[_0x23b5ab(0xc5)]()[_0x23b5ab(0x155)](/browserstack internal helper hook/);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a121_0x4f54db=a121_0x5c1f;function a121_0x5c1f(_0x2f3166,_0x583ab5){var _0x5179b0=a121_0x5179();return a121_0x5c1f=function(_0x5c1f14,_0x268cee){_0x5c1f14=_0x5c1f14-0xf5;var _0x310fc3=_0x5179b0[_0x5c1f14];return _0x310fc3;},a121_0x5c1f(_0x2f3166,_0x583ab5);}(function(_0x2ced1b,_0x48d12e){var _0x17a92b=a121_0x5c1f,_0x18ad08=_0x2ced1b();while(!![]){try{var _0x286b17=parseInt(_0x17a92b(0xf9))/0x1+parseInt(_0x17a92b(0xfc))/0x2+parseInt(_0x17a92b(0xfe))/0x3+parseInt(_0x17a92b(0xfd))/0x4+parseInt(_0x17a92b(0xfb))/0x5+-parseInt(_0x17a92b(0xf7))/0x6*(parseInt(_0x17a92b(0x101))/0x7)+-parseInt(_0x17a92b(0xff))/0x8;if(_0x286b17===_0x48d12e)break;else _0x18ad08['push'](_0x18ad08['shift']());}catch(_0xa412ed){_0x18ad08['push'](_0x18ad08['shift']());}}}(a121_0x5179,0x8dd0a));function a121_0x5179(){var _0x313b22=['ORCHESTRATION_API_URL','1780330SjzwxA','1487076Unssiu','1751936bRjFVN','2179536dEYEUU','12590408vgKenJ','https://collector-observability.browserstack.com','7llxaag','FAILED_TESTS_ENDPOINT','SPLIT_TESTS_ENDPOINT','6615894DcFpHa','testorchestration/api/v1/split-tests','993224ZmIntz'];a121_0x5179=function(){return _0x313b22;};return a121_0x5179();}var a121_0x5f03e2={};a121_0x5f03e2[a121_0x4f54db(0xfa)]=a121_0x4f54db(0x100),a121_0x5f03e2[a121_0x4f54db(0xf5)]='testorchestration/api/v1/failed-tests',a121_0x5f03e2[a121_0x4f54db(0xf6)]=a121_0x4f54db(0xf8),module['exports']=a121_0x5f03e2;
|
|
@@ -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_0xccf01=a122_0x445c;function a122_0x445c(_0x5f5946,_0x2f979e){const _0x44a1b2=a122_0x44a1();return a122_0x445c=function(_0x445cb0,_0x1dc9ec){_0x445cb0=_0x445cb0-0x153;let _0x550e7b=_0x44a1b2[_0x445cb0];return _0x550e7b;},a122_0x445c(_0x5f5946,_0x2f979e);}function a122_0x44a1(){const _0x1198cd=['XauQn',']\x20Polling\x20stopped.','failFast.active','BROWSERSTACK_NODE_INDEX','writeState','MZvND','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','failureThresholdCount','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','projectName','ipxtV','\x0aStack:\x20','rCRSj','2187997wQLbCR','mKpal','UpaSf','lockFilePath','_initializeStateFromFile','1643250ztIRnR','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','zfNrp','AGsNh','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','_Local]\x20State\x20initialized\x20from\x20file.','warn','stack','qQcQy','failFastActive','6LLKszQ','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','debug','newState','egtyy','existsSync','env','sFhVh','buildName','_CI]\x20Error\x20during\x20polling\x20logic:\x20','add','_CI]\x20Polling\x20started\x20with\x20interval:\x20','qxGTH','YmUrG','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','yPkiU','sBHYt',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','onTestDone','exports','_sendFailedTestsToAPI','failFastState.json','_getDefaultState','YITsl','reportedFailuresToAPI','JoAMh','putFailedTests','OjVHS','HDSPe','state','VCJWG','PSWsq','qSjoM','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','catch','1122459rAmexk','wFtIx','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','number','FailFastManager','115065MzPcLK','startPolling','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','bUmVc','ahyUw','failFastState.lock','failedTests','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','Vnqtp','\x20to\x20API:\x20','mYIOW','fFnIY','isCIMode','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','failed','failFastConfig','kdNWs','_pollFailedTests','stateFilePath','65uVcpfl','failFastActiveMarkerPath','pollingInterval','buildRunIdentifier','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','\x20(was\x20','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','workingDir','204NQWGCP','kUXtL','BROWSERSTACK_BUILD_RUN_IDENTIFIER','passed','length','iTFEj','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','cleanup','55649SYjael','writeFileSync','sqdNs','_CI]\x20Error\x20sending\x20failed\x20test\x20','_fetchAPIFailedCount','rgXRc','FPxFR','totalTests','uniqueFailedTests',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','8sEyOYg','error','join','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','readState','lastAPIFailedCount','fileHelper','stopPolling','./fileHelper','from',',\x20threshold:\x20','KknxF','2SANCek','16684lqEWvK','JyCja','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','APSby','2411649YqTigl','message','toISOString','recordTestResult','hVMCp','_CI]\x20API\x20failed\x20count\x20updated:\x20','HBfhk'];a122_0x44a1=function(){return _0x1198cd;};return a122_0x44a1();}(function(_0x5f0c2f,_0x262fae){const _0x375443=a122_0x445c,_0x4a2d66=_0x5f0c2f();while(!![]){try{const _0xf277da=-parseInt(_0x375443(0x1b5))/0x1+parseInt(_0x375443(0x165))/0x2*(parseInt(_0x375443(0x1b0))/0x3)+parseInt(_0x375443(0x166))/0x4*(-parseInt(_0x375443(0x1c8))/0x5)+-parseInt(_0x375443(0x18d))/0x6*(parseInt(_0x375443(0x17e))/0x7)+-parseInt(_0x375443(0x159))/0x8*(-parseInt(_0x375443(0x16a))/0x9)+parseInt(_0x375443(0x183))/0xa+parseInt(_0x375443(0x1d9))/0xb*(-parseInt(_0x375443(0x1d1))/0xc);if(_0xf277da===_0x262fae)break;else _0x4a2d66['push'](_0x4a2d66['shift']());}catch(_0x1e9d7b){_0x4a2d66['push'](_0x4a2d66['shift']());}}}(a122_0x44a1,0x3a3f1));const fs=require('fs'),path=require('path'),FileHelper=require(a122_0xccf01(0x161)),RequestUtils=require('./requestUtils'),logger=require('../logger')['winstonLogger'],POLLING_INTERVAL=0x2710,TAG=a122_0xccf01(0x1b4);class FailFastManager{constructor(_0x50451e,_0x511ea4,_0x28823d){const _0x490edc=a122_0xccf01,_0x4e12ad={};_0x4e12ad[_0x490edc(0x17b)]=function(_0x12ca62,_0x19b00b){return _0x12ca62+_0x19b00b;},_0x4e12ad[_0x490edc(0x1c5)]=_0x490edc(0x17c),_0x4e12ad[_0x490edc(0x1db)]=function(_0x1628e3,_0x2ca6f3){return _0x1628e3||_0x2ca6f3;},_0x4e12ad[_0x490edc(0x1b1)]=_0x490edc(0x1a2),_0x4e12ad[_0x490edc(0x180)]=_0x490edc(0x1ba),_0x4e12ad[_0x490edc(0x16e)]=_0x490edc(0x173);const _0x2cf578=_0x4e12ad;this[_0x490edc(0x1c4)]=_0x2cf578[_0x490edc(0x1db)](_0x50451e,{}),this[_0x490edc(0x195)]=_0x511ea4,this['projectName']=_0x28823d,this[_0x490edc(0x1c1)]=!!(process[_0x490edc(0x193)][_0x490edc(0x1d3)]&&process['env'][_0x490edc(0x174)]&&process[_0x490edc(0x193)]['BROWSERSTACK_TOTAL_NODE_COUNT']);const _0x1cfd18=this[_0x490edc(0x1c4)][_0x490edc(0x1d0)];this[_0x490edc(0x1c7)]=path[_0x490edc(0x15b)](_0x1cfd18,_0x2cf578[_0x490edc(0x1b1)]),this[_0x490edc(0x181)]=path['join'](_0x1cfd18,_0x2cf578[_0x490edc(0x180)]),this['failFastActiveMarkerPath']=path[_0x490edc(0x15b)](_0x1cfd18,_0x2cf578[_0x490edc(0x16e)]),this[_0x490edc(0x15f)]=new FileHelper(this[_0x490edc(0x1c4)],this[_0x490edc(0x1c7)],this[_0x490edc(0x181)],this[_0x490edc(0x1a3)]()),this[_0x490edc(0x1aa)]=this[_0x490edc(0x1a3)](),this['pollingInterval']=null,this[_0x490edc(0x1c1)]&&(this[_0x490edc(0x1a5)]=new Set()),this[_0x490edc(0x182)]()[_0x490edc(0x1af)](_0x42c793=>{const _0x8d9ca0=_0x490edc;logger[_0x8d9ca0(0x15a)]('['+TAG+_0x8d9ca0(0x19e)+_0x42c793[_0x8d9ca0(0x16b)]+(_0x42c793[_0x8d9ca0(0x18a)]?_0x2cf578[_0x8d9ca0(0x17b)](_0x2cf578[_0x8d9ca0(0x1c5)],_0x42c793[_0x8d9ca0(0x18a)]):'')),this[_0x8d9ca0(0x1aa)]=this[_0x8d9ca0(0x1a3)]();}),this[_0x490edc(0x1c1)]&&this[_0x490edc(0x1b6)](),logger[_0x490edc(0x18f)]('['+TAG+']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20'+this['failFastConfig'][_0x490edc(0x178)]+',\x20CI\x20Mode:\x20'+this[_0x490edc(0x1c1)]);}['_getDefaultState'](){const _0x588a89={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x588a89;}async[a122_0xccf01(0x182)](){const _0x512993=a122_0xccf01,_0x39da82={};_0x39da82[_0x512993(0x1bd)]=function(_0x1b2c2a,_0x372907){return _0x1b2c2a+_0x372907;},_0x39da82[_0x512993(0x170)]=_0x512993(0x17c);const _0x4856d1=_0x39da82;if(this[_0x512993(0x1c1)])try{fs[_0x512993(0x192)](this['failFastActiveMarkerPath'])&&(this[_0x512993(0x1aa)][_0x512993(0x18c)]=!![],logger[_0x512993(0x18f)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.'));}catch(_0x31e195){logger[_0x512993(0x15a)]('['+TAG+_0x512993(0x1c2)+_0x31e195[_0x512993(0x16b)]+(_0x31e195[_0x512993(0x18a)]?_0x4856d1[_0x512993(0x1bd)](_0x4856d1['HBfhk'],_0x31e195['stack']):''));}else try{const _0x51a6d7=await this['fileHelper'][_0x512993(0x15d)]();if(_0x51a6d7)this[_0x512993(0x1aa)]={...this[_0x512993(0x1a3)](),..._0x51a6d7,'uniqueFailedTests':new Set(_0x51a6d7[_0x512993(0x157)]||[])},logger[_0x512993(0x18f)]('['+TAG+_0x512993(0x188));else{logger[_0x512993(0x18f)]('['+TAG+_0x512993(0x177));const _0x20e3bd=this[_0x512993(0x1a3)](),_0x45d7b9={..._0x20e3bd,'uniqueFailedTests':Array[_0x512993(0x162)](_0x20e3bd[_0x512993(0x157)])};await this[_0x512993(0x15f)][_0x512993(0x175)](_0x45d7b9),this[_0x512993(0x1aa)]=_0x20e3bd;}}catch(_0x1ed69c){logger[_0x512993(0x18f)]('['+TAG+_0x512993(0x1b2)+_0x1ed69c[_0x512993(0x16b)]+(_0x1ed69c[_0x512993(0x18a)]?_0x4856d1[_0x512993(0x1bd)](_0x4856d1[_0x512993(0x170)],_0x1ed69c[_0x512993(0x18a)]):'')),this[_0x512993(0x1aa)]=this[_0x512993(0x1a3)]();}}async[a122_0xccf01(0x19f)](_0x3fb288,_0x3075b0){const _0xfdc852=a122_0xccf01,_0x48f62e={};_0x48f62e[_0xfdc852(0x17f)]=function(_0x233e7b,_0x574cbd){return _0x233e7b>_0x574cbd;},_0x48f62e['KknxF']=function(_0x590d05,_0x7e74b4){return _0x590d05>_0x7e74b4;},_0x48f62e[_0xfdc852(0x185)]=_0xfdc852(0x1c3),_0x48f62e[_0xfdc852(0x1b9)]=_0xfdc852(0x1d4),_0x48f62e[_0xfdc852(0x199)]=function(_0x306365,_0x26a35f){return _0x306365+_0x26a35f;},_0x48f62e['qQcQy']='\x0aStack:\x20',_0x48f62e['YmUrG']=function(_0x1d3997,_0xaef60a){return _0x1d3997||_0xaef60a;},_0x48f62e[_0xfdc852(0x155)]=function(_0x3ef4c0,_0x6f6771){return _0x3ef4c0+_0x6f6771;};const _0x54fe80=_0x48f62e;if(this['isCIMode'])this[_0xfdc852(0x1aa)][_0xfdc852(0x156)]+=0x1,_0x3075b0&&_0x54fe80[_0xfdc852(0x17f)](_0x3075b0[_0xfdc852(0x1d5)],0x0)&&(!this[_0xfdc852(0x1a5)]['has'](_0x3fb288)&&(await this[_0xfdc852(0x1a1)](_0x3fb288),this[_0xfdc852(0x1a5)][_0xfdc852(0x197)](_0x3fb288)));else try{const _0x2e6160={'fullName':_0x3fb288,'status':_0x3075b0&&_0x54fe80[_0xfdc852(0x164)](_0x3075b0[_0xfdc852(0x1d5)],0x0)?_0x54fe80[_0xfdc852(0x185)]:_0x54fe80[_0xfdc852(0x1b9)]},_0x36bae7=await this[_0xfdc852(0x15f)][_0xfdc852(0x16d)](_0x2e6160);this[_0xfdc852(0x1aa)]={...this[_0xfdc852(0x1a3)](),..._0x36bae7[_0xfdc852(0x190)],'uniqueFailedTests':new Set(_0x36bae7[_0xfdc852(0x190)]['uniqueFailedTests']||[])};}catch(_0x3a1612){logger[_0xfdc852(0x15a)]('['+TAG+_0xfdc852(0x1d7)+_0x3a1612['message']+(_0x3a1612['stack']?_0x54fe80[_0xfdc852(0x199)](_0x54fe80[_0xfdc852(0x18b)],_0x3a1612[_0xfdc852(0x18a)]):''));try{const _0x36a0e3=await this[_0xfdc852(0x15f)][_0xfdc852(0x15d)]();this[_0xfdc852(0x1aa)]={...this[_0xfdc852(0x1a3)](),..._0x54fe80[_0xfdc852(0x19a)](_0x36a0e3,{}),'uniqueFailedTests':new Set(_0x36a0e3?_0x36a0e3[_0xfdc852(0x157)]||[]:[])},logger[_0xfdc852(0x18f)]('['+TAG+_0xfdc852(0x1ae));}catch(_0x2a4f12){logger[_0xfdc852(0x15a)]('['+TAG+_0xfdc852(0x168)+_0x2a4f12[_0xfdc852(0x16b)]+(_0x2a4f12[_0xfdc852(0x18a)]?_0x54fe80[_0xfdc852(0x155)](_0x54fe80[_0xfdc852(0x18b)],_0x2a4f12[_0xfdc852(0x18a)]):'')),this[_0xfdc852(0x1aa)]=this[_0xfdc852(0x1a3)]();}}}async[a122_0xccf01(0x1a1)](_0xd3500d){const _0x5076a9=a122_0xccf01,_0x1d60b7={};_0x1d60b7[_0x5076a9(0x1ad)]=function(_0x5e31e3,_0x51fe3e){return _0x5e31e3+_0x51fe3e;},_0x1d60b7[_0x5076a9(0x191)]='\x0aStack:\x20';const _0x475b0d=_0x1d60b7;if(!this[_0x5076a9(0x1c1)]||!_0xd3500d)return;try{logger[_0x5076a9(0x18f)]('['+TAG+_0x5076a9(0x179)+_0xd3500d);const _0x45cc55={};_0x45cc55['buildName']=this['buildName'],_0x45cc55[_0x5076a9(0x17a)]=this[_0x5076a9(0x17a)],_0x45cc55[_0x5076a9(0x1bb)]=[_0xd3500d],_0x45cc55[_0x5076a9(0x1cb)]=process[_0x5076a9(0x193)][_0x5076a9(0x1d3)],await RequestUtils[_0x5076a9(0x1a7)](_0x45cc55);}catch(_0x11a1f2){logger['error']('['+TAG+_0x5076a9(0x1dc)+_0xd3500d+_0x5076a9(0x1be)+_0x11a1f2['message']+(_0x11a1f2['stack']?_0x475b0d['qSjoM'](_0x475b0d[_0x5076a9(0x191)],_0x11a1f2[_0x5076a9(0x18a)]):''));}}async[a122_0xccf01(0x153)](){const _0x5e2e9a=a122_0xccf01,_0x333136={};_0x333136[_0x5e2e9a(0x1a4)]=function(_0x4a4e30,_0x901d5b){return _0x4a4e30===_0x901d5b;},_0x333136['yPkiU']=_0x5e2e9a(0x1b3),_0x333136[_0x5e2e9a(0x1a6)]=function(_0x5b74f1,_0x35e47e){return _0x5b74f1+_0x35e47e;},_0x333136[_0x5e2e9a(0x1c0)]='\x0aStack:\x20',_0x333136[_0x5e2e9a(0x194)]=function(_0x2ef3c3,_0x145436){return _0x2ef3c3!==_0x145436;};const _0x106ed1=_0x333136;if(!this[_0x5e2e9a(0x1c1)])return 0x0;try{const _0x549b7d={};_0x549b7d[_0x5e2e9a(0x195)]=this[_0x5e2e9a(0x195)],_0x549b7d[_0x5e2e9a(0x17a)]=this[_0x5e2e9a(0x17a)],_0x549b7d[_0x5e2e9a(0x1cb)]=process[_0x5e2e9a(0x193)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];const _0x2f7f30=await RequestUtils['getFailedTestsCount'](_0x549b7d);return logger[_0x5e2e9a(0x18f)]('['+TAG+_0x5e2e9a(0x15c)+_0x2f7f30),_0x106ed1[_0x5e2e9a(0x1a4)](typeof _0x2f7f30,_0x106ed1[_0x5e2e9a(0x19c)])?_0x2f7f30:0x0;}catch(_0x5cc24b){return logger['error']('['+TAG+_0x5e2e9a(0x1cd)+_0x5cc24b[_0x5e2e9a(0x16b)]+(_0x5cc24b[_0x5e2e9a(0x18a)]?_0x106ed1[_0x5e2e9a(0x1a6)](_0x106ed1['fFnIY'],_0x5cc24b[_0x5e2e9a(0x18a)]):'')),_0x106ed1[_0x5e2e9a(0x194)](this[_0x5e2e9a(0x1aa)][_0x5e2e9a(0x15e)],undefined)?this['state']['lastAPIFailedCount']:0x0;}}async[a122_0xccf01(0x1c6)](){const _0x231c9b=a122_0xccf01,_0x5ba52c={};_0x5ba52c[_0x231c9b(0x169)]=function(_0x2327db,_0x3f5de0){return _0x2327db!==_0x3f5de0;},_0x5ba52c[_0x231c9b(0x186)]=function(_0x35b4d6,_0x4dde7e){return _0x35b4d6+_0x4dde7e;},_0x5ba52c[_0x231c9b(0x1a9)]=_0x231c9b(0x17c);const _0x1e21eb=_0x5ba52c;if(!this[_0x231c9b(0x1c1)])return;try{const _0x147a63=await this[_0x231c9b(0x153)]();_0x1e21eb['APSby'](_0x147a63,this[_0x231c9b(0x1aa)][_0x231c9b(0x15e)])&&(logger[_0x231c9b(0x18f)]('['+TAG+_0x231c9b(0x16f)+_0x147a63+_0x231c9b(0x1ce)+this[_0x231c9b(0x1aa)][_0x231c9b(0x15e)]+')'),this['state'][_0x231c9b(0x15e)]=_0x147a63);}catch(_0x4fea1d){logger[_0x231c9b(0x15a)]('['+TAG+_0x231c9b(0x196)+_0x4fea1d[_0x231c9b(0x16b)]+(_0x4fea1d[_0x231c9b(0x18a)]?_0x1e21eb[_0x231c9b(0x186)](_0x1e21eb[_0x231c9b(0x1a9)],_0x4fea1d[_0x231c9b(0x18a)]):''));}}async[a122_0xccf01(0x1b6)](){const _0x142fe5=a122_0xccf01,_0x99b32e={'vCOUc':function(_0x3f2b45,_0x1ce65a,_0x56f150){return _0x3f2b45(_0x1ce65a,_0x56f150);}};this[_0x142fe5(0x1ca)]&&this[_0x142fe5(0x160)](),this[_0x142fe5(0x1c1)]&&(await this[_0x142fe5(0x1c6)](),this['pollingInterval']=_0x99b32e['vCOUc'](setInterval,async()=>{const _0x22f439=_0x142fe5;await this[_0x22f439(0x1c6)]();},POLLING_INTERVAL),logger[_0x142fe5(0x18f)]('['+TAG+_0x142fe5(0x198)+POLLING_INTERVAL+'ms.'));}[a122_0xccf01(0x160)](){const _0x41b830=a122_0xccf01,_0x3c7564={'PSWsq':function(_0x3736de,_0x35c1e0){return _0x3736de(_0x35c1e0);}};this[_0x41b830(0x1ca)]&&(_0x3c7564[_0x41b830(0x1ac)](clearInterval,this[_0x41b830(0x1ca)]),this[_0x41b830(0x1ca)]=null,logger[_0x41b830(0x18f)]('['+TAG+_0x41b830(0x172)));}async['shouldFailFast'](){const _0x27ba9e=a122_0xccf01,_0x262804={};_0x262804[_0x27ba9e(0x1a8)]=function(_0x2f442d,_0x11e940){return _0x2f442d===_0x11e940;},_0x262804['rCRSj']=function(_0x1bf3e6,_0x26f4da){return _0x1bf3e6<=_0x26f4da;},_0x262804[_0x27ba9e(0x1d6)]=function(_0x4da6c3,_0x168ebe){return _0x4da6c3+_0x168ebe;},_0x262804['kUXtL']=_0x27ba9e(0x17c),_0x262804[_0x27ba9e(0x176)]=function(_0xd27798,_0x3c486e){return _0xd27798!==_0x3c486e;},_0x262804[_0x27ba9e(0x19d)]=function(_0x81b88,_0x1ec561){return _0x81b88>=_0x1ec561;},_0x262804[_0x27ba9e(0x154)]=function(_0x1da09a,_0x9a3e0){return _0x1da09a+_0x9a3e0;},_0x262804[_0x27ba9e(0x1b8)]=function(_0x17fcca,_0x38281f){return _0x17fcca+_0x38281f;},_0x262804['VCJWG']=function(_0x72a5cd,_0x1c0033){return _0x72a5cd>=_0x1c0033;},_0x262804['JyCja']=function(_0x71d2fe,_0x2f2871){return _0x71d2fe+_0x2f2871;};const _0x5f0dd7=_0x262804,{failureThresholdCount:_0x512d2e}=this[_0x27ba9e(0x1c4)];if(_0x5f0dd7['OjVHS'](_0x512d2e,null)||_0x5f0dd7[_0x27ba9e(0x1a8)](_0x512d2e,undefined)||_0x5f0dd7[_0x27ba9e(0x17d)](_0x512d2e,0x0))return logger[_0x27ba9e(0x18f)]('['+TAG+_0x27ba9e(0x158)),![];if(this['isCIMode']){try{if(fs[_0x27ba9e(0x192)](this['failFastActiveMarkerPath']))return logger[_0x27ba9e(0x18f)]('['+TAG+_0x27ba9e(0x184)),!this[_0x27ba9e(0x1aa)][_0x27ba9e(0x18c)]&&(this[_0x27ba9e(0x1aa)][_0x27ba9e(0x18c)]=!![]),this[_0x27ba9e(0x160)](),!![];}catch(_0x4b4a52){logger['error']('['+TAG+_0x27ba9e(0x1c2)+_0x4b4a52[_0x27ba9e(0x16b)]+(_0x4b4a52['stack']?_0x5f0dd7[_0x27ba9e(0x1d6)](_0x5f0dd7['kUXtL'],_0x4b4a52[_0x27ba9e(0x18a)]):''));}const _0x3da873=_0x5f0dd7[_0x27ba9e(0x176)](this[_0x27ba9e(0x1aa)]['lastAPIFailedCount'],undefined)?this[_0x27ba9e(0x1aa)][_0x27ba9e(0x15e)]:0x0;if(_0x5f0dd7['sBHYt'](_0x3da873,_0x512d2e)){logger['info']('['+TAG+_0x27ba9e(0x1b7)+_0x3da873+',\x20threshold:\x20'+_0x512d2e+'.');try{fs[_0x27ba9e(0x1da)](this[_0x27ba9e(0x1c9)],new Date()[_0x27ba9e(0x16c)]()),logger[_0x27ba9e(0x18f)]('['+TAG+'_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20'+this[_0x27ba9e(0x1c9)]),this['state']['failFastActive']=!![];}catch(_0x57f68b){logger[_0x27ba9e(0x15a)]('['+TAG+'_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20'+_0x57f68b[_0x27ba9e(0x16b)]+(_0x57f68b[_0x27ba9e(0x18a)]?_0x5f0dd7[_0x27ba9e(0x154)](_0x5f0dd7[_0x27ba9e(0x1d2)],_0x57f68b[_0x27ba9e(0x18a)]):''));}return this[_0x27ba9e(0x160)](),!![];}}else{let _0x418baf;try{_0x418baf=await this[_0x27ba9e(0x15f)]['readState']();if(!_0x418baf)return logger[_0x27ba9e(0x189)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.'),![];}catch(_0x37c6ab){return logger[_0x27ba9e(0x15a)]('['+TAG+_0x27ba9e(0x187)+_0x37c6ab[_0x27ba9e(0x16b)]+(_0x37c6ab[_0x27ba9e(0x18a)]?_0x5f0dd7['bUmVc'](_0x5f0dd7[_0x27ba9e(0x1d2)],_0x37c6ab['stack']):'')),![];}this[_0x27ba9e(0x1aa)]={...this[_0x27ba9e(0x1a3)](),..._0x418baf,'uniqueFailedTests':new Set(_0x418baf['uniqueFailedTests']||[])};if(this['state']['failFastActive'])return logger[_0x27ba9e(0x18f)]('['+TAG+_0x27ba9e(0x1cf)),!![];const _0x3d8322=this[_0x27ba9e(0x1aa)][_0x27ba9e(0x157)],_0x21dc3d=_0x3d8322['size'];if(_0x5f0dd7[_0x27ba9e(0x1ab)](_0x21dc3d,_0x512d2e)){try{logger['info']('['+TAG+_0x27ba9e(0x18e)+_0x21dc3d+_0x27ba9e(0x163)+_0x512d2e+'.'),this['state']['failFastActive']=!![];}catch(_0x1a01cb){logger[_0x27ba9e(0x15a)]('['+TAG+'_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20'+_0x1a01cb['message']+(_0x1a01cb[_0x27ba9e(0x18a)]?_0x5f0dd7[_0x27ba9e(0x167)](_0x5f0dd7[_0x27ba9e(0x1d2)],_0x1a01cb[_0x27ba9e(0x18a)]):''));}return!![];}}return![];}async[a122_0xccf01(0x1d8)](){const _0x293e76=a122_0xccf01,_0x1030a8={};_0x1030a8[_0x293e76(0x1bf)]=function(_0x40f761,_0x3c9d04){return _0x40f761+_0x3c9d04;},_0x1030a8[_0x293e76(0x171)]='\x0aStack:\x20';const _0x350977=_0x1030a8;this['stopPolling']();if(this[_0x293e76(0x1c1)])logger['debug']('['+TAG+_0x293e76(0x1cc));else try{const _0x26c7b8={...this[_0x293e76(0x1aa)],'uniqueFailedTests':Array[_0x293e76(0x162)](this['state']['uniqueFailedTests']||new Set())};await this['fileHelper'][_0x293e76(0x175)](_0x26c7b8),logger[_0x293e76(0x18f)]('['+TAG+_0x293e76(0x19b));}catch(_0x3bd833){logger[_0x293e76(0x15a)]('['+TAG+_0x293e76(0x1bc)+_0x3bd833[_0x293e76(0x16b)]+(_0x3bd833['stack']?_0x350977[_0x293e76(0x1bf)](_0x350977[_0x293e76(0x171)],_0x3bd833[_0x293e76(0x18a)]):''));}}}module[a122_0xccf01(0x1a0)]=FailFastManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x4e33f6=a123_0x3b86;(function(_0x12077a,_0x560421){const _0x8e12fb=a123_0x3b86,_0x27fbff=_0x12077a();while(!![]){try{const _0x20ae60=parseInt(_0x8e12fb(0x1d2))/0x1+parseInt(_0x8e12fb(0x1b7))/0x2*(parseInt(_0x8e12fb(0x1b9))/0x3)+parseInt(_0x8e12fb(0x1d7))/0x4*(-parseInt(_0x8e12fb(0x1d0))/0x5)+-parseInt(_0x8e12fb(0x1a0))/0x6*(parseInt(_0x8e12fb(0x1a4))/0x7)+parseInt(_0x8e12fb(0x1be))/0x8*(-parseInt(_0x8e12fb(0x1ca))/0x9)+parseInt(_0x8e12fb(0x1b8))/0xa+parseInt(_0x8e12fb(0x1d5))/0xb;if(_0x20ae60===_0x560421)break;else _0x27fbff['push'](_0x27fbff['shift']());}catch(_0x19adf9){_0x27fbff['push'](_0x27fbff['shift']());}}}(a123_0x2618,0x89372));function a123_0x3b86(_0x4904fa,_0x197d7d){const _0x261871=a123_0x2618();return a123_0x3b86=function(_0x3b869e,_0x368a3f){_0x3b869e=_0x3b869e-0x19a;let _0x3c1d7d=_0x261871[_0x3b869e];return _0x3c1d7d;},a123_0x3b86(_0x4904fa,_0x197d7d);}const fs=require('fs'),logger=require(a123_0x4e33f6(0x1bb))[a123_0x4e33f6(0x1aa)],TAG=a123_0x4e33f6(0x1ce);class FileHelper{constructor(_0x11008a,_0x3113f4,_0x10a8c8,_0x5a9bcd){const _0x10a070=a123_0x4e33f6,_0xdf424d={};_0xdf424d[_0x10a070(0x1c6)]='4|0|3|1|2',_0xdf424d['nDdeG']=_0x10a070(0x1d8);const _0x1bb33b=_0xdf424d,_0xe05709=_0x1bb33b['sZwCO'][_0x10a070(0x1cf)]('|');let _0x5610d5=0x0;while(!![]){switch(_0xe05709[_0x5610d5++]){case'0':this['stateFilePath']=_0x3113f4;continue;case'1':this[_0x10a070(0x1b0)]=_0x5a9bcd;continue;case'2':if(!fs['existsSync'](this[_0x10a070(0x1ab)]))try{fs[_0x10a070(0x1d3)](this['stateFilePath'],'{}',_0x1bb33b[_0x10a070(0x1a8)]);}catch(_0x157932){logger[_0x10a070(0x19c)]('['+TAG+_0x10a070(0x1b6)+_0x157932[_0x10a070(0x1a6)]+'\x20'+_0x157932[_0x10a070(0x1b4)]);}continue;case'3':this[_0x10a070(0x1cb)]=_0x10a8c8;continue;case'4':this[_0x10a070(0x1b1)]=_0x11008a;continue;}break;}}async[a123_0x4e33f6(0x1b2)](){const _0x1bd1ad=a123_0x4e33f6,_0x3f06b2={};_0x3f06b2[_0x1bd1ad(0x1a7)]=function(_0x31ab25,_0x202e4c){return _0x31ab25===_0x202e4c;},_0x3f06b2[_0x1bd1ad(0x1d1)]='EEXIST';const _0xa7e443=_0x3f06b2;let _0x43d4f7;try{return _0x43d4f7=fs['openSync'](this[_0x1bd1ad(0x1cb)],'wx'),_0x43d4f7;}catch(_0x2fe521){if(_0xa7e443[_0x1bd1ad(0x1a7)](_0x2fe521[_0x1bd1ad(0x1c5)],_0xa7e443[_0x1bd1ad(0x1d1)]))return null;throw _0x2fe521;}}async[a123_0x4e33f6(0x19b)](_0x25ab5f){const _0x197853=a123_0x4e33f6;if(_0x25ab5f)try{fs[_0x197853(0x1d6)](_0x25ab5f),fs[_0x197853(0x1bc)](this[_0x197853(0x1cb)]);}catch(_0x3ca8b6){logger['error']('['+TAG+_0x197853(0x1a9)+_0x3ca8b6[_0x197853(0x1a6)]+'\x20'+_0x3ca8b6['stack']);}}[a123_0x4e33f6(0x1cd)](){const _0x41f52b=a123_0x4e33f6,_0x2d7f25={};_0x2d7f25[_0x41f52b(0x1b5)]='utf8';const _0x3fa22d=_0x2d7f25;try{const _0xb61300=fs[_0x41f52b(0x1bd)](this['stateFilePath'],_0x3fa22d[_0x41f52b(0x1b5)]);return JSON[_0x41f52b(0x1a1)](_0xb61300);}catch(_0x49c27d){return logger[_0x41f52b(0x19c)]('['+TAG+_0x41f52b(0x1b3)+_0x49c27d[_0x41f52b(0x1a6)]+'\x20'+_0x49c27d[_0x41f52b(0x1b4)]),null;}}async[a123_0x4e33f6(0x1cc)](_0x409883){const _0x20386a=a123_0x4e33f6,_0x3267fc={..._0x409883,'uniqueFailedTests':Array[_0x20386a(0x1c2)](_0x409883[_0x20386a(0x1c0)])?_0x409883[_0x20386a(0x1c0)]:Array[_0x20386a(0x1af)](_0x409883[_0x20386a(0x1c0)]||[])};try{fs[_0x20386a(0x1d3)](this[_0x20386a(0x1ab)],JSON[_0x20386a(0x19d)](_0x3267fc,null,0x2));}catch(_0x19ed9e){logger['error']('['+TAG+']\x20Error\x20writing\x20state\x20file:\x20'+_0x19ed9e[_0x20386a(0x1a6)]+'\x20'+_0x19ed9e['stack']);throw _0x19ed9e;}}async[a123_0x4e33f6(0x1d4)](_0x4c0170,_0x585104){const _0x4f9cc4=a123_0x4e33f6,_0x3e582d={};_0x3e582d[_0x4f9cc4(0x1a3)]=function(_0x569310,_0xe5b935){return _0x569310!==_0xe5b935;},_0x3e582d['TVEoC']='function',_0x3e582d[_0x4f9cc4(0x1ac)]=function(_0x403e0a,_0xa79149){return _0x403e0a===_0xa79149;},_0x3e582d[_0x4f9cc4(0x1c4)]=_0x4f9cc4(0x1a5);const _0xc85752=_0x3e582d,_0x225748=await this[_0x4f9cc4(0x1b2)]();if(!_0x225748)return logger[_0x4f9cc4(0x1a2)]('['+TAG+_0x4f9cc4(0x1ae)),{'newState':this[_0x4f9cc4(0x1cd)]()||this[_0x4f9cc4(0x1b0)],'isNewFailure':![]};try{let _0x1069b9=this[_0x4f9cc4(0x1cd)]();!_0x1069b9&&(_0x1069b9=JSON[_0x4f9cc4(0x1a1)](JSON[_0x4f9cc4(0x19d)](this['defaultState'])));if(!_0x1069b9[_0x4f9cc4(0x1c0)]||_0xc85752[_0x4f9cc4(0x1a3)](typeof _0x1069b9['uniqueFailedTests'][Symbol[_0x4f9cc4(0x19a)]],_0xc85752[_0x4f9cc4(0x19f)]))_0x1069b9[_0x4f9cc4(0x1c0)]=new Set();else Array['isArray'](_0x1069b9[_0x4f9cc4(0x1c0)])&&(_0x1069b9[_0x4f9cc4(0x1c0)]=new Set(_0x1069b9['uniqueFailedTests']));_0x1069b9[_0x4f9cc4(0x1c1)]=_0x585104;let _0x261d47=![];_0xc85752['Qwour'](_0x4c0170[_0x4f9cc4(0x1c3)],_0xc85752['ZiryT'])&&(_0x1069b9[_0x4f9cc4(0x1ba)]+=0x1,!_0x1069b9[_0x4f9cc4(0x1c0)][_0x4f9cc4(0x1ad)](_0x4c0170[_0x4f9cc4(0x1bf)])&&(_0x1069b9[_0x4f9cc4(0x1c0)][_0x4f9cc4(0x1c9)](_0x4c0170[_0x4f9cc4(0x1bf)]),_0x261d47=!![]));await this[_0x4f9cc4(0x1cc)](_0x1069b9);const _0x18c176={};return _0x18c176['newState']=_0x1069b9,_0x18c176[_0x4f9cc4(0x1c8)]=_0x261d47,_0x18c176;}finally{await this['releaseLock'](_0x225748);}}async[a123_0x4e33f6(0x19e)](_0x2c2eb5){const _0x1836c8=a123_0x4e33f6,_0x46550b=await this['acquireLock']();if(!_0x46550b)return logger['warn']('['+TAG+']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.'),this[_0x1836c8(0x1cd)]()||this['defaultState'];try{let _0x42f9ad=this[_0x1836c8(0x1cd)]();return!_0x42f9ad&&(_0x42f9ad=JSON[_0x1836c8(0x1a1)](JSON[_0x1836c8(0x19d)](this[_0x1836c8(0x1b0)]))),_0x42f9ad['lastAPIFailedCount']=_0x2c2eb5,await this[_0x1836c8(0x1cc)](_0x42f9ad),_0x42f9ad;}finally{await this[_0x1836c8(0x19b)](_0x46550b);}}}module[a123_0x4e33f6(0x1c7)]=FileHelper;function a123_0x2618(){const _0x5badb2=['isNewFailure','add','201573HuJFut','lockFilePath','writeState','readState','FailFastFileHelper','split','545cRqDOI','AikIi','92629bJSHpn','writeFileSync','recordTestResult','15425377Bvfbki','closeSync','33704lwwQoJ','utf8','iterator','releaseLock','error','stringify','updateAPIFailedCount','TVEoC','6pJERXA','parse','warn','RCtEN','520667djhqqk','failed','message','avtBL','nDdeG',']\x20Error\x20releasing\x20lock:\x20','winstonLogger','stateFilePath','Qwour','has',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','from','defaultState','failFastConfig','acquireLock',']\x20Error\x20reading\x20state\x20file:\x20','stack','xoebh',']\x20Error\x20creating\x20state\x20file:\x20','8flMqyi','2263980MXqMJH','496653VUkrlL','failedTests','../logger','unlinkSync','readFileSync','296FeTmxb','fullName','uniqueFailedTests','totalTests','isArray','status','ZiryT','code','sZwCO','exports'];a123_0x2618=function(){return _0x5badb2;};return a123_0x2618();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124_0x351491=a124_0x5ce8;(function(_0x5e3c37,_0x559bb8){const _0x1c720c=a124_0x5ce8,_0x468c09=_0x5e3c37();while(!![]){try{const _0x46408c=-parseInt(_0x1c720c(0xa6))/0x1+parseInt(_0x1c720c(0x89))/0x2*(parseInt(_0x1c720c(0x82))/0x3)+-parseInt(_0x1c720c(0x7a))/0x4*(parseInt(_0x1c720c(0x85))/0x5)+parseInt(_0x1c720c(0x93))/0x6*(-parseInt(_0x1c720c(0x6d))/0x7)+-parseInt(_0x1c720c(0x73))/0x8*(parseInt(_0x1c720c(0xa4))/0x9)+-parseInt(_0x1c720c(0x66))/0xa*(parseInt(_0x1c720c(0x9c))/0xb)+parseInt(_0x1c720c(0xa1))/0xc*(parseInt(_0x1c720c(0x68))/0xd);if(_0x46408c===_0x559bb8)break;else _0x468c09['push'](_0x468c09['shift']());}catch(_0x26634b){_0x468c09['push'](_0x468c09['shift']());}}}(a124_0x4c73,0xe53b2));const os=require('os'),path=require(a124_0x351491(0xa7)),fs=require('fs'),logger=require(a124_0x351491(0x75))[a124_0x351491(0x9a)],RETRY_TESTS_ON_FAILURE=a124_0x351491(0x97),ABORT_BUILD_ON_FAILURE='abortBuildOnFailure',RUN_PREVIOUSLY_FAILED_FIRST='runPreviouslyFailedFirst',RERUN_PREVIOUSLY_FAILED=a124_0x351491(0xa2),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_0x351491(0x99)]);function a124_0x4c73(){const _0x2cf6d0=['_setTestOrdering','isRetryEnabled','5VsHIxo','writeFailureToFile','getTestOrderingName','disable','28WlHicx','getOrchestrationData','vTnhU','join','config','appendFileSync','existsSync','testOrdering','UTgzP','getRetryCount','78534aVRHzj','enabled','enable','name','retryTestsOnFailure','getEnabled','jest','winstonLogger','toLowerCase','1570723Ztunyl','exports','_setRerunPreviouslyFailed','maxRetries','rerun_previously_failed','3020508awkzfW','rerunPreviouslyFailed','run_previously_failed_first','171OoVpCs','runPreviouslyFailedFirst','1731672RdVQlb','path','abort_build_on_failure','_setSkipFlakyAndFailed','env','90xSeasx','getBuildStartData','260WOUByb','getName','isAbortBuildOnFailureEnabled','_setRunPreviouslyFailedFirst','has','7yeSLuQ','getRerunPreviouslyFailed','testOrderingEnabled','BROWSERSTACK_TESTHUB_UUID','getRunPreviouslyFailedFirst','.txt','580344WvmDhD','retry_tests_on_failure','../logger','getSkipFlakyAndFailed','skipFlakyAndFailed','tmpdir','isAbortBuildOnFailureSupported','1420908AUGwnY','getInstance','checkAbortBuildFileExists','getFailureThreshold','testOrchestrationOptions','failed_tests_','maxFailures','_instance','143184QIHFVR'];a124_0x4c73=function(){return _0x2cf6d0;};return a124_0x4c73();}class TestOrdering{constructor(){const _0x24fc81=a124_0x351491;this['enabled']=![],this[_0x24fc81(0x96)]=null;}[a124_0x351491(0x95)](_0x1f5ff2){const _0x1f48af=a124_0x351491;this['enabled']=!![],this[_0x1f48af(0x96)]=_0x1f5ff2;}[a124_0x351491(0x88)](){const _0x58130a=a124_0x351491;this[_0x58130a(0x94)]=![],this[_0x58130a(0x96)]=null;}[a124_0x351491(0x98)](){const _0xd48df=a124_0x351491;return this[_0xd48df(0x94)];}['getName'](){const _0x22d872=a124_0x351491;return this[_0x22d872(0x96)];}}class OrchestrationUtils{static [a124_0x351491(0x81)]=null;constructor(_0x489803){const _0x594c5e=a124_0x351491,_0x46b01b={};_0x46b01b[_0x594c5e(0x91)]=function(_0x2303f9,_0x17629c){return _0x2303f9||_0x17629c;};const _0x10128b=_0x46b01b;this[_0x594c5e(0xa5)]=![],this[_0x594c5e(0xa2)]=![],this[_0x594c5e(0x77)]=![],this['testOrdering']=new TestOrdering(),this[_0x594c5e(0x8d)]=_0x10128b[_0x594c5e(0x91)](_0x489803,{});const _0x154630=_0x489803&&_0x489803[_0x594c5e(0x7e)]||{};this['_setRunPreviouslyFailedFirst'](_0x154630[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x594c5e(0x9e)](_0x154630[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x594c5e(0x64)](_0x154630[SKIP_FLAKY_AND_FAILED]||![]);}static[a124_0x351491(0x7b)](_0x2aad4c){const _0x3ec933=a124_0x351491;return!OrchestrationUtils[_0x3ec933(0x81)]&&_0x2aad4c&&(OrchestrationUtils[_0x3ec933(0x81)]=new OrchestrationUtils(_0x2aad4c)),OrchestrationUtils[_0x3ec933(0x81)];}[a124_0x351491(0x84)](){const _0x5acb3e=a124_0x351491,_0x5e7c30=(this[_0x5acb3e(0x8d)][_0x5acb3e(0x7e)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x5e7c30[_0x5acb3e(0x94)];}[a124_0x351491(0x92)](){const _0x1f6ea4=a124_0x351491,_0x51eda9=(this['config'][_0x1f6ea4(0x7e)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x4f9a13=0x0;return this['isRetryEnabled'](this[_0x1f6ea4(0x8d)])&&(_0x4f9a13=_0x51eda9[_0x1f6ea4(0x9f)]||0x1),_0x4f9a13;}[a124_0x351491(0x8a)](){const _0x17e051=a124_0x351491,_0x1bbac3=this[_0x17e051(0x8d)][_0x17e051(0x7e)]||{},_0x20f9a6={};for(const _0x3f9b5e in _0x1bbac3){ALLOWED_ORCHESTRATION_KEYS['has'](_0x3f9b5e)&&(_0x20f9a6[_0x3f9b5e]=_0x1bbac3[_0x3f9b5e]);}return _0x20f9a6;}[a124_0x351491(0x7c)](){const _0x358e02=a124_0x351491,_0x5b0aff=process['env'][_0x358e02(0x70)],_0x96df2a=path[_0x358e02(0x8c)](os[_0x358e02(0x78)](),'abort_build_'+_0x5b0aff);return fs[_0x358e02(0x8f)](_0x96df2a);}[a124_0x351491(0x86)](_0x2a9ca2){const _0x5359e5=a124_0x351491,_0x161c2a=process[_0x5359e5(0x65)][_0x5359e5(0x70)],_0x4b873d=path[_0x5359e5(0x8c)](os[_0x5359e5(0x78)](),_0x5359e5(0x7f)+_0x161c2a+_0x5359e5(0x72));fs[_0x5359e5(0x8e)](_0x4b873d,_0x2a9ca2+'\x0a');}[a124_0x351491(0x79)](_0x30e723){const _0x8cbbab=a124_0x351491,_0x44c603={};_0x44c603[_0x8cbbab(0x8b)]=function(_0x6f0710,_0x8a756){return _0x6f0710||_0x8a756;};const _0x45401b=_0x44c603;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x8cbbab(0x6c)](_0x45401b['vTnhU'](_0x30e723,'')[_0x8cbbab(0x9b)]());}[a124_0x351491(0x6a)](){const _0x538104=a124_0x351491,_0x5a020d=(this[_0x538104(0x8d)][_0x538104(0x7e)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x5a020d[_0x538104(0x94)];}[a124_0x351491(0x7d)](){const _0x3156b8=a124_0x351491,_0x50e1c2=(this[_0x3156b8(0x8d)][_0x3156b8(0x7e)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x50e1c2[_0x3156b8(0x80)]||0x5;;}['getRunPreviouslyFailedFirst'](){const _0x27a85b=a124_0x351491;return this[_0x27a85b(0xa5)];}[a124_0x351491(0x6b)](_0x28c784){const _0x28feac=a124_0x351491;this[_0x28feac(0xa5)]=!!_0x28c784,this[_0x28feac(0x83)]();}[a124_0x351491(0x6e)](){const _0x3913b1=a124_0x351491;return this[_0x3913b1(0xa2)];}[a124_0x351491(0x9e)](_0xe6593e){const _0x514d60=a124_0x351491;this['rerunPreviouslyFailed']=!!_0xe6593e,this[_0x514d60(0x83)]();}[a124_0x351491(0x76)](){const _0x4864a4=a124_0x351491;return this[_0x4864a4(0x77)];}[a124_0x351491(0x64)](_0x19ee1a){const _0x298998=a124_0x351491;this[_0x298998(0x77)]=!!_0x19ee1a,this[_0x298998(0x83)]();}[a124_0x351491(0x83)](){const _0x549b0e=a124_0x351491;if(this['runPreviouslyFailedFirst'])this[_0x549b0e(0xa2)]=![],this[_0x549b0e(0x77)]=![],this['testOrdering']['enable'](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x549b0e(0xa2)])this[_0x549b0e(0xa5)]=![],this['skipFlakyAndFailed']=![],this[_0x549b0e(0x90)][_0x549b0e(0x95)](RERUN_PREVIOUSLY_FAILED);else this['skipFlakyAndFailed']?(this[_0x549b0e(0xa5)]=![],this[_0x549b0e(0xa2)]=![],this[_0x549b0e(0x90)][_0x549b0e(0x95)](SKIP_FLAKY_AND_FAILED)):this[_0x549b0e(0x90)]['disable']();}}[a124_0x351491(0x6f)](){const _0x40cecd=a124_0x351491;return this['testOrdering'][_0x40cecd(0x98)]();}[a124_0x351491(0x87)](){const _0x25e316=a124_0x351491;if(this[_0x25e316(0x90)][_0x25e316(0x98)]())return this['testOrdering'][_0x25e316(0x69)]();return null;}[a124_0x351491(0x67)](){const _0x19476b=a124_0x351491,_0x285a3b={};return _0x285a3b[_0x19476b(0xa0)]={'enabled':this[_0x19476b(0x6e)]()},_0x285a3b[_0x19476b(0xa3)]={'enabled':this[_0x19476b(0x71)]()},_0x285a3b['skip_failing_and_flaky']={'enabled':this[_0x19476b(0x76)]()},this[_0x19476b(0x84)]()&&(_0x285a3b[_0x19476b(0x74)]={'enabled':!![],'max_retries':this['getRetryCount']()}),this['isAbortBuildOnFailureEnabled']()&&(_0x285a3b[_0x19476b(0xa8)]={'enabled':!![],'max_failures':this[_0x19476b(0x7d)]()}),_0x285a3b;}}function a124_0x5ce8(_0x6921a2,_0x2eb2ba){const _0x4c7324=a124_0x4c73();return a124_0x5ce8=function(_0x5ce8c5,_0x3de9f2){_0x5ce8c5=_0x5ce8c5-0x64;let _0x245181=_0x4c7324[_0x5ce8c5];return _0x245181;},a124_0x5ce8(_0x6921a2,_0x2eb2ba);}module[a124_0x351491(0x9d)]=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_0x475520=a125_0x5ca8;(function(_0x364af1,_0x1030d1){const _0x4c87c7=a125_0x5ca8,_0x3c6acd=_0x364af1();while(!![]){try{const _0x404715=-parseInt(_0x4c87c7(0x20b))/0x1*(parseInt(_0x4c87c7(0x1dc))/0x2)+parseInt(_0x4c87c7(0x205))/0x3*(parseInt(_0x4c87c7(0x1e6))/0x4)+-parseInt(_0x4c87c7(0x1d6))/0x5+parseInt(_0x4c87c7(0x1e8))/0x6*(-parseInt(_0x4c87c7(0x1d4))/0x7)+-parseInt(_0x4c87c7(0x1ed))/0x8+parseInt(_0x4c87c7(0x1ee))/0x9+parseInt(_0x4c87c7(0x208))/0xa;if(_0x404715===_0x1030d1)break;else _0x3c6acd['push'](_0x3c6acd['shift']());}catch(_0x1274cc){_0x3c6acd['push'](_0x3c6acd['shift']());}}}(a125_0x185a,0xdd099));function a125_0x185a(){const _0x47836b=['undefined','6VNqskG','message','body',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','RequestUtils','3336720kmkwrQ','9143208XTQnaE','\x20and\x20data:\x20','ZfCOO','DVLHn','Test\x20added','./constants','?buildName=','failedTestsCount','url','\x20request\x20to\x20','PUT',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','\x20and\x20token:\x20','Content-Type','statusCode','yRBns','getSplitFiles','status','postSplitFiles','GtFwu',',\x20projectName=',']\x20Error\x20in\x20putFailedTests:\x20','bxtAw','2238591dasvbn','jSMpn','write','28127840BPitXS','KtxzM','\x20-\x20','4tKjGSo','NshRS','debug','IqAqm','TFPiE','request','YJiPr','&buildRunIdentifier=','aKvJl','&projectName=','xjdHp','stack','https','parse','putFailedTests','YyquW',']\x20Request\x20failed\x20for\x20',']\x20Successfully\x20posted\x20split\x20files\x20to\x20',']\x20Sending\x20','\x20with\x20headers:\x20','BROWSERSTACK_TESTHUB_JWT','ehTMr','QoAdZ',',\x20buildRunIdentifier=','../logger','8945657upWqjm',']\x20Sending\x20GET\x20to\x20','5987540nzvhnT','error','stringify',']\x20Error\x20in\x20getFailedTestsCount:\x20','GET','exports','761586nUHoie','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','_request','SqIfO','iWwKi','jajVk','end','LFVMB','POST','tmbkJ','8nBuwub'];a125_0x185a=function(){return _0x47836b;};return a125_0x185a();}function a125_0x5ca8(_0x370a91,_0x7627eb){const _0x185a40=a125_0x185a();return a125_0x5ca8=function(_0x5ca8d0,_0x3ed650){_0x5ca8d0=_0x5ca8d0-0x1c3;let _0x458da5=_0x185a40[_0x5ca8d0];return _0x458da5;},a125_0x5ca8(_0x370a91,_0x7627eb);}const https=require(a125_0x475520(0x1c7)),{URL}=require(a125_0x475520(0x1f6)),logger=require(a125_0x475520(0x1d3))['winstonLogger'],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a125_0x475520(0x1f3)),TAG=a125_0x475520(0x1ec);class RequestUtils{static async[a125_0x475520(0x1de)](_0x6f0779,_0x62eb51,_0x2f7f39=null){const _0x1b05f5=a125_0x475520,_0x8a5a18={'JWnSK':'data','hKyVr':_0x1b05f5(0x1e2),'CDykc':function(_0x35196a,_0x2db4a4){return _0x35196a(_0x2db4a4);},'IqAqm':function(_0x5e18a9,_0x14d289){return _0x5e18a9(_0x14d289);},'KtxzM':'error','SqIfO':function(_0x29936c,_0x3f8264){return _0x29936c===_0x3f8264;},'abaZe':_0x1b05f5(0x1e4),'LFVMB':_0x1b05f5(0x1f8),'hflWF':'application/json','CaybE':function(_0x1250ed,_0xcdb4d0){return _0x1250ed+_0xcdb4d0;}},_0x1a4c2d=process['env'][_0x1b05f5(0x1cf)]||'',_0x491fc0={};_0x491fc0['Authorization']='Bearer\x20'+_0x1a4c2d,_0x491fc0[_0x1b05f5(0x1fb)]=_0x8a5a18['hflWF'];const _0x3aa038=_0x491fc0,{hostname:_0x575f29,pathname:_0x3e3e57,search:_0x677eba}=new URL(_0x62eb51),_0x4c34a6={'hostname':_0x575f29,'path':_0x8a5a18['CaybE'](_0x3e3e57,_0x677eba),'method':_0x6f0779,'headers':_0x3aa038};return logger['debug']('['+TAG+_0x1b05f5(0x1cd)+_0x6f0779+_0x1b05f5(0x1f7)+_0x62eb51+_0x1b05f5(0x1ce)+JSON['stringify'](_0x3aa038)+_0x1b05f5(0x1ef)+JSON[_0x1b05f5(0x1d8)](_0x2f7f39)+_0x1b05f5(0x1fa)+_0x1a4c2d),new Promise((_0x28d6d9,_0x594eb6)=>{const _0x1855d9=_0x1b05f5,_0x37ee00={'GtFwu':function(_0x5d6a6e,_0x1ffe1c){return _0x8a5a18['CDykc'](_0x5d6a6e,_0x1ffe1c);},'iWwKi':function(_0x1f142d,_0x1b4e31){const _0x5ed7a2=a125_0x5ca8;return _0x8a5a18[_0x5ed7a2(0x20e)](_0x1f142d,_0x1b4e31);}},_0x37807a=https[_0x1855d9(0x210)](_0x4c34a6,_0x24d716=>{let _0x4000bd='';_0x24d716['on'](_0x8a5a18['JWnSK'],_0x60007f=>{_0x4000bd+=_0x60007f;}),_0x24d716['on'](_0x8a5a18['hKyVr'],()=>{const _0x20855d=a125_0x5ca8;try{const _0x1bde28=_0x4000bd?JSON[_0x20855d(0x1c8)](_0x4000bd):{},_0x4cc30f={};_0x4cc30f[_0x20855d(0x1ff)]=_0x24d716[_0x20855d(0x1fc)],_0x4cc30f[_0x20855d(0x1ea)]=_0x1bde28,_0x4cc30f['headers']=_0x24d716['headers'],_0x37ee00[_0x20855d(0x201)](_0x28d6d9,_0x4cc30f);}catch(_0xa549ca){logger[_0x20855d(0x1d7)]('['+TAG+_0x20855d(0x1eb)+_0x4000bd+_0x20855d(0x20a)+_0xa549ca[_0x20855d(0x1e9)]+'\x20'+_0xa549ca['stack']),_0x37ee00[_0x20855d(0x1e0)](_0x594eb6,new Error('Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0xa549ca[_0x20855d(0x1e9)]));}});});_0x37807a['on'](_0x8a5a18[_0x1855d9(0x209)],_0x29008f=>{const _0x12d043=_0x1855d9;logger[_0x12d043(0x1d7)]('['+TAG+_0x12d043(0x1cb)+_0x6f0779+'\x20'+_0x62eb51+':\x20'+_0x29008f[_0x12d043(0x1e9)]+'\x20'+_0x29008f[_0x12d043(0x1c6)]),_0x37ee00['iWwKi'](_0x594eb6,_0x29008f);}),_0x2f7f39&&(_0x8a5a18['SqIfO'](_0x6f0779,_0x8a5a18['abaZe'])||_0x8a5a18[_0x1855d9(0x1df)](_0x6f0779,_0x8a5a18[_0x1855d9(0x1e3)]))&&_0x37807a[_0x1855d9(0x207)](JSON['stringify'](_0x2f7f39)),_0x37807a[_0x1855d9(0x1e2)]();});}static async[a125_0x475520(0x200)](_0xce22f8){const _0x23255f=a125_0x475520,_0x58781b={};_0x58781b[_0x23255f(0x206)]=_0x23255f(0x1e4),_0x58781b[_0x23255f(0x1e1)]=function(_0x2459b5,_0x3ef22a){return _0x2459b5===_0x3ef22a;};const _0x3b96d1=_0x58781b,_0x555ef7=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x2ddec8=await this[_0x23255f(0x1de)](_0x3b96d1[_0x23255f(0x206)],_0x555ef7,_0xce22f8);return _0x3b96d1[_0x23255f(0x1e1)](_0x2ddec8['status'],0xc8)?logger['debug']('['+TAG+_0x23255f(0x1cc)+_0x555ef7):logger[_0x23255f(0x1d7)]('['+TAG+']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20'+_0x555ef7+':\x20'+JSON[_0x23255f(0x1d8)](_0x2ddec8['body'])+',\x20status:\x20'+_0x2ddec8['status']),_0x2ddec8;}catch(_0x545ef0){logger[_0x23255f(0x1d7)]('['+TAG+_0x23255f(0x203)+_0x545ef0[_0x23255f(0x1e9)]+'\x20'+_0x545ef0[_0x23255f(0x1c6)]);const _0x45f8ec={};_0x45f8ec[_0x23255f(0x1e9)]=_0x545ef0[_0x23255f(0x1e9)];const _0x14aa0d={};return _0x14aa0d[_0x23255f(0x1ff)]=0x1f4,_0x14aa0d[_0x23255f(0x1ea)]=_0x45f8ec,_0x14aa0d;}}static async[a125_0x475520(0x1fe)](_0x3100ff){const _0x1ae2e0=a125_0x475520,_0x55d052={};_0x55d052[_0x1ae2e0(0x1ca)]=_0x1ae2e0(0x1da),_0x55d052[_0x1ae2e0(0x1e5)]=function(_0x379035,_0x3bcb8c){return _0x379035===_0x3bcb8c;};const _0x106275=_0x55d052;try{const _0x557934=await this[_0x1ae2e0(0x1de)](_0x106275['YyquW'],_0x3100ff);if(_0x106275[_0x1ae2e0(0x1e5)](_0x557934[_0x1ae2e0(0x1ff)],0xc8))return _0x557934[_0x1ae2e0(0x1ea)];return{};}catch(_0x6aa4e8){return logger[_0x1ae2e0(0x1d7)]('['+TAG+_0x1ae2e0(0x203)+_0x6aa4e8['message']+'\x20'+_0x6aa4e8[_0x1ae2e0(0x1c6)]),{};}}static async[a125_0x475520(0x1c9)](_0x21a3dd){const _0x4a5e3d=a125_0x475520,_0x59e959={};_0x59e959['TFPiE']=_0x4a5e3d(0x1f8),_0x59e959['ZfCOO']=function(_0x24d459,_0x1ff9d7){return _0x24d459===_0x1ff9d7;},_0x59e959['QoAdZ']=_0x4a5e3d(0x1f2);const _0x1a2c16=_0x59e959,_0x1536be=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0xb0ebe3=await this['_request'](_0x1a2c16[_0x4a5e3d(0x20f)],_0x1536be,_0x21a3dd);if(_0x1a2c16[_0x4a5e3d(0x1f0)](_0xb0ebe3[_0x4a5e3d(0x1ff)],0xc8)&&_0xb0ebe3[_0x4a5e3d(0x1ea)]&&_0x1a2c16[_0x4a5e3d(0x1f0)](_0xb0ebe3['body'][_0x4a5e3d(0x1e9)],_0x1a2c16[_0x4a5e3d(0x1d1)]))return!![];return![];}catch(_0x5693c5){logger['error']('['+TAG+_0x4a5e3d(0x203)+_0x5693c5[_0x4a5e3d(0x1e9)]+'\x20'+_0x5693c5[_0x4a5e3d(0x1c6)]);const _0x7ceb66={};_0x7ceb66[_0x4a5e3d(0x1e9)]=_0x5693c5['message'];const _0x49ae7e={};return _0x49ae7e[_0x4a5e3d(0x1ff)]=0x1f4,_0x49ae7e[_0x4a5e3d(0x1ea)]=_0x7ceb66,_0x49ae7e;}}static async['getFailedTestsCount'](_0x1ba8e5){const _0x45fa38=a125_0x475520,_0x514818={'bxtAw':function(_0x35e284,_0x269b50){return _0x35e284||_0x269b50;},'NshRS':_0x45fa38(0x1dd),'DVLHn':function(_0xba88a1,_0x307489){return _0xba88a1(_0x307489);},'yRBns':function(_0x7b5649,_0x354532){return _0x7b5649(_0x354532);},'aKvJl':_0x45fa38(0x1da),'xjdHp':function(_0x972fb0,_0x1e2d5c){return _0x972fb0===_0x1e2d5c;},'ehTMr':function(_0x5e6e2e,_0x19468c){return _0x5e6e2e!==_0x19468c;},'YJiPr':_0x45fa38(0x1e7)},{buildName:_0x440bf7,buildRunIdentifier:_0x52f829,projectName:_0x3b3531}=_0x1ba8e5;if(_0x514818[_0x45fa38(0x204)](!_0x440bf7,!_0x52f829)||!_0x3b3531){logger['error']('['+TAG+_0x45fa38(0x1f9)+_0x440bf7+_0x45fa38(0x1d2)+_0x52f829+_0x45fa38(0x202)+_0x3b3531);const _0x17713d={};_0x17713d[_0x45fa38(0x1e9)]=_0x514818[_0x45fa38(0x20c)];const _0x205acc={};return _0x205acc[_0x45fa38(0x1ff)]=0x190,_0x205acc['body']=_0x17713d,_0x205acc;}const _0x51d828=_0x45fa38(0x1f4)+_0x514818[_0x45fa38(0x1f1)](encodeURIComponent,_0x440bf7)+_0x45fa38(0x212)+_0x514818[_0x45fa38(0x1f1)](encodeURIComponent,_0x52f829)+_0x45fa38(0x1c4)+_0x514818['yRBns'](encodeURIComponent,_0x3b3531),_0x20c063=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x51d828;try{logger[_0x45fa38(0x20d)]('['+TAG+_0x45fa38(0x1d5)+_0x20c063);let _0x597f26=0x0;const _0x3278a2=await this[_0x45fa38(0x1de)](_0x514818[_0x45fa38(0x1c3)],_0x20c063);return _0x514818[_0x45fa38(0x1c5)](_0x3278a2[_0x45fa38(0x1ff)],0xc8)&&_0x3278a2[_0x45fa38(0x1ea)]&&_0x514818[_0x45fa38(0x1d0)](typeof _0x3278a2[_0x45fa38(0x1ea)][_0x45fa38(0x1f5)],_0x514818[_0x45fa38(0x211)])&&(_0x597f26=_0x514818[_0x45fa38(0x1fd)](Number,_0x3278a2[_0x45fa38(0x1ea)][_0x45fa38(0x1f5)])),_0x597f26;}catch(_0x15a1d5){logger[_0x45fa38(0x1d7)]('['+TAG+_0x45fa38(0x1d9)+_0x15a1d5['message']+'\x20'+_0x15a1d5[_0x45fa38(0x1c6)]);const _0x4c11d8={};_0x4c11d8[_0x45fa38(0x1e9)]=_0x15a1d5['message'];const _0x41bba5={};return _0x41bba5['status']=0x1f4,_0x41bba5['body']=_0x4c11d8,_0x41bba5;}}}module[a125_0x475520(0x1db)]=RequestUtils;
|
|
@@ -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_0x28eefc=a126_0x240d;(function(_0x51342e,_0x3bfe99){const _0xc5ccd1=a126_0x240d,_0x97eecd=_0x51342e();while(!![]){try{const _0xbd3a70=parseInt(_0xc5ccd1(0xcd))/0x1*(-parseInt(_0xc5ccd1(0x113))/0x2)+-parseInt(_0xc5ccd1(0xf2))/0x3+parseInt(_0xc5ccd1(0xcc))/0x4*(parseInt(_0xc5ccd1(0xa8))/0x5)+-parseInt(_0xc5ccd1(0xd2))/0x6*(parseInt(_0xc5ccd1(0xe8))/0x7)+parseInt(_0xc5ccd1(0xff))/0x8*(parseInt(_0xc5ccd1(0xc7))/0x9)+-parseInt(_0xc5ccd1(0xf6))/0xa+parseInt(_0xc5ccd1(0x104))/0xb*(parseInt(_0xc5ccd1(0xb5))/0xc);if(_0xbd3a70===_0x3bfe99)break;else _0x97eecd['push'](_0x97eecd['shift']());}catch(_0x54a7ca){_0x97eecd['push'](_0x97eecd['shift']());}}}(a126_0x4b5b,0xe9c54));const logger=require(a126_0x28eefc(0xd1))[a126_0x28eefc(0x10a)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a126_0x28eefc(0xad)),TestOrderingServerHandler=require(a126_0x28eefc(0xf0)),OrchestrationUtils=require('./orchestrationUtils'),path=require(a126_0x28eefc(0xe1)),{spawnSync}=require(a126_0x28eefc(0xfb)),micromatch=require(a126_0x28eefc(0x10f)),fs=require('fs');function a126_0x4b5b(){const _0x2ca13f=['cRgDM','winstonLogger','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','utf-8','Found\x20test\x20files:\x20','getOrderingInstrumentationData','micromatch','filter','Filterted\x20to\x20test\x20files:\x20','isTestOrderingApplied','2mkFteg','DIHYc','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','**/?(*.)+(spec|test).[jt]s?(x)','xMRYc','exports','VskUc','stdout','reorderTestFiles','map','addToOrderingInstrumentationData','YpgPv','stringify','kGrNY','20hhbdkH','DLzMd','length','updateBuildIdentifier','datxG','../helper','uploadedTestFilesCount','jest-util','eQVtz','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','yToFJ','dbEvk','qaiEa','12tXvVOn','splitTests','QLpns','error','bfFyd','debug','VEQnl','toString','vBoUs','BROWSERSTACK_BUILD_RUN_IDENTIFIER','FPJKg','testPathIgnorePatterns','isArray','Nmflx','_initializeTestOrdering','fdCrC','findTestFiles','MkiUT','49365WoBgbr','--listTests','logTestOrderingChecks','isTestOrchestrationEnabled','BROWSERSTACK_NODE_INDEX','997820FDOTzm','1130946nSefgP','Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','buildIdentifier','SXvES','../logger','6QlHvYW','gVaMz','ignore','sgQOd','testOrderingEnabled','split','WkEgd','EflhL','glob','applied','RLTKp','cTUum','orchestrationUtils','BROWSERSTACK_TOTAL_NODE_COUNT','eaHyn','path','rootDir','npx','downloadedTestFilesCount','lHufT','getTestOrderingName','TVBax','7582981eoTmqQ','jest-config','uxDOT','splitTestsAPICallCount','buildName','bDegu','Error\x20finding\x20test\x20files:\x20','testOrderingApplied','./testOrderingServerHandler','testObservability','5211891pMZFSf','wYmOM','hxZeB','ibUDl','2574120qutugP','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','info','getOrderedTestFiles','ttmDi','child_process','jest','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','env','776LlEXBM','_shouldLogTestOrderingChecks','orderingInstrumentationData','testOrderingServerHandler','config','40002567vEWHKs','\x20files','getSplitTestsAPICallCount','xmiGQ','stack'];a126_0x4b5b=function(){return _0x2ca13f;};return a126_0x4b5b();}function a126_0x240d(_0x3cbc23,_0x4b50dd){const _0x4b5b00=a126_0x4b5b();return a126_0x240d=function(_0x240d7b,_0x20414f){_0x240d7b=_0x240d7b-0x9b;let _0x147ade=_0x4b5b00[_0x240d7b];return _0x147ade;},a126_0x240d(_0x3cbc23,_0x4b50dd);}class TestOrchestrationHandler{constructor(_0x4d17b3){const _0x4b39b6=a126_0x28eefc,_0x12eb19={};_0x12eb19['vBoUs']='1|4|3|2|5|0';const _0x3654b9=_0x12eb19,_0x1012e6=_0x3654b9[_0x4b39b6(0xbd)][_0x4b39b6(0xd7)]('|');let _0x42f4a6=0x0;while(!![]){switch(_0x1012e6[_0x42f4a6++]){case'0':this[_0x4b39b6(0xc3)]();continue;case'1':this[_0x4b39b6(0x103)]=_0x4d17b3;continue;case'2':this[_0x4b39b6(0x102)]=null;continue;case'3':this[_0x4b39b6(0xef)]=![];continue;case'4':this[_0x4b39b6(0x101)]={};continue;case'5':this[_0x4b39b6(0xde)]=new OrchestrationUtils(_0x4d17b3);continue;}break;}}[a126_0x28eefc(0xca)](){const _0x298487=a126_0x28eefc,_0x2abdd1={'kGrNY':function(_0x520061,_0x49d4e1){return _0x520061(_0x49d4e1);},'MkiUT':function(_0x29c5b6,_0x261941){return _0x29c5b6(_0x261941);},'eQVtz':function(_0x37741e,_0x596292){return _0x37741e(_0x596292);},'CDoau':function(_0x5e5300,_0x5808e2){return _0x5e5300(_0x5808e2);},'dbEvk':function(_0x52b381,_0x54673c){return _0x52b381(_0x54673c);},'Nmflx':function(_0x59fbab,_0x12a502){return _0x59fbab&&_0x12a502;}},_0x182dfe=_0x2abdd1[_0x298487(0xa7)](isNotUndefined,this['config'])&&(_0x2abdd1['MkiUT'](isUndefined,this[_0x298487(0x103)][_0x298487(0xf1)])||_0x2abdd1[_0x298487(0xb0)](isTrueString,this[_0x298487(0x103)][_0x298487(0xf1)])),_0x3d1686=this[_0x298487(0xde)][_0x298487(0xd6)](),_0x537e46=_0x2abdd1['CDoau'](isNotUndefined,this[_0x298487(0x103)])&&_0x2abdd1[_0x298487(0xa7)](isNotUndefined,this[_0x298487(0x103)]['projectName']),_0x17c9d3=_0x2abdd1[_0x298487(0xc6)](isNotUndefined,this[_0x298487(0x103)])&&_0x2abdd1[_0x298487(0xb3)](isNotUndefined,this[_0x298487(0x103)][_0x298487(0xec)]);return _0x2abdd1[_0x298487(0xc2)](_0x182dfe,_0x3d1686)&&_0x537e46&&_0x17c9d3;}[a126_0x28eefc(0xc3)](){const _0x5626f6=a126_0x28eefc,_0x5c41e9={};_0x5c41e9[_0x5626f6(0xbf)]=_0x5626f6(0xf7),_0x5c41e9[_0x5626f6(0xd9)]='Test\x20orchestration\x20without\x20test\x20ordering';const _0x234e03=_0x5c41e9;this[_0x5626f6(0xca)]()?(this[_0x5626f6(0x102)]=new TestOrderingServerHandler(this[_0x5626f6(0x103)]),logger[_0x5626f6(0xf8)](_0x234e03[_0x5626f6(0xbf)])):(logger[_0x5626f6(0xba)](_0x234e03[_0x5626f6(0xd9)]),this[_0x5626f6(0xc9)]());}[a126_0x28eefc(0xc9)](){const _0x46def5=a126_0x28eefc,_0x5279aa={'ibUDl':function(_0x1ac4eb,_0x1273b2){return _0x1ac4eb(_0x1273b2);},'qaiEa':function(_0x1b0e6b,_0x1f9f2a){return _0x1b0e6b(_0x1f9f2a);},'ttmDi':_0x46def5(0x9c),'gVaMz':function(_0x4bda90,_0x575beb){return _0x4bda90(_0x575beb);},'cTUum':function(_0x49c1eb,_0x387ab1){return _0x49c1eb(_0x387ab1);},'qMRNj':function(_0x1ec95c,_0x43c58e){return _0x1ec95c(_0x43c58e);},'SJnWJ':_0x46def5(0xce)};if(!this[_0x46def5(0x100)]())return;(!_0x5279aa['ibUDl'](isNotUndefined,this[_0x46def5(0x103)])||!_0x5279aa[_0x46def5(0xb4)](isNotUndefined,this['config'][_0x46def5(0xec)])||!_0x5279aa[_0x46def5(0xf5)](isNotUndefined,this['config']['projectName']))&&logger[_0x46def5(0xf8)](_0x5279aa[_0x46def5(0xfa)]),_0x5279aa[_0x46def5(0xd3)](isNotUndefined,this['config'])&&_0x5279aa[_0x46def5(0xdd)](isNotUndefined,this[_0x46def5(0x103)][_0x46def5(0xf1)])&&!_0x5279aa['qMRNj'](isTrueString,this[_0x46def5(0x103)]['testObservability'])&&logger[_0x46def5(0xf8)](_0x5279aa['SJnWJ']);}[a126_0x28eefc(0x100)](){const _0x18e9bc=a126_0x28eefc;return!this[_0x18e9bc(0xca)]()&&this[_0x18e9bc(0xde)]['testOrderingEnabled']();}[a126_0x28eefc(0x112)](){const _0xfceb54=a126_0x28eefc;return this[_0xfceb54(0xef)];}['setTestOrderingApplied'](_0x528ea7){const _0x5bfa38=a126_0x28eefc,_0x54a1e9={};_0x54a1e9[_0x5bfa38(0xea)]=_0x5bfa38(0xdb);const _0x313673=_0x54a1e9;this[_0x5bfa38(0xef)]=_0x528ea7,this[_0x5bfa38(0xa4)](_0x313673[_0x5bfa38(0xea)],_0x528ea7);}[a126_0x28eefc(0xa4)](_0x15dd7a,_0x4d164a){this['orderingInstrumentationData'][_0x15dd7a]=_0x4d164a;}[a126_0x28eefc(0x10e)](){const _0x5943ae=a126_0x28eefc;return this[_0x5943ae(0x101)];}[a126_0x28eefc(0xab)](){const _0x4faf33=a126_0x28eefc,_0xe3ebcc={'lAKiM':function(_0x5e78bd,_0xb713b6){return _0x5e78bd(_0xb713b6);},'xMRYc':function(_0xfcaf45,_0x424539){return _0xfcaf45>_0x424539;}},_0x179774=_0xe3ebcc['lAKiM'](parseInt,process['env']['BROWSERSTACK_TOTAL_NODE_COUNT']||'1'),_0x2fca2b=process[_0x4faf33(0xfe)][_0x4faf33(0xbe)];_0x2fca2b&&_0xe3ebcc[_0x4faf33(0x9e)](_0x179774,0x1)&&(logger['debug'](_0x4faf33(0x10b)+_0x2fca2b),this[_0x4faf33(0x103)][_0x4faf33(0xcf)]=_0x2fca2b);}async[a126_0x28eefc(0xa2)](_0x50515b){const _0x3b940b=a126_0x28eefc,_0x490f11={'YpgPv':function(_0x103196,_0x2a77d3){return _0x103196===_0x2a77d3;},'TVBax':function(_0x37e61c,_0x1827b5){return _0x37e61c===_0x1827b5;},'bfFyd':_0x3b940b(0xb1),'RLTKp':function(_0xb37611,_0x361bc0){return _0xb37611===_0x361bc0;},'eaHyn':function(_0x19e30c,_0x56b18d){return _0x19e30c(_0x56b18d);},'wYmOM':_0x3b940b(0xae),'hxZeB':'nodeIndex','DIHYc':'totalNodes','WkEgd':_0x3b940b(0xe4),'cRgDM':_0x3b940b(0xeb)};try{if(!_0x50515b||!Array[_0x3b940b(0xc1)](_0x50515b)||_0x490f11[_0x3b940b(0xa5)](_0x50515b['length'],0x0))return null;if(_0x490f11[_0x3b940b(0xe7)](this[_0x3b940b(0xca)](),![]))return logger['debug'](_0x490f11[_0x3b940b(0xb9)]),null;let _0x22896f=null;const _0x214d98=this[_0x3b940b(0xde)][_0x3b940b(0xe6)]();if(this[_0x3b940b(0x102)]){const _0x2b9494=await this[_0x3b940b(0x102)][_0x3b940b(0xb6)](_0x50515b,_0x214d98);if(!_0x2b9494)return null;_0x22896f=await this[_0x3b940b(0x102)][_0x3b940b(0xf9)](_0x2b9494);}if(!_0x22896f||!Array[_0x3b940b(0xc1)](_0x22896f)||_0x490f11[_0x3b940b(0xdc)](_0x22896f[_0x3b940b(0xaa)],0x0))return null;const _0x3d7219=_0x490f11[_0x3b940b(0xe0)](parseInt,process[_0x3b940b(0xfe)][_0x3b940b(0xcb)]||'0'),_0x518a3d=_0x490f11[_0x3b940b(0xe0)](parseInt,process[_0x3b940b(0xfe)][_0x3b940b(0xdf)]||'1');return this[_0x3b940b(0xa4)](_0x490f11[_0x3b940b(0xf3)],_0x50515b[_0x3b940b(0xaa)]),this[_0x3b940b(0xa4)](_0x490f11[_0x3b940b(0xf4)],_0x3d7219),this[_0x3b940b(0xa4)](_0x490f11[_0x3b940b(0x9b)],_0x518a3d),this[_0x3b940b(0xa4)](_0x490f11[_0x3b940b(0xd8)],_0x22896f['length']),this['addToOrderingInstrumentationData'](_0x490f11[_0x3b940b(0x109)],this[_0x3b940b(0x102)]?this[_0x3b940b(0x102)][_0x3b940b(0x106)]():0x0),_0x22896f['map'](_0x5dbdd8=>sanitizedFilePath(_0x5dbdd8));}catch(_0x48f450){return logger[_0x3b940b(0xba)](_0x3b940b(0xfd)+(_0x48f450[_0x3b940b(0x108)]||_0x48f450[_0x3b940b(0xbc)]())),null;}}async[a126_0x28eefc(0xc5)](_0x39b9dd,_0x4f4cba,_0x15f4e4){const _0x42d144=a126_0x28eefc,_0x300e83={'swbmP':function(_0x53e34e,_0x5b85cd){return _0x53e34e(_0x5b85cd);},'SXvES':_0x42d144(0xe9),'QLpns':function(_0x40d8eb,_0x223441){return _0x40d8eb(_0x223441);},'lHufT':_0x42d144(0xaf),'xmiGQ':function(_0x11be1c,_0x6e010b){return _0x11be1c(_0x6e010b);},'VEQnl':'jest-runner','yToFJ':function(_0x109d29,_0x5e8f46){return _0x109d29(_0x5e8f46);},'datxG':_0x42d144(0xda),'DLzMd':'**/__tests__/**/*.[jt]s?(x)','KajNB':_0x42d144(0x9d),'sgQOd':function(_0x5b3cdb,_0x80e493,_0x1969b9,_0x4a775f){return _0x5b3cdb(_0x80e493,_0x1969b9,_0x4a775f);},'VskUc':_0x42d144(0xe3),'fdCrC':_0x42d144(0xfc),'TWPuZ':'--config','nJhqj':_0x42d144(0xc8),'bDegu':_0x42d144(0x10c)};try{const {getTestPathPatterns:_0x4da8a6}=_0x300e83['swbmP'](require,_0x300e83[_0x42d144(0xd0)]),{globsToMatcher:_0x59e348}=_0x300e83[_0x42d144(0xb7)](require,_0x300e83[_0x42d144(0xe5)]),{findRelatedTests:_0x56403d}=_0x300e83[_0x42d144(0x107)](require,_0x300e83[_0x42d144(0xbb)]),_0x5dd2c8=_0x300e83[_0x42d144(0xb2)](require,_0x300e83[_0x42d144(0xac)]),_0x194ec8=_0x39b9dd['testMatch']||[_0x300e83[_0x42d144(0xa9)],_0x300e83['KajNB']],_0x1e69b4=_0x39b9dd[_0x42d144(0xc0)]||[],_0x550b1c=_0x300e83['sgQOd'](spawnSync,_0x300e83[_0x42d144(0xa0)],[_0x300e83[_0x42d144(0xc4)],_0x300e83['TWPuZ'],_0x15f4e4,..._0x4f4cba,_0x300e83['nJhqj']],{'encoding':_0x300e83[_0x42d144(0xed)]});let _0x7aa57d=[];!_0x550b1c[_0x42d144(0xb8)]&&(_0x7aa57d=_0x550b1c[_0x42d144(0xa1)]['split']('\x0a')[_0x42d144(0x110)](Boolean));logger[_0x42d144(0xba)](_0x42d144(0x10d)+JSON['stringify'](_0x7aa57d)+_0x42d144(0x105));const _0x26971e={};_0x26971e['matchBase']=!![],_0x26971e[_0x42d144(0xd4)]=_0x1e69b4;const _0x21b4fd=_0x300e83[_0x42d144(0xd5)](micromatch,_0x7aa57d,_0x194ec8,_0x26971e)[_0x42d144(0xa3)](_0x5e3a55=>path['relative'](_0x39b9dd[_0x42d144(0xe2)],_0x5e3a55));return logger['debug'](_0x42d144(0x111)+JSON[_0x42d144(0xa6)](_0x21b4fd)+'\x20files'),_0x21b4fd;}catch(_0x296c8b){return logger[_0x42d144(0xba)](_0x42d144(0xee)+_0x296c8b),[];}}}module[a126_0x28eefc(0x9f)]=TestOrchestrationHandler;
|