browserstack-node-sdk 1.40.3 → 1.40.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/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a117_0x1b42eb=a117_0x35ea;(function(_0x5fb12d,_0x53fd1f){const _0x2cec7b=a117_0x35ea,_0x4be4e7=_0x5fb12d();while(!![]){try{const _0x5aa650=-parseInt(_0x2cec7b(0x12d))/0x1*(-parseInt(_0x2cec7b(0x120))/0x2)+parseInt(_0x2cec7b(0x11d))/0x3*(parseInt(_0x2cec7b(0x8b))/0x4)+-parseInt(_0x2cec7b(0x13e))/0x5*(parseInt(_0x2cec7b(0x97))/0x6)+parseInt(_0x2cec7b(0x9c))/0x7*(-parseInt(_0x2cec7b(0x17e))/0x8)+parseInt(_0x2cec7b(0x17f))/0x9*(parseInt(_0x2cec7b(0xad))/0xa)+-parseInt(_0x2cec7b(0xa1))/0xb*(-parseInt(_0x2cec7b(0x178))/0xc)+parseInt(_0x2cec7b(0x134))/0xd;if(_0x5aa650===_0x53fd1f)break;else _0x4be4e7['push'](_0x4be4e7['shift']());}catch(_0x2f38b){_0x4be4e7['push'](_0x4be4e7['shift']());}}}(a117_0xedd6,0x54f3a));const fs=require('fs'),path=require(a117_0x1b42eb(0xef)),gitLastCommit=require(a117_0x1b42eb(0x179)),getRepoInfo=require(a117_0x1b42eb(0x126)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require('./constants'),http=require(a117_0x1b42eb(0x158)),https=require('https'),child_process=require(a117_0x1b42eb(0xe2)),getos=require(a117_0x1b42eb(0x12a)),os=require('os'),logger=require(a117_0x1b42eb(0xe0))[a117_0x1b42eb(0xa4)],bsSetupHelper=require('../helper'),requestSpy=require(a117_0x1b42eb(0x11e)),constants=require('../../bin/utils/constants'),logPatcher=require(a117_0x1b42eb(0x141)),util=require(a117_0x1b42eb(0x12c)),{fileLogger}=require(a117_0x1b42eb(0xe0)),PerformanceTester=require(a117_0x1b42eb(0xf3)),{isFunction}=require(a117_0x1b42eb(0x12f)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require('../performance/constants'),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a117_0x1b42eb(0xde));exports['trace']=_0x44da27=>{const _0x26472c=a117_0x1b42eb;fileLogger[_0x26472c(0x14a)]('['+new Date()['toISOString']()+'][\x20OBSERVABILITY\x20]\x20'+_0x44da27);},exports[a117_0x1b42eb(0xd8)]=_0x180936=>{const _0x6f0732=a117_0x1b42eb,_0x1b5d92={};_0x1b5d92[_0x6f0732(0xe3)]=function(_0x3bb619,_0x676789){return _0x3bb619===_0x676789;},_0x1b5d92[_0x6f0732(0x168)]=_0x6f0732(0x16c);const _0x2b41aa=_0x1b5d92;fileLogger[_0x6f0732(0xd8)]('['+new Date()[_0x6f0732(0xec)]()+_0x6f0732(0x105)+_0x180936),(_0x2b41aa[_0x6f0732(0xe3)](process['env'][_0x6f0732(0x82)],_0x2b41aa[_0x6f0732(0x168)])||_0x2b41aa[_0x6f0732(0xe3)](process[_0x6f0732(0x14d)][_0x6f0732(0x82)],'1'))&&consoleHolder[_0x6f0732(0xbc)]('\x0a['+new Date()[_0x6f0732(0xec)]()+_0x6f0732(0x105)+_0x180936+'\x0a');};const a117_0x47ef8e={};a117_0x47ef8e[a117_0x1b42eb(0x98)]=!![],a117_0x47ef8e['timeout']=0xea60,a117_0x47ef8e[a117_0x1b42eb(0xf7)]=0x2,a117_0x47ef8e[a117_0x1b42eb(0xa6)]=0x2;const httpKeepAliveAgent=new http[(a117_0x1b42eb(0x108))](a117_0x47ef8e),a117_0x40f0a0={};a117_0x40f0a0[a117_0x1b42eb(0x98)]=!![],a117_0x40f0a0[a117_0x1b42eb(0xb8)]=0xea60,a117_0x40f0a0['maxSockets']=0x2,a117_0x40f0a0[a117_0x1b42eb(0xa6)]=0x2;function a117_0xedd6(){const _0x4dc59d=['nRZKd','X-BSTACK-TESTOPS','37804lQppYg','APqTR','app','join','Fzeez','object','CODECEPT_CUCUMBER','Windows','xNVmW','getPlatformDetails','hEqZH','stringify','1696998hJLiiM','keepAlive','buildTag','isArray','extractValuesWithRegexKeyMatch','7mjmhaK','yMRQr','GHJQn','ZcukZ','aKwIo','55MDpYeE','JRMgE','Authorization','winstonLogger','headers','maxTotalSockets','then','FFDEy','getUserCredentials','darwin','@cucumber/cucumber','gmMdJ','2810aRauAe','MOCHA','bnVQH','includes','wMtwH','HTNgq','Error\x20in\x20importing\x20windows-release\x20','expanded','WGijZ','format','Uploading\x20trace\x20logs\x20to:\x20','timeout','body','IwWZu','data','log','emit','fromEntries','sluzq','sKLYL','Error\x20in\x20getting\x20Linux\x20Details','GXwIv','PLAYWRIGHT','match','CUSTOM_TAG','getPlatform','default','map','avcYy','../../bin/v2/browserstackCLI','IepyQ','gYvhb','CUCUMBER','O11yHashedID','BS_TESTOPS_BUILD_HASHED_ID','null','keys','mocha','HTTP','getCustomTags','ZuLhu','jest','CODECEPT','debug','GqTSX','Content-Type','nsnzR','application/json','getUserName','../../../src/bin/utils/constants','prefix','../logger','getBrowserStackConfig','child_process','QCuLQ','BROWSERSTACK_TEST_OBSERVABILITY_YML','asyncAwaitNodeReq','JEST','isTestObservabilitySession','cwd','parse','measureWrapper','dist','toISOString','shouldReRunObservabilityTests','sendPlatformDetails','path','https','nkqQm','browserstack_executor:\x20','../performance/performance-tester','gRjaH','gfwjX','THtPm','maxSockets','UWvJh','AssertionError','/builds/','BROWSERSTACK_TEST_OBSERVABILITY','CEcuN','win32','wfxbB','iQNjW','codeceptjs','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','ckVSh','turboScaleGridDetails','zxmjy','][\x20OBSERVABILITY\x20]\x20','hpsEa','relativeTestFilePath','Agent','CgEBB','nodeRequest','UnhandledError','stack','bs:addPlatformDetails:','failureData','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','release','message','getBuildTags','toString','TEST_OBSERVABILITY_BUILD_TAG','xTSPy','BROWSERSTACK_RERUN_TESTS','Togdl','customTag','udqbK','removeAnsiColors','fGluj','gjybX','33ZHpNXM','../../helpers/request-spy','pid','2JIURsE','HYMtA','sLAtE','@playwright/test','ggJgg','agent','git-repo-info','platformVersion','isUndefined','getFailureType','getos','DBzbU','util','174947ExwsRr','EJICw','lodash','Allrj','[%s][\x20OBSERVABILITY\x20]\x20Build\x20Not\x20Found\x20%s','VXcoM','getAccessKey','7524283HhJuol','automate','rFetQ','push','getObservabilityLinkedProductName','MyDbi','Linux','__cloud_provider___','test','O11Y_URL','10bEBZoQ','ZTjXr','vcMSH','../../bin/utils/logPatcher','eVSft','trim','getCapabilities','getSyncScript','info','BROWSERSTACK_TESTHUB_JWT','ddknU','4|2|1|5|0|3','silly','turboscale','readConfig','env','nYtvO','replace','modifyReqForTraceUpload','platformName','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','kbyts','uJPAY','patchConsoleLogger','WwCWa','^CUSTOM_TAG_\x5cd+$','http','HUB_URL_REGEX','getFrameworkVersion','backtrace','err','browserstack','aFYsv','bZXCK','KjmKN','TEST_PLATFORM','\x20:\x20','FmwEB','dhHgK','ahFaG','unknown_grid','rVKBf','QxgyB','fileName','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','OS\x20X','true','error','relative','local_grid','split','platform','length','ThxTk','hostname','getPackageVersion','IhISb','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','122736xSIXNV','git-last-commit','addRequestSpy','jeadS','formData','undefined','5066896Klegxp','20439wbaFfQ','annotate','FbIDj','vndwK','toJSON','bs:addLog:','Visit\x20','logs','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','uvZCO','capabilities','wPEyf','FbETq','BROWSERSTACK_OBSERVABILITY_DEBUG','RvGMJ','test_run_uuid','getDefaultHeaders','app-automate','forEach','yqwNI'];a117_0xedd6=function(){return _0x4dc59d;};return a117_0xedd6();}const httpsKeepAliveAgent=new https[(a117_0x1b42eb(0x108))](a117_0x40f0a0),a117_0x5e3419={};a117_0x5e3419[a117_0x1b42eb(0x98)]=!![],a117_0x5e3419[a117_0x1b42eb(0xb8)]=0xea60,a117_0x5e3419['maxSockets']=0x2,a117_0x5e3419[a117_0x1b42eb(0xa6)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a117_0x1b42eb(0x108))](a117_0x5e3419),a117_0x5ef5e6={};function a117_0x35ea(_0x2a365a,_0x2679b1){const _0xedd66e=a117_0xedd6();return a117_0x35ea=function(_0x35eab1,_0x1a691f){_0x35eab1=_0x35eab1-0x7a;let _0x437a36=_0xedd66e[_0x35eab1];return _0x437a36;},a117_0x35ea(_0x2a365a,_0x2679b1);}a117_0x5ef5e6[a117_0x1b42eb(0x98)]=!![],a117_0x5ef5e6[a117_0x1b42eb(0xb8)]=0xea60,a117_0x5ef5e6['maxSockets']=0x2,a117_0x5ef5e6[a117_0x1b42eb(0xa6)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a117_0x1b42eb(0x108))](a117_0x5ef5e6);exports[a117_0x1b42eb(0xed)]=()=>{const _0x4d55f7=a117_0x1b42eb,_0x590f3f={};_0x590f3f[_0x4d55f7(0x17b)]=function(_0x53a681,_0x538442){return _0x53a681!==_0x538442;},_0x590f3f[_0x4d55f7(0x160)]=_0x4d55f7(0xd0);const _0x2720a8=_0x590f3f;return process['env'][_0x4d55f7(0x116)]&&_0x2720a8[_0x4d55f7(0x17b)](process[_0x4d55f7(0x14d)]['BROWSERSTACK_RERUN_TESTS'],_0x2720a8['KjmKN'])?!![]:![];},exports[a117_0x1b42eb(0xe7)]=()=>{const _0x806134=a117_0x1b42eb,_0x42feca={};_0x42feca[_0x806134(0x95)]=function(_0x15ca61,_0xb038dc){return _0x15ca61===_0xb038dc;},_0x42feca[_0x806134(0x11c)]=_0x806134(0x16c),_0x42feca['Ssdot']=function(_0x3430ba,_0x2b1772){return _0x3430ba===_0x2b1772;};const _0x726b41=_0x42feca;let _0x14cf7a=!![];return process[_0x806134(0x14d)][_0x806134(0xe4)]&&(_0x14cf7a=_0x726b41[_0x806134(0x95)](process[_0x806134(0x14d)][_0x806134(0xe4)],_0x726b41[_0x806134(0x11c)])),process[_0x806134(0x14d)][_0x806134(0xfb)]&&(_0x14cf7a=_0x726b41['Ssdot'](process[_0x806134(0x14d)]['BROWSERSTACK_TEST_OBSERVABILITY'],_0x726b41[_0x806134(0x11c)])),_0x14cf7a;},exports['parseFileNames']=_0x5ef17b=>{const _0x188a83=a117_0x1b42eb;if(bsSetupHelper[_0x188a83(0x128)](_0x5ef17b))return undefined;try{return _0x5ef17b[_0x188a83(0x143)]()[_0x188a83(0x170)](',');}catch(_0x530c39){return undefined;}},exports['printBuildLink']=()=>{const _0xf98285=a117_0x1b42eb,_0x183d36={'wMtwH':function(_0xc216d,_0x4cbe94){return _0xc216d(_0x4cbe94);},'FmwEB':_0xf98285(0xca),'JZNSW':function(_0x340ac1,_0x41579d){return _0x340ac1!==_0x41579d;},'gfwjX':_0xf98285(0xd0),'ahFaG':function(_0x241e54,_0x28ef60){return _0x241e54!==_0x28ef60;},'REJym':_0xf98285(0x17d),'GHJQn':_0xf98285(0x131)};return PerformanceTester[_0xf98285(0xea)](PerformanceO11yEvents['PRINT_BUILDLINK'],async()=>{const _0x28c5a1=_0xf98285;try{const _0x2e9edc=_0x183d36[_0x28c5a1(0xb1)](require,_0x183d36[_0x28c5a1(0x163)]);if(_0x2e9edc[_0x28c5a1(0xce)]){logger[_0x28c5a1(0x146)](_0x28c5a1(0x7b)+O11Y_URL+_0x28c5a1(0xfa)+_0x2e9edc[_0x28c5a1(0xce)]+_0x28c5a1(0x101));return;}process[_0x28c5a1(0x14d)][_0x28c5a1(0xcf)]&&_0x183d36['JZNSW'](process[_0x28c5a1(0x14d)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x183d36[_0x28c5a1(0xf5)])&&_0x183d36[_0x28c5a1(0x165)](process[_0x28c5a1(0x14d)][_0x28c5a1(0xcf)],_0x183d36['REJym'])&&logger[_0x28c5a1(0x146)](_0x28c5a1(0x7b)+constants[_0x28c5a1(0x13d)]+_0x28c5a1(0xfa)+process[_0x28c5a1(0x14d)]['BS_TESTOPS_BUILD_HASHED_ID']+_0x28c5a1(0x101));}catch(_0x99aec8){logger['error'](util[_0x28c5a1(0xb6)](_0x183d36[_0x28c5a1(0x9e)],new Date()[_0x28c5a1(0xec)](),_0x99aec8['stack']||_0x99aec8[_0x28c5a1(0x111)]||_0x99aec8));}})();},exports[a117_0x1b42eb(0x129)]=_0x3d4dac=>{const _0x14af7e=a117_0x1b42eb,_0x680a6d={};_0x680a6d[_0x14af7e(0xfc)]=_0x14af7e(0xf9),_0x680a6d[_0x14af7e(0xb2)]=_0x14af7e(0x10b);const _0x2043b4=_0x680a6d;if(!_0x3d4dac)return null;return _0x3d4dac[_0x14af7e(0x113)]()[_0x14af7e(0xc4)](/AssertionError/)?_0x2043b4[_0x14af7e(0xfc)]:_0x2043b4[_0x14af7e(0xb2)];},exports[a117_0x1b42eb(0x15a)]=_0x4d6494=>{const _0x441087=a117_0x1b42eb,_0x203262={};_0x203262['vndwK']=_0x441087(0xd2),_0x203262[_0x441087(0xac)]=_0x441087(0x123),_0x203262[_0x441087(0x83)]=_0x441087(0x100),_0x203262[_0x441087(0xd5)]=_0x441087(0xd6),_0x203262[_0x441087(0x102)]=_0x441087(0xab);const _0x57613d=_0x203262;let _0x5defda=null;switch(_0x4d6494){case FRAMEWORKS[_0x441087(0xae)]:_0x5defda=bsSetupHelper[_0x441087(0x175)](_0x57613d[_0x441087(0x182)]);break;case FRAMEWORKS[_0x441087(0xc3)]:_0x5defda=bsSetupHelper[_0x441087(0x175)](_0x57613d[_0x441087(0xac)]);break;case FRAMEWORKS[_0x441087(0xd7)]:case FRAMEWORKS[_0x441087(0x91)]:_0x5defda=bsSetupHelper[_0x441087(0x175)](_0x57613d[_0x441087(0x83)]);break;case FRAMEWORKS[_0x441087(0xe6)]:_0x5defda=bsSetupHelper[_0x441087(0x175)](_0x57613d[_0x441087(0xd5)]);break;case FRAMEWORKS[_0x441087(0xcd)]:_0x5defda=bsSetupHelper[_0x441087(0x175)](_0x57613d['ckVSh']);break;default:break;}return _0x5defda;},exports[a117_0x1b42eb(0xe1)]=_0x346448=>{const _0x55fa9f=a117_0x1b42eb;let _0x4352d=null;switch(_0x346448){case FRAMEWORKS[_0x55fa9f(0xc3)]:_0x4352d=process[_0x55fa9f(0x14d)]['BROWSERSTACK_CONFIG_FILE_PATH'];break;}if(!_0x4352d)return;return bsSetupHelper[_0x55fa9f(0x14c)](_0x4352d,![]);},exports[a117_0x1b42eb(0xa9)]=_0xb13ab2=>{const _0x749d07=a117_0x1b42eb;return{'username':bsSetupHelper[_0x749d07(0xdd)](_0xb13ab2),'accessKey':bsSetupHelper[_0x749d07(0x133)](_0xb13ab2)};},exports[a117_0x1b42eb(0x150)]=(_0x3c6214,_0x10817)=>{const _0x25f93d=a117_0x1b42eb,_0x9cbaf0={};_0x9cbaf0['WGijZ']=_0x25f93d(0x149),_0x9cbaf0[_0x25f93d(0x117)]='LogCreated',_0x9cbaf0[_0x25f93d(0x80)]='TEST_ATTACHMENT';const _0x3f8c9d=_0x9cbaf0,_0x4b7e7=_0x3f8c9d[_0x25f93d(0xb5)]['split']('|');let _0x35e886=0x0;while(!![]){switch(_0x4b7e7[_0x35e886++]){case'0':delete _0x3c6214['json'];continue;case'1':_0x3c6214[_0x25f93d(0x17c)]={'data':_0x3c6214[_0x25f93d(0xb9)][0x0][_0x25f93d(0x7c)][0x0][_0x25f93d(0xbb)],'test_run_uuid':_0x3c6214[_0x25f93d(0xb9)][0x0][_0x25f93d(0x7c)][0x0][_0x25f93d(0x84)],'event_type':_0x3f8c9d[_0x25f93d(0x117)],'kind':_0x3f8c9d[_0x25f93d(0x80)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x25f93d(0xec)](),'fileName':_0x3c6214['body'][0x0][_0x25f93d(0x7c)][0x0][_0x25f93d(0x169)]};continue;case'2':if(!_0x3c6214[_0x25f93d(0xb9)][0x0]||!_0x3c6214[_0x25f93d(0xb9)][0x0][_0x25f93d(0x7c)]||!_0x3c6214[_0x25f93d(0xb9)][0x0][_0x25f93d(0x7c)][_0x25f93d(0x172)])return;continue;case'3':delete _0x10817[_0x25f93d(0xa5)];continue;case'4':if(!_0x3c6214[_0x25f93d(0xb9)]||!Array[_0x25f93d(0x9a)](_0x3c6214['body']))return;continue;case'5':delete _0x3c6214[_0x25f93d(0xb9)];continue;}break;}},exports[a117_0x1b42eb(0xe5)]=async(_0x20ac04,_0xbababe,_0x2c6a06,_0x102188,_0x382a26=!![])=>{const _0x20ab6a=a117_0x1b42eb,_0x4bca53={};_0x4bca53[_0x20ab6a(0xdb)]=function(_0x4b4b8f,_0x3290e6){return _0x4b4b8f===_0x3290e6;},_0x4bca53[_0x20ab6a(0x7e)]=_0x20ab6a(0xda),_0x4bca53[_0x20ab6a(0x148)]=_0x20ab6a(0xdc),_0x4bca53[_0x20ab6a(0x167)]=_0x20ab6a(0xf0),_0x4bca53[_0x20ab6a(0x156)]=function(_0x2cf240,_0x5b5991){return _0x2cf240!==_0x5b5991;},_0x4bca53[_0x20ab6a(0x9d)]=_0x20ab6a(0x90),_0x4bca53[_0x20ab6a(0xf6)]=_0x20ab6a(0x177);const _0x19598f=_0x4bca53,_0x1e5ece={..._0x102188,...{'method':_0x20ac04,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0xbababe,'body':_0x2c6a06,'json':_0x19598f[_0x20ab6a(0xdb)](_0x102188[_0x20ab6a(0xa5)][_0x19598f[_0x20ab6a(0x7e)]],_0x19598f[_0x20ab6a(0x148)]),'agent':API_URL[_0x20ab6a(0xb0)](_0x19598f[_0x20ab6a(0x167)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x19598f['nsnzR'](_0xbababe,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x1e5ece[_0x20ab6a(0x125)]=API_URL[_0x20ab6a(0xb0)](_0x19598f['rVKBf'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x20ab6a(0x150)](_0x1e5ece,_0x102188),logger['debug'](_0x20ab6a(0xb7)+_0x1e5ece['url']));try{const {statusCode:_0x45b23b,body:_0x5321bc}=await bsSetupHelper[_0x20ab6a(0x10a)](_0x20ac04,_0xbababe,_0x1e5ece,_0x102188,_0x1e5ece['url']);if(_0x19598f[_0x20ab6a(0x156)](_0x45b23b,0xc8))return _0x5321bc?_0x5321bc:_0x20ab6a(0x152)+_0x45b23b;let _0x3633da=_0x5321bc;if(_0x382a26)try{_0x19598f[_0x20ab6a(0x156)](typeof _0x5321bc,_0x19598f['yMRQr'])&&(_0x3633da=JSON[_0x20ab6a(0xe9)](_0x5321bc));}catch(_0x522371){logger[_0x20ab6a(0x16d)](_0x19598f['THtPm'],_0x5321bc,util['format'](_0x522371));}const _0x191155={};return _0x191155[_0x20ab6a(0xbb)]=_0x3633da,_0x191155;}catch(_0x52f563){logger[_0x20ab6a(0x16d)](_0x20ab6a(0x16a)+util[_0x20ab6a(0xb6)](_0x52f563));throw _0x52f563;}},exports['nodeRequest']=(_0x112250,_0x286507,_0x250654,_0x74bb01,_0xb2b425=!![])=>{const _0x163afb=a117_0x1b42eb,_0x3575f1={'xNVmW':function(_0x15fc58,_0x492e34){return _0x15fc58!==_0x492e34;},'CgEBB':function(_0x220646,_0x2a7207){return _0x220646(_0x2a7207);},'yqwNI':function(_0x30f967,_0x122926){return _0x30f967!==_0x122926;},'nYtvO':'object','hgxdJ':function(_0x11eb33,_0x46efca){return _0x11eb33(_0x46efca);},'yTEru':'Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','PhpZo':function(_0x2682a2,_0x19113a){return _0x2682a2===_0x19113a;},'YFgBp':_0x163afb(0xda),'IwWZu':_0x163afb(0xdc),'vcMSH':_0x163afb(0xf0),'zxmjy':function(_0x277cb6,_0x48a863){return _0x277cb6===_0x48a863;}};return new Promise((_0x5594bf,_0x24158b)=>{const _0x33ca77=_0x163afb,_0x26d83d={..._0x74bb01,...{'method':_0x112250,'url':API_URL+'/'+_0x286507,'body':_0x250654,'json':_0x3575f1['PhpZo'](_0x74bb01['headers'][_0x3575f1['YFgBp']],_0x3575f1[_0x33ca77(0xba)]),'agent':API_URL[_0x33ca77(0xb0)](_0x3575f1[_0x33ca77(0x140)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x3575f1[_0x33ca77(0x104)](_0x286507,SCREENSHOT_ENDPOINT)&&(_0x26d83d[_0x33ca77(0x125)]=API_URL[_0x33ca77(0xb0)](_0x3575f1['vcMSH'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x33ca77(0x10a)](_0x112250,_0x286507,_0x26d83d,_0x74bb01,API_URL)[_0x33ca77(0xa7)](({statusCode:_0x338bc3,body:_0x1ac955})=>{const _0x203a04=_0x33ca77;if(_0x3575f1[_0x203a04(0x93)](_0x338bc3,0xc8))_0x3575f1[_0x203a04(0x109)](_0x24158b,_0x1ac955?_0x1ac955:_0x203a04(0x152)+_0x338bc3);else{if(_0xb2b425)try{_0x3575f1[_0x203a04(0x88)](typeof _0x1ac955,_0x3575f1[_0x203a04(0x14e)])&&(_0x1ac955=JSON[_0x203a04(0xe9)](_0x1ac955));}catch(_0x5b9d7d){_0x3575f1['hgxdJ'](_0x24158b,_0x3575f1['yTEru']);return;}const _0x3286b1={};_0x3286b1[_0x203a04(0xbb)]=_0x1ac955,_0x3575f1[_0x203a04(0x109)](_0x5594bf,_0x3286b1);}})['catch'](_0x36fa98=>{_0x36fa98&&_0x3575f1['hgxdJ'](_0x24158b,_0x36fa98);});});},exports[a117_0x1b42eb(0x112)]=_0x309f7b=>{const _0x419635=a117_0x1b42eb;if(process[_0x419635(0x14d)]['TEST_OBSERVABILITY_BUILD_TAG'])return process[_0x419635(0x14d)][_0x419635(0x114)]['split'](',');if(_0x309f7b['buildTag'])return _0x309f7b[_0x419635(0x99)];return[];},exports[a117_0x1b42eb(0x85)]=(_0x10c09c=!![])=>{const _0x120cf8=a117_0x1b42eb,_0x394de8={};_0x394de8[_0x120cf8(0x153)]=_0x120cf8(0xdc),_0x394de8['GXwIv']=_0x120cf8(0x16c),_0x394de8[_0x120cf8(0x130)]=_0x120cf8(0xa3);const _0x38920a=_0x394de8,_0x31b894={};_0x31b894[_0x120cf8(0xda)]=_0x38920a['kbyts'],_0x31b894[_0x120cf8(0x8a)]=_0x38920a[_0x120cf8(0xc2)];const _0x38f618=_0x31b894;return _0x10c09c&&process[_0x120cf8(0x14d)][_0x120cf8(0x147)]&&(_0x38f618[_0x38920a[_0x120cf8(0x130)]]='Bearer\x20'+process[_0x120cf8(0x14d)]['BROWSERSTACK_TESTHUB_JWT']),_0x38f618;},exports[a117_0x1b42eb(0x9b)]=_0x1a6b30=>{const _0x51abab=a117_0x1b42eb,_0x153397={};_0x153397[_0x51abab(0xfe)]=_0x51abab(0x157);const _0x1cd635=_0x153397,_0x3a20b8=[],_0x1ac68e=new RegExp(_0x1cd635['wfxbB'],'i');return Object[_0x51abab(0xd1)](_0x1a6b30)['filter'](_0xfdddf0=>_0x1ac68e['test'](_0xfdddf0))[_0x51abab(0x87)](_0x320cab=>_0x3a20b8[_0x51abab(0x137)](_0x1a6b30[_0x320cab])),_0x3a20b8;},exports[a117_0x1b42eb(0xd4)]=_0x3c91a8=>{const _0x48ba2c=a117_0x1b42eb,_0x528086=[],_0x521183=_0x3c91a8[_0x48ba2c(0x118)]||process[_0x48ba2c(0x14d)][_0x48ba2c(0xc5)];return _0x521183&&_0x528086['push'](_0x521183),_0x528086[_0x48ba2c(0x137)](...exports[_0x48ba2c(0x9b)](process[_0x48ba2c(0x14d)])),_0x528086[_0x48ba2c(0x137)](...exports[_0x48ba2c(0x9b)](_0x3c91a8)),_0x528086;},exports['removeAnsiColors']=_0x42073d=>{const _0x14cf63=a117_0x1b42eb;if(!_0x42073d)return'';return _0x42073d[_0x14cf63(0x14f)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports['sleep']=(_0x4bf4cf=0x64)=>new Promise(_0x138881=>setTimeout(_0x138881,_0x4bf4cf));const getPlatformName=()=>{const _0xdedcaf=a117_0x1b42eb,_0x24bae2={};_0x24bae2[_0xdedcaf(0xcb)]=function(_0x147cd4,_0x2b44dd){return _0x147cd4===_0x2b44dd;},_0x24bae2[_0xdedcaf(0xa2)]=_0xdedcaf(0xfd),_0x24bae2[_0xdedcaf(0xbf)]=_0xdedcaf(0x92),_0x24bae2[_0xdedcaf(0xf4)]=_0xdedcaf(0xaa),_0x24bae2[_0xdedcaf(0x173)]=_0xdedcaf(0x16b),_0x24bae2['nRZKd']=function(_0x111d74,_0x9ace3e){return _0x111d74===_0x9ace3e;},_0x24bae2[_0xdedcaf(0x81)]='linux',_0x24bae2[_0xdedcaf(0xf1)]='Linux',_0x24bae2[_0xdedcaf(0x12b)]='Unknown';const _0x10c267=_0x24bae2;if(_0x10c267[_0xdedcaf(0xcb)](process[_0xdedcaf(0x171)],_0x10c267[_0xdedcaf(0xa2)]))return _0x10c267[_0xdedcaf(0xbf)];if(_0x10c267[_0xdedcaf(0xcb)](process['platform'],_0x10c267[_0xdedcaf(0xf4)]))return _0x10c267[_0xdedcaf(0x173)];if(_0x10c267[_0xdedcaf(0x89)](process[_0xdedcaf(0x171)],_0x10c267[_0xdedcaf(0x81)]))return _0x10c267['nkqQm'];return _0x10c267[_0xdedcaf(0x12b)];},getMacOSVersion=()=>{const _0x4fd9f7=a117_0x1b42eb,_0x5153a2={};_0x5153a2[_0x4fd9f7(0x164)]='awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27';const _0x152e94=_0x5153a2;return child_process['execSync'](_0x152e94[_0x4fd9f7(0x164)])[_0x4fd9f7(0x113)]()[_0x4fd9f7(0x143)]();},getLinuxDetails=()=>{const _0x5626d0={'rFetQ':function(_0x4de6ad,_0x1cd759){return _0x4de6ad(_0x1cd759);},'EJICw':function(_0x3265fe,_0x2826ba){return _0x3265fe(_0x2826ba);}};return new Promise((_0x51fbf1,_0x142418)=>{const _0x893c03=a117_0x35ea;_0x5626d0[_0x893c03(0x12e)](getos,(_0x138bc6,_0x525672)=>{const _0x6e4ddd=_0x893c03;if(_0x138bc6)return _0x5626d0['rFetQ'](_0x142418,_0x138bc6);_0x5626d0[_0x6e4ddd(0x136)](_0x51fbf1,_0x525672);});});};exports[a117_0x1b42eb(0x94)]=async()=>{const _0x1f211d=a117_0x1b42eb,_0x5e3bfb={'egYuY':function(_0x1c00a4){return _0x1c00a4();},'sKLYL':_0x1f211d(0x16b),'bnVQH':'Windows','hpsEa':'windows-release','HZdXb':function(_0x22a93e){return _0x22a93e();},'aFYsv':_0x1f211d(0x13a),'IhISb':_0x1f211d(0xc1)};let _0x5dc53d=_0x5e3bfb['egYuY'](getPlatformName),_0x38f308=os[_0x1f211d(0x110)]()[_0x1f211d(0x113)]();switch(_0x5dc53d){case _0x5e3bfb[_0x1f211d(0xc0)]:_0x38f308=_0x5e3bfb['egYuY'](getMacOSVersion);break;case _0x5e3bfb[_0x1f211d(0xaf)]:try{const _0x10a84e=(await import(_0x5e3bfb[_0x1f211d(0x106)]))[_0x1f211d(0xc7)];_0x38f308=_0x5e3bfb['HZdXb'](_0x10a84e);}catch(_0x824e75){exports[_0x1f211d(0xd8)](_0x1f211d(0xb3)+_0x824e75['toString']());}break;case _0x5e3bfb[_0x1f211d(0x15e)]:try{const _0x1c8046=await _0x5e3bfb['HZdXb'](getLinuxDetails);_0x1c8046[_0x1f211d(0xeb)]&&(_0x5dc53d=_0x1c8046[_0x1f211d(0xeb)]),_0x1c8046[_0x1f211d(0x110)]&&(_0x38f308=_0x1c8046['release'][_0x1f211d(0x113)]());}catch(_0x5bcd8a){exports[_0x1f211d(0xd8)](_0x5e3bfb[_0x1f211d(0x176)]);}break;default:break;}const _0x1da470={};return _0x1da470[_0x1f211d(0x151)]=_0x5dc53d,_0x1da470[_0x1f211d(0x127)]=_0x38f308,_0x1da470;},exports[a117_0x1b42eb(0x10e)]=(_0x2d0aca,_0x348555)=>{const _0x5ddd1f=a117_0x1b42eb,_0x42c07c={};_0x42c07c[_0x5ddd1f(0xff)]=function(_0x290f97,_0x40e865){return _0x290f97===_0x40e865;},_0x42c07c['FbIDj']=_0x5ddd1f(0x13c),_0x42c07c[_0x5ddd1f(0x122)]=function(_0x8a1049,_0x5192e8){return _0x8a1049===_0x5192e8;},_0x42c07c['djzSs']=_0x5ddd1f(0x15c);const _0x5acf70=_0x42c07c;if(!_0x2d0aca)return[];try{if(_0x5acf70[_0x5ddd1f(0xff)](_0x348555,_0x5acf70[_0x5ddd1f(0x181)]))return _0x2d0aca[_0x5ddd1f(0xc8)](_0x250490=>{const _0x1f1ced=_0x5ddd1f,{stack:_0x59556d,..._0x4780f1}=_0x250490,_0x5b0d1b=Object[_0x1f1ced(0xd1)](_0x4780f1)['map'](_0x38677e=>{return _0x38677e+':\x20'+_0x4780f1[_0x38677e];}),_0x13ed2c=_0x59556d?exports[_0x1f1ced(0x11a)](_0x59556d)[_0x1f1ced(0x170)](/\r?\n/):[exports[_0x1f1ced(0x11a)](_0x250490[_0x1f1ced(0x111)])],_0x4f12f2={};return _0x4f12f2[_0x1f1ced(0x15b)]=_0x13ed2c,_0x4f12f2[_0x1f1ced(0xb4)]=_0x5b0d1b,_0x4f12f2;});else{if(_0x5acf70['sLAtE'](_0x348555,_0x5acf70['djzSs'])){const _0x4ab527=[],_0xc4eda7=[];return Object[_0x5ddd1f(0xd1)](_0x2d0aca)[_0x5ddd1f(0x87)](_0x474281=>{const _0x327b15=_0x5ddd1f;try{_0xc4eda7[_0x327b15(0x137)](_0x474281+':\x20'+_0x2d0aca[_0x474281]);}catch(_0x45c25a){exports[_0x327b15(0xd8)](_0x327b15(0x7d)+_0x45c25a[_0x327b15(0x111)]+_0x327b15(0x162)+_0x45c25a[_0x327b15(0x15b)]);}}),_0x4ab527[_0x5ddd1f(0x137)]({'backtrace':exports[_0x5ddd1f(0x11a)](_0x2d0aca[_0x5ddd1f(0x10c)])[_0x5ddd1f(0x170)](/\r?\n/),'expanded':_0xc4eda7}),_0x4ab527;}}return[];}catch(_0x36a7fc){exports[_0x5ddd1f(0xd8)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x36a7fc[_0x5ddd1f(0x111)]+_0x5ddd1f(0x162)+_0x36a7fc['backtrace']);}return[];};class PathHelper{constructor(_0xbd2d02,_0x57c683){const _0x7ff378=a117_0x1b42eb;this['config']=_0xbd2d02,this[_0x7ff378(0xdf)]=_0x57c683;}[a117_0x1b42eb(0x107)](_0x176a17){const _0x4db1fe=a117_0x1b42eb,_0x106b36=this['config'][_0x4db1fe(0xe8)]||this['config']['rootDir'];return path[_0x4db1fe(0x16e)](_0x106b36,_0x176a17);}['prefixTestPath'](_0x4fa06d){const _0x1cc747=a117_0x1b42eb,_0x536a3d=this[_0x1cc747(0x107)](_0x4fa06d);return this['prefix']?path[_0x1cc747(0x8e)](this[_0x1cc747(0xdf)],_0x536a3d):_0x536a3d;}}exports['PathHelper']=PathHelper,exports[a117_0x1b42eb(0x17a)]=(_0x410bcd=!![])=>{const _0x55d3d7=a117_0x1b42eb,_0x28fc79={};_0x28fc79[_0x55d3d7(0xcc)]=function(_0x233125,_0x3315b7){return _0x233125===_0x3315b7;},_0x28fc79[_0x55d3d7(0x8f)]=_0x55d3d7(0x8a),_0x28fc79['ZcukZ']=_0x55d3d7(0x16c),_0x28fc79[_0x55d3d7(0x15f)]=_0x55d3d7(0xd3),_0x28fc79[_0x55d3d7(0x11b)]='browserstack',_0x28fc79['MyDbi']=_0x55d3d7(0x16f);const _0x2c5301=_0x28fc79;requestSpy['spy']((_0x4f744c,_0x26cb64)=>{const _0x1a3c4e=_0x55d3d7;_0x26cb64&&!(_0x26cb64['headers']&&_0x2c5301['gYvhb'](_0x26cb64[_0x1a3c4e(0xa5)][_0x2c5301[_0x1a3c4e(0x8f)]],_0x2c5301[_0x1a3c4e(0x9f)]))&&(_0x26cb64['host']=_0x26cb64['hostname'],delete _0x26cb64[_0x1a3c4e(0x174)],_0x410bcd&&process['emit'](_0x1a3c4e(0x7a)+process[_0x1a3c4e(0x11f)],{'timestamp':new Date()[_0x1a3c4e(0xec)](),'level':null,'message':null,'kind':_0x2c5301[_0x1a3c4e(0x15f)],'http_response':_0x26cb64})),_0x26cb64&&(constants[_0x1a3c4e(0x159)][_0x1a3c4e(0x13c)](_0x26cb64['host'])||constants['ATS_HUB_URL_REGEX'][_0x1a3c4e(0x13c)](_0x26cb64['host']))?global[_0x1a3c4e(0x13b)]=_0x2c5301[_0x1a3c4e(0x11b)]:global[_0x1a3c4e(0x13b)]=_0x2c5301[_0x1a3c4e(0x139)];});},exports[a117_0x1b42eb(0x155)]=()=>{const _0x251859=a117_0x1b42eb,_0x5707e6={'nVxnl':function(_0x4988d7,_0x125683){return _0x4988d7(_0x125683);}};console={},Object['keys'](consoleHolder)[_0x251859(0x87)](_0x473843=>{_0x5707e6['nVxnl'](isFunction,consoleHolder[_0x473843])?console[_0x473843]=(..._0x2c9e94)=>{const _0x55d13f=a117_0x35ea;try{!Object['keys'](BSTestOpsPatcher)[_0x55d13f(0xb0)](_0x473843)?consoleHolder[_0x473843](..._0x2c9e94):BSTestOpsPatcher[_0x473843](..._0x2c9e94);}catch(_0x5543d7){consoleHolder[_0x473843](..._0x2c9e94);}}:console[_0x473843]=consoleHolder[_0x473843];});},exports[a117_0x1b42eb(0x145)]=()=>a117_0x1b42eb(0xf2)+JSON[a117_0x1b42eb(0x96)]({'action':a117_0x1b42eb(0x180),'arguments':{'data':'ObservabilitySync:'+Date['now'](),'level':a117_0x1b42eb(0xd8)}}),exports[a117_0x1b42eb(0x138)]=_0x2a7cd0=>{const _0x159f6b=a117_0x1b42eb,_0x59c773={};_0x59c773[_0x159f6b(0x121)]=function(_0x2f80f3,_0x2b5ec1){return _0x2f80f3===_0x2b5ec1;},_0x59c773[_0x159f6b(0x142)]='browserstack',_0x59c773['avcYy']='appium:app',_0x59c773[_0x159f6b(0x124)]=_0x159f6b(0x8d),_0x59c773[_0x159f6b(0xd9)]=function(_0x318247,_0x26a692){return _0x318247>_0x26a692;},_0x59c773[_0x159f6b(0x119)]=_0x159f6b(0x86),_0x59c773[_0x159f6b(0x154)]='bstack:options',_0x59c773[_0x159f6b(0xa8)]=_0x159f6b(0x103),_0x59c773[_0x159f6b(0x132)]=_0x159f6b(0x14b),_0x59c773[_0x159f6b(0x8c)]=_0x159f6b(0x135);const _0x3b8c38=_0x59c773;let _0x58ce6a=null;try{if(_0x3b8c38['HYMtA'](global[_0x159f6b(0x13b)],_0x3b8c38['eVSft'])){if(_0x2a7cd0[_0x3b8c38[_0x159f6b(0xc9)]]||_0x2a7cd0[_0x3b8c38[_0x159f6b(0x124)]]||!bsSetupHelper[_0x159f6b(0x128)](global[_0x159f6b(0x7f)])&&_0x3b8c38[_0x159f6b(0xd9)](global[_0x159f6b(0x7f)][_0x159f6b(0x172)],0x0)&&(global[_0x159f6b(0x7f)][0x0][_0x3b8c38[_0x159f6b(0x124)]]||global[_0x159f6b(0x7f)][0x0][_0x3b8c38[_0x159f6b(0xc9)]]))_0x58ce6a=_0x3b8c38[_0x159f6b(0x119)];else _0x2a7cd0[_0x3b8c38[_0x159f6b(0x154)]]&&_0x2a7cd0[_0x3b8c38[_0x159f6b(0x154)]][_0x3b8c38[_0x159f6b(0xa8)]]?_0x58ce6a=_0x3b8c38[_0x159f6b(0x132)]:_0x58ce6a=_0x3b8c38[_0x159f6b(0x8c)];}}catch(_0x3277f3){exports['debug']('Failed\x20to\x20determine\x20product\x20linked\x20to\x20Observability\x20test\x20instance\x20:\x20'+_0x3277f3);}return _0x58ce6a;},exports[a117_0x1b42eb(0xee)]=async(_0x5e540f,_0x31a620,_0x1e3a01=![])=>{const _0xcdb263=a117_0x1b42eb,_0x4f6017={};_0x4f6017[_0xcdb263(0xa0)]=function(_0x977a5a,_0x33e7){return _0x977a5a===_0x33e7;},_0x4f6017['xTSPy']=_0xcdb263(0x15d),_0x4f6017[_0xcdb263(0x13f)]=_0xcdb263(0x166),_0x4f6017[_0xcdb263(0xf8)]=_0xcdb263(0x161);const _0x2a8bd1=_0x4f6017;try{const _0x2a36a6=await _0x5e540f[_0xcdb263(0x144)](),_0x5bd604=await _0x5e540f['getSession'](),_0x15b765={},_0x397009=Object[_0xcdb263(0xbe)](_0x5bd604['getCapabilities']()['map_']),_0x377d1c={'product':exports[_0xcdb263(0x138)](_0x397009),'capabilities':_0x397009,'platform':_0x2a36a6[_0xcdb263(0xc6)](),'platform_version':bsSetupHelper['getPlatformVersion'](_0x2a8bd1[_0xcdb263(0xa0)](global[_0xcdb263(0x13b)],_0x2a8bd1[_0xcdb263(0x115)])),'browser':_0x2a36a6['getBrowserName'](),'browser_version':_0x2a36a6['getBrowserVersion'](),'session_id':_0x5bd604[_0xcdb263(0x183)]()};global[_0xcdb263(0x13b)]?_0x15b765[global[_0xcdb263(0x13b)]]=_0x377d1c:_0x15b765[_0x2a8bd1[_0xcdb263(0x13f)]]=_0x377d1c;if(_0x1e3a01)return _0x15b765;process[_0xcdb263(0xbd)](_0xcdb263(0x10d)+process[_0xcdb263(0x11f)],{'timestamp':new Date()[_0xcdb263(0xec)](),'level':null,'message':null,'kind':_0x2a8bd1[_0xcdb263(0xf8)],'http_response':_0x15b765,'uuid':_0x31a620});}catch(_0x4b79df){exports[_0xcdb263(0xd8)](_0xcdb263(0x10f)+_0x4b79df);}},exports['isInternalHook']=_0x4526e4=>{const _0x5eb2c9=a117_0x1b42eb;return _0x4526e4&&_0x4526e4[_0x5eb2c9(0x113)]()['match'](/browserstack internal helper hook/);};
|
|
1
|
+
const a117_0x26b6d9=a117_0x59f4;(function(_0x3632a5,_0x42b643){const _0x43fdc5=a117_0x59f4,_0x4d71bd=_0x3632a5();while(!![]){try{const _0x396b90=-parseInt(_0x43fdc5(0x152))/0x1+parseInt(_0x43fdc5(0x1ec))/0x2*(parseInt(_0x43fdc5(0x1e5))/0x3)+-parseInt(_0x43fdc5(0x201))/0x4+-parseInt(_0x43fdc5(0x1b9))/0x5+parseInt(_0x43fdc5(0xfe))/0x6*(-parseInt(_0x43fdc5(0x101))/0x7)+-parseInt(_0x43fdc5(0x1df))/0x8+parseInt(_0x43fdc5(0x114))/0x9;if(_0x396b90===_0x42b643)break;else _0x4d71bd['push'](_0x4d71bd['shift']());}catch(_0x1d606d){_0x4d71bd['push'](_0x4d71bd['shift']());}}}(a117_0x4c5d,0x623f4));const fs=require('fs'),path=require(a117_0x26b6d9(0x18a)),gitLastCommit=require('git-last-commit'),getRepoInfo=require(a117_0x26b6d9(0xf8)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require('./constants'),http=require('http'),https=require(a117_0x26b6d9(0x103)),child_process=require(a117_0x26b6d9(0x1d3)),getos=require(a117_0x26b6d9(0x207)),os=require('os'),logger=require(a117_0x26b6d9(0x158))[a117_0x26b6d9(0x18f)],bsSetupHelper=require(a117_0x26b6d9(0x179)),requestSpy=require('../../helpers/request-spy'),constants=require('../../bin/utils/constants'),logPatcher=require('../../bin/utils/logPatcher'),util=require(a117_0x26b6d9(0x1a8)),{fileLogger}=require(a117_0x26b6d9(0x158)),PerformanceTester=require(a117_0x26b6d9(0x14b)),{isFunction}=require('lodash'),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a117_0x26b6d9(0x154)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a117_0x26b6d9(0x1da));exports['trace']=_0x3453e3=>{const _0x5989ad=a117_0x26b6d9;fileLogger['silly']('['+new Date()[_0x5989ad(0x13b)]()+_0x5989ad(0x19c)+_0x3453e3);},exports[a117_0x26b6d9(0x13a)]=_0x131bdf=>{const _0x45720a=a117_0x26b6d9,_0x1cc83a={};_0x1cc83a[_0x45720a(0x147)]=function(_0x4a02be,_0x46d685){return _0x4a02be===_0x46d685;},_0x1cc83a[_0x45720a(0x1bb)]=_0x45720a(0x1cb),_0x1cc83a[_0x45720a(0x1b6)]=function(_0x990b1f,_0x48ca38){return _0x990b1f===_0x48ca38;};const _0x360a3a=_0x1cc83a;fileLogger['debug']('['+new Date()[_0x45720a(0x13b)]()+_0x45720a(0x19c)+_0x131bdf),(_0x360a3a['xLLcm'](process['env']['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x360a3a[_0x45720a(0x1bb)])||_0x360a3a['PngtR'](process['env'][_0x45720a(0x184)],'1'))&&consoleHolder[_0x45720a(0x108)]('\x0a['+new Date()['toISOString']()+_0x45720a(0x19c)+_0x131bdf+'\x0a');};const a117_0x9753e8={};a117_0x9753e8[a117_0x26b6d9(0x155)]=!![],a117_0x9753e8[a117_0x26b6d9(0x170)]=0xea60,a117_0x9753e8[a117_0x26b6d9(0x18c)]=0x2,a117_0x9753e8[a117_0x26b6d9(0x198)]=0x2;const httpKeepAliveAgent=new http['Agent'](a117_0x9753e8),a117_0x5129b3={};a117_0x5129b3[a117_0x26b6d9(0x155)]=!![],a117_0x5129b3[a117_0x26b6d9(0x170)]=0xea60,a117_0x5129b3[a117_0x26b6d9(0x18c)]=0x2,a117_0x5129b3[a117_0x26b6d9(0x198)]=0x2;const httpsKeepAliveAgent=new https['Agent'](a117_0x5129b3),a117_0x2ebb32={};a117_0x2ebb32[a117_0x26b6d9(0x155)]=!![],a117_0x2ebb32[a117_0x26b6d9(0x170)]=0xea60,a117_0x2ebb32[a117_0x26b6d9(0x18c)]=0x2,a117_0x2ebb32[a117_0x26b6d9(0x198)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a117_0x26b6d9(0x151))](a117_0x2ebb32),a117_0x5de5c3={};a117_0x5de5c3[a117_0x26b6d9(0x155)]=!![],a117_0x5de5c3[a117_0x26b6d9(0x170)]=0xea60,a117_0x5de5c3['maxSockets']=0x2,a117_0x5de5c3[a117_0x26b6d9(0x198)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a117_0x26b6d9(0x151))](a117_0x5de5c3);exports[a117_0x26b6d9(0x1bc)]=()=>{const _0x1c377b=a117_0x26b6d9,_0x5a5435={};_0x5a5435[_0x1c377b(0x1d2)]=function(_0x5f3203,_0x235a58){return _0x5f3203!==_0x235a58;},_0x5a5435[_0x1c377b(0x1c2)]=_0x1c377b(0x1d1);const _0x246b96=_0x5a5435;return process[_0x1c377b(0x120)][_0x1c377b(0x1f6)]&&_0x246b96[_0x1c377b(0x1d2)](process[_0x1c377b(0x120)][_0x1c377b(0x1f6)],_0x246b96[_0x1c377b(0x1c2)])?!![]:![];},exports[a117_0x26b6d9(0x1ae)]=()=>{const _0x53bf17=a117_0x26b6d9,_0x26d2f3={};_0x26d2f3[_0x53bf17(0x10d)]=function(_0x384b96,_0x16092d){return _0x384b96===_0x16092d;},_0x26d2f3[_0x53bf17(0x137)]=_0x53bf17(0x1cb);const _0x189093=_0x26d2f3;let _0x294397=!![];return process[_0x53bf17(0x120)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x294397=_0x189093[_0x53bf17(0x10d)](process[_0x53bf17(0x120)]['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0x189093[_0x53bf17(0x137)])),process[_0x53bf17(0x120)][_0x53bf17(0x1d8)]&&(_0x294397=_0x189093[_0x53bf17(0x10d)](process[_0x53bf17(0x120)]['BROWSERSTACK_TEST_OBSERVABILITY'],_0x189093[_0x53bf17(0x137)])),_0x294397;},exports[a117_0x26b6d9(0x204)]=_0x2e4d12=>{const _0xf08295=a117_0x26b6d9;if(bsSetupHelper['isUndefined'](_0x2e4d12))return undefined;try{return _0x2e4d12[_0xf08295(0x165)]()[_0xf08295(0x132)](',');}catch(_0x345fa8){return undefined;}},exports[a117_0x26b6d9(0x1ea)]=()=>{const _0x40e528=a117_0x26b6d9,_0x24ea40={'AJANG':function(_0xd9723e,_0x3f29c3){return _0xd9723e(_0x3f29c3);},'RjcgP':_0x40e528(0x15b),'kwblt':function(_0x50ae29,_0x163af0){return _0x50ae29!==_0x163af0;},'MPeRe':_0x40e528(0x1d1),'ZostI':function(_0x2c4fda,_0x1e36e7){return _0x2c4fda!==_0x1e36e7;},'sRApO':'undefined','vYSAq':_0x40e528(0x167)};return PerformanceTester[_0x40e528(0x133)](PerformanceO11yEvents[_0x40e528(0x1d7)],async()=>{const _0x3447d9=_0x40e528;try{const _0x4f0dc3=_0x24ea40[_0x3447d9(0x106)](require,_0x24ea40['RjcgP']);if(_0x4f0dc3[_0x3447d9(0x1de)]){logger[_0x3447d9(0x1a2)](_0x3447d9(0x1e0)+O11Y_URL+_0x3447d9(0x19b)+_0x4f0dc3[_0x3447d9(0x1de)]+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a');return;}process[_0x3447d9(0x120)][_0x3447d9(0x1bf)]&&_0x24ea40[_0x3447d9(0x1f2)](process[_0x3447d9(0x120)][_0x3447d9(0x1bf)],_0x24ea40[_0x3447d9(0x203)])&&_0x24ea40[_0x3447d9(0x19d)](process[_0x3447d9(0x120)][_0x3447d9(0x1bf)],_0x24ea40[_0x3447d9(0x1e1)])&&logger[_0x3447d9(0x1a2)](_0x3447d9(0x1e0)+constants[_0x3447d9(0x164)]+'/builds/'+process[_0x3447d9(0x120)][_0x3447d9(0x1bf)]+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a');}catch(_0x448496){logger[_0x3447d9(0x16f)](util[_0x3447d9(0x17c)](_0x24ea40[_0x3447d9(0x146)],new Date()['toISOString'](),_0x448496[_0x3447d9(0xfb)]||_0x448496[_0x3447d9(0x140)]||_0x448496));}})();},exports[a117_0x26b6d9(0x1b2)]=_0x6ee75c=>{const _0x3789bd=a117_0x26b6d9,_0x1f2a69={};_0x1f2a69['dGuOA']=_0x3789bd(0x209),_0x1f2a69['NsscL']=_0x3789bd(0x1a3);const _0x58f566=_0x1f2a69;if(!_0x6ee75c)return null;return _0x6ee75c[_0x3789bd(0x205)]()[_0x3789bd(0x16b)](/AssertionError/)?_0x58f566['dGuOA']:_0x58f566[_0x3789bd(0x1ca)];},exports[a117_0x26b6d9(0x163)]=_0x199e86=>{const _0x2d2dd0=a117_0x26b6d9,_0x10fef9={};_0x10fef9[_0x2d2dd0(0x1ab)]=_0x2d2dd0(0x195),_0x10fef9[_0x2d2dd0(0x193)]=_0x2d2dd0(0x105),_0x10fef9['eNksJ']=_0x2d2dd0(0x117),_0x10fef9['cJyOJ']=_0x2d2dd0(0x17e),_0x10fef9['MmMDo']=_0x2d2dd0(0x1c6);const _0x484448=_0x10fef9;let _0x39be23=null;switch(_0x199e86){case FRAMEWORKS[_0x2d2dd0(0x100)]:_0x39be23=bsSetupHelper[_0x2d2dd0(0x148)](_0x484448[_0x2d2dd0(0x1ab)]);break;case FRAMEWORKS['PLAYWRIGHT']:_0x39be23=bsSetupHelper[_0x2d2dd0(0x148)](_0x484448[_0x2d2dd0(0x193)]);break;case FRAMEWORKS['CODECEPT']:case FRAMEWORKS[_0x2d2dd0(0x138)]:_0x39be23=bsSetupHelper[_0x2d2dd0(0x148)](_0x484448[_0x2d2dd0(0x186)]);break;case FRAMEWORKS[_0x2d2dd0(0x1eb)]:_0x39be23=bsSetupHelper[_0x2d2dd0(0x148)](_0x484448['cJyOJ']);break;case FRAMEWORKS[_0x2d2dd0(0x159)]:_0x39be23=bsSetupHelper[_0x2d2dd0(0x148)](_0x484448[_0x2d2dd0(0x1a5)]);break;default:break;}return _0x39be23;},exports[a117_0x26b6d9(0x1f7)]=_0x2a382e=>{const _0x25b603=a117_0x26b6d9;let _0x537581=null;switch(_0x2a382e){case FRAMEWORKS[_0x25b603(0x16d)]:_0x537581=process[_0x25b603(0x120)][_0x25b603(0x1fe)];break;}if(!_0x537581)return;return bsSetupHelper[_0x25b603(0x160)](_0x537581,![]);},exports[a117_0x26b6d9(0x1b7)]=_0x305c71=>{const _0x19b706=a117_0x26b6d9;return{'username':bsSetupHelper[_0x19b706(0x11e)](_0x305c71),'accessKey':bsSetupHelper[_0x19b706(0x115)](_0x305c71)};},exports[a117_0x26b6d9(0x208)]=(_0x3e7565,_0x1a871b)=>{const _0x3c449d=a117_0x26b6d9,_0x40efad={};_0x40efad[_0x3c449d(0x10a)]=_0x3c449d(0x180),_0x40efad[_0x3c449d(0x143)]=_0x3c449d(0x1c9),_0x40efad[_0x3c449d(0x1ba)]=_0x3c449d(0x110);const _0x3d509f=_0x40efad,_0x5118a1=_0x3d509f[_0x3c449d(0x10a)][_0x3c449d(0x132)]('|');let _0x2646d6=0x0;while(!![]){switch(_0x5118a1[_0x2646d6++]){case'0':delete _0x1a871b[_0x3c449d(0x20b)];continue;case'1':_0x3e7565[_0x3c449d(0xf5)]={'data':_0x3e7565['body'][0x0][_0x3c449d(0xfa)][0x0][_0x3c449d(0xf6)],'test_run_uuid':_0x3e7565[_0x3c449d(0x11f)][0x0][_0x3c449d(0xfa)][0x0]['test_run_uuid'],'event_type':_0x3d509f['MlymT'],'kind':_0x3d509f[_0x3c449d(0x1ba)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x3c449d(0x13b)](),'fileName':_0x3e7565[_0x3c449d(0x11f)][0x0][_0x3c449d(0xfa)][0x0][_0x3c449d(0x14a)]};continue;case'2':if(!_0x3e7565[_0x3c449d(0x11f)]||!Array[_0x3c449d(0x11c)](_0x3e7565[_0x3c449d(0x11f)]))return;continue;case'3':delete _0x3e7565['body'];continue;case'4':delete _0x3e7565[_0x3c449d(0x127)];continue;case'5':if(!_0x3e7565[_0x3c449d(0x11f)][0x0]||!_0x3e7565[_0x3c449d(0x11f)][0x0][_0x3c449d(0xfa)]||!_0x3e7565[_0x3c449d(0x11f)][0x0][_0x3c449d(0xfa)][_0x3c449d(0x125)])return;continue;}break;}},exports[a117_0x26b6d9(0x13f)]=async(_0x9b8c14,_0x350c51,_0x19a304,_0x3571de,_0x1873b8=!![])=>{const _0x2720a4=a117_0x26b6d9,_0x24cd13={};_0x24cd13[_0x2720a4(0x182)]=function(_0x4ef139,_0x19c94d){return _0x4ef139===_0x19c94d;},_0x24cd13['giiFh']='Content-Type',_0x24cd13[_0x2720a4(0x17a)]=_0x2720a4(0x10b),_0x24cd13['dBeCw']=_0x2720a4(0x103),_0x24cd13[_0x2720a4(0x19a)]=function(_0x50147f,_0x2507f8){return _0x50147f!==_0x2507f8;},_0x24cd13['ySSMU']=function(_0x1d28ec,_0x1a1dd1){return _0x1d28ec!==_0x1a1dd1;},_0x24cd13[_0x2720a4(0x187)]='object',_0x24cd13['jkCOm']=_0x2720a4(0x166);const _0x502f16=_0x24cd13,_0x24fc1d={..._0x3571de,...{'method':_0x9b8c14,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x350c51,'body':_0x19a304,'json':_0x502f16[_0x2720a4(0x182)](_0x3571de[_0x2720a4(0x20b)][_0x502f16[_0x2720a4(0x1e3)]],_0x502f16[_0x2720a4(0x17a)]),'agent':API_URL[_0x2720a4(0x113)](_0x502f16[_0x2720a4(0x134)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x502f16[_0x2720a4(0x182)](_0x350c51,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x24fc1d[_0x2720a4(0x1c5)]=API_URL['includes'](_0x502f16['dBeCw'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x2720a4(0x208)](_0x24fc1d,_0x3571de),logger[_0x2720a4(0x13a)](_0x2720a4(0x1b8)+_0x24fc1d[_0x2720a4(0x153)]));try{const {statusCode:_0x2d80dd,body:_0x3f51a5}=await bsSetupHelper['nodeRequest'](_0x9b8c14,_0x350c51,_0x24fc1d,_0x3571de,_0x24fc1d['url']);if(_0x502f16['FoGWH'](_0x2d80dd,0xc8))return _0x3f51a5?_0x3f51a5:_0x2720a4(0x1ee)+_0x2d80dd;let _0x14086f=_0x3f51a5;if(_0x1873b8)try{_0x502f16[_0x2720a4(0x141)](typeof _0x3f51a5,_0x502f16[_0x2720a4(0x187)])&&(_0x14086f=JSON['parse'](_0x3f51a5));}catch(_0x5dc846){logger[_0x2720a4(0x16f)](_0x502f16[_0x2720a4(0x17b)],_0x3f51a5,util[_0x2720a4(0x17c)](_0x5dc846));}const _0x5ad8b7={};return _0x5ad8b7['data']=_0x14086f,_0x5ad8b7;}catch(_0x1a166f){logger[_0x2720a4(0x16f)](_0x2720a4(0x131)+util[_0x2720a4(0x17c)](_0x1a166f));throw _0x1a166f;}},exports[a117_0x26b6d9(0x124)]=(_0x521739,_0x414eba,_0x480f21,_0x50c152,_0x57e151=!![])=>{const _0x523022=a117_0x26b6d9,_0x3fa073={'kRtkf':function(_0x12c3dc,_0x426d4a){return _0x12c3dc!==_0x426d4a;},'yrzMo':function(_0x4ddfa1,_0x304db5){return _0x4ddfa1(_0x304db5);},'dapAG':_0x523022(0x1c8),'UUOFZ':function(_0x4fd5b7,_0x53ae79){return _0x4fd5b7(_0x53ae79);},'UCJly':'Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','yRKMI':function(_0x2b6d16,_0x5b9ae3){return _0x2b6d16(_0x5b9ae3);},'zxvAK':function(_0x15e8d2,_0x4bcc20){return _0x15e8d2===_0x4bcc20;},'RqHgv':_0x523022(0x1e8),'TxAUN':_0x523022(0x10b),'hFXPp':_0x523022(0x103)};return new Promise((_0x18e2ed,_0x3fa4d2)=>{const _0x4ebb4e=_0x523022,_0x4eaba1={'ifusj':function(_0x1406be,_0x4bc9a3){const _0x153927=a117_0x59f4;return _0x3fa073[_0x153927(0x12c)](_0x1406be,_0x4bc9a3);},'RzEDw':function(_0x42cfbe,_0x55fbcf){const _0x3e9886=a117_0x59f4;return _0x3fa073[_0x3e9886(0x139)](_0x42cfbe,_0x55fbcf);},'YvZni':function(_0x502d5f,_0x3e8f8a){const _0x1840eb=a117_0x59f4;return _0x3fa073[_0x1840eb(0x12c)](_0x502d5f,_0x3e8f8a);},'ZhoSw':_0x3fa073[_0x4ebb4e(0x1cc)],'BJNQZ':function(_0x3e70b6,_0x384e2c){return _0x3fa073['UUOFZ'](_0x3e70b6,_0x384e2c);},'tPjMv':_0x3fa073['UCJly'],'GIuVG':function(_0x1aee15,_0x4b20d5){const _0x35ed88=_0x4ebb4e;return _0x3fa073[_0x35ed88(0x1a7)](_0x1aee15,_0x4b20d5);}},_0x1a448f={..._0x50c152,...{'method':_0x521739,'url':API_URL+'/'+_0x414eba,'body':_0x480f21,'json':_0x3fa073[_0x4ebb4e(0x12d)](_0x50c152[_0x4ebb4e(0x20b)][_0x3fa073[_0x4ebb4e(0x1b5)]],_0x3fa073['TxAUN']),'agent':API_URL['includes'](_0x3fa073[_0x4ebb4e(0x157)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x3fa073[_0x4ebb4e(0x12d)](_0x414eba,SCREENSHOT_ENDPOINT)&&(_0x1a448f[_0x4ebb4e(0x1c5)]=API_URL['includes'](_0x3fa073[_0x4ebb4e(0x157)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper['nodeRequest'](_0x521739,_0x414eba,_0x1a448f,_0x50c152,API_URL)['then'](({statusCode:_0x16fcf6,body:_0x369ed8})=>{const _0x1aef2=_0x4ebb4e;if(_0x4eaba1[_0x1aef2(0x1aa)](_0x16fcf6,0xc8))_0x4eaba1[_0x1aef2(0x1f5)](_0x3fa4d2,_0x369ed8?_0x369ed8:_0x1aef2(0x1ee)+_0x16fcf6);else{if(_0x57e151)try{_0x4eaba1[_0x1aef2(0x142)](typeof _0x369ed8,_0x4eaba1[_0x1aef2(0x150)])&&(_0x369ed8=JSON['parse'](_0x369ed8));}catch(_0x4ee171){_0x4eaba1[_0x1aef2(0x107)](_0x3fa4d2,_0x4eaba1[_0x1aef2(0x1e2)]);return;}const _0x46bd8d={};_0x46bd8d['data']=_0x369ed8,_0x4eaba1[_0x1aef2(0x206)](_0x18e2ed,_0x46bd8d);}})[_0x4ebb4e(0x128)](_0x17da7b=>{const _0x5c780f=_0x4ebb4e;_0x17da7b&&_0x4eaba1[_0x5c780f(0x206)](_0x3fa4d2,_0x17da7b);});});},exports['getBuildTags']=_0x2a5aa0=>{const _0x3a2568=a117_0x26b6d9;if(process[_0x3a2568(0x120)][_0x3a2568(0x1ad)])return process[_0x3a2568(0x120)][_0x3a2568(0x1ad)]['split'](',');if(_0x2a5aa0[_0x3a2568(0x177)])return _0x2a5aa0[_0x3a2568(0x177)];return[];},exports[a117_0x26b6d9(0x189)]=(_0x36fb8f=!![])=>{const _0x44b292=a117_0x26b6d9,_0x1c4319={};_0x1c4319[_0x44b292(0x12f)]=_0x44b292(0x10b),_0x1c4319[_0x44b292(0x1dd)]=_0x44b292(0x1cb),_0x1c4319[_0x44b292(0x1d0)]='Authorization';const _0x12c31a=_0x1c4319,_0x43ebcc={};_0x43ebcc[_0x44b292(0x1e8)]=_0x12c31a['XNNKw'],_0x43ebcc[_0x44b292(0x1fa)]=_0x12c31a[_0x44b292(0x1dd)];const _0x553179=_0x43ebcc;return _0x36fb8f&&process['env'][_0x44b292(0x1d6)]&&(_0x553179[_0x12c31a[_0x44b292(0x1d0)]]='Bearer\x20'+process[_0x44b292(0x120)][_0x44b292(0x1d6)]),_0x553179;},exports['extractValuesWithRegexKeyMatch']=_0x1125e3=>{const _0x342045=a117_0x26b6d9,_0x1d013a={};_0x1d013a[_0x342045(0x1e7)]='^CUSTOM_TAG_\x5cd+$';const _0x48da2b=_0x1d013a,_0x275f34=[],_0x1afba4=new RegExp(_0x48da2b[_0x342045(0x1e7)],'i');return Object['keys'](_0x1125e3)[_0x342045(0x19e)](_0x319a30=>_0x1afba4[_0x342045(0x194)](_0x319a30))[_0x342045(0x1b0)](_0x35f0a2=>_0x275f34[_0x342045(0x111)](_0x1125e3[_0x35f0a2])),_0x275f34;},exports[a117_0x26b6d9(0x130)]=_0x1d055b=>{const _0x561689=a117_0x26b6d9,_0x911621=[],_0x585833=_0x1d055b['customTag']||process[_0x561689(0x120)][_0x561689(0x12b)];return _0x585833&&_0x911621[_0x561689(0x111)](_0x585833),_0x911621[_0x561689(0x111)](...exports['extractValuesWithRegexKeyMatch'](process[_0x561689(0x120)])),_0x911621[_0x561689(0x111)](...exports[_0x561689(0x1e6)](_0x1d055b)),_0x911621;},exports[a117_0x26b6d9(0x188)]=_0x410c5c=>{const _0x44be19=a117_0x26b6d9;if(!_0x410c5c)return'';return _0x410c5c[_0x44be19(0x116)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a117_0x26b6d9(0x126)]=(_0x46d023=0x64)=>new Promise(_0x87e266=>setTimeout(_0x87e266,_0x46d023));const getPlatformName=()=>{const _0x4dfc74=a117_0x26b6d9,_0x3cb00d={};_0x3cb00d[_0x4dfc74(0x121)]=function(_0x3d0f26,_0x5ca2ec){return _0x3d0f26===_0x5ca2ec;},_0x3cb00d[_0x4dfc74(0x1c1)]=_0x4dfc74(0x176),_0x3cb00d[_0x4dfc74(0x1a0)]=_0x4dfc74(0x1f9),_0x3cb00d[_0x4dfc74(0x162)]=_0x4dfc74(0x1dc),_0x3cb00d['FMjbq']=_0x4dfc74(0x191),_0x3cb00d['xZhVF']=function(_0x204c15,_0x465c62){return _0x204c15===_0x465c62;},_0x3cb00d[_0x4dfc74(0x196)]=_0x4dfc74(0x11a),_0x3cb00d[_0x4dfc74(0x135)]=_0x4dfc74(0x112),_0x3cb00d['BhIZh']='Unknown';const _0x45300c=_0x3cb00d;if(_0x45300c[_0x4dfc74(0x121)](process[_0x4dfc74(0x11d)],_0x45300c[_0x4dfc74(0x1c1)]))return _0x45300c[_0x4dfc74(0x1a0)];if(_0x45300c[_0x4dfc74(0x121)](process['platform'],_0x45300c[_0x4dfc74(0x162)]))return _0x45300c[_0x4dfc74(0x14d)];if(_0x45300c[_0x4dfc74(0x1db)](process[_0x4dfc74(0x11d)],_0x45300c['VfyRI']))return _0x45300c[_0x4dfc74(0x135)];return _0x45300c[_0x4dfc74(0xff)];},getMacOSVersion=()=>{const _0x1c4be3=a117_0x26b6d9,_0x1dc2f4={};_0x1dc2f4[_0x1c4be3(0x109)]='awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27';const _0xbe7a20=_0x1dc2f4;return child_process[_0x1c4be3(0x168)](_0xbe7a20[_0x1c4be3(0x109)])[_0x1c4be3(0x205)]()[_0x1c4be3(0x165)]();},getLinuxDetails=()=>{const _0x3f218e={'eTYOX':function(_0x5f5e1a,_0x4229d0){return _0x5f5e1a(_0x4229d0);},'QiNqW':function(_0x202f3e,_0x2557dd){return _0x202f3e(_0x2557dd);}};return new Promise((_0x4762c1,_0x3d8fbf)=>{const _0x429b4d=a117_0x59f4,_0xec66ec={'xLULo':function(_0x1b207f,_0x23b0d5){const _0x3b31ef=a117_0x59f4;return _0x3f218e[_0x3b31ef(0x18b)](_0x1b207f,_0x23b0d5);}};_0x3f218e[_0x429b4d(0x1ed)](getos,(_0x49b118,_0x10c619)=>{const _0x34c452=_0x429b4d;if(_0x49b118)return _0xec66ec[_0x34c452(0xfd)](_0x3d8fbf,_0x49b118);_0xec66ec['xLULo'](_0x4762c1,_0x10c619);});});};exports[a117_0x26b6d9(0x156)]=async()=>{const _0x13fec9=a117_0x26b6d9,_0x398f71={'NfPJw':function(_0x436c7b){return _0x436c7b();},'rnWbZ':'OS\x20X','aAVVu':_0x13fec9(0x1f9),'yOUfu':_0x13fec9(0x1d9),'ckyyp':function(_0x5be627){return _0x5be627();},'fOSDd':_0x13fec9(0x112),'Ulxir':function(_0xc56071){return _0xc56071();},'YlAIf':'Error\x20in\x20getting\x20Linux\x20Details'};let _0xc87204=_0x398f71[_0x13fec9(0x102)](getPlatformName),_0x57f397=os['release']()[_0x13fec9(0x205)]();switch(_0xc87204){case _0x398f71['rnWbZ']:_0x57f397=_0x398f71['NfPJw'](getMacOSVersion);break;case _0x398f71[_0x13fec9(0x178)]:try{const _0x24d00c=(await import(_0x398f71[_0x13fec9(0x1af)]))[_0x13fec9(0x1ff)];_0x57f397=_0x398f71[_0x13fec9(0xfc)](_0x24d00c);}catch(_0x14ffa4){exports[_0x13fec9(0x13a)](_0x13fec9(0x1b4)+_0x14ffa4[_0x13fec9(0x205)]());}break;case _0x398f71[_0x13fec9(0x15a)]:try{const _0x160115=await _0x398f71[_0x13fec9(0x17f)](getLinuxDetails);_0x160115[_0x13fec9(0x1c0)]&&(_0xc87204=_0x160115[_0x13fec9(0x1c0)]),_0x160115[_0x13fec9(0x173)]&&(_0x57f397=_0x160115[_0x13fec9(0x173)]['toString']());}catch(_0x1e0381){exports[_0x13fec9(0x13a)](_0x398f71['YlAIf']);}break;default:break;}const _0x5f4a21={};return _0x5f4a21[_0x13fec9(0x10f)]=_0xc87204,_0x5f4a21[_0x13fec9(0x1f8)]=_0x57f397,_0x5f4a21;},exports[a117_0x26b6d9(0x1c3)]=(_0x11dbaf,_0x30c421)=>{const _0x5ef251=a117_0x26b6d9,_0xffe2b7={};_0xffe2b7['vRSzI']=function(_0x19cc3d,_0x409b1a){return _0x19cc3d===_0x409b1a;},_0xffe2b7['aCyUu']=_0x5ef251(0x194),_0xffe2b7[_0x5ef251(0x1a1)]=function(_0x1753e1,_0x12ab9b){return _0x1753e1===_0x12ab9b;},_0xffe2b7[_0x5ef251(0x1cd)]=_0x5ef251(0x13c);const _0x1583cd=_0xffe2b7;if(!_0x11dbaf)return[];try{if(_0x1583cd[_0x5ef251(0x1f3)](_0x30c421,_0x1583cd[_0x5ef251(0x13e)]))return _0x11dbaf[_0x5ef251(0x199)](_0x2437bc=>{const _0x4516cb=_0x5ef251,{stack:_0x1b9686,..._0x5d5754}=_0x2437bc,_0x31f0cd=Object['keys'](_0x5d5754)[_0x4516cb(0x199)](_0x39bff4=>{return _0x39bff4+':\x20'+_0x5d5754[_0x39bff4];}),_0xa856e0=_0x1b9686?exports[_0x4516cb(0x188)](_0x1b9686)['split'](/\r?\n/):[exports[_0x4516cb(0x188)](_0x2437bc[_0x4516cb(0x140)])],_0xcede8a={};return _0xcede8a[_0x4516cb(0x197)]=_0xa856e0,_0xcede8a[_0x4516cb(0x15f)]=_0x31f0cd,_0xcede8a;});else{if(_0x1583cd[_0x5ef251(0x1a1)](_0x30c421,_0x1583cd[_0x5ef251(0x1cd)])){const _0x3bcd4b=[],_0x1503bd=[];return Object[_0x5ef251(0x18d)](_0x11dbaf)[_0x5ef251(0x1b0)](_0x47dfaf=>{const _0x40aa47=_0x5ef251;try{_0x1503bd[_0x40aa47(0x111)](_0x47dfaf+':\x20'+_0x11dbaf[_0x47dfaf]);}catch(_0x2aadfb){exports[_0x40aa47(0x13a)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x2aadfb[_0x40aa47(0x140)]+_0x40aa47(0x144)+_0x2aadfb[_0x40aa47(0x197)]);}}),_0x3bcd4b[_0x5ef251(0x111)]({'backtrace':exports[_0x5ef251(0x188)](_0x11dbaf['stack'])[_0x5ef251(0x132)](/\r?\n/),'expanded':_0x1503bd}),_0x3bcd4b;}}return[];}catch(_0x41f184){exports[_0x5ef251(0x13a)](_0x5ef251(0x12a)+_0x41f184[_0x5ef251(0x140)]+'\x20:\x20'+_0x41f184[_0x5ef251(0x197)]);}return[];};class PathHelper{constructor(_0x545835,_0x21d1da){const _0x331be6=a117_0x26b6d9;this['config']=_0x545835,this[_0x331be6(0x1ce)]=_0x21d1da;}['relativeTestFilePath'](_0x29c016){const _0x3fe0c1=a117_0x26b6d9,_0x5dc03a=this[_0x3fe0c1(0x172)]['cwd']||this[_0x3fe0c1(0x172)][_0x3fe0c1(0x118)];return path[_0x3fe0c1(0x10c)](_0x5dc03a,_0x29c016);}[a117_0x26b6d9(0x20a)](_0xc4cea7){const _0x5562ae=a117_0x26b6d9,_0x32fa7f=this[_0x5562ae(0x1ac)](_0xc4cea7);return this[_0x5562ae(0x1ce)]?path[_0x5562ae(0x1d5)](this[_0x5562ae(0x1ce)],_0x32fa7f):_0x32fa7f;}}function a117_0x59f4(_0x3c8bb6,_0x4d0bfc){const _0x4c5d2f=a117_0x4c5d();return a117_0x59f4=function(_0x59f41e,_0x5a60af){_0x59f41e=_0x59f41e-0xf4;let _0x3d02cd=_0x4c5d2f[_0x59f41e];return _0x3d02cd;},a117_0x59f4(_0x3c8bb6,_0x4d0bfc);}exports[a117_0x26b6d9(0x1c4)]=PathHelper,exports[a117_0x26b6d9(0x145)]=(_0x1d114d=!![])=>{const _0x1f9ff1=a117_0x26b6d9,_0x41e048={};_0x41e048[_0x1f9ff1(0x181)]=function(_0x37040a,_0x532011){return _0x37040a===_0x532011;},_0x41e048[_0x1f9ff1(0x161)]='X-BSTACK-TESTOPS',_0x41e048[_0x1f9ff1(0x122)]=_0x1f9ff1(0x1cb),_0x41e048[_0x1f9ff1(0x14c)]='HTTP',_0x41e048['miOPt']=_0x1f9ff1(0x12e),_0x41e048[_0x1f9ff1(0x119)]=_0x1f9ff1(0x202);const _0x396ff1=_0x41e048;requestSpy['spy']((_0x48c7c5,_0x2a568d)=>{const _0x256f22=_0x1f9ff1;_0x2a568d&&!(_0x2a568d['headers']&&_0x396ff1[_0x256f22(0x181)](_0x2a568d[_0x256f22(0x20b)][_0x396ff1[_0x256f22(0x161)]],_0x396ff1['CwsmD']))&&(_0x2a568d[_0x256f22(0x19f)]=_0x2a568d['hostname'],delete _0x2a568d[_0x256f22(0x1e4)],_0x1d114d&&process[_0x256f22(0xf4)](_0x256f22(0x123)+process[_0x256f22(0x17d)],{'timestamp':new Date()[_0x256f22(0x13b)](),'level':null,'message':null,'kind':_0x396ff1[_0x256f22(0x14c)],'http_response':_0x2a568d})),_0x2a568d&&(constants[_0x256f22(0x183)][_0x256f22(0x194)](_0x2a568d[_0x256f22(0x19f)])||constants[_0x256f22(0x200)][_0x256f22(0x194)](_0x2a568d[_0x256f22(0x19f)]))?global[_0x256f22(0x10e)]=_0x396ff1['miOPt']:global[_0x256f22(0x10e)]=_0x396ff1[_0x256f22(0x119)];});},exports['patchConsoleLogger']=()=>{const _0x28e10a=a117_0x26b6d9,_0x7ab787={'fuNpM':function(_0x5d087c,_0x49413f){return _0x5d087c(_0x49413f);}};console={},Object[_0x28e10a(0x18d)](consoleHolder)[_0x28e10a(0x1b0)](_0xb1ec7b=>{const _0xf2f0fb=_0x28e10a;_0x7ab787[_0xf2f0fb(0x16e)](isFunction,consoleHolder[_0xb1ec7b])?console[_0xb1ec7b]=(..._0x334da8)=>{const _0x102e18=_0xf2f0fb;try{!Object[_0x102e18(0x18d)](BSTestOpsPatcher)[_0x102e18(0x113)](_0xb1ec7b)?consoleHolder[_0xb1ec7b](..._0x334da8):BSTestOpsPatcher[_0xb1ec7b](..._0x334da8);}catch(_0x7fb938){consoleHolder[_0xb1ec7b](..._0x334da8);}}:console[_0xb1ec7b]=consoleHolder[_0xb1ec7b];});},exports[a117_0x26b6d9(0x149)]=()=>'browserstack_executor:\x20'+JSON[a117_0x26b6d9(0x190)]({'action':a117_0x26b6d9(0x192),'arguments':{'data':a117_0x26b6d9(0x16a)+Date[a117_0x26b6d9(0x174)](),'level':'debug'}}),exports[a117_0x26b6d9(0x15d)]=_0x30320f=>{const _0x3da3d2=a117_0x26b6d9,_0x279f4b={};_0x279f4b['tnMYE']=function(_0x4319fc,_0x322589){return _0x4319fc===_0x322589;},_0x279f4b[_0x3da3d2(0x14f)]=_0x3da3d2(0x12e),_0x279f4b[_0x3da3d2(0x1f4)]=_0x3da3d2(0x15e),_0x279f4b[_0x3da3d2(0x1fb)]=_0x3da3d2(0x1fd),_0x279f4b[_0x3da3d2(0x1b1)]=function(_0x3e48d1,_0x51267d){return _0x3e48d1>_0x51267d;},_0x279f4b[_0x3da3d2(0x175)]=_0x3da3d2(0x16c),_0x279f4b[_0x3da3d2(0x104)]='bstack:options',_0x279f4b[_0x3da3d2(0xf7)]=_0x3da3d2(0x1cf),_0x279f4b['cJLWK']=_0x3da3d2(0x11b),_0x279f4b[_0x3da3d2(0x1bd)]=_0x3da3d2(0x185);const _0x4b65bd=_0x279f4b;let _0x1bc68c=null;try{if(_0x4b65bd[_0x3da3d2(0x1c7)](global[_0x3da3d2(0x10e)],_0x4b65bd[_0x3da3d2(0x14f)])){if(_0x30320f[_0x4b65bd[_0x3da3d2(0x1f4)]]||_0x30320f[_0x4b65bd[_0x3da3d2(0x1fb)]]||!bsSetupHelper[_0x3da3d2(0x15c)](global[_0x3da3d2(0x169)])&&_0x4b65bd['YMDAE'](global[_0x3da3d2(0x169)]['length'],0x0)&&(global[_0x3da3d2(0x169)][0x0][_0x4b65bd[_0x3da3d2(0x1fb)]]||global['capabilities'][0x0][_0x4b65bd[_0x3da3d2(0x1f4)]]))_0x1bc68c=_0x4b65bd[_0x3da3d2(0x175)];else _0x30320f[_0x4b65bd[_0x3da3d2(0x104)]]&&_0x30320f[_0x4b65bd[_0x3da3d2(0x104)]][_0x4b65bd[_0x3da3d2(0xf7)]]?_0x1bc68c=_0x4b65bd[_0x3da3d2(0x1f1)]:_0x1bc68c=_0x4b65bd[_0x3da3d2(0x1bd)];}}catch(_0x1418f7){exports[_0x3da3d2(0x13a)](_0x3da3d2(0x1fc)+_0x1418f7);}return _0x1bc68c;},exports['sendPlatformDetails']=async(_0x5133c7,_0x332ef2,_0x40ac73=![])=>{const _0x23e0d2=a117_0x26b6d9,_0x295951={};_0x295951[_0x23e0d2(0xf9)]=function(_0x2e1cfb,_0x5db789){return _0x2e1cfb===_0x5db789;},_0x295951[_0x23e0d2(0x14e)]='browserstack',_0x295951['PhFPf']='unknown_grid',_0x295951[_0x23e0d2(0x1e9)]=_0x23e0d2(0x1a9);const _0x654ae1=_0x295951;try{const _0x24bddb=await _0x5133c7[_0x23e0d2(0x1b3)](),_0x4b30cb=await _0x5133c7[_0x23e0d2(0x1be)](),_0x48a37a={},_0x486f8a=Object[_0x23e0d2(0x13d)](_0x4b30cb['getCapabilities']()[_0x23e0d2(0x136)]),_0x17c00d={'product':exports[_0x23e0d2(0x15d)](_0x486f8a),'capabilities':_0x486f8a,'platform':_0x24bddb['getPlatform'](),'platform_version':bsSetupHelper[_0x23e0d2(0x1a4)](_0x654ae1[_0x23e0d2(0xf9)](global[_0x23e0d2(0x10e)],_0x654ae1['RBQBi'])),'browser':_0x24bddb[_0x23e0d2(0x129)](),'browser_version':_0x24bddb[_0x23e0d2(0x1a6)](),'session_id':_0x4b30cb[_0x23e0d2(0x18e)]()};global['__cloud_provider___']?_0x48a37a[global[_0x23e0d2(0x10e)]]=_0x17c00d:_0x48a37a[_0x654ae1[_0x23e0d2(0x1ef)]]=_0x17c00d;if(_0x40ac73)return _0x48a37a;process['emit'](_0x23e0d2(0x1f0)+process[_0x23e0d2(0x17d)],{'timestamp':new Date()[_0x23e0d2(0x13b)](),'level':null,'message':null,'kind':_0x654ae1['iaUtS'],'http_response':_0x48a37a,'uuid':_0x332ef2});}catch(_0x2fea0d){exports[_0x23e0d2(0x13a)](_0x23e0d2(0x171)+_0x2fea0d);}},exports[a117_0x26b6d9(0x1d4)]=_0x10da71=>{const _0x358d5d=a117_0x26b6d9;return _0x10da71&&_0x10da71[_0x358d5d(0x205)]()['match'](/browserstack internal helper hook/);};function a117_0x4c5d(){const _0x643ac1=['map','FoGWH','/builds/','][\x20OBSERVABILITY\x20]\x20','ZostI','filter','host','tvcnh','PiBJs','info','UnhandledError','getPlatformVersion','MmMDo','getBrowserVersion','yRKMI','util','TEST_PLATFORM','ifusj','jdWUq','relativeTestFilePath','TEST_OBSERVABILITY_BUILD_TAG','isTestObservabilitySession','yOUfu','forEach','YMDAE','getFailureType','getCapabilities','Error\x20in\x20importing\x20windows-release\x20','RqHgv','PngtR','getUserCredentials','Uploading\x20trace\x20logs\x20to:\x20','285340dYnrqF','iOGfT','nTuLy','shouldReRunObservabilityTests','Fsndj','getSession','BS_TESTOPS_BUILD_HASHED_ID','dist','KtjOc','KekfV','failureData','PathHelper','agent','@cucumber/cucumber','tnMYE','object','LogCreated','NsscL','true','dapAG','KyhzH','prefix','turboScaleGridDetails','opyvg','null','Dhqwt','child_process','isInternalHook','join','BROWSERSTACK_TESTHUB_JWT','PRINT_BUILDLINK','BROWSERSTACK_TEST_OBSERVABILITY','windows-release','../../../src/bin/utils/constants','xZhVF','darwin','ULcAD','O11yHashedID','3401176EYdKjT','Visit\x20','sRApO','tPjMv','giiFh','hostname','3879dtHMJN','extractValuesWithRegexKeyMatch','YKsKM','Content-Type','iaUtS','printBuildLink','JEST','1108COnMsQ','QiNqW','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','PhFPf','bs:addPlatformDetails:','cJLWK','kwblt','vRSzI','bvjZN','RzEDw','BROWSERSTACK_RERUN_TESTS','getBrowserStackConfig','platformVersion','Windows','X-BSTACK-TESTOPS','tvUBz','Failed\x20to\x20determine\x20product\x20linked\x20to\x20Observability\x20test\x20instance\x20:\x20','app','BROWSERSTACK_CONFIG_FILE_PATH','default','ATS_HUB_URL_REGEX','1046936OsKwgb','local_grid','MPeRe','parseFileNames','toString','GIuVG','getos','modifyReqForTraceUpload','AssertionError','prefixTestPath','headers','emit','formData','data','EVlch','git-repo-info','DfZJx','logs','stack','ckyyp','xLULo','3064164txmEiQ','BhIZh','MOCHA','7VoxbLQ','NfPJw','https','wxHOe','@playwright/test','AJANG','BJNQZ','log','xInEG','VnPBv','application/json','relative','fVlqv','__cloud_provider___','platformName','TEST_ATTACHMENT','push','Linux','includes','11464542AQTOAI','getAccessKey','replace','codeceptjs','rootDir','SwEeG','linux','turboscale','isArray','platform','getUserName','body','env','hcCNg','CwsmD','bs:addLog:','nodeRequest','length','sleep','json','catch','getBrowserName','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','CUSTOM_TAG','kRtkf','zxvAK','browserstack','XNNKw','getCustomTags','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','split','measureWrapper','dBeCw','cHOEg','map_','EFYDU','CODECEPT_CUCUMBER','yrzMo','debug','toISOString','err','fromEntries','aCyUu','asyncAwaitNodeReq','message','ySSMU','YvZni','MlymT','\x20:\x20','addRequestSpy','vYSAq','xLLcm','getPackageVersion','getSyncScript','fileName','../performance/performance-tester','ovfEk','FMjbq','RBQBi','oweul','ZhoSw','Agent','333097rHbmZY','url','../performance/constants','keepAlive','getPlatformDetails','hFXPp','../logger','CUCUMBER','fOSDd','../../bin/v2/browserstackCLI','isUndefined','getObservabilityLinkedProductName','appium:app','expanded','readConfig','QkbTn','hJzUE','getFrameworkVersion','O11Y_URL','trim','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','[%s][\x20OBSERVABILITY\x20]\x20Build\x20Not\x20Found\x20%s','execSync','capabilities','ObservabilitySync:','match','app-automate','PLAYWRIGHT','fuNpM','error','timeout','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','config','release','now','YbrxD','win32','buildTag','aAVVu','../helper','XRDlG','jkCOm','format','pid','jest','Ulxir','2|5|1|3|4|0','LDPLd','FSIlQ','HUB_URL_REGEX','BROWSERSTACK_OBSERVABILITY_DEBUG','automate','eNksJ','ASEyL','removeAnsiColors','getDefaultHeaders','path','eTYOX','maxSockets','keys','toJSON','winstonLogger','stringify','OS\x20X','annotate','WxBEc','test','mocha','VfyRI','backtrace','maxTotalSockets'];a117_0x4c5d=function(){return _0x643ac1;};return a117_0x4c5d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a118_0x42c0(){var _0x559d53=['1010560dlUtZd','2390ElVeFb','ORCHESTRATION_API_URL','424NBzVul','exports','26731BOxxPJ','SPLIT_TESTS_ENDPOINT','195906SPvGok','52wrRzYB','FAILED_TESTS_ENDPOINT','11110itfbXy','1146pbedFp','testorchestration/api/v1/split-tests','3612NhdRbX','1840660aAopnl','45jiNQHf','133735tszOOs','testorchestration/api/v1/failed-tests','https://collector-observability.browserstack.com'];a118_0x42c0=function(){return _0x559d53;};return a118_0x42c0();}var a118_0x1f515d=a118_0x4503;(function(_0x4582a6,_0x51c40a){var _0x410766=a118_0x4503,_0x1faaca=_0x4582a6();while(!![]){try{var _0x22841e=parseInt(_0x410766(0xc4))/0x1*(parseInt(_0x410766(0xb4))/0x2)+-parseInt(_0x410766(0xb3))/0x3+-parseInt(_0x410766(0xbf))/0x4+-parseInt(_0x410766(0xc0))/0x5*(-parseInt(_0x410766(0xb7))/0x6)+-parseInt(_0x410766(0xbc))/0x7*(parseInt(_0x410766(0xc2))/0x8)+parseInt(_0x410766(0xbb))/0x9*(parseInt(_0x410766(0xba))/0xa)+parseInt(_0x410766(0xb6))/0xb*(parseInt(_0x410766(0xb9))/0xc);if(_0x22841e===_0x51c40a)break;else _0x1faaca['push'](_0x1faaca['shift']());}catch(_0x5307ea){_0x1faaca['push'](_0x1faaca['shift']());}}}(a118_0x42c0,0xa60c9));var a118_0x486e73={};function a118_0x4503(_0x243389,_0x49d7c3){var _0x42c064=a118_0x42c0();return a118_0x4503=function(_0x450394,_0x45d2b5){_0x450394=_0x450394-0xb3;var _0x69916f=_0x42c064[_0x450394];return _0x69916f;},a118_0x4503(_0x243389,_0x49d7c3);}a118_0x486e73[a118_0x1f515d(0xc1)]=a118_0x1f515d(0xbe),a118_0x486e73[a118_0x1f515d(0xb5)]=a118_0x1f515d(0xbd),a118_0x486e73[a118_0x1f515d(0xc5)]=a118_0x1f515d(0xb8),module[a118_0x1f515d(0xc3)]=a118_0x486e73;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a119_0x2ddc78=a119_0x5ba7;function a119_0x5ba7(_0x2284e7,_0x9f0d14){const _0x11a120=a119_0x11a1();return a119_0x5ba7=function(_0x5ba79f,_0xf75bce){_0x5ba79f=_0x5ba79f-0x166;let _0x2f758b=_0x11a120[_0x5ba79f];return _0x2f758b;},a119_0x5ba7(_0x2284e7,_0x9f0d14);}function a119_0x11a1(){const _0x1e2d68=['getFailedTestsCount','buildName','kyIcD','HNGQu','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','readState','../logger','number','stateFilePath',',\x20CI\x20Mode:\x20','_sendFailedTestsToAPI','\x0aStack:\x20','recordTestResult','from','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','BROWSERSTACK_BUILD_RUN_IDENTIFIER','failFastActiveMarkerPath','failFastState.json','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','gMSRB','_CI]\x20Error\x20during\x20polling\x20logic:\x20','8yTEeeq','pIEsh','lockFilePath','failFast.active','writeState','putFailedTests','cleanup','HXyse','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','QYLPw','tHMzf','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','gqmlv','pollingInterval','lkMev','exports','wEsho','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','hfKZn','jetYQ',',\x20threshold:\x20','failFastActive','VxUdK','37722wwPtRw','chEyu','GXrKp','env','2921259jmscra','1435HJZqzv','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','message','uniqueFailedTests','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','vbeiC','error','CReoJ','onTestDone','winstonLogger','GYeOB','Mknuu','KADjM','irkMJ','1930982QKJyYD','\x20(was\x20','_CI]\x20Error\x20sending\x20failed\x20test\x20','GopcM',']\x20Polling\x20stopped.','_Local]\x20State\x20initialized\x20from\x20file.','FMndn','warn','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','lastAPIFailedCount','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','buildRunIdentifier','./fileHelper','failFastConfig','WtMss','XKljc','stopPolling','uIDPo','RyPLi','5868336vbMTch','newState','existsSync','46827132TUAnLf','workingDir','fileHelper','_pollFailedTests','totalTests','12720323wloKMo','2xWLWEV','frlbT','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','passed','reportedFailuresToAPI','nejjr','ONeuE','13329NXeMBY','add','size',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','isCIMode','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','7430IKienF','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','hdJbj','BROWSERSTACK_TOTAL_NODE_COUNT','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','join','RDItP','_getDefaultState','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','info','length','debug','./requestUtils',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','_fetchAPIFailedCount','kVwtC','_initializeStateFromFile','writeFileSync','MHISd','state','projectName','stack','vyHAC','gbmyh','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','_CI]\x20Polling\x20started\x20with\x20interval:\x20','kwyCf','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','ms.','path'];a119_0x11a1=function(){return _0x1e2d68;};return a119_0x11a1();}(function(_0x278c2c,_0x3c2683){const _0x5de0c6=a119_0x5ba7,_0x5ca6a0=_0x278c2c();while(!![]){try{const _0x580b86=parseInt(_0x5de0c6(0x171))/0x1*(-parseInt(_0x5de0c6(0x1dd))/0x2)+-parseInt(_0x5de0c6(0x1ce))/0x3+-parseInt(_0x5de0c6(0x168))/0x4+-parseInt(_0x5de0c6(0x1cf))/0x5*(parseInt(_0x5de0c6(0x1ca))/0x6)+-parseInt(_0x5de0c6(0x170))/0x7*(-parseInt(_0x5de0c6(0x1b2))/0x8)+parseInt(_0x5de0c6(0x178))/0x9*(parseInt(_0x5de0c6(0x17e))/0xa)+parseInt(_0x5de0c6(0x16b))/0xb;if(_0x580b86===_0x3c2683)break;else _0x5ca6a0['push'](_0x5ca6a0['shift']());}catch(_0x4f1a36){_0x5ca6a0['push'](_0x5ca6a0['shift']());}}}(a119_0x11a1,0xf3bfc));const fs=require('fs'),path=require(a119_0x2ddc78(0x19b)),FileHelper=require(a119_0x2ddc78(0x1ea)),RequestUtils=require(a119_0x2ddc78(0x18a)),logger=require(a119_0x2ddc78(0x1a2))[a119_0x2ddc78(0x1d8)],POLLING_INTERVAL=0x2710,TAG='FailFastManager';class FailFastManager{constructor(_0x377a65,_0xf004f,_0xb2a46e){const _0x1703cc=a119_0x2ddc78,_0x54cd50={};_0x54cd50[_0x1703cc(0x1d4)]=function(_0x45774d,_0x43cc04){return _0x45774d+_0x43cc04;},_0x54cd50[_0x1703cc(0x1ec)]=_0x1703cc(0x1a7),_0x54cd50[_0x1703cc(0x1bc)]=function(_0x33b428,_0x3e0877){return _0x33b428||_0x3e0877;},_0x54cd50[_0x1703cc(0x1bb)]=_0x1703cc(0x1ad),_0x54cd50[_0x1703cc(0x167)]='failFastState.lock',_0x54cd50[_0x1703cc(0x1d6)]=_0x1703cc(0x1b5);const _0x5f20bb=_0x54cd50;this[_0x1703cc(0x1eb)]=_0x5f20bb['tHMzf'](_0x377a65,{}),this[_0x1703cc(0x19d)]=_0xf004f,this[_0x1703cc(0x192)]=_0xb2a46e,this[_0x1703cc(0x17c)]=!!(process[_0x1703cc(0x1cd)][_0x1703cc(0x1ab)]&&process[_0x1703cc(0x1cd)]['BROWSERSTACK_NODE_INDEX']&&process[_0x1703cc(0x1cd)][_0x1703cc(0x181)]);const _0x4532f2=this[_0x1703cc(0x1eb)][_0x1703cc(0x16c)];this[_0x1703cc(0x1a4)]=path['join'](_0x4532f2,_0x5f20bb[_0x1703cc(0x1bb)]),this[_0x1703cc(0x1b4)]=path[_0x1703cc(0x183)](_0x4532f2,_0x5f20bb[_0x1703cc(0x167)]),this['failFastActiveMarkerPath']=path[_0x1703cc(0x183)](_0x4532f2,_0x5f20bb[_0x1703cc(0x1d6)]),this[_0x1703cc(0x16d)]=new FileHelper(this['failFastConfig'],this[_0x1703cc(0x1a4)],this['lockFilePath'],this[_0x1703cc(0x185)]()),this[_0x1703cc(0x191)]=this[_0x1703cc(0x185)](),this[_0x1703cc(0x1c0)]=null,this[_0x1703cc(0x17c)]&&(this[_0x1703cc(0x175)]=new Set()),this['_initializeStateFromFile']()['catch'](_0x73badb=>{const _0x36cc9e=_0x1703cc;logger[_0x36cc9e(0x1d5)]('['+TAG+']\x20Critical\x20error\x20during\x20async\x20initialization:\x20'+_0x73badb[_0x36cc9e(0x1d1)]+(_0x73badb[_0x36cc9e(0x193)]?_0x5f20bb[_0x36cc9e(0x1d4)](_0x5f20bb[_0x36cc9e(0x1ec)],_0x73badb[_0x36cc9e(0x193)]):'')),this['state']=this[_0x36cc9e(0x185)]();}),this[_0x1703cc(0x17c)]&&this['startPolling'](),logger[_0x1703cc(0x189)]('['+TAG+_0x1703cc(0x17b)+this[_0x1703cc(0x1eb)]['failureThresholdCount']+_0x1703cc(0x1a5)+this[_0x1703cc(0x17c)]);}['_getDefaultState'](){const _0x39cbd0={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x39cbd0;}async[a119_0x2ddc78(0x18e)](){const _0x593510=a119_0x2ddc78,_0x3787cb={};_0x3787cb['KADjM']=function(_0x1f25bf,_0x306072){return _0x1f25bf+_0x306072;},_0x3787cb[_0x593510(0x1c1)]=_0x593510(0x1a7);const _0x49d8fe=_0x3787cb;if(this[_0x593510(0x17c)])try{fs[_0x593510(0x16a)](this[_0x593510(0x1ac)])&&(this['state'][_0x593510(0x1c8)]=!![],logger[_0x593510(0x189)]('['+TAG+_0x593510(0x199)));}catch(_0x178595){logger[_0x593510(0x1d5)]('['+TAG+_0x593510(0x186)+_0x178595['message']+(_0x178595[_0x593510(0x193)]?_0x49d8fe[_0x593510(0x1db)](_0x49d8fe[_0x593510(0x1c1)],_0x178595['stack']):''));}else try{const _0x151370=await this[_0x593510(0x16d)][_0x593510(0x1a1)]();if(_0x151370)this[_0x593510(0x191)]={...this[_0x593510(0x185)](),..._0x151370,'uniqueFailedTests':new Set(_0x151370[_0x593510(0x1d2)]||[])},logger[_0x593510(0x189)]('['+TAG+_0x593510(0x1e2));else{logger[_0x593510(0x189)]('['+TAG+_0x593510(0x1aa));const _0xa87602=this[_0x593510(0x185)](),_0x19c17c={..._0xa87602,'uniqueFailedTests':Array[_0x593510(0x1a9)](_0xa87602['uniqueFailedTests'])};await this[_0x593510(0x16d)][_0x593510(0x1b6)](_0x19c17c),this[_0x593510(0x191)]=_0xa87602;}}catch(_0x5c7ed6){logger[_0x593510(0x189)]('['+TAG+_0x593510(0x1af)+_0x5c7ed6[_0x593510(0x1d1)]+(_0x5c7ed6['stack']?_0x49d8fe[_0x593510(0x1db)](_0x49d8fe['lkMev'],_0x5c7ed6[_0x593510(0x193)]):'')),this[_0x593510(0x191)]=this[_0x593510(0x185)]();}}async[a119_0x2ddc78(0x1d7)](_0x33b1c8,_0x182df2){const _0x54fc05=a119_0x2ddc78,_0x179221={};_0x179221[_0x54fc05(0x172)]=function(_0x2f65e0,_0x487344){return _0x2f65e0>_0x487344;},_0x179221[_0x54fc05(0x1dc)]=function(_0x1b2c06,_0x5bb2f8){return _0x1b2c06>_0x5bb2f8;},_0x179221[_0x54fc05(0x177)]='failed',_0x179221[_0x54fc05(0x176)]=_0x54fc05(0x174),_0x179221['RDItP']=function(_0x316162,_0x5ea839){return _0x316162+_0x5ea839;},_0x179221[_0x54fc05(0x1b9)]='\x0aStack:\x20',_0x179221[_0x54fc05(0x1d9)]=function(_0x5b06c0,_0x4c55a4){return _0x5b06c0||_0x4c55a4;};const _0x58bc6d=_0x179221;if(this['isCIMode'])this['state'][_0x54fc05(0x16f)]+=0x1,_0x182df2&&_0x58bc6d[_0x54fc05(0x172)](_0x182df2[_0x54fc05(0x188)],0x0)&&(!this[_0x54fc05(0x175)]['has'](_0x33b1c8)&&(await this[_0x54fc05(0x1a6)](_0x33b1c8),this[_0x54fc05(0x175)][_0x54fc05(0x179)](_0x33b1c8)));else try{const _0x25ab5b={'fullName':_0x33b1c8,'status':_0x182df2&&_0x58bc6d[_0x54fc05(0x1dc)](_0x182df2[_0x54fc05(0x188)],0x0)?_0x58bc6d[_0x54fc05(0x177)]:_0x58bc6d[_0x54fc05(0x176)]},_0xa88618=await this[_0x54fc05(0x16d)][_0x54fc05(0x1a8)](_0x25ab5b);this[_0x54fc05(0x191)]={...this['_getDefaultState'](),..._0xa88618['newState'],'uniqueFailedTests':new Set(_0xa88618[_0x54fc05(0x169)][_0x54fc05(0x1d2)]||[])};}catch(_0x419c4f){logger[_0x54fc05(0x1d5)]('['+TAG+_0x54fc05(0x196)+_0x419c4f[_0x54fc05(0x1d1)]+(_0x419c4f['stack']?_0x58bc6d[_0x54fc05(0x184)](_0x58bc6d['HXyse'],_0x419c4f[_0x54fc05(0x193)]):''));try{const _0x1cb157=await this[_0x54fc05(0x16d)][_0x54fc05(0x1a1)]();this[_0x54fc05(0x191)]={...this[_0x54fc05(0x185)](),..._0x58bc6d[_0x54fc05(0x1d9)](_0x1cb157,{}),'uniqueFailedTests':new Set(_0x1cb157?_0x1cb157[_0x54fc05(0x1d2)]||[]:[])},logger[_0x54fc05(0x189)]('['+TAG+_0x54fc05(0x1a0));}catch(_0x1e2d04){logger['error']('['+TAG+_0x54fc05(0x1ba)+_0x1e2d04['message']+(_0x1e2d04[_0x54fc05(0x193)]?_0x58bc6d['RDItP'](_0x58bc6d[_0x54fc05(0x1b9)],_0x1e2d04['stack']):'')),this[_0x54fc05(0x191)]=this['_getDefaultState']();}}}async[a119_0x2ddc78(0x1a6)](_0xb1c1f0){const _0x1f02b9=a119_0x2ddc78,_0x491393={};_0x491393['FMndn']=function(_0x50a2e1,_0x47eda4){return _0x50a2e1+_0x47eda4;},_0x491393[_0x1f02b9(0x1e0)]='\x0aStack:\x20';const _0x1d3a3f=_0x491393;if(!this['isCIMode']||!_0xb1c1f0)return;try{logger['debug']('['+TAG+'_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20'+_0xb1c1f0);const _0x32f064={};_0x32f064[_0x1f02b9(0x19d)]=this[_0x1f02b9(0x19d)],_0x32f064[_0x1f02b9(0x192)]=this[_0x1f02b9(0x192)],_0x32f064['failedTests']=[_0xb1c1f0],_0x32f064[_0x1f02b9(0x1e9)]=process[_0x1f02b9(0x1cd)][_0x1f02b9(0x1ab)],await RequestUtils[_0x1f02b9(0x1b7)](_0x32f064);}catch(_0x5c8cff){logger[_0x1f02b9(0x1d5)]('['+TAG+_0x1f02b9(0x1df)+_0xb1c1f0+'\x20to\x20API:\x20'+_0x5c8cff[_0x1f02b9(0x1d1)]+(_0x5c8cff[_0x1f02b9(0x193)]?_0x1d3a3f[_0x1f02b9(0x1e3)](_0x1d3a3f[_0x1f02b9(0x1e0)],_0x5c8cff['stack']):''));}}async[a119_0x2ddc78(0x18c)](){const _0x34c191=a119_0x2ddc78,_0xff44a2={};_0xff44a2[_0x34c191(0x1cb)]=function(_0x1092d0,_0x4f3422){return _0x1092d0===_0x4f3422;},_0xff44a2[_0x34c191(0x1c5)]=_0x34c191(0x1a3),_0xff44a2[_0x34c191(0x1b0)]=function(_0x58447f,_0x4e927d){return _0x58447f+_0x4e927d;},_0xff44a2[_0x34c191(0x19f)]=_0x34c191(0x1a7),_0xff44a2[_0x34c191(0x1ed)]=function(_0x402b28,_0x6a49ef){return _0x402b28!==_0x6a49ef;};const _0x59f157=_0xff44a2;if(!this['isCIMode'])return 0x0;try{const _0x1ce54c={};_0x1ce54c[_0x34c191(0x19d)]=this['buildName'],_0x1ce54c[_0x34c191(0x192)]=this[_0x34c191(0x192)],_0x1ce54c[_0x34c191(0x1e9)]=process[_0x34c191(0x1cd)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];const _0x45e080=await RequestUtils[_0x34c191(0x19c)](_0x1ce54c);return logger[_0x34c191(0x189)]('['+TAG+_0x34c191(0x1e5)+_0x45e080),_0x59f157[_0x34c191(0x1cb)](typeof _0x45e080,_0x59f157[_0x34c191(0x1c5)])?_0x45e080:0x0;}catch(_0x1bcb44){return logger[_0x34c191(0x1d5)]('['+TAG+_0x34c191(0x1d3)+_0x1bcb44[_0x34c191(0x1d1)]+(_0x1bcb44['stack']?_0x59f157[_0x34c191(0x1b0)](_0x59f157['HNGQu'],_0x1bcb44['stack']):'')),_0x59f157[_0x34c191(0x1ed)](this[_0x34c191(0x191)][_0x34c191(0x1e7)],undefined)?this[_0x34c191(0x191)][_0x34c191(0x1e7)]:0x0;}}async[a119_0x2ddc78(0x16e)](){const _0x29b557=a119_0x2ddc78,_0x4d76bb={};_0x4d76bb[_0x29b557(0x166)]=function(_0x38ca38,_0x35ce5f){return _0x38ca38!==_0x35ce5f;},_0x4d76bb[_0x29b557(0x195)]=function(_0x5a9a9a,_0x325afb){return _0x5a9a9a+_0x325afb;},_0x4d76bb[_0x29b557(0x1c9)]=_0x29b557(0x1a7);const _0x34d0db=_0x4d76bb;if(!this[_0x29b557(0x17c)])return;try{const _0x305690=await this['_fetchAPIFailedCount']();_0x34d0db['uIDPo'](_0x305690,this[_0x29b557(0x191)][_0x29b557(0x1e7)])&&(logger[_0x29b557(0x189)]('['+TAG+'_CI]\x20API\x20failed\x20count\x20updated:\x20'+_0x305690+_0x29b557(0x1de)+this['state'][_0x29b557(0x1e7)]+')'),this[_0x29b557(0x191)][_0x29b557(0x1e7)]=_0x305690);}catch(_0x119e45){logger[_0x29b557(0x1d5)]('['+TAG+_0x29b557(0x1b1)+_0x119e45[_0x29b557(0x1d1)]+(_0x119e45[_0x29b557(0x193)]?_0x34d0db['gbmyh'](_0x34d0db['VxUdK'],_0x119e45[_0x29b557(0x193)]):''));}}async['startPolling'](){const _0x4a7683=a119_0x2ddc78,_0x1113e0={'fHwjv':function(_0x51626a,_0x3e55c5,_0xe9368d){return _0x51626a(_0x3e55c5,_0xe9368d);}};this[_0x4a7683(0x1c0)]&&this[_0x4a7683(0x1ee)](),this['isCIMode']&&(await this['_pollFailedTests'](),this[_0x4a7683(0x1c0)]=_0x1113e0['fHwjv'](setInterval,async()=>{const _0x5eded6=_0x4a7683;await this[_0x5eded6(0x16e)]();},POLLING_INTERVAL),logger['debug']('['+TAG+_0x4a7683(0x197)+POLLING_INTERVAL+_0x4a7683(0x19a)));}[a119_0x2ddc78(0x1ee)](){const _0x1ac0e3=a119_0x2ddc78,_0x1273a9={'hdJbj':function(_0x5f0bcd,_0x506f37){return _0x5f0bcd(_0x506f37);}};this[_0x1ac0e3(0x1c0)]&&(_0x1273a9[_0x1ac0e3(0x180)](clearInterval,this[_0x1ac0e3(0x1c0)]),this['pollingInterval']=null,logger[_0x1ac0e3(0x189)]('['+TAG+_0x1ac0e3(0x1e1)));}async['shouldFailFast'](){const _0x1033b1=a119_0x2ddc78,_0xf30835={};_0xf30835[_0x1033b1(0x1c3)]=function(_0x2edf7c,_0x1f1e26){return _0x2edf7c===_0x1f1e26;},_0xf30835[_0x1033b1(0x19e)]=function(_0x551030,_0x64d503){return _0x551030<=_0x64d503;},_0xf30835['GXrKp']=function(_0x2a7aee,_0x2572b9){return _0x2a7aee+_0x2572b9;},_0xf30835[_0x1033b1(0x194)]=_0x1033b1(0x1a7),_0xf30835['gqmlv']=function(_0x5380bc,_0x10b4f1){return _0x5380bc!==_0x10b4f1;},_0xf30835[_0x1033b1(0x1b3)]=function(_0x25cbc7,_0x210013){return _0x25cbc7>=_0x210013;},_0xf30835[_0x1033b1(0x1c6)]=function(_0x2e741e,_0x5ce8ac){return _0x2e741e+_0x5ce8ac;},_0xf30835[_0x1033b1(0x190)]=function(_0x56319c,_0x14bcac){return _0x56319c>=_0x14bcac;},_0xf30835[_0x1033b1(0x198)]=function(_0xa333af,_0x54e0dd){return _0xa333af+_0x54e0dd;};const _0x38745d=_0xf30835,{failureThresholdCount:_0x337c84}=this[_0x1033b1(0x1eb)];if(_0x38745d[_0x1033b1(0x1c3)](_0x337c84,null)||_0x38745d[_0x1033b1(0x1c3)](_0x337c84,undefined)||_0x38745d[_0x1033b1(0x19e)](_0x337c84,0x0))return logger[_0x1033b1(0x189)]('['+TAG+_0x1033b1(0x18b)),![];if(this[_0x1033b1(0x17c)]){try{if(fs[_0x1033b1(0x16a)](this[_0x1033b1(0x1ac)]))return logger['debug']('['+TAG+_0x1033b1(0x1bd)),!this[_0x1033b1(0x191)][_0x1033b1(0x1c8)]&&(this[_0x1033b1(0x191)][_0x1033b1(0x1c8)]=!![]),this['stopPolling'](),!![];}catch(_0x201362){logger['error']('['+TAG+_0x1033b1(0x186)+_0x201362[_0x1033b1(0x1d1)]+(_0x201362[_0x1033b1(0x193)]?_0x38745d[_0x1033b1(0x1cc)](_0x38745d[_0x1033b1(0x194)],_0x201362[_0x1033b1(0x193)]):''));}const _0x30d72d=_0x38745d[_0x1033b1(0x1bf)](this['state']['lastAPIFailedCount'],undefined)?this[_0x1033b1(0x191)][_0x1033b1(0x1e7)]:0x0;if(_0x38745d[_0x1033b1(0x1b3)](_0x30d72d,_0x337c84)){logger[_0x1033b1(0x187)]('['+TAG+_0x1033b1(0x173)+_0x30d72d+_0x1033b1(0x1c7)+_0x337c84+'.');try{fs[_0x1033b1(0x18f)](this['failFastActiveMarkerPath'],new Date()['toISOString']()),logger['debug']('['+TAG+_0x1033b1(0x1e8)+this['failFastActiveMarkerPath']),this[_0x1033b1(0x191)][_0x1033b1(0x1c8)]=!![];}catch(_0x2a42f2){logger[_0x1033b1(0x1d5)]('['+TAG+_0x1033b1(0x17d)+_0x2a42f2['message']+(_0x2a42f2[_0x1033b1(0x193)]?_0x38745d[_0x1033b1(0x1c6)](_0x38745d[_0x1033b1(0x194)],_0x2a42f2[_0x1033b1(0x193)]):''));}return this[_0x1033b1(0x1ee)](),!![];}}else{let _0x578881;try{_0x578881=await this['fileHelper'][_0x1033b1(0x1a1)]();if(!_0x578881)return logger[_0x1033b1(0x1e4)]('['+TAG+_0x1033b1(0x1c4)),![];}catch(_0xf4932a){return logger[_0x1033b1(0x1d5)]('['+TAG+_0x1033b1(0x182)+_0xf4932a[_0x1033b1(0x1d1)]+(_0xf4932a[_0x1033b1(0x193)]?_0x38745d['GXrKp'](_0x38745d[_0x1033b1(0x194)],_0xf4932a[_0x1033b1(0x193)]):'')),![];}this['state']={...this[_0x1033b1(0x185)](),..._0x578881,'uniqueFailedTests':new Set(_0x578881['uniqueFailedTests']||[])};if(this[_0x1033b1(0x191)][_0x1033b1(0x1c8)])return logger[_0x1033b1(0x189)]('['+TAG+_0x1033b1(0x1ae)),!![];const _0x5af4a7=this[_0x1033b1(0x191)]['uniqueFailedTests'],_0x422552=_0x5af4a7[_0x1033b1(0x17a)];if(_0x38745d[_0x1033b1(0x190)](_0x422552,_0x337c84)){try{logger[_0x1033b1(0x187)]('['+TAG+_0x1033b1(0x1e6)+_0x422552+',\x20threshold:\x20'+_0x337c84+'.'),this['state'][_0x1033b1(0x1c8)]=!![];}catch(_0x130625){logger[_0x1033b1(0x1d5)]('['+TAG+_0x1033b1(0x1be)+_0x130625[_0x1033b1(0x1d1)]+(_0x130625['stack']?_0x38745d[_0x1033b1(0x198)](_0x38745d[_0x1033b1(0x194)],_0x130625['stack']):''));}return!![];}}return![];}async[a119_0x2ddc78(0x1b8)](){const _0xc9ed2e=a119_0x2ddc78,_0x1f08cf={};_0x1f08cf[_0xc9ed2e(0x18d)]=function(_0x5a9bf2,_0x1fff3f){return _0x5a9bf2+_0x1fff3f;},_0x1f08cf[_0xc9ed2e(0x1da)]=_0xc9ed2e(0x1a7);const _0x2efaef=_0x1f08cf;this[_0xc9ed2e(0x1ee)]();if(this[_0xc9ed2e(0x17c)])logger['debug']('['+TAG+_0xc9ed2e(0x17f));else try{const _0x1397ad={...this[_0xc9ed2e(0x191)],'uniqueFailedTests':Array[_0xc9ed2e(0x1a9)](this[_0xc9ed2e(0x191)][_0xc9ed2e(0x1d2)]||new Set())};await this[_0xc9ed2e(0x16d)]['writeState'](_0x1397ad),logger['debug']('['+TAG+_0xc9ed2e(0x1d0));}catch(_0x3a1a53){logger[_0xc9ed2e(0x1d5)]('['+TAG+'_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20'+_0x3a1a53['message']+(_0x3a1a53[_0xc9ed2e(0x193)]?_0x2efaef[_0xc9ed2e(0x18d)](_0x2efaef[_0xc9ed2e(0x1da)],_0x3a1a53[_0xc9ed2e(0x193)]):''));}}}module[a119_0x2ddc78(0x1c2)]=FailFastManager;
|
|
1
|
+
function a119_0x4641(){const _0x2e0995=['_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','xVQCM','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','failureThresholdCount','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','1480JxMBNd',',\x20threshold:\x20','BROWSERSTACK_BUILD_RUN_IDENTIFIER','info','recordTestResult','message','startPolling','6LPHEBk','failFastState.json','10478611POnjsG','_fetchAPIFailedCount','\x20to\x20API:\x20','BROWSERSTACK_TOTAL_NODE_COUNT','_CI]\x20Polling\x20started\x20with\x20interval:\x20','add','\x0aStack:\x20','_CI]\x20API\x20failed\x20count\x20updated:\x20','stack','AEdVd','newState','totalTests','lastAPIFailedCount','4315erOUHq','wBWJB','putFailedTests','failFast.active','projectName',',\x20CI\x20Mode:\x20','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','_sendFailedTestsToAPI','length','passed','shouldFailFast','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','./fileHelper','catch','stateFilePath','WXOuv','5286RGqOpR','11ilzlff','readState','isCIMode','ZbYwL','uniqueFailedTests','115800MJMgVF','aVXpy','failFastActiveMarkerPath','oacKt','existsSync','939321jcfSON','MplAU','uazeu','tZBzT','env','MoQuc','writeState','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','warn','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','getFailedTestsCount','TJUcJ','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','pollingInterval','fileHelper','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','350ggfnaw','state','10aObono','WVvnM','buildName','workingDir','writeFileSync','LEAql','336412eiosTV','lAFot','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','toISOString','has','_initializeStateFromFile','from','size','xjhMH','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','8666gCsxPk','CuUuR','ESGQB','\x20(was\x20','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','HhnJY','AxsSM','koSIw','_pollFailedTests','_getDefaultState','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','AfBjV','TIuFR',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','ms.','112dbllbb','jGdZm','../logger','spxNq','dDuiE','BuLuD',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','debug','yYORm','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','dBwyb','ExvSZ','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','failFastConfig','cleanup','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','_CI]\x20Error\x20during\x20polling\x20logic:\x20','failFastActive','reportedFailuresToAPI',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','failedTests','FailFastManager','_CI]\x20Error\x20sending\x20failed\x20test\x20','_Local]\x20State\x20initialized\x20from\x20file.','kTrTS','./requestUtils','cGpXz','stopPolling','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','MiAzk','error','lockFilePath','GInVi'];a119_0x4641=function(){return _0x2e0995;};return a119_0x4641();}function a119_0x16ec(_0x103c62,_0x2f65c6){const _0x464176=a119_0x4641();return a119_0x16ec=function(_0x16ec37,_0xd18021){_0x16ec37=_0x16ec37-0x193;let _0x5d26c1=_0x464176[_0x16ec37];return _0x5d26c1;},a119_0x16ec(_0x103c62,_0x2f65c6);}const a119_0x14ab8c=a119_0x16ec;(function(_0x10295b,_0x2cae3c){const _0x43b9b5=a119_0x16ec,_0x40504f=_0x10295b();while(!![]){try{const _0x8bb7b9=-parseInt(_0x43b9b5(0x1f2))/0x1*(parseInt(_0x43b9b5(0x1b4))/0x2)+parseInt(_0x43b9b5(0x1e3))/0x3*(-parseInt(_0x43b9b5(0x19b))/0x4)+parseInt(_0x43b9b5(0x193))/0x5*(parseInt(_0x43b9b5(0x202))/0x6)+parseInt(_0x43b9b5(0x1a5))/0x7*(-parseInt(_0x43b9b5(0x1dc))/0x8)+parseInt(_0x43b9b5(0x20d))/0x9*(-parseInt(_0x43b9b5(0x195))/0xa)+-parseInt(_0x43b9b5(0x203))/0xb*(-parseInt(_0x43b9b5(0x208))/0xc)+parseInt(_0x43b9b5(0x1e5))/0xd;if(_0x8bb7b9===_0x2cae3c)break;else _0x40504f['push'](_0x40504f['shift']());}catch(_0x5d0965){_0x40504f['push'](_0x40504f['shift']());}}}(a119_0x4641,0x20bea));const fs=require('fs'),path=require('path'),FileHelper=require(a119_0x14ab8c(0x1fe)),RequestUtils=require(a119_0x14ab8c(0x1cf)),logger=require(a119_0x14ab8c(0x1b6))['winstonLogger'],POLLING_INTERVAL=0x2710,TAG=a119_0x14ab8c(0x1cb);class FailFastManager{constructor(_0x52744e,_0xa91f14,_0x13bd96){const _0x775f77=a119_0x14ab8c,_0x3f8635={};_0x3f8635[_0x775f77(0x1b7)]=function(_0x44855e,_0x2a709d){return _0x44855e+_0x2a709d;},_0x3f8635['Uruad']=_0x775f77(0x1eb),_0x3f8635[_0x775f77(0x1ce)]=function(_0x35a074,_0x4536ec){return _0x35a074||_0x4536ec;},_0x3f8635[_0x775f77(0x1b5)]=_0x775f77(0x1e4),_0x3f8635['AEdVd']='failFastState.lock',_0x3f8635['xVQCM']=_0x775f77(0x1f5);const _0x509bd9=_0x3f8635;this['failFastConfig']=_0x509bd9['kTrTS'](_0x52744e,{}),this['buildName']=_0xa91f14,this[_0x775f77(0x1f6)]=_0x13bd96,this[_0x775f77(0x205)]=!!(process[_0x775f77(0x211)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER']&&process[_0x775f77(0x211)]['BROWSERSTACK_NODE_INDEX']&&process['env'][_0x775f77(0x1e8)]);const _0x42b592=this[_0x775f77(0x1c1)][_0x775f77(0x198)];this[_0x775f77(0x200)]=path['join'](_0x42b592,_0x509bd9[_0x775f77(0x1b5)]),this[_0x775f77(0x1d5)]=path['join'](_0x42b592,_0x509bd9[_0x775f77(0x1ee)]),this[_0x775f77(0x20a)]=path['join'](_0x42b592,_0x509bd9[_0x775f77(0x1d8)]),this[_0x775f77(0x21c)]=new FileHelper(this['failFastConfig'],this[_0x775f77(0x200)],this[_0x775f77(0x1d5)],this[_0x775f77(0x1ae)]()),this[_0x775f77(0x194)]=this[_0x775f77(0x1ae)](),this['pollingInterval']=null,this[_0x775f77(0x205)]&&(this[_0x775f77(0x1c7)]=new Set()),this[_0x775f77(0x1a0)]()[_0x775f77(0x1ff)](_0x10b416=>{const _0x484ec1=_0x775f77;logger[_0x484ec1(0x1d4)]('['+TAG+_0x484ec1(0x1c8)+_0x10b416[_0x484ec1(0x1e1)]+(_0x10b416['stack']?_0x509bd9[_0x484ec1(0x1b7)](_0x509bd9['Uruad'],_0x10b416[_0x484ec1(0x1ed)]):'')),this[_0x484ec1(0x194)]=this[_0x484ec1(0x1ae)]();}),this[_0x775f77(0x205)]&&this[_0x775f77(0x1e2)](),logger[_0x775f77(0x1bb)]('['+TAG+_0x775f77(0x1b2)+this['failFastConfig'][_0x775f77(0x1da)]+_0x775f77(0x1f7)+this['isCIMode']);}['_getDefaultState'](){const _0x36fffb={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x36fffb;}async[a119_0x14ab8c(0x1a0)](){const _0x8934e0=a119_0x14ab8c,_0x42c48f={};_0x42c48f['nOssO']=function(_0x305373,_0x4944d7){return _0x305373+_0x4944d7;},_0x42c48f[_0x8934e0(0x206)]=_0x8934e0(0x1eb);const _0x20e357=_0x42c48f;if(this[_0x8934e0(0x205)])try{fs['existsSync'](this[_0x8934e0(0x20a)])&&(this[_0x8934e0(0x194)]['failFastActive']=!![],logger[_0x8934e0(0x1bb)]('['+TAG+_0x8934e0(0x1db)));}catch(_0x46e917){logger['error']('['+TAG+_0x8934e0(0x1c9)+_0x46e917[_0x8934e0(0x1e1)]+(_0x46e917[_0x8934e0(0x1ed)]?_0x20e357['nOssO'](_0x20e357[_0x8934e0(0x206)],_0x46e917[_0x8934e0(0x1ed)]):''));}else try{const _0x2a4f3a=await this[_0x8934e0(0x21c)][_0x8934e0(0x204)]();if(_0x2a4f3a)this[_0x8934e0(0x194)]={...this[_0x8934e0(0x1ae)](),..._0x2a4f3a,'uniqueFailedTests':new Set(_0x2a4f3a[_0x8934e0(0x207)]||[])},logger[_0x8934e0(0x1bb)]('['+TAG+_0x8934e0(0x1cd));else{logger['debug']('['+TAG+_0x8934e0(0x1a4));const _0x24dae5=this['_getDefaultState'](),_0xcd7738={..._0x24dae5,'uniqueFailedTests':Array[_0x8934e0(0x1a1)](_0x24dae5[_0x8934e0(0x207)])};await this[_0x8934e0(0x21c)][_0x8934e0(0x213)](_0xcd7738),this[_0x8934e0(0x194)]=_0x24dae5;}}catch(_0x464a0e){logger[_0x8934e0(0x1bb)]('['+TAG+_0x8934e0(0x1c4)+_0x464a0e[_0x8934e0(0x1e1)]+(_0x464a0e[_0x8934e0(0x1ed)]?_0x20e357['nOssO'](_0x20e357[_0x8934e0(0x206)],_0x464a0e['stack']):'')),this[_0x8934e0(0x194)]=this['_getDefaultState']();}}async['onTestDone'](_0x54ccd6,_0x2e4ed4){const _0x5ae839=a119_0x14ab8c,_0x15642a={};_0x15642a[_0x5ae839(0x210)]=function(_0x376255,_0x231d5d){return _0x376255>_0x231d5d;},_0x15642a[_0x5ae839(0x20e)]=function(_0x186b23,_0x2e737d){return _0x186b23>_0x2e737d;},_0x15642a['AxsSM']='failed',_0x15642a[_0x5ae839(0x1d0)]=_0x5ae839(0x1fb),_0x15642a[_0x5ae839(0x1b1)]=function(_0x3ab4e2,_0x28b8b3){return _0x3ab4e2+_0x28b8b3;},_0x15642a[_0x5ae839(0x1d3)]=_0x5ae839(0x1eb),_0x15642a[_0x5ae839(0x1d6)]=function(_0x268445,_0x23daca){return _0x268445||_0x23daca;},_0x15642a[_0x5ae839(0x1bc)]=function(_0x8446be,_0x371696){return _0x8446be+_0x371696;};const _0x1329d9=_0x15642a;if(this[_0x5ae839(0x205)])this['state'][_0x5ae839(0x1f0)]+=0x1,_0x2e4ed4&&_0x1329d9[_0x5ae839(0x210)](_0x2e4ed4[_0x5ae839(0x1fa)],0x0)&&(!this[_0x5ae839(0x1c7)][_0x5ae839(0x19f)](_0x54ccd6)&&(await this[_0x5ae839(0x1f9)](_0x54ccd6),this[_0x5ae839(0x1c7)][_0x5ae839(0x1ea)](_0x54ccd6)));else try{const _0x1f0df1={'fullName':_0x54ccd6,'status':_0x2e4ed4&&_0x1329d9[_0x5ae839(0x20e)](_0x2e4ed4[_0x5ae839(0x1fa)],0x0)?_0x1329d9[_0x5ae839(0x1ab)]:_0x1329d9[_0x5ae839(0x1d0)]},_0xab9981=await this[_0x5ae839(0x21c)][_0x5ae839(0x1e0)](_0x1f0df1);this['state']={...this[_0x5ae839(0x1ae)](),..._0xab9981[_0x5ae839(0x1ef)],'uniqueFailedTests':new Set(_0xab9981[_0x5ae839(0x1ef)][_0x5ae839(0x207)]||[])};}catch(_0x500bdd){logger[_0x5ae839(0x1d4)]('['+TAG+_0x5ae839(0x21a)+_0x500bdd['message']+(_0x500bdd[_0x5ae839(0x1ed)]?_0x1329d9[_0x5ae839(0x1b1)](_0x1329d9[_0x5ae839(0x1d3)],_0x500bdd[_0x5ae839(0x1ed)]):''));try{const _0x512d0d=await this['fileHelper'][_0x5ae839(0x204)]();this[_0x5ae839(0x194)]={...this['_getDefaultState'](),..._0x1329d9['GInVi'](_0x512d0d,{}),'uniqueFailedTests':new Set(_0x512d0d?_0x512d0d[_0x5ae839(0x207)]||[]:[])},logger['debug']('['+TAG+_0x5ae839(0x1af));}catch(_0x593613){logger['error']('['+TAG+_0x5ae839(0x1fd)+_0x593613[_0x5ae839(0x1e1)]+(_0x593613[_0x5ae839(0x1ed)]?_0x1329d9[_0x5ae839(0x1bc)](_0x1329d9['MiAzk'],_0x593613[_0x5ae839(0x1ed)]):'')),this[_0x5ae839(0x194)]=this[_0x5ae839(0x1ae)]();}}}async[a119_0x14ab8c(0x1f9)](_0x33c565){const _0x4e3c16=a119_0x14ab8c,_0x41ad3a={};_0x41ad3a[_0x4e3c16(0x1a7)]=function(_0x390a79,_0x4a0941){return _0x390a79+_0x4a0941;},_0x41ad3a['cAMFJ']=_0x4e3c16(0x1eb);const _0x5e9d98=_0x41ad3a;if(!this[_0x4e3c16(0x205)]||!_0x33c565)return;try{logger[_0x4e3c16(0x1bb)]('['+TAG+_0x4e3c16(0x216)+_0x33c565);const _0x107b77={};_0x107b77[_0x4e3c16(0x197)]=this[_0x4e3c16(0x197)],_0x107b77[_0x4e3c16(0x1f6)]=this[_0x4e3c16(0x1f6)],_0x107b77[_0x4e3c16(0x1ca)]=[_0x33c565],_0x107b77['buildRunIdentifier']=process[_0x4e3c16(0x211)][_0x4e3c16(0x1de)],await RequestUtils[_0x4e3c16(0x1f4)](_0x107b77);}catch(_0x1ad4aa){logger[_0x4e3c16(0x1d4)]('['+TAG+_0x4e3c16(0x1cc)+_0x33c565+_0x4e3c16(0x1e7)+_0x1ad4aa['message']+(_0x1ad4aa[_0x4e3c16(0x1ed)]?_0x5e9d98['ESGQB'](_0x5e9d98['cAMFJ'],_0x1ad4aa[_0x4e3c16(0x1ed)]):''));}}async['_fetchAPIFailedCount'](){const _0x17ed06=a119_0x14ab8c,_0x5f0f07={};_0x5f0f07[_0x17ed06(0x19c)]=function(_0x1db26d,_0x1d9ac6){return _0x1db26d===_0x1d9ac6;},_0x5f0f07['BuLuD']='number',_0x5f0f07[_0x17ed06(0x1b8)]=function(_0x3f8f56,_0xd17c03){return _0x3f8f56+_0xd17c03;},_0x5f0f07[_0x17ed06(0x20f)]=_0x17ed06(0x1eb),_0x5f0f07[_0x17ed06(0x1be)]=function(_0x3228be,_0x3046bc){return _0x3228be!==_0x3046bc;};const _0x1a1793=_0x5f0f07;if(!this[_0x17ed06(0x205)])return 0x0;try{const _0x25dc3b={};_0x25dc3b[_0x17ed06(0x197)]=this[_0x17ed06(0x197)],_0x25dc3b['projectName']=this[_0x17ed06(0x1f6)],_0x25dc3b['buildRunIdentifier']=process[_0x17ed06(0x211)][_0x17ed06(0x1de)];const _0x417fc7=await RequestUtils[_0x17ed06(0x217)](_0x25dc3b);return logger[_0x17ed06(0x1bb)]('['+TAG+_0x17ed06(0x219)+_0x417fc7),_0x1a1793[_0x17ed06(0x19c)](typeof _0x417fc7,_0x1a1793[_0x17ed06(0x1b9)])?_0x417fc7:0x0;}catch(_0x4ce5bb){return logger[_0x17ed06(0x1d4)]('['+TAG+_0x17ed06(0x1a9)+_0x4ce5bb[_0x17ed06(0x1e1)]+(_0x4ce5bb[_0x17ed06(0x1ed)]?_0x1a1793[_0x17ed06(0x1b8)](_0x1a1793[_0x17ed06(0x20f)],_0x4ce5bb[_0x17ed06(0x1ed)]):'')),_0x1a1793[_0x17ed06(0x1be)](this[_0x17ed06(0x194)]['lastAPIFailedCount'],undefined)?this[_0x17ed06(0x194)][_0x17ed06(0x1f1)]:0x0;}}async[a119_0x14ab8c(0x1ad)](){const _0x3e4a5c=a119_0x14ab8c,_0x27e3be={};_0x27e3be[_0x3e4a5c(0x212)]=function(_0x283d45,_0x51de24){return _0x283d45!==_0x51de24;},_0x27e3be[_0x3e4a5c(0x209)]=function(_0x30a5e2,_0x17571d){return _0x30a5e2+_0x17571d;},_0x27e3be[_0x3e4a5c(0x1ac)]=_0x3e4a5c(0x1eb);const _0x8b5e76=_0x27e3be;if(!this[_0x3e4a5c(0x205)])return;try{const _0x1a8e86=await this[_0x3e4a5c(0x1e6)]();_0x8b5e76[_0x3e4a5c(0x212)](_0x1a8e86,this[_0x3e4a5c(0x194)][_0x3e4a5c(0x1f1)])&&(logger[_0x3e4a5c(0x1bb)]('['+TAG+_0x3e4a5c(0x1ec)+_0x1a8e86+_0x3e4a5c(0x1a8)+this[_0x3e4a5c(0x194)]['lastAPIFailedCount']+')'),this['state'][_0x3e4a5c(0x1f1)]=_0x1a8e86);}catch(_0x161997){logger[_0x3e4a5c(0x1d4)]('['+TAG+_0x3e4a5c(0x1c5)+_0x161997['message']+(_0x161997[_0x3e4a5c(0x1ed)]?_0x8b5e76[_0x3e4a5c(0x209)](_0x8b5e76[_0x3e4a5c(0x1ac)],_0x161997['stack']):''));}}async['startPolling'](){const _0x5802d1=a119_0x14ab8c,_0x37b6cf={'BLgRc':function(_0x2b8ed6,_0x3d8fca,_0x1a6491){return _0x2b8ed6(_0x3d8fca,_0x1a6491);}};this[_0x5802d1(0x21b)]&&this[_0x5802d1(0x1d1)](),this['isCIMode']&&(await this[_0x5802d1(0x1ad)](),this[_0x5802d1(0x21b)]=_0x37b6cf['BLgRc'](setInterval,async()=>{const _0x4155dd=_0x5802d1;await this[_0x4155dd(0x1ad)]();},POLLING_INTERVAL),logger[_0x5802d1(0x1bb)]('['+TAG+_0x5802d1(0x1e9)+POLLING_INTERVAL+_0x5802d1(0x1b3)));}['stopPolling'](){const _0x101848=a119_0x14ab8c,_0x38011c={'WVvnM':function(_0x2f32b6,_0x33e87a){return _0x2f32b6(_0x33e87a);}};this[_0x101848(0x21b)]&&(_0x38011c[_0x101848(0x196)](clearInterval,this[_0x101848(0x21b)]),this[_0x101848(0x21b)]=null,logger[_0x101848(0x1bb)]('['+TAG+']\x20Polling\x20stopped.'));}async[a119_0x14ab8c(0x1fc)](){const _0x46e383=a119_0x14ab8c,_0x455029={};_0x455029[_0x46e383(0x218)]=function(_0x29dfb3,_0x4226d9){return _0x29dfb3===_0x4226d9;},_0x455029[_0x46e383(0x20b)]=function(_0x1db636,_0x1f454c){return _0x1db636<=_0x1f454c;},_0x455029[_0x46e383(0x1a3)]=function(_0x30c288,_0x119dcb){return _0x30c288+_0x119dcb;},_0x455029[_0x46e383(0x19a)]=_0x46e383(0x1eb),_0x455029[_0x46e383(0x1a6)]=function(_0x53a5b0,_0xd765ce){return _0x53a5b0!==_0xd765ce;},_0x455029[_0x46e383(0x1f3)]=function(_0x3d286c,_0x440fc4){return _0x3d286c>=_0x440fc4;},_0x455029[_0x46e383(0x1bf)]=function(_0x21ea44,_0x528411){return _0x21ea44+_0x528411;},_0x455029['AfBjV']=function(_0x341059,_0x57e04b){return _0x341059+_0x57e04b;};const _0x391e15=_0x455029,{failureThresholdCount:_0x41ecfe}=this['failFastConfig'];if(_0x391e15[_0x46e383(0x218)](_0x41ecfe,null)||_0x391e15['TJUcJ'](_0x41ecfe,undefined)||_0x391e15[_0x46e383(0x20b)](_0x41ecfe,0x0))return logger[_0x46e383(0x1bb)]('['+TAG+_0x46e383(0x1ba)),![];if(this[_0x46e383(0x205)]){try{if(fs[_0x46e383(0x20c)](this[_0x46e383(0x20a)]))return logger['debug']('['+TAG+_0x46e383(0x1c0)),!this['state'][_0x46e383(0x1c6)]&&(this[_0x46e383(0x194)][_0x46e383(0x1c6)]=!![]),this[_0x46e383(0x1d1)](),!![];}catch(_0x1e1812){logger[_0x46e383(0x1d4)]('['+TAG+_0x46e383(0x1c9)+_0x1e1812[_0x46e383(0x1e1)]+(_0x1e1812[_0x46e383(0x1ed)]?_0x391e15['xjhMH'](_0x391e15[_0x46e383(0x19a)],_0x1e1812[_0x46e383(0x1ed)]):''));}const _0x5173d6=_0x391e15[_0x46e383(0x1a6)](this['state']['lastAPIFailedCount'],undefined)?this[_0x46e383(0x194)][_0x46e383(0x1f1)]:0x0;if(_0x391e15[_0x46e383(0x1f3)](_0x5173d6,_0x41ecfe)){logger[_0x46e383(0x1df)]('['+TAG+_0x46e383(0x1c3)+_0x5173d6+_0x46e383(0x1dd)+_0x41ecfe+'.');try{fs[_0x46e383(0x199)](this[_0x46e383(0x20a)],new Date()[_0x46e383(0x19e)]()),logger['debug']('['+TAG+'_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20'+this[_0x46e383(0x20a)]),this[_0x46e383(0x194)]['failFastActive']=!![];}catch(_0x173efc){logger[_0x46e383(0x1d4)]('['+TAG+_0x46e383(0x214)+_0x173efc[_0x46e383(0x1e1)]+(_0x173efc[_0x46e383(0x1ed)]?_0x391e15[_0x46e383(0x1bf)](_0x391e15[_0x46e383(0x19a)],_0x173efc[_0x46e383(0x1ed)]):''));}return this[_0x46e383(0x1d1)](),!![];}}else{let _0x3cd76e;try{_0x3cd76e=await this[_0x46e383(0x21c)][_0x46e383(0x204)]();if(!_0x3cd76e)return logger[_0x46e383(0x215)]('['+TAG+_0x46e383(0x21d)),![];}catch(_0x11afe2){return logger['error']('['+TAG+_0x46e383(0x1f8)+_0x11afe2[_0x46e383(0x1e1)]+(_0x11afe2[_0x46e383(0x1ed)]?_0x391e15['xjhMH'](_0x391e15[_0x46e383(0x19a)],_0x11afe2['stack']):'')),![];}this[_0x46e383(0x194)]={...this[_0x46e383(0x1ae)](),..._0x3cd76e,'uniqueFailedTests':new Set(_0x3cd76e[_0x46e383(0x207)]||[])};if(this[_0x46e383(0x194)][_0x46e383(0x1c6)])return logger[_0x46e383(0x1bb)]('['+TAG+_0x46e383(0x1d9)),!![];const _0x5af518=this['state'][_0x46e383(0x207)],_0x18ce5e=_0x5af518[_0x46e383(0x1a2)];if(_0x391e15[_0x46e383(0x1f3)](_0x18ce5e,_0x41ecfe)){try{logger[_0x46e383(0x1df)]('['+TAG+_0x46e383(0x19d)+_0x18ce5e+_0x46e383(0x1dd)+_0x41ecfe+'.'),this[_0x46e383(0x194)]['failFastActive']=!![];}catch(_0x20e98a){logger[_0x46e383(0x1d4)]('['+TAG+_0x46e383(0x1d7)+_0x20e98a[_0x46e383(0x1e1)]+(_0x20e98a['stack']?_0x391e15[_0x46e383(0x1b0)](_0x391e15[_0x46e383(0x19a)],_0x20e98a[_0x46e383(0x1ed)]):''));}return!![];}}return![];}async[a119_0x14ab8c(0x1c2)](){const _0x3ecbdd=a119_0x14ab8c,_0x9dab3b={};_0x9dab3b[_0x3ecbdd(0x201)]=function(_0xf6161,_0x4e6b47){return _0xf6161+_0x4e6b47;},_0x9dab3b[_0x3ecbdd(0x1aa)]=_0x3ecbdd(0x1eb);const _0x11d8c9=_0x9dab3b;this[_0x3ecbdd(0x1d1)]();if(this[_0x3ecbdd(0x205)])logger['debug']('['+TAG+_0x3ecbdd(0x1d2));else try{const _0x366678={...this[_0x3ecbdd(0x194)],'uniqueFailedTests':Array[_0x3ecbdd(0x1a1)](this['state']['uniqueFailedTests']||new Set())};await this[_0x3ecbdd(0x21c)][_0x3ecbdd(0x213)](_0x366678),logger[_0x3ecbdd(0x1bb)]('['+TAG+'_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.');}catch(_0x4dc60e){logger[_0x3ecbdd(0x1d4)]('['+TAG+_0x3ecbdd(0x1bd)+_0x4dc60e[_0x3ecbdd(0x1e1)]+(_0x4dc60e['stack']?_0x11d8c9['WXOuv'](_0x11d8c9[_0x3ecbdd(0x1aa)],_0x4dc60e['stack']):''));}}}module['exports']=FailFastManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a120_0x1faa(_0x1ce0fe,_0x1171f9){const _0x3a7d9b=a120_0x3a7d();return a120_0x1faa=function(_0x1faaae,_0x513cef){_0x1faaae=_0x1faaae-0x1da;let _0xbe7b0=_0x3a7d9b[_0x1faaae];return _0xbe7b0;},a120_0x1faa(_0x1ce0fe,_0x1171f9);}const a120_0x330a18=a120_0x1faa;(function(_0x1b0fa9,_0x44f68b){const _0x467d45=a120_0x1faa,_0x314bc8=_0x1b0fa9();while(!![]){try{const _0x5f087e=parseInt(_0x467d45(0x1ee))/0x1+parseInt(_0x467d45(0x1e2))/0x2+parseInt(_0x467d45(0x20d))/0x3+parseInt(_0x467d45(0x1f9))/0x4+-parseInt(_0x467d45(0x1f3))/0x5*(parseInt(_0x467d45(0x20c))/0x6)+parseInt(_0x467d45(0x20e))/0x7+parseInt(_0x467d45(0x1e9))/0x8*(-parseInt(_0x467d45(0x1f1))/0x9);if(_0x5f087e===_0x44f68b)break;else _0x314bc8['push'](_0x314bc8['shift']());}catch(_0x5373e7){_0x314bc8['push'](_0x314bc8['shift']());}}}(a120_0x3a7d,0xcf336));const fs=require('fs'),logger=require(a120_0x330a18(0x1f8))['winstonLogger'],TAG=a120_0x330a18(0x204);function a120_0x3a7d(){const _0x27ff6b=['stateFilePath','existsSync','../logger','1736308eWBQGu','warn','zDBJt','4|3|0|2|1','add','yDWZE','kRdZL','isArray','YjnxR','unlinkSync','defaultState','FailFastFileHelper','split','isNewFailure','kEHkE','fullName','lastAPIFailedCount','XlqAG','updateAPIFailedCount','9486FfCUFX','4540452AQVtTO','5528061ZygiQE','stack','uniqueFailedTests','readState',']\x20Error\x20creating\x20state\x20file:\x20','Pjmts','releaseLock',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','EPsqr','from','status','iterator','stringify','message','parse','1285432wYdyLA','acquireLock',']\x20Error\x20writing\x20state\x20file:\x20','totalTests',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','writeState','failFastConfig','19078112BjkrmG','EEXIST','error','lockFilePath','function','1295330iBKujx','utf8','writeFileSync','9pyWKLe','recordTestResult','4560GCSIZQ','ZmrhA','readFileSync'];a120_0x3a7d=function(){return _0x27ff6b;};return a120_0x3a7d();}class FileHelper{constructor(_0x19a967,_0x5ae9fe,_0x2566b8,_0x89181b){const _0x31eaa9=a120_0x330a18,_0x2e3c96={};_0x2e3c96[_0x31eaa9(0x207)]=_0x31eaa9(0x1fc),_0x2e3c96[_0x31eaa9(0x1f4)]='utf8';const _0x37b4da=_0x2e3c96,_0xbf4f3c=_0x37b4da[_0x31eaa9(0x207)][_0x31eaa9(0x205)]('|');let _0x2ebbb0=0x0;while(!![]){switch(_0xbf4f3c[_0x2ebbb0++]){case'0':this['lockFilePath']=_0x2566b8;continue;case'1':if(!fs[_0x31eaa9(0x1f7)](this['stateFilePath']))try{fs[_0x31eaa9(0x1f0)](this['stateFilePath'],'{}',_0x37b4da['ZmrhA']);}catch(_0x4ec61b){logger[_0x31eaa9(0x1eb)]('['+TAG+_0x31eaa9(0x212)+_0x4ec61b[_0x31eaa9(0x1e0)]+'\x20'+_0x4ec61b['stack']);}continue;case'2':this['defaultState']=_0x89181b;continue;case'3':this[_0x31eaa9(0x1f6)]=_0x5ae9fe;continue;case'4':this[_0x31eaa9(0x1e8)]=_0x19a967;continue;}break;}}async['acquireLock'](){const _0x5d222c=a120_0x330a18,_0x36b10d={};_0x36b10d[_0x5d222c(0x20a)]=function(_0x2de48c,_0x229ab3){return _0x2de48c===_0x229ab3;},_0x36b10d[_0x5d222c(0x1fb)]=_0x5d222c(0x1ea);const _0x18e718=_0x36b10d;let _0x4a95dc;try{return _0x4a95dc=fs['openSync'](this[_0x5d222c(0x1ec)],'wx'),_0x4a95dc;}catch(_0x22c91c){if(_0x18e718[_0x5d222c(0x20a)](_0x22c91c['code'],_0x18e718[_0x5d222c(0x1fb)]))return null;throw _0x22c91c;}}async['releaseLock'](_0x405905){const _0x36a9f1=a120_0x330a18;if(_0x405905)try{fs['closeSync'](_0x405905),fs[_0x36a9f1(0x202)](this[_0x36a9f1(0x1ec)]);}catch(_0x4019d3){logger[_0x36a9f1(0x1eb)]('['+TAG+']\x20Error\x20releasing\x20lock:\x20'+_0x4019d3['message']+'\x20'+_0x4019d3[_0x36a9f1(0x20f)]);}}['readState'](){const _0x39ed7a=a120_0x330a18,_0x35bc52={};_0x35bc52[_0x39ed7a(0x1fe)]=_0x39ed7a(0x1ef);const _0xc0f569=_0x35bc52;try{const _0x458cb7=fs[_0x39ed7a(0x1f5)](this[_0x39ed7a(0x1f6)],_0xc0f569['yDWZE']);return JSON[_0x39ed7a(0x1e1)](_0x458cb7);}catch(_0x1846ea){return logger[_0x39ed7a(0x1eb)]('['+TAG+']\x20Error\x20reading\x20state\x20file:\x20'+_0x1846ea[_0x39ed7a(0x1e0)]+'\x20'+_0x1846ea[_0x39ed7a(0x20f)]),null;}}async['writeState'](_0x10da60){const _0x54073a=a120_0x330a18,_0x5b5ce7={..._0x10da60,'uniqueFailedTests':Array[_0x54073a(0x200)](_0x10da60[_0x54073a(0x210)])?_0x10da60['uniqueFailedTests']:Array[_0x54073a(0x1dc)](_0x10da60[_0x54073a(0x210)]||[])};try{fs[_0x54073a(0x1f0)](this[_0x54073a(0x1f6)],JSON[_0x54073a(0x1df)](_0x5b5ce7,null,0x2));}catch(_0x14fc71){logger[_0x54073a(0x1eb)]('['+TAG+_0x54073a(0x1e4)+_0x14fc71['message']+'\x20'+_0x14fc71[_0x54073a(0x20f)]);throw _0x14fc71;}}async[a120_0x330a18(0x1f2)](_0x17a1be,_0x49d49a){const _0x2b61cc=a120_0x330a18,_0x20c1e6={};_0x20c1e6[_0x2b61cc(0x201)]=function(_0x3313eb,_0x538e66){return _0x3313eb!==_0x538e66;},_0x20c1e6['Pjmts']=_0x2b61cc(0x1ed),_0x20c1e6['kRdZL']=function(_0x4a798b,_0x21260f){return _0x4a798b===_0x21260f;},_0x20c1e6[_0x2b61cc(0x1db)]='failed';const _0x346a2b=_0x20c1e6,_0x59db17=await this['acquireLock']();if(!_0x59db17)return logger['warn']('['+TAG+_0x2b61cc(0x1e6)),{'newState':this[_0x2b61cc(0x211)]()||this[_0x2b61cc(0x203)],'isNewFailure':![]};try{let _0x599b99=this[_0x2b61cc(0x211)]();!_0x599b99&&(_0x599b99=JSON[_0x2b61cc(0x1e1)](JSON[_0x2b61cc(0x1df)](this[_0x2b61cc(0x203)])));if(!_0x599b99['uniqueFailedTests']||_0x346a2b[_0x2b61cc(0x201)](typeof _0x599b99[_0x2b61cc(0x210)][Symbol[_0x2b61cc(0x1de)]],_0x346a2b[_0x2b61cc(0x213)]))_0x599b99[_0x2b61cc(0x210)]=new Set();else Array['isArray'](_0x599b99[_0x2b61cc(0x210)])&&(_0x599b99[_0x2b61cc(0x210)]=new Set(_0x599b99[_0x2b61cc(0x210)]));_0x599b99[_0x2b61cc(0x1e5)]=_0x49d49a;let _0x378197=![];_0x346a2b[_0x2b61cc(0x1ff)](_0x17a1be[_0x2b61cc(0x1dd)],_0x346a2b[_0x2b61cc(0x1db)])&&(_0x599b99['failedTests']+=0x1,!_0x599b99[_0x2b61cc(0x210)]['has'](_0x17a1be[_0x2b61cc(0x208)])&&(_0x599b99['uniqueFailedTests'][_0x2b61cc(0x1fd)](_0x17a1be[_0x2b61cc(0x208)]),_0x378197=!![]));await this[_0x2b61cc(0x1e7)](_0x599b99);const _0x1e0842={};return _0x1e0842['newState']=_0x599b99,_0x1e0842[_0x2b61cc(0x206)]=_0x378197,_0x1e0842;}finally{await this['releaseLock'](_0x59db17);}}async[a120_0x330a18(0x20b)](_0x6ba2a5){const _0x7d390a=a120_0x330a18,_0x4b074c=await this[_0x7d390a(0x1e3)]();if(!_0x4b074c)return logger[_0x7d390a(0x1fa)]('['+TAG+_0x7d390a(0x1da)),this[_0x7d390a(0x211)]()||this[_0x7d390a(0x203)];try{let _0x4fd09a=this[_0x7d390a(0x211)]();return!_0x4fd09a&&(_0x4fd09a=JSON[_0x7d390a(0x1e1)](JSON['stringify'](this['defaultState']))),_0x4fd09a[_0x7d390a(0x209)]=_0x6ba2a5,await this[_0x7d390a(0x1e7)](_0x4fd09a),_0x4fd09a;}finally{await this[_0x7d390a(0x214)](_0x4b074c);}}}module['exports']=FileHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121_0xed7a99=a121_0x38a5;function a121_0x2022(){const _0x5a5831=['129588mfaoEI','maxFailures','toLowerCase','name','testOrderingEnabled','getEnabled','skip_failing_and_flaky','_instance','getTestOrderingName','getOrchestrationData','5FPBLiY','run_previously_failed_first','1063212JRugEi','abort_build_on_failure','rerun_previously_failed','tmpdir','abort_build_','config','checkAbortBuildFileExists','failed_tests_','exports','enable','1419372SVCTiq','testOrdering','10712790ygeSSq','5544mCEZqt','_setSkipFlakyAndFailed','retryTestsOnFailure','_setRerunPreviouslyFailed','enabled','1024NgCobY','BROWSERSTACK_TESTHUB_UUID','2170091awjqnP','getSkipFlakyAndFailed','_setRunPreviouslyFailedFirst','getName','LEZTf','.txt','writeFailureToFile','runPreviouslyFailedFirst','getRunPreviouslyFailedFirst','env','getRerunPreviouslyFailed','testOrchestrationOptions','jest','join','disable','isRetryEnabled','_setTestOrdering','skipFlakyAndFailed','existsSync','5JHwCZh','445251GTHYox','rerunPreviouslyFailed','getRetryCount'];a121_0x2022=function(){return _0x5a5831;};return a121_0x2022();}function a121_0x38a5(_0x139e23,_0x20f28e){const _0x2022e3=a121_0x2022();return a121_0x38a5=function(_0x38a510,_0x437758){_0x38a510=_0x38a510-0xd9;let _0x831492=_0x2022e3[_0x38a510];return _0x831492;},a121_0x38a5(_0x139e23,_0x20f28e);}(function(_0x2039dd,_0xa36d40){const _0x384bf0=a121_0x38a5,_0x37f44d=_0x2039dd();while(!![]){try{const _0x413a51=parseInt(_0x384bf0(0xff))/0x1*(-parseInt(_0x384bf0(0xf5))/0x2)+parseInt(_0x384bf0(0xf2))/0x3+-parseInt(_0x384bf0(0x101))/0x4+parseInt(_0x384bf0(0xf1))/0x5*(-parseInt(_0x384bf0(0x10b))/0x6)+-parseInt(_0x384bf0(0xde))/0x7+-parseInt(_0x384bf0(0xdc))/0x8*(-parseInt(_0x384bf0(0x10e))/0x9)+parseInt(_0x384bf0(0x10d))/0xa;if(_0x413a51===_0xa36d40)break;else _0x37f44d['push'](_0x37f44d['shift']());}catch(_0x582522){_0x37f44d['push'](_0x37f44d['shift']());}}}(a121_0x2022,0x27994));const os=require('os'),path=require('path'),fs=require('fs'),logger=require('../logger')['winstonLogger'],RETRY_TESTS_ON_FAILURE=a121_0xed7a99(0xd9),ABORT_BUILD_ON_FAILURE='abortBuildOnFailure',RUN_PREVIOUSLY_FAILED_FIRST=a121_0xed7a99(0xe5),RERUN_PREVIOUSLY_FAILED='rerunPreviouslyFailed',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([a121_0xed7a99(0xea)]);class TestOrdering{constructor(){const _0x4f83c4=a121_0xed7a99;this[_0x4f83c4(0xdb)]=![],this[_0x4f83c4(0xf8)]=null;}[a121_0xed7a99(0x10a)](_0x10015b){const _0x4249ae=a121_0xed7a99;this['enabled']=!![],this[_0x4249ae(0xf8)]=_0x10015b;}[a121_0xed7a99(0xec)](){const _0x38f50b=a121_0xed7a99;this[_0x38f50b(0xdb)]=![],this['name']=null;}[a121_0xed7a99(0xfa)](){const _0x152557=a121_0xed7a99;return this[_0x152557(0xdb)];}[a121_0xed7a99(0xe1)](){const _0x477d6f=a121_0xed7a99;return this[_0x477d6f(0xf8)];}}class OrchestrationUtils{static ['_instance']=null;constructor(_0x52cfa5){const _0x49f170=a121_0xed7a99,_0x55993b={};_0x55993b['lXprZ']=function(_0x332e97,_0x3d8882){return _0x332e97||_0x3d8882;};const _0x124577=_0x55993b;this[_0x49f170(0xe5)]=![],this['rerunPreviouslyFailed']=![],this[_0x49f170(0xef)]=![],this[_0x49f170(0x10c)]=new TestOrdering(),this[_0x49f170(0x106)]=_0x124577['lXprZ'](_0x52cfa5,{});const _0x3702de=_0x52cfa5&&_0x52cfa5[_0x49f170(0xe9)]||{};this['_setRunPreviouslyFailedFirst'](_0x3702de[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this['_setRerunPreviouslyFailed'](_0x3702de[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x49f170(0x10f)](_0x3702de[SKIP_FLAKY_AND_FAILED]||![]);}static['getInstance'](_0x3f71ff){const _0x5e2883=a121_0xed7a99;return!OrchestrationUtils[_0x5e2883(0xfc)]&&_0x3f71ff&&(OrchestrationUtils[_0x5e2883(0xfc)]=new OrchestrationUtils(_0x3f71ff)),OrchestrationUtils[_0x5e2883(0xfc)];}[a121_0xed7a99(0xed)](){const _0x400cb7=a121_0xed7a99,_0x19a904=(this['config']['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x19a904[_0x400cb7(0xdb)];}[a121_0xed7a99(0xf4)](){const _0x3e8d01=a121_0xed7a99,_0x378214=(this[_0x3e8d01(0x106)][_0x3e8d01(0xe9)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x456579=0x0;return this['isRetryEnabled'](this[_0x3e8d01(0x106)])&&(_0x456579=_0x378214['maxRetries']||0x1),_0x456579;}[a121_0xed7a99(0xfe)](){const _0xf9ebbd=a121_0xed7a99,_0x4a6832=this[_0xf9ebbd(0x106)][_0xf9ebbd(0xe9)]||{},_0x17683a={};for(const _0x3d54ef in _0x4a6832){ALLOWED_ORCHESTRATION_KEYS['has'](_0x3d54ef)&&(_0x17683a[_0x3d54ef]=_0x4a6832[_0x3d54ef]);}return _0x17683a;}[a121_0xed7a99(0x107)](){const _0x1e0acd=a121_0xed7a99,_0x5362d7=process[_0x1e0acd(0xe7)][_0x1e0acd(0xdd)],_0x4e7923=path[_0x1e0acd(0xeb)](os[_0x1e0acd(0x104)](),_0x1e0acd(0x105)+_0x5362d7);return fs[_0x1e0acd(0xf0)](_0x4e7923);}[a121_0xed7a99(0xe4)](_0x18edd6){const _0x5933c3=a121_0xed7a99,_0x24f64d=process[_0x5933c3(0xe7)][_0x5933c3(0xdd)],_0x3687f4=path[_0x5933c3(0xeb)](os[_0x5933c3(0x104)](),_0x5933c3(0x108)+_0x24f64d+_0x5933c3(0xe3));fs['appendFileSync'](_0x3687f4,_0x18edd6+'\x0a');}['isAbortBuildOnFailureSupported'](_0x3f3891){const _0x5909a8=a121_0xed7a99,_0x555aec={};_0x555aec['LEZTf']=function(_0x2f6575,_0x20ccd7){return _0x2f6575||_0x20ccd7;};const _0x14f4f1=_0x555aec;return ABORT_BUILD_SUPPORTED_FRAMEWORKS['has'](_0x14f4f1[_0x5909a8(0xe2)](_0x3f3891,'')[_0x5909a8(0xf7)]());}['isAbortBuildOnFailureEnabled'](){const _0xf7ae8=a121_0xed7a99,_0x53b6dc=(this[_0xf7ae8(0x106)][_0xf7ae8(0xe9)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x53b6dc[_0xf7ae8(0xdb)];}['getFailureThreshold'](){const _0x2a6877=a121_0xed7a99,_0x318463=(this[_0x2a6877(0x106)][_0x2a6877(0xe9)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x318463[_0x2a6877(0xf6)]||0x5;;}[a121_0xed7a99(0xe6)](){const _0x38c9c1=a121_0xed7a99;return this[_0x38c9c1(0xe5)];}[a121_0xed7a99(0xe0)](_0x473376){const _0xb7379f=a121_0xed7a99;this[_0xb7379f(0xe5)]=!!_0x473376,this[_0xb7379f(0xee)]();}[a121_0xed7a99(0xe8)](){return this['rerunPreviouslyFailed'];}[a121_0xed7a99(0xda)](_0x5eb165){const _0x406469=a121_0xed7a99;this[_0x406469(0xf3)]=!!_0x5eb165,this['_setTestOrdering']();}[a121_0xed7a99(0xdf)](){const _0x251325=a121_0xed7a99;return this[_0x251325(0xef)];}[a121_0xed7a99(0x10f)](_0x675818){const _0x2aaf3a=a121_0xed7a99;this[_0x2aaf3a(0xef)]=!!_0x675818,this['_setTestOrdering']();}['_setTestOrdering'](){const _0x27a6b2=a121_0xed7a99;if(this[_0x27a6b2(0xe5)])this[_0x27a6b2(0xf3)]=![],this[_0x27a6b2(0xef)]=![],this[_0x27a6b2(0x10c)][_0x27a6b2(0x10a)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this['rerunPreviouslyFailed'])this[_0x27a6b2(0xe5)]=![],this[_0x27a6b2(0xef)]=![],this[_0x27a6b2(0x10c)][_0x27a6b2(0x10a)](RERUN_PREVIOUSLY_FAILED);else this['skipFlakyAndFailed']?(this[_0x27a6b2(0xe5)]=![],this[_0x27a6b2(0xf3)]=![],this[_0x27a6b2(0x10c)]['enable'](SKIP_FLAKY_AND_FAILED)):this[_0x27a6b2(0x10c)]['disable']();}}[a121_0xed7a99(0xf9)](){const _0x51c3fc=a121_0xed7a99;return this[_0x51c3fc(0x10c)][_0x51c3fc(0xfa)]();}[a121_0xed7a99(0xfd)](){const _0x413c2d=a121_0xed7a99;if(this['testOrdering'][_0x413c2d(0xfa)]())return this['testOrdering'][_0x413c2d(0xe1)]();return null;}['getBuildStartData'](){const _0x257acf=a121_0xed7a99,_0x2370ef={};return _0x2370ef[_0x257acf(0x103)]={'enabled':this['getRerunPreviouslyFailed']()},_0x2370ef[_0x257acf(0x100)]={'enabled':this[_0x257acf(0xe6)]()},_0x2370ef[_0x257acf(0xfb)]={'enabled':this[_0x257acf(0xdf)]()},this[_0x257acf(0xed)]()&&(_0x2370ef['retry_tests_on_failure']={'enabled':!![],'max_retries':this['getRetryCount']()}),this['isAbortBuildOnFailureEnabled']()&&(_0x2370ef[_0x257acf(0x102)]={'enabled':!![],'max_failures':this['getFailureThreshold']()}),_0x2370ef;}}module[a121_0xed7a99(0x109)]=OrchestrationUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a122_0x2ae0(_0x2c1a8b,_0xb79909){const _0x534834=a122_0x5348();return a122_0x2ae0=function(_0x2ae0a8,_0x4ebc14){_0x2ae0a8=_0x2ae0a8-0x180;let _0x3b9f53=_0x534834[_0x2ae0a8];return _0x3b9f53;},a122_0x2ae0(_0x2c1a8b,_0xb79909);}const a122_0x15c956=a122_0x2ae0;(function(_0x153eaf,_0x54f606){const _0x2abf73=a122_0x2ae0,_0x5a400f=_0x153eaf();while(!![]){try{const _0x7f3877=parseInt(_0x2abf73(0x1b8))/0x1*(-parseInt(_0x2abf73(0x18d))/0x2)+-parseInt(_0x2abf73(0x19b))/0x3*(-parseInt(_0x2abf73(0x1ce))/0x4)+parseInt(_0x2abf73(0x1a4))/0x5*(parseInt(_0x2abf73(0x1bb))/0x6)+parseInt(_0x2abf73(0x1a8))/0x7+parseInt(_0x2abf73(0x18c))/0x8*(parseInt(_0x2abf73(0x18b))/0x9)+parseInt(_0x2abf73(0x198))/0xa*(parseInt(_0x2abf73(0x1c6))/0xb)+-parseInt(_0x2abf73(0x1a6))/0xc;if(_0x7f3877===_0x54f606)break;else _0x5a400f['push'](_0x5a400f['shift']());}catch(_0x17dd46){_0x5a400f['push'](_0x5a400f['shift']());}}}(a122_0x5348,0xef5a8));const https=require(a122_0x15c956(0x1ad)),{URL}=require(a122_0x15c956(0x1b2)),logger=require(a122_0x15c956(0x1c4))[a122_0x15c956(0x1b1)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require('./constants'),TAG=a122_0x15c956(0x1c8);class RequestUtils{static async[a122_0x15c956(0x191)](_0x44232d,_0x1fba59,_0x3bc46a=null){const _0x17ce8b=a122_0x15c956,_0x1b94b8={'XNuMO':function(_0x4859fd,_0x308899){return _0x4859fd(_0x308899);},'yEbvP':'data','ddmZM':_0x17ce8b(0x1a7),'Xniew':_0x17ce8b(0x1c1),'xmEXY':function(_0x315abb,_0x36fd43){return _0x315abb===_0x36fd43;},'BPKri':_0x17ce8b(0x1bc),'BJuye':_0x17ce8b(0x196),'MWQqO':'application/json','HZeab':function(_0x1b65d0,_0x40c3b5){return _0x1b65d0+_0x40c3b5;}},_0x3583c8=process[_0x17ce8b(0x1c2)][_0x17ce8b(0x19d)]||'',_0x4ecc2b={};_0x4ecc2b[_0x17ce8b(0x1b5)]=_0x17ce8b(0x19a)+_0x3583c8,_0x4ecc2b[_0x17ce8b(0x189)]=_0x1b94b8[_0x17ce8b(0x1c0)];const _0x2687dc=_0x4ecc2b,{hostname:_0x5ac54d,pathname:_0x1c756b,search:_0x47f36d}=new URL(_0x1fba59),_0x4aac79={'hostname':_0x5ac54d,'path':_0x1b94b8[_0x17ce8b(0x1be)](_0x1c756b,_0x47f36d),'method':_0x44232d,'headers':_0x2687dc};return logger[_0x17ce8b(0x1c7)]('['+TAG+_0x17ce8b(0x1a9)+_0x44232d+'\x20request\x20to\x20'+_0x1fba59+'\x20with\x20headers:\x20'+JSON[_0x17ce8b(0x181)](_0x2687dc)+'\x20and\x20data:\x20'+JSON['stringify'](_0x3bc46a)+'\x20and\x20token:\x20'+_0x3583c8),new Promise((_0x29aaf9,_0xf5b52b)=>{const _0x15006a=_0x17ce8b,_0x197f30={'jTHFy':function(_0x393bbd,_0x3ea6f){const _0x4b382b=a122_0x2ae0;return _0x1b94b8[_0x4b382b(0x1bf)](_0x393bbd,_0x3ea6f);},'hpPan':_0x1b94b8['yEbvP'],'cmfNL':_0x1b94b8[_0x15006a(0x1ab)]},_0x579211=https['request'](_0x4aac79,_0x5522a5=>{const _0x1c3aa1=_0x15006a;let _0x26abc7='';_0x5522a5['on'](_0x197f30[_0x1c3aa1(0x1a0)],_0x693491=>{_0x26abc7+=_0x693491;}),_0x5522a5['on'](_0x197f30[_0x1c3aa1(0x186)],()=>{const _0x3d3464=_0x1c3aa1;try{const _0xb060b8=_0x26abc7?JSON['parse'](_0x26abc7):{},_0x55bc61={};_0x55bc61[_0x3d3464(0x1d0)]=_0x5522a5[_0x3d3464(0x180)],_0x55bc61[_0x3d3464(0x197)]=_0xb060b8,_0x55bc61[_0x3d3464(0x1ba)]=_0x5522a5[_0x3d3464(0x1ba)],_0x197f30['jTHFy'](_0x29aaf9,_0x55bc61);}catch(_0x3a931a){logger['error']('['+TAG+_0x3d3464(0x190)+_0x26abc7+_0x3d3464(0x1cb)+_0x3a931a['message']+'\x20'+_0x3a931a[_0x3d3464(0x1d2)]),_0x197f30[_0x3d3464(0x1c5)](_0xf5b52b,new Error(_0x3d3464(0x1d3)+_0x3a931a[_0x3d3464(0x1b0)]));}});});_0x579211['on'](_0x1b94b8['Xniew'],_0xf616de=>{const _0x2a5d89=_0x15006a;logger[_0x2a5d89(0x1c1)]('['+TAG+_0x2a5d89(0x192)+_0x44232d+'\x20'+_0x1fba59+':\x20'+_0xf616de['message']+'\x20'+_0xf616de[_0x2a5d89(0x1d2)]),_0x197f30[_0x2a5d89(0x1c5)](_0xf5b52b,_0xf616de);}),_0x3bc46a&&(_0x1b94b8[_0x15006a(0x193)](_0x44232d,_0x1b94b8[_0x15006a(0x1cd)])||_0x1b94b8[_0x15006a(0x193)](_0x44232d,_0x1b94b8[_0x15006a(0x1b6)]))&&_0x579211[_0x15006a(0x1c3)](JSON[_0x15006a(0x181)](_0x3bc46a)),_0x579211[_0x15006a(0x1a7)]();});}static async[a122_0x15c956(0x1ac)](_0xdcd54e){const _0x35c5aa=a122_0x15c956,_0x3e14d4={};_0x3e14d4[_0x35c5aa(0x1b4)]=_0x35c5aa(0x1bc),_0x3e14d4[_0x35c5aa(0x1a2)]=function(_0x106381,_0x416d50){return _0x106381===_0x416d50;};const _0x23df7d=_0x3e14d4,_0x2333aa=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x111e69=await this[_0x35c5aa(0x191)](_0x23df7d[_0x35c5aa(0x1b4)],_0x2333aa,_0xdcd54e);return _0x23df7d[_0x35c5aa(0x1a2)](_0x111e69['status'],0xc8)?logger[_0x35c5aa(0x1c7)]('['+TAG+_0x35c5aa(0x1a3)+_0x2333aa):logger[_0x35c5aa(0x1c1)]('['+TAG+_0x35c5aa(0x185)+_0x2333aa+':\x20'+JSON[_0x35c5aa(0x181)](_0x111e69[_0x35c5aa(0x197)])+_0x35c5aa(0x1c9)+_0x111e69['status']),_0x111e69;}catch(_0x490f5d){logger['error']('['+TAG+_0x35c5aa(0x195)+_0x490f5d['message']+'\x20'+_0x490f5d[_0x35c5aa(0x1d2)]);const _0x435a60={};_0x435a60[_0x35c5aa(0x1b0)]=_0x490f5d[_0x35c5aa(0x1b0)];const _0x2f5fc5={};return _0x2f5fc5[_0x35c5aa(0x1d0)]=0x1f4,_0x2f5fc5[_0x35c5aa(0x197)]=_0x435a60,_0x2f5fc5;}}static async[a122_0x15c956(0x184)](_0xb9c7c0){const _0x5481a3=a122_0x15c956,_0x58070d={};_0x58070d[_0x5481a3(0x183)]=_0x5481a3(0x187),_0x58070d[_0x5481a3(0x19f)]=function(_0x564a0d,_0x3955ae){return _0x564a0d===_0x3955ae;};const _0x4519dc=_0x58070d;try{const _0xfd13a5=await this[_0x5481a3(0x191)](_0x4519dc[_0x5481a3(0x183)],_0xb9c7c0);if(_0x4519dc[_0x5481a3(0x19f)](_0xfd13a5['status'],0xc8))return _0xfd13a5[_0x5481a3(0x197)];return{};}catch(_0x27803c){return logger[_0x5481a3(0x1c1)]('['+TAG+_0x5481a3(0x195)+_0x27803c['message']+'\x20'+_0x27803c['stack']),{};}}static async[a122_0x15c956(0x1a1)](_0x5984a5){const _0x33d7d8=a122_0x15c956,_0x4cea2b={};_0x4cea2b[_0x33d7d8(0x1aa)]=_0x33d7d8(0x196),_0x4cea2b['nlHDh']=function(_0x4feb06,_0x175685){return _0x4feb06===_0x175685;},_0x4cea2b[_0x33d7d8(0x1cf)]=function(_0x8f45c,_0x4cae5b){return _0x8f45c===_0x4cae5b;},_0x4cea2b[_0x33d7d8(0x194)]=_0x33d7d8(0x199);const _0x530013=_0x4cea2b,_0x1ac3e1=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x4c166f=await this[_0x33d7d8(0x191)](_0x530013[_0x33d7d8(0x1aa)],_0x1ac3e1,_0x5984a5);if(_0x530013[_0x33d7d8(0x1af)](_0x4c166f[_0x33d7d8(0x1d0)],0xc8)&&_0x4c166f[_0x33d7d8(0x197)]&&_0x530013[_0x33d7d8(0x1cf)](_0x4c166f[_0x33d7d8(0x197)][_0x33d7d8(0x1b0)],_0x530013[_0x33d7d8(0x194)]))return!![];return![];}catch(_0xc9df74){logger[_0x33d7d8(0x1c1)]('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0xc9df74[_0x33d7d8(0x1b0)]+'\x20'+_0xc9df74['stack']);const _0xcda1a={};_0xcda1a[_0x33d7d8(0x1b0)]=_0xc9df74['message'];const _0x55b515={};return _0x55b515[_0x33d7d8(0x1d0)]=0x1f4,_0x55b515[_0x33d7d8(0x197)]=_0xcda1a,_0x55b515;}}static async[a122_0x15c956(0x1cc)](_0x21bbee){const _0x281cf9=a122_0x15c956,_0x25ca99={'EiOre':function(_0xc9a8ba,_0x4c94ee){return _0xc9a8ba||_0x4c94ee;},'GXdsm':_0x281cf9(0x1d1),'hOWwF':function(_0x457de0,_0x23a66e){return _0x457de0(_0x23a66e);},'LwWhZ':function(_0x15768b,_0x3f1ba6){return _0x15768b(_0x3f1ba6);},'rCHBb':_0x281cf9(0x187),'QNjZj':function(_0x44593e,_0x52c6f0){return _0x44593e===_0x52c6f0;},'jYgxQ':function(_0xa0d708,_0x19276c){return _0xa0d708!==_0x19276c;},'Pbzir':_0x281cf9(0x19c),'JnDxm':function(_0x20b7d1,_0x1c2c1d){return _0x20b7d1(_0x1c2c1d);}},{buildName:_0x27268f,buildRunIdentifier:_0x1faf8e,projectName:_0x25a9eb}=_0x21bbee;if(_0x25ca99[_0x281cf9(0x19e)](!_0x27268f,!_0x1faf8e)||!_0x25a9eb){logger[_0x281cf9(0x1c1)]('['+TAG+_0x281cf9(0x1ae)+_0x27268f+',\x20buildRunIdentifier='+_0x1faf8e+_0x281cf9(0x1d4)+_0x25a9eb);const _0x1243e0={};_0x1243e0[_0x281cf9(0x1b0)]=_0x25ca99[_0x281cf9(0x182)];const _0x491a3a={};return _0x491a3a[_0x281cf9(0x1d0)]=0x190,_0x491a3a[_0x281cf9(0x197)]=_0x1243e0,_0x491a3a;}const _0x48fc66=_0x281cf9(0x1a5)+_0x25ca99['hOWwF'](encodeURIComponent,_0x27268f)+_0x281cf9(0x1b9)+_0x25ca99[_0x281cf9(0x1b3)](encodeURIComponent,_0x1faf8e)+_0x281cf9(0x1ca)+_0x25ca99[_0x281cf9(0x18f)](encodeURIComponent,_0x25a9eb),_0x53412a=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x48fc66;try{logger[_0x281cf9(0x1c7)]('['+TAG+']\x20Sending\x20GET\x20to\x20'+_0x53412a);let _0xc3eaa0=0x0;const _0x5c1720=await this[_0x281cf9(0x191)](_0x25ca99[_0x281cf9(0x188)],_0x53412a);return _0x25ca99[_0x281cf9(0x1bd)](_0x5c1720['status'],0xc8)&&_0x5c1720['body']&&_0x25ca99['jYgxQ'](typeof _0x5c1720['body'][_0x281cf9(0x18e)],_0x25ca99['Pbzir'])&&(_0xc3eaa0=_0x25ca99[_0x281cf9(0x18a)](Number,_0x5c1720['body'][_0x281cf9(0x18e)])),_0xc3eaa0;}catch(_0x40d295){logger['error']('['+TAG+_0x281cf9(0x1b7)+_0x40d295['message']+'\x20'+_0x40d295[_0x281cf9(0x1d2)]);const _0x283ab0={};_0x283ab0[_0x281cf9(0x1b0)]=_0x40d295[_0x281cf9(0x1b0)];const _0x288bec={};return _0x288bec['status']=0x1f4,_0x288bec[_0x281cf9(0x197)]=_0x283ab0,_0x288bec;}}}module['exports']=RequestUtils;function a122_0x5348(){const _0x29ed45=['status','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','stack','Failed\x20to\x20parse\x20JSON\x20response:\x20',',\x20projectName=','statusCode','stringify','GXdsm','zqeIA','getSplitFiles',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','cmfNL','GET','rCHBb','Content-Type','JnDxm','10269eDjmDf','12544NXWusw','12lMbouu','failedTestsCount','LwWhZ',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','_request',']\x20Request\x20failed\x20for\x20','xmEXY','KkwWz',']\x20Error\x20in\x20putFailedTests:\x20','PUT','body','5060AibDuS','Test\x20added','Bearer\x20','3PdcGBQ','undefined','BROWSERSTACK_TESTHUB_JWT','EiOre','xnLHb','hpPan','putFailedTests','UAFnu',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','22010GugiiG','?buildName=','43110480HTmhqp','end','8535597apjbNb',']\x20Sending\x20','ZgeTb','ddmZM','postSplitFiles','https',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','nlHDh','message','winstonLogger','url','hOWwF','PKhNj','Authorization','BJuye',']\x20Error\x20in\x20getFailedTestsCount:\x20','139052XZteFm','&buildRunIdentifier=','headers','2130heOdKn','POST','QNjZj','HZeab','XNuMO','MWQqO','error','env','write','../logger','jTHFy','1562OmaLbg','debug','RequestUtils',',\x20status:\x20','&projectName=','\x20-\x20','getFailedTestsCount','BPKri','3056892hPrHZK','BHuzv'];a122_0x5348=function(){return _0x29ed45;};return a122_0x5348();}
|
|
1
|
+
const a122_0x480ea2=a122_0x4841;(function(_0x270464,_0x43210a){const _0xfdfdbc=a122_0x4841,_0x2da87a=_0x270464();while(!![]){try{const _0x35681f=-parseInt(_0xfdfdbc(0x144))/0x1*(-parseInt(_0xfdfdbc(0x14d))/0x2)+-parseInt(_0xfdfdbc(0x178))/0x3*(-parseInt(_0xfdfdbc(0x152))/0x4)+parseInt(_0xfdfdbc(0x16e))/0x5*(parseInt(_0xfdfdbc(0x149))/0x6)+-parseInt(_0xfdfdbc(0x191))/0x7*(-parseInt(_0xfdfdbc(0x165))/0x8)+parseInt(_0xfdfdbc(0x18c))/0x9+-parseInt(_0xfdfdbc(0x161))/0xa+-parseInt(_0xfdfdbc(0x183))/0xb*(parseInt(_0xfdfdbc(0x150))/0xc);if(_0x35681f===_0x43210a)break;else _0x2da87a['push'](_0x2da87a['shift']());}catch(_0x4a40fa){_0x2da87a['push'](_0x2da87a['shift']());}}}(a122_0x2439,0xb5799));const https=require(a122_0x480ea2(0x15c)),{URL}=require(a122_0x480ea2(0x154)),logger=require(a122_0x480ea2(0x146))[a122_0x480ea2(0x14e)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a122_0x480ea2(0x143)),TAG='RequestUtils';function a122_0x2439(){const _0x4ee5c0=['10DQZyFt','PZSDS','stringify','BROWSERSTACK_TESTHUB_JWT','EQwuO','lgFLw','write','\x20request\x20to\x20','UpLio','fJuCo','3rnchRL',',\x20buildRunIdentifier=','yWNrd','HduCB',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','env',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','eOrZm','exports','Bearer\x20','data','183513XvBZbD',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20',',\x20status:\x20','undefined','LSQsc','Failed\x20to\x20parse\x20JSON\x20response:\x20','SclEn','XnZMJ','?buildName=','3517470ZFIzVM','KrMwY',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','stack','body','1678502iBmjwT','ihBPn',',\x20projectName=','\x20-\x20','parse','uOxrX','_request','bGTTo','GET','&buildRunIdentifier=','PUT','./constants','129432jeqqhP','AgDsF','../logger','headers','Authorization','3908838jMIfFa','application/json','Content-Type','putFailedTests','12uDQbVn','winstonLogger',']\x20Sending\x20GET\x20to\x20','1536WclzIS',']\x20Error\x20in\x20putFailedTests:\x20','2398444FCrKqz','getFailedTestsCount','url','tKWYF','\x20and\x20token:\x20','POST','message','getSplitFiles','request','end','https','postSplitFiles','debug','Test\x20added','error','13901640PTBMFZ','GJtQO','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','statusCode','40WknxEU','\x20and\x20data:\x20','OOFua','ReTHs',']\x20Sending\x20','kCIzd','status','qZLdI','GBTfy'];a122_0x2439=function(){return _0x4ee5c0;};return a122_0x2439();}function a122_0x4841(_0x44e105,_0x505ab1){const _0x24395a=a122_0x2439();return a122_0x4841=function(_0x484199,_0x546d2c){_0x484199=_0x484199-0x141;let _0x325edc=_0x24395a[_0x484199];return _0x325edc;},a122_0x4841(_0x44e105,_0x505ab1);}class RequestUtils{static async['_request'](_0x1a3e81,_0x4ab8bb,_0x501c4e=null){const _0x350f92=a122_0x480ea2,_0x375581={'PZSDS':_0x350f92(0x182),'EQwuO':_0x350f92(0x15b),'JdOIs':function(_0x2b2be9,_0x258656){return _0x2b2be9(_0x258656);},'SclEn':_0x350f92(0x160),'eOrZm':function(_0x3affaf,_0x12d74e){return _0x3affaf===_0x12d74e;},'ReTHs':_0x350f92(0x157),'pRoJB':function(_0x49174a,_0x3294c4){return _0x49174a===_0x3294c4;},'ysUpi':'PUT','fJuCo':_0x350f92(0x14a),'lgFLw':function(_0x4837ec,_0x548b32){return _0x4837ec+_0x548b32;}},_0x21b12e=process[_0x350f92(0x17d)][_0x350f92(0x171)]||'',_0x93d514={};_0x93d514[_0x350f92(0x148)]=_0x350f92(0x181)+_0x21b12e,_0x93d514[_0x350f92(0x14b)]=_0x375581[_0x350f92(0x177)];const _0x59259e=_0x93d514,{hostname:_0x9be99c,pathname:_0x1d40cd,search:_0x1cbf95}=new URL(_0x4ab8bb),_0x4cd284={'hostname':_0x9be99c,'path':_0x375581[_0x350f92(0x173)](_0x1d40cd,_0x1cbf95),'method':_0x1a3e81,'headers':_0x59259e};return logger[_0x350f92(0x15e)]('['+TAG+_0x350f92(0x169)+_0x1a3e81+_0x350f92(0x175)+_0x4ab8bb+'\x20with\x20headers:\x20'+JSON[_0x350f92(0x170)](_0x59259e)+_0x350f92(0x166)+JSON[_0x350f92(0x170)](_0x501c4e)+_0x350f92(0x156)+_0x21b12e),new Promise((_0x3b47f1,_0x356546)=>{const _0x34093a=_0x350f92,_0x44dd71={'kCIzd':function(_0x1b5006,_0x5c20d0){return _0x375581['JdOIs'](_0x1b5006,_0x5c20d0);}},_0x3079f1=https[_0x34093a(0x15a)](_0x4cd284,_0x1edcee=>{const _0x42d75a=_0x34093a;let _0x2c0a9a='';_0x1edcee['on'](_0x375581[_0x42d75a(0x16f)],_0x356dcf=>{_0x2c0a9a+=_0x356dcf;}),_0x1edcee['on'](_0x375581[_0x42d75a(0x172)],()=>{const _0x3ca1ee=_0x42d75a;try{const _0x2541b9=_0x2c0a9a?JSON[_0x3ca1ee(0x195)](_0x2c0a9a):{},_0xa7156={};_0xa7156['status']=_0x1edcee[_0x3ca1ee(0x164)],_0xa7156[_0x3ca1ee(0x190)]=_0x2541b9,_0xa7156[_0x3ca1ee(0x147)]=_0x1edcee[_0x3ca1ee(0x147)],_0x44dd71['kCIzd'](_0x3b47f1,_0xa7156);}catch(_0x2d6ddd){logger[_0x3ca1ee(0x160)]('['+TAG+_0x3ca1ee(0x18e)+_0x2c0a9a+_0x3ca1ee(0x194)+_0x2d6ddd[_0x3ca1ee(0x158)]+'\x20'+_0x2d6ddd[_0x3ca1ee(0x18f)]),_0x44dd71[_0x3ca1ee(0x16a)](_0x356546,new Error(_0x3ca1ee(0x188)+_0x2d6ddd['message']));}});});_0x3079f1['on'](_0x375581[_0x34093a(0x189)],_0x46e2ea=>{const _0x52fe74=_0x34093a;logger['error']('['+TAG+']\x20Request\x20failed\x20for\x20'+_0x1a3e81+'\x20'+_0x4ab8bb+':\x20'+_0x46e2ea[_0x52fe74(0x158)]+'\x20'+_0x46e2ea['stack']),_0x44dd71[_0x52fe74(0x16a)](_0x356546,_0x46e2ea);}),_0x501c4e&&(_0x375581[_0x34093a(0x17f)](_0x1a3e81,_0x375581[_0x34093a(0x168)])||_0x375581['pRoJB'](_0x1a3e81,_0x375581['ysUpi']))&&_0x3079f1[_0x34093a(0x174)](JSON['stringify'](_0x501c4e)),_0x3079f1[_0x34093a(0x15b)]();});}static async[a122_0x480ea2(0x15d)](_0x4cb701){const _0x45d6e3=a122_0x480ea2,_0x30637b={};_0x30637b['qZLdI']=_0x45d6e3(0x157),_0x30637b[_0x45d6e3(0x17b)]=function(_0x139499,_0x23b3fb){return _0x139499===_0x23b3fb;};const _0x5723da=_0x30637b,_0x190dfc=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x4db411=await this[_0x45d6e3(0x197)](_0x5723da[_0x45d6e3(0x16c)],_0x190dfc,_0x4cb701);return _0x5723da['HduCB'](_0x4db411[_0x45d6e3(0x16b)],0xc8)?logger['debug']('['+TAG+_0x45d6e3(0x17c)+_0x190dfc):logger[_0x45d6e3(0x160)]('['+TAG+_0x45d6e3(0x184)+_0x190dfc+':\x20'+JSON[_0x45d6e3(0x170)](_0x4db411[_0x45d6e3(0x190)])+_0x45d6e3(0x185)+_0x4db411[_0x45d6e3(0x16b)]),_0x4db411;}catch(_0x4275c4){logger[_0x45d6e3(0x160)]('['+TAG+_0x45d6e3(0x151)+_0x4275c4[_0x45d6e3(0x158)]+'\x20'+_0x4275c4[_0x45d6e3(0x18f)]);const _0x2b1613={};_0x2b1613[_0x45d6e3(0x158)]=_0x4275c4[_0x45d6e3(0x158)];const _0x4d3033={};return _0x4d3033[_0x45d6e3(0x16b)]=0x1f4,_0x4d3033[_0x45d6e3(0x190)]=_0x2b1613,_0x4d3033;}}static async[a122_0x480ea2(0x159)](_0x200641){const _0x53f874=a122_0x480ea2,_0x5c04e8={};_0x5c04e8[_0x53f874(0x198)]='GET',_0x5c04e8[_0x53f874(0x192)]=function(_0x14de79,_0x2bcfe1){return _0x14de79===_0x2bcfe1;};const _0x7a1e31=_0x5c04e8;try{const _0x40d7dc=await this[_0x53f874(0x197)](_0x7a1e31[_0x53f874(0x198)],_0x200641);if(_0x7a1e31[_0x53f874(0x192)](_0x40d7dc[_0x53f874(0x16b)],0xc8))return _0x40d7dc[_0x53f874(0x190)];return{};}catch(_0x31c5ad){return logger[_0x53f874(0x160)]('['+TAG+_0x53f874(0x151)+_0x31c5ad['message']+'\x20'+_0x31c5ad[_0x53f874(0x18f)]),{};}}static async[a122_0x480ea2(0x14c)](_0x2c7828){const _0x23018f=a122_0x480ea2,_0x10b406={};_0x10b406[_0x23018f(0x18d)]=_0x23018f(0x142),_0x10b406[_0x23018f(0x155)]=function(_0x24a3a4,_0x2c01d8){return _0x24a3a4===_0x2c01d8;},_0x10b406[_0x23018f(0x196)]=_0x23018f(0x15f);const _0x123d69=_0x10b406,_0x3a02b1=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x5b3258=await this['_request'](_0x123d69['KrMwY'],_0x3a02b1,_0x2c7828);if(_0x123d69[_0x23018f(0x155)](_0x5b3258['status'],0xc8)&&_0x5b3258[_0x23018f(0x190)]&&_0x123d69[_0x23018f(0x155)](_0x5b3258['body'][_0x23018f(0x158)],_0x123d69[_0x23018f(0x196)]))return!![];return![];}catch(_0x4af115){logger[_0x23018f(0x160)]('['+TAG+_0x23018f(0x151)+_0x4af115[_0x23018f(0x158)]+'\x20'+_0x4af115[_0x23018f(0x18f)]);const _0x16ec18={};_0x16ec18[_0x23018f(0x158)]=_0x4af115[_0x23018f(0x158)];const _0x13380c={};return _0x13380c[_0x23018f(0x16b)]=0x1f4,_0x13380c[_0x23018f(0x190)]=_0x16ec18,_0x13380c;}}static async[a122_0x480ea2(0x153)](_0x19e76e){const _0x5f3db2=a122_0x480ea2,_0x2c0e1c={'yWNrd':function(_0x4c883c,_0x14b83b){return _0x4c883c||_0x14b83b;},'XnZMJ':_0x5f3db2(0x163),'OOFua':function(_0x1b351c,_0x4b4f18){return _0x1b351c(_0x4b4f18);},'GJtQO':_0x5f3db2(0x199),'UpLio':function(_0xc23de8,_0x1f4adb){return _0xc23de8===_0x1f4adb;},'LSQsc':function(_0x31a4dd,_0x5e4310){return _0x31a4dd!==_0x5e4310;},'AgDsF':_0x5f3db2(0x186),'GBTfy':function(_0x25d95f,_0x111ec2){return _0x25d95f(_0x111ec2);}},{buildName:_0x2c84e7,buildRunIdentifier:_0x3d3493,projectName:_0x31e25b}=_0x19e76e;if(_0x2c0e1c[_0x5f3db2(0x17a)](!_0x2c84e7,!_0x3d3493)||!_0x31e25b){logger[_0x5f3db2(0x160)]('['+TAG+_0x5f3db2(0x17e)+_0x2c84e7+_0x5f3db2(0x179)+_0x3d3493+_0x5f3db2(0x193)+_0x31e25b);const _0x432761={};_0x432761['message']=_0x2c0e1c[_0x5f3db2(0x18a)];const _0x15a513={};return _0x15a513[_0x5f3db2(0x16b)]=0x190,_0x15a513[_0x5f3db2(0x190)]=_0x432761,_0x15a513;}const _0x4949e8=_0x5f3db2(0x18b)+_0x2c0e1c[_0x5f3db2(0x167)](encodeURIComponent,_0x2c84e7)+_0x5f3db2(0x141)+_0x2c0e1c[_0x5f3db2(0x167)](encodeURIComponent,_0x3d3493)+'&projectName='+_0x2c0e1c[_0x5f3db2(0x167)](encodeURIComponent,_0x31e25b),_0x4ba453=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x4949e8;try{logger[_0x5f3db2(0x15e)]('['+TAG+_0x5f3db2(0x14f)+_0x4ba453);let _0x28c612=0x0;const _0xcb0917=await this[_0x5f3db2(0x197)](_0x2c0e1c[_0x5f3db2(0x162)],_0x4ba453);return _0x2c0e1c[_0x5f3db2(0x176)](_0xcb0917[_0x5f3db2(0x16b)],0xc8)&&_0xcb0917[_0x5f3db2(0x190)]&&_0x2c0e1c[_0x5f3db2(0x187)](typeof _0xcb0917[_0x5f3db2(0x190)]['failedTestsCount'],_0x2c0e1c[_0x5f3db2(0x145)])&&(_0x28c612=_0x2c0e1c[_0x5f3db2(0x16d)](Number,_0xcb0917[_0x5f3db2(0x190)]['failedTestsCount'])),_0x28c612;}catch(_0x8a3646){logger[_0x5f3db2(0x160)]('['+TAG+']\x20Error\x20in\x20getFailedTestsCount:\x20'+_0x8a3646[_0x5f3db2(0x158)]+'\x20'+_0x8a3646['stack']);const _0x146241={};_0x146241[_0x5f3db2(0x158)]=_0x8a3646[_0x5f3db2(0x158)];const _0x583f78={};return _0x583f78[_0x5f3db2(0x16b)]=0x1f4,_0x583f78['body']=_0x146241,_0x583f78;}}}module[a122_0x480ea2(0x180)]=RequestUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a123_0x37e5cb=a123_0x3e13;(function(_0x52231,_0x1ec414){const _0x46f908=a123_0x3e13,_0xac9f0c=_0x52231();while(!![]){try{const _0x551432=parseInt(_0x46f908(0xd1))/0x1+parseInt(_0x46f908(0xf1))/0x2+parseInt(_0x46f908(0xdc))/0x3*(parseInt(_0x46f908(0xc5))/0x4)+-parseInt(_0x46f908(0x12d))/0x5*(-parseInt(_0x46f908(0x120))/0x6)+-parseInt(_0x46f908(0xc3))/0x7+-parseInt(_0x46f908(0x12c))/0x8*(-parseInt(_0x46f908(0x118))/0x9)+-parseInt(_0x46f908(0xdd))/0xa;if(_0x551432===_0x1ec414)break;else _0xac9f0c['push'](_0xac9f0c['shift']());}catch(_0x3bb804){_0xac9f0c['push'](_0xac9f0c['shift']());}}}(a123_0x40f6,0x9c1f9));const logger=require('../logger')[a123_0x37e5cb(0xfd)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a123_0x37e5cb(0xde)),TestOrderingServerHandler=require(a123_0x37e5cb(0xc2)),OrchestrationUtils=require(a123_0x37e5cb(0xee)),path=require('path'),{spawnSync}=require('child_process'),micromatch=require(a123_0x37e5cb(0x111)),fs=require('fs');class TestOrchestrationHandler{constructor(_0x75f801){const _0x3fe0c3=a123_0x37e5cb,_0x1b7cb7={};_0x1b7cb7['TNSEl']='3|0|1|2|4|5';const _0x4151c4=_0x1b7cb7,_0x1a2451=_0x4151c4[_0x3fe0c3(0xed)][_0x3fe0c3(0x116)]('|');let _0x602e66=0x0;while(!![]){switch(_0x1a2451[_0x602e66++]){case'0':this['orderingInstrumentationData']={};continue;case'1':this[_0x3fe0c3(0xf2)]=![];continue;case'2':this['testOrderingServerHandler']=null;continue;case'3':this[_0x3fe0c3(0x11f)]=_0x75f801;continue;case'4':this[_0x3fe0c3(0xd9)]=new OrchestrationUtils(_0x75f801);continue;case'5':this[_0x3fe0c3(0xef)]();continue;}break;}}[a123_0x37e5cb(0xfa)](){const _0x3fd51f=a123_0x37e5cb,_0x2c8b35={'FuXWp':function(_0x2d44e5,_0x2b4248){return _0x2d44e5(_0x2b4248);},'BZpIt':function(_0x523db1,_0x413bd9){return _0x523db1(_0x413bd9);},'QrtfB':function(_0x5f3bd9,_0x7dab3d){return _0x5f3bd9&&_0x7dab3d;}},_0x13d4d3=_0x2c8b35['FuXWp'](isNotUndefined,this[_0x3fd51f(0x11f)])&&(_0x2c8b35[_0x3fd51f(0xe5)](isUndefined,this[_0x3fd51f(0x11f)][_0x3fd51f(0x12b)])||_0x2c8b35['FuXWp'](isTrueString,this[_0x3fd51f(0x11f)][_0x3fd51f(0x12b)])),_0x1ec0a8=this[_0x3fd51f(0xd9)][_0x3fd51f(0xf5)](),_0x4f4819=_0x2c8b35[_0x3fd51f(0xe5)](isNotUndefined,this[_0x3fd51f(0x11f)])&&_0x2c8b35[_0x3fd51f(0xe5)](isNotUndefined,this[_0x3fd51f(0x11f)]['projectName']),_0x4913fd=_0x2c8b35[_0x3fd51f(0xe5)](isNotUndefined,this[_0x3fd51f(0x11f)])&&_0x2c8b35[_0x3fd51f(0x12e)](isNotUndefined,this[_0x3fd51f(0x11f)][_0x3fd51f(0xf8)]);return _0x2c8b35[_0x3fd51f(0x11b)](_0x13d4d3,_0x1ec0a8)&&_0x4f4819&&_0x4913fd;}['_initializeTestOrdering'](){const _0x77a3ef=a123_0x37e5cb,_0x4a48f9={};_0x4a48f9[_0x77a3ef(0xf3)]=_0x77a3ef(0x108),_0x4a48f9[_0x77a3ef(0xda)]=_0x77a3ef(0x103);const _0x47e892=_0x4a48f9;this[_0x77a3ef(0xfa)]()?(this['testOrderingServerHandler']=new TestOrderingServerHandler(this['config']),logger[_0x77a3ef(0xf9)](_0x47e892['uqCwP'])):(logger[_0x77a3ef(0x12a)](_0x47e892[_0x77a3ef(0xda)]),this[_0x77a3ef(0xd0)]());}['logTestOrderingChecks'](){const _0x461571=a123_0x37e5cb,_0x18d899={'arzwQ':function(_0x3e09ad,_0x482ec1){return _0x3e09ad(_0x482ec1);},'jHvYl':function(_0x1c62b0,_0x1e216e){return _0x1c62b0(_0x1e216e);},'KEsDS':_0x461571(0x109),'lOMRc':function(_0x596590,_0x591bc0){return _0x596590(_0x591bc0);},'WkaCw':_0x461571(0x11c)};if(!this[_0x461571(0x10e)]())return;(!_0x18d899['arzwQ'](isNotUndefined,this[_0x461571(0x11f)])||!_0x18d899['jHvYl'](isNotUndefined,this[_0x461571(0x11f)][_0x461571(0xf8)])||!_0x18d899[_0x461571(0x123)](isNotUndefined,this[_0x461571(0x11f)][_0x461571(0x101)]))&&logger[_0x461571(0xf9)](_0x18d899[_0x461571(0x121)]),_0x18d899[_0x461571(0xce)](isNotUndefined,this['config'])&&_0x18d899[_0x461571(0xce)](isNotUndefined,this[_0x461571(0x11f)]['testObservability'])&&!_0x18d899[_0x461571(0xfe)](isTrueString,this[_0x461571(0x11f)][_0x461571(0x12b)])&&logger['info'](_0x18d899[_0x461571(0xe1)]);}[a123_0x37e5cb(0x10e)](){const _0x4e715b=a123_0x37e5cb;return!this[_0x4e715b(0xfa)]()&&this[_0x4e715b(0xd9)]['testOrderingEnabled']();}[a123_0x37e5cb(0x107)](){const _0x2a6e5e=a123_0x37e5cb;return this[_0x2a6e5e(0xf2)];}[a123_0x37e5cb(0xeb)](_0x2f6115){const _0x4e1c96=a123_0x37e5cb,_0x3af53e={};_0x3af53e['pcnUp']='applied';const _0x36f22b=_0x3af53e;this['testOrderingApplied']=_0x2f6115,this['addToOrderingInstrumentationData'](_0x36f22b[_0x4e1c96(0xd2)],_0x2f6115);}[a123_0x37e5cb(0xe0)](_0x50294b,_0x2f3e7d){const _0x430888=a123_0x37e5cb;this[_0x430888(0xc7)][_0x50294b]=_0x2f3e7d;}['getOrderingInstrumentationData'](){return this['orderingInstrumentationData'];}[a123_0x37e5cb(0x113)](){const _0x2f731b=a123_0x37e5cb,_0x3c5c84={'HDKeB':function(_0x58c72d,_0x123df3){return _0x58c72d(_0x123df3);},'ZjGJG':function(_0x2c7663,_0x22a231){return _0x2c7663>_0x22a231;}},_0x4aa405=_0x3c5c84[_0x2f731b(0xe3)](parseInt,process[_0x2f731b(0x11a)]['BROWSERSTACK_TOTAL_NODE_COUNT']||'1'),_0x34f355=process['env'][_0x2f731b(0x115)];_0x34f355&&_0x3c5c84[_0x2f731b(0x124)](_0x4aa405,0x1)&&(logger[_0x2f731b(0x12a)]('[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20'+_0x34f355),this[_0x2f731b(0x11f)][_0x2f731b(0xe6)]=_0x34f355);}async['reorderTestFiles'](_0x5e7462){const _0x16efd9=a123_0x37e5cb,_0x18df14={'tDkpX':function(_0x574ffd,_0x3a0b52){return _0x574ffd===_0x3a0b52;},'Tuyvd':function(_0xcb2dcb,_0x4dac4f){return _0xcb2dcb===_0x4dac4f;},'DwAfl':_0x16efd9(0xe4),'XXhcH':function(_0x4d657c,_0x4c258f){return _0x4d657c===_0x4c258f;},'JBGgT':function(_0x3724d9,_0x336717){return _0x3724d9(_0x336717);},'Ecbri':function(_0x3b3693,_0x332dc3){return _0x3b3693(_0x332dc3);},'Fpplf':_0x16efd9(0xc9),'GJGhr':_0x16efd9(0xfc),'whGwU':_0x16efd9(0xcf),'xHBYT':_0x16efd9(0x102),'JVABA':_0x16efd9(0x125)};try{if(!_0x5e7462||!Array['isArray'](_0x5e7462)||_0x18df14[_0x16efd9(0x119)](_0x5e7462[_0x16efd9(0x106)],0x0))return null;if(_0x18df14['Tuyvd'](this['isTestOrchestrationEnabled'](),![]))return logger[_0x16efd9(0x12a)](_0x18df14[_0x16efd9(0x112)]),null;let _0x3ef7c6=null;const _0x1a89b1=this[_0x16efd9(0xd9)][_0x16efd9(0xcb)]();if(this[_0x16efd9(0xcc)]){const _0x2ef5cc=await this[_0x16efd9(0xcc)][_0x16efd9(0xcd)](_0x5e7462,_0x1a89b1);if(!_0x2ef5cc)return null;_0x3ef7c6=await this['testOrderingServerHandler'][_0x16efd9(0xe7)](_0x2ef5cc);}if(!_0x3ef7c6||!Array[_0x16efd9(0x100)](_0x3ef7c6)||_0x18df14['XXhcH'](_0x3ef7c6[_0x16efd9(0x106)],0x0))return null;const _0x2b5e3a=_0x18df14[_0x16efd9(0x10f)](parseInt,process[_0x16efd9(0x11a)][_0x16efd9(0xc4)]||'0'),_0x5ba323=_0x18df14[_0x16efd9(0xd6)](parseInt,process[_0x16efd9(0x11a)][_0x16efd9(0xf7)]||'1');return this[_0x16efd9(0xe0)](_0x18df14[_0x16efd9(0x10c)],_0x5e7462[_0x16efd9(0x106)]),this[_0x16efd9(0xe0)](_0x18df14[_0x16efd9(0xdf)],_0x2b5e3a),this[_0x16efd9(0xe0)](_0x18df14[_0x16efd9(0x10d)],_0x5ba323),this[_0x16efd9(0xe0)](_0x18df14[_0x16efd9(0xc8)],_0x3ef7c6[_0x16efd9(0x106)]),this[_0x16efd9(0xe0)](_0x18df14[_0x16efd9(0xca)],this[_0x16efd9(0xcc)]?this[_0x16efd9(0xcc)]['getSplitTestsAPICallCount']():0x0),_0x3ef7c6[_0x16efd9(0xe9)](_0x24d8f1=>sanitizedFilePath(_0x24d8f1));}catch(_0x3dbbe7){return logger[_0x16efd9(0x12a)](_0x16efd9(0x11e)+(_0x3dbbe7['stack']||_0x3dbbe7[_0x16efd9(0xec)]())),null;}}async[a123_0x37e5cb(0xdb)](_0x3e674a,_0x312569,_0x54016d){const _0xeb70d4=a123_0x37e5cb,_0x2a5acd={'mnKGh':function(_0x4fede4,_0x18e68f){return _0x4fede4(_0x18e68f);},'PIxOF':_0xeb70d4(0xd3),'lFSeo':'jest-util','qdyLn':function(_0xaeee45,_0x2eb2f6){return _0xaeee45(_0x2eb2f6);},'NepYq':_0xeb70d4(0xd7),'XZnqI':_0xeb70d4(0x10a),'HbKsc':_0xeb70d4(0xd4),'HurML':'**/?(*.)+(spec|test).[jt]s?(x)','ruJBK':function(_0x5c27d4,_0x451a69,_0x2402bc,_0x2cf906){return _0x5c27d4(_0x451a69,_0x2402bc,_0x2cf906);},'uBvWA':_0xeb70d4(0xe8),'LRcTF':_0xeb70d4(0x117),'RQXaX':_0xeb70d4(0xf0),'heUuP':_0xeb70d4(0x10b),'JtVWl':'utf-8'};try{const {getTestPathPatterns:_0x3a4477}=_0x2a5acd[_0xeb70d4(0x122)](require,_0x2a5acd['PIxOF']),{globsToMatcher:_0x4a1336}=_0x2a5acd[_0xeb70d4(0x122)](require,_0x2a5acd['lFSeo']),{findRelatedTests:_0xcfa0f5}=_0x2a5acd['qdyLn'](require,_0x2a5acd['NepYq']),_0x3c76bf=_0x2a5acd['qdyLn'](require,_0x2a5acd[_0xeb70d4(0x104)]),_0x1edd33=_0x3e674a[_0xeb70d4(0xf4)]||[_0x2a5acd[_0xeb70d4(0xea)],_0x2a5acd[_0xeb70d4(0xff)]],_0xbe7c02=_0x3e674a['testPathIgnorePatterns']||[],_0x300305=_0x2a5acd[_0xeb70d4(0xd5)](spawnSync,_0x2a5acd[_0xeb70d4(0xd8)],[_0x2a5acd[_0xeb70d4(0x128)],_0x2a5acd[_0xeb70d4(0x127)],_0x54016d,..._0x312569,_0x2a5acd['heUuP']],{'encoding':_0x2a5acd['JtVWl']});let _0x3d79f5=[];!_0x300305['error']&&(_0x3d79f5=_0x300305['stdout'][_0xeb70d4(0x116)]('\x0a')[_0xeb70d4(0x110)](Boolean));logger[_0xeb70d4(0x12a)](_0xeb70d4(0x11d)+JSON[_0xeb70d4(0xf6)](_0x3d79f5)+_0xeb70d4(0x114));const _0x14f9a7={};_0x14f9a7[_0xeb70d4(0xc6)]=!![],_0x14f9a7[_0xeb70d4(0x105)]=_0xbe7c02;const _0x2bae7a=_0x2a5acd[_0xeb70d4(0xd5)](micromatch,_0x3d79f5,_0x1edd33,_0x14f9a7)['map'](_0x55d09b=>path[_0xeb70d4(0xe2)](_0x3e674a['rootDir'],_0x55d09b));return logger['debug'](_0xeb70d4(0x129)+JSON[_0xeb70d4(0xf6)](_0x2bae7a)+'\x20files'),_0x2bae7a;}catch(_0x5ed5fc){return logger[_0xeb70d4(0x12a)](_0xeb70d4(0xfb)+_0x5ed5fc),[];}}}function a123_0x3e13(_0x17eb86,_0x37231d){const _0x40f6a5=a123_0x40f6();return a123_0x3e13=function(_0x3e132e,_0xcd6f92){_0x3e132e=_0x3e132e-0xc2;let _0x4c7ff2=_0x40f6a5[_0x3e132e];return _0x4c7ff2;},a123_0x3e13(_0x17eb86,_0x37231d);}function a123_0x40f6(){const _0x18038d=['jest','10818MeeGMu','tDkpX','env','QrtfB','Test\x20Reordering\x20is\x20unavailable\x20because\x20testObservability\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','Found\x20test\x20files:\x20','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','config','2139882mTQBPj','KEsDS','mnKGh','arzwQ','ZjGJG','splitTestsAPICallCount','exports','RQXaX','LRcTF','Filterted\x20to\x20test\x20files:\x20','debug','testObservability','2688gRBOMJ','15BYrdTr','BZpIt','./testOrderingServerHandler','7702352wdyZsA','BROWSERSTACK_NODE_INDEX','4CVUFRt','matchBase','orderingInstrumentationData','xHBYT','uploadedTestFilesCount','JVABA','getTestOrderingName','testOrderingServerHandler','splitTests','lOMRc','totalNodes','logTestOrderingChecks','106377XjAEBU','pcnUp','jest-config','**/__tests__/**/*.[jt]s?(x)','ruJBK','Ecbri','jest-runner','uBvWA','orchestrationUtils','DCDpi','findTestFiles','1055529WrqNoe','6691340zijZsk','../helper','GJGhr','addToOrderingInstrumentationData','WkaCw','relative','HDKeB','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','FuXWp','buildIdentifier','getOrderedTestFiles','npx','map','HbKsc','setTestOrderingApplied','toString','TNSEl','./orchestrationUtils','_initializeTestOrdering','--config','953836nGhOow','testOrderingApplied','uqCwP','testMatch','testOrderingEnabled','stringify','BROWSERSTACK_TOTAL_NODE_COUNT','buildName','info','isTestOrchestrationEnabled','Error\x20finding\x20test\x20files:\x20','nodeIndex','winstonLogger','jHvYl','HurML','isArray','projectName','downloadedTestFilesCount','Test\x20orchestration\x20without\x20test\x20ordering','XZnqI','ignore','length','isTestOrderingApplied','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','glob','--listTests','Fpplf','whGwU','_shouldLogTestOrderingChecks','JBGgT','filter','micromatch','DwAfl','updateBuildIdentifier','\x20files','BROWSERSTACK_BUILD_RUN_IDENTIFIER','split'];a123_0x40f6=function(){return _0x18038d;};return a123_0x40f6();}module[a123_0x37e5cb(0x126)]=TestOrchestrationHandler;
|
|
1
|
+
const a123_0x3f6163=a123_0x4104;function a123_0x14fa(){const _0x4c0768=['BROWSERSTACK_NODE_INDEX','isArray','length','106qTLEYm','\x20files','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','testOrderingApplied','kxHRY','Test\x20Reordering\x20is\x20unavailable\x20because\x20testObservability\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','yFsAx','sySVp','testMatch','jXdsd','ihpwR','setTestOrderingApplied','KIhtt','fwAiE','testPathIgnorePatterns','applied','bzyMg','sjQgh','Filterted\x20to\x20test\x20files:\x20','YhRac','isTestOrderingApplied','Error\x20finding\x20test\x20files:\x20','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','1659sAPlvG','mlVig','testOrderingEnabled','--config','matchBase','split','stringify','./orchestrationUtils','micromatch','876DqLbEH','nodeIndex','Bbttg','1199972Kbswew','relative','JsFQC','MhoiO','NezHP','npx','stdout','getTestOrderingName','buildIdentifier','vtNZH','glob','stack','5tsZmwy','addToOrderingInstrumentationData','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','totalNodes','./testOrderingServerHandler','Found\x20test\x20files:\x20','hhCEt','AGufl','toString','oBwTD','2208THTpbF','IEaCr','splitTests','info','qjKbK','exports','jest-config','DMHDC','debug','buildName','sFznq','UcrDU','OPjhJ','BpBJG','testOrderingServerHandler','updateBuildIdentifier','utf-8','config','uploadedTestFilesCount','xvBwW','getOrderedTestFiles','BROWSERSTACK_TOTAL_NODE_COUNT','getSplitTestsAPICallCount','ScCuv','_shouldLogTestOrderingChecks','110QXocIP','downloadedTestFilesCount','ryCaU','UfFml','map','80839MgIwKg','2248188iyGgkb','ignore','orderingInstrumentationData','fYwvC','env','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','error','--listTests','isTestOrchestrationEnabled','4136EEqNhs','393201BsNlJZ','logTestOrderingChecks','jest-runner','454750KPBJyA','jest-util','testObservability','1|3|4|0|2|5','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','orchestrationUtils'];a123_0x14fa=function(){return _0x4c0768;};return a123_0x14fa();}function a123_0x4104(_0x5bb257,_0x5a94f3){const _0x14fa6c=a123_0x14fa();return a123_0x4104=function(_0x410465,_0x2a8ea7){_0x410465=_0x410465-0x68;let _0x426f9f=_0x14fa6c[_0x410465];return _0x426f9f;},a123_0x4104(_0x5bb257,_0x5a94f3);}(function(_0x200f67,_0x1a8ef4){const _0x4c54cf=a123_0x4104,_0x6a832e=_0x200f67();while(!![]){try{const _0x328a9e=parseInt(_0x4c54cf(0x8c))/0x1+-parseInt(_0x4c54cf(0x95))/0x2*(-parseInt(_0x4c54cf(0xce))/0x3)+parseInt(_0x4c54cf(0xb8))/0x4*(parseInt(_0x4c54cf(0xc4))/0x5)+parseInt(_0x4c54cf(0x7f))/0x6+parseInt(_0x4c54cf(0xac))/0x7*(parseInt(_0x4c54cf(0x88))/0x8)+parseInt(_0x4c54cf(0x89))/0x9*(-parseInt(_0x4c54cf(0x79))/0xa)+parseInt(_0x4c54cf(0x7e))/0xb*(-parseInt(_0x4c54cf(0xb5))/0xc);if(_0x328a9e===_0x1a8ef4)break;else _0x6a832e['push'](_0x6a832e['shift']());}catch(_0x251c4b){_0x6a832e['push'](_0x6a832e['shift']());}}}(a123_0x14fa,0x42e02));const logger=require('../logger')['winstonLogger'],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require('../helper'),TestOrderingServerHandler=require(a123_0x3f6163(0xc8)),OrchestrationUtils=require(a123_0x3f6163(0xb3)),path=require('path'),{spawnSync}=require('child_process'),micromatch=require(a123_0x3f6163(0xb4)),fs=require('fs');class TestOrchestrationHandler{constructor(_0x20c986){const _0x4ed948=a123_0x3f6163,_0x564e18={};_0x564e18[_0x4ed948(0x82)]=_0x4ed948(0x8f);const _0x5b1b11=_0x564e18,_0x2a2814=_0x5b1b11[_0x4ed948(0x82)][_0x4ed948(0xb1)]('|');let _0x46bf0c=0x0;while(!![]){switch(_0x2a2814[_0x46bf0c++]){case'0':this[_0x4ed948(0x6e)]=null;continue;case'1':this[_0x4ed948(0x71)]=_0x20c986;continue;case'2':this[_0x4ed948(0x91)]=new OrchestrationUtils(_0x20c986);continue;case'3':this[_0x4ed948(0x81)]={};continue;case'4':this[_0x4ed948(0x98)]=![];continue;case'5':this['_initializeTestOrdering']();continue;}break;}}[a123_0x3f6163(0x87)](){const _0x22cf93=a123_0x3f6163,_0x3a5592={'Bbttg':function(_0x1aa07a,_0x31583c){return _0x1aa07a(_0x31583c);},'vtNZH':function(_0x1e4bfd,_0x1aa6e8){return _0x1e4bfd(_0x1aa6e8);},'Kcrqo':function(_0x4ac9af,_0x5c8c1a){return _0x4ac9af&&_0x5c8c1a;}},_0x4f393c=_0x3a5592[_0x22cf93(0xb7)](isNotUndefined,this[_0x22cf93(0x71)])&&(_0x3a5592[_0x22cf93(0xb7)](isUndefined,this[_0x22cf93(0x71)]['testObservability'])||_0x3a5592[_0x22cf93(0xb7)](isTrueString,this[_0x22cf93(0x71)][_0x22cf93(0x8e)])),_0x33c262=this['orchestrationUtils'][_0x22cf93(0xae)](),_0x51a968=_0x3a5592[_0x22cf93(0xb7)](isNotUndefined,this['config'])&&_0x3a5592['Bbttg'](isNotUndefined,this['config']['projectName']),_0x2dbe88=_0x3a5592[_0x22cf93(0xb7)](isNotUndefined,this[_0x22cf93(0x71)])&&_0x3a5592[_0x22cf93(0xc1)](isNotUndefined,this[_0x22cf93(0x71)]['buildName']);return _0x3a5592['Kcrqo'](_0x4f393c,_0x33c262)&&_0x51a968&&_0x2dbe88;}['_initializeTestOrdering'](){const _0x4ebb5e=a123_0x3f6163,_0x454fe={};_0x454fe[_0x4ebb5e(0x6c)]=_0x4ebb5e(0x90),_0x454fe[_0x4ebb5e(0x6a)]='Test\x20orchestration\x20without\x20test\x20ordering';const _0x2646a2=_0x454fe;this[_0x4ebb5e(0x87)]()?(this[_0x4ebb5e(0x6e)]=new TestOrderingServerHandler(this[_0x4ebb5e(0x71)]),logger[_0x4ebb5e(0xd1)](_0x2646a2[_0x4ebb5e(0x6c)])):(logger[_0x4ebb5e(0x68)](_0x2646a2[_0x4ebb5e(0x6a)]),this[_0x4ebb5e(0x8a)]());}[a123_0x3f6163(0x8a)](){const _0x3a62e9=a123_0x3f6163,_0xa27770={'ScCuv':function(_0x3c9868,_0x589dc6){return _0x3c9868(_0x589dc6);},'BRTjg':function(_0x506a48,_0x4ff9a6){return _0x506a48(_0x4ff9a6);},'IWHoP':_0x3a62e9(0xab),'mlVig':function(_0xdc1e4c,_0x13e057){return _0xdc1e4c(_0x13e057);},'fwAiE':function(_0x5c31c0,_0x381b6f){return _0x5c31c0(_0x381b6f);},'jXdsd':_0x3a62e9(0x9a)};if(!this[_0x3a62e9(0x78)]())return;(!_0xa27770['ScCuv'](isNotUndefined,this[_0x3a62e9(0x71)])||!_0xa27770[_0x3a62e9(0x77)](isNotUndefined,this[_0x3a62e9(0x71)][_0x3a62e9(0x69)])||!_0xa27770['BRTjg'](isNotUndefined,this[_0x3a62e9(0x71)]['projectName']))&&logger[_0x3a62e9(0xd1)](_0xa27770['IWHoP']),_0xa27770[_0x3a62e9(0xad)](isNotUndefined,this['config'])&&_0xa27770[_0x3a62e9(0x77)](isNotUndefined,this[_0x3a62e9(0x71)][_0x3a62e9(0x8e)])&&!_0xa27770[_0x3a62e9(0xa2)](isTrueString,this['config']['testObservability'])&&logger[_0x3a62e9(0xd1)](_0xa27770[_0x3a62e9(0x9e)]);}[a123_0x3f6163(0x78)](){const _0x368e2b=a123_0x3f6163;return!this[_0x368e2b(0x87)]()&&this['orchestrationUtils'][_0x368e2b(0xae)]();}[a123_0x3f6163(0xa9)](){const _0x2feefd=a123_0x3f6163;return this[_0x2feefd(0x98)];}[a123_0x3f6163(0xa0)](_0x28e66c){const _0x4693f8=a123_0x3f6163,_0x4070bf={};_0x4070bf[_0x4693f8(0x7b)]=_0x4693f8(0xa4);const _0xa547f7=_0x4070bf;this['testOrderingApplied']=_0x28e66c,this['addToOrderingInstrumentationData'](_0xa547f7['ryCaU'],_0x28e66c);}[a123_0x3f6163(0xc5)](_0x28b7f7,_0x43c863){const _0x4e3885=a123_0x3f6163;this[_0x4e3885(0x81)][_0x28b7f7]=_0x43c863;}['getOrderingInstrumentationData'](){const _0x330faa=a123_0x3f6163;return this[_0x330faa(0x81)];}[a123_0x3f6163(0x6f)](){const _0x9f0979=a123_0x3f6163,_0x3a6835={'wofBK':function(_0xc251be,_0x1bb875){return _0xc251be(_0x1bb875);},'yFsAx':function(_0x1d7516,_0xcc5531){return _0x1d7516>_0xcc5531;}},_0x2e10a3=_0x3a6835['wofBK'](parseInt,process[_0x9f0979(0x83)][_0x9f0979(0x75)]||'1'),_0x2bcc2d=process[_0x9f0979(0x83)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];_0x2bcc2d&&_0x3a6835[_0x9f0979(0x9b)](_0x2e10a3,0x1)&&(logger[_0x9f0979(0x68)](_0x9f0979(0x97)+_0x2bcc2d),this[_0x9f0979(0x71)][_0x9f0979(0xc0)]=_0x2bcc2d);}async['reorderTestFiles'](_0x113b2f){const _0x2dc743=a123_0x3f6163,_0x2aa103={'qjKbK':function(_0x589ed8,_0x34a09f){return _0x589ed8===_0x34a09f;},'sySVp':_0x2dc743(0xc6),'kxHRY':function(_0x11b535,_0x230a10){return _0x11b535(_0x230a10);},'xvBwW':_0x2dc743(0x72),'UcrDU':_0x2dc743(0xb6),'IEaCr':_0x2dc743(0xc7),'BpBJG':_0x2dc743(0x7a),'DMHDC':'splitTestsAPICallCount'};try{if(!_0x113b2f||!Array[_0x2dc743(0x93)](_0x113b2f)||_0x2aa103[_0x2dc743(0xd2)](_0x113b2f[_0x2dc743(0x94)],0x0))return null;if(_0x2aa103[_0x2dc743(0xd2)](this[_0x2dc743(0x87)](),![]))return logger[_0x2dc743(0x68)](_0x2aa103[_0x2dc743(0x9c)]),null;let _0x4d32d7=null;const _0x572a47=this[_0x2dc743(0x91)][_0x2dc743(0xbf)]();if(this['testOrderingServerHandler']){const _0x5c941d=await this['testOrderingServerHandler'][_0x2dc743(0xd0)](_0x113b2f,_0x572a47);if(!_0x5c941d)return null;_0x4d32d7=await this[_0x2dc743(0x6e)][_0x2dc743(0x74)](_0x5c941d);}if(!_0x4d32d7||!Array[_0x2dc743(0x93)](_0x4d32d7)||_0x2aa103[_0x2dc743(0xd2)](_0x4d32d7[_0x2dc743(0x94)],0x0))return null;const _0x58bf4c=_0x2aa103[_0x2dc743(0x99)](parseInt,process[_0x2dc743(0x83)][_0x2dc743(0x92)]||'0'),_0x1e570f=_0x2aa103[_0x2dc743(0x99)](parseInt,process['env']['BROWSERSTACK_TOTAL_NODE_COUNT']||'1');return this[_0x2dc743(0xc5)](_0x2aa103[_0x2dc743(0x73)],_0x113b2f[_0x2dc743(0x94)]),this[_0x2dc743(0xc5)](_0x2aa103[_0x2dc743(0x6b)],_0x58bf4c),this[_0x2dc743(0xc5)](_0x2aa103[_0x2dc743(0xcf)],_0x1e570f),this['addToOrderingInstrumentationData'](_0x2aa103[_0x2dc743(0x6d)],_0x4d32d7[_0x2dc743(0x94)]),this[_0x2dc743(0xc5)](_0x2aa103[_0x2dc743(0xd5)],this[_0x2dc743(0x6e)]?this[_0x2dc743(0x6e)][_0x2dc743(0x76)]():0x0),_0x4d32d7['map'](_0x5f3c88=>sanitizedFilePath(_0x5f3c88));}catch(_0x418c3c){return logger[_0x2dc743(0x68)](_0x2dc743(0x84)+(_0x418c3c[_0x2dc743(0xc3)]||_0x418c3c[_0x2dc743(0xcc)]())),null;}}async['findTestFiles'](_0x12a8d4,_0x65c940,_0x2a663f){const _0x53d8b3=a123_0x3f6163,_0x4b0caa={'oBwTD':function(_0x17b3c5,_0x1fa02f){return _0x17b3c5(_0x1fa02f);},'YhRac':_0x53d8b3(0xd4),'AGufl':function(_0x4f9d0f,_0x5ee1af){return _0x4f9d0f(_0x5ee1af);},'KIhtt':_0x53d8b3(0x8d),'impHf':_0x53d8b3(0x8b),'UfFml':function(_0x2287c5,_0x4d104b){return _0x2287c5(_0x4d104b);},'MhoiO':_0x53d8b3(0xc2),'bzyMg':'**/__tests__/**/*.[jt]s?(x)','UCaAh':'**/?(*.)+(spec|test).[jt]s?(x)','NezHP':function(_0x1827dd,_0x81adaf,_0x56cfab,_0x4f2f84){return _0x1827dd(_0x81adaf,_0x56cfab,_0x4f2f84);},'SfLlq':_0x53d8b3(0xbd),'JsFQC':'jest','hhCEt':_0x53d8b3(0xaf),'ihpwR':_0x53d8b3(0x86),'sjQgh':_0x53d8b3(0x70),'OzydH':function(_0x359476,_0x25fb66,_0x4fd403,_0x346fea){return _0x359476(_0x25fb66,_0x4fd403,_0x346fea);}};try{const {getTestPathPatterns:_0x48bd6a}=_0x4b0caa[_0x53d8b3(0xcd)](require,_0x4b0caa[_0x53d8b3(0xa8)]),{globsToMatcher:_0x594f99}=_0x4b0caa[_0x53d8b3(0xcb)](require,_0x4b0caa[_0x53d8b3(0xa1)]),{findRelatedTests:_0x57c461}=_0x4b0caa[_0x53d8b3(0xcd)](require,_0x4b0caa['impHf']),_0x68e2a4=_0x4b0caa[_0x53d8b3(0x7c)](require,_0x4b0caa[_0x53d8b3(0xbb)]),_0x2ac453=_0x12a8d4[_0x53d8b3(0x9d)]||[_0x4b0caa[_0x53d8b3(0xa5)],_0x4b0caa['UCaAh']],_0x111d9b=_0x12a8d4[_0x53d8b3(0xa3)]||[],_0xb78a44=_0x4b0caa[_0x53d8b3(0xbc)](spawnSync,_0x4b0caa['SfLlq'],[_0x4b0caa[_0x53d8b3(0xba)],_0x4b0caa[_0x53d8b3(0xca)],_0x2a663f,..._0x65c940,_0x4b0caa[_0x53d8b3(0x9f)]],{'encoding':_0x4b0caa[_0x53d8b3(0xa6)]});let _0x45ff71=[];!_0xb78a44[_0x53d8b3(0x85)]&&(_0x45ff71=_0xb78a44[_0x53d8b3(0xbe)][_0x53d8b3(0xb1)]('\x0a')['filter'](Boolean));logger['debug'](_0x53d8b3(0xc9)+JSON[_0x53d8b3(0xb2)](_0x45ff71)+'\x20files');const _0x5f1249={};_0x5f1249[_0x53d8b3(0xb0)]=!![],_0x5f1249[_0x53d8b3(0x80)]=_0x111d9b;const _0x1df2b3=_0x4b0caa['OzydH'](micromatch,_0x45ff71,_0x2ac453,_0x5f1249)[_0x53d8b3(0x7d)](_0x22eb04=>path[_0x53d8b3(0xb9)](_0x12a8d4['rootDir'],_0x22eb04));return logger[_0x53d8b3(0x68)](_0x53d8b3(0xa7)+JSON[_0x53d8b3(0xb2)](_0x1df2b3)+_0x53d8b3(0x96)),_0x1df2b3;}catch(_0x15ed5f){return logger[_0x53d8b3(0x68)](_0x53d8b3(0xaa)+_0x15ed5f),[];}}}module[a123_0x3f6163(0xd3)]=TestOrchestrationHandler;
|