browserstack-node-sdk 1.41.0 → 1.41.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/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_0x2883b8=a117_0x11f0;(function(_0x5c15a3,_0x2641f8){const _0x106bee=a117_0x11f0,_0x2eb67f=_0x5c15a3();while(!![]){try{const _0x3cf19c=parseInt(_0x106bee(0x1e0))/0x1*(parseInt(_0x106bee(0x1e6))/0x2)+-parseInt(_0x106bee(0x1f7))/0x3+-parseInt(_0x106bee(0x235))/0x4*(parseInt(_0x106bee(0x215))/0x5)+-parseInt(_0x106bee(0x1c3))/0x6*(parseInt(_0x106bee(0x292))/0x7)+-parseInt(_0x106bee(0x28e))/0x8*(parseInt(_0x106bee(0x231))/0x9)+-parseInt(_0x106bee(0x276))/0xa*(parseInt(_0x106bee(0x269))/0xb)+parseInt(_0x106bee(0x204))/0xc*(parseInt(_0x106bee(0x28c))/0xd);if(_0x3cf19c===_0x2641f8)break;else _0x2eb67f['push'](_0x2eb67f['shift']());}catch(_0x2b59de){_0x2eb67f['push'](_0x2eb67f['shift']());}}}(a117_0xb7a9,0x7da70));const fs=require('fs'),path=require(a117_0x2883b8(0x28a)),gitLastCommit=require(a117_0x2883b8(0x1f2)),getRepoInfo=require('git-repo-info'),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a117_0x2883b8(0x214)),http=require(a117_0x2883b8(0x247)),https=require(a117_0x2883b8(0x240)),child_process=require('child_process'),getos=require(a117_0x2883b8(0x1be)),os=require('os'),logger=require(a117_0x2883b8(0x20c))[a117_0x2883b8(0x250)],bsSetupHelper=require(a117_0x2883b8(0x274)),requestSpy=require(a117_0x2883b8(0x20e)),constants=require(a117_0x2883b8(0x175)),logPatcher=require(a117_0x2883b8(0x22d)),util=require(a117_0x2883b8(0x1c5)),{fileLogger}=require(a117_0x2883b8(0x20c)),PerformanceTester=require(a117_0x2883b8(0x23a)),{isFunction}=require(a117_0x2883b8(0x29e)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a117_0x2883b8(0x273)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a117_0x2883b8(0x1e1));exports[a117_0x2883b8(0x239)]=_0x593042=>{const _0x291879=a117_0x2883b8;fileLogger['silly']('['+new Date()['toISOString']()+_0x291879(0x1de)+constants['TEST_REPORTING_ANALYTICS']+_0x291879(0x25d)+_0x593042);},exports['debug']=_0xfe32f1=>{const _0x114be6=a117_0x2883b8,_0x239345={};_0x239345[_0x114be6(0x223)]=function(_0x554f95,_0x15302e){return _0x554f95===_0x15302e;},_0x239345[_0x114be6(0x1c1)]='true',_0x239345[_0x114be6(0x1cf)]=function(_0x433378,_0x3d7a9d){return _0x433378===_0x3d7a9d;},_0x239345[_0x114be6(0x241)]=function(_0xc383fe,_0x32c9a0){return _0xc383fe===_0x32c9a0;};const _0x3dff65=_0x239345;fileLogger[_0x114be6(0x1e5)]('['+new Date()[_0x114be6(0x270)]()+_0x114be6(0x1de)+constants[_0x114be6(0x1e2)]+'\x20]\x20'+_0xfe32f1),(_0x3dff65['KqxQW'](process[_0x114be6(0x17f)][_0x114be6(0x188)],_0x3dff65[_0x114be6(0x1c1)])||_0x3dff65[_0x114be6(0x1cf)](process[_0x114be6(0x17f)][_0x114be6(0x188)],'1')||_0x3dff65['KqxQW'](process['env']['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x3dff65[_0x114be6(0x1c1)])||_0x3dff65[_0x114be6(0x241)](process[_0x114be6(0x17f)][_0x114be6(0x197)],'1'))&&consoleHolder[_0x114be6(0x297)]('\x0a['+new Date()[_0x114be6(0x270)]()+_0x114be6(0x1de)+constants[_0x114be6(0x1e2)]+_0x114be6(0x25d)+_0xfe32f1+'\x0a');};const a117_0x597432={};a117_0x597432[a117_0x2883b8(0x27d)]=!![],a117_0x597432[a117_0x2883b8(0x1bf)]=0xea60,a117_0x597432['maxSockets']=0x2,a117_0x597432['maxTotalSockets']=0x2;const httpKeepAliveAgent=new http[(a117_0x2883b8(0x1d4))](a117_0x597432),a117_0x19e14a={};a117_0x19e14a[a117_0x2883b8(0x27d)]=!![],a117_0x19e14a[a117_0x2883b8(0x1bf)]=0xea60,a117_0x19e14a[a117_0x2883b8(0x195)]=0x2,a117_0x19e14a[a117_0x2883b8(0x208)]=0x2;const httpsKeepAliveAgent=new https[(a117_0x2883b8(0x1d4))](a117_0x19e14a),a117_0x27e996={};a117_0x27e996[a117_0x2883b8(0x27d)]=!![],a117_0x27e996[a117_0x2883b8(0x1bf)]=0xea60,a117_0x27e996[a117_0x2883b8(0x195)]=0x2,a117_0x27e996[a117_0x2883b8(0x208)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a117_0x2883b8(0x1d4))](a117_0x27e996),a117_0x2900cf={};a117_0x2900cf[a117_0x2883b8(0x27d)]=!![],a117_0x2900cf[a117_0x2883b8(0x1bf)]=0xea60,a117_0x2900cf[a117_0x2883b8(0x195)]=0x2,a117_0x2900cf[a117_0x2883b8(0x208)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a117_0x2883b8(0x1d4))](a117_0x2900cf);exports['shouldReRunObservabilityTests']=()=>{const _0x42771e=a117_0x2883b8,_0x4d2a55={};_0x4d2a55[_0x42771e(0x1f8)]=function(_0x4ef420,_0x2f9071){return _0x4ef420!==_0x2f9071;},_0x4d2a55[_0x42771e(0x18a)]=_0x42771e(0x232);const _0x3884c0=_0x4d2a55;return process[_0x42771e(0x17f)][_0x42771e(0x218)]&&_0x3884c0[_0x42771e(0x1f8)](process[_0x42771e(0x17f)][_0x42771e(0x218)],_0x3884c0[_0x42771e(0x18a)])?!![]:![];},exports[a117_0x2883b8(0x1dc)]=()=>{const _0x182a60=a117_0x2883b8,_0x542e8a={};_0x542e8a[_0x182a60(0x1ca)]=function(_0x13daeb,_0x5d52ed){return _0x13daeb===_0x5d52ed;},_0x542e8a[_0x182a60(0x200)]=_0x182a60(0x1e8),_0x542e8a[_0x182a60(0x181)]=function(_0x5aa2a7,_0x3d6398){return _0x5aa2a7===_0x3d6398;};const _0x100721=_0x542e8a;let _0x5ba22a=!![];return process[_0x182a60(0x17f)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x5ba22a=_0x100721[_0x182a60(0x1ca)](process['env']['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0x100721[_0x182a60(0x200)])),process['env'][_0x182a60(0x265)]&&(_0x5ba22a=_0x100721[_0x182a60(0x181)](process[_0x182a60(0x17f)][_0x182a60(0x265)],_0x100721[_0x182a60(0x200)])),process[_0x182a60(0x17f)][_0x182a60(0x194)]&&(_0x5ba22a=_0x100721['iAkrY'](process[_0x182a60(0x17f)]['BROWSERSTACK_TEST_REPORTING'],_0x100721[_0x182a60(0x200)])),_0x5ba22a;},exports[a117_0x2883b8(0x216)]=_0x112c9f=>{const _0x2e2247=a117_0x2883b8;if(bsSetupHelper[_0x2e2247(0x186)](_0x112c9f))return undefined;try{return _0x112c9f[_0x2e2247(0x173)]()[_0x2e2247(0x18e)](',');}catch(_0x4da204){return undefined;}},exports[a117_0x2883b8(0x282)]=()=>{const _0x5a5b19=a117_0x2883b8,_0x2eec1d={'BSCkQ':function(_0x329c1,_0x5b7b20){return _0x329c1(_0x5b7b20);},'guIAZ':_0x5a5b19(0x222),'cpMrG':function(_0x11aa86,_0x43cd9f){return _0x11aa86!==_0x43cd9f;},'rLrWR':_0x5a5b19(0x232),'IwnJz':_0x5a5b19(0x26d)};return PerformanceTester[_0x5a5b19(0x17a)](PerformanceO11yEvents['PRINT_BUILDLINK'],async()=>{const _0x31530e=_0x5a5b19;try{const _0x325194=_0x2eec1d[_0x31530e(0x280)](require,_0x2eec1d['guIAZ']);if(_0x325194[_0x31530e(0x268)]){logger[_0x31530e(0x227)](_0x31530e(0x18d)+O11Y_URL+_0x31530e(0x1d1)+_0x325194[_0x31530e(0x268)]+_0x31530e(0x21b));return;}process[_0x31530e(0x17f)][_0x31530e(0x26a)]&&_0x2eec1d[_0x31530e(0x233)](process[_0x31530e(0x17f)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x2eec1d[_0x31530e(0x296)])&&_0x2eec1d[_0x31530e(0x233)](process[_0x31530e(0x17f)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x2eec1d[_0x31530e(0x1c8)])&&logger[_0x31530e(0x227)](_0x31530e(0x18d)+constants[_0x31530e(0x243)]+_0x31530e(0x1d1)+process[_0x31530e(0x17f)]['BS_TESTOPS_BUILD_HASHED_ID']+_0x31530e(0x21b));}catch(_0x4ae681){logger['error'](util[_0x31530e(0x237)](_0x31530e(0x1f0)+constants['TEST_REPORTING_ANALYTICS']+_0x31530e(0x22f),new Date()[_0x31530e(0x270)](),_0x4ae681[_0x31530e(0x1bc)]||_0x4ae681[_0x31530e(0x22c)]||_0x4ae681));}})();},exports['getFailureType']=_0x3036c6=>{const _0x4a3bef=a117_0x2883b8,_0x3bce73={};_0x3bce73[_0x4a3bef(0x180)]=_0x4a3bef(0x19e),_0x3bce73['zrtyf']='UnhandledError';const _0x295001=_0x3bce73;if(!_0x3036c6)return null;return _0x3036c6[_0x4a3bef(0x226)]()['match'](/AssertionError/)?_0x295001[_0x4a3bef(0x180)]:_0x295001[_0x4a3bef(0x178)];},exports[a117_0x2883b8(0x210)]=_0x5a7e18=>{const _0x5ce7ea=a117_0x2883b8,_0x4e09f3={};_0x4e09f3['emqwI']=_0x5ce7ea(0x20b),_0x4e09f3[_0x5ce7ea(0x217)]=_0x5ce7ea(0x1b6),_0x4e09f3['dHPGo']=_0x5ce7ea(0x236),_0x4e09f3[_0x5ce7ea(0x244)]=_0x5ce7ea(0x1f6),_0x4e09f3[_0x5ce7ea(0x288)]=_0x5ce7ea(0x1b7);const _0x3e375b=_0x4e09f3;let _0x5452ce=null;switch(_0x5a7e18){case FRAMEWORKS[_0x5ce7ea(0x1c0)]:_0x5452ce=bsSetupHelper['getPackageVersion'](_0x3e375b['emqwI']);break;case FRAMEWORKS[_0x5ce7ea(0x1a9)]:_0x5452ce=bsSetupHelper[_0x5ce7ea(0x28b)](_0x3e375b[_0x5ce7ea(0x217)]);break;case FRAMEWORKS['CODECEPT']:case FRAMEWORKS[_0x5ce7ea(0x185)]:_0x5452ce=bsSetupHelper[_0x5ce7ea(0x28b)](_0x3e375b[_0x5ce7ea(0x1f4)]);break;case FRAMEWORKS[_0x5ce7ea(0x1a7)]:_0x5452ce=bsSetupHelper[_0x5ce7ea(0x28b)](_0x3e375b[_0x5ce7ea(0x244)]);break;case FRAMEWORKS[_0x5ce7ea(0x26f)]:_0x5452ce=bsSetupHelper['getPackageVersion'](_0x3e375b[_0x5ce7ea(0x288)]);break;default:break;}return _0x5452ce;},exports[a117_0x2883b8(0x1bb)]=_0x3a9709=>{const _0x43017e=a117_0x2883b8;let _0x3d6fd5=null;switch(_0x3a9709){case FRAMEWORKS[_0x43017e(0x1a9)]:_0x3d6fd5=process[_0x43017e(0x17f)][_0x43017e(0x202)];break;}if(!_0x3d6fd5)return;return bsSetupHelper['readConfig'](_0x3d6fd5,![]);},exports[a117_0x2883b8(0x187)]=_0x5d2987=>{const _0x166234=a117_0x2883b8;return{'username':bsSetupHelper['getUserName'](_0x5d2987),'accessKey':bsSetupHelper[_0x166234(0x225)](_0x5d2987)};},exports[a117_0x2883b8(0x1d5)]=(_0x41d935,_0x5956a3)=>{const _0x44e72c=a117_0x2883b8,_0x2dcdcc={};_0x2dcdcc[_0x44e72c(0x298)]=_0x44e72c(0x267),_0x2dcdcc['qgyxi']=_0x44e72c(0x1df),_0x2dcdcc['uyfeY']=_0x44e72c(0x1a4);const _0xd19ea0=_0x2dcdcc,_0x4b4747=_0xd19ea0[_0x44e72c(0x298)]['split']('|');let _0x393e7c=0x0;while(!![]){switch(_0x4b4747[_0x393e7c++]){case'0':if(!_0x41d935[_0x44e72c(0x271)]||!Array[_0x44e72c(0x25a)](_0x41d935[_0x44e72c(0x271)]))return;continue;case'1':if(!_0x41d935[_0x44e72c(0x271)][0x0]||!_0x41d935['body'][0x0]['logs']||!_0x41d935[_0x44e72c(0x271)][0x0][_0x44e72c(0x17b)][_0x44e72c(0x19d)])return;continue;case'2':_0x41d935[_0x44e72c(0x259)]={'data':_0x41d935[_0x44e72c(0x271)][0x0]['logs'][0x0][_0x44e72c(0x299)],'test_run_uuid':_0x41d935['body'][0x0][_0x44e72c(0x17b)][0x0][_0x44e72c(0x257)],'event_type':_0xd19ea0['qgyxi'],'kind':_0xd19ea0[_0x44e72c(0x28f)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x44e72c(0x270)](),'fileName':_0x41d935['body'][0x0]['logs'][0x0][_0x44e72c(0x24d)]};continue;case'3':delete _0x5956a3[_0x44e72c(0x1f3)];continue;case'4':delete _0x41d935['json'];continue;case'5':delete _0x41d935[_0x44e72c(0x271)];continue;}break;}},exports[a117_0x2883b8(0x177)]=async(_0xf6137e,_0x10e18d,_0xfc39be,_0x5b25c9,_0x1383f6=!![])=>{const _0x595fff=a117_0x2883b8,_0x4a2f8f={};_0x4a2f8f[_0x595fff(0x23b)]=function(_0x4e2df9,_0x101439){return _0x4e2df9===_0x101439;},_0x4a2f8f[_0x595fff(0x193)]='Content-Type',_0x4a2f8f[_0x595fff(0x196)]=_0x595fff(0x23d),_0x4a2f8f[_0x595fff(0x1fe)]=_0x595fff(0x240),_0x4a2f8f[_0x595fff(0x1fa)]=function(_0x15240b,_0x4539ea){return _0x15240b===_0x4539ea;},_0x4a2f8f[_0x595fff(0x27b)]=function(_0x299ced,_0x52f903){return _0x299ced!==_0x52f903;},_0x4a2f8f[_0x595fff(0x20f)]=_0x595fff(0x1ce),_0x4a2f8f[_0x595fff(0x1a2)]=_0x595fff(0x190);const _0x5a15fa=_0x4a2f8f,_0x373cdf={..._0x5b25c9,...{'method':_0xf6137e,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x10e18d,'body':_0xfc39be,'json':_0x5a15fa['oxkFM'](_0x5b25c9['headers'][_0x5a15fa[_0x595fff(0x193)]],_0x5a15fa[_0x595fff(0x196)]),'agent':API_URL['includes'](_0x5a15fa[_0x595fff(0x1fe)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x5a15fa[_0x595fff(0x1fa)](_0x10e18d,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x373cdf[_0x595fff(0x25f)]=API_URL['includes'](_0x5a15fa[_0x595fff(0x1fe)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x595fff(0x1d5)](_0x373cdf,_0x5b25c9),logger['debug'](_0x595fff(0x229)+_0x373cdf[_0x595fff(0x27f)]));try{const {statusCode:_0x2092c1,body:_0x800385}=await bsSetupHelper[_0x595fff(0x1c2)](_0xf6137e,_0x10e18d,_0x373cdf,_0x5b25c9,_0x373cdf[_0x595fff(0x27f)]);if(_0x5a15fa['jTdjp'](_0x2092c1,0xc8))return _0x800385?_0x800385:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x2092c1;let _0x5270ae=_0x800385;if(_0x1383f6)try{_0x5a15fa['jTdjp'](typeof _0x800385,_0x5a15fa['oCdHh'])&&(_0x5270ae=JSON[_0x595fff(0x29c)](_0x800385));}catch(_0x5420c4){logger['error'](_0x5a15fa[_0x595fff(0x1a2)],_0x800385,util[_0x595fff(0x237)](_0x5420c4));}const _0x49af99={};return _0x49af99['data']=_0x5270ae,_0x49af99;}catch(_0x105f69){logger[_0x595fff(0x1c7)]('Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20'+util['format'](_0x105f69));throw _0x105f69;}},exports[a117_0x2883b8(0x1c2)]=(_0x40b404,_0x280a2a,_0xd26741,_0x467d90,_0x3fbdde=!![])=>{const _0x4399bf=a117_0x2883b8,_0x34a404={'aDlou':function(_0x244571,_0x599d43){return _0x244571!==_0x599d43;},'AoaII':function(_0x4a120c,_0xd6a9a9){return _0x4a120c(_0xd6a9a9);},'HmZSw':_0x4399bf(0x1ce),'JSNyo':_0x4399bf(0x1c6),'SNWSb':function(_0xac07cd,_0x289768){return _0xac07cd===_0x289768;},'IACnE':'Content-Type','gvUNJ':_0x4399bf(0x23d),'EohIA':_0x4399bf(0x240)};return new Promise((_0x1755f3,_0x3c822e)=>{const _0x3c148a=_0x4399bf,_0xaf8ce3={'NaoTz':function(_0x4b80fe,_0x52007c){const _0x3ee6e2=a117_0x11f0;return _0x34a404[_0x3ee6e2(0x18f)](_0x4b80fe,_0x52007c);},'JuelG':function(_0x48c4d2,_0x15cd6e){const _0x1069c0=a117_0x11f0;return _0x34a404[_0x1069c0(0x21d)](_0x48c4d2,_0x15cd6e);},'eOXsi':_0x34a404[_0x3c148a(0x22b)],'bjoKB':function(_0x29896a,_0x270c1d){const _0x50ddd8=_0x3c148a;return _0x34a404[_0x50ddd8(0x21d)](_0x29896a,_0x270c1d);},'MooZK':_0x34a404[_0x3c148a(0x253)]},_0x157d2a={..._0x467d90,...{'method':_0x40b404,'url':API_URL+'/'+_0x280a2a,'body':_0xd26741,'json':_0x34a404[_0x3c148a(0x252)](_0x467d90[_0x3c148a(0x1f3)][_0x34a404[_0x3c148a(0x212)]],_0x34a404[_0x3c148a(0x264)]),'agent':API_URL[_0x3c148a(0x248)](_0x34a404[_0x3c148a(0x27a)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x34a404[_0x3c148a(0x252)](_0x280a2a,SCREENSHOT_ENDPOINT)&&(_0x157d2a[_0x3c148a(0x25f)]=API_URL['includes'](_0x34a404[_0x3c148a(0x27a)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x3c148a(0x1c2)](_0x40b404,_0x280a2a,_0x157d2a,_0x467d90,API_URL)[_0x3c148a(0x279)](({statusCode:_0x4c5415,body:_0x1b4f0d})=>{const _0x36cb57=_0x3c148a;if(_0xaf8ce3[_0x36cb57(0x1ed)](_0x4c5415,0xc8))_0xaf8ce3[_0x36cb57(0x1f5)](_0x3c822e,_0x1b4f0d?_0x1b4f0d:_0x36cb57(0x24c)+_0x4c5415);else{if(_0x3fbdde)try{_0xaf8ce3[_0x36cb57(0x1ed)](typeof _0x1b4f0d,_0xaf8ce3[_0x36cb57(0x1d2)])&&(_0x1b4f0d=JSON[_0x36cb57(0x29c)](_0x1b4f0d));}catch(_0xc193cb){_0xaf8ce3['bjoKB'](_0x3c822e,_0xaf8ce3[_0x36cb57(0x1d7)]);return;}const _0x440118={};_0x440118['data']=_0x1b4f0d,_0xaf8ce3[_0x36cb57(0x242)](_0x1755f3,_0x440118);}})[_0x3c148a(0x182)](_0x94050a=>{const _0x350449=_0x3c148a;_0x94050a&&_0xaf8ce3[_0x350449(0x242)](_0x3c822e,_0x94050a);});});},exports[a117_0x2883b8(0x19a)]=_0x5b852e=>{const _0x290fc4=a117_0x2883b8;if(process[_0x290fc4(0x17f)]['TEST_REPORTING_BUILD_TAG'])return process[_0x290fc4(0x17f)]['TEST_REPORTING_BUILD_TAG'][_0x290fc4(0x18e)](',');if(process['env']['TEST_OBSERVABILITY_BUILD_TAG'])return process[_0x290fc4(0x17f)][_0x290fc4(0x1fd)]['split'](',');if(_0x5b852e[_0x290fc4(0x1ff)])return _0x5b852e[_0x290fc4(0x1ff)];return[];},exports[a117_0x2883b8(0x203)]=(_0x59ec05=!![])=>{const _0x2c3bab=a117_0x2883b8,_0x3332a5={};_0x3332a5[_0x2c3bab(0x285)]=_0x2c3bab(0x23d),_0x3332a5['igvQi']=_0x2c3bab(0x1e8),_0x3332a5[_0x2c3bab(0x23e)]=_0x2c3bab(0x199);const _0x4d8ba3=_0x3332a5,_0x46a4ea={};_0x46a4ea[_0x2c3bab(0x20d)]=_0x4d8ba3['dSUog'],_0x46a4ea['X-BSTACK-TESTOPS']=_0x4d8ba3[_0x2c3bab(0x26c)];const _0x2366aa=_0x46a4ea;return _0x59ec05&&process['env']['BROWSERSTACK_TESTHUB_JWT']&&(_0x2366aa[_0x4d8ba3[_0x2c3bab(0x23e)]]=_0x2c3bab(0x21f)+process['env']['BROWSERSTACK_TESTHUB_JWT']),_0x2366aa;},exports[a117_0x2883b8(0x198)]=_0x4eb1fd=>{const _0x44266c=a117_0x2883b8,_0x3baea9={};_0x3baea9[_0x44266c(0x19b)]=_0x44266c(0x29a);const _0x22e4d8=_0x3baea9,_0x64c75a=[],_0x558d1d=new RegExp(_0x22e4d8['mceNu'],'i');return Object[_0x44266c(0x1a0)](_0x4eb1fd)[_0x44266c(0x27e)](_0x2f38ec=>_0x558d1d['test'](_0x2f38ec))[_0x44266c(0x261)](_0x450038=>_0x64c75a[_0x44266c(0x27c)](_0x4eb1fd[_0x450038])),_0x64c75a;},exports[a117_0x2883b8(0x249)]=_0x4c3468=>{const _0x4d3df2=a117_0x2883b8,_0x15e64e=[],_0x2a9228=_0x4c3468[_0x4d3df2(0x1eb)]||process[_0x4d3df2(0x17f)][_0x4d3df2(0x1cc)];return _0x2a9228&&_0x15e64e[_0x4d3df2(0x27c)](_0x2a9228),_0x15e64e[_0x4d3df2(0x27c)](...exports[_0x4d3df2(0x198)](process['env'])),_0x15e64e['push'](...exports[_0x4d3df2(0x198)](_0x4c3468)),_0x15e64e;},exports['removeAnsiColors']=_0x1999ec=>{const _0x37dfa9=a117_0x2883b8;if(!_0x1999ec)return'';return _0x1999ec[_0x37dfa9(0x23f)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports['sleep']=(_0x576180=0x64)=>new Promise(_0x1f487e=>setTimeout(_0x1f487e,_0x576180));const getPlatformName=()=>{const _0x5b5481=a117_0x2883b8,_0x2ae056={};_0x2ae056[_0x5b5481(0x1ec)]=function(_0x30fc74,_0x520615){return _0x30fc74===_0x520615;},_0x2ae056[_0x5b5481(0x272)]=_0x5b5481(0x1a6),_0x2ae056[_0x5b5481(0x24a)]=_0x5b5481(0x26e),_0x2ae056['DsqkG']=function(_0x3902a6,_0x887793){return _0x3902a6===_0x887793;},_0x2ae056[_0x5b5481(0x1d0)]=_0x5b5481(0x1e7),_0x2ae056[_0x5b5481(0x255)]=_0x5b5481(0x1ef),_0x2ae056[_0x5b5481(0x1cd)]=function(_0x7cbb03,_0x1f240a){return _0x7cbb03===_0x1f240a;},_0x2ae056[_0x5b5481(0x1ba)]=_0x5b5481(0x224),_0x2ae056['DGxhl']=_0x5b5481(0x21a),_0x2ae056['bIDCT']=_0x5b5481(0x206);const _0x290d9c=_0x2ae056;if(_0x290d9c['xavrS'](process['platform'],_0x290d9c[_0x5b5481(0x272)]))return _0x290d9c[_0x5b5481(0x24a)];if(_0x290d9c['DsqkG'](process[_0x5b5481(0x211)],_0x290d9c['WAxsU']))return _0x290d9c[_0x5b5481(0x255)];if(_0x290d9c[_0x5b5481(0x1cd)](process[_0x5b5481(0x211)],_0x290d9c[_0x5b5481(0x1ba)]))return _0x290d9c[_0x5b5481(0x220)];return _0x290d9c[_0x5b5481(0x213)];},getMacOSVersion=()=>{const _0x260345=a117_0x2883b8,_0x56730f={};_0x56730f[_0x260345(0x20a)]=_0x260345(0x246);const _0x4aec1d=_0x56730f;return child_process[_0x260345(0x1ae)](_0x4aec1d['IIBTz'])['toString']()[_0x260345(0x173)]();},getLinuxDetails=()=>{const _0x56028c={'GQnCW':function(_0xfff859,_0x4c6478){return _0xfff859(_0x4c6478);}};return new Promise((_0x54dc3c,_0x5b3477)=>{const _0x59cf71=a117_0x11f0;_0x56028c[_0x59cf71(0x1dd)](getos,(_0x2a67e5,_0x53a059)=>{if(_0x2a67e5)return _0x56028c['GQnCW'](_0x5b3477,_0x2a67e5);_0x56028c['GQnCW'](_0x54dc3c,_0x53a059);});});};function a117_0xb7a9(){const _0x3ba3b2=['DGxhl','JCJgE','../../bin/v2/browserstackCLI','KqxQW','linux','getAccessKey','toString','info','getSession','Uploading\x20trace\x20logs\x20to:\x20','QFJBK','HmZSw','message','../../bin/utils/logPatcher','iKLIM','\x20]\x20Build\x20Not\x20Found\x20%s','turboscale','261YqyThp','null','cpMrG','patchConsoleLogger','8NrPInA','codeceptjs','format','local_grid','trace','../performance/performance-tester','oxkFM','__cloud_provider___','application/json','FrFcv','replace','https','qbhxA','bjoKB','O11Y_URL','RNBmh','getPlatformVersion','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','http','includes','getCustomTags','YHcOo','\x20test\x20instance\x20:\x20','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','fileName','XRhmt','app-automate','winstonLogger','platformVersion','SNWSb','JSNyo','browserstack_executor:\x20','DTPQG','backtrace','test_run_uuid','config','formData','isArray','test','addRequestSpy','\x20]\x20','rootDir','agent','KAJwN','forEach','match','zuhHJ','gvUNJ','BROWSERSTACK_TEST_OBSERVABILITY','join','0|1|2|5|4|3','O11yHashedID','312103PjEeuP','BS_TESTOPS_BUILD_HASHED_ID','fkZsy','igvQi','undefined','Windows','CUCUMBER','toISOString','body','SqNoj','../performance/constants','../helper','BNsfF','160NcmLNs','windows-release','spy','then','EohIA','jTdjp','push','keepAlive','filter','url','BSCkQ','\x20:\x20','printBuildLink','Upnfl','pid','dSUog','VPJlD','host','BHAWD','map_','path','getPackageVersion','2424734qxkpmS','hostname','172184yGlUdk','uyfeY','qeOBA','release','7yBcrEp','HWtxf','appium:app','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','rLrWR','log','AyBLJ','data','^CUSTOM_TAG_\x5cd+$','XRuuJ','parse','YPEGR','lodash','trim','prefixTestPath','../../bin/utils/constants','fromEntries','asyncAwaitNodeReq','zrtyf','relativeTestFilePath','measureWrapper','logs','failureData','IjYkr','ObservabilitySync:','env','WFBAh','GIOZa','catch','relative','sendPlatformDetails','CODECEPT_CUCUMBER','isUndefined','getUserCredentials','BROWSERSTACK_TEST_REPORTING_DEBUG','getCapabilities','DftXZ','VoXfO','FySsl','Visit\x20','split','aDlou','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','BuabM','PgdCG','CQJAo','BROWSERSTACK_TEST_REPORTING','maxSockets','VkhCH','BROWSERSTACK_OBSERVABILITY_DEBUG','extractValuesWithRegexKeyMatch','Authorization','getBuildTags','mceNu','getSyncScript','length','AssertionError','browserstack','keys','Error\x20in\x20importing\x20windows-release\x20','cxyrJ','EawMu','TEST_ATTACHMENT','PathHelper','win32','JEST','annotate','PLAYWRIGHT','HTTP','getBrowserName','getPlatform','KuktE','execSync','getBrowserVersion','hOsds','toJSON','app','cwd','default','RihDK','@playwright/test','@cucumber/cucumber','getPlatformDetails','pcNdT','weaTu','getBrowserStackConfig','stack','zjbTl','getos','timeout','MOCHA','ABCKo','nodeRequest','5483256LjAdnt','dist','util','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','error','IwnJz','HUB_URL_REGEX','iAkrY','getObservabilityLinkedProductName','CUSTOM_TAG','rvETD','object','AxYxG','WAxsU','/builds/','eOXsi','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','Agent','modifyReqForTraceUpload','turboScaleGridDetails','MooZK','prefix','ATS_HUB_URL_REGEX','unknown_grid','emit','isTestObservabilitySession','GQnCW','][\x20','LogCreated','1pJWRoy','../../../src/bin/utils/constants','TEST_REPORTING_ANALYTICS','CsqGr','nZXFu','debug','7338TqvQCU','darwin','true','slqvb','TEST_PLATFORM','customTag','xavrS','NaoTz','removeAnsiColors','OS\x20X','[%s][\x20','fTbYr','git-last-commit','headers','dHPGo','JuelG','jest','1064286EzewAO','HUAtf','map','aXJBk','err','bstack:options','TEST_OBSERVABILITY_BUILD_TAG','yrcat','buildTag','HMYPL','capabilities','BROWSERSTACK_CONFIG_FILE_PATH','getDefaultHeaders','192maiBoB','Wcxum','Unknown','stringify','maxTotalSockets','NzRUi','IIBTz','mocha','../logger','Content-Type','../../helpers/request-spy','oCdHh','getFrameworkVersion','platform','IACnE','bIDCT','./constants','316280xvYwVT','parseFileNames','CrjXR','BROWSERSTACK_RERUN_TESTS','isInternalHook','Linux','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','Error\x20in\x20getting\x20Linux\x20Details','AoaII','platformName','Bearer\x20'];a117_0xb7a9=function(){return _0x3ba3b2;};return a117_0xb7a9();}exports[a117_0x2883b8(0x1b8)]=async()=>{const _0x57df03=a117_0x2883b8,_0x259cd1={'RihDK':function(_0x44059d){return _0x44059d();},'qeOBA':_0x57df03(0x1ef),'iKLIM':function(_0x54c56b){return _0x54c56b();},'FySsl':_0x57df03(0x26e),'QFJBK':_0x57df03(0x277),'pcNdT':'Linux','zuhHJ':function(_0x47867){return _0x47867();},'IjYkr':_0x57df03(0x21c)};let _0x416117=_0x259cd1[_0x57df03(0x1b5)](getPlatformName),_0x59dd6e=os['release']()[_0x57df03(0x226)]();switch(_0x416117){case _0x259cd1[_0x57df03(0x290)]:_0x59dd6e=_0x259cd1['iKLIM'](getMacOSVersion);break;case _0x259cd1[_0x57df03(0x18c)]:try{const _0x162878=(await import(_0x259cd1[_0x57df03(0x22a)]))[_0x57df03(0x1b4)];_0x59dd6e=_0x259cd1[_0x57df03(0x22e)](_0x162878);}catch(_0x445b0b){exports['debug'](_0x57df03(0x1a1)+_0x445b0b[_0x57df03(0x226)]());}break;case _0x259cd1[_0x57df03(0x1b9)]:try{const _0x4b413c=await _0x259cd1[_0x57df03(0x263)](getLinuxDetails);_0x4b413c['dist']&&(_0x416117=_0x4b413c[_0x57df03(0x1c4)]),_0x4b413c['release']&&(_0x59dd6e=_0x4b413c[_0x57df03(0x291)][_0x57df03(0x226)]());}catch(_0x4b2c7d){exports[_0x57df03(0x1e5)](_0x259cd1[_0x57df03(0x17d)]);}break;default:break;}const _0x2c9fb7={};return _0x2c9fb7[_0x57df03(0x21e)]=_0x416117,_0x2c9fb7[_0x57df03(0x251)]=_0x59dd6e,_0x2c9fb7;},exports[a117_0x2883b8(0x17c)]=(_0x96e7a9,_0x25174a)=>{const _0xc9c030=a117_0x2883b8,_0x413efa={};_0x413efa[_0xc9c030(0x1a3)]=function(_0x57dfd5,_0x3cf301){return _0x57dfd5===_0x3cf301;},_0x413efa[_0xc9c030(0x191)]='test',_0x413efa[_0xc9c030(0x18b)]=_0xc9c030(0x1fb);const _0x16d480=_0x413efa;if(!_0x96e7a9)return[];try{if(_0x16d480[_0xc9c030(0x1a3)](_0x25174a,_0x16d480[_0xc9c030(0x191)]))return _0x96e7a9[_0xc9c030(0x1f9)](_0x5bc189=>{const _0x1acc15=_0xc9c030,{stack:_0x42b2fd,..._0x50185d}=_0x5bc189,_0x3cadbc=Object[_0x1acc15(0x1a0)](_0x50185d)['map'](_0x2adc4d=>{return _0x2adc4d+':\x20'+_0x50185d[_0x2adc4d];}),_0x547a35=_0x42b2fd?exports[_0x1acc15(0x1ee)](_0x42b2fd)['split'](/\r?\n/):[exports[_0x1acc15(0x1ee)](_0x5bc189['message'])],_0x2324ad={};return _0x2324ad['backtrace']=_0x547a35,_0x2324ad['expanded']=_0x3cadbc,_0x2324ad;});else{if(_0x16d480[_0xc9c030(0x1a3)](_0x25174a,_0x16d480[_0xc9c030(0x18b)])){const _0x3e6d73=[],_0x5334ab=[];return Object[_0xc9c030(0x1a0)](_0x96e7a9)[_0xc9c030(0x261)](_0x5b6906=>{const _0xb49459=_0xc9c030;try{_0x5334ab['push'](_0x5b6906+':\x20'+_0x96e7a9[_0x5b6906]);}catch(_0x20a8b3){exports[_0xb49459(0x1e5)](_0xb49459(0x1d3)+_0x20a8b3[_0xb49459(0x22c)]+_0xb49459(0x281)+_0x20a8b3[_0xb49459(0x256)]);}}),_0x3e6d73[_0xc9c030(0x27c)]({'backtrace':exports[_0xc9c030(0x1ee)](_0x96e7a9[_0xc9c030(0x1bc)])[_0xc9c030(0x18e)](/\r?\n/),'expanded':_0x5334ab}),_0x3e6d73;}}return[];}catch(_0x2421c3){exports['debug']('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x2421c3[_0xc9c030(0x22c)]+_0xc9c030(0x281)+_0x2421c3[_0xc9c030(0x256)]);}return[];};function a117_0x11f0(_0x397aa3,_0x15d5fa){const _0xb7a957=a117_0xb7a9();return a117_0x11f0=function(_0x11f004,_0x5805d4){_0x11f004=_0x11f004-0x173;let _0xda7646=_0xb7a957[_0x11f004];return _0xda7646;},a117_0x11f0(_0x397aa3,_0x15d5fa);}class PathHelper{constructor(_0xec10a8,_0x36a864){const _0x3a34dc=a117_0x2883b8;this[_0x3a34dc(0x258)]=_0xec10a8,this[_0x3a34dc(0x1d8)]=_0x36a864;}[a117_0x2883b8(0x179)](_0x11029c){const _0x4acd7a=a117_0x2883b8,_0x5a0a33=this[_0x4acd7a(0x258)][_0x4acd7a(0x1b3)]||this['config'][_0x4acd7a(0x25e)];return path[_0x4acd7a(0x183)](_0x5a0a33,_0x11029c);}[a117_0x2883b8(0x174)](_0x4fe78e){const _0x5eb381=a117_0x2883b8,_0x6cf7e6=this['relativeTestFilePath'](_0x4fe78e);return this[_0x5eb381(0x1d8)]?path[_0x5eb381(0x266)](this[_0x5eb381(0x1d8)],_0x6cf7e6):_0x6cf7e6;}}exports[a117_0x2883b8(0x1a5)]=PathHelper,exports[a117_0x2883b8(0x25c)]=(_0x3c5529=!![])=>{const _0x196374=a117_0x2883b8,_0x229fbb={};_0x229fbb['KAJwN']=function(_0x2620d1,_0x8be699){return _0x2620d1===_0x8be699;},_0x229fbb[_0x196374(0x1e9)]='X-BSTACK-TESTOPS',_0x229fbb[_0x196374(0x24e)]='true',_0x229fbb[_0x196374(0x275)]=_0x196374(0x1aa),_0x229fbb[_0x196374(0x221)]='browserstack',_0x229fbb[_0x196374(0x1b0)]=_0x196374(0x238);const _0x53c7f3=_0x229fbb;requestSpy[_0x196374(0x278)]((_0x538e80,_0x97fded)=>{const _0x17fca0=_0x196374;_0x97fded&&!(_0x97fded[_0x17fca0(0x1f3)]&&_0x53c7f3[_0x17fca0(0x260)](_0x97fded[_0x17fca0(0x1f3)][_0x53c7f3[_0x17fca0(0x1e9)]],_0x53c7f3['XRhmt']))&&(_0x97fded[_0x17fca0(0x287)]=_0x97fded[_0x17fca0(0x28d)],delete _0x97fded[_0x17fca0(0x28d)],_0x3c5529&&process[_0x17fca0(0x1db)]('bs:addLog:'+process[_0x17fca0(0x284)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x53c7f3[_0x17fca0(0x275)],'http_response':_0x97fded})),_0x97fded&&(constants[_0x17fca0(0x1c9)][_0x17fca0(0x25b)](_0x97fded['host'])||constants[_0x17fca0(0x1d9)]['test'](_0x97fded[_0x17fca0(0x287)]))?global['__cloud_provider___']=_0x53c7f3[_0x17fca0(0x221)]:global['__cloud_provider___']=_0x53c7f3['hOsds'];});},exports[a117_0x2883b8(0x234)]=()=>{const _0x3fddcd=a117_0x2883b8,_0xbaaabf={'VPJlD':function(_0x22f2c2,_0x35cfd1){return _0x22f2c2(_0x35cfd1);}};console={},Object[_0x3fddcd(0x1a0)](consoleHolder)[_0x3fddcd(0x261)](_0x4d298a=>{const _0x4c43e2=_0x3fddcd;_0xbaaabf[_0x4c43e2(0x286)](isFunction,consoleHolder[_0x4d298a])?console[_0x4d298a]=(..._0x5c1cc0)=>{const _0x3f99a5=_0x4c43e2;try{!Object[_0x3f99a5(0x1a0)](BSTestOpsPatcher)[_0x3f99a5(0x248)](_0x4d298a)?consoleHolder[_0x4d298a](..._0x5c1cc0):BSTestOpsPatcher[_0x4d298a](..._0x5c1cc0);}catch(_0xc8a945){consoleHolder[_0x4d298a](..._0x5c1cc0);}}:console[_0x4d298a]=consoleHolder[_0x4d298a];});},exports[a117_0x2883b8(0x19c)]=()=>a117_0x2883b8(0x254)+JSON[a117_0x2883b8(0x207)]({'action':a117_0x2883b8(0x1a8),'arguments':{'data':a117_0x2883b8(0x17e)+Date['now'](),'level':a117_0x2883b8(0x1e5)}}),exports[a117_0x2883b8(0x1cb)]=_0x501e02=>{const _0x25b4e6=a117_0x2883b8,_0x244d10={};_0x244d10[_0x25b4e6(0x283)]=function(_0x2ebbae,_0x1a3005){return _0x2ebbae===_0x1a3005;},_0x244d10[_0x25b4e6(0x1f1)]=_0x25b4e6(0x19f),_0x244d10[_0x25b4e6(0x1bd)]=_0x25b4e6(0x294),_0x244d10[_0x25b4e6(0x29b)]=_0x25b4e6(0x1b2),_0x244d10[_0x25b4e6(0x209)]=function(_0xa371d6,_0x376546){return _0xa371d6>_0x376546;},_0x244d10[_0x25b4e6(0x26b)]=_0x25b4e6(0x24f),_0x244d10[_0x25b4e6(0x29d)]=_0x25b4e6(0x1fc),_0x244d10[_0x25b4e6(0x1e4)]=_0x25b4e6(0x1d6),_0x244d10[_0x25b4e6(0x1ad)]=_0x25b4e6(0x230),_0x244d10['TpkAq']='automate';const _0x4baafc=_0x244d10;let _0x13437c=null;try{if(_0x4baafc[_0x25b4e6(0x283)](global[_0x25b4e6(0x23c)],_0x4baafc[_0x25b4e6(0x1f1)])){if(_0x501e02[_0x4baafc['zjbTl']]||_0x501e02[_0x4baafc[_0x25b4e6(0x29b)]]||!bsSetupHelper[_0x25b4e6(0x186)](global[_0x25b4e6(0x201)])&&_0x4baafc['NzRUi'](global[_0x25b4e6(0x201)][_0x25b4e6(0x19d)],0x0)&&(global[_0x25b4e6(0x201)][0x0][_0x4baafc[_0x25b4e6(0x29b)]]||global[_0x25b4e6(0x201)][0x0][_0x4baafc[_0x25b4e6(0x1bd)]]))_0x13437c=_0x4baafc[_0x25b4e6(0x26b)];else _0x501e02[_0x4baafc['YPEGR']]&&_0x501e02[_0x4baafc[_0x25b4e6(0x29d)]][_0x4baafc[_0x25b4e6(0x1e4)]]?_0x13437c=_0x4baafc['KuktE']:_0x13437c=_0x4baafc['TpkAq'];}}catch(_0x4460ed){exports[_0x25b4e6(0x1e5)](_0x25b4e6(0x295)+constants[_0x25b4e6(0x1e2)]+_0x25b4e6(0x24b)+_0x4460ed);}return _0x13437c;},exports[a117_0x2883b8(0x184)]=async(_0x252d2f,_0x1d655c,_0x3e90d2=![])=>{const _0x2037a0=a117_0x2883b8,_0x3281a2={};_0x3281a2[_0x2037a0(0x205)]=function(_0x3c6609,_0x47a866){return _0x3c6609===_0x47a866;},_0x3281a2[_0x2037a0(0x293)]=_0x2037a0(0x19f),_0x3281a2[_0x2037a0(0x1e3)]=_0x2037a0(0x1da),_0x3281a2[_0x2037a0(0x192)]=_0x2037a0(0x1ea);const _0x4adfc7=_0x3281a2;try{const _0x316c6b=await _0x252d2f[_0x2037a0(0x189)](),_0x4d7148=await _0x252d2f[_0x2037a0(0x228)](),_0x26a216={},_0x289c7a=Object[_0x2037a0(0x176)](_0x4d7148['getCapabilities']()[_0x2037a0(0x289)]),_0x5ab7a7={'product':exports[_0x2037a0(0x1cb)](_0x289c7a),'capabilities':_0x289c7a,'platform':_0x316c6b[_0x2037a0(0x1ac)](),'platform_version':bsSetupHelper[_0x2037a0(0x245)](_0x4adfc7[_0x2037a0(0x205)](global[_0x2037a0(0x23c)],_0x4adfc7[_0x2037a0(0x293)])),'browser':_0x316c6b[_0x2037a0(0x1ab)](),'browser_version':_0x316c6b[_0x2037a0(0x1af)](),'session_id':_0x4d7148[_0x2037a0(0x1b1)]()};global[_0x2037a0(0x23c)]?_0x26a216[global[_0x2037a0(0x23c)]]=_0x5ab7a7:_0x26a216[_0x4adfc7[_0x2037a0(0x1e3)]]=_0x5ab7a7;if(_0x3e90d2)return _0x26a216;process[_0x2037a0(0x1db)]('bs:addPlatformDetails:'+process[_0x2037a0(0x284)],{'timestamp':new Date()[_0x2037a0(0x270)](),'level':null,'message':null,'kind':_0x4adfc7['PgdCG'],'http_response':_0x26a216,'uuid':_0x1d655c});}catch(_0x4df3c4){exports[_0x2037a0(0x1e5)]('Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x4df3c4);}},exports[a117_0x2883b8(0x219)]=_0x57d934=>{const _0x5a606e=a117_0x2883b8;return _0x57d934&&_0x57d934[_0x5a606e(0x226)]()[_0x5a606e(0x262)](/browserstack internal helper hook/);};
|
|
1
|
+
const a117_0x11b399=a117_0x31fd;(function(_0x356233,_0x559aaf){const _0xb83b02=a117_0x31fd,_0x432ecc=_0x356233();while(!![]){try{const _0x2f971f=parseInt(_0xb83b02(0x1a0))/0x1+parseInt(_0xb83b02(0x227))/0x2*(parseInt(_0xb83b02(0x283))/0x3)+parseInt(_0xb83b02(0x1a1))/0x4*(parseInt(_0xb83b02(0x1ba))/0x5)+parseInt(_0xb83b02(0x1a9))/0x6+-parseInt(_0xb83b02(0x272))/0x7*(parseInt(_0xb83b02(0x28d))/0x8)+parseInt(_0xb83b02(0x275))/0x9*(parseInt(_0xb83b02(0x1f1))/0xa)+-parseInt(_0xb83b02(0x1dc))/0xb;if(_0x2f971f===_0x559aaf)break;else _0x432ecc['push'](_0x432ecc['shift']());}catch(_0x3ac073){_0x432ecc['push'](_0x432ecc['shift']());}}}(a117_0x59eb,0x95b9d));const fs=require('fs'),path=require('path'),gitLastCommit=require(a117_0x11b399(0x223)),getRepoInfo=require('git-repo-info'),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a117_0x11b399(0x18a)),http=require(a117_0x11b399(0x23e)),https=require('https'),child_process=require(a117_0x11b399(0x22a)),getos=require(a117_0x11b399(0x1c3)),os=require('os'),logger=require(a117_0x11b399(0x198))[a117_0x11b399(0x1f2)],bsSetupHelper=require(a117_0x11b399(0x26a)),requestSpy=require(a117_0x11b399(0x247)),constants=require('../../bin/utils/constants'),logPatcher=require(a117_0x11b399(0x1f5)),util=require(a117_0x11b399(0x26f)),{fileLogger}=require(a117_0x11b399(0x198)),PerformanceTester=require(a117_0x11b399(0x1f9)),{isFunction}=require(a117_0x11b399(0x233)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require('../performance/constants'),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a117_0x11b399(0x1fe));exports[a117_0x11b399(0x21e)]=_0x4132c4=>{const _0x5a7e4b=a117_0x11b399;fileLogger[_0x5a7e4b(0x220)]('['+new Date()[_0x5a7e4b(0x1d5)]()+'][\x20'+constants[_0x5a7e4b(0x1c4)]+_0x5a7e4b(0x280)+_0x4132c4);},exports[a117_0x11b399(0x1b3)]=_0x18b656=>{const _0x27f442=a117_0x11b399,_0x477841={};_0x477841[_0x27f442(0x224)]=function(_0x2b6b99,_0x4f80f3){return _0x2b6b99===_0x4f80f3;},_0x477841[_0x27f442(0x20c)]=_0x27f442(0x256),_0x477841['LytnB']=function(_0x29f6f8,_0x1f1369){return _0x29f6f8===_0x1f1369;};const _0x49157c=_0x477841;fileLogger[_0x27f442(0x1b3)]('['+new Date()['toISOString']()+'][\x20'+constants[_0x27f442(0x1c4)]+_0x27f442(0x280)+_0x18b656),(_0x49157c[_0x27f442(0x224)](process[_0x27f442(0x1ee)][_0x27f442(0x1e2)],_0x49157c[_0x27f442(0x20c)])||_0x49157c[_0x27f442(0x224)](process[_0x27f442(0x1ee)][_0x27f442(0x1e2)],'1')||_0x49157c[_0x27f442(0x224)](process['env'][_0x27f442(0x1ce)],_0x49157c['MzWAs'])||_0x49157c[_0x27f442(0x215)](process[_0x27f442(0x1ee)][_0x27f442(0x1ce)],'1'))&&consoleHolder[_0x27f442(0x1a3)]('\x0a['+new Date()['toISOString']()+_0x27f442(0x1a8)+constants[_0x27f442(0x1c4)]+_0x27f442(0x280)+_0x18b656+'\x0a');};const a117_0x3092cf={};a117_0x3092cf[a117_0x11b399(0x1bc)]=!![],a117_0x3092cf['timeout']=0xea60,a117_0x3092cf['maxSockets']=0x2,a117_0x3092cf['maxTotalSockets']=0x2;function a117_0x31fd(_0x5c34eb,_0x566ef5){const _0x59eb2e=a117_0x59eb();return a117_0x31fd=function(_0x31fddc,_0x26ee9a){_0x31fddc=_0x31fddc-0x189;let _0x2c8470=_0x59eb2e[_0x31fddc];return _0x2c8470;},a117_0x31fd(_0x5c34eb,_0x566ef5);}const httpKeepAliveAgent=new http[(a117_0x11b399(0x271))](a117_0x3092cf),a117_0x1f5872={};a117_0x1f5872[a117_0x11b399(0x1bc)]=!![],a117_0x1f5872[a117_0x11b399(0x19d)]=0xea60,a117_0x1f5872['maxSockets']=0x2,a117_0x1f5872[a117_0x11b399(0x1d4)]=0x2;const httpsKeepAliveAgent=new https[(a117_0x11b399(0x271))](a117_0x1f5872),a117_0x5eac70={};a117_0x5eac70['keepAlive']=!![],a117_0x5eac70[a117_0x11b399(0x19d)]=0xea60,a117_0x5eac70[a117_0x11b399(0x1ab)]=0x2,a117_0x5eac70[a117_0x11b399(0x1d4)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a117_0x11b399(0x271))](a117_0x5eac70),a117_0x1e3a8f={};a117_0x1e3a8f['keepAlive']=!![],a117_0x1e3a8f[a117_0x11b399(0x19d)]=0xea60,a117_0x1e3a8f[a117_0x11b399(0x1ab)]=0x2,a117_0x1e3a8f[a117_0x11b399(0x1d4)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a117_0x11b399(0x271))](a117_0x1e3a8f);exports['shouldReRunObservabilityTests']=()=>{const _0x280241=a117_0x11b399,_0x2681e1={};_0x2681e1[_0x280241(0x228)]=function(_0x33861e,_0x13be39){return _0x33861e!==_0x13be39;},_0x2681e1[_0x280241(0x234)]=_0x280241(0x1b7);const _0x3d644f=_0x2681e1;return process[_0x280241(0x1ee)][_0x280241(0x296)]&&_0x3d644f[_0x280241(0x228)](process['env'][_0x280241(0x296)],_0x3d644f[_0x280241(0x234)])?!![]:![];},exports[a117_0x11b399(0x218)]=()=>{const _0x4a9bb6=a117_0x11b399,_0x21cba6={};_0x21cba6[_0x4a9bb6(0x29a)]=function(_0x575a42,_0x3a4194){return _0x575a42===_0x3a4194;},_0x21cba6[_0x4a9bb6(0x1ef)]=_0x4a9bb6(0x256),_0x21cba6['omBzn']=function(_0x5c0d2f,_0x90fa56){return _0x5c0d2f===_0x90fa56;};const _0x1613b3=_0x21cba6;let _0x3e1767=!![];return process[_0x4a9bb6(0x1ee)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x3e1767=_0x1613b3[_0x4a9bb6(0x29a)](process[_0x4a9bb6(0x1ee)][_0x4a9bb6(0x1eb)],_0x1613b3[_0x4a9bb6(0x1ef)])),process[_0x4a9bb6(0x1ee)][_0x4a9bb6(0x2a1)]&&(_0x3e1767=_0x1613b3[_0x4a9bb6(0x29a)](process['env']['BROWSERSTACK_TEST_OBSERVABILITY'],_0x1613b3[_0x4a9bb6(0x1ef)])),process['env'][_0x4a9bb6(0x277)]&&(_0x3e1767=_0x1613b3[_0x4a9bb6(0x1dd)](process[_0x4a9bb6(0x1ee)]['BROWSERSTACK_TEST_REPORTING'],_0x1613b3[_0x4a9bb6(0x1ef)])),_0x3e1767;},exports[a117_0x11b399(0x239)]=_0x2cbd33=>{const _0x2c5196=a117_0x11b399;if(bsSetupHelper[_0x2c5196(0x196)](_0x2cbd33))return undefined;try{return _0x2cbd33[_0x2c5196(0x1cf)]()[_0x2c5196(0x295)](',');}catch(_0x55e5e8){return undefined;}},exports[a117_0x11b399(0x261)]=()=>{const _0x398144=a117_0x11b399,_0x38b5f8={'AmxtK':function(_0x5a86bc,_0x269aad){return _0x5a86bc(_0x269aad);},'wVuPC':_0x398144(0x18e),'vbCdG':function(_0x480f1b,_0x22d255){return _0x480f1b!==_0x22d255;},'wBzmq':_0x398144(0x1b7),'uxmfp':_0x398144(0x199)};return PerformanceTester[_0x398144(0x28b)](PerformanceO11yEvents['PRINT_BUILDLINK'],async()=>{const _0xed578=_0x398144;try{const _0x20066e=_0x38b5f8[_0xed578(0x205)](require,_0x38b5f8['wVuPC']);if(_0x20066e[_0xed578(0x238)]){logger[_0xed578(0x20a)](_0xed578(0x18b)+O11Y_URL+_0xed578(0x231)+_0x20066e[_0xed578(0x238)]+_0xed578(0x282));return;}process[_0xed578(0x1ee)][_0xed578(0x294)]&&_0x38b5f8['vbCdG'](process[_0xed578(0x1ee)][_0xed578(0x294)],_0x38b5f8[_0xed578(0x29d)])&&_0x38b5f8['vbCdG'](process[_0xed578(0x1ee)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x38b5f8[_0xed578(0x20d)])&&logger[_0xed578(0x20a)](_0xed578(0x18b)+constants[_0xed578(0x24c)]+_0xed578(0x231)+process['env']['BS_TESTOPS_BUILD_HASHED_ID']+_0xed578(0x282));}catch(_0x370c01){logger[_0xed578(0x1ad)](util[_0xed578(0x1d8)]('[%s][\x20'+constants[_0xed578(0x1c4)]+_0xed578(0x284),new Date()[_0xed578(0x1d5)](),_0x370c01[_0xed578(0x1d6)]||_0x370c01[_0xed578(0x1fa)]||_0x370c01));}})();},exports[a117_0x11b399(0x21c)]=_0x408091=>{const _0x26f753=a117_0x11b399,_0x134c3d={};_0x134c3d['HpIhv']=_0x26f753(0x23c),_0x134c3d['mwKMs']=_0x26f753(0x1ec);const _0x6fb22c=_0x134c3d;if(!_0x408091)return null;return _0x408091['toString']()[_0x26f753(0x25f)](/AssertionError/)?_0x6fb22c['HpIhv']:_0x6fb22c['mwKMs'];},exports[a117_0x11b399(0x1c1)]=_0x1ee529=>{const _0x543848=a117_0x11b399,_0x6a154={};_0x6a154[_0x543848(0x265)]=_0x543848(0x262),_0x6a154[_0x543848(0x1a7)]=_0x543848(0x1d3),_0x6a154[_0x543848(0x212)]=_0x543848(0x1f6),_0x6a154['JdXrX']=_0x543848(0x24d),_0x6a154[_0x543848(0x2a2)]=_0x543848(0x253);const _0x55ce91=_0x6a154;let _0x300068=null;switch(_0x1ee529){case FRAMEWORKS[_0x543848(0x1db)]:_0x300068=bsSetupHelper[_0x543848(0x2a5)](_0x55ce91['SSFVU']);break;case FRAMEWORKS[_0x543848(0x25c)]:_0x300068=bsSetupHelper['getPackageVersion'](_0x55ce91['zApil']);break;case FRAMEWORKS[_0x543848(0x29f)]:case FRAMEWORKS[_0x543848(0x21a)]:_0x300068=bsSetupHelper[_0x543848(0x2a5)](_0x55ce91[_0x543848(0x212)]);break;case FRAMEWORKS[_0x543848(0x248)]:_0x300068=bsSetupHelper[_0x543848(0x2a5)](_0x55ce91[_0x543848(0x237)]);break;case FRAMEWORKS[_0x543848(0x1bf)]:_0x300068=bsSetupHelper['getPackageVersion'](_0x55ce91[_0x543848(0x2a2)]);break;default:break;}return _0x300068;},exports['getBrowserStackConfig']=_0x4002c1=>{const _0x183015=a117_0x11b399;let _0x153e75=null;switch(_0x4002c1){case FRAMEWORKS[_0x183015(0x25c)]:_0x153e75=process[_0x183015(0x1ee)][_0x183015(0x250)];break;}if(!_0x153e75)return;return bsSetupHelper[_0x183015(0x29e)](_0x153e75,![]);},exports[a117_0x11b399(0x26b)]=_0x1aa135=>{const _0x243f6a=a117_0x11b399;return{'username':bsSetupHelper['getUserName'](_0x1aa135),'accessKey':bsSetupHelper[_0x243f6a(0x192)](_0x1aa135)};},exports[a117_0x11b399(0x251)]=(_0x233659,_0x37925b)=>{const _0x5b75d8=a117_0x11b399,_0x1342be={};_0x1342be['seoGC']=_0x5b75d8(0x1be),_0x1342be[_0x5b75d8(0x268)]=_0x5b75d8(0x281),_0x1342be['VbvHP']=_0x5b75d8(0x23a);const _0x2c7e60=_0x1342be,_0x208548=_0x2c7e60[_0x5b75d8(0x1ff)]['split']('|');let _0x4a2c75=0x0;while(!![]){switch(_0x208548[_0x4a2c75++]){case'0':if(!_0x233659[_0x5b75d8(0x20e)][0x0]||!_0x233659[_0x5b75d8(0x20e)][0x0]['logs']||!_0x233659['body'][0x0][_0x5b75d8(0x204)][_0x5b75d8(0x1d1)])return;continue;case'1':delete _0x37925b['headers'];continue;case'2':if(!_0x233659[_0x5b75d8(0x20e)]||!Array[_0x5b75d8(0x219)](_0x233659['body']))return;continue;case'3':delete _0x233659[_0x5b75d8(0x20e)];continue;case'4':delete _0x233659[_0x5b75d8(0x263)];continue;case'5':_0x233659['formData']={'data':_0x233659[_0x5b75d8(0x20e)][0x0][_0x5b75d8(0x204)][0x0][_0x5b75d8(0x288)],'test_run_uuid':_0x233659[_0x5b75d8(0x20e)][0x0]['logs'][0x0]['test_run_uuid'],'event_type':_0x2c7e60[_0x5b75d8(0x268)],'kind':_0x2c7e60['VbvHP'],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x5b75d8(0x1d5)](),'fileName':_0x233659[_0x5b75d8(0x20e)][0x0][_0x5b75d8(0x204)][0x0]['fileName']};continue;}break;}},exports[a117_0x11b399(0x1bd)]=async(_0x233033,_0x491cff,_0x5a03e4,_0x5e68c5,_0x7e6e48=!![])=>{const _0x5b713e=a117_0x11b399,_0x4ecc8a={};_0x4ecc8a[_0x5b713e(0x1cb)]=function(_0x2e02ba,_0x4138e9){return _0x2e02ba===_0x4138e9;},_0x4ecc8a['BbZvc']=_0x5b713e(0x1c9),_0x4ecc8a[_0x5b713e(0x22f)]=_0x5b713e(0x264),_0x4ecc8a[_0x5b713e(0x278)]=_0x5b713e(0x21f),_0x4ecc8a[_0x5b713e(0x293)]=function(_0x3cf3d8,_0x4bcfdb){return _0x3cf3d8!==_0x4bcfdb;},_0x4ecc8a[_0x5b713e(0x2a6)]=_0x5b713e(0x1fb),_0x4ecc8a['zcxja']=_0x5b713e(0x208);const _0x4ce65b=_0x4ecc8a,_0x18b14a={..._0x5e68c5,...{'method':_0x233033,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x491cff,'body':_0x5a03e4,'json':_0x4ce65b[_0x5b713e(0x1cb)](_0x5e68c5[_0x5b713e(0x258)][_0x4ce65b[_0x5b713e(0x1e1)]],_0x4ce65b[_0x5b713e(0x22f)]),'agent':API_URL[_0x5b713e(0x25e)](_0x4ce65b[_0x5b713e(0x278)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x4ce65b[_0x5b713e(0x1cb)](_0x491cff,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x18b14a['agent']=API_URL['includes'](_0x4ce65b[_0x5b713e(0x278)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x18b14a,_0x5e68c5),logger[_0x5b713e(0x1b3)](_0x5b713e(0x214)+_0x18b14a[_0x5b713e(0x255)]));try{const {statusCode:_0x3b1cc9,body:_0x456b52}=await bsSetupHelper[_0x5b713e(0x1af)](_0x233033,_0x491cff,_0x18b14a,_0x5e68c5,_0x18b14a[_0x5b713e(0x255)]);if(_0x4ce65b[_0x5b713e(0x293)](_0x3b1cc9,0xc8))return _0x456b52?_0x456b52:_0x5b713e(0x1c6)+_0x3b1cc9;let _0x4f8a9e=_0x456b52;if(_0x7e6e48)try{_0x4ce65b[_0x5b713e(0x293)](typeof _0x456b52,_0x4ce65b[_0x5b713e(0x2a6)])&&(_0x4f8a9e=JSON['parse'](_0x456b52));}catch(_0x550d5e){logger[_0x5b713e(0x1ad)](_0x4ce65b[_0x5b713e(0x19c)],_0x456b52,util[_0x5b713e(0x1d8)](_0x550d5e));}const _0x541249={};return _0x541249[_0x5b713e(0x288)]=_0x4f8a9e,_0x541249;}catch(_0x3b2925){logger['error'](_0x5b713e(0x1ea)+util[_0x5b713e(0x1d8)](_0x3b2925));throw _0x3b2925;}},exports[a117_0x11b399(0x1af)]=(_0x55434c,_0x224638,_0x4272c1,_0x56adfb,_0x2606d7=!![])=>{const _0x450d91=a117_0x11b399,_0x18b7db={'qHRiK':function(_0x287641,_0x1c72c1){return _0x287641(_0x1c72c1);},'jCAMZ':function(_0xbbfecf,_0x13fcb8){return _0xbbfecf!==_0x13fcb8;},'XbdvG':function(_0x1b0c93,_0x387a9f){return _0x1b0c93(_0x387a9f);},'zzvJG':'object','KDKlP':function(_0x208c9d,_0x11fbbc){return _0x208c9d(_0x11fbbc);},'GYMcU':_0x450d91(0x27d),'uPHZr':function(_0x3e2450,_0x303a33){return _0x3e2450===_0x303a33;},'FCvXw':_0x450d91(0x1c9),'OCmNu':_0x450d91(0x264),'XpuWy':'https'};return new Promise((_0x11c622,_0x3dc30b)=>{const _0xe332bc=_0x450d91,_0x4a902a={'rukXA':function(_0x445c7e,_0x4ca088){return _0x18b7db['jCAMZ'](_0x445c7e,_0x4ca088);},'rThvQ':function(_0x1c6388,_0x4655ad){const _0x1416a1=a117_0x31fd;return _0x18b7db[_0x1416a1(0x20f)](_0x1c6388,_0x4655ad);},'kHTRW':function(_0x35210b,_0x54b94c){const _0x10e3f9=a117_0x31fd;return _0x18b7db[_0x10e3f9(0x18c)](_0x35210b,_0x54b94c);},'pByZj':_0x18b7db[_0xe332bc(0x22c)],'lMfuD':function(_0x37fee6,_0x447161){const _0x4584d1=_0xe332bc;return _0x18b7db[_0x4584d1(0x19e)](_0x37fee6,_0x447161);},'MTyxT':_0x18b7db[_0xe332bc(0x1b8)],'lZAxe':function(_0x65e20c,_0x2f874d){const _0xcb164c=_0xe332bc;return _0x18b7db[_0xcb164c(0x21b)](_0x65e20c,_0x2f874d);}},_0x11c865={..._0x56adfb,...{'method':_0x55434c,'url':API_URL+'/'+_0x224638,'body':_0x4272c1,'json':_0x18b7db[_0xe332bc(0x1c0)](_0x56adfb[_0xe332bc(0x258)][_0x18b7db[_0xe332bc(0x1c2)]],_0x18b7db['OCmNu']),'agent':API_URL[_0xe332bc(0x25e)](_0x18b7db[_0xe332bc(0x1c5)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x18b7db[_0xe332bc(0x1c0)](_0x224638,SCREENSHOT_ENDPOINT)&&(_0x11c865[_0xe332bc(0x257)]=API_URL['includes'](_0x18b7db['XpuWy'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper['nodeRequest'](_0x55434c,_0x224638,_0x11c865,_0x56adfb,API_URL)['then'](({statusCode:_0x2b3ba1,body:_0x4091d1})=>{const _0x4154b7=_0xe332bc;if(_0x4a902a['rukXA'](_0x2b3ba1,0xc8))_0x4a902a[_0x4154b7(0x287)](_0x3dc30b,_0x4091d1?_0x4091d1:_0x4154b7(0x1c6)+_0x2b3ba1);else{if(_0x2606d7)try{_0x4a902a[_0x4154b7(0x20b)](typeof _0x4091d1,_0x4a902a['pByZj'])&&(_0x4091d1=JSON[_0x4154b7(0x240)](_0x4091d1));}catch(_0x324586){_0x4a902a[_0x4154b7(0x260)](_0x3dc30b,_0x4a902a[_0x4154b7(0x273)]);return;}const _0x455bfc={};_0x455bfc[_0x4154b7(0x288)]=_0x4091d1,_0x4a902a[_0x4154b7(0x191)](_0x11c622,_0x455bfc);}})[_0xe332bc(0x297)](_0x4c7679=>{const _0x29611f=_0xe332bc;_0x4c7679&&_0x18b7db[_0x29611f(0x21b)](_0x3dc30b,_0x4c7679);});});},exports[a117_0x11b399(0x276)]=_0x17bcc1=>{const _0x48a796=a117_0x11b399;if(process[_0x48a796(0x1ee)]['TEST_REPORTING_BUILD_TAG'])return process['env'][_0x48a796(0x1da)][_0x48a796(0x295)](',');if(process[_0x48a796(0x1ee)][_0x48a796(0x1de)])return process['env']['TEST_OBSERVABILITY_BUILD_TAG'][_0x48a796(0x295)](',');if(_0x17bcc1[_0x48a796(0x252)])return _0x17bcc1['buildTag'];return[];},exports[a117_0x11b399(0x26e)]=(_0xd63bb0=!![])=>{const _0x54206a=a117_0x11b399,_0x4aeaa9={};_0x4aeaa9[_0x54206a(0x226)]=_0x54206a(0x264),_0x4aeaa9[_0x54206a(0x1f8)]=_0x54206a(0x256),_0x4aeaa9[_0x54206a(0x28e)]=_0x54206a(0x207);const _0x4f38df=_0x4aeaa9,_0x48fac8={};_0x48fac8[_0x54206a(0x1c9)]=_0x4f38df[_0x54206a(0x226)],_0x48fac8[_0x54206a(0x28a)]=_0x4f38df[_0x54206a(0x1f8)];const _0x2b66df=_0x48fac8;return _0xd63bb0&&process[_0x54206a(0x1ee)][_0x54206a(0x24a)]&&(_0x2b66df[_0x4f38df['WIMGG']]=_0x54206a(0x1ca)+process[_0x54206a(0x1ee)]['BROWSERSTACK_TESTHUB_JWT']),_0x2b66df;},exports['extractValuesWithRegexKeyMatch']=_0x414513=>{const _0x4a818c=a117_0x11b399,_0x2c452f={};_0x2c452f[_0x4a818c(0x1bb)]=_0x4a818c(0x24b);const _0x4e03bb=_0x2c452f,_0x21bf59=[],_0x3903b7=new RegExp(_0x4e03bb['lIskM'],'i');return Object[_0x4a818c(0x1e0)](_0x414513)[_0x4a818c(0x246)](_0x1b3af6=>_0x3903b7[_0x4a818c(0x1e8)](_0x1b3af6))[_0x4a818c(0x244)](_0x26f5b2=>_0x21bf59[_0x4a818c(0x29b)](_0x414513[_0x26f5b2])),_0x21bf59;},exports[a117_0x11b399(0x210)]=_0xd7eefe=>{const _0x457507=a117_0x11b399,_0x27e222=[],_0x3b595c=_0xd7eefe[_0x457507(0x195)]||process[_0x457507(0x1ee)][_0x457507(0x243)];return _0x3b595c&&_0x27e222[_0x457507(0x29b)](_0x3b595c),_0x27e222['push'](...exports[_0x457507(0x289)](process[_0x457507(0x1ee)])),_0x27e222[_0x457507(0x29b)](...exports[_0x457507(0x289)](_0xd7eefe)),_0x27e222;},exports[a117_0x11b399(0x213)]=_0x3f958f=>{const _0x4d7723=a117_0x11b399;if(!_0x3f958f)return'';return _0x3f958f[_0x4d7723(0x19b)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a117_0x11b399(0x1b9)]=(_0x2477c6=0x64)=>new Promise(_0x5ad367=>setTimeout(_0x5ad367,_0x2477c6));const getPlatformName=()=>{const _0x35d52a=a117_0x11b399,_0x28e84f={};_0x28e84f[_0x35d52a(0x2a0)]=function(_0x27db09,_0x33cfca){return _0x27db09===_0x33cfca;},_0x28e84f['exltw']=_0x35d52a(0x1e4),_0x28e84f[_0x35d52a(0x1b5)]='Windows',_0x28e84f[_0x35d52a(0x267)]=function(_0xc0a43b,_0xd4e393){return _0xc0a43b===_0xd4e393;},_0x28e84f[_0x35d52a(0x298)]='darwin',_0x28e84f[_0x35d52a(0x23b)]=_0x35d52a(0x225),_0x28e84f[_0x35d52a(0x194)]=_0x35d52a(0x211),_0x28e84f[_0x35d52a(0x292)]=_0x35d52a(0x206),_0x28e84f[_0x35d52a(0x27b)]=_0x35d52a(0x190);const _0x1d92c9=_0x28e84f;if(_0x1d92c9[_0x35d52a(0x2a0)](process[_0x35d52a(0x1d2)],_0x1d92c9[_0x35d52a(0x1aa)]))return _0x1d92c9[_0x35d52a(0x1b5)];if(_0x1d92c9[_0x35d52a(0x267)](process[_0x35d52a(0x1d2)],_0x1d92c9['YHBbk']))return _0x1d92c9[_0x35d52a(0x23b)];if(_0x1d92c9[_0x35d52a(0x2a0)](process['platform'],_0x1d92c9[_0x35d52a(0x194)]))return _0x1d92c9[_0x35d52a(0x292)];return _0x1d92c9[_0x35d52a(0x27b)];},getMacOSVersion=()=>{const _0x65d4fd=a117_0x11b399,_0x45af82={};_0x45af82[_0x65d4fd(0x27a)]=_0x65d4fd(0x25b);const _0x808469=_0x45af82;return child_process[_0x65d4fd(0x274)](_0x808469[_0x65d4fd(0x27a)])[_0x65d4fd(0x236)]()[_0x65d4fd(0x1cf)]();},getLinuxDetails=()=>{const _0x208ad2={'KKwxp':function(_0x4c979e,_0xb171f8){return _0x4c979e(_0xb171f8);},'IBNCo':function(_0x50a254,_0x3ac37a){return _0x50a254(_0x3ac37a);}};return new Promise((_0x4985c1,_0x46b19d)=>{const _0x54fd5f=a117_0x31fd,_0x5d0938={'uGFmN':function(_0x1951e3,_0x151f62){return _0x208ad2['KKwxp'](_0x1951e3,_0x151f62);},'tMPUL':function(_0x288e41,_0x5f3ebf){const _0x52553e=a117_0x31fd;return _0x208ad2[_0x52553e(0x1b6)](_0x288e41,_0x5f3ebf);}};_0x208ad2[_0x54fd5f(0x291)](getos,(_0xa495d,_0x3ddc26)=>{const _0x44cb6d=_0x54fd5f;if(_0xa495d)return _0x5d0938[_0x44cb6d(0x18d)](_0x46b19d,_0xa495d);_0x5d0938[_0x44cb6d(0x1ac)](_0x4985c1,_0x3ddc26);});});};function a117_0x59eb(){const _0x502aee=['OS\x20X','GcRQa','6gQSnTD','TvbrJ','lXFhE','child_process','appium:app','zzvJG','capabilities','\x20:\x20','NVYrW','release','/builds/','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','lodash','AXKNo','spy','toString','JdXrX','O11yHashedID','parseFileNames','TEST_ATTACHMENT','NgnFF','AssertionError','local_grid','http','map','parse','NTDAR','FvbpL','CUSTOM_TAG','forEach','Error\x20in\x20getting\x20Linux\x20Details','filter','../../helpers/request-spy','JEST','getPlatform','BROWSERSTACK_TESTHUB_JWT','^CUSTOM_TAG_\x5cd+$','O11Y_URL','jest','FNjKE','lGCWO','BROWSERSTACK_CONFIG_FILE_PATH','modifyReqForTraceUpload','buildTag','@cucumber/cucumber','prefix','url','true','agent','headers','bs:addLog:','ObservabilitySync:','awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27','PLAYWRIGHT','wQRzr','includes','match','lMfuD','printBuildLink','mocha','json','application/json','SSFVU','oNBEB','hxCsv','WAGHB','platformVersion','../helper','getUserCredentials','wYupM','annotate','getDefaultHeaders','util','turboScaleGridDetails','Agent','4081PVHywR','MTyxT','execSync','714213gjbVFO','getBuildTags','BROWSERSTACK_TEST_REPORTING','UUSUp','browserstack','tgMaG','UVSZO','default','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','getBrowserName','sendPlatformDetails','\x20]\x20','LogCreated','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','1051707UeCdsl','\x20]\x20Build\x20Not\x20Found\x20%s','map_','rOaXn','rThvQ','data','extractValuesWithRegexKeyMatch','X-BSTACK-TESTOPS','measureWrapper','getBrowserVersion','5560miWPkZ','WIMGG','toJSON','cwd','IBNCo','NXtlk','kwNXV','BS_TESTOPS_BUILD_HASHED_ID','split','BROWSERSTACK_RERUN_TESTS','catch','YHBbk','enLAh','FYKYG','push','bs:addPlatformDetails:','wBzmq','readConfig','CODECEPT','ybFXM','BROWSERSTACK_TEST_OBSERVABILITY','FnMAv','expanded','ppFRi','getPackageVersion','rNGma','Windows','./constants','Visit\x20','jCAMZ','uGFmN','../../bin/v2/browserstackCLI','Qknpm','Unknown','lZAxe','getAccessKey','ATS_HUB_URL_REGEX','cpePz','customTag','isUndefined','emit','../logger','undefined','dlGnU','replace','zcxja','timeout','KDKlP','automate','703910sSFDor','76fFfpTJ','host','log','backtrace','prefixTestPath','wnKmM','zApil','][\x20','4852692WlwLQU','exltw','maxSockets','tMPUL','error','windows-release','nodeRequest','platformName','HUB_URL_REGEX','relativeTestFilePath','debug','lvriZ','JPvME','KKwxp','null','GYMcU','sleep','152170SttwdC','lIskM','keepAlive','asyncAwaitNodeReq','2|0|5|3|4|1','CUCUMBER','uPHZr','getFrameworkVersion','FCvXw','getos','TEST_REPORTING_ANALYTICS','XpuWy','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','hostname','ouODs','Content-Type','Bearer\x20','yYnsI','config','XkTrO','BROWSERSTACK_OBSERVABILITY_DEBUG','trim','getCapabilities','length','platform','@playwright/test','maxTotalSockets','toISOString','stack','jqYLU','format','RlDOa','TEST_REPORTING_BUILD_TAG','MOCHA','35586991LyfOSg','omBzn','TEST_OBSERVABILITY_BUILD_TAG','AKvPN','keys','BbZvc','BROWSERSTACK_TEST_REPORTING_DEBUG','getSyncScript','win32','nzkIU','bstack:options','pid','test','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','BROWSERSTACK_TEST_OBSERVABILITY_YML','UnhandledError','stringify','env','fyyXv','TXwnf','140GXNLdi','winstonLogger','addRequestSpy','uOhBI','../../bin/utils/logPatcher','codeceptjs','yqrkP','lkKNQ','../performance/performance-tester','message','object','dist','nttSu','../../../src/bin/utils/constants','seoGC','getPlatformDetails','rootDir','RiILq','__cloud_provider___','logs','AmxtK','Linux','Authorization','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','app','info','kHTRW','MzWAs','uxmfp','body','XbdvG','getCustomTags','linux','cmDBr','removeAnsiColors','Uploading\x20trace\x20logs\x20to:\x20','LytnB','HTTP','getSession','isTestObservabilitySession','isArray','CODECEPT_CUCUMBER','qHRiK','getFailureType','TEST_PLATFORM','trace','https','silly','failureData','patchConsoleLogger','git-last-commit','SFoFk'];a117_0x59eb=function(){return _0x502aee;};return a117_0x59eb();}exports[a117_0x11b399(0x200)]=async()=>{const _0x33b5e4=a117_0x11b399,_0x2d5246={'enLAh':function(_0x3220be){return _0x3220be();},'jqYLU':'OS\x20X','FNjKE':function(_0x56daaa){return _0x56daaa();},'lXFhE':_0x33b5e4(0x189),'uOhBI':_0x33b5e4(0x1ae),'ZKzoR':_0x33b5e4(0x206),'zIzVd':_0x33b5e4(0x245)};let _0x415f6f=_0x2d5246[_0x33b5e4(0x299)](getPlatformName),_0x380dd1=os['release']()['toString']();switch(_0x415f6f){case _0x2d5246[_0x33b5e4(0x1d7)]:_0x380dd1=_0x2d5246[_0x33b5e4(0x24e)](getMacOSVersion);break;case _0x2d5246[_0x33b5e4(0x229)]:try{const _0x1bfa91=(await import(_0x2d5246[_0x33b5e4(0x1f4)]))[_0x33b5e4(0x27c)];_0x380dd1=_0x2d5246['FNjKE'](_0x1bfa91);}catch(_0x467031){exports[_0x33b5e4(0x1b3)]('Error\x20in\x20importing\x20windows-release\x20'+_0x467031[_0x33b5e4(0x236)]());}break;case _0x2d5246['ZKzoR']:try{const _0x330741=await _0x2d5246['enLAh'](getLinuxDetails);_0x330741['dist']&&(_0x415f6f=_0x330741[_0x33b5e4(0x1fc)]),_0x330741[_0x33b5e4(0x230)]&&(_0x380dd1=_0x330741[_0x33b5e4(0x230)][_0x33b5e4(0x236)]());}catch(_0x39abf9){exports[_0x33b5e4(0x1b3)](_0x2d5246['zIzVd']);}break;default:break;}const _0x3bd4fc={};return _0x3bd4fc[_0x33b5e4(0x1b0)]=_0x415f6f,_0x3bd4fc[_0x33b5e4(0x269)]=_0x380dd1,_0x3bd4fc;},exports[a117_0x11b399(0x221)]=(_0xe77804,_0x4b0e21)=>{const _0x689725=a117_0x11b399,_0x37ce29={};_0x37ce29[_0x689725(0x1df)]=function(_0x516046,_0x5893cc){return _0x516046===_0x5893cc;},_0x37ce29[_0x689725(0x1b4)]=_0x689725(0x1e8),_0x37ce29[_0x689725(0x26c)]=function(_0x54d7a4,_0x43d047){return _0x54d7a4===_0x43d047;},_0x37ce29[_0x689725(0x286)]='err';const _0x1a4a8e=_0x37ce29;if(!_0xe77804)return[];try{if(_0x1a4a8e[_0x689725(0x1df)](_0x4b0e21,_0x1a4a8e[_0x689725(0x1b4)]))return _0xe77804[_0x689725(0x23f)](_0x3d1853=>{const _0x5a4a89=_0x689725,{stack:_0x245a1d,..._0x2ff391}=_0x3d1853,_0x2012f6=Object[_0x5a4a89(0x1e0)](_0x2ff391)['map'](_0x1faa6c=>{return _0x1faa6c+':\x20'+_0x2ff391[_0x1faa6c];}),_0x25bc78=_0x245a1d?exports[_0x5a4a89(0x213)](_0x245a1d)[_0x5a4a89(0x295)](/\r?\n/):[exports[_0x5a4a89(0x213)](_0x3d1853[_0x5a4a89(0x1fa)])],_0x1b72b={};return _0x1b72b['backtrace']=_0x25bc78,_0x1b72b[_0x5a4a89(0x2a3)]=_0x2012f6,_0x1b72b;});else{if(_0x1a4a8e[_0x689725(0x26c)](_0x4b0e21,_0x1a4a8e['rOaXn'])){const _0x35c5dc=[],_0x11d49b=[];return Object[_0x689725(0x1e0)](_0xe77804)[_0x689725(0x244)](_0x2bf18f=>{const _0x3a276e=_0x689725;try{_0x11d49b['push'](_0x2bf18f+':\x20'+_0xe77804[_0x2bf18f]);}catch(_0x32ee6a){exports['debug'](_0x3a276e(0x1e9)+_0x32ee6a[_0x3a276e(0x1fa)]+_0x3a276e(0x22e)+_0x32ee6a[_0x3a276e(0x1a4)]);}}),_0x35c5dc[_0x689725(0x29b)]({'backtrace':exports[_0x689725(0x213)](_0xe77804['stack'])['split'](/\r?\n/),'expanded':_0x11d49b}),_0x35c5dc;}}return[];}catch(_0x2ef82e){exports[_0x689725(0x1b3)](_0x689725(0x1e9)+_0x2ef82e[_0x689725(0x1fa)]+'\x20:\x20'+_0x2ef82e[_0x689725(0x1a4)]);}return[];};class PathHelper{constructor(_0x3160b9,_0x2724bd){const _0x31b1ec=a117_0x11b399;this[_0x31b1ec(0x1cc)]=_0x3160b9,this['prefix']=_0x2724bd;}[a117_0x11b399(0x1b2)](_0x51eaa9){const _0x2fe0e2=a117_0x11b399,_0x30a2eb=this[_0x2fe0e2(0x1cc)][_0x2fe0e2(0x290)]||this[_0x2fe0e2(0x1cc)][_0x2fe0e2(0x201)];return path['relative'](_0x30a2eb,_0x51eaa9);}[a117_0x11b399(0x1a5)](_0x3e4b21){const _0x447aa5=a117_0x11b399,_0x1fb111=this['relativeTestFilePath'](_0x3e4b21);return this[_0x447aa5(0x254)]?path['join'](this[_0x447aa5(0x254)],_0x1fb111):_0x1fb111;}}exports['PathHelper']=PathHelper,exports[a117_0x11b399(0x1f3)]=(_0x13e8a4=!![])=>{const _0x2819fd=a117_0x11b399,_0x5bb293={};_0x5bb293[_0x2819fd(0x1e5)]=function(_0x4dce13,_0x20dc6f){return _0x4dce13===_0x20dc6f;},_0x5bb293[_0x2819fd(0x2a4)]=_0x2819fd(0x28a),_0x5bb293['TXwnf']=_0x2819fd(0x256),_0x5bb293[_0x2819fd(0x1cd)]=_0x2819fd(0x216),_0x5bb293[_0x2819fd(0x241)]=_0x2819fd(0x279),_0x5bb293[_0x2819fd(0x242)]=_0x2819fd(0x23d);const _0x53fc81=_0x5bb293;requestSpy[_0x2819fd(0x235)]((_0x34c1d8,_0x1b9a1f)=>{const _0x37e630=_0x2819fd;_0x1b9a1f&&!(_0x1b9a1f[_0x37e630(0x258)]&&_0x53fc81[_0x37e630(0x1e5)](_0x1b9a1f[_0x37e630(0x258)][_0x53fc81[_0x37e630(0x2a4)]],_0x53fc81[_0x37e630(0x1f0)]))&&(_0x1b9a1f[_0x37e630(0x1a2)]=_0x1b9a1f[_0x37e630(0x1c7)],delete _0x1b9a1f[_0x37e630(0x1c7)],_0x13e8a4&&process['emit'](_0x37e630(0x259)+process[_0x37e630(0x1e7)],{'timestamp':new Date()[_0x37e630(0x1d5)](),'level':null,'message':null,'kind':_0x53fc81[_0x37e630(0x1cd)],'http_response':_0x1b9a1f})),_0x1b9a1f&&(constants[_0x37e630(0x1b1)][_0x37e630(0x1e8)](_0x1b9a1f[_0x37e630(0x1a2)])||constants[_0x37e630(0x193)][_0x37e630(0x1e8)](_0x1b9a1f[_0x37e630(0x1a2)]))?global['__cloud_provider___']=_0x53fc81['NTDAR']:global['__cloud_provider___']=_0x53fc81['FvbpL'];});},exports[a117_0x11b399(0x222)]=()=>{const _0x43552b=a117_0x11b399,_0x46c1fe={'HyMtf':function(_0x23e5c8,_0xf83657){return _0x23e5c8(_0xf83657);}};console={},Object[_0x43552b(0x1e0)](consoleHolder)[_0x43552b(0x244)](_0x5d1f24=>{_0x46c1fe['HyMtf'](isFunction,consoleHolder[_0x5d1f24])?console[_0x5d1f24]=(..._0x2f15a8)=>{const _0xdd576a=a117_0x31fd;try{!Object[_0xdd576a(0x1e0)](BSTestOpsPatcher)[_0xdd576a(0x25e)](_0x5d1f24)?consoleHolder[_0x5d1f24](..._0x2f15a8):BSTestOpsPatcher[_0x5d1f24](..._0x2f15a8);}catch(_0x12faf0){consoleHolder[_0x5d1f24](..._0x2f15a8);}}:console[_0x5d1f24]=consoleHolder[_0x5d1f24];});},exports[a117_0x11b399(0x1e3)]=()=>'browserstack_executor:\x20'+JSON[a117_0x11b399(0x1ed)]({'action':a117_0x11b399(0x26d),'arguments':{'data':a117_0x11b399(0x25a)+Date['now'](),'level':a117_0x11b399(0x1b3)}}),exports['getObservabilityLinkedProductName']=_0x56cae7=>{const _0x33e911=a117_0x11b399,_0x1ed803={};_0x1ed803['RxGWi']=function(_0x5cd56c,_0x277785){return _0x5cd56c===_0x277785;},_0x1ed803['lGCWO']=_0x33e911(0x279),_0x1ed803[_0x33e911(0x1a6)]=_0x33e911(0x22b),_0x1ed803[_0x33e911(0x1d9)]=_0x33e911(0x209),_0x1ed803[_0x33e911(0x1f7)]=function(_0x532da1,_0x4e3fb7){return _0x532da1>_0x4e3fb7;},_0x1ed803['pjyMr']='app-automate',_0x1ed803[_0x33e911(0x1c8)]=_0x33e911(0x1e6),_0x1ed803[_0x33e911(0x202)]=_0x33e911(0x270),_0x1ed803[_0x33e911(0x1fd)]='turboscale',_0x1ed803[_0x33e911(0x25d)]=_0x33e911(0x19f);const _0x39dc20=_0x1ed803;let _0x4c06b6=null;try{if(_0x39dc20['RxGWi'](global[_0x33e911(0x203)],_0x39dc20[_0x33e911(0x24f)])){if(_0x56cae7[_0x39dc20[_0x33e911(0x1a6)]]||_0x56cae7[_0x39dc20['RlDOa']]||!bsSetupHelper[_0x33e911(0x196)](global[_0x33e911(0x22d)])&&_0x39dc20[_0x33e911(0x1f7)](global[_0x33e911(0x22d)][_0x33e911(0x1d1)],0x0)&&(global[_0x33e911(0x22d)][0x0][_0x39dc20[_0x33e911(0x1d9)]]||global[_0x33e911(0x22d)][0x0][_0x39dc20[_0x33e911(0x1a6)]]))_0x4c06b6=_0x39dc20['pjyMr'];else _0x56cae7[_0x39dc20[_0x33e911(0x1c8)]]&&_0x56cae7[_0x39dc20[_0x33e911(0x1c8)]][_0x39dc20[_0x33e911(0x202)]]?_0x4c06b6=_0x39dc20[_0x33e911(0x1fd)]:_0x4c06b6=_0x39dc20[_0x33e911(0x25d)];}}catch(_0x53f58f){exports[_0x33e911(0x1b3)](_0x33e911(0x232)+constants[_0x33e911(0x1c4)]+'\x20test\x20instance\x20:\x20'+_0x53f58f);}return _0x4c06b6;},exports[a117_0x11b399(0x27f)]=async(_0x887ac,_0x195ab9,_0x20b236=![])=>{const _0x2403d8=a117_0x11b399,_0x958225={};_0x958225['pyOih']=function(_0x1ed8fe,_0x55d5f5){return _0x1ed8fe===_0x55d5f5;},_0x958225[_0x2403d8(0x18f)]=_0x2403d8(0x279),_0x958225[_0x2403d8(0x266)]='unknown_grid',_0x958225[_0x2403d8(0x19a)]=_0x2403d8(0x21d);const _0x2c85e3=_0x958225;try{const _0x5a390c=await _0x887ac['getCapabilities'](),_0x9793d3=await _0x887ac[_0x2403d8(0x217)](),_0x89dce8={},_0x1bf728=Object['fromEntries'](_0x9793d3[_0x2403d8(0x1d0)]()[_0x2403d8(0x285)]),_0x3125ff={'product':exports['getObservabilityLinkedProductName'](_0x1bf728),'capabilities':_0x1bf728,'platform':_0x5a390c[_0x2403d8(0x249)](),'platform_version':bsSetupHelper['getPlatformVersion'](_0x2c85e3['pyOih'](global[_0x2403d8(0x203)],_0x2c85e3['Qknpm'])),'browser':_0x5a390c[_0x2403d8(0x27e)](),'browser_version':_0x5a390c[_0x2403d8(0x28c)](),'session_id':_0x9793d3[_0x2403d8(0x28f)]()};global[_0x2403d8(0x203)]?_0x89dce8[global[_0x2403d8(0x203)]]=_0x3125ff:_0x89dce8[_0x2c85e3[_0x2403d8(0x266)]]=_0x3125ff;if(_0x20b236)return _0x89dce8;process[_0x2403d8(0x197)](_0x2403d8(0x29c)+process[_0x2403d8(0x1e7)],{'timestamp':new Date()[_0x2403d8(0x1d5)](),'level':null,'message':null,'kind':_0x2c85e3['dlGnU'],'http_response':_0x89dce8,'uuid':_0x195ab9});}catch(_0x185a64){exports[_0x2403d8(0x1b3)]('Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x185a64);}},exports['isInternalHook']=_0x3ae01f=>{const _0xe76bd9=a117_0x11b399;return _0x3ae01f&&_0x3ae01f[_0xe76bd9(0x236)]()[_0xe76bd9(0x25f)](/browserstack internal helper hook/);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a118_0x55de67=a118_0xbfd4;function a118_0xbfd4(_0x4d1ebc,_0x3c6c1b){var _0x4882dd=a118_0x4882();return a118_0xbfd4=function(_0xbfd4dd,_0x24415f){_0xbfd4dd=_0xbfd4dd-0x78;var _0x39bc21=_0x4882dd[_0xbfd4dd];return _0x39bc21;},a118_0xbfd4(_0x4d1ebc,_0x3c6c1b);}(function(_0x29456a,_0x6dced0){var _0x13be69=a118_0xbfd4,_0x407740=_0x29456a();while(!![]){try{var _0x3d4765=-parseInt(_0x13be69(0x87))/0x1+parseInt(_0x13be69(0x84))/0x2+-parseInt(_0x13be69(0x82))/0x3+parseInt(_0x13be69(0x7d))/0x4+-parseInt(_0x13be69(0x7f))/0x5+-parseInt(_0x13be69(0x80))/0x6*(parseInt(_0x13be69(0x79))/0x7)+parseInt(_0x13be69(0x78))/0x8*(parseInt(_0x13be69(0x7b))/0x9);if(_0x3d4765===_0x6dced0)break;else _0x407740['push'](_0x407740['shift']());}catch(_0x845d95){_0x407740['push'](_0x407740['shift']());}}}(a118_0x4882,0x25c42));var a118_0x4ab550={};function a118_0x4882(){var _0xd7f6a9=['1143835lAWdUn','72eofPJM','testorchestration/api/v1/failed-tests','506403cPZRdI','https://collector-observability.browserstack.com','8860LSpBCs','ORCHESTRATION_API_URL','exports','220616TqQSRe','56DgiGin','48559NQkdQc','testorchestration/api/v1/split-tests','1064970VkuuEK','FAILED_TESTS_ENDPOINT','93512KcpDpB','SPLIT_TESTS_ENDPOINT'];a118_0x4882=function(){return _0xd7f6a9;};return a118_0x4882();}a118_0x4ab550[a118_0x55de67(0x85)]=a118_0x55de67(0x83),a118_0x4ab550[a118_0x55de67(0x7c)]=a118_0x55de67(0x81),a118_0x4ab550[a118_0x55de67(0x7e)]=a118_0x55de67(0x7a),module[a118_0x55de67(0x86)]=a118_0x4ab550;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a119_0x2030(_0x486fe3,_0x4e6a72){const _0x4d82c3=a119_0x4d82();return a119_0x2030=function(_0x203008,_0x1dcd3d){_0x203008=_0x203008-0xe0;let _0x20c067=_0x4d82c3[_0x203008];return _0x20c067;},a119_0x2030(_0x486fe3,_0x4e6a72);}const a119_0x267ff0=a119_0x2030;function a119_0x4d82(){const _0x50b322=['91cYArzF','ms.','lockFilePath','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','getFailedTestsCount','cleanup','muqoO','../logger','readState','urNAB','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','2sgWzuQ','lastAPIFailedCount','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','info','buildRunIdentifier','join','\x0aStack:\x20',']\x20Polling\x20stopped.','length','stack','_initializeStateFromFile','orapN','./requestUtils','Jdalg','kQQhw','BROWSERSTACK_BUILD_RUN_IDENTIFIER','ioroQ','QvwFG','./fileHelper','add','73834OQqwEn','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','workingDir','failFastState.lock','OzhLO','_Local]\x20State\x20initialized\x20from\x20file.','lrDMH','jXQzX','jFMPm','totalTests','pollingInterval','putFailedTests','\x20to\x20API:\x20','2170248nvNJRC','_getDefaultState','UiFmV','McohF','has','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','BROWSERSTACK_TOTAL_NODE_COUNT','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','5366925IAixpZ','kPPhm','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','failFast.active','catch','qDYpG','UgsCc','3SrOeqG','mJsvZ','NIgIW','from','failedTests','MfdhY','_CI]\x20API\x20failed\x20count\x20updated:\x20','fileHelper','_fetchAPIFailedCount','_sendFailedTestsToAPI','vOFdy',',\x20threshold:\x20','Vzlfe','env','ZeeiI','writeState','newState','path','failFastActive','UhLbM','failFastActiveMarkerPath','7674230vfZzXv','iHAGD','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','oipbw','startPolling','passed','YcUpR','_pollFailedTests','failFastConfig','tYVds','uniqueFailedTests','failed','message','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','existsSync','buildName','KADUH','debug','ngPgP',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','ftbaz',',\x20CI\x20Mode:\x20','writeFileSync','\x20(was\x20','recordTestResult','failFastState.json','projectName','stateFilePath','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','2504932XjgUGM','isCIMode','error','toISOString','iOLjW','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','stopPolling','state','size','reportedFailuresToAPI','onTestDone','_CI]\x20Error\x20during\x20polling\x20logic:\x20','7120tSspHj','pkJEc','1037955MARCjb'];a119_0x4d82=function(){return _0x50b322;};return a119_0x4d82();}(function(_0x26514d,_0x3f131a){const _0x52f75e=a119_0x2030,_0xcc67d5=_0x26514d();while(!![]){try{const _0xcbc0a7=parseInt(_0x52f75e(0x10e))/0x1*(parseInt(_0x52f75e(0xf9))/0x2)+parseInt(_0x52f75e(0x12b))/0x3*(parseInt(_0x52f75e(0x15e))/0x4)+parseInt(_0x52f75e(0xed))/0x5+-parseInt(_0x52f75e(0x11c))/0x6+-parseInt(_0x52f75e(0xee))/0x7*(-parseInt(_0x52f75e(0xeb))/0x8)+parseInt(_0x52f75e(0x124))/0x9+-parseInt(_0x52f75e(0x140))/0xa;if(_0xcbc0a7===_0x3f131a)break;else _0xcc67d5['push'](_0xcc67d5['shift']());}catch(_0x4213d6){_0xcc67d5['push'](_0xcc67d5['shift']());}}}(a119_0x4d82,0x5e576));const fs=require('fs'),path=require(a119_0x267ff0(0x13c)),FileHelper=require(a119_0x267ff0(0x10c)),RequestUtils=require(a119_0x267ff0(0x106)),logger=require(a119_0x267ff0(0xf5))['winstonLogger'],POLLING_INTERVAL=0x2710,TAG='FailFastManager';class FailFastManager{constructor(_0x3a60fd,_0x59e265,_0xebf02c){const _0x5eafc9=a119_0x267ff0,_0x277ecf={};_0x277ecf[_0x5eafc9(0x129)]=function(_0x1690d0,_0x524d36){return _0x1690d0+_0x524d36;},_0x277ecf[_0x5eafc9(0x141)]='\x0aStack:\x20',_0x277ecf['lrDMH']=function(_0x2e517c,_0x2d014c){return _0x2e517c||_0x2d014c;},_0x277ecf[_0x5eafc9(0xf7)]=_0x5eafc9(0x15a),_0x277ecf['SdgZL']=_0x5eafc9(0x112),_0x277ecf[_0x5eafc9(0x155)]=_0x5eafc9(0x127);const _0xec0397=_0x277ecf;this[_0x5eafc9(0x149)]=_0xec0397[_0x5eafc9(0x115)](_0x3a60fd,{}),this[_0x5eafc9(0x150)]=_0x59e265,this['projectName']=_0xebf02c,this['isCIMode']=!!(process[_0x5eafc9(0x138)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER']&&process[_0x5eafc9(0x138)]['BROWSERSTACK_NODE_INDEX']&&process[_0x5eafc9(0x138)][_0x5eafc9(0x122)]);const _0x207347=this[_0x5eafc9(0x149)][_0x5eafc9(0x111)];this['stateFilePath']=path[_0x5eafc9(0xff)](_0x207347,_0xec0397['urNAB']),this['lockFilePath']=path[_0x5eafc9(0xff)](_0x207347,_0xec0397['SdgZL']),this[_0x5eafc9(0x13f)]=path[_0x5eafc9(0xff)](_0x207347,_0xec0397['ftbaz']),this[_0x5eafc9(0x132)]=new FileHelper(this[_0x5eafc9(0x149)],this[_0x5eafc9(0x15c)],this[_0x5eafc9(0xf0)],this[_0x5eafc9(0x11d)]()),this[_0x5eafc9(0xe6)]=this[_0x5eafc9(0x11d)](),this[_0x5eafc9(0x119)]=null,this[_0x5eafc9(0xe0)]&&(this['reportedFailuresToAPI']=new Set()),this[_0x5eafc9(0x104)]()[_0x5eafc9(0x128)](_0x5db299=>{const _0x5b7843=_0x5eafc9;logger[_0x5b7843(0xe1)]('['+TAG+_0x5b7843(0x154)+_0x5db299[_0x5b7843(0x14d)]+(_0x5db299['stack']?_0xec0397[_0x5b7843(0x129)](_0xec0397[_0x5b7843(0x141)],_0x5db299[_0x5b7843(0x103)]):'')),this[_0x5b7843(0xe6)]=this[_0x5b7843(0x11d)]();}),this[_0x5eafc9(0xe0)]&&this[_0x5eafc9(0x145)](),logger[_0x5eafc9(0x152)]('['+TAG+']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20'+this[_0x5eafc9(0x149)]['failureThresholdCount']+_0x5eafc9(0x156)+this[_0x5eafc9(0xe0)]);}['_getDefaultState'](){const _0x1927f3={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x1927f3;}async['_initializeStateFromFile'](){const _0x381954=a119_0x267ff0,_0x492fbd={};_0x492fbd[_0x381954(0x107)]=function(_0x3b5225,_0x32a41b){return _0x3b5225+_0x32a41b;},_0x492fbd[_0x381954(0x14a)]=_0x381954(0x100);const _0x4b71b6=_0x492fbd;if(this['isCIMode'])try{fs[_0x381954(0x14f)](this['failFastActiveMarkerPath'])&&(this[_0x381954(0xe6)][_0x381954(0x13d)]=!![],logger[_0x381954(0x152)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.'));}catch(_0x583aea){logger[_0x381954(0xe1)]('['+TAG+_0x381954(0x121)+_0x583aea[_0x381954(0x14d)]+(_0x583aea[_0x381954(0x103)]?_0x4b71b6[_0x381954(0x107)](_0x4b71b6[_0x381954(0x14a)],_0x583aea['stack']):''));}else try{const _0x1fc905=await this[_0x381954(0x132)][_0x381954(0xf6)]();if(_0x1fc905)this[_0x381954(0xe6)]={...this[_0x381954(0x11d)](),..._0x1fc905,'uniqueFailedTests':new Set(_0x1fc905[_0x381954(0x14b)]||[])},logger[_0x381954(0x152)]('['+TAG+_0x381954(0x114));else{logger['debug']('['+TAG+'_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.');const _0x290844=this[_0x381954(0x11d)](),_0x49d4fe={..._0x290844,'uniqueFailedTests':Array[_0x381954(0x12e)](_0x290844[_0x381954(0x14b)])};await this['fileHelper']['writeState'](_0x49d4fe),this[_0x381954(0xe6)]=_0x290844;}}catch(_0x441d4d){logger[_0x381954(0x152)]('['+TAG+_0x381954(0xf1)+_0x441d4d[_0x381954(0x14d)]+(_0x441d4d[_0x381954(0x103)]?_0x4b71b6[_0x381954(0x107)](_0x4b71b6['tYVds'],_0x441d4d[_0x381954(0x103)]):'')),this[_0x381954(0xe6)]=this[_0x381954(0x11d)]();}}async[a119_0x267ff0(0xe9)](_0x200f45,_0x2928cd){const _0x1262d3=a119_0x267ff0,_0x3ca911={};_0x3ca911[_0x1262d3(0xec)]=function(_0x1e41d2,_0x599027){return _0x1e41d2>_0x599027;},_0x3ca911[_0x1262d3(0x137)]=_0x1262d3(0x14c),_0x3ca911[_0x1262d3(0x139)]=_0x1262d3(0x146),_0x3ca911[_0x1262d3(0x12c)]=function(_0x3ba283,_0x36300b){return _0x3ba283+_0x36300b;},_0x3ca911[_0x1262d3(0x113)]=_0x1262d3(0x100),_0x3ca911[_0x1262d3(0x13e)]=function(_0x2d641f,_0x402122){return _0x2d641f||_0x402122;};const _0x599240=_0x3ca911;if(this[_0x1262d3(0xe0)])this[_0x1262d3(0xe6)][_0x1262d3(0x118)]+=0x1,_0x2928cd&&_0x599240[_0x1262d3(0xec)](_0x2928cd[_0x1262d3(0x102)],0x0)&&(!this[_0x1262d3(0xe8)][_0x1262d3(0x120)](_0x200f45)&&(await this[_0x1262d3(0x134)](_0x200f45),this[_0x1262d3(0xe8)][_0x1262d3(0x10d)](_0x200f45)));else try{const _0x1d9999={'fullName':_0x200f45,'status':_0x2928cd&&_0x599240[_0x1262d3(0xec)](_0x2928cd[_0x1262d3(0x102)],0x0)?_0x599240[_0x1262d3(0x137)]:_0x599240[_0x1262d3(0x139)]},_0x22f557=await this['fileHelper'][_0x1262d3(0x159)](_0x1d9999);this[_0x1262d3(0xe6)]={...this['_getDefaultState'](),..._0x22f557['newState'],'uniqueFailedTests':new Set(_0x22f557[_0x1262d3(0x13b)][_0x1262d3(0x14b)]||[])};}catch(_0x4996f5){logger[_0x1262d3(0xe1)]('['+TAG+_0x1262d3(0xe4)+_0x4996f5[_0x1262d3(0x14d)]+(_0x4996f5[_0x1262d3(0x103)]?_0x599240[_0x1262d3(0x12c)](_0x599240['OzhLO'],_0x4996f5[_0x1262d3(0x103)]):''));try{const _0x345bbd=await this[_0x1262d3(0x132)][_0x1262d3(0xf6)]();this[_0x1262d3(0xe6)]={...this['_getDefaultState'](),..._0x599240[_0x1262d3(0x13e)](_0x345bbd,{}),'uniqueFailedTests':new Set(_0x345bbd?_0x345bbd[_0x1262d3(0x14b)]||[]:[])},logger[_0x1262d3(0x152)]('['+TAG+_0x1262d3(0x10f));}catch(_0x4036b2){logger[_0x1262d3(0xe1)]('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0x4036b2['message']+(_0x4036b2[_0x1262d3(0x103)]?_0x599240[_0x1262d3(0x12c)](_0x599240[_0x1262d3(0x113)],_0x4036b2[_0x1262d3(0x103)]):'')),this[_0x1262d3(0xe6)]=this[_0x1262d3(0x11d)]();}}}async[a119_0x267ff0(0x134)](_0x5d32c2){const _0x922bbd=a119_0x267ff0,_0x2df79b={};_0x2df79b['orapN']=function(_0x3b97ee,_0x1776ed){return _0x3b97ee+_0x1776ed;},_0x2df79b[_0x922bbd(0xe3)]='\x0aStack:\x20';const _0x20d616=_0x2df79b;if(!this[_0x922bbd(0xe0)]||!_0x5d32c2)return;try{logger['debug']('['+TAG+'_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20'+_0x5d32c2);const _0x1f18e9={};_0x1f18e9['buildName']=this[_0x922bbd(0x150)],_0x1f18e9[_0x922bbd(0x15b)]=this[_0x922bbd(0x15b)],_0x1f18e9[_0x922bbd(0x12f)]=[_0x5d32c2],_0x1f18e9[_0x922bbd(0xfe)]=process[_0x922bbd(0x138)][_0x922bbd(0x109)],await RequestUtils[_0x922bbd(0x11a)](_0x1f18e9);}catch(_0x6e9dbd){logger[_0x922bbd(0xe1)]('['+TAG+'_CI]\x20Error\x20sending\x20failed\x20test\x20'+_0x5d32c2+_0x922bbd(0x11b)+_0x6e9dbd[_0x922bbd(0x14d)]+(_0x6e9dbd[_0x922bbd(0x103)]?_0x20d616[_0x922bbd(0x105)](_0x20d616[_0x922bbd(0xe3)],_0x6e9dbd[_0x922bbd(0x103)]):''));}}async[a119_0x267ff0(0x133)](){const _0x531b3c=a119_0x267ff0,_0x214651={};_0x214651['oMgTa']=function(_0x5d39f4,_0x283716){return _0x5d39f4===_0x283716;},_0x214651['jXQzX']='number',_0x214651[_0x531b3c(0x135)]=function(_0x3873aa,_0x163819){return _0x3873aa+_0x163819;},_0x214651[_0x531b3c(0x11f)]=_0x531b3c(0x100),_0x214651[_0x531b3c(0x147)]=function(_0x39673e,_0x150328){return _0x39673e!==_0x150328;};const _0x264d32=_0x214651;if(!this[_0x531b3c(0xe0)])return 0x0;try{const _0x58b8fa={};_0x58b8fa['buildName']=this[_0x531b3c(0x150)],_0x58b8fa[_0x531b3c(0x15b)]=this[_0x531b3c(0x15b)],_0x58b8fa[_0x531b3c(0xfe)]=process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];const _0x269982=await RequestUtils[_0x531b3c(0xf2)](_0x58b8fa);return logger[_0x531b3c(0x152)]('['+TAG+'_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20'+_0x269982),_0x264d32['oMgTa'](typeof _0x269982,_0x264d32[_0x531b3c(0x116)])?_0x269982:0x0;}catch(_0x3070b4){return logger[_0x531b3c(0xe1)]('['+TAG+_0x531b3c(0x14e)+_0x3070b4[_0x531b3c(0x14d)]+(_0x3070b4[_0x531b3c(0x103)]?_0x264d32[_0x531b3c(0x135)](_0x264d32['McohF'],_0x3070b4['stack']):'')),_0x264d32[_0x531b3c(0x147)](this[_0x531b3c(0xe6)][_0x531b3c(0xfa)],undefined)?this[_0x531b3c(0xe6)][_0x531b3c(0xfa)]:0x0;}}async[a119_0x267ff0(0x148)](){const _0x390808=a119_0x267ff0,_0x175f6f={};_0x175f6f['UiFmV']=function(_0x1ba03e,_0x20ce98){return _0x1ba03e!==_0x20ce98;},_0x175f6f['NIgIW']=function(_0x2af49b,_0x277406){return _0x2af49b+_0x277406;},_0x175f6f[_0x390808(0x130)]=_0x390808(0x100);const _0x84f76c=_0x175f6f;if(!this[_0x390808(0xe0)])return;try{const _0x5a31bd=await this[_0x390808(0x133)]();_0x84f76c[_0x390808(0x11e)](_0x5a31bd,this[_0x390808(0xe6)][_0x390808(0xfa)])&&(logger[_0x390808(0x152)]('['+TAG+_0x390808(0x131)+_0x5a31bd+_0x390808(0x158)+this[_0x390808(0xe6)]['lastAPIFailedCount']+')'),this[_0x390808(0xe6)]['lastAPIFailedCount']=_0x5a31bd);}catch(_0x6fa092){logger[_0x390808(0xe1)]('['+TAG+_0x390808(0xea)+_0x6fa092[_0x390808(0x14d)]+(_0x6fa092['stack']?_0x84f76c[_0x390808(0x12d)](_0x84f76c[_0x390808(0x130)],_0x6fa092[_0x390808(0x103)]):''));}}async['startPolling'](){const _0x40ec99=a119_0x267ff0,_0x1e4033={'UgsCc':function(_0x18fa47,_0x74720f,_0x4cbc2c){return _0x18fa47(_0x74720f,_0x4cbc2c);}};this[_0x40ec99(0x119)]&&this['stopPolling'](),this[_0x40ec99(0xe0)]&&(await this[_0x40ec99(0x148)](),this[_0x40ec99(0x119)]=_0x1e4033[_0x40ec99(0x12a)](setInterval,async()=>{await this['_pollFailedTests']();},POLLING_INTERVAL),logger[_0x40ec99(0x152)]('['+TAG+'_CI]\x20Polling\x20started\x20with\x20interval:\x20'+POLLING_INTERVAL+_0x40ec99(0xef)));}[a119_0x267ff0(0xe5)](){const _0xa42784=a119_0x267ff0,_0x137937={'oYMNM':function(_0xebb9b3,_0x269a13){return _0xebb9b3(_0x269a13);}};this[_0xa42784(0x119)]&&(_0x137937['oYMNM'](clearInterval,this['pollingInterval']),this['pollingInterval']=null,logger[_0xa42784(0x152)]('['+TAG+_0xa42784(0x101)));}async['shouldFailFast'](){const _0xa798b0=a119_0x267ff0,_0x53d0d4={};_0x53d0d4[_0xa798b0(0x125)]=function(_0x5ba13a,_0x130885){return _0x5ba13a===_0x130885;},_0x53d0d4[_0xa798b0(0x153)]=function(_0x1a1f2a,_0x462755){return _0x1a1f2a<=_0x462755;},_0x53d0d4[_0xa798b0(0x10a)]=function(_0x2e92ac,_0x23d156){return _0x2e92ac+_0x23d156;},_0x53d0d4[_0xa798b0(0x144)]=_0xa798b0(0x100),_0x53d0d4[_0xa798b0(0x108)]=function(_0x54187c,_0x2699d8){return _0x54187c!==_0x2699d8;},_0x53d0d4[_0xa798b0(0xf4)]=function(_0x22b0e8,_0x474021){return _0x22b0e8>=_0x474021;},_0x53d0d4[_0xa798b0(0x10b)]=function(_0x153778,_0x386e2d){return _0x153778>=_0x386e2d;},_0x53d0d4[_0xa798b0(0x117)]=function(_0xd38bdc,_0x26501e){return _0xd38bdc+_0x26501e;};const _0x3ae7c2=_0x53d0d4,{failureThresholdCount:_0x3a5385}=this[_0xa798b0(0x149)];if(_0x3ae7c2[_0xa798b0(0x125)](_0x3a5385,null)||_0x3ae7c2[_0xa798b0(0x125)](_0x3a5385,undefined)||_0x3ae7c2[_0xa798b0(0x153)](_0x3a5385,0x0))return logger[_0xa798b0(0x152)]('['+TAG+_0xa798b0(0xfc)),![];if(this[_0xa798b0(0xe0)]){try{if(fs[_0xa798b0(0x14f)](this[_0xa798b0(0x13f)]))return logger['debug']('['+TAG+_0xa798b0(0xf8)),!this[_0xa798b0(0xe6)]['failFastActive']&&(this[_0xa798b0(0xe6)][_0xa798b0(0x13d)]=!![]),this[_0xa798b0(0xe5)](),!![];}catch(_0x609179){logger[_0xa798b0(0xe1)]('['+TAG+_0xa798b0(0x121)+_0x609179[_0xa798b0(0x14d)]+(_0x609179['stack']?_0x3ae7c2[_0xa798b0(0x10a)](_0x3ae7c2[_0xa798b0(0x144)],_0x609179[_0xa798b0(0x103)]):''));}const _0x280444=_0x3ae7c2['kQQhw'](this['state'][_0xa798b0(0xfa)],undefined)?this['state'][_0xa798b0(0xfa)]:0x0;if(_0x3ae7c2[_0xa798b0(0xf4)](_0x280444,_0x3a5385)){logger[_0xa798b0(0xfd)]('['+TAG+_0xa798b0(0x126)+_0x280444+_0xa798b0(0x136)+_0x3a5385+'.');try{fs[_0xa798b0(0x157)](this[_0xa798b0(0x13f)],new Date()[_0xa798b0(0xe2)]()),logger[_0xa798b0(0x152)]('['+TAG+_0xa798b0(0x143)+this['failFastActiveMarkerPath']),this[_0xa798b0(0xe6)]['failFastActive']=!![];}catch(_0x36e137){logger[_0xa798b0(0xe1)]('['+TAG+_0xa798b0(0x123)+_0x36e137['message']+(_0x36e137[_0xa798b0(0x103)]?_0x3ae7c2['ioroQ'](_0x3ae7c2[_0xa798b0(0x144)],_0x36e137[_0xa798b0(0x103)]):''));}return this[_0xa798b0(0xe5)](),!![];}}else{let _0x20b779;try{_0x20b779=await this[_0xa798b0(0x132)][_0xa798b0(0xf6)]();if(!_0x20b779)return logger['warn']('['+TAG+'_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.'),![];}catch(_0x18e465){return logger[_0xa798b0(0xe1)]('['+TAG+'_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20'+_0x18e465[_0xa798b0(0x14d)]+(_0x18e465['stack']?_0x3ae7c2['ioroQ'](_0x3ae7c2[_0xa798b0(0x144)],_0x18e465[_0xa798b0(0x103)]):'')),![];}this[_0xa798b0(0xe6)]={...this[_0xa798b0(0x11d)](),..._0x20b779,'uniqueFailedTests':new Set(_0x20b779['uniqueFailedTests']||[])};if(this[_0xa798b0(0xe6)][_0xa798b0(0x13d)])return logger['debug']('['+TAG+_0xa798b0(0x142)),!![];const _0x591f8b=this[_0xa798b0(0xe6)][_0xa798b0(0x14b)],_0x5bd127=_0x591f8b[_0xa798b0(0xe7)];if(_0x3ae7c2['QvwFG'](_0x5bd127,_0x3a5385)){try{logger[_0xa798b0(0xfd)]('['+TAG+_0xa798b0(0x110)+_0x5bd127+_0xa798b0(0x136)+_0x3a5385+'.'),this['state'][_0xa798b0(0x13d)]=!![];}catch(_0x5c59d1){logger[_0xa798b0(0xe1)]('['+TAG+'_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20'+_0x5c59d1['message']+(_0x5c59d1[_0xa798b0(0x103)]?_0x3ae7c2[_0xa798b0(0x117)](_0x3ae7c2[_0xa798b0(0x144)],_0x5c59d1['stack']):''));}return!![];}}return![];}async[a119_0x267ff0(0xf3)](){const _0x583af6=a119_0x267ff0,_0x36c285={};_0x36c285[_0x583af6(0x151)]=function(_0x34e169,_0x1ba478){return _0x34e169+_0x1ba478;},_0x36c285['jzvjo']=_0x583af6(0x100);const _0x1619fd=_0x36c285;this[_0x583af6(0xe5)]();if(this[_0x583af6(0xe0)])logger['debug']('['+TAG+'_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.');else try{const _0x2190b3={...this[_0x583af6(0xe6)],'uniqueFailedTests':Array['from'](this[_0x583af6(0xe6)][_0x583af6(0x14b)]||new Set())};await this[_0x583af6(0x132)][_0x583af6(0x13a)](_0x2190b3),logger[_0x583af6(0x152)]('['+TAG+_0x583af6(0x15d));}catch(_0x13fa21){logger[_0x583af6(0xe1)]('['+TAG+_0x583af6(0xfb)+_0x13fa21[_0x583af6(0x14d)]+(_0x13fa21[_0x583af6(0x103)]?_0x1619fd['KADUH'](_0x1619fd['jzvjo'],_0x13fa21[_0x583af6(0x103)]):''));}}}module['exports']=FailFastManager;
|
|
1
|
+
const a119_0x419370=a119_0x27f5;(function(_0xf5bd10,_0x4d03a1){const _0x106633=a119_0x27f5,_0x26fc47=_0xf5bd10();while(!![]){try{const _0x534f20=-parseInt(_0x106633(0x1c8))/0x1+parseInt(_0x106633(0x194))/0x2*(parseInt(_0x106633(0x1dc))/0x3)+-parseInt(_0x106633(0x1c7))/0x4*(-parseInt(_0x106633(0x1b1))/0x5)+parseInt(_0x106633(0x1be))/0x6*(parseInt(_0x106633(0x188))/0x7)+parseInt(_0x106633(0x1e3))/0x8+-parseInt(_0x106633(0x1ce))/0x9+parseInt(_0x106633(0x1b9))/0xa*(-parseInt(_0x106633(0x1ad))/0xb);if(_0x534f20===_0x4d03a1)break;else _0x26fc47['push'](_0x26fc47['shift']());}catch(_0x410347){_0x26fc47['push'](_0x26fc47['shift']());}}}(a119_0x1bf1,0x30c8f));function a119_0x1bf1(){const _0x229ab6=['winstonLogger','_sendFailedTestsToAPI','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','toISOString','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','_CI]\x20API\x20failed\x20count\x20updated:\x20','failedTests','QzuLl','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','reportedFailuresToAPI','15ZfiaQI','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','_Local]\x20State\x20initialized\x20from\x20file.','stopPolling','TMqzQ','failFast.active','uhAbU','1825296WwqxgZ','failFastActiveMarkerPath','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','nnWFS','fileHelper','yLGul','size','projectName','xCphj','getFailedTestsCount','from','nVIGO',',\x20threshold:\x20','BROWSERSTACK_BUILD_RUN_IDENTIFIER','_fetchAPIFailedCount','stack','_CI]\x20Polling\x20started\x20with\x20interval:\x20','startPolling','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','add','hUaHP','failFastActive','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','workingDir','fXgru','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','TvYPC','warn','lastAPIFailedCount','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','exports','readState','lxMzX','CKSTJ','passed','cozCh',',\x20CI\x20Mode:\x20','eVZHF','buildName','stateFilePath',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','FailFastManager','info','uniqueFailedTests','_initializeStateFromFile','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','shouldFailFast','jpOIA','BROWSERSTACK_NODE_INDEX','debug','945iDUdHo','length','_pollFailedTests','FPgsK','putFailedTests','failFastConfig','../logger','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20',']\x20Polling\x20stopped.','failureThresholdCount','kAGrj','JbZtE','108822PMmTXM','has','join','ms.','buildRunIdentifier','pollingInterval','writeFileSync','_getDefaultState','ymsdX','newState',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','PnwTU','MTTGr','writeState','mZAXP','env','\x20to\x20API:\x20','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','qiBUy','cleanup','catch','tVAPP','\x20(was\x20','Sburz','3391487MyzUPQ','recordTestResult','BROWSERSTACK_TOTAL_NODE_COUNT','VJjkx','1636220MPuXvu','LIGNI','state','totalTests','cBpks','pqLls','rumkQ','isCIMode','10yOptCR','IPBAs',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','ymWCx','error','7710ZypSgU','\x0aStack:\x20','VFgPT','NUgwT','number','LWZWq','failFastState.lock','failFastState.json','_CI]\x20Error\x20during\x20polling\x20logic:\x20','4ktydoL','134714kHNGOG','message','existsSync','nDWar','onTestDone','lockFilePath','3222738WZDpyx','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','DEWIu'];a119_0x1bf1=function(){return _0x229ab6;};return a119_0x1bf1();}const fs=require('fs'),path=require('path'),FileHelper=require('./fileHelper'),RequestUtils=require('./requestUtils'),logger=require(a119_0x419370(0x18e))[a119_0x419370(0x1d1)],POLLING_INTERVAL=0x2710,TAG=a119_0x419370(0x20c);function a119_0x27f5(_0xeaeaab,_0xf23068){const _0x1bf135=a119_0x1bf1();return a119_0x27f5=function(_0x27f5fd,_0x36cd4a){_0x27f5fd=_0x27f5fd-0x184;let _0x1f62f2=_0x1bf135[_0x27f5fd];return _0x1f62f2;},a119_0x27f5(_0xeaeaab,_0xf23068);}class FailFastManager{constructor(_0x240006,_0x50cc02,_0x1f5e14){const _0x3782e4=a119_0x419370,_0x224241={};_0x224241[_0x3782e4(0x204)]=function(_0xf9ddb4,_0x59151b){return _0xf9ddb4+_0x59151b;},_0x224241[_0x3782e4(0x1eb)]=_0x3782e4(0x1bf),_0x224241[_0x3782e4(0x1e2)]=function(_0x5de9da,_0xd041a8){return _0x5de9da||_0xd041a8;},_0x224241[_0x3782e4(0x1e8)]=_0x3782e4(0x1c5),_0x224241[_0x3782e4(0x203)]=_0x3782e4(0x1c4),_0x224241['jBxGa']=_0x3782e4(0x1e1);const _0x1e07db=_0x224241;this[_0x3782e4(0x18d)]=_0x1e07db[_0x3782e4(0x1e2)](_0x240006,{}),this[_0x3782e4(0x209)]=_0x50cc02,this[_0x3782e4(0x1ea)]=_0x1f5e14,this[_0x3782e4(0x1b8)]=!!(process[_0x3782e4(0x1a4)][_0x3782e4(0x1f0)]&&process[_0x3782e4(0x1a4)][_0x3782e4(0x186)]&&process[_0x3782e4(0x1a4)][_0x3782e4(0x1af)]);const _0x5c64ae=this[_0x3782e4(0x18d)][_0x3782e4(0x1fa)];this[_0x3782e4(0x20a)]=path[_0x3782e4(0x196)](_0x5c64ae,_0x1e07db[_0x3782e4(0x1e8)]),this[_0x3782e4(0x1cd)]=path[_0x3782e4(0x196)](_0x5c64ae,_0x1e07db['lxMzX']),this[_0x3782e4(0x1e4)]=path['join'](_0x5c64ae,_0x1e07db['jBxGa']),this[_0x3782e4(0x1e7)]=new FileHelper(this[_0x3782e4(0x18d)],this[_0x3782e4(0x20a)],this[_0x3782e4(0x1cd)],this['_getDefaultState']()),this[_0x3782e4(0x1b3)]=this[_0x3782e4(0x19b)](),this[_0x3782e4(0x199)]=null,this[_0x3782e4(0x1b8)]&&(this[_0x3782e4(0x1db)]=new Set()),this[_0x3782e4(0x20f)]()[_0x3782e4(0x1a9)](_0x449a66=>{const _0x597766=_0x3782e4;logger[_0x597766(0x1bd)]('['+TAG+_0x597766(0x19e)+_0x449a66[_0x597766(0x1c9)]+(_0x449a66[_0x597766(0x1f2)]?_0x1e07db[_0x597766(0x204)](_0x1e07db[_0x597766(0x1eb)],_0x449a66[_0x597766(0x1f2)]):'')),this[_0x597766(0x1b3)]=this[_0x597766(0x19b)]();}),this[_0x3782e4(0x1b8)]&&this[_0x3782e4(0x1f4)](),logger[_0x3782e4(0x187)]('['+TAG+_0x3782e4(0x20b)+this['failFastConfig'][_0x3782e4(0x191)]+_0x3782e4(0x207)+this[_0x3782e4(0x1b8)]);}[a119_0x419370(0x19b)](){const _0x3c16e3={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x3c16e3;}async[a119_0x419370(0x20f)](){const _0x2c9191=a119_0x419370,_0x53829f={};_0x53829f[_0x2c9191(0x192)]=function(_0x5c1096,_0x257a6f){return _0x5c1096+_0x257a6f;},_0x53829f[_0x2c9191(0x185)]='\x0aStack:\x20',_0x53829f[_0x2c9191(0x1c1)]=function(_0x214289,_0x41611c){return _0x214289+_0x41611c;};const _0x199417=_0x53829f;if(this['isCIMode'])try{fs[_0x2c9191(0x1ca)](this[_0x2c9191(0x1e4)])&&(this[_0x2c9191(0x1b3)][_0x2c9191(0x1f8)]=!![],logger[_0x2c9191(0x187)]('['+TAG+_0x2c9191(0x19f)));}catch(_0x354438){logger[_0x2c9191(0x1bd)]('['+TAG+_0x2c9191(0x210)+_0x354438[_0x2c9191(0x1c9)]+(_0x354438[_0x2c9191(0x1f2)]?_0x199417['kAGrj'](_0x199417[_0x2c9191(0x185)],_0x354438[_0x2c9191(0x1f2)]):''));}else try{const _0x32e651=await this[_0x2c9191(0x1e7)][_0x2c9191(0x202)]();if(_0x32e651)this[_0x2c9191(0x1b3)]={...this[_0x2c9191(0x19b)](),..._0x32e651,'uniqueFailedTests':new Set(_0x32e651['uniqueFailedTests']||[])},logger['debug']('['+TAG+_0x2c9191(0x1de));else{logger[_0x2c9191(0x187)]('['+TAG+_0x2c9191(0x1d5));const _0x582010=this['_getDefaultState'](),_0x192360={..._0x582010,'uniqueFailedTests':Array[_0x2c9191(0x1ed)](_0x582010[_0x2c9191(0x20e)])};await this[_0x2c9191(0x1e7)][_0x2c9191(0x1a2)](_0x192360),this[_0x2c9191(0x1b3)]=_0x582010;}}catch(_0x5a5e0b){logger[_0x2c9191(0x187)]('['+TAG+_0x2c9191(0x1dd)+_0x5a5e0b[_0x2c9191(0x1c9)]+(_0x5a5e0b[_0x2c9191(0x1f2)]?_0x199417[_0x2c9191(0x1c1)](_0x199417[_0x2c9191(0x185)],_0x5a5e0b[_0x2c9191(0x1f2)]):'')),this['state']=this[_0x2c9191(0x19b)]();}}async[a119_0x419370(0x1cc)](_0x479f83,_0x5e7b01){const _0x32d78b=a119_0x419370,_0x34f178={};_0x34f178[_0x32d78b(0x1a0)]=function(_0x5d92d1,_0x454596){return _0x5d92d1>_0x454596;},_0x34f178[_0x32d78b(0x1bc)]=function(_0x1644db,_0x47d07f){return _0x1644db>_0x47d07f;},_0x34f178[_0x32d78b(0x1b7)]='failed',_0x34f178[_0x32d78b(0x1e0)]=_0x32d78b(0x205),_0x34f178['kcGfP']=function(_0x542288,_0x3c96de){return _0x542288+_0x3c96de;},_0x34f178[_0x32d78b(0x208)]=_0x32d78b(0x1bf),_0x34f178[_0x32d78b(0x18b)]=function(_0x36b30b,_0x2415a8){return _0x36b30b||_0x2415a8;},_0x34f178[_0x32d78b(0x1fd)]=function(_0x511b2c,_0x4d72fc){return _0x511b2c+_0x4d72fc;};const _0xb7ee72=_0x34f178;if(this[_0x32d78b(0x1b8)])this[_0x32d78b(0x1b3)][_0x32d78b(0x1b4)]+=0x1,_0x5e7b01&&_0xb7ee72[_0x32d78b(0x1a0)](_0x5e7b01[_0x32d78b(0x189)],0x0)&&(!this['reportedFailuresToAPI'][_0x32d78b(0x195)](_0x479f83)&&(await this[_0x32d78b(0x1d2)](_0x479f83),this[_0x32d78b(0x1db)][_0x32d78b(0x1f6)](_0x479f83)));else try{const _0x256b5d={'fullName':_0x479f83,'status':_0x5e7b01&&_0xb7ee72[_0x32d78b(0x1bc)](_0x5e7b01[_0x32d78b(0x189)],0x0)?_0xb7ee72['rumkQ']:_0xb7ee72[_0x32d78b(0x1e0)]},_0x59ef15=await this['fileHelper'][_0x32d78b(0x1ae)](_0x256b5d);this['state']={...this[_0x32d78b(0x19b)](),..._0x59ef15[_0x32d78b(0x19d)],'uniqueFailedTests':new Set(_0x59ef15['newState'][_0x32d78b(0x20e)]||[])};}catch(_0x2113ba){logger[_0x32d78b(0x1bd)]('['+TAG+_0x32d78b(0x200)+_0x2113ba[_0x32d78b(0x1c9)]+(_0x2113ba['stack']?_0xb7ee72['kcGfP'](_0xb7ee72['eVZHF'],_0x2113ba[_0x32d78b(0x1f2)]):''));try{const _0x1feedd=await this[_0x32d78b(0x1e7)][_0x32d78b(0x202)]();this[_0x32d78b(0x1b3)]={...this[_0x32d78b(0x19b)](),..._0xb7ee72[_0x32d78b(0x18b)](_0x1feedd,{}),'uniqueFailedTests':new Set(_0x1feedd?_0x1feedd[_0x32d78b(0x20e)]||[]:[])},logger[_0x32d78b(0x187)]('['+TAG+_0x32d78b(0x1e5));}catch(_0x4514ba){logger[_0x32d78b(0x1bd)]('['+TAG+_0x32d78b(0x1cf)+_0x4514ba['message']+(_0x4514ba[_0x32d78b(0x1f2)]?_0xb7ee72[_0x32d78b(0x1fd)](_0xb7ee72[_0x32d78b(0x208)],_0x4514ba[_0x32d78b(0x1f2)]):'')),this[_0x32d78b(0x1b3)]=this['_getDefaultState']();}}}async[a119_0x419370(0x1d2)](_0x2c6c69){const _0x41f499=a119_0x419370,_0x4a69c3={};_0x4a69c3['qiBUy']=function(_0x583eef,_0x3ff15b){return _0x583eef+_0x3ff15b;},_0x4a69c3['MTTGr']=_0x41f499(0x1bf);const _0x3aa994=_0x4a69c3;if(!this['isCIMode']||!_0x2c6c69)return;try{logger[_0x41f499(0x187)]('['+TAG+_0x41f499(0x18f)+_0x2c6c69);const _0x30da8c={};_0x30da8c[_0x41f499(0x209)]=this[_0x41f499(0x209)],_0x30da8c[_0x41f499(0x1ea)]=this['projectName'],_0x30da8c[_0x41f499(0x1d7)]=[_0x2c6c69],_0x30da8c[_0x41f499(0x198)]=process[_0x41f499(0x1a4)][_0x41f499(0x1f0)],await RequestUtils[_0x41f499(0x18c)](_0x30da8c);}catch(_0x2fad88){logger[_0x41f499(0x1bd)]('['+TAG+'_CI]\x20Error\x20sending\x20failed\x20test\x20'+_0x2c6c69+_0x41f499(0x1a5)+_0x2fad88['message']+(_0x2fad88['stack']?_0x3aa994[_0x41f499(0x1a7)](_0x3aa994[_0x41f499(0x1a1)],_0x2fad88[_0x41f499(0x1f2)]):''));}}async[a119_0x419370(0x1f1)](){const _0x48355e=a119_0x419370,_0x3c8d63={};_0x3c8d63[_0x48355e(0x1c3)]=function(_0x18cf2d,_0xca414d){return _0x18cf2d===_0xca414d;},_0x3c8d63[_0x48355e(0x1b2)]=_0x48355e(0x1c2),_0x3c8d63[_0x48355e(0x1cb)]=function(_0x3ae28f,_0x199496){return _0x3ae28f+_0x199496;},_0x3c8d63[_0x48355e(0x19c)]=_0x48355e(0x1bf),_0x3c8d63[_0x48355e(0x1ee)]=function(_0x767a6f,_0x360b2a){return _0x767a6f!==_0x360b2a;};const _0x4db85a=_0x3c8d63;if(!this['isCIMode'])return 0x0;try{const _0x125271={};_0x125271['buildName']=this[_0x48355e(0x209)],_0x125271[_0x48355e(0x1ea)]=this[_0x48355e(0x1ea)],_0x125271['buildRunIdentifier']=process[_0x48355e(0x1a4)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];const _0x266347=await RequestUtils[_0x48355e(0x1ec)](_0x125271);return logger['debug']('['+TAG+_0x48355e(0x1a6)+_0x266347),_0x4db85a[_0x48355e(0x1c3)](typeof _0x266347,_0x4db85a[_0x48355e(0x1b2)])?_0x266347:0x0;}catch(_0x1924c5){return logger['error']('['+TAG+'_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20'+_0x1924c5[_0x48355e(0x1c9)]+(_0x1924c5[_0x48355e(0x1f2)]?_0x4db85a['nDWar'](_0x4db85a['ymsdX'],_0x1924c5[_0x48355e(0x1f2)]):'')),_0x4db85a[_0x48355e(0x1ee)](this[_0x48355e(0x1b3)][_0x48355e(0x1ff)],undefined)?this['state']['lastAPIFailedCount']:0x0;}}async[a119_0x419370(0x18a)](){const _0x4f5e3d=a119_0x419370,_0x3ac1ce={};_0x3ac1ce[_0x4f5e3d(0x1a3)]=function(_0x1c2164,_0x1119f5){return _0x1c2164!==_0x1119f5;},_0x3ac1ce[_0x4f5e3d(0x1ac)]=function(_0x41526a,_0x4e07d0){return _0x41526a+_0x4e07d0;},_0x3ac1ce['DEWIu']=_0x4f5e3d(0x1bf);const _0x4b3281=_0x3ac1ce;if(!this['isCIMode'])return;try{const _0x4dd032=await this[_0x4f5e3d(0x1f1)]();_0x4b3281[_0x4f5e3d(0x1a3)](_0x4dd032,this[_0x4f5e3d(0x1b3)]['lastAPIFailedCount'])&&(logger[_0x4f5e3d(0x187)]('['+TAG+_0x4f5e3d(0x1d6)+_0x4dd032+_0x4f5e3d(0x1ab)+this['state']['lastAPIFailedCount']+')'),this[_0x4f5e3d(0x1b3)][_0x4f5e3d(0x1ff)]=_0x4dd032);}catch(_0x2c25bb){logger[_0x4f5e3d(0x1bd)]('['+TAG+_0x4f5e3d(0x1c6)+_0x2c25bb[_0x4f5e3d(0x1c9)]+(_0x2c25bb[_0x4f5e3d(0x1f2)]?_0x4b3281[_0x4f5e3d(0x1ac)](_0x4b3281[_0x4f5e3d(0x1d0)],_0x2c25bb[_0x4f5e3d(0x1f2)]):''));}}async['startPolling'](){const _0x2afaac=a119_0x419370,_0x53fafe={'IPBAs':function(_0x514b4b,_0x2354ad,_0x1b55c5){return _0x514b4b(_0x2354ad,_0x1b55c5);}};this['pollingInterval']&&this['stopPolling'](),this[_0x2afaac(0x1b8)]&&(await this[_0x2afaac(0x18a)](),this[_0x2afaac(0x199)]=_0x53fafe[_0x2afaac(0x1ba)](setInterval,async()=>{await this['_pollFailedTests']();},POLLING_INTERVAL),logger[_0x2afaac(0x187)]('['+TAG+_0x2afaac(0x1f3)+POLLING_INTERVAL+_0x2afaac(0x197)));}[a119_0x419370(0x1df)](){const _0x52a5d2=a119_0x419370,_0x3d17b4={'hUaHP':function(_0x4f71d4,_0x23f1ab){return _0x4f71d4(_0x23f1ab);}};this['pollingInterval']&&(_0x3d17b4[_0x52a5d2(0x1f7)](clearInterval,this[_0x52a5d2(0x199)]),this[_0x52a5d2(0x199)]=null,logger[_0x52a5d2(0x187)]('['+TAG+_0x52a5d2(0x190)));}async[a119_0x419370(0x184)](){const _0x20d203=a119_0x419370,_0x5c2e34={};_0x5c2e34['VFgPT']=function(_0x4dc620,_0x4b3ef1){return _0x4dc620===_0x4b3ef1;},_0x5c2e34[_0x20d203(0x1fb)]=function(_0x3ac5d5,_0x40c8f4){return _0x3ac5d5===_0x40c8f4;},_0x5c2e34[_0x20d203(0x1aa)]=function(_0x440994,_0x345a72){return _0x440994<=_0x345a72;},_0x5c2e34[_0x20d203(0x1b5)]=function(_0x49de8a,_0x3feac5){return _0x49de8a+_0x3feac5;},_0x5c2e34[_0x20d203(0x1e6)]=_0x20d203(0x1bf),_0x5c2e34[_0x20d203(0x1d8)]=function(_0x594ecc,_0x3afd14){return _0x594ecc!==_0x3afd14;},_0x5c2e34[_0x20d203(0x1b0)]=function(_0x22bb12,_0x507ba9){return _0x22bb12>=_0x507ba9;},_0x5c2e34[_0x20d203(0x206)]=function(_0x19b7f5,_0x392e29){return _0x19b7f5+_0x392e29;};const _0x5640a8=_0x5c2e34,{failureThresholdCount:_0x3abdad}=this[_0x20d203(0x18d)];if(_0x5640a8[_0x20d203(0x1c0)](_0x3abdad,null)||_0x5640a8['fXgru'](_0x3abdad,undefined)||_0x5640a8[_0x20d203(0x1aa)](_0x3abdad,0x0))return logger[_0x20d203(0x187)]('['+TAG+_0x20d203(0x1bb)),![];if(this[_0x20d203(0x1b8)]){try{if(fs[_0x20d203(0x1ca)](this[_0x20d203(0x1e4)]))return logger[_0x20d203(0x187)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.'),!this[_0x20d203(0x1b3)]['failFastActive']&&(this[_0x20d203(0x1b3)][_0x20d203(0x1f8)]=!![]),this['stopPolling'](),!![];}catch(_0x3cef21){logger[_0x20d203(0x1bd)]('['+TAG+_0x20d203(0x210)+_0x3cef21['message']+(_0x3cef21[_0x20d203(0x1f2)]?_0x5640a8[_0x20d203(0x1b5)](_0x5640a8[_0x20d203(0x1e6)],_0x3cef21[_0x20d203(0x1f2)]):''));}const _0x249b1b=_0x5640a8[_0x20d203(0x1d8)](this[_0x20d203(0x1b3)][_0x20d203(0x1ff)],undefined)?this[_0x20d203(0x1b3)]['lastAPIFailedCount']:0x0;if(_0x5640a8[_0x20d203(0x1b0)](_0x249b1b,_0x3abdad)){logger['info']('['+TAG+'_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x249b1b+',\x20threshold:\x20'+_0x3abdad+'.');try{fs[_0x20d203(0x19a)](this[_0x20d203(0x1e4)],new Date()[_0x20d203(0x1d4)]()),logger[_0x20d203(0x187)]('['+TAG+'_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20'+this[_0x20d203(0x1e4)]),this['state'][_0x20d203(0x1f8)]=!![];}catch(_0x60799){logger[_0x20d203(0x1bd)]('['+TAG+_0x20d203(0x1d3)+_0x60799['message']+(_0x60799[_0x20d203(0x1f2)]?_0x5640a8[_0x20d203(0x1b5)](_0x5640a8['nnWFS'],_0x60799[_0x20d203(0x1f2)]):''));}return this[_0x20d203(0x1df)](),!![];}}else{let _0x2074d4;try{_0x2074d4=await this['fileHelper'][_0x20d203(0x202)]();if(!_0x2074d4)return logger[_0x20d203(0x1fe)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.'),![];}catch(_0x21740f){return logger[_0x20d203(0x1bd)]('['+TAG+'_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20'+_0x21740f[_0x20d203(0x1c9)]+(_0x21740f[_0x20d203(0x1f2)]?_0x5640a8[_0x20d203(0x206)](_0x5640a8[_0x20d203(0x1e6)],_0x21740f[_0x20d203(0x1f2)]):'')),![];}this[_0x20d203(0x1b3)]={...this[_0x20d203(0x19b)](),..._0x2074d4,'uniqueFailedTests':new Set(_0x2074d4['uniqueFailedTests']||[])};if(this[_0x20d203(0x1b3)]['failFastActive'])return logger[_0x20d203(0x187)]('['+TAG+_0x20d203(0x1da)),!![];const _0x34166a=this['state'][_0x20d203(0x20e)],_0x166931=_0x34166a[_0x20d203(0x1e9)];if(_0x5640a8[_0x20d203(0x1b0)](_0x166931,_0x3abdad)){try{logger[_0x20d203(0x20d)]('['+TAG+_0x20d203(0x1f9)+_0x166931+_0x20d203(0x1ef)+_0x3abdad+'.'),this[_0x20d203(0x1b3)][_0x20d203(0x1f8)]=!![];}catch(_0xc137f3){logger['error']('['+TAG+_0x20d203(0x1d9)+_0xc137f3[_0x20d203(0x1c9)]+(_0xc137f3[_0x20d203(0x1f2)]?_0x5640a8[_0x20d203(0x1b5)](_0x5640a8[_0x20d203(0x1e6)],_0xc137f3['stack']):''));}return!![];}}return![];}async[a119_0x419370(0x1a8)](){const _0xd97bcc=a119_0x419370,_0x40a67e={};_0x40a67e[_0xd97bcc(0x1b6)]=function(_0x517388,_0x84a34){return _0x517388+_0x84a34;},_0x40a67e['JbZtE']=_0xd97bcc(0x1bf);const _0x356fb3=_0x40a67e;this[_0xd97bcc(0x1df)]();if(this['isCIMode'])logger[_0xd97bcc(0x187)]('['+TAG+'_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.');else try{const _0xcee72a={...this[_0xd97bcc(0x1b3)],'uniqueFailedTests':Array[_0xd97bcc(0x1ed)](this[_0xd97bcc(0x1b3)][_0xd97bcc(0x20e)]||new Set())};await this[_0xd97bcc(0x1e7)][_0xd97bcc(0x1a2)](_0xcee72a),logger[_0xd97bcc(0x187)]('['+TAG+_0xd97bcc(0x1f5));}catch(_0x3b572e){logger[_0xd97bcc(0x1bd)]('['+TAG+_0xd97bcc(0x1fc)+_0x3b572e[_0xd97bcc(0x1c9)]+(_0x3b572e['stack']?_0x356fb3[_0xd97bcc(0x1b6)](_0x356fb3[_0xd97bcc(0x193)],_0x3b572e[_0xd97bcc(0x1f2)]):''));}}}module[a119_0x419370(0x201)]=FailFastManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a120_0xa057bd=a120_0x4c92;function a120_0x22d8(){const _0x4aa13e=['utf8','uniqueFailedTests','21760beNike','68oVGwkT','10xPyMkz','message','writeFileSync','218382FggIkQ','parse','5235390KcSVqM','from','isNewFailure','function','exports','ISWLS','gHatz','oDjuE',']\x20Error\x20writing\x20state\x20file:\x20','winstonLogger','yaYxn','stack','acquireLock','releaseLock','3|2|1|4|0','7gEMIip',']\x20Error\x20releasing\x20lock:\x20','totalTests','EEXIST','writeState','isArray','ewrbl',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.',']\x20Error\x20reading\x20state\x20file:\x20','stringify','openSync','error','lockFilePath','status','ZmnGs','failFastConfig','mOPSB','warn','newState','165861DCEQvW','failedTests','code','fullName','stateFilePath','add','926552uNNsiu',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','defaultState','readState','697188zgNDtS','258467HoijjK','oWxoN'];a120_0x22d8=function(){return _0x4aa13e;};return a120_0x22d8();}function a120_0x4c92(_0x5b4159,_0x560de2){const _0x22d896=a120_0x22d8();return a120_0x4c92=function(_0x4c92ec,_0x3c1cb4){_0x4c92ec=_0x4c92ec-0x16d;let _0x1e94e8=_0x22d896[_0x4c92ec];return _0x1e94e8;},a120_0x4c92(_0x5b4159,_0x560de2);}(function(_0x16371d,_0x304c2b){const _0x1e015=a120_0x4c92,_0x30549e=_0x16371d();while(!![]){try{const _0x12094b=-parseInt(_0x1e015(0x18f))/0x1+parseInt(_0x1e015(0x198))/0x2+-parseInt(_0x1e015(0x184))/0x3+-parseInt(_0x1e015(0x194))/0x4*(-parseInt(_0x1e015(0x193))/0x5)+parseInt(_0x1e015(0x18e))/0x6*(-parseInt(_0x1e015(0x171))/0x7)+-parseInt(_0x1e015(0x18a))/0x8+parseInt(_0x1e015(0x19a))/0x9*(parseInt(_0x1e015(0x195))/0xa);if(_0x12094b===_0x304c2b)break;else _0x30549e['push'](_0x30549e['shift']());}catch(_0x4e9680){_0x30549e['push'](_0x30549e['shift']());}}}(a120_0x22d8,0x357ea));const fs=require('fs'),logger=require('../logger')[a120_0xa057bd(0x1a3)],TAG='FailFastFileHelper';class FileHelper{constructor(_0x8a88ba,_0x12bd95,_0x46398a,_0x16bf3f){const _0x1e8a92=a120_0xa057bd,_0x248675={};_0x248675['ZmnGs']=_0x1e8a92(0x170),_0x248675[_0x1e8a92(0x181)]=_0x1e8a92(0x191);const _0x1a57f4=_0x248675,_0x5668a2=_0x1a57f4[_0x1e8a92(0x17f)]['split']('|');let _0x4466e3=0x0;while(!![]){switch(_0x5668a2[_0x4466e3++]){case'0':if(!fs['existsSync'](this[_0x1e8a92(0x188)]))try{fs[_0x1e8a92(0x197)](this['stateFilePath'],'{}',_0x1a57f4[_0x1e8a92(0x181)]);}catch(_0x5835d0){logger[_0x1e8a92(0x17c)]('['+TAG+']\x20Error\x20creating\x20state\x20file:\x20'+_0x5835d0[_0x1e8a92(0x196)]+'\x20'+_0x5835d0[_0x1e8a92(0x16d)]);}continue;case'1':this[_0x1e8a92(0x17d)]=_0x46398a;continue;case'2':this[_0x1e8a92(0x188)]=_0x12bd95;continue;case'3':this[_0x1e8a92(0x180)]=_0x8a88ba;continue;case'4':this[_0x1e8a92(0x18c)]=_0x16bf3f;continue;}break;}}async[a120_0xa057bd(0x16e)](){const _0xc81f86=a120_0xa057bd,_0x1ef126={};_0x1ef126[_0xc81f86(0x19f)]=function(_0x4fe56c,_0x531677){return _0x4fe56c===_0x531677;},_0x1ef126[_0xc81f86(0x190)]=_0xc81f86(0x174);const _0x4f8bbf=_0x1ef126;let _0x531fa3;try{return _0x531fa3=fs[_0xc81f86(0x17b)](this[_0xc81f86(0x17d)],'wx'),_0x531fa3;}catch(_0x20bd8b){if(_0x4f8bbf['ISWLS'](_0x20bd8b[_0xc81f86(0x186)],_0x4f8bbf['oWxoN']))return null;throw _0x20bd8b;}}async[a120_0xa057bd(0x16f)](_0x3458c7){const _0x1f5f1f=a120_0xa057bd;if(_0x3458c7)try{fs['closeSync'](_0x3458c7),fs['unlinkSync'](this[_0x1f5f1f(0x17d)]);}catch(_0x510615){logger['error']('['+TAG+_0x1f5f1f(0x172)+_0x510615[_0x1f5f1f(0x196)]+'\x20'+_0x510615[_0x1f5f1f(0x16d)]);}}['readState'](){const _0x86f0e5=a120_0xa057bd,_0x476809={};_0x476809[_0x86f0e5(0x1a4)]=_0x86f0e5(0x191);const _0x5234fd=_0x476809;try{const _0x7c5bd4=fs['readFileSync'](this[_0x86f0e5(0x188)],_0x5234fd[_0x86f0e5(0x1a4)]);return JSON['parse'](_0x7c5bd4);}catch(_0x5ada85){return logger[_0x86f0e5(0x17c)]('['+TAG+_0x86f0e5(0x179)+_0x5ada85['message']+'\x20'+_0x5ada85[_0x86f0e5(0x16d)]),null;}}async[a120_0xa057bd(0x175)](_0x5b0b4e){const _0x2ca394=a120_0xa057bd,_0x5ddf71={..._0x5b0b4e,'uniqueFailedTests':Array['isArray'](_0x5b0b4e['uniqueFailedTests'])?_0x5b0b4e['uniqueFailedTests']:Array[_0x2ca394(0x19b)](_0x5b0b4e['uniqueFailedTests']||[])};try{fs['writeFileSync'](this[_0x2ca394(0x188)],JSON['stringify'](_0x5ddf71,null,0x2));}catch(_0x23018d){logger[_0x2ca394(0x17c)]('['+TAG+_0x2ca394(0x1a2)+_0x23018d['message']+'\x20'+_0x23018d['stack']);throw _0x23018d;}}async['recordTestResult'](_0xbdf558,_0x4d6e37){const _0x2da4fc=a120_0xa057bd,_0xcb2c68={};_0xcb2c68[_0x2da4fc(0x1a0)]=function(_0x1fd047,_0x42a8d8){return _0x1fd047!==_0x42a8d8;},_0xcb2c68['CaHRn']=_0x2da4fc(0x19d),_0xcb2c68[_0x2da4fc(0x1a1)]=function(_0x34fbb0,_0x112d7e){return _0x34fbb0===_0x112d7e;},_0xcb2c68[_0x2da4fc(0x177)]='failed';const _0x8e78e7=_0xcb2c68,_0x196e4c=await this[_0x2da4fc(0x16e)]();if(!_0x196e4c)return logger[_0x2da4fc(0x182)]('['+TAG+_0x2da4fc(0x178)),{'newState':this[_0x2da4fc(0x18d)]()||this['defaultState'],'isNewFailure':![]};try{let _0x2b6d78=this[_0x2da4fc(0x18d)]();!_0x2b6d78&&(_0x2b6d78=JSON[_0x2da4fc(0x199)](JSON[_0x2da4fc(0x17a)](this[_0x2da4fc(0x18c)])));if(!_0x2b6d78[_0x2da4fc(0x192)]||_0x8e78e7[_0x2da4fc(0x1a0)](typeof _0x2b6d78[_0x2da4fc(0x192)][Symbol['iterator']],_0x8e78e7['CaHRn']))_0x2b6d78['uniqueFailedTests']=new Set();else Array[_0x2da4fc(0x176)](_0x2b6d78[_0x2da4fc(0x192)])&&(_0x2b6d78[_0x2da4fc(0x192)]=new Set(_0x2b6d78[_0x2da4fc(0x192)]));_0x2b6d78[_0x2da4fc(0x173)]=_0x4d6e37;let _0x16e870=![];_0x8e78e7['oDjuE'](_0xbdf558[_0x2da4fc(0x17e)],_0x8e78e7[_0x2da4fc(0x177)])&&(_0x2b6d78[_0x2da4fc(0x185)]+=0x1,!_0x2b6d78['uniqueFailedTests']['has'](_0xbdf558[_0x2da4fc(0x187)])&&(_0x2b6d78[_0x2da4fc(0x192)][_0x2da4fc(0x189)](_0xbdf558[_0x2da4fc(0x187)]),_0x16e870=!![]));await this[_0x2da4fc(0x175)](_0x2b6d78);const _0x11998d={};return _0x11998d[_0x2da4fc(0x183)]=_0x2b6d78,_0x11998d[_0x2da4fc(0x19c)]=_0x16e870,_0x11998d;}finally{await this[_0x2da4fc(0x16f)](_0x196e4c);}}async['updateAPIFailedCount'](_0x2689f0){const _0x315c4a=a120_0xa057bd,_0x2ed42c=await this[_0x315c4a(0x16e)]();if(!_0x2ed42c)return logger[_0x315c4a(0x182)]('['+TAG+_0x315c4a(0x18b)),this[_0x315c4a(0x18d)]()||this['defaultState'];try{let _0x182632=this[_0x315c4a(0x18d)]();return!_0x182632&&(_0x182632=JSON['parse'](JSON['stringify'](this['defaultState']))),_0x182632['lastAPIFailedCount']=_0x2689f0,await this['writeState'](_0x182632),_0x182632;}finally{await this[_0x315c4a(0x16f)](_0x2ed42c);}}}module[a120_0xa057bd(0x19e)]=FileHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121_0x3c8c57=a121_0x3b50;(function(_0x17ae49,_0x4ed80f){const _0xd8aebc=a121_0x3b50,_0x411e96=_0x17ae49();while(!![]){try{const _0x2d146c=-parseInt(_0xd8aebc(0x191))/0x1+parseInt(_0xd8aebc(0x180))/0x2*(parseInt(_0xd8aebc(0x1b6))/0x3)+parseInt(_0xd8aebc(0x17f))/0x4+-parseInt(_0xd8aebc(0x18c))/0x5+parseInt(_0xd8aebc(0x1b0))/0x6+-parseInt(_0xd8aebc(0x195))/0x7*(parseInt(_0xd8aebc(0x197))/0x8)+-parseInt(_0xd8aebc(0x1a2))/0x9;if(_0x2d146c===_0x4ed80f)break;else _0x411e96['push'](_0x411e96['shift']());}catch(_0xe36fa1){_0x411e96['push'](_0x411e96['shift']());}}}(a121_0x10d2,0x4d314));function a121_0x3b50(_0x4f86c9,_0x5129d6){const _0x10d247=a121_0x10d2();return a121_0x3b50=function(_0x3b5046,_0x469b97){_0x3b5046=_0x3b5046-0x17d;let _0x278301=_0x10d247[_0x3b5046];return _0x278301;},a121_0x3b50(_0x4f86c9,_0x5129d6);}function a121_0x10d2(){const _0x6a9562=['getSkipFlakyAndFailed','getOrchestrationData','join','2396916kLXsPR','BROWSERSTACK_TESTHUB_UUID','name','isRetryEnabled','getBuildStartData','toLowerCase','636zryTFZ','abortBuildOnFailure','tmpdir','_setTestOrdering','retry_tests_on_failure','abort_build_','2347960NsqjPE','4198zNwNbR','_setRerunPreviouslyFailed','runPreviouslyFailedFirst','appendFileSync','abort_build_on_failure','existsSync','testOrderingEnabled','maxRetries','getName','run_previously_failed_first','getRunPreviouslyFailedFirst','UCZhS','1038145BGGdOI','testOrchestrationOptions','getRerunPreviouslyFailed','isAbortBuildOnFailureEnabled','config','135994fqIPiu','getFailureThreshold','getTestOrderingName','getInstance','610519CWmVSB','winstonLogger','40jcuBDI','rerunPreviouslyFailed','getRetryCount','maxFailures','xJMqY','has','path','../logger','rerun_previously_failed','.txt','isAbortBuildOnFailureSupported','3020184aobSBF','exports','env','_instance','_setSkipFlakyAndFailed','testOrdering','enabled','getEnabled','_setRunPreviouslyFailedFirst','skipFlakyAndFailed','disable'];a121_0x10d2=function(){return _0x6a9562;};return a121_0x10d2();}const os=require('os'),path=require(a121_0x3c8c57(0x19d)),fs=require('fs'),logger=require(a121_0x3c8c57(0x19e))[a121_0x3c8c57(0x196)],RETRY_TESTS_ON_FAILURE='retryTestsOnFailure',ABORT_BUILD_ON_FAILURE=a121_0x3c8c57(0x1b7),RUN_PREVIOUSLY_FAILED_FIRST=a121_0x3c8c57(0x182),RERUN_PREVIOUSLY_FAILED=a121_0x3c8c57(0x198),SKIP_FLAKY_AND_FAILED='skipFlakyandFailed',ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set(['jest']);class TestOrdering{constructor(){const _0x5615ea=a121_0x3c8c57;this['enabled']=![],this[_0x5615ea(0x1b2)]=null;}['enable'](_0x5f1b54){const _0x7af149=a121_0x3c8c57;this[_0x7af149(0x1a8)]=!![],this[_0x7af149(0x1b2)]=_0x5f1b54;}[a121_0x3c8c57(0x1ac)](){const _0x3bb5cf=a121_0x3c8c57;this[_0x3bb5cf(0x1a8)]=![],this[_0x3bb5cf(0x1b2)]=null;}[a121_0x3c8c57(0x1a9)](){return this['enabled'];}[a121_0x3c8c57(0x188)](){return this['name'];}}class OrchestrationUtils{static ['_instance']=null;constructor(_0x33a511){const _0x4412a3=a121_0x3c8c57,_0x31c8f0={};_0x31c8f0[_0x4412a3(0x19b)]=function(_0x521e10,_0x431ddc){return _0x521e10||_0x431ddc;};const _0x4303c9=_0x31c8f0;this[_0x4412a3(0x182)]=![],this[_0x4412a3(0x198)]=![],this[_0x4412a3(0x1ab)]=![],this[_0x4412a3(0x1a7)]=new TestOrdering(),this[_0x4412a3(0x190)]=_0x4303c9[_0x4412a3(0x19b)](_0x33a511,{});const _0x4d88fb=_0x33a511&&_0x33a511['testOrchestrationOptions']||{};this[_0x4412a3(0x1aa)](_0x4d88fb[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x4412a3(0x181)](_0x4d88fb[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x4412a3(0x1a6)](_0x4d88fb[SKIP_FLAKY_AND_FAILED]||![]);}static[a121_0x3c8c57(0x194)](_0xc5f965){const _0x891526=a121_0x3c8c57;return!OrchestrationUtils['_instance']&&_0xc5f965&&(OrchestrationUtils[_0x891526(0x1a5)]=new OrchestrationUtils(_0xc5f965)),OrchestrationUtils[_0x891526(0x1a5)];}['isRetryEnabled'](){const _0x49ab62=a121_0x3c8c57,_0x32cdfb=(this[_0x49ab62(0x190)]['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x32cdfb[_0x49ab62(0x1a8)];}[a121_0x3c8c57(0x199)](){const _0x5837f3=a121_0x3c8c57,_0x56470b=(this[_0x5837f3(0x190)][_0x5837f3(0x18d)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x35941f=0x0;return this['isRetryEnabled'](this[_0x5837f3(0x190)])&&(_0x35941f=_0x56470b[_0x5837f3(0x187)]||0x1),_0x35941f;}[a121_0x3c8c57(0x1ae)](){const _0x909544=a121_0x3c8c57,_0x19e907=this[_0x909544(0x190)]['testOrchestrationOptions']||{},_0x2cf912={};for(const _0x227a9e in _0x19e907){ALLOWED_ORCHESTRATION_KEYS[_0x909544(0x19c)](_0x227a9e)&&(_0x2cf912[_0x227a9e]=_0x19e907[_0x227a9e]);}return _0x2cf912;}['checkAbortBuildFileExists'](){const _0x4af0ca=a121_0x3c8c57,_0x549c6b=process['env']['BROWSERSTACK_TESTHUB_UUID'],_0x3e06d8=path['join'](os['tmpdir'](),_0x4af0ca(0x17e)+_0x549c6b);return fs[_0x4af0ca(0x185)](_0x3e06d8);}['writeFailureToFile'](_0x4c8cbd){const _0x289d83=a121_0x3c8c57,_0x2ac558=process[_0x289d83(0x1a4)][_0x289d83(0x1b1)],_0x3d0d73=path[_0x289d83(0x1af)](os[_0x289d83(0x1b8)](),'failed_tests_'+_0x2ac558+_0x289d83(0x1a0));fs[_0x289d83(0x183)](_0x3d0d73,_0x4c8cbd+'\x0a');}[a121_0x3c8c57(0x1a1)](_0x4a8d83){const _0x3eedef=a121_0x3c8c57,_0x33b3c6={};_0x33b3c6['UCZhS']=function(_0x2097be,_0x22e141){return _0x2097be||_0x22e141;};const _0x557e46=_0x33b3c6;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x3eedef(0x19c)](_0x557e46[_0x3eedef(0x18b)](_0x4a8d83,'')[_0x3eedef(0x1b5)]());}[a121_0x3c8c57(0x18f)](){const _0x10f278=a121_0x3c8c57,_0x5f04ce=(this[_0x10f278(0x190)][_0x10f278(0x18d)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x5f04ce[_0x10f278(0x1a8)];}[a121_0x3c8c57(0x192)](){const _0x429e84=a121_0x3c8c57,_0x334387=(this[_0x429e84(0x190)][_0x429e84(0x18d)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x334387[_0x429e84(0x19a)]||0x5;;}['getRunPreviouslyFailedFirst'](){const _0x442e24=a121_0x3c8c57;return this[_0x442e24(0x182)];}[a121_0x3c8c57(0x1aa)](_0x2cdc8b){const _0x2299e1=a121_0x3c8c57;this[_0x2299e1(0x182)]=!!_0x2cdc8b,this['_setTestOrdering']();}[a121_0x3c8c57(0x18e)](){return this['rerunPreviouslyFailed'];}['_setRerunPreviouslyFailed'](_0xf1633f){const _0x117c4d=a121_0x3c8c57;this[_0x117c4d(0x198)]=!!_0xf1633f,this[_0x117c4d(0x1b9)]();}[a121_0x3c8c57(0x1ad)](){const _0xd0be7=a121_0x3c8c57;return this[_0xd0be7(0x1ab)];}[a121_0x3c8c57(0x1a6)](_0x6a6ee3){const _0x4d56c0=a121_0x3c8c57;this[_0x4d56c0(0x1ab)]=!!_0x6a6ee3,this[_0x4d56c0(0x1b9)]();}[a121_0x3c8c57(0x1b9)](){const _0x4d6a8b=a121_0x3c8c57;if(this[_0x4d6a8b(0x182)])this['rerunPreviouslyFailed']=![],this['skipFlakyAndFailed']=![],this[_0x4d6a8b(0x1a7)]['enable'](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x4d6a8b(0x198)])this[_0x4d6a8b(0x182)]=![],this[_0x4d6a8b(0x1ab)]=![],this['testOrdering']['enable'](RERUN_PREVIOUSLY_FAILED);else this[_0x4d6a8b(0x1ab)]?(this[_0x4d6a8b(0x182)]=![],this[_0x4d6a8b(0x198)]=![],this[_0x4d6a8b(0x1a7)]['enable'](SKIP_FLAKY_AND_FAILED)):this[_0x4d6a8b(0x1a7)][_0x4d6a8b(0x1ac)]();}}[a121_0x3c8c57(0x186)](){const _0x5753c2=a121_0x3c8c57;return this[_0x5753c2(0x1a7)][_0x5753c2(0x1a9)]();}[a121_0x3c8c57(0x193)](){const _0x3c2f2e=a121_0x3c8c57;if(this[_0x3c2f2e(0x1a7)]['getEnabled']())return this['testOrdering']['getName']();return null;}[a121_0x3c8c57(0x1b4)](){const _0x1720fb=a121_0x3c8c57,_0x32b844={};return _0x32b844[_0x1720fb(0x19f)]={'enabled':this[_0x1720fb(0x18e)]()},_0x32b844[_0x1720fb(0x189)]={'enabled':this[_0x1720fb(0x18a)]()},_0x32b844['skip_failing_and_flaky']={'enabled':this['getSkipFlakyAndFailed']()},this[_0x1720fb(0x1b3)]()&&(_0x32b844[_0x1720fb(0x17d)]={'enabled':!![],'max_retries':this[_0x1720fb(0x199)]()}),this[_0x1720fb(0x18f)]()&&(_0x32b844[_0x1720fb(0x184)]={'enabled':!![],'max_failures':this[_0x1720fb(0x192)]()}),_0x32b844;}}module[a121_0x3c8c57(0x1a3)]=OrchestrationUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a122_0x580cfc=a122_0x5c29;(function(_0x2fc8ee,_0x1bbeaa){const _0x37cb0e=a122_0x5c29,_0xafcda2=_0x2fc8ee();while(!![]){try{const _0x3d2670=-parseInt(_0x37cb0e(0xf9))/0x1+parseInt(_0x37cb0e(0xcb))/0x2*(parseInt(_0x37cb0e(0xc7))/0x3)+-parseInt(_0x37cb0e(0xe2))/0x4*(parseInt(_0x37cb0e(0xd6))/0x5)+parseInt(_0x37cb0e(0xb9))/0x6+parseInt(_0x37cb0e(0xbd))/0x7+parseInt(_0x37cb0e(0xba))/0x8+-parseInt(_0x37cb0e(0xe0))/0x9;if(_0x3d2670===_0x1bbeaa)break;else _0xafcda2['push'](_0xafcda2['shift']());}catch(_0x181ecf){_0xafcda2['push'](_0xafcda2['shift']());}}}(a122_0x54ab,0x305e8));const https=require(a122_0x580cfc(0xdd)),{URL}=require('url'),logger=require(a122_0x580cfc(0x106))[a122_0x580cfc(0xff)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require('./constants'),TAG=a122_0x580cfc(0xc0);function a122_0x5c29(_0x3c1c95,_0x52b3c8){const _0x54ab79=a122_0x54ab();return a122_0x5c29=function(_0x5c29a7,_0x15e8b1){_0x5c29a7=_0x5c29a7-0xb6;let _0x288b22=_0x54ab79[_0x5c29a7];return _0x288b22;},a122_0x5c29(_0x3c1c95,_0x52b3c8);}class RequestUtils{static async[a122_0x580cfc(0xb6)](_0x41d981,_0x43507c,_0x1ee19f=null){const _0x5a347d=a122_0x580cfc,_0x519395={'YhVVM':function(_0x1e2cef,_0x19aad2){return _0x1e2cef(_0x19aad2);},'PIfvS':_0x5a347d(0xd1),'iYWie':_0x5a347d(0xc3),'NyATN':function(_0x306e36,_0x41a4e8){return _0x306e36(_0x41a4e8);},'juMxn':_0x5a347d(0x101),'DbvUF':function(_0x532a35,_0x41352c){return _0x532a35===_0x41352c;},'zsjiC':_0x5a347d(0xe8),'nXTjr':_0x5a347d(0xd3),'tsVUd':_0x5a347d(0xf3),'WXWpV':function(_0x38c4ac,_0xd783ca){return _0x38c4ac+_0xd783ca;}},_0x572c94=process[_0x5a347d(0x100)][_0x5a347d(0xd7)]||'',_0x49f75d={};_0x49f75d[_0x5a347d(0xd8)]=_0x5a347d(0xc9)+_0x572c94,_0x49f75d[_0x5a347d(0xb7)]=_0x519395[_0x5a347d(0xf5)];const _0x274762=_0x49f75d,{hostname:_0x448013,pathname:_0xa58f90,search:_0x26ad91}=new URL(_0x43507c),_0x40438b={'hostname':_0x448013,'path':_0x519395[_0x5a347d(0xc6)](_0xa58f90,_0x26ad91),'method':_0x41d981,'headers':_0x274762};return logger['debug']('['+TAG+_0x5a347d(0xbf)+_0x41d981+_0x5a347d(0x104)+_0x43507c+_0x5a347d(0xd5)+JSON[_0x5a347d(0xdb)](_0x274762)+'\x20and\x20data:\x20'+JSON[_0x5a347d(0xdb)](_0x1ee19f)+_0x5a347d(0xe4)+_0x572c94),new Promise((_0x50770b,_0x586366)=>{const _0x4b138f=_0x5a347d,_0x1e4b74={'kWjVf':function(_0x2b619d,_0x3257ff){const _0x12608f=a122_0x5c29;return _0x519395[_0x12608f(0xbb)](_0x2b619d,_0x3257ff);},'dCLMB':_0x519395['PIfvS'],'vkhjd':_0x519395[_0x4b138f(0xf8)],'oNjxI':function(_0x18f726,_0x5695b4){const _0x53212e=_0x4b138f;return _0x519395[_0x53212e(0xf4)](_0x18f726,_0x5695b4);}},_0x59e24e=https[_0x4b138f(0x10a)](_0x40438b,_0x5173ad=>{const _0x10299=_0x4b138f,_0x3da4ef={'idMxa':function(_0x8245ef,_0x50f3cf){return _0x1e4b74['kWjVf'](_0x8245ef,_0x50f3cf);}};let _0x43d4bf='';_0x5173ad['on'](_0x1e4b74[_0x10299(0x108)],_0x41faa5=>{_0x43d4bf+=_0x41faa5;}),_0x5173ad['on'](_0x1e4b74[_0x10299(0xdf)],()=>{const _0x1f1504=_0x10299;try{const _0x5aba1a=_0x43d4bf?JSON[_0x1f1504(0xf2)](_0x43d4bf):{},_0xa83d27={};_0xa83d27['status']=_0x5173ad[_0x1f1504(0xc5)],_0xa83d27[_0x1f1504(0xf7)]=_0x5aba1a,_0xa83d27['headers']=_0x5173ad[_0x1f1504(0x10b)],_0x3da4ef[_0x1f1504(0xeb)](_0x50770b,_0xa83d27);}catch(_0x36a14e){logger[_0x1f1504(0x101)]('['+TAG+_0x1f1504(0xe6)+_0x43d4bf+_0x1f1504(0xef)+_0x36a14e['message']+'\x20'+_0x36a14e[_0x1f1504(0xb8)]),_0x3da4ef[_0x1f1504(0xeb)](_0x586366,new Error(_0x1f1504(0xfe)+_0x36a14e[_0x1f1504(0xca)]));}});});_0x59e24e['on'](_0x519395[_0x4b138f(0xf0)],_0x58e71d=>{const _0x6bea85=_0x4b138f;logger[_0x6bea85(0x101)]('['+TAG+_0x6bea85(0xd2)+_0x41d981+'\x20'+_0x43507c+':\x20'+_0x58e71d[_0x6bea85(0xca)]+'\x20'+_0x58e71d[_0x6bea85(0xb8)]),_0x1e4b74[_0x6bea85(0x109)](_0x586366,_0x58e71d);}),_0x1ee19f&&(_0x519395[_0x4b138f(0xea)](_0x41d981,_0x519395['zsjiC'])||_0x519395[_0x4b138f(0xea)](_0x41d981,_0x519395[_0x4b138f(0x105)]))&&_0x59e24e[_0x4b138f(0xd4)](JSON[_0x4b138f(0xdb)](_0x1ee19f)),_0x59e24e[_0x4b138f(0xc3)]();});}static async[a122_0x580cfc(0xc1)](_0x5746d0){const _0x353712=a122_0x580cfc,_0x3eb46d={};_0x3eb46d[_0x353712(0xec)]=_0x353712(0xe8),_0x3eb46d[_0x353712(0xdc)]=function(_0x58061c,_0x3a8a97){return _0x58061c===_0x3a8a97;};const _0x261f68=_0x3eb46d,_0x530dd3=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x57f580=await this[_0x353712(0xb6)](_0x261f68['HowtC'],_0x530dd3,_0x5746d0);return _0x261f68[_0x353712(0xdc)](_0x57f580[_0x353712(0xed)],0xc8)?logger[_0x353712(0xf1)]('['+TAG+_0x353712(0xe9)+_0x530dd3):logger['error']('['+TAG+_0x353712(0xfd)+_0x530dd3+':\x20'+JSON[_0x353712(0xdb)](_0x57f580[_0x353712(0xf7)])+',\x20status:\x20'+_0x57f580['status']),_0x57f580;}catch(_0x320a9b){logger['error']('['+TAG+_0x353712(0xcd)+_0x320a9b[_0x353712(0xca)]+'\x20'+_0x320a9b[_0x353712(0xb8)]);const _0x2f8326={};_0x2f8326[_0x353712(0xca)]=_0x320a9b[_0x353712(0xca)];const _0x3eea1a={};return _0x3eea1a['status']=0x1f4,_0x3eea1a[_0x353712(0xf7)]=_0x2f8326,_0x3eea1a;}}static async[a122_0x580cfc(0x102)](_0x202034){const _0x43174e=a122_0x580cfc,_0x32ceb6={};_0x32ceb6[_0x43174e(0xc4)]=_0x43174e(0xce),_0x32ceb6[_0x43174e(0xda)]=function(_0x2c6c0b,_0x2268ad){return _0x2c6c0b===_0x2268ad;};const _0x5249e3=_0x32ceb6;try{const _0x43adb5=await this['_request'](_0x5249e3['ISGHB'],_0x202034);if(_0x5249e3[_0x43174e(0xda)](_0x43adb5['status'],0xc8))return _0x43adb5[_0x43174e(0xf7)];return{};}catch(_0x569a43){return logger[_0x43174e(0x101)]('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x569a43['message']+'\x20'+_0x569a43[_0x43174e(0xb8)]),{};}}static async['putFailedTests'](_0x269692){const _0xf51b50=a122_0x580cfc,_0x310fae={};_0x310fae['GrCFF']=_0xf51b50(0xd3),_0x310fae[_0xf51b50(0xe5)]=function(_0x7ce9cc,_0x1519ec){return _0x7ce9cc===_0x1519ec;},_0x310fae[_0xf51b50(0xe3)]=_0xf51b50(0xbc);const _0x3bfaac=_0x310fae,_0x5db424=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x2eee88=await this[_0xf51b50(0xb6)](_0x3bfaac[_0xf51b50(0xe1)],_0x5db424,_0x269692);if(_0x3bfaac['cLZyT'](_0x2eee88['status'],0xc8)&&_0x2eee88[_0xf51b50(0xf7)]&&_0x3bfaac[_0xf51b50(0xe5)](_0x2eee88[_0xf51b50(0xf7)][_0xf51b50(0xca)],_0x3bfaac[_0xf51b50(0xe3)]))return!![];return![];}catch(_0x3571bc){logger['error']('['+TAG+_0xf51b50(0xcd)+_0x3571bc['message']+'\x20'+_0x3571bc['stack']);const _0x2dcfe9={};_0x2dcfe9[_0xf51b50(0xca)]=_0x3571bc[_0xf51b50(0xca)];const _0x16387b={};return _0x16387b['status']=0x1f4,_0x16387b['body']=_0x2dcfe9,_0x16387b;}}static async[a122_0x580cfc(0xfa)](_0x4a82e1){const _0x21a882=a122_0x580cfc,_0x4aabad={'UMnFJ':function(_0x342566,_0x55679c){return _0x342566||_0x55679c;},'WPgMZ':'Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','mNUsP':function(_0x37e11b,_0x151896){return _0x37e11b(_0x151896);},'YnQUv':function(_0x4faba7,_0x26e0a2){return _0x4faba7(_0x26e0a2);},'nzNhP':function(_0x3f7d07,_0x2677fa){return _0x3f7d07(_0x2677fa);},'FKcoT':_0x21a882(0xce),'zmfou':function(_0x188547,_0x10d759){return _0x188547===_0x10d759;},'vMZnc':function(_0xcfedef,_0x1b55a2){return _0xcfedef!==_0x1b55a2;},'pfdOK':_0x21a882(0xf6)},{buildName:_0x5eea51,buildRunIdentifier:_0x258665,projectName:_0x41ce99}=_0x4a82e1;if(_0x4aabad[_0x21a882(0xd9)](!_0x5eea51,!_0x258665)||!_0x41ce99){logger[_0x21a882(0x101)]('['+TAG+']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName='+_0x5eea51+_0x21a882(0xee)+_0x258665+_0x21a882(0x107)+_0x41ce99);const _0x17ce5c={};_0x17ce5c[_0x21a882(0xca)]=_0x4aabad['WPgMZ'];const _0x3c93ea={};return _0x3c93ea['status']=0x190,_0x3c93ea[_0x21a882(0xf7)]=_0x17ce5c,_0x3c93ea;}const _0x11419d=_0x21a882(0x103)+_0x4aabad[_0x21a882(0xc2)](encodeURIComponent,_0x5eea51)+'&buildRunIdentifier='+_0x4aabad[_0x21a882(0xbe)](encodeURIComponent,_0x258665)+_0x21a882(0xde)+_0x4aabad[_0x21a882(0xcf)](encodeURIComponent,_0x41ce99),_0x3355fd=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x11419d;try{logger[_0x21a882(0xf1)]('['+TAG+_0x21a882(0xfc)+_0x3355fd);let _0x396a2d=0x0;const _0x3cbb12=await this[_0x21a882(0xb6)](_0x4aabad[_0x21a882(0xfb)],_0x3355fd);return _0x4aabad['zmfou'](_0x3cbb12[_0x21a882(0xed)],0xc8)&&_0x3cbb12['body']&&_0x4aabad['vMZnc'](typeof _0x3cbb12['body'][_0x21a882(0xc8)],_0x4aabad[_0x21a882(0xcc)])&&(_0x396a2d=_0x4aabad[_0x21a882(0xc2)](Number,_0x3cbb12['body'][_0x21a882(0xc8)])),_0x396a2d;}catch(_0xb16c4f){logger[_0x21a882(0x101)]('['+TAG+_0x21a882(0xe7)+_0xb16c4f[_0x21a882(0xca)]+'\x20'+_0xb16c4f['stack']);const _0x54018e={};_0x54018e[_0x21a882(0xca)]=_0xb16c4f[_0x21a882(0xca)];const _0x4b5f40={};return _0x4b5f40['status']=0x1f4,_0x4b5f40[_0x21a882(0xf7)]=_0x54018e,_0x4b5f40;}}}function a122_0x54ab(){const _0xce870f=['Content-Type','stack','901584NxOYRM','711000eeZmeV','YhVVM','Test\x20added','328048aJrrwJ','YnQUv',']\x20Sending\x20','RequestUtils','postSplitFiles','mNUsP','end','ISGHB','statusCode','WXWpV','168486CxyAiq','failedTestsCount','Bearer\x20','message','14tElbIf','pfdOK',']\x20Error\x20in\x20putFailedTests:\x20','GET','nzNhP','exports','data',']\x20Request\x20failed\x20for\x20','PUT','write','\x20with\x20headers:\x20','881405SdpYSP','BROWSERSTACK_TESTHUB_JWT','Authorization','UMnFJ','AcIfD','stringify','DzglU','https','&projectName=','vkhjd','1114533JjFgCH','GrCFF','8TLLBSi','NJTjt','\x20and\x20token:\x20','cLZyT',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20',']\x20Error\x20in\x20getFailedTestsCount:\x20','POST',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','DbvUF','idMxa','HowtC','status',',\x20buildRunIdentifier=','\x20-\x20','juMxn','debug','parse','application/json','NyATN','tsVUd','undefined','body','iYWie','4618TIaKhu','getFailedTestsCount','FKcoT',']\x20Sending\x20GET\x20to\x20',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','Failed\x20to\x20parse\x20JSON\x20response:\x20','winstonLogger','env','error','getSplitFiles','?buildName=','\x20request\x20to\x20','nXTjr','../logger',',\x20projectName=','dCLMB','oNjxI','request','headers','_request'];a122_0x54ab=function(){return _0xce870f;};return a122_0x54ab();}module[a122_0x580cfc(0xd0)]=RequestUtils;
|
|
1
|
+
const a122_0x1d8be0=a122_0x880f;(function(_0x40ad11,_0x32fdb8){const _0x293c0a=a122_0x880f,_0x2f2af0=_0x40ad11();while(!![]){try{const _0x2fb149=-parseInt(_0x293c0a(0x81))/0x1+-parseInt(_0x293c0a(0xb4))/0x2*(parseInt(_0x293c0a(0xbd))/0x3)+parseInt(_0x293c0a(0x95))/0x4+parseInt(_0x293c0a(0xa5))/0x5+parseInt(_0x293c0a(0xc1))/0x6*(parseInt(_0x293c0a(0x7b))/0x7)+parseInt(_0x293c0a(0x78))/0x8*(-parseInt(_0x293c0a(0xa3))/0x9)+parseInt(_0x293c0a(0xc7))/0xa;if(_0x2fb149===_0x32fdb8)break;else _0x2f2af0['push'](_0x2f2af0['shift']());}catch(_0x1ba2d0){_0x2f2af0['push'](_0x2f2af0['shift']());}}}(a122_0x3e4c,0xb4050));const https=require(a122_0x1d8be0(0x7a)),{URL}=require('url'),logger=require(a122_0x1d8be0(0x9b))[a122_0x1d8be0(0x90)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require('./constants'),TAG=a122_0x1d8be0(0xbb);class RequestUtils{static async[a122_0x1d8be0(0xc8)](_0x5edf7b,_0x5d50e2,_0x35c085=null){const _0x3f275f=a122_0x1d8be0,_0x41901c={'vCDSX':function(_0x3a63be,_0x3f4fc1){return _0x3a63be(_0x3f4fc1);},'DILZI':'data','sCviF':_0x3f275f(0xbc),'HwMjI':'error','EFmBm':function(_0x10add1,_0x306de2){return _0x10add1===_0x306de2;},'NaKPH':'POST','fAtGy':function(_0x13321,_0x1dcfee){return _0x13321===_0x1dcfee;},'odtIn':_0x3f275f(0xb2),'agTkd':_0x3f275f(0x98),'VLXKl':function(_0x429372,_0x484dbb){return _0x429372+_0x484dbb;}},_0x3919e5=process[_0x3f275f(0x7f)]['BROWSERSTACK_TESTHUB_JWT']||'',_0x59097c={};_0x59097c['Authorization']=_0x3f275f(0xb7)+_0x3919e5,_0x59097c[_0x3f275f(0x96)]=_0x41901c[_0x3f275f(0xa7)];const _0x18cb4e=_0x59097c,{hostname:_0x20a0a2,pathname:_0x220e6c,search:_0x20b4ee}=new URL(_0x5d50e2),_0xc08188={'hostname':_0x20a0a2,'path':_0x41901c[_0x3f275f(0xa8)](_0x220e6c,_0x20b4ee),'method':_0x5edf7b,'headers':_0x18cb4e};return logger[_0x3f275f(0xc3)]('['+TAG+_0x3f275f(0x92)+_0x5edf7b+_0x3f275f(0xaf)+_0x5d50e2+_0x3f275f(0x9f)+JSON[_0x3f275f(0x77)](_0x18cb4e)+'\x20and\x20data:\x20'+JSON['stringify'](_0x35c085)+_0x3f275f(0xa6)+_0x3919e5),new Promise((_0x13a82a,_0x2b03bc)=>{const _0x41e492=_0x3f275f,_0x15db70={'PZpVj':function(_0x2a130f,_0x22a4c9){const _0x1569f5=a122_0x880f;return _0x41901c[_0x1569f5(0x8e)](_0x2a130f,_0x22a4c9);},'yWoZg':_0x41901c[_0x41e492(0x85)],'NVFfX':_0x41901c[_0x41e492(0x83)]},_0x44a89c=https[_0x41e492(0xa1)](_0xc08188,_0x3b5864=>{const _0x3a7d65=_0x41e492,_0x32f5bf={'UkQib':function(_0x3b577c,_0x51a0aa){const _0x1dded5=a122_0x880f;return _0x15db70[_0x1dded5(0x80)](_0x3b577c,_0x51a0aa);},'IpsRZ':function(_0x324e08,_0x7e8f40){const _0x41bd46=a122_0x880f;return _0x15db70[_0x41bd46(0x80)](_0x324e08,_0x7e8f40);}};let _0x32c3cf='';_0x3b5864['on'](_0x15db70[_0x3a7d65(0xb3)],_0x5eecf7=>{_0x32c3cf+=_0x5eecf7;}),_0x3b5864['on'](_0x15db70[_0x3a7d65(0x89)],()=>{const _0x3dced3=_0x3a7d65;try{const _0x246fa7=_0x32c3cf?JSON[_0x3dced3(0x8d)](_0x32c3cf):{},_0x1d986f={};_0x1d986f[_0x3dced3(0xad)]=_0x3b5864[_0x3dced3(0x7c)],_0x1d986f[_0x3dced3(0xa4)]=_0x246fa7,_0x1d986f[_0x3dced3(0xb5)]=_0x3b5864['headers'],_0x32f5bf[_0x3dced3(0xae)](_0x13a82a,_0x1d986f);}catch(_0x575a91){logger[_0x3dced3(0x8c)]('['+TAG+_0x3dced3(0x9a)+_0x32c3cf+_0x3dced3(0x8a)+_0x575a91[_0x3dced3(0xac)]+'\x20'+_0x575a91['stack']),_0x32f5bf[_0x3dced3(0x91)](_0x2b03bc,new Error('Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x575a91[_0x3dced3(0xac)]));}});});_0x44a89c['on'](_0x41901c['HwMjI'],_0x1d068a=>{const _0x18b34d=_0x41e492;logger[_0x18b34d(0x8c)]('['+TAG+_0x18b34d(0xc4)+_0x5edf7b+'\x20'+_0x5d50e2+':\x20'+_0x1d068a['message']+'\x20'+_0x1d068a['stack']),_0x15db70[_0x18b34d(0x80)](_0x2b03bc,_0x1d068a);}),_0x35c085&&(_0x41901c[_0x41e492(0xa9)](_0x5edf7b,_0x41901c['NaKPH'])||_0x41901c[_0x41e492(0xca)](_0x5edf7b,_0x41901c['odtIn']))&&_0x44a89c[_0x41e492(0xc0)](JSON[_0x41e492(0x77)](_0x35c085)),_0x44a89c[_0x41e492(0xbc)]();});}static async[a122_0x1d8be0(0x7d)](_0x18c2ff){const _0x5da93a=a122_0x1d8be0,_0x2492d3={};_0x2492d3[_0x5da93a(0x87)]='POST',_0x2492d3[_0x5da93a(0xa0)]=function(_0x5e55b2,_0xad1954){return _0x5e55b2===_0xad1954;};const _0x1935d7=_0x2492d3,_0x431fe9=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x49a9e3=await this[_0x5da93a(0xc8)](_0x1935d7['ctiAI'],_0x431fe9,_0x18c2ff);return _0x1935d7[_0x5da93a(0xa0)](_0x49a9e3[_0x5da93a(0xad)],0xc8)?logger[_0x5da93a(0xc3)]('['+TAG+_0x5da93a(0xb9)+_0x431fe9):logger['error']('['+TAG+_0x5da93a(0x82)+_0x431fe9+':\x20'+JSON['stringify'](_0x49a9e3[_0x5da93a(0xa4)])+',\x20status:\x20'+_0x49a9e3[_0x5da93a(0xad)]),_0x49a9e3;}catch(_0x2e0c9e){logger['error']('['+TAG+_0x5da93a(0xc2)+_0x2e0c9e[_0x5da93a(0xac)]+'\x20'+_0x2e0c9e[_0x5da93a(0xc9)]);const _0x3a9e28={};_0x3a9e28[_0x5da93a(0xac)]=_0x2e0c9e[_0x5da93a(0xac)];const _0x20e884={};return _0x20e884[_0x5da93a(0xad)]=0x1f4,_0x20e884[_0x5da93a(0xa4)]=_0x3a9e28,_0x20e884;}}static async[a122_0x1d8be0(0xaa)](_0x284499){const _0x46be1b=a122_0x1d8be0,_0x1dc296={};_0x1dc296[_0x46be1b(0x84)]='GET',_0x1dc296[_0x46be1b(0x99)]=function(_0x575e23,_0x13582a){return _0x575e23===_0x13582a;};const _0x4efbac=_0x1dc296;try{const _0x2b39ef=await this[_0x46be1b(0xc8)](_0x4efbac['JbfPE'],_0x284499);if(_0x4efbac[_0x46be1b(0x99)](_0x2b39ef[_0x46be1b(0xad)],0xc8))return _0x2b39ef[_0x46be1b(0xa4)];return{};}catch(_0x3fc56f){return logger['error']('['+TAG+_0x46be1b(0xc2)+_0x3fc56f['message']+'\x20'+_0x3fc56f[_0x46be1b(0xc9)]),{};}}static async[a122_0x1d8be0(0xc6)](_0x52ff32){const _0x1d60ad=a122_0x1d8be0,_0x33c5d9={};_0x33c5d9['Duerc']=_0x1d60ad(0xb2),_0x33c5d9[_0x1d60ad(0x7e)]=function(_0x1c65c6,_0x4de42e){return _0x1c65c6===_0x4de42e;},_0x33c5d9[_0x1d60ad(0x94)]=function(_0xc4b67f,_0x443c62){return _0xc4b67f===_0x443c62;},_0x33c5d9[_0x1d60ad(0x88)]=_0x1d60ad(0xa2);const _0x3e8ccc=_0x33c5d9,_0x33a0e8=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x575038=await this['_request'](_0x3e8ccc['Duerc'],_0x33a0e8,_0x52ff32);if(_0x3e8ccc[_0x1d60ad(0x7e)](_0x575038[_0x1d60ad(0xad)],0xc8)&&_0x575038[_0x1d60ad(0xa4)]&&_0x3e8ccc[_0x1d60ad(0x94)](_0x575038[_0x1d60ad(0xa4)][_0x1d60ad(0xac)],_0x3e8ccc[_0x1d60ad(0x88)]))return!![];return![];}catch(_0x10c151){logger[_0x1d60ad(0x8c)]('['+TAG+_0x1d60ad(0xc2)+_0x10c151['message']+'\x20'+_0x10c151[_0x1d60ad(0xc9)]);const _0x1e665a={};_0x1e665a[_0x1d60ad(0xac)]=_0x10c151[_0x1d60ad(0xac)];const _0x3f62f1={};return _0x3f62f1[_0x1d60ad(0xad)]=0x1f4,_0x3f62f1[_0x1d60ad(0xa4)]=_0x1e665a,_0x3f62f1;}}static async[a122_0x1d8be0(0x8b)](_0x386035){const _0x327c82=a122_0x1d8be0,_0xe723dd={'szPWX':function(_0x42b8c5,_0x267598){return _0x42b8c5||_0x267598;},'wNSbU':'Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','oukuF':function(_0x2765e7,_0x1aeab6){return _0x2765e7(_0x1aeab6);},'eZJCy':function(_0x4b236c,_0x26b00e){return _0x4b236c(_0x26b00e);},'JSvJa':function(_0x324154,_0x587d79){return _0x324154(_0x587d79);},'ZBsaL':_0x327c82(0xb0),'ZgOxQ':function(_0x54b5f5,_0x250ab3){return _0x54b5f5===_0x250ab3;},'DUsHr':function(_0x414a6e,_0x339763){return _0x414a6e!==_0x339763;},'ueIdu':_0x327c82(0x86)},{buildName:_0x46d756,buildRunIdentifier:_0x43fa5d,projectName:_0x2c655a}=_0x386035;if(_0xe723dd[_0x327c82(0xb8)](!_0x46d756,!_0x43fa5d)||!_0x2c655a){logger[_0x327c82(0x8c)]('['+TAG+_0x327c82(0x97)+_0x46d756+_0x327c82(0xbe)+_0x43fa5d+_0x327c82(0xba)+_0x2c655a);const _0x272709={};_0x272709['message']=_0xe723dd[_0x327c82(0xb1)];const _0x48d0a2={};return _0x48d0a2[_0x327c82(0xad)]=0x190,_0x48d0a2[_0x327c82(0xa4)]=_0x272709,_0x48d0a2;}const _0x4c21c6=_0x327c82(0xc5)+_0xe723dd['oukuF'](encodeURIComponent,_0x46d756)+_0x327c82(0x9c)+_0xe723dd['eZJCy'](encodeURIComponent,_0x43fa5d)+'&projectName='+_0xe723dd['JSvJa'](encodeURIComponent,_0x2c655a),_0x42f418=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x4c21c6;try{logger[_0x327c82(0xc3)]('['+TAG+_0x327c82(0xab)+_0x42f418);let _0x48f307=0x0;const _0xd15b30=await this['_request'](_0xe723dd[_0x327c82(0x8f)],_0x42f418);return _0xe723dd['ZgOxQ'](_0xd15b30[_0x327c82(0xad)],0xc8)&&_0xd15b30[_0x327c82(0xa4)]&&_0xe723dd[_0x327c82(0x93)](typeof _0xd15b30[_0x327c82(0xa4)][_0x327c82(0x9e)],_0xe723dd[_0x327c82(0xb6)])&&(_0x48f307=_0xe723dd[_0x327c82(0x9d)](Number,_0xd15b30['body'][_0x327c82(0x9e)])),_0x48f307;}catch(_0xdd54a9){logger[_0x327c82(0x8c)]('['+TAG+_0x327c82(0xbf)+_0xdd54a9[_0x327c82(0xac)]+'\x20'+_0xdd54a9[_0x327c82(0xc9)]);const _0xde23c3={};_0xde23c3[_0x327c82(0xac)]=_0xdd54a9['message'];const _0x4ce89c={};return _0x4ce89c[_0x327c82(0xad)]=0x1f4,_0x4ce89c['body']=_0xde23c3,_0x4ce89c;}}}function a122_0x880f(_0x4a310b,_0x5e21cf){const _0x3e4c8b=a122_0x3e4c();return a122_0x880f=function(_0x880f73,_0x175fb9){_0x880f73=_0x880f73-0x77;let _0x569ce6=_0x3e4c8b[_0x880f73];return _0x569ce6;},a122_0x880f(_0x4a310b,_0x5e21cf);}function a122_0x3e4c(){const _0x375497=['DNnxM','NVFfX','\x20-\x20','getFailedTestsCount','error','parse','vCDSX','ZBsaL','winstonLogger','IpsRZ',']\x20Sending\x20','DUsHr','jnazT','2206380oRCjok','Content-Type',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','application/json','UVlsO',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','../logger','&buildRunIdentifier=','oukuF','failedTestsCount','\x20with\x20headers:\x20','fzYjq','request','Test\x20added','1273491aneafy','body','6469590eeKDoQ','\x20and\x20token:\x20','agTkd','VLXKl','EFmBm','getSplitFiles',']\x20Sending\x20GET\x20to\x20','message','status','UkQib','\x20request\x20to\x20','GET','wNSbU','PUT','yWoZg','2hjcQFP','headers','ueIdu','Bearer\x20','szPWX',']\x20Successfully\x20posted\x20split\x20files\x20to\x20',',\x20projectName=','RequestUtils','end','2018913fSknwD',',\x20buildRunIdentifier=',']\x20Error\x20in\x20getFailedTestsCount:\x20','write','6gpvjly',']\x20Error\x20in\x20putFailedTests:\x20','debug',']\x20Request\x20failed\x20for\x20','?buildName=','putFailedTests','5342170TURnHP','_request','stack','fAtGy','stringify','56hnczYx','exports','https','4088875LsMedi','statusCode','postSplitFiles','uLOmh','env','PZpVj','563031Ezgpjw',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','sCviF','JbfPE','DILZI','undefined','ctiAI'];a122_0x3e4c=function(){return _0x375497;};return a122_0x3e4c();}module[a122_0x1d8be0(0x79)]=RequestUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a123_0x415210=a123_0x5205;(function(_0x2bc809,_0x6d5c29){const _0x4038cc=a123_0x5205,_0x41ddf8=_0x2bc809();while(!![]){try{const _0x34862a=parseInt(_0x4038cc(0x97))/0x1+parseInt(_0x4038cc(0x9f))/0x2+parseInt(_0x4038cc(0xbc))/0x3*(parseInt(_0x4038cc(0xdf))/0x4)+-parseInt(_0x4038cc(0xcc))/0x5*(parseInt(_0x4038cc(0xf6))/0x6)+parseInt(_0x4038cc(0xcd))/0x7*(-parseInt(_0x4038cc(0xd2))/0x8)+-parseInt(_0x4038cc(0xa4))/0x9*(parseInt(_0x4038cc(0xac))/0xa)+parseInt(_0x4038cc(0xcf))/0xb*(parseInt(_0x4038cc(0xa3))/0xc);if(_0x34862a===_0x6d5c29)break;else _0x41ddf8['push'](_0x41ddf8['shift']());}catch(_0x3645e7){_0x41ddf8['push'](_0x41ddf8['shift']());}}}(a123_0xe4f6,0x350fa));const logger=require('../logger')[a123_0x415210(0xf9)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require('../helper'),TestOrderingServerHandler=require(a123_0x415210(0xa8)),OrchestrationUtils=require('./orchestrationUtils'),path=require(a123_0x415210(0xbd)),{spawnSync}=require(a123_0x415210(0x94)),micromatch=require('micromatch'),fs=require('fs');class TestOrchestrationHandler{constructor(_0xbc8d9){const _0x35f565=a123_0x415210,_0x38d709={};_0x38d709[_0x35f565(0xd5)]=_0x35f565(0x98);const _0x263881=_0x38d709,_0x4e1510=_0x263881[_0x35f565(0xd5)][_0x35f565(0xf3)]('|');let _0x582693=0x0;while(!![]){switch(_0x4e1510[_0x582693++]){case'0':this[_0x35f565(0xdc)]();continue;case'1':this[_0x35f565(0xf2)]=new OrchestrationUtils(_0xbc8d9);continue;case'2':this['orderingInstrumentationData']={};continue;case'3':this['testOrderingApplied']=![];continue;case'4':this[_0x35f565(0xba)]=_0xbc8d9;continue;case'5':this[_0x35f565(0xde)]=null;continue;}break;}}['isTestOrchestrationEnabled'](){const _0x58d2f7=a123_0x415210,_0x58bc16={'FrDrR':function(_0x33c0f3,_0x59fe90){return _0x33c0f3(_0x59fe90);},'rEhap':function(_0x301de9,_0x5d98e9){return _0x301de9(_0x5d98e9);},'TCaEN':function(_0x4c3007,_0xb14f79){return _0x4c3007(_0xb14f79);},'XaVtR':function(_0x3c5431,_0x3e3d8d){return _0x3c5431(_0x3e3d8d);},'TVlVq':function(_0x46d9d3,_0x2101ff){return _0x46d9d3(_0x2101ff);},'HmHXF':function(_0x26e278,_0x493a82){return _0x26e278&&_0x493a82;}},_0x30dd9c=_0x58bc16[_0x58d2f7(0xda)](isNotUndefined,this[_0x58d2f7(0xba)])&&(_0x58bc16['rEhap'](isUndefined,this[_0x58d2f7(0xba)][_0x58d2f7(0xf1)])||_0x58bc16[_0x58d2f7(0xe2)](isTrueString,this['config'][_0x58d2f7(0xf1)])),_0x1aea04=this[_0x58d2f7(0xf2)][_0x58d2f7(0xb7)](),_0x24910f=_0x58bc16[_0x58d2f7(0xda)](isNotUndefined,this[_0x58d2f7(0xba)])&&_0x58bc16[_0x58d2f7(0xc3)](isNotUndefined,this[_0x58d2f7(0xba)][_0x58d2f7(0xd9)]),_0x4ab421=_0x58bc16['TVlVq'](isNotUndefined,this[_0x58d2f7(0xba)])&&_0x58bc16['rEhap'](isNotUndefined,this[_0x58d2f7(0xba)][_0x58d2f7(0xc5)]);return _0x58bc16[_0x58d2f7(0xcb)](_0x30dd9c,_0x1aea04)&&_0x24910f&&_0x4ab421;}[a123_0x415210(0xdc)](){const _0x24dc2d=a123_0x415210,_0x3bf080={};_0x3bf080[_0x24dc2d(0xb2)]='Test\x20orchestration\x20with\x20test\x20ordering\x20enabled',_0x3bf080[_0x24dc2d(0xf7)]=_0x24dc2d(0xb8);const _0x434418=_0x3bf080;this[_0x24dc2d(0x9b)]()?(this[_0x24dc2d(0xde)]=new TestOrderingServerHandler(this[_0x24dc2d(0xba)]),logger[_0x24dc2d(0xee)](_0x434418[_0x24dc2d(0xb2)])):(logger[_0x24dc2d(0xb1)](_0x434418[_0x24dc2d(0xf7)]),this['logTestOrderingChecks']());}[a123_0x415210(0xb0)](){const _0x5ad766=a123_0x415210,_0x4c8338={'iINIm':function(_0x15389a,_0x1094cc){return _0x15389a(_0x1094cc);},'qrbcW':_0x5ad766(0xa7),'HZJoM':function(_0x3cd190,_0x25a3de){return _0x3cd190(_0x25a3de);},'QiHbj':function(_0x29a2b8,_0x15e638){return _0x29a2b8(_0x15e638);},'qWrmb':_0x5ad766(0x92)};if(!this[_0x5ad766(0xc7)]())return;(!_0x4c8338['iINIm'](isNotUndefined,this[_0x5ad766(0xba)])||!_0x4c8338['iINIm'](isNotUndefined,this[_0x5ad766(0xba)][_0x5ad766(0xc5)])||!_0x4c8338[_0x5ad766(0x93)](isNotUndefined,this['config'][_0x5ad766(0xd9)]))&&logger[_0x5ad766(0xee)](_0x4c8338[_0x5ad766(0xb5)]),_0x4c8338[_0x5ad766(0x93)](isNotUndefined,this[_0x5ad766(0xba)])&&_0x4c8338['HZJoM'](isNotUndefined,this[_0x5ad766(0xba)][_0x5ad766(0xf1)])&&!_0x4c8338[_0x5ad766(0x8f)](isTrueString,this[_0x5ad766(0xba)][_0x5ad766(0xf1)])&&logger['info'](_0x4c8338[_0x5ad766(0xc2)]);}[a123_0x415210(0xc7)](){const _0x1bcc1b=a123_0x415210;return!this[_0x1bcc1b(0x9b)]()&&this[_0x1bcc1b(0xf2)]['testOrderingEnabled']();}['isTestOrderingApplied'](){const _0x6c1462=a123_0x415210;return this[_0x6c1462(0xb4)];}['setTestOrderingApplied'](_0x56fce7){const _0x390be8=a123_0x415210,_0x5706c7={};_0x5706c7[_0x390be8(0xe4)]='applied';const _0x5758ae=_0x5706c7;this[_0x390be8(0xb4)]=_0x56fce7,this[_0x390be8(0xa1)](_0x5758ae['dmGKx'],_0x56fce7);}[a123_0x415210(0xa1)](_0x45b09c,_0x1dd882){const _0x4fa657=a123_0x415210;this[_0x4fa657(0xe3)][_0x45b09c]=_0x1dd882;}[a123_0x415210(0x96)](){const _0x24881c=a123_0x415210;return this[_0x24881c(0xe3)];}['updateBuildIdentifier'](){const _0x5a7c50=a123_0x415210,_0x128688={'gIGsG':function(_0x30bd4c,_0x1d6b8e){return _0x30bd4c(_0x1d6b8e);},'GcFsr':function(_0x33646e,_0x5c9059){return _0x33646e>_0x5c9059;}},_0x176546=_0x128688[_0x5a7c50(0xc4)](parseInt,process[_0x5a7c50(0xa9)][_0x5a7c50(0xed)]||'1'),_0x45dd95=process[_0x5a7c50(0xa9)][_0x5a7c50(0xd6)];_0x45dd95&&_0x128688['GcFsr'](_0x176546,0x1)&&(logger[_0x5a7c50(0xb1)](_0x5a7c50(0xbe)+_0x45dd95),this[_0x5a7c50(0xba)][_0x5a7c50(0xbf)]=_0x45dd95);}async[a123_0x415210(0xc0)](_0x21e341){const _0x54e689=a123_0x415210,_0x38265b={'VqtdD':function(_0x1c4c69,_0x29644b){return _0x1c4c69===_0x29644b;},'IDEzl':function(_0x505cd1,_0x5c9792){return _0x505cd1===_0x5c9792;},'nAJZB':_0x54e689(0xe6),'CHhFX':function(_0x46bd36,_0x3b0266){return _0x46bd36(_0x3b0266);},'MvoZu':_0x54e689(0xaf),'ufBlh':_0x54e689(0x9e),'rYnXs':_0x54e689(0xad),'FvtzF':'downloadedTestFilesCount','mNNCf':'splitTestsAPICallCount'};try{if(!_0x21e341||!Array['isArray'](_0x21e341)||_0x38265b[_0x54e689(0xa6)](_0x21e341['length'],0x0))return null;if(_0x38265b[_0x54e689(0xd0)](this[_0x54e689(0x9b)](),![]))return logger[_0x54e689(0xb1)](_0x38265b[_0x54e689(0xd3)]),null;let _0x2dbaec=null;const _0x29aff8=this['orchestrationUtils'][_0x54e689(0x99)]();if(this[_0x54e689(0xde)]){const _0x3f5066=await this[_0x54e689(0xde)]['splitTests'](_0x21e341,_0x29aff8);if(!_0x3f5066)return null;_0x2dbaec=await this[_0x54e689(0xde)][_0x54e689(0xf0)](_0x3f5066);}if(!_0x2dbaec||!Array['isArray'](_0x2dbaec)||_0x38265b[_0x54e689(0xa6)](_0x2dbaec[_0x54e689(0xef)],0x0))return null;const _0x4b9521=_0x38265b['CHhFX'](parseInt,process[_0x54e689(0xa9)][_0x54e689(0xb9)]||'0'),_0x45509b=_0x38265b[_0x54e689(0xdb)](parseInt,process['env'][_0x54e689(0xed)]||'1');return this[_0x54e689(0xa1)](_0x38265b[_0x54e689(0xb6)],_0x21e341['length']),this['addToOrderingInstrumentationData'](_0x38265b[_0x54e689(0x8d)],_0x4b9521),this[_0x54e689(0xa1)](_0x38265b[_0x54e689(0xd4)],_0x45509b),this[_0x54e689(0xa1)](_0x38265b['FvtzF'],_0x2dbaec['length']),this[_0x54e689(0xa1)](_0x38265b[_0x54e689(0x90)],this['testOrderingServerHandler']?this[_0x54e689(0xde)][_0x54e689(0xc9)]():0x0),_0x2dbaec[_0x54e689(0xf8)](_0xb16990=>sanitizedFilePath(_0xb16990));}catch(_0x4ee2f4){return logger['debug']('[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20'+(_0x4ee2f4[_0x54e689(0xe9)]||_0x4ee2f4[_0x54e689(0xbb)]())),null;}}async[a123_0x415210(0xae)](_0x30f7a6,_0x4674c5,_0x50c12a){const _0x49f5bd=a123_0x415210,_0x1dadd4={'sKTWq':function(_0x1b29c0,_0x854899){return _0x1b29c0(_0x854899);},'vOrnW':_0x49f5bd(0x95),'sFKtE':function(_0x260a8f,_0x4a2791){return _0x260a8f(_0x4a2791);},'KmLph':_0x49f5bd(0xe7),'lLozc':function(_0x46a6ac,_0x37d7e5){return _0x46a6ac(_0x37d7e5);},'YUPyU':'jest-runner','bkitB':function(_0x2bab39,_0x251848){return _0x2bab39(_0x251848);},'RXPnS':_0x49f5bd(0xe5),'efmVF':_0x49f5bd(0xce),'GCejg':'**/?(*.)+(spec|test).[jt]s?(x)','bZcMw':function(_0x3a538e,_0x4a467f,_0x2421b8,_0x40a32e){return _0x3a538e(_0x4a467f,_0x2421b8,_0x40a32e);},'mjuPT':_0x49f5bd(0xc6),'vqTUy':_0x49f5bd(0x9a),'ZNydj':'--config','LUwNN':'--listTests','GREJw':_0x49f5bd(0xe1)};try{const {getTestPathPatterns:_0x43b0d9}=_0x1dadd4[_0x49f5bd(0xab)](require,_0x1dadd4['vOrnW']),{globsToMatcher:_0x32b344}=_0x1dadd4[_0x49f5bd(0xd1)](require,_0x1dadd4['KmLph']),{findRelatedTests:_0x709079}=_0x1dadd4[_0x49f5bd(0xa0)](require,_0x1dadd4[_0x49f5bd(0xc1)]),_0x215483=_0x1dadd4['bkitB'](require,_0x1dadd4[_0x49f5bd(0xea)]),_0xd0b784=_0x30f7a6[_0x49f5bd(0xc8)]||[_0x1dadd4[_0x49f5bd(0xa2)],_0x1dadd4[_0x49f5bd(0x8e)]],_0x39ec2a=_0x30f7a6[_0x49f5bd(0xf4)]||[],_0x2349e8=_0x1dadd4[_0x49f5bd(0x9d)](spawnSync,_0x1dadd4[_0x49f5bd(0xd8)],[_0x1dadd4[_0x49f5bd(0xdd)],_0x1dadd4[_0x49f5bd(0xf5)],_0x50c12a,..._0x4674c5,_0x1dadd4[_0x49f5bd(0x9c)]],{'encoding':_0x1dadd4['GREJw']});let _0xac1d7d=[];!_0x2349e8[_0x49f5bd(0xd7)]&&(_0xac1d7d=_0x2349e8[_0x49f5bd(0xe0)]['split']('\x0a')[_0x49f5bd(0x91)](Boolean));logger[_0x49f5bd(0xb1)]('Found\x20test\x20files:\x20'+JSON['stringify'](_0xac1d7d)+_0x49f5bd(0xeb));const _0x5b3ee3={};_0x5b3ee3[_0x49f5bd(0xec)]=!![],_0x5b3ee3[_0x49f5bd(0xaa)]=_0x39ec2a;const _0x158883=_0x1dadd4[_0x49f5bd(0x9d)](micromatch,_0xac1d7d,_0xd0b784,_0x5b3ee3)[_0x49f5bd(0xf8)](_0x3e1681=>path[_0x49f5bd(0xb3)](_0x30f7a6['rootDir'],_0x3e1681));return logger['debug']('Filterted\x20to\x20test\x20files:\x20'+JSON[_0x49f5bd(0xa5)](_0x158883)+_0x49f5bd(0xeb)),_0x158883;}catch(_0x527288){return logger['debug'](_0x49f5bd(0xe8)+_0x527288),[];}}}function a123_0x5205(_0x300629,_0x1ba8a1){const _0xe4f6ce=a123_0xe4f6();return a123_0x5205=function(_0x5205e9,_0x190a26){_0x5205e9=_0x5205e9-0x8d;let _0x3f921f=_0xe4f6ce[_0x5205e9];return _0x3f921f;},a123_0x5205(_0x300629,_0x1ba8a1);}module[a123_0x415210(0xca)]=TestOrchestrationHandler;function a123_0xe4f6(){const _0x5436d3=['TCaEN','orderingInstrumentationData','dmGKx','glob','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','jest-util','Error\x20finding\x20test\x20files:\x20','stack','RXPnS','\x20files','matchBase','BROWSERSTACK_TOTAL_NODE_COUNT','info','length','getOrderedTestFiles','testObservability','orchestrationUtils','split','testPathIgnorePatterns','ZNydj','4164NpgHpE','zVvpZ','map','winstonLogger','ufBlh','GCejg','QiHbj','mNNCf','filter','Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','iINIm','child_process','jest-config','getOrderingInstrumentationData','59897ifroRQ','4|2|3|5|1|0','getTestOrderingName','jest','isTestOrchestrationEnabled','LUwNN','bZcMw','nodeIndex','479748FKxHJC','lLozc','addToOrderingInstrumentationData','efmVF','12YMtSAX','312462xUSKbf','stringify','VqtdD','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','./testOrderingServerHandler','env','ignore','sKTWq','20alMfhK','totalNodes','findTestFiles','uploadedTestFilesCount','logTestOrderingChecks','debug','dnQhN','relative','testOrderingApplied','qrbcW','MvoZu','testOrderingEnabled','Test\x20orchestration\x20without\x20test\x20ordering','BROWSERSTACK_NODE_INDEX','config','toString','12CuwRil','path','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','buildIdentifier','reorderTestFiles','YUPyU','qWrmb','XaVtR','gIGsG','buildName','npx','_shouldLogTestOrderingChecks','testMatch','getSplitTestsAPICallCount','exports','HmHXF','1045jIXTlC','40096mOYfeo','**/__tests__/**/*.[jt]s?(x)','2620519cIQMpw','IDEzl','sFKtE','456mwFoOD','nAJZB','rYnXs','TyTnS','BROWSERSTACK_BUILD_RUN_IDENTIFIER','error','mjuPT','projectName','FrDrR','CHhFX','_initializeTestOrdering','vqTUy','testOrderingServerHandler','220316NeaLNn','stdout','utf-8'];a123_0xe4f6=function(){return _0x5436d3;};return a123_0xe4f6();}
|
|
1
|
+
const a123_0x1de22c=a123_0x2e5b;(function(_0x19bac9,_0x538225){const _0x2aba65=a123_0x2e5b,_0xe68c53=_0x19bac9();while(!![]){try{const _0x58e726=-parseInt(_0x2aba65(0x129))/0x1+parseInt(_0x2aba65(0x16f))/0x2+parseInt(_0x2aba65(0x146))/0x3+-parseInt(_0x2aba65(0x169))/0x4*(parseInt(_0x2aba65(0x124))/0x5)+parseInt(_0x2aba65(0x148))/0x6*(-parseInt(_0x2aba65(0x151))/0x7)+parseInt(_0x2aba65(0x171))/0x8*(parseInt(_0x2aba65(0x159))/0x9)+-parseInt(_0x2aba65(0x11c))/0xa;if(_0x58e726===_0x538225)break;else _0xe68c53['push'](_0xe68c53['shift']());}catch(_0x3498cf){_0xe68c53['push'](_0xe68c53['shift']());}}}(a123_0x1785,0x32c70));const logger=require(a123_0x1de22c(0x157))[a123_0x1de22c(0x122)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a123_0x1de22c(0x10b)),TestOrderingServerHandler=require('./testOrderingServerHandler'),OrchestrationUtils=require('./orchestrationUtils'),path=require(a123_0x1de22c(0x14c)),{spawnSync}=require(a123_0x1de22c(0x143)),micromatch=require(a123_0x1de22c(0x140)),fs=require('fs');function a123_0x1785(){const _0x30bcd4=['gkWxN','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','jest-util','buildIdentifier','754950nihxjv','getTestOrderingName','4296JTPjxK','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','logTestOrderingChecks','testOrderingApplied','toString','CmqIz','testMatch','IEyhY','testObservability','../helper','euDgD','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','HzUNS','ZfGvp','ZIzdK','projectName','Found\x20test\x20files:\x20','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','4|0|5|3|1|2','stringify','orchestrationUtils','isArray','Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','splitTests','fvvxl','YaOlM','1916360fBiEda','testOrderingEnabled','split','jest-runner','applied','isTestOrchestrationEnabled','winstonLogger','_shouldLogTestOrderingChecks','208730sEuLAb','KqGEx','ignore','--listTests','totalNodes','174335dcTTSG','stdout','BVZAY','rootDir','Error\x20finding\x20test\x20files:\x20','kvcon','WxbJu','guoJk','AyhRp','filter','npx','RxAJe','VfXyv','BROWSERSTACK_NODE_INDEX','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','setTestOrderingApplied','EcjKs','getOrderedTestFiles','addToOrderingInstrumentationData','VZhSy','mqyNm','error','rsPGq','micromatch','map','orderingInstrumentationData','child_process','iNpZa','yjfLB','631485zUMrkp','findTestFiles','108cIQSfW','updateBuildIdentifier','mXKgb','buildName','path','reorderTestFiles','irOOf','\x20files','uvCuk','33243KwSLFY','_initializeTestOrdering','ATyub','yIEoK','lwheU','relative','../logger','nodeIndex','6795WtKHtK','AJIse','exports','downloadedTestFilesCount','Ehhes','length','yUmsL','RziDa','BROWSERSTACK_TOTAL_NODE_COUNT','info','BROWSERSTACK_BUILD_RUN_IDENTIFIER','env','testOrderingServerHandler','matchBase','stack','debug','32wTOXsR','config'];a123_0x1785=function(){return _0x30bcd4;};return a123_0x1785();}class TestOrchestrationHandler{constructor(_0x381525){const _0xfa7df7=a123_0x1de22c,_0x27c363={};_0x27c363[_0xfa7df7(0x145)]=_0xfa7df7(0x114);const _0x3a3f5c=_0x27c363,_0x385c89=_0x3a3f5c[_0xfa7df7(0x145)][_0xfa7df7(0x11e)]('|');let _0x4a37b9=0x0;while(!![]){switch(_0x385c89[_0x4a37b9++]){case'0':this[_0xfa7df7(0x142)]={};continue;case'1':this[_0xfa7df7(0x116)]=new OrchestrationUtils(_0x381525);continue;case'2':this[_0xfa7df7(0x152)]();continue;case'3':this[_0xfa7df7(0x165)]=null;continue;case'4':this[_0xfa7df7(0x16a)]=_0x381525;continue;case'5':this[_0xfa7df7(0x105)]=![];continue;}break;}}['isTestOrchestrationEnabled'](){const _0x2bd8ca=a123_0x1de22c,_0x1b4236={'irOOf':function(_0x5d06df,_0x35392c){return _0x5d06df(_0x35392c);},'RziDa':function(_0x50c040,_0x41163d){return _0x50c040(_0x41163d);},'ZIzdK':function(_0x7367f7,_0x56ec4c){return _0x7367f7(_0x56ec4c);},'yUmsL':function(_0x3201ae,_0x3e1833){return _0x3201ae(_0x3e1833);},'hEXkH':function(_0x31c56e,_0xca7923){return _0x31c56e(_0xca7923);},'mXKgb':function(_0x251e9f,_0x36b867){return _0x251e9f(_0x36b867);},'qJjen':function(_0x32b532,_0x4d1cb1){return _0x32b532&&_0x4d1cb1;}},_0x27e267=_0x1b4236[_0x2bd8ca(0x14e)](isNotUndefined,this[_0x2bd8ca(0x16a)])&&(_0x1b4236[_0x2bd8ca(0x160)](isUndefined,this['config']['testObservability'])||_0x1b4236[_0x2bd8ca(0x110)](isTrueString,this[_0x2bd8ca(0x16a)][_0x2bd8ca(0x10a)])),_0x2705c9=this[_0x2bd8ca(0x116)][_0x2bd8ca(0x11d)](),_0x3f32df=_0x1b4236[_0x2bd8ca(0x15f)](isNotUndefined,this[_0x2bd8ca(0x16a)])&&_0x1b4236['hEXkH'](isNotUndefined,this[_0x2bd8ca(0x16a)][_0x2bd8ca(0x111)]),_0x4e00b7=_0x1b4236[_0x2bd8ca(0x14e)](isNotUndefined,this['config'])&&_0x1b4236[_0x2bd8ca(0x14a)](isNotUndefined,this['config'][_0x2bd8ca(0x14b)]);return _0x1b4236['qJjen'](_0x27e267,_0x2705c9)&&_0x3f32df&&_0x4e00b7;}[a123_0x1de22c(0x152)](){const _0x503dc4=a123_0x1de22c,_0x5371eb={};_0x5371eb[_0x503dc4(0x131)]=_0x503dc4(0x137),_0x5371eb['yIEoK']='Test\x20orchestration\x20without\x20test\x20ordering';const _0x343261=_0x5371eb;this[_0x503dc4(0x121)]()?(this[_0x503dc4(0x165)]=new TestOrderingServerHandler(this['config']),logger[_0x503dc4(0x162)](_0x343261[_0x503dc4(0x131)])):(logger[_0x503dc4(0x168)](_0x343261[_0x503dc4(0x154)]),this['logTestOrderingChecks']());}[a123_0x1de22c(0x104)](){const _0x4f1866=a123_0x1de22c,_0x18c6e2={'EcjKs':function(_0x19ce55,_0x4fbde3){return _0x19ce55(_0x4fbde3);},'zhmou':function(_0x3bd564,_0x3d320b){return _0x3bd564(_0x3d320b);},'fnzvm':function(_0x13b7da,_0x33529c){return _0x13b7da(_0x33529c);},'PyTyk':_0x4f1866(0x10d),'fvvxl':function(_0x12901f,_0x28de01){return _0x12901f(_0x28de01);},'gkWxN':function(_0x3ad462,_0x5aa4d1){return _0x3ad462(_0x5aa4d1);},'CmqIz':_0x4f1866(0x118)};if(!this[_0x4f1866(0x123)]())return;(!_0x18c6e2[_0x4f1866(0x139)](isNotUndefined,this[_0x4f1866(0x16a)])||!_0x18c6e2['zhmou'](isNotUndefined,this['config'][_0x4f1866(0x14b)])||!_0x18c6e2['fnzvm'](isNotUndefined,this[_0x4f1866(0x16a)][_0x4f1866(0x111)]))&&logger['info'](_0x18c6e2['PyTyk']),_0x18c6e2['fnzvm'](isNotUndefined,this['config'])&&_0x18c6e2[_0x4f1866(0x11a)](isNotUndefined,this[_0x4f1866(0x16a)]['testObservability'])&&!_0x18c6e2[_0x4f1866(0x16b)](isTrueString,this['config'][_0x4f1866(0x10a)])&&logger[_0x4f1866(0x162)](_0x18c6e2[_0x4f1866(0x107)]);}[a123_0x1de22c(0x123)](){const _0x55a141=a123_0x1de22c;return!this[_0x55a141(0x121)]()&&this['orchestrationUtils']['testOrderingEnabled']();}['isTestOrderingApplied'](){const _0x1ad112=a123_0x1de22c;return this[_0x1ad112(0x105)];}[a123_0x1de22c(0x138)](_0x3cd92d){const _0x494d78=a123_0x1de22c,_0x5762bd={};_0x5762bd[_0x494d78(0x155)]=_0x494d78(0x120);const _0x17a054=_0x5762bd;this[_0x494d78(0x105)]=_0x3cd92d,this[_0x494d78(0x13b)](_0x17a054['lwheU'],_0x3cd92d);}[a123_0x1de22c(0x13b)](_0x41a20c,_0x113c3f){this['orderingInstrumentationData'][_0x41a20c]=_0x113c3f;}['getOrderingInstrumentationData'](){const _0xa8cb64=a123_0x1de22c;return this[_0xa8cb64(0x142)];}[a123_0x1de22c(0x149)](){const _0x48e706=a123_0x1de22c,_0x3a2331={'ATyub':function(_0x527ec0,_0xe81a9a){return _0x527ec0(_0xe81a9a);},'iNpZa':function(_0x4fd3e8,_0x39376c){return _0x4fd3e8>_0x39376c;}},_0xce2110=_0x3a2331[_0x48e706(0x153)](parseInt,process[_0x48e706(0x164)][_0x48e706(0x161)]||'1'),_0x3df5f6=process[_0x48e706(0x164)][_0x48e706(0x163)];_0x3df5f6&&_0x3a2331[_0x48e706(0x144)](_0xce2110,0x1)&&(logger[_0x48e706(0x168)](_0x48e706(0x16c)+_0x3df5f6),this[_0x48e706(0x16a)][_0x48e706(0x16e)]=_0x3df5f6);}async[a123_0x1de22c(0x14d)](_0x41783f){const _0xaa916b=a123_0x1de22c,_0x239fec={'guoJk':function(_0x36a152,_0x3e8458){return _0x36a152===_0x3e8458;},'ZrAPf':_0xaa916b(0x103),'WxbJu':function(_0x3503ba,_0x5ebf71){return _0x3503ba(_0x5ebf71);},'BVZAY':'uploadedTestFilesCount','IEyhY':_0xaa916b(0x158),'HzUNS':_0xaa916b(0x128),'YaOlM':_0xaa916b(0x15c),'VZhSy':'splitTestsAPICallCount'};try{if(!_0x41783f||!Array['isArray'](_0x41783f)||_0x239fec['guoJk'](_0x41783f[_0xaa916b(0x15e)],0x0))return null;if(_0x239fec[_0xaa916b(0x130)](this[_0xaa916b(0x121)](),![]))return logger[_0xaa916b(0x168)](_0x239fec['ZrAPf']),null;let _0x1e5569=null;const _0x43994f=this[_0xaa916b(0x116)][_0xaa916b(0x170)]();if(this['testOrderingServerHandler']){const _0x269a4=await this['testOrderingServerHandler'][_0xaa916b(0x119)](_0x41783f,_0x43994f);if(!_0x269a4)return null;_0x1e5569=await this[_0xaa916b(0x165)][_0xaa916b(0x13a)](_0x269a4);}if(!_0x1e5569||!Array[_0xaa916b(0x117)](_0x1e5569)||_0x239fec[_0xaa916b(0x130)](_0x1e5569[_0xaa916b(0x15e)],0x0))return null;const _0x287e2d=_0x239fec[_0xaa916b(0x12f)](parseInt,process['env'][_0xaa916b(0x136)]||'0'),_0x3f7af6=_0x239fec['WxbJu'](parseInt,process[_0xaa916b(0x164)][_0xaa916b(0x161)]||'1');return this['addToOrderingInstrumentationData'](_0x239fec[_0xaa916b(0x12b)],_0x41783f[_0xaa916b(0x15e)]),this['addToOrderingInstrumentationData'](_0x239fec[_0xaa916b(0x109)],_0x287e2d),this[_0xaa916b(0x13b)](_0x239fec[_0xaa916b(0x10e)],_0x3f7af6),this[_0xaa916b(0x13b)](_0x239fec[_0xaa916b(0x11b)],_0x1e5569[_0xaa916b(0x15e)]),this[_0xaa916b(0x13b)](_0x239fec[_0xaa916b(0x13c)],this[_0xaa916b(0x165)]?this[_0xaa916b(0x165)]['getSplitTestsAPICallCount']():0x0),_0x1e5569[_0xaa916b(0x141)](_0x57a52d=>sanitizedFilePath(_0x57a52d));}catch(_0x222f27){return logger['debug'](_0xaa916b(0x113)+(_0x222f27[_0xaa916b(0x167)]||_0x222f27[_0xaa916b(0x106)]())),null;}}async[a123_0x1de22c(0x147)](_0x21b748,_0x5e4f96,_0xd6d9b0){const _0x36e480=a123_0x1de22c,_0x2bc685={'Ehhes':function(_0x3b46d8,_0x2806db){return _0x3b46d8(_0x2806db);},'RxAJe':'jest-config','KqGEx':_0x36e480(0x16d),'YFuQX':function(_0x14fdc2,_0x207fa9){return _0x14fdc2(_0x207fa9);},'uvCuk':_0x36e480(0x11f),'VfXyv':function(_0x1bc018,_0x2ab11c){return _0x1bc018(_0x2ab11c);},'KyRAO':'glob','kvcon':'**/__tests__/**/*.[jt]s?(x)','euDgD':'**/?(*.)+(spec|test).[jt]s?(x)','vhfLj':function(_0x44b429,_0x47d5d2,_0x2a0c8b,_0x1d6cbe){return _0x44b429(_0x47d5d2,_0x2a0c8b,_0x1d6cbe);},'FHSES':_0x36e480(0x133),'AJIse':'jest','rsPGq':'--config','mqyNm':_0x36e480(0x127),'ZfGvp':'utf-8'};try{const {getTestPathPatterns:_0x4959ee}=_0x2bc685[_0x36e480(0x15d)](require,_0x2bc685[_0x36e480(0x134)]),{globsToMatcher:_0x4cb179}=_0x2bc685[_0x36e480(0x15d)](require,_0x2bc685[_0x36e480(0x125)]),{findRelatedTests:_0x1e4fd9}=_0x2bc685['YFuQX'](require,_0x2bc685[_0x36e480(0x150)]),_0x61d419=_0x2bc685[_0x36e480(0x135)](require,_0x2bc685['KyRAO']),_0x1c93dc=_0x21b748[_0x36e480(0x108)]||[_0x2bc685[_0x36e480(0x12e)],_0x2bc685[_0x36e480(0x10c)]],_0xe16ab7=_0x21b748['testPathIgnorePatterns']||[],_0x2c0a54=_0x2bc685['vhfLj'](spawnSync,_0x2bc685['FHSES'],[_0x2bc685[_0x36e480(0x15a)],_0x2bc685[_0x36e480(0x13f)],_0xd6d9b0,..._0x5e4f96,_0x2bc685[_0x36e480(0x13d)]],{'encoding':_0x2bc685[_0x36e480(0x10f)]});let _0x5cc2b5=[];!_0x2c0a54[_0x36e480(0x13e)]&&(_0x5cc2b5=_0x2c0a54[_0x36e480(0x12a)]['split']('\x0a')[_0x36e480(0x132)](Boolean));logger[_0x36e480(0x168)](_0x36e480(0x112)+JSON[_0x36e480(0x115)](_0x5cc2b5)+_0x36e480(0x14f));const _0x4c8bd8={};_0x4c8bd8[_0x36e480(0x166)]=!![],_0x4c8bd8[_0x36e480(0x126)]=_0xe16ab7;const _0x47dca9=_0x2bc685['vhfLj'](micromatch,_0x5cc2b5,_0x1c93dc,_0x4c8bd8)[_0x36e480(0x141)](_0x4998b9=>path[_0x36e480(0x156)](_0x21b748[_0x36e480(0x12c)],_0x4998b9));return logger[_0x36e480(0x168)]('Filterted\x20to\x20test\x20files:\x20'+JSON[_0x36e480(0x115)](_0x47dca9)+_0x36e480(0x14f)),_0x47dca9;}catch(_0xfe14b){return logger[_0x36e480(0x168)](_0x36e480(0x12d)+_0xfe14b),[];}}}function a123_0x2e5b(_0x4f72fa,_0x1b604b){const _0x1785fd=a123_0x1785();return a123_0x2e5b=function(_0x2e5b36,_0x3c714f){_0x2e5b36=_0x2e5b36-0x103;let _0x516bc4=_0x1785fd[_0x2e5b36];return _0x516bc4;},a123_0x2e5b(_0x4f72fa,_0x1b604b);}module[a123_0x1de22c(0x15b)]=TestOrchestrationHandler;
|