browserstack-node-sdk 1.49.9 → 1.49.11
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 +5 -2
- 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.setup.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/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.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/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.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/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.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/loadTestModule.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/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.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/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a129_0x366540=a129_0x6db6;(function(_0x151ef4,_0x4d6af8){const _0x13dc07=a129_0x6db6,_0x27fd35=_0x151ef4();while(!![]){try{const _0x998603=-parseInt(_0x13dc07(0x110))/0x1+-parseInt(_0x13dc07(0x8c))/0x2*(parseInt(_0x13dc07(0xca))/0x3)+-parseInt(_0x13dc07(0xa9))/0x4+parseInt(_0x13dc07(0x13c))/0x5*(parseInt(_0x13dc07(0x111))/0x6)+-parseInt(_0x13dc07(0xa1))/0x7*(parseInt(_0x13dc07(0xc0))/0x8)+parseInt(_0x13dc07(0x10c))/0x9+parseInt(_0x13dc07(0xc7))/0xa;if(_0x998603===_0x4d6af8)break;else _0x27fd35['push'](_0x27fd35['shift']());}catch(_0xdc1056){_0x27fd35['push'](_0x27fd35['shift']());}}}(a129_0x42ab,0xac71a));function a129_0x6db6(_0x4af2fc,_0x400647){const _0x42ab88=a129_0x42ab();return a129_0x6db6=function(_0x6db668,_0x2c7f3d){_0x6db668=_0x6db668-0x81;let _0x528393=_0x42ab88[_0x6db668];return _0x528393;},a129_0x6db6(_0x4af2fc,_0x400647);}const bsSetupHelper=require(a129_0x366540(0xa3)),path=require(a129_0x366540(0x128)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a129_0x366540(0x108)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a129_0x366540(0x124)),RequestQueueHandler=require(a129_0x366540(0x11a)),logger=require('../logger')['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a129_0x366540(0x82)),util=require('util'),constants=require(a129_0x366540(0xa0));function a129_0x42ab(){const _0x402885=['test_run_uuid','logs','BS_A11Y_JWT','Authorization','Hook_Start_Upload',']\x20event\x20successful!','test_run','getAccessKey','Processing\x20event\x20-\x20\x27','oKRGc','sYFmD','HookRunStarted','inspect','resolve','mYeoU','KZEaT','kItKa','pendingUploads','XJYtP','IXIYG','errorType','null','jwt','buildDescription','xRZTI','hrUVB','GioJq','data','elhNK','rIzwM','password','waitForBuildStatus','JETyZ','format','ORVGt','myBTd','CREDENTIALS_FOR_CRASH_REPORTING','uCgwx','BROWSERSTACK_RERUN','length','./utils','success','X-BSTACK-TESTOPS','Test_End_Upload','5246406XrbXmZ','PgIbW','VMxBz','\x20retry\x20runs\x20exceeded','1283863FoTDfI','427164XIImoH','BS_TESTOPS_JWT','Batch-Queue','fBqQA','Test_Start_Upload','ajdYA','NcMxT','pzvps','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','./requestQueueHandler','POST','gtntA','browserstackAutomation','status','tyDhF','eventUrl','yXlMg','exports','htqbA','./constants','BS_TESTOPS_BUILD_COMPLETED','wzspF','requestQueueHandler','path','CBT_Upload','BS_TESTOPS_ALLOW_SCREENSHOTS','getLogTag','bTAoT','cuvYP','Content-Type','Gakqe','uploadEventData','headers','TestRunFinished','BROWSERSTACK_BUILD_RUN_IDENTIFIER','LywPL','iiGZk','toISOString','xWXKy','zoYWf','add','sdhYn','BROWSERSTACK_TESTHUB_UUID','65sRCXMF','kCksc','kjjoI','username','PBfgA','../../helpers/testhub/utils','includes','Hook_End_Upload','json','api/v1/event','\x20REQUEST\x20TO\x20','application/json','xWsVM','SDply','info','1285442uGVVMh','getHostInfo','CHVBX','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','vizGW','frameworkVersion','RJqax','KeRtn','sendEventData','env','okfaB','ZDzsk','max','BS_TESTOPS_BUILD_HASHED_ID','vbuIe','LogCreated','response','\x20:\x20','cZmqU','true','../../bin/utils/constants','128023rxvDug','JYRuq','../helper','jbhhr','app','wtcIj','Data\x20upload\x20to\x20BrowserStack\x20','ERROR_INVALID_CREDENTIALS','3501932IJZAVR','getAgentVersion','Log_Upload','qrckO','build_hashed_id','event_type','tPUJg','launch','tQMdt','Ckzpu','error','MdswA','Sending\x20trace\x20zip\x20for\x20test:\x20','Build\x20creation\x20successful!','allow_screenshots','stringify','uuid','false','wJAIp','start','nRPqt','sendTraceZip','projectName','304QNmDif','BROWSERSTACK_TESTHUB_JWT','EXCEPTION\x20IN\x20','JAyNA','sAjqF','Test_Skipped_Upload','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','26949230RwUlcy','buildIdentifier','jHUsX','3tlEmTy','statusText','hook_run','pePCL','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','VbDwN','message','\x20failed\x20due\x20to\x20','mwBtP','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','getGitMetaData','CBTSessionCreated','api/v1/builds','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','Bearer\x20','basename','TEST_REPORTING_ANALYTICS','ODDlU','wiQKC','getCiInfo','nestedKeyValue','debug'];a129_0x42ab=function(){return _0x402885;};return a129_0x42ab();}class SessionHandler{static [a129_0x366540(0x127)]=RequestQueueHandler['getInstance']();static async[a129_0x366540(0xb0)](_0x4a0d01,_0x2b86e3){const _0x22f947=a129_0x366540,_0x3d7827={'kCksc':function(_0x13d63a,_0x12a350){return _0x13d63a||_0x12a350;},'Jrjzg':function(_0x4eeca7,_0x43fb44){return _0x4eeca7===_0x43fb44;},'wJAIp':function(_0x8e21c,_0x32f96d){return _0x8e21c(_0x32f96d);},'jHUsX':_0x22f947(0xc6),'vbuIe':_0x22f947(0xba),'fBqQA':_0x22f947(0x85),'tPUJg':function(_0x31e18d,_0x4c38fc){return _0x31e18d(_0x4c38fc);},'sdhYn':function(_0x457c94,_0x4727c1){return _0x457c94(_0x4727c1);},'PgIbW':function(_0x1e0798,_0x1ac2a1,_0x222202,_0x4c4a21,_0x10f33e){return _0x1e0798(_0x1ac2a1,_0x222202,_0x4c4a21,_0x10f33e);},'sAjqF':_0x22f947(0x11b),'JETyZ':_0x22f947(0xd6),'Ckzpu':function(_0x1a9e37,_0x437e6f){return _0x1a9e37(_0x437e6f);},'XJYtP':_0x22f947(0xb6),'JYRuq':function(_0x33ee1d){return _0x33ee1d();},'ODDlU':'true','xWXKy':'null','SDply':function(_0x14e659,_0x33965a){return _0x14e659(_0x33965a);},'ajdYA':_0x22f947(0xa8),'gtntA':'ERROR_ACCESS_DENIED','cNzFd':'ERROR_SDK_DEPRECATED'};logger[_0x22f947(0x8b)]('Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20'+util[_0x22f947(0xec)](_0x4a0d01));const _0x50874f=bsSetupHelper['getUserName'](_0x4a0d01),_0x31371f=bsSetupHelper[_0x22f947(0xe7)](_0x4a0d01),_0x4a0694=_0x3d7827[_0x22f947(0x13d)](_0x50874f,'')+':'+_0x3d7827[_0x22f947(0x13d)](_0x31371f,'');if(_0x3d7827['Jrjzg'](_0x4a0694,':'))return _0x3d7827[_0x22f947(0xbb)](debug,_0x3d7827[_0x22f947(0xc9)]),process[_0x22f947(0x95)]['BS_TESTOPS_BUILD_COMPLETED']=_0x3d7827[_0x22f947(0x9a)],[null,null];let _0x22e465=![],_0x181bab=![];if(_0x4a0d01[_0x22f947(0x11d)]&&_0x4a0d01[_0x22f947(0xa5)])_0x181bab=!![];else _0x4a0d01['browserstackAutomation']&&(_0x22e465=!![]);try{const _0x825fee={'format':_0x3d7827[_0x22f947(0x114)],'project_name':_0x4a0d01[_0x22f947(0xbf)]||'','name':_0x4a0d01['buildName']||path[_0x22f947(0xd9)](path[_0x22f947(0xed)](process['cwd']())),'build_identifier':_0x4a0d01[_0x22f947(0xc8)],'description':_0x4a0d01[_0x22f947(0xf7)]||'','start_time':new Date()[_0x22f947(0x136)](),'tags':_0x3d7827[_0x22f947(0xaf)](getCustomTags,_0x4a0d01),'host_info':bsSetupHelper[_0x22f947(0x8d)](),'ci_info':bsSetupHelper[_0x22f947(0xdd)](),'build_run_identifier':process['env'][_0x22f947(0x133)],'failed_tests_rerun':process['env'][_0x22f947(0x106)]||![],'version_control':await bsSetupHelper[_0x22f947(0xd4)](),'observability_version':{'frameworkName':_0x2b86e3['frameworkName'],'frameworkVersion':_0x2b86e3[_0x22f947(0x91)],'sdkVersion':bsSetupHelper[_0x22f947(0xaa)]()},'product_map':_0x3d7827['tPUJg'](getProductMap,_0x4a0d01),'test_orchestration':_0x3d7827[_0x22f947(0xbb)](getTestOrchestrationBuildStartData,_0x4a0d01)},_0xb64721={};_0xb64721[_0x22f947(0x13f)]=_0x50874f,_0xb64721[_0x22f947(0xfe)]=_0x31371f;const _0x271e0c={'auth':_0xb64721,'headers':_0x3d7827[_0x22f947(0x13a)](getDefaultHeaders,![])},_0x5045cb=await _0x3d7827[_0x22f947(0x10d)](nodeRequest,_0x3d7827[_0x22f947(0xc4)],_0x3d7827[_0x22f947(0x100)],_0x825fee,_0x271e0c);_0x3d7827[_0x22f947(0xb2)](debug,_0x3d7827[_0x22f947(0xf2)]);const _0x5f4e00=_0x5045cb[_0x22f947(0xfb)];_0x5f4e00['build_hashed_id']&&(process[_0x22f947(0x95)]['BROWSERSTACK_TESTHUB_UUID']=_0x5f4e00[_0x22f947(0xad)]);if(_0x3d7827[_0x22f947(0xa2)](isTestObservabilitySession)){process[_0x22f947(0x95)][_0x22f947(0x125)]=_0x3d7827[_0x22f947(0xdb)];if(_0x5f4e00[_0x22f947(0xf6)]){process[_0x22f947(0x95)][_0x22f947(0x112)]=_0x5f4e00[_0x22f947(0xf6)];const _0x27ed35={};_0x27ed35['username']=_0x50874f,_0x27ed35[_0x22f947(0xfe)]=_0x31371f,process[_0x22f947(0x95)][_0x22f947(0x104)]=JSON[_0x22f947(0xb8)](_0x27ed35);}_0x5f4e00[_0x22f947(0xad)]&&(process[_0x22f947(0x95)][_0x22f947(0x99)]=_0x5f4e00[_0x22f947(0xad)]),_0x5f4e00[_0x22f947(0xb7)]&&(process[_0x22f947(0x95)][_0x22f947(0x12a)]=_0x5f4e00[_0x22f947(0xb7)]['toString']());}return[_0x5045cb[_0x22f947(0xfb)]['jwt'],_0x5045cb[_0x22f947(0xfb)][_0x22f947(0xad)],_0x5045cb[_0x22f947(0xfb)][_0x22f947(0xb7)]];}catch(_0x3ca934){process[_0x22f947(0x95)][_0x22f947(0x13b)]=_0x3d7827[_0x22f947(0x137)],process['env'][_0x22f947(0x125)]=_0x3d7827[_0x22f947(0x9a)],process[_0x22f947(0x95)][_0x22f947(0x112)]=_0x3d7827[_0x22f947(0x137)],process[_0x22f947(0x95)][_0x22f947(0x99)]=_0x3d7827['xWXKy'],process[_0x22f947(0x95)][_0x22f947(0x12a)]=_0x3d7827[_0x22f947(0x137)];_0x3ca934[_0x22f947(0x9c)]?_0x3d7827[_0x22f947(0x13a)](debug,_0x22f947(0xd7)+_0x3ca934[_0x22f947(0x9c)][_0x22f947(0x11e)]+'\x20'+_0x3ca934['response']['statusText']+'\x20'+JSON['stringify'](_0x3ca934['response'][_0x22f947(0xfb)])):_0x3d7827[_0x22f947(0x8a)](debug,_0x22f947(0xd7)+(_0x3ca934[_0x22f947(0xd0)]||_0x3ca934));if(_0x3ca934&&_0x3ca934[_0x22f947(0xd0)]){const _0x140e86=_0x3ca934['message'];switch(_0x3ca934[_0x22f947(0xf4)]){case _0x3d7827[_0x22f947(0x116)]:logger['error'](_0x140e86);break;case _0x3d7827[_0x22f947(0x11c)]:logger[_0x22f947(0x8b)](_0x140e86);break;case _0x3d7827['cNzFd']:logger['error'](_0x140e86);break;default:logger['error'](_0x140e86);}}else console[_0x22f947(0x8b)](_0x22f947(0xa7)+constants[_0x22f947(0xda)]+_0x22f947(0xd1)+_0x3ca934);return[null,null,null];}}static async[a129_0x366540(0xff)](){const _0x1ac63e=a129_0x366540,_0x1bc0a0={'NcMxT':_0x1ac63e(0x9f),'vizGW':_0x1ac63e(0xba),'bTAoT':function(_0x428988,_0x3d70e1){return _0x428988(_0x3d70e1);}},_0x226900=process[_0x1ac63e(0x95)][_0x1ac63e(0x125)];if([_0x1bc0a0['NcMxT'],_0x1bc0a0['vizGW']][_0x1ac63e(0x83)](_0x226900))return;while([_0x1bc0a0[_0x1ac63e(0x117)],_0x1bc0a0[_0x1ac63e(0x90)]][_0x1ac63e(0x83)](_0x226900)){await _0x1bc0a0[_0x1ac63e(0x12c)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static['getLogTag'](_0x561a1b){const _0x4f7331=a129_0x366540,_0x3316b3={};_0x3316b3[_0x4f7331(0x9e)]=_0x4f7331(0x115),_0x3316b3[_0x4f7331(0xf8)]=_0x4f7331(0x10b),_0x3316b3[_0x4f7331(0xf9)]=_0x4f7331(0xc5),_0x3316b3[_0x4f7331(0x93)]=_0x4f7331(0xab),_0x3316b3[_0x4f7331(0xa4)]=_0x4f7331(0xe4),_0x3316b3[_0x4f7331(0x102)]=_0x4f7331(0x84),_0x3316b3[_0x4f7331(0x11f)]=_0x4f7331(0x129);const _0x48523c=_0x3316b3,_0x284a18={};return _0x284a18['TestRunStarted']=_0x48523c[_0x4f7331(0x9e)],_0x284a18[_0x4f7331(0x132)]=_0x48523c[_0x4f7331(0xf8)],_0x284a18['TestRunSkipped']=_0x48523c['hrUVB'],_0x284a18[_0x4f7331(0x9b)]=_0x48523c['KeRtn'],_0x284a18[_0x4f7331(0xeb)]=_0x48523c[_0x4f7331(0xa4)],_0x284a18['HookRunFinished']=_0x48523c[_0x4f7331(0x102)],_0x284a18[_0x4f7331(0xd5)]=_0x48523c[_0x4f7331(0x11f)],_0x284a18[_0x561a1b[_0x4f7331(0xae)]];}static async['sendEventData'](_0x88d0,_0x57ae3a=0x0,_0x6dfbd5=null){const _0xac748a=a129_0x366540,_0x324506={'JAyNA':function(_0x433cbc,_0x58a88e){return _0x433cbc===_0x58a88e;},'xWsVM':_0xac748a(0xbe),'uCgwx':function(_0x3b3e3b,_0x3e480a){return _0x3b3e3b!==_0x3e480a;},'htqbA':_0xac748a(0x88),'kItKa':_0xac748a(0x9f),'wiQKC':function(_0x400c8f,_0x3b78e3){return _0x400c8f===_0x3b78e3;},'qrckO':function(_0x31e409,_0x435ed2,_0x48247f,_0x2f8809,_0x5ad1cf){return _0x31e409(_0x435ed2,_0x48247f,_0x2f8809,_0x5ad1cf);},'mwBtP':'POST','yXlMg':function(_0x3c256d,_0x280cb5){return _0x3c256d(_0x280cb5);},'PBfgA':_0xac748a(0x113),'tQMdt':function(_0x4772d1,_0x38774e){return _0x4772d1-_0x38774e;},'mYeoU':_0xac748a(0x86),'Gakqe':_0xac748a(0x109),'GioJq':function(_0x536b53,_0x39e33b){return _0x536b53(_0x39e33b);},'ZDzsk':function(_0x5e758d,_0x59d47a){return _0x5e758d!==_0x59d47a;},'RJqax':function(_0x3c75ec,_0x22850f){return _0x3c75ec===_0x22850f;},'iiGZk':_0xac748a(0xb3)};_0x324506[_0xac748a(0xc3)](_0x6dfbd5,_0x324506['xWsVM'])&&logger[_0xac748a(0xdf)](_0xac748a(0xb5)+_0x88d0['logs'][0x0][_0xac748a(0xe0)]);const _0x46e4e3=await this[_0xac748a(0x12b)](_0x88d0);let _0x3a4e6f=_0x88d0,_0x17821c=EVENT_ENDPOINT;_0x324506['uCgwx'](_0x6dfbd5,_0x324506[_0xac748a(0x89)])&&this['requestQueueHandler'][_0xac748a(0xbc)]();const {shouldProceed:_0x3bfba9,proceedWithData:_0x298c03,proceedWithUrl:_0x3ee1e8}=this[_0xac748a(0x127)][_0xac748a(0x139)](_0x88d0);if(!_0x3bfba9)return;else _0x298c03&&(_0x3a4e6f=_0x298c03,_0x17821c=_0x3ee1e8);const _0x82a9e3={};_0x82a9e3[_0xac748a(0xe3)]=_0xac748a(0xd8)+process[_0xac748a(0x95)][_0xac748a(0xc1)],_0x82a9e3[_0xac748a(0x12e)]=_0x324506[_0xac748a(0x123)],_0x82a9e3[_0xac748a(0x10a)]=_0x324506[_0xac748a(0xf0)];const _0x1434e7={};_0x1434e7[_0xac748a(0x131)]=_0x82a9e3;const _0x4bebfd=_0x1434e7;let _0x587e19;try{_0x324506[_0xac748a(0xdc)](_0x6dfbd5,_0x324506[_0xac748a(0x89)])?(logger[_0xac748a(0xdf)](_0xac748a(0x8f)+_0x88d0?.[_0xac748a(0xe1)][0x0]?.['test_run_uuid']),_0x587e19=await _0x324506[_0xac748a(0xac)](asyncAwaitNodeReq,_0x324506[_0xac748a(0xd2)],_0x17821c,_0x3a4e6f,_0x4bebfd),logger[_0xac748a(0xdf)](_0xac748a(0xd3)+_0x88d0?.[_0xac748a(0xe1)][0x0]?.[_0xac748a(0xe0)])):_0x587e19=await _0x324506[_0xac748a(0xac)](nodeRequest,_0x324506['mwBtP'],_0x17821c,_0x3a4e6f,_0x4bebfd);if(_0x587e19[_0xac748a(0xfb)]['error']){const _0x565d09={};_0x565d09[_0xac748a(0xd0)]=_0x587e19[_0xac748a(0xfb)][_0xac748a(0xb3)];throw _0x565d09;}else{_0x324506[_0xac748a(0x121)](debug,(_0x324506[_0xac748a(0x105)](_0x17821c,this['requestQueueHandler'][_0xac748a(0x120)])?_0x46e4e3:_0x324506[_0xac748a(0x81)])+'['+_0x57ae3a+_0xac748a(0xe5)),this[_0xac748a(0x127)]['pendingUploads']=Math['max'](0x0,_0x324506[_0xac748a(0xb1)](this[_0xac748a(0x127)][_0xac748a(0xf1)],_0x324506[_0xac748a(0xc3)](_0x17821c,_0x324506['mYeoU'])?0x1:_0x3a4e6f['length']));const _0x210511={};return _0x210511[_0xac748a(0x11e)]=_0x324506[_0xac748a(0x12f)],_0x210511[_0xac748a(0xd0)]='',_0x210511;}}catch(_0x57fe16){_0x57fe16[_0xac748a(0x9c)]?_0x324506[_0xac748a(0xfa)](debug,_0xac748a(0xc2)+(_0x324506['ZDzsk'](_0x17821c,this[_0xac748a(0x127)]['eventUrl'])?_0x46e4e3:_0x324506[_0xac748a(0x81)])+_0xac748a(0x87)+constants[_0xac748a(0xda)]+'\x20:\x20'+_0x57fe16[_0xac748a(0x9c)][_0xac748a(0x11e)]+'\x20'+_0x57fe16[_0xac748a(0x9c)][_0xac748a(0xcb)]+'\x20'+util[_0xac748a(0x101)](_0x57fe16['response'][_0xac748a(0xfb)])):_0x324506[_0xac748a(0xfa)](debug,_0xac748a(0xc2)+(_0x324506[_0xac748a(0x97)](_0x17821c,this['requestQueueHandler'][_0xac748a(0x120)])?_0x46e4e3:_0x324506[_0xac748a(0x81)])+_0xac748a(0x87)+constants[_0xac748a(0xda)]+_0xac748a(0x9d)+util['format'](_0x57fe16));this[_0xac748a(0x127)][_0xac748a(0xf1)]=Math[_0xac748a(0x98)](0x0,_0x324506[_0xac748a(0xb1)](this[_0xac748a(0x127)][_0xac748a(0xf1)],_0x324506[_0xac748a(0x92)](_0x17821c,_0x324506[_0xac748a(0xee)])?0x1:_0x3a4e6f[_0xac748a(0x107)]));const _0x532265={};return _0x532265[_0xac748a(0x11e)]=_0x324506[_0xac748a(0x135)],_0x532265['message']=_0x57fe16[_0xac748a(0xd0)]||(_0x57fe16['response']?_0x57fe16['response'][_0xac748a(0x11e)]+':'+_0x57fe16[_0xac748a(0x9c)][_0xac748a(0xcb)]:_0x57fe16),_0x532265;}}static async[a129_0x366540(0x130)](_0x5a2d47,_0x46a203=0x0){const _0xb418d8=a129_0x366540,_0x43cc58={'EBkJZ':function(_0x55f5d8,_0x20f638){return _0x55f5d8+_0x20f638;},'MdswA':function(_0x236106,_0x581f2b){return _0x236106(_0x581f2b);},'LywPL':_0xb418d8(0xe6),'kjjoI':_0xb418d8(0xb9),'elhNK':_0xb418d8(0xcc),'zoYWf':function(_0x43037f,_0x59fdc4,_0x281e66){return _0x43037f(_0x59fdc4,_0x281e66);},'CHVBX':_0xb418d8(0x130),'wtcIj':function(_0x55b14e,_0xf8330d){return _0x55b14e===_0xf8330d;},'wzspF':function(_0x2d9b3c,_0x21f989){return _0x2d9b3c!==_0x21f989;},'okfaB':_0xb418d8(0xf5),'sYFmD':function(_0x1e78b6,_0x217f44){return _0x1e78b6===_0x217f44;},'cuvYP':_0xb418d8(0x9f),'kKKXv':function(_0x59c3cd){return _0x59c3cd();},'VbDwN':function(_0xb1b098,_0x236dec){return _0xb1b098===_0x236dec;},'pzvps':function(_0x17d449,_0x245daf){return _0x17d449(_0x245daf);},'nRPqt':function(_0x1e552e,_0x1d38d4){return _0x1e552e-_0x1d38d4;},'VMxBz':_0xb418d8(0xb3),'rIzwM':_0xb418d8(0x119),'KZEaT':function(_0x54d3a7,_0x20c51c){return _0x54d3a7>=_0x20c51c;},'IXIYG':function(_0x4fd0b0,_0x253c74){return _0x4fd0b0(_0x253c74);},'pePCL':function(_0x599dec,_0x3de346){return _0x599dec-_0x3de346;},'myBTd':'Retry\x20runs\x20exceeded','gYbub':function(_0x1490df,_0x1e2bbd){return _0x1490df!==_0x1e2bbd;},'JfoJH':_0xb418d8(0xba),'oKRGc':function(_0x2eaedb,_0xca3983,_0x59bd14){return _0x2eaedb(_0xca3983,_0x59bd14);}},_0x1ef81d=this[_0xb418d8(0x12b)](_0x5a2d47);_0x43cc58[_0xb418d8(0xb4)](trace,_0xb418d8(0xe8)+_0x5a2d47[_0xb418d8(0xae)]+'\x27\x20'+(bsSetupHelper[_0xb418d8(0xde)](_0x5a2d47,[_0x43cc58[_0xb418d8(0x134)],_0x43cc58[_0xb418d8(0x13e)]])||bsSetupHelper['nestedKeyValue'](_0x5a2d47,[_0x43cc58[_0xb418d8(0xfc)],_0x43cc58[_0xb418d8(0x13e)]])));if(!_0x43cc58[_0xb418d8(0x138)](shouldProcessEventForTesthub,_0x5a2d47[_0xb418d8(0xae)],_0x43cc58[_0xb418d8(0x8e)]))return;_0x43cc58[_0xb418d8(0xa6)](_0x46a203,0x0)&&process[_0xb418d8(0x95)][_0xb418d8(0xc1)]&&_0x43cc58['wzspF'](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x43cc58[_0xb418d8(0x96)])&&(this[_0xb418d8(0x127)][_0xb418d8(0xf1)]+=0x1);if(_0x43cc58[_0xb418d8(0xea)](process[_0xb418d8(0x95)]['BS_TESTOPS_BUILD_COMPLETED'],_0x43cc58[_0xb418d8(0x12d)])||process[_0xb418d8(0x95)][_0xb418d8(0xe2)]||_0x43cc58['kKKXv'](isPercyBuild)){if(_0x43cc58[_0xb418d8(0xcf)](process[_0xb418d8(0x95)]['BROWSERSTACK_TESTHUB_JWT'],_0x43cc58[_0xb418d8(0x96)])){_0x43cc58[_0xb418d8(0x118)](debug,_0xb418d8(0xc2)+_0x1ef81d+_0xb418d8(0x87)+constants[_0xb418d8(0xda)]+'\x20:\x20missing\x20authentication\x20token'),this[_0xb418d8(0x127)][_0xb418d8(0xf1)]=Math[_0xb418d8(0x98)](0x0,_0x43cc58[_0xb418d8(0xbd)](this[_0xb418d8(0x127)][_0xb418d8(0xf1)],0x1));const _0x166eca={};return _0x166eca[_0xb418d8(0x11e)]=_0x43cc58[_0xb418d8(0x10e)],_0x166eca[_0xb418d8(0xd0)]=_0x43cc58[_0xb418d8(0xfd)],_0x166eca;}return await this[_0xb418d8(0x94)](_0x5a2d47,_0x46a203);}else{if(_0x43cc58[_0xb418d8(0xef)](_0x46a203,0x5)){_0x43cc58[_0xb418d8(0xf3)](debug,_0xb418d8(0xc2)+_0x1ef81d+_0xb418d8(0x87)+constants[_0xb418d8(0xda)]+_0xb418d8(0xce)+_0x1ef81d+_0xb418d8(0x10f));_0x43cc58[_0xb418d8(0x126)](process[_0xb418d8(0x95)][_0xb418d8(0xc1)],_0x43cc58[_0xb418d8(0x96)])&&(this[_0xb418d8(0x127)]['pendingUploads']=Math['max'](0x0,_0x43cc58[_0xb418d8(0xcd)](this[_0xb418d8(0x127)]['pendingUploads'],0x1)));const _0x3bfada={};return _0x3bfada['status']=_0x43cc58[_0xb418d8(0x10e)],_0x3bfada['message']=_0x43cc58[_0xb418d8(0x103)],_0x3bfada;}else _0x43cc58['gYbub'](process[_0xb418d8(0x95)][_0xb418d8(0x125)],_0x43cc58['JfoJH'])&&_0x43cc58[_0xb418d8(0xe9)](setTimeout,()=>{const _0x245c33=_0xb418d8;this[_0x245c33(0x130)](_0x5a2d47,_0x43cc58['EBkJZ'](_0x46a203,0x1));},0x3e8);}}}module[a129_0x366540(0x122)]=SessionHandler;
|
|
1
|
+
const a129_0x29bd02=a129_0x1332;(function(_0x4b5aaa,_0x327280){const _0x3ee1cb=a129_0x1332,_0x2b598f=_0x4b5aaa();while(!![]){try{const _0x1c738d=parseInt(_0x3ee1cb(0x17d))/0x1+-parseInt(_0x3ee1cb(0x1e2))/0x2+-parseInt(_0x3ee1cb(0x1a4))/0x3+parseInt(_0x3ee1cb(0x1f8))/0x4+-parseInt(_0x3ee1cb(0x18a))/0x5*(-parseInt(_0x3ee1cb(0x1d8))/0x6)+-parseInt(_0x3ee1cb(0x1c5))/0x7+parseInt(_0x3ee1cb(0x21b))/0x8;if(_0x1c738d===_0x327280)break;else _0x2b598f['push'](_0x2b598f['shift']());}catch(_0x5d35da){_0x2b598f['push'](_0x2b598f['shift']());}}}(a129_0x4654,0x51f1c));function a129_0x4654(){const _0x503b2b=['TestRunSkipped','IFJes','TEST_REPORTING_ANALYTICS','Retry\x20runs\x20exceeded','HookRunStarted','CMoan','X-BSTACK-TESTOPS','Bearer\x20','OWfEX','PZupx','uFlAO','basename','MTpTa','eUdjY','1751946cXEolK','RlGPn','nestedKeyValue','USbIu','Test_Skipped_Upload','UHJFc','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','ERROR_SDK_DEPRECATED','getAccessKey','jwt','KlZXa','toString','Authorization','pendingUploads','POST','sendEventData','buildIdentifier','BS_A11Y_JWT','TestRunFinished','wwZHj','xqZNq','Test_Start_Upload','danpd','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','\x20failed\x20due\x20to\x20','env','lwMFt','api/v1/builds','getAgentVersion','../../bin/utils/constants','getInstance','mMQRe','waitForBuildStatus','2729832cxDxeI','DaDif','false','sendTraceZip','byOjD','errorType','BS_TESTOPS_BUILD_HASHED_ID','\x20retry\x20runs\x20exceeded','cwd','yNYwp','KjlIL','includes','api/v1/event','add','bduFZ','max','KVElz','frameworkVersion','Qbuui','354fafkcy','Kxqsf','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','cLuCd','true','test_run_uuid','BMvjt','YTecA','nOILI','getLogTag','871442MxFKGp','aAIbs','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','BS_TESTOPS_JWT','\x20REQUEST\x20TO\x20','EXCEPTION\x20IN\x20','FagnN','Content-Type','vjcEJ','OWuTl','ASgsM','error','Test_End_Upload','BS_TESTOPS_ALLOW_SCREENSHOTS','uuid','Build\x20creation\x20successful!','resolve','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','sOenA','getCiInfo',']\x20event\x20successful!','tIOPU','1913016bRxQVu','util','length','VYyMy','app','projectName','\x20:\x20','getUserName','Data\x20upload\x20to\x20BrowserStack\x20','password','ZtsAH','douWp','Log_Upload','uploadEventData','TrbUD','ycsjt','data','kffeq','JAHuq','status','BROWSERSTACK_TESTHUB_JWT','statusText','EjRLo','CREDENTIALS_FOR_CRASH_REPORTING','\x20:\x20missing\x20authentication\x20token','BROWSERSTACK_RERUN','skwUB','WlCPk','ERROR_ACCESS_DENIED','hook_run','Seivd','allow_screenshots','requestQueueHandler','toISOString','pPFsv','5171504xfxtwv','start','buildDescription','BROWSERSTACK_BUILD_RUN_IDENTIFIER','Hook_Start_Upload','mUKtm','response','eventUrl','bIjVo','info','build_hashed_id','Johrj','fxqEY','event_type','BROWSERSTACK_TESTHUB_UUID','bBSPW','stringify','nJozw','avfHc','BS_TESTOPS_BUILD_COMPLETED','555967CtqboG','exports','message','success','winstonLogger','browserstackAutomation','headers','iUCvu','IsQph','debug','logs','xhRZF','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','5480KYHVIV','./utils','VSzZH','qwyaB','EPzuX','username','format','../logger','Espcj','PygIy','dhssy','uiPHG'];a129_0x4654=function(){return _0x503b2b;};return a129_0x4654();}const bsSetupHelper=require('../helper'),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a129_0x29bd02(0x18b)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a129_0x29bd02(0x191))[a129_0x29bd02(0x181)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require('../../helpers/testhub/utils'),util=require(a129_0x29bd02(0x1f9)),constants=require(a129_0x29bd02(0x1c1));class SessionHandler{static [a129_0x29bd02(0x218)]=RequestQueueHandler[a129_0x29bd02(0x1c2)]();static async['launch'](_0x41793b,_0xdaa33d){const _0x440adc=a129_0x29bd02,_0x5d0cb9={'USbIu':function(_0x5a2b7c,_0x49449a){return _0x5a2b7c||_0x49449a;},'douWp':function(_0x3ba8f3,_0x41b0b4){return _0x3ba8f3===_0x41b0b4;},'eUdjY':function(_0x1acf3f,_0x11c461){return _0x1acf3f(_0x11c461);},'qwyaB':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','gfvol':_0x440adc(0x1c7),'Seivd':'json','fxqEY':function(_0x2a4c6b,_0x217dbc){return _0x2a4c6b(_0x217dbc);},'Kxqsf':function(_0x269ff6,_0x44dd1c){return _0x269ff6(_0x44dd1c);},'USZcJ':function(_0x3766d0,_0x45df12){return _0x3766d0(_0x45df12);},'Johrj':function(_0x2946cd,_0x11a8a7,_0x11b094,_0x15897c,_0x25031f){return _0x2946cd(_0x11a8a7,_0x11b094,_0x15897c,_0x25031f);},'IhlNa':_0x440adc(0x1b2),'mserv':_0x440adc(0x1bf),'MTpTa':function(_0x33b1cc,_0x1842ed){return _0x33b1cc(_0x1842ed);},'CrBpC':_0x440adc(0x1f1),'kffeq':function(_0xcb998){return _0xcb998();},'KlZXa':_0x440adc(0x1dc),'VSzZH':'null','dhssy':function(_0x5a9c41,_0x5235d4){return _0x5a9c41(_0x5235d4);},'wwZHj':function(_0x2029fd,_0x1e0ef0){return _0x2029fd(_0x1e0ef0);},'pPFsv':'ERROR_INVALID_CREDENTIALS','nOILI':_0x440adc(0x214),'mMQRe':_0x440adc(0x1ab)};logger[_0x440adc(0x224)](_0x440adc(0x1bb)+util['inspect'](_0x41793b));const _0x4a3bf0=bsSetupHelper[_0x440adc(0x1ff)](_0x41793b),_0x45e233=bsSetupHelper[_0x440adc(0x1ac)](_0x41793b),_0x369b05=_0x5d0cb9[_0x440adc(0x1a7)](_0x4a3bf0,'')+':'+_0x5d0cb9[_0x440adc(0x1a7)](_0x45e233,'');if(_0x5d0cb9[_0x440adc(0x203)](_0x369b05,':'))return _0x5d0cb9[_0x440adc(0x1a3)](debug,_0x5d0cb9[_0x440adc(0x18d)]),process['env'][_0x440adc(0x17c)]=_0x5d0cb9['gfvol'],[null,null];let _0x232f60=![],_0x44d890=![];if(_0x41793b['browserstackAutomation']&&_0x41793b[_0x440adc(0x1fc)])_0x44d890=!![];else _0x41793b[_0x440adc(0x182)]&&(_0x232f60=!![]);try{const _0x398b70={'format':_0x5d0cb9[_0x440adc(0x216)],'project_name':_0x41793b[_0x440adc(0x1fd)]||'','name':_0x41793b['buildName']||path[_0x440adc(0x1a1)](path[_0x440adc(0x1f2)](process[_0x440adc(0x1cd)]())),'build_identifier':_0x41793b[_0x440adc(0x1b4)],'description':_0x41793b[_0x440adc(0x21d)]||'','start_time':new Date()[_0x440adc(0x219)](),'tags':_0x5d0cb9[_0x440adc(0x175)](getCustomTags,_0x41793b),'host_info':bsSetupHelper['getHostInfo'](),'ci_info':bsSetupHelper[_0x440adc(0x1f5)](),'build_run_identifier':process['env'][_0x440adc(0x21e)],'failed_tests_rerun':process[_0x440adc(0x1bd)][_0x440adc(0x211)]||![],'version_control':await bsSetupHelper['getGitMetaData'](),'observability_version':{'frameworkName':_0xdaa33d['frameworkName'],'frameworkVersion':_0xdaa33d[_0x440adc(0x1d6)],'sdkVersion':bsSetupHelper[_0x440adc(0x1c0)]()},'product_map':_0x5d0cb9[_0x440adc(0x1d9)](getProductMap,_0x41793b),'test_orchestration':_0x5d0cb9[_0x440adc(0x1a3)](getTestOrchestrationBuildStartData,_0x41793b)},_0x37a8e3={};_0x37a8e3[_0x440adc(0x18f)]=_0x4a3bf0,_0x37a8e3[_0x440adc(0x201)]=_0x45e233;const _0x57d6f6={'auth':_0x37a8e3,'headers':_0x5d0cb9['USZcJ'](getDefaultHeaders,![])},_0x2f81a6=await _0x5d0cb9[_0x440adc(0x174)](nodeRequest,_0x5d0cb9['IhlNa'],_0x5d0cb9['mserv'],_0x398b70,_0x57d6f6);_0x5d0cb9[_0x440adc(0x1a2)](debug,_0x5d0cb9['CrBpC']);const _0x162c49=_0x2f81a6[_0x440adc(0x208)];_0x162c49['build_hashed_id']&&(process[_0x440adc(0x1bd)][_0x440adc(0x177)]=_0x162c49['build_hashed_id']);if(_0x5d0cb9[_0x440adc(0x209)](isTestObservabilitySession)){process[_0x440adc(0x1bd)][_0x440adc(0x17c)]=_0x5d0cb9[_0x440adc(0x1ae)];if(_0x162c49[_0x440adc(0x1ad)]){process[_0x440adc(0x1bd)][_0x440adc(0x1e5)]=_0x162c49[_0x440adc(0x1ad)];const _0x45d801={};_0x45d801[_0x440adc(0x18f)]=_0x4a3bf0,_0x45d801[_0x440adc(0x201)]=_0x45e233,process[_0x440adc(0x1bd)][_0x440adc(0x20f)]=JSON[_0x440adc(0x179)](_0x45d801);}_0x162c49['build_hashed_id']&&(process[_0x440adc(0x1bd)][_0x440adc(0x1cb)]=_0x162c49['build_hashed_id']),_0x162c49[_0x440adc(0x217)]&&(process['env'][_0x440adc(0x1ef)]=_0x162c49['allow_screenshots'][_0x440adc(0x1af)]());}return[_0x2f81a6[_0x440adc(0x208)][_0x440adc(0x1ad)],_0x2f81a6['data'][_0x440adc(0x225)],_0x2f81a6[_0x440adc(0x208)][_0x440adc(0x217)]];}catch(_0x34507a){process[_0x440adc(0x1bd)][_0x440adc(0x177)]=_0x5d0cb9['VSzZH'],process['env']['BS_TESTOPS_BUILD_COMPLETED']=_0x5d0cb9['gfvol'],process[_0x440adc(0x1bd)][_0x440adc(0x1e5)]=_0x5d0cb9[_0x440adc(0x18c)],process['env'][_0x440adc(0x1cb)]=_0x5d0cb9[_0x440adc(0x18c)],process[_0x440adc(0x1bd)][_0x440adc(0x1ef)]=_0x5d0cb9[_0x440adc(0x18c)];_0x34507a[_0x440adc(0x221)]?_0x5d0cb9[_0x440adc(0x194)](debug,_0x440adc(0x1aa)+_0x34507a[_0x440adc(0x221)][_0x440adc(0x20b)]+'\x20'+_0x34507a[_0x440adc(0x221)]['statusText']+'\x20'+JSON[_0x440adc(0x179)](_0x34507a['response'][_0x440adc(0x208)])):_0x5d0cb9[_0x440adc(0x1b7)](debug,_0x440adc(0x1aa)+(_0x34507a[_0x440adc(0x17f)]||_0x34507a));if(_0x34507a&&_0x34507a[_0x440adc(0x17f)]){const _0xc83cb5=_0x34507a['message'];switch(_0x34507a[_0x440adc(0x1ca)]){case _0x5d0cb9[_0x440adc(0x21a)]:logger[_0x440adc(0x1ed)](_0xc83cb5);break;case _0x5d0cb9[_0x440adc(0x1e0)]:logger[_0x440adc(0x224)](_0xc83cb5);break;case _0x5d0cb9[_0x440adc(0x1c3)]:logger[_0x440adc(0x1ed)](_0xc83cb5);break;default:logger[_0x440adc(0x1ed)](_0xc83cb5);}}else console[_0x440adc(0x224)](_0x440adc(0x200)+constants[_0x440adc(0x198)]+_0x440adc(0x1bc)+_0x34507a);return[null,null,null];}}static async[a129_0x29bd02(0x1c4)](){const _0x5b810d=a129_0x29bd02,_0x537bca={'avfHc':'true','sOenA':'false','TrbUD':function(_0x3dd3ae,_0x58dfed){return _0x3dd3ae(_0x58dfed);}},_0x355970=process[_0x5b810d(0x1bd)][_0x5b810d(0x17c)];if([_0x537bca[_0x5b810d(0x17b)],_0x537bca[_0x5b810d(0x1f4)]][_0x5b810d(0x1d0)](_0x355970))return;while([_0x537bca[_0x5b810d(0x17b)],_0x537bca[_0x5b810d(0x1f4)]]['includes'](_0x355970)){await _0x537bca[_0x5b810d(0x206)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a129_0x29bd02(0x1e1)](_0x3b3035){const _0x49c817=a129_0x29bd02,_0x6419d1={};_0x6419d1['vjcEJ']=_0x49c817(0x1b9),_0x6419d1['danpd']=_0x49c817(0x1ee),_0x6419d1[_0x49c817(0x20e)]=_0x49c817(0x1a8),_0x6419d1[_0x49c817(0x17a)]=_0x49c817(0x204),_0x6419d1[_0x49c817(0x213)]=_0x49c817(0x21f),_0x6419d1['KVElz']='Hook_End_Upload',_0x6419d1[_0x49c817(0x20a)]='CBT_Upload';const _0x5e5cfd=_0x6419d1,_0x5a06b9={};return _0x5a06b9['TestRunStarted']=_0x5e5cfd[_0x49c817(0x1ea)],_0x5a06b9[_0x49c817(0x1b6)]=_0x5e5cfd[_0x49c817(0x1ba)],_0x5a06b9[_0x49c817(0x196)]=_0x5e5cfd['EjRLo'],_0x5a06b9['LogCreated']=_0x5e5cfd['nJozw'],_0x5a06b9[_0x49c817(0x19a)]=_0x5e5cfd['WlCPk'],_0x5a06b9['HookRunFinished']=_0x5e5cfd[_0x49c817(0x1d5)],_0x5a06b9['CBTSessionCreated']=_0x5e5cfd[_0x49c817(0x20a)],_0x5a06b9[_0x3b3035[_0x49c817(0x176)]];}static async[a129_0x29bd02(0x1b3)](_0x39b1e0,_0x114573=0x0,_0x2fe069=null){const _0x38374b=a129_0x29bd02,_0x383ba6={'CMoan':function(_0x2c31ec,_0x304546){return _0x2c31ec===_0x304546;},'BMvjt':_0x38374b(0x1c8),'yNYwp':function(_0x36eef3,_0x271137){return _0x36eef3!==_0x271137;},'lwMFt':'application/json','xhRZF':_0x38374b(0x1dc),'PygIy':function(_0x8fddc,_0x4c769a,_0xa5e6a9,_0x252d9d,_0x303622){return _0x8fddc(_0x4c769a,_0xa5e6a9,_0x252d9d,_0x303622);},'ycsjt':_0x38374b(0x1b2),'bBSPW':function(_0x35c8b8,_0x112049,_0x3834c4,_0x445b0e,_0x2b6308){return _0x35c8b8(_0x112049,_0x3834c4,_0x445b0e,_0x2b6308);},'RlGPn':function(_0x51b371,_0x4be40a){return _0x51b371(_0x4be40a);},'ZtsAH':'Batch-Queue','bduFZ':function(_0x3ab3da,_0x580e06){return _0x3ab3da-_0x580e06;},'VYyMy':function(_0x5a38d1,_0xa9b30c){return _0x5a38d1===_0xa9b30c;},'iUCvu':_0x38374b(0x1d1),'PZupx':_0x38374b(0x180),'fYwsz':function(_0x5cb128,_0x3ae217){return _0x5cb128(_0x3ae217);},'xqZNq':function(_0x5c05fb,_0x459cb0){return _0x5c05fb!==_0x459cb0;},'OWfEX':function(_0xe78edc,_0xc59d5e){return _0xe78edc!==_0xc59d5e;},'uFlAO':function(_0x2ad994,_0x330e13){return _0x2ad994-_0x330e13;},'BzuAe':_0x38374b(0x1ed)};_0x383ba6[_0x38374b(0x19b)](_0x2fe069,_0x383ba6[_0x38374b(0x1de)])&&logger['debug']('Sending\x20trace\x20zip\x20for\x20test:\x20'+_0x39b1e0['logs'][0x0][_0x38374b(0x1dd)]);const _0x1223a5=await this['getLogTag'](_0x39b1e0);let _0x14b8ed=_0x39b1e0,_0x17bd87=EVENT_ENDPOINT;_0x383ba6[_0x38374b(0x1ce)](_0x2fe069,_0x383ba6[_0x38374b(0x1de)])&&this['requestQueueHandler'][_0x38374b(0x21c)]();const {shouldProceed:_0xfd2484,proceedWithData:_0x51b603,proceedWithUrl:_0x5f5bbf}=this[_0x38374b(0x218)][_0x38374b(0x1d2)](_0x39b1e0);if(!_0xfd2484)return;else _0x51b603&&(_0x14b8ed=_0x51b603,_0x17bd87=_0x5f5bbf);const _0x534307={};_0x534307[_0x38374b(0x1b0)]=_0x38374b(0x19d)+process[_0x38374b(0x1bd)][_0x38374b(0x20c)],_0x534307[_0x38374b(0x1e9)]=_0x383ba6[_0x38374b(0x1be)],_0x534307[_0x38374b(0x19c)]=_0x383ba6[_0x38374b(0x188)];const _0x868546={};_0x868546[_0x38374b(0x183)]=_0x534307;const _0x1aa8e8=_0x868546;let _0x4e9331;try{_0x383ba6['CMoan'](_0x2fe069,_0x383ba6[_0x38374b(0x1de)])?(logger['debug'](_0x38374b(0x1da)+_0x39b1e0?.['logs'][0x0]?.['test_run_uuid']),_0x4e9331=await _0x383ba6[_0x38374b(0x193)](asyncAwaitNodeReq,_0x383ba6['ycsjt'],_0x17bd87,_0x14b8ed,_0x1aa8e8),logger[_0x38374b(0x186)](_0x38374b(0x1f3)+_0x39b1e0?.[_0x38374b(0x187)][0x0]?.[_0x38374b(0x1dd)])):_0x4e9331=await _0x383ba6[_0x38374b(0x178)](nodeRequest,_0x383ba6[_0x38374b(0x207)],_0x17bd87,_0x14b8ed,_0x1aa8e8);if(_0x4e9331['data'][_0x38374b(0x1ed)]){const _0x2b0717={};_0x2b0717[_0x38374b(0x17f)]=_0x4e9331[_0x38374b(0x208)][_0x38374b(0x1ed)];throw _0x2b0717;}else{_0x383ba6[_0x38374b(0x1a5)](debug,(_0x383ba6[_0x38374b(0x1ce)](_0x17bd87,this[_0x38374b(0x218)][_0x38374b(0x222)])?_0x1223a5:_0x383ba6[_0x38374b(0x202)])+'['+_0x114573+_0x38374b(0x1f6)),this[_0x38374b(0x218)][_0x38374b(0x1b1)]=Math['max'](0x0,_0x383ba6[_0x38374b(0x1d3)](this[_0x38374b(0x218)][_0x38374b(0x1b1)],_0x383ba6[_0x38374b(0x1fb)](_0x17bd87,_0x383ba6[_0x38374b(0x184)])?0x1:_0x14b8ed[_0x38374b(0x1fa)]));const _0x987274={};return _0x987274[_0x38374b(0x20b)]=_0x383ba6[_0x38374b(0x19f)],_0x987274['message']='',_0x987274;}}catch(_0x199221){_0x199221[_0x38374b(0x221)]?_0x383ba6['fYwsz'](debug,_0x38374b(0x1e7)+(_0x383ba6[_0x38374b(0x1b8)](_0x17bd87,this[_0x38374b(0x218)][_0x38374b(0x222)])?_0x1223a5:_0x383ba6[_0x38374b(0x202)])+'\x20REQUEST\x20TO\x20'+constants[_0x38374b(0x198)]+_0x38374b(0x1fe)+_0x199221[_0x38374b(0x221)]['status']+'\x20'+_0x199221[_0x38374b(0x221)][_0x38374b(0x20d)]+'\x20'+util['format'](_0x199221[_0x38374b(0x221)]['data'])):_0x383ba6['RlGPn'](debug,_0x38374b(0x1e7)+(_0x383ba6[_0x38374b(0x19e)](_0x17bd87,this[_0x38374b(0x218)][_0x38374b(0x222)])?_0x1223a5:_0x383ba6[_0x38374b(0x202)])+_0x38374b(0x1e6)+constants['TEST_REPORTING_ANALYTICS']+_0x38374b(0x1fe)+util[_0x38374b(0x190)](_0x199221));this[_0x38374b(0x218)]['pendingUploads']=Math[_0x38374b(0x1d4)](0x0,_0x383ba6[_0x38374b(0x1a0)](this[_0x38374b(0x218)][_0x38374b(0x1b1)],_0x383ba6['VYyMy'](_0x17bd87,_0x383ba6[_0x38374b(0x184)])?0x1:_0x14b8ed[_0x38374b(0x1fa)]));const _0x36c473={};return _0x36c473[_0x38374b(0x20b)]=_0x383ba6['BzuAe'],_0x36c473[_0x38374b(0x17f)]=_0x199221['message']||(_0x199221[_0x38374b(0x221)]?_0x199221[_0x38374b(0x221)]['status']+':'+_0x199221[_0x38374b(0x221)][_0x38374b(0x20d)]:_0x199221),_0x36c473;}}static async[a129_0x29bd02(0x205)](_0x22f965,_0x4ee9a3=0x0){const _0x496d0e=a129_0x29bd02,_0x31b0c9={'Espcj':function(_0x4215c1,_0x46a9e8){return _0x4215c1+_0x46a9e8;},'OcXAw':function(_0xbf2df4,_0x50b1ab){return _0xbf2df4(_0x50b1ab);},'FagnN':'test_run','uiPHG':_0x496d0e(0x1f0),'mUKtm':_0x496d0e(0x215),'byOjD':function(_0x543efd,_0x465f7f,_0x4484c2){return _0x543efd(_0x465f7f,_0x4484c2);},'ASgsM':'uploadEventData','DaDif':function(_0x522686,_0x2d720e){return _0x522686===_0x2d720e;},'aAIbs':function(_0xf814d4,_0x535f94){return _0xf814d4!==_0x535f94;},'YTecA':'null','KjlIL':_0x496d0e(0x1dc),'vNpWO':function(_0x2e68f8){return _0x2e68f8();},'OWuTl':function(_0x458779,_0xaf8d0c){return _0x458779(_0xaf8d0c);},'Qbuui':function(_0x35e96a,_0x8279de){return _0x35e96a-_0x8279de;},'IsQph':_0x496d0e(0x1ed),'cLuCd':_0x496d0e(0x189),'skwUB':function(_0x286a8c,_0x2ba455){return _0x286a8c>=_0x2ba455;},'bIjVo':function(_0x5b7bf3,_0x369e3a){return _0x5b7bf3-_0x369e3a;},'tIOPU':_0x496d0e(0x199),'EPzuX':function(_0x307553,_0x414cc9){return _0x307553!==_0x414cc9;},'IFJes':_0x496d0e(0x1c7),'UHJFc':function(_0x280dd4,_0xaf64a,_0x2feece){return _0x280dd4(_0xaf64a,_0x2feece);}},_0x7257be=this[_0x496d0e(0x1e1)](_0x22f965);_0x31b0c9['OcXAw'](trace,'Processing\x20event\x20-\x20\x27'+_0x22f965[_0x496d0e(0x176)]+'\x27\x20'+(bsSetupHelper[_0x496d0e(0x1a6)](_0x22f965,[_0x31b0c9[_0x496d0e(0x1e8)],_0x31b0c9[_0x496d0e(0x195)]])||bsSetupHelper[_0x496d0e(0x1a6)](_0x22f965,[_0x31b0c9[_0x496d0e(0x220)],_0x31b0c9[_0x496d0e(0x195)]])));if(!_0x31b0c9[_0x496d0e(0x1c9)](shouldProcessEventForTesthub,_0x22f965[_0x496d0e(0x176)],_0x31b0c9[_0x496d0e(0x1ec)]))return;_0x31b0c9['DaDif'](_0x4ee9a3,0x0)&&process[_0x496d0e(0x1bd)][_0x496d0e(0x20c)]&&_0x31b0c9[_0x496d0e(0x1e3)](process[_0x496d0e(0x1bd)][_0x496d0e(0x20c)],_0x31b0c9[_0x496d0e(0x1df)])&&(this[_0x496d0e(0x218)][_0x496d0e(0x1b1)]+=0x1);if(_0x31b0c9[_0x496d0e(0x1c6)](process[_0x496d0e(0x1bd)]['BS_TESTOPS_BUILD_COMPLETED'],_0x31b0c9[_0x496d0e(0x1cf)])||process[_0x496d0e(0x1bd)][_0x496d0e(0x1b5)]||_0x31b0c9['vNpWO'](isPercyBuild)){if(_0x31b0c9[_0x496d0e(0x1c6)](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x31b0c9[_0x496d0e(0x1df)])){_0x31b0c9[_0x496d0e(0x1eb)](debug,_0x496d0e(0x1e7)+_0x7257be+'\x20REQUEST\x20TO\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x496d0e(0x210)),this['requestQueueHandler'][_0x496d0e(0x1b1)]=Math[_0x496d0e(0x1d4)](0x0,_0x31b0c9[_0x496d0e(0x1d7)](this['requestQueueHandler'][_0x496d0e(0x1b1)],0x1));const _0x20b1a5={};return _0x20b1a5[_0x496d0e(0x20b)]=_0x31b0c9[_0x496d0e(0x185)],_0x20b1a5['message']=_0x31b0c9[_0x496d0e(0x1db)],_0x20b1a5;}return await this[_0x496d0e(0x1b3)](_0x22f965,_0x4ee9a3);}else{if(_0x31b0c9[_0x496d0e(0x212)](_0x4ee9a3,0x5)){_0x31b0c9[_0x496d0e(0x1eb)](debug,'EXCEPTION\x20IN\x20'+_0x7257be+_0x496d0e(0x1e6)+constants[_0x496d0e(0x198)]+_0x496d0e(0x1e4)+_0x7257be+_0x496d0e(0x1cc));_0x31b0c9[_0x496d0e(0x1e3)](process['env'][_0x496d0e(0x20c)],_0x31b0c9[_0x496d0e(0x1df)])&&(this[_0x496d0e(0x218)][_0x496d0e(0x1b1)]=Math[_0x496d0e(0x1d4)](0x0,_0x31b0c9[_0x496d0e(0x223)](this[_0x496d0e(0x218)][_0x496d0e(0x1b1)],0x1)));const _0x5814ea={};return _0x5814ea['status']=_0x31b0c9[_0x496d0e(0x185)],_0x5814ea[_0x496d0e(0x17f)]=_0x31b0c9[_0x496d0e(0x1f7)],_0x5814ea;}else _0x31b0c9[_0x496d0e(0x18e)](process[_0x496d0e(0x1bd)][_0x496d0e(0x17c)],_0x31b0c9[_0x496d0e(0x197)])&&_0x31b0c9[_0x496d0e(0x1a9)](setTimeout,()=>{const _0x4c5b6b=_0x496d0e;this[_0x4c5b6b(0x205)](_0x22f965,_0x31b0c9[_0x4c5b6b(0x192)](_0x4ee9a3,0x1));},0x3e8);}}}function a129_0x1332(_0x378256,_0xdc5ec4){const _0x46540f=a129_0x4654();return a129_0x1332=function(_0x133246,_0x289845){_0x133246=_0x133246-0x174;let _0xb1ebbf=_0x46540f[_0x133246];return _0xb1ebbf;},a129_0x1332(_0x378256,_0xdc5ec4);}module[a129_0x29bd02(0x17e)]=SessionHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a130_0xe31c51=a130_0x56eb;(function(_0x264644,_0x462a95){const _0x525577=a130_0x56eb,_0x3e0941=_0x264644();while(!![]){try{const _0x6273d=-parseInt(_0x525577(0x234))/0x1+-parseInt(_0x525577(0x185))/0x2*(parseInt(_0x525577(0x14e))/0x3)+parseInt(_0x525577(0x189))/0x4*(parseInt(_0x525577(0x24d))/0x5)+parseInt(_0x525577(0x169))/0x6+-parseInt(_0x525577(0x22b))/0x7*(-parseInt(_0x525577(0x204))/0x8)+parseInt(_0x525577(0x15f))/0x9+-parseInt(_0x525577(0x1fe))/0xa;if(_0x6273d===_0x462a95)break;else _0x3e0941['push'](_0x3e0941['shift']());}catch(_0x397655){_0x3e0941['push'](_0x3e0941['shift']());}}}(a130_0x442a,0xae73f));const fs=require('fs'),path=require(a130_0xe31c51(0x1fd)),gitLastCommit=require(a130_0xe31c51(0x255)),getRepoInfo=require(a130_0xe31c51(0x150)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a130_0xe31c51(0x16d)),http=require(a130_0xe31c51(0x1ef)),https=require(a130_0xe31c51(0x1e6)),child_process=require(a130_0xe31c51(0x141)),getos=require('getos'),os=require('os'),logger=require('../logger')[a130_0xe31c51(0x20b)],buildLogger=require(a130_0xe31c51(0x168))['buildLogger'],bsSetupHelper=require(a130_0xe31c51(0x18f)),requestSpy=require(a130_0xe31c51(0x1f7)),constants=require(a130_0xe31c51(0x137)),logPatcher=require(a130_0xe31c51(0x221)),util=require(a130_0xe31c51(0x196)),{fileLogger}=require(a130_0xe31c51(0x168)),PerformanceTester=require(a130_0xe31c51(0x193)),{isFunction}=require(a130_0xe31c51(0x1e7)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a130_0xe31c51(0x258)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a130_0xe31c51(0x1b0));exports[a130_0xe31c51(0x253)]=_0x5e5017=>{const _0x327493=a130_0xe31c51;fileLogger[_0x327493(0x186)]('['+new Date()['toISOString']()+_0x327493(0x222)+constants[_0x327493(0x22f)]+_0x327493(0x1d4)+_0x5e5017);},exports['debug']=_0x41a08e=>{const _0x5380ae=a130_0xe31c51,_0x5ade71={};_0x5ade71[_0x5380ae(0x21d)]=function(_0x41d1b6,_0x34a20d){return _0x41d1b6===_0x34a20d;},_0x5ade71[_0x5380ae(0x1cf)]=_0x5380ae(0x24a),_0x5ade71['FnzGA']=function(_0x1e5bc5,_0x48deda){return _0x1e5bc5===_0x48deda;},_0x5ade71[_0x5380ae(0x257)]=function(_0x2ec872,_0x296657){return _0x2ec872===_0x296657;};const _0xa1c587=_0x5ade71;fileLogger['debug']('['+new Date()['toISOString']()+_0x5380ae(0x222)+constants['TEST_REPORTING_ANALYTICS']+_0x5380ae(0x1d4)+_0x41a08e),(_0xa1c587[_0x5380ae(0x21d)](process['env'][_0x5380ae(0x16b)],_0xa1c587[_0x5380ae(0x1cf)])||_0xa1c587['FnzGA'](process[_0x5380ae(0x15a)][_0x5380ae(0x16b)],'1')||_0xa1c587[_0x5380ae(0x21d)](process['env'][_0x5380ae(0x158)],_0xa1c587[_0x5380ae(0x1cf)])||_0xa1c587[_0x5380ae(0x257)](process[_0x5380ae(0x15a)][_0x5380ae(0x158)],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x5380ae(0x1e3)]()+_0x5380ae(0x222)+constants[_0x5380ae(0x22f)]+_0x5380ae(0x1d4)+_0x41a08e+'\x0a');};const a130_0x55bcfe={};a130_0x55bcfe[a130_0xe31c51(0x226)]=!![],a130_0x55bcfe[a130_0xe31c51(0x1ae)]=0xea60,a130_0x55bcfe[a130_0xe31c51(0x1d0)]=0x2,a130_0x55bcfe[a130_0xe31c51(0x156)]=0x2;const httpKeepAliveAgent=new http[(a130_0xe31c51(0x1f9))](a130_0x55bcfe),a130_0x59b75f={};function a130_0x56eb(_0x1fa7d3,_0x34056b){const _0x442a04=a130_0x442a();return a130_0x56eb=function(_0x56ebb2,_0x3ad647){_0x56ebb2=_0x56ebb2-0x134;let _0x184395=_0x442a04[_0x56ebb2];return _0x184395;},a130_0x56eb(_0x1fa7d3,_0x34056b);}a130_0x59b75f[a130_0xe31c51(0x226)]=!![],a130_0x59b75f[a130_0xe31c51(0x1ae)]=0xea60,a130_0x59b75f[a130_0xe31c51(0x1d0)]=0x2,a130_0x59b75f[a130_0xe31c51(0x156)]=0x2;const httpsKeepAliveAgent=new https[(a130_0xe31c51(0x1f9))](a130_0x59b75f),a130_0x51c9d8={};a130_0x51c9d8['keepAlive']=!![],a130_0x51c9d8['timeout']=0xea60,a130_0x51c9d8[a130_0xe31c51(0x1d0)]=0x2,a130_0x51c9d8[a130_0xe31c51(0x156)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a130_0xe31c51(0x1f9))](a130_0x51c9d8),a130_0x427ae7={};a130_0x427ae7['keepAlive']=!![],a130_0x427ae7[a130_0xe31c51(0x1ae)]=0xea60,a130_0x427ae7['maxSockets']=0x2,a130_0x427ae7[a130_0xe31c51(0x156)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a130_0xe31c51(0x1f9))](a130_0x427ae7);function a130_0x442a(){const _0x5f1128=['win32','keys','cFXzw','UnhandledError','cAmlf','5595592etVnEn','WYmsb','toJSON','match','eFntW','Test\x20timeout\x20of','emit','winstonLogger','rootDir','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','release','backtrace','message','map','HsguF','awOTO','wxZmD','xGjZG','failureData','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','oRyUg','BJVox','BROWSERSTACK_TEST_OBSERVABILITY','capabilities','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','yKAPI','aZBgJ','TEST_ATTACHMENT','TGMYf','../../bin/utils/logPatcher','][\x20','includes','getPackageVersion','CnKoK','keepAlive','iJOwp','trim','headers','sleep','14aEOBog','push','stack','fHzEW','TEST_REPORTING_ANALYTICS','@cucumber/cucumber','linux','getPlatformDetails','UJLDX','780266poXbji','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','readConfig','zKoUn','Uploading\x20trace\x20logs\x20to:\x20','CUSTOM_TAG','platformName','object','map_','rHhvk','ZteCX','SUbSK','CMRcK','getBuildTags','BROWSERSTACK_TESTHUB_JWT','parse','buildTag','\x20test\x20instance\x20:\x20','CkLhE','length','PGQlI','viKfZ','true','owMdF','hiIlM','1869245SgWqmF','oyAxg','ObservabilitySync:','ILnIP','1|5|4|3|2|0','annotate','trace','gwlwR','git-last-commit','pid','yCCdD','../performance/constants','CODECEPT','platformVersion','codeceptjs','error','../../bin/utils/constants','foRRq','mocha','GZJSy','shouldReRunObservabilityTests','QoeGS','fileName','stringify','debug','JEST','child_process','expanded','config','relativeTestFilePath','TFeDk','Error\x20in\x20getting\x20Linux\x20Details','cwd','application/json','TEST_REPORTING_BUILD_TAG','JsDni','then','PathHelper','TEST_PLATFORM','432IJLSOC','UCtwa','git-repo-info','getSession','AbBDi','getFailureType','FnOpC','relative','maxTotalSockets','jest','BROWSERSTACK_OBSERVABILITY_DEBUG','prefix','env','TimeoutError','XdFgu','BROWSERSTACK_RERUN_TESTS','turboscale','12745638qIesvM','ObzYs','parseFileNames','automate','unknown_grid','json','StWfY','QlKZq','getSyncScript','../logger','5568702EzZufF','null','BROWSERSTACK_TEST_REPORTING_DEBUG','cYgZD','./constants','windows-release','xLdeK','asyncAwaitNodeReq','HTTP','uCqED','Content-Type','fhCih','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','CGlGG','OS\x20X','__cloud_provider___','PLAYWRIGHT','darwin','xRxGc','measureWrapper','yFNEZ','url','execSync','extractValuesWithRegexKeyMatch','replace','isUndefined','DXsmi','mfeFB','1840YYyOYt','silly','removeAnsiColors','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','8dwCPZd','isArray','naEBF','VJxxw','O11Y_URL','test','../helper','/builds/','BumhR','@playwright/test','../performance/performance-tester','BROWSERSTACK_CONFIG_FILE_PATH','Npzjw','util','nvyaj','turboScaleGridDetails','sendPlatformDetails','pIGGv','info','Unknown','Error\x20in\x20importing\x20windows-release\x20','Atwfg','split','Windows','bstack:options','dyALM','WLohD','getBrowserStackConfig','rIvTK','filter','dist','uQJHc','isTestObservabilitySession','data','getPlatformVersion','isInternalHook','../../bin/v2/browserstackCLI','timeout','JLnmu','../../../src/bin/utils/constants','logs','BROWSERSTACK_TEST_REPORTING','lgXiQ','appium:app','Dneyn','xqEGR','TEST_OBSERVABILITY_BUILD_TAG','cEmyG','undefined','avWGL','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','app-automate','browserstack','TDMpF','getCapabilities','AssertionError','aQRTb','BROWSERSTACK_TEST_OBSERVABILITY_YML','kNqrl','getObservabilityLinkedProductName','nodeRequest','err','now','crgGC','Linux','body','Visit\x20','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','bs:addPlatformDetails:','MOCHA','TJRwt','maxSockets','Authorization','platform','modifyReqForTraceUpload','\x20]\x20','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','getBrowserName','NTsyp','getAccessKey','getCustomTags','jolkH','format','UpKEZ','LogCreated','X-BSTACK-TESTOPS','hostname','host','catch','RLuJr','toISOString','ysRWR','Hrvri','https','lodash','CUCUMBER','getPlatform','spy','LOgjr','\x20:\x20','agent','bs:addLog:','http','AHfxz','gtuGU','customTag','toString','OZnZt','pfgpl','FaPRZ','../../helpers/request-spy','O11yHashedID','Agent','FwKfc','BS_TESTOPS_BUILD_HASHED_ID','FAoPU','path','28635900lWLdXi'];a130_0x442a=function(){return _0x5f1128;};return a130_0x442a();}exports[a130_0xe31c51(0x13b)]=()=>{const _0x2acb2a=a130_0xe31c51,_0x4b6d24={};_0x4b6d24[_0x2acb2a(0x254)]=function(_0x31a1a2,_0x1464d9){return _0x31a1a2!==_0x1464d9;},_0x4b6d24[_0x2acb2a(0x1e2)]=_0x2acb2a(0x16a);const _0x2cad36=_0x4b6d24;return process['env'][_0x2acb2a(0x15d)]&&_0x2cad36['gwlwR'](process[_0x2acb2a(0x15a)]['BROWSERSTACK_RERUN_TESTS'],_0x2cad36[_0x2acb2a(0x1e2)])?!![]:![];},exports[a130_0xe31c51(0x1a9)]=()=>{const _0xf4c194=a130_0xe31c51,_0x54ec68={};_0x54ec68[_0xf4c194(0x248)]=function(_0x53a138,_0x4fc14b){return _0x53a138===_0x4fc14b;},_0x54ec68['XdFgu']=_0xf4c194(0x24a);const _0x399804=_0x54ec68;let _0x38049d=!![];return process[_0xf4c194(0x15a)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x38049d=_0x399804[_0xf4c194(0x248)](process[_0xf4c194(0x15a)][_0xf4c194(0x1c2)],_0x399804[_0xf4c194(0x15c)])),process[_0xf4c194(0x15a)][_0xf4c194(0x21a)]&&(_0x38049d=_0x399804['PGQlI'](process[_0xf4c194(0x15a)]['BROWSERSTACK_TEST_OBSERVABILITY'],_0x399804['XdFgu'])),process[_0xf4c194(0x15a)][_0xf4c194(0x1b2)]&&(_0x38049d=_0x399804['PGQlI'](process['env']['BROWSERSTACK_TEST_REPORTING'],_0x399804[_0xf4c194(0x15c)])),_0x38049d;},exports[a130_0xe31c51(0x161)]=_0x578dfd=>{const _0x5c7da3=a130_0xe31c51;if(bsSetupHelper[_0x5c7da3(0x182)](_0x578dfd))return undefined;try{return _0x578dfd[_0x5c7da3(0x228)]()['split'](',');}catch(_0x54df33){return undefined;}},exports['printBuildLink']=()=>{const _0x5ef8ed=a130_0xe31c51,_0x32eb41={'CMRcK':function(_0x56558a,_0x353327){return _0x56558a(_0x353327);},'fHzEW':_0x5ef8ed(0x1ad),'UCtwa':function(_0x1454dd,_0x3a1aa7){return _0x1454dd!==_0x3a1aa7;},'aZBgJ':_0x5ef8ed(0x16a),'ILnIP':_0x5ef8ed(0x1b9)};return PerformanceTester[_0x5ef8ed(0x17c)](PerformanceO11yEvents['PRINT_BUILDLINK'],async()=>{const _0x2c3154=_0x5ef8ed;try{const _0x23a970=_0x32eb41[_0x2c3154(0x240)](require,_0x32eb41[_0x2c3154(0x22e)]);if(_0x23a970[_0x2c3154(0x1f8)]){const _0x4362bb=_0x2c3154(0x1cb)+O11Y_URL+_0x2c3154(0x190)+_0x23a970['O11yHashedID']+_0x2c3154(0x217);buildLogger[_0x2c3154(0x19b)](_0x4362bb);return;}if(process[_0x2c3154(0x15a)][_0x2c3154(0x1fb)]&&_0x32eb41[_0x2c3154(0x14f)](process[_0x2c3154(0x15a)][_0x2c3154(0x1fb)],_0x32eb41[_0x2c3154(0x21e)])&&_0x32eb41['UCtwa'](process[_0x2c3154(0x15a)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x32eb41[_0x2c3154(0x250)])){const _0x22bc5d='Visit\x20'+constants[_0x2c3154(0x18d)]+_0x2c3154(0x190)+process[_0x2c3154(0x15a)][_0x2c3154(0x1fb)]+_0x2c3154(0x217);buildLogger[_0x2c3154(0x19b)](_0x22bc5d);}}catch(_0x596ee5){logger['error'](util[_0x2c3154(0x1db)]('[%s][\x20'+constants[_0x2c3154(0x22f)]+'\x20]\x20Build\x20Not\x20Found\x20%s',new Date()[_0x2c3154(0x1e3)](),_0x596ee5[_0x2c3154(0x22d)]||_0x596ee5[_0x2c3154(0x210)]||_0x596ee5));}})();},exports[a130_0xe31c51(0x153)]=_0x3e7adf=>{const _0x5d5118=a130_0xe31c51,_0xfb1895={};_0xfb1895[_0x5d5118(0x1e4)]=_0x5d5118(0x1c0),_0xfb1895[_0x5d5118(0x1ba)]=_0x5d5118(0x209),_0xfb1895[_0x5d5118(0x23e)]=_0x5d5118(0x15b),_0xfb1895[_0x5d5118(0x218)]=_0x5d5118(0x202);const _0x598b3d=_0xfb1895;if(!_0x3e7adf)return null;const _0x1ea396=_0x3e7adf['toString']();if(_0x1ea396['match'](/AssertionError/))return _0x598b3d[_0x5d5118(0x1e4)];if(_0x1ea396['match'](/TimeoutError/)||_0x1ea396['startsWith'](_0x598b3d['avWGL'])||_0x1ea396[_0x5d5118(0x207)](/Timeout.*exceeded/i))return _0x598b3d['ZteCX'];return _0x598b3d[_0x5d5118(0x218)];},exports['getFrameworkVersion']=_0x2988f3=>{const _0x26e3d6=a130_0xe31c51,_0x293779={};_0x293779[_0x26e3d6(0x225)]=_0x26e3d6(0x139),_0x293779[_0x26e3d6(0x205)]=_0x26e3d6(0x192),_0x293779[_0x26e3d6(0x212)]=_0x26e3d6(0x135),_0x293779[_0x26e3d6(0x16f)]=_0x26e3d6(0x157),_0x293779[_0x26e3d6(0x1af)]=_0x26e3d6(0x230);const _0x2ff006=_0x293779;let _0x31e34c=null;switch(_0x2988f3){case FRAMEWORKS[_0x26e3d6(0x1ce)]:_0x31e34c=bsSetupHelper[_0x26e3d6(0x224)](_0x2ff006['CnKoK']);break;case FRAMEWORKS[_0x26e3d6(0x179)]:_0x31e34c=bsSetupHelper['getPackageVersion'](_0x2ff006[_0x26e3d6(0x205)]);break;case FRAMEWORKS[_0x26e3d6(0x259)]:case FRAMEWORKS['CODECEPT_CUCUMBER']:_0x31e34c=bsSetupHelper['getPackageVersion'](_0x2ff006[_0x26e3d6(0x212)]);break;case FRAMEWORKS[_0x26e3d6(0x140)]:_0x31e34c=bsSetupHelper[_0x26e3d6(0x224)](_0x2ff006[_0x26e3d6(0x16f)]);break;case FRAMEWORKS[_0x26e3d6(0x1e8)]:_0x31e34c=bsSetupHelper[_0x26e3d6(0x224)](_0x2ff006[_0x26e3d6(0x1af)]);break;default:break;}return _0x31e34c;},exports[a130_0xe31c51(0x1a4)]=_0x1742bd=>{const _0x3d4f07=a130_0xe31c51;let _0x99fd61=null;switch(_0x1742bd){case FRAMEWORKS['PLAYWRIGHT']:_0x99fd61=process[_0x3d4f07(0x15a)][_0x3d4f07(0x194)];break;}if(!_0x99fd61)return;return bsSetupHelper[_0x3d4f07(0x236)](_0x99fd61,![]);},exports['getUserCredentials']=_0x575566=>{const _0x596e3b=a130_0xe31c51;return{'username':bsSetupHelper['getUserName'](_0x575566),'accessKey':bsSetupHelper[_0x596e3b(0x1d8)](_0x575566)};},exports['modifyReqForTraceUpload']=(_0x516ac7,_0x214931)=>{const _0x40fb5d=a130_0xe31c51,_0x3b50af={};_0x3b50af['fhCih']=_0x40fb5d(0x251),_0x3b50af[_0x40fb5d(0x1f4)]=_0x40fb5d(0x1dd),_0x3b50af[_0x40fb5d(0x16c)]=_0x40fb5d(0x21f);const _0x2fe3b7=_0x3b50af,_0x20526a=_0x2fe3b7[_0x40fb5d(0x174)][_0x40fb5d(0x19f)]('|');let _0x353dc7=0x0;while(!![]){switch(_0x20526a[_0x353dc7++]){case'0':delete _0x214931[_0x40fb5d(0x229)];continue;case'1':if(!_0x516ac7[_0x40fb5d(0x1ca)]||!Array[_0x40fb5d(0x18a)](_0x516ac7[_0x40fb5d(0x1ca)]))return;continue;case'2':delete _0x516ac7[_0x40fb5d(0x164)];continue;case'3':delete _0x516ac7['body'];continue;case'4':_0x516ac7['formData']={'data':_0x516ac7[_0x40fb5d(0x1ca)][0x0][_0x40fb5d(0x1b1)][0x0][_0x40fb5d(0x1aa)],'test_run_uuid':_0x516ac7[_0x40fb5d(0x1ca)][0x0][_0x40fb5d(0x1b1)][0x0]['test_run_uuid'],'event_type':_0x2fe3b7[_0x40fb5d(0x1f4)],'kind':_0x2fe3b7[_0x40fb5d(0x16c)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x40fb5d(0x1e3)](),'fileName':_0x516ac7[_0x40fb5d(0x1ca)][0x0][_0x40fb5d(0x1b1)][0x0][_0x40fb5d(0x13d)]};continue;case'5':if(!_0x516ac7['body'][0x0]||!_0x516ac7[_0x40fb5d(0x1ca)][0x0][_0x40fb5d(0x1b1)]||!_0x516ac7[_0x40fb5d(0x1ca)][0x0][_0x40fb5d(0x1b1)][_0x40fb5d(0x247)])return;continue;}break;}},exports[a130_0xe31c51(0x170)]=async(_0x16cbef,_0x4c5f50,_0x40d212,_0x30e16f,_0x5f5b8f=!![])=>{const _0x598649=a130_0xe31c51,_0x33474f={};_0x33474f[_0x598649(0x1a8)]=function(_0x5257ca,_0x2cf3be){return _0x5257ca===_0x2cf3be;},_0x33474f[_0x598649(0x18b)]=_0x598649(0x173),_0x33474f[_0x598649(0x1c8)]='application/json',_0x33474f[_0x598649(0x220)]=_0x598649(0x1e6),_0x33474f[_0x598649(0x19e)]=function(_0x5bbb57,_0x30c1dc){return _0x5bbb57!==_0x30c1dc;},_0x33474f['ZxLYJ']=function(_0x1ac110,_0x2a6041){return _0x1ac110!==_0x2a6041;},_0x33474f[_0x598649(0x191)]=_0x598649(0x23b),_0x33474f[_0x598649(0x183)]=_0x598649(0x20d);const _0x877373=_0x33474f,_0x7e3c2a={..._0x30e16f,...{'method':_0x16cbef,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x4c5f50,'body':_0x40d212,'json':_0x877373[_0x598649(0x1a8)](_0x30e16f[_0x598649(0x229)][_0x877373[_0x598649(0x18b)]],_0x877373[_0x598649(0x1c8)]),'agent':API_URL[_0x598649(0x223)](_0x877373['TGMYf'])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x877373[_0x598649(0x1a8)](_0x4c5f50,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x7e3c2a[_0x598649(0x1ed)]=API_URL['includes'](_0x877373[_0x598649(0x220)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x598649(0x1d3)](_0x7e3c2a,_0x30e16f),logger[_0x598649(0x13f)](_0x598649(0x238)+_0x7e3c2a['url']));try{const {statusCode:_0x261079,body:_0x4461f7}=await bsSetupHelper[_0x598649(0x1c5)](_0x16cbef,_0x4c5f50,_0x7e3c2a,_0x30e16f,_0x7e3c2a[_0x598649(0x17e)]);if(_0x877373[_0x598649(0x19e)](_0x261079,0xc8))return _0x4461f7?_0x4461f7:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x261079;let _0x4996c1=_0x4461f7;if(_0x5f5b8f)try{_0x877373['ZxLYJ'](typeof _0x4461f7,_0x877373[_0x598649(0x191)])&&(_0x4996c1=JSON['parse'](_0x4461f7));}catch(_0x4297b0){logger['error'](_0x877373[_0x598649(0x183)],_0x4461f7,util['format'](_0x4297b0));}const _0x12654e={};return _0x12654e['data']=_0x4996c1,_0x12654e;}catch(_0x1c8600){logger[_0x598649(0x136)](_0x598649(0x188)+util[_0x598649(0x1db)](_0x1c8600));throw _0x1c8600;}},exports[a130_0xe31c51(0x1c5)]=(_0x39309a,_0x10eb4a,_0x544f77,_0xb5df81,_0x4bc7f1=!![])=>{const _0x2eff73=a130_0xe31c51,_0x331c3e={'owMdF':function(_0x19b3b3,_0x25b1ec){return _0x19b3b3(_0x25b1ec);},'pfgpl':function(_0x4cbd16,_0x2101d6){return _0x4cbd16!==_0x2101d6;},'scLkf':_0x2eff73(0x23b),'Npzjw':_0x2eff73(0x21c),'NTsyp':function(_0x5143c2,_0x33d40c){return _0x5143c2===_0x33d40c;},'pIGGv':_0x2eff73(0x173),'QHHWH':_0x2eff73(0x148),'ObzYs':_0x2eff73(0x1e6)};return new Promise((_0x3a8bbe,_0x11d673)=>{const _0x316838=_0x2eff73,_0x36ff33={'TFeDk':function(_0x16a8a1,_0x592f7c){const _0x3561c4=a130_0x56eb;return _0x331c3e[_0x3561c4(0x1f5)](_0x16a8a1,_0x592f7c);},'dyALM':function(_0x477385,_0x4f125e){const _0x35b889=a130_0x56eb;return _0x331c3e[_0x35b889(0x24b)](_0x477385,_0x4f125e);},'HLtUI':_0x331c3e['scLkf'],'QlKZq':function(_0x3be2b1,_0x421341){const _0x4efaf8=a130_0x56eb;return _0x331c3e[_0x4efaf8(0x24b)](_0x3be2b1,_0x421341);},'BJVox':_0x331c3e[_0x316838(0x195)]},_0x3a11c9={..._0xb5df81,...{'method':_0x39309a,'url':API_URL+'/'+_0x10eb4a,'body':_0x544f77,'json':_0x331c3e[_0x316838(0x1d7)](_0xb5df81[_0x316838(0x229)][_0x331c3e[_0x316838(0x19a)]],_0x331c3e['QHHWH']),'agent':API_URL[_0x316838(0x223)](_0x331c3e[_0x316838(0x160)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x331c3e[_0x316838(0x1d7)](_0x10eb4a,SCREENSHOT_ENDPOINT)&&(_0x3a11c9[_0x316838(0x1ed)]=API_URL[_0x316838(0x223)](_0x331c3e[_0x316838(0x160)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x316838(0x1c5)](_0x39309a,_0x10eb4a,_0x3a11c9,_0xb5df81,API_URL)[_0x316838(0x14b)](({statusCode:_0x5b73bf,body:_0x3c530b})=>{const _0x5098da=_0x316838;if(_0x36ff33['TFeDk'](_0x5b73bf,0xc8))_0x36ff33[_0x5098da(0x1a2)](_0x11d673,_0x3c530b?_0x3c530b:_0x5098da(0x235)+_0x5b73bf);else{if(_0x4bc7f1)try{_0x36ff33[_0x5098da(0x145)](typeof _0x3c530b,_0x36ff33['HLtUI'])&&(_0x3c530b=JSON[_0x5098da(0x243)](_0x3c530b));}catch(_0xc8360){_0x36ff33[_0x5098da(0x166)](_0x11d673,_0x36ff33[_0x5098da(0x219)]);return;}const _0x44101f={};_0x44101f['data']=_0x3c530b,_0x36ff33[_0x5098da(0x166)](_0x3a8bbe,_0x44101f);}})[_0x316838(0x1e1)](_0x189d98=>{const _0x55d9f3=_0x316838;_0x189d98&&_0x331c3e[_0x55d9f3(0x24b)](_0x11d673,_0x189d98);});});},exports[a130_0xe31c51(0x241)]=_0x355b0f=>{const _0x3736a2=a130_0xe31c51;if(process['env'][_0x3736a2(0x149)])return process[_0x3736a2(0x15a)][_0x3736a2(0x149)][_0x3736a2(0x19f)](',');if(process[_0x3736a2(0x15a)][_0x3736a2(0x1b7)])return process[_0x3736a2(0x15a)]['TEST_OBSERVABILITY_BUILD_TAG'][_0x3736a2(0x19f)](',');if(_0x355b0f[_0x3736a2(0x244)])return _0x355b0f[_0x3736a2(0x244)];return[];},exports['getDefaultHeaders']=(_0x4bed72=!![])=>{const _0x20b74f=a130_0xe31c51,_0x53deac={};_0x53deac['nvyaj']=_0x20b74f(0x148),_0x53deac['StWfY']='true',_0x53deac[_0x20b74f(0x215)]=_0x20b74f(0x1d1);const _0x1c5549=_0x53deac,_0x5b1ecb={};_0x5b1ecb[_0x20b74f(0x173)]=_0x1c5549[_0x20b74f(0x197)],_0x5b1ecb[_0x20b74f(0x1de)]=_0x1c5549[_0x20b74f(0x165)];const _0x4b35b4=_0x5b1ecb;return _0x4bed72&&process['env'][_0x20b74f(0x242)]&&(_0x4b35b4[_0x1c5549[_0x20b74f(0x215)]]='Bearer\x20'+process[_0x20b74f(0x15a)][_0x20b74f(0x242)]),_0x4b35b4;},exports[a130_0xe31c51(0x180)]=_0x3223f3=>{const _0x37dce3=a130_0xe31c51,_0x4e7227={};_0x4e7227[_0x37dce3(0x1a3)]='^CUSTOM_TAG_\x5cd+$';const _0x2f12cc=_0x4e7227,_0x535c7d=[],_0x4399c1=new RegExp(_0x2f12cc[_0x37dce3(0x1a3)],'i');return Object[_0x37dce3(0x200)](_0x3223f3)[_0x37dce3(0x1a6)](_0x1e4a28=>_0x4399c1[_0x37dce3(0x18e)](_0x1e4a28))['forEach'](_0x214001=>_0x535c7d['push'](_0x3223f3[_0x214001])),_0x535c7d;},exports[a130_0xe31c51(0x1d9)]=_0x52ed73=>{const _0x249822=a130_0xe31c51,_0x496aef=[],_0x21b168=_0x52ed73[_0x249822(0x1f2)]||process[_0x249822(0x15a)][_0x249822(0x239)];return _0x21b168&&_0x496aef[_0x249822(0x22c)](_0x21b168),_0x496aef['push'](...exports[_0x249822(0x180)](process['env'])),_0x496aef['push'](...exports[_0x249822(0x180)](_0x52ed73)),_0x496aef;},exports['removeAnsiColors']=_0x5254d8=>{const _0x2a7333=a130_0xe31c51;if(!_0x5254d8)return'';return _0x5254d8[_0x2a7333(0x181)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a130_0xe31c51(0x22a)]=(_0xdc6e7d=0x64)=>new Promise(_0x193260=>setTimeout(_0x193260,_0xdc6e7d));const getPlatformName=()=>{const _0x5a0147=a130_0xe31c51,_0x518ae2={};_0x518ae2[_0x5a0147(0x1f0)]=function(_0x43584f,_0xce31d6){return _0x43584f===_0xce31d6;},_0x518ae2[_0x5a0147(0x24c)]=_0x5a0147(0x1ff),_0x518ae2[_0x5a0147(0x246)]=_0x5a0147(0x1a0),_0x518ae2['uCqED']=function(_0x16180f,_0x20b4b4){return _0x16180f===_0x20b4b4;},_0x518ae2[_0x5a0147(0x23f)]=_0x5a0147(0x17a),_0x518ae2[_0x5a0147(0x1f6)]=_0x5a0147(0x177),_0x518ae2[_0x5a0147(0x1e5)]=_0x5a0147(0x231),_0x518ae2[_0x5a0147(0x1a5)]='Linux',_0x518ae2[_0x5a0147(0x138)]=_0x5a0147(0x19c);const _0x1f49d6=_0x518ae2;if(_0x1f49d6[_0x5a0147(0x1f0)](process[_0x5a0147(0x1d2)],_0x1f49d6['hiIlM']))return _0x1f49d6['CkLhE'];if(_0x1f49d6['uCqED'](process[_0x5a0147(0x1d2)],_0x1f49d6[_0x5a0147(0x23f)]))return _0x1f49d6['FaPRZ'];if(_0x1f49d6[_0x5a0147(0x172)](process[_0x5a0147(0x1d2)],_0x1f49d6[_0x5a0147(0x1e5)]))return _0x1f49d6[_0x5a0147(0x1a5)];return _0x1f49d6[_0x5a0147(0x138)];},getMacOSVersion=()=>{const _0x4c9c5d=a130_0xe31c51,_0x50f726={};_0x50f726['FAoPU']=_0x4c9c5d(0x1bb);const _0x571fbb=_0x50f726;return child_process[_0x4c9c5d(0x17f)](_0x571fbb[_0x4c9c5d(0x1fc)])['toString']()['trim']();},getLinuxDetails=()=>{const _0xc50c1={'VJxxw':function(_0x1a95a4,_0x14680c){return _0x1a95a4(_0x14680c);},'awOTO':function(_0x1e23af,_0x41b202){return _0x1e23af(_0x41b202);}};return new Promise((_0x1306af,_0x1054a8)=>{const _0x27c807=a130_0x56eb,_0x33d1fe={'aQRTb':function(_0x102076,_0x21863e){const _0x323026=a130_0x56eb;return _0xc50c1[_0x323026(0x18c)](_0x102076,_0x21863e);}};_0xc50c1[_0x27c807(0x213)](getos,(_0xe1ef9f,_0x22a588)=>{const _0x3a8cbb=_0x27c807;if(_0xe1ef9f)return _0x33d1fe[_0x3a8cbb(0x1c1)](_0x1054a8,_0xe1ef9f);_0x33d1fe['aQRTb'](_0x1306af,_0x22a588);});});};exports[a130_0xe31c51(0x232)]=async()=>{const _0x1280a1=a130_0xe31c51,_0x28604b={'oyAxg':function(_0x309418){return _0x309418();},'cEmyG':_0x1280a1(0x177),'jHfQP':function(_0x23f6e6){return _0x23f6e6();},'eFntW':_0x1280a1(0x1a0),'viKfZ':_0x1280a1(0x16e),'cJQBI':function(_0xfa9879){return _0xfa9879();},'zKoUn':_0x1280a1(0x1c9),'CYplW':function(_0x319408){return _0x319408();},'cAmlf':_0x1280a1(0x146)};let _0xc62c5e=_0x28604b[_0x1280a1(0x24e)](getPlatformName),_0x125b7a=os['release']()[_0x1280a1(0x1f3)]();switch(_0xc62c5e){case _0x28604b[_0x1280a1(0x1b8)]:_0x125b7a=_0x28604b['jHfQP'](getMacOSVersion);break;case _0x28604b[_0x1280a1(0x208)]:try{const _0x1aaf35=(await import(_0x28604b[_0x1280a1(0x249)]))['default'];_0x125b7a=_0x28604b['cJQBI'](_0x1aaf35);}catch(_0x20827a){exports[_0x1280a1(0x13f)](_0x1280a1(0x19d)+_0x20827a[_0x1280a1(0x1f3)]());}break;case _0x28604b[_0x1280a1(0x237)]:try{const _0x4b21ad=await _0x28604b['CYplW'](getLinuxDetails);_0x4b21ad[_0x1280a1(0x1a7)]&&(_0xc62c5e=_0x4b21ad[_0x1280a1(0x1a7)]),_0x4b21ad[_0x1280a1(0x20e)]&&(_0x125b7a=_0x4b21ad['release'][_0x1280a1(0x1f3)]());}catch(_0xe8f588){exports[_0x1280a1(0x13f)](_0x28604b[_0x1280a1(0x203)]);}break;default:break;}const _0x3529d2={};return _0x3529d2[_0x1280a1(0x23a)]=_0xc62c5e,_0x3529d2[_0x1280a1(0x134)]=_0x125b7a,_0x3529d2;},exports[a130_0xe31c51(0x216)]=(_0x59bc5c,_0x254f62)=>{const _0x13532d=a130_0xe31c51,_0x3c8c8b={};_0x3c8c8b[_0x13532d(0x154)]=function(_0x3a9dc8,_0x36faf4){return _0x3a9dc8===_0x36faf4;},_0x3c8c8b[_0x13532d(0x1dc)]='test',_0x3c8c8b[_0x13532d(0x1b5)]=_0x13532d(0x1c6);const _0x4995bd=_0x3c8c8b;if(!_0x59bc5c)return[];try{if(_0x4995bd[_0x13532d(0x154)](_0x254f62,_0x4995bd[_0x13532d(0x1dc)]))return _0x59bc5c[_0x13532d(0x211)](_0x2c1404=>{const _0x2b25d3=_0x13532d,{stack:_0x229504,..._0x2c1f33}=_0x2c1404,_0x84c823=Object[_0x2b25d3(0x200)](_0x2c1f33)[_0x2b25d3(0x211)](_0x5ca5a1=>{return _0x5ca5a1+':\x20'+_0x2c1f33[_0x5ca5a1];}),_0x4a7708=_0x229504?exports['removeAnsiColors'](_0x229504)['split'](/\r?\n/):[exports['removeAnsiColors'](_0x2c1404[_0x2b25d3(0x210)])],_0x1ac622={};return _0x1ac622[_0x2b25d3(0x20f)]=_0x4a7708,_0x1ac622[_0x2b25d3(0x142)]=_0x84c823,_0x1ac622;});else{if(_0x4995bd[_0x13532d(0x154)](_0x254f62,_0x4995bd[_0x13532d(0x1b5)])){const _0x21442d=[],_0x6ccb7b=[];return Object[_0x13532d(0x200)](_0x59bc5c)['forEach'](_0x551d24=>{const _0x227510=_0x13532d;try{_0x6ccb7b[_0x227510(0x22c)](_0x551d24+':\x20'+_0x59bc5c[_0x551d24]);}catch(_0x4c5385){exports[_0x227510(0x13f)](_0x227510(0x1d5)+_0x4c5385[_0x227510(0x210)]+_0x227510(0x1ec)+_0x4c5385['backtrace']);}}),_0x21442d['push']({'backtrace':exports[_0x13532d(0x187)](_0x59bc5c[_0x13532d(0x22d)])[_0x13532d(0x19f)](/\r?\n/),'expanded':_0x6ccb7b}),_0x21442d;}}return[];}catch(_0x24840e){exports['debug']('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x24840e[_0x13532d(0x210)]+_0x13532d(0x1ec)+_0x24840e[_0x13532d(0x20f)]);}return[];};class PathHelper{constructor(_0x39c4d9,_0x56079d){const _0x2061d7=a130_0xe31c51;this[_0x2061d7(0x143)]=_0x39c4d9,this['prefix']=_0x56079d;}['relativeTestFilePath'](_0x29c7ce){const _0x330787=a130_0xe31c51,_0x4a53ad=this[_0x330787(0x143)][_0x330787(0x147)]||this[_0x330787(0x143)][_0x330787(0x20c)];return path[_0x330787(0x155)](_0x4a53ad,_0x29c7ce);}['prefixTestPath'](_0x2f389c){const _0x12b91d=a130_0xe31c51,_0x3754ea=this[_0x12b91d(0x144)](_0x2f389c);return this[_0x12b91d(0x159)]?path['join'](this[_0x12b91d(0x159)],_0x3754ea):_0x3754ea;}}exports[a130_0xe31c51(0x14c)]=PathHelper,exports['addRequestSpy']=(_0x280980=!![])=>{const _0x11b04c=a130_0xe31c51,_0x1c9eb9={};_0x1c9eb9['UJLDX']=function(_0x4bd63a,_0x4a0ad3){return _0x4bd63a===_0x4a0ad3;},_0x1c9eb9[_0x11b04c(0x17b)]=_0x11b04c(0x1de),_0x1c9eb9[_0x11b04c(0x23d)]=_0x11b04c(0x24a),_0x1c9eb9[_0x11b04c(0x1be)]=_0x11b04c(0x171),_0x1c9eb9[_0x11b04c(0x1c3)]='browserstack',_0x1c9eb9[_0x11b04c(0x152)]='local_grid';const _0x4b955=_0x1c9eb9;requestSpy[_0x11b04c(0x1ea)]((_0x1a61c0,_0x34620a)=>{const _0x4b091d=_0x11b04c;_0x34620a&&!(_0x34620a['headers']&&_0x4b955[_0x4b091d(0x233)](_0x34620a[_0x4b091d(0x229)][_0x4b955[_0x4b091d(0x17b)]],_0x4b955['rHhvk']))&&(_0x34620a[_0x4b091d(0x1e0)]=_0x34620a[_0x4b091d(0x1df)],delete _0x34620a['hostname'],_0x280980&&process[_0x4b091d(0x20a)](_0x4b091d(0x1ee)+process[_0x4b091d(0x256)],{'timestamp':new Date()[_0x4b091d(0x1e3)](),'level':null,'message':null,'kind':_0x4b955[_0x4b091d(0x1be)],'http_response':_0x34620a})),_0x34620a&&(constants['HUB_URL_REGEX'][_0x4b091d(0x18e)](_0x34620a[_0x4b091d(0x1e0)])||constants['ATS_HUB_URL_REGEX'][_0x4b091d(0x18e)](_0x34620a['host']))?global[_0x4b091d(0x178)]=_0x4b955['kNqrl']:global[_0x4b091d(0x178)]=_0x4b955['AbBDi'];});},exports['patchConsoleLogger']=()=>{const _0x4efc50=a130_0xe31c51,_0x321c2c={'GZJSy':function(_0xfcac14,_0x39eaf9){return _0xfcac14(_0x39eaf9);}};console={},Object[_0x4efc50(0x200)](consoleHolder)['forEach'](_0x501f21=>{const _0x3b7fe9=_0x4efc50;_0x321c2c[_0x3b7fe9(0x13a)](isFunction,consoleHolder[_0x501f21])?console[_0x501f21]=(..._0x13d0e5)=>{const _0x363eca=_0x3b7fe9;try{!Object[_0x363eca(0x200)](BSTestOpsPatcher)[_0x363eca(0x223)](_0x501f21)?consoleHolder[_0x501f21](..._0x13d0e5):BSTestOpsPatcher[_0x501f21](..._0x13d0e5);}catch(_0x418aca){consoleHolder[_0x501f21](..._0x13d0e5);}}:console[_0x501f21]=consoleHolder[_0x501f21];});},exports[a130_0xe31c51(0x167)]=()=>'browserstack_executor:\x20'+JSON[a130_0xe31c51(0x13e)]({'action':a130_0xe31c51(0x252),'arguments':{'data':a130_0xe31c51(0x24f)+Date[a130_0xe31c51(0x1c7)](),'level':a130_0xe31c51(0x13f)}}),exports[a130_0xe31c51(0x1c4)]=_0x181f39=>{const _0x4bcf92=a130_0xe31c51,_0x3aeec6={};_0x3aeec6[_0x4bcf92(0x201)]=function(_0x118c54,_0x24ac7d){return _0x118c54===_0x24ac7d;},_0x3aeec6[_0x4bcf92(0x1eb)]=_0x4bcf92(0x1bd),_0x3aeec6[_0x4bcf92(0x214)]=_0x4bcf92(0x1b4),_0x3aeec6[_0x4bcf92(0x1f1)]='app',_0x3aeec6[_0x4bcf92(0x1fa)]=function(_0x4c38dc,_0x4f8324){return _0x4c38dc>_0x4f8324;},_0x3aeec6[_0x4bcf92(0x13c)]=_0x4bcf92(0x1bc),_0x3aeec6[_0x4bcf92(0x1da)]=_0x4bcf92(0x1a1),_0x3aeec6[_0x4bcf92(0x176)]=_0x4bcf92(0x198),_0x3aeec6['JsDni']=_0x4bcf92(0x15e),_0x3aeec6[_0x4bcf92(0x1b6)]=_0x4bcf92(0x162);const _0x2148f3=_0x3aeec6;let _0x4e812c=null;try{if(_0x2148f3[_0x4bcf92(0x201)](global[_0x4bcf92(0x178)],_0x2148f3[_0x4bcf92(0x1eb)])){if(_0x181f39[_0x2148f3[_0x4bcf92(0x214)]]||_0x181f39[_0x2148f3[_0x4bcf92(0x1f1)]]||!bsSetupHelper[_0x4bcf92(0x182)](global[_0x4bcf92(0x21b)])&&_0x2148f3[_0x4bcf92(0x1fa)](global[_0x4bcf92(0x21b)]['length'],0x0)&&(global['capabilities'][0x0][_0x2148f3[_0x4bcf92(0x1f1)]]||global[_0x4bcf92(0x21b)][0x0][_0x2148f3[_0x4bcf92(0x214)]]))_0x4e812c=_0x2148f3['QoeGS'];else _0x181f39[_0x2148f3['jolkH']]&&_0x181f39[_0x2148f3[_0x4bcf92(0x1da)]][_0x2148f3[_0x4bcf92(0x176)]]?_0x4e812c=_0x2148f3[_0x4bcf92(0x14a)]:_0x4e812c=_0x2148f3[_0x4bcf92(0x1b6)];}}catch(_0x312476){exports[_0x4bcf92(0x13f)](_0x4bcf92(0x175)+constants[_0x4bcf92(0x22f)]+_0x4bcf92(0x245)+_0x312476);}return _0x4e812c;},exports[a130_0xe31c51(0x199)]=async(_0x3f9e0d,_0x5069ed,_0x13cf49=![])=>{const _0x37c312=a130_0xe31c51,_0x3e03b2={};_0x3e03b2[_0x37c312(0x1b3)]=function(_0x528998,_0x319b2f){return _0x528998===_0x319b2f;},_0x3e03b2['iJOwp']=_0x37c312(0x1bd),_0x3e03b2[_0x37c312(0x184)]=_0x37c312(0x163),_0x3e03b2[_0x37c312(0x17d)]=_0x37c312(0x14d);const _0x418687=_0x3e03b2;try{const _0x11e158=await _0x3f9e0d[_0x37c312(0x1bf)](),_0x355b66=await _0x3f9e0d[_0x37c312(0x151)](),_0xe96db0={},_0x3753fe=Object['fromEntries'](_0x355b66[_0x37c312(0x1bf)]()[_0x37c312(0x23c)]),_0x332c42={'product':exports[_0x37c312(0x1c4)](_0x3753fe),'capabilities':_0x3753fe,'platform':_0x11e158[_0x37c312(0x1e9)](),'platform_version':bsSetupHelper[_0x37c312(0x1ab)](_0x418687[_0x37c312(0x1b3)](global['__cloud_provider___'],_0x418687[_0x37c312(0x227)])),'browser':_0x11e158[_0x37c312(0x1d6)](),'browser_version':_0x11e158['getBrowserVersion'](),'session_id':_0x355b66[_0x37c312(0x206)]()};global[_0x37c312(0x178)]?_0xe96db0[global[_0x37c312(0x178)]]=_0x332c42:_0xe96db0[_0x418687['mfeFB']]=_0x332c42;if(_0x13cf49)return _0xe96db0;process['emit'](_0x37c312(0x1cd)+process[_0x37c312(0x256)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x418687[_0x37c312(0x17d)],'http_response':_0xe96db0,'uuid':_0x5069ed});}catch(_0x294ed2){exports['debug'](_0x37c312(0x1cc)+_0x294ed2);}},exports[a130_0xe31c51(0x1ac)]=_0x23e488=>{const _0x28cdaa=a130_0xe31c51;return _0x23e488&&_0x23e488['toString']()[_0x28cdaa(0x207)](/browserstack internal helper hook/);};
|
|
1
|
+
const a130_0xed6e4f=a130_0x589e;(function(_0x1a8e24,_0x155c0e){const _0x371c16=a130_0x589e,_0x348c89=_0x1a8e24();while(!![]){try{const _0x55b36a=parseInt(_0x371c16(0xab))/0x1*(-parseInt(_0x371c16(0xbe))/0x2)+-parseInt(_0x371c16(0x11e))/0x3*(parseInt(_0x371c16(0xc6))/0x4)+parseInt(_0x371c16(0x105))/0x5+-parseInt(_0x371c16(0x17d))/0x6+-parseInt(_0x371c16(0x176))/0x7*(-parseInt(_0x371c16(0xcb))/0x8)+-parseInt(_0x371c16(0xeb))/0x9*(-parseInt(_0x371c16(0x192))/0xa)+parseInt(_0x371c16(0x1a1))/0xb;if(_0x55b36a===_0x155c0e)break;else _0x348c89['push'](_0x348c89['shift']());}catch(_0x3ac390){_0x348c89['push'](_0x348c89['shift']());}}}(a130_0x1a2a,0xc91c1));const fs=require('fs'),path=require('path'),gitLastCommit=require(a130_0xed6e4f(0x175)),getRepoInfo=require(a130_0xed6e4f(0x1b3)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require('./constants'),http=require(a130_0xed6e4f(0x1a0)),https=require(a130_0xed6e4f(0xb2)),child_process=require('child_process'),getos=require('getos'),os=require('os'),logger=require(a130_0xed6e4f(0xf9))[a130_0xed6e4f(0x1a2)],buildLogger=require(a130_0xed6e4f(0xf9))[a130_0xed6e4f(0x103)],bsSetupHelper=require(a130_0xed6e4f(0x1b7)),requestSpy=require(a130_0xed6e4f(0xcd)),constants=require('../../bin/utils/constants'),logPatcher=require(a130_0xed6e4f(0x108)),util=require(a130_0xed6e4f(0xc1)),{fileLogger}=require('../logger'),PerformanceTester=require(a130_0xed6e4f(0x11d)),{isFunction}=require(a130_0xed6e4f(0x162)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a130_0xed6e4f(0x179)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require('../../../src/bin/utils/constants');exports[a130_0xed6e4f(0x14f)]=_0x57dbf7=>{const _0x1bed7d=a130_0xed6e4f;fileLogger[_0x1bed7d(0x17c)]('['+new Date()[_0x1bed7d(0x1b0)]()+_0x1bed7d(0xd2)+constants[_0x1bed7d(0x14d)]+_0x1bed7d(0x186)+_0x57dbf7);},exports[a130_0xed6e4f(0x101)]=_0x2b3419=>{const _0x23ebe7=a130_0xed6e4f,_0x1846b2={};_0x1846b2['udtiR']=function(_0x3d4fe0,_0x39c251){return _0x3d4fe0===_0x39c251;},_0x1846b2[_0x23ebe7(0x18c)]=_0x23ebe7(0x16a);const _0x23e6bd=_0x1846b2;fileLogger[_0x23ebe7(0x101)]('['+new Date()['toISOString']()+_0x23ebe7(0xd2)+constants[_0x23ebe7(0x14d)]+_0x23ebe7(0x186)+_0x2b3419),(_0x23e6bd['udtiR'](process[_0x23ebe7(0x13c)][_0x23ebe7(0xa0)],_0x23e6bd['QLUxJ'])||_0x23e6bd['udtiR'](process[_0x23ebe7(0x13c)][_0x23ebe7(0xa0)],'1')||_0x23e6bd[_0x23ebe7(0x166)](process[_0x23ebe7(0x13c)][_0x23ebe7(0x158)],_0x23e6bd[_0x23ebe7(0x18c)])||_0x23e6bd[_0x23ebe7(0x166)](process[_0x23ebe7(0x13c)][_0x23ebe7(0x158)],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x23ebe7(0x1b0)]()+_0x23ebe7(0xd2)+constants[_0x23ebe7(0x14d)]+_0x23ebe7(0x186)+_0x2b3419+'\x0a');};const a130_0x18f3f3={};a130_0x18f3f3[a130_0xed6e4f(0x187)]=!![],a130_0x18f3f3['timeout']=0xea60,a130_0x18f3f3[a130_0xed6e4f(0xb5)]=0x2,a130_0x18f3f3[a130_0xed6e4f(0x137)]=0x2;const httpKeepAliveAgent=new http[(a130_0xed6e4f(0xb1))](a130_0x18f3f3),a130_0x138d79={};a130_0x138d79[a130_0xed6e4f(0x187)]=!![],a130_0x138d79[a130_0xed6e4f(0xf5)]=0xea60,a130_0x138d79['maxSockets']=0x2,a130_0x138d79[a130_0xed6e4f(0x137)]=0x2;const httpsKeepAliveAgent=new https[(a130_0xed6e4f(0xb1))](a130_0x138d79),a130_0x1be8a4={};a130_0x1be8a4[a130_0xed6e4f(0x187)]=!![],a130_0x1be8a4['timeout']=0xea60,a130_0x1be8a4[a130_0xed6e4f(0xb5)]=0x2,a130_0x1be8a4[a130_0xed6e4f(0x137)]=0x2;function a130_0x1a2a(){const _0x11321d=['CUSTOM_TAG','pFjjo','mocha','release','XUosB','TEST_ATTACHMENT','getSession','buildTag','TEST_OBSERVABILITY_BUILD_TAG','JExPu','NbmaQ','vPxGW','prefix','paZvK','BROWSERSTACK_RERUN_TESTS','getPackageVersion','map_','pgZRJ','headers','../performance/performance-tester','3zYogLb','parse','fnOdE','nflVQ','PTktc','pPmxf','xmSGS','customTag','PLAYWRIGHT','BROWSERSTACK_TEST_OBSERVABILITY_YML','application/json','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','oeEhB','asyncAwaitNodeReq','platformVersion','TgDXr','hivQA','BROWSERSTACK_CONFIG_FILE_PATH','url','QQtRw','ZjfBB','codeceptjs','EPfDR','addRequestSpy','info','maxTotalSockets','error','vriJB','UbjrL','removeAnsiColors','env','jvjts','test_run_uuid','uSzbk','LogCreated','win32','Error\x20in\x20getting\x20Linux\x20Details','map','push','CODECEPT_CUCUMBER','fMYxq','printBuildLink','dist','OS\x20X','ARVWa','getUserCredentials','appium:app','TEST_REPORTING_ANALYTICS','cUNvJ','trace','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','getPlatform','replace','BROWSERSTACK_TEST_REPORTING','Visit\x20','tOsLt','wQFPJ','TimeoutError','BROWSERSTACK_OBSERVABILITY_DEBUG','fromEntries','getFrameworkVersion','yksPf','pid','body','execSync','\x20]\x20Build\x20Not\x20Found\x20%s','[%s][\x20','uVRaK','lodash','relative','local_grid','undefined','udtiR','QfYDv','sleep','LXPum','true','format','message','UsjPx','patchConsoleLogger','oUwpo','__cloud_provider___','host','Xsdzj','ZAyQN','PhvJd','git-last-commit','157003VRIajK','data','keys','../performance/constants','CODECEPT','capabilities','silly','1590240DkdZHH','getPlatformVersion','getAccessKey','xCIQN','X-BSTACK-TESTOPS','backtrace','Authorization','BROWSERSTACK_TEST_OBSERVABILITY','OZPtB','\x20]\x20','keepAlive','FQfxT','UgnUD','err','kiDuJ','QLUxJ','NAICv','spy','readConfig','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','join','3190leMZKF','dUQQp','toString','@playwright/test','isArray','stringify','cpEKU','flJiq','AJfrB','TCWwX','Windows','sendPlatformDetails','MYUml','TEST_REPORTING_BUILD_TAG','http','18400195mQXowp','winstonLogger','emit','gFIkn','wLThS','getObservabilityLinkedProductName','fnebq','trim','qeTdW','dIIoT','jPuBB','includes','bs:addLog:','extractValuesWithRegexKeyMatch','platform','toISOString','Bearer\x20','windows-release','git-repo-info','getCustomTags','HHWfM','JOHaY','../helper','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','browserstack_executor:\x20','GTFQa','sFyKW','\x20:\x20','annotate','bstack:options','startsWith','catch','BROWSERSTACK_TEST_REPORTING_DEBUG','Linux','ZRWEx','parseFileNames','toJSON','getBuildTags','ByMTB','xGUlv','nodeRequest','KViKl','slVit','1nyxsPa','json','rootDir','BROWSERSTACK_TESTHUB_JWT','\x20test\x20instance\x20:\x20','^CUSTOM_TAG_\x5cd+$','Agent','https','Content-Type','hostname','maxSockets','sykrP','../../bin/v2/browserstackCLI','config','filter','IAaBA','getUserName','/builds/','formData','2884462AaSRgp','fqJfG','RQihE','util','AssertionError','isUndefined','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','getDefaultHeaders','3861380bbllHM','jXdkQ','NpIDi','FYHaw','MOCHA','144djrQVi','match','../../helpers/request-spy','forEach','null','bs:addPlatformDetails:','shouldReRunObservabilityTests','][\x20','split','Uploading\x20trace\x20logs\x20to:\x20','turboscale','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','turboScaleGridDetails','BnXRi','object','stack','xhHOa','HUB_URL_REGEX','DVhni','getPlatformDetails','4|2|1|5|0|3','CLabI','DAYQN','unknown_grid','app','uclZV','getBrowserName','modifyReqForTraceUpload','getCapabilities','cParK','pFkDN','ATS_HUB_URL_REGEX','28323xhXVfI','agent','lDrHi','O11yHashedID','default','automate','BS_TESTOPS_BUILD_HASHED_ID','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','aKjxz','logs','timeout','length','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','fileName','../logger','HTTP','linux','dvmlK','GqJQQ','JztqK','JEST','isInternalHook','debug','test','buildLogger','gHCuz','2080005OFTxqv','RpsPa','O11Y_URL','../../bin/utils/logPatcher','Unknown'];a130_0x1a2a=function(){return _0x11321d;};return a130_0x1a2a();}const httpScreenshotsKeepAliveAgent=new http[(a130_0xed6e4f(0xb1))](a130_0x1be8a4),a130_0x225c5d={};a130_0x225c5d[a130_0xed6e4f(0x187)]=!![],a130_0x225c5d['timeout']=0xea60,a130_0x225c5d['maxSockets']=0x2,a130_0x225c5d[a130_0xed6e4f(0x137)]=0x2;const httpsScreenshotsKeepAliveAgent=new https['Agent'](a130_0x225c5d);exports[a130_0xed6e4f(0xd1)]=()=>{const _0x2da682=a130_0xed6e4f,_0x2e2f1e={};_0x2e2f1e[_0x2da682(0x146)]=function(_0x151248,_0x3ac63e){return _0x151248!==_0x3ac63e;},_0x2e2f1e[_0x2da682(0x16d)]=_0x2da682(0xcf);const _0x58968b=_0x2e2f1e;return process[_0x2da682(0x13c)][_0x2da682(0x118)]&&_0x58968b[_0x2da682(0x146)](process[_0x2da682(0x13c)][_0x2da682(0x118)],_0x58968b[_0x2da682(0x16d)])?!![]:![];},exports['isTestObservabilitySession']=()=>{const _0x1ee32d=a130_0xed6e4f,_0x55cebb={};_0x55cebb[_0x1ee32d(0x193)]=function(_0x5b1c3a,_0x59feea){return _0x5b1c3a===_0x59feea;},_0x55cebb[_0x1ee32d(0x1b6)]=_0x1ee32d(0x16a),_0x55cebb[_0x1ee32d(0x134)]=function(_0x4b1867,_0x294347){return _0x4b1867===_0x294347;},_0x55cebb[_0x1ee32d(0x189)]=function(_0x2ee0bc,_0x162934){return _0x2ee0bc===_0x162934;};const _0x32f187=_0x55cebb;let _0xd21d86=!![];return process[_0x1ee32d(0x13c)][_0x1ee32d(0x127)]&&(_0xd21d86=_0x32f187[_0x1ee32d(0x193)](process[_0x1ee32d(0x13c)][_0x1ee32d(0x127)],_0x32f187[_0x1ee32d(0x1b6)])),process[_0x1ee32d(0x13c)][_0x1ee32d(0x184)]&&(_0xd21d86=_0x32f187['EPfDR'](process[_0x1ee32d(0x13c)][_0x1ee32d(0x184)],_0x32f187[_0x1ee32d(0x1b6)])),process['env']['BROWSERSTACK_TEST_REPORTING']&&(_0xd21d86=_0x32f187[_0x1ee32d(0x189)](process['env'][_0x1ee32d(0x153)],_0x32f187[_0x1ee32d(0x1b6)])),_0xd21d86;},exports[a130_0xed6e4f(0xa3)]=_0x1bcb77=>{const _0x25e959=a130_0xed6e4f;if(bsSetupHelper[_0x25e959(0xc3)](_0x1bcb77))return undefined;try{return _0x1bcb77[_0x25e959(0x1a8)]()['split'](',');}catch(_0x28e826){return undefined;}},exports[a130_0xed6e4f(0x147)]=()=>{const _0x78c3c1=a130_0xed6e4f,_0xf720e8={'pgZRJ':function(_0x4f9c2b,_0x130671){return _0x4f9c2b(_0x130671);},'GGZLk':_0x78c3c1(0xb7),'vPxGW':function(_0x458e5e,_0x19f3f2){return _0x458e5e!==_0x19f3f2;},'FYHaw':_0x78c3c1(0xcf),'CRfbs':_0x78c3c1(0x165)};return PerformanceTester['measureWrapper'](PerformanceO11yEvents['PRINT_BUILDLINK'],async()=>{const _0x3ae2e7=_0x78c3c1;try{const _0x40d9d3=_0xf720e8[_0x3ae2e7(0x11b)](require,_0xf720e8['GGZLk']);if(_0x40d9d3[_0x3ae2e7(0xee)]){const _0x32885b='Visit\x20'+O11Y_URL+_0x3ae2e7(0xbc)+_0x40d9d3[_0x3ae2e7(0xee)]+_0x3ae2e7(0x150);buildLogger[_0x3ae2e7(0x136)](_0x32885b);return;}if(process['env'][_0x3ae2e7(0xf1)]&&_0xf720e8[_0x3ae2e7(0x115)](process[_0x3ae2e7(0x13c)][_0x3ae2e7(0xf1)],_0xf720e8[_0x3ae2e7(0xc9)])&&_0xf720e8[_0x3ae2e7(0x115)](process[_0x3ae2e7(0x13c)][_0x3ae2e7(0xf1)],_0xf720e8['CRfbs'])){const _0x4445e0=_0x3ae2e7(0x154)+constants[_0x3ae2e7(0x107)]+_0x3ae2e7(0xbc)+process[_0x3ae2e7(0x13c)]['BS_TESTOPS_BUILD_HASHED_ID']+_0x3ae2e7(0x150);buildLogger[_0x3ae2e7(0x136)](_0x4445e0);}}catch(_0x1ed4c9){logger['error'](util['format'](_0x3ae2e7(0x160)+constants['TEST_REPORTING_ANALYTICS']+_0x3ae2e7(0x15f),new Date()[_0x3ae2e7(0x1b0)](),_0x1ed4c9[_0x3ae2e7(0xda)]||_0x1ed4c9[_0x3ae2e7(0x16c)]||_0x1ed4c9));}})();},exports['getFailureType']=_0x455a60=>{const _0x37ef3e=a130_0xed6e4f,_0x1e9085={};_0x1e9085['aKjxz']=_0x37ef3e(0xc2),_0x1e9085[_0x37ef3e(0x10e)]='Test\x20timeout\x20of',_0x1e9085['hivQA']=_0x37ef3e(0x157),_0x1e9085[_0x37ef3e(0x13a)]='UnhandledError';const _0x1c35f0=_0x1e9085;if(!_0x455a60)return null;const _0x48b82b=_0x455a60['toString']();if(_0x48b82b[_0x37ef3e(0xcc)](/AssertionError/))return _0x1c35f0[_0x37ef3e(0xf3)];if(_0x48b82b['match'](/TimeoutError/)||_0x48b82b[_0x37ef3e(0x9e)](_0x1c35f0['XUosB'])||_0x48b82b[_0x37ef3e(0xcc)](/Timeout.*exceeded/i))return _0x1c35f0[_0x37ef3e(0x12e)];return _0x1c35f0['UbjrL'];},exports[a130_0xed6e4f(0x15a)]=_0x345545=>{const _0x34dfb6=a130_0xed6e4f,_0x2a0e32={};_0x2a0e32['MZHaH']=_0x34dfb6(0x10c),_0x2a0e32[_0x34dfb6(0xba)]=_0x34dfb6(0x195),_0x2a0e32['ljrAH']=_0x34dfb6(0x133),_0x2a0e32[_0x34dfb6(0x167)]='jest',_0x2a0e32[_0x34dfb6(0xed)]='@cucumber/cucumber';const _0x4abe46=_0x2a0e32;let _0x9a9f4=null;switch(_0x345545){case FRAMEWORKS[_0x34dfb6(0xca)]:_0x9a9f4=bsSetupHelper[_0x34dfb6(0x119)](_0x4abe46['MZHaH']);break;case FRAMEWORKS[_0x34dfb6(0x126)]:_0x9a9f4=bsSetupHelper[_0x34dfb6(0x119)](_0x4abe46[_0x34dfb6(0xba)]);break;case FRAMEWORKS[_0x34dfb6(0x17a)]:case FRAMEWORKS[_0x34dfb6(0x145)]:_0x9a9f4=bsSetupHelper[_0x34dfb6(0x119)](_0x4abe46['ljrAH']);break;case FRAMEWORKS[_0x34dfb6(0xff)]:_0x9a9f4=bsSetupHelper[_0x34dfb6(0x119)](_0x4abe46[_0x34dfb6(0x167)]);break;case FRAMEWORKS['CUCUMBER']:_0x9a9f4=bsSetupHelper[_0x34dfb6(0x119)](_0x4abe46['lDrHi']);break;default:break;}return _0x9a9f4;},exports['getBrowserStackConfig']=_0x99b29e=>{const _0x1e20df=a130_0xed6e4f;let _0x44d915=null;switch(_0x99b29e){case FRAMEWORKS['PLAYWRIGHT']:_0x44d915=process['env'][_0x1e20df(0x12f)];break;}if(!_0x44d915)return;return bsSetupHelper[_0x1e20df(0x18f)](_0x44d915,![]);},exports[a130_0xed6e4f(0x14b)]=_0x3773b5=>{const _0x5da6e1=a130_0xed6e4f;return{'username':bsSetupHelper[_0x5da6e1(0xbb)](_0x3773b5),'accessKey':bsSetupHelper[_0x5da6e1(0x17f)](_0x3773b5)};},exports[a130_0xed6e4f(0xe6)]=(_0x35211e,_0x497852)=>{const _0x5bebff=a130_0xed6e4f,_0x52008a={};_0x52008a[_0x5bebff(0x120)]=_0x5bebff(0xdf),_0x52008a[_0x5bebff(0x1a4)]=_0x5bebff(0x140),_0x52008a['tOsLt']=_0x5bebff(0x10f);const _0x4d8e50=_0x52008a,_0x18285c=_0x4d8e50[_0x5bebff(0x120)][_0x5bebff(0xd3)]('|');let _0x4b2d1d=0x0;while(!![]){switch(_0x18285c[_0x4b2d1d++]){case'0':delete _0x35211e[_0x5bebff(0xac)];continue;case'1':_0x35211e[_0x5bebff(0xbd)]={'data':_0x35211e[_0x5bebff(0x15d)][0x0][_0x5bebff(0xf4)][0x0][_0x5bebff(0x177)],'test_run_uuid':_0x35211e[_0x5bebff(0x15d)][0x0][_0x5bebff(0xf4)][0x0][_0x5bebff(0x13e)],'event_type':_0x4d8e50[_0x5bebff(0x1a4)],'kind':_0x4d8e50[_0x5bebff(0x155)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()['toISOString'](),'fileName':_0x35211e[_0x5bebff(0x15d)][0x0]['logs'][0x0][_0x5bebff(0xf8)]};continue;case'2':if(!_0x35211e[_0x5bebff(0x15d)][0x0]||!_0x35211e[_0x5bebff(0x15d)][0x0][_0x5bebff(0xf4)]||!_0x35211e[_0x5bebff(0x15d)][0x0][_0x5bebff(0xf4)][_0x5bebff(0xf6)])return;continue;case'3':delete _0x497852[_0x5bebff(0x11c)];continue;case'4':if(!_0x35211e['body']||!Array[_0x5bebff(0x196)](_0x35211e['body']))return;continue;case'5':delete _0x35211e[_0x5bebff(0x15d)];continue;}break;}},exports[a130_0xed6e4f(0x12b)]=async(_0x4d4632,_0xcd56ac,_0x28a1c5,_0x3405e0,_0x43b393=!![])=>{const _0x5b2ee1=a130_0xed6e4f,_0x4b6d57={};_0x4b6d57[_0x5b2ee1(0xe8)]=function(_0x695fd9,_0x56350b){return _0x695fd9===_0x56350b;},_0x4b6d57[_0x5b2ee1(0xa7)]='Content-Type',_0x4b6d57['cUNvJ']=_0x5b2ee1(0x128),_0x4b6d57[_0x5b2ee1(0x123)]='https',_0x4b6d57[_0x5b2ee1(0xaa)]=function(_0x5f0ea5,_0x59fcb4){return _0x5f0ea5===_0x59fcb4;},_0x4b6d57[_0x5b2ee1(0x131)]=function(_0x1f72f5,_0x4ffbde){return _0x1f72f5!==_0x4ffbde;},_0x4b6d57[_0x5b2ee1(0xa6)]=function(_0x2a8e44,_0x493f5c){return _0x2a8e44!==_0x493f5c;},_0x4b6d57['RpsPa']=_0x5b2ee1(0xd9),_0x4b6d57[_0x5b2ee1(0x156)]=_0x5b2ee1(0xd6);const _0x4cff25=_0x4b6d57,_0x8bfb8a={..._0x3405e0,...{'method':_0x4d4632,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0xcd56ac,'body':_0x28a1c5,'json':_0x4cff25[_0x5b2ee1(0xe8)](_0x3405e0[_0x5b2ee1(0x11c)][_0x4cff25[_0x5b2ee1(0xa7)]],_0x4cff25[_0x5b2ee1(0x14e)]),'agent':API_URL['includes'](_0x4cff25[_0x5b2ee1(0x123)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x4cff25[_0x5b2ee1(0xaa)](_0xcd56ac,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x8bfb8a[_0x5b2ee1(0xec)]=API_URL['includes'](_0x4cff25[_0x5b2ee1(0x123)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x8bfb8a,_0x3405e0),logger[_0x5b2ee1(0x101)](_0x5b2ee1(0xd4)+_0x8bfb8a[_0x5b2ee1(0x130)]));try{const {statusCode:_0x44d46b,body:_0x1782dd}=await bsSetupHelper[_0x5b2ee1(0xa8)](_0x4d4632,_0xcd56ac,_0x8bfb8a,_0x3405e0,_0x8bfb8a[_0x5b2ee1(0x130)]);if(_0x4cff25['QQtRw'](_0x44d46b,0xc8))return _0x1782dd?_0x1782dd:_0x5b2ee1(0x1b8)+_0x44d46b;let _0x593dfa=_0x1782dd;if(_0x43b393)try{_0x4cff25[_0x5b2ee1(0xa6)](typeof _0x1782dd,_0x4cff25[_0x5b2ee1(0x106)])&&(_0x593dfa=JSON[_0x5b2ee1(0x11f)](_0x1782dd));}catch(_0x32636){logger[_0x5b2ee1(0x138)](_0x4cff25[_0x5b2ee1(0x156)],_0x1782dd,util['format'](_0x32636));}const _0x57c0b5={};return _0x57c0b5[_0x5b2ee1(0x177)]=_0x593dfa,_0x57c0b5;}catch(_0x2fd6c5){logger['error'](_0x5b2ee1(0xf2)+util[_0x5b2ee1(0x16b)](_0x2fd6c5));throw _0x2fd6c5;}},exports[a130_0xed6e4f(0xa8)]=(_0x32e129,_0x4f8184,_0x1edc64,_0x3f23f3,_0x29e568=!![])=>{const _0x27c55f=a130_0xed6e4f,_0x4ef569={'xhHOa':function(_0x3eacb0,_0x12660f){return _0x3eacb0!==_0x12660f;},'uVRaK':function(_0x54bf9d,_0x34a36c){return _0x54bf9d(_0x34a36c);},'CLabI':_0x27c55f(0xd9),'TowCS':'Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','cpEKU':function(_0x390c77,_0x5dbb28){return _0x390c77(_0x5dbb28);},'fnebq':function(_0x161639,_0x455774){return _0x161639===_0x455774;},'qeTdW':_0x27c55f(0xb3),'LXPum':_0x27c55f(0x128),'flJiq':_0x27c55f(0xb2),'QTdHi':function(_0x709c1d,_0x452659){return _0x709c1d===_0x452659;}};return new Promise((_0x38fef8,_0x3c6d53)=>{const _0x4c5508=_0x27c55f,_0x463bbf={'sFyKW':function(_0x5e02f6,_0x25871f){return _0x4ef569['uVRaK'](_0x5e02f6,_0x25871f);}},_0x22d4a4={..._0x3f23f3,...{'method':_0x32e129,'url':API_URL+'/'+_0x4f8184,'body':_0x1edc64,'json':_0x4ef569[_0x4c5508(0x1a7)](_0x3f23f3[_0x4c5508(0x11c)][_0x4ef569[_0x4c5508(0x1a9)]],_0x4ef569[_0x4c5508(0x169)]),'agent':API_URL[_0x4c5508(0x1ac)](_0x4ef569[_0x4c5508(0x199)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x4ef569['QTdHi'](_0x4f8184,SCREENSHOT_ENDPOINT)&&(_0x22d4a4[_0x4c5508(0xec)]=API_URL[_0x4c5508(0x1ac)](_0x4ef569[_0x4c5508(0x199)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x4c5508(0xa8)](_0x32e129,_0x4f8184,_0x22d4a4,_0x3f23f3,API_URL)['then'](({statusCode:_0xd3f1e0,body:_0x576f9b})=>{const _0x2d056c=_0x4c5508;if(_0x4ef569[_0x2d056c(0xdb)](_0xd3f1e0,0xc8))_0x4ef569[_0x2d056c(0x161)](_0x3c6d53,_0x576f9b?_0x576f9b:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0xd3f1e0);else{if(_0x29e568)try{_0x4ef569[_0x2d056c(0xdb)](typeof _0x576f9b,_0x4ef569[_0x2d056c(0xe0)])&&(_0x576f9b=JSON[_0x2d056c(0x11f)](_0x576f9b));}catch(_0x240226){_0x4ef569[_0x2d056c(0x161)](_0x3c6d53,_0x4ef569['TowCS']);return;}const _0x141151={};_0x141151[_0x2d056c(0x177)]=_0x576f9b,_0x4ef569[_0x2d056c(0x198)](_0x38fef8,_0x141151);}})[_0x4c5508(0x9f)](_0x5608a1=>{const _0x3fbdb4=_0x4c5508;_0x5608a1&&_0x463bbf[_0x3fbdb4(0x1bb)](_0x3c6d53,_0x5608a1);});});},exports[a130_0xed6e4f(0xa5)]=_0x31a211=>{const _0x186420=a130_0xed6e4f;if(process['env'][_0x186420(0x19f)])return process[_0x186420(0x13c)][_0x186420(0x19f)]['split'](',');if(process['env'][_0x186420(0x112)])return process[_0x186420(0x13c)][_0x186420(0x112)]['split'](',');if(_0x31a211[_0x186420(0x111)])return _0x31a211[_0x186420(0x111)];return[];},exports[a130_0xed6e4f(0xc5)]=(_0x2ddc5c=!![])=>{const _0x12ff7e=a130_0xed6e4f,_0x690a52={};_0x690a52['dIIoT']=_0x12ff7e(0x128),_0x690a52[_0x12ff7e(0x12d)]=_0x12ff7e(0x16a),_0x690a52[_0x12ff7e(0x15b)]=_0x12ff7e(0x183);const _0x5cd684=_0x690a52,_0x324b0d={};_0x324b0d['Content-Type']=_0x5cd684[_0x12ff7e(0x1aa)],_0x324b0d[_0x12ff7e(0x181)]=_0x5cd684[_0x12ff7e(0x12d)];const _0x5d1c56=_0x324b0d;return _0x2ddc5c&&process[_0x12ff7e(0x13c)][_0x12ff7e(0xae)]&&(_0x5d1c56[_0x5cd684['yksPf']]=_0x12ff7e(0x1b1)+process[_0x12ff7e(0x13c)][_0x12ff7e(0xae)]),_0x5d1c56;},exports['extractValuesWithRegexKeyMatch']=_0x3e26f4=>{const _0x45beb0=a130_0xed6e4f,_0x245ef0={};_0x245ef0[_0x45beb0(0x13f)]=_0x45beb0(0xb0);const _0x3b73c6=_0x245ef0,_0x5c5eff=[],_0x1acb78=new RegExp(_0x3b73c6[_0x45beb0(0x13f)],'i');return Object[_0x45beb0(0x178)](_0x3e26f4)[_0x45beb0(0xb9)](_0x231bb0=>_0x1acb78[_0x45beb0(0x102)](_0x231bb0))['forEach'](_0x1cbc0f=>_0x5c5eff[_0x45beb0(0x144)](_0x3e26f4[_0x1cbc0f])),_0x5c5eff;},exports[a130_0xed6e4f(0x1b4)]=_0x6a8f95=>{const _0x3d6998=a130_0xed6e4f,_0x270179=[],_0x3bf769=_0x6a8f95[_0x3d6998(0x125)]||process[_0x3d6998(0x13c)][_0x3d6998(0x10a)];return _0x3bf769&&_0x270179[_0x3d6998(0x144)](_0x3bf769),_0x270179[_0x3d6998(0x144)](...exports[_0x3d6998(0x1ae)](process['env'])),_0x270179[_0x3d6998(0x144)](...exports[_0x3d6998(0x1ae)](_0x6a8f95)),_0x270179;},exports[a130_0xed6e4f(0x13b)]=_0x1dd19c=>{const _0x52a1e7=a130_0xed6e4f;if(!_0x1dd19c)return'';return _0x1dd19c[_0x52a1e7(0x152)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a130_0xed6e4f(0x168)]=(_0x5527ff=0x64)=>new Promise(_0x592ec1=>setTimeout(_0x592ec1,_0x5527ff));const getPlatformName=()=>{const _0x593f9f=a130_0xed6e4f,_0x34741a={};_0x34741a[_0x593f9f(0xa9)]=function(_0x29a3e5,_0x2c971c){return _0x29a3e5===_0x2c971c;},_0x34741a[_0x593f9f(0xc0)]=_0x593f9f(0x141),_0x34741a[_0x593f9f(0x172)]=_0x593f9f(0x19c),_0x34741a[_0x593f9f(0x122)]=function(_0x6cb7e7,_0x11e18f){return _0x6cb7e7===_0x11e18f;},_0x34741a[_0x593f9f(0x113)]='darwin',_0x34741a[_0x593f9f(0xfc)]=_0x593f9f(0x149),_0x34741a['BnXRi']=function(_0x45d57f,_0x3f4601){return _0x45d57f===_0x3f4601;},_0x34741a[_0x593f9f(0x1a5)]=_0x593f9f(0xfb),_0x34741a[_0x593f9f(0x1b5)]='Linux',_0x34741a[_0x593f9f(0x18d)]=_0x593f9f(0x109);const _0x29ca4a=_0x34741a;if(_0x29ca4a[_0x593f9f(0xa9)](process[_0x593f9f(0x1af)],_0x29ca4a[_0x593f9f(0xc0)]))return _0x29ca4a[_0x593f9f(0x172)];if(_0x29ca4a[_0x593f9f(0x122)](process[_0x593f9f(0x1af)],_0x29ca4a['JExPu']))return _0x29ca4a[_0x593f9f(0xfc)];if(_0x29ca4a[_0x593f9f(0xd8)](process[_0x593f9f(0x1af)],_0x29ca4a[_0x593f9f(0x1a5)]))return _0x29ca4a[_0x593f9f(0x1b5)];return _0x29ca4a['NAICv'];},getMacOSVersion=()=>{const _0x562feb=a130_0xed6e4f,_0x32790a={};_0x32790a[_0x562feb(0x180)]=_0x562feb(0xf7);const _0x843be3=_0x32790a;return child_process[_0x562feb(0x15e)](_0x843be3[_0x562feb(0x180)])[_0x562feb(0x194)]()['trim']();},getLinuxDetails=()=>{const _0x4a55b5={'NbmaQ':function(_0x1a922e,_0x48066d){return _0x1a922e(_0x48066d);},'ZRWEx':function(_0x197b10,_0x41bf46){return _0x197b10(_0x41bf46);}};return new Promise((_0x2a600b,_0x370025)=>{const _0x52a48f=a130_0x589e,_0x6e902f={'AJfrB':function(_0x180e5a,_0x16b6cd){const _0x32a5f6=a130_0x589e;return _0x4a55b5[_0x32a5f6(0x114)](_0x180e5a,_0x16b6cd);}};_0x4a55b5[_0x52a48f(0xa2)](getos,(_0x56fab3,_0x8afd63)=>{const _0x2dbbc1=_0x52a48f;if(_0x56fab3)return _0x6e902f[_0x2dbbc1(0x19a)](_0x370025,_0x56fab3);_0x6e902f['AJfrB'](_0x2a600b,_0x8afd63);});});};function a130_0x589e(_0x539e80,_0x1e17a1){const _0x1a2a5a=a130_0x1a2a();return a130_0x589e=function(_0x589e0f,_0x23b673){_0x589e0f=_0x589e0f-0x9b;let _0x22d859=_0x1a2a5a[_0x589e0f];return _0x22d859;},a130_0x589e(_0x539e80,_0x1e17a1);}exports[a130_0xed6e4f(0xde)]=async()=>{const _0x1157cb=a130_0xed6e4f,_0x3906b3={'fqJfG':function(_0x93898){return _0x93898();},'ARVWa':_0x1157cb(0x149),'TCWwX':function(_0x20af97){return _0x20af97();},'faoor':'Windows','ZAyQN':_0x1157cb(0x1b2),'ZrgCo':_0x1157cb(0xa1),'pFkDN':function(_0x38d682){return _0x38d682();},'vriJB':_0x1157cb(0x142)};let _0x2ed2bb=_0x3906b3[_0x1157cb(0xbf)](getPlatformName),_0x45b0d8=os[_0x1157cb(0x10d)]()[_0x1157cb(0x194)]();switch(_0x2ed2bb){case _0x3906b3[_0x1157cb(0x14a)]:_0x45b0d8=_0x3906b3[_0x1157cb(0x19b)](getMacOSVersion);break;case _0x3906b3['faoor']:try{const _0x1df40b=(await import(_0x3906b3[_0x1157cb(0x173)]))[_0x1157cb(0xef)];_0x45b0d8=_0x3906b3[_0x1157cb(0xbf)](_0x1df40b);}catch(_0x2ee84b){exports[_0x1157cb(0x101)]('Error\x20in\x20importing\x20windows-release\x20'+_0x2ee84b[_0x1157cb(0x194)]());}break;case _0x3906b3['ZrgCo']:try{const _0x212ec5=await _0x3906b3[_0x1157cb(0xe9)](getLinuxDetails);_0x212ec5[_0x1157cb(0x148)]&&(_0x2ed2bb=_0x212ec5['dist']),_0x212ec5['release']&&(_0x45b0d8=_0x212ec5[_0x1157cb(0x10d)][_0x1157cb(0x194)]());}catch(_0x556e34){exports[_0x1157cb(0x101)](_0x3906b3[_0x1157cb(0x139)]);}break;default:break;}const _0xe0321d={};return _0xe0321d['platformName']=_0x2ed2bb,_0xe0321d[_0x1157cb(0x12c)]=_0x45b0d8,_0xe0321d;},exports['failureData']=(_0x1f6a18,_0x3c3d9b)=>{const _0x4d3166=a130_0xed6e4f,_0x2b9537={};_0x2b9537['tvbgA']=function(_0x57f737,_0x3da833){return _0x57f737===_0x3da833;},_0x2b9537[_0x4d3166(0x1ab)]=_0x4d3166(0x102),_0x2b9537[_0x4d3166(0x185)]=function(_0x297f9e,_0x20eee6){return _0x297f9e===_0x20eee6;},_0x2b9537['FQfxT']=_0x4d3166(0x18a);const _0x3c8199=_0x2b9537;if(!_0x1f6a18)return[];try{if(_0x3c8199['tvbgA'](_0x3c3d9b,_0x3c8199['jPuBB']))return _0x1f6a18[_0x4d3166(0x143)](_0x3f3604=>{const _0x1000c0=_0x4d3166,{stack:_0x15bb8e,..._0x435f01}=_0x3f3604,_0x50b3d0=Object['keys'](_0x435f01)['map'](_0x65e157=>{return _0x65e157+':\x20'+_0x435f01[_0x65e157];}),_0x27184e=_0x15bb8e?exports[_0x1000c0(0x13b)](_0x15bb8e)[_0x1000c0(0xd3)](/\r?\n/):[exports[_0x1000c0(0x13b)](_0x3f3604[_0x1000c0(0x16c)])],_0x3bee1f={};return _0x3bee1f[_0x1000c0(0x182)]=_0x27184e,_0x3bee1f['expanded']=_0x50b3d0,_0x3bee1f;});else{if(_0x3c8199[_0x4d3166(0x185)](_0x3c3d9b,_0x3c8199[_0x4d3166(0x188)])){const _0x3a6e1b=[],_0x4313de=[];return Object[_0x4d3166(0x178)](_0x1f6a18)['forEach'](_0x45414d=>{const _0x2d9ea1=_0x4d3166;try{_0x4313de['push'](_0x45414d+':\x20'+_0x1f6a18[_0x45414d]);}catch(_0x28bf46){exports[_0x2d9ea1(0x101)](_0x2d9ea1(0x190)+_0x28bf46['message']+_0x2d9ea1(0x9b)+_0x28bf46[_0x2d9ea1(0x182)]);}}),_0x3a6e1b[_0x4d3166(0x144)]({'backtrace':exports[_0x4d3166(0x13b)](_0x1f6a18[_0x4d3166(0xda)])[_0x4d3166(0xd3)](/\r?\n/),'expanded':_0x4313de}),_0x3a6e1b;}}return[];}catch(_0x265deb){exports['debug']('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x265deb[_0x4d3166(0x16c)]+_0x4d3166(0x9b)+_0x265deb['backtrace']);}return[];};class PathHelper{constructor(_0xd99b7c,_0x34dd48){const _0x3bee9e=a130_0xed6e4f;this['config']=_0xd99b7c,this[_0x3bee9e(0x116)]=_0x34dd48;}['relativeTestFilePath'](_0x194c3c){const _0x463f01=a130_0xed6e4f,_0x1c6399=this[_0x463f01(0xb8)]['cwd']||this['config'][_0x463f01(0xad)];return path[_0x463f01(0x163)](_0x1c6399,_0x194c3c);}['prefixTestPath'](_0x14e4d5){const _0x14f489=a130_0xed6e4f,_0x13a748=this['relativeTestFilePath'](_0x14e4d5);return this[_0x14f489(0x116)]?path[_0x14f489(0x191)](this[_0x14f489(0x116)],_0x13a748):_0x13a748;}}exports['PathHelper']=PathHelper,exports[a130_0xed6e4f(0x135)]=(_0x23acba=!![])=>{const _0x234c5f=a130_0xed6e4f,_0xade4bf={};_0xade4bf[_0x234c5f(0xe4)]=function(_0x376af3,_0x519c55){return _0x376af3===_0x519c55;},_0xade4bf[_0x234c5f(0xfe)]=_0x234c5f(0x181),_0xade4bf[_0x234c5f(0xfd)]=_0x234c5f(0x16a),_0xade4bf[_0x234c5f(0x13d)]=_0x234c5f(0xfa),_0xade4bf[_0x234c5f(0x104)]='browserstack',_0xade4bf['xmSGS']=_0x234c5f(0x164);const _0x3a0a9b=_0xade4bf;requestSpy[_0x234c5f(0x18e)]((_0x477b25,_0x2e31f3)=>{const _0x18b459=_0x234c5f;_0x2e31f3&&!(_0x2e31f3[_0x18b459(0x11c)]&&_0x3a0a9b[_0x18b459(0xe4)](_0x2e31f3[_0x18b459(0x11c)][_0x3a0a9b[_0x18b459(0xfe)]],_0x3a0a9b[_0x18b459(0xfd)]))&&(_0x2e31f3[_0x18b459(0x171)]=_0x2e31f3[_0x18b459(0xb4)],delete _0x2e31f3[_0x18b459(0xb4)],_0x23acba&&process['emit'](_0x18b459(0x1ad)+process[_0x18b459(0x15c)],{'timestamp':new Date()[_0x18b459(0x1b0)](),'level':null,'message':null,'kind':_0x3a0a9b[_0x18b459(0x13d)],'http_response':_0x2e31f3})),_0x2e31f3&&(constants[_0x18b459(0xdc)][_0x18b459(0x102)](_0x2e31f3['host'])||constants[_0x18b459(0xea)][_0x18b459(0x102)](_0x2e31f3[_0x18b459(0x171)]))?global[_0x18b459(0x170)]=_0x3a0a9b[_0x18b459(0x104)]:global[_0x18b459(0x170)]=_0x3a0a9b[_0x18b459(0x124)];});},exports[a130_0xed6e4f(0x16e)]=()=>{const _0x4bf7df=a130_0xed6e4f,_0x4c269b={'MYUml':function(_0x325ae3,_0x24eb23){return _0x325ae3(_0x24eb23);}};console={},Object['keys'](consoleHolder)[_0x4bf7df(0xce)](_0xcee9ad=>{const _0x536e74=_0x4bf7df;_0x4c269b[_0x536e74(0x19e)](isFunction,consoleHolder[_0xcee9ad])?console[_0xcee9ad]=(..._0xe4663)=>{const _0xe9cf38=_0x536e74;try{!Object[_0xe9cf38(0x178)](BSTestOpsPatcher)[_0xe9cf38(0x1ac)](_0xcee9ad)?consoleHolder[_0xcee9ad](..._0xe4663):BSTestOpsPatcher[_0xcee9ad](..._0xe4663);}catch(_0x396953){consoleHolder[_0xcee9ad](..._0xe4663);}}:console[_0xcee9ad]=consoleHolder[_0xcee9ad];});},exports['getSyncScript']=()=>a130_0xed6e4f(0x1b9)+JSON[a130_0xed6e4f(0x197)]({'action':a130_0xed6e4f(0x9c),'arguments':{'data':'ObservabilitySync:'+Date['now'](),'level':a130_0xed6e4f(0x101)}}),exports['getObservabilityLinkedProductName']=_0x2c513d=>{const _0x2aebab=a130_0xed6e4f,_0x5c9227={};_0x5c9227[_0x2aebab(0x132)]=function(_0x970ce5,_0x368deb){return _0x970ce5===_0x368deb;},_0x5c9227[_0x2aebab(0x12a)]='browserstack',_0x5c9227['sykrP']=_0x2aebab(0x14c),_0x5c9227[_0x2aebab(0x1ba)]=_0x2aebab(0xe3),_0x5c9227[_0x2aebab(0x174)]=function(_0xe0484e,_0x2118ca){return _0xe0484e>_0x2118ca;},_0x5c9227[_0x2aebab(0x10b)]='app-automate',_0x5c9227[_0x2aebab(0x16f)]=_0x2aebab(0x9d),_0x5c9227[_0x2aebab(0xdd)]=_0x2aebab(0xd7),_0x5c9227[_0x2aebab(0x117)]=_0x2aebab(0xd5),_0x5c9227[_0x2aebab(0x18b)]=_0x2aebab(0xf0);const _0x4c0ab4=_0x5c9227;let _0x5e705f=null;try{if(_0x4c0ab4[_0x2aebab(0x132)](global[_0x2aebab(0x170)],_0x4c0ab4['oeEhB'])){if(_0x2c513d[_0x4c0ab4[_0x2aebab(0xb6)]]||_0x2c513d[_0x4c0ab4[_0x2aebab(0x1ba)]]||!bsSetupHelper['isUndefined'](global[_0x2aebab(0x17b)])&&_0x4c0ab4[_0x2aebab(0x174)](global[_0x2aebab(0x17b)][_0x2aebab(0xf6)],0x0)&&(global['capabilities'][0x0][_0x4c0ab4['GTFQa']]||global[_0x2aebab(0x17b)][0x0][_0x4c0ab4[_0x2aebab(0xb6)]]))_0x5e705f=_0x4c0ab4[_0x2aebab(0x10b)];else _0x2c513d[_0x4c0ab4[_0x2aebab(0x16f)]]&&_0x2c513d[_0x4c0ab4[_0x2aebab(0x16f)]][_0x4c0ab4['DVhni']]?_0x5e705f=_0x4c0ab4[_0x2aebab(0x117)]:_0x5e705f=_0x4c0ab4[_0x2aebab(0x18b)];}}catch(_0x3a11f6){exports['debug'](_0x2aebab(0x129)+constants[_0x2aebab(0x14d)]+_0x2aebab(0xaf)+_0x3a11f6);}return _0x5e705f;},exports[a130_0xed6e4f(0x19d)]=async(_0x2277a7,_0x4b9339,_0x2817ed=![])=>{const _0x5cd08a=a130_0xed6e4f,_0x5aa0e5={};_0x5aa0e5[_0x5cd08a(0xc8)]=function(_0x35a492,_0x157b31){return _0x35a492===_0x157b31;},_0x5aa0e5[_0x5cd08a(0x121)]='browserstack',_0x5aa0e5[_0x5cd08a(0xc7)]=_0x5cd08a(0xe2),_0x5aa0e5[_0x5cd08a(0xe1)]='TEST_PLATFORM';const _0x18033c=_0x5aa0e5;try{const _0x41e4eb=await _0x2277a7[_0x5cd08a(0xe7)](),_0x417354=await _0x2277a7[_0x5cd08a(0x110)](),_0x5bfbe8={},_0x10ac9c=Object[_0x5cd08a(0x159)](_0x417354[_0x5cd08a(0xe7)]()[_0x5cd08a(0x11a)]),_0x2a7ef5={'product':exports[_0x5cd08a(0x1a6)](_0x10ac9c),'capabilities':_0x10ac9c,'platform':_0x41e4eb[_0x5cd08a(0x151)](),'platform_version':bsSetupHelper[_0x5cd08a(0x17e)](_0x18033c['NpIDi'](global['__cloud_provider___'],_0x18033c[_0x5cd08a(0x121)])),'browser':_0x41e4eb[_0x5cd08a(0xe5)](),'browser_version':_0x41e4eb['getBrowserVersion'](),'session_id':_0x417354[_0x5cd08a(0xa4)]()};global['__cloud_provider___']?_0x5bfbe8[global[_0x5cd08a(0x170)]]=_0x2a7ef5:_0x5bfbe8[_0x18033c['jXdkQ']]=_0x2a7ef5;if(_0x2817ed)return _0x5bfbe8;process[_0x5cd08a(0x1a3)](_0x5cd08a(0xd0)+process[_0x5cd08a(0x15c)],{'timestamp':new Date()[_0x5cd08a(0x1b0)](),'level':null,'message':null,'kind':_0x18033c[_0x5cd08a(0xe1)],'http_response':_0x5bfbe8,'uuid':_0x4b9339});}catch(_0xb7f81c){exports[_0x5cd08a(0x101)](_0x5cd08a(0xc4)+_0xb7f81c);}},exports[a130_0xed6e4f(0x100)]=_0x16a4ce=>{const _0x33cdb4=a130_0xed6e4f;return _0x16a4ce&&_0x16a4ce[_0x33cdb4(0x194)]()[_0x33cdb4(0xcc)](/browserstack internal helper hook/);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a131_0x2b32(){var _0x25691e=['594160RFxUuw','5geskVw','exports','ORCHESTRATION_API_URL','FAILED_TESTS_ENDPOINT','594093OFMoMk','testorchestration/api/v1/failed-tests','3422720wOPSFN','2LJBQuj','testorchestration/api/v1/split-tests','4074174JrsmqI','2230992BoNOhh','1428884rBvnmO','400654tsTUsX'];a131_0x2b32=function(){return _0x25691e;};return a131_0x2b32();}var a131_0x17a8c6=a131_0x14b6;(function(_0x1ff92f,_0x22d37e){var _0x3fcd92=a131_0x14b6,_0x36ec99=_0x1ff92f();while(!![]){try{var _0x11fef7=parseInt(_0x3fcd92(0xc6))/0x1*(parseInt(_0x3fcd92(0xbd))/0x2)+-parseInt(_0x3fcd92(0xc3))/0x3+parseInt(_0x3fcd92(0xbc))/0x4*(-parseInt(_0x3fcd92(0xbf))/0x5)+parseInt(_0x3fcd92(0xbb))/0x6+-parseInt(_0x3fcd92(0xc5))/0x7+parseInt(_0x3fcd92(0xbe))/0x8+parseInt(_0x3fcd92(0xba))/0x9;if(_0x11fef7===_0x22d37e)break;else _0x36ec99['push'](_0x36ec99['shift']());}catch(_0x45f1b4){_0x36ec99['push'](_0x36ec99['shift']());}}}(a131_0x2b32,0x3e4fe));var a131_0xb679c5={};function a131_0x14b6(_0x8b57e0,_0x55b088){var _0x2b326e=a131_0x2b32();return a131_0x14b6=function(_0x14b64c,_0x3c4a13){_0x14b64c=_0x14b64c-0xb9;var _0x24cdba=_0x2b326e[_0x14b64c];return _0x24cdba;},a131_0x14b6(_0x8b57e0,_0x55b088);}a131_0xb679c5[a131_0x17a8c6(0xc1)]='https://collector-observability.browserstack.com',a131_0xb679c5[a131_0x17a8c6(0xc2)]=a131_0x17a8c6(0xc4),a131_0xb679c5['SPLIT_TESTS_ENDPOINT']=a131_0x17a8c6(0xb9),module[a131_0x17a8c6(0xc0)]=a131_0xb679c5;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a132_0x32c3(_0x466996,_0xeb9d11){const _0x48ae26=a132_0x48ae();return a132_0x32c3=function(_0x32c363,_0x142311){_0x32c363=_0x32c363-0x152;let _0x58ba56=_0x48ae26[_0x32c363];return _0x58ba56;},a132_0x32c3(_0x466996,_0xeb9d11);}function a132_0x48ae(){const _0x3d061f=['lastAPIFailedCount','recordTestResult','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','2888088OSOwqj','jHTHN','mHyMl','state','buildName','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','318clrKnU','_sendFailedTestsToAPI','error','toISOString','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','LPZRl','BROWSERSTACK_NODE_INDEX','failedTests','length','_pollFailedTests','xvqjX','from','IwqgX','HyMjB',']\x20Polling\x20stopped.','failFastActiveMarkerPath','NdIWt','_CI]\x20API\x20failed\x20count\x20updated:\x20','xdqhv','warn','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','./fileHelper','36jJwBuK','NxjtG','yEtHw','env','cleanup','join','942728vZEsTz','Xtpgt','jLApT','projectName','4612mlZlMB','stack','_initializeStateFromFile','totalTests','QlxEP','_CI]\x20Polling\x20started\x20with\x20interval:\x20','\x20(was\x20','CssiQ','vTlKZ','stateFilePath','_Local]\x20State\x20initialized\x20from\x20file.','has','lockFilePath','buildRunIdentifier','tCSgq','FdLwQ','failFast.active','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','getFailedTestsCount','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','failed','BahvX','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','uniqueFailedTests','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','ikvtN','fileHelper','oWeqh','96320wfkvrY','number','JBSSh','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','winstonLogger','zgamR','kvHUW','_getDefaultState','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','yzRoE','failFastConfig','putFailedTests','writeState','BROWSERSTACK_BUILD_RUN_IDENTIFIER','add','newState','size','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','isCIMode','hDFlQ',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','ZJmox','pfqZc','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','failureThresholdCount','shouldFailFast','2131272XHpcBl','_fetchAPIFailedCount','4377wOPjww','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20',',\x20CI\x20Mode:\x20','\x0aStack:\x20','../logger','workingDir','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20',',\x20threshold:\x20','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','NdKiZ','onTestDone','30068030fSUyRP','debug','startPolling','message','existsSync','FailFastManager','ms.','info','AVaRt','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','7927880NvRMBR','rCXlx','reportedFailuresToAPI','HiWqP','passed','pollingInterval','pPZDG','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','path',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','BROWSERSTACK_TOTAL_NODE_COUNT','readState','failFastActive','_CI]\x20Error\x20during\x20polling\x20logic:\x20','BCycx','mJkJZ','stopPolling'];a132_0x48ae=function(){return _0x3d061f;};return a132_0x48ae();}const a132_0x2fd50e=a132_0x32c3;(function(_0x5aa715,_0x185154){const _0x620e35=a132_0x32c3,_0x1b05b3=_0x5aa715();while(!![]){try{const _0x987b36=-parseInt(_0x620e35(0x1d4))/0x1+-parseInt(_0x620e35(0x1b1))/0x2+parseInt(_0x620e35(0x188))/0x3*(-parseInt(_0x620e35(0x1d8))/0x4)+parseInt(_0x620e35(0x19d))/0x5+-parseInt(_0x620e35(0x1b7))/0x6*(parseInt(_0x620e35(0x16b))/0x7)+parseInt(_0x620e35(0x186))/0x8*(parseInt(_0x620e35(0x1ce))/0x9)+parseInt(_0x620e35(0x193))/0xa;if(_0x987b36===_0x185154)break;else _0x1b05b3['push'](_0x1b05b3['shift']());}catch(_0xef9d07){_0x1b05b3['push'](_0x1b05b3['shift']());}}}(a132_0x48ae,0xd1e58));const fs=require('fs'),path=require(a132_0x2fd50e(0x1a5)),FileHelper=require(a132_0x2fd50e(0x1cd)),RequestUtils=require('./requestUtils'),logger=require(a132_0x2fd50e(0x18c))[a132_0x2fd50e(0x170)],POLLING_INTERVAL=0x2710,TAG=a132_0x2fd50e(0x198);class FailFastManager{constructor(_0x30fa9f,_0x5a2d41,_0x29f9b5){const _0x5e5d8a=a132_0x2fd50e,_0x4b39aa={};_0x4b39aa[_0x5e5d8a(0x17f)]=function(_0x6436b4,_0x4bb174){return _0x6436b4+_0x4bb174;},_0x4b39aa['OIYKY']=_0x5e5d8a(0x18b),_0x4b39aa[_0x5e5d8a(0x1c5)]=function(_0x2db917,_0x2cba14){return _0x2db917||_0x2cba14;},_0x4b39aa['kvHUW']='failFastState.json',_0x4b39aa[_0x5e5d8a(0x1a0)]='failFastState.lock',_0x4b39aa[_0x5e5d8a(0x1c2)]=_0x5e5d8a(0x15f);const _0x361d13=_0x4b39aa;this[_0x5e5d8a(0x176)]=_0x361d13[_0x5e5d8a(0x1c5)](_0x30fa9f,{}),this['buildName']=_0x5a2d41,this[_0x5e5d8a(0x1d7)]=_0x29f9b5,this[_0x5e5d8a(0x17e)]=!!(process[_0x5e5d8a(0x1d1)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER']&&process[_0x5e5d8a(0x1d1)][_0x5e5d8a(0x1be)]&&process[_0x5e5d8a(0x1d1)][_0x5e5d8a(0x1a7)]);const _0x23d7ed=this[_0x5e5d8a(0x176)][_0x5e5d8a(0x18d)];this[_0x5e5d8a(0x158)]=path[_0x5e5d8a(0x1d3)](_0x23d7ed,_0x361d13[_0x5e5d8a(0x172)]),this[_0x5e5d8a(0x15b)]=path[_0x5e5d8a(0x1d3)](_0x23d7ed,_0x361d13[_0x5e5d8a(0x1a0)]),this[_0x5e5d8a(0x1c7)]=path['join'](_0x23d7ed,_0x361d13[_0x5e5d8a(0x1c2)]),this['fileHelper']=new FileHelper(this[_0x5e5d8a(0x176)],this[_0x5e5d8a(0x158)],this[_0x5e5d8a(0x15b)],this[_0x5e5d8a(0x173)]()),this[_0x5e5d8a(0x1b4)]=this[_0x5e5d8a(0x173)](),this[_0x5e5d8a(0x1a2)]=null,this[_0x5e5d8a(0x17e)]&&(this['reportedFailuresToAPI']=new Set()),this[_0x5e5d8a(0x1da)]()['catch'](_0x317ed0=>{const _0x53127a=_0x5e5d8a;logger[_0x53127a(0x1b9)]('['+TAG+_0x53127a(0x1a6)+_0x317ed0[_0x53127a(0x196)]+(_0x317ed0[_0x53127a(0x1d9)]?_0x361d13[_0x53127a(0x17f)](_0x361d13['OIYKY'],_0x317ed0[_0x53127a(0x1d9)]):'')),this[_0x53127a(0x1b4)]=this[_0x53127a(0x173)]();}),this[_0x5e5d8a(0x17e)]&&this[_0x5e5d8a(0x195)](),logger[_0x5e5d8a(0x194)]('['+TAG+_0x5e5d8a(0x180)+this[_0x5e5d8a(0x176)][_0x5e5d8a(0x184)]+_0x5e5d8a(0x18a)+this[_0x5e5d8a(0x17e)]);}[a132_0x2fd50e(0x173)](){const _0x579462={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x579462;}async[a132_0x2fd50e(0x1da)](){const _0x319805=a132_0x2fd50e,_0x26a794={};_0x26a794['NdIWt']=function(_0x1eb27d,_0x541851){return _0x1eb27d+_0x541851;},_0x26a794[_0x319805(0x1ab)]='\x0aStack:\x20',_0x26a794[_0x319805(0x157)]=function(_0x100df4,_0x4b0526){return _0x100df4+_0x4b0526;};const _0x3588e9=_0x26a794;if(this[_0x319805(0x17e)])try{fs[_0x319805(0x197)](this['failFastActiveMarkerPath'])&&(this[_0x319805(0x1b4)][_0x319805(0x1a9)]=!![],logger[_0x319805(0x194)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.'));}catch(_0x2e5315){logger[_0x319805(0x1b9)]('['+TAG+_0x319805(0x189)+_0x2e5315['message']+(_0x2e5315[_0x319805(0x1d9)]?_0x3588e9[_0x319805(0x1c8)](_0x3588e9['BCycx'],_0x2e5315['stack']):''));}else try{const _0x5b4d29=await this[_0x319805(0x169)][_0x319805(0x1a8)]();if(_0x5b4d29)this[_0x319805(0x1b4)]={...this['_getDefaultState'](),..._0x5b4d29,'uniqueFailedTests':new Set(_0x5b4d29[_0x319805(0x166)]||[])},logger[_0x319805(0x194)]('['+TAG+_0x319805(0x159));else{logger[_0x319805(0x194)]('['+TAG+_0x319805(0x1bb));const _0x3148ea=this[_0x319805(0x173)](),_0x103231={..._0x3148ea,'uniqueFailedTests':Array[_0x319805(0x1c3)](_0x3148ea[_0x319805(0x166)])};await this[_0x319805(0x169)][_0x319805(0x178)](_0x103231),this['state']=_0x3148ea;}}catch(_0x564918){logger[_0x319805(0x194)]('['+TAG+_0x319805(0x167)+_0x564918['message']+(_0x564918['stack']?_0x3588e9[_0x319805(0x157)](_0x3588e9[_0x319805(0x1ab)],_0x564918['stack']):'')),this[_0x319805(0x1b4)]=this[_0x319805(0x173)]();}}async[a132_0x2fd50e(0x192)](_0x2fef9f,_0x38dcf0){const _0x1eac87=a132_0x2fd50e,_0x398f34={};_0x398f34[_0x1eac87(0x1b3)]=function(_0x5cc954,_0x1fcc98){return _0x5cc954>_0x1fcc98;},_0x398f34[_0x1eac87(0x1ac)]=_0x1eac87(0x163),_0x398f34[_0x1eac87(0x16d)]=_0x1eac87(0x1a1),_0x398f34[_0x1eac87(0x1b2)]=function(_0x37db9c,_0x41ea7c){return _0x37db9c+_0x41ea7c;},_0x398f34['pfqZc']=_0x1eac87(0x18b),_0x398f34['AVaRt']=function(_0x3dd099,_0xcc7ff9){return _0x3dd099||_0xcc7ff9;};const _0x197b1c=_0x398f34;if(this['isCIMode'])this['state'][_0x1eac87(0x152)]+=0x1,_0x38dcf0&&_0x197b1c[_0x1eac87(0x1b3)](_0x38dcf0[_0x1eac87(0x1c0)],0x0)&&(!this[_0x1eac87(0x19f)][_0x1eac87(0x15a)](_0x2fef9f)&&(await this[_0x1eac87(0x1b8)](_0x2fef9f),this[_0x1eac87(0x19f)][_0x1eac87(0x17a)](_0x2fef9f)));else try{const _0x18355a={'fullName':_0x2fef9f,'status':_0x38dcf0&&_0x197b1c[_0x1eac87(0x1b3)](_0x38dcf0[_0x1eac87(0x1c0)],0x0)?_0x197b1c[_0x1eac87(0x1ac)]:_0x197b1c[_0x1eac87(0x16d)]},_0x470a36=await this[_0x1eac87(0x169)][_0x1eac87(0x1af)](_0x18355a);this[_0x1eac87(0x1b4)]={...this['_getDefaultState'](),..._0x470a36[_0x1eac87(0x17b)],'uniqueFailedTests':new Set(_0x470a36[_0x1eac87(0x17b)][_0x1eac87(0x166)]||[])};}catch(_0x5a2932){logger['error']('['+TAG+'_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20'+_0x5a2932[_0x1eac87(0x196)]+(_0x5a2932['stack']?_0x197b1c[_0x1eac87(0x1b2)](_0x197b1c[_0x1eac87(0x182)],_0x5a2932[_0x1eac87(0x1d9)]):''));try{const _0x3de32f=await this[_0x1eac87(0x169)]['readState']();this[_0x1eac87(0x1b4)]={...this[_0x1eac87(0x173)](),..._0x197b1c[_0x1eac87(0x19b)](_0x3de32f,{}),'uniqueFailedTests':new Set(_0x3de32f?_0x3de32f[_0x1eac87(0x166)]||[]:[])},logger[_0x1eac87(0x194)]('['+TAG+_0x1eac87(0x165));}catch(_0x5bd84a){logger[_0x1eac87(0x1b9)]('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0x5bd84a[_0x1eac87(0x196)]+(_0x5bd84a[_0x1eac87(0x1d9)]?_0x197b1c[_0x1eac87(0x1b2)](_0x197b1c[_0x1eac87(0x182)],_0x5bd84a[_0x1eac87(0x1d9)]):'')),this['state']=this['_getDefaultState']();}}}async[a132_0x2fd50e(0x1b8)](_0x591214){const _0x354ec5=a132_0x2fd50e,_0x460dca={};_0x460dca[_0x354ec5(0x19e)]=function(_0x109659,_0x59494b){return _0x109659+_0x59494b;},_0x460dca['tCSgq']=_0x354ec5(0x18b);const _0x2c8941=_0x460dca;if(!this[_0x354ec5(0x17e)]||!_0x591214)return;try{logger['debug']('['+TAG+_0x354ec5(0x1cc)+_0x591214);const _0x468cf9={};_0x468cf9['buildName']=this[_0x354ec5(0x1b5)],_0x468cf9[_0x354ec5(0x1d7)]=this[_0x354ec5(0x1d7)],_0x468cf9[_0x354ec5(0x1bf)]=[_0x591214],_0x468cf9[_0x354ec5(0x15c)]=process['env'][_0x354ec5(0x179)],await RequestUtils[_0x354ec5(0x177)](_0x468cf9);}catch(_0x80a213){logger[_0x354ec5(0x1b9)]('['+TAG+'_CI]\x20Error\x20sending\x20failed\x20test\x20'+_0x591214+'\x20to\x20API:\x20'+_0x80a213[_0x354ec5(0x196)]+(_0x80a213[_0x354ec5(0x1d9)]?_0x2c8941['rCXlx'](_0x2c8941[_0x354ec5(0x15d)],_0x80a213[_0x354ec5(0x1d9)]):''));}}async[a132_0x2fd50e(0x187)](){const _0x543ecf=a132_0x2fd50e,_0x234ba9={};_0x234ba9['eVVRg']=function(_0x27b64f,_0x23d327){return _0x27b64f===_0x23d327;},_0x234ba9[_0x543ecf(0x1a3)]=_0x543ecf(0x16c),_0x234ba9['QlxEP']=function(_0x11692f,_0x4d3c53){return _0x11692f+_0x4d3c53;},_0x234ba9[_0x543ecf(0x1bd)]=_0x543ecf(0x18b),_0x234ba9[_0x543ecf(0x175)]=function(_0x4164a2,_0xe190ed){return _0x4164a2!==_0xe190ed;};const _0x4f7256=_0x234ba9;if(!this[_0x543ecf(0x17e)])return 0x0;try{const _0x26a147={};_0x26a147[_0x543ecf(0x1b5)]=this[_0x543ecf(0x1b5)],_0x26a147[_0x543ecf(0x1d7)]=this[_0x543ecf(0x1d7)],_0x26a147[_0x543ecf(0x15c)]=process[_0x543ecf(0x1d1)][_0x543ecf(0x179)];const _0x3cfb66=await RequestUtils[_0x543ecf(0x161)](_0x26a147);return logger[_0x543ecf(0x194)]('['+TAG+_0x543ecf(0x1a4)+_0x3cfb66),_0x4f7256['eVVRg'](typeof _0x3cfb66,_0x4f7256['pPZDG'])?_0x3cfb66:0x0;}catch(_0x181d64){return logger[_0x543ecf(0x1b9)]('['+TAG+_0x543ecf(0x18e)+_0x181d64[_0x543ecf(0x196)]+(_0x181d64[_0x543ecf(0x1d9)]?_0x4f7256[_0x543ecf(0x153)](_0x4f7256[_0x543ecf(0x1bd)],_0x181d64[_0x543ecf(0x1d9)]):'')),_0x4f7256[_0x543ecf(0x175)](this[_0x543ecf(0x1b4)]['lastAPIFailedCount'],undefined)?this[_0x543ecf(0x1b4)]['lastAPIFailedCount']:0x0;}}async[a132_0x2fd50e(0x1c1)](){const _0xe0d9c7=a132_0x2fd50e,_0x763811={};_0x763811['IwqgX']=function(_0x4eb7aa,_0x504e8a){return _0x4eb7aa!==_0x504e8a;},_0x763811[_0xe0d9c7(0x1d6)]=function(_0x558c2a,_0xe074c0){return _0x558c2a+_0xe074c0;},_0x763811[_0xe0d9c7(0x1ca)]=_0xe0d9c7(0x18b);const _0x25f247=_0x763811;if(!this[_0xe0d9c7(0x17e)])return;try{const _0x1b5d0f=await this[_0xe0d9c7(0x187)]();_0x25f247[_0xe0d9c7(0x1c4)](_0x1b5d0f,this[_0xe0d9c7(0x1b4)][_0xe0d9c7(0x1ae)])&&(logger[_0xe0d9c7(0x194)]('['+TAG+_0xe0d9c7(0x1c9)+_0x1b5d0f+_0xe0d9c7(0x155)+this['state']['lastAPIFailedCount']+')'),this['state'][_0xe0d9c7(0x1ae)]=_0x1b5d0f);}catch(_0x2278a0){logger[_0xe0d9c7(0x1b9)]('['+TAG+_0xe0d9c7(0x1aa)+_0x2278a0[_0xe0d9c7(0x196)]+(_0x2278a0['stack']?_0x25f247[_0xe0d9c7(0x1d6)](_0x25f247['xdqhv'],_0x2278a0[_0xe0d9c7(0x1d9)]):''));}}async[a132_0x2fd50e(0x195)](){const _0x12dd40=a132_0x2fd50e,_0x3d3cfd={'Xtpgt':function(_0x4d5826,_0x376895,_0x515a76){return _0x4d5826(_0x376895,_0x515a76);}};this[_0x12dd40(0x1a2)]&&this['stopPolling'](),this['isCIMode']&&(await this[_0x12dd40(0x1c1)](),this[_0x12dd40(0x1a2)]=_0x3d3cfd[_0x12dd40(0x1d5)](setInterval,async()=>{const _0x401c89=_0x12dd40;await this[_0x401c89(0x1c1)]();},POLLING_INTERVAL),logger[_0x12dd40(0x194)]('['+TAG+_0x12dd40(0x154)+POLLING_INTERVAL+_0x12dd40(0x199)));}[a132_0x2fd50e(0x1ad)](){const _0x42d1d9=a132_0x2fd50e,_0x4d2093={'NdKiZ':function(_0x26f174,_0x16af6f){return _0x26f174(_0x16af6f);}};this[_0x42d1d9(0x1a2)]&&(_0x4d2093[_0x42d1d9(0x191)](clearInterval,this[_0x42d1d9(0x1a2)]),this['pollingInterval']=null,logger[_0x42d1d9(0x194)]('['+TAG+_0x42d1d9(0x1c6)));}async[a132_0x2fd50e(0x185)](){const _0x1009df=a132_0x2fd50e,_0x556d17={};_0x556d17[_0x1009df(0x168)]=function(_0x316fdb,_0x4d3dfd){return _0x316fdb===_0x4d3dfd;},_0x556d17[_0x1009df(0x171)]=function(_0x5d48e5,_0x41e286){return _0x5d48e5<=_0x41e286;},_0x556d17[_0x1009df(0x16a)]=function(_0x7ba057,_0x51ee1a){return _0x7ba057+_0x51ee1a;},_0x556d17['FdLwQ']='\x0aStack:\x20',_0x556d17[_0x1009df(0x1d0)]=function(_0x269122,_0x593992){return _0x269122!==_0x593992;},_0x556d17[_0x1009df(0x156)]=function(_0x4779a6,_0x1ee90a){return _0x4779a6>=_0x1ee90a;},_0x556d17[_0x1009df(0x181)]=function(_0x194327,_0x12b5cc){return _0x194327+_0x12b5cc;};const _0x4dfc85=_0x556d17,{failureThresholdCount:_0x2cad63}=this[_0x1009df(0x176)];if(_0x4dfc85[_0x1009df(0x168)](_0x2cad63,null)||_0x4dfc85[_0x1009df(0x168)](_0x2cad63,undefined)||_0x4dfc85['zgamR'](_0x2cad63,0x0))return logger[_0x1009df(0x194)]('['+TAG+_0x1009df(0x1bc)),![];if(this['isCIMode']){try{if(fs[_0x1009df(0x197)](this[_0x1009df(0x1c7)]))return logger[_0x1009df(0x194)]('['+TAG+_0x1009df(0x16e)),!this[_0x1009df(0x1b4)]['failFastActive']&&(this['state'][_0x1009df(0x1a9)]=!![]),this[_0x1009df(0x1ad)](),!![];}catch(_0x5f379e){logger['error']('['+TAG+_0x1009df(0x189)+_0x5f379e['message']+(_0x5f379e[_0x1009df(0x1d9)]?_0x4dfc85['oWeqh'](_0x4dfc85[_0x1009df(0x15e)],_0x5f379e[_0x1009df(0x1d9)]):''));}const _0x56758c=_0x4dfc85[_0x1009df(0x1d0)](this[_0x1009df(0x1b4)][_0x1009df(0x1ae)],undefined)?this[_0x1009df(0x1b4)][_0x1009df(0x1ae)]:0x0;if(_0x4dfc85[_0x1009df(0x156)](_0x56758c,_0x2cad63)){logger[_0x1009df(0x19a)]('['+TAG+_0x1009df(0x190)+_0x56758c+_0x1009df(0x18f)+_0x2cad63+'.');try{fs['writeFileSync'](this[_0x1009df(0x1c7)],new Date()[_0x1009df(0x1ba)]()),logger[_0x1009df(0x194)]('['+TAG+_0x1009df(0x16f)+this['failFastActiveMarkerPath']),this[_0x1009df(0x1b4)]['failFastActive']=!![];}catch(_0x49452d){logger[_0x1009df(0x1b9)]('['+TAG+_0x1009df(0x160)+_0x49452d[_0x1009df(0x196)]+(_0x49452d[_0x1009df(0x1d9)]?_0x4dfc85[_0x1009df(0x16a)](_0x4dfc85['FdLwQ'],_0x49452d[_0x1009df(0x1d9)]):''));}return this[_0x1009df(0x1ad)](),!![];}}else{let _0x27458f;try{_0x27458f=await this[_0x1009df(0x169)][_0x1009df(0x1a8)]();if(!_0x27458f)return logger[_0x1009df(0x1cb)]('['+TAG+_0x1009df(0x1b0)),![];}catch(_0x1b09a9){return logger[_0x1009df(0x1b9)]('['+TAG+_0x1009df(0x162)+_0x1b09a9[_0x1009df(0x196)]+(_0x1b09a9['stack']?_0x4dfc85['ZJmox'](_0x4dfc85[_0x1009df(0x15e)],_0x1b09a9['stack']):'')),![];}this[_0x1009df(0x1b4)]={...this[_0x1009df(0x173)](),..._0x27458f,'uniqueFailedTests':new Set(_0x27458f[_0x1009df(0x166)]||[])};if(this['state'][_0x1009df(0x1a9)])return logger[_0x1009df(0x194)]('['+TAG+_0x1009df(0x19c)),!![];const _0x1b2406=this[_0x1009df(0x1b4)][_0x1009df(0x166)],_0x491602=_0x1b2406[_0x1009df(0x17c)];if(_0x4dfc85[_0x1009df(0x156)](_0x491602,_0x2cad63)){try{logger[_0x1009df(0x19a)]('['+TAG+_0x1009df(0x1b6)+_0x491602+',\x20threshold:\x20'+_0x2cad63+'.'),this[_0x1009df(0x1b4)]['failFastActive']=!![];}catch(_0x2dac17){logger['error']('['+TAG+_0x1009df(0x17d)+_0x2dac17['message']+(_0x2dac17[_0x1009df(0x1d9)]?_0x4dfc85[_0x1009df(0x16a)](_0x4dfc85[_0x1009df(0x15e)],_0x2dac17[_0x1009df(0x1d9)]):''));}return!![];}}return![];}async[a132_0x2fd50e(0x1d2)](){const _0x36b80c=a132_0x2fd50e,_0x4fade8={};_0x4fade8[_0x36b80c(0x164)]=function(_0x5a8e69,_0x1780ec){return _0x5a8e69+_0x1780ec;},_0x4fade8[_0x36b80c(0x1cf)]=_0x36b80c(0x18b);const _0x571873=_0x4fade8;this[_0x36b80c(0x1ad)]();if(this['isCIMode'])logger[_0x36b80c(0x194)]('['+TAG+_0x36b80c(0x183));else try{const _0x2755d9={...this[_0x36b80c(0x1b4)],'uniqueFailedTests':Array['from'](this[_0x36b80c(0x1b4)][_0x36b80c(0x166)]||new Set())};await this[_0x36b80c(0x169)]['writeState'](_0x2755d9),logger[_0x36b80c(0x194)]('['+TAG+_0x36b80c(0x174));}catch(_0x2c6690){logger[_0x36b80c(0x1b9)]('['+TAG+'_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20'+_0x2c6690[_0x36b80c(0x196)]+(_0x2c6690['stack']?_0x571873[_0x36b80c(0x164)](_0x571873[_0x36b80c(0x1cf)],_0x2c6690[_0x36b80c(0x1d9)]):''));}}}module['exports']=FailFastManager;
|
|
1
|
+
const a132_0x1a80ee=a132_0x2002;(function(_0x22743b,_0x3c592b){const _0x8ec74d=a132_0x2002,_0x39e7e5=_0x22743b();while(!![]){try{const _0x4966b6=parseInt(_0x8ec74d(0x20d))/0x1+-parseInt(_0x8ec74d(0x1fe))/0x2+parseInt(_0x8ec74d(0x1e0))/0x3+parseInt(_0x8ec74d(0x1f8))/0x4+parseInt(_0x8ec74d(0x1b8))/0x5+-parseInt(_0x8ec74d(0x1de))/0x6*(-parseInt(_0x8ec74d(0x213))/0x7)+-parseInt(_0x8ec74d(0x18d))/0x8;if(_0x4966b6===_0x3c592b)break;else _0x39e7e5['push'](_0x39e7e5['shift']());}catch(_0x1b6f32){_0x39e7e5['push'](_0x39e7e5['shift']());}}}(a132_0x247b,0x3b6c7));const fs=require('fs'),path=require(a132_0x1a80ee(0x1a6)),FileHelper=require(a132_0x1a80ee(0x1b5)),RequestUtils=require('./requestUtils'),logger=require(a132_0x1a80ee(0x209))['winstonLogger'],POLLING_INTERVAL=0x2710,TAG=a132_0x1a80ee(0x1d9);class FailFastManager{constructor(_0x2bd8eb,_0x2108b7,_0x2c3f3d){const _0x70d7b1=a132_0x1a80ee,_0x4bdcbb={};_0x4bdcbb[_0x70d7b1(0x1d0)]=function(_0x1e3f31,_0x2d10b0){return _0x1e3f31+_0x2d10b0;},_0x4bdcbb[_0x70d7b1(0x20c)]='\x0aStack:\x20',_0x4bdcbb[_0x70d7b1(0x195)]=function(_0xfb076f,_0x2b3c20){return _0xfb076f||_0x2b3c20;},_0x4bdcbb[_0x70d7b1(0x1f4)]=_0x70d7b1(0x1d2),_0x4bdcbb[_0x70d7b1(0x211)]=_0x70d7b1(0x1a8),_0x4bdcbb[_0x70d7b1(0x1d8)]=_0x70d7b1(0x1c8);const _0x25d9c7=_0x4bdcbb;this[_0x70d7b1(0x1c6)]=_0x25d9c7[_0x70d7b1(0x195)](_0x2bd8eb,{}),this[_0x70d7b1(0x1ad)]=_0x2108b7,this[_0x70d7b1(0x1d7)]=_0x2c3f3d,this[_0x70d7b1(0x1ae)]=!!(process[_0x70d7b1(0x1b9)][_0x70d7b1(0x1b3)]&&process[_0x70d7b1(0x1b9)][_0x70d7b1(0x1a9)]&&process[_0x70d7b1(0x1b9)]['BROWSERSTACK_TOTAL_NODE_COUNT']);const _0x2b354a=this[_0x70d7b1(0x1c6)][_0x70d7b1(0x1dc)];this['stateFilePath']=path[_0x70d7b1(0x1e7)](_0x2b354a,_0x25d9c7[_0x70d7b1(0x1f4)]),this[_0x70d7b1(0x1a5)]=path[_0x70d7b1(0x1e7)](_0x2b354a,_0x25d9c7[_0x70d7b1(0x211)]),this['failFastActiveMarkerPath']=path[_0x70d7b1(0x1e7)](_0x2b354a,_0x25d9c7[_0x70d7b1(0x1d8)]),this[_0x70d7b1(0x1fc)]=new FileHelper(this['failFastConfig'],this[_0x70d7b1(0x194)],this[_0x70d7b1(0x1a5)],this['_getDefaultState']()),this[_0x70d7b1(0x19a)]=this[_0x70d7b1(0x1f6)](),this[_0x70d7b1(0x1d3)]=null,this['isCIMode']&&(this['reportedFailuresToAPI']=new Set()),this[_0x70d7b1(0x1f2)]()[_0x70d7b1(0x207)](_0x53a83e=>{const _0xc88c66=_0x70d7b1;logger[_0xc88c66(0x1c3)]('['+TAG+_0xc88c66(0x1e2)+_0x53a83e['message']+(_0x53a83e['stack']?_0x25d9c7[_0xc88c66(0x1d0)](_0x25d9c7[_0xc88c66(0x20c)],_0x53a83e['stack']):'')),this[_0xc88c66(0x19a)]=this[_0xc88c66(0x1f6)]();}),this['isCIMode']&&this[_0x70d7b1(0x1b4)](),logger[_0x70d7b1(0x1b0)]('['+TAG+_0x70d7b1(0x1a7)+this['failFastConfig'][_0x70d7b1(0x1e9)]+_0x70d7b1(0x1ff)+this['isCIMode']);}[a132_0x1a80ee(0x1f6)](){const _0x1978aa={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x1978aa;}async[a132_0x1a80ee(0x1f2)](){const _0x3c2156=a132_0x1a80ee,_0x1a6da4={};_0x1a6da4[_0x3c2156(0x1fa)]=function(_0x56fb77,_0x35a691){return _0x56fb77+_0x35a691;},_0x1a6da4[_0x3c2156(0x1c0)]=_0x3c2156(0x196);const _0x4cbec0=_0x1a6da4;if(this[_0x3c2156(0x1ae)])try{fs[_0x3c2156(0x202)](this['failFastActiveMarkerPath'])&&(this[_0x3c2156(0x19a)][_0x3c2156(0x1cf)]=!![],logger[_0x3c2156(0x1b0)]('['+TAG+_0x3c2156(0x1c2)));}catch(_0x1b8812){logger[_0x3c2156(0x1c3)]('['+TAG+_0x3c2156(0x19d)+_0x1b8812[_0x3c2156(0x206)]+(_0x1b8812[_0x3c2156(0x201)]?_0x4cbec0[_0x3c2156(0x1fa)](_0x4cbec0[_0x3c2156(0x1c0)],_0x1b8812[_0x3c2156(0x201)]):''));}else try{const _0x2e5f5d=await this['fileHelper']['readState']();if(_0x2e5f5d)this[_0x3c2156(0x19a)]={...this['_getDefaultState'](),..._0x2e5f5d,'uniqueFailedTests':new Set(_0x2e5f5d[_0x3c2156(0x197)]||[])},logger[_0x3c2156(0x1b0)]('['+TAG+_0x3c2156(0x20a));else{logger['debug']('['+TAG+_0x3c2156(0x1e6));const _0x23f1c3=this[_0x3c2156(0x1f6)](),_0x1c87c2={..._0x23f1c3,'uniqueFailedTests':Array[_0x3c2156(0x205)](_0x23f1c3[_0x3c2156(0x197)])};await this['fileHelper'][_0x3c2156(0x1f1)](_0x1c87c2),this['state']=_0x23f1c3;}}catch(_0x3e9140){logger[_0x3c2156(0x1b0)]('['+TAG+_0x3c2156(0x1cb)+_0x3e9140[_0x3c2156(0x206)]+(_0x3e9140['stack']?_0x4cbec0[_0x3c2156(0x1fa)](_0x4cbec0[_0x3c2156(0x1c0)],_0x3e9140[_0x3c2156(0x201)]):'')),this[_0x3c2156(0x19a)]=this[_0x3c2156(0x1f6)]();}}async[a132_0x1a80ee(0x18f)](_0x343b5e,_0x5adc94){const _0x45b8b4=a132_0x1a80ee,_0x4b0054={};_0x4b0054[_0x45b8b4(0x1d5)]=function(_0x55476c,_0x585ab6){return _0x55476c>_0x585ab6;},_0x4b0054[_0x45b8b4(0x1c5)]=function(_0x529af8,_0x2e445e){return _0x529af8>_0x2e445e;},_0x4b0054[_0x45b8b4(0x1bc)]=_0x45b8b4(0x20e),_0x4b0054['obunS']=_0x45b8b4(0x1d4),_0x4b0054['xFIeF']=function(_0x18113c,_0x2036ce){return _0x18113c+_0x2036ce;},_0x4b0054['NOkbE']=_0x45b8b4(0x196),_0x4b0054[_0x45b8b4(0x190)]=function(_0x5b2a39,_0x226f5d){return _0x5b2a39||_0x226f5d;};const _0x4d4540=_0x4b0054;if(this[_0x45b8b4(0x1ae)])this[_0x45b8b4(0x19a)][_0x45b8b4(0x204)]+=0x1,_0x5adc94&&_0x4d4540['wuyPE'](_0x5adc94[_0x45b8b4(0x1e4)],0x0)&&(!this['reportedFailuresToAPI'][_0x45b8b4(0x1c4)](_0x343b5e)&&(await this[_0x45b8b4(0x1f9)](_0x343b5e),this[_0x45b8b4(0x1c7)][_0x45b8b4(0x1f3)](_0x343b5e)));else try{const _0x1b0457={'fullName':_0x343b5e,'status':_0x5adc94&&_0x4d4540[_0x45b8b4(0x1c5)](_0x5adc94[_0x45b8b4(0x1e4)],0x0)?_0x4d4540['WcRMN']:_0x4d4540['obunS']},_0x4ee4ea=await this[_0x45b8b4(0x1fc)][_0x45b8b4(0x18e)](_0x1b0457);this[_0x45b8b4(0x19a)]={...this[_0x45b8b4(0x1f6)](),..._0x4ee4ea['newState'],'uniqueFailedTests':new Set(_0x4ee4ea[_0x45b8b4(0x1da)][_0x45b8b4(0x197)]||[])};}catch(_0x5982a9){logger[_0x45b8b4(0x1c3)]('['+TAG+_0x45b8b4(0x1a0)+_0x5982a9[_0x45b8b4(0x206)]+(_0x5982a9[_0x45b8b4(0x201)]?_0x4d4540[_0x45b8b4(0x19b)](_0x4d4540[_0x45b8b4(0x1ac)],_0x5982a9[_0x45b8b4(0x201)]):''));try{const _0x12313d=await this['fileHelper']['readState']();this[_0x45b8b4(0x19a)]={...this[_0x45b8b4(0x1f6)](),..._0x4d4540[_0x45b8b4(0x190)](_0x12313d,{}),'uniqueFailedTests':new Set(_0x12313d?_0x12313d[_0x45b8b4(0x197)]||[]:[])},logger['debug']('['+TAG+_0x45b8b4(0x19e));}catch(_0x2fabfd){logger[_0x45b8b4(0x1c3)]('['+TAG+_0x45b8b4(0x19c)+_0x2fabfd['message']+(_0x2fabfd[_0x45b8b4(0x201)]?_0x4d4540[_0x45b8b4(0x19b)](_0x4d4540[_0x45b8b4(0x1ac)],_0x2fabfd['stack']):'')),this[_0x45b8b4(0x19a)]=this['_getDefaultState']();}}}async[a132_0x1a80ee(0x1f9)](_0x4a0299){const _0x362463=a132_0x1a80ee,_0x3f4bd0={};_0x3f4bd0['jAhTi']=function(_0x4c8a05,_0x160cc7){return _0x4c8a05+_0x160cc7;},_0x3f4bd0['jBZhN']=_0x362463(0x196);const _0x1946d7=_0x3f4bd0;if(!this['isCIMode']||!_0x4a0299)return;try{logger[_0x362463(0x1b0)]('['+TAG+'_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20'+_0x4a0299);const _0x22c67b={};_0x22c67b[_0x362463(0x1ad)]=this[_0x362463(0x1ad)],_0x22c67b[_0x362463(0x1d7)]=this[_0x362463(0x1d7)],_0x22c67b[_0x362463(0x1a1)]=[_0x4a0299],_0x22c67b[_0x362463(0x20f)]=process['env'][_0x362463(0x1b3)],await RequestUtils[_0x362463(0x1cd)](_0x22c67b);}catch(_0x2d7619){logger['error']('['+TAG+'_CI]\x20Error\x20sending\x20failed\x20test\x20'+_0x4a0299+_0x362463(0x193)+_0x2d7619['message']+(_0x2d7619[_0x362463(0x201)]?_0x1946d7[_0x362463(0x1b1)](_0x1946d7[_0x362463(0x1e3)],_0x2d7619[_0x362463(0x201)]):''));}}async[a132_0x1a80ee(0x192)](){const _0x3ec539=a132_0x1a80ee,_0x59d774={};_0x59d774[_0x3ec539(0x199)]=function(_0xa3303b,_0x47ff6b){return _0xa3303b===_0x47ff6b;},_0x59d774['yDVsa']='number',_0x59d774[_0x3ec539(0x1b7)]=function(_0x24fe99,_0x2d5936){return _0x24fe99+_0x2d5936;},_0x59d774[_0x3ec539(0x191)]=_0x3ec539(0x196),_0x59d774[_0x3ec539(0x1a4)]=function(_0x91f54e,_0xd37111){return _0x91f54e!==_0xd37111;};const _0x4d7bc4=_0x59d774;if(!this[_0x3ec539(0x1ae)])return 0x0;try{const _0x12e130={};_0x12e130[_0x3ec539(0x1ad)]=this[_0x3ec539(0x1ad)],_0x12e130[_0x3ec539(0x1d7)]=this[_0x3ec539(0x1d7)],_0x12e130[_0x3ec539(0x20f)]=process[_0x3ec539(0x1b9)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];const _0x1086f7=await RequestUtils[_0x3ec539(0x1fd)](_0x12e130);return logger['debug']('['+TAG+_0x3ec539(0x1ed)+_0x1086f7),_0x4d7bc4[_0x3ec539(0x199)](typeof _0x1086f7,_0x4d7bc4[_0x3ec539(0x1c9)])?_0x1086f7:0x0;}catch(_0x4f3966){return logger[_0x3ec539(0x1c3)]('['+TAG+_0x3ec539(0x198)+_0x4f3966[_0x3ec539(0x206)]+(_0x4f3966[_0x3ec539(0x201)]?_0x4d7bc4['HFloa'](_0x4d7bc4[_0x3ec539(0x191)],_0x4f3966[_0x3ec539(0x201)]):'')),_0x4d7bc4['DrhEK'](this[_0x3ec539(0x19a)][_0x3ec539(0x1a3)],undefined)?this['state'][_0x3ec539(0x1a3)]:0x0;}}async[a132_0x1a80ee(0x1cc)](){const _0x2d3747=a132_0x1a80ee,_0xc06c51={};_0xc06c51[_0x2d3747(0x1db)]=function(_0xa17af3,_0x3c55d4){return _0xa17af3!==_0x3c55d4;},_0xc06c51['dMEYp']=function(_0x4229dd,_0x4964c4){return _0x4229dd+_0x4964c4;},_0xc06c51['RuWeI']=_0x2d3747(0x196);const _0xda05cc=_0xc06c51;if(!this[_0x2d3747(0x1ae)])return;try{const _0x422f54=await this[_0x2d3747(0x192)]();_0xda05cc['lyypi'](_0x422f54,this[_0x2d3747(0x19a)]['lastAPIFailedCount'])&&(logger[_0x2d3747(0x1b0)]('['+TAG+_0x2d3747(0x1ea)+_0x422f54+_0x2d3747(0x1d6)+this['state'][_0x2d3747(0x1a3)]+')'),this[_0x2d3747(0x19a)][_0x2d3747(0x1a3)]=_0x422f54);}catch(_0x1f9ceb){logger['error']('['+TAG+_0x2d3747(0x1f7)+_0x1f9ceb[_0x2d3747(0x206)]+(_0x1f9ceb[_0x2d3747(0x201)]?_0xda05cc['dMEYp'](_0xda05cc[_0x2d3747(0x1ef)],_0x1f9ceb['stack']):''));}}async[a132_0x1a80ee(0x1b4)](){const _0xf7d369=a132_0x1a80ee,_0x16fbe1={'VDaYS':function(_0x6335d9,_0x4f4fc2,_0x2fb04c){return _0x6335d9(_0x4f4fc2,_0x2fb04c);}};this['pollingInterval']&&this[_0xf7d369(0x1ba)](),this[_0xf7d369(0x1ae)]&&(await this['_pollFailedTests'](),this['pollingInterval']=_0x16fbe1[_0xf7d369(0x1bd)](setInterval,async()=>{const _0x5197b8=_0xf7d369;await this[_0x5197b8(0x1cc)]();},POLLING_INTERVAL),logger['debug']('['+TAG+'_CI]\x20Polling\x20started\x20with\x20interval:\x20'+POLLING_INTERVAL+_0xf7d369(0x20b)));}[a132_0x1a80ee(0x1ba)](){const _0x58dcd8=a132_0x1a80ee,_0x2a28f6={'tbzrQ':function(_0x52e763,_0x5d1e4b){return _0x52e763(_0x5d1e4b);}};this[_0x58dcd8(0x1d3)]&&(_0x2a28f6[_0x58dcd8(0x1eb)](clearInterval,this[_0x58dcd8(0x1d3)]),this[_0x58dcd8(0x1d3)]=null,logger[_0x58dcd8(0x1b0)]('['+TAG+_0x58dcd8(0x1e1)));}async['shouldFailFast'](){const _0x3921ae=a132_0x1a80ee,_0x3cddf1={};_0x3cddf1['gEljO']=function(_0xfefaa2,_0x3f1652){return _0xfefaa2===_0x3f1652;},_0x3cddf1['DJqUV']=function(_0x5e610b,_0x31e389){return _0x5e610b<=_0x31e389;},_0x3cddf1[_0x3921ae(0x1e5)]=function(_0x225595,_0x47c5dd){return _0x225595+_0x47c5dd;},_0x3cddf1[_0x3921ae(0x208)]=_0x3921ae(0x196),_0x3cddf1[_0x3921ae(0x203)]=function(_0x2487da,_0x5638de){return _0x2487da!==_0x5638de;},_0x3cddf1[_0x3921ae(0x1ee)]=function(_0x113c66,_0x1f9905){return _0x113c66>=_0x1f9905;},_0x3cddf1['tKPYh']=function(_0x5381da,_0x22bd10){return _0x5381da+_0x22bd10;},_0x3cddf1['yOirn']=function(_0x5aac7e,_0x1a410d){return _0x5aac7e>=_0x1a410d;},_0x3cddf1[_0x3921ae(0x1f5)]=function(_0x2c25f1,_0x5afd22){return _0x2c25f1+_0x5afd22;};const _0x50178d=_0x3cddf1,{failureThresholdCount:_0x5f2b42}=this[_0x3921ae(0x1c6)];if(_0x50178d[_0x3921ae(0x1ce)](_0x5f2b42,null)||_0x50178d[_0x3921ae(0x1ce)](_0x5f2b42,undefined)||_0x50178d[_0x3921ae(0x1ab)](_0x5f2b42,0x0))return logger[_0x3921ae(0x1b0)]('['+TAG+']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.'),![];if(this['isCIMode']){try{if(fs[_0x3921ae(0x202)](this[_0x3921ae(0x1a2)]))return logger[_0x3921ae(0x1b0)]('['+TAG+_0x3921ae(0x1b2)),!this[_0x3921ae(0x19a)][_0x3921ae(0x1cf)]&&(this[_0x3921ae(0x19a)][_0x3921ae(0x1cf)]=!![]),this[_0x3921ae(0x1ba)](),!![];}catch(_0x523181){logger['error']('['+TAG+_0x3921ae(0x19d)+_0x523181['message']+(_0x523181[_0x3921ae(0x201)]?_0x50178d[_0x3921ae(0x1e5)](_0x50178d[_0x3921ae(0x208)],_0x523181[_0x3921ae(0x201)]):''));}const _0x2635c5=_0x50178d[_0x3921ae(0x203)](this[_0x3921ae(0x19a)][_0x3921ae(0x1a3)],undefined)?this[_0x3921ae(0x19a)][_0x3921ae(0x1a3)]:0x0;if(_0x50178d[_0x3921ae(0x1ee)](_0x2635c5,_0x5f2b42)){logger[_0x3921ae(0x1ca)]('['+TAG+_0x3921ae(0x1df)+_0x2635c5+_0x3921ae(0x1d1)+_0x5f2b42+'.');try{fs[_0x3921ae(0x1dd)](this['failFastActiveMarkerPath'],new Date()[_0x3921ae(0x1fb)]()),logger['debug']('['+TAG+_0x3921ae(0x212)+this[_0x3921ae(0x1a2)]),this[_0x3921ae(0x19a)][_0x3921ae(0x1cf)]=!![];}catch(_0x41e784){logger['error']('['+TAG+_0x3921ae(0x1b6)+_0x41e784[_0x3921ae(0x206)]+(_0x41e784[_0x3921ae(0x201)]?_0x50178d[_0x3921ae(0x1e5)](_0x50178d[_0x3921ae(0x208)],_0x41e784[_0x3921ae(0x201)]):''));}return this[_0x3921ae(0x1ba)](),!![];}}else{let _0x26b630;try{_0x26b630=await this[_0x3921ae(0x1fc)][_0x3921ae(0x1be)]();if(!_0x26b630)return logger[_0x3921ae(0x19f)]('['+TAG+_0x3921ae(0x1aa)),![];}catch(_0x5f4e6a){return logger[_0x3921ae(0x1c3)]('['+TAG+'_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20'+_0x5f4e6a[_0x3921ae(0x206)]+(_0x5f4e6a[_0x3921ae(0x201)]?_0x50178d[_0x3921ae(0x1ec)](_0x50178d[_0x3921ae(0x208)],_0x5f4e6a['stack']):'')),![];}this[_0x3921ae(0x19a)]={...this[_0x3921ae(0x1f6)](),..._0x26b630,'uniqueFailedTests':new Set(_0x26b630[_0x3921ae(0x197)]||[])};if(this[_0x3921ae(0x19a)][_0x3921ae(0x1cf)])return logger['debug']('['+TAG+_0x3921ae(0x1af)),!![];const _0x1a4257=this['state']['uniqueFailedTests'],_0x4a0ff0=_0x1a4257['size'];if(_0x50178d[_0x3921ae(0x1f0)](_0x4a0ff0,_0x5f2b42)){try{logger[_0x3921ae(0x1ca)]('['+TAG+_0x3921ae(0x214)+_0x4a0ff0+_0x3921ae(0x1d1)+_0x5f2b42+'.'),this[_0x3921ae(0x19a)]['failFastActive']=!![];}catch(_0x4fff05){logger[_0x3921ae(0x1c3)]('['+TAG+'_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20'+_0x4fff05[_0x3921ae(0x206)]+(_0x4fff05[_0x3921ae(0x201)]?_0x50178d['WJHLu'](_0x50178d[_0x3921ae(0x208)],_0x4fff05[_0x3921ae(0x201)]):''));}return!![];}}return![];}async['cleanup'](){const _0x111a72=a132_0x1a80ee,_0x122225={};_0x122225[_0x111a72(0x210)]=function(_0x59e289,_0x2c35e6){return _0x59e289+_0x2c35e6;},_0x122225[_0x111a72(0x1e8)]=_0x111a72(0x196);const _0x48c700=_0x122225;this[_0x111a72(0x1ba)]();if(this[_0x111a72(0x1ae)])logger['debug']('['+TAG+_0x111a72(0x200));else try{const _0x461b82={...this['state'],'uniqueFailedTests':Array[_0x111a72(0x205)](this[_0x111a72(0x19a)][_0x111a72(0x197)]||new Set())};await this[_0x111a72(0x1fc)][_0x111a72(0x1f1)](_0x461b82),logger['debug']('['+TAG+_0x111a72(0x1c1));}catch(_0x3b3a47){logger[_0x111a72(0x1c3)]('['+TAG+_0x111a72(0x1bb)+_0x3b3a47['message']+(_0x3b3a47[_0x111a72(0x201)]?_0x48c700[_0x111a72(0x210)](_0x48c700['WLFJp'],_0x3b3a47['stack']):''));}}}function a132_0x2002(_0x4f64cb,_0x466ebf){const _0x247ba2=a132_0x247b();return a132_0x2002=function(_0x2002c0,_0xf13f1){_0x2002c0=_0x2002c0-0x18d;let _0x5b163f=_0x247ba2[_0x2002c0];return _0x5b163f;},a132_0x2002(_0x4f64cb,_0x466ebf);}function a132_0x247b(){const _0x496e2d=['jBZhN','length','DUCNc','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','join','WLFJp','failureThresholdCount','_CI]\x20API\x20failed\x20count\x20updated:\x20','tbzrQ','tKPYh','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','AhvLL','RuWeI','yOirn','writeState','_initializeStateFromFile','add','SMSQZ','WJHLu','_getDefaultState','_CI]\x20Error\x20during\x20polling\x20logic:\x20','1097644AWtMYE','_sendFailedTestsToAPI','fjigj','toISOString','fileHelper','getFailedTestsCount','261508xOwAZX',',\x20CI\x20Mode:\x20','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','stack','existsSync','ZBCfu','totalTests','from','message','catch','sxksk','../logger','_Local]\x20State\x20initialized\x20from\x20file.','ms.','SUDfo','177392MqCuAA','failed','buildRunIdentifier','OQWlo','nqfxY','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','574301LEHYlg','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','7880976AjxMrH','recordTestResult','onTestDone','UbWzf','zEGpS','_fetchAPIFailedCount','\x20to\x20API:\x20','stateFilePath','kuGqt','\x0aStack:\x20','uniqueFailedTests','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','UoNkW','state','xFIeF','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','warn','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','failedTests','failFastActiveMarkerPath','lastAPIFailedCount','DrhEK','lockFilePath','path',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','failFastState.lock','BROWSERSTACK_NODE_INDEX','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','DJqUV','NOkbE','buildName','isCIMode','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','debug','jAhTi','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','BROWSERSTACK_BUILD_RUN_IDENTIFIER','startPolling','./fileHelper','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','HFloa','2400950PilSGd','env','stopPolling','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','WcRMN','VDaYS','readState','exports','SVjjj','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','error','has','uKNyo','failFastConfig','reportedFailuresToAPI','failFast.active','yDVsa','info','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','_pollFailedTests','putFailedTests','gEljO','failFastActive','losUH',',\x20threshold:\x20','failFastState.json','pollingInterval','passed','wuyPE','\x20(was\x20','projectName','dfNIj','FailFastManager','newState','lyypi','workingDir','writeFileSync','6yfcqvk','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','1035717jFtiKa',']\x20Polling\x20stopped.',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20'];a132_0x247b=function(){return _0x496e2d;};return a132_0x247b();}module[a132_0x1a80ee(0x1bf)]=FailFastManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a133_0x32a811=a133_0x44d0;(function(_0x401ff8,_0x3bb736){const _0x4b1b98=a133_0x44d0,_0x222000=_0x401ff8();while(!![]){try{const _0x5eef90=-parseInt(_0x4b1b98(0x10c))/0x1+parseInt(_0x4b1b98(0xee))/0x2+parseInt(_0x4b1b98(0xf1))/0x3*(parseInt(_0x4b1b98(0x115))/0x4)+parseInt(_0x4b1b98(0x116))/0x5*(-parseInt(_0x4b1b98(0x10f))/0x6)+-parseInt(_0x4b1b98(0xfb))/0x7+-parseInt(_0x4b1b98(0x108))/0x8*(parseInt(_0x4b1b98(0xe2))/0x9)+parseInt(_0x4b1b98(0x119))/0xa*(parseInt(_0x4b1b98(0xe4))/0xb);if(_0x5eef90===_0x3bb736)break;else _0x222000['push'](_0x222000['shift']());}catch(_0x4e5d7a){_0x222000['push'](_0x222000['shift']());}}}(a133_0xb6ef,0x39218));const fs=require('fs'),logger=require(a133_0x32a811(0x107))[a133_0x32a811(0x102)],TAG='FailFastFileHelper';class FileHelper{constructor(_0x12b59f,_0x1add71,_0x13417b,_0x158335){const _0x9c6349=a133_0x32a811,_0x4e0e53={};_0x4e0e53['UGcVa']=_0x9c6349(0xf3),_0x4e0e53['mzvcG']=_0x9c6349(0xef);const _0x4e0376=_0x4e0e53,_0x52207b=_0x4e0376[_0x9c6349(0xfd)][_0x9c6349(0xf5)]('|');let _0x2363e9=0x0;while(!![]){switch(_0x52207b[_0x2363e9++]){case'0':if(!fs[_0x9c6349(0x10d)](this[_0x9c6349(0xf0)]))try{fs['writeFileSync'](this[_0x9c6349(0xf0)],'{}',_0x4e0376['mzvcG']);}catch(_0x4b5d35){logger[_0x9c6349(0xdc)]('['+TAG+_0x9c6349(0x109)+_0x4b5d35['message']+'\x20'+_0x4b5d35[_0x9c6349(0xf8)]);}continue;case'1':this[_0x9c6349(0xf0)]=_0x1add71;continue;case'2':this['defaultState']=_0x158335;continue;case'3':this[_0x9c6349(0xeb)]=_0x13417b;continue;case'4':this[_0x9c6349(0xe3)]=_0x12b59f;continue;}break;}}async[a133_0x32a811(0x114)](){const _0x41a0b3=a133_0x32a811,_0x200dce={};_0x200dce[_0x41a0b3(0xf2)]=function(_0x13a8ea,_0x38207){return _0x13a8ea===_0x38207;},_0x200dce[_0x41a0b3(0xf7)]=_0x41a0b3(0xf4);const _0x119718=_0x200dce;let _0xfecf17;try{return _0xfecf17=fs[_0x41a0b3(0x105)](this['lockFilePath'],'wx'),_0xfecf17;}catch(_0x55519b){if(_0x119718[_0x41a0b3(0xf2)](_0x55519b[_0x41a0b3(0xdd)],_0x119718[_0x41a0b3(0xf7)]))return null;throw _0x55519b;}}async[a133_0x32a811(0x10e)](_0x398c02){const _0x2103af=a133_0x32a811;if(_0x398c02)try{fs[_0x2103af(0x103)](_0x398c02),fs['unlinkSync'](this['lockFilePath']);}catch(_0x4eec4b){logger[_0x2103af(0xdc)]('['+TAG+_0x2103af(0xde)+_0x4eec4b[_0x2103af(0xe9)]+'\x20'+_0x4eec4b['stack']);}}[a133_0x32a811(0xfc)](){const _0x9c5758=a133_0x32a811,_0x43b6ce={};_0x43b6ce[_0x9c5758(0x110)]=_0x9c5758(0xef);const _0x477bfc=_0x43b6ce;try{const _0x398941=fs['readFileSync'](this[_0x9c5758(0xf0)],_0x477bfc['kaChb']);return JSON[_0x9c5758(0xe7)](_0x398941);}catch(_0x1e1c0c){return logger[_0x9c5758(0xdc)]('['+TAG+_0x9c5758(0xdf)+_0x1e1c0c['message']+'\x20'+_0x1e1c0c[_0x9c5758(0xf8)]),null;}}async[a133_0x32a811(0x117)](_0x4daae6){const _0x23de4f=a133_0x32a811,_0x588b99={..._0x4daae6,'uniqueFailedTests':Array[_0x23de4f(0x111)](_0x4daae6['uniqueFailedTests'])?_0x4daae6[_0x23de4f(0x10b)]:Array[_0x23de4f(0xf6)](_0x4daae6[_0x23de4f(0x10b)]||[])};try{fs[_0x23de4f(0xe6)](this[_0x23de4f(0xf0)],JSON[_0x23de4f(0xed)](_0x588b99,null,0x2));}catch(_0x201e4b){logger[_0x23de4f(0xdc)]('['+TAG+_0x23de4f(0xe8)+_0x201e4b[_0x23de4f(0xe9)]+'\x20'+_0x201e4b[_0x23de4f(0xf8)]);throw _0x201e4b;}}async[a133_0x32a811(0xfa)](_0x71a948,_0x492806){const _0x3cf4b8=a133_0x32a811,_0x1981b1={};_0x1981b1[_0x3cf4b8(0xec)]=function(_0x280073,_0x3fda05){return _0x280073!==_0x3fda05;},_0x1981b1['wzqXA']=_0x3cf4b8(0xea),_0x1981b1['GZFIg']=function(_0xe2df50,_0xa2ae){return _0xe2df50===_0xa2ae;},_0x1981b1[_0x3cf4b8(0xe1)]=_0x3cf4b8(0xe5);const _0x299f42=_0x1981b1,_0x4a1b99=await this['acquireLock']();if(!_0x4a1b99)return logger[_0x3cf4b8(0x104)]('['+TAG+_0x3cf4b8(0x100)),{'newState':this[_0x3cf4b8(0xfc)]()||this['defaultState'],'isNewFailure':![]};try{let _0x532022=this[_0x3cf4b8(0xfc)]();!_0x532022&&(_0x532022=JSON[_0x3cf4b8(0xe7)](JSON[_0x3cf4b8(0xed)](this[_0x3cf4b8(0x106)])));if(!_0x532022['uniqueFailedTests']||_0x299f42['csRLZ'](typeof _0x532022[_0x3cf4b8(0x10b)][Symbol['iterator']],_0x299f42['wzqXA']))_0x532022[_0x3cf4b8(0x10b)]=new Set();else Array['isArray'](_0x532022[_0x3cf4b8(0x10b)])&&(_0x532022[_0x3cf4b8(0x10b)]=new Set(_0x532022[_0x3cf4b8(0x10b)]));_0x532022[_0x3cf4b8(0xfe)]=_0x492806;let _0x1d4b7a=![];_0x299f42[_0x3cf4b8(0xff)](_0x71a948['status'],_0x299f42[_0x3cf4b8(0xe1)])&&(_0x532022[_0x3cf4b8(0x101)]+=0x1,!_0x532022[_0x3cf4b8(0x10b)]['has'](_0x71a948[_0x3cf4b8(0x113)])&&(_0x532022[_0x3cf4b8(0x10b)]['add'](_0x71a948[_0x3cf4b8(0x113)]),_0x1d4b7a=!![]));await this[_0x3cf4b8(0x117)](_0x532022);const _0x107a11={};return _0x107a11[_0x3cf4b8(0x10a)]=_0x532022,_0x107a11[_0x3cf4b8(0xe0)]=_0x1d4b7a,_0x107a11;}finally{await this['releaseLock'](_0x4a1b99);}}async[a133_0x32a811(0x118)](_0x458d22){const _0x50ff7a=a133_0x32a811,_0x3efe92=await this[_0x50ff7a(0x114)]();if(!_0x3efe92)return logger[_0x50ff7a(0x104)]('['+TAG+_0x50ff7a(0xf9)),this['readState']()||this[_0x50ff7a(0x106)];try{let _0x5c76e9=this['readState']();return!_0x5c76e9&&(_0x5c76e9=JSON['parse'](JSON[_0x50ff7a(0xed)](this[_0x50ff7a(0x106)]))),_0x5c76e9[_0x50ff7a(0x112)]=_0x458d22,await this['writeState'](_0x5c76e9),_0x5c76e9;}finally{await this[_0x50ff7a(0x10e)](_0x3efe92);}}}function a133_0xb6ef(){const _0x3e2429=['code',']\x20Error\x20releasing\x20lock:\x20',']\x20Error\x20reading\x20state\x20file:\x20','isNewFailure','zJRpg','38178hKhwJG','failFastConfig','282216ISOVgD','failed','writeFileSync','parse',']\x20Error\x20writing\x20state\x20file:\x20','message','function','lockFilePath','csRLZ','stringify','865554dRyNnR','utf8','stateFilePath','344334IFuBXw','IIeDa','4|1|3|2|0','EEXIST','split','from','VOUcU','stack',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','recordTestResult','1773751RJjpHk','readState','UGcVa','totalTests','GZFIg',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','failedTests','winstonLogger','closeSync','warn','openSync','defaultState','../logger','776MZJCfD',']\x20Error\x20creating\x20state\x20file:\x20','newState','uniqueFailedTests','341682bpeOov','existsSync','releaseLock','460068wCOYAt','kaChb','isArray','lastAPIFailedCount','fullName','acquireLock','4SoXOhv','5TJfEVU','writeState','updateAPIFailedCount','300rQVjLn','error'];a133_0xb6ef=function(){return _0x3e2429;};return a133_0xb6ef();}function a133_0x44d0(_0x657250,_0x3ad717){const _0xb6ef5a=a133_0xb6ef();return a133_0x44d0=function(_0x44d09b,_0x3235b3){_0x44d09b=_0x44d09b-0xdc;let _0x1446bb=_0xb6ef5a[_0x44d09b];return _0x1446bb;},a133_0x44d0(_0x657250,_0x3ad717);}module['exports']=FileHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a134_0x24c997=a134_0xde23;(function(_0x470526,_0x5ebd84){const _0x56e717=a134_0xde23,_0x138a9b=_0x470526();while(!![]){try{const _0x15a563=-parseInt(_0x56e717(0x120))/0x1+parseInt(_0x56e717(0xfc))/0x2*(-parseInt(_0x56e717(0xec))/0x3)+-parseInt(_0x56e717(0xef))/0x4*(parseInt(_0x56e717(0x104))/0x5)+parseInt(_0x56e717(0x118))/0x6*(-parseInt(_0x56e717(0x115))/0x7)+parseInt(_0x56e717(0xf9))/0x8*(parseInt(_0x56e717(0x11c))/0x9)+parseInt(_0x56e717(0xf8))/0xa+parseInt(_0x56e717(0xf1))/0xb;if(_0x15a563===_0x5ebd84)break;else _0x138a9b['push'](_0x138a9b['shift']());}catch(_0x4e7e6f){_0x138a9b['push'](_0x138a9b['shift']());}}}(a134_0x7fc1,0x5a295));const os=require('os'),path=require('path'),fs=require('fs'),logger=require(a134_0x24c997(0x128))['winstonLogger'],RETRY_TESTS_ON_FAILURE=a134_0x24c997(0xf0),ABORT_BUILD_ON_FAILURE=a134_0x24c997(0xf4),RUN_PREVIOUSLY_FAILED_FIRST=a134_0x24c997(0x112),RERUN_PREVIOUSLY_FAILED='rerunPreviouslyFailed',SKIP_FLAKY_AND_FAILED=a134_0x24c997(0x10a),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([a134_0x24c997(0x10e)]);class TestOrdering{constructor(){const _0xc7d4ae=a134_0x24c997;this[_0xc7d4ae(0xf3)]=![],this[_0xc7d4ae(0x10c)]=null;}[a134_0x24c997(0x10f)](_0x346eb4){const _0x3af344=a134_0x24c997;this[_0x3af344(0xf3)]=!![],this['name']=_0x346eb4;}[a134_0x24c997(0x109)](){const _0x53ba80=a134_0x24c997;this[_0x53ba80(0xf3)]=![],this[_0x53ba80(0x10c)]=null;}[a134_0x24c997(0xfa)](){const _0x198a50=a134_0x24c997;return this[_0x198a50(0xf3)];}[a134_0x24c997(0xf2)](){const _0x44464a=a134_0x24c997;return this[_0x44464a(0x10c)];}}function a134_0x7fc1(){const _0x10a8fa=['appendFileSync','rerunPreviouslyFailed','runPreviouslyFailedFirst','writeFailureToFile','env','2178064JSIjBz','getRunPreviouslyFailedFirst','getRetryCount','12WVADpV','testOrdering','getRerunPreviouslyFailed','rerun_previously_failed','9GOumIJ','join','abort_build_on_failure','getOrchestrationData','501654vdgsmc','testOrchestrationOptions','existsSync','skipFlakyAndFailed','_instance','getInstance','getFailureThreshold','tmpdir','../logger','isRetryEnabled','831YPQgnJ','retry_tests_on_failure','toLowerCase','4fCcKiV','retryTestsOnFailure','9209772jMWyfb','getName','enabled','abortBuildOnFailure','skip_failing_and_flaky','qvdFs','getBuildStartData','6921310sBddYG','817456CquvVA','getEnabled','_setSkipFlakyAndFailed','118njcvLS','_setTestOrdering','BROWSERSTACK_TESTHUB_UUID','getSkipFlakyAndFailed','abort_build_','isAbortBuildOnFailureEnabled','has','config','609815IyLbWK','_setRerunPreviouslyFailed','_setRunPreviouslyFailedFirst','testOrderingEnabled','run_previously_failed_first','disable','skipFlakyandFailed','VpyTC','name','failed_tests_','jest','enable'];a134_0x7fc1=function(){return _0x10a8fa;};return a134_0x7fc1();}function a134_0xde23(_0x704e62,_0x43f6a9){const _0x7fc191=a134_0x7fc1();return a134_0xde23=function(_0xde23a9,_0xe81ca6){_0xde23a9=_0xde23a9-0xeb;let _0x6a28b3=_0x7fc191[_0xde23a9];return _0x6a28b3;},a134_0xde23(_0x704e62,_0x43f6a9);}class OrchestrationUtils{static ['_instance']=null;constructor(_0x1266ec){const _0x452430=a134_0x24c997,_0xedf47e={};_0xedf47e[_0x452430(0x10b)]=function(_0x2bf1a3,_0xe1daac){return _0x2bf1a3||_0xe1daac;};const _0x296914=_0xedf47e;this[_0x452430(0x112)]=![],this[_0x452430(0x111)]=![],this['skipFlakyAndFailed']=![],this[_0x452430(0x119)]=new TestOrdering(),this[_0x452430(0x103)]=_0x296914['VpyTC'](_0x1266ec,{});const _0x4a777b=_0x1266ec&&_0x1266ec[_0x452430(0x121)]||{};this[_0x452430(0x106)](_0x4a777b[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x452430(0x105)](_0x4a777b[RERUN_PREVIOUSLY_FAILED]||![]),this['_setSkipFlakyAndFailed'](_0x4a777b[SKIP_FLAKY_AND_FAILED]||![]);}static[a134_0x24c997(0x125)](_0x840cad){const _0x4976a1=a134_0x24c997;return!OrchestrationUtils['_instance']&&_0x840cad&&(OrchestrationUtils[_0x4976a1(0x124)]=new OrchestrationUtils(_0x840cad)),OrchestrationUtils[_0x4976a1(0x124)];}[a134_0x24c997(0xeb)](){const _0x5846cb=a134_0x24c997,_0x16b11a=(this[_0x5846cb(0x103)]['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x16b11a[_0x5846cb(0xf3)];}[a134_0x24c997(0x117)](){const _0x1938c5=a134_0x24c997,_0x356a5d=(this[_0x1938c5(0x103)]['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x555c52=0x0;return this['isRetryEnabled'](this[_0x1938c5(0x103)])&&(_0x555c52=_0x356a5d['maxRetries']||0x1),_0x555c52;}[a134_0x24c997(0x11f)](){const _0x121461=a134_0x24c997,_0x4de2a3=this[_0x121461(0x103)][_0x121461(0x121)]||{},_0x494d7e={};for(const _0x331457 in _0x4de2a3){ALLOWED_ORCHESTRATION_KEYS[_0x121461(0x102)](_0x331457)&&(_0x494d7e[_0x331457]=_0x4de2a3[_0x331457]);}return _0x494d7e;}['checkAbortBuildFileExists'](){const _0x3f89f3=a134_0x24c997,_0x458bb0=process[_0x3f89f3(0x114)][_0x3f89f3(0xfe)],_0x45dc82=path[_0x3f89f3(0x11d)](os['tmpdir'](),_0x3f89f3(0x100)+_0x458bb0);return fs[_0x3f89f3(0x122)](_0x45dc82);}[a134_0x24c997(0x113)](_0x16ab5e){const _0x4b2985=a134_0x24c997,_0xac8665=process[_0x4b2985(0x114)][_0x4b2985(0xfe)],_0x8b4065=path['join'](os[_0x4b2985(0x127)](),_0x4b2985(0x10d)+_0xac8665+'.txt');fs[_0x4b2985(0x110)](_0x8b4065,_0x16ab5e+'\x0a');}['isAbortBuildOnFailureSupported'](_0x3e923f){const _0x5a9790=a134_0x24c997,_0xbcf6f0={};_0xbcf6f0[_0x5a9790(0xf6)]=function(_0x587d1b,_0x62a517){return _0x587d1b||_0x62a517;};const _0x4b263e=_0xbcf6f0;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x5a9790(0x102)](_0x4b263e[_0x5a9790(0xf6)](_0x3e923f,'')[_0x5a9790(0xee)]());}[a134_0x24c997(0x101)](){const _0x2b6fbe=a134_0x24c997,_0x165f7d=(this[_0x2b6fbe(0x103)][_0x2b6fbe(0x121)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x165f7d[_0x2b6fbe(0xf3)];}[a134_0x24c997(0x126)](){const _0x62c31a=a134_0x24c997,_0xd32455=(this[_0x62c31a(0x103)][_0x62c31a(0x121)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0xd32455['maxFailures']||0x5;;}[a134_0x24c997(0x116)](){return this['runPreviouslyFailedFirst'];}[a134_0x24c997(0x106)](_0x2e311e){const _0x5e9777=a134_0x24c997;this['runPreviouslyFailedFirst']=!!_0x2e311e,this[_0x5e9777(0xfd)]();}['getRerunPreviouslyFailed'](){const _0x2100e1=a134_0x24c997;return this[_0x2100e1(0x111)];}['_setRerunPreviouslyFailed'](_0x316663){const _0x3be591=a134_0x24c997;this[_0x3be591(0x111)]=!!_0x316663,this[_0x3be591(0xfd)]();}[a134_0x24c997(0xff)](){const _0x2c7142=a134_0x24c997;return this[_0x2c7142(0x123)];}[a134_0x24c997(0xfb)](_0x4cafc9){const _0x1478cb=a134_0x24c997;this[_0x1478cb(0x123)]=!!_0x4cafc9,this[_0x1478cb(0xfd)]();}[a134_0x24c997(0xfd)](){const _0x2fcd4d=a134_0x24c997;if(this[_0x2fcd4d(0x112)])this[_0x2fcd4d(0x111)]=![],this[_0x2fcd4d(0x123)]=![],this[_0x2fcd4d(0x119)][_0x2fcd4d(0x10f)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x2fcd4d(0x111)])this[_0x2fcd4d(0x112)]=![],this[_0x2fcd4d(0x123)]=![],this[_0x2fcd4d(0x119)]['enable'](RERUN_PREVIOUSLY_FAILED);else this[_0x2fcd4d(0x123)]?(this['runPreviouslyFailedFirst']=![],this[_0x2fcd4d(0x111)]=![],this[_0x2fcd4d(0x119)]['enable'](SKIP_FLAKY_AND_FAILED)):this['testOrdering']['disable']();}}[a134_0x24c997(0x107)](){const _0x41e4d5=a134_0x24c997;return this[_0x41e4d5(0x119)]['getEnabled']();}['getTestOrderingName'](){const _0x333075=a134_0x24c997;if(this[_0x333075(0x119)][_0x333075(0xfa)]())return this[_0x333075(0x119)][_0x333075(0xf2)]();return null;}[a134_0x24c997(0xf7)](){const _0x1e5b13=a134_0x24c997,_0x475627={};return _0x475627[_0x1e5b13(0x11b)]={'enabled':this[_0x1e5b13(0x11a)]()},_0x475627[_0x1e5b13(0x108)]={'enabled':this[_0x1e5b13(0x116)]()},_0x475627[_0x1e5b13(0xf5)]={'enabled':this[_0x1e5b13(0xff)]()},this['isRetryEnabled']()&&(_0x475627[_0x1e5b13(0xed)]={'enabled':!![],'max_retries':this[_0x1e5b13(0x117)]()}),this['isAbortBuildOnFailureEnabled']()&&(_0x475627[_0x1e5b13(0x11e)]={'enabled':!![],'max_failures':this['getFailureThreshold']()}),_0x475627;}}module['exports']=OrchestrationUtils;
|