browserstack-node-sdk 1.53.1 → 1.53.3
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 +6 -4
- 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/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.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/puppeteer-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/puppeteerAutomationFramework.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/puppeteerDriverModule.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/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a136_0x436c(){const _0x4282be=['3541446SKfijm','buildDescription','error','10vyHzyr','Log_Upload','app','yEbQj','kxvWK','WbuwC','uXOfq','Authorization','./requestQueueHandler','eventUrl','QKCHx','\x20REQUEST\x20TO\x20','null','hAuwt','7017392KdHwUh','iOMDa','SZzwS','LHLAn','POST','ERROR_INVALID_CREDENTIALS','ytWxo','TestRunSkipped','toISOString','sendTraceZip','MiWwu','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','../../helpers/testhub/utils','includes','5144840ncRavv','Batch-Queue','xZPiq','test_run_uuid','VLrwJ','BS_TESTOPS_BUILD_COMPLETED','YAhLv','requestQueueHandler','getGitMetaData','qtvWq','./utils','projectName','\x20failed\x20due\x20to\x20','\x20retry\x20runs\x20exceeded','sendEventData','BS_TESTOPS_ALLOW_SCREENSHOTS','launch','871686POUDUR','success','LogCreated','1737421FwIPvg','CAJWA','Test_Start_Upload','\x20:\x20','ygJIr','700696EChYyy','zSsbY','imWKh','Content-Type','Processing\x20event\x20-\x20\x27','username','LYbWj','cwd','zAJvi','pendingUploads','TWYsR','uploadEventData','38388196DlHRdP','Build\x20creation\x20successful!','stringify','debug','flNSB','errorType','buildName','EIAMs','mUkRj','15bODBwW','VDCrl','hook_run','Data\x20upload\x20to\x20BrowserStack\x20','env','logs','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','getAgentVersion','mDKqm','ObePC','BROWSERSTACK_BUILD_RUN_IDENTIFIER','hOkuy','TestRunStarted','api/v1/event','jwt','24gLVitR','BROWSERSTACK_RERUN','BROWSERSTACK_TESTHUB_JWT','true','event_type','TEST_REPORTING_ANALYTICS','qEpkr','RQnye','statusText','frameworkName','CnjVD','../../bin/utils/constants','waitForBuildStatus','nestedKeyValue','jaVll','VKLFd','BS_A11Y_JWT','../logger','max','info','allow_screenshots','buildIdentifier','false','headers','nxemm','getInstance','message','CBT_Upload','Test_End_Upload','HookRunFinished','YcLFH','MkKLS','CBTSessionCreated','VCJNh',']\x20event\x20successful!','VaySo','exports','add','Retry\x20runs\x20exceeded','euSqM','status','EXCEPTION\x20IN\x20','response','length','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','Hook_End_Upload','build_hashed_id','password','Bearer\x20','iqJMD','ERROR_SDK_DEPRECATED','data','Sending\x20trace\x20zip\x20for\x20test:\x20','BS_TESTOPS_JWT','chdKO','stVvE','inspect','format','\x20:\x20missing\x20authentication\x20token','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','browserstackAutomation','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','frameworkVersion','getLogTag','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','RTsbo','wyshN','RIwDh','oihAP','sGnYa','BS_TESTOPS_BUILD_HASHED_ID','X-BSTACK-TESTOPS','yVyWF','1RwSgvS','getAccessKey','JWVlX','CHmrS','BROWSERSTACK_TESTHUB_UUID','wNroW','gdaOh'];a136_0x436c=function(){return _0x4282be;};return a136_0x436c();}const a136_0x3924ec=a136_0x5294;(function(_0x537742,_0x5b7120){const _0x25abcc=a136_0x5294,_0x381821=_0x537742();while(!![]){try{const _0x1b4455=-parseInt(_0x25abcc(0x22b))/0x1*(-parseInt(_0x25abcc(0x262))/0x2)+-parseInt(_0x25abcc(0x27f))/0x3*(parseInt(_0x25abcc(0x26a))/0x4)+-parseInt(_0x25abcc(0x251))/0x5+parseInt(_0x25abcc(0x28e))/0x6*(-parseInt(_0x25abcc(0x265))/0x7)+-parseInt(_0x25abcc(0x243))/0x8+parseInt(_0x25abcc(0x232))/0x9*(parseInt(_0x25abcc(0x235))/0xa)+parseInt(_0x25abcc(0x276))/0xb;if(_0x1b4455===_0x5b7120)break;else _0x381821['push'](_0x381821['shift']());}catch(_0xed5cfb){_0x381821['push'](_0x381821['shift']());}}}(a136_0x436c,0x84e5d));function a136_0x5294(_0x14364b,_0x23ad43){const _0x436c14=a136_0x436c();return a136_0x5294=function(_0x5294e5,_0x44551d){_0x5294e5=_0x5294e5-0x1e4;let _0x1defc8=_0x436c14[_0x5294e5];return _0x1defc8;},a136_0x5294(_0x14364b,_0x23ad43);}const bsSetupHelper=require('../helper'),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a136_0x3924ec(0x25b)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a136_0x3924ec(0x23d)),logger=require(a136_0x3924ec(0x1f3))['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a136_0x3924ec(0x24f)),util=require('util'),constants=require(a136_0x3924ec(0x1ed));class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler[a136_0x3924ec(0x1fb)]();static async[a136_0x3924ec(0x261)](_0x547e78,_0xdc2068){const _0x3ffe00=a136_0x3924ec,_0x4a7ace={'zAJvi':function(_0x14545b,_0x5b3468){return _0x14545b||_0x5b3468;},'MiWwu':function(_0x4f42b8,_0x29fce9){return _0x4f42b8===_0x29fce9;},'hAuwt':function(_0x27c6bb,_0xe7ff64){return _0x27c6bb(_0xe7ff64);},'iqJMD':_0x3ffe00(0x21f),'euSqM':_0x3ffe00(0x1f8),'CAJWA':'json','zSsbY':function(_0x278be5,_0x141538){return _0x278be5(_0x141538);},'VaySo':function(_0x2387a5,_0x25f477,_0x322565,_0x485922,_0x3887d0){return _0x2387a5(_0x25f477,_0x322565,_0x485922,_0x3887d0);},'QKCHx':_0x3ffe00(0x247),'YcLFH':'api/v1/builds','mDKqm':function(_0x2e6758,_0x2b5ab9){return _0x2e6758(_0x2b5ab9);},'imWKh':_0x3ffe00(0x277),'tSMde':function(_0x965341){return _0x965341();},'YAhLv':'true','LYbWj':_0x3ffe00(0x241),'CHmrS':_0x3ffe00(0x248),'sVQQl':'ERROR_ACCESS_DENIED','yVyWF':_0x3ffe00(0x214)};logger[_0x3ffe00(0x1f5)](_0x3ffe00(0x20e)+util[_0x3ffe00(0x21a)](_0x547e78));const _0x458cae=bsSetupHelper['getUserName'](_0x547e78),_0x8f5bf2=bsSetupHelper[_0x3ffe00(0x22c)](_0x547e78),_0x378973=_0x4a7ace[_0x3ffe00(0x272)](_0x458cae,'')+':'+_0x4a7ace[_0x3ffe00(0x272)](_0x8f5bf2,'');if(_0x4a7ace[_0x3ffe00(0x24d)](_0x378973,':'))return _0x4a7ace[_0x3ffe00(0x242)](debug,_0x4a7ace[_0x3ffe00(0x213)]),process[_0x3ffe00(0x283)][_0x3ffe00(0x256)]=_0x4a7ace[_0x3ffe00(0x209)],[null,null];let _0x3f21f1=![],_0x575d5f=![];if(_0x547e78[_0x3ffe00(0x21e)]&&_0x547e78[_0x3ffe00(0x237)])_0x575d5f=!![];else _0x547e78[_0x3ffe00(0x21e)]&&(_0x3f21f1=!![]);try{const _0x90ac9e={'format':_0x4a7ace[_0x3ffe00(0x266)],'project_name':_0x547e78[_0x3ffe00(0x25c)]||'','name':_0x547e78[_0x3ffe00(0x27c)]||path['basename'](path['resolve'](process[_0x3ffe00(0x271)]())),'build_identifier':_0x547e78[_0x3ffe00(0x1f7)],'description':_0x547e78[_0x3ffe00(0x233)]||'','start_time':new Date()[_0x3ffe00(0x24b)](),'tags':_0x4a7ace['hAuwt'](getCustomTags,_0x547e78),'host_info':bsSetupHelper['getHostInfo'](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process[_0x3ffe00(0x283)][_0x3ffe00(0x289)],'failed_tests_rerun':process[_0x3ffe00(0x283)][_0x3ffe00(0x28f)]||![],'version_control':await bsSetupHelper[_0x3ffe00(0x259)](),'observability_version':{'frameworkName':_0xdc2068[_0x3ffe00(0x1eb)],'frameworkVersion':_0xdc2068[_0x3ffe00(0x220)],'sdkVersion':bsSetupHelper[_0x3ffe00(0x286)]()},'product_map':_0x4a7ace[_0x3ffe00(0x26b)](getProductMap,_0x547e78),'test_orchestration':_0x4a7ace[_0x3ffe00(0x26b)](getTestOrchestrationBuildStartData,_0x547e78)},_0x284460={};_0x284460[_0x3ffe00(0x26f)]=_0x458cae,_0x284460[_0x3ffe00(0x211)]=_0x8f5bf2;const _0x5ee03e={'auth':_0x284460,'headers':_0x4a7ace[_0x3ffe00(0x242)](getDefaultHeaders,![])},_0x347979=await _0x4a7ace[_0x3ffe00(0x205)](nodeRequest,_0x4a7ace[_0x3ffe00(0x23f)],_0x4a7ace[_0x3ffe00(0x200)],_0x90ac9e,_0x5ee03e);_0x4a7ace[_0x3ffe00(0x287)](debug,_0x4a7ace[_0x3ffe00(0x26c)]);const _0x31cb00=_0x347979[_0x3ffe00(0x215)];_0x31cb00[_0x3ffe00(0x210)]&&(process['env'][_0x3ffe00(0x22f)]=_0x31cb00[_0x3ffe00(0x210)]);if(_0x4a7ace['tSMde'](isTestObservabilitySession)){process[_0x3ffe00(0x283)]['BS_TESTOPS_BUILD_COMPLETED']=_0x4a7ace[_0x3ffe00(0x257)];if(_0x31cb00[_0x3ffe00(0x28d)]){process[_0x3ffe00(0x283)][_0x3ffe00(0x217)]=_0x31cb00['jwt'];const _0x30427b={};_0x30427b[_0x3ffe00(0x26f)]=_0x458cae,_0x30427b[_0x3ffe00(0x211)]=_0x8f5bf2,process[_0x3ffe00(0x283)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x3ffe00(0x278)](_0x30427b);}_0x31cb00[_0x3ffe00(0x210)]&&(process[_0x3ffe00(0x283)][_0x3ffe00(0x228)]=_0x31cb00['build_hashed_id']),_0x31cb00['allow_screenshots']&&(process[_0x3ffe00(0x283)][_0x3ffe00(0x260)]=_0x31cb00[_0x3ffe00(0x1f6)]['toString']());}return[_0x347979['data'][_0x3ffe00(0x28d)],_0x347979['data'][_0x3ffe00(0x210)],_0x347979[_0x3ffe00(0x215)][_0x3ffe00(0x1f6)]];}catch(_0x355892){process['env'][_0x3ffe00(0x22f)]=_0x4a7ace['LYbWj'],process[_0x3ffe00(0x283)][_0x3ffe00(0x256)]=_0x4a7ace['euSqM'],process[_0x3ffe00(0x283)][_0x3ffe00(0x217)]=_0x4a7ace[_0x3ffe00(0x270)],process['env'][_0x3ffe00(0x228)]=_0x4a7ace['LYbWj'],process[_0x3ffe00(0x283)][_0x3ffe00(0x260)]=_0x4a7ace['LYbWj'];_0x355892[_0x3ffe00(0x20c)]?_0x4a7ace[_0x3ffe00(0x287)](debug,_0x3ffe00(0x24e)+_0x355892[_0x3ffe00(0x20c)]['status']+'\x20'+_0x355892[_0x3ffe00(0x20c)][_0x3ffe00(0x1ea)]+'\x20'+JSON[_0x3ffe00(0x278)](_0x355892['response'][_0x3ffe00(0x215)])):_0x4a7ace[_0x3ffe00(0x242)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+(_0x355892[_0x3ffe00(0x1fc)]||_0x355892));if(_0x355892&&_0x355892[_0x3ffe00(0x1fc)]){const _0x1fe129=_0x355892['message'];switch(_0x355892[_0x3ffe00(0x27b)]){case _0x4a7ace[_0x3ffe00(0x22e)]:logger[_0x3ffe00(0x234)](_0x1fe129);break;case _0x4a7ace['sVQQl']:logger[_0x3ffe00(0x1f5)](_0x1fe129);break;case _0x4a7ace[_0x3ffe00(0x22a)]:logger[_0x3ffe00(0x234)](_0x1fe129);break;default:logger[_0x3ffe00(0x234)](_0x1fe129);}}else console[_0x3ffe00(0x1f5)](_0x3ffe00(0x282)+constants[_0x3ffe00(0x1e7)]+_0x3ffe00(0x25d)+_0x355892);return[null,null,null];}}static async[a136_0x3924ec(0x1ee)](){const _0x35f4e9=a136_0x3924ec,_0x9810bf={'oihAP':_0x35f4e9(0x1e5),'qtvWq':'false','ObePC':function(_0x105f20,_0x2c2593){return _0x105f20(_0x2c2593);}},_0x399e0d=process[_0x35f4e9(0x283)]['BS_TESTOPS_BUILD_COMPLETED'];if([_0x9810bf[_0x35f4e9(0x226)],_0x9810bf['qtvWq']]['includes'](_0x399e0d))return;while([_0x9810bf['oihAP'],_0x9810bf[_0x35f4e9(0x25a)]][_0x35f4e9(0x250)](_0x399e0d)){await _0x9810bf[_0x35f4e9(0x288)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a136_0x3924ec(0x221)](_0x3416dd){const _0x4d948f=a136_0x3924ec,_0x38f376={};_0x38f376[_0x4d948f(0x225)]=_0x4d948f(0x267),_0x38f376[_0x4d948f(0x1f1)]=_0x4d948f(0x1fe),_0x38f376[_0x4d948f(0x22d)]='Test_Skipped_Upload',_0x38f376['vXZMg']=_0x4d948f(0x236),_0x38f376[_0x4d948f(0x203)]='Hook_Start_Upload',_0x38f376[_0x4d948f(0x27a)]=_0x4d948f(0x20f),_0x38f376[_0x4d948f(0x239)]=_0x4d948f(0x1fd);const _0x33b301=_0x38f376,_0x5e51ad={};return _0x5e51ad[_0x4d948f(0x28b)]=_0x33b301[_0x4d948f(0x225)],_0x5e51ad['TestRunFinished']=_0x33b301[_0x4d948f(0x1f1)],_0x5e51ad[_0x4d948f(0x24a)]=_0x33b301[_0x4d948f(0x22d)],_0x5e51ad[_0x4d948f(0x264)]=_0x33b301['vXZMg'],_0x5e51ad['HookRunStarted']=_0x33b301[_0x4d948f(0x203)],_0x5e51ad[_0x4d948f(0x1ff)]=_0x33b301['flNSB'],_0x5e51ad[_0x4d948f(0x202)]=_0x33b301['kxvWK'],_0x5e51ad[_0x3416dd[_0x4d948f(0x1e6)]];}static async[a136_0x3924ec(0x25f)](_0x18d26e,_0x3e1302=0x0,_0x4f744c=null){const _0x3d74bf=a136_0x3924ec,_0x4a6bf4={'MkKLS':function(_0x3a34ee,_0x3ff8f2){return _0x3a34ee===_0x3ff8f2;},'iOMDa':_0x3d74bf(0x24c),'wNroW':function(_0x3fea55,_0x59c41f){return _0x3fea55!==_0x59c41f;},'wyshN':'application/json','SiicY':'true','TWYsR':function(_0x47ab6e,_0x5d5001,_0x21c2f6,_0x5ef2f6,_0x27caa5){return _0x47ab6e(_0x5d5001,_0x21c2f6,_0x5ef2f6,_0x27caa5);},'yEbQj':_0x3d74bf(0x247),'chdKO':function(_0x4ec748,_0x1ad706){return _0x4ec748(_0x1ad706);},'hOkuy':function(_0x3407c1,_0x1b9f17){return _0x3407c1!==_0x1b9f17;},'RQnye':_0x3d74bf(0x252),'VDafM':function(_0x5de15b,_0x3b808a){return _0x5de15b-_0x3b808a;},'SZzwS':_0x3d74bf(0x28c),'cBVZG':_0x3d74bf(0x263),'VDCrl':function(_0x5ea8b5,_0x50db30){return _0x5ea8b5(_0x50db30);},'WbuwC':function(_0x18b6ab,_0x18e36f){return _0x18b6ab-_0x18e36f;},'JYHuP':_0x3d74bf(0x234)};_0x4a6bf4[_0x3d74bf(0x201)](_0x4f744c,_0x4a6bf4[_0x3d74bf(0x244)])&&logger[_0x3d74bf(0x279)](_0x3d74bf(0x216)+_0x18d26e[_0x3d74bf(0x284)][0x0][_0x3d74bf(0x254)]);const _0x2feb07=await this[_0x3d74bf(0x221)](_0x18d26e);let _0x4bc6ad=_0x18d26e,_0x47967b=EVENT_ENDPOINT;_0x4a6bf4['wNroW'](_0x4f744c,_0x4a6bf4[_0x3d74bf(0x244)])&&this[_0x3d74bf(0x258)]['start']();const {shouldProceed:_0x512d50,proceedWithData:_0x273622,proceedWithUrl:_0x15b67d}=this[_0x3d74bf(0x258)][_0x3d74bf(0x207)](_0x18d26e);if(!_0x512d50)return;else _0x273622&&(_0x4bc6ad=_0x273622,_0x47967b=_0x15b67d);const _0x8bc202={};_0x8bc202[_0x3d74bf(0x23c)]=_0x3d74bf(0x212)+process[_0x3d74bf(0x283)][_0x3d74bf(0x1e4)],_0x8bc202[_0x3d74bf(0x26d)]=_0x4a6bf4[_0x3d74bf(0x224)],_0x8bc202[_0x3d74bf(0x229)]=_0x4a6bf4['SiicY'];const _0x296322={};_0x296322[_0x3d74bf(0x1f9)]=_0x8bc202;const _0x485c58=_0x296322;let _0x599da6;try{_0x4a6bf4[_0x3d74bf(0x201)](_0x4f744c,_0x4a6bf4[_0x3d74bf(0x244)])?(logger[_0x3d74bf(0x279)](_0x3d74bf(0x222)+_0x18d26e?.[_0x3d74bf(0x284)][0x0]?.[_0x3d74bf(0x254)]),_0x599da6=await _0x4a6bf4[_0x3d74bf(0x274)](asyncAwaitNodeReq,_0x4a6bf4[_0x3d74bf(0x238)],_0x47967b,_0x4bc6ad,_0x485c58),logger['debug'](_0x3d74bf(0x285)+_0x18d26e?.['logs'][0x0]?.['test_run_uuid'])):_0x599da6=await _0x4a6bf4[_0x3d74bf(0x274)](nodeRequest,_0x4a6bf4[_0x3d74bf(0x238)],_0x47967b,_0x4bc6ad,_0x485c58);if(_0x599da6[_0x3d74bf(0x215)]['error']){const _0x314eaa={};_0x314eaa['message']=_0x599da6[_0x3d74bf(0x215)][_0x3d74bf(0x234)];throw _0x314eaa;}else{_0x4a6bf4[_0x3d74bf(0x218)](debug,(_0x4a6bf4[_0x3d74bf(0x28a)](_0x47967b,this[_0x3d74bf(0x258)][_0x3d74bf(0x23e)])?_0x2feb07:_0x4a6bf4[_0x3d74bf(0x1e9)])+'['+_0x3e1302+_0x3d74bf(0x204)),this[_0x3d74bf(0x258)][_0x3d74bf(0x273)]=Math[_0x3d74bf(0x1f4)](0x0,_0x4a6bf4['VDafM'](this[_0x3d74bf(0x258)][_0x3d74bf(0x273)],_0x4a6bf4[_0x3d74bf(0x201)](_0x47967b,_0x4a6bf4[_0x3d74bf(0x245)])?0x1:_0x4bc6ad[_0x3d74bf(0x20d)]));const _0x553a4b={};return _0x553a4b[_0x3d74bf(0x20a)]=_0x4a6bf4['cBVZG'],_0x553a4b[_0x3d74bf(0x1fc)]='',_0x553a4b;}}catch(_0x149504){_0x149504[_0x3d74bf(0x20c)]?_0x4a6bf4['chdKO'](debug,'EXCEPTION\x20IN\x20'+(_0x4a6bf4[_0x3d74bf(0x28a)](_0x47967b,this[_0x3d74bf(0x258)]['eventUrl'])?_0x2feb07:_0x4a6bf4[_0x3d74bf(0x1e9)])+_0x3d74bf(0x240)+constants[_0x3d74bf(0x1e7)]+_0x3d74bf(0x268)+_0x149504[_0x3d74bf(0x20c)][_0x3d74bf(0x20a)]+'\x20'+_0x149504['response'][_0x3d74bf(0x1ea)]+'\x20'+util[_0x3d74bf(0x21b)](_0x149504['response'][_0x3d74bf(0x215)])):_0x4a6bf4[_0x3d74bf(0x280)](debug,_0x3d74bf(0x20b)+(_0x4a6bf4[_0x3d74bf(0x230)](_0x47967b,this['requestQueueHandler']['eventUrl'])?_0x2feb07:_0x4a6bf4[_0x3d74bf(0x1e9)])+_0x3d74bf(0x240)+constants['TEST_REPORTING_ANALYTICS']+'\x20:\x20'+util[_0x3d74bf(0x21b)](_0x149504));this[_0x3d74bf(0x258)]['pendingUploads']=Math[_0x3d74bf(0x1f4)](0x0,_0x4a6bf4[_0x3d74bf(0x23a)](this[_0x3d74bf(0x258)]['pendingUploads'],_0x4a6bf4['MkKLS'](_0x47967b,_0x4a6bf4['SZzwS'])?0x1:_0x4bc6ad[_0x3d74bf(0x20d)]));const _0x3c5ee5={};return _0x3c5ee5[_0x3d74bf(0x20a)]=_0x4a6bf4['JYHuP'],_0x3c5ee5[_0x3d74bf(0x1fc)]=_0x149504[_0x3d74bf(0x1fc)]||(_0x149504[_0x3d74bf(0x20c)]?_0x149504[_0x3d74bf(0x20c)][_0x3d74bf(0x20a)]+':'+_0x149504[_0x3d74bf(0x20c)][_0x3d74bf(0x1ea)]:_0x149504),_0x3c5ee5;}}static async[a136_0x3924ec(0x275)](_0x21ee43,_0xd549c4=0x0){const _0x520941=a136_0x3924ec,_0x4353af={'uXOfq':function(_0x250855,_0x38765d){return _0x250855+_0x38765d;},'stVvE':function(_0x2de563,_0x9dc05){return _0x2de563(_0x9dc05);},'sGnYa':'test_run','LHLAn':'uuid','DPgnl':_0x520941(0x281),'VLrwJ':function(_0x18df18,_0x26ef67,_0x554ff1){return _0x18df18(_0x26ef67,_0x554ff1);},'EIAMs':_0x520941(0x275),'ytWxo':function(_0x258643,_0x4e0eb3){return _0x258643===_0x4e0eb3;},'mUkRj':function(_0x2d43a4,_0x1e00da){return _0x2d43a4!==_0x1e00da;},'RTsbo':_0x520941(0x241),'qEpkr':function(_0x5cf3c2,_0x550678){return _0x5cf3c2===_0x550678;},'jaVll':'true','xRYjG':function(_0x507eb8){return _0x507eb8();},'NpWbD':function(_0x10a4f2,_0x81827){return _0x10a4f2-_0x81827;},'GvoTJ':_0x520941(0x234),'CnjVD':'Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','nxemm':function(_0x4ca043,_0x26cac4){return _0x4ca043>=_0x26cac4;},'xZPiq':function(_0x3bdd2d,_0x35d80d){return _0x3bdd2d!==_0x35d80d;},'vmatb':function(_0x3dedcd,_0x6c01){return _0x3dedcd-_0x6c01;},'gdaOh':_0x520941(0x208),'ygJIr':_0x520941(0x1f8)},_0x30596d=this['getLogTag'](_0x21ee43);_0x4353af[_0x520941(0x219)](trace,_0x520941(0x26e)+_0x21ee43[_0x520941(0x1e6)]+'\x27\x20'+(bsSetupHelper[_0x520941(0x1ef)](_0x21ee43,[_0x4353af[_0x520941(0x227)],_0x4353af[_0x520941(0x246)]])||bsSetupHelper[_0x520941(0x1ef)](_0x21ee43,[_0x4353af['DPgnl'],_0x4353af['LHLAn']])));if(!_0x4353af[_0x520941(0x255)](shouldProcessEventForTesthub,_0x21ee43[_0x520941(0x1e6)],_0x4353af[_0x520941(0x27d)]))return;_0x4353af[_0x520941(0x249)](_0xd549c4,0x0)&&process[_0x520941(0x283)][_0x520941(0x1e4)]&&_0x4353af[_0x520941(0x27e)](process[_0x520941(0x283)][_0x520941(0x1e4)],_0x4353af[_0x520941(0x223)])&&(this[_0x520941(0x258)][_0x520941(0x273)]+=0x1);if(_0x4353af[_0x520941(0x1e8)](process[_0x520941(0x283)][_0x520941(0x256)],_0x4353af[_0x520941(0x1f0)])||process[_0x520941(0x283)][_0x520941(0x1f2)]||_0x4353af['xRYjG'](isPercyBuild)){if(_0x4353af['ytWxo'](process[_0x520941(0x283)][_0x520941(0x1e4)],_0x4353af[_0x520941(0x223)])){_0x4353af[_0x520941(0x219)](debug,'EXCEPTION\x20IN\x20'+_0x30596d+'\x20REQUEST\x20TO\x20'+constants[_0x520941(0x1e7)]+_0x520941(0x21c)),this[_0x520941(0x258)]['pendingUploads']=Math[_0x520941(0x1f4)](0x0,_0x4353af['NpWbD'](this[_0x520941(0x258)]['pendingUploads'],0x1));const _0x536e84={};return _0x536e84[_0x520941(0x20a)]=_0x4353af['GvoTJ'],_0x536e84[_0x520941(0x1fc)]=_0x4353af[_0x520941(0x1ec)],_0x536e84;}return await this['sendEventData'](_0x21ee43,_0xd549c4);}else{if(_0x4353af[_0x520941(0x1fa)](_0xd549c4,0x5)){_0x4353af[_0x520941(0x219)](debug,_0x520941(0x20b)+_0x30596d+_0x520941(0x240)+constants[_0x520941(0x1e7)]+_0x520941(0x21d)+_0x30596d+_0x520941(0x25e));_0x4353af[_0x520941(0x253)](process[_0x520941(0x283)][_0x520941(0x1e4)],_0x4353af['RTsbo'])&&(this[_0x520941(0x258)][_0x520941(0x273)]=Math[_0x520941(0x1f4)](0x0,_0x4353af['vmatb'](this[_0x520941(0x258)][_0x520941(0x273)],0x1)));const _0x267d0c={};return _0x267d0c[_0x520941(0x20a)]=_0x4353af['GvoTJ'],_0x267d0c[_0x520941(0x1fc)]=_0x4353af[_0x520941(0x231)],_0x267d0c;}else _0x4353af[_0x520941(0x253)](process[_0x520941(0x283)]['BS_TESTOPS_BUILD_COMPLETED'],_0x4353af[_0x520941(0x269)])&&_0x4353af[_0x520941(0x255)](setTimeout,()=>{const _0x26c02b=_0x520941;this['uploadEventData'](_0x21ee43,_0x4353af[_0x26c02b(0x23b)](_0xd549c4,0x1));},0x3e8);}}}module[a136_0x3924ec(0x206)]=SessionHandler;
|
|
1
|
+
function a136_0x1a43(_0x5c71c3,_0x582d28){const _0x2ff5ca=a136_0x2ff5();return a136_0x1a43=function(_0x1a43cf,_0x11adfb){_0x1a43cf=_0x1a43cf-0xa1;let _0x593f4c=_0x2ff5ca[_0x1a43cf];return _0x593f4c;},a136_0x1a43(_0x5c71c3,_0x582d28);}function a136_0x2ff5(){const _0x5ca112=['2CNppjd','waitForBuildStatus','SkhYX','CBTSessionCreated','pendingUploads','info','XcCUw','gzzpN','\x20:\x20','includes','NxgaT','EYKWr','toString','frameworkVersion','getUserName','uapRp','event_type','eIQkj','status','BS_TESTOPS_BUILD_COMPLETED','BS_TESTOPS_ALLOW_SCREENSHOTS','wOHLW','cRApt','jtSWU','error','9nfnFiG','eiXpk','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','../../bin/utils/constants','xhDqk','aLphN','QKdMZ','getGitMetaData','Retry\x20runs\x20exceeded','KDrqC','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','hook_run','Bearer\x20','piGUH','qYFOq','cwd','Sending\x20trace\x20zip\x20for\x20test:\x20','allow_screenshots','ZpGgw','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','logs','MBwCx','MzDPY','Log_Upload','message','\x20:\x20missing\x20authentication\x20token','data','Oyzvq','qApAS','uTQyo','HookRunStarted','projectName','length','TqtVs','KDfyJ','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','8784559BgihTh','TestRunStarted','WMHUL','Hook_End_Upload','TestRunSkipped','jwt','success','fTIGl','XVEHx','aKdIJ','util','BS_A11Y_JWT','api/v1/event','json','mLRxX','LogCreated','BROWSERSTACK_TESTHUB_JWT','username','5FZKQhU','Content-Type','build_hashed_id','pgKlg','VJFwI','2552740RaRZHx','POST','X-BSTACK-TESTOPS','TEST_REPORTING_ANALYTICS','afBfa','uploadEventData','\x20REQUEST\x20TO\x20','gSnCR','basename','getLogTag','env','api/v1/builds','Data\x20upload\x20to\x20BrowserStack\x20','otnwG','buildIdentifier','nwDsv','false','poAaF','tlsnk','gllFk','inspect','gKrWC','XLwGI','\x20failed\x20due\x20to\x20','true','./requestQueueHandler','znqgq','stringify','test_run_uuid','cFuOb','sendEventData','575147DptMsr','2446902ZPBYQw','cZDcJ','buildName','QaMFK','sendTraceZip','getHostInfo','format','ATRjh','2915144SYlDQz','BROWSERSTACK_BUILD_RUN_IDENTIFIER','application/json','jkYia','BROWSERSTACK_RERUN','ikokc','Authorization','Dhnmh','path','ERROR_ACCESS_DENIED','start','getAgentVersion','browserstackAutomation','TeHUW','NCdsr','max','statusText','nestedKeyValue','QylSk','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','getAccessKey','Test_Start_Upload','../../helpers/testhub/utils','../helper','1616120OZaGWn','nvDfK','fjYBI',']\x20event\x20successful!','response','winstonLogger','BROWSERSTACK_TESTHUB_UUID','null','WcGYl','PjVFB','gRoBE','eventUrl','password','BS_TESTOPS_BUILD_HASHED_ID','launch','requestQueueHandler','uuid','test_run','CREDENTIALS_FOR_CRASH_REPORTING','app','resolve','./constants','635622aAcroj','Ubmkh','ERROR_SDK_DEPRECATED','44utpPFy','EXCEPTION\x20IN\x20','ERROR_INVALID_CREDENTIALS','Hook_Start_Upload','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','debug','\x20retry\x20runs\x20exceeded','BS_TESTOPS_JWT','buildDescription'];a136_0x2ff5=function(){return _0x5ca112;};return a136_0x2ff5();}const a136_0x3ad4e4=a136_0x1a43;(function(_0x217a54,_0x3131d0){const _0x51373a=a136_0x1a43,_0x5a7690=_0x217a54();while(!![]){try{const _0x107b66=parseInt(_0x51373a(0x12c))/0x1*(parseInt(_0x51373a(0xb9))/0x2)+-parseInt(_0x51373a(0x12d))/0x3+parseInt(_0x51373a(0x10d))/0x4*(parseInt(_0x51373a(0x108))/0x5)+parseInt(_0x51373a(0xad))/0x6+parseInt(_0x51373a(0xf6))/0x7+parseInt(_0x51373a(0x135))/0x8*(-parseInt(_0x51373a(0xd2))/0x9)+-parseInt(_0x51373a(0x14d))/0xa*(parseInt(_0x51373a(0xb0))/0xb);if(_0x107b66===_0x3131d0)break;else _0x5a7690['push'](_0x5a7690['shift']());}catch(_0x240071){_0x5a7690['push'](_0x5a7690['shift']());}}}(a136_0x2ff5,0xb68d3));const bsSetupHelper=require(a136_0x3ad4e4(0x14c)),path=require(a136_0x3ad4e4(0x13d)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a136_0x3ad4e4(0xac)),RequestQueueHandler=require(a136_0x3ad4e4(0x126)),logger=require('../logger')[a136_0x3ad4e4(0x152)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a136_0x3ad4e4(0x14b)),util=require(a136_0x3ad4e4(0x100)),constants=require(a136_0x3ad4e4(0xd5));class SessionHandler{static [a136_0x3ad4e4(0xa6)]=RequestQueueHandler['getInstance']();static async[a136_0x3ad4e4(0xa5)](_0x3cf190,_0x5b4bd0){const _0x1daef0=a136_0x3ad4e4,_0x480bff={'qApAS':function(_0x2dfd74,_0x591d78){return _0x2dfd74||_0x591d78;},'NxgaT':function(_0x36a2f0,_0x1b9912){return _0x36a2f0===_0x1b9912;},'uTQyo':function(_0x3abdc5,_0x325042){return _0x3abdc5(_0x325042);},'LBldh':_0x1daef0(0xd4),'gllFk':_0x1daef0(0x11d),'nvDfK':_0x1daef0(0x103),'XVEHx':function(_0xbf2888,_0x2fb270){return _0xbf2888(_0x2fb270);},'ATRjh':function(_0x51859c,_0x2fd3b3){return _0x51859c(_0x2fd3b3);},'piGUH':function(_0x50f48c,_0x1db8d2){return _0x50f48c(_0x1db8d2);},'HLlxc':function(_0x5d6534,_0x1c817c,_0x501ef2,_0x35abbb,_0x22457d){return _0x5d6534(_0x1c817c,_0x501ef2,_0x35abbb,_0x22457d);},'aKdIJ':'POST','PLldG':_0x1daef0(0x118),'QUPUA':function(_0x33d33f,_0x427aea){return _0x33d33f(_0x427aea);},'eiXpk':'Build\x20creation\x20successful!','LTbSE':function(_0x4fc62c){return _0x4fc62c();},'poAaF':_0x1daef0(0x125),'otnwG':'null','MzDPY':function(_0x475f1d,_0x55ca31){return _0x475f1d(_0x55ca31);},'cZDcJ':function(_0x4f5a07,_0x2090cd){return _0x4f5a07(_0x2090cd);},'XCrba':_0x1daef0(0xb2),'cRApt':_0x1daef0(0x13e),'pgKlg':_0x1daef0(0xaf)};logger[_0x1daef0(0xbe)](_0x1daef0(0xe5)+util[_0x1daef0(0x121)](_0x3cf190));const _0x52147b=bsSetupHelper[_0x1daef0(0xc7)](_0x3cf190),_0x4f9c0d=bsSetupHelper[_0x1daef0(0x149)](_0x3cf190),_0x45d7b9=_0x480bff['qApAS'](_0x52147b,'')+':'+_0x480bff[_0x1daef0(0xee)](_0x4f9c0d,'');if(_0x480bff[_0x1daef0(0xc3)](_0x45d7b9,':'))return _0x480bff[_0x1daef0(0xef)](debug,_0x480bff['LBldh']),process[_0x1daef0(0x117)][_0x1daef0(0xcc)]=_0x480bff['gllFk'],[null,null];let _0x435e36=![],_0x2384dc=![];if(_0x3cf190[_0x1daef0(0x141)]&&_0x3cf190[_0x1daef0(0xaa)])_0x2384dc=!![];else _0x3cf190[_0x1daef0(0x141)]&&(_0x435e36=!![]);try{const _0x21f3ff={'format':_0x480bff[_0x1daef0(0x14e)],'project_name':_0x3cf190[_0x1daef0(0xf1)]||'','name':_0x3cf190[_0x1daef0(0x12f)]||path[_0x1daef0(0x115)](path[_0x1daef0(0xab)](process[_0x1daef0(0xe1)]())),'build_identifier':_0x3cf190[_0x1daef0(0x11b)],'description':_0x3cf190[_0x1daef0(0xb8)]||'','start_time':new Date()['toISOString'](),'tags':_0x480bff[_0x1daef0(0xfe)](getCustomTags,_0x3cf190),'host_info':bsSetupHelper[_0x1daef0(0x132)](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process[_0x1daef0(0x117)][_0x1daef0(0x136)],'failed_tests_rerun':process[_0x1daef0(0x117)][_0x1daef0(0x139)]||![],'version_control':await bsSetupHelper[_0x1daef0(0xd9)](),'observability_version':{'frameworkName':_0x5b4bd0['frameworkName'],'frameworkVersion':_0x5b4bd0[_0x1daef0(0xc6)],'sdkVersion':bsSetupHelper[_0x1daef0(0x140)]()},'product_map':_0x480bff[_0x1daef0(0x134)](getProductMap,_0x3cf190),'test_orchestration':_0x480bff[_0x1daef0(0xfe)](getTestOrchestrationBuildStartData,_0x3cf190)},_0x100579={};_0x100579[_0x1daef0(0x107)]=_0x52147b,_0x100579[_0x1daef0(0xa3)]=_0x4f9c0d;const _0x2e64b0={'auth':_0x100579,'headers':_0x480bff[_0x1daef0(0xdf)](getDefaultHeaders,![])},_0x8b34a2=await _0x480bff['HLlxc'](nodeRequest,_0x480bff[_0x1daef0(0xff)],_0x480bff['PLldG'],_0x21f3ff,_0x2e64b0);_0x480bff['QUPUA'](debug,_0x480bff[_0x1daef0(0xd3)]);const _0x473b32=_0x8b34a2[_0x1daef0(0xec)];_0x473b32[_0x1daef0(0x10a)]&&(process[_0x1daef0(0x117)]['BROWSERSTACK_TESTHUB_UUID']=_0x473b32[_0x1daef0(0x10a)]);if(_0x480bff['LTbSE'](isTestObservabilitySession)){process[_0x1daef0(0x117)][_0x1daef0(0xcc)]=_0x480bff[_0x1daef0(0x11e)];if(_0x473b32[_0x1daef0(0xfb)]){process['env'][_0x1daef0(0xb7)]=_0x473b32['jwt'];const _0x4d4abf={};_0x4d4abf[_0x1daef0(0x107)]=_0x52147b,_0x4d4abf[_0x1daef0(0xa3)]=_0x4f9c0d,process[_0x1daef0(0x117)][_0x1daef0(0xa9)]=JSON[_0x1daef0(0x128)](_0x4d4abf);}_0x473b32['build_hashed_id']&&(process[_0x1daef0(0x117)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x473b32[_0x1daef0(0x10a)]),_0x473b32['allow_screenshots']&&(process[_0x1daef0(0x117)][_0x1daef0(0xcd)]=_0x473b32[_0x1daef0(0xe3)][_0x1daef0(0xc5)]());}return[_0x8b34a2['data'][_0x1daef0(0xfb)],_0x8b34a2[_0x1daef0(0xec)][_0x1daef0(0x10a)],_0x8b34a2[_0x1daef0(0xec)][_0x1daef0(0xe3)]];}catch(_0x5eea5d){process[_0x1daef0(0x117)][_0x1daef0(0x153)]=_0x480bff[_0x1daef0(0x11a)],process[_0x1daef0(0x117)]['BS_TESTOPS_BUILD_COMPLETED']=_0x480bff[_0x1daef0(0x120)],process[_0x1daef0(0x117)][_0x1daef0(0xb7)]=_0x480bff[_0x1daef0(0x11a)],process[_0x1daef0(0x117)][_0x1daef0(0xa4)]=_0x480bff['otnwG'],process[_0x1daef0(0x117)][_0x1daef0(0xcd)]=_0x480bff[_0x1daef0(0x11a)];_0x5eea5d[_0x1daef0(0x151)]?_0x480bff[_0x1daef0(0xe8)](debug,_0x1daef0(0xf5)+_0x5eea5d[_0x1daef0(0x151)][_0x1daef0(0xcb)]+'\x20'+_0x5eea5d['response'][_0x1daef0(0x145)]+'\x20'+JSON[_0x1daef0(0x128)](_0x5eea5d[_0x1daef0(0x151)][_0x1daef0(0xec)])):_0x480bff[_0x1daef0(0x12e)](debug,_0x1daef0(0xf5)+(_0x5eea5d[_0x1daef0(0xea)]||_0x5eea5d));if(_0x5eea5d&&_0x5eea5d[_0x1daef0(0xea)]){const _0x40a9f3=_0x5eea5d[_0x1daef0(0xea)];switch(_0x5eea5d['errorType']){case _0x480bff['XCrba']:logger[_0x1daef0(0xd1)](_0x40a9f3);break;case _0x480bff[_0x1daef0(0xcf)]:logger[_0x1daef0(0xbe)](_0x40a9f3);break;case _0x480bff[_0x1daef0(0x10b)]:logger[_0x1daef0(0xd1)](_0x40a9f3);break;default:logger['error'](_0x40a9f3);}}else console['info'](_0x1daef0(0x119)+constants[_0x1daef0(0x110)]+_0x1daef0(0x124)+_0x5eea5d);return[null,null,null];}}static async[a136_0x3ad4e4(0xba)](){const _0x177045=a136_0x3ad4e4,_0x46f0d3={'Dhnmh':_0x177045(0x125),'WcGYl':'false','WrZjq':function(_0x122265,_0xc28478){return _0x122265(_0xc28478);}},_0x3315cc=process[_0x177045(0x117)][_0x177045(0xcc)];if([_0x46f0d3[_0x177045(0x13c)],_0x46f0d3['WcGYl']][_0x177045(0xc2)](_0x3315cc))return;while([_0x46f0d3[_0x177045(0x13c)],_0x46f0d3[_0x177045(0x155)]][_0x177045(0xc2)](_0x3315cc)){await _0x46f0d3['WrZjq'](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a136_0x3ad4e4(0x116)](_0x568419){const _0x54056a=a136_0x3ad4e4,_0x24d391={};_0x24d391['MuZln']=_0x54056a(0x14a),_0x24d391['MeyCc']='Test_End_Upload',_0x24d391[_0x54056a(0xae)]='Test_Skipped_Upload',_0x24d391[_0x54056a(0x142)]=_0x54056a(0xe9),_0x24d391[_0x54056a(0x127)]=_0x54056a(0xb3),_0x24d391[_0x54056a(0x156)]=_0x54056a(0xf9),_0x24d391['Nvtzf']='CBT_Upload';const _0x3560a3=_0x24d391,_0x4b5b57={};return _0x4b5b57[_0x54056a(0xf7)]=_0x3560a3['MuZln'],_0x4b5b57['TestRunFinished']=_0x3560a3['MeyCc'],_0x4b5b57[_0x54056a(0xfa)]=_0x3560a3[_0x54056a(0xae)],_0x4b5b57[_0x54056a(0x105)]=_0x3560a3['TeHUW'],_0x4b5b57[_0x54056a(0xf0)]=_0x3560a3[_0x54056a(0x127)],_0x4b5b57['HookRunFinished']=_0x3560a3[_0x54056a(0x156)],_0x4b5b57[_0x54056a(0xbc)]=_0x3560a3['Nvtzf'],_0x4b5b57[_0x568419[_0x54056a(0xc9)]];}static async[a136_0x3ad4e4(0x12b)](_0x357ad3,_0x38b109=0x0,_0x575b58=null){const _0x58f3ef=a136_0x3ad4e4,_0x49e4d6={'gRoBE':function(_0x1824c2,_0x28ec6e){return _0x1824c2===_0x28ec6e;},'gKrWC':_0x58f3ef(0x131),'fjYBI':function(_0xb97a69,_0x41fabe){return _0xb97a69!==_0x41fabe;},'jToLo':_0x58f3ef(0x137),'pQDTv':_0x58f3ef(0x125),'QylSk':function(_0x5b5fba,_0x4559d5){return _0x5b5fba===_0x4559d5;},'MBwCx':function(_0xe1487b,_0x25b693,_0x4ae08f,_0x3cf209,_0x40cf0d){return _0xe1487b(_0x25b693,_0x4ae08f,_0x3cf209,_0x40cf0d);},'QKdMZ':_0x58f3ef(0x10e),'qYFOq':function(_0x37b3a5,_0x43a0d3,_0x3a15be,_0x1a3746,_0x47e7c1){return _0x37b3a5(_0x43a0d3,_0x3a15be,_0x1a3746,_0x47e7c1);},'fTIGl':function(_0x51c045,_0x462ea7){return _0x51c045(_0x462ea7);},'uapRp':function(_0x31e595,_0x55e572){return _0x31e595!==_0x55e572;},'wOHLW':'Batch-Queue','Oyzvq':function(_0x149a61,_0x1169ad){return _0x149a61-_0x1169ad;},'SkhYX':_0x58f3ef(0x102),'jkYia':_0x58f3ef(0xfc),'oQfsR':function(_0x1a9280,_0x3956dd){return _0x1a9280(_0x3956dd);},'eJjQo':function(_0x24ad36,_0x1aa768){return _0x24ad36!==_0x1aa768;},'tlsnk':function(_0x382c50,_0x7ffa03){return _0x382c50(_0x7ffa03);},'wKPDC':function(_0x3b0c7a,_0x247e1e){return _0x3b0c7a!==_0x247e1e;},'QaMFK':function(_0x5d34ed,_0x4f90a){return _0x5d34ed-_0x4f90a;},'QrPyv':function(_0x5c01f5,_0x4a4a35){return _0x5c01f5===_0x4a4a35;},'aLphN':'error'};_0x49e4d6['gRoBE'](_0x575b58,_0x49e4d6[_0x58f3ef(0x122)])&&logger[_0x58f3ef(0xb5)](_0x58f3ef(0xe2)+_0x357ad3['logs'][0x0]['test_run_uuid']);const _0x593313=await this[_0x58f3ef(0x116)](_0x357ad3);let _0xd220cf=_0x357ad3,_0x2f1a35=EVENT_ENDPOINT;_0x49e4d6[_0x58f3ef(0x14f)](_0x575b58,_0x49e4d6[_0x58f3ef(0x122)])&&this[_0x58f3ef(0xa6)][_0x58f3ef(0x13f)]();const {shouldProceed:_0x50b7df,proceedWithData:_0x155241,proceedWithUrl:_0x294169}=this[_0x58f3ef(0xa6)]['add'](_0x357ad3);if(!_0x50b7df)return;else _0x155241&&(_0xd220cf=_0x155241,_0x2f1a35=_0x294169);const _0x4b3b41={};_0x4b3b41[_0x58f3ef(0x13b)]=_0x58f3ef(0xde)+process[_0x58f3ef(0x117)]['BROWSERSTACK_TESTHUB_JWT'],_0x4b3b41[_0x58f3ef(0x109)]=_0x49e4d6['jToLo'],_0x4b3b41[_0x58f3ef(0x10f)]=_0x49e4d6['pQDTv'];const _0x13c8c7={};_0x13c8c7['headers']=_0x4b3b41;const _0x224c10=_0x13c8c7;let _0x480e23;try{_0x49e4d6[_0x58f3ef(0x147)](_0x575b58,_0x49e4d6[_0x58f3ef(0x122)])?(logger['debug'](_0x58f3ef(0xdc)+_0x357ad3?.[_0x58f3ef(0xe6)][0x0]?.[_0x58f3ef(0x129)]),_0x480e23=await _0x49e4d6[_0x58f3ef(0xe7)](asyncAwaitNodeReq,_0x49e4d6[_0x58f3ef(0xd8)],_0x2f1a35,_0xd220cf,_0x224c10),logger[_0x58f3ef(0xb5)](_0x58f3ef(0xb4)+_0x357ad3?.[_0x58f3ef(0xe6)][0x0]?.['test_run_uuid'])):_0x480e23=await _0x49e4d6[_0x58f3ef(0xe0)](nodeRequest,_0x49e4d6[_0x58f3ef(0xd8)],_0x2f1a35,_0xd220cf,_0x224c10);if(_0x480e23[_0x58f3ef(0xec)][_0x58f3ef(0xd1)]){const _0x10f397={};_0x10f397[_0x58f3ef(0xea)]=_0x480e23[_0x58f3ef(0xec)][_0x58f3ef(0xd1)];throw _0x10f397;}else{_0x49e4d6[_0x58f3ef(0xfd)](debug,(_0x49e4d6[_0x58f3ef(0xc8)](_0x2f1a35,this[_0x58f3ef(0xa6)][_0x58f3ef(0xa2)])?_0x593313:_0x49e4d6['wOHLW'])+'['+_0x38b109+_0x58f3ef(0x150)),this['requestQueueHandler'][_0x58f3ef(0xbd)]=Math[_0x58f3ef(0x144)](0x0,_0x49e4d6[_0x58f3ef(0xed)](this[_0x58f3ef(0xa6)][_0x58f3ef(0xbd)],_0x49e4d6[_0x58f3ef(0xa1)](_0x2f1a35,_0x49e4d6[_0x58f3ef(0xbb)])?0x1:_0xd220cf[_0x58f3ef(0xf2)]));const _0xdf7161={};return _0xdf7161[_0x58f3ef(0xcb)]=_0x49e4d6[_0x58f3ef(0x138)],_0xdf7161[_0x58f3ef(0xea)]='',_0xdf7161;}}catch(_0x2e2906){_0x2e2906[_0x58f3ef(0x151)]?_0x49e4d6['oQfsR'](debug,'EXCEPTION\x20IN\x20'+(_0x49e4d6['eJjQo'](_0x2f1a35,this[_0x58f3ef(0xa6)][_0x58f3ef(0xa2)])?_0x593313:_0x49e4d6[_0x58f3ef(0xce)])+_0x58f3ef(0x113)+constants[_0x58f3ef(0x110)]+_0x58f3ef(0xc1)+_0x2e2906[_0x58f3ef(0x151)][_0x58f3ef(0xcb)]+'\x20'+_0x2e2906[_0x58f3ef(0x151)][_0x58f3ef(0x145)]+'\x20'+util['format'](_0x2e2906['response'][_0x58f3ef(0xec)])):_0x49e4d6[_0x58f3ef(0x11f)](debug,_0x58f3ef(0xb1)+(_0x49e4d6['wKPDC'](_0x2f1a35,this['requestQueueHandler']['eventUrl'])?_0x593313:_0x49e4d6['wOHLW'])+_0x58f3ef(0x113)+constants[_0x58f3ef(0x110)]+_0x58f3ef(0xc1)+util[_0x58f3ef(0x133)](_0x2e2906));this[_0x58f3ef(0xa6)][_0x58f3ef(0xbd)]=Math[_0x58f3ef(0x144)](0x0,_0x49e4d6[_0x58f3ef(0x130)](this[_0x58f3ef(0xa6)][_0x58f3ef(0xbd)],_0x49e4d6['QrPyv'](_0x2f1a35,_0x49e4d6[_0x58f3ef(0xbb)])?0x1:_0xd220cf[_0x58f3ef(0xf2)]));const _0xd3b3da={};return _0xd3b3da[_0x58f3ef(0xcb)]=_0x49e4d6[_0x58f3ef(0xd7)],_0xd3b3da['message']=_0x2e2906[_0x58f3ef(0xea)]||(_0x2e2906[_0x58f3ef(0x151)]?_0x2e2906[_0x58f3ef(0x151)][_0x58f3ef(0xcb)]+':'+_0x2e2906[_0x58f3ef(0x151)]['statusText']:_0x2e2906),_0xd3b3da;}}static async[a136_0x3ad4e4(0x112)](_0x14e63d,_0x3168a8=0x0){const _0x2640da=a136_0x3ad4e4,_0x519ac0={'gzzpN':function(_0x4fe254,_0x2afb3b){return _0x4fe254+_0x2afb3b;},'jtSWU':function(_0x4ff3a7,_0x46af20){return _0x4ff3a7(_0x46af20);},'cFuOb':_0x2640da(0xa8),'EYKWr':_0x2640da(0xa7),'mpQwu':_0x2640da(0xdd),'gSnCR':function(_0x18cf9c,_0x1bce6f,_0x4f848a){return _0x18cf9c(_0x1bce6f,_0x4f848a);},'eIQkj':_0x2640da(0x112),'xhDqk':function(_0xdbeacf,_0x406b36){return _0xdbeacf===_0x406b36;},'WMHUL':function(_0x5eab17,_0x533034){return _0x5eab17!==_0x533034;},'ikokc':_0x2640da(0x154),'KDfyJ':function(_0x289869,_0x44da62){return _0x289869===_0x44da62;},'ZpGgw':_0x2640da(0x125),'nwpwa':function(_0x31bcc5){return _0x31bcc5();},'KDrqC':function(_0xa0eb43,_0x9bc10c){return _0xa0eb43(_0x9bc10c);},'XLwGI':function(_0x1db576,_0x10c764){return _0x1db576-_0x10c764;},'TqtVs':_0x2640da(0xd1),'UVQPt':_0x2640da(0x148),'bKWGO':function(_0x2d4cfe,_0x46209e){return _0x2d4cfe>=_0x46209e;},'afBfa':function(_0x4b3522,_0x29b4a1){return _0x4b3522(_0x29b4a1);},'mLRxX':function(_0x551cbd,_0x31579a){return _0x551cbd!==_0x31579a;},'nwDsv':function(_0x14512c,_0x3efc36){return _0x14512c-_0x3efc36;},'VJFwI':_0x2640da(0xda),'XcCUw':_0x2640da(0x11d),'NCdsr':function(_0x19baae,_0x5c8c6c,_0x5ade86){return _0x19baae(_0x5c8c6c,_0x5ade86);}},_0x526961=this[_0x2640da(0x116)](_0x14e63d);_0x519ac0[_0x2640da(0xd0)](trace,'Processing\x20event\x20-\x20\x27'+_0x14e63d[_0x2640da(0xc9)]+'\x27\x20'+(bsSetupHelper[_0x2640da(0x146)](_0x14e63d,[_0x519ac0[_0x2640da(0x12a)],_0x519ac0[_0x2640da(0xc4)]])||bsSetupHelper['nestedKeyValue'](_0x14e63d,[_0x519ac0['mpQwu'],_0x519ac0[_0x2640da(0xc4)]])));if(!_0x519ac0[_0x2640da(0x114)](shouldProcessEventForTesthub,_0x14e63d['event_type'],_0x519ac0[_0x2640da(0xca)]))return;_0x519ac0['xhDqk'](_0x3168a8,0x0)&&process[_0x2640da(0x117)][_0x2640da(0x106)]&&_0x519ac0[_0x2640da(0xf8)](process[_0x2640da(0x117)][_0x2640da(0x106)],_0x519ac0['ikokc'])&&(this[_0x2640da(0xa6)]['pendingUploads']+=0x1);if(_0x519ac0[_0x2640da(0xf4)](process[_0x2640da(0x117)][_0x2640da(0xcc)],_0x519ac0[_0x2640da(0xe4)])||process[_0x2640da(0x117)][_0x2640da(0x101)]||_0x519ac0['nwpwa'](isPercyBuild)){if(_0x519ac0[_0x2640da(0xd6)](process['env'][_0x2640da(0x106)],_0x519ac0[_0x2640da(0x13a)])){_0x519ac0[_0x2640da(0xdb)](debug,_0x2640da(0xb1)+_0x526961+_0x2640da(0x113)+constants[_0x2640da(0x110)]+_0x2640da(0xeb)),this[_0x2640da(0xa6)][_0x2640da(0xbd)]=Math[_0x2640da(0x144)](0x0,_0x519ac0[_0x2640da(0x123)](this[_0x2640da(0xa6)][_0x2640da(0xbd)],0x1));const _0x41a06b={};return _0x41a06b[_0x2640da(0xcb)]=_0x519ac0[_0x2640da(0xf3)],_0x41a06b['message']=_0x519ac0['UVQPt'],_0x41a06b;}return await this[_0x2640da(0x12b)](_0x14e63d,_0x3168a8);}else{if(_0x519ac0['bKWGO'](_0x3168a8,0x5)){_0x519ac0[_0x2640da(0x111)](debug,_0x2640da(0xb1)+_0x526961+_0x2640da(0x113)+constants['TEST_REPORTING_ANALYTICS']+'\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20'+_0x526961+_0x2640da(0xb6));_0x519ac0[_0x2640da(0x104)](process[_0x2640da(0x117)]['BROWSERSTACK_TESTHUB_JWT'],_0x519ac0['ikokc'])&&(this[_0x2640da(0xa6)]['pendingUploads']=Math[_0x2640da(0x144)](0x0,_0x519ac0[_0x2640da(0x11c)](this['requestQueueHandler'][_0x2640da(0xbd)],0x1)));const _0x5a47c7={};return _0x5a47c7[_0x2640da(0xcb)]=_0x519ac0['TqtVs'],_0x5a47c7[_0x2640da(0xea)]=_0x519ac0[_0x2640da(0x10c)],_0x5a47c7;}else _0x519ac0[_0x2640da(0xf8)](process[_0x2640da(0x117)][_0x2640da(0xcc)],_0x519ac0[_0x2640da(0xbf)])&&_0x519ac0[_0x2640da(0x143)](setTimeout,()=>{const _0x354e09=_0x2640da;this[_0x354e09(0x112)](_0x14e63d,_0x519ac0[_0x354e09(0xc0)](_0x3168a8,0x1));},0x3e8);}}}module['exports']=SessionHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a137_0x4adbb8=a137_0x5913;(function(_0x2b6d9e,_0xb5f78c){const _0x17acc8=a137_0x5913,_0x2a35d0=_0x2b6d9e();while(!![]){try{const _0x40e43a=parseInt(_0x17acc8(0x7d))/0x1+-parseInt(_0x17acc8(0x12d))/0x2+parseInt(_0x17acc8(0x195))/0x3*(parseInt(_0x17acc8(0xc5))/0x4)+-parseInt(_0x17acc8(0x10f))/0x5*(parseInt(_0x17acc8(0xe8))/0x6)+-parseInt(_0x17acc8(0x90))/0x7*(parseInt(_0x17acc8(0xae))/0x8)+-parseInt(_0x17acc8(0xad))/0x9+parseInt(_0x17acc8(0x151))/0xa*(parseInt(_0x17acc8(0xcf))/0xb);if(_0x40e43a===_0xb5f78c)break;else _0x2a35d0['push'](_0x2a35d0['shift']());}catch(_0x93c981){_0x2a35d0['push'](_0x2a35d0['shift']());}}}(a137_0x1a90,0x5ad29));const fs=require('fs'),path=require(a137_0x4adbb8(0x156)),gitLastCommit=require(a137_0x4adbb8(0x19c)),getRepoInfo=require(a137_0x4adbb8(0x147)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a137_0x4adbb8(0xf3)),http=require(a137_0x4adbb8(0x85)),https=require(a137_0x4adbb8(0x131)),child_process=require(a137_0x4adbb8(0x103)),getos=require(a137_0x4adbb8(0xaa)),os=require('os'),logger=require('../logger')[a137_0x4adbb8(0x178)],buildLogger=require(a137_0x4adbb8(0x117))[a137_0x4adbb8(0x13a)],bsSetupHelper=require(a137_0x4adbb8(0x1a3)),requestSpy=require(a137_0x4adbb8(0xed)),constants=require(a137_0x4adbb8(0x16d)),logPatcher=require(a137_0x4adbb8(0x15b)),util=require('util'),{fileLogger}=require('../logger'),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a137_0x4adbb8(0x10d)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a137_0x4adbb8(0x169)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a137_0x4adbb8(0xd8));exports['trace']=_0x2edbc3=>{const _0x3a8a89=a137_0x4adbb8;fileLogger[_0x3a8a89(0x77)]('['+new Date()[_0x3a8a89(0xb8)]()+_0x3a8a89(0x182)+constants[_0x3a8a89(0x176)]+_0x3a8a89(0x133)+_0x2edbc3);},exports[a137_0x4adbb8(0xce)]=_0xb27915=>{const _0x501630=a137_0x4adbb8,_0x58df68={};_0x58df68[_0x501630(0x105)]=function(_0x2dbc56,_0x1828f4){return _0x2dbc56===_0x1828f4;},_0x58df68[_0x501630(0x18f)]='true',_0x58df68[_0x501630(0xc7)]=function(_0x1e98bf,_0x22e0ad){return _0x1e98bf===_0x22e0ad;};const _0x23186f=_0x58df68;fileLogger[_0x501630(0xce)]('['+new Date()[_0x501630(0xb8)]()+_0x501630(0x182)+constants[_0x501630(0x176)]+_0x501630(0x133)+_0xb27915),(_0x23186f[_0x501630(0x105)](process[_0x501630(0x193)][_0x501630(0x17d)],_0x23186f[_0x501630(0x18f)])||_0x23186f[_0x501630(0xc7)](process[_0x501630(0x193)][_0x501630(0x17d)],'1')||_0x23186f[_0x501630(0x105)](process[_0x501630(0x193)][_0x501630(0x165)],_0x23186f[_0x501630(0x18f)])||_0x23186f[_0x501630(0x105)](process[_0x501630(0x193)][_0x501630(0x165)],'1'))&&consoleHolder[_0x501630(0x13e)]('\x0a['+new Date()[_0x501630(0xb8)]()+_0x501630(0x182)+constants['TEST_REPORTING_ANALYTICS']+'\x20]\x20'+_0xb27915+'\x0a');};const a137_0x827dfe={};a137_0x827dfe['keepAlive']=!![],a137_0x827dfe[a137_0x4adbb8(0x95)]=0xea60,a137_0x827dfe[a137_0x4adbb8(0x174)]=0x2,a137_0x827dfe[a137_0x4adbb8(0x197)]=0x2;const httpKeepAliveAgent=new http[(a137_0x4adbb8(0x96))](a137_0x827dfe),a137_0x1c0605={};a137_0x1c0605[a137_0x4adbb8(0x175)]=!![],a137_0x1c0605[a137_0x4adbb8(0x95)]=0xea60,a137_0x1c0605[a137_0x4adbb8(0x174)]=0x2,a137_0x1c0605['maxTotalSockets']=0x2;function a137_0x1a90(){const _0x268e3a=['formData','timeout','Agent','release','emit','getObservabilityLinkedProductName','getBrowserStackConfig','then','BcThO','darwin','windows-release','lQFxC','wdauc','AEIQm','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','mocha','catch','keys','parseFileNames','forEach','CEJTx','info','getos','XcFvL','O11Y_URL','968841ZHKEQq','4695216OoZioJ','\x20]\x20Build\x20Not\x20Found\x20%s','4|5|3|1|0|2','includes','startsWith','zXefN','__cloud_provider___','TwVot','Unknown','Visit\x20','toISOString','CkcUt','linux','bstack:options','failureData','expanded','isUndefined','stack','split','jHZus','printA11yBuildLink','goqCs','addRequestSpy','617404lisKNa','push','Uxjkp','pid','appium:app','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','measureWrapper','backtrace','headers','debug','7625783GUBNZW','test_run_uuid','Content-Type','ybRDo','jtDvm','tkRPg','relativeTestFilePath','O11yHashedID','CJpEG','../../../src/bin/utils/constants','CUSTOM_TAG','https://accessibility.browserstack.com/automated-tests/projects/p/builds/b/1?thBuildId=','LBDAO','BROWSERSTACK_TEST_OBSERVABILITY_YML','sleep','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','codeceptjs','toJSON','fqHcH','rSEuo','getCapabilities','message','capabilities','zEAcF','OS\x20X','6NsWZPB','BROWSERSTACK_TEST_REPORTING','vwsJu','getSyncScript','IPmwF','../../helpers/request-spy','rootDir','aUVmB','patchConsoleLogger','BROWSERSTACK_TESTHUB_JWT','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','./constants','gtaee','getPlatformDetails','url','GwCQL','nodeRequest','automate','replace','mKnJa','prefixTestPath','getSession','mrcNp','getPackageVersion','mFZdM','vYzEw','eGfJF','child_process','vaknx','pritC','BROWSERSTACK_CONFIG_FILE_PATH','mvXLL','fromEntries','yDVfI','local_grid','mFozU','Windows','lodash','ISTft','2220445IOHLgD','logs','BROWSERSTACK_RERUN_TESTS','PJUDb','browserstack','platformName','wZWub','app-automate','../logger','jest','fcKMF','removeAnsiColors','filter','umGAT','Rfvmb','getUserCredentials','getCustomTags','JEBch','iuKcZ','format','CODECEPT','tWCgA','sendPlatformDetails','prefix','aEhjI','puppeteer','app_automate','platform','yQSko','Iiuog','55490NCunVp','pPbGa','tOTCS','VMyDK','https','HUB_URL_REGEX','\x20]\x20','BROWSERSTACK_PRODUCT_MAP','wxAZm','RdrQM','getPlatform','TEST_REPORTING_BUILD_TAG','HMwGM','buildLogger','test','hiKJi','X-BSTACK-TESTOPS','log','/builds/','Ffntl','map','ioWlL','CUCUMBER','gfaSi','Bearer\x20','Linux','git-repo-info','browserstack_executor:\x20','CODECEPT_CUCUMBER','PathHelper','app','vYkYq','getBrowserName','TEST_ATTACHMENT','A11yEnabled','config','10mSBPxG','ReBgM','wmjPh','NafDp','error','path','puppeteer-core','isArray','fNMNy','VpJGh','../../bin/utils/logPatcher','map_','Bcizv','kKAxS','AgQfO','REYFo','buildTag','fileName','BROWSERSTACK_TEST_OBSERVABILITY','oLwag','BROWSERSTACK_OBSERVABILITY_DEBUG','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','undefined','@playwright/test','../performance/constants','Test\x20timeout\x20of','execSync','isTestObservabilitySession','../../bin/utils/constants','UnhandledError','parse','true','WAGcP','QPEVq','^CUSTOM_TAG_\x5cd+$','maxSockets','keepAlive','TEST_REPORTING_ANALYTICS','Authorization','winstonLogger','wXSDv','host','@cucumber/cucumber','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','BROWSERSTACK_TEST_REPORTING_DEBUG','err','LogCreated','jUWEO','HTTP','][\x20','getAccessKey','OhqKs','bs:addLog:','hDUMZ','eVuVq','LsZda','agent','data','pYqJR','PLAYWRIGHT','TEST_OBSERVABILITY_BUILD_TAG','readConfig','BGJiF','JwLRm','KGoTd','match','env','aqCXX','6AfvOtQ','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','maxTotalSockets','AgivF','STMrF','hostname','extractValuesWithRegexKeyMatch','git-last-commit','customTag','length','getBuildTags','\x20test\x20instance\x20:\x20','unknown_grid','ldlyn','../helper','getUserName','BS_TESTOPS_BUILD_HASHED_ID','Uploading\x20trace\x20logs\x20to:\x20','CiJfz','OvMbl','silly','\x20:\x20','trim','dist','Error\x20in\x20importing\x20windows-release\x20','body','536439QRrJpl','DvowW','PFBWj','bs:addPlatformDetails:','ObservabilitySync:','VYFZh','toString','Error\x20in\x20getting\x20Linux\x20Details','http','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','uRQDQ','default','turboScaleGridDetails','null','yrwDu','application/json','OCKeA','getBrowserVersion','KePUe','7eHXNXT','getFrameworkVersion','TEST_PLATFORM','HmlMm'];a137_0x1a90=function(){return _0x268e3a;};return a137_0x1a90();}const httpsKeepAliveAgent=new https['Agent'](a137_0x1c0605),a137_0x3d620b={};a137_0x3d620b[a137_0x4adbb8(0x175)]=!![],a137_0x3d620b[a137_0x4adbb8(0x95)]=0xea60,a137_0x3d620b[a137_0x4adbb8(0x174)]=0x2,a137_0x3d620b[a137_0x4adbb8(0x197)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a137_0x4adbb8(0x96))](a137_0x3d620b),a137_0x565941={};a137_0x565941['keepAlive']=!![],a137_0x565941[a137_0x4adbb8(0x95)]=0xea60,a137_0x565941[a137_0x4adbb8(0x174)]=0x2,a137_0x565941[a137_0x4adbb8(0x197)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a137_0x4adbb8(0x96))](a137_0x565941);exports['shouldReRunObservabilityTests']=()=>{const _0x3095fa=a137_0x4adbb8,_0x5a79f4={};_0x5a79f4[_0x3095fa(0xea)]=function(_0x18ea7e,_0xe23981){return _0x18ea7e!==_0xe23981;},_0x5a79f4[_0x3095fa(0xd7)]=_0x3095fa(0x8a);const _0x446cc6=_0x5a79f4;return process[_0x3095fa(0x193)][_0x3095fa(0x111)]&&_0x446cc6[_0x3095fa(0xea)](process[_0x3095fa(0x193)][_0x3095fa(0x111)],_0x446cc6['CJpEG'])?!![]:![];},exports[a137_0x4adbb8(0x16c)]=()=>{const _0x6df6b3=a137_0x4adbb8,_0x519312={};_0x519312[_0x6df6b3(0x130)]=function(_0x286ed4,_0x336361){return _0x286ed4===_0x336361;},_0x519312[_0x6df6b3(0x107)]=_0x6df6b3(0x170),_0x519312[_0x6df6b3(0x190)]=function(_0x1fa339,_0xd247af){return _0x1fa339===_0xd247af;};const _0x1e3821=_0x519312;let _0x4415b0=!![];return process['env'][_0x6df6b3(0xdc)]&&(_0x4415b0=_0x1e3821['VMyDK'](process[_0x6df6b3(0x193)]['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0x1e3821['mvXLL'])),process[_0x6df6b3(0x193)][_0x6df6b3(0x163)]&&(_0x4415b0=_0x1e3821['JwLRm'](process[_0x6df6b3(0x193)][_0x6df6b3(0x163)],_0x1e3821['mvXLL'])),process[_0x6df6b3(0x193)][_0x6df6b3(0xe9)]&&(_0x4415b0=_0x1e3821[_0x6df6b3(0x130)](process[_0x6df6b3(0x193)]['BROWSERSTACK_TEST_REPORTING'],_0x1e3821[_0x6df6b3(0x107)])),_0x4415b0;},exports[a137_0x4adbb8(0xa6)]=_0x3e1b24=>{const _0x16443e=a137_0x4adbb8;if(bsSetupHelper[_0x16443e(0xbe)](_0x3e1b24))return undefined;try{return _0x3e1b24[_0x16443e(0x79)]()[_0x16443e(0xc0)](',');}catch(_0x110bd1){return undefined;}},exports['printBuildLink']=()=>{const _0x559406=a137_0x4adbb8,_0x2f7aa8={'OhqKs':function(_0x3107eb,_0xd1fd3f){return _0x3107eb(_0xd1fd3f);},'OkOKp':'../../bin/v2/browserstackCLI','OvMbl':function(_0x698bb9,_0x428478){return _0x698bb9!==_0x428478;},'VpJGh':'null','wdauc':_0x559406(0x167),'vYzEw':function(_0x1b4533,_0x34ff38){return _0x1b4533===_0x34ff38;},'ynYLm':_0x559406(0x170),'AgivF':function(_0x12cc5a,_0xb0fe4b){return _0x12cc5a&&_0xb0fe4b;}};return PerformanceTester[_0x559406(0xcb)](PerformanceO11yEvents['PRINT_BUILDLINK'],async()=>{const _0x3e74bd=_0x559406;try{const _0x4e06ab=_0x2f7aa8[_0x3e74bd(0x184)](require,_0x2f7aa8['OkOKp']);if(_0x4e06ab[_0x3e74bd(0xd6)]){const _0x49583e=_0x3e74bd(0xb7)+O11Y_URL+'/builds/'+_0x4e06ab[_0x3e74bd(0xd6)]+_0x3e74bd(0x17c);buildLogger[_0x3e74bd(0xa9)](_0x49583e),exports[_0x3e74bd(0xc2)](_0x4e06ab[_0x3e74bd(0xd6)],_0x4e06ab[_0x3e74bd(0x14f)]);return;}if(process[_0x3e74bd(0x193)][_0x3e74bd(0x1a5)]&&_0x2f7aa8[_0x3e74bd(0x76)](process[_0x3e74bd(0x193)][_0x3e74bd(0x1a5)],_0x2f7aa8[_0x3e74bd(0x15a)])&&_0x2f7aa8[_0x3e74bd(0x76)](process['env']['BS_TESTOPS_BUILD_HASHED_ID'],_0x2f7aa8[_0x3e74bd(0xa0)])){const _0xc44f11=_0x3e74bd(0xb7)+constants[_0x3e74bd(0xac)]+_0x3e74bd(0x13f)+process['env']['BS_TESTOPS_BUILD_HASHED_ID']+_0x3e74bd(0x17c);buildLogger[_0x3e74bd(0xa9)](_0xc44f11);const _0x7851a4=_0x2f7aa8[_0x3e74bd(0x101)](process[_0x3e74bd(0x193)]['BROWSERSTACK_ACCESSIBILITY'],_0x2f7aa8['ynYLm']);let _0x25d207=![];try{const _0x38772c=JSON[_0x3e74bd(0x16f)](process[_0x3e74bd(0x193)][_0x3e74bd(0x134)]||'{}');_0x25d207=_0x2f7aa8[_0x3e74bd(0x101)](_0x38772c[_0x3e74bd(0x129)],!![]);}catch(_0x1bedac){}exports[_0x3e74bd(0xc2)](process['env'][_0x3e74bd(0x1a5)],_0x2f7aa8[_0x3e74bd(0x198)](_0x7851a4,!_0x25d207));}}catch(_0x16f97b){logger[_0x3e74bd(0x155)](util[_0x3e74bd(0x122)]('[%s][\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x3e74bd(0xaf),new Date()[_0x3e74bd(0xb8)](),_0x16f97b[_0x3e74bd(0xbf)]||_0x16f97b['message']||_0x16f97b));}})();},exports[a137_0x4adbb8(0xc2)]=(_0x20b9a5,_0x518e46)=>{const _0x3ceb84=a137_0x4adbb8,_0x268e0b={};_0x268e0b['CiJfz']=function(_0x2a721e,_0xa05173){return _0x2a721e&&_0xa05173;},_0x268e0b[_0x3ceb84(0xfe)]='[%s][\x20Accessibility\x20]\x20Error\x20printing\x20accessibility\x20build\x20link\x20%s';const _0x55bbad=_0x268e0b;try{if(_0x55bbad[_0x3ceb84(0x75)](_0x518e46,_0x20b9a5)){const _0x5dc537=_0x3ceb84(0xda)+_0x20b9a5,_0x24ea9b=_0x3ceb84(0xb7)+_0x5dc537+'\x20to\x20view\x20accessibility\x20report.\x0a';buildLogger['info'](_0x24ea9b);}}catch(_0x44cc5b){logger[_0x3ceb84(0x155)](util['format'](_0x55bbad[_0x3ceb84(0xfe)],new Date()['toISOString'](),_0x44cc5b[_0x3ceb84(0xbf)]||_0x44cc5b['message']||_0x44cc5b));}},exports['getFailureType']=_0x4b99bd=>{const _0x281145=a137_0x4adbb8,_0x314300={};_0x314300['jvnrt']='AssertionError',_0x314300['mKnJa']=_0x281145(0x16a),_0x314300['ulwPu']='TimeoutError',_0x314300['GwCQL']=_0x281145(0x16e);const _0x46d3d5=_0x314300;if(!_0x4b99bd)return null;const _0x1e3598=_0x4b99bd[_0x281145(0x83)]();if(_0x1e3598[_0x281145(0x192)](/AssertionError/))return _0x46d3d5['jvnrt'];if(_0x1e3598[_0x281145(0x192)](/TimeoutError/)||_0x1e3598[_0x281145(0xb2)](_0x46d3d5[_0x281145(0xfb)])||_0x1e3598[_0x281145(0x192)](/Timeout.*exceeded/i))return _0x46d3d5['ulwPu'];return _0x46d3d5[_0x281145(0xf7)];},exports[a137_0x4adbb8(0x91)]=_0x2e9a16=>{const _0x2031cf=a137_0x4adbb8,_0x456c55={};_0x456c55['pYqJR']=_0x2031cf(0xa3),_0x456c55[_0x2031cf(0x87)]=_0x2031cf(0x168),_0x456c55[_0x2031cf(0x112)]=_0x2031cf(0xdf),_0x456c55[_0x2031cf(0xe1)]=_0x2031cf(0x118),_0x456c55[_0x2031cf(0x160)]=_0x2031cf(0x17b),_0x456c55[_0x2031cf(0x14c)]=_0x2031cf(0x157),_0x456c55['yQSko']=_0x2031cf(0x128);const _0x49c536=_0x456c55;let _0x5155eb=null;switch(_0x2e9a16){case FRAMEWORKS['MOCHA']:_0x5155eb=bsSetupHelper[_0x2031cf(0xff)](_0x49c536[_0x2031cf(0x18b)]);break;case FRAMEWORKS[_0x2031cf(0x18c)]:_0x5155eb=bsSetupHelper[_0x2031cf(0xff)](_0x49c536[_0x2031cf(0x87)]);break;case FRAMEWORKS[_0x2031cf(0x123)]:case FRAMEWORKS[_0x2031cf(0x149)]:_0x5155eb=bsSetupHelper[_0x2031cf(0xff)](_0x49c536['PJUDb']);break;case FRAMEWORKS['JEST']:_0x5155eb=bsSetupHelper[_0x2031cf(0xff)](_0x49c536[_0x2031cf(0xe1)]);break;case FRAMEWORKS[_0x2031cf(0x143)]:_0x5155eb=bsSetupHelper[_0x2031cf(0xff)](_0x49c536[_0x2031cf(0x160)]);break;case FRAMEWORKS['PUPPETEER']:_0x5155eb=bsSetupHelper[_0x2031cf(0xff)](_0x49c536['vYkYq'])||bsSetupHelper['getPackageVersion'](_0x49c536[_0x2031cf(0x12b)]);break;default:break;}return _0x5155eb;},exports[a137_0x4adbb8(0x9a)]=_0x2c7dd1=>{const _0x4f4540=a137_0x4adbb8;let _0x114cf4=null;switch(_0x2c7dd1){case FRAMEWORKS['PLAYWRIGHT']:_0x114cf4=process[_0x4f4540(0x193)][_0x4f4540(0x106)];break;}if(!_0x114cf4)return;return bsSetupHelper[_0x4f4540(0x18e)](_0x114cf4,![]);},exports[a137_0x4adbb8(0x11e)]=_0x4c69af=>{const _0x1ef967=a137_0x4adbb8;return{'username':bsSetupHelper[_0x1ef967(0x1a4)](_0x4c69af),'accessKey':bsSetupHelper[_0x1ef967(0x183)](_0x4c69af)};},exports['modifyReqForTraceUpload']=(_0x29d0d0,_0x54ece7)=>{const _0x4f39ad=a137_0x4adbb8,_0xe325fe={};_0xe325fe[_0x4f39ad(0xdb)]=_0x4f39ad(0xb0),_0xe325fe[_0x4f39ad(0x194)]=_0x4f39ad(0x17f),_0xe325fe['rSEuo']=_0x4f39ad(0x14e);const _0xeace96=_0xe325fe,_0x47d3f5=_0xeace96[_0x4f39ad(0xdb)][_0x4f39ad(0xc0)]('|');let _0x1131b9=0x0;while(!![]){switch(_0x47d3f5[_0x1131b9++]){case'0':delete _0x29d0d0['json'];continue;case'1':delete _0x29d0d0['body'];continue;case'2':delete _0x54ece7[_0x4f39ad(0xcd)];continue;case'3':_0x29d0d0[_0x4f39ad(0x94)]={'data':_0x29d0d0[_0x4f39ad(0x7c)][0x0][_0x4f39ad(0x110)][0x0][_0x4f39ad(0x18a)],'test_run_uuid':_0x29d0d0['body'][0x0][_0x4f39ad(0x110)][0x0][_0x4f39ad(0xd0)],'event_type':_0xeace96[_0x4f39ad(0x194)],'kind':_0xeace96[_0x4f39ad(0xe2)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x4f39ad(0xb8)](),'fileName':_0x29d0d0[_0x4f39ad(0x7c)][0x0][_0x4f39ad(0x110)][0x0][_0x4f39ad(0x162)]};continue;case'4':if(!_0x29d0d0[_0x4f39ad(0x7c)]||!Array[_0x4f39ad(0x158)](_0x29d0d0[_0x4f39ad(0x7c)]))return;continue;case'5':if(!_0x29d0d0[_0x4f39ad(0x7c)][0x0]||!_0x29d0d0[_0x4f39ad(0x7c)][0x0][_0x4f39ad(0x110)]||!_0x29d0d0[_0x4f39ad(0x7c)][0x0][_0x4f39ad(0x110)][_0x4f39ad(0x19e)])return;continue;}break;}},exports['asyncAwaitNodeReq']=async(_0x1131f0,_0x44e4a3,_0x4d31b2,_0x4dbc11,_0x3be34a=!![])=>{const _0x3ef32b=a137_0x4adbb8,_0x122d2d={};_0x122d2d[_0x3ef32b(0x171)]=function(_0x345f92,_0xf4a649){return _0x345f92===_0xf4a649;},_0x122d2d['Ffntl']='Content-Type',_0x122d2d[_0x3ef32b(0x120)]=_0x3ef32b(0x8c),_0x122d2d[_0x3ef32b(0x119)]=_0x3ef32b(0x131),_0x122d2d['AgQfO']=function(_0x5f064b,_0x3035fa){return _0x5f064b===_0x3035fa;},_0x122d2d[_0x3ef32b(0xd4)]=function(_0x38c1c0,_0x2648cf){return _0x38c1c0!==_0x2648cf;},_0x122d2d['iuKcZ']='object',_0x122d2d[_0x3ef32b(0x9f)]=_0x3ef32b(0xca);const _0x3ee1b1=_0x122d2d,_0x41a866={..._0x4dbc11,...{'method':_0x1131f0,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x44e4a3,'body':_0x4d31b2,'json':_0x3ee1b1[_0x3ef32b(0x171)](_0x4dbc11[_0x3ef32b(0xcd)][_0x3ee1b1[_0x3ef32b(0x140)]],_0x3ee1b1[_0x3ef32b(0x120)]),'agent':API_URL[_0x3ef32b(0xb1)](_0x3ee1b1[_0x3ef32b(0x119)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x3ee1b1[_0x3ef32b(0x15f)](_0x44e4a3,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x41a866[_0x3ef32b(0x189)]=API_URL[_0x3ef32b(0xb1)](_0x3ee1b1[_0x3ef32b(0x119)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x41a866,_0x4dbc11),logger[_0x3ef32b(0xce)](_0x3ef32b(0x1a6)+_0x41a866[_0x3ef32b(0xf6)]));try{const {statusCode:_0x4f4bd6,body:_0xfe7074}=await bsSetupHelper['nodeRequest'](_0x1131f0,_0x44e4a3,_0x41a866,_0x4dbc11,_0x41a866[_0x3ef32b(0xf6)]);if(_0x3ee1b1[_0x3ef32b(0xd4)](_0x4f4bd6,0xc8))return _0xfe7074?_0xfe7074:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x4f4bd6;let _0x1cff93=_0xfe7074;if(_0x3be34a)try{_0x3ee1b1[_0x3ef32b(0xd4)](typeof _0xfe7074,_0x3ee1b1[_0x3ef32b(0x121)])&&(_0x1cff93=JSON[_0x3ef32b(0x16f)](_0xfe7074));}catch(_0xc3c79){logger[_0x3ef32b(0x155)](_0x3ee1b1[_0x3ef32b(0x9f)],_0xfe7074,util[_0x3ef32b(0x122)](_0xc3c79));}const _0x50b0ef={};return _0x50b0ef[_0x3ef32b(0x18a)]=_0x1cff93,_0x50b0ef;}catch(_0x474076){logger['error'](_0x3ef32b(0x86)+util[_0x3ef32b(0x122)](_0x474076));throw _0x474076;}},exports[a137_0x4adbb8(0xf8)]=(_0x5564e4,_0xfe173f,_0x2425f1,_0x9926a0,_0x2c8393=!![])=>{const _0x33ff13=a137_0x4adbb8,_0x5cf231={'BcThO':function(_0x4d9a96,_0x1a8282){return _0x4d9a96!==_0x1a8282;},'kKAxS':function(_0x5d6da2,_0x32b32e){return _0x5d6da2(_0x32b32e);},'vaknx':'object','jtDvm':_0x33ff13(0xde),'fNMNy':function(_0xc26d8c,_0x6182a7){return _0xc26d8c===_0x6182a7;},'mFozU':_0x33ff13(0xd1),'tOTCS':'application/json','Iiuog':_0x33ff13(0x131),'gfaSi':function(_0x30b50c,_0xe999ea){return _0x30b50c===_0xe999ea;}};return new Promise((_0x4e9900,_0x5fca92)=>{const _0x58c699=_0x33ff13,_0x362fef={'hiKJi':function(_0x530777,_0x184625){const _0x597412=a137_0x5913;return _0x5cf231[_0x597412(0x9c)](_0x530777,_0x184625);},'ReBgM':function(_0x2e0d69,_0xd63d73){const _0x2bbbb2=a137_0x5913;return _0x5cf231[_0x2bbbb2(0x15e)](_0x2e0d69,_0xd63d73);},'KZZxi':_0x5cf231[_0x58c699(0x104)],'HMwGM':_0x5cf231[_0x58c699(0xd3)]},_0x3da394={..._0x9926a0,...{'method':_0x5564e4,'url':API_URL+'/'+_0xfe173f,'body':_0x2425f1,'json':_0x5cf231[_0x58c699(0x159)](_0x9926a0[_0x58c699(0xcd)][_0x5cf231[_0x58c699(0x10b)]],_0x5cf231[_0x58c699(0x12f)]),'agent':API_URL[_0x58c699(0xb1)](_0x5cf231[_0x58c699(0x12c)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x5cf231[_0x58c699(0x144)](_0xfe173f,SCREENSHOT_ENDPOINT)&&(_0x3da394[_0x58c699(0x189)]=API_URL[_0x58c699(0xb1)](_0x5cf231[_0x58c699(0x12c)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x58c699(0xf8)](_0x5564e4,_0xfe173f,_0x3da394,_0x9926a0,API_URL)[_0x58c699(0x9b)](({statusCode:_0x5512b1,body:_0x15f3b6})=>{const _0x122e54=_0x58c699;if(_0x362fef[_0x122e54(0x13c)](_0x5512b1,0xc8))_0x362fef[_0x122e54(0x152)](_0x5fca92,_0x15f3b6?_0x15f3b6:_0x122e54(0xf2)+_0x5512b1);else{if(_0x2c8393)try{_0x362fef['hiKJi'](typeof _0x15f3b6,_0x362fef['KZZxi'])&&(_0x15f3b6=JSON[_0x122e54(0x16f)](_0x15f3b6));}catch(_0x500629){_0x362fef[_0x122e54(0x152)](_0x5fca92,_0x362fef[_0x122e54(0x139)]);return;}const _0xc2cde0={};_0xc2cde0['data']=_0x15f3b6,_0x362fef['ReBgM'](_0x4e9900,_0xc2cde0);}})[_0x58c699(0xa4)](_0xe98fc8=>{const _0x199ab4=_0x58c699;_0xe98fc8&&_0x362fef[_0x199ab4(0x152)](_0x5fca92,_0xe98fc8);});});},exports[a137_0x4adbb8(0x19f)]=_0x408885=>{const _0x5027d1=a137_0x4adbb8;if(process['env']['TEST_REPORTING_BUILD_TAG'])return process['env'][_0x5027d1(0x138)][_0x5027d1(0xc0)](',');if(process[_0x5027d1(0x193)]['TEST_OBSERVABILITY_BUILD_TAG'])return process[_0x5027d1(0x193)][_0x5027d1(0x18d)][_0x5027d1(0xc0)](',');if(_0x408885[_0x5027d1(0x161)])return _0x408885[_0x5027d1(0x161)];return[];},exports['getDefaultHeaders']=(_0x4f97ca=!![])=>{const _0x3f9f49=a137_0x4adbb8,_0x636244={};_0x636244[_0x3f9f49(0x154)]=_0x3f9f49(0x8c),_0x636244['RdrQM']=_0x3f9f49(0x170),_0x636244[_0x3f9f49(0x124)]=_0x3f9f49(0x177);const _0x562ed4=_0x636244,_0x52491f={};_0x52491f[_0x3f9f49(0xd1)]=_0x562ed4[_0x3f9f49(0x154)],_0x52491f[_0x3f9f49(0x13d)]=_0x562ed4[_0x3f9f49(0x136)];const _0x556fc2=_0x52491f;return _0x4f97ca&&process[_0x3f9f49(0x193)][_0x3f9f49(0xf1)]&&(_0x556fc2[_0x562ed4['tWCgA']]=_0x3f9f49(0x145)+process['env'][_0x3f9f49(0xf1)]),_0x556fc2;},exports[a137_0x4adbb8(0x19b)]=_0x7404bc=>{const _0x572c26=a137_0x4adbb8,_0x4d2aeb={};_0x4d2aeb[_0x572c26(0x115)]=_0x572c26(0x173);const _0x3c1c5c=_0x4d2aeb,_0x1dcc71=[],_0x2f1fd3=new RegExp(_0x3c1c5c[_0x572c26(0x115)],'i');return Object['keys'](_0x7404bc)[_0x572c26(0x11b)](_0x551ae5=>_0x2f1fd3[_0x572c26(0x13b)](_0x551ae5))[_0x572c26(0xa7)](_0x5cc8f6=>_0x1dcc71[_0x572c26(0xc6)](_0x7404bc[_0x5cc8f6])),_0x1dcc71;},exports[a137_0x4adbb8(0x11f)]=_0x5864ee=>{const _0x3f1531=a137_0x4adbb8,_0x4711a6=[],_0x107b52=_0x5864ee[_0x3f1531(0x19d)]||process[_0x3f1531(0x193)][_0x3f1531(0xd9)];return _0x107b52&&_0x4711a6[_0x3f1531(0xc6)](_0x107b52),_0x4711a6[_0x3f1531(0xc6)](...exports[_0x3f1531(0x19b)](process['env'])),_0x4711a6[_0x3f1531(0xc6)](...exports['extractValuesWithRegexKeyMatch'](_0x5864ee)),_0x4711a6;},exports['removeAnsiColors']=_0xe185e5=>{const _0x27f222=a137_0x4adbb8;if(!_0xe185e5)return'';return _0xe185e5[_0x27f222(0xfa)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a137_0x4adbb8(0xdd)]=(_0x3a2f4c=0x64)=>new Promise(_0xd2497c=>setTimeout(_0xd2497c,_0x3a2f4c));function a137_0x5913(_0x278697,_0x26a62f){const _0x1a9041=a137_0x1a90();return a137_0x5913=function(_0x59134e,_0x4fae8){_0x59134e=_0x59134e-0x75;let _0x31d95f=_0x1a9041[_0x59134e];return _0x31d95f;},a137_0x5913(_0x278697,_0x26a62f);}const getPlatformName=()=>{const _0x2e98a8=a137_0x4adbb8,_0x42f214={};_0x42f214[_0x2e98a8(0x172)]=function(_0x1ca476,_0x4e3eef){return _0x1ca476===_0x4e3eef;},_0x42f214['jHZus']='win32',_0x42f214[_0x2e98a8(0x15d)]=_0x2e98a8(0x10c),_0x42f214[_0x2e98a8(0xd2)]=function(_0x9a36a5,_0x342001){return _0x9a36a5===_0x342001;},_0x42f214[_0x2e98a8(0x142)]=_0x2e98a8(0x9d),_0x42f214[_0x2e98a8(0xf4)]='OS\x20X',_0x42f214[_0x2e98a8(0x188)]=function(_0x5c863a,_0x54a899){return _0x5c863a===_0x54a899;},_0x42f214[_0x2e98a8(0x11c)]=_0x2e98a8(0xba),_0x42f214[_0x2e98a8(0x199)]=_0x2e98a8(0x146),_0x42f214[_0x2e98a8(0xc3)]=_0x2e98a8(0xb6);const _0x16a026=_0x42f214;if(_0x16a026[_0x2e98a8(0x172)](process[_0x2e98a8(0x12a)],_0x16a026[_0x2e98a8(0xc1)]))return _0x16a026[_0x2e98a8(0x15d)];if(_0x16a026[_0x2e98a8(0xd2)](process['platform'],_0x16a026[_0x2e98a8(0x142)]))return _0x16a026['gtaee'];if(_0x16a026['LsZda'](process['platform'],_0x16a026[_0x2e98a8(0x11c)]))return _0x16a026[_0x2e98a8(0x199)];return _0x16a026[_0x2e98a8(0xc3)];},getMacOSVersion=()=>{const _0x3163c0=a137_0x4adbb8,_0x22d5ba={};_0x22d5ba['HmlMm']=_0x3163c0(0xa2);const _0x402a6d=_0x22d5ba;return child_process[_0x3163c0(0x16b)](_0x402a6d[_0x3163c0(0x93)])[_0x3163c0(0x83)]()[_0x3163c0(0x79)]();},getLinuxDetails=()=>{const _0x207ea8={'yrwDu':function(_0x42302d,_0x8d58ce){return _0x42302d(_0x8d58ce);},'pPbGa':function(_0x243823,_0x171de8){return _0x243823(_0x171de8);}};return new Promise((_0x396c09,_0x51c969)=>{const _0x545e0e=a137_0x5913,_0x3ad745={'aEhjI':function(_0x45f809,_0x412d0d){return _0x207ea8['yrwDu'](_0x45f809,_0x412d0d);},'ldlyn':function(_0x243cb9,_0x4bf73f){const _0x4b6958=a137_0x5913;return _0x207ea8[_0x4b6958(0x8b)](_0x243cb9,_0x4bf73f);}};_0x207ea8[_0x545e0e(0x12e)](getos,(_0x2c8ca0,_0x2be7f1)=>{const _0x27705c=_0x545e0e;if(_0x2c8ca0)return _0x3ad745[_0x27705c(0x127)](_0x51c969,_0x2c8ca0);_0x3ad745[_0x27705c(0x1a2)](_0x396c09,_0x2be7f1);});});};exports[a137_0x4adbb8(0xf5)]=async()=>{const _0x383f81=a137_0x4adbb8,_0x1e2118={'eCBjl':function(_0x370c95){return _0x370c95();},'wXSDv':_0x383f81(0xe7),'wxAZm':function(_0x4b9c28){return _0x4b9c28();},'yDVfI':_0x383f81(0x10c),'wzeyi':_0x383f81(0x9e),'SbXtL':function(_0x5e7ccd){return _0x5e7ccd();},'AeaoF':'Linux','zXefN':function(_0x3f7fa6){return _0x3f7fa6();},'cmbZw':_0x383f81(0x84)};let _0x197f53=_0x1e2118['eCBjl'](getPlatformName),_0x3fb5a8=os[_0x383f81(0x97)]()['toString']();switch(_0x197f53){case _0x1e2118[_0x383f81(0x179)]:_0x3fb5a8=_0x1e2118[_0x383f81(0x135)](getMacOSVersion);break;case _0x1e2118[_0x383f81(0x109)]:try{const _0x108560=(await import(_0x1e2118['wzeyi']))[_0x383f81(0x88)];_0x3fb5a8=_0x1e2118['SbXtL'](_0x108560);}catch(_0x15f7e1){exports[_0x383f81(0xce)](_0x383f81(0x7b)+_0x15f7e1[_0x383f81(0x83)]());}break;case _0x1e2118['AeaoF']:try{const _0x22c8dc=await _0x1e2118[_0x383f81(0xb3)](getLinuxDetails);_0x22c8dc[_0x383f81(0x7a)]&&(_0x197f53=_0x22c8dc[_0x383f81(0x7a)]),_0x22c8dc[_0x383f81(0x97)]&&(_0x3fb5a8=_0x22c8dc[_0x383f81(0x97)][_0x383f81(0x83)]());}catch(_0x35cae0){exports[_0x383f81(0xce)](_0x1e2118['cmbZw']);}break;default:break;}const _0x304119={};return _0x304119[_0x383f81(0x114)]=_0x197f53,_0x304119['platformVersion']=_0x3fb5a8,_0x304119;},exports[a137_0x4adbb8(0xbc)]=(_0x4727d6,_0x4c9cc5)=>{const _0x113c19=a137_0x4adbb8,_0xa47b69={};_0xa47b69['KePUe']=function(_0x587484,_0x52b49f){return _0x587484===_0x52b49f;},_0xa47b69[_0x113c19(0x100)]='test',_0xa47b69[_0x113c19(0x11d)]=function(_0x428c90,_0x24695f){return _0x428c90===_0x24695f;},_0xa47b69[_0x113c19(0x186)]=_0x113c19(0x17e);const _0x38a2b7=_0xa47b69;if(!_0x4727d6)return[];try{if(_0x38a2b7[_0x113c19(0x8f)](_0x4c9cc5,_0x38a2b7[_0x113c19(0x100)]))return!Array[_0x113c19(0x158)](_0x4727d6)&&(_0x4727d6=[_0x4727d6]),_0x4727d6[_0x113c19(0x141)](_0x3e73e7=>{const _0x220ed7=_0x113c19,{stack:_0x2a86eb,..._0x59bbc2}=_0x3e73e7,_0x11cf43=Object['keys'](_0x59bbc2)[_0x220ed7(0x141)](_0x3e3259=>{return _0x3e3259+':\x20'+_0x59bbc2[_0x3e3259];}),_0x5055aa=_0x2a86eb?exports['removeAnsiColors'](_0x2a86eb)[_0x220ed7(0xc0)](/\r?\n/):[exports['removeAnsiColors'](_0x3e73e7[_0x220ed7(0xe4)])],_0x1b1146={};return _0x1b1146[_0x220ed7(0xcc)]=_0x5055aa,_0x1b1146[_0x220ed7(0xbd)]=_0x11cf43,_0x1b1146;});else{if(_0x38a2b7[_0x113c19(0x11d)](_0x4c9cc5,_0x38a2b7[_0x113c19(0x186)])){const _0x58bc0c=[],_0x1124c1=[];return Object['keys'](_0x4727d6)[_0x113c19(0xa7)](_0x3e1cd6=>{const _0x5c512b=_0x113c19;try{_0x1124c1[_0x5c512b(0xc6)](_0x3e1cd6+':\x20'+_0x4727d6[_0x3e1cd6]);}catch(_0x37b44f){exports[_0x5c512b(0xce)](_0x5c512b(0x196)+_0x37b44f[_0x5c512b(0xe4)]+_0x5c512b(0x78)+_0x37b44f[_0x5c512b(0xcc)]);}}),_0x58bc0c[_0x113c19(0xc6)]({'backtrace':exports[_0x113c19(0x11a)](_0x4727d6[_0x113c19(0xbf)])[_0x113c19(0xc0)](/\r?\n/),'expanded':_0x1124c1}),_0x58bc0c;}}return[];}catch(_0x51758e){exports[_0x113c19(0xce)](_0x113c19(0x196)+_0x51758e[_0x113c19(0xe4)]+_0x113c19(0x78)+_0x51758e[_0x113c19(0xcc)]);}return[];};class PathHelper{constructor(_0x399712,_0x56bd54){const _0x4cdf4b=a137_0x4adbb8;this[_0x4cdf4b(0x150)]=_0x399712,this[_0x4cdf4b(0x126)]=_0x56bd54;}['relativeTestFilePath'](_0x658916){const _0xcd2df2=a137_0x4adbb8,_0x1f3cff=this['config']['cwd']||this['config'][_0xcd2df2(0xee)];return path['relative'](_0x1f3cff,_0x658916);}[a137_0x4adbb8(0xfc)](_0x3f0d65){const _0x43d37f=a137_0x4adbb8,_0xdad48=this[_0x43d37f(0xd5)](_0x3f0d65);return this[_0x43d37f(0x126)]?path['join'](this[_0x43d37f(0x126)],_0xdad48):_0xdad48;}}exports[a137_0x4adbb8(0x14a)]=PathHelper,exports[a137_0x4adbb8(0xc4)]=(_0x453d01=!![])=>{const _0x2c830e=a137_0x4adbb8,_0x136415={};_0x136415[_0x2c830e(0x10e)]=function(_0x5b163f,_0x156e24){return _0x5b163f===_0x156e24;},_0x136415[_0x2c830e(0xec)]=_0x2c830e(0x13d),_0x136415['OCKeA']='true',_0x136415[_0x2c830e(0x191)]=_0x2c830e(0x181),_0x136415[_0x2c830e(0x187)]=_0x2c830e(0x113),_0x136415[_0x2c830e(0xe6)]=_0x2c830e(0x10a);const _0x5a4e47=_0x136415;requestSpy['spy']((_0x468675,_0x39d2da)=>{const _0x12be54=_0x2c830e;_0x39d2da&&!(_0x39d2da[_0x12be54(0xcd)]&&_0x5a4e47['ISTft'](_0x39d2da[_0x12be54(0xcd)][_0x5a4e47[_0x12be54(0xec)]],_0x5a4e47[_0x12be54(0x8d)]))&&(_0x39d2da[_0x12be54(0x17a)]=_0x39d2da[_0x12be54(0x19a)],delete _0x39d2da[_0x12be54(0x19a)],_0x453d01&&process[_0x12be54(0x98)](_0x12be54(0x185)+process[_0x12be54(0xc8)],{'timestamp':new Date()[_0x12be54(0xb8)](),'level':null,'message':null,'kind':_0x5a4e47['KGoTd'],'http_response':_0x39d2da})),_0x39d2da&&(constants[_0x12be54(0x132)][_0x12be54(0x13b)](_0x39d2da['host'])||constants['ATS_HUB_URL_REGEX'][_0x12be54(0x13b)](_0x39d2da[_0x12be54(0x17a)]))?global[_0x12be54(0xb4)]=_0x5a4e47[_0x12be54(0x187)]:global['__cloud_provider___']=_0x5a4e47['zEAcF'];});},exports[a137_0x4adbb8(0xf0)]=()=>{const _0x18ce54=a137_0x4adbb8,_0x5b4b3a={'XGmVP':function(_0x2829c5,_0x1f0c09){return _0x2829c5(_0x1f0c09);}};console={},Object[_0x18ce54(0xa5)](consoleHolder)[_0x18ce54(0xa7)](_0x2905a5=>{_0x5b4b3a['XGmVP'](isFunction,consoleHolder[_0x2905a5])?console[_0x2905a5]=(..._0x56da20)=>{const _0x6a75f9=a137_0x5913;try{!Object[_0x6a75f9(0xa5)](BSTestOpsPatcher)[_0x6a75f9(0xb1)](_0x2905a5)?consoleHolder[_0x2905a5](..._0x56da20):BSTestOpsPatcher[_0x2905a5](..._0x56da20);}catch(_0x410ef3){consoleHolder[_0x2905a5](..._0x56da20);}}:console[_0x2905a5]=consoleHolder[_0x2905a5];});},exports[a137_0x4adbb8(0xeb)]=()=>a137_0x4adbb8(0x148)+JSON['stringify']({'action':'annotate','arguments':{'data':a137_0x4adbb8(0x81)+Date['now'](),'level':a137_0x4adbb8(0xce)}}),exports[a137_0x4adbb8(0x99)]=_0x1d5cc7=>{const _0x2e67cc=a137_0x4adbb8,_0x1d9440={};_0x1d9440[_0x2e67cc(0x180)]=function(_0x2d4ed6,_0x1a6a5e){return _0x2d4ed6===_0x1a6a5e;},_0x1d9440[_0x2e67cc(0x7f)]='browserstack',_0x1d9440[_0x2e67cc(0xab)]=_0x2e67cc(0xc9),_0x1d9440[_0x2e67cc(0xb5)]=_0x2e67cc(0x14b),_0x1d9440[_0x2e67cc(0xa8)]=function(_0x16f5c3,_0x36137a){return _0x16f5c3>_0x36137a;},_0x1d9440[_0x2e67cc(0xef)]=_0x2e67cc(0x116),_0x1d9440['eGfJF']=_0x2e67cc(0xbb),_0x1d9440[_0x2e67cc(0xb9)]=_0x2e67cc(0x89),_0x1d9440[_0x2e67cc(0x7e)]='turboscale',_0x1d9440[_0x2e67cc(0x153)]=_0x2e67cc(0xf9);const _0x40b555=_0x1d9440;let _0x3515f5=null;try{if(_0x40b555[_0x2e67cc(0x180)](global[_0x2e67cc(0xb4)],_0x40b555[_0x2e67cc(0x7f)])){if(_0x1d5cc7[_0x40b555[_0x2e67cc(0xab)]]||_0x1d5cc7[_0x40b555[_0x2e67cc(0xb5)]]||!bsSetupHelper[_0x2e67cc(0xbe)](global[_0x2e67cc(0xe5)])&&_0x40b555['CEJTx'](global[_0x2e67cc(0xe5)][_0x2e67cc(0x19e)],0x0)&&(global[_0x2e67cc(0xe5)][0x0][_0x40b555['TwVot']]||global[_0x2e67cc(0xe5)][0x0][_0x40b555[_0x2e67cc(0xab)]]))_0x3515f5=_0x40b555[_0x2e67cc(0xef)];else _0x1d5cc7[_0x40b555[_0x2e67cc(0x102)]]&&_0x1d5cc7[_0x40b555['eGfJF']][_0x40b555[_0x2e67cc(0xb9)]]?_0x3515f5=_0x40b555[_0x2e67cc(0x7e)]:_0x3515f5=_0x40b555[_0x2e67cc(0x153)];}}catch(_0x116119){exports[_0x2e67cc(0xce)]('Failed\x20to\x20determine\x20product\x20linked\x20to\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x2e67cc(0x1a0)+_0x116119);}return _0x3515f5;},exports[a137_0x4adbb8(0x125)]=async(_0x160b04,_0x34f017,_0x5c76d4=![])=>{const _0xce0bf=a137_0x4adbb8,_0x4f71b8={};_0x4f71b8[_0xce0bf(0xa1)]=function(_0x247253,_0x32a53f){return _0x247253===_0x32a53f;},_0x4f71b8['XKCPi']='browserstack',_0x4f71b8['oLwag']=_0xce0bf(0x1a1),_0x4f71b8[_0xce0bf(0x82)]=_0xce0bf(0x92);const _0x45f143=_0x4f71b8;try{const _0x2b3f6e=await _0x160b04[_0xce0bf(0xe3)](),_0x1538ef=await _0x160b04[_0xce0bf(0xfd)](),_0x3f70c2={},_0x54c469=Object[_0xce0bf(0x108)](_0x1538ef[_0xce0bf(0xe3)]()[_0xce0bf(0x15c)]),_0x17c356={'product':exports[_0xce0bf(0x99)](_0x54c469),'capabilities':_0x54c469,'platform':_0x2b3f6e[_0xce0bf(0x137)](),'platform_version':bsSetupHelper['getPlatformVersion'](_0x45f143[_0xce0bf(0xa1)](global[_0xce0bf(0xb4)],_0x45f143['XKCPi'])),'browser':_0x2b3f6e[_0xce0bf(0x14d)](),'browser_version':_0x2b3f6e[_0xce0bf(0x8e)](),'session_id':_0x1538ef[_0xce0bf(0xe0)]()};global[_0xce0bf(0xb4)]?_0x3f70c2[global[_0xce0bf(0xb4)]]=_0x17c356:_0x3f70c2[_0x45f143[_0xce0bf(0x164)]]=_0x17c356;if(_0x5c76d4)return _0x3f70c2;process[_0xce0bf(0x98)](_0xce0bf(0x80)+process[_0xce0bf(0xc8)],{'timestamp':new Date()[_0xce0bf(0xb8)](),'level':null,'message':null,'kind':_0x45f143[_0xce0bf(0x82)],'http_response':_0x3f70c2,'uuid':_0x34f017});}catch(_0x32490e){exports[_0xce0bf(0xce)](_0xce0bf(0x166)+_0x32490e);}},exports['isInternalHook']=_0x1394dc=>{const _0x562c6a=a137_0x4adbb8;return _0x1394dc&&_0x1394dc['toString']()[_0x562c6a(0x192)](/browserstack internal helper hook/);};
|
|
1
|
+
const a137_0x4df86b=a137_0xfed3;(function(_0x4009bc,_0x164724){const _0x1b1b4e=a137_0xfed3,_0x458a64=_0x4009bc();while(!![]){try{const _0x4ed431=-parseInt(_0x1b1b4e(0x1f2))/0x1*(parseInt(_0x1b1b4e(0x1fd))/0x2)+parseInt(_0x1b1b4e(0x2c4))/0x3+-parseInt(_0x1b1b4e(0x2f8))/0x4*(-parseInt(_0x1b1b4e(0x2b9))/0x5)+-parseInt(_0x1b1b4e(0x233))/0x6*(-parseInt(_0x1b1b4e(0x2ef))/0x7)+-parseInt(_0x1b1b4e(0x28a))/0x8+parseInt(_0x1b1b4e(0x22c))/0x9*(parseInt(_0x1b1b4e(0x281))/0xa)+-parseInt(_0x1b1b4e(0x266))/0xb*(parseInt(_0x1b1b4e(0x220))/0xc);if(_0x4ed431===_0x164724)break;else _0x458a64['push'](_0x458a64['shift']());}catch(_0x3e6c03){_0x458a64['push'](_0x458a64['shift']());}}}(a137_0x1441,0x7206b));const fs=require('fs'),path=require(a137_0x4df86b(0x1fe)),gitLastCommit=require(a137_0x4df86b(0x2b5)),getRepoInfo=require(a137_0x4df86b(0x24c)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a137_0x4df86b(0x269)),http=require('http'),https=require(a137_0x4df86b(0x274)),child_process=require(a137_0x4df86b(0x280)),getos=require(a137_0x4df86b(0x25f)),os=require('os'),logger=require(a137_0x4df86b(0x23c))[a137_0x4df86b(0x2ed)],buildLogger=require(a137_0x4df86b(0x23c))[a137_0x4df86b(0x1fc)],bsSetupHelper=require(a137_0x4df86b(0x1ff)),requestSpy=require(a137_0x4df86b(0x291)),constants=require(a137_0x4df86b(0x246)),logPatcher=require(a137_0x4df86b(0x2f3)),util=require(a137_0x4df86b(0x208)),{fileLogger}=require(a137_0x4df86b(0x23c)),PerformanceTester=require(a137_0x4df86b(0x217)),{isFunction}=require(a137_0x4df86b(0x2d8)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require('../performance/constants'),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a137_0x4df86b(0x2a0));exports[a137_0x4df86b(0x27d)]=_0x37c263=>{const _0x33390d=a137_0x4df86b;fileLogger[_0x33390d(0x2db)]('['+new Date()[_0x33390d(0x2d0)]()+_0x33390d(0x1e5)+constants[_0x33390d(0x271)]+'\x20]\x20'+_0x37c263);},exports[a137_0x4df86b(0x209)]=_0x1ccd30=>{const _0x339ecc=a137_0x4df86b,_0x1d0492={};_0x1d0492['gOQlD']=function(_0x2f30a1,_0x83a07f){return _0x2f30a1===_0x83a07f;},_0x1d0492[_0x339ecc(0x2b0)]=_0x339ecc(0x1e6),_0x1d0492[_0x339ecc(0x2ba)]=function(_0x1a5cce,_0x1f613e){return _0x1a5cce===_0x1f613e;};const _0x1f3d67=_0x1d0492;fileLogger[_0x339ecc(0x209)]('['+new Date()[_0x339ecc(0x2d0)]()+'][\x20'+constants[_0x339ecc(0x271)]+_0x339ecc(0x26b)+_0x1ccd30),(_0x1f3d67[_0x339ecc(0x212)](process[_0x339ecc(0x2a8)][_0x339ecc(0x2c9)],_0x1f3d67['enTcz'])||_0x1f3d67['gOQlD'](process[_0x339ecc(0x2a8)][_0x339ecc(0x2c9)],'1')||_0x1f3d67[_0x339ecc(0x2ba)](process[_0x339ecc(0x2a8)][_0x339ecc(0x23a)],_0x1f3d67[_0x339ecc(0x2b0)])||_0x1f3d67['gOQlD'](process[_0x339ecc(0x2a8)][_0x339ecc(0x23a)],'1'))&&consoleHolder['log']('\x0a['+new Date()['toISOString']()+'][\x20'+constants[_0x339ecc(0x271)]+_0x339ecc(0x26b)+_0x1ccd30+'\x0a');};const a137_0x438284={};a137_0x438284[a137_0x4df86b(0x20f)]=!![],a137_0x438284[a137_0x4df86b(0x210)]=0xea60,a137_0x438284[a137_0x4df86b(0x2c6)]=0x2,a137_0x438284['maxTotalSockets']=0x2;const httpKeepAliveAgent=new http['Agent'](a137_0x438284),a137_0xc7b9b6={};a137_0xc7b9b6[a137_0x4df86b(0x20f)]=!![],a137_0xc7b9b6['timeout']=0xea60,a137_0xc7b9b6[a137_0x4df86b(0x2c6)]=0x2,a137_0xc7b9b6['maxTotalSockets']=0x2;const httpsKeepAliveAgent=new https[(a137_0x4df86b(0x2ca))](a137_0xc7b9b6),a137_0x5ecd5e={};a137_0x5ecd5e[a137_0x4df86b(0x20f)]=!![],a137_0x5ecd5e[a137_0x4df86b(0x210)]=0xea60,a137_0x5ecd5e[a137_0x4df86b(0x2c6)]=0x2,a137_0x5ecd5e[a137_0x4df86b(0x2b6)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a137_0x4df86b(0x2ca))](a137_0x5ecd5e),a137_0x2f51ad={};function a137_0x1441(){const _0x1a271c=['true','TEST_REPORTING_BUILD_TAG','sfWVD','O11Y_URL','gWFJM','isTestObservabilitySession','host','filter','Error\x20in\x20importing\x20windows-release\x20','PLAYWRIGHT','uNmuR','push','1sIRyps','BROWSERSTACK_ACCESSIBILITY','KQDNN','logs','GUWFm','__cloud_provider___','pid','HTTP','win32','getCapabilities','buildLogger','263498UptGxW','path','../helper','getDefaultHeaders','HUB_URL_REGEX','BROWSERSTACK_TEST_REPORTING','replace','measureWrapper','GsCvo','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','PlSVt','util','debug','getFailureType','split','automate','removeAnsiColors','xeNhY','keepAlive','timeout','GsKws','gOQlD','https://accessibility.browserstack.com/automated-tests/projects/p/builds/b/1?thBuildId=','CsBcB','haAGz','platform','../performance/performance-tester','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','EchSJ','IoZlG','getPlatform','windows-release','TEST_ATTACHMENT','test_run_uuid','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','405984fitqLc','ZiQCa','qZTSH','mocha','ByrbE','isArray','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','map','UnhandledError','BS_TESTOPS_BUILD_HASHED_ID','fPrti','wOcbw','693JNJDTR','bs:addLog:','pVDsL','Unknown','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','body','bwdxp','17628FPWSlL','\x20]\x20Build\x20Not\x20Found\x20%s','PathHelper','XNBRQ','getBrowserVersion','@playwright/test','hostname','BROWSERSTACK_OBSERVABILITY_DEBUG','bs:addPlatformDetails:','../logger','SmdAI','EvAwk','application/json','readConfig','CUSTOM_TAG','getObservabilityLinkedProductName','JEST','bstack:options','info','../../bin/utils/constants','WQxzQ','NJJQQ','EKdQX','RSxbs','zSrdr','git-repo-info','^CUSTOM_TAG_\x5cd+$','\x20:\x20','EeSGM','undefined','json','sHwKA','mNhIK','getFrameworkVersion','emit','catch','BROWSERSTACK_CONFIG_FILE_PATH','getSession','jest','stack','failureData','WVkDF','CODECEPT','Bearer\x20','getos','rBkHA','zQHAI','app','/builds/','DJzMl','customTag','363lcoJnp','jYFez','../../bin/v2/browserstackCLI','./constants','getSyncScript','\x20]\x20','xdqva','nxRxk','join','error','Linux','TEST_REPORTING_ANALYTICS','brEJf','O11yHashedID','https','Zkauf','MOCHA','psExp','HOCEK','isUndefined','KABia','forEach','CUCUMBER','trace','RNgaw','FraaC','child_process','98570fiSQVa','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','match','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','TEST_PLATFORM','tvBxw','length','X-BSTACK-TESTOPS','keys','6700016dyJfvY','Ieegk','VYFIl','UzHwW','message','BtpcZ','Iptet','../../helpers/request-spy','nodeRequest','ilpht','msdTp','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','parseFileNames','FZBLi','relativeTestFilePath','platformName','IwWYG','IMqqI','data','Content-Type','toJSON','uHTBo','../../../src/bin/utils/constants','extractValuesWithRegexKeyMatch','turboscale','toString','1|5|0|4|2|3','aeSwi','prefix','getCustomTags','env','abErU','ObservabilitySync:','\x20test\x20instance\x20:\x20','addRequestSpy','BROWSERSTACK_PRODUCT_MAP','BROWSERSTACK_TEST_OBSERVABILITY','TEST_OBSERVABILITY_BUILD_TAG','enTcz','release','url','A11yEnabled','hLhRi','git-last-commit','maxTotalSockets','Error\x20in\x20getting\x20Linux\x20Details','sleep','100RwcBzS','peJpL','aoVxb','getBrowserName','ULoxG','upQgD','fromEntries','XzUGn','zbhnX','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','CFbTw','1850745dgFrwL','shouldReRunObservabilityTests','maxSockets','agent','modifyReqForTraceUpload','BROWSERSTACK_TEST_REPORTING_DEBUG','Agent','keWDK','browserstack','config','capabilities','relative','toISOString','BROWSERSTACK_TEST_OBSERVABILITY_YML','TYTnY','AssertionError','spy','BROWSERSTACK_TESTHUB_JWT','printBuildLink','dweYA','lodash','CODECEPT_CUCUMBER','LogCreated','silly','app_automate','gKVAx','lKTWr','puppeteer-core','MpgrM','Test\x20timeout\x20of','zlvnq','getBrowserStackConfig','bDQoJ','vUOWS','cwd','Authorization','map_','PUPPETEER','patchConsoleLogger','FUVFJ','getUserCredentials','winstonLogger','Uploading\x20trace\x20logs\x20to:\x20','1071bhMGMI','printA11yBuildLink','buildTag','bnlvH','../../bin/utils/logPatcher','execSync','test','trim','WrNZA','145468UhAQKx','yCGbk','FBziv','OS\x20X','Windows','format','xqszA','local_grid','getPackageVersion','TPxOJ','HdjZi','stringify','ATS_HUB_URL_REGEX','backtrace','asyncAwaitNodeReq','null','KOceW','Zkfwn','PtJtz','includes','[%s][\x20','hBtSD','headers','browserstack_executor:\x20','gmkYJ','uzJsq','VeFmb','Visit\x20','sAflG','][\x20'];a137_0x1441=function(){return _0x1a271c;};return a137_0x1441();}a137_0x2f51ad['keepAlive']=!![],a137_0x2f51ad[a137_0x4df86b(0x210)]=0xea60,a137_0x2f51ad[a137_0x4df86b(0x2c6)]=0x2,a137_0x2f51ad[a137_0x4df86b(0x2b6)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a137_0x4df86b(0x2ca))](a137_0x2f51ad);exports[a137_0x4df86b(0x2c5)]=()=>{const _0xbd66cd=a137_0x4df86b,_0xb905ac={};_0xb905ac[_0xbd66cd(0x2be)]=function(_0x3cc4de,_0x2902f5){return _0x3cc4de!==_0x2902f5;},_0xb905ac[_0xbd66cd(0x207)]=_0xbd66cd(0x1d7);const _0x48da38=_0xb905ac;return process[_0xbd66cd(0x2a8)]['BROWSERSTACK_RERUN_TESTS']&&_0x48da38['upQgD'](process[_0xbd66cd(0x2a8)]['BROWSERSTACK_RERUN_TESTS'],_0x48da38[_0xbd66cd(0x207)])?!![]:![];},exports[a137_0x4df86b(0x1eb)]=()=>{const _0x4347f7=a137_0x4df86b,_0x23d027={};_0x23d027[_0x4347f7(0x1da)]=function(_0x1d3d43,_0xf22d2c){return _0x1d3d43===_0xf22d2c;},_0x23d027[_0x4347f7(0x275)]=_0x4347f7(0x1e6);const _0xb78c4e=_0x23d027;let _0x312243=!![];return process[_0x4347f7(0x2a8)][_0x4347f7(0x2d1)]&&(_0x312243=_0xb78c4e[_0x4347f7(0x1da)](process[_0x4347f7(0x2a8)]['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0xb78c4e[_0x4347f7(0x275)])),process[_0x4347f7(0x2a8)][_0x4347f7(0x2ae)]&&(_0x312243=_0xb78c4e[_0x4347f7(0x1da)](process[_0x4347f7(0x2a8)][_0x4347f7(0x2ae)],_0xb78c4e['Zkauf'])),process[_0x4347f7(0x2a8)][_0x4347f7(0x202)]&&(_0x312243=_0xb78c4e['PtJtz'](process[_0x4347f7(0x2a8)][_0x4347f7(0x202)],_0xb78c4e[_0x4347f7(0x275)])),_0x312243;},exports[a137_0x4df86b(0x296)]=_0xfbede8=>{const _0x15fe30=a137_0x4df86b;if(bsSetupHelper[_0x15fe30(0x279)](_0xfbede8))return undefined;try{return _0xfbede8['trim']()[_0x15fe30(0x20b)](',');}catch(_0x34ce8c){return undefined;}},exports[a137_0x4df86b(0x2d6)]=()=>{const _0x3c6426=a137_0x4df86b,_0x6aaaca={'ZfgTG':function(_0x1b0fa2,_0xe5b67c){return _0x1b0fa2(_0xe5b67c);},'KOceW':_0x3c6426(0x268),'vUOWS':function(_0x69f208,_0x436a58){return _0x69f208!==_0x436a58;},'VYFIl':_0x3c6426(0x1d7),'sfWVD':function(_0x4af223,_0x10eef6){return _0x4af223!==_0x10eef6;},'DJzMl':_0x3c6426(0x250),'MpgrM':function(_0xd3fe2c,_0x5ad38a){return _0xd3fe2c===_0x5ad38a;},'sHwKA':_0x3c6426(0x1e6),'FraaC':function(_0x20ad53,_0x212f28){return _0x20ad53&&_0x212f28;}};return PerformanceTester[_0x3c6426(0x204)](PerformanceO11yEvents['PRINT_BUILDLINK'],async()=>{const _0x44e65f=_0x3c6426;try{const _0x315c33=_0x6aaaca['ZfgTG'](require,_0x6aaaca[_0x44e65f(0x1d8)]);if(_0x315c33['O11yHashedID']){const _0x144be6='Visit\x20'+O11Y_URL+_0x44e65f(0x263)+_0x315c33['O11yHashedID']+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a';buildLogger[_0x44e65f(0x245)](_0x144be6),exports['printA11yBuildLink'](_0x315c33[_0x44e65f(0x273)],_0x315c33[_0x44e65f(0x2b3)]);return;}if(process[_0x44e65f(0x2a8)][_0x44e65f(0x229)]&&_0x6aaaca[_0x44e65f(0x2e5)](process[_0x44e65f(0x2a8)][_0x44e65f(0x229)],_0x6aaaca[_0x44e65f(0x28c)])&&_0x6aaaca[_0x44e65f(0x1e8)](process[_0x44e65f(0x2a8)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x6aaaca[_0x44e65f(0x264)])){const _0x5170a1=_0x44e65f(0x1e3)+constants[_0x44e65f(0x1e9)]+_0x44e65f(0x263)+process[_0x44e65f(0x2a8)]['BS_TESTOPS_BUILD_HASHED_ID']+_0x44e65f(0x282);buildLogger[_0x44e65f(0x245)](_0x5170a1);const _0x207b0c=_0x6aaaca[_0x44e65f(0x2e0)](process[_0x44e65f(0x2a8)][_0x44e65f(0x1f3)],_0x6aaaca[_0x44e65f(0x252)]);let _0x2287e8=![];try{const _0x24f868=JSON['parse'](process['env'][_0x44e65f(0x2ad)]||'{}');_0x2287e8=_0x6aaaca[_0x44e65f(0x2e0)](_0x24f868[_0x44e65f(0x2dc)],!![]);}catch(_0xd4426b){}exports[_0x44e65f(0x2f0)](process[_0x44e65f(0x2a8)][_0x44e65f(0x229)],_0x6aaaca[_0x44e65f(0x27f)](_0x207b0c,!_0x2287e8));}}catch(_0x23a357){logger[_0x44e65f(0x26f)](util['format'](_0x44e65f(0x1dc)+constants[_0x44e65f(0x271)]+_0x44e65f(0x234),new Date()[_0x44e65f(0x2d0)](),_0x23a357[_0x44e65f(0x25a)]||_0x23a357[_0x44e65f(0x28e)]||_0x23a357));}})();},exports[a137_0x4df86b(0x2f0)]=(_0x3381f3,_0x59bf8b)=>{const _0x137a51=a137_0x4df86b,_0x336010={};_0x336010['RSxbs']=function(_0x58b264,_0x51bc5e){return _0x58b264&&_0x51bc5e;},_0x336010[_0x137a51(0x1e1)]='[%s][\x20Accessibility\x20]\x20Error\x20printing\x20accessibility\x20build\x20link\x20%s';const _0x3e38af=_0x336010;try{if(_0x3e38af[_0x137a51(0x24a)](_0x59bf8b,_0x3381f3)){const _0x13bdbb=_0x137a51(0x213)+_0x3381f3,_0x407ffc=_0x137a51(0x1e3)+_0x13bdbb+'\x20to\x20view\x20accessibility\x20report.\x0a';buildLogger['info'](_0x407ffc);}}catch(_0x17403e){logger[_0x137a51(0x26f)](util[_0x137a51(0x1cd)](_0x3e38af[_0x137a51(0x1e1)],new Date()[_0x137a51(0x2d0)](),_0x17403e['stack']||_0x17403e[_0x137a51(0x28e)]||_0x17403e));}},exports[a137_0x4df86b(0x20a)]=_0x3aad57=>{const _0x2e849d=a137_0x4df86b,_0x2aa843={};_0x2aa843[_0x2e849d(0x1ce)]=_0x2e849d(0x2d3),_0x2aa843[_0x2e849d(0x1e2)]=_0x2e849d(0x2e1),_0x2aa843[_0x2e849d(0x267)]='TimeoutError',_0x2aa843[_0x2e849d(0x2c3)]=_0x2e849d(0x228);const _0x234852=_0x2aa843;if(!_0x3aad57)return null;const _0x4da33b=_0x3aad57[_0x2e849d(0x2a3)]();if(_0x4da33b['match'](/AssertionError/))return _0x234852['xqszA'];if(_0x4da33b[_0x2e849d(0x283)](/TimeoutError/)||_0x4da33b['startsWith'](_0x234852['VeFmb'])||_0x4da33b[_0x2e849d(0x283)](/Timeout.*exceeded/i))return _0x234852[_0x2e849d(0x267)];return _0x234852[_0x2e849d(0x2c3)];},exports[a137_0x4df86b(0x254)]=_0x2e57c9=>{const _0x23ae69=a137_0x4df86b,_0x43dc6c={};_0x43dc6c['TPxOJ']=_0x23ae69(0x223),_0x43dc6c['RJkMu']=_0x23ae69(0x238),_0x43dc6c[_0x23ae69(0x24f)]='codeceptjs',_0x43dc6c[_0x23ae69(0x261)]=_0x23ae69(0x259),_0x43dc6c[_0x23ae69(0x22e)]='@cucumber/cucumber',_0x43dc6c[_0x23ae69(0x2bb)]=_0x23ae69(0x2df),_0x43dc6c['bnlvH']='puppeteer';const _0x23df66=_0x43dc6c;let _0x591444=null;switch(_0x2e57c9){case FRAMEWORKS[_0x23ae69(0x276)]:_0x591444=bsSetupHelper[_0x23ae69(0x1d0)](_0x23df66[_0x23ae69(0x1d1)]);break;case FRAMEWORKS[_0x23ae69(0x1ef)]:_0x591444=bsSetupHelper['getPackageVersion'](_0x23df66['RJkMu']);break;case FRAMEWORKS[_0x23ae69(0x25d)]:case FRAMEWORKS[_0x23ae69(0x2d9)]:_0x591444=bsSetupHelper[_0x23ae69(0x1d0)](_0x23df66[_0x23ae69(0x24f)]);break;case FRAMEWORKS[_0x23ae69(0x243)]:_0x591444=bsSetupHelper[_0x23ae69(0x1d0)](_0x23df66[_0x23ae69(0x261)]);break;case FRAMEWORKS[_0x23ae69(0x27c)]:_0x591444=bsSetupHelper[_0x23ae69(0x1d0)](_0x23df66[_0x23ae69(0x22e)]);break;case FRAMEWORKS[_0x23ae69(0x2e9)]:_0x591444=bsSetupHelper[_0x23ae69(0x1d0)](_0x23df66['aoVxb'])||bsSetupHelper[_0x23ae69(0x1d0)](_0x23df66[_0x23ae69(0x2f2)]);break;default:break;}return _0x591444;},exports[a137_0x4df86b(0x2e3)]=_0x4e806f=>{const _0x53658a=a137_0x4df86b;let _0x552430=null;switch(_0x4e806f){case FRAMEWORKS[_0x53658a(0x1ef)]:_0x552430=process['env'][_0x53658a(0x257)];break;}if(!_0x552430)return;return bsSetupHelper[_0x53658a(0x240)](_0x552430,![]);},exports[a137_0x4df86b(0x2ec)]=_0x1b1c94=>{return{'username':bsSetupHelper['getUserName'](_0x1b1c94),'accessKey':bsSetupHelper['getAccessKey'](_0x1b1c94)};},exports[a137_0x4df86b(0x2c8)]=(_0x4b929e,_0x1e5c7e)=>{const _0x518591=a137_0x4df86b,_0x2941f8={};_0x2941f8[_0x518591(0x278)]=_0x518591(0x2a4),_0x2941f8[_0x518591(0x224)]=_0x518591(0x2da),_0x2941f8[_0x518591(0x2bd)]=_0x518591(0x21d);const _0x348ab1=_0x2941f8,_0x595a3d=_0x348ab1[_0x518591(0x278)][_0x518591(0x20b)]('|');let _0x4a75f9=0x0;while(!![]){switch(_0x595a3d[_0x4a75f9++]){case'0':_0x4b929e['formData']={'data':_0x4b929e['body'][0x0][_0x518591(0x1f5)][0x0]['data'],'test_run_uuid':_0x4b929e['body'][0x0][_0x518591(0x1f5)][0x0][_0x518591(0x21e)],'event_type':_0x348ab1['ByrbE'],'kind':_0x348ab1[_0x518591(0x2bd)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x518591(0x2d0)](),'fileName':_0x4b929e['body'][0x0]['logs'][0x0]['fileName']};continue;case'1':if(!_0x4b929e[_0x518591(0x231)]||!Array[_0x518591(0x225)](_0x4b929e[_0x518591(0x231)]))return;continue;case'2':delete _0x4b929e[_0x518591(0x251)];continue;case'3':delete _0x1e5c7e[_0x518591(0x1de)];continue;case'4':delete _0x4b929e[_0x518591(0x231)];continue;case'5':if(!_0x4b929e[_0x518591(0x231)][0x0]||!_0x4b929e[_0x518591(0x231)][0x0][_0x518591(0x1f5)]||!_0x4b929e[_0x518591(0x231)][0x0][_0x518591(0x1f5)][_0x518591(0x287)])return;continue;}break;}},exports[a137_0x4df86b(0x1d6)]=async(_0x16e841,_0x99772b,_0x5a3430,_0x3d6539,_0x46ba90=!![])=>{const _0x5e0cc4=a137_0x4df86b,_0x5557f5={};_0x5557f5[_0x5e0cc4(0x1ea)]=function(_0x1891a8,_0x5e5120){return _0x1891a8===_0x5e5120;},_0x5557f5[_0x5e0cc4(0x27e)]=_0x5e0cc4(0x29d),_0x5557f5[_0x5e0cc4(0x2a5)]='application/json',_0x5557f5[_0x5e0cc4(0x215)]=_0x5e0cc4(0x274),_0x5557f5[_0x5e0cc4(0x22a)]=function(_0x46332d,_0x57e5dd){return _0x46332d!==_0x57e5dd;},_0x5557f5[_0x5e0cc4(0x294)]='object',_0x5557f5['UzHwW']=_0x5e0cc4(0x218);const _0x2583f0=_0x5557f5,_0x527b6d={..._0x3d6539,...{'method':_0x16e841,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x99772b,'body':_0x5a3430,'json':_0x2583f0[_0x5e0cc4(0x1ea)](_0x3d6539[_0x5e0cc4(0x1de)][_0x2583f0[_0x5e0cc4(0x27e)]],_0x2583f0[_0x5e0cc4(0x2a5)]),'agent':API_URL[_0x5e0cc4(0x1db)](_0x2583f0[_0x5e0cc4(0x215)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x2583f0[_0x5e0cc4(0x1ea)](_0x99772b,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x527b6d[_0x5e0cc4(0x2c7)]=API_URL['includes'](_0x2583f0[_0x5e0cc4(0x215)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x5e0cc4(0x2c8)](_0x527b6d,_0x3d6539),logger[_0x5e0cc4(0x209)](_0x5e0cc4(0x2ee)+_0x527b6d['url']));try{const {statusCode:_0x18ccda,body:_0x21e94e}=await bsSetupHelper['nodeRequest'](_0x16e841,_0x99772b,_0x527b6d,_0x3d6539,_0x527b6d[_0x5e0cc4(0x2b2)]);if(_0x2583f0[_0x5e0cc4(0x22a)](_0x18ccda,0xc8))return _0x21e94e?_0x21e94e:_0x5e0cc4(0x21f)+_0x18ccda;let _0x6d8350=_0x21e94e;if(_0x46ba90)try{_0x2583f0[_0x5e0cc4(0x22a)](typeof _0x21e94e,_0x2583f0['msdTp'])&&(_0x6d8350=JSON['parse'](_0x21e94e));}catch(_0xd7b7a2){logger['error'](_0x2583f0[_0x5e0cc4(0x28d)],_0x21e94e,util[_0x5e0cc4(0x1cd)](_0xd7b7a2));}const _0x3f5bb3={};return _0x3f5bb3[_0x5e0cc4(0x29c)]=_0x6d8350,_0x3f5bb3;}catch(_0x2980f7){logger['error'](_0x5e0cc4(0x2c2)+util[_0x5e0cc4(0x1cd)](_0x2980f7));throw _0x2980f7;}},exports[a137_0x4df86b(0x292)]=(_0x3f22d2,_0x18a95f,_0x372a9a,_0x137d7b,_0x3094a5=!![])=>{const _0x14acad=a137_0x4df86b,_0x3c8a5b={'EchSJ':function(_0x520349,_0x49013c){return _0x520349!==_0x49013c;},'tvBxw':function(_0x61185,_0x28c75d){return _0x61185(_0x28c75d);},'eYGis':'object','keWDK':_0x14acad(0x206),'QzHym':function(_0x23cfe8,_0x465c7d){return _0x23cfe8===_0x465c7d;},'GgGXx':_0x14acad(0x29d),'XzUGn':_0x14acad(0x23f),'bftbY':_0x14acad(0x274),'wOcbw':function(_0x107798,_0x28011d){return _0x107798===_0x28011d;}};return new Promise((_0x297f11,_0x1e6bf1)=>{const _0x227c3f=_0x14acad,_0x2e28f0={'GUWFm':function(_0x4c8aa7,_0xb3b943){return _0x3c8a5b['EchSJ'](_0x4c8aa7,_0xb3b943);},'psExp':function(_0x48ff85,_0x1a8396){const _0x3ed5bf=a137_0xfed3;return _0x3c8a5b[_0x3ed5bf(0x286)](_0x48ff85,_0x1a8396);},'brEJf':function(_0x221086,_0x2b83d9){const _0x36e5c6=a137_0xfed3;return _0x3c8a5b[_0x36e5c6(0x219)](_0x221086,_0x2b83d9);},'ZiQCa':_0x3c8a5b['eYGis'],'uNmuR':function(_0x5bad50,_0x4facfd){const _0x27ecd1=a137_0xfed3;return _0x3c8a5b[_0x27ecd1(0x286)](_0x5bad50,_0x4facfd);},'WVkDF':_0x3c8a5b[_0x227c3f(0x2cb)],'NJJQQ':function(_0x4220a2,_0x13e761){const _0x21943a=_0x227c3f;return _0x3c8a5b[_0x21943a(0x286)](_0x4220a2,_0x13e761);}},_0x5a096b={..._0x137d7b,...{'method':_0x3f22d2,'url':API_URL+'/'+_0x18a95f,'body':_0x372a9a,'json':_0x3c8a5b['QzHym'](_0x137d7b[_0x227c3f(0x1de)][_0x3c8a5b['GgGXx']],_0x3c8a5b[_0x227c3f(0x2c0)]),'agent':API_URL['includes'](_0x3c8a5b['bftbY'])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x3c8a5b[_0x227c3f(0x22b)](_0x18a95f,SCREENSHOT_ENDPOINT)&&(_0x5a096b['agent']=API_URL[_0x227c3f(0x1db)](_0x3c8a5b['bftbY'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x227c3f(0x292)](_0x3f22d2,_0x18a95f,_0x5a096b,_0x137d7b,API_URL)['then'](({statusCode:_0x429042,body:_0x4786ec})=>{const _0x12e07a=_0x227c3f;if(_0x2e28f0[_0x12e07a(0x1f6)](_0x429042,0xc8))_0x2e28f0[_0x12e07a(0x277)](_0x1e6bf1,_0x4786ec?_0x4786ec:_0x12e07a(0x21f)+_0x429042);else{if(_0x3094a5)try{_0x2e28f0[_0x12e07a(0x272)](typeof _0x4786ec,_0x2e28f0[_0x12e07a(0x221)])&&(_0x4786ec=JSON['parse'](_0x4786ec));}catch(_0x438aa2){_0x2e28f0[_0x12e07a(0x1f0)](_0x1e6bf1,_0x2e28f0[_0x12e07a(0x25c)]);return;}const _0x59f838={};_0x59f838[_0x12e07a(0x29c)]=_0x4786ec,_0x2e28f0[_0x12e07a(0x248)](_0x297f11,_0x59f838);}})[_0x227c3f(0x256)](_0x1da744=>{const _0x1377ff=_0x227c3f;_0x1da744&&_0x2e28f0[_0x1377ff(0x248)](_0x1e6bf1,_0x1da744);});});},exports['getBuildTags']=_0x5ca22a=>{const _0x252ba5=a137_0x4df86b;if(process[_0x252ba5(0x2a8)][_0x252ba5(0x1e7)])return process[_0x252ba5(0x2a8)][_0x252ba5(0x1e7)][_0x252ba5(0x20b)](',');if(process['env']['TEST_OBSERVABILITY_BUILD_TAG'])return process[_0x252ba5(0x2a8)][_0x252ba5(0x2af)][_0x252ba5(0x20b)](',');if(_0x5ca22a[_0x252ba5(0x2f1)])return _0x5ca22a[_0x252ba5(0x2f1)];return[];},exports[a137_0x4df86b(0x200)]=(_0x21f2fa=!![])=>{const _0xa66428=a137_0x4df86b,_0x4bc4ea={};_0x4bc4ea[_0xa66428(0x222)]=_0xa66428(0x23f),_0x4bc4ea[_0xa66428(0x2f7)]=_0xa66428(0x1e6),_0x4bc4ea['HdjZi']=_0xa66428(0x2e7);const _0x18b2af=_0x4bc4ea,_0x2971d2={};_0x2971d2[_0xa66428(0x29d)]=_0x18b2af['qZTSH'],_0x2971d2[_0xa66428(0x288)]=_0x18b2af[_0xa66428(0x2f7)];const _0x221c9c=_0x2971d2;return _0x21f2fa&&process[_0xa66428(0x2a8)][_0xa66428(0x2d5)]&&(_0x221c9c[_0x18b2af[_0xa66428(0x1d2)]]=_0xa66428(0x25e)+process[_0xa66428(0x2a8)][_0xa66428(0x2d5)]),_0x221c9c;},exports[a137_0x4df86b(0x2a1)]=_0x3c4b12=>{const _0x4882b3=a137_0x4df86b,_0x104814={};_0x104814['XNBRQ']=_0x4882b3(0x24d);const _0x1dfde0=_0x104814,_0x3562a9=[],_0x819134=new RegExp(_0x1dfde0[_0x4882b3(0x236)],'i');return Object[_0x4882b3(0x289)](_0x3c4b12)[_0x4882b3(0x1ed)](_0x4ed81b=>_0x819134[_0x4882b3(0x2f5)](_0x4ed81b))[_0x4882b3(0x27b)](_0x129a25=>_0x3562a9[_0x4882b3(0x1f1)](_0x3c4b12[_0x129a25])),_0x3562a9;},exports[a137_0x4df86b(0x2a7)]=_0x294ce1=>{const _0x3ff839=a137_0x4df86b,_0x442cb5=[],_0x51b4dc=_0x294ce1[_0x3ff839(0x265)]||process[_0x3ff839(0x2a8)][_0x3ff839(0x241)];return _0x51b4dc&&_0x442cb5[_0x3ff839(0x1f1)](_0x51b4dc),_0x442cb5[_0x3ff839(0x1f1)](...exports[_0x3ff839(0x2a1)](process[_0x3ff839(0x2a8)])),_0x442cb5[_0x3ff839(0x1f1)](...exports[_0x3ff839(0x2a1)](_0x294ce1)),_0x442cb5;},exports[a137_0x4df86b(0x20d)]=_0x529f14=>{const _0x482a9d=a137_0x4df86b;if(!_0x529f14)return'';return _0x529f14[_0x482a9d(0x203)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a137_0x4df86b(0x2b8)]=(_0x4cc928=0x64)=>new Promise(_0x1837a4=>setTimeout(_0x1837a4,_0x4cc928));const getPlatformName=()=>{const _0x4519d8=a137_0x4df86b,_0xa738ed={};_0xa738ed[_0x4519d8(0x2d2)]=function(_0x1b3ef7,_0x572346){return _0x1b3ef7===_0x572346;},_0xa738ed[_0x4519d8(0x1dd)]=_0x4519d8(0x1fa),_0xa738ed[_0x4519d8(0x26d)]=_0x4519d8(0x1cc),_0xa738ed[_0x4519d8(0x290)]=function(_0x3021aa,_0xa16115){return _0x3021aa===_0xa16115;},_0xa738ed[_0x4519d8(0x205)]='darwin',_0xa738ed[_0x4519d8(0x2f9)]=_0x4519d8(0x2fb),_0xa738ed['WvHAX']=function(_0x5e50f5,_0x478bb2){return _0x5e50f5===_0x478bb2;},_0xa738ed[_0x4519d8(0x28b)]='linux',_0xa738ed[_0x4519d8(0x29b)]=_0x4519d8(0x270),_0xa738ed[_0x4519d8(0x27a)]=_0x4519d8(0x22f);const _0x409926=_0xa738ed;if(_0x409926[_0x4519d8(0x2d2)](process[_0x4519d8(0x216)],_0x409926[_0x4519d8(0x1dd)]))return _0x409926['nxRxk'];if(_0x409926[_0x4519d8(0x290)](process[_0x4519d8(0x216)],_0x409926['GsCvo']))return _0x409926[_0x4519d8(0x2f9)];if(_0x409926['WvHAX'](process[_0x4519d8(0x216)],_0x409926[_0x4519d8(0x28b)]))return _0x409926[_0x4519d8(0x29b)];return _0x409926['KABia'];},getMacOSVersion=()=>{const _0x13103d=a137_0x4df86b,_0xb1b512={};_0xb1b512[_0x13103d(0x29a)]=_0x13103d(0x284);const _0x3f0e46=_0xb1b512;return child_process[_0x13103d(0x2f4)](_0x3f0e46[_0x13103d(0x29a)])[_0x13103d(0x2a3)]()[_0x13103d(0x2f6)]();},getLinuxDetails=()=>{const _0x4c5c18={'zlvnq':function(_0x363ab9,_0x2848ce){return _0x363ab9(_0x2848ce);}};return new Promise((_0x389255,_0x262ce0)=>{const _0x1a04e3=a137_0xfed3,_0x392575={'WQxzQ':function(_0x4d4a2b,_0x1a155d){const _0x51ff0b=a137_0xfed3;return _0x4c5c18[_0x51ff0b(0x2e2)](_0x4d4a2b,_0x1a155d);}};_0x4c5c18[_0x1a04e3(0x2e2)](getos,(_0x43a320,_0x13c8ee)=>{const _0x341e76=_0x1a04e3;if(_0x43a320)return _0x392575['WQxzQ'](_0x262ce0,_0x43a320);_0x392575[_0x341e76(0x247)](_0x389255,_0x13c8ee);});});};exports['getPlatformDetails']=async()=>{const _0x137d6e=a137_0x4df86b,_0x31fbfb={'SmdAI':function(_0xc92861){return _0xc92861();},'jPGbw':_0x137d6e(0x2fb),'CsBcB':function(_0x1d0207){return _0x1d0207();},'abErU':_0x137d6e(0x1cc),'zSrdr':_0x137d6e(0x21c),'heYgl':_0x137d6e(0x270),'hLhRi':_0x137d6e(0x2b7)};let _0x34ff59=_0x31fbfb[_0x137d6e(0x23d)](getPlatformName),_0x488cb5=os['release']()[_0x137d6e(0x2a3)]();switch(_0x34ff59){case _0x31fbfb['jPGbw']:_0x488cb5=_0x31fbfb[_0x137d6e(0x214)](getMacOSVersion);break;case _0x31fbfb[_0x137d6e(0x2a9)]:try{const _0x3e4074=(await import(_0x31fbfb[_0x137d6e(0x24b)]))['default'];_0x488cb5=_0x31fbfb['SmdAI'](_0x3e4074);}catch(_0x2b48d3){exports[_0x137d6e(0x209)](_0x137d6e(0x1ee)+_0x2b48d3[_0x137d6e(0x2a3)]());}break;case _0x31fbfb['heYgl']:try{const _0x2f530=await _0x31fbfb[_0x137d6e(0x214)](getLinuxDetails);_0x2f530['dist']&&(_0x34ff59=_0x2f530['dist']),_0x2f530[_0x137d6e(0x2b1)]&&(_0x488cb5=_0x2f530[_0x137d6e(0x2b1)]['toString']());}catch(_0x49cedd){exports[_0x137d6e(0x209)](_0x31fbfb[_0x137d6e(0x2b4)]);}break;default:break;}const _0x2b2bc5={};return _0x2b2bc5[_0x137d6e(0x299)]=_0x34ff59,_0x2b2bc5['platformVersion']=_0x488cb5,_0x2b2bc5;},exports[a137_0x4df86b(0x25b)]=(_0x2bb9d2,_0x32b064)=>{const _0x301100=a137_0x4df86b,_0x52a727={};_0x52a727[_0x301100(0x1d9)]=function(_0x386bf8,_0x5847df){return _0x386bf8===_0x5847df;},_0x52a727[_0x301100(0x2de)]=_0x301100(0x2f5),_0x52a727['xeNhY']='err';const _0x56c855=_0x52a727;if(!_0x2bb9d2)return[];try{if(_0x56c855[_0x301100(0x1d9)](_0x32b064,_0x56c855[_0x301100(0x2de)]))return!Array[_0x301100(0x225)](_0x2bb9d2)&&(_0x2bb9d2=[_0x2bb9d2]),_0x2bb9d2[_0x301100(0x227)](_0xcd78dd=>{const _0x3b3c24=_0x301100,{stack:_0xdbe21a,..._0x8aa46e}=_0xcd78dd,_0x382de1=Object['keys'](_0x8aa46e)[_0x3b3c24(0x227)](_0x14ac1f=>{return _0x14ac1f+':\x20'+_0x8aa46e[_0x14ac1f];}),_0x282761=_0xdbe21a?exports[_0x3b3c24(0x20d)](_0xdbe21a)[_0x3b3c24(0x20b)](/\r?\n/):[exports[_0x3b3c24(0x20d)](_0xcd78dd['message'])],_0x31de83={};return _0x31de83['backtrace']=_0x282761,_0x31de83['expanded']=_0x382de1,_0x31de83;});else{if(_0x56c855[_0x301100(0x1d9)](_0x32b064,_0x56c855[_0x301100(0x20e)])){const _0x5c5a21=[],_0x367c55=[];return Object[_0x301100(0x289)](_0x2bb9d2)[_0x301100(0x27b)](_0x458b97=>{const _0x22a15d=_0x301100;try{_0x367c55['push'](_0x458b97+':\x20'+_0x2bb9d2[_0x458b97]);}catch(_0x707316){exports[_0x22a15d(0x209)](_0x22a15d(0x226)+_0x707316[_0x22a15d(0x28e)]+_0x22a15d(0x24e)+_0x707316[_0x22a15d(0x1d5)]);}}),_0x5c5a21[_0x301100(0x1f1)]({'backtrace':exports[_0x301100(0x20d)](_0x2bb9d2[_0x301100(0x25a)])['split'](/\r?\n/),'expanded':_0x367c55}),_0x5c5a21;}}return[];}catch(_0x219db6){exports[_0x301100(0x209)](_0x301100(0x226)+_0x219db6[_0x301100(0x28e)]+_0x301100(0x24e)+_0x219db6['backtrace']);}return[];};function a137_0xfed3(_0x352814,_0x7835a2){const _0x14416c=a137_0x1441();return a137_0xfed3=function(_0xfed3c,_0x1b74ea){_0xfed3c=_0xfed3c-0x1cc;let _0x19dd15=_0x14416c[_0xfed3c];return _0x19dd15;},a137_0xfed3(_0x352814,_0x7835a2);}class PathHelper{constructor(_0x458497,_0x2ce435){const _0x103bb0=a137_0x4df86b;this[_0x103bb0(0x2cd)]=_0x458497,this[_0x103bb0(0x2a6)]=_0x2ce435;}[a137_0x4df86b(0x298)](_0x4e6d10){const _0x488b55=a137_0x4df86b,_0x5564cb=this[_0x488b55(0x2cd)][_0x488b55(0x2e6)]||this[_0x488b55(0x2cd)]['rootDir'];return path[_0x488b55(0x2cf)](_0x5564cb,_0x4e6d10);}['prefixTestPath'](_0x3f08c1){const _0x2e61e5=a137_0x4df86b,_0x7616d8=this[_0x2e61e5(0x298)](_0x3f08c1);return this[_0x2e61e5(0x2a6)]?path[_0x2e61e5(0x26e)](this[_0x2e61e5(0x2a6)],_0x7616d8):_0x7616d8;}}exports[a137_0x4df86b(0x235)]=PathHelper,exports[a137_0x4df86b(0x2ac)]=(_0x134375=!![])=>{const _0x82e7e7=a137_0x4df86b,_0x21c9b1={};_0x21c9b1[_0x82e7e7(0x2e4)]=function(_0x379113,_0x2fea18){return _0x379113===_0x2fea18;},_0x21c9b1['rBkHA']='X-BSTACK-TESTOPS',_0x21c9b1['zbhnX']='true',_0x21c9b1[_0x82e7e7(0x23e)]=_0x82e7e7(0x1f9),_0x21c9b1[_0x82e7e7(0x26c)]='browserstack',_0x21c9b1[_0x82e7e7(0x2eb)]=_0x82e7e7(0x1cf);const _0x304f1f=_0x21c9b1;requestSpy[_0x82e7e7(0x2d4)]((_0x5d661d,_0x43a0ee)=>{const _0x473558=_0x82e7e7;_0x43a0ee&&!(_0x43a0ee['headers']&&_0x304f1f[_0x473558(0x2e4)](_0x43a0ee[_0x473558(0x1de)][_0x304f1f[_0x473558(0x260)]],_0x304f1f[_0x473558(0x2c1)]))&&(_0x43a0ee[_0x473558(0x1ec)]=_0x43a0ee['hostname'],delete _0x43a0ee[_0x473558(0x239)],_0x134375&&process[_0x473558(0x255)](_0x473558(0x22d)+process['pid'],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x304f1f[_0x473558(0x23e)],'http_response':_0x43a0ee})),_0x43a0ee&&(constants[_0x473558(0x201)][_0x473558(0x2f5)](_0x43a0ee[_0x473558(0x1ec)])||constants[_0x473558(0x1d4)][_0x473558(0x2f5)](_0x43a0ee[_0x473558(0x1ec)]))?global[_0x473558(0x1f7)]=_0x304f1f['xdqva']:global[_0x473558(0x1f7)]=_0x304f1f['FUVFJ'];});},exports[a137_0x4df86b(0x2ea)]=()=>{const _0x2c3361=a137_0x4df86b,_0x1517ae={'FBziv':function(_0x32c509,_0x5b4971){return _0x32c509(_0x5b4971);}};console={},Object[_0x2c3361(0x289)](consoleHolder)[_0x2c3361(0x27b)](_0x309512=>{const _0x2f0528=_0x2c3361;_0x1517ae[_0x2f0528(0x2fa)](isFunction,consoleHolder[_0x309512])?console[_0x309512]=(..._0x285b9a)=>{const _0x470453=_0x2f0528;try{!Object[_0x470453(0x289)](BSTestOpsPatcher)['includes'](_0x309512)?consoleHolder[_0x309512](..._0x285b9a):BSTestOpsPatcher[_0x309512](..._0x285b9a);}catch(_0x5dc8fb){consoleHolder[_0x309512](..._0x285b9a);}}:console[_0x309512]=consoleHolder[_0x309512];});},exports[a137_0x4df86b(0x26a)]=()=>a137_0x4df86b(0x1df)+JSON[a137_0x4df86b(0x1d3)]({'action':'annotate','arguments':{'data':a137_0x4df86b(0x2aa)+Date['now'](),'level':a137_0x4df86b(0x209)}}),exports[a137_0x4df86b(0x242)]=_0x42e6af=>{const _0x4ed534=a137_0x4df86b,_0x2dee11={};_0x2dee11[_0x4ed534(0x211)]=function(_0x5c1cdf,_0x429d9f){return _0x5c1cdf===_0x429d9f;},_0x2dee11['uHTBo']=_0x4ed534(0x2cc),_0x2dee11[_0x4ed534(0x2dd)]='appium:app',_0x2dee11[_0x4ed534(0x2d7)]=_0x4ed534(0x262),_0x2dee11['EKdQX']=function(_0x146bff,_0x46d888){return _0x146bff>_0x46d888;},_0x2dee11[_0x4ed534(0x21a)]='app-automate',_0x2dee11[_0x4ed534(0x232)]=_0x4ed534(0x244),_0x2dee11[_0x4ed534(0x293)]='turboScaleGridDetails',_0x2dee11[_0x4ed534(0x28f)]=_0x4ed534(0x2a2),_0x2dee11[_0x4ed534(0x1e0)]=_0x4ed534(0x20c);const _0x5542f9=_0x2dee11;let _0x3ec82b=null;try{if(_0x5542f9[_0x4ed534(0x211)](global[_0x4ed534(0x1f7)],_0x5542f9[_0x4ed534(0x29f)])){if(_0x42e6af[_0x5542f9[_0x4ed534(0x2dd)]]||_0x42e6af[_0x5542f9['dweYA']]||!bsSetupHelper[_0x4ed534(0x279)](global[_0x4ed534(0x2ce)])&&_0x5542f9[_0x4ed534(0x249)](global[_0x4ed534(0x2ce)][_0x4ed534(0x287)],0x0)&&(global['capabilities'][0x0][_0x5542f9[_0x4ed534(0x2d7)]]||global[_0x4ed534(0x2ce)][0x0][_0x5542f9[_0x4ed534(0x2dd)]]))_0x3ec82b=_0x5542f9[_0x4ed534(0x21a)];else _0x42e6af[_0x5542f9[_0x4ed534(0x232)]]&&_0x42e6af[_0x5542f9[_0x4ed534(0x232)]][_0x5542f9['ilpht']]?_0x3ec82b=_0x5542f9[_0x4ed534(0x28f)]:_0x3ec82b=_0x5542f9[_0x4ed534(0x1e0)];}}catch(_0x164944){exports[_0x4ed534(0x209)](_0x4ed534(0x295)+constants[_0x4ed534(0x271)]+_0x4ed534(0x2ab)+_0x164944);}return _0x3ec82b;},exports['sendPlatformDetails']=async(_0x351ebb,_0x5ef4c2,_0x5726a2=![])=>{const _0x38c40f=a137_0x4df86b,_0x21c820={};_0x21c820[_0x38c40f(0x297)]=function(_0x478e6f,_0x24b79b){return _0x478e6f===_0x24b79b;},_0x21c820[_0x38c40f(0x253)]=_0x38c40f(0x2cc),_0x21c820[_0x38c40f(0x1f4)]='unknown_grid',_0x21c820[_0x38c40f(0x1e4)]=_0x38c40f(0x285);const _0x47ab77=_0x21c820;try{const _0x2dc619=await _0x351ebb[_0x38c40f(0x1fb)](),_0x4caa9c=await _0x351ebb[_0x38c40f(0x258)](),_0xa7c483={},_0x32ef95=Object[_0x38c40f(0x2bf)](_0x4caa9c[_0x38c40f(0x1fb)]()[_0x38c40f(0x2e8)]),_0xf8bde3={'product':exports[_0x38c40f(0x242)](_0x32ef95),'capabilities':_0x32ef95,'platform':_0x2dc619[_0x38c40f(0x21b)](),'platform_version':bsSetupHelper['getPlatformVersion'](_0x47ab77[_0x38c40f(0x297)](global[_0x38c40f(0x1f7)],_0x47ab77['mNhIK'])),'browser':_0x2dc619[_0x38c40f(0x2bc)](),'browser_version':_0x2dc619[_0x38c40f(0x237)](),'session_id':_0x4caa9c[_0x38c40f(0x29e)]()};global['__cloud_provider___']?_0xa7c483[global[_0x38c40f(0x1f7)]]=_0xf8bde3:_0xa7c483[_0x47ab77[_0x38c40f(0x1f4)]]=_0xf8bde3;if(_0x5726a2)return _0xa7c483;process['emit'](_0x38c40f(0x23b)+process[_0x38c40f(0x1f8)],{'timestamp':new Date()[_0x38c40f(0x2d0)](),'level':null,'message':null,'kind':_0x47ab77[_0x38c40f(0x1e4)],'http_response':_0xa7c483,'uuid':_0x5ef4c2});}catch(_0x4b7fba){exports[_0x38c40f(0x209)](_0x38c40f(0x230)+_0x4b7fba);}},exports['isInternalHook']=_0x5516ba=>{const _0x28fd2e=a137_0x4df86b;return _0x5516ba&&_0x5516ba['toString']()[_0x28fd2e(0x283)](/browserstack internal helper hook/);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a138_0x568de9=a138_0x3b01;(function(_0x421e84,_0x959ad7){var _0x1ac0bf=a138_0x3b01,_0x4977b8=_0x421e84();while(!![]){try{var _0x2a110b=parseInt(_0x1ac0bf(0x1af))/0x1+-parseInt(_0x1ac0bf(0x1b2))/0x2*(-parseInt(_0x1ac0bf(0x1ac))/0x3)+parseInt(_0x1ac0bf(0x1b4))/0x4*(parseInt(_0x1ac0bf(0x1b0))/0x5)+parseInt(_0x1ac0bf(0x1b5))/0x6+parseInt(_0x1ac0bf(0x1b3))/0x7+-parseInt(_0x1ac0bf(0x1ab))/0x8+parseInt(_0x1ac0bf(0x1aa))/0x9*(-parseInt(_0x1ac0bf(0x1ae))/0xa);if(_0x2a110b===_0x959ad7)break;else _0x4977b8['push'](_0x4977b8['shift']());}catch(_0x279fca){_0x4977b8['push'](_0x4977b8['shift']());}}}(a138_0x238c,0x90b1c));var a138_0xb4692a={};function a138_0x3b01(_0x50e30d,_0x4dec5d){var _0x238cd4=a138_0x238c();return a138_0x3b01=function(_0x3b0180,_0x47f35b){_0x3b0180=_0x3b0180-0x1a9;var _0x422d57=_0x238cd4[_0x3b0180];return _0x422d57;},a138_0x3b01(_0x50e30d,_0x4dec5d);}a138_0xb4692a['ORCHESTRATION_API_URL']=a138_0x568de9(0x1b1),a138_0xb4692a['FAILED_TESTS_ENDPOINT']='testorchestration/api/v1/failed-tests',a138_0xb4692a['SPLIT_TESTS_ENDPOINT']=a138_0x568de9(0x1a9),module[a138_0x568de9(0x1ad)]=a138_0xb4692a;function a138_0x238c(){var _0x2e5cae=['1650112YPRuHE','12eTGJDM','exports','7370GAmYIH','784398rqUNco','50IydWfD','https://collector-observability.browserstack.com','485506twwkDX','5986939oXPvDh','152468BdICmg','1359876qrWeik','testorchestration/api/v1/split-tests','29547mhKixT'];a138_0x238c=function(){return _0x2e5cae;};return a138_0x238c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a139_0x5004(){const _0xefb34=['_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','11898873NGyrzf','BROWSERSTACK_NODE_INDEX','path','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','QjcXN','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','16804RyWNUH','sybjp','cleanup','onTestDone','_CI]\x20Polling\x20started\x20with\x20interval:\x20','4eqPwfd','zIIxU','bOWRD','CEXLS','add','lastAPIFailedCount','ZkOgR','_initializeStateFromFile','EQmDa','50410EEzpxX','./fileHelper','exports','tdjEZ','TJeJN','readState','KWbVG','buildRunIdentifier','projectName',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','has','state','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','NkeBy','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','witwb','failFastActive','failFastActiveMarkerPath','3870jxsnXI','buildName','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','error','TyhHi','LeLLM','IWCGU','failFastConfig','\x0aStack:\x20','_Local]\x20State\x20initialized\x20from\x20file.','4882456NOYbYF','8456USsYcX','from','_pollFailedTests','getFailedTestsCount','\x20to\x20API:\x20','KflJy','BCrtw','JAfYB','fileHelper','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','BROWSERSTACK_TOTAL_NODE_COUNT','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','_getDefaultState','passed',']\x20Polling\x20stopped.','stack','startPolling','info','../logger','3756426LXeIpt','AVuJf','recordTestResult','stateFilePath','_CI]\x20Error\x20sending\x20failed\x20test\x20','env','failFastState.json','EZMNN','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','lockFilePath','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','aLtPz','debug','Wntdz','UzFkC','12897900FvrfXn','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','length',',\x20CI\x20Mode:\x20','\x20(was\x20','newState','failFast.active','lQTKB','BROWSERSTACK_BUILD_RUN_IDENTIFIER',',\x20threshold:\x20','VhuTn','_CI]\x20API\x20failed\x20count\x20updated:\x20','82FlDyUL','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','join','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','stopPolling','isCIMode','pollingInterval','message','putFailedTests','_fetchAPIFailedCount','_sendFailedTestsToAPI','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','writeState','ToHzW','vEArd','KPcgx',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','MRBTT','size','ms.','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','aeRQv','failed','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','failedTests','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','failureThresholdCount','reportedFailuresToAPI','oaFcv','existsSync','uniqueFailedTests','writeFileSync','vTGGv','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','RjjPj','NKmAk','ghOWO'];a139_0x5004=function(){return _0xefb34;};return a139_0x5004();}const a139_0x1cef11=a139_0x1b7b;(function(_0x6d0bc1,_0x561f6d){const _0x51e0f7=a139_0x1b7b,_0x2b74dc=_0x6d0bc1();while(!![]){try{const _0x5c97b2=parseInt(_0x51e0f7(0x13f))/0x1*(-parseInt(_0x51e0f7(0x198))/0x2)+parseInt(_0x51e0f7(0x17d))/0x3+parseInt(_0x51e0f7(0x144))/0x4*(-parseInt(_0x51e0f7(0x14d))/0x5)+parseInt(_0x51e0f7(0x15f))/0x6*(parseInt(_0x51e0f7(0x16a))/0x7)+-parseInt(_0x51e0f7(0x169))/0x8+parseInt(_0x51e0f7(0x139))/0x9+-parseInt(_0x51e0f7(0x18c))/0xa;if(_0x5c97b2===_0x561f6d)break;else _0x2b74dc['push'](_0x2b74dc['shift']());}catch(_0xf9939){_0x2b74dc['push'](_0x2b74dc['shift']());}}}(a139_0x5004,0xb8250));const fs=require('fs'),path=require(a139_0x1cef11(0x13b)),FileHelper=require(a139_0x1cef11(0x14e)),RequestUtils=require('./requestUtils'),logger=require(a139_0x1cef11(0x17c))['winstonLogger'],POLLING_INTERVAL=0x2710,TAG='FailFastManager';class FailFastManager{constructor(_0x32032a,_0x2ddc88,_0x2f3f4d){const _0x44c7fb=a139_0x1cef11,_0x2dec12={};_0x2dec12[_0x44c7fb(0x184)]=function(_0x45e06d,_0x5a1d4d){return _0x45e06d+_0x5a1d4d;},_0x2dec12[_0x44c7fb(0x146)]=_0x44c7fb(0x167),_0x2dec12[_0x44c7fb(0x153)]=function(_0x1e19f2,_0x3068c0){return _0x1e19f2||_0x3068c0;},_0x2dec12[_0x44c7fb(0x1af)]=_0x44c7fb(0x183),_0x2dec12[_0x44c7fb(0x188)]='failFastState.lock',_0x2dec12['VhuTn']=_0x44c7fb(0x192);const _0x346fdc=_0x2dec12;this['failFastConfig']=_0x346fdc[_0x44c7fb(0x153)](_0x32032a,{}),this[_0x44c7fb(0x160)]=_0x2ddc88,this[_0x44c7fb(0x155)]=_0x2f3f4d,this[_0x44c7fb(0x19d)]=!!(process[_0x44c7fb(0x182)][_0x44c7fb(0x194)]&&process[_0x44c7fb(0x182)][_0x44c7fb(0x13a)]&&process[_0x44c7fb(0x182)][_0x44c7fb(0x174)]);const _0x5affad=this[_0x44c7fb(0x166)]['workingDir'];this[_0x44c7fb(0x180)]=path[_0x44c7fb(0x19a)](_0x5affad,_0x346fdc[_0x44c7fb(0x1af)]),this[_0x44c7fb(0x186)]=path['join'](_0x5affad,_0x346fdc[_0x44c7fb(0x188)]),this['failFastActiveMarkerPath']=path[_0x44c7fb(0x19a)](_0x5affad,_0x346fdc[_0x44c7fb(0x196)]),this[_0x44c7fb(0x172)]=new FileHelper(this['failFastConfig'],this[_0x44c7fb(0x180)],this[_0x44c7fb(0x186)],this['_getDefaultState']()),this[_0x44c7fb(0x158)]=this['_getDefaultState'](),this[_0x44c7fb(0x19e)]=null,this[_0x44c7fb(0x19d)]&&(this[_0x44c7fb(0x12e)]=new Set()),this[_0x44c7fb(0x14b)]()['catch'](_0x2bad33=>{const _0x122a7c=_0x44c7fb;logger['error']('['+TAG+']\x20Critical\x20error\x20during\x20async\x20initialization:\x20'+_0x2bad33[_0x122a7c(0x19f)]+(_0x2bad33[_0x122a7c(0x179)]?_0x346fdc[_0x122a7c(0x184)](_0x346fdc[_0x122a7c(0x146)],_0x2bad33[_0x122a7c(0x179)]):'')),this['state']=this[_0x122a7c(0x176)]();}),this[_0x44c7fb(0x19d)]&&this['startPolling'](),logger[_0x44c7fb(0x189)]('['+TAG+_0x44c7fb(0x1a8)+this[_0x44c7fb(0x166)][_0x44c7fb(0x12d)]+_0x44c7fb(0x18f)+this[_0x44c7fb(0x19d)]);}[a139_0x1cef11(0x176)](){const _0x5cc88c={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x5cc88c;}async[a139_0x1cef11(0x14b)](){const _0x4a06fc=a139_0x1cef11,_0x180b69={};_0x180b69[_0x4a06fc(0x14a)]=function(_0x411607,_0x4530d4){return _0x411607+_0x4530d4;},_0x180b69[_0x4a06fc(0x151)]=_0x4a06fc(0x167),_0x180b69[_0x4a06fc(0x133)]=function(_0x29883a,_0x57e78c){return _0x29883a+_0x57e78c;};const _0x2aed64=_0x180b69;if(this['isCIMode'])try{fs[_0x4a06fc(0x130)](this[_0x4a06fc(0x15e)])&&(this['state']['failFastActive']=!![],logger[_0x4a06fc(0x189)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.'));}catch(_0x3a72b4){logger[_0x4a06fc(0x162)]('['+TAG+_0x4a06fc(0x173)+_0x3a72b4[_0x4a06fc(0x19f)]+(_0x3a72b4[_0x4a06fc(0x179)]?_0x2aed64[_0x4a06fc(0x14a)](_0x2aed64[_0x4a06fc(0x151)],_0x3a72b4[_0x4a06fc(0x179)]):''));}else try{const _0x1ef811=await this[_0x4a06fc(0x172)][_0x4a06fc(0x152)]();if(_0x1ef811)this['state']={...this[_0x4a06fc(0x176)](),..._0x1ef811,'uniqueFailedTests':new Set(_0x1ef811[_0x4a06fc(0x131)]||[])},logger['debug']('['+TAG+_0x4a06fc(0x168));else{logger[_0x4a06fc(0x189)]('['+TAG+_0x4a06fc(0x159));const _0x38eeef=this[_0x4a06fc(0x176)](),_0x209469={..._0x38eeef,'uniqueFailedTests':Array[_0x4a06fc(0x16b)](_0x38eeef[_0x4a06fc(0x131)])};await this[_0x4a06fc(0x172)][_0x4a06fc(0x1a4)](_0x209469),this[_0x4a06fc(0x158)]=_0x38eeef;}}catch(_0x26e719){logger[_0x4a06fc(0x189)]('['+TAG+_0x4a06fc(0x199)+_0x26e719[_0x4a06fc(0x19f)]+(_0x26e719[_0x4a06fc(0x179)]?_0x2aed64['vTGGv'](_0x2aed64[_0x4a06fc(0x151)],_0x26e719[_0x4a06fc(0x179)]):'')),this[_0x4a06fc(0x158)]=this[_0x4a06fc(0x176)]();}}async[a139_0x1cef11(0x142)](_0x3fc029,_0x2f99a3){const _0x543081=a139_0x1cef11,_0x174ece={};_0x174ece[_0x543081(0x1aa)]=function(_0x4c8526,_0x3344af){return _0x4c8526>_0x3344af;},_0x174ece[_0x543081(0x165)]=function(_0x297d08,_0x5d0041){return _0x297d08>_0x5d0041;},_0x174ece[_0x543081(0x18a)]=_0x543081(0x1b0),_0x174ece['LeLLM']=_0x543081(0x177),_0x174ece[_0x543081(0x1a7)]=function(_0x135a79,_0xc45b40){return _0x135a79+_0xc45b40;},_0x174ece['EQmDa']=_0x543081(0x167),_0x174ece[_0x543081(0x1a6)]=function(_0x171d63,_0x9fa625){return _0x171d63||_0x9fa625;},_0x174ece[_0x543081(0x171)]=function(_0xd55c5,_0x10db45){return _0xd55c5+_0x10db45;};const _0x4f1086=_0x174ece;if(this[_0x543081(0x19d)])this[_0x543081(0x158)]['totalTests']+=0x1,_0x2f99a3&&_0x4f1086[_0x543081(0x1aa)](_0x2f99a3['length'],0x0)&&(!this[_0x543081(0x12e)][_0x543081(0x157)](_0x3fc029)&&(await this[_0x543081(0x1a2)](_0x3fc029),this[_0x543081(0x12e)][_0x543081(0x148)](_0x3fc029)));else try{const _0xda29ea={'fullName':_0x3fc029,'status':_0x2f99a3&&_0x4f1086['IWCGU'](_0x2f99a3[_0x543081(0x18e)],0x0)?_0x4f1086[_0x543081(0x18a)]:_0x4f1086[_0x543081(0x164)]},_0x2bcb6b=await this[_0x543081(0x172)][_0x543081(0x17f)](_0xda29ea);this['state']={...this[_0x543081(0x176)](),..._0x2bcb6b[_0x543081(0x191)],'uniqueFailedTests':new Set(_0x2bcb6b[_0x543081(0x191)]['uniqueFailedTests']||[])};}catch(_0x5900cd){logger[_0x543081(0x162)]('['+TAG+_0x543081(0x187)+_0x5900cd[_0x543081(0x19f)]+(_0x5900cd[_0x543081(0x179)]?_0x4f1086[_0x543081(0x1a7)](_0x4f1086[_0x543081(0x14c)],_0x5900cd['stack']):''));try{const _0x479d6b=await this[_0x543081(0x172)][_0x543081(0x152)]();this[_0x543081(0x158)]={...this['_getDefaultState'](),..._0x4f1086[_0x543081(0x1a6)](_0x479d6b,{}),'uniqueFailedTests':new Set(_0x479d6b?_0x479d6b[_0x543081(0x131)]||[]:[])},logger[_0x543081(0x189)]('['+TAG+_0x543081(0x185));}catch(_0x5ddcae){logger[_0x543081(0x162)]('['+TAG+_0x543081(0x161)+_0x5ddcae['message']+(_0x5ddcae[_0x543081(0x179)]?_0x4f1086['JAfYB'](_0x4f1086[_0x543081(0x14c)],_0x5ddcae['stack']):'')),this[_0x543081(0x158)]=this[_0x543081(0x176)]();}}}async[a139_0x1cef11(0x1a2)](_0x549f65){const _0x4f07dc=a139_0x1cef11,_0x4df0b3={};_0x4df0b3['TNBMx']=function(_0x1f639c,_0xda4ada){return _0x1f639c+_0xda4ada;},_0x4df0b3[_0x4f07dc(0x150)]=_0x4f07dc(0x167);const _0x48a4a0=_0x4df0b3;if(!this[_0x4f07dc(0x19d)]||!_0x549f65)return;try{logger[_0x4f07dc(0x189)]('['+TAG+_0x4f07dc(0x1ad)+_0x549f65);const _0x596c42={};_0x596c42[_0x4f07dc(0x160)]=this[_0x4f07dc(0x160)],_0x596c42[_0x4f07dc(0x155)]=this[_0x4f07dc(0x155)],_0x596c42[_0x4f07dc(0x12b)]=[_0x549f65],_0x596c42[_0x4f07dc(0x154)]=process[_0x4f07dc(0x182)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],await RequestUtils[_0x4f07dc(0x1a0)](_0x596c42);}catch(_0x96105d){logger[_0x4f07dc(0x162)]('['+TAG+_0x4f07dc(0x181)+_0x549f65+_0x4f07dc(0x16e)+_0x96105d[_0x4f07dc(0x19f)]+(_0x96105d[_0x4f07dc(0x179)]?_0x48a4a0['TNBMx'](_0x48a4a0[_0x4f07dc(0x150)],_0x96105d[_0x4f07dc(0x179)]):''));}}async['_fetchAPIFailedCount'](){const _0x1171b6=a139_0x1cef11,_0x582be4={};_0x582be4[_0x1171b6(0x12f)]=function(_0x2d70df,_0xb84656){return _0x2d70df===_0xb84656;},_0x582be4['BCrtw']='number',_0x582be4[_0x1171b6(0x136)]=function(_0x110cef,_0x42afdd){return _0x110cef+_0x42afdd;},_0x582be4[_0x1171b6(0x1a5)]=_0x1171b6(0x167),_0x582be4['ncMdp']=function(_0x2985a8,_0x4af093){return _0x2985a8!==_0x4af093;};const _0x257147=_0x582be4;if(!this['isCIMode'])return 0x0;try{const _0x33ff97={};_0x33ff97['buildName']=this[_0x1171b6(0x160)],_0x33ff97[_0x1171b6(0x155)]=this[_0x1171b6(0x155)],_0x33ff97[_0x1171b6(0x154)]=process[_0x1171b6(0x182)][_0x1171b6(0x194)];const _0xb54360=await RequestUtils[_0x1171b6(0x16d)](_0x33ff97);return logger[_0x1171b6(0x189)]('['+TAG+_0x1171b6(0x15b)+_0xb54360),_0x257147[_0x1171b6(0x12f)](typeof _0xb54360,_0x257147[_0x1171b6(0x170)])?_0xb54360:0x0;}catch(_0x4a4b03){return logger['error']('['+TAG+_0x1171b6(0x1ae)+_0x4a4b03[_0x1171b6(0x19f)]+(_0x4a4b03[_0x1171b6(0x179)]?_0x257147[_0x1171b6(0x136)](_0x257147[_0x1171b6(0x1a5)],_0x4a4b03[_0x1171b6(0x179)]):'')),_0x257147['ncMdp'](this[_0x1171b6(0x158)][_0x1171b6(0x149)],undefined)?this[_0x1171b6(0x158)][_0x1171b6(0x149)]:0x0;}}async[a139_0x1cef11(0x16c)](){const _0x17b783=a139_0x1cef11,_0x19e5a5={};_0x19e5a5['NkeBy']=function(_0x32c65e,_0x42e6a3){return _0x32c65e!==_0x42e6a3;},_0x19e5a5[_0x17b783(0x145)]=function(_0x3a09ab,_0x2b767a){return _0x3a09ab+_0x2b767a;},_0x19e5a5[_0x17b783(0x163)]=_0x17b783(0x167);const _0x5cf944=_0x19e5a5;if(!this[_0x17b783(0x19d)])return;try{const _0x799bef=await this[_0x17b783(0x1a1)]();_0x5cf944[_0x17b783(0x15a)](_0x799bef,this['state'][_0x17b783(0x149)])&&(logger['debug']('['+TAG+_0x17b783(0x197)+_0x799bef+_0x17b783(0x190)+this[_0x17b783(0x158)][_0x17b783(0x149)]+')'),this[_0x17b783(0x158)][_0x17b783(0x149)]=_0x799bef);}catch(_0x43e9f3){logger['error']('['+TAG+'_CI]\x20Error\x20during\x20polling\x20logic:\x20'+_0x43e9f3[_0x17b783(0x19f)]+(_0x43e9f3['stack']?_0x5cf944[_0x17b783(0x145)](_0x5cf944[_0x17b783(0x163)],_0x43e9f3[_0x17b783(0x179)]):''));}}async[a139_0x1cef11(0x17a)](){const _0x194897=a139_0x1cef11,_0x503ae7={'aQlOP':function(_0x410eea,_0x3a82fa,_0x10a5a9){return _0x410eea(_0x3a82fa,_0x10a5a9);}};this[_0x194897(0x19e)]&&this[_0x194897(0x19c)](),this[_0x194897(0x19d)]&&(await this[_0x194897(0x16c)](),this[_0x194897(0x19e)]=_0x503ae7['aQlOP'](setInterval,async()=>{const _0x14708d=_0x194897;await this[_0x14708d(0x16c)]();},POLLING_INTERVAL),logger[_0x194897(0x189)]('['+TAG+_0x194897(0x143)+POLLING_INTERVAL+_0x194897(0x1ac)));}[a139_0x1cef11(0x19c)](){const _0x52de13=a139_0x1cef11,_0x41aac7={'wMoCn':function(_0x153b13,_0x30321a){return _0x153b13(_0x30321a);}};this['pollingInterval']&&(_0x41aac7['wMoCn'](clearInterval,this[_0x52de13(0x19e)]),this['pollingInterval']=null,logger[_0x52de13(0x189)]('['+TAG+_0x52de13(0x178)));}async['shouldFailFast'](){const _0x511da1=a139_0x1cef11,_0x489dbc={};_0x489dbc[_0x511da1(0x147)]=function(_0x18cc82,_0x24ba69){return _0x18cc82===_0x24ba69;},_0x489dbc['bEoSB']=function(_0x5e5a6a,_0x2112f6){return _0x5e5a6a===_0x2112f6;},_0x489dbc[_0x511da1(0x13d)]=function(_0x481884,_0x485092){return _0x481884<=_0x485092;},_0x489dbc[_0x511da1(0x15c)]=function(_0xd50976,_0x3f526d){return _0xd50976+_0x3f526d;},_0x489dbc[_0x511da1(0x140)]=_0x511da1(0x167),_0x489dbc[_0x511da1(0x18b)]=function(_0x48ce09,_0x2a29d9){return _0x48ce09!==_0x2a29d9;},_0x489dbc['AVuJf']=function(_0x3f0719,_0x295533){return _0x3f0719>=_0x295533;},_0x489dbc[_0x511da1(0x16f)]=function(_0x1d850c,_0x42f1a9){return _0x1d850c+_0x42f1a9;},_0x489dbc[_0x511da1(0x137)]=function(_0x266bc6,_0x2d2aeb){return _0x266bc6+_0x2d2aeb;};const _0x4428f9=_0x489dbc,{failureThresholdCount:_0x5bbba4}=this[_0x511da1(0x166)];if(_0x4428f9[_0x511da1(0x147)](_0x5bbba4,null)||_0x4428f9['bEoSB'](_0x5bbba4,undefined)||_0x4428f9[_0x511da1(0x13d)](_0x5bbba4,0x0))return logger[_0x511da1(0x189)]('['+TAG+_0x511da1(0x156)),![];if(this[_0x511da1(0x19d)]){try{if(fs[_0x511da1(0x130)](this['failFastActiveMarkerPath']))return logger[_0x511da1(0x189)]('['+TAG+_0x511da1(0x18d)),!this[_0x511da1(0x158)][_0x511da1(0x15d)]&&(this['state'][_0x511da1(0x15d)]=!![]),this[_0x511da1(0x19c)](),!![];}catch(_0x306651){logger[_0x511da1(0x162)]('['+TAG+_0x511da1(0x173)+_0x306651[_0x511da1(0x19f)]+(_0x306651[_0x511da1(0x179)]?_0x4428f9['witwb'](_0x4428f9[_0x511da1(0x140)],_0x306651['stack']):''));}const _0x1aa383=_0x4428f9[_0x511da1(0x18b)](this[_0x511da1(0x158)][_0x511da1(0x149)],undefined)?this[_0x511da1(0x158)]['lastAPIFailedCount']:0x0;if(_0x4428f9[_0x511da1(0x17e)](_0x1aa383,_0x5bbba4)){logger[_0x511da1(0x17b)]('['+TAG+_0x511da1(0x12c)+_0x1aa383+_0x511da1(0x195)+_0x5bbba4+'.');try{fs[_0x511da1(0x132)](this['failFastActiveMarkerPath'],new Date()['toISOString']()),logger[_0x511da1(0x189)]('['+TAG+_0x511da1(0x13e)+this[_0x511da1(0x15e)]),this['state']['failFastActive']=!![];}catch(_0x575692){logger[_0x511da1(0x162)]('['+TAG+_0x511da1(0x19b)+_0x575692[_0x511da1(0x19f)]+(_0x575692[_0x511da1(0x179)]?_0x4428f9[_0x511da1(0x15c)](_0x4428f9[_0x511da1(0x140)],_0x575692[_0x511da1(0x179)]):''));}return this[_0x511da1(0x19c)](),!![];}}else{let _0x1cfbb2;try{_0x1cfbb2=await this['fileHelper'][_0x511da1(0x152)]();if(!_0x1cfbb2)return logger['warn']('['+TAG+_0x511da1(0x12a)),![];}catch(_0x1f2dad){return logger['error']('['+TAG+_0x511da1(0x1a3)+_0x1f2dad[_0x511da1(0x19f)]+(_0x1f2dad['stack']?_0x4428f9[_0x511da1(0x16f)](_0x4428f9[_0x511da1(0x140)],_0x1f2dad[_0x511da1(0x179)]):'')),![];}this[_0x511da1(0x158)]={...this[_0x511da1(0x176)](),..._0x1cfbb2,'uniqueFailedTests':new Set(_0x1cfbb2[_0x511da1(0x131)]||[])};if(this[_0x511da1(0x158)][_0x511da1(0x15d)])return logger[_0x511da1(0x189)]('['+TAG+_0x511da1(0x13c)),!![];const _0x2a3081=this[_0x511da1(0x158)][_0x511da1(0x131)],_0x58d709=_0x2a3081[_0x511da1(0x1ab)];if(_0x4428f9[_0x511da1(0x17e)](_0x58d709,_0x5bbba4)){try{logger[_0x511da1(0x17b)]('['+TAG+'_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x58d709+_0x511da1(0x195)+_0x5bbba4+'.'),this['state']['failFastActive']=!![];}catch(_0x54b219){logger['error']('['+TAG+_0x511da1(0x134)+_0x54b219[_0x511da1(0x19f)]+(_0x54b219[_0x511da1(0x179)]?_0x4428f9[_0x511da1(0x137)](_0x4428f9[_0x511da1(0x140)],_0x54b219['stack']):''));}return!![];}}return![];}async[a139_0x1cef11(0x141)](){const _0x499ce1=a139_0x1cef11,_0x1804d5={};_0x1804d5[_0x499ce1(0x135)]=function(_0xeb6cb3,_0x5463cf){return _0xeb6cb3+_0x5463cf;},_0x1804d5[_0x499ce1(0x193)]=_0x499ce1(0x167);const _0x2efa87=_0x1804d5;this[_0x499ce1(0x19c)]();if(this[_0x499ce1(0x19d)])logger[_0x499ce1(0x189)]('['+TAG+_0x499ce1(0x1a9));else try{const _0x4a7757={...this[_0x499ce1(0x158)],'uniqueFailedTests':Array[_0x499ce1(0x16b)](this['state'][_0x499ce1(0x131)]||new Set())};await this['fileHelper'][_0x499ce1(0x1a4)](_0x4a7757),logger[_0x499ce1(0x189)]('['+TAG+_0x499ce1(0x175));}catch(_0x1cd666){logger[_0x499ce1(0x162)]('['+TAG+_0x499ce1(0x138)+_0x1cd666['message']+(_0x1cd666[_0x499ce1(0x179)]?_0x2efa87[_0x499ce1(0x135)](_0x2efa87[_0x499ce1(0x193)],_0x1cd666[_0x499ce1(0x179)]):''));}}}function a139_0x1b7b(_0x741731,_0x23c93f){const _0x5004ed=a139_0x5004();return a139_0x1b7b=function(_0x1b7b97,_0x208424){_0x1b7b97=_0x1b7b97-0x12a;let _0x3b223e=_0x5004ed[_0x1b7b97];return _0x3b223e;},a139_0x1b7b(_0x741731,_0x23c93f);}module[a139_0x1cef11(0x14f)]=FailFastManager;
|
|
1
|
+
const a139_0x1aa673=a139_0x6101;function a139_0x505d(){const _0x34a82f=['_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','_CI]\x20Error\x20sending\x20failed\x20test\x20','LfLTB','recordTestResult','fvJDR','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','failFastActiveMarkerPath','rdDup','ClYbZ','warn','PnAIb','writeState','projectName','failedTests','144153HIZofx','ZvdVr','1261395LftBWP','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','vEDAw','UgEoV','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','exports','_CI]\x20Error\x20during\x20polling\x20logic:\x20','fileHelper','_CI]\x20API\x20failed\x20count\x20updated:\x20','putFailedTests','njzLb','1214591ciFApG','message','xMPAc','30RWcFpM','buildName','_CI]\x20Polling\x20started\x20with\x20interval:\x20','\x20(was\x20','debug','failureThresholdCount','_pollFailedTests','qjRyd','PXbeO','length','dRcor','workingDir','IHBSZ','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','rIFjU','size','FzKYu','ujZYg','162054eOJGTX','jBAxU','stateFilePath','has','lastAPIFailedCount','FailFastManager','winstonLogger','TZncC','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','\x0aStack:\x20','info','_initializeStateFromFile','dalNN',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','add','OEqJw','SuAgK','weCsq',',\x20CI\x20Mode:\x20','bAdsD','failFastConfig','ms.','_fetchAPIFailedCount','state','uniqueFailedTests','BROWSERSTACK_BUILD_RUN_IDENTIFIER','reportedFailuresToAPI','stack','HmsDc','Rldex','FSJVG','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','buildRunIdentifier','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','join','passed','QbxNN','ajhCH','biaGF','WMVnQ','failFastActive','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','_sendFailedTestsToAPI','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','_getDefaultState','error','\x20to\x20API:\x20','path','failFastState.lock','readState','isCIMode','failed','startPolling','writeFileSync','VfZyu','FVTgz','BROWSERSTACK_NODE_INDEX','ZQDGm',',\x20threshold:\x20','cleanup','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','lockFilePath','255715OuEmOg','_Local]\x20State\x20initialized\x20from\x20file.','failFastState.json','315592bTiumf','from','totalTests','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','../logger','failFast.active','kCOTT','3cvEVdh','pollingInterval','HXxsQ','env','7260090oPZdWJ','number','8EpcmzK','existsSync','stopPolling','wiocN','newState','GEqjE',']\x20Polling\x20stopped.'];a139_0x505d=function(){return _0x34a82f;};return a139_0x505d();}(function(_0x5a12e8,_0x356ff6){const _0x5882bc=a139_0x6101,_0x4328a3=_0x5a12e8();while(!![]){try{const _0x56be08=-parseInt(_0x5882bc(0x12e))/0x1*(parseInt(_0x5882bc(0xe3))/0x2)+-parseInt(_0x5882bc(0x14a))/0x3+-parseInt(_0x5882bc(0x127))/0x4+parseInt(_0x5882bc(0x124))/0x5*(-parseInt(_0x5882bc(0xd1))/0x6)+parseInt(_0x5882bc(0x159))/0x7+-parseInt(_0x5882bc(0x134))/0x8*(parseInt(_0x5882bc(0x14c))/0x9)+parseInt(_0x5882bc(0x132))/0xa;if(_0x56be08===_0x356ff6)break;else _0x4328a3['push'](_0x4328a3['shift']());}catch(_0x41836f){_0x4328a3['push'](_0x4328a3['shift']());}}}(a139_0x505d,0x209f6));function a139_0x6101(_0x7f526,_0x358c70){const _0x505dd7=a139_0x505d();return a139_0x6101=function(_0x6101bd,_0x14250f){_0x6101bd=_0x6101bd-0xd1;let _0x7d79ba=_0x505dd7[_0x6101bd];return _0x7d79ba;},a139_0x6101(_0x7f526,_0x358c70);}const fs=require('fs'),path=require(a139_0x1aa673(0x115)),FileHelper=require('./fileHelper'),RequestUtils=require('./requestUtils'),logger=require(a139_0x1aa673(0x12b))[a139_0x1aa673(0xe9)],POLLING_INTERVAL=0x2710,TAG=a139_0x1aa673(0xe8);class FailFastManager{constructor(_0x918055,_0x2557de,_0x137020){const _0x357663=a139_0x1aa673,_0xd3a7eb={};_0xd3a7eb[_0x357663(0x14e)]=function(_0x3f44e1,_0x8127e2){return _0x3f44e1+_0x8127e2;},_0xd3a7eb[_0x357663(0xf1)]='\x0aStack:\x20',_0xd3a7eb['PWBDH']=function(_0x1030cb,_0x4a9a13){return _0x1030cb||_0x4a9a13;},_0xd3a7eb['VfZyu']=_0x357663(0x126),_0xd3a7eb[_0x357663(0x143)]=_0x357663(0x116),_0xd3a7eb[_0x357663(0x102)]=_0x357663(0x12c);const _0x560ed6=_0xd3a7eb;this[_0x357663(0xf9)]=_0x560ed6['PWBDH'](_0x918055,{}),this['buildName']=_0x2557de,this[_0x357663(0x148)]=_0x137020,this['isCIMode']=!!(process[_0x357663(0x131)][_0x357663(0xfe)]&&process[_0x357663(0x131)][_0x357663(0x11e)]&&process['env']['BROWSERSTACK_TOTAL_NODE_COUNT']);const _0xc75be1=this['failFastConfig'][_0x357663(0xdc)];this[_0x357663(0xe5)]=path[_0x357663(0x107)](_0xc75be1,_0x560ed6[_0x357663(0x11c)]),this[_0x357663(0x123)]=path[_0x357663(0x107)](_0xc75be1,_0x560ed6[_0x357663(0x143)]),this[_0x357663(0x142)]=path[_0x357663(0x107)](_0xc75be1,_0x560ed6['Rldex']),this[_0x357663(0x155)]=new FileHelper(this[_0x357663(0xf9)],this[_0x357663(0xe5)],this[_0x357663(0x123)],this['_getDefaultState']()),this[_0x357663(0xfc)]=this[_0x357663(0x112)](),this['pollingInterval']=null,this[_0x357663(0x118)]&&(this[_0x357663(0xff)]=new Set()),this[_0x357663(0xf0)]()['catch'](_0x895638=>{const _0x2035bc=_0x357663;logger[_0x2035bc(0x113)]('['+TAG+_0x2035bc(0xf2)+_0x895638['message']+(_0x895638['stack']?_0x560ed6[_0x2035bc(0x14e)](_0x560ed6[_0x2035bc(0xf1)],_0x895638['stack']):'')),this[_0x2035bc(0xfc)]=this['_getDefaultState']();}),this[_0x357663(0x118)]&&this[_0x357663(0x11a)](),logger[_0x357663(0xd5)]('['+TAG+']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20'+this['failFastConfig'][_0x357663(0xd6)]+_0x357663(0xf7)+this[_0x357663(0x118)]);}[a139_0x1aa673(0x112)](){const _0x28f9b7={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x28f9b7;}async[a139_0x1aa673(0xf0)](){const _0x28f5dc=a139_0x1aa673,_0x1fe784={};_0x1fe784[_0x28f5dc(0xd9)]=function(_0x2e0836,_0x169f8e){return _0x2e0836+_0x169f8e;},_0x1fe784[_0x28f5dc(0x101)]=_0x28f5dc(0xee),_0x1fe784[_0x28f5dc(0x11d)]=function(_0x29130c,_0x536c4c){return _0x29130c+_0x536c4c;};const _0x4ac600=_0x1fe784;if(this[_0x28f5dc(0x118)])try{fs['existsSync'](this[_0x28f5dc(0x142)])&&(this['state']['failFastActive']=!![],logger[_0x28f5dc(0xd5)]('['+TAG+_0x28f5dc(0xeb)));}catch(_0xb3d765){logger['error']('['+TAG+_0x28f5dc(0x106)+_0xb3d765[_0x28f5dc(0x15a)]+(_0xb3d765['stack']?_0x4ac600[_0x28f5dc(0xd9)](_0x4ac600[_0x28f5dc(0x101)],_0xb3d765['stack']):''));}else try{const _0x355e10=await this['fileHelper'][_0x28f5dc(0x117)]();if(_0x355e10)this[_0x28f5dc(0xfc)]={...this[_0x28f5dc(0x112)](),..._0x355e10,'uniqueFailedTests':new Set(_0x355e10['uniqueFailedTests']||[])},logger[_0x28f5dc(0xd5)]('['+TAG+_0x28f5dc(0x125));else{logger[_0x28f5dc(0xd5)]('['+TAG+_0x28f5dc(0x13b));const _0x395fd4=this[_0x28f5dc(0x112)](),_0x46a3f1={..._0x395fd4,'uniqueFailedTests':Array[_0x28f5dc(0x128)](_0x395fd4[_0x28f5dc(0xfd)])};await this[_0x28f5dc(0x155)][_0x28f5dc(0x147)](_0x46a3f1),this[_0x28f5dc(0xfc)]=_0x395fd4;}}catch(_0x15e86c){logger['debug']('['+TAG+'_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20'+_0x15e86c[_0x28f5dc(0x15a)]+(_0x15e86c[_0x28f5dc(0x100)]?_0x4ac600[_0x28f5dc(0x11d)](_0x4ac600[_0x28f5dc(0x101)],_0x15e86c[_0x28f5dc(0x100)]):'')),this[_0x28f5dc(0xfc)]=this['_getDefaultState']();}}async['onTestDone'](_0x35e0e1,_0x320daf){const _0x517784=a139_0x1aa673,_0x4afcdb={};_0x4afcdb[_0x517784(0xf6)]=function(_0x12e5a5,_0x43a73f){return _0x12e5a5>_0x43a73f;},_0x4afcdb[_0x517784(0x10a)]=function(_0x1be391,_0x316744){return _0x1be391>_0x316744;},_0x4afcdb[_0x517784(0x137)]=_0x517784(0x119),_0x4afcdb[_0x517784(0xf5)]=_0x517784(0x108),_0x4afcdb['xMPAc']=function(_0x4357ff,_0x57af5d){return _0x4357ff+_0x57af5d;},_0x4afcdb[_0x517784(0x103)]=_0x517784(0xee),_0x4afcdb[_0x517784(0x146)]=function(_0x5d6f4d,_0x3a602b){return _0x5d6f4d||_0x3a602b;};const _0x145833=_0x4afcdb;if(this[_0x517784(0x118)])this[_0x517784(0xfc)][_0x517784(0x129)]+=0x1,_0x320daf&&_0x145833[_0x517784(0xf6)](_0x320daf[_0x517784(0xda)],0x0)&&(!this['reportedFailuresToAPI'][_0x517784(0xe6)](_0x35e0e1)&&(await this[_0x517784(0x10f)](_0x35e0e1),this['reportedFailuresToAPI'][_0x517784(0xf3)](_0x35e0e1)));else try{const _0x5afde1={'fullName':_0x35e0e1,'status':_0x320daf&&_0x145833['ajhCH'](_0x320daf[_0x517784(0xda)],0x0)?_0x145833[_0x517784(0x137)]:_0x145833[_0x517784(0xf5)]},_0x5ab9db=await this['fileHelper'][_0x517784(0x13f)](_0x5afde1);this[_0x517784(0xfc)]={...this[_0x517784(0x112)](),..._0x5ab9db['newState'],'uniqueFailedTests':new Set(_0x5ab9db[_0x517784(0x138)]['uniqueFailedTests']||[])};}catch(_0x1b5a5f){logger[_0x517784(0x113)]('['+TAG+_0x517784(0xed)+_0x1b5a5f['message']+(_0x1b5a5f[_0x517784(0x100)]?_0x145833[_0x517784(0x15b)](_0x145833[_0x517784(0x103)],_0x1b5a5f[_0x517784(0x100)]):''));try{const _0x173c4d=await this['fileHelper'][_0x517784(0x117)]();this[_0x517784(0xfc)]={...this[_0x517784(0x112)](),..._0x145833[_0x517784(0x146)](_0x173c4d,{}),'uniqueFailedTests':new Set(_0x173c4d?_0x173c4d[_0x517784(0xfd)]||[]:[])},logger[_0x517784(0xd5)]('['+TAG+_0x517784(0x13c));}catch(_0x10f617){logger['error']('['+TAG+_0x517784(0xde)+_0x10f617[_0x517784(0x15a)]+(_0x10f617[_0x517784(0x100)]?_0x145833['xMPAc'](_0x145833['FSJVG'],_0x10f617[_0x517784(0x100)]):'')),this['state']=this['_getDefaultState']();}}}async[a139_0x1aa673(0x10f)](_0x44bafb){const _0x498b12=a139_0x1aa673,_0x535354={};_0x535354[_0x498b12(0x109)]=function(_0x2c7bcc,_0x19f0ec){return _0x2c7bcc+_0x19f0ec;},_0x535354[_0x498b12(0x10c)]='\x0aStack:\x20';const _0x356bf6=_0x535354;if(!this[_0x498b12(0x118)]||!_0x44bafb)return;try{logger['debug']('['+TAG+'_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20'+_0x44bafb);const _0x51309b={};_0x51309b[_0x498b12(0xd2)]=this[_0x498b12(0xd2)],_0x51309b[_0x498b12(0x148)]=this['projectName'],_0x51309b[_0x498b12(0x149)]=[_0x44bafb],_0x51309b[_0x498b12(0x105)]=process[_0x498b12(0x131)][_0x498b12(0xfe)],await RequestUtils[_0x498b12(0x157)](_0x51309b);}catch(_0x3ddabe){logger['error']('['+TAG+_0x498b12(0x13d)+_0x44bafb+_0x498b12(0x114)+_0x3ddabe['message']+(_0x3ddabe[_0x498b12(0x100)]?_0x356bf6['QbxNN'](_0x356bf6[_0x498b12(0x10c)],_0x3ddabe['stack']):''));}}async[a139_0x1aa673(0xfb)](){const _0x2b58d6=a139_0x1aa673,_0x3e2cd4={};_0x3e2cd4['ClYbZ']=function(_0x327cbd,_0x52685e){return _0x327cbd===_0x52685e;},_0x3e2cd4[_0x2b58d6(0x12d)]=_0x2b58d6(0x133),_0x3e2cd4['FSlfD']=function(_0x139112,_0x259341){return _0x139112+_0x259341;},_0x3e2cd4[_0x2b58d6(0x139)]=_0x2b58d6(0xee),_0x3e2cd4['UgEoV']=function(_0x1454a2,_0xbb054){return _0x1454a2!==_0xbb054;};const _0x436a24=_0x3e2cd4;if(!this[_0x2b58d6(0x118)])return 0x0;try{const _0x57f478={};_0x57f478['buildName']=this[_0x2b58d6(0xd2)],_0x57f478['projectName']=this[_0x2b58d6(0x148)],_0x57f478[_0x2b58d6(0x105)]=process['env'][_0x2b58d6(0xfe)];const _0x177028=await RequestUtils['getFailedTestsCount'](_0x57f478);return logger[_0x2b58d6(0xd5)]('['+TAG+_0x2b58d6(0x151)+_0x177028),_0x436a24[_0x2b58d6(0x144)](typeof _0x177028,_0x436a24[_0x2b58d6(0x12d)])?_0x177028:0x0;}catch(_0x50de04){return logger['error']('['+TAG+'_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20'+_0x50de04['message']+(_0x50de04[_0x2b58d6(0x100)]?_0x436a24['FSlfD'](_0x436a24['GEqjE'],_0x50de04[_0x2b58d6(0x100)]):'')),_0x436a24[_0x2b58d6(0x14f)](this[_0x2b58d6(0xfc)]['lastAPIFailedCount'],undefined)?this['state'][_0x2b58d6(0xe7)]:0x0;}}async[a139_0x1aa673(0xd7)](){const _0x5b5047=a139_0x1aa673,_0x2aca0d={};_0x2aca0d['njzLb']=function(_0xccbae2,_0x1f780e){return _0xccbae2!==_0x1f780e;},_0x2aca0d[_0x5b5047(0x10b)]=function(_0x578185,_0x2884d4){return _0x578185+_0x2884d4;},_0x2aca0d[_0x5b5047(0xf8)]=_0x5b5047(0xee);const _0x44ba4c=_0x2aca0d;if(!this[_0x5b5047(0x118)])return;try{const _0x185286=await this[_0x5b5047(0xfb)]();_0x44ba4c[_0x5b5047(0x158)](_0x185286,this[_0x5b5047(0xfc)][_0x5b5047(0xe7)])&&(logger[_0x5b5047(0xd5)]('['+TAG+_0x5b5047(0x156)+_0x185286+_0x5b5047(0xd4)+this[_0x5b5047(0xfc)][_0x5b5047(0xe7)]+')'),this['state'][_0x5b5047(0xe7)]=_0x185286);}catch(_0x339dbd){logger[_0x5b5047(0x113)]('['+TAG+_0x5b5047(0x154)+_0x339dbd[_0x5b5047(0x15a)]+(_0x339dbd[_0x5b5047(0x100)]?_0x44ba4c['biaGF'](_0x44ba4c[_0x5b5047(0xf8)],_0x339dbd['stack']):''));}}async[a139_0x1aa673(0x11a)](){const _0x5e27c5=a139_0x1aa673,_0x10945a={'rIFjU':function(_0x24940e,_0x3173f5,_0x32a1b1){return _0x24940e(_0x3173f5,_0x32a1b1);}};this['pollingInterval']&&this[_0x5e27c5(0x136)](),this[_0x5e27c5(0x118)]&&(await this['_pollFailedTests'](),this['pollingInterval']=_0x10945a[_0x5e27c5(0xdf)](setInterval,async()=>{const _0x8283cc=_0x5e27c5;await this[_0x8283cc(0xd7)]();},POLLING_INTERVAL),logger[_0x5e27c5(0xd5)]('['+TAG+_0x5e27c5(0xd3)+POLLING_INTERVAL+_0x5e27c5(0xfa)));}[a139_0x1aa673(0x136)](){const _0x285a79=a139_0x1aa673,_0x3a2eb4={'ZQDGm':function(_0x39301e,_0x30e139){return _0x39301e(_0x30e139);}};this[_0x285a79(0x12f)]&&(_0x3a2eb4[_0x285a79(0x11f)](clearInterval,this['pollingInterval']),this[_0x285a79(0x12f)]=null,logger['debug']('['+TAG+_0x285a79(0x13a)));}async['shouldFailFast'](){const _0x37d1a3=a139_0x1aa673,_0x5e9eb7={};_0x5e9eb7[_0x37d1a3(0xea)]=function(_0xb4cbd9,_0x4da216){return _0xb4cbd9===_0x4da216;},_0x5e9eb7[_0x37d1a3(0xdd)]=function(_0x121f63,_0x5d0441){return _0x121f63<=_0x5d0441;},_0x5e9eb7[_0x37d1a3(0xd8)]=function(_0x218889,_0x1bc348){return _0x218889+_0x1bc348;},_0x5e9eb7[_0x37d1a3(0xf4)]=_0x37d1a3(0xee),_0x5e9eb7[_0x37d1a3(0x140)]=function(_0x29501a,_0x5a629f){return _0x29501a!==_0x5a629f;},_0x5e9eb7[_0x37d1a3(0xdb)]=function(_0x5d1508,_0x5b8723){return _0x5d1508>=_0x5b8723;},_0x5e9eb7['FzKYu']=function(_0x15881d,_0x1d9a83){return _0x15881d+_0x1d9a83;},_0x5e9eb7['HXxsQ']=function(_0xc94d54,_0x32afb1){return _0xc94d54+_0x32afb1;},_0x5e9eb7[_0x37d1a3(0xe4)]=function(_0x37fd3f,_0x5c35e9){return _0x37fd3f>=_0x5c35e9;},_0x5e9eb7[_0x37d1a3(0x14b)]=function(_0x59b643,_0xf5cf3f){return _0x59b643+_0xf5cf3f;};const _0x22206a=_0x5e9eb7,{failureThresholdCount:_0x56403e}=this[_0x37d1a3(0xf9)];if(_0x22206a[_0x37d1a3(0xea)](_0x56403e,null)||_0x22206a['TZncC'](_0x56403e,undefined)||_0x22206a[_0x37d1a3(0xdd)](_0x56403e,0x0))return logger[_0x37d1a3(0xd5)]('['+TAG+_0x37d1a3(0x111)),![];if(this[_0x37d1a3(0x118)]){try{if(fs[_0x37d1a3(0x135)](this[_0x37d1a3(0x142)]))return logger[_0x37d1a3(0xd5)]('['+TAG+_0x37d1a3(0xec)),!this[_0x37d1a3(0xfc)][_0x37d1a3(0x10d)]&&(this[_0x37d1a3(0xfc)][_0x37d1a3(0x10d)]=!![]),this[_0x37d1a3(0x136)](),!![];}catch(_0x46eb46){logger[_0x37d1a3(0x113)]('['+TAG+_0x37d1a3(0x106)+_0x46eb46[_0x37d1a3(0x15a)]+(_0x46eb46['stack']?_0x22206a[_0x37d1a3(0xd8)](_0x22206a[_0x37d1a3(0xf4)],_0x46eb46['stack']):''));}const _0x1a8a57=_0x22206a[_0x37d1a3(0x140)](this[_0x37d1a3(0xfc)][_0x37d1a3(0xe7)],undefined)?this[_0x37d1a3(0xfc)][_0x37d1a3(0xe7)]:0x0;if(_0x22206a[_0x37d1a3(0xdb)](_0x1a8a57,_0x56403e)){logger['info']('['+TAG+_0x37d1a3(0x152)+_0x1a8a57+_0x37d1a3(0x120)+_0x56403e+'.');try{fs[_0x37d1a3(0x11b)](this[_0x37d1a3(0x142)],new Date()['toISOString']()),logger[_0x37d1a3(0xd5)]('['+TAG+'_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20'+this[_0x37d1a3(0x142)]),this['state']['failFastActive']=!![];}catch(_0x2b94cd){logger[_0x37d1a3(0x113)]('['+TAG+_0x37d1a3(0x12a)+_0x2b94cd['message']+(_0x2b94cd[_0x37d1a3(0x100)]?_0x22206a[_0x37d1a3(0xe1)](_0x22206a[_0x37d1a3(0xf4)],_0x2b94cd[_0x37d1a3(0x100)]):''));}return this[_0x37d1a3(0x136)](),!![];}}else{let _0x29d627;try{_0x29d627=await this[_0x37d1a3(0x155)][_0x37d1a3(0x117)]();if(!_0x29d627)return logger[_0x37d1a3(0x145)]('['+TAG+_0x37d1a3(0x14d)),![];}catch(_0x27a994){return logger['error']('['+TAG+'_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20'+_0x27a994[_0x37d1a3(0x15a)]+(_0x27a994[_0x37d1a3(0x100)]?_0x22206a[_0x37d1a3(0x130)](_0x22206a[_0x37d1a3(0xf4)],_0x27a994['stack']):'')),![];}this[_0x37d1a3(0xfc)]={...this['_getDefaultState'](),..._0x29d627,'uniqueFailedTests':new Set(_0x29d627[_0x37d1a3(0xfd)]||[])};if(this[_0x37d1a3(0xfc)][_0x37d1a3(0x10d)])return logger[_0x37d1a3(0xd5)]('['+TAG+_0x37d1a3(0x150)),!![];const _0x1f1ed7=this[_0x37d1a3(0xfc)][_0x37d1a3(0xfd)],_0x5c5026=_0x1f1ed7[_0x37d1a3(0xe0)];if(_0x22206a[_0x37d1a3(0xe4)](_0x5c5026,_0x56403e)){try{logger[_0x37d1a3(0xef)]('['+TAG+_0x37d1a3(0x10e)+_0x5c5026+',\x20threshold:\x20'+_0x56403e+'.'),this['state'][_0x37d1a3(0x10d)]=!![];}catch(_0x4acd1a){logger[_0x37d1a3(0x113)]('['+TAG+_0x37d1a3(0x104)+_0x4acd1a['message']+(_0x4acd1a['stack']?_0x22206a['ZvdVr'](_0x22206a[_0x37d1a3(0xf4)],_0x4acd1a[_0x37d1a3(0x100)]):''));}return!![];}}return![];}async[a139_0x1aa673(0x121)](){const _0x252139=a139_0x1aa673,_0x1841f6={};_0x1841f6[_0x252139(0xe2)]=function(_0x418b24,_0x130c1b){return _0x418b24+_0x130c1b;},_0x1841f6[_0x252139(0x13e)]=_0x252139(0xee);const _0xf3d0db=_0x1841f6;this['stopPolling']();if(this[_0x252139(0x118)])logger['debug']('['+TAG+_0x252139(0x110));else try{const _0x7b821c={...this['state'],'uniqueFailedTests':Array[_0x252139(0x128)](this['state']['uniqueFailedTests']||new Set())};await this['fileHelper']['writeState'](_0x7b821c),logger[_0x252139(0xd5)]('['+TAG+_0x252139(0x122));}catch(_0x27f6ff){logger['error']('['+TAG+_0x252139(0x141)+_0x27f6ff['message']+(_0x27f6ff[_0x252139(0x100)]?_0xf3d0db[_0x252139(0xe2)](_0xf3d0db[_0x252139(0x13e)],_0x27f6ff['stack']):''));}}}module[a139_0x1aa673(0x153)]=FailFastManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a140_0xede148=a140_0x362b;(function(_0x3efb35,_0x33271b){const _0x4bb751=a140_0x362b,_0x50937a=_0x3efb35();while(!![]){try{const _0x4db319=-parseInt(_0x4bb751(0x182))/0x1*(parseInt(_0x4bb751(0x1af))/0x2)+parseInt(_0x4bb751(0x1a6))/0x3+-parseInt(_0x4bb751(0x190))/0x4*(-parseInt(_0x4bb751(0x189))/0x5)+-parseInt(_0x4bb751(0x191))/0x6+parseInt(_0x4bb751(0x1b2))/0x7+parseInt(_0x4bb751(0x18a))/0x8*(parseInt(_0x4bb751(0x188))/0x9)+-parseInt(_0x4bb751(0x18e))/0xa*(parseInt(_0x4bb751(0x18d))/0xb);if(_0x4db319===_0x33271b)break;else _0x50937a['push'](_0x50937a['shift']());}catch(_0x5e0f9c){_0x50937a['push'](_0x50937a['shift']());}}}(a140_0x18f2,0xe52c3));function a140_0x362b(_0x5be9e4,_0x5e6673){const _0x18f2a6=a140_0x18f2();return a140_0x362b=function(_0x362b47,_0x28710b){_0x362b47=_0x362b47-0x176;let _0x29f292=_0x18f2a6[_0x362b47];return _0x29f292;},a140_0x362b(_0x5be9e4,_0x5e6673);}const fs=require('fs'),logger=require(a140_0xede148(0x192))[a140_0xede148(0x17e)],TAG=a140_0xede148(0x1a5);class FileHelper{constructor(_0x1d2dac,_0x30c24f,_0x22781b,_0x1983a6){const _0x491f78=a140_0xede148,_0x218fcf={};_0x218fcf['OHjCO']=_0x491f78(0x1a7),_0x218fcf[_0x491f78(0x186)]=_0x491f78(0x1b4);const _0x24da10=_0x218fcf,_0x42f7dc=_0x24da10['OHjCO'][_0x491f78(0x1a4)]('|');let _0x2d3aec=0x0;while(!![]){switch(_0x42f7dc[_0x2d3aec++]){case'0':if(!fs['existsSync'](this[_0x491f78(0x1a9)]))try{fs[_0x491f78(0x1a0)](this[_0x491f78(0x1a9)],'{}',_0x24da10['aKpMD']);}catch(_0x476a8f){logger[_0x491f78(0x193)]('['+TAG+']\x20Error\x20creating\x20state\x20file:\x20'+_0x476a8f[_0x491f78(0x1b5)]+'\x20'+_0x476a8f[_0x491f78(0x195)]);}continue;case'1':this['stateFilePath']=_0x30c24f;continue;case'2':this[_0x491f78(0x19c)]=_0x22781b;continue;case'3':this[_0x491f78(0x187)]=_0x1983a6;continue;case'4':this[_0x491f78(0x198)]=_0x1d2dac;continue;}break;}}async[a140_0xede148(0x1ac)](){const _0x2e5a22=a140_0xede148,_0x3cacb6={};_0x3cacb6[_0x2e5a22(0x1a3)]=function(_0x5c8775,_0x12e602){return _0x5c8775===_0x12e602;},_0x3cacb6['XTOgR']=_0x2e5a22(0x197);const _0x3e8234=_0x3cacb6;let _0x16635c;try{return _0x16635c=fs[_0x2e5a22(0x19d)](this['lockFilePath'],'wx'),_0x16635c;}catch(_0x1026a2){if(_0x3e8234[_0x2e5a22(0x1a3)](_0x1026a2[_0x2e5a22(0x1a1)],_0x3e8234[_0x2e5a22(0x181)]))return null;throw _0x1026a2;}}async[a140_0xede148(0x18f)](_0x3b5a17){const _0x15b6c7=a140_0xede148;if(_0x3b5a17)try{fs[_0x15b6c7(0x199)](_0x3b5a17),fs[_0x15b6c7(0x180)](this[_0x15b6c7(0x19c)]);}catch(_0x289d08){logger[_0x15b6c7(0x193)]('['+TAG+_0x15b6c7(0x18c)+_0x289d08['message']+'\x20'+_0x289d08['stack']);}}[a140_0xede148(0x19e)](){const _0x55ea8f=a140_0xede148,_0x2be525={};_0x2be525[_0x55ea8f(0x177)]=_0x55ea8f(0x1b4);const _0x27c2ec=_0x2be525;try{const _0x5a2e9d=fs['readFileSync'](this[_0x55ea8f(0x1a9)],_0x27c2ec[_0x55ea8f(0x177)]);return JSON[_0x55ea8f(0x19b)](_0x5a2e9d);}catch(_0x24ae54){return logger['error']('['+TAG+_0x55ea8f(0x1b6)+_0x24ae54[_0x55ea8f(0x1b5)]+'\x20'+_0x24ae54[_0x55ea8f(0x195)]),null;}}async[a140_0xede148(0x1ad)](_0x485fe2){const _0x3d7e01=a140_0xede148,_0x3641d3={..._0x485fe2,'uniqueFailedTests':Array[_0x3d7e01(0x179)](_0x485fe2[_0x3d7e01(0x17d)])?_0x485fe2['uniqueFailedTests']:Array[_0x3d7e01(0x18b)](_0x485fe2[_0x3d7e01(0x17d)]||[])};try{fs[_0x3d7e01(0x1a0)](this['stateFilePath'],JSON[_0x3d7e01(0x185)](_0x3641d3,null,0x2));}catch(_0x4164b7){logger[_0x3d7e01(0x193)]('['+TAG+_0x3d7e01(0x184)+_0x4164b7[_0x3d7e01(0x1b5)]+'\x20'+_0x4164b7[_0x3d7e01(0x195)]);throw _0x4164b7;}}async[a140_0xede148(0x1aa)](_0x56ab8f,_0x39ad42){const _0x1efc13=a140_0xede148,_0x2a79e8={};_0x2a79e8[_0x1efc13(0x1ab)]=function(_0x1a1648,_0x41a2f1){return _0x1a1648!==_0x41a2f1;},_0x2a79e8['endCr']=_0x1efc13(0x1b3),_0x2a79e8[_0x1efc13(0x196)]=function(_0x2a2344,_0x3f07cc){return _0x2a2344===_0x3f07cc;},_0x2a79e8[_0x1efc13(0x1b1)]=_0x1efc13(0x19a);const _0x371506=_0x2a79e8,_0x4b901d=await this[_0x1efc13(0x1ac)]();if(!_0x4b901d)return logger[_0x1efc13(0x1a2)]('['+TAG+_0x1efc13(0x1b0)),{'newState':this[_0x1efc13(0x19e)]()||this[_0x1efc13(0x187)],'isNewFailure':![]};try{let _0x400529=this[_0x1efc13(0x19e)]();!_0x400529&&(_0x400529=JSON['parse'](JSON[_0x1efc13(0x185)](this['defaultState'])));if(!_0x400529[_0x1efc13(0x17d)]||_0x371506[_0x1efc13(0x1ab)](typeof _0x400529['uniqueFailedTests'][Symbol[_0x1efc13(0x1a8)]],_0x371506[_0x1efc13(0x17a)]))_0x400529[_0x1efc13(0x17d)]=new Set();else Array['isArray'](_0x400529[_0x1efc13(0x17d)])&&(_0x400529['uniqueFailedTests']=new Set(_0x400529['uniqueFailedTests']));_0x400529[_0x1efc13(0x194)]=_0x39ad42;let _0x12e7f0=![];_0x371506['nmdRU'](_0x56ab8f['status'],_0x371506['GjHZy'])&&(_0x400529[_0x1efc13(0x178)]+=0x1,!_0x400529[_0x1efc13(0x17d)][_0x1efc13(0x17f)](_0x56ab8f[_0x1efc13(0x176)])&&(_0x400529[_0x1efc13(0x17d)][_0x1efc13(0x1ae)](_0x56ab8f['fullName']),_0x12e7f0=!![]));await this['writeState'](_0x400529);const _0x2f399={};return _0x2f399[_0x1efc13(0x19f)]=_0x400529,_0x2f399[_0x1efc13(0x1b7)]=_0x12e7f0,_0x2f399;}finally{await this[_0x1efc13(0x18f)](_0x4b901d);}}async[a140_0xede148(0x17b)](_0x4ec50b){const _0x5f29d8=a140_0xede148,_0x2fa1f1=await this[_0x5f29d8(0x1ac)]();if(!_0x2fa1f1)return logger[_0x5f29d8(0x1a2)]('['+TAG+']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.'),this[_0x5f29d8(0x19e)]()||this[_0x5f29d8(0x187)];try{let _0x311b93=this[_0x5f29d8(0x19e)]();return!_0x311b93&&(_0x311b93=JSON[_0x5f29d8(0x19b)](JSON[_0x5f29d8(0x185)](this[_0x5f29d8(0x187)]))),_0x311b93[_0x5f29d8(0x17c)]=_0x4ec50b,await this[_0x5f29d8(0x1ad)](_0x311b93),_0x311b93;}finally{await this[_0x5f29d8(0x18f)](_0x2fa1f1);}}}module[a140_0xede148(0x183)]=FileHelper;function a140_0x18f2(){const _0x2d564a=['4990132kfSSDu','function','utf8','message',']\x20Error\x20reading\x20state\x20file:\x20','isNewFailure','fullName','PtdsD','failedTests','isArray','endCr','updateAPIFailedCount','lastAPIFailedCount','uniqueFailedTests','winstonLogger','has','unlinkSync','XTOgR','21186lIHuZx','exports',']\x20Error\x20writing\x20state\x20file:\x20','stringify','aKpMD','defaultState','171oFemzm','21445CUSVol','282568mDWAUe','from',']\x20Error\x20releasing\x20lock:\x20','517gLCIpw','377840LUjbNa','releaseLock','1172ltBLpo','4191300WRJWHm','../logger','error','totalTests','stack','nmdRU','EEXIST','failFastConfig','closeSync','failed','parse','lockFilePath','openSync','readState','newState','writeFileSync','code','warn','aALNO','split','FailFastFileHelper','2952891QUfUVA','4|1|2|3|0','iterator','stateFilePath','recordTestResult','DZkhU','acquireLock','writeState','add','20xBASiO',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','GjHZy'];a140_0x18f2=function(){return _0x2d564a;};return a140_0x18f2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a141_0x487bf4=a141_0x2b96;(function(_0x441205,_0x16278b){const _0x4aea43=a141_0x2b96,_0x7db23b=_0x441205();while(!![]){try{const _0x3360a0=parseInt(_0x4aea43(0x149))/0x1+-parseInt(_0x4aea43(0x12b))/0x2+parseInt(_0x4aea43(0x135))/0x3*(parseInt(_0x4aea43(0x118))/0x4)+parseInt(_0x4aea43(0x14a))/0x5*(-parseInt(_0x4aea43(0x143))/0x6)+-parseInt(_0x4aea43(0x145))/0x7*(-parseInt(_0x4aea43(0x147))/0x8)+-parseInt(_0x4aea43(0x124))/0x9+parseInt(_0x4aea43(0x146))/0xa;if(_0x3360a0===_0x16278b)break;else _0x7db23b['push'](_0x7db23b['shift']());}catch(_0x5c6d0f){_0x7db23b['push'](_0x7db23b['shift']());}}}(a141_0x45e6,0xbc524));const os=require('os'),path=require(a141_0x487bf4(0x11b)),fs=require('fs'),logger=require(a141_0x487bf4(0x11d))[a141_0x487bf4(0x13f)],RETRY_TESTS_ON_FAILURE=a141_0x487bf4(0x11e),ABORT_BUILD_ON_FAILURE=a141_0x487bf4(0x130),RUN_PREVIOUSLY_FAILED_FIRST=a141_0x487bf4(0x127),RERUN_PREVIOUSLY_FAILED='rerunPreviouslyFailed',SKIP_FLAKY_AND_FAILED=a141_0x487bf4(0x125),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([a141_0x487bf4(0x13e)]);function a141_0x2b96(_0x4738bf,_0x29aed2){const _0x45e65d=a141_0x45e6();return a141_0x2b96=function(_0x2b96be,_0x6a42b9){_0x2b96be=_0x2b96be-0x10f;let _0x3d7c81=_0x45e65d[_0x2b96be];return _0x3d7c81;},a141_0x2b96(_0x4738bf,_0x29aed2);}class TestOrdering{constructor(){const _0x3178b1=a141_0x487bf4;this['enabled']=![],this[_0x3178b1(0x114)]=null;}['enable'](_0x759550){const _0x5ccb9c=a141_0x487bf4;this[_0x5ccb9c(0x134)]=!![],this[_0x5ccb9c(0x114)]=_0x759550;}['disable'](){const _0x3a83f3=a141_0x487bf4;this[_0x3a83f3(0x134)]=![],this['name']=null;}['getEnabled'](){const _0x5856bc=a141_0x487bf4;return this[_0x5856bc(0x134)];}[a141_0x487bf4(0x126)](){const _0xdf6271=a141_0x487bf4;return this[_0xdf6271(0x114)];}}class OrchestrationUtils{static [a141_0x487bf4(0x12d)]=null;constructor(_0x11179a){const _0x8b6555=a141_0x487bf4,_0x465694={};_0x465694[_0x8b6555(0x119)]=function(_0x24dcbc,_0x4a6f90){return _0x24dcbc||_0x4a6f90;};const _0x26ab33=_0x465694;this[_0x8b6555(0x127)]=![],this[_0x8b6555(0x138)]=![],this[_0x8b6555(0x122)]=![],this[_0x8b6555(0x136)]=new TestOrdering(),this[_0x8b6555(0x137)]=_0x26ab33[_0x8b6555(0x119)](_0x11179a,{});const _0x3050ee=_0x11179a&&_0x11179a[_0x8b6555(0x129)]||{};this[_0x8b6555(0x12a)](_0x3050ee[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x8b6555(0x117)](_0x3050ee[RERUN_PREVIOUSLY_FAILED]||![]),this['_setSkipFlakyAndFailed'](_0x3050ee[SKIP_FLAKY_AND_FAILED]||![]);}static[a141_0x487bf4(0x12f)](_0x300396){const _0xc7f07e=a141_0x487bf4;return!OrchestrationUtils['_instance']&&_0x300396&&(OrchestrationUtils[_0xc7f07e(0x12d)]=new OrchestrationUtils(_0x300396)),OrchestrationUtils[_0xc7f07e(0x12d)];}['isRetryEnabled'](){const _0x118e4c=a141_0x487bf4,_0x4faa72=(this[_0x118e4c(0x137)]['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x4faa72[_0x118e4c(0x134)];}['getRetryCount'](){const _0x2b92f1=a141_0x487bf4,_0x261632=(this[_0x2b92f1(0x137)][_0x2b92f1(0x129)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x36393a=0x0;return this[_0x2b92f1(0x113)](this[_0x2b92f1(0x137)])&&(_0x36393a=_0x261632['maxRetries']||0x1),_0x36393a;}['getOrchestrationData'](){const _0x264d12=this['config']['testOrchestrationOptions']||{},_0x31f792={};for(const _0x22a11a in _0x264d12){ALLOWED_ORCHESTRATION_KEYS['has'](_0x22a11a)&&(_0x31f792[_0x22a11a]=_0x264d12[_0x22a11a]);}return _0x31f792;}[a141_0x487bf4(0x132)](){const _0x36a031=a141_0x487bf4,_0x2d6ae7=process[_0x36a031(0x116)][_0x36a031(0x142)],_0x58035e=path[_0x36a031(0x131)](os[_0x36a031(0x144)](),_0x36a031(0x12c)+_0x2d6ae7);return fs[_0x36a031(0x110)](_0x58035e);}['writeFailureToFile'](_0x55a029){const _0x142b73=a141_0x487bf4,_0x442143=process[_0x142b73(0x116)][_0x142b73(0x142)],_0x19d3c1=path[_0x142b73(0x131)](os[_0x142b73(0x144)](),_0x142b73(0x13a)+_0x442143+_0x142b73(0x133));fs['appendFileSync'](_0x19d3c1,_0x55a029+'\x0a');}[a141_0x487bf4(0x121)](_0x2ea2ca){const _0x199cf=a141_0x487bf4,_0x47cc0b={};_0x47cc0b['MGmaF']=function(_0xfd5b95,_0x83b9b){return _0xfd5b95||_0x83b9b;};const _0x527891=_0x47cc0b;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x199cf(0x128)](_0x527891[_0x199cf(0x14b)](_0x2ea2ca,'')['toLowerCase']());}[a141_0x487bf4(0x10f)](){const _0x2fb9ba=a141_0x487bf4,_0x4f5a25=(this['config']['testOrchestrationOptions']||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x4f5a25[_0x2fb9ba(0x134)];}[a141_0x487bf4(0x112)](){const _0x58c545=a141_0x487bf4,_0x53d8cd=(this[_0x58c545(0x137)]['testOrchestrationOptions']||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x53d8cd['maxFailures']||0x5;;}[a141_0x487bf4(0x111)](){const _0x140a91=a141_0x487bf4;return this[_0x140a91(0x127)];}[a141_0x487bf4(0x12a)](_0x59c9b9){const _0xf65a7a=a141_0x487bf4;this[_0xf65a7a(0x127)]=!!_0x59c9b9,this[_0xf65a7a(0x123)]();}[a141_0x487bf4(0x12e)](){const _0x27cc73=a141_0x487bf4;return this[_0x27cc73(0x138)];}[a141_0x487bf4(0x117)](_0x56a9f0){const _0x127951=a141_0x487bf4;this[_0x127951(0x138)]=!!_0x56a9f0,this[_0x127951(0x123)]();}[a141_0x487bf4(0x148)](){const _0xa01c6d=a141_0x487bf4;return this[_0xa01c6d(0x122)];}[a141_0x487bf4(0x141)](_0x324ecf){const _0x1888ac=a141_0x487bf4;this['skipFlakyAndFailed']=!!_0x324ecf,this[_0x1888ac(0x123)]();}[a141_0x487bf4(0x123)](){const _0x1a4ac6=a141_0x487bf4;if(this['runPreviouslyFailedFirst'])this[_0x1a4ac6(0x138)]=![],this['skipFlakyAndFailed']=![],this[_0x1a4ac6(0x136)]['enable'](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x1a4ac6(0x138)])this[_0x1a4ac6(0x127)]=![],this[_0x1a4ac6(0x122)]=![],this[_0x1a4ac6(0x136)][_0x1a4ac6(0x13c)](RERUN_PREVIOUSLY_FAILED);else this[_0x1a4ac6(0x122)]?(this[_0x1a4ac6(0x127)]=![],this[_0x1a4ac6(0x138)]=![],this[_0x1a4ac6(0x136)][_0x1a4ac6(0x13c)](SKIP_FLAKY_AND_FAILED)):this[_0x1a4ac6(0x136)]['disable']();}}[a141_0x487bf4(0x140)](){const _0xd94a15=a141_0x487bf4;return this['testOrdering'][_0xd94a15(0x120)]();}[a141_0x487bf4(0x11a)](){const _0x3c219c=a141_0x487bf4;if(this[_0x3c219c(0x136)][_0x3c219c(0x120)]())return this[_0x3c219c(0x136)][_0x3c219c(0x126)]();return null;}[a141_0x487bf4(0x115)](){const _0xb2b89f=a141_0x487bf4,_0xfc35e2={};return _0xfc35e2[_0xb2b89f(0x13d)]={'enabled':this['getRerunPreviouslyFailed']()},_0xfc35e2['run_previously_failed_first']={'enabled':this[_0xb2b89f(0x111)]()},_0xfc35e2['skip_failing_and_flaky']={'enabled':this[_0xb2b89f(0x148)]()},this[_0xb2b89f(0x113)]()&&(_0xfc35e2[_0xb2b89f(0x11c)]={'enabled':!![],'max_retries':this[_0xb2b89f(0x13b)]()}),this['isAbortBuildOnFailureEnabled']()&&(_0xfc35e2[_0xb2b89f(0x139)]={'enabled':!![],'max_failures':this[_0xb2b89f(0x112)]()}),_0xfc35e2;}}function a141_0x45e6(){const _0x46d322=['8gPUfAH','getSkipFlakyAndFailed','1022623RqIxwf','1020295kyweDd','MGmaF','isAbortBuildOnFailureEnabled','existsSync','getRunPreviouslyFailedFirst','getFailureThreshold','isRetryEnabled','name','getBuildStartData','env','_setRerunPreviouslyFailed','12nHUYWF','BhAex','getTestOrderingName','path','retry_tests_on_failure','../logger','retryTestsOnFailure','exports','getEnabled','isAbortBuildOnFailureSupported','skipFlakyAndFailed','_setTestOrdering','9456462tqyXns','skipFlakyandFailed','getName','runPreviouslyFailedFirst','has','testOrchestrationOptions','_setRunPreviouslyFailedFirst','2839366zQjEIM','abort_build_','_instance','getRerunPreviouslyFailed','getInstance','abortBuildOnFailure','join','checkAbortBuildFileExists','.txt','enabled','467463GltGfb','testOrdering','config','rerunPreviouslyFailed','abort_build_on_failure','failed_tests_','getRetryCount','enable','rerun_previously_failed','jest','winstonLogger','testOrderingEnabled','_setSkipFlakyAndFailed','BROWSERSTACK_TESTHUB_UUID','30idLlOy','tmpdir','3716412rnRJDe','22410580bJqTZh'];a141_0x45e6=function(){return _0x46d322;};return a141_0x45e6();}module[a141_0x487bf4(0x11f)]=OrchestrationUtils;
|