browserstack-node-sdk 1.49.9 → 1.49.10
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_0x3a6561=a129_0x58e2;function a129_0x58e2(_0x3c413c,_0x4c60fa){const _0x106eca=a129_0x106e();return a129_0x58e2=function(_0x58e278,_0x549667){_0x58e278=_0x58e278-0x1cb;let _0x306aee=_0x106eca[_0x58e278];return _0x306aee;},a129_0x58e2(_0x3c413c,_0x4c60fa);}(function(_0x1b99b9,_0x39ada6){const _0x188d3a=a129_0x58e2,_0x7f5e40=_0x1b99b9();while(!![]){try{const _0xd9bee6=-parseInt(_0x188d3a(0x1d8))/0x1*(-parseInt(_0x188d3a(0x1cd))/0x2)+-parseInt(_0x188d3a(0x1d0))/0x3*(parseInt(_0x188d3a(0x263))/0x4)+parseInt(_0x188d3a(0x21c))/0x5+parseInt(_0x188d3a(0x227))/0x6*(-parseInt(_0x188d3a(0x20a))/0x7)+parseInt(_0x188d3a(0x268))/0x8*(-parseInt(_0x188d3a(0x254))/0x9)+-parseInt(_0x188d3a(0x274))/0xa+parseInt(_0x188d3a(0x225))/0xb;if(_0xd9bee6===_0x39ada6)break;else _0x7f5e40['push'](_0x7f5e40['shift']());}catch(_0x4ac12a){_0x7f5e40['push'](_0x7f5e40['shift']());}}}(a129_0x106e,0x1ab4a));const bsSetupHelper=require(a129_0x3a6561(0x279)),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a129_0x3a6561(0x212)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a129_0x3a6561(0x235)),RequestQueueHandler=require(a129_0x3a6561(0x1d5)),logger=require(a129_0x3a6561(0x282))['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require('../../helpers/testhub/utils'),util=require(a129_0x3a6561(0x1d3)),constants=require(a129_0x3a6561(0x266));class SessionHandler{static [a129_0x3a6561(0x1fa)]=RequestQueueHandler[a129_0x3a6561(0x27d)]();static async[a129_0x3a6561(0x209)](_0x4743d1,_0x3346bb){const _0x2e7f33=a129_0x3a6561,_0x323b80={'ZQfnR':function(_0xf7879b,_0x5a3793){return _0xf7879b||_0x5a3793;},'vBZAU':function(_0x373bb3,_0x972259){return _0x373bb3===_0x972259;},'jDQxw':function(_0x1b1e14,_0x4f99af){return _0x1b1e14(_0x4f99af);},'nRZiG':_0x2e7f33(0x280),'omfrx':'false','IURhb':_0x2e7f33(0x22b),'pcBzZ':function(_0x380b09,_0x4b73c3){return _0x380b09(_0x4b73c3);},'uYoss':function(_0x12e331,_0x18c9b9){return _0x12e331(_0x18c9b9);},'EiasU':function(_0x44d447,_0x44296a,_0x5daf3f,_0x482be0,_0x3e0f01){return _0x44d447(_0x44296a,_0x5daf3f,_0x482be0,_0x3e0f01);},'XFMtf':_0x2e7f33(0x220),'gekAo':_0x2e7f33(0x260),'vCgYy':function(_0x1e0494,_0x31b55a){return _0x1e0494(_0x31b55a);},'UyONZ':_0x2e7f33(0x21d),'fnquT':function(_0x14b372){return _0x14b372();},'eqkRV':_0x2e7f33(0x204),'GDhah':_0x2e7f33(0x276),'qONfD':_0x2e7f33(0x26b),'oxCKY':_0x2e7f33(0x277),'lKJkC':'ERROR_SDK_DEPRECATED'};logger['info']('Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20'+util[_0x2e7f33(0x1ed)](_0x4743d1));const _0x34e5ef=bsSetupHelper[_0x2e7f33(0x217)](_0x4743d1),_0x8ee7ab=bsSetupHelper[_0x2e7f33(0x22e)](_0x4743d1),_0x1239ec=_0x323b80[_0x2e7f33(0x1f6)](_0x34e5ef,'')+':'+_0x323b80[_0x2e7f33(0x1f6)](_0x8ee7ab,'');if(_0x323b80[_0x2e7f33(0x22c)](_0x1239ec,':'))return _0x323b80[_0x2e7f33(0x201)](debug,_0x323b80['nRZiG']),process[_0x2e7f33(0x23a)][_0x2e7f33(0x1df)]=_0x323b80[_0x2e7f33(0x203)],[null,null];let _0x4e48d5=![],_0x561622=![];if(_0x4743d1['browserstackAutomation']&&_0x4743d1['app'])_0x561622=!![];else _0x4743d1['browserstackAutomation']&&(_0x4e48d5=!![]);try{const _0x3e58b9={'format':_0x323b80[_0x2e7f33(0x26d)],'project_name':_0x4743d1[_0x2e7f33(0x240)]||'','name':_0x4743d1[_0x2e7f33(0x252)]||path[_0x2e7f33(0x1cf)](path['resolve'](process[_0x2e7f33(0x241)]())),'build_identifier':_0x4743d1[_0x2e7f33(0x202)],'description':_0x4743d1[_0x2e7f33(0x1d2)]||'','start_time':new Date()[_0x2e7f33(0x1d1)](),'tags':_0x323b80[_0x2e7f33(0x24e)](getCustomTags,_0x4743d1),'host_info':bsSetupHelper[_0x2e7f33(0x1f1)](),'ci_info':bsSetupHelper[_0x2e7f33(0x27e)](),'build_run_identifier':process[_0x2e7f33(0x23a)][_0x2e7f33(0x232)],'failed_tests_rerun':process[_0x2e7f33(0x23a)][_0x2e7f33(0x1f0)]||![],'version_control':await bsSetupHelper[_0x2e7f33(0x222)](),'observability_version':{'frameworkName':_0x3346bb['frameworkName'],'frameworkVersion':_0x3346bb[_0x2e7f33(0x25e)],'sdkVersion':bsSetupHelper['getAgentVersion']()},'product_map':_0x323b80['pcBzZ'](getProductMap,_0x4743d1),'test_orchestration':_0x323b80[_0x2e7f33(0x24e)](getTestOrchestrationBuildStartData,_0x4743d1)},_0x44cb58={};_0x44cb58[_0x2e7f33(0x273)]=_0x34e5ef,_0x44cb58[_0x2e7f33(0x215)]=_0x8ee7ab;const _0x52b2a9={'auth':_0x44cb58,'headers':_0x323b80[_0x2e7f33(0x25f)](getDefaultHeaders,![])},_0x458e78=await _0x323b80[_0x2e7f33(0x26c)](nodeRequest,_0x323b80[_0x2e7f33(0x1e0)],_0x323b80[_0x2e7f33(0x1e6)],_0x3e58b9,_0x52b2a9);_0x323b80[_0x2e7f33(0x26e)](debug,_0x323b80['UyONZ']);const _0x45c2ea=_0x458e78[_0x2e7f33(0x1e8)];_0x45c2ea[_0x2e7f33(0x256)]&&(process[_0x2e7f33(0x23a)]['BROWSERSTACK_TESTHUB_UUID']=_0x45c2ea[_0x2e7f33(0x256)]);if(_0x323b80[_0x2e7f33(0x272)](isTestObservabilitySession)){process[_0x2e7f33(0x23a)][_0x2e7f33(0x1df)]=_0x323b80['eqkRV'];if(_0x45c2ea['jwt']){process[_0x2e7f33(0x23a)][_0x2e7f33(0x261)]=_0x45c2ea[_0x2e7f33(0x259)];const _0x53733e={};_0x53733e[_0x2e7f33(0x273)]=_0x34e5ef,_0x53733e[_0x2e7f33(0x215)]=_0x8ee7ab,process[_0x2e7f33(0x23a)][_0x2e7f33(0x1fb)]=JSON['stringify'](_0x53733e);}_0x45c2ea['build_hashed_id']&&(process[_0x2e7f33(0x23a)][_0x2e7f33(0x27c)]=_0x45c2ea[_0x2e7f33(0x256)]),_0x45c2ea[_0x2e7f33(0x22f)]&&(process[_0x2e7f33(0x23a)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x45c2ea['allow_screenshots'][_0x2e7f33(0x24f)]());}return[_0x458e78[_0x2e7f33(0x1e8)][_0x2e7f33(0x259)],_0x458e78[_0x2e7f33(0x1e8)][_0x2e7f33(0x256)],_0x458e78[_0x2e7f33(0x1e8)]['allow_screenshots']];}catch(_0x441550){process['env'][_0x2e7f33(0x216)]=_0x323b80[_0x2e7f33(0x271)],process[_0x2e7f33(0x23a)][_0x2e7f33(0x1df)]=_0x323b80[_0x2e7f33(0x203)],process[_0x2e7f33(0x23a)][_0x2e7f33(0x261)]=_0x323b80[_0x2e7f33(0x271)],process[_0x2e7f33(0x23a)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x323b80['GDhah'],process[_0x2e7f33(0x23a)][_0x2e7f33(0x230)]=_0x323b80['GDhah'];_0x441550[_0x2e7f33(0x27b)]?_0x323b80['vCgYy'](debug,_0x2e7f33(0x1e9)+_0x441550[_0x2e7f33(0x27b)][_0x2e7f33(0x214)]+'\x20'+_0x441550[_0x2e7f33(0x27b)][_0x2e7f33(0x21b)]+'\x20'+JSON[_0x2e7f33(0x257)](_0x441550[_0x2e7f33(0x27b)][_0x2e7f33(0x1e8)])):_0x323b80['uYoss'](debug,_0x2e7f33(0x1e9)+(_0x441550[_0x2e7f33(0x1ff)]||_0x441550));if(_0x441550&&_0x441550[_0x2e7f33(0x1ff)]){const _0x4d07d0=_0x441550['message'];switch(_0x441550[_0x2e7f33(0x23e)]){case _0x323b80[_0x2e7f33(0x1f3)]:logger[_0x2e7f33(0x1f4)](_0x4d07d0);break;case _0x323b80[_0x2e7f33(0x233)]:logger[_0x2e7f33(0x264)](_0x4d07d0);break;case _0x323b80[_0x2e7f33(0x258)]:logger[_0x2e7f33(0x1f4)](_0x4d07d0);break;default:logger[_0x2e7f33(0x1f4)](_0x4d07d0);}}else console['info']('Data\x20upload\x20to\x20BrowserStack\x20'+constants[_0x2e7f33(0x1d7)]+_0x2e7f33(0x1de)+_0x441550);return[null,null,null];}}static async[a129_0x3a6561(0x228)](){const _0x970bc8=a129_0x3a6561,_0x159020={'hYCKd':_0x970bc8(0x204),'WBauV':_0x970bc8(0x221),'VyXPs':function(_0x12a4b3,_0x229a97){return _0x12a4b3(_0x229a97);}},_0x9af5aa=process[_0x970bc8(0x23a)][_0x970bc8(0x1df)];if([_0x159020['hYCKd'],_0x159020[_0x970bc8(0x244)]][_0x970bc8(0x23d)](_0x9af5aa))return;while([_0x159020[_0x970bc8(0x23f)],_0x159020[_0x970bc8(0x244)]][_0x970bc8(0x23d)](_0x9af5aa)){await _0x159020[_0x970bc8(0x22a)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a129_0x3a6561(0x1fd)](_0x224e0b){const _0x5b30a4=a129_0x3a6561,_0x17a23c={};_0x17a23c[_0x5b30a4(0x20e)]='Test_Start_Upload',_0x17a23c[_0x5b30a4(0x1e1)]='Test_End_Upload',_0x17a23c[_0x5b30a4(0x250)]=_0x5b30a4(0x243),_0x17a23c['HdcUe']='Log_Upload',_0x17a23c['wbmmr']=_0x5b30a4(0x1f5),_0x17a23c[_0x5b30a4(0x22d)]=_0x5b30a4(0x21a),_0x17a23c[_0x5b30a4(0x25b)]='CBT_Upload';const _0x25542a=_0x17a23c,_0x262892={};return _0x262892['TestRunStarted']=_0x25542a[_0x5b30a4(0x20e)],_0x262892[_0x5b30a4(0x265)]=_0x25542a['TGIIa'],_0x262892[_0x5b30a4(0x234)]=_0x25542a[_0x5b30a4(0x250)],_0x262892['LogCreated']=_0x25542a['HdcUe'],_0x262892[_0x5b30a4(0x229)]=_0x25542a[_0x5b30a4(0x262)],_0x262892[_0x5b30a4(0x1ec)]=_0x25542a['xsaKR'],_0x262892[_0x5b30a4(0x1d9)]=_0x25542a[_0x5b30a4(0x25b)],_0x262892[_0x224e0b[_0x5b30a4(0x208)]];}static async[a129_0x3a6561(0x27f)](_0x284ba1,_0x2428cd=0x0,_0x4d79bf=null){const _0x362eb4=a129_0x3a6561,_0x48e673={'SEaby':function(_0x5abaac,_0xa375b6){return _0x5abaac===_0xa375b6;},'NCxzA':_0x362eb4(0x1f7),'oCmCn':function(_0x340f46,_0x220cf0){return _0x340f46!==_0x220cf0;},'glVlp':_0x362eb4(0x242),'GPnWb':_0x362eb4(0x204),'FbLLn':function(_0x9fa091,_0x29d3df){return _0x9fa091===_0x29d3df;},'ZLxTr':function(_0x54df25,_0x15435b,_0x8211f1,_0x56984f,_0x1b22e9){return _0x54df25(_0x15435b,_0x8211f1,_0x56984f,_0x1b22e9);},'LBqbd':_0x362eb4(0x220),'RDaew':function(_0x2f4969,_0x39af08,_0x5ab8f2,_0x5962c6,_0x45c6ea){return _0x2f4969(_0x39af08,_0x5ab8f2,_0x5962c6,_0x45c6ea);},'YDaYA':function(_0x4245ae,_0x123e29){return _0x4245ae(_0x123e29);},'lYqDb':function(_0x2c497b,_0x2e925c){return _0x2c497b!==_0x2e925c;},'VoJQR':_0x362eb4(0x24a),'PXRju':function(_0x18c269,_0xdf97df){return _0x18c269-_0xdf97df;},'EIDgQ':'api/v1/event','TEWgl':_0x362eb4(0x251),'lEFDp':function(_0x4613b1,_0x5ba58d){return _0x4613b1(_0x5ba58d);},'xVkhq':function(_0x31479d,_0x2beace){return _0x31479d!==_0x2beace;},'FaapG':function(_0x52b995,_0x3a3a6e){return _0x52b995!==_0x3a3a6e;},'FFgbs':function(_0x5ccfb3,_0x29414a){return _0x5ccfb3===_0x29414a;},'CRBpZ':'error'};_0x48e673['SEaby'](_0x4d79bf,_0x48e673['NCxzA'])&&logger['debug'](_0x362eb4(0x23c)+_0x284ba1[_0x362eb4(0x1f9)][0x0][_0x362eb4(0x1ef)]);const _0x30a017=await this[_0x362eb4(0x1fd)](_0x284ba1);let _0xf0daae=_0x284ba1,_0x1e9366=EVENT_ENDPOINT;_0x48e673[_0x362eb4(0x24c)](_0x4d79bf,_0x48e673[_0x362eb4(0x1dd)])&&this[_0x362eb4(0x1fa)][_0x362eb4(0x21e)]();const {shouldProceed:_0x1b0254,proceedWithData:_0x16b34d,proceedWithUrl:_0x17f17e}=this[_0x362eb4(0x1fa)]['add'](_0x284ba1);if(!_0x1b0254)return;else _0x16b34d&&(_0xf0daae=_0x16b34d,_0x1e9366=_0x17f17e);const _0x3efc99={};_0x3efc99[_0x362eb4(0x26a)]=_0x362eb4(0x1d4)+process[_0x362eb4(0x23a)][_0x362eb4(0x269)],_0x3efc99[_0x362eb4(0x231)]=_0x48e673['glVlp'],_0x3efc99['X-BSTACK-TESTOPS']=_0x48e673[_0x362eb4(0x223)];const _0x3dd689={};_0x3dd689[_0x362eb4(0x219)]=_0x3efc99;const _0x172321=_0x3dd689;let _0xa41b0b;try{_0x48e673['FbLLn'](_0x4d79bf,_0x48e673['NCxzA'])?(logger[_0x362eb4(0x206)](_0x362eb4(0x1cb)+_0x284ba1?.['logs'][0x0]?.[_0x362eb4(0x1ef)]),_0xa41b0b=await _0x48e673[_0x362eb4(0x270)](asyncAwaitNodeReq,_0x48e673['LBqbd'],_0x1e9366,_0xf0daae,_0x172321),logger[_0x362eb4(0x206)](_0x362eb4(0x246)+_0x284ba1?.[_0x362eb4(0x1f9)][0x0]?.[_0x362eb4(0x1ef)])):_0xa41b0b=await _0x48e673[_0x362eb4(0x218)](nodeRequest,_0x48e673[_0x362eb4(0x1fe)],_0x1e9366,_0xf0daae,_0x172321);if(_0xa41b0b[_0x362eb4(0x1e8)][_0x362eb4(0x1f4)]){const _0x1cd620={};_0x1cd620[_0x362eb4(0x1ff)]=_0xa41b0b[_0x362eb4(0x1e8)][_0x362eb4(0x1f4)];throw _0x1cd620;}else{_0x48e673[_0x362eb4(0x278)](debug,(_0x48e673['lYqDb'](_0x1e9366,this[_0x362eb4(0x1fa)][_0x362eb4(0x224)])?_0x30a017:_0x48e673[_0x362eb4(0x20c)])+'['+_0x2428cd+_0x362eb4(0x1e2)),this[_0x362eb4(0x1fa)]['pendingUploads']=Math[_0x362eb4(0x1e5)](0x0,_0x48e673[_0x362eb4(0x25d)](this[_0x362eb4(0x1fa)][_0x362eb4(0x1db)],_0x48e673[_0x362eb4(0x255)](_0x1e9366,_0x48e673[_0x362eb4(0x248)])?0x1:_0xf0daae[_0x362eb4(0x213)]));const _0x15e27f={};return _0x15e27f[_0x362eb4(0x214)]=_0x48e673[_0x362eb4(0x1cc)],_0x15e27f['message']='',_0x15e27f;}}catch(_0x13a8c5){_0x13a8c5[_0x362eb4(0x27b)]?_0x48e673[_0x362eb4(0x238)](debug,_0x362eb4(0x20b)+(_0x48e673[_0x362eb4(0x245)](_0x1e9366,this[_0x362eb4(0x1fa)][_0x362eb4(0x224)])?_0x30a017:_0x48e673[_0x362eb4(0x20c)])+_0x362eb4(0x205)+constants[_0x362eb4(0x1d7)]+_0x362eb4(0x275)+_0x13a8c5['response'][_0x362eb4(0x214)]+'\x20'+_0x13a8c5[_0x362eb4(0x27b)][_0x362eb4(0x21b)]+'\x20'+util[_0x362eb4(0x21f)](_0x13a8c5[_0x362eb4(0x27b)][_0x362eb4(0x1e8)])):_0x48e673[_0x362eb4(0x278)](debug,'EXCEPTION\x20IN\x20'+(_0x48e673[_0x362eb4(0x1f2)](_0x1e9366,this['requestQueueHandler']['eventUrl'])?_0x30a017:_0x48e673[_0x362eb4(0x20c)])+_0x362eb4(0x205)+constants['TEST_REPORTING_ANALYTICS']+_0x362eb4(0x275)+util[_0x362eb4(0x21f)](_0x13a8c5));this['requestQueueHandler'][_0x362eb4(0x1db)]=Math['max'](0x0,_0x48e673[_0x362eb4(0x25d)](this[_0x362eb4(0x1fa)][_0x362eb4(0x1db)],_0x48e673['FFgbs'](_0x1e9366,_0x48e673[_0x362eb4(0x248)])?0x1:_0xf0daae['length']));const _0x59d25a={};return _0x59d25a[_0x362eb4(0x214)]=_0x48e673[_0x362eb4(0x25c)],_0x59d25a[_0x362eb4(0x1ff)]=_0x13a8c5[_0x362eb4(0x1ff)]||(_0x13a8c5['response']?_0x13a8c5[_0x362eb4(0x27b)][_0x362eb4(0x214)]+':'+_0x13a8c5[_0x362eb4(0x27b)][_0x362eb4(0x21b)]:_0x13a8c5),_0x59d25a;}}static async[a129_0x3a6561(0x1e7)](_0x40b893,_0x5c13c9=0x0){const _0x508db0=a129_0x3a6561,_0x3d4131={'ywxxW':function(_0x34e614,_0x2d5b98){return _0x34e614+_0x2d5b98;},'zTrZS':function(_0x36e41b,_0x122c25){return _0x36e41b(_0x122c25);},'jbjRw':_0x508db0(0x237),'tQgZm':_0x508db0(0x26f),'OVPvU':_0x508db0(0x25a),'HfbQI':function(_0x4207e,_0x48a528,_0x25e129){return _0x4207e(_0x48a528,_0x25e129);},'lXpIl':_0x508db0(0x1e7),'baNiZ':function(_0x1e9775,_0x172faa){return _0x1e9775===_0x172faa;},'EVJmc':function(_0x329a91,_0x4d4226){return _0x329a91!==_0x4d4226;},'CHyjW':_0x508db0(0x276),'mHdIa':function(_0x35cffe,_0x1008aa){return _0x35cffe===_0x1008aa;},'HCeCM':'true','wxTpw':function(_0x10d094){return _0x10d094();},'JQKPm':function(_0x2f092d,_0x6f951){return _0x2f092d===_0x6f951;},'qIZRE':function(_0x2310c8,_0x1b37a3){return _0x2310c8-_0x1b37a3;},'CidWP':_0x508db0(0x1f4),'nvLuI':_0x508db0(0x1fc),'VCxBn':function(_0x64e95c,_0xe51821){return _0x64e95c>=_0xe51821;},'XuuRK':function(_0xa08253,_0x59791){return _0xa08253(_0x59791);},'MVSSU':function(_0x5a3acd,_0x50c9f9){return _0x5a3acd-_0x50c9f9;},'XFClA':'Retry\x20runs\x20exceeded','uQZAY':function(_0x4e77b7,_0x4f358c){return _0x4e77b7!==_0x4f358c;},'QXQJI':_0x508db0(0x221)},_0x5e5fff=this['getLogTag'](_0x40b893);_0x3d4131['zTrZS'](trace,_0x508db0(0x236)+_0x40b893[_0x508db0(0x208)]+'\x27\x20'+(bsSetupHelper[_0x508db0(0x27a)](_0x40b893,[_0x3d4131[_0x508db0(0x1ea)],_0x3d4131[_0x508db0(0x20f)]])||bsSetupHelper[_0x508db0(0x27a)](_0x40b893,[_0x3d4131['OVPvU'],_0x3d4131[_0x508db0(0x20f)]])));if(!_0x3d4131['HfbQI'](shouldProcessEventForTesthub,_0x40b893[_0x508db0(0x208)],_0x3d4131[_0x508db0(0x253)]))return;_0x3d4131[_0x508db0(0x1da)](_0x5c13c9,0x0)&&process[_0x508db0(0x23a)][_0x508db0(0x269)]&&_0x3d4131[_0x508db0(0x247)](process[_0x508db0(0x23a)][_0x508db0(0x269)],_0x3d4131[_0x508db0(0x267)])&&(this[_0x508db0(0x1fa)]['pendingUploads']+=0x1);if(_0x3d4131[_0x508db0(0x207)](process['env'][_0x508db0(0x1df)],_0x3d4131[_0x508db0(0x281)])||process['env'][_0x508db0(0x200)]||_0x3d4131[_0x508db0(0x1e4)](isPercyBuild)){if(_0x3d4131[_0x508db0(0x249)](process[_0x508db0(0x23a)][_0x508db0(0x269)],_0x3d4131[_0x508db0(0x267)])){_0x3d4131[_0x508db0(0x24b)](debug,_0x508db0(0x20b)+_0x5e5fff+_0x508db0(0x205)+constants[_0x508db0(0x1d7)]+'\x20:\x20missing\x20authentication\x20token'),this[_0x508db0(0x1fa)]['pendingUploads']=Math[_0x508db0(0x1e5)](0x0,_0x3d4131[_0x508db0(0x1eb)](this[_0x508db0(0x1fa)][_0x508db0(0x1db)],0x1));const _0x17c151={};return _0x17c151[_0x508db0(0x214)]=_0x3d4131[_0x508db0(0x211)],_0x17c151['message']=_0x3d4131[_0x508db0(0x24d)],_0x17c151;}return await this['sendEventData'](_0x40b893,_0x5c13c9);}else{if(_0x3d4131[_0x508db0(0x1ce)](_0x5c13c9,0x5)){_0x3d4131[_0x508db0(0x210)](debug,_0x508db0(0x20b)+_0x5e5fff+_0x508db0(0x205)+constants[_0x508db0(0x1d7)]+_0x508db0(0x239)+_0x5e5fff+_0x508db0(0x23b));_0x3d4131[_0x508db0(0x247)](process[_0x508db0(0x23a)][_0x508db0(0x269)],_0x3d4131['CHyjW'])&&(this[_0x508db0(0x1fa)][_0x508db0(0x1db)]=Math[_0x508db0(0x1e5)](0x0,_0x3d4131[_0x508db0(0x226)](this['requestQueueHandler'][_0x508db0(0x1db)],0x1)));const _0xb9adef={};return _0xb9adef[_0x508db0(0x214)]=_0x3d4131[_0x508db0(0x211)],_0xb9adef[_0x508db0(0x1ff)]=_0x3d4131[_0x508db0(0x1ee)],_0xb9adef;}else _0x3d4131[_0x508db0(0x1d6)](process['env'][_0x508db0(0x1df)],_0x3d4131[_0x508db0(0x1dc)])&&_0x3d4131[_0x508db0(0x1e3)](setTimeout,()=>{const _0x302b94=_0x508db0;this['uploadEventData'](_0x40b893,_0x3d4131[_0x302b94(0x1f8)](_0x5c13c9,0x1));},0x3e8);}}}function a129_0x106e(){const _0xb48ca2=['info','TestRunFinished','../../bin/utils/constants','CHyjW','8bNcRnX','BROWSERSTACK_TESTHUB_JWT','Authorization','ERROR_INVALID_CREDENTIALS','EiasU','IURhb','vCgYy','uuid','ZLxTr','GDhah','fnquT','username','1575000sITYVM','\x20:\x20','null','ERROR_ACCESS_DENIED','YDaYA','../helper','nestedKeyValue','response','BS_TESTOPS_BUILD_HASHED_ID','getInstance','getCiInfo','sendEventData','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','HCeCM','../logger','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','TEWgl','69578uctoLU','VCxBn','basename','10155cObDCp','toISOString','buildDescription','util','Bearer\x20','./requestQueueHandler','uQZAY','TEST_REPORTING_ANALYTICS','2PajClE','CBTSessionCreated','baNiZ','pendingUploads','QXQJI','NCxzA','\x20failed\x20due\x20to\x20','BS_TESTOPS_BUILD_COMPLETED','XFMtf','TGIIa',']\x20event\x20successful!','HfbQI','wxTpw','max','gekAo','uploadEventData','data','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','jbjRw','qIZRE','HookRunFinished','inspect','XFClA','test_run_uuid','BROWSERSTACK_RERUN','getHostInfo','FaapG','qONfD','error','Hook_Start_Upload','ZQfnR','sendTraceZip','ywxxW','logs','requestQueueHandler','CREDENTIALS_FOR_CRASH_REPORTING','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','getLogTag','LBqbd','message','BS_A11Y_JWT','jDQxw','buildIdentifier','omfrx','true','\x20REQUEST\x20TO\x20','debug','mHdIa','event_type','launch','14CiFuav','EXCEPTION\x20IN\x20','VoJQR','exports','ozYxi','tQgZm','XuuRK','CidWP','./utils','length','status','password','BROWSERSTACK_TESTHUB_UUID','getUserName','RDaew','headers','Hook_End_Upload','statusText','352480vjqPwc','Build\x20creation\x20successful!','start','format','POST','false','getGitMetaData','GPnWb','eventUrl','5683678SzgLWS','MVSSU','398166yeNlYu','waitForBuildStatus','HookRunStarted','VyXPs','json','vBZAU','xsaKR','getAccessKey','allow_screenshots','BS_TESTOPS_ALLOW_SCREENSHOTS','Content-Type','BROWSERSTACK_BUILD_RUN_IDENTIFIER','oxCKY','TestRunSkipped','./constants','Processing\x20event\x20-\x20\x27','test_run','lEFDp','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','env','\x20retry\x20runs\x20exceeded','Sending\x20trace\x20zip\x20for\x20test:\x20','includes','errorType','hYCKd','projectName','cwd','application/json','Test_Skipped_Upload','WBauV','xVkhq','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','EVJmc','EIDgQ','JQKPm','Batch-Queue','zTrZS','oCmCn','nvLuI','pcBzZ','toString','gjycm','success','buildName','lXpIl','791226ZTOqbl','SEaby','build_hashed_id','stringify','lKJkC','jwt','hook_run','MpqTs','CRBpZ','PXRju','frameworkVersion','uYoss','api/v1/builds','BS_TESTOPS_JWT','wbmmr','200ERYfzP'];a129_0x106e=function(){return _0xb48ca2;};return a129_0x106e();}module[a129_0x3a6561(0x20d)]=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
|
+
function a130_0x18aa(_0x4563e4,_0x454337){const _0x2532f0=a130_0x2532();return a130_0x18aa=function(_0x18aab8,_0xa65dd4){_0x18aab8=_0x18aab8-0xca;let _0x19561d=_0x2532f0[_0x18aab8];return _0x19561d;},a130_0x18aa(_0x4563e4,_0x454337);}const a130_0x22a702=a130_0x18aa;(function(_0x410100,_0x58b179){const _0xed045e=a130_0x18aa,_0x38102f=_0x410100();while(!![]){try{const _0x4e05e0=parseInt(_0xed045e(0xe3))/0x1+parseInt(_0xed045e(0x10f))/0x2+-parseInt(_0xed045e(0x174))/0x3+parseInt(_0xed045e(0x108))/0x4+parseInt(_0xed045e(0x155))/0x5*(-parseInt(_0xed045e(0x1b0))/0x6)+-parseInt(_0xed045e(0xda))/0x7+parseInt(_0xed045e(0x163))/0x8;if(_0x4e05e0===_0x58b179)break;else _0x38102f['push'](_0x38102f['shift']());}catch(_0x4bf7b8){_0x38102f['push'](_0x38102f['shift']());}}}(a130_0x2532,0xb9842));const fs=require('fs'),path=require(a130_0x22a702(0xe0)),gitLastCommit=require(a130_0x22a702(0x1ca)),getRepoInfo=require('git-repo-info'),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a130_0x22a702(0x11f)),http=require(a130_0x22a702(0xdc)),https=require('https'),child_process=require(a130_0x22a702(0x1bd)),getos=require(a130_0x22a702(0xeb)),os=require('os'),logger=require(a130_0x22a702(0x1c9))[a130_0x22a702(0x14b)],buildLogger=require(a130_0x22a702(0x1c9))[a130_0x22a702(0x1b7)],bsSetupHelper=require(a130_0x22a702(0x17f)),requestSpy=require('../../helpers/request-spy'),constants=require(a130_0x22a702(0xce)),logPatcher=require('../../bin/utils/logPatcher'),util=require(a130_0x22a702(0xdb)),{fileLogger}=require(a130_0x22a702(0x1c9)),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a130_0x22a702(0xfb)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require('../performance/constants'),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require('../../../src/bin/utils/constants');exports[a130_0x22a702(0x1e0)]=_0x24228c=>{const _0x40c9da=a130_0x22a702;fileLogger[_0x40c9da(0x172)]('['+new Date()[_0x40c9da(0xca)]()+_0x40c9da(0x15c)+constants[_0x40c9da(0xfe)]+'\x20]\x20'+_0x24228c);},exports[a130_0x22a702(0x1b8)]=_0x4cb76e=>{const _0x26c622=a130_0x22a702,_0x540f1c={};_0x540f1c['qvpBy']=function(_0x25e4e6,_0x2be7ea){return _0x25e4e6===_0x2be7ea;},_0x540f1c[_0x26c622(0x19a)]=_0x26c622(0xfd),_0x540f1c[_0x26c622(0x176)]=function(_0xbf5d88,_0x29e70c){return _0xbf5d88===_0x29e70c;},_0x540f1c[_0x26c622(0x142)]=function(_0x52ae39,_0x2ff3ab){return _0x52ae39===_0x2ff3ab;};const _0x19c9e7=_0x540f1c;fileLogger[_0x26c622(0x1b8)]('['+new Date()['toISOString']()+_0x26c622(0x15c)+constants['TEST_REPORTING_ANALYTICS']+_0x26c622(0x152)+_0x4cb76e),(_0x19c9e7[_0x26c622(0x1d1)](process[_0x26c622(0x187)][_0x26c622(0x175)],_0x19c9e7['sMOYS'])||_0x19c9e7[_0x26c622(0x176)](process[_0x26c622(0x187)][_0x26c622(0x175)],'1')||_0x19c9e7['qvpBy'](process['env'][_0x26c622(0x124)],_0x19c9e7['sMOYS'])||_0x19c9e7[_0x26c622(0x142)](process[_0x26c622(0x187)][_0x26c622(0x124)],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x26c622(0xca)]()+_0x26c622(0x15c)+constants[_0x26c622(0xfe)]+_0x26c622(0x152)+_0x4cb76e+'\x0a');};const a130_0x495a08={};a130_0x495a08[a130_0x22a702(0xcd)]=!![],a130_0x495a08[a130_0x22a702(0x1a8)]=0xea60,a130_0x495a08['maxSockets']=0x2,a130_0x495a08[a130_0x22a702(0xd5)]=0x2;const httpKeepAliveAgent=new http['Agent'](a130_0x495a08),a130_0x525a1b={};a130_0x525a1b['keepAlive']=!![],a130_0x525a1b['timeout']=0xea60,a130_0x525a1b['maxSockets']=0x2,a130_0x525a1b['maxTotalSockets']=0x2;const httpsKeepAliveAgent=new https[(a130_0x22a702(0x1be))](a130_0x525a1b),a130_0x55456b={};a130_0x55456b[a130_0x22a702(0xcd)]=!![],a130_0x55456b[a130_0x22a702(0x1a8)]=0xea60,a130_0x55456b[a130_0x22a702(0x157)]=0x2,a130_0x55456b[a130_0x22a702(0xd5)]=0x2;const httpScreenshotsKeepAliveAgent=new http['Agent'](a130_0x55456b),a130_0x4e3b6c={};a130_0x4e3b6c['keepAlive']=!![],a130_0x4e3b6c[a130_0x22a702(0x1a8)]=0xea60,a130_0x4e3b6c[a130_0x22a702(0x157)]=0x2,a130_0x4e3b6c[a130_0x22a702(0xd5)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a130_0x22a702(0x1be))](a130_0x4e3b6c);exports[a130_0x22a702(0x1b3)]=()=>{const _0x281e3b=a130_0x22a702,_0x10b0fe={};_0x10b0fe[_0x281e3b(0x1cd)]=function(_0x4567ec,_0x20c70d){return _0x4567ec!==_0x20c70d;},_0x10b0fe[_0x281e3b(0x1ce)]=_0x281e3b(0x16e);const _0x287ad5=_0x10b0fe;return process['env'][_0x281e3b(0x1a0)]&&_0x287ad5['HDota'](process[_0x281e3b(0x187)][_0x281e3b(0x1a0)],_0x287ad5[_0x281e3b(0x1ce)])?!![]:![];},exports['isTestObservabilitySession']=()=>{const _0x142960=a130_0x22a702,_0xb580a1={};_0xb580a1[_0x142960(0x123)]=function(_0x4b3d46,_0x2a80a7){return _0x4b3d46===_0x2a80a7;},_0xb580a1['kTony']=_0x142960(0xfd),_0xb580a1[_0x142960(0x1c4)]=function(_0x49999e,_0x29f693){return _0x49999e===_0x29f693;};const _0x36aec5=_0xb580a1;let _0x17cfd3=!![];return process['env'][_0x142960(0x17c)]&&(_0x17cfd3=_0x36aec5[_0x142960(0x123)](process[_0x142960(0x187)][_0x142960(0x17c)],_0x36aec5[_0x142960(0x137)])),process[_0x142960(0x187)][_0x142960(0x181)]&&(_0x17cfd3=_0x36aec5['XNVrC'](process[_0x142960(0x187)][_0x142960(0x181)],_0x36aec5[_0x142960(0x137)])),process[_0x142960(0x187)][_0x142960(0x12f)]&&(_0x17cfd3=_0x36aec5[_0x142960(0x1c4)](process[_0x142960(0x187)][_0x142960(0x12f)],_0x36aec5[_0x142960(0x137)])),_0x17cfd3;},exports[a130_0x22a702(0x177)]=_0xddb518=>{const _0x1e2305=a130_0x22a702;if(bsSetupHelper[_0x1e2305(0x1de)](_0xddb518))return undefined;try{return _0xddb518[_0x1e2305(0x197)]()[_0x1e2305(0x138)](',');}catch(_0x43f483){return undefined;}},exports[a130_0x22a702(0x114)]=()=>{const _0x4f20f1=a130_0x22a702,_0xd05f06={'yhPBC':function(_0x1e022f,_0x2d78d4){return _0x1e022f(_0x2d78d4);},'EYSfg':_0x4f20f1(0x140),'teemn':function(_0x1e503f,_0x53c819){return _0x1e503f!==_0x53c819;},'jJINO':_0x4f20f1(0x16e),'VGxpx':function(_0x55567f,_0x496f40){return _0x55567f!==_0x496f40;},'nmVDm':_0x4f20f1(0x13d)};return PerformanceTester[_0x4f20f1(0x145)](PerformanceO11yEvents[_0x4f20f1(0x1a2)],async()=>{const _0xaf8dba=_0x4f20f1;try{const _0x537971=_0xd05f06[_0xaf8dba(0x1df)](require,_0xd05f06[_0xaf8dba(0x100)]);if(_0x537971['O11yHashedID']){const _0x56b162=_0xaf8dba(0x170)+O11Y_URL+_0xaf8dba(0x1e1)+_0x537971[_0xaf8dba(0x158)]+_0xaf8dba(0x11b);buildLogger[_0xaf8dba(0xe5)](_0x56b162);return;}if(process[_0xaf8dba(0x187)][_0xaf8dba(0xd3)]&&_0xd05f06[_0xaf8dba(0x168)](process[_0xaf8dba(0x187)][_0xaf8dba(0xd3)],_0xd05f06[_0xaf8dba(0x15e)])&&_0xd05f06[_0xaf8dba(0x166)](process['env']['BS_TESTOPS_BUILD_HASHED_ID'],_0xd05f06[_0xaf8dba(0xcb)])){const _0x3ca147=_0xaf8dba(0x170)+constants[_0xaf8dba(0x1c6)]+_0xaf8dba(0x1e1)+process[_0xaf8dba(0x187)]['BS_TESTOPS_BUILD_HASHED_ID']+_0xaf8dba(0x11b);buildLogger[_0xaf8dba(0xe5)](_0x3ca147);}}catch(_0x35c436){logger[_0xaf8dba(0x16c)](util['format'](_0xaf8dba(0x194)+constants['TEST_REPORTING_ANALYTICS']+_0xaf8dba(0x1e4),new Date()[_0xaf8dba(0xca)](),_0x35c436['stack']||_0x35c436[_0xaf8dba(0xd0)]||_0x35c436));}})();},exports[a130_0x22a702(0x103)]=_0x4b744e=>{const _0x20f6c3=a130_0x22a702,_0x22f167={};_0x22f167[_0x20f6c3(0x1d4)]=_0x20f6c3(0x115),_0x22f167[_0x20f6c3(0x121)]=_0x20f6c3(0x1dd),_0x22f167[_0x20f6c3(0x117)]=_0x20f6c3(0x1c3),_0x22f167[_0x20f6c3(0x14c)]=_0x20f6c3(0xee);const _0x4b8b74=_0x22f167;if(!_0x4b744e)return null;const _0x333a44=_0x4b744e[_0x20f6c3(0x1d6)]();if(_0x333a44['match'](/AssertionError/))return _0x4b8b74[_0x20f6c3(0x1d4)];if(_0x333a44[_0x20f6c3(0x169)](/TimeoutError/)||_0x333a44['startsWith'](_0x4b8b74['xPCRm'])||_0x333a44[_0x20f6c3(0x169)](/Timeout.*exceeded/i))return _0x4b8b74[_0x20f6c3(0x117)];return _0x4b8b74['hMFWV'];},exports[a130_0x22a702(0x1c0)]=_0x34cccc=>{const _0x367a94=a130_0x22a702,_0x46cd39={};_0x46cd39[_0x367a94(0x1bc)]=_0x367a94(0xed),_0x46cd39[_0x367a94(0x12d)]=_0x367a94(0x1b4),_0x46cd39[_0x367a94(0x160)]='codeceptjs',_0x46cd39[_0x367a94(0x1c1)]=_0x367a94(0x127),_0x46cd39['qCfcF']=_0x367a94(0xdf);const _0x4bb5c2=_0x46cd39;let _0x4d71c8=null;switch(_0x34cccc){case FRAMEWORKS[_0x367a94(0x186)]:_0x4d71c8=bsSetupHelper[_0x367a94(0x112)](_0x4bb5c2[_0x367a94(0x1bc)]);break;case FRAMEWORKS['PLAYWRIGHT']:_0x4d71c8=bsSetupHelper[_0x367a94(0x112)](_0x4bb5c2[_0x367a94(0x12d)]);break;case FRAMEWORKS[_0x367a94(0x15f)]:case FRAMEWORKS['CODECEPT_CUCUMBER']:_0x4d71c8=bsSetupHelper[_0x367a94(0x112)](_0x4bb5c2['DvjdE']);break;case FRAMEWORKS[_0x367a94(0xf3)]:_0x4d71c8=bsSetupHelper[_0x367a94(0x112)](_0x4bb5c2[_0x367a94(0x1c1)]);break;case FRAMEWORKS['CUCUMBER']:_0x4d71c8=bsSetupHelper[_0x367a94(0x112)](_0x4bb5c2[_0x367a94(0x14f)]);break;default:break;}return _0x4d71c8;},exports[a130_0x22a702(0x105)]=_0x25f9d6=>{const _0x31f6b4=a130_0x22a702;let _0x360fd5=null;switch(_0x25f9d6){case FRAMEWORKS[_0x31f6b4(0x1da)]:_0x360fd5=process[_0x31f6b4(0x187)][_0x31f6b4(0x136)];break;}if(!_0x360fd5)return;return bsSetupHelper[_0x31f6b4(0x16d)](_0x360fd5,![]);},exports[a130_0x22a702(0x10b)]=_0x50c1ba=>{const _0x16f562=a130_0x22a702;return{'username':bsSetupHelper[_0x16f562(0x1e5)](_0x50c1ba),'accessKey':bsSetupHelper[_0x16f562(0xd9)](_0x50c1ba)};},exports[a130_0x22a702(0x198)]=(_0x1bac04,_0xf3c76f)=>{const _0x3b36e7=a130_0x22a702,_0x2f42b9={};_0x2f42b9[_0x3b36e7(0xe9)]=_0x3b36e7(0x1d2),_0x2f42b9[_0x3b36e7(0x185)]=_0x3b36e7(0x15a),_0x2f42b9[_0x3b36e7(0x18b)]=_0x3b36e7(0x14e);const _0x21f79b=_0x2f42b9,_0x340655=_0x21f79b['mNlLs'][_0x3b36e7(0x138)]('|');let _0x1d0fd7=0x0;while(!![]){switch(_0x340655[_0x1d0fd7++]){case'0':if(!_0x1bac04['body']||!Array[_0x3b36e7(0x164)](_0x1bac04['body']))return;continue;case'1':_0x1bac04[_0x3b36e7(0x101)]={'data':_0x1bac04[_0x3b36e7(0x1a7)][0x0][_0x3b36e7(0x1b1)][0x0][_0x3b36e7(0x199)],'test_run_uuid':_0x1bac04[_0x3b36e7(0x1a7)][0x0][_0x3b36e7(0x1b1)][0x0][_0x3b36e7(0x12a)],'event_type':_0x21f79b[_0x3b36e7(0x185)],'kind':_0x21f79b[_0x3b36e7(0x18b)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x3b36e7(0xca)](),'fileName':_0x1bac04[_0x3b36e7(0x1a7)][0x0][_0x3b36e7(0x1b1)][0x0][_0x3b36e7(0xe6)]};continue;case'2':delete _0x1bac04['body'];continue;case'3':if(!_0x1bac04['body'][0x0]||!_0x1bac04[_0x3b36e7(0x1a7)][0x0][_0x3b36e7(0x1b1)]||!_0x1bac04[_0x3b36e7(0x1a7)][0x0]['logs'][_0x3b36e7(0x1e2)])return;continue;case'4':delete _0xf3c76f[_0x3b36e7(0x182)];continue;case'5':delete _0x1bac04[_0x3b36e7(0x13b)];continue;}break;}},exports[a130_0x22a702(0xd2)]=async(_0xd60660,_0x1ca1eb,_0x5d1429,_0x35435e,_0x406f3b=!![])=>{const _0x3f779a=a130_0x22a702,_0x35e676={};_0x35e676[_0x3f779a(0x180)]=function(_0x260613,_0x5aab85){return _0x260613===_0x5aab85;},_0x35e676[_0x3f779a(0xd4)]=_0x3f779a(0x1aa),_0x35e676[_0x3f779a(0xf6)]=_0x3f779a(0xec),_0x35e676[_0x3f779a(0xd8)]=_0x3f779a(0x143),_0x35e676[_0x3f779a(0x133)]=function(_0x1656f1,_0x4e7f10){return _0x1656f1!==_0x4e7f10;},_0x35e676[_0x3f779a(0x111)]=_0x3f779a(0xfc),_0x35e676[_0x3f779a(0x146)]='Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s';const _0x455ace=_0x35e676,_0x1e7a5b={..._0x35435e,...{'method':_0xd60660,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x1ca1eb,'body':_0x5d1429,'json':_0x455ace[_0x3f779a(0x180)](_0x35435e[_0x3f779a(0x182)][_0x455ace['FFrKw']],_0x455ace[_0x3f779a(0xf6)]),'agent':API_URL[_0x3f779a(0x110)](_0x455ace[_0x3f779a(0xd8)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x455ace['ByOzW'](_0x1ca1eb,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x1e7a5b['agent']=API_URL[_0x3f779a(0x110)](_0x455ace['zvrkN'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x1e7a5b,_0x35435e),logger[_0x3f779a(0x1b8)](_0x3f779a(0xf8)+_0x1e7a5b['url']));try{const {statusCode:_0x166460,body:_0x572a11}=await bsSetupHelper[_0x3f779a(0x1a9)](_0xd60660,_0x1ca1eb,_0x1e7a5b,_0x35435e,_0x1e7a5b['url']);if(_0x455ace[_0x3f779a(0x133)](_0x166460,0xc8))return _0x572a11?_0x572a11:_0x3f779a(0x131)+_0x166460;let _0x4b4ab8=_0x572a11;if(_0x406f3b)try{_0x455ace[_0x3f779a(0x133)](typeof _0x572a11,_0x455ace[_0x3f779a(0x111)])&&(_0x4b4ab8=JSON[_0x3f779a(0x144)](_0x572a11));}catch(_0xeb7f92){logger[_0x3f779a(0x16c)](_0x455ace['Jlfga'],_0x572a11,util['format'](_0xeb7f92));}const _0x4e4908={};return _0x4e4908['data']=_0x4b4ab8,_0x4e4908;}catch(_0x317bbb){logger[_0x3f779a(0x16c)](_0x3f779a(0x1ac)+util['format'](_0x317bbb));throw _0x317bbb;}},exports[a130_0x22a702(0x1a9)]=(_0x29127b,_0x5e6155,_0x269c9b,_0x518399,_0x259b24=!![])=>{const _0x5bf09c=a130_0x22a702,_0x2dadbb={'btwEC':function(_0x261e21,_0x3eb708){return _0x261e21!==_0x3eb708;},'xKULv':function(_0x1e7a35,_0x52be84){return _0x1e7a35(_0x52be84);},'iVXIO':_0x5bf09c(0xfc),'smIqZ':function(_0x3794cb,_0x27d120){return _0x3794cb(_0x27d120);},'IVroo':_0x5bf09c(0x12b),'Nbqsi':function(_0x130a13,_0x130191){return _0x130a13(_0x130191);},'lNtOV':function(_0x166b74,_0x22e3b3){return _0x166b74===_0x22e3b3;},'Zlbvw':_0x5bf09c(0x1aa),'DuOhk':_0x5bf09c(0xec),'nfyuo':_0x5bf09c(0x143)};return new Promise((_0x8b3b42,_0x43fe17)=>{const _0x1743d9=_0x5bf09c,_0x338a79={'GbSGz':function(_0x5dc1d3,_0xd594ec){const _0x4a0bca=a130_0x18aa;return _0x2dadbb[_0x4a0bca(0x1ae)](_0x5dc1d3,_0xd594ec);}},_0x115a1a={..._0x518399,...{'method':_0x29127b,'url':API_URL+'/'+_0x5e6155,'body':_0x269c9b,'json':_0x2dadbb[_0x1743d9(0x17d)](_0x518399[_0x1743d9(0x182)][_0x2dadbb['Zlbvw']],_0x2dadbb[_0x1743d9(0x10d)]),'agent':API_URL[_0x1743d9(0x110)](_0x2dadbb[_0x1743d9(0x132)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x2dadbb['lNtOV'](_0x5e6155,SCREENSHOT_ENDPOINT)&&(_0x115a1a['agent']=API_URL[_0x1743d9(0x110)](_0x2dadbb[_0x1743d9(0x132)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x1743d9(0x1a9)](_0x29127b,_0x5e6155,_0x115a1a,_0x518399,API_URL)['then'](({statusCode:_0x1992b0,body:_0x2cd5c1})=>{const _0x1b1cd0=_0x1743d9;if(_0x2dadbb['btwEC'](_0x1992b0,0xc8))_0x2dadbb['xKULv'](_0x43fe17,_0x2cd5c1?_0x2cd5c1:_0x1b1cd0(0x131)+_0x1992b0);else{if(_0x259b24)try{_0x2dadbb[_0x1b1cd0(0xcf)](typeof _0x2cd5c1,_0x2dadbb['iVXIO'])&&(_0x2cd5c1=JSON[_0x1b1cd0(0x144)](_0x2cd5c1));}catch(_0x253ea7){_0x2dadbb[_0x1b1cd0(0x1ae)](_0x43fe17,_0x2dadbb[_0x1b1cd0(0x128)]);return;}const _0x13d422={};_0x13d422['data']=_0x2cd5c1,_0x2dadbb['Nbqsi'](_0x8b3b42,_0x13d422);}})[_0x1743d9(0x19d)](_0x1df700=>{_0x1df700&&_0x338a79['GbSGz'](_0x43fe17,_0x1df700);});});},exports[a130_0x22a702(0x16f)]=_0x1d6a93=>{const _0x4c3d33=a130_0x22a702;if(process['env'][_0x4c3d33(0x129)])return process['env']['TEST_REPORTING_BUILD_TAG']['split'](',');if(process[_0x4c3d33(0x187)][_0x4c3d33(0x147)])return process[_0x4c3d33(0x187)][_0x4c3d33(0x147)][_0x4c3d33(0x138)](',');if(_0x1d6a93[_0x4c3d33(0x19f)])return _0x1d6a93['buildTag'];return[];},exports['getDefaultHeaders']=(_0x52de27=!![])=>{const _0x2882de=a130_0x22a702,_0x57bf65={};_0x57bf65[_0x2882de(0x12e)]=_0x2882de(0xec),_0x57bf65['YyKgq']=_0x2882de(0xfd),_0x57bf65[_0x2882de(0x18c)]=_0x2882de(0x134);const _0x374564=_0x57bf65,_0x1df543={};_0x1df543['Content-Type']=_0x374564['OplkF'],_0x1df543[_0x2882de(0x1c7)]=_0x374564[_0x2882de(0x120)];const _0x3c701e=_0x1df543;return _0x52de27&&process[_0x2882de(0x187)][_0x2882de(0x1b6)]&&(_0x3c701e[_0x374564[_0x2882de(0x18c)]]=_0x2882de(0x1a5)+process['env'][_0x2882de(0x1b6)]),_0x3c701e;},exports[a130_0x22a702(0xd6)]=_0x2704d5=>{const _0x3b1faa=a130_0x22a702,_0x5e26d4={};_0x5e26d4['ZLqNp']='^CUSTOM_TAG_\x5cd+$';const _0x5b7442=_0x5e26d4,_0x88cdd3=[],_0x14b1ed=new RegExp(_0x5b7442[_0x3b1faa(0xf2)],'i');return Object[_0x3b1faa(0x1d5)](_0x2704d5)[_0x3b1faa(0x1af)](_0x17c996=>_0x14b1ed[_0x3b1faa(0x151)](_0x17c996))['forEach'](_0x427197=>_0x88cdd3[_0x3b1faa(0x1ba)](_0x2704d5[_0x427197])),_0x88cdd3;},exports[a130_0x22a702(0x17b)]=_0x27b563=>{const _0x3c8332=a130_0x22a702,_0x3437fe=[],_0x5f20a7=_0x27b563[_0x3c8332(0x1a4)]||process[_0x3c8332(0x187)][_0x3c8332(0x14d)];return _0x5f20a7&&_0x3437fe[_0x3c8332(0x1ba)](_0x5f20a7),_0x3437fe[_0x3c8332(0x1ba)](...exports[_0x3c8332(0xd6)](process[_0x3c8332(0x187)])),_0x3437fe[_0x3c8332(0x1ba)](...exports[_0x3c8332(0xd6)](_0x27b563)),_0x3437fe;},exports[a130_0x22a702(0x1cb)]=_0xf20feb=>{const _0x5e780c=a130_0x22a702;if(!_0xf20feb)return'';return _0xf20feb[_0x5e780c(0x1b5)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports['sleep']=(_0x248e51=0x64)=>new Promise(_0x224c0d=>setTimeout(_0x224c0d,_0x248e51));const getPlatformName=()=>{const _0x1362fe=a130_0x22a702,_0x3a8683={};_0x3a8683[_0x1362fe(0x139)]=function(_0x22610b,_0xf1b5e3){return _0x22610b===_0xf1b5e3;},_0x3a8683[_0x1362fe(0x178)]='win32',_0x3a8683['KIMaB']='Windows',_0x3a8683['Eotnu']=function(_0x38a6fc,_0x504186){return _0x38a6fc===_0x504186;},_0x3a8683[_0x1362fe(0x11d)]='darwin',_0x3a8683['NStVD']=_0x1362fe(0x1ab),_0x3a8683[_0x1362fe(0x1b2)]='linux',_0x3a8683[_0x1362fe(0x19b)]=_0x1362fe(0x116),_0x3a8683[_0x1362fe(0x109)]=_0x1362fe(0xd1);const _0x26dda3=_0x3a8683;if(_0x26dda3['smEqe'](process[_0x1362fe(0x17e)],_0x26dda3[_0x1362fe(0x178)]))return _0x26dda3[_0x1362fe(0x161)];if(_0x26dda3[_0x1362fe(0x159)](process[_0x1362fe(0x17e)],_0x26dda3[_0x1362fe(0x11d)]))return _0x26dda3['NStVD'];if(_0x26dda3[_0x1362fe(0x159)](process[_0x1362fe(0x17e)],_0x26dda3['LQusD']))return _0x26dda3[_0x1362fe(0x19b)];return _0x26dda3[_0x1362fe(0x109)];},getMacOSVersion=()=>{const _0x191737=a130_0x22a702,_0x1e414b={};_0x1e414b[_0x191737(0x135)]='awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27';const _0x2957a4=_0x1e414b;return child_process['execSync'](_0x2957a4[_0x191737(0x135)])[_0x191737(0x1d6)]()[_0x191737(0x197)]();},getLinuxDetails=()=>{const _0x2bb50a={'ziUMt':function(_0x2470a7,_0x35f94d){return _0x2470a7(_0x35f94d);},'pPQNl':function(_0x9c4b43,_0x40b4f9){return _0x9c4b43(_0x40b4f9);}};return new Promise((_0x3c01ea,_0x1d9d24)=>{const _0x31036f=a130_0x18aa,_0xcb34f4={'AHpsO':function(_0x3eda97,_0x2dcb6b){const _0x4c55dc=a130_0x18aa;return _0x2bb50a[_0x4c55dc(0x1d7)](_0x3eda97,_0x2dcb6b);}};_0x2bb50a[_0x31036f(0x184)](getos,(_0x39996c,_0x5c2d73)=>{const _0x575198=_0x31036f;if(_0x39996c)return _0xcb34f4[_0x575198(0x193)](_0x1d9d24,_0x39996c);_0xcb34f4[_0x575198(0x193)](_0x3c01ea,_0x5c2d73);});});};exports[a130_0x22a702(0x10a)]=async()=>{const _0x330192=a130_0x22a702,_0x2274c5={'weobN':function(_0x4c8a42){return _0x4c8a42();},'ROsZy':'OS\x20X','MWEco':'Windows','tnPcG':_0x330192(0x11c),'YvLCV':'Linux','oYCvF':_0x330192(0x1c8)};let _0x44bf28=_0x2274c5[_0x330192(0x13a)](getPlatformName),_0x6f4afb=os[_0x330192(0x1a6)]()[_0x330192(0x1d6)]();switch(_0x44bf28){case _0x2274c5[_0x330192(0x1cc)]:_0x6f4afb=_0x2274c5[_0x330192(0x13a)](getMacOSVersion);break;case _0x2274c5[_0x330192(0x125)]:try{const _0x78e57d=(await import(_0x2274c5['tnPcG']))[_0x330192(0xf4)];_0x6f4afb=_0x2274c5[_0x330192(0x13a)](_0x78e57d);}catch(_0x457b50){exports[_0x330192(0x1b8)](_0x330192(0xdd)+_0x457b50[_0x330192(0x1d6)]());}break;case _0x2274c5[_0x330192(0xf7)]:try{const _0x4fe5f1=await _0x2274c5['weobN'](getLinuxDetails);_0x4fe5f1[_0x330192(0x189)]&&(_0x44bf28=_0x4fe5f1['dist']),_0x4fe5f1[_0x330192(0x1a6)]&&(_0x6f4afb=_0x4fe5f1[_0x330192(0x1a6)][_0x330192(0x1d6)]());}catch(_0x3c7bda){exports[_0x330192(0x1b8)](_0x2274c5[_0x330192(0x11e)]);}break;default:break;}const _0x18bb48={};return _0x18bb48[_0x330192(0x188)]=_0x44bf28,_0x18bb48[_0x330192(0x16b)]=_0x6f4afb,_0x18bb48;},exports[a130_0x22a702(0xea)]=(_0x2e274b,_0x2da1e0)=>{const _0x239bd2=a130_0x22a702,_0x2d94ad={};_0x2d94ad[_0x239bd2(0xe1)]=function(_0x275112,_0x1223eb){return _0x275112===_0x1223eb;},_0x2d94ad[_0x239bd2(0x1c2)]=_0x239bd2(0x151),_0x2d94ad['mLWmk']=function(_0x5c9e97,_0x1c5392){return _0x5c9e97===_0x1c5392;},_0x2d94ad[_0x239bd2(0x10c)]=_0x239bd2(0x130);const _0x2f00f8=_0x2d94ad;if(!_0x2e274b)return[];try{if(_0x2f00f8[_0x239bd2(0xe1)](_0x2da1e0,_0x2f00f8[_0x239bd2(0x1c2)]))return _0x2e274b[_0x239bd2(0x15b)](_0x26e944=>{const _0x35b3a9=_0x239bd2,{stack:_0x37f4d4,..._0x2c80a5}=_0x26e944,_0x17fee4=Object[_0x35b3a9(0x1d5)](_0x2c80a5)[_0x35b3a9(0x15b)](_0x18101d=>{return _0x18101d+':\x20'+_0x2c80a5[_0x18101d];}),_0x43ce5a=_0x37f4d4?exports['removeAnsiColors'](_0x37f4d4)['split'](/\r?\n/):[exports['removeAnsiColors'](_0x26e944['message'])],_0x2217a0={};return _0x2217a0[_0x35b3a9(0x12c)]=_0x43ce5a,_0x2217a0[_0x35b3a9(0x15d)]=_0x17fee4,_0x2217a0;});else{if(_0x2f00f8['mLWmk'](_0x2da1e0,_0x2f00f8['gbFGK'])){const _0x312955=[],_0xf6cd2a=[];return Object['keys'](_0x2e274b)[_0x239bd2(0x18f)](_0xd4e1aa=>{const _0x55dcd8=_0x239bd2;try{_0xf6cd2a[_0x55dcd8(0x1ba)](_0xd4e1aa+':\x20'+_0x2e274b[_0xd4e1aa]);}catch(_0x1914ba){exports[_0x55dcd8(0x1b8)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x1914ba['message']+_0x55dcd8(0x14a)+_0x1914ba[_0x55dcd8(0x12c)]);}}),_0x312955[_0x239bd2(0x1ba)]({'backtrace':exports['removeAnsiColors'](_0x2e274b['stack'])['split'](/\r?\n/),'expanded':_0xf6cd2a}),_0x312955;}}return[];}catch(_0x177d2f){exports[_0x239bd2(0x1b8)](_0x239bd2(0x171)+_0x177d2f[_0x239bd2(0xd0)]+_0x239bd2(0x14a)+_0x177d2f['backtrace']);}return[];};function a130_0x2532(){const _0x1359a9=['CODECEPT','DvjdE','KIMaB','AJlbz','22184168zsrxYf','isArray','__cloud_provider___','VGxpx','sendPlatformDetails','teemn','match','map_','platformVersion','error','readConfig','null','getBuildTags','Visit\x20','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','silly','getCapabilities','3308754DMpmdY','BROWSERSTACK_TEST_REPORTING_DEBUG','YtWSu','parseFileNames','oaycp','appium:app','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','getCustomTags','BROWSERSTACK_TEST_OBSERVABILITY_YML','lNtOV','platform','../helper','ByOzW','BROWSERSTACK_TEST_OBSERVABILITY','headers','KpQrR','pPQNl','NELFS','MOCHA','env','platformName','dist','LPaoH','KmbqX','hQSlT','host','stringify','forEach','unknown_grid','XgstK','xyieb','AHpsO','[%s][\x20','addRequestSpy','browserstack','trim','modifyReqForTraceUpload','data','sMOYS','FnJdP','prefixTestPath','catch','atLQV','buildTag','BROWSERSTACK_RERUN_TESTS','ATS_HUB_URL_REGEX','PRINT_BUILDLINK','cxfMn','customTag','Bearer\x20','release','body','timeout','nodeRequest','Content-Type','OS\x20X','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','capabilities','smIqZ','filter','18QHBwHo','logs','LQusD','shouldReRunObservabilityTests','@playwright/test','replace','BROWSERSTACK_TESTHUB_JWT','buildLogger','debug','join','push','patchConsoleLogger','BQAhy','child_process','Agent','app-automate','getFrameworkVersion','xeZXX','SjccN','TimeoutError','ppSou','HTTP','O11Y_URL','X-BSTACK-TESTOPS','Error\x20in\x20getting\x20Linux\x20Details','../logger','git-last-commit','removeAnsiColors','ROsZy','HDota','vXYDd','ffnaZ','xUPvm','qvpBy','0|3|1|2|5|4','cwd','YrVgO','keys','toString','ziUMt','app','getObservabilityLinkedProductName','PLAYWRIGHT','TEST_PLATFORM','pid','Test\x20timeout\x20of','isUndefined','yhPBC','trace','/builds/','length','loMIK','\x20]\x20Build\x20Not\x20Found\x20%s','getUserName','toISOString','nmVDm','bs:addPlatformDetails:','keepAlive','../../bin/utils/constants','btwEC','message','Unknown','asyncAwaitNodeReq','BS_TESTOPS_BUILD_HASHED_ID','FFrKw','maxTotalSockets','extractValuesWithRegexKeyMatch','IabjJ','zvrkN','getAccessKey','7530124cjEpbS','util','http','Error\x20in\x20importing\x20windows-release\x20','getPlatformVersion','@cucumber/cucumber','path','sjBMD','rootDir','568775HBEETs','getSyncScript','info','fileName','LszOL','relativeTestFilePath','mNlLs','failureData','getos','application/json','mocha','UnhandledError','PathHelper','isInternalHook','iVLXW','ZLqNp','JEST','default','emit','KNxLD','YvLCV','Uploading\x20trace\x20logs\x20to:\x20','PgVTH','config','lodash','object','true','TEST_REPORTING_ANALYTICS','bstack:options','EYSfg','formData','toJSON','getFailureType','LeIak','getBrowserStackConfig','getBrowserName','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','1229960gNTbPr','WXxGt','getPlatformDetails','getUserCredentials','gbFGK','DuOhk','browserstack_executor:\x20','702734nRlIYL','includes','JmyHK','getPackageVersion','getPlatform','printBuildLink','AssertionError','Linux','ittOH','hostname','prefix','now','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','windows-release','OITWm','oYCvF','./constants','YyKgq','xPCRm','caObk','XNVrC','BROWSERSTACK_OBSERVABILITY_DEBUG','MWEco','relative','jest','IVroo','TEST_REPORTING_BUILD_TAG','test_run_uuid','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','backtrace','oCXaa','OplkF','BROWSERSTACK_TEST_REPORTING','err','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','nfyuo','SwFPK','Authorization','JSuaC','BROWSERSTACK_CONFIG_FILE_PATH','kTony','split','smEqe','weobN','json','annotate','undefined','ObservabilitySync:','turboScaleGridDetails','../../bin/v2/browserstackCLI','CxXUy','MTcgO','https','parse','measureWrapper','Jlfga','TEST_OBSERVABILITY_BUILD_TAG','AHhQk','rVaUe','\x20:\x20','winstonLogger','hMFWV','CUSTOM_TAG','TEST_ATTACHMENT','qCfcF','turboscale','test','\x20]\x20','local_grid','automate','1770215EPsRXU','HUB_URL_REGEX','maxSockets','O11yHashedID','Eotnu','LogCreated','map','][\x20','expanded','jJINO'];a130_0x2532=function(){return _0x1359a9;};return a130_0x2532();}class PathHelper{constructor(_0x5b0f5a,_0x4bb8d0){const _0x454ab8=a130_0x22a702;this['config']=_0x5b0f5a,this[_0x454ab8(0x119)]=_0x4bb8d0;}[a130_0x22a702(0xe8)](_0x22c5f9){const _0x1ee754=a130_0x22a702,_0x13c5ad=this['config'][_0x1ee754(0x1d3)]||this[_0x1ee754(0xfa)][_0x1ee754(0xe2)];return path[_0x1ee754(0x126)](_0x13c5ad,_0x22c5f9);}[a130_0x22a702(0x19c)](_0x1d50a3){const _0x2cac96=a130_0x22a702,_0x7653fe=this[_0x2cac96(0xe8)](_0x1d50a3);return this[_0x2cac96(0x119)]?path[_0x2cac96(0x1b9)](this[_0x2cac96(0x119)],_0x7653fe):_0x7653fe;}}exports[a130_0x22a702(0xef)]=PathHelper,exports[a130_0x22a702(0x195)]=(_0x24bf91=!![])=>{const _0x4bac22=a130_0x22a702,_0x3cfa27={};_0x3cfa27[_0x4bac22(0x122)]=function(_0x1f464a,_0x4c3856){return _0x1f464a===_0x4c3856;},_0x3cfa27[_0x4bac22(0x1cf)]=_0x4bac22(0x1c7),_0x3cfa27[_0x4bac22(0xf1)]='true',_0x3cfa27[_0x4bac22(0xf9)]=_0x4bac22(0x1c5),_0x3cfa27[_0x4bac22(0x149)]=_0x4bac22(0x196),_0x3cfa27[_0x4bac22(0x183)]=_0x4bac22(0x153);const _0x2f325d=_0x3cfa27;requestSpy['spy']((_0x291d65,_0x38526f)=>{const _0x5539c3=_0x4bac22;_0x38526f&&!(_0x38526f[_0x5539c3(0x182)]&&_0x2f325d[_0x5539c3(0x122)](_0x38526f[_0x5539c3(0x182)][_0x2f325d[_0x5539c3(0x1cf)]],_0x2f325d[_0x5539c3(0xf1)]))&&(_0x38526f[_0x5539c3(0x18d)]=_0x38526f['hostname'],delete _0x38526f[_0x5539c3(0x118)],_0x24bf91&&process['emit']('bs:addLog:'+process[_0x5539c3(0x1dc)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x2f325d[_0x5539c3(0xf9)],'http_response':_0x38526f})),_0x38526f&&(constants[_0x5539c3(0x156)]['test'](_0x38526f['host'])||constants[_0x5539c3(0x1a1)]['test'](_0x38526f[_0x5539c3(0x18d)]))?global[_0x5539c3(0x165)]=_0x2f325d[_0x5539c3(0x149)]:global[_0x5539c3(0x165)]=_0x2f325d[_0x5539c3(0x183)];});},exports[a130_0x22a702(0x1bb)]=()=>{const _0x23b1dc=a130_0x22a702,_0xadf81c={'LPaoH':function(_0x13f09f,_0x3b508a){return _0x13f09f(_0x3b508a);}};console={},Object[_0x23b1dc(0x1d5)](consoleHolder)[_0x23b1dc(0x18f)](_0x4d9a24=>{const _0x521ef7=_0x23b1dc;_0xadf81c[_0x521ef7(0x18a)](isFunction,consoleHolder[_0x4d9a24])?console[_0x4d9a24]=(..._0x3e6d7f)=>{const _0x1e8f6d=_0x521ef7;try{!Object[_0x1e8f6d(0x1d5)](BSTestOpsPatcher)['includes'](_0x4d9a24)?consoleHolder[_0x4d9a24](..._0x3e6d7f):BSTestOpsPatcher[_0x4d9a24](..._0x3e6d7f);}catch(_0x161b4f){consoleHolder[_0x4d9a24](..._0x3e6d7f);}}:console[_0x4d9a24]=consoleHolder[_0x4d9a24];});},exports[a130_0x22a702(0xe4)]=()=>a130_0x22a702(0x10e)+JSON[a130_0x22a702(0x18e)]({'action':a130_0x22a702(0x13c),'arguments':{'data':a130_0x22a702(0x13e)+Date[a130_0x22a702(0x11a)](),'level':'debug'}}),exports[a130_0x22a702(0x1d9)]=_0x2a1863=>{const _0x197da5=a130_0x22a702,_0x539744={};_0x539744[_0x197da5(0x1a3)]=function(_0x4f17cb,_0x53e500){return _0x4f17cb===_0x53e500;},_0x539744[_0x197da5(0x192)]=_0x197da5(0x196),_0x539744[_0x197da5(0xe7)]=_0x197da5(0x179),_0x539744['CxXUy']=_0x197da5(0x1d8),_0x539744['ySSzt']=function(_0x4042ee,_0x59ab8d){return _0x4042ee>_0x59ab8d;},_0x539744[_0x197da5(0x104)]=_0x197da5(0x1bf),_0x539744['XgstK']=_0x197da5(0xff),_0x539744['xUPvm']=_0x197da5(0x13f),_0x539744[_0x197da5(0xd7)]=_0x197da5(0x150),_0x539744[_0x197da5(0x1e3)]=_0x197da5(0x154);const _0x2253d6=_0x539744;let _0x27bf9e=null;try{if(_0x2253d6[_0x197da5(0x1a3)](global['__cloud_provider___'],_0x2253d6[_0x197da5(0x192)])){if(_0x2a1863[_0x2253d6['LszOL']]||_0x2a1863[_0x2253d6[_0x197da5(0x141)]]||!bsSetupHelper['isUndefined'](global[_0x197da5(0x1ad)])&&_0x2253d6['ySSzt'](global[_0x197da5(0x1ad)][_0x197da5(0x1e2)],0x0)&&(global['capabilities'][0x0][_0x2253d6[_0x197da5(0x141)]]||global[_0x197da5(0x1ad)][0x0][_0x2253d6[_0x197da5(0xe7)]]))_0x27bf9e=_0x2253d6[_0x197da5(0x104)];else _0x2a1863[_0x2253d6['XgstK']]&&_0x2a1863[_0x2253d6[_0x197da5(0x191)]][_0x2253d6[_0x197da5(0x1d0)]]?_0x27bf9e=_0x2253d6[_0x197da5(0xd7)]:_0x27bf9e=_0x2253d6[_0x197da5(0x1e3)];}}catch(_0x40479b){exports[_0x197da5(0x1b8)](_0x197da5(0x17a)+constants[_0x197da5(0xfe)]+'\x20test\x20instance\x20:\x20'+_0x40479b);}return _0x27bf9e;},exports[a130_0x22a702(0x167)]=async(_0x8b30db,_0x980586,_0x139079=![])=>{const _0x200672=a130_0x22a702,_0x1c0589={};_0x1c0589[_0x200672(0x162)]=function(_0x10da54,_0x561e86){return _0x10da54===_0x561e86;},_0x1c0589['LPbKW']=_0x200672(0x196),_0x1c0589[_0x200672(0x148)]=_0x200672(0x190),_0x1c0589['atLQV']=_0x200672(0x1db);const _0x2db808=_0x1c0589;try{const _0x3dbf89=await _0x8b30db[_0x200672(0x173)](),_0x4e4a07=await _0x8b30db['getSession'](),_0x487949={},_0x11b840=Object['fromEntries'](_0x4e4a07['getCapabilities']()[_0x200672(0x16a)]),_0x3bc0d9={'product':exports[_0x200672(0x1d9)](_0x11b840),'capabilities':_0x11b840,'platform':_0x3dbf89[_0x200672(0x113)](),'platform_version':bsSetupHelper[_0x200672(0xde)](_0x2db808['AJlbz'](global[_0x200672(0x165)],_0x2db808['LPbKW'])),'browser':_0x3dbf89[_0x200672(0x106)](),'browser_version':_0x3dbf89['getBrowserVersion'](),'session_id':_0x4e4a07[_0x200672(0x102)]()};global[_0x200672(0x165)]?_0x487949[global[_0x200672(0x165)]]=_0x3bc0d9:_0x487949[_0x2db808[_0x200672(0x148)]]=_0x3bc0d9;if(_0x139079)return _0x487949;process[_0x200672(0xf5)](_0x200672(0xcc)+process[_0x200672(0x1dc)],{'timestamp':new Date()[_0x200672(0xca)](),'level':null,'message':null,'kind':_0x2db808[_0x200672(0x19e)],'http_response':_0x487949,'uuid':_0x980586});}catch(_0x5cae1c){exports[_0x200672(0x1b8)](_0x200672(0x107)+_0x5cae1c);}},exports[a130_0x22a702(0xf0)]=_0x1eacd9=>{const _0x5e2ed7=a130_0x22a702;return _0x1eacd9&&_0x1eacd9[_0x5e2ed7(0x1d6)]()['match'](/browserstack internal helper hook/);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a131_0x1d6abc=a131_0x1b10;function a131_0x1b10(_0x4e396a,_0x76cb48){var _0xa5ec09=a131_0xa5ec();return a131_0x1b10=function(_0x1b10e9,_0x10b20a){_0x1b10e9=_0x1b10e9-0xde;var _0x47e053=_0xa5ec09[_0x1b10e9];return _0x47e053;},a131_0x1b10(_0x4e396a,_0x76cb48);}(function(_0x1c61ca,_0x39aa04){var _0x3a9c07=a131_0x1b10,_0x30ddeb=_0x1c61ca();while(!![]){try{var _0x341ad9=-parseInt(_0x3a9c07(0xe6))/0x1*(-parseInt(_0x3a9c07(0xeb))/0x2)+parseInt(_0x3a9c07(0xe5))/0x3+-parseInt(_0x3a9c07(0xe1))/0x4+parseInt(_0x3a9c07(0xe3))/0x5*(parseInt(_0x3a9c07(0xe7))/0x6)+-parseInt(_0x3a9c07(0xea))/0x7*(-parseInt(_0x3a9c07(0xe8))/0x8)+parseInt(_0x3a9c07(0xe9))/0x9+-parseInt(_0x3a9c07(0xdf))/0xa;if(_0x341ad9===_0x39aa04)break;else _0x30ddeb['push'](_0x30ddeb['shift']());}catch(_0x2c5373){_0x30ddeb['push'](_0x30ddeb['shift']());}}}(a131_0xa5ec,0xabc28));function a131_0xa5ec(){var _0x6f6ee0=['exports','65kuevXP','https://collector-observability.browserstack.com','1338411gWDDeG','13KugYHi','458076sEOoBw','2221144NHcVKx','11217177tBVxDT','35ZcuTcI','22150PePGyn','ORCHESTRATION_API_URL','testorchestration/api/v1/split-tests','30644700NHFFmu','FAILED_TESTS_ENDPOINT','1796720QCgvHE'];a131_0xa5ec=function(){return _0x6f6ee0;};return a131_0xa5ec();}var a131_0x4e2799={};a131_0x4e2799[a131_0x1d6abc(0xec)]=a131_0x1d6abc(0xe4),a131_0x4e2799[a131_0x1d6abc(0xe0)]='testorchestration/api/v1/failed-tests',a131_0x4e2799['SPLIT_TESTS_ENDPOINT']=a131_0x1d6abc(0xde),module[a131_0x1d6abc(0xe2)]=a131_0x4e2799;
|
|
@@ -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
|
+
function a132_0x4da5(_0x386343,_0x228f01){const _0x298aa3=a132_0x298a();return a132_0x4da5=function(_0x4da513,_0x55fcbf){_0x4da513=_0x4da513-0x133;let _0x138a54=_0x298aa3[_0x4da513];return _0x138a54;},a132_0x4da5(_0x386343,_0x228f01);}const a132_0x1ddec9=a132_0x4da5;(function(_0x1ca8c3,_0x202d33){const _0x4283e8=a132_0x4da5,_0x5aded0=_0x1ca8c3();while(!![]){try{const _0x17fdf9=-parseInt(_0x4283e8(0x175))/0x1*(-parseInt(_0x4283e8(0x172))/0x2)+-parseInt(_0x4283e8(0x1a1))/0x3+-parseInt(_0x4283e8(0x18f))/0x4+parseInt(_0x4283e8(0x1ad))/0x5*(-parseInt(_0x4283e8(0x15a))/0x6)+parseInt(_0x4283e8(0x19a))/0x7+-parseInt(_0x4283e8(0x139))/0x8*(parseInt(_0x4283e8(0x154))/0x9)+parseInt(_0x4283e8(0x13e))/0xa;if(_0x17fdf9===_0x202d33)break;else _0x5aded0['push'](_0x5aded0['shift']());}catch(_0x1055cd){_0x5aded0['push'](_0x5aded0['shift']());}}}(a132_0x298a,0x9933c));const fs=require('fs'),path=require(a132_0x1ddec9(0x198)),FileHelper=require(a132_0x1ddec9(0x138)),RequestUtils=require(a132_0x1ddec9(0x170)),logger=require(a132_0x1ddec9(0x157))[a132_0x1ddec9(0x146)],POLLING_INTERVAL=0x2710,TAG=a132_0x1ddec9(0x19d);function a132_0x298a(){const _0x4e60da=['toISOString','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20',']\x20Polling\x20stopped.','_Local]\x20State\x20initialized\x20from\x20file.','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','BlfAq','fMkbO','BROWSERSTACK_TOTAL_NODE_COUNT','zzBjL','failedTests','from','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','_getDefaultState','error','wwxMc','RXWIu','RSsHS','reportedFailuresToAPI','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','1805600oACFlb','sSvVC','stopPolling','TxHcU','THRZR','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','failFastConfig','catch','KyiiE','path','stateFilePath','4918816UnVzAD','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','htjOi','FailFastManager','failFastState.json','length','gwNUJ','272676YNihHa','getFailedTestsCount','dhcPt','debug','stack','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','nXoyL','VigUe','wReEN','pollingInterval','lockFilePath','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','5TtmXsl','LeIjv','writeState','add','failFastActiveMarkerPath','writeFileSync','workingDir','\x20(was\x20','KvDwV','failFastState.lock','OpIhJ','YeIJW','failFastActive','failureThresholdCount','state','NiSdz','_sendFailedTestsToAPI','wrlii','info','./fileHelper','8945776KHGXbk','ZIuEm','buildRunIdentifier','gRRGT','LTafz','13162920WbTgsU','join','startPolling','buildName','projectName','passed','gTmim','_initializeStateFromFile','winstonLogger','warn','readState','cleanup','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','NVOKE','exports','uveLt','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','BoNaL','doObd','putFailedTests','lastAPIFailedCount','failFast.active','9ORLHqU','number','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','../logger','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','QwapJ','2476746iRVszL','GyJNQ','ms.','fCOaD','failed',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','env','newState','DLusX','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','existsSync',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','yfgxs','_pollFailedTests','_CI]\x20Error\x20sending\x20failed\x20test\x20','_fetchAPIFailedCount','BROWSERSTACK_BUILD_RUN_IDENTIFIER','\x0aStack:\x20','isCIMode','totalTests','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','OdUyZ','./requestUtils','fileHelper','2FhVtue','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.',',\x20CI\x20Mode:\x20','681841AMiiNJ','_CI]\x20API\x20failed\x20count\x20updated:\x20','onTestDone','message',',\x20threshold:\x20','uniqueFailedTests','zSuwi'];a132_0x298a=function(){return _0x4e60da;};return a132_0x298a();}class FailFastManager{constructor(_0x27afd4,_0x5c4292,_0x368869){const _0x50c1a9=a132_0x1ddec9,_0x139a44={};_0x139a44[_0x50c1a9(0x190)]=function(_0x8b7875,_0x9d4e11){return _0x8b7875+_0x9d4e11;},_0x139a44[_0x50c1a9(0x1a3)]='\x0aStack:\x20',_0x139a44['doObd']=function(_0x4157f5,_0x576975){return _0x4157f5||_0x576975;},_0x139a44[_0x50c1a9(0x193)]=_0x50c1a9(0x19e),_0x139a44[_0x50c1a9(0x166)]=_0x50c1a9(0x1b6),_0x139a44[_0x50c1a9(0x181)]=_0x50c1a9(0x153);const _0x2c356=_0x139a44;this[_0x50c1a9(0x195)]=_0x2c356[_0x50c1a9(0x150)](_0x27afd4,{}),this['buildName']=_0x5c4292,this['projectName']=_0x368869,this[_0x50c1a9(0x16c)]=!!(process[_0x50c1a9(0x160)][_0x50c1a9(0x16a)]&&process[_0x50c1a9(0x160)]['BROWSERSTACK_NODE_INDEX']&&process[_0x50c1a9(0x160)][_0x50c1a9(0x183)]);const _0x2374cc=this[_0x50c1a9(0x195)][_0x50c1a9(0x1b3)];this['stateFilePath']=path[_0x50c1a9(0x13f)](_0x2374cc,_0x2c356[_0x50c1a9(0x193)]),this[_0x50c1a9(0x1ab)]=path['join'](_0x2374cc,_0x2c356[_0x50c1a9(0x166)]),this[_0x50c1a9(0x1b1)]=path[_0x50c1a9(0x13f)](_0x2374cc,_0x2c356[_0x50c1a9(0x181)]),this[_0x50c1a9(0x171)]=new FileHelper(this[_0x50c1a9(0x195)],this[_0x50c1a9(0x199)],this[_0x50c1a9(0x1ab)],this[_0x50c1a9(0x188)]()),this[_0x50c1a9(0x133)]=this['_getDefaultState'](),this[_0x50c1a9(0x1aa)]=null,this['isCIMode']&&(this[_0x50c1a9(0x18d)]=new Set()),this[_0x50c1a9(0x145)]()[_0x50c1a9(0x196)](_0x4445f4=>{const _0x62d825=_0x50c1a9;logger[_0x62d825(0x189)]('['+TAG+_0x62d825(0x15f)+_0x4445f4['message']+(_0x4445f4[_0x62d825(0x1a5)]?_0x2c356['sSvVC'](_0x2c356[_0x62d825(0x1a3)],_0x4445f4[_0x62d825(0x1a5)]):'')),this['state']=this[_0x62d825(0x188)]();}),this[_0x50c1a9(0x16c)]&&this['startPolling'](),logger[_0x50c1a9(0x1a4)]('['+TAG+']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20'+this['failFastConfig'][_0x50c1a9(0x1ba)]+_0x50c1a9(0x174)+this['isCIMode']);}[a132_0x1ddec9(0x188)](){const _0x14419e={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x14419e;}async[a132_0x1ddec9(0x145)](){const _0x400780=a132_0x1ddec9,_0x3b516c={};_0x3b516c[_0x400780(0x1a9)]=function(_0x57d7c9,_0x13fdd5){return _0x57d7c9+_0x13fdd5;},_0x3b516c[_0x400780(0x1a0)]=_0x400780(0x16b);const _0x5f47a2=_0x3b516c;if(this['isCIMode'])try{fs[_0x400780(0x164)](this[_0x400780(0x1b1)])&&(this[_0x400780(0x133)][_0x400780(0x1b9)]=!![],logger[_0x400780(0x1a4)]('['+TAG+_0x400780(0x19b)));}catch(_0x233718){logger[_0x400780(0x189)]('['+TAG+_0x400780(0x187)+_0x233718[_0x400780(0x178)]+(_0x233718['stack']?_0x5f47a2[_0x400780(0x1a9)](_0x5f47a2[_0x400780(0x1a0)],_0x233718[_0x400780(0x1a5)]):''));}else try{const _0x1b6bcd=await this['fileHelper'][_0x400780(0x148)]();if(_0x1b6bcd)this[_0x400780(0x133)]={...this[_0x400780(0x188)](),..._0x1b6bcd,'uniqueFailedTests':new Set(_0x1b6bcd['uniqueFailedTests']||[])},logger['debug']('['+TAG+_0x400780(0x17f));else{logger[_0x400780(0x1a4)]('['+TAG+_0x400780(0x156));const _0x5cdada=this[_0x400780(0x188)](),_0x4d9034={..._0x5cdada,'uniqueFailedTests':Array[_0x400780(0x186)](_0x5cdada[_0x400780(0x17a)])};await this[_0x400780(0x171)][_0x400780(0x1af)](_0x4d9034),this['state']=_0x5cdada;}}catch(_0x310b9d){logger[_0x400780(0x1a4)]('['+TAG+'_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20'+_0x310b9d['message']+(_0x310b9d['stack']?_0x5f47a2[_0x400780(0x1a9)](_0x5f47a2[_0x400780(0x1a0)],_0x310b9d['stack']):'')),this[_0x400780(0x133)]=this['_getDefaultState']();}}async[a132_0x1ddec9(0x177)](_0x52ed50,_0x4f2832){const _0x47402f=a132_0x1ddec9,_0x4bbf08={};_0x4bbf08['TxHcU']=function(_0x212a68,_0x174e0e){return _0x212a68>_0x174e0e;},_0x4bbf08[_0x47402f(0x1b7)]=function(_0x4c21cb,_0x15db4e){return _0x4c21cb>_0x15db4e;},_0x4bbf08[_0x47402f(0x184)]=_0x47402f(0x15e),_0x4bbf08[_0x47402f(0x18a)]=_0x47402f(0x143),_0x4bbf08['gKubO']=function(_0x3bfe96,_0x2e69e6){return _0x3bfe96+_0x2e69e6;},_0x4bbf08[_0x47402f(0x14d)]='\x0aStack:\x20',_0x4bbf08[_0x47402f(0x197)]=function(_0x155ef0,_0x3ba235){return _0x155ef0||_0x3ba235;},_0x4bbf08[_0x47402f(0x1b5)]=function(_0x2469bf,_0x132418){return _0x2469bf+_0x132418;};const _0x185f97=_0x4bbf08;if(this[_0x47402f(0x16c)])this[_0x47402f(0x133)][_0x47402f(0x16d)]+=0x1,_0x4f2832&&_0x185f97[_0x47402f(0x192)](_0x4f2832[_0x47402f(0x19f)],0x0)&&(!this[_0x47402f(0x18d)]['has'](_0x52ed50)&&(await this[_0x47402f(0x135)](_0x52ed50),this[_0x47402f(0x18d)][_0x47402f(0x1b0)](_0x52ed50)));else try{const _0x2dc4d6={'fullName':_0x52ed50,'status':_0x4f2832&&_0x185f97[_0x47402f(0x1b7)](_0x4f2832[_0x47402f(0x19f)],0x0)?_0x185f97['zzBjL']:_0x185f97[_0x47402f(0x18a)]},_0x2cb31a=await this['fileHelper']['recordTestResult'](_0x2dc4d6);this[_0x47402f(0x133)]={...this[_0x47402f(0x188)](),..._0x2cb31a['newState'],'uniqueFailedTests':new Set(_0x2cb31a[_0x47402f(0x161)][_0x47402f(0x17a)]||[])};}catch(_0x20be91){logger[_0x47402f(0x189)]('['+TAG+_0x47402f(0x17d)+_0x20be91[_0x47402f(0x178)]+(_0x20be91[_0x47402f(0x1a5)]?_0x185f97['gKubO'](_0x185f97[_0x47402f(0x14d)],_0x20be91[_0x47402f(0x1a5)]):''));try{const _0x4315f6=await this[_0x47402f(0x171)][_0x47402f(0x148)]();this[_0x47402f(0x133)]={...this[_0x47402f(0x188)](),..._0x185f97[_0x47402f(0x197)](_0x4315f6,{}),'uniqueFailedTests':new Set(_0x4315f6?_0x4315f6[_0x47402f(0x17a)]||[]:[])},logger[_0x47402f(0x1a4)]('['+TAG+_0x47402f(0x158));}catch(_0x2968fa){logger[_0x47402f(0x189)]('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0x2968fa['message']+(_0x2968fa[_0x47402f(0x1a5)]?_0x185f97['KvDwV'](_0x185f97[_0x47402f(0x14d)],_0x2968fa[_0x47402f(0x1a5)]):'')),this[_0x47402f(0x133)]=this['_getDefaultState']();}}}async[a132_0x1ddec9(0x135)](_0x307f95){const _0x119fe3=a132_0x1ddec9,_0x5af485={};_0x5af485[_0x119fe3(0x19c)]=function(_0x111049,_0x370484){return _0x111049+_0x370484;},_0x5af485['fCOaD']=_0x119fe3(0x16b);const _0x1027ee=_0x5af485;if(!this['isCIMode']||!_0x307f95)return;try{logger['debug']('['+TAG+_0x119fe3(0x18e)+_0x307f95);const _0x5e53dc={};_0x5e53dc['buildName']=this[_0x119fe3(0x141)],_0x5e53dc[_0x119fe3(0x142)]=this[_0x119fe3(0x142)],_0x5e53dc[_0x119fe3(0x185)]=[_0x307f95],_0x5e53dc[_0x119fe3(0x13b)]=process[_0x119fe3(0x160)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],await RequestUtils[_0x119fe3(0x151)](_0x5e53dc);}catch(_0x2aea6a){logger['error']('['+TAG+_0x119fe3(0x168)+_0x307f95+'\x20to\x20API:\x20'+_0x2aea6a[_0x119fe3(0x178)]+(_0x2aea6a[_0x119fe3(0x1a5)]?_0x1027ee[_0x119fe3(0x19c)](_0x1027ee[_0x119fe3(0x15d)],_0x2aea6a['stack']):''));}}async[a132_0x1ddec9(0x169)](){const _0x91aa6e=a132_0x1ddec9,_0x21effb={};_0x21effb[_0x91aa6e(0x162)]=function(_0x1e895a,_0x567ecd){return _0x1e895a===_0x567ecd;},_0x21effb['NVOKE']=_0x91aa6e(0x155),_0x21effb[_0x91aa6e(0x1a8)]=function(_0x421e64,_0x36a0da){return _0x421e64+_0x36a0da;},_0x21effb['ZIuEm']=_0x91aa6e(0x16b),_0x21effb['RSsHS']=function(_0x265e56,_0x97dc8d){return _0x265e56!==_0x97dc8d;};const _0x2eb901=_0x21effb;if(!this[_0x91aa6e(0x16c)])return 0x0;try{const _0x50ee3e={};_0x50ee3e[_0x91aa6e(0x141)]=this[_0x91aa6e(0x141)],_0x50ee3e['projectName']=this[_0x91aa6e(0x142)],_0x50ee3e[_0x91aa6e(0x13b)]=process[_0x91aa6e(0x160)][_0x91aa6e(0x16a)];const _0x1e55a9=await RequestUtils[_0x91aa6e(0x1a2)](_0x50ee3e);return logger[_0x91aa6e(0x1a4)]('['+TAG+_0x91aa6e(0x14e)+_0x1e55a9),_0x2eb901[_0x91aa6e(0x162)](typeof _0x1e55a9,_0x2eb901[_0x91aa6e(0x14b)])?_0x1e55a9:0x0;}catch(_0x3da895){return logger[_0x91aa6e(0x189)]('['+TAG+_0x91aa6e(0x16e)+_0x3da895[_0x91aa6e(0x178)]+(_0x3da895[_0x91aa6e(0x1a5)]?_0x2eb901[_0x91aa6e(0x1a8)](_0x2eb901[_0x91aa6e(0x13a)],_0x3da895['stack']):'')),_0x2eb901[_0x91aa6e(0x18c)](this[_0x91aa6e(0x133)][_0x91aa6e(0x152)],undefined)?this[_0x91aa6e(0x133)][_0x91aa6e(0x152)]:0x0;}}async[a132_0x1ddec9(0x167)](){const _0x8d9c19=a132_0x1ddec9,_0x2c7c6c={};_0x2c7c6c[_0x8d9c19(0x182)]=function(_0x243c89,_0x22b367){return _0x243c89!==_0x22b367;},_0x2c7c6c[_0x8d9c19(0x16f)]=function(_0x40a507,_0x3d8dd0){return _0x40a507+_0x3d8dd0;},_0x2c7c6c['RXWIu']=_0x8d9c19(0x16b);const _0x306319=_0x2c7c6c;if(!this['isCIMode'])return;try{const _0x4dc9e7=await this['_fetchAPIFailedCount']();_0x306319[_0x8d9c19(0x182)](_0x4dc9e7,this[_0x8d9c19(0x133)][_0x8d9c19(0x152)])&&(logger['debug']('['+TAG+_0x8d9c19(0x176)+_0x4dc9e7+_0x8d9c19(0x1b4)+this[_0x8d9c19(0x133)][_0x8d9c19(0x152)]+')'),this[_0x8d9c19(0x133)][_0x8d9c19(0x152)]=_0x4dc9e7);}catch(_0x3841ca){logger[_0x8d9c19(0x189)]('['+TAG+'_CI]\x20Error\x20during\x20polling\x20logic:\x20'+_0x3841ca[_0x8d9c19(0x178)]+(_0x3841ca[_0x8d9c19(0x1a5)]?_0x306319['OdUyZ'](_0x306319[_0x8d9c19(0x18b)],_0x3841ca['stack']):''));}}async[a132_0x1ddec9(0x140)](){const _0x51474b=a132_0x1ddec9,_0x4154d6={'gRRGT':function(_0x47f4cb,_0x4ca4a5,_0x1ddc84){return _0x47f4cb(_0x4ca4a5,_0x1ddc84);}};this[_0x51474b(0x1aa)]&&this[_0x51474b(0x191)](),this[_0x51474b(0x16c)]&&(await this['_pollFailedTests'](),this[_0x51474b(0x1aa)]=_0x4154d6[_0x51474b(0x13c)](setInterval,async()=>{const _0x34468a=_0x51474b;await this[_0x34468a(0x167)]();},POLLING_INTERVAL),logger[_0x51474b(0x1a4)]('['+TAG+'_CI]\x20Polling\x20started\x20with\x20interval:\x20'+POLLING_INTERVAL+_0x51474b(0x15c)));}['stopPolling'](){const _0x3a2cf9=a132_0x1ddec9,_0x36d538={'cSJWI':function(_0x3776c1,_0x22e493){return _0x3776c1(_0x22e493);}};this[_0x3a2cf9(0x1aa)]&&(_0x36d538['cSJWI'](clearInterval,this[_0x3a2cf9(0x1aa)]),this[_0x3a2cf9(0x1aa)]=null,logger[_0x3a2cf9(0x1a4)]('['+TAG+_0x3a2cf9(0x17e)));}async['shouldFailFast'](){const _0x35cb8b=a132_0x1ddec9,_0x499413={};_0x499413[_0x35cb8b(0x1a7)]=function(_0x1612f1,_0x4773ee){return _0x1612f1===_0x4773ee;},_0x499413[_0x35cb8b(0x1ae)]=function(_0x4dbeb0,_0x36ec4f){return _0x4dbeb0===_0x36ec4f;},_0x499413[_0x35cb8b(0x14f)]=function(_0x50bb1a,_0x1e8e4a){return _0x50bb1a<=_0x1e8e4a;},_0x499413[_0x35cb8b(0x134)]=function(_0x150559,_0x4f939b){return _0x150559+_0x4f939b;},_0x499413['QwapJ']=_0x35cb8b(0x16b),_0x499413['QLpPC']=function(_0x4ec775,_0x3b0df4){return _0x4ec775!==_0x3b0df4;},_0x499413[_0x35cb8b(0x144)]=function(_0x428fec,_0x47a3e6){return _0x428fec>=_0x47a3e6;},_0x499413[_0x35cb8b(0x13d)]=function(_0x23b94d,_0x52628d){return _0x23b94d+_0x52628d;},_0x499413['YeIJW']=function(_0x350371,_0x53ebc7){return _0x350371+_0x53ebc7;},_0x499413[_0x35cb8b(0x15b)]=function(_0x2490f2,_0x40cb82){return _0x2490f2>=_0x40cb82;};const _0x25d7ad=_0x499413,{failureThresholdCount:_0x40b916}=this[_0x35cb8b(0x195)];if(_0x25d7ad[_0x35cb8b(0x1a7)](_0x40b916,null)||_0x25d7ad[_0x35cb8b(0x1ae)](_0x40b916,undefined)||_0x25d7ad[_0x35cb8b(0x14f)](_0x40b916,0x0))return logger[_0x35cb8b(0x1a4)]('['+TAG+_0x35cb8b(0x165)),![];if(this[_0x35cb8b(0x16c)]){try{if(fs[_0x35cb8b(0x164)](this[_0x35cb8b(0x1b1)]))return logger[_0x35cb8b(0x1a4)]('['+TAG+_0x35cb8b(0x1a6)),!this[_0x35cb8b(0x133)][_0x35cb8b(0x1b9)]&&(this[_0x35cb8b(0x133)][_0x35cb8b(0x1b9)]=!![]),this[_0x35cb8b(0x191)](),!![];}catch(_0x2854ad){logger[_0x35cb8b(0x189)]('['+TAG+_0x35cb8b(0x187)+_0x2854ad[_0x35cb8b(0x178)]+(_0x2854ad[_0x35cb8b(0x1a5)]?_0x25d7ad['NiSdz'](_0x25d7ad[_0x35cb8b(0x159)],_0x2854ad[_0x35cb8b(0x1a5)]):''));}const _0x245238=_0x25d7ad['QLpPC'](this[_0x35cb8b(0x133)][_0x35cb8b(0x152)],undefined)?this['state'][_0x35cb8b(0x152)]:0x0;if(_0x25d7ad[_0x35cb8b(0x144)](_0x245238,_0x40b916)){logger['info']('['+TAG+_0x35cb8b(0x180)+_0x245238+_0x35cb8b(0x179)+_0x40b916+'.');try{fs[_0x35cb8b(0x1b2)](this[_0x35cb8b(0x1b1)],new Date()[_0x35cb8b(0x17c)]()),logger[_0x35cb8b(0x1a4)]('['+TAG+'_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20'+this['failFastActiveMarkerPath']),this[_0x35cb8b(0x133)]['failFastActive']=!![];}catch(_0x1485d4){logger['error']('['+TAG+'_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20'+_0x1485d4[_0x35cb8b(0x178)]+(_0x1485d4['stack']?_0x25d7ad['LTafz'](_0x25d7ad[_0x35cb8b(0x159)],_0x1485d4[_0x35cb8b(0x1a5)]):''));}return this[_0x35cb8b(0x191)](),!![];}}else{let _0x254fce;try{_0x254fce=await this[_0x35cb8b(0x171)][_0x35cb8b(0x148)]();if(!_0x254fce)return logger[_0x35cb8b(0x147)]('['+TAG+_0x35cb8b(0x194)),![];}catch(_0xfa9064){return logger['error']('['+TAG+_0x35cb8b(0x14a)+_0xfa9064[_0x35cb8b(0x178)]+(_0xfa9064['stack']?_0x25d7ad[_0x35cb8b(0x1b8)](_0x25d7ad['QwapJ'],_0xfa9064[_0x35cb8b(0x1a5)]):'')),![];}this['state']={...this[_0x35cb8b(0x188)](),..._0x254fce,'uniqueFailedTests':new Set(_0x254fce[_0x35cb8b(0x17a)]||[])};if(this[_0x35cb8b(0x133)][_0x35cb8b(0x1b9)])return logger[_0x35cb8b(0x1a4)]('['+TAG+_0x35cb8b(0x1ac)),!![];const _0x37b1f7=this['state'][_0x35cb8b(0x17a)],_0x1189f5=_0x37b1f7['size'];if(_0x25d7ad[_0x35cb8b(0x15b)](_0x1189f5,_0x40b916)){try{logger[_0x35cb8b(0x137)]('['+TAG+'_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x1189f5+_0x35cb8b(0x179)+_0x40b916+'.'),this[_0x35cb8b(0x133)][_0x35cb8b(0x1b9)]=!![];}catch(_0x24cc05){logger[_0x35cb8b(0x189)]('['+TAG+_0x35cb8b(0x163)+_0x24cc05[_0x35cb8b(0x178)]+(_0x24cc05[_0x35cb8b(0x1a5)]?_0x25d7ad[_0x35cb8b(0x1b8)](_0x25d7ad[_0x35cb8b(0x159)],_0x24cc05['stack']):''));}return!![];}}return![];}async[a132_0x1ddec9(0x149)](){const _0x4461eb=a132_0x1ddec9,_0x4227c3={};_0x4227c3[_0x4461eb(0x136)]=function(_0x4dc422,_0x425e4a){return _0x4dc422+_0x425e4a;},_0x4227c3[_0x4461eb(0x17b)]=_0x4461eb(0x16b);const _0x5cbab6=_0x4227c3;this[_0x4461eb(0x191)]();if(this[_0x4461eb(0x16c)])logger[_0x4461eb(0x1a4)]('['+TAG+'_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.');else try{const _0x4d1a0d={...this[_0x4461eb(0x133)],'uniqueFailedTests':Array[_0x4461eb(0x186)](this[_0x4461eb(0x133)][_0x4461eb(0x17a)]||new Set())};await this[_0x4461eb(0x171)][_0x4461eb(0x1af)](_0x4d1a0d),logger[_0x4461eb(0x1a4)]('['+TAG+_0x4461eb(0x173));}catch(_0xd8c57){logger['error']('['+TAG+'_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20'+_0xd8c57[_0x4461eb(0x178)]+(_0xd8c57[_0x4461eb(0x1a5)]?_0x5cbab6[_0x4461eb(0x136)](_0x5cbab6[_0x4461eb(0x17b)],_0xd8c57[_0x4461eb(0x1a5)]):''));}}}module[a132_0x1ddec9(0x14c)]=FailFastManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a133_0x249c0c=a133_0x2e0f;function a133_0x27f7(){const _0x5e3a7f=['20JQjcwz','message',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','failed','TxEhY','error',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','from','253671taAktB','CJVJZ','iterator','failFastConfig','writeState','failedTests','totalTests','existsSync','109749USFPkV','FailFastFileHelper','closeSync','recordTestResult','lastAPIFailedCount','426qqXMwW','openSync','add','knMcP','EEXIST','pULGU','2292TftGnY','lockFilePath','stringify','329vSiLnP','6746544nFpyFI',']\x20Error\x20creating\x20state\x20file:\x20','utf8','updateAPIFailedCount','EagOF','stateFilePath','readFileSync','1086yQJwVS','acquireLock','parse','newState','stack','defaultState','function','1|4|0|2|3','warn','161232dZvKcq','../logger',']\x20Error\x20writing\x20state\x20file:\x20','writeFileSync','readState','nvdKF','75095EawQkH','uniqueFailedTests','9000710RwtPku','releaseLock','code','isArray','sRzpf','has','status','fBWCA','fullName','2477rDxGxd',']\x20Error\x20releasing\x20lock:\x20','winstonLogger'];a133_0x27f7=function(){return _0x5e3a7f;};return a133_0x27f7();}(function(_0x50f5a2,_0x4502ce){const _0x20ac45=a133_0x2e0f,_0x5a46f3=_0x50f5a2();while(!![]){try{const _0x452c21=parseInt(_0x20ac45(0x169))/0x1*(-parseInt(_0x20ac45(0x192))/0x2)+parseInt(_0x20ac45(0x17c))/0x3*(-parseInt(_0x20ac45(0x16c))/0x4)+parseInt(_0x20ac45(0x15e))/0x5*(-parseInt(_0x20ac45(0x181))/0x6)+-parseInt(_0x20ac45(0x18a))/0x7*(parseInt(_0x20ac45(0x158))/0x8)+parseInt(_0x20ac45(0x18b))/0x9+-parseInt(_0x20ac45(0x160))/0xa+parseInt(_0x20ac45(0x174))/0xb*(parseInt(_0x20ac45(0x187))/0xc);if(_0x452c21===_0x4502ce)break;else _0x5a46f3['push'](_0x5a46f3['shift']());}catch(_0x1196ba){_0x5a46f3['push'](_0x5a46f3['shift']());}}}(a133_0x27f7,0xadfeb));const fs=require('fs'),logger=require(a133_0x249c0c(0x159))[a133_0x249c0c(0x16b)],TAG=a133_0x249c0c(0x17d);function a133_0x2e0f(_0xc7a25c,_0x403c80){const _0x27f793=a133_0x27f7();return a133_0x2e0f=function(_0x2e0f25,_0x1484d0){_0x2e0f25=_0x2e0f25-0x155;let _0x4cbd2c=_0x27f793[_0x2e0f25];return _0x4cbd2c;},a133_0x2e0f(_0xc7a25c,_0x403c80);}class FileHelper{constructor(_0x5d7266,_0x289c51,_0x1af442,_0x4a6af6){const _0x4afb76=a133_0x249c0c,_0x49a492={};_0x49a492[_0x4afb76(0x164)]=_0x4afb76(0x156),_0x49a492['knMcP']=_0x4afb76(0x18d);const _0x2b0e62=_0x49a492,_0x583cae=_0x2b0e62[_0x4afb76(0x164)]['split']('|');let _0x1a1a5c=0x0;while(!![]){switch(_0x583cae[_0x1a1a5c++]){case'0':this[_0x4afb76(0x188)]=_0x1af442;continue;case'1':this[_0x4afb76(0x177)]=_0x5d7266;continue;case'2':this[_0x4afb76(0x197)]=_0x4a6af6;continue;case'3':if(!fs[_0x4afb76(0x17b)](this[_0x4afb76(0x190)]))try{fs[_0x4afb76(0x15b)](this[_0x4afb76(0x190)],'{}',_0x2b0e62[_0x4afb76(0x184)]);}catch(_0x5ae944){logger[_0x4afb76(0x171)]('['+TAG+_0x4afb76(0x18c)+_0x5ae944[_0x4afb76(0x16d)]+'\x20'+_0x5ae944[_0x4afb76(0x196)]);}continue;case'4':this[_0x4afb76(0x190)]=_0x289c51;continue;}break;}}async[a133_0x249c0c(0x193)](){const _0x5c7296=a133_0x249c0c,_0x5c3880={};_0x5c3880[_0x5c7296(0x167)]=function(_0x4d1fb5,_0x4ac3d2){return _0x4d1fb5===_0x4ac3d2;},_0x5c3880[_0x5c7296(0x175)]=_0x5c7296(0x185);const _0x1b0036=_0x5c3880;let _0x3183f2;try{return _0x3183f2=fs[_0x5c7296(0x182)](this[_0x5c7296(0x188)],'wx'),_0x3183f2;}catch(_0x1fc23a){if(_0x1b0036['fBWCA'](_0x1fc23a[_0x5c7296(0x162)],_0x1b0036[_0x5c7296(0x175)]))return null;throw _0x1fc23a;}}async['releaseLock'](_0x258804){const _0x240f23=a133_0x249c0c;if(_0x258804)try{fs[_0x240f23(0x17e)](_0x258804),fs['unlinkSync'](this[_0x240f23(0x188)]);}catch(_0x1cd095){logger[_0x240f23(0x171)]('['+TAG+_0x240f23(0x16a)+_0x1cd095[_0x240f23(0x16d)]+'\x20'+_0x1cd095[_0x240f23(0x196)]);}}[a133_0x249c0c(0x15c)](){const _0x47ba7b=a133_0x249c0c,_0x7c017a={};_0x7c017a['EagOF']=_0x47ba7b(0x18d);const _0x3a7969=_0x7c017a;try{const _0x11e1aa=fs[_0x47ba7b(0x191)](this[_0x47ba7b(0x190)],_0x3a7969[_0x47ba7b(0x18f)]);return JSON['parse'](_0x11e1aa);}catch(_0x257974){return logger[_0x47ba7b(0x171)]('['+TAG+']\x20Error\x20reading\x20state\x20file:\x20'+_0x257974[_0x47ba7b(0x16d)]+'\x20'+_0x257974[_0x47ba7b(0x196)]),null;}}async[a133_0x249c0c(0x178)](_0x5ed577){const _0x3162f9=a133_0x249c0c,_0x20fd20={..._0x5ed577,'uniqueFailedTests':Array[_0x3162f9(0x163)](_0x5ed577[_0x3162f9(0x15f)])?_0x5ed577['uniqueFailedTests']:Array[_0x3162f9(0x173)](_0x5ed577[_0x3162f9(0x15f)]||[])};try{fs['writeFileSync'](this['stateFilePath'],JSON[_0x3162f9(0x189)](_0x20fd20,null,0x2));}catch(_0x3ddff7){logger[_0x3162f9(0x171)]('['+TAG+_0x3162f9(0x15a)+_0x3ddff7['message']+'\x20'+_0x3ddff7[_0x3162f9(0x196)]);throw _0x3ddff7;}}async[a133_0x249c0c(0x17f)](_0x595177,_0xd7594c){const _0x366949=a133_0x249c0c,_0x5cf707={};_0x5cf707[_0x366949(0x186)]=function(_0xf52d88,_0x2c6c02){return _0xf52d88!==_0x2c6c02;},_0x5cf707[_0x366949(0x170)]=_0x366949(0x155),_0x5cf707['nvdKF']=function(_0x4f66e7,_0x568d38){return _0x4f66e7===_0x568d38;},_0x5cf707['looxq']=_0x366949(0x16f);const _0x583dd4=_0x5cf707,_0x1497ce=await this['acquireLock']();if(!_0x1497ce)return logger[_0x366949(0x157)]('['+TAG+_0x366949(0x172)),{'newState':this[_0x366949(0x15c)]()||this[_0x366949(0x197)],'isNewFailure':![]};try{let _0x286fdc=this[_0x366949(0x15c)]();!_0x286fdc&&(_0x286fdc=JSON[_0x366949(0x194)](JSON['stringify'](this['defaultState'])));if(!_0x286fdc[_0x366949(0x15f)]||_0x583dd4[_0x366949(0x186)](typeof _0x286fdc['uniqueFailedTests'][Symbol[_0x366949(0x176)]],_0x583dd4[_0x366949(0x170)]))_0x286fdc['uniqueFailedTests']=new Set();else Array[_0x366949(0x163)](_0x286fdc[_0x366949(0x15f)])&&(_0x286fdc[_0x366949(0x15f)]=new Set(_0x286fdc[_0x366949(0x15f)]));_0x286fdc[_0x366949(0x17a)]=_0xd7594c;let _0x501f26=![];_0x583dd4[_0x366949(0x15d)](_0x595177[_0x366949(0x166)],_0x583dd4['looxq'])&&(_0x286fdc[_0x366949(0x179)]+=0x1,!_0x286fdc[_0x366949(0x15f)][_0x366949(0x165)](_0x595177['fullName'])&&(_0x286fdc[_0x366949(0x15f)][_0x366949(0x183)](_0x595177[_0x366949(0x168)]),_0x501f26=!![]));await this[_0x366949(0x178)](_0x286fdc);const _0x3624d5={};return _0x3624d5[_0x366949(0x195)]=_0x286fdc,_0x3624d5['isNewFailure']=_0x501f26,_0x3624d5;}finally{await this[_0x366949(0x161)](_0x1497ce);}}async[a133_0x249c0c(0x18e)](_0x34d823){const _0x1dded8=a133_0x249c0c,_0x49e866=await this[_0x1dded8(0x193)]();if(!_0x49e866)return logger[_0x1dded8(0x157)]('['+TAG+_0x1dded8(0x16e)),this['readState']()||this[_0x1dded8(0x197)];try{let _0x527d05=this['readState']();return!_0x527d05&&(_0x527d05=JSON[_0x1dded8(0x194)](JSON[_0x1dded8(0x189)](this[_0x1dded8(0x197)]))),_0x527d05[_0x1dded8(0x180)]=_0x34d823,await this[_0x1dded8(0x178)](_0x527d05),_0x527d05;}finally{await this['releaseLock'](_0x49e866);}}}module['exports']=FileHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a134_0x50f6ab=a134_0x5674;(function(_0x13c81e,_0x57de71){const _0x3ae5b4=a134_0x5674,_0x3cfd36=_0x13c81e();while(!![]){try{const _0x14399d=parseInt(_0x3ae5b4(0xf1))/0x1*(-parseInt(_0x3ae5b4(0xbe))/0x2)+parseInt(_0x3ae5b4(0xd0))/0x3*(parseInt(_0x3ae5b4(0xc7))/0x4)+parseInt(_0x3ae5b4(0xe7))/0x5*(-parseInt(_0x3ae5b4(0xf5))/0x6)+-parseInt(_0x3ae5b4(0xc4))/0x7+-parseInt(_0x3ae5b4(0xbf))/0x8*(parseInt(_0x3ae5b4(0xc0))/0x9)+parseInt(_0x3ae5b4(0xed))/0xa+-parseInt(_0x3ae5b4(0xe1))/0xb*(-parseInt(_0x3ae5b4(0xc8))/0xc);if(_0x14399d===_0x57de71)break;else _0x3cfd36['push'](_0x3cfd36['shift']());}catch(_0x5921ad){_0x3cfd36['push'](_0x3cfd36['shift']());}}}(a134_0x24ae,0x3d985));function a134_0x5674(_0x44eacc,_0x19a32b){const _0x24aeb9=a134_0x24ae();return a134_0x5674=function(_0x56747e,_0x2394ce){_0x56747e=_0x56747e-0xba;let _0x4811f3=_0x24aeb9[_0x56747e];return _0x4811f3;},a134_0x5674(_0x44eacc,_0x19a32b);}const os=require('os'),path=require('path'),fs=require('fs'),logger=require(a134_0x50f6ab(0xeb))[a134_0x50f6ab(0xd1)],RETRY_TESTS_ON_FAILURE='retryTestsOnFailure',ABORT_BUILD_ON_FAILURE='abortBuildOnFailure',RUN_PREVIOUSLY_FAILED_FIRST='runPreviouslyFailedFirst',RERUN_PREVIOUSLY_FAILED=a134_0x50f6ab(0xe4),SKIP_FLAKY_AND_FAILED='skipFlakyandFailed',ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set([a134_0x50f6ab(0xe0)]);class TestOrdering{constructor(){const _0x52b361=a134_0x50f6ab;this[_0x52b361(0xf2)]=![],this['name']=null;}[a134_0x50f6ab(0xdc)](_0x2204db){this['enabled']=!![],this['name']=_0x2204db;}['disable'](){const _0x46f04e=a134_0x50f6ab;this[_0x46f04e(0xf2)]=![],this[_0x46f04e(0xc9)]=null;}[a134_0x50f6ab(0xdd)](){const _0x57bd97=a134_0x50f6ab;return this[_0x57bd97(0xf2)];}[a134_0x50f6ab(0xea)](){const _0x2e37bc=a134_0x50f6ab;return this[_0x2e37bc(0xc9)];}}function a134_0x24ae(){const _0x5afe62=['runPreviouslyFailedFirst','env','jest','14795ibOtpu','exports','maxFailures','rerunPreviouslyFailed','_setRunPreviouslyFailedFirst','getOrchestrationData','2715rHCXcG','_setSkipFlakyAndFailed','getRetryCount','getName','../logger','isAbortBuildOnFailureEnabled','271960GLgppw','join','testOrderingEnabled','getRerunPreviouslyFailed','3247xNqJJp','enabled','existsSync','getRunPreviouslyFailedFirst','1698HuMscM','skip_failing_and_flaky','rerun_previously_failed','maxRetries','_setRerunPreviouslyFailed','abort_build_','258oLipRL','75312PNNpPA','72gwAqDO','getTestOrderingName','isRetryEnabled','has','553385hNUBCZ','pufPB','getFailureThreshold','15868IsGVLC','5556tXjaXj','name','testOrchestrationOptions','testOrdering','BROWSERSTACK_TESTHUB_UUID','config','disable','_setTestOrdering','249CBxkuX','winstonLogger','tmpdir','_instance','retry_tests_on_failure','checkAbortBuildFileExists','skipFlakyAndFailed','getInstance','VBJWR','isAbortBuildOnFailureSupported','failed_tests_','getBuildStartData','enable','getEnabled'];a134_0x24ae=function(){return _0x5afe62;};return a134_0x24ae();}class OrchestrationUtils{static [a134_0x50f6ab(0xd3)]=null;constructor(_0x305ebc){const _0x31ef61=a134_0x50f6ab,_0x16cab0={};_0x16cab0[_0x31ef61(0xc5)]=function(_0x56abfa,_0x70e584){return _0x56abfa||_0x70e584;};const _0x5aad0b=_0x16cab0;this[_0x31ef61(0xde)]=![],this['rerunPreviouslyFailed']=![],this[_0x31ef61(0xd6)]=![],this['testOrdering']=new TestOrdering(),this['config']=_0x5aad0b['pufPB'](_0x305ebc,{});const _0x18b02f=_0x305ebc&&_0x305ebc['testOrchestrationOptions']||{};this[_0x31ef61(0xe5)](_0x18b02f[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x31ef61(0xbc)](_0x18b02f[RERUN_PREVIOUSLY_FAILED]||![]),this['_setSkipFlakyAndFailed'](_0x18b02f[SKIP_FLAKY_AND_FAILED]||![]);}static[a134_0x50f6ab(0xd7)](_0x43b425){const _0x4ee93e=a134_0x50f6ab;return!OrchestrationUtils[_0x4ee93e(0xd3)]&&_0x43b425&&(OrchestrationUtils[_0x4ee93e(0xd3)]=new OrchestrationUtils(_0x43b425)),OrchestrationUtils['_instance'];}[a134_0x50f6ab(0xc2)](){const _0x2d2313=a134_0x50f6ab,_0x66f11f=(this[_0x2d2313(0xcd)]['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x66f11f[_0x2d2313(0xf2)];}[a134_0x50f6ab(0xe9)](){const _0x367fa4=a134_0x50f6ab,_0x13ec1a=(this[_0x367fa4(0xcd)]['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x355190=0x0;return this[_0x367fa4(0xc2)](this['config'])&&(_0x355190=_0x13ec1a[_0x367fa4(0xbb)]||0x1),_0x355190;}[a134_0x50f6ab(0xe6)](){const _0x3911f7=a134_0x50f6ab,_0x31fd55=this[_0x3911f7(0xcd)]['testOrchestrationOptions']||{},_0x1b9e45={};for(const _0x2497a3 in _0x31fd55){ALLOWED_ORCHESTRATION_KEYS['has'](_0x2497a3)&&(_0x1b9e45[_0x2497a3]=_0x31fd55[_0x2497a3]);}return _0x1b9e45;}[a134_0x50f6ab(0xd5)](){const _0x2cee3e=a134_0x50f6ab,_0x1f9949=process['env'][_0x2cee3e(0xcc)],_0x930647=path['join'](os[_0x2cee3e(0xd2)](),_0x2cee3e(0xbd)+_0x1f9949);return fs[_0x2cee3e(0xf3)](_0x930647);}['writeFailureToFile'](_0x2eca90){const _0x3a5a0e=a134_0x50f6ab,_0x42a0ec=process[_0x3a5a0e(0xdf)]['BROWSERSTACK_TESTHUB_UUID'],_0x3d0ef9=path[_0x3a5a0e(0xee)](os['tmpdir'](),_0x3a5a0e(0xda)+_0x42a0ec+'.txt');fs['appendFileSync'](_0x3d0ef9,_0x2eca90+'\x0a');}[a134_0x50f6ab(0xd9)](_0x742fc3){const _0x8cbe41=a134_0x50f6ab,_0x304cf0={};_0x304cf0[_0x8cbe41(0xd8)]=function(_0x4cb3b5,_0x43eefa){return _0x4cb3b5||_0x43eefa;};const _0x25d6d3=_0x304cf0;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x8cbe41(0xc3)](_0x25d6d3[_0x8cbe41(0xd8)](_0x742fc3,'')['toLowerCase']());}[a134_0x50f6ab(0xec)](){const _0x466e42=a134_0x50f6ab,_0xf17a9e=(this[_0x466e42(0xcd)][_0x466e42(0xca)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0xf17a9e[_0x466e42(0xf2)];}[a134_0x50f6ab(0xc6)](){const _0x361983=a134_0x50f6ab,_0x27d769=(this[_0x361983(0xcd)][_0x361983(0xca)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x27d769[_0x361983(0xe3)]||0x5;;}[a134_0x50f6ab(0xf4)](){const _0x55bb52=a134_0x50f6ab;return this[_0x55bb52(0xde)];}[a134_0x50f6ab(0xe5)](_0xdf08d0){const _0x26cfb1=a134_0x50f6ab;this[_0x26cfb1(0xde)]=!!_0xdf08d0,this[_0x26cfb1(0xcf)]();}[a134_0x50f6ab(0xf0)](){const _0x26c090=a134_0x50f6ab;return this[_0x26c090(0xe4)];}[a134_0x50f6ab(0xbc)](_0x386833){const _0x3f84ec=a134_0x50f6ab;this[_0x3f84ec(0xe4)]=!!_0x386833,this[_0x3f84ec(0xcf)]();}['getSkipFlakyAndFailed'](){return this['skipFlakyAndFailed'];}[a134_0x50f6ab(0xe8)](_0x4feb97){const _0x5d0386=a134_0x50f6ab;this[_0x5d0386(0xd6)]=!!_0x4feb97,this[_0x5d0386(0xcf)]();}['_setTestOrdering'](){const _0x25d791=a134_0x50f6ab;if(this[_0x25d791(0xde)])this[_0x25d791(0xe4)]=![],this[_0x25d791(0xd6)]=![],this['testOrdering'][_0x25d791(0xdc)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this['rerunPreviouslyFailed'])this[_0x25d791(0xde)]=![],this[_0x25d791(0xd6)]=![],this[_0x25d791(0xcb)][_0x25d791(0xdc)](RERUN_PREVIOUSLY_FAILED);else this['skipFlakyAndFailed']?(this[_0x25d791(0xde)]=![],this[_0x25d791(0xe4)]=![],this[_0x25d791(0xcb)][_0x25d791(0xdc)](SKIP_FLAKY_AND_FAILED)):this['testOrdering'][_0x25d791(0xce)]();}}[a134_0x50f6ab(0xef)](){const _0x1a3b91=a134_0x50f6ab;return this[_0x1a3b91(0xcb)]['getEnabled']();}[a134_0x50f6ab(0xc1)](){const _0x257d8d=a134_0x50f6ab;if(this[_0x257d8d(0xcb)]['getEnabled']())return this[_0x257d8d(0xcb)][_0x257d8d(0xea)]();return null;}[a134_0x50f6ab(0xdb)](){const _0x261cb3=a134_0x50f6ab,_0x8876f5={};return _0x8876f5[_0x261cb3(0xba)]={'enabled':this[_0x261cb3(0xf0)]()},_0x8876f5['run_previously_failed_first']={'enabled':this[_0x261cb3(0xf4)]()},_0x8876f5[_0x261cb3(0xf6)]={'enabled':this['getSkipFlakyAndFailed']()},this[_0x261cb3(0xc2)]()&&(_0x8876f5[_0x261cb3(0xd4)]={'enabled':!![],'max_retries':this[_0x261cb3(0xe9)]()}),this[_0x261cb3(0xec)]()&&(_0x8876f5['abort_build_on_failure']={'enabled':!![],'max_failures':this[_0x261cb3(0xc6)]()}),_0x8876f5;}}module[a134_0x50f6ab(0xe2)]=OrchestrationUtils;
|