browserstack-node-sdk 1.53.1 → 1.53.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.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_0x2237(){const _0x49ba80=['BGKyT','Hook_Start_Upload','Bearer\x20','./requestQueueHandler','BROWSERSTACK_BUILD_RUN_IDENTIFIER','Hook_End_Upload','Build\x20creation\x20successful!','hook_run','Content-Type',']\x20event\x20successful!','RQoIR','toString','Oedbg','Test_Start_Upload','rRsVw','BS_TESTOPS_BUILD_COMPLETED','HookRunFinished','null','ILlvG','iGzXL','niyjB','BsuvQ','buildDescription','BROWSERSTACK_TESTHUB_UUID','event_type','xKWqI','pendingUploads','message','VmBBb','BROWSERSTACK_TESTHUB_JWT','false','X-BSTACK-TESTOPS','../../bin/utils/constants','DYvoZ','yudNz','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','true','yuxLF','xHTmP','start','kcNok','logs','info','uuid','Authorization','Log_Upload','BS_TESTOPS_JWT','Data\x20upload\x20to\x20BrowserStack\x20','mPZrH','XZaZD','response','\x20REQUEST\x20TO\x20','nestedKeyValue','launch','JkuQI','EXCEPTION\x20IN\x20','max','ALakl','VEhmt','qHDNI','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','test_run_uuid','POST','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','\x20retry\x20runs\x20exceeded','eventUrl','statusText','CBTSessionCreated','ERROR_SDK_DEPRECATED','Batch-Queue','DfOZL','STiVu','path','jwt','EZiBm','username','sendEventData','headers','build_hashed_id','ticLG','DWHFv','TestRunSkipped','stringify','Retry\x20runs\x20exceeded','getAgentVersion','data','UdIKH','grhCt','getGitMetaData','TestRunStarted','xlzxT','browserstackAutomation','password','CggML','ENHli','XVRCf','BS_A11Y_JWT','util','frameworkVersion','HookRunStarted','Test_Skipped_Upload','resolve','1214ZrIZUx','jrVMX','sendTraceZip','wYUDr','dPRuz','qSeiI','error','winstonLogger','MqMOi','gZrQb','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','807qoWsid','TGmob','6157669zANZhc','3433272jXGqOT','ERROR_INVALID_CREDENTIALS','QghNb','requestQueueHandler','allow_screenshots','./utils','WQIIm','inspect','Test_End_Upload','length','MKhdi','WaXhO','BS_TESTOPS_ALLOW_SCREENSHOTS','debug','add','oPSTT','XQstg','Sending\x20trace\x20zip\x20for\x20test:\x20','\x20:\x20missing\x20authentication\x20token','projectName','17973680kekPbZ','api/v1/builds','cAoON','BROWSERSTACK_RERUN','47550cGFeJJ','uploadEventData','txtBz','\x20failed\x20due\x20to\x20','TEST_REPORTING_ANALYTICS','TestRunFinished','710luAEVp','env','getInstance','BS_TESTOPS_BUILD_HASHED_ID','\x20:\x20','PHOsA','DJHpm','getHostInfo','hblNM','getLogTag','LogCreated','1064465YDdfrq','format','PqsyM','uKxPi','status','FnuZd','RdUBh','includes','24CAeaDO','errorType','XKzKX','ITDOz','1559979DyVgdE','hNWSp','getCiInfo','UPaxt'];a136_0x2237=function(){return _0x49ba80;};return a136_0x2237();}function a136_0x4788(_0x532c99,_0x541bf0){const _0x2237d8=a136_0x2237();return a136_0x4788=function(_0x47887a,_0x49da85){_0x47887a=_0x47887a-0x1c1;let _0x435df8=_0x2237d8[_0x47887a];return _0x435df8;},a136_0x4788(_0x532c99,_0x541bf0);}const a136_0x131ad7=a136_0x4788;(function(_0x25d18d,_0x75419c){const _0x6b0f22=a136_0x4788,_0x2047bf=_0x25d18d();while(!![]){try{const _0x3e90e8=-parseInt(_0x6b0f22(0x251))/0x1+-parseInt(_0x6b0f22(0x21a))/0x2*(parseInt(_0x6b0f22(0x225))/0x3)+parseInt(_0x6b0f22(0x228))/0x4+-parseInt(_0x6b0f22(0x246))/0x5*(parseInt(_0x6b0f22(0x240))/0x6)+parseInt(_0x6b0f22(0x227))/0x7+parseInt(_0x6b0f22(0x259))/0x8*(-parseInt(_0x6b0f22(0x25d))/0x9)+parseInt(_0x6b0f22(0x23c))/0xa;if(_0x3e90e8===_0x75419c)break;else _0x2047bf['push'](_0x2047bf['shift']());}catch(_0x15e889){_0x2047bf['push'](_0x2047bf['shift']());}}}(a136_0x2237,0xa1af6));const bsSetupHelper=require('../helper'),path=require(a136_0x131ad7(0x1fc)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a136_0x131ad7(0x22d)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a136_0x131ad7(0x264)),logger=require('../logger')[a136_0x131ad7(0x221)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require('../../helpers/testhub/utils'),util=require(a136_0x131ad7(0x215)),constants=require(a136_0x131ad7(0x1d3));class SessionHandler{static [a136_0x131ad7(0x22b)]=RequestQueueHandler[a136_0x131ad7(0x248)]();static async[a136_0x131ad7(0x1e9)](_0x2cccba,_0x5cddde){const _0xe8effb=a136_0x131ad7,_0x2cef04={'XZaZD':function(_0x5c40ab,_0x5ddfaf){return _0x5c40ab||_0x5ddfaf;},'TAavH':function(_0x26974c,_0x576488){return _0x26974c===_0x576488;},'DfOZL':function(_0x527086,_0x5ab535){return _0x527086(_0x5ab535);},'DJHpm':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','MKhdi':_0xe8effb(0x1d1),'uHIyY':'json','BsuvQ':function(_0x5195d0,_0x428de0){return _0x5195d0(_0x428de0);},'cAoON':function(_0x15c8e6,_0xd91010){return _0x15c8e6(_0xd91010);},'XVRCf':function(_0x135a7a,_0x59d4ca,_0x41e97d,_0x4893ec,_0x21fca2){return _0x135a7a(_0x59d4ca,_0x41e97d,_0x4893ec,_0x21fca2);},'DYvoZ':_0xe8effb(0x1f2),'WaXhO':_0xe8effb(0x23d),'WQIIm':function(_0x34d21a,_0x19b16c){return _0x34d21a(_0x19b16c);},'TGmob':_0xe8effb(0x267),'sayOO':function(_0x39d196){return _0x39d196();},'uKxPi':_0xe8effb(0x1d8),'ALakl':_0xe8effb(0x1c4),'kcNok':function(_0x2a5fa6,_0x4cc1aa){return _0x2a5fa6(_0x4cc1aa);},'xKWqI':_0xe8effb(0x229),'BGKyT':'ERROR_ACCESS_DENIED','cytsZ':_0xe8effb(0x1f8)};logger[_0xe8effb(0x1de)](_0xe8effb(0x1d6)+util[_0xe8effb(0x22f)](_0x2cccba));const _0x242dd0=bsSetupHelper['getUserName'](_0x2cccba),_0x23368d=bsSetupHelper['getAccessKey'](_0x2cccba),_0x1f1e6c=_0x2cef04['XZaZD'](_0x242dd0,'')+':'+_0x2cef04[_0xe8effb(0x1e5)](_0x23368d,'');if(_0x2cef04['TAavH'](_0x1f1e6c,':'))return _0x2cef04[_0xe8effb(0x1fa)](debug,_0x2cef04[_0xe8effb(0x24c)]),process[_0xe8effb(0x247)]['BS_TESTOPS_BUILD_COMPLETED']=_0x2cef04['MKhdi'],[null,null];let _0x53132c=![],_0x520974=![];if(_0x2cccba[_0xe8effb(0x20f)]&&_0x2cccba['app'])_0x520974=!![];else _0x2cccba[_0xe8effb(0x20f)]&&(_0x53132c=!![]);try{const _0x2a3477={'format':_0x2cef04['uHIyY'],'project_name':_0x2cccba[_0xe8effb(0x23b)]||'','name':_0x2cccba['buildName']||path['basename'](path[_0xe8effb(0x219)](process['cwd']())),'build_identifier':_0x2cccba['buildIdentifier'],'description':_0x2cccba[_0xe8effb(0x1c9)]||'','start_time':new Date()['toISOString'](),'tags':_0x2cef04[_0xe8effb(0x1c8)](getCustomTags,_0x2cccba),'host_info':bsSetupHelper[_0xe8effb(0x24d)](),'ci_info':bsSetupHelper[_0xe8effb(0x25f)](),'build_run_identifier':process['env'][_0xe8effb(0x265)],'failed_tests_rerun':process[_0xe8effb(0x247)][_0xe8effb(0x23f)]||![],'version_control':await bsSetupHelper[_0xe8effb(0x20c)](),'observability_version':{'frameworkName':_0x5cddde['frameworkName'],'frameworkVersion':_0x5cddde[_0xe8effb(0x216)],'sdkVersion':bsSetupHelper[_0xe8effb(0x208)]()},'product_map':_0x2cef04[_0xe8effb(0x1c8)](getProductMap,_0x2cccba),'test_orchestration':_0x2cef04[_0xe8effb(0x23e)](getTestOrchestrationBuildStartData,_0x2cccba)},_0x3b30c2={};_0x3b30c2[_0xe8effb(0x1ff)]=_0x242dd0,_0x3b30c2[_0xe8effb(0x210)]=_0x23368d;const _0x3d276e={'auth':_0x3b30c2,'headers':_0x2cef04[_0xe8effb(0x1c8)](getDefaultHeaders,![])},_0x50d648=await _0x2cef04[_0xe8effb(0x213)](nodeRequest,_0x2cef04[_0xe8effb(0x1d4)],_0x2cef04[_0xe8effb(0x233)],_0x2a3477,_0x3d276e);_0x2cef04[_0xe8effb(0x22e)](debug,_0x2cef04[_0xe8effb(0x226)]);const _0x3f9c86=_0x50d648[_0xe8effb(0x209)];_0x3f9c86[_0xe8effb(0x202)]&&(process[_0xe8effb(0x247)][_0xe8effb(0x1ca)]=_0x3f9c86['build_hashed_id']);if(_0x2cef04['sayOO'](isTestObservabilitySession)){process[_0xe8effb(0x247)]['BS_TESTOPS_BUILD_COMPLETED']=_0x2cef04[_0xe8effb(0x254)];if(_0x3f9c86[_0xe8effb(0x1fd)]){process['env'][_0xe8effb(0x1e2)]=_0x3f9c86['jwt'];const _0x13b4c5={};_0x13b4c5[_0xe8effb(0x1ff)]=_0x242dd0,_0x13b4c5['password']=_0x23368d,process['env']['CREDENTIALS_FOR_CRASH_REPORTING']=JSON['stringify'](_0x13b4c5);}_0x3f9c86['build_hashed_id']&&(process[_0xe8effb(0x247)][_0xe8effb(0x249)]=_0x3f9c86['build_hashed_id']),_0x3f9c86[_0xe8effb(0x22c)]&&(process[_0xe8effb(0x247)][_0xe8effb(0x234)]=_0x3f9c86[_0xe8effb(0x22c)][_0xe8effb(0x26c)]());}return[_0x50d648[_0xe8effb(0x209)][_0xe8effb(0x1fd)],_0x50d648[_0xe8effb(0x209)][_0xe8effb(0x202)],_0x50d648[_0xe8effb(0x209)][_0xe8effb(0x22c)]];}catch(_0x136488){process[_0xe8effb(0x247)][_0xe8effb(0x1ca)]=_0x2cef04[_0xe8effb(0x1ed)],process['env'][_0xe8effb(0x1c2)]=_0x2cef04[_0xe8effb(0x232)],process[_0xe8effb(0x247)][_0xe8effb(0x1e2)]=_0x2cef04[_0xe8effb(0x1ed)],process['env'][_0xe8effb(0x249)]=_0x2cef04['ALakl'],process['env'][_0xe8effb(0x234)]=_0x2cef04[_0xe8effb(0x1ed)];_0x136488[_0xe8effb(0x1e6)]?_0x2cef04[_0xe8effb(0x1dc)](debug,_0xe8effb(0x224)+_0x136488[_0xe8effb(0x1e6)][_0xe8effb(0x255)]+'\x20'+_0x136488['response'][_0xe8effb(0x1f6)]+'\x20'+JSON[_0xe8effb(0x206)](_0x136488[_0xe8effb(0x1e6)]['data'])):_0x2cef04[_0xe8effb(0x22e)](debug,_0xe8effb(0x224)+(_0x136488[_0xe8effb(0x1ce)]||_0x136488));if(_0x136488&&_0x136488[_0xe8effb(0x1ce)]){const _0x1acb75=_0x136488['message'];switch(_0x136488[_0xe8effb(0x25a)]){case _0x2cef04[_0xe8effb(0x1cc)]:logger['error'](_0x1acb75);break;case _0x2cef04[_0xe8effb(0x261)]:logger[_0xe8effb(0x1de)](_0x1acb75);break;case _0x2cef04['cytsZ']:logger[_0xe8effb(0x220)](_0x1acb75);break;default:logger[_0xe8effb(0x220)](_0x1acb75);}}else console[_0xe8effb(0x1de)](_0xe8effb(0x1e3)+constants['TEST_REPORTING_ANALYTICS']+_0xe8effb(0x243)+_0x136488);return[null,null,null];}}static async['waitForBuildStatus'](){const _0x2ab7aa=a136_0x131ad7,_0x5bf366={'yuxLF':_0x2ab7aa(0x1d8),'rRsVw':_0x2ab7aa(0x1d1),'RoFkg':function(_0x420de3,_0x49fc28){return _0x420de3(_0x49fc28);}},_0x1b40bb=process[_0x2ab7aa(0x247)][_0x2ab7aa(0x1c2)];if([_0x5bf366[_0x2ab7aa(0x1d9)],_0x5bf366[_0x2ab7aa(0x1c1)]][_0x2ab7aa(0x258)](_0x1b40bb))return;while([_0x5bf366[_0x2ab7aa(0x1d9)],_0x5bf366[_0x2ab7aa(0x1c1)]]['includes'](_0x1b40bb)){await _0x5bf366['RoFkg'](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a136_0x131ad7(0x24f)](_0x5602cd){const _0x489569=a136_0x131ad7,_0x7280cd={};_0x7280cd[_0x489569(0x203)]=_0x489569(0x26e),_0x7280cd['qHDNI']=_0x489569(0x230),_0x7280cd[_0x489569(0x21b)]=_0x489569(0x218),_0x7280cd[_0x489569(0x211)]=_0x489569(0x1e1),_0x7280cd['tigjL']=_0x489569(0x262),_0x7280cd['kdtKo']=_0x489569(0x266),_0x7280cd[_0x489569(0x242)]='CBT_Upload';const _0x1697e6=_0x7280cd,_0x556afc={};return _0x556afc[_0x489569(0x20d)]=_0x1697e6['ticLG'],_0x556afc[_0x489569(0x245)]=_0x1697e6[_0x489569(0x1ef)],_0x556afc[_0x489569(0x205)]=_0x1697e6[_0x489569(0x21b)],_0x556afc[_0x489569(0x250)]=_0x1697e6[_0x489569(0x211)],_0x556afc[_0x489569(0x217)]=_0x1697e6['tigjL'],_0x556afc[_0x489569(0x1c3)]=_0x1697e6['kdtKo'],_0x556afc[_0x489569(0x1f7)]=_0x1697e6['txtBz'],_0x556afc[_0x5602cd[_0x489569(0x1cb)]];}static async[a136_0x131ad7(0x200)](_0x4b4f58,_0x44c53a=0x0,_0x2455a1=null){const _0x51feb1=a136_0x131ad7,_0x14abc3={'STiVu':function(_0x16ca09,_0xc8fc9d){return _0x16ca09===_0xc8fc9d;},'DWHFv':_0x51feb1(0x21c),'QghNb':function(_0x1ae53a,_0x22d5a4){return _0x1ae53a!==_0x22d5a4;},'ITDOz':'application/json','UPaxt':_0x51feb1(0x1d8),'wYUDr':function(_0x22c458,_0x2e8003){return _0x22c458===_0x2e8003;},'hNWSp':function(_0xf4aa6e,_0xb148d9,_0x21f4ae,_0x50984c,_0x42efa5){return _0xf4aa6e(_0xb148d9,_0x21f4ae,_0x50984c,_0x42efa5);},'iGzXL':_0x51feb1(0x1f2),'fdzjU':function(_0x52c381,_0x170040,_0x585970,_0x56e8da,_0x5152f9){return _0x52c381(_0x170040,_0x585970,_0x56e8da,_0x5152f9);},'MqMOi':function(_0x4d8fb1,_0x5b9267){return _0x4d8fb1(_0x5b9267);},'amSHb':function(_0x1037a9,_0x494285){return _0x1037a9!==_0x494285;},'XQstg':_0x51feb1(0x1f9),'Oedbg':function(_0x300791,_0x305d15){return _0x300791-_0x305d15;},'gZrQb':'api/v1/event','RdUBh':'success','ILlvG':function(_0x556e31,_0x1bc065){return _0x556e31!==_0x1bc065;},'VmBBb':function(_0x4f6981,_0x192d1a){return _0x4f6981-_0x192d1a;},'grhCt':_0x51feb1(0x220)};_0x14abc3['STiVu'](_0x2455a1,_0x14abc3[_0x51feb1(0x204)])&&logger['debug'](_0x51feb1(0x239)+_0x4b4f58[_0x51feb1(0x1dd)][0x0]['test_run_uuid']);const _0x5e83e0=await this[_0x51feb1(0x24f)](_0x4b4f58);let _0x202f50=_0x4b4f58,_0x5e3218=EVENT_ENDPOINT;_0x14abc3[_0x51feb1(0x22a)](_0x2455a1,_0x14abc3[_0x51feb1(0x204)])&&this[_0x51feb1(0x22b)][_0x51feb1(0x1db)]();const {shouldProceed:_0x4f1cc5,proceedWithData:_0x59d0f1,proceedWithUrl:_0x586a9c}=this[_0x51feb1(0x22b)][_0x51feb1(0x236)](_0x4b4f58);if(!_0x4f1cc5)return;else _0x59d0f1&&(_0x202f50=_0x59d0f1,_0x5e3218=_0x586a9c);const _0x5489ae={};_0x5489ae[_0x51feb1(0x1e0)]=_0x51feb1(0x263)+process[_0x51feb1(0x247)][_0x51feb1(0x1d0)],_0x5489ae[_0x51feb1(0x269)]=_0x14abc3[_0x51feb1(0x25c)],_0x5489ae[_0x51feb1(0x1d2)]=_0x14abc3[_0x51feb1(0x260)];const _0x268420={};_0x268420[_0x51feb1(0x201)]=_0x5489ae;const _0x13d6a4=_0x268420;let _0xe0cde4;try{_0x14abc3[_0x51feb1(0x21d)](_0x2455a1,_0x14abc3['DWHFv'])?(logger['debug'](_0x51feb1(0x1d7)+_0x4b4f58?.[_0x51feb1(0x1dd)][0x0]?.['test_run_uuid']),_0xe0cde4=await _0x14abc3[_0x51feb1(0x25e)](asyncAwaitNodeReq,_0x14abc3['iGzXL'],_0x5e3218,_0x202f50,_0x13d6a4),logger[_0x51feb1(0x235)](_0x51feb1(0x1f3)+_0x4b4f58?.[_0x51feb1(0x1dd)][0x0]?.[_0x51feb1(0x1f1)])):_0xe0cde4=await _0x14abc3['fdzjU'](nodeRequest,_0x14abc3[_0x51feb1(0x1c6)],_0x5e3218,_0x202f50,_0x13d6a4);if(_0xe0cde4[_0x51feb1(0x209)]['error']){const _0x10dca3={};_0x10dca3[_0x51feb1(0x1ce)]=_0xe0cde4[_0x51feb1(0x209)]['error'];throw _0x10dca3;}else{_0x14abc3['MqMOi'](debug,(_0x14abc3['amSHb'](_0x5e3218,this[_0x51feb1(0x22b)][_0x51feb1(0x1f5)])?_0x5e83e0:_0x14abc3[_0x51feb1(0x238)])+'['+_0x44c53a+_0x51feb1(0x26a)),this[_0x51feb1(0x22b)][_0x51feb1(0x1cd)]=Math[_0x51feb1(0x1ec)](0x0,_0x14abc3[_0x51feb1(0x26d)](this['requestQueueHandler']['pendingUploads'],_0x14abc3[_0x51feb1(0x1fb)](_0x5e3218,_0x14abc3[_0x51feb1(0x223)])?0x1:_0x202f50['length']));const _0x24908b={};return _0x24908b['status']=_0x14abc3[_0x51feb1(0x257)],_0x24908b[_0x51feb1(0x1ce)]='',_0x24908b;}}catch(_0x1fda34){_0x1fda34[_0x51feb1(0x1e6)]?_0x14abc3['MqMOi'](debug,_0x51feb1(0x1eb)+(_0x14abc3[_0x51feb1(0x1c5)](_0x5e3218,this['requestQueueHandler'][_0x51feb1(0x1f5)])?_0x5e83e0:_0x14abc3[_0x51feb1(0x238)])+'\x20REQUEST\x20TO\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x51feb1(0x24a)+_0x1fda34[_0x51feb1(0x1e6)][_0x51feb1(0x255)]+'\x20'+_0x1fda34[_0x51feb1(0x1e6)][_0x51feb1(0x1f6)]+'\x20'+util[_0x51feb1(0x252)](_0x1fda34[_0x51feb1(0x1e6)][_0x51feb1(0x209)])):_0x14abc3[_0x51feb1(0x222)](debug,_0x51feb1(0x1eb)+(_0x14abc3['amSHb'](_0x5e3218,this[_0x51feb1(0x22b)][_0x51feb1(0x1f5)])?_0x5e83e0:_0x14abc3[_0x51feb1(0x238)])+_0x51feb1(0x1e7)+constants[_0x51feb1(0x244)]+_0x51feb1(0x24a)+util['format'](_0x1fda34));this[_0x51feb1(0x22b)][_0x51feb1(0x1cd)]=Math[_0x51feb1(0x1ec)](0x0,_0x14abc3[_0x51feb1(0x1cf)](this['requestQueueHandler'][_0x51feb1(0x1cd)],_0x14abc3[_0x51feb1(0x1fb)](_0x5e3218,_0x14abc3[_0x51feb1(0x223)])?0x1:_0x202f50[_0x51feb1(0x231)]));const _0x4074e0={};return _0x4074e0['status']=_0x14abc3[_0x51feb1(0x20b)],_0x4074e0['message']=_0x1fda34[_0x51feb1(0x1ce)]||(_0x1fda34[_0x51feb1(0x1e6)]?_0x1fda34[_0x51feb1(0x1e6)][_0x51feb1(0x255)]+':'+_0x1fda34[_0x51feb1(0x1e6)][_0x51feb1(0x1f6)]:_0x1fda34),_0x4074e0;}}static async[a136_0x131ad7(0x241)](_0x285ede,_0x2809a0=0x0){const _0x12d1b7=a136_0x131ad7,_0x105a7e={'ENHli':function(_0x2ea712,_0x3dadde){return _0x2ea712+_0x3dadde;},'PHOsA':function(_0x10d4d2,_0x47ad1e){return _0x10d4d2(_0x47ad1e);},'hglZk':'test_run','xlzxT':_0x12d1b7(0x1df),'XKzKX':_0x12d1b7(0x268),'yudNz':function(_0x3ccfb9,_0x486729,_0x64e422){return _0x3ccfb9(_0x486729,_0x64e422);},'QTLax':_0x12d1b7(0x241),'hblNM':function(_0x22ae2d,_0x4cc18f){return _0x22ae2d===_0x4cc18f;},'dPRuz':function(_0x1ea4c3,_0x4ac123){return _0x1ea4c3!==_0x4ac123;},'FnuZd':_0x12d1b7(0x1c4),'oPSTT':function(_0x4b65e2,_0x1e2f36){return _0x4b65e2===_0x1e2f36;},'EZiBm':_0x12d1b7(0x1d8),'PqsyM':function(_0x248deb){return _0x248deb();},'VoPVi':function(_0x32651f,_0x1e9a75){return _0x32651f===_0x1e9a75;},'UdIKH':function(_0xab212d,_0x14456a){return _0xab212d-_0x14456a;},'zwoKi':_0x12d1b7(0x220),'niyjB':_0x12d1b7(0x1f0),'JkuQI':function(_0xa99548,_0x31e2f1){return _0xa99548>=_0x31e2f1;},'xHTmP':function(_0x41f1d4,_0x2bb6d1){return _0x41f1d4(_0x2bb6d1);},'VEhmt':function(_0x11988d,_0x33a1c1){return _0x11988d!==_0x33a1c1;},'qSeiI':_0x12d1b7(0x207),'WlEwu':function(_0x3fca99,_0x160d17){return _0x3fca99!==_0x160d17;},'RQoIR':_0x12d1b7(0x1d1),'mPZrH':function(_0x52f652,_0x5d7da2,_0x47fd11){return _0x52f652(_0x5d7da2,_0x47fd11);}},_0x56a288=this[_0x12d1b7(0x24f)](_0x285ede);_0x105a7e[_0x12d1b7(0x24b)](trace,'Processing\x20event\x20-\x20\x27'+_0x285ede['event_type']+'\x27\x20'+(bsSetupHelper[_0x12d1b7(0x1e8)](_0x285ede,[_0x105a7e['hglZk'],_0x105a7e[_0x12d1b7(0x20e)]])||bsSetupHelper[_0x12d1b7(0x1e8)](_0x285ede,[_0x105a7e[_0x12d1b7(0x25b)],_0x105a7e[_0x12d1b7(0x20e)]])));if(!_0x105a7e[_0x12d1b7(0x1d5)](shouldProcessEventForTesthub,_0x285ede[_0x12d1b7(0x1cb)],_0x105a7e['QTLax']))return;_0x105a7e[_0x12d1b7(0x24e)](_0x2809a0,0x0)&&process[_0x12d1b7(0x247)][_0x12d1b7(0x1d0)]&&_0x105a7e[_0x12d1b7(0x21e)](process[_0x12d1b7(0x247)][_0x12d1b7(0x1d0)],_0x105a7e[_0x12d1b7(0x256)])&&(this[_0x12d1b7(0x22b)][_0x12d1b7(0x1cd)]+=0x1);if(_0x105a7e[_0x12d1b7(0x237)](process['env'][_0x12d1b7(0x1c2)],_0x105a7e[_0x12d1b7(0x1fe)])||process[_0x12d1b7(0x247)][_0x12d1b7(0x214)]||_0x105a7e[_0x12d1b7(0x253)](isPercyBuild)){if(_0x105a7e['VoPVi'](process[_0x12d1b7(0x247)]['BROWSERSTACK_TESTHUB_JWT'],_0x105a7e[_0x12d1b7(0x256)])){_0x105a7e[_0x12d1b7(0x24b)](debug,'EXCEPTION\x20IN\x20'+_0x56a288+_0x12d1b7(0x1e7)+constants[_0x12d1b7(0x244)]+_0x12d1b7(0x23a)),this[_0x12d1b7(0x22b)][_0x12d1b7(0x1cd)]=Math[_0x12d1b7(0x1ec)](0x0,_0x105a7e[_0x12d1b7(0x20a)](this[_0x12d1b7(0x22b)][_0x12d1b7(0x1cd)],0x1));const _0x2dd8de={};return _0x2dd8de['status']=_0x105a7e['zwoKi'],_0x2dd8de[_0x12d1b7(0x1ce)]=_0x105a7e[_0x12d1b7(0x1c7)],_0x2dd8de;}return await this[_0x12d1b7(0x200)](_0x285ede,_0x2809a0);}else{if(_0x105a7e[_0x12d1b7(0x1ea)](_0x2809a0,0x5)){_0x105a7e[_0x12d1b7(0x1da)](debug,'EXCEPTION\x20IN\x20'+_0x56a288+'\x20REQUEST\x20TO\x20'+constants['TEST_REPORTING_ANALYTICS']+'\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20'+_0x56a288+_0x12d1b7(0x1f4));_0x105a7e[_0x12d1b7(0x1ee)](process[_0x12d1b7(0x247)]['BROWSERSTACK_TESTHUB_JWT'],_0x105a7e[_0x12d1b7(0x256)])&&(this[_0x12d1b7(0x22b)][_0x12d1b7(0x1cd)]=Math['max'](0x0,_0x105a7e[_0x12d1b7(0x20a)](this['requestQueueHandler']['pendingUploads'],0x1)));const _0x36187b={};return _0x36187b[_0x12d1b7(0x255)]=_0x105a7e['zwoKi'],_0x36187b[_0x12d1b7(0x1ce)]=_0x105a7e[_0x12d1b7(0x21f)],_0x36187b;}else _0x105a7e['WlEwu'](process[_0x12d1b7(0x247)][_0x12d1b7(0x1c2)],_0x105a7e[_0x12d1b7(0x26b)])&&_0x105a7e[_0x12d1b7(0x1e4)](setTimeout,()=>{const _0x504e73=_0x12d1b7;this['uploadEventData'](_0x285ede,_0x105a7e[_0x504e73(0x212)](_0x2809a0,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_0x3050f0=a137_0x3309;(function(_0x38abed,_0x401981){const _0x32e8a0=a137_0x3309,_0x1c8c9e=_0x38abed();while(!![]){try{const _0x53920d=-parseInt(_0x32e8a0(0x110))/0x1+parseInt(_0x32e8a0(0x19c))/0x2*(-parseInt(_0x32e8a0(0xc9))/0x3)+-parseInt(_0x32e8a0(0x151))/0x4*(parseInt(_0x32e8a0(0xa4))/0x5)+-parseInt(_0x32e8a0(0x135))/0x6*(parseInt(_0x32e8a0(0xa3))/0x7)+-parseInt(_0x32e8a0(0xc1))/0x8+-parseInt(_0x32e8a0(0xe2))/0x9*(-parseInt(_0x32e8a0(0xd0))/0xa)+parseInt(_0x32e8a0(0x12a))/0xb*(parseInt(_0x32e8a0(0xe6))/0xc);if(_0x53920d===_0x401981)break;else _0x1c8c9e['push'](_0x1c8c9e['shift']());}catch(_0x46b16d){_0x1c8c9e['push'](_0x1c8c9e['shift']());}}}(a137_0x4ea1,0x55855));const fs=require('fs'),path=require(a137_0x3050f0(0xf8)),gitLastCommit=require(a137_0x3050f0(0xd6)),getRepoInfo=require(a137_0x3050f0(0x7c)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a137_0x3050f0(0x13b)),http=require(a137_0x3050f0(0x167)),https=require(a137_0x3050f0(0xfc)),child_process=require(a137_0x3050f0(0x114)),getos=require(a137_0x3050f0(0x99)),os=require('os'),logger=require(a137_0x3050f0(0xec))[a137_0x3050f0(0x10d)],buildLogger=require(a137_0x3050f0(0xec))[a137_0x3050f0(0x107)],bsSetupHelper=require(a137_0x3050f0(0xaa)),requestSpy=require(a137_0x3050f0(0xc7)),constants=require(a137_0x3050f0(0xf0)),logPatcher=require(a137_0x3050f0(0x16b)),util=require(a137_0x3050f0(0x11b)),{fileLogger}=require(a137_0x3050f0(0xec)),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a137_0x3050f0(0x137)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a137_0x3050f0(0x153)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a137_0x3050f0(0xee));exports[a137_0x3050f0(0x197)]=_0x52e163=>{const _0x17396f=a137_0x3050f0;fileLogger[_0x17396f(0xb3)]('['+new Date()['toISOString']()+_0x17396f(0x7e)+constants[_0x17396f(0xff)]+'\x20]\x20'+_0x52e163);},exports[a137_0x3050f0(0x73)]=_0x599919=>{const _0x77a2a8=a137_0x3050f0,_0x103145={};_0x103145[_0x77a2a8(0xf4)]=function(_0x58c6fe,_0x2fc39e){return _0x58c6fe===_0x2fc39e;},_0x103145['diQVp']=_0x77a2a8(0x19e),_0x103145[_0x77a2a8(0x191)]=function(_0xcf7d7a,_0x258881){return _0xcf7d7a===_0x258881;},_0x103145[_0x77a2a8(0xc4)]=function(_0x376b9a,_0xaf82c4){return _0x376b9a===_0xaf82c4;};const _0x5f021b=_0x103145;fileLogger[_0x77a2a8(0x73)]('['+new Date()['toISOString']()+'][\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x77a2a8(0x15e)+_0x599919),(_0x5f021b[_0x77a2a8(0xf4)](process[_0x77a2a8(0xbb)]['BROWSERSTACK_TEST_REPORTING_DEBUG'],_0x5f021b[_0x77a2a8(0xd4)])||_0x5f021b[_0x77a2a8(0xf4)](process['env'][_0x77a2a8(0x160)],'1')||_0x5f021b[_0x77a2a8(0x191)](process['env'][_0x77a2a8(0xb5)],_0x5f021b['diQVp'])||_0x5f021b[_0x77a2a8(0xc4)](process['env'][_0x77a2a8(0xb5)],'1'))&&consoleHolder[_0x77a2a8(0xac)]('\x0a['+new Date()['toISOString']()+'][\x20'+constants['TEST_REPORTING_ANALYTICS']+'\x20]\x20'+_0x599919+'\x0a');};function a137_0x4ea1(){const _0x4c8a0a=['../helper','iRQKv','log','getFailureType','oHYQj','toString','getBrowserVersion','formData','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','silly','TimeoutError','BROWSERSTACK_OBSERVABILITY_DEBUG','DPbGn','BROWSERSTACK_PRODUCT_MAP','Content-Type','FOCeZ','headers','env','TEST_PLATFORM','split','SDEnD','parseFileNames','maxTotalSockets','626856GmAmoP','UyQDx','modifyReqForTraceUpload','OCqFs','isInternalHook','hAlhV','../../helpers/request-spy','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','3297osFEQl','bs:addPlatformDetails:','Agent','O11yHashedID','host','execSync','YQrFa','130OLgtez','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','UZcVS','getSession','diQVp','stack','git-last-commit','PCsGK','xpTFb','toJSON','GhCox','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','yhHzX','xcdXx','removeAnsiColors','ICsDy','yUvjq','/builds/','162306ylclDN','nZrhj','turboScaleGridDetails','Test\x20timeout\x20of','12VTRWcZ','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','LxJQq','Error\x20in\x20importing\x20windows-release\x20','dist','OS\x20X','../logger','pCifL','../../../src/bin/utils/constants','ZFzUQ','../../bin/utils/constants','X-BSTACK-TESTOPS','app_automate','rootDir','THRCu','PeSol','bs:addLog:','spy','path','failureData','app-automate','ZeBbx','https','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','default','TEST_REPORTING_ANALYTICS','mWkjQ','printBuildLink','relativeTestFilePath','nqDSq','xpXFt','capabilities','fcYjM','buildLogger','win32','hostname','tsmJo','BROWSERSTACK_RERUN_TESTS','Uploading\x20trace\x20logs\x20to:\x20','winstonLogger','uGSdR','Upxoc','573421fAKVFZ','browserstack','blePN','PathHelper','child_process','TEST_OBSERVABILITY_BUILD_TAG','getSyncScript','\x20to\x20view\x20accessibility\x20report.\x0a','nsRRR','ozdLy','object','util','svQum','join','PRINT_BUILDLINK','map','BNjjo','UObXj','uiNiN','UxQII','patchConsoleLogger','getUserName','buildTag','auunj','HUB_URL_REGEX','info','18249077cSzZLi','qFkrH','@cucumber/cucumber','linux','getPackageVersion','wNOeY','iEGNu','measureWrapper','cnxif','SLEqB','agent','1098XZwyGM','getBuildTags','lodash','shouldReRunObservabilityTests','VJfNH','trim','./constants','ATS_HUB_URL_REGEX','TZlTG','body','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','Unknown','BAJIT','data','pHBSc','then','err','url','nodeRequest','ObservabilitySync:','SzBhl','wrdqK','backtrace','Visit\x20','UnhandledError','EFycf','HQMmI','push','3752UtmMKL','emit','../performance/constants','maxSockets','wdmLt','config','MOCHA','sleep','length','BROWSERSTACK_CONFIG_FILE_PATH','LMUdo','PUPPETEER','getDefaultHeaders','\x20]\x20','HTTP','BROWSERSTACK_TEST_REPORTING_DEBUG','prefix','prefixTestPath','match','mkImL','toISOString','FJnZA','http','iznLm','Linux','extractValuesWithRegexKeyMatch','../../bin/utils/logPatcher','platformVersion','isTestObservabilitySession','GLMsU','AssertionError','CODECEPT_CUCUMBER','turboscale','KRsPY','customTag','ysHBO','parse','asyncAwaitNodeReq','A11yEnabled','DrJOT','relative','__cloud_provider___','expanded','BROWSERSTACK_TEST_REPORTING','getCustomTags','unknown_grid','[%s][\x20Accessibility\x20]\x20Error\x20printing\x20accessibility\x20build\x20link\x20%s','readConfig','zYUjO','BROWSERSTACK_TEST_OBSERVABILITY','aLWfy','yDCUN','jest','printA11yBuildLink','boAti','wmfHW','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','HjmpK','local_grid','nKpxY','XhhAo','getAccessKey','forEach','getObservabilityLinkedProductName','YtaiH','json','OuixS','timeout','logs','BROWSERSTACK_TEST_OBSERVABILITY_YML','trace','LogCreated','keys','Error\x20in\x20getting\x20Linux\x20Details','BS_TESTOPS_BUILD_HASHED_ID','1214UPIbiH','format','true','xOzuR','lhATW','getPlatformDetails','stringify','YgeHk','platform','yXwYM','isArray','OEkCs','test','pvgLm','release','debug','application/json','sPhmS','\x20:\x20','DsjTc','nmZZs','cwd','zctEW','null','git-repo-info','sendPlatformDetails','][\x20','Windows','platformName','https://accessibility.browserstack.com/automated-tests/projects/p/builds/b/1?thBuildId=','VuYYa','CODECEPT','RzQni','wMERb','zwExb','isUndefined','appium:app','BROWSERSTACK_TESTHUB_JWT','bPkGz','fileName','startsWith','map_','LtgQg','darwin','getCapabilities','fkmCa','message','addRequestSpy','XMCZw','error','app','getPlatform','jdzmf','getos','FCpIp','NmcIh','LSqeh','pid','windows-release','includes','IYDeZ','BROWSERSTACK_ACCESSIBILITY','PLAYWRIGHT','3269EedTmv','740iXRBjn','getBrowserStackConfig','tPAJL','hJcrb','fromEntries','keepAlive'];a137_0x4ea1=function(){return _0x4c8a0a;};return a137_0x4ea1();}const a137_0xe9cfb3={};a137_0xe9cfb3[a137_0x3050f0(0xa9)]=!![],a137_0xe9cfb3['timeout']=0xea60,a137_0xe9cfb3['maxSockets']=0x2,a137_0xe9cfb3[a137_0x3050f0(0xc0)]=0x2;const httpKeepAliveAgent=new http['Agent'](a137_0xe9cfb3),a137_0x36d1c4={};a137_0x36d1c4[a137_0x3050f0(0xa9)]=!![],a137_0x36d1c4['timeout']=0xea60,a137_0x36d1c4[a137_0x3050f0(0x154)]=0x2,a137_0x36d1c4[a137_0x3050f0(0xc0)]=0x2;const httpsKeepAliveAgent=new https[(a137_0x3050f0(0xcb))](a137_0x36d1c4),a137_0x1728cf={};function a137_0x3309(_0x1e6cd0,_0x6f8763){const _0x4ea12a=a137_0x4ea1();return a137_0x3309=function(_0x330950,_0x48c9ce){_0x330950=_0x330950-0x71;let _0x3a629b=_0x4ea12a[_0x330950];return _0x3a629b;},a137_0x3309(_0x1e6cd0,_0x6f8763);}a137_0x1728cf[a137_0x3050f0(0xa9)]=!![],a137_0x1728cf[a137_0x3050f0(0x194)]=0xea60,a137_0x1728cf[a137_0x3050f0(0x154)]=0x2,a137_0x1728cf[a137_0x3050f0(0xc0)]=0x2;const httpScreenshotsKeepAliveAgent=new http['Agent'](a137_0x1728cf),a137_0x3fd142={};a137_0x3fd142[a137_0x3050f0(0xa9)]=!![],a137_0x3fd142[a137_0x3050f0(0x194)]=0xea60,a137_0x3fd142[a137_0x3050f0(0x154)]=0x2,a137_0x3fd142[a137_0x3050f0(0xc0)]=0x2;const httpsScreenshotsKeepAliveAgent=new https['Agent'](a137_0x3fd142);exports[a137_0x3050f0(0x138)]=()=>{const _0x2ab6a0=a137_0x3050f0,_0x2f5ee6={};_0x2f5ee6['jdzmf']=function(_0x39ba88,_0x2d598b){return _0x39ba88!==_0x2d598b;},_0x2f5ee6[_0x2ab6a0(0xdf)]=_0x2ab6a0(0x7b);const _0x3a02a9=_0x2f5ee6;return process[_0x2ab6a0(0xbb)]['BROWSERSTACK_RERUN_TESTS']&&_0x3a02a9[_0x2ab6a0(0x98)](process[_0x2ab6a0(0xbb)][_0x2ab6a0(0x10b)],_0x3a02a9[_0x2ab6a0(0xdf)])?!![]:![];},exports[a137_0x3050f0(0x16d)]=()=>{const _0x11145f=a137_0x3050f0,_0x5db779={};_0x5db779[_0x11145f(0x172)]=function(_0x26bed1,_0x437425){return _0x26bed1===_0x437425;},_0x5db779[_0x11145f(0x84)]='true',_0x5db779[_0x11145f(0x127)]=function(_0x29eb25,_0x13ff12){return _0x29eb25===_0x13ff12;};const _0x5d3b90=_0x5db779;let _0x5f245=!![];return process[_0x11145f(0xbb)]['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x5f245=_0x5d3b90[_0x11145f(0x172)](process[_0x11145f(0xbb)][_0x11145f(0x196)],_0x5d3b90[_0x11145f(0x84)])),process[_0x11145f(0xbb)][_0x11145f(0x182)]&&(_0x5f245=_0x5d3b90[_0x11145f(0x172)](process['env'][_0x11145f(0x182)],_0x5d3b90[_0x11145f(0x84)])),process['env'][_0x11145f(0x17c)]&&(_0x5f245=_0x5d3b90[_0x11145f(0x127)](process['env'][_0x11145f(0x17c)],_0x5d3b90[_0x11145f(0x84)])),_0x5f245;},exports[a137_0x3050f0(0xbf)]=_0x1c9273=>{const _0x344d21=a137_0x3050f0;if(bsSetupHelper[_0x344d21(0x87)](_0x1c9273))return undefined;try{return _0x1c9273[_0x344d21(0x13a)]()['split'](',');}catch(_0x28990a){return undefined;}},exports[a137_0x3050f0(0x101)]=()=>{const _0x646304=a137_0x3050f0,_0x3173c0={'TZlTG':function(_0x2fc980,_0x441eb9){return _0x2fc980(_0x441eb9);},'VDCVp':'../../bin/v2/browserstackCLI','pHBSc':function(_0x5835d5,_0x1b5703){return _0x5835d5!==_0x1b5703;},'nKpxY':_0x646304(0x7b),'FJnZA':function(_0x49353a,_0x459e56){return _0x49353a!==_0x459e56;},'RuKUQ':'undefined','wNOeY':function(_0x50561d,_0x27bf59){return _0x50561d===_0x27bf59;},'YDRqL':_0x646304(0x19e),'ysHBO':function(_0x2b5057,_0x2e9c4b){return _0x2b5057&&_0x2e9c4b;}};return PerformanceTester[_0x646304(0x131)](PerformanceO11yEvents[_0x646304(0x11e)],async()=>{const _0x5b3166=_0x646304;try{const _0x254420=_0x3173c0[_0x5b3166(0x13d)](require,_0x3173c0['VDCVp']);if(_0x254420[_0x5b3166(0xcc)]){const _0x3fcb48='Visit\x20'+O11Y_URL+'/builds/'+_0x254420[_0x5b3166(0xcc)]+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a';buildLogger[_0x5b3166(0x129)](_0x3fcb48),exports[_0x5b3166(0x186)](_0x254420[_0x5b3166(0xcc)],_0x254420[_0x5b3166(0x177)]);return;}if(process['env']['BS_TESTOPS_BUILD_HASHED_ID']&&_0x3173c0[_0x5b3166(0x143)](process[_0x5b3166(0xbb)][_0x5b3166(0x19b)],_0x3173c0[_0x5b3166(0x18c)])&&_0x3173c0[_0x5b3166(0x166)](process['env']['BS_TESTOPS_BUILD_HASHED_ID'],_0x3173c0['RuKUQ'])){const _0x2324dd='Visit\x20'+constants['O11Y_URL']+_0x5b3166(0xe1)+process[_0x5b3166(0xbb)][_0x5b3166(0x19b)]+_0x5b3166(0x13f);buildLogger['info'](_0x2324dd);const _0x54a911=_0x3173c0[_0x5b3166(0x12f)](process[_0x5b3166(0xbb)][_0x5b3166(0xa1)],_0x3173c0['YDRqL']);let _0x389084=![];try{const _0x26d00f=JSON['parse'](process[_0x5b3166(0xbb)][_0x5b3166(0xb7)]||'{}');_0x389084=_0x3173c0[_0x5b3166(0x12f)](_0x26d00f[_0x5b3166(0xf2)],!![]);}catch(_0x2a466f){}exports[_0x5b3166(0x186)](process[_0x5b3166(0xbb)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x3173c0[_0x5b3166(0x174)](_0x54a911,!_0x389084));}}catch(_0x5cf309){logger[_0x5b3166(0x95)](util[_0x5b3166(0x19d)]('[%s][\x20'+constants[_0x5b3166(0xff)]+'\x20]\x20Build\x20Not\x20Found\x20%s',new Date()[_0x5b3166(0x165)](),_0x5cf309['stack']||_0x5cf309[_0x5b3166(0x92)]||_0x5cf309));}})();},exports['printA11yBuildLink']=(_0x5f3b5d,_0x5d5837)=>{const _0x2c0d4b=a137_0x3050f0,_0x473d4e={};_0x473d4e[_0x2c0d4b(0x120)]=function(_0x1b98de,_0x41fd7d){return _0x1b98de&&_0x41fd7d;},_0x473d4e[_0x2c0d4b(0x184)]=_0x2c0d4b(0x17f);const _0x2f7195=_0x473d4e;try{if(_0x2f7195['BNjjo'](_0x5d5837,_0x5f3b5d)){const _0x479e01=_0x2c0d4b(0x81)+_0x5f3b5d,_0x114305=_0x2c0d4b(0x14c)+_0x479e01+_0x2c0d4b(0x117);buildLogger['info'](_0x114305);}}catch(_0x340a60){logger[_0x2c0d4b(0x95)](util['format'](_0x2f7195[_0x2c0d4b(0x184)],new Date()[_0x2c0d4b(0x165)](),_0x340a60[_0x2c0d4b(0xd5)]||_0x340a60[_0x2c0d4b(0x92)]||_0x340a60));}},exports[a137_0x3050f0(0xad)]=_0x505804=>{const _0x53270c=a137_0x3050f0,_0x3ae31d={};_0x3ae31d['ozdLy']=_0x53270c(0x16f),_0x3ae31d[_0x53270c(0x7a)]=_0x53270c(0xe5),_0x3ae31d[_0x53270c(0x112)]=_0x53270c(0xb4),_0x3ae31d[_0x53270c(0x141)]=_0x53270c(0x14d);const _0x46769c=_0x3ae31d;if(!_0x505804)return null;const _0x32222d=_0x505804[_0x53270c(0xaf)]();if(_0x32222d[_0x53270c(0x163)](/AssertionError/))return _0x46769c[_0x53270c(0x119)];if(_0x32222d['match'](/TimeoutError/)||_0x32222d[_0x53270c(0x8c)](_0x46769c[_0x53270c(0x7a)])||_0x32222d[_0x53270c(0x163)](/Timeout.*exceeded/i))return _0x46769c[_0x53270c(0x112)];return _0x46769c['BAJIT'];},exports['getFrameworkVersion']=_0x11b0ab=>{const _0x3b15f3=a137_0x3050f0,_0xa7aeb2={};_0xa7aeb2[_0x3b15f3(0x181)]='mocha',_0xa7aeb2[_0x3b15f3(0x9a)]='@playwright/test',_0xa7aeb2['NmcIh']='codeceptjs',_0xa7aeb2[_0x3b15f3(0x164)]=_0x3b15f3(0x185),_0xa7aeb2[_0x3b15f3(0xc2)]=_0x3b15f3(0x12c),_0xa7aeb2[_0x3b15f3(0x14e)]='puppeteer-core',_0xa7aeb2[_0x3b15f3(0xe3)]='puppeteer';const _0x5d3e37=_0xa7aeb2;let _0x3e5e2e=null;switch(_0x11b0ab){case FRAMEWORKS[_0x3b15f3(0x157)]:_0x3e5e2e=bsSetupHelper['getPackageVersion'](_0x5d3e37[_0x3b15f3(0x181)]);break;case FRAMEWORKS[_0x3b15f3(0xa2)]:_0x3e5e2e=bsSetupHelper[_0x3b15f3(0x12e)](_0x5d3e37[_0x3b15f3(0x9a)]);break;case FRAMEWORKS[_0x3b15f3(0x83)]:case FRAMEWORKS[_0x3b15f3(0x170)]:_0x3e5e2e=bsSetupHelper[_0x3b15f3(0x12e)](_0x5d3e37[_0x3b15f3(0x9b)]);break;case FRAMEWORKS['JEST']:_0x3e5e2e=bsSetupHelper['getPackageVersion'](_0x5d3e37[_0x3b15f3(0x164)]);break;case FRAMEWORKS['CUCUMBER']:_0x3e5e2e=bsSetupHelper[_0x3b15f3(0x12e)](_0x5d3e37[_0x3b15f3(0xc2)]);break;case FRAMEWORKS[_0x3b15f3(0x15c)]:_0x3e5e2e=bsSetupHelper['getPackageVersion'](_0x5d3e37[_0x3b15f3(0x14e)])||bsSetupHelper[_0x3b15f3(0x12e)](_0x5d3e37[_0x3b15f3(0xe3)]);break;default:break;}return _0x3e5e2e;},exports[a137_0x3050f0(0xa5)]=_0x4a2c1e=>{const _0x4aee79=a137_0x3050f0;let _0xe0df62=null;switch(_0x4a2c1e){case FRAMEWORKS['PLAYWRIGHT']:_0xe0df62=process[_0x4aee79(0xbb)][_0x4aee79(0x15a)];break;}if(!_0xe0df62)return;return bsSetupHelper[_0x4aee79(0x180)](_0xe0df62,![]);},exports['getUserCredentials']=_0x396e52=>{const _0x5b71eb=a137_0x3050f0;return{'username':bsSetupHelper[_0x5b71eb(0x125)](_0x396e52),'accessKey':bsSetupHelper[_0x5b71eb(0x18e)](_0x396e52)};},exports[a137_0x3050f0(0xc3)]=(_0x3535d3,_0x4cf279)=>{const _0x353081=a137_0x3050f0,_0x2a06a3={};_0x2a06a3[_0x353081(0x188)]='0|3|5|1|2|4',_0x2a06a3[_0x353081(0xda)]=_0x353081(0x198),_0x2a06a3[_0x353081(0xe0)]='TEST_ATTACHMENT';const _0x58e973=_0x2a06a3,_0x3b62e9=_0x58e973[_0x353081(0x188)][_0x353081(0xbd)]('|');let _0x47beda=0x0;while(!![]){switch(_0x3b62e9[_0x47beda++]){case'0':if(!_0x3535d3[_0x353081(0x13e)]||!Array[_0x353081(0x1a6)](_0x3535d3['body']))return;continue;case'1':delete _0x3535d3[_0x353081(0x13e)];continue;case'2':delete _0x3535d3[_0x353081(0x192)];continue;case'3':if(!_0x3535d3[_0x353081(0x13e)][0x0]||!_0x3535d3[_0x353081(0x13e)][0x0]['logs']||!_0x3535d3[_0x353081(0x13e)][0x0]['logs'][_0x353081(0x159)])return;continue;case'4':delete _0x4cf279[_0x353081(0xba)];continue;case'5':_0x3535d3[_0x353081(0xb1)]={'data':_0x3535d3[_0x353081(0x13e)][0x0][_0x353081(0x195)][0x0][_0x353081(0x142)],'test_run_uuid':_0x3535d3[_0x353081(0x13e)][0x0][_0x353081(0x195)][0x0]['test_run_uuid'],'event_type':_0x58e973[_0x353081(0xda)],'kind':_0x58e973[_0x353081(0xe0)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x353081(0x165)](),'fileName':_0x3535d3['body'][0x0][_0x353081(0x195)][0x0][_0x353081(0x8b)]};continue;}break;}},exports[a137_0x3050f0(0x176)]=async(_0x1a44ad,_0x1aa945,_0x2bc457,_0x5beb35,_0x22a00c=!![])=>{const _0x45fc50=a137_0x3050f0,_0x20daca={};_0x20daca[_0x45fc50(0x75)]=function(_0x408d90,_0x467a3c){return _0x408d90===_0x467a3c;},_0x20daca[_0x45fc50(0x14a)]=_0x45fc50(0xb8),_0x20daca[_0x45fc50(0x100)]='application/json',_0x20daca[_0x45fc50(0x106)]='https',_0x20daca['xpTFb']=function(_0xa9ae63,_0x235a08){return _0xa9ae63!==_0x235a08;},_0x20daca[_0x45fc50(0x193)]=_0x45fc50(0x11a),_0x20daca[_0x45fc50(0x15b)]=_0x45fc50(0xc8);const _0x40aaa7=_0x20daca,_0x44d3ba={..._0x5beb35,...{'method':_0x1a44ad,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x1aa945,'body':_0x2bc457,'json':_0x40aaa7[_0x45fc50(0x75)](_0x5beb35[_0x45fc50(0xba)][_0x40aaa7[_0x45fc50(0x14a)]],_0x40aaa7[_0x45fc50(0x100)]),'agent':API_URL['includes'](_0x40aaa7[_0x45fc50(0x106)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x40aaa7[_0x45fc50(0x75)](_0x1aa945,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x44d3ba[_0x45fc50(0x134)]=API_URL[_0x45fc50(0x9f)](_0x40aaa7['fcYjM'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x45fc50(0xc3)](_0x44d3ba,_0x5beb35),logger[_0x45fc50(0x73)](_0x45fc50(0x10c)+_0x44d3ba[_0x45fc50(0x146)]));try{const {statusCode:_0xa5c503,body:_0x280763}=await bsSetupHelper[_0x45fc50(0x147)](_0x1a44ad,_0x1aa945,_0x44d3ba,_0x5beb35,_0x44d3ba[_0x45fc50(0x146)]);if(_0x40aaa7[_0x45fc50(0xd8)](_0xa5c503,0xc8))return _0x280763?_0x280763:_0x45fc50(0xe7)+_0xa5c503;let _0x4d99f3=_0x280763;if(_0x22a00c)try{_0x40aaa7['xpTFb'](typeof _0x280763,_0x40aaa7[_0x45fc50(0x193)])&&(_0x4d99f3=JSON[_0x45fc50(0x175)](_0x280763));}catch(_0x3a842f){logger['error'](_0x40aaa7['LMUdo'],_0x280763,util[_0x45fc50(0x19d)](_0x3a842f));}const _0x3e3c5d={};return _0x3e3c5d[_0x45fc50(0x142)]=_0x4d99f3,_0x3e3c5d;}catch(_0x391dea){logger[_0x45fc50(0x95)](_0x45fc50(0xfd)+util[_0x45fc50(0x19d)](_0x391dea));throw _0x391dea;}},exports[a137_0x3050f0(0x147)]=(_0x3b61d5,_0x42ebe0,_0x4cfeb3,_0x228beb,_0x13b2fe=!![])=>{const _0x544919=a137_0x3050f0,_0x14056f={'cnxif':function(_0xb51f86,_0x543238){return _0xb51f86(_0x543238);},'wMERb':function(_0x33c7ca,_0x407208){return _0x33c7ca!==_0x407208;},'iRQKv':function(_0x19b220,_0x3002ad){return _0x19b220(_0x3002ad);},'XhhAo':_0x544919(0x11a),'DrJOT':function(_0x4ba248,_0x5c7a2c){return _0x4ba248(_0x5c7a2c);},'UZcVS':_0x544919(0xd1),'boAti':function(_0xeb57c2,_0x5e863f){return _0xeb57c2===_0x5e863f;},'aiBAf':_0x544919(0xb8),'ZrxMG':_0x544919(0x74),'qFkrH':'https','DhuCs':function(_0x37e40f,_0x2a8162){return _0x37e40f===_0x2a8162;}};return new Promise((_0x306d43,_0x2827f0)=>{const _0x35ddfd=_0x544919,_0x325e35={'LxJQq':function(_0x327d14,_0x447823){const _0x4d4759=a137_0x3309;return _0x14056f[_0x4d4759(0x85)](_0x327d14,_0x447823);},'LtgQg':function(_0x201088,_0x3e2a9b){const _0x1a20bc=a137_0x3309;return _0x14056f[_0x1a20bc(0xab)](_0x201088,_0x3e2a9b);},'UObXj':_0x14056f[_0x35ddfd(0x18d)],'YgeHk':function(_0x466c21,_0x32d2bf){const _0x24ed3b=_0x35ddfd;return _0x14056f[_0x24ed3b(0x178)](_0x466c21,_0x32d2bf);},'zwExb':_0x14056f[_0x35ddfd(0xd2)],'xcdXx':function(_0x502aad,_0x6db04e){const _0xd7ebae=_0x35ddfd;return _0x14056f[_0xd7ebae(0x132)](_0x502aad,_0x6db04e);}},_0x234cf7={..._0x228beb,...{'method':_0x3b61d5,'url':API_URL+'/'+_0x42ebe0,'body':_0x4cfeb3,'json':_0x14056f[_0x35ddfd(0x187)](_0x228beb[_0x35ddfd(0xba)][_0x14056f['aiBAf']],_0x14056f['ZrxMG']),'agent':API_URL[_0x35ddfd(0x9f)](_0x14056f['qFkrH'])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x14056f['DhuCs'](_0x42ebe0,SCREENSHOT_ENDPOINT)&&(_0x234cf7[_0x35ddfd(0x134)]=API_URL[_0x35ddfd(0x9f)](_0x14056f[_0x35ddfd(0x12b)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x35ddfd(0x147)](_0x3b61d5,_0x42ebe0,_0x234cf7,_0x228beb,API_URL)[_0x35ddfd(0x144)](({statusCode:_0x38fc08,body:_0x21fc17})=>{const _0x292cc7=_0x35ddfd;if(_0x325e35[_0x292cc7(0xe8)](_0x38fc08,0xc8))_0x325e35[_0x292cc7(0x8e)](_0x2827f0,_0x21fc17?_0x21fc17:_0x292cc7(0xe7)+_0x38fc08);else{if(_0x13b2fe)try{_0x325e35[_0x292cc7(0xe8)](typeof _0x21fc17,_0x325e35[_0x292cc7(0x121)])&&(_0x21fc17=JSON['parse'](_0x21fc17));}catch(_0x513ce7){_0x325e35[_0x292cc7(0x1a3)](_0x2827f0,_0x325e35[_0x292cc7(0x86)]);return;}const _0xe10b81={};_0xe10b81[_0x292cc7(0x142)]=_0x21fc17,_0x325e35[_0x292cc7(0xdd)](_0x306d43,_0xe10b81);}})['catch'](_0x4e7717=>{const _0x3c12bf=_0x35ddfd;_0x4e7717&&_0x14056f[_0x3c12bf(0x132)](_0x2827f0,_0x4e7717);});});},exports[a137_0x3050f0(0x136)]=_0x2fc88e=>{const _0x1a7b54=a137_0x3050f0;if(process[_0x1a7b54(0xbb)]['TEST_REPORTING_BUILD_TAG'])return process[_0x1a7b54(0xbb)]['TEST_REPORTING_BUILD_TAG']['split'](',');if(process[_0x1a7b54(0xbb)][_0x1a7b54(0x115)])return process[_0x1a7b54(0xbb)][_0x1a7b54(0x115)]['split'](',');if(_0x2fc88e[_0x1a7b54(0x126)])return _0x2fc88e[_0x1a7b54(0x126)];return[];},exports[a137_0x3050f0(0x15d)]=(_0x51ec60=!![])=>{const _0x6d9d0f=a137_0x3050f0,_0x5e3be9={};_0x5e3be9[_0x6d9d0f(0x10f)]=_0x6d9d0f(0x74),_0x5e3be9[_0x6d9d0f(0xa7)]='true',_0x5e3be9[_0x6d9d0f(0x133)]='Authorization';const _0x2371bf=_0x5e3be9,_0xd409d8={};_0xd409d8[_0x6d9d0f(0xb8)]=_0x2371bf[_0x6d9d0f(0x10f)],_0xd409d8[_0x6d9d0f(0xf1)]=_0x2371bf['hJcrb'];const _0x7f77ae=_0xd409d8;return _0x51ec60&&process[_0x6d9d0f(0xbb)]['BROWSERSTACK_TESTHUB_JWT']&&(_0x7f77ae[_0x2371bf[_0x6d9d0f(0x133)]]='Bearer\x20'+process[_0x6d9d0f(0xbb)][_0x6d9d0f(0x89)]),_0x7f77ae;},exports['extractValuesWithRegexKeyMatch']=_0xa37e89=>{const _0x1cf146=a137_0x3050f0,_0x2a24f4={};_0x2a24f4['HjmpK']='^CUSTOM_TAG_\x5cd+$';const _0x5a8d93=_0x2a24f4,_0x3a3dcb=[],_0x24944f=new RegExp(_0x5a8d93[_0x1cf146(0x18a)],'i');return Object[_0x1cf146(0x199)](_0xa37e89)['filter'](_0x1ce058=>_0x24944f['test'](_0x1ce058))[_0x1cf146(0x18f)](_0x707696=>_0x3a3dcb[_0x1cf146(0x150)](_0xa37e89[_0x707696])),_0x3a3dcb;},exports[a137_0x3050f0(0x17d)]=_0x419d2c=>{const _0xe20f93=a137_0x3050f0,_0x2a372d=[],_0x4ef164=_0x419d2c[_0xe20f93(0x173)]||process['env']['CUSTOM_TAG'];return _0x4ef164&&_0x2a372d['push'](_0x4ef164),_0x2a372d[_0xe20f93(0x150)](...exports[_0xe20f93(0x16a)](process[_0xe20f93(0xbb)])),_0x2a372d['push'](...exports[_0xe20f93(0x16a)](_0x419d2c)),_0x2a372d;},exports['removeAnsiColors']=_0x52086b=>{if(!_0x52086b)return'';return _0x52086b['replace'](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a137_0x3050f0(0x158)]=(_0x18fd0c=0x64)=>new Promise(_0x26eeaa=>setTimeout(_0x26eeaa,_0x18fd0c));const getPlatformName=()=>{const _0x1ad53e=a137_0x3050f0,_0x32c80f={};_0x32c80f[_0x1ad53e(0xa0)]=function(_0x424b4e,_0x424fd5){return _0x424b4e===_0x424fd5;},_0x32c80f['lhATW']=_0x1ad53e(0x108),_0x32c80f[_0x1ad53e(0x122)]=_0x1ad53e(0x7f),_0x32c80f[_0x1ad53e(0xbe)]=_0x1ad53e(0x8f),_0x32c80f[_0x1ad53e(0x1a5)]=_0x1ad53e(0xeb),_0x32c80f[_0x1ad53e(0xb6)]=_0x1ad53e(0x12d),_0x32c80f[_0x1ad53e(0x130)]=_0x1ad53e(0x169),_0x32c80f[_0x1ad53e(0x11c)]=_0x1ad53e(0x140);const _0x264c2f=_0x32c80f;if(_0x264c2f[_0x1ad53e(0xa0)](process[_0x1ad53e(0x1a4)],_0x264c2f[_0x1ad53e(0x1a0)]))return _0x264c2f[_0x1ad53e(0x122)];if(_0x264c2f[_0x1ad53e(0xa0)](process[_0x1ad53e(0x1a4)],_0x264c2f[_0x1ad53e(0xbe)]))return _0x264c2f[_0x1ad53e(0x1a5)];if(_0x264c2f[_0x1ad53e(0xa0)](process[_0x1ad53e(0x1a4)],_0x264c2f[_0x1ad53e(0xb6)]))return _0x264c2f[_0x1ad53e(0x130)];return _0x264c2f[_0x1ad53e(0x11c)];},getMacOSVersion=()=>{const _0x564960=a137_0x3050f0,_0x530e36={};_0x530e36['wdmLt']=_0x564960(0xb2);const _0x29b7aa=_0x530e36;return child_process[_0x564960(0xce)](_0x29b7aa[_0x564960(0x155)])[_0x564960(0xaf)]()['trim']();},getLinuxDetails=()=>{const _0x4df8ea={'aLWfy':function(_0x49c85a,_0x3237f7){return _0x49c85a(_0x3237f7);},'tsmJo':function(_0x4cfbdf,_0x7e74e4){return _0x4cfbdf(_0x7e74e4);}};return new Promise((_0x114a70,_0x696a01)=>{const _0x5d289d=a137_0x3309,_0x5e1197={'pvgLm':function(_0x481a6c,_0x291be6){const _0x4c9564=a137_0x3309;return _0x4df8ea[_0x4c9564(0x183)](_0x481a6c,_0x291be6);},'DKzju':function(_0x59e406,_0x503227){const _0x22e173=a137_0x3309;return _0x4df8ea[_0x22e173(0x183)](_0x59e406,_0x503227);}};_0x4df8ea[_0x5d289d(0x10a)](getos,(_0x3a0b77,_0x502f98)=>{const _0x4cee20=_0x5d289d;if(_0x3a0b77)return _0x5e1197[_0x4cee20(0x71)](_0x696a01,_0x3a0b77);_0x5e1197['DKzju'](_0x114a70,_0x502f98);});});};exports[a137_0x3050f0(0x1a1)]=async()=>{const _0x213c06=a137_0x3050f0,_0x1b9c34={'xpXFt':function(_0x52cce2){return _0x52cce2();},'jpXsu':_0x213c06(0xeb),'ZFzUQ':function(_0x3101fa){return _0x3101fa();},'GLMsU':_0x213c06(0x7f),'SzBhl':_0x213c06(0x9e),'YQrFa':function(_0x447478){return _0x447478();},'SkKre':_0x213c06(0x169),'UxQII':_0x213c06(0x19a)};let _0x372ac4=_0x1b9c34[_0x213c06(0x104)](getPlatformName),_0x459b66=os[_0x213c06(0x72)]()['toString']();switch(_0x372ac4){case _0x1b9c34['jpXsu']:_0x459b66=_0x1b9c34[_0x213c06(0xef)](getMacOSVersion);break;case _0x1b9c34[_0x213c06(0x16e)]:try{const _0x565511=(await import(_0x1b9c34[_0x213c06(0x149)]))[_0x213c06(0xfe)];_0x459b66=_0x1b9c34[_0x213c06(0xcf)](_0x565511);}catch(_0x171684){exports[_0x213c06(0x73)](_0x213c06(0xe9)+_0x171684[_0x213c06(0xaf)]());}break;case _0x1b9c34['SkKre']:try{const _0x51ebba=await _0x1b9c34[_0x213c06(0x104)](getLinuxDetails);_0x51ebba[_0x213c06(0xea)]&&(_0x372ac4=_0x51ebba[_0x213c06(0xea)]),_0x51ebba[_0x213c06(0x72)]&&(_0x459b66=_0x51ebba[_0x213c06(0x72)][_0x213c06(0xaf)]());}catch(_0x3100cf){exports[_0x213c06(0x73)](_0x1b9c34[_0x213c06(0x123)]);}break;default:break;}const _0x1c2c01={};return _0x1c2c01[_0x213c06(0x80)]=_0x372ac4,_0x1c2c01[_0x213c06(0x16c)]=_0x459b66,_0x1c2c01;},exports[a137_0x3050f0(0xf9)]=(_0x174aa4,_0x2e62d9)=>{const _0x2adc15=a137_0x3050f0,_0x3a34d2={};_0x3a34d2[_0x2adc15(0x82)]=function(_0x2bdb49,_0x1c6367){return _0x2bdb49===_0x1c6367;},_0x3a34d2['tPAJL']='test',_0x3a34d2[_0x2adc15(0x118)]=_0x2adc15(0x145);const _0x2b0a6b=_0x3a34d2;if(!_0x174aa4)return[];try{if(_0x2b0a6b[_0x2adc15(0x82)](_0x2e62d9,_0x2b0a6b[_0x2adc15(0xa6)]))return!Array[_0x2adc15(0x1a6)](_0x174aa4)&&(_0x174aa4=[_0x174aa4]),_0x174aa4[_0x2adc15(0x11f)](_0x55d62a=>{const _0x103375=_0x2adc15,{stack:_0x35f80e,..._0x40bdc7}=_0x55d62a,_0x407916=Object[_0x103375(0x199)](_0x40bdc7)[_0x103375(0x11f)](_0x58934a=>{return _0x58934a+':\x20'+_0x40bdc7[_0x58934a];}),_0x49446f=_0x35f80e?exports[_0x103375(0xde)](_0x35f80e)[_0x103375(0xbd)](/\r?\n/):[exports['removeAnsiColors'](_0x55d62a[_0x103375(0x92)])],_0x41b605={};return _0x41b605['backtrace']=_0x49446f,_0x41b605[_0x103375(0x17b)]=_0x407916,_0x41b605;});else{if(_0x2b0a6b[_0x2adc15(0x82)](_0x2e62d9,_0x2b0a6b[_0x2adc15(0x118)])){const _0x1dcd35=[],_0x623457=[];return Object[_0x2adc15(0x199)](_0x174aa4)[_0x2adc15(0x18f)](_0x37ba2b=>{const _0x18fed7=_0x2adc15;try{_0x623457[_0x18fed7(0x150)](_0x37ba2b+':\x20'+_0x174aa4[_0x37ba2b]);}catch(_0x165dd1){exports['debug'](_0x18fed7(0x189)+_0x165dd1[_0x18fed7(0x92)]+_0x18fed7(0x76)+_0x165dd1['backtrace']);}}),_0x1dcd35[_0x2adc15(0x150)]({'backtrace':exports[_0x2adc15(0xde)](_0x174aa4[_0x2adc15(0xd5)])[_0x2adc15(0xbd)](/\r?\n/),'expanded':_0x623457}),_0x1dcd35;}}return[];}catch(_0x1cd8ce){exports[_0x2adc15(0x73)](_0x2adc15(0x189)+_0x1cd8ce[_0x2adc15(0x92)]+_0x2adc15(0x76)+_0x1cd8ce[_0x2adc15(0x14b)]);}return[];};class PathHelper{constructor(_0x48f5b0,_0x15d825){const _0x4aab77=a137_0x3050f0;this['config']=_0x48f5b0,this[_0x4aab77(0x161)]=_0x15d825;}['relativeTestFilePath'](_0x3f93cf){const _0x1dce96=a137_0x3050f0,_0x198d8a=this[_0x1dce96(0x156)][_0x1dce96(0x79)]||this[_0x1dce96(0x156)][_0x1dce96(0xf3)];return path[_0x1dce96(0x179)](_0x198d8a,_0x3f93cf);}[a137_0x3050f0(0x162)](_0xf0a5c){const _0x312d89=a137_0x3050f0,_0x27ea3e=this[_0x312d89(0x102)](_0xf0a5c);return this[_0x312d89(0x161)]?path[_0x312d89(0x11d)](this['prefix'],_0x27ea3e):_0x27ea3e;}}exports[a137_0x3050f0(0x113)]=PathHelper,exports[a137_0x3050f0(0x93)]=(_0x5ec8f0=!![])=>{const _0x4916b3=a137_0x3050f0,_0xd337b0={};_0xd337b0[_0x4916b3(0x103)]=function(_0x24e4b5,_0x5f0823){return _0x24e4b5===_0x5f0823;},_0xd337b0[_0x4916b3(0x8a)]=_0x4916b3(0xf1),_0xd337b0[_0x4916b3(0x168)]=_0x4916b3(0x19e),_0xd337b0['uGSdR']=_0x4916b3(0x15f),_0xd337b0[_0x4916b3(0xdc)]=_0x4916b3(0x111),_0xd337b0[_0x4916b3(0xb9)]=_0x4916b3(0x18b);const _0x395e83=_0xd337b0;requestSpy[_0x4916b3(0xf7)]((_0x2553f7,_0x56cc79)=>{const _0x783ac5=_0x4916b3;_0x56cc79&&!(_0x56cc79[_0x783ac5(0xba)]&&_0x395e83[_0x783ac5(0x103)](_0x56cc79[_0x783ac5(0xba)][_0x395e83[_0x783ac5(0x8a)]],_0x395e83['iznLm']))&&(_0x56cc79['host']=_0x56cc79[_0x783ac5(0x109)],delete _0x56cc79[_0x783ac5(0x109)],_0x5ec8f0&&process[_0x783ac5(0x152)](_0x783ac5(0xf6)+process[_0x783ac5(0x9d)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x395e83[_0x783ac5(0x10e)],'http_response':_0x56cc79})),_0x56cc79&&(constants[_0x783ac5(0x128)]['test'](_0x56cc79[_0x783ac5(0xcd)])||constants[_0x783ac5(0x13c)][_0x783ac5(0x1a8)](_0x56cc79[_0x783ac5(0xcd)]))?global[_0x783ac5(0x17a)]=_0x395e83['yhHzX']:global[_0x783ac5(0x17a)]=_0x395e83['FOCeZ'];});},exports[a137_0x3050f0(0x124)]=()=>{const _0x7bdd36=a137_0x3050f0,_0x3f7d6a={'hAlhV':function(_0x137d84,_0x3dda33){return _0x137d84(_0x3dda33);}};console={},Object[_0x7bdd36(0x199)](consoleHolder)['forEach'](_0x7f7c88=>{const _0x5d0ba9=_0x7bdd36;_0x3f7d6a[_0x5d0ba9(0xc6)](isFunction,consoleHolder[_0x7f7c88])?console[_0x7f7c88]=(..._0x216364)=>{const _0x615b05=_0x5d0ba9;try{!Object[_0x615b05(0x199)](BSTestOpsPatcher)[_0x615b05(0x9f)](_0x7f7c88)?consoleHolder[_0x7f7c88](..._0x216364):BSTestOpsPatcher[_0x7f7c88](..._0x216364);}catch(_0x4c56b9){consoleHolder[_0x7f7c88](..._0x216364);}}:console[_0x7f7c88]=consoleHolder[_0x7f7c88];});},exports[a137_0x3050f0(0x116)]=()=>'browserstack_executor:\x20'+JSON[a137_0x3050f0(0x1a2)]({'action':'annotate','arguments':{'data':a137_0x3050f0(0x148)+Date['now'](),'level':a137_0x3050f0(0x73)}}),exports[a137_0x3050f0(0x190)]=_0x3341be=>{const _0x553b9f=a137_0x3050f0,_0x522fe5={};_0x522fe5[_0x553b9f(0x94)]=function(_0x362933,_0x229e66){return _0x362933===_0x229e66;},_0x522fe5[_0x553b9f(0xf5)]=_0x553b9f(0x111),_0x522fe5[_0x553b9f(0x91)]=_0x553b9f(0x88),_0x522fe5[_0x553b9f(0xed)]=_0x553b9f(0x96),_0x522fe5[_0x553b9f(0x1a7)]=function(_0x3a98bd,_0x475137){return _0x3a98bd>_0x475137;},_0x522fe5[_0x553b9f(0x19f)]=_0x553b9f(0xfa),_0x522fe5[_0x553b9f(0x78)]='bstack:options',_0x522fe5[_0x553b9f(0xfb)]=_0x553b9f(0xe4),_0x522fe5[_0x553b9f(0xd7)]=_0x553b9f(0x171),_0x522fe5['oHYQj']='automate';const _0x2c85e6=_0x522fe5;let _0x64e439=null;try{if(_0x2c85e6['XMCZw'](global['__cloud_provider___'],_0x2c85e6[_0x553b9f(0xf5)])){if(_0x3341be[_0x2c85e6[_0x553b9f(0x91)]]||_0x3341be[_0x2c85e6['pCifL']]||!bsSetupHelper[_0x553b9f(0x87)](global[_0x553b9f(0x105)])&&_0x2c85e6[_0x553b9f(0x1a7)](global[_0x553b9f(0x105)][_0x553b9f(0x159)],0x0)&&(global[_0x553b9f(0x105)][0x0][_0x2c85e6[_0x553b9f(0xed)]]||global[_0x553b9f(0x105)][0x0][_0x2c85e6[_0x553b9f(0x91)]]))_0x64e439=_0x2c85e6[_0x553b9f(0x19f)];else _0x3341be[_0x2c85e6['nmZZs']]&&_0x3341be[_0x2c85e6[_0x553b9f(0x78)]][_0x2c85e6['ZeBbx']]?_0x64e439=_0x2c85e6[_0x553b9f(0xd7)]:_0x64e439=_0x2c85e6[_0x553b9f(0xae)];}}catch(_0x281d2d){exports[_0x553b9f(0x73)](_0x553b9f(0xdb)+constants[_0x553b9f(0xff)]+'\x20test\x20instance\x20:\x20'+_0x281d2d);}return _0x64e439;},exports[a137_0x3050f0(0x7d)]=async(_0x2ef53f,_0xa62f75,_0xdd337f=![])=>{const _0x5ddd90=a137_0x3050f0,_0x526f0c={};_0x526f0c[_0x5ddd90(0x9c)]=function(_0x236b8b,_0x782309){return _0x236b8b===_0x782309;},_0x526f0c[_0x5ddd90(0x139)]=_0x5ddd90(0x111),_0x526f0c[_0x5ddd90(0x14f)]=_0x5ddd90(0x17e),_0x526f0c[_0x5ddd90(0x77)]=_0x5ddd90(0xbc);const _0x13aeb0=_0x526f0c;try{const _0xa5108f=await _0x2ef53f[_0x5ddd90(0x90)](),_0x333280=await _0x2ef53f[_0x5ddd90(0xd3)](),_0x5ced67={},_0x5437de=Object[_0x5ddd90(0xa8)](_0x333280[_0x5ddd90(0x90)]()[_0x5ddd90(0x8d)]),_0x435b9b={'product':exports['getObservabilityLinkedProductName'](_0x5437de),'capabilities':_0x5437de,'platform':_0xa5108f[_0x5ddd90(0x97)](),'platform_version':bsSetupHelper['getPlatformVersion'](_0x13aeb0[_0x5ddd90(0x9c)](global[_0x5ddd90(0x17a)],_0x13aeb0[_0x5ddd90(0x139)])),'browser':_0xa5108f['getBrowserName'](),'browser_version':_0xa5108f[_0x5ddd90(0xb0)](),'session_id':_0x333280[_0x5ddd90(0xd9)]()};global[_0x5ddd90(0x17a)]?_0x5ced67[global['__cloud_provider___']]=_0x435b9b:_0x5ced67[_0x13aeb0[_0x5ddd90(0x14f)]]=_0x435b9b;if(_0xdd337f)return _0x5ced67;process['emit'](_0x5ddd90(0xca)+process[_0x5ddd90(0x9d)],{'timestamp':new Date()[_0x5ddd90(0x165)](),'level':null,'message':null,'kind':_0x13aeb0[_0x5ddd90(0x77)],'http_response':_0x5ced67,'uuid':_0xa62f75});}catch(_0x3e7ba9){exports[_0x5ddd90(0x73)]('Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x3e7ba9);}},exports[a137_0x3050f0(0xc5)]=_0x397ee0=>{const _0xa5133a=a137_0x3050f0;return _0x397ee0&&_0x397ee0[_0xa5133a(0xaf)]()['match'](/browserstack internal helper hook/);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a138_0x5a8f8b=a138_0x25f4;function a138_0x25f4(_0x644b07,_0x39d588){var _0x38e3ca=a138_0x38e3();return a138_0x25f4=function(_0x25f45a,_0x1b68b4){_0x25f45a=_0x25f45a-0x181;var _0xd73b9a=_0x38e3ca[_0x25f45a];return _0xd73b9a;},a138_0x25f4(_0x644b07,_0x39d588);}(function(_0x5ca417,_0x323fba){var _0x45839b=a138_0x25f4,_0x4cb1bf=_0x5ca417();while(!![]){try{var _0x16abff=parseInt(_0x45839b(0x181))/0x1+-parseInt(_0x45839b(0x18b))/0x2+-parseInt(_0x45839b(0x186))/0x3*(-parseInt(_0x45839b(0x189))/0x4)+-parseInt(_0x45839b(0x187))/0x5+-parseInt(_0x45839b(0x183))/0x6+-parseInt(_0x45839b(0x18e))/0x7+parseInt(_0x45839b(0x18d))/0x8;if(_0x16abff===_0x323fba)break;else _0x4cb1bf['push'](_0x4cb1bf['shift']());}catch(_0x2256e7){_0x4cb1bf['push'](_0x4cb1bf['shift']());}}}(a138_0x38e3,0xc3b14));var a138_0x43c6f={};a138_0x43c6f[a138_0x5a8f8b(0x182)]=a138_0x5a8f8b(0x18a),a138_0x43c6f[a138_0x5a8f8b(0x188)]='testorchestration/api/v1/failed-tests',a138_0x43c6f[a138_0x5a8f8b(0x185)]=a138_0x5a8f8b(0x184),module[a138_0x5a8f8b(0x18c)]=a138_0x43c6f;function a138_0x38e3(){var _0x1bb498=['https://collector-observability.browserstack.com','934614lIvZpP','exports','12822944xejiTh','2120776HSrsYb','217124ajJncq','ORCHESTRATION_API_URL','3224016HCNrgF','testorchestration/api/v1/split-tests','SPLIT_TESTS_ENDPOINT','30tvfcnr','3517275cQzYZi','FAILED_TESTS_ENDPOINT','397052jJxEAr'];a138_0x38e3=function(){return _0x1bb498;};return a138_0x38e3();}
|
|
@@ -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_0x1fe2a7=a139_0xdc68;(function(_0x44f018,_0x3e26ff){const _0xbf62ab=a139_0xdc68,_0x492653=_0x44f018();while(!![]){try{const _0x4535cb=parseInt(_0xbf62ab(0x1d2))/0x1+parseInt(_0xbf62ab(0x1ae))/0x2+parseInt(_0xbf62ab(0x1d6))/0x3+parseInt(_0xbf62ab(0x1ec))/0x4*(-parseInt(_0xbf62ab(0x196))/0x5)+-parseInt(_0xbf62ab(0x19a))/0x6+-parseInt(_0xbf62ab(0x1f6))/0x7+-parseInt(_0xbf62ab(0x1ee))/0x8*(-parseInt(_0xbf62ab(0x1f7))/0x9);if(_0x4535cb===_0x3e26ff)break;else _0x492653['push'](_0x492653['shift']());}catch(_0x168359){_0x492653['push'](_0x492653['shift']());}}}(a139_0x42fc,0x92650));function a139_0xdc68(_0x345e2e,_0x196dd3){const _0x42fc66=a139_0x42fc();return a139_0xdc68=function(_0xdc68d1,_0x46a5ac){_0xdc68d1=_0xdc68d1-0x176;let _0x73ed1e=_0x42fc66[_0xdc68d1];return _0x73ed1e;},a139_0xdc68(_0x345e2e,_0x196dd3);}const fs=require('fs'),path=require('path'),FileHelper=require(a139_0x1fe2a7(0x1a9)),RequestUtils=require('./requestUtils'),logger=require(a139_0x1fe2a7(0x1cb))[a139_0x1fe2a7(0x178)],POLLING_INTERVAL=0x2710,TAG=a139_0x1fe2a7(0x1bb);class FailFastManager{constructor(_0xbce4eb,_0x45808b,_0x10f43b){const _0x4351b8=a139_0x1fe2a7,_0x1b4856={};_0x1b4856[_0x4351b8(0x1ea)]=function(_0x355489,_0x453b83){return _0x355489+_0x453b83;},_0x1b4856['gzdJW']=_0x4351b8(0x1b2),_0x1b4856['flxbp']=function(_0x1415a6,_0x119a91){return _0x1415a6||_0x119a91;},_0x1b4856[_0x4351b8(0x1b1)]='failFastState.json',_0x1b4856['HqKjC']=_0x4351b8(0x1d0),_0x1b4856[_0x4351b8(0x1a6)]=_0x4351b8(0x1b7);const _0x493f23=_0x1b4856;this[_0x4351b8(0x19c)]=_0x493f23['flxbp'](_0xbce4eb,{}),this[_0x4351b8(0x179)]=_0x45808b,this[_0x4351b8(0x1c6)]=_0x10f43b,this[_0x4351b8(0x1b0)]=!!(process[_0x4351b8(0x1d7)][_0x4351b8(0x191)]&&process[_0x4351b8(0x1d7)][_0x4351b8(0x1e6)]&&process[_0x4351b8(0x1d7)][_0x4351b8(0x17a)]);const _0x178c2=this[_0x4351b8(0x19c)][_0x4351b8(0x18a)];this[_0x4351b8(0x1ab)]=path['join'](_0x178c2,_0x493f23['jHrHJ']),this['lockFilePath']=path['join'](_0x178c2,_0x493f23[_0x4351b8(0x17d)]),this[_0x4351b8(0x1a3)]=path[_0x4351b8(0x17c)](_0x178c2,_0x493f23[_0x4351b8(0x1a6)]),this[_0x4351b8(0x1a8)]=new FileHelper(this['failFastConfig'],this[_0x4351b8(0x1ab)],this['lockFilePath'],this[_0x4351b8(0x1f9)]()),this[_0x4351b8(0x1f0)]=this['_getDefaultState'](),this['pollingInterval']=null,this[_0x4351b8(0x1b0)]&&(this['reportedFailuresToAPI']=new Set()),this[_0x4351b8(0x1dc)]()[_0x4351b8(0x19d)](_0x5e84bb=>{const _0x53f3c5=_0x4351b8;logger[_0x53f3c5(0x1bf)]('['+TAG+_0x53f3c5(0x1da)+_0x5e84bb[_0x53f3c5(0x187)]+(_0x5e84bb[_0x53f3c5(0x1cc)]?_0x493f23[_0x53f3c5(0x1ea)](_0x493f23[_0x53f3c5(0x181)],_0x5e84bb['stack']):'')),this[_0x53f3c5(0x1f0)]=this[_0x53f3c5(0x1f9)]();}),this['isCIMode']&&this['startPolling'](),logger[_0x4351b8(0x1c9)]('['+TAG+_0x4351b8(0x1b4)+this['failFastConfig'][_0x4351b8(0x1b3)]+_0x4351b8(0x1a4)+this[_0x4351b8(0x1b0)]);}['_getDefaultState'](){const _0x4e61ba={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x4e61ba;}async[a139_0x1fe2a7(0x1dc)](){const _0x389e02=a139_0x1fe2a7,_0x322392={};_0x322392[_0x389e02(0x1a5)]=function(_0x5f0737,_0x1cd7d8){return _0x5f0737+_0x1cd7d8;},_0x322392[_0x389e02(0x1d5)]='\x0aStack:\x20';const _0x1c2701=_0x322392;if(this[_0x389e02(0x1b0)])try{fs[_0x389e02(0x1df)](this[_0x389e02(0x1a3)])&&(this[_0x389e02(0x1f0)][_0x389e02(0x1bc)]=!![],logger[_0x389e02(0x1c9)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.'));}catch(_0x4d87d8){logger[_0x389e02(0x1bf)]('['+TAG+_0x389e02(0x1eb)+_0x4d87d8[_0x389e02(0x187)]+(_0x4d87d8['stack']?_0x1c2701[_0x389e02(0x1a5)](_0x1c2701[_0x389e02(0x1d5)],_0x4d87d8['stack']):''));}else try{const _0x55ef76=await this[_0x389e02(0x1a8)][_0x389e02(0x19f)]();if(_0x55ef76)this[_0x389e02(0x1f0)]={...this[_0x389e02(0x1f9)](),..._0x55ef76,'uniqueFailedTests':new Set(_0x55ef76['uniqueFailedTests']||[])},logger[_0x389e02(0x1c9)]('['+TAG+_0x389e02(0x1d1));else{logger[_0x389e02(0x1c9)]('['+TAG+'_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.');const _0x55433d=this[_0x389e02(0x1f9)](),_0x48e699={..._0x55433d,'uniqueFailedTests':Array[_0x389e02(0x1c1)](_0x55433d['uniqueFailedTests'])};await this['fileHelper']['writeState'](_0x48e699),this['state']=_0x55433d;}}catch(_0x341ede){logger[_0x389e02(0x1c9)]('['+TAG+'_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20'+_0x341ede[_0x389e02(0x187)]+(_0x341ede['stack']?_0x1c2701[_0x389e02(0x1a5)](_0x1c2701['xkKLq'],_0x341ede['stack']):'')),this[_0x389e02(0x1f0)]=this[_0x389e02(0x1f9)]();}}async[a139_0x1fe2a7(0x1e8)](_0x515b6e,_0x57b26d){const _0x491ece=a139_0x1fe2a7,_0x3bba29={};_0x3bba29[_0x491ece(0x1b5)]=function(_0x1d655a,_0x319ab8){return _0x1d655a>_0x319ab8;},_0x3bba29[_0x491ece(0x1de)]=function(_0x5a1f79,_0x52652c){return _0x5a1f79>_0x52652c;},_0x3bba29[_0x491ece(0x1c2)]=_0x491ece(0x177),_0x3bba29[_0x491ece(0x17f)]=_0x491ece(0x1f3),_0x3bba29[_0x491ece(0x18f)]=function(_0x58ef4a,_0x5a1978){return _0x58ef4a+_0x5a1978;},_0x3bba29[_0x491ece(0x1c7)]=_0x491ece(0x1b2),_0x3bba29[_0x491ece(0x1d9)]=function(_0x3561d4,_0x32c769){return _0x3561d4||_0x32c769;},_0x3bba29[_0x491ece(0x1e4)]=function(_0x73e829,_0xbacbb4){return _0x73e829+_0xbacbb4;};const _0x1bac79=_0x3bba29;if(this[_0x491ece(0x1b0)])this['state'][_0x491ece(0x1e3)]+=0x1,_0x57b26d&&_0x1bac79['Lhofe'](_0x57b26d[_0x491ece(0x1d4)],0x0)&&(!this['reportedFailuresToAPI'][_0x491ece(0x1c8)](_0x515b6e)&&(await this[_0x491ece(0x1b6)](_0x515b6e),this[_0x491ece(0x1be)][_0x491ece(0x199)](_0x515b6e)));else try{const _0x16f339={'fullName':_0x515b6e,'status':_0x57b26d&&_0x1bac79[_0x491ece(0x1de)](_0x57b26d['length'],0x0)?_0x1bac79[_0x491ece(0x1c2)]:_0x1bac79[_0x491ece(0x17f)]},_0x528f98=await this['fileHelper'][_0x491ece(0x1a2)](_0x16f339);this[_0x491ece(0x1f0)]={...this[_0x491ece(0x1f9)](),..._0x528f98['newState'],'uniqueFailedTests':new Set(_0x528f98['newState'][_0x491ece(0x19e)]||[])};}catch(_0x2297cf){logger[_0x491ece(0x1bf)]('['+TAG+'_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20'+_0x2297cf[_0x491ece(0x187)]+(_0x2297cf[_0x491ece(0x1cc)]?_0x1bac79['cMgIW'](_0x1bac79['qHbol'],_0x2297cf[_0x491ece(0x1cc)]):''));try{const _0x4246d6=await this[_0x491ece(0x1a8)][_0x491ece(0x19f)]();this[_0x491ece(0x1f0)]={...this[_0x491ece(0x1f9)](),..._0x1bac79[_0x491ece(0x1d9)](_0x4246d6,{}),'uniqueFailedTests':new Set(_0x4246d6?_0x4246d6[_0x491ece(0x19e)]||[]:[])},logger[_0x491ece(0x1c9)]('['+TAG+_0x491ece(0x1b9));}catch(_0x326fd1){logger[_0x491ece(0x1bf)]('['+TAG+_0x491ece(0x19b)+_0x326fd1[_0x491ece(0x187)]+(_0x326fd1[_0x491ece(0x1cc)]?_0x1bac79['Zhnbc'](_0x1bac79[_0x491ece(0x1c7)],_0x326fd1[_0x491ece(0x1cc)]):'')),this[_0x491ece(0x1f0)]=this['_getDefaultState']();}}}async[a139_0x1fe2a7(0x1b6)](_0x17cd6e){const _0x1a009f=a139_0x1fe2a7,_0x32592d={};_0x32592d[_0x1a009f(0x195)]=function(_0x2520c9,_0x529fd0){return _0x2520c9+_0x529fd0;},_0x32592d['cifGf']=_0x1a009f(0x1b2);const _0x45e0dd=_0x32592d;if(!this[_0x1a009f(0x1b0)]||!_0x17cd6e)return;try{logger[_0x1a009f(0x1c9)]('['+TAG+_0x1a009f(0x185)+_0x17cd6e);const _0x7a638e={};_0x7a638e[_0x1a009f(0x179)]=this[_0x1a009f(0x179)],_0x7a638e[_0x1a009f(0x1c6)]=this['projectName'],_0x7a638e[_0x1a009f(0x1e9)]=[_0x17cd6e],_0x7a638e[_0x1a009f(0x1ba)]=process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],await RequestUtils[_0x1a009f(0x186)](_0x7a638e);}catch(_0x1eb363){logger[_0x1a009f(0x1bf)]('['+TAG+_0x1a009f(0x183)+_0x17cd6e+_0x1a009f(0x1c4)+_0x1eb363[_0x1a009f(0x187)]+(_0x1eb363[_0x1a009f(0x1cc)]?_0x45e0dd[_0x1a009f(0x195)](_0x45e0dd[_0x1a009f(0x1f2)],_0x1eb363[_0x1a009f(0x1cc)]):''));}}async[a139_0x1fe2a7(0x1bd)](){const _0x16fefb=a139_0x1fe2a7,_0x1e0e9e={};_0x1e0e9e[_0x16fefb(0x180)]=function(_0x2aa6e4,_0x4b87a9){return _0x2aa6e4===_0x4b87a9;},_0x1e0e9e[_0x16fefb(0x194)]=_0x16fefb(0x1d3),_0x1e0e9e['FcVBv']=function(_0x1673a8,_0x224afc){return _0x1673a8+_0x224afc;},_0x1e0e9e[_0x16fefb(0x190)]=_0x16fefb(0x1b2),_0x1e0e9e['lwPfT']=function(_0x56469a,_0x15f342){return _0x56469a!==_0x15f342;};const _0x5e150c=_0x1e0e9e;if(!this[_0x16fefb(0x1b0)])return 0x0;try{const _0x266a32={};_0x266a32[_0x16fefb(0x179)]=this[_0x16fefb(0x179)],_0x266a32['projectName']=this['projectName'],_0x266a32[_0x16fefb(0x1ba)]=process[_0x16fefb(0x1d7)][_0x16fefb(0x191)];const _0x5c3779=await RequestUtils[_0x16fefb(0x18d)](_0x266a32);return logger[_0x16fefb(0x1c9)]('['+TAG+_0x16fefb(0x1dd)+_0x5c3779),_0x5e150c[_0x16fefb(0x180)](typeof _0x5c3779,_0x5e150c[_0x16fefb(0x194)])?_0x5c3779:0x0;}catch(_0x396440){return logger[_0x16fefb(0x1bf)]('['+TAG+_0x16fefb(0x1ad)+_0x396440[_0x16fefb(0x187)]+(_0x396440[_0x16fefb(0x1cc)]?_0x5e150c['FcVBv'](_0x5e150c[_0x16fefb(0x190)],_0x396440[_0x16fefb(0x1cc)]):'')),_0x5e150c[_0x16fefb(0x1f5)](this[_0x16fefb(0x1f0)][_0x16fefb(0x193)],undefined)?this[_0x16fefb(0x1f0)][_0x16fefb(0x193)]:0x0;}}async['_pollFailedTests'](){const _0x12f1e7=a139_0x1fe2a7,_0x4f06c3={};_0x4f06c3['EXYxM']=function(_0x11e8b3,_0x4611d2){return _0x11e8b3!==_0x4611d2;},_0x4f06c3[_0x12f1e7(0x1e0)]=function(_0x3b863b,_0x3c5a53){return _0x3b863b+_0x3c5a53;},_0x4f06c3[_0x12f1e7(0x1f4)]=_0x12f1e7(0x1b2);const _0x197d83=_0x4f06c3;if(!this[_0x12f1e7(0x1b0)])return;try{const _0x48005d=await this[_0x12f1e7(0x1bd)]();_0x197d83[_0x12f1e7(0x1db)](_0x48005d,this[_0x12f1e7(0x1f0)]['lastAPIFailedCount'])&&(logger[_0x12f1e7(0x1c9)]('['+TAG+_0x12f1e7(0x17b)+_0x48005d+_0x12f1e7(0x1cf)+this[_0x12f1e7(0x1f0)][_0x12f1e7(0x193)]+')'),this[_0x12f1e7(0x1f0)][_0x12f1e7(0x193)]=_0x48005d);}catch(_0x25b137){logger[_0x12f1e7(0x1bf)]('['+TAG+_0x12f1e7(0x197)+_0x25b137[_0x12f1e7(0x187)]+(_0x25b137[_0x12f1e7(0x1cc)]?_0x197d83['NvQHk'](_0x197d83[_0x12f1e7(0x1f4)],_0x25b137[_0x12f1e7(0x1cc)]):''));}}async[a139_0x1fe2a7(0x1e7)](){const _0x1af63d=a139_0x1fe2a7,_0x17e409={'UYRDf':function(_0x37adf0,_0x25fcac,_0x5333c8){return _0x37adf0(_0x25fcac,_0x5333c8);}};this[_0x1af63d(0x18e)]&&this[_0x1af63d(0x1ed)](),this[_0x1af63d(0x1b0)]&&(await this[_0x1af63d(0x1ef)](),this[_0x1af63d(0x18e)]=_0x17e409['UYRDf'](setInterval,async()=>{const _0x5dfc6b=_0x1af63d;await this[_0x5dfc6b(0x1ef)]();},POLLING_INTERVAL),logger[_0x1af63d(0x1c9)]('['+TAG+'_CI]\x20Polling\x20started\x20with\x20interval:\x20'+POLLING_INTERVAL+_0x1af63d(0x1e1)));}['stopPolling'](){const _0x1e9d7c=a139_0x1fe2a7,_0x11152f={'ytPiv':function(_0x2a28f9,_0x4d0146){return _0x2a28f9(_0x4d0146);}};this[_0x1e9d7c(0x18e)]&&(_0x11152f['ytPiv'](clearInterval,this['pollingInterval']),this[_0x1e9d7c(0x18e)]=null,logger[_0x1e9d7c(0x1c9)]('['+TAG+_0x1e9d7c(0x176)));}async[a139_0x1fe2a7(0x189)](){const _0x259822=a139_0x1fe2a7,_0x16d7c3={};_0x16d7c3[_0x259822(0x1a0)]=function(_0x162b97,_0x504ab4){return _0x162b97===_0x504ab4;},_0x16d7c3[_0x259822(0x1ce)]=function(_0xf5d8db,_0x4b6e37){return _0xf5d8db===_0x4b6e37;},_0x16d7c3['QRILz']=function(_0x35491e,_0x663091){return _0x35491e<=_0x663091;},_0x16d7c3[_0x259822(0x192)]=function(_0x5214dd,_0x47d1b1){return _0x5214dd+_0x47d1b1;},_0x16d7c3[_0x259822(0x184)]=_0x259822(0x1b2),_0x16d7c3[_0x259822(0x1ca)]=function(_0xee3c44,_0x43d0f9){return _0xee3c44!==_0x43d0f9;},_0x16d7c3[_0x259822(0x198)]=function(_0xb767f9,_0x1e92af){return _0xb767f9>=_0x1e92af;},_0x16d7c3[_0x259822(0x1e2)]=function(_0x4b3b34,_0x1ac5b7){return _0x4b3b34+_0x1ac5b7;};const _0xe94104=_0x16d7c3,{failureThresholdCount:_0x47b626}=this['failFastConfig'];if(_0xe94104['fVpEw'](_0x47b626,null)||_0xe94104[_0x259822(0x1ce)](_0x47b626,undefined)||_0xe94104[_0x259822(0x1af)](_0x47b626,0x0))return logger[_0x259822(0x1c9)]('['+TAG+_0x259822(0x1c5)),![];if(this['isCIMode']){try{if(fs['existsSync'](this[_0x259822(0x1a3)]))return logger[_0x259822(0x1c9)]('['+TAG+_0x259822(0x18c)),!this['state'][_0x259822(0x1bc)]&&(this[_0x259822(0x1f0)]['failFastActive']=!![]),this[_0x259822(0x1ed)](),!![];}catch(_0x451482){logger['error']('['+TAG+'_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20'+_0x451482['message']+(_0x451482[_0x259822(0x1cc)]?_0xe94104['SZTdy'](_0xe94104[_0x259822(0x184)],_0x451482['stack']):''));}const _0x1ea3f=_0xe94104[_0x259822(0x1ca)](this['state']['lastAPIFailedCount'],undefined)?this[_0x259822(0x1f0)][_0x259822(0x193)]:0x0;if(_0xe94104['ulGvS'](_0x1ea3f,_0x47b626)){logger[_0x259822(0x1d8)]('['+TAG+'_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x1ea3f+_0x259822(0x1b8)+_0x47b626+'.');try{fs[_0x259822(0x1ac)](this[_0x259822(0x1a3)],new Date()['toISOString']()),logger[_0x259822(0x1c9)]('['+TAG+_0x259822(0x182)+this[_0x259822(0x1a3)]),this['state']['failFastActive']=!![];}catch(_0x5d163c){logger[_0x259822(0x1bf)]('['+TAG+'_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20'+_0x5d163c[_0x259822(0x187)]+(_0x5d163c[_0x259822(0x1cc)]?_0xe94104[_0x259822(0x192)](_0xe94104[_0x259822(0x184)],_0x5d163c[_0x259822(0x1cc)]):''));}return this['stopPolling'](),!![];}}else{let _0xbf1fa5;try{_0xbf1fa5=await this[_0x259822(0x1a8)][_0x259822(0x19f)]();if(!_0xbf1fa5)return logger[_0x259822(0x1cd)]('['+TAG+_0x259822(0x1aa)),![];}catch(_0x2c2524){return logger[_0x259822(0x1bf)]('['+TAG+_0x259822(0x1c0)+_0x2c2524[_0x259822(0x187)]+(_0x2c2524[_0x259822(0x1cc)]?_0xe94104[_0x259822(0x192)](_0xe94104[_0x259822(0x184)],_0x2c2524[_0x259822(0x1cc)]):'')),![];}this['state']={...this[_0x259822(0x1f9)](),..._0xbf1fa5,'uniqueFailedTests':new Set(_0xbf1fa5['uniqueFailedTests']||[])};if(this[_0x259822(0x1f0)][_0x259822(0x1bc)])return logger[_0x259822(0x1c9)]('['+TAG+_0x259822(0x1e5)),!![];const _0x58769c=this[_0x259822(0x1f0)][_0x259822(0x19e)],_0x2220ea=_0x58769c[_0x259822(0x1a1)];if(_0xe94104[_0x259822(0x198)](_0x2220ea,_0x47b626)){try{logger[_0x259822(0x1d8)]('['+TAG+_0x259822(0x1a7)+_0x2220ea+_0x259822(0x1b8)+_0x47b626+'.'),this[_0x259822(0x1f0)][_0x259822(0x1bc)]=!![];}catch(_0x1a92f3){logger['error']('['+TAG+'_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20'+_0x1a92f3['message']+(_0x1a92f3[_0x259822(0x1cc)]?_0xe94104[_0x259822(0x1e2)](_0xe94104[_0x259822(0x184)],_0x1a92f3[_0x259822(0x1cc)]):''));}return!![];}}return![];}async[a139_0x1fe2a7(0x18b)](){const _0x408055=a139_0x1fe2a7,_0x385db7={};_0x385db7[_0x408055(0x1f1)]=function(_0x45a005,_0x1c7b4e){return _0x45a005+_0x1c7b4e;},_0x385db7['OonPg']=_0x408055(0x1b2);const _0x235b59=_0x385db7;this[_0x408055(0x1ed)]();if(this[_0x408055(0x1b0)])logger[_0x408055(0x1c9)]('['+TAG+_0x408055(0x17e));else try{const _0x58d28a={...this[_0x408055(0x1f0)],'uniqueFailedTests':Array['from'](this[_0x408055(0x1f0)][_0x408055(0x19e)]||new Set())};await this['fileHelper'][_0x408055(0x188)](_0x58d28a),logger['debug']('['+TAG+_0x408055(0x1f8));}catch(_0x4bbe00){logger['error']('['+TAG+'_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20'+_0x4bbe00[_0x408055(0x187)]+(_0x4bbe00['stack']?_0x235b59[_0x408055(0x1f1)](_0x235b59['OonPg'],_0x4bbe00[_0x408055(0x1cc)]):''));}}}module[a139_0x1fe2a7(0x1c3)]=FailFastManager;function a139_0x42fc(){const _0x1e86c9=['error','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','from','CSxps','exports','\x20to\x20API:\x20',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','projectName','qHbol','has','debug','ZfeKh','../logger','stack','warn','nPXpL','\x20(was\x20','failFastState.lock','_Local]\x20State\x20initialized\x20from\x20file.','35811ZgHvDO','number','length','xkKLq','2548239ETbFyr','env','info','FdJNY',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','EXYxM','_initializeStateFromFile','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','vQZJC','existsSync','NvQHk','ms.','jqEyZ','totalTests','Zhnbc','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','BROWSERSTACK_NODE_INDEX','startPolling','onTestDone','failedTests','kiHLX','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','2587484RdvayR','stopPolling','43272DxXSUb','_pollFailedTests','state','QQGSa','cifGf','passed','IREfH','lwPfT','3545913qGyFPI','54sOfxXf','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','_getDefaultState',']\x20Polling\x20stopped.','failed','winstonLogger','buildName','BROWSERSTACK_TOTAL_NODE_COUNT','_CI]\x20API\x20failed\x20count\x20updated:\x20','join','HqKjC','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','LFraJ','kwfgZ','gzdJW','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','_CI]\x20Error\x20sending\x20failed\x20test\x20','dGYfy','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','putFailedTests','message','writeState','shouldFailFast','workingDir','cleanup','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','getFailedTestsCount','pollingInterval','cMgIW','fSKSw','BROWSERSTACK_BUILD_RUN_IDENTIFIER','SZTdy','lastAPIFailedCount','YWeHo','pmkot','5dwIFyT','_CI]\x20Error\x20during\x20polling\x20logic:\x20','ulGvS','add','1485612wdHJmk','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','failFastConfig','catch','uniqueFailedTests','readState','fVpEw','size','recordTestResult','failFastActiveMarkerPath',',\x20CI\x20Mode:\x20','YhfEs','SKJTW','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','fileHelper','./fileHelper','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','stateFilePath','writeFileSync','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','2165972MoGbiG','QRILz','isCIMode','jHrHJ','\x0aStack:\x20','failureThresholdCount',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','Lhofe','_sendFailedTestsToAPI','failFast.active',',\x20threshold:\x20','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','buildRunIdentifier','FailFastManager','failFastActive','_fetchAPIFailedCount','reportedFailuresToAPI'];a139_0x42fc=function(){return _0x1e86c9;};return a139_0x42fc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a140_0x12d8(_0x1625dd,_0x5052a8){const _0x5a2452=a140_0x5a24();return a140_0x12d8=function(_0x12d82d,_0x45a8b0){_0x12d82d=_0x12d82d-0xe4;let _0x37a779=_0x5a2452[_0x12d82d];return _0x37a779;},a140_0x12d8(_0x1625dd,_0x5052a8);}const a140_0x1f1989=a140_0x12d8;(function(_0x5a3178,_0x195bcd){const _0x35c62c=a140_0x12d8,_0x11ada0=_0x5a3178();while(!![]){try{const _0x3003cc=parseInt(_0x35c62c(0x10b))/0x1*(parseInt(_0x35c62c(0x120))/0x2)+-parseInt(_0x35c62c(0xf5))/0x3+-parseInt(_0x35c62c(0xfb))/0x4*(parseInt(_0x35c62c(0x11a))/0x5)+-parseInt(_0x35c62c(0xec))/0x6+parseInt(_0x35c62c(0x111))/0x7+parseInt(_0x35c62c(0xee))/0x8*(-parseInt(_0x35c62c(0x121))/0x9)+parseInt(_0x35c62c(0x101))/0xa;if(_0x3003cc===_0x195bcd)break;else _0x11ada0['push'](_0x11ada0['shift']());}catch(_0x59030f){_0x11ada0['push'](_0x11ada0['shift']());}}}(a140_0x5a24,0x6dd06));function a140_0x5a24(){const _0x37e613=['2798635UJMpaw','from','status','writeState','openSync',']\x20Error\x20creating\x20state\x20file:\x20','releaseLock','QCsfo','recordTestResult','1049885ErDCgU','writeFileSync','acquireLock','unlinkSync','existsSync','winstonLogger','21244tvtxfw','43812aeuUrJ','QDAjQ','yUoTB','../logger','ZVOIH','2|1|4|3|0','defaultState',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.','failed','4108416dFPYOj','stringify','912dcAyLb','isArray','utf8','LCsVH','AnoQW','uniqueFailedTests','warn','1112103NUUFhe','readState',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','lockFilePath','EEXIST','ieKUX','16drPzfr','updateAPIFailedCount','adJlN','add','function','failFastConfig','16611520uvlfvH','error','stack',']\x20Error\x20reading\x20state\x20file:\x20','exports','lastAPIFailedCount','jWNEv','stateFilePath','message','newState','79qCDvLV','fullName',']\x20Error\x20writing\x20state\x20file:\x20',']\x20Error\x20releasing\x20lock:\x20','closeSync','parse'];a140_0x5a24=function(){return _0x37e613;};return a140_0x5a24();}const fs=require('fs'),logger=require(a140_0x1f1989(0xe6))[a140_0x1f1989(0x11f)],TAG='FailFastFileHelper';class FileHelper{constructor(_0x5f1bb5,_0x1cd243,_0x381e3c,_0x4ff0e4){const _0x10f687=a140_0x1f1989,_0x5c251d={};_0x5c251d[_0x10f687(0xfd)]=_0x10f687(0xe8),_0x5c251d[_0x10f687(0xfa)]=_0x10f687(0xf0);const _0x1eb862=_0x5c251d,_0x5ca045=_0x1eb862['adJlN']['split']('|');let _0x332146=0x0;while(!![]){switch(_0x5ca045[_0x332146++]){case'0':if(!fs[_0x10f687(0x11e)](this[_0x10f687(0x108)]))try{fs[_0x10f687(0x11b)](this[_0x10f687(0x108)],'{}',_0x1eb862[_0x10f687(0xfa)]);}catch(_0x39cd2a){logger[_0x10f687(0x102)]('['+TAG+_0x10f687(0x116)+_0x39cd2a[_0x10f687(0x109)]+'\x20'+_0x39cd2a[_0x10f687(0x103)]);}continue;case'1':this[_0x10f687(0x108)]=_0x1cd243;continue;case'2':this[_0x10f687(0x100)]=_0x5f1bb5;continue;case'3':this[_0x10f687(0xe9)]=_0x4ff0e4;continue;case'4':this['lockFilePath']=_0x381e3c;continue;}break;}}async[a140_0x1f1989(0x11c)](){const _0x3dea3d=a140_0x1f1989,_0x37f033={};_0x37f033[_0x3dea3d(0xf2)]=function(_0x5a204b,_0x39b597){return _0x5a204b===_0x39b597;},_0x37f033[_0x3dea3d(0x107)]=_0x3dea3d(0xf9);const _0x575765=_0x37f033;let _0xc91174;try{return _0xc91174=fs[_0x3dea3d(0x115)](this[_0x3dea3d(0xf8)],'wx'),_0xc91174;}catch(_0x2da8bf){if(_0x575765['AnoQW'](_0x2da8bf['code'],_0x575765['jWNEv']))return null;throw _0x2da8bf;}}async[a140_0x1f1989(0x117)](_0x1e2716){const _0x332796=a140_0x1f1989;if(_0x1e2716)try{fs[_0x332796(0x10f)](_0x1e2716),fs[_0x332796(0x11d)](this[_0x332796(0xf8)]);}catch(_0x184f49){logger[_0x332796(0x102)]('['+TAG+_0x332796(0x10e)+_0x184f49['message']+'\x20'+_0x184f49[_0x332796(0x103)]);}}[a140_0x1f1989(0xf6)](){const _0x1afb32=a140_0x1f1989,_0x415891={};_0x415891[_0x1afb32(0xe5)]=_0x1afb32(0xf0);const _0x47a94c=_0x415891;try{const _0x4c6a07=fs['readFileSync'](this[_0x1afb32(0x108)],_0x47a94c[_0x1afb32(0xe5)]);return JSON[_0x1afb32(0x110)](_0x4c6a07);}catch(_0x3ee880){return logger[_0x1afb32(0x102)]('['+TAG+_0x1afb32(0x104)+_0x3ee880[_0x1afb32(0x109)]+'\x20'+_0x3ee880['stack']),null;}}async['writeState'](_0x55cfcc){const _0x18ae86=a140_0x1f1989,_0x303efb={..._0x55cfcc,'uniqueFailedTests':Array['isArray'](_0x55cfcc[_0x18ae86(0xf3)])?_0x55cfcc[_0x18ae86(0xf3)]:Array[_0x18ae86(0x112)](_0x55cfcc['uniqueFailedTests']||[])};try{fs[_0x18ae86(0x11b)](this[_0x18ae86(0x108)],JSON['stringify'](_0x303efb,null,0x2));}catch(_0x22ecc9){logger[_0x18ae86(0x102)]('['+TAG+_0x18ae86(0x10d)+_0x22ecc9[_0x18ae86(0x109)]+'\x20'+_0x22ecc9[_0x18ae86(0x103)]);throw _0x22ecc9;}}async[a140_0x1f1989(0x119)](_0x147098,_0x15a871){const _0x22a8bd=a140_0x1f1989,_0x166c98={};_0x166c98[_0x22a8bd(0xf1)]=function(_0x3fd413,_0x547896){return _0x3fd413!==_0x547896;},_0x166c98[_0x22a8bd(0xe7)]=_0x22a8bd(0xff),_0x166c98[_0x22a8bd(0x118)]=function(_0x2b4b47,_0x55e414){return _0x2b4b47===_0x55e414;},_0x166c98[_0x22a8bd(0xe4)]=_0x22a8bd(0xeb);const _0x13388e=_0x166c98,_0x5ce482=await this[_0x22a8bd(0x11c)]();if(!_0x5ce482)return logger['warn']('['+TAG+_0x22a8bd(0xf7)),{'newState':this['readState']()||this[_0x22a8bd(0xe9)],'isNewFailure':![]};try{let _0x39fae7=this[_0x22a8bd(0xf6)]();!_0x39fae7&&(_0x39fae7=JSON[_0x22a8bd(0x110)](JSON[_0x22a8bd(0xed)](this[_0x22a8bd(0xe9)])));if(!_0x39fae7[_0x22a8bd(0xf3)]||_0x13388e['LCsVH'](typeof _0x39fae7[_0x22a8bd(0xf3)][Symbol['iterator']],_0x13388e['ZVOIH']))_0x39fae7[_0x22a8bd(0xf3)]=new Set();else Array[_0x22a8bd(0xef)](_0x39fae7[_0x22a8bd(0xf3)])&&(_0x39fae7[_0x22a8bd(0xf3)]=new Set(_0x39fae7[_0x22a8bd(0xf3)]));_0x39fae7['totalTests']=_0x15a871;let _0x43a352=![];_0x13388e[_0x22a8bd(0x118)](_0x147098[_0x22a8bd(0x113)],_0x13388e[_0x22a8bd(0xe4)])&&(_0x39fae7['failedTests']+=0x1,!_0x39fae7[_0x22a8bd(0xf3)]['has'](_0x147098[_0x22a8bd(0x10c)])&&(_0x39fae7[_0x22a8bd(0xf3)][_0x22a8bd(0xfe)](_0x147098[_0x22a8bd(0x10c)]),_0x43a352=!![]));await this[_0x22a8bd(0x114)](_0x39fae7);const _0x2ac237={};return _0x2ac237[_0x22a8bd(0x10a)]=_0x39fae7,_0x2ac237['isNewFailure']=_0x43a352,_0x2ac237;}finally{await this[_0x22a8bd(0x117)](_0x5ce482);}}async[a140_0x1f1989(0xfc)](_0x124226){const _0x36439c=a140_0x1f1989,_0x5846fc=await this[_0x36439c(0x11c)]();if(!_0x5846fc)return logger[_0x36439c(0xf4)]('['+TAG+_0x36439c(0xea)),this['readState']()||this[_0x36439c(0xe9)];try{let _0x283d6a=this[_0x36439c(0xf6)]();return!_0x283d6a&&(_0x283d6a=JSON[_0x36439c(0x110)](JSON['stringify'](this[_0x36439c(0xe9)]))),_0x283d6a[_0x36439c(0x106)]=_0x124226,await this['writeState'](_0x283d6a),_0x283d6a;}finally{await this[_0x36439c(0x117)](_0x5846fc);}}}module[a140_0x1f1989(0x105)]=FileHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a141_0x5b2ee0=a141_0x52ad;function a141_0x52ad(_0xb6187f,_0x3942be){const _0x177ac9=a141_0x177a();return a141_0x52ad=function(_0x52ad50,_0x14f253){_0x52ad50=_0x52ad50-0xae;let _0x8e346d=_0x177ac9[_0x52ad50];return _0x8e346d;},a141_0x52ad(_0xb6187f,_0x3942be);}(function(_0xa33482,_0x1c6213){const _0x373eca=a141_0x52ad,_0x3cdc6a=_0xa33482();while(!![]){try{const _0x41445d=-parseInt(_0x373eca(0xd0))/0x1+-parseInt(_0x373eca(0xe3))/0x2+parseInt(_0x373eca(0xc6))/0x3+-parseInt(_0x373eca(0xbc))/0x4+-parseInt(_0x373eca(0xcb))/0x5*(-parseInt(_0x373eca(0xdb))/0x6)+-parseInt(_0x373eca(0xd9))/0x7+-parseInt(_0x373eca(0xd1))/0x8*(-parseInt(_0x373eca(0xb4))/0x9);if(_0x41445d===_0x1c6213)break;else _0x3cdc6a['push'](_0x3cdc6a['shift']());}catch(_0x104f7a){_0x3cdc6a['push'](_0x3cdc6a['shift']());}}}(a141_0x177a,0x40e02));const os=require('os'),path=require('path'),fs=require('fs'),logger=require(a141_0x5b2ee0(0xb1))['winstonLogger'],RETRY_TESTS_ON_FAILURE='retryTestsOnFailure',ABORT_BUILD_ON_FAILURE=a141_0x5b2ee0(0xe2),RUN_PREVIOUSLY_FAILED_FIRST='runPreviouslyFailedFirst',RERUN_PREVIOUSLY_FAILED=a141_0x5b2ee0(0xc0),SKIP_FLAKY_AND_FAILED=a141_0x5b2ee0(0xda),ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set(['jest']);class TestOrdering{constructor(){this['enabled']=![],this['name']=null;}[a141_0x5b2ee0(0xdc)](_0x1eae47){const _0x2dbe2e=a141_0x5b2ee0;this[_0x2dbe2e(0xd4)]=!![],this[_0x2dbe2e(0xe1)]=_0x1eae47;}[a141_0x5b2ee0(0xe4)](){const _0x467e0b=a141_0x5b2ee0;this['enabled']=![],this[_0x467e0b(0xe1)]=null;}[a141_0x5b2ee0(0xe5)](){const _0x4b44ac=a141_0x5b2ee0;return this[_0x4b44ac(0xd4)];}['getName'](){const _0x557d2=a141_0x5b2ee0;return this[_0x557d2(0xe1)];}}function a141_0x177a(){const _0x1c1614=['enabled','maxRetries','_instance','runPreviouslyFailedFirst','getRetryCount','3574900xPAprW','skipFlakyandFailed','2399454cfhmNr','enable','_setRunPreviouslyFailedFirst','getBuildStartData','tmpdir','Jmgxb','name','abortBuildOnFailure','117466HTKCwW','disable','getEnabled','getName','appendFileSync','abort_build_','isAbortBuildOnFailureEnabled','../logger','.txt','retry_tests_on_failure','234ZQanVC','_setTestOrdering','existsSync','testOrderingEnabled','maxFailures','skip_failing_and_flaky','getRunPreviouslyFailedFirst','testOrchestrationOptions','267172WmLChV','failed_tests_','skipFlakyAndFailed','_setSkipFlakyAndFailed','rerunPreviouslyFailed','env','isAbortBuildOnFailureSupported','BROWSERSTACK_TESTHUB_UUID','has','getRerunPreviouslyFailed','1092252grhbiS','wzwMh','_setRerunPreviouslyFailed','testOrdering','checkAbortBuildFileExists','5Okvnxv','rerun_previously_failed','getTestOrderingName','isRetryEnabled','config','516665KBowht','201424ymsgqQ','getSkipFlakyAndFailed','getFailureThreshold'];a141_0x177a=function(){return _0x1c1614;};return a141_0x177a();}class OrchestrationUtils{static [a141_0x5b2ee0(0xd6)]=null;constructor(_0x976ff2){const _0x15b2cd=a141_0x5b2ee0,_0x1c2f57={};_0x1c2f57[_0x15b2cd(0xe0)]=function(_0xa6d63a,_0x2e5c07){return _0xa6d63a||_0x2e5c07;};const _0x3fa329=_0x1c2f57;this[_0x15b2cd(0xd7)]=![],this[_0x15b2cd(0xc0)]=![],this[_0x15b2cd(0xbe)]=![],this[_0x15b2cd(0xc9)]=new TestOrdering(),this[_0x15b2cd(0xcf)]=_0x3fa329[_0x15b2cd(0xe0)](_0x976ff2,{});const _0x1b4794=_0x976ff2&&_0x976ff2[_0x15b2cd(0xbb)]||{};this['_setRunPreviouslyFailedFirst'](_0x1b4794[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x15b2cd(0xc8)](_0x1b4794[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x15b2cd(0xbf)](_0x1b4794[SKIP_FLAKY_AND_FAILED]||![]);}static['getInstance'](_0x33d7be){const _0x2a6f47=a141_0x5b2ee0;return!OrchestrationUtils['_instance']&&_0x33d7be&&(OrchestrationUtils[_0x2a6f47(0xd6)]=new OrchestrationUtils(_0x33d7be)),OrchestrationUtils[_0x2a6f47(0xd6)];}[a141_0x5b2ee0(0xce)](){const _0x4dde1e=a141_0x5b2ee0,_0x21c08c=(this['config'][_0x4dde1e(0xbb)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x21c08c[_0x4dde1e(0xd4)];}[a141_0x5b2ee0(0xd8)](){const _0xbbd92e=a141_0x5b2ee0,_0x13ac8f=(this[_0xbbd92e(0xcf)][_0xbbd92e(0xbb)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x388301=0x0;return this[_0xbbd92e(0xce)](this[_0xbbd92e(0xcf)])&&(_0x388301=_0x13ac8f[_0xbbd92e(0xd5)]||0x1),_0x388301;}['getOrchestrationData'](){const _0x504354=a141_0x5b2ee0,_0x492ce4=this[_0x504354(0xcf)][_0x504354(0xbb)]||{},_0x100035={};for(const _0x22aa78 in _0x492ce4){ALLOWED_ORCHESTRATION_KEYS[_0x504354(0xc4)](_0x22aa78)&&(_0x100035[_0x22aa78]=_0x492ce4[_0x22aa78]);}return _0x100035;}[a141_0x5b2ee0(0xca)](){const _0x49395f=a141_0x5b2ee0,_0x6ef9ba=process[_0x49395f(0xc1)][_0x49395f(0xc3)],_0x419724=path['join'](os['tmpdir'](),_0x49395f(0xaf)+_0x6ef9ba);return fs[_0x49395f(0xb6)](_0x419724);}['writeFailureToFile'](_0x592002){const _0x1aab59=a141_0x5b2ee0,_0x802be0=process[_0x1aab59(0xc1)]['BROWSERSTACK_TESTHUB_UUID'],_0x4cea64=path['join'](os[_0x1aab59(0xdf)](),_0x1aab59(0xbd)+_0x802be0+_0x1aab59(0xb2));fs[_0x1aab59(0xae)](_0x4cea64,_0x592002+'\x0a');}[a141_0x5b2ee0(0xc2)](_0x427dad){const _0xa07e84=a141_0x5b2ee0,_0x300f42={};_0x300f42[_0xa07e84(0xc7)]=function(_0x1bc835,_0x3ebd85){return _0x1bc835||_0x3ebd85;};const _0x111c1f=_0x300f42;return ABORT_BUILD_SUPPORTED_FRAMEWORKS['has'](_0x111c1f[_0xa07e84(0xc7)](_0x427dad,'')['toLowerCase']());}[a141_0x5b2ee0(0xb0)](){const _0x49eb5f=a141_0x5b2ee0,_0x435aaa=(this[_0x49eb5f(0xcf)][_0x49eb5f(0xbb)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x435aaa['enabled'];}[a141_0x5b2ee0(0xd3)](){const _0xbf16c1=a141_0x5b2ee0,_0x2dc701=(this[_0xbf16c1(0xcf)]['testOrchestrationOptions']||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x2dc701[_0xbf16c1(0xb8)]||0x5;;}[a141_0x5b2ee0(0xba)](){const _0x198fdb=a141_0x5b2ee0;return this[_0x198fdb(0xd7)];}[a141_0x5b2ee0(0xdd)](_0x1ee3c2){const _0x5580ce=a141_0x5b2ee0;this[_0x5580ce(0xd7)]=!!_0x1ee3c2,this['_setTestOrdering']();}[a141_0x5b2ee0(0xc5)](){const _0x4b142a=a141_0x5b2ee0;return this[_0x4b142a(0xc0)];}[a141_0x5b2ee0(0xc8)](_0x3c49e7){const _0x6abc9a=a141_0x5b2ee0;this[_0x6abc9a(0xc0)]=!!_0x3c49e7,this[_0x6abc9a(0xb5)]();}[a141_0x5b2ee0(0xd2)](){const _0x3ced9f=a141_0x5b2ee0;return this[_0x3ced9f(0xbe)];}[a141_0x5b2ee0(0xbf)](_0x1373a2){const _0x3f3115=a141_0x5b2ee0;this['skipFlakyAndFailed']=!!_0x1373a2,this[_0x3f3115(0xb5)]();}['_setTestOrdering'](){const _0x2778fb=a141_0x5b2ee0;if(this[_0x2778fb(0xd7)])this[_0x2778fb(0xc0)]=![],this[_0x2778fb(0xbe)]=![],this[_0x2778fb(0xc9)][_0x2778fb(0xdc)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this['rerunPreviouslyFailed'])this[_0x2778fb(0xd7)]=![],this[_0x2778fb(0xbe)]=![],this['testOrdering'][_0x2778fb(0xdc)](RERUN_PREVIOUSLY_FAILED);else this['skipFlakyAndFailed']?(this[_0x2778fb(0xd7)]=![],this[_0x2778fb(0xc0)]=![],this[_0x2778fb(0xc9)][_0x2778fb(0xdc)](SKIP_FLAKY_AND_FAILED)):this['testOrdering'][_0x2778fb(0xe4)]();}}[a141_0x5b2ee0(0xb7)](){const _0x11d6ba=a141_0x5b2ee0;return this[_0x11d6ba(0xc9)][_0x11d6ba(0xe5)]();}[a141_0x5b2ee0(0xcd)](){const _0xc0c36e=a141_0x5b2ee0;if(this['testOrdering'][_0xc0c36e(0xe5)]())return this[_0xc0c36e(0xc9)][_0xc0c36e(0xe6)]();return null;}[a141_0x5b2ee0(0xde)](){const _0x11883b=a141_0x5b2ee0,_0x4e55bf={};return _0x4e55bf[_0x11883b(0xcc)]={'enabled':this[_0x11883b(0xc5)]()},_0x4e55bf['run_previously_failed_first']={'enabled':this[_0x11883b(0xba)]()},_0x4e55bf[_0x11883b(0xb9)]={'enabled':this[_0x11883b(0xd2)]()},this[_0x11883b(0xce)]()&&(_0x4e55bf[_0x11883b(0xb3)]={'enabled':!![],'max_retries':this[_0x11883b(0xd8)]()}),this['isAbortBuildOnFailureEnabled']()&&(_0x4e55bf['abort_build_on_failure']={'enabled':!![],'max_failures':this[_0x11883b(0xd3)]()}),_0x4e55bf;}}module['exports']=OrchestrationUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a142_0x5691(){const _0x48a529=[']\x20Error\x20in\x20getFailedTestsCount:\x20','request','stack','YosbP','Test\x20added','debug','zdkBd','12KKVgIY','iupFv','LajEM','6398018pKIwCp','yIBBj','320UVYtuB','PUT','lNSaD','8FBBgWD','27624ofjFgi','body','9141797tXteMH','AgpKu','ijGTU','uWsZI','headers','failedTestsCount','gragf','status','qVzye','YCtcr','XCtWS','Bearer\x20','82629xbyFSy','870uYFGeM','POST',']\x20Sending\x20GET\x20to\x20','105141EGLYAH','./constants','WFjhL','36180048JNRnWQ','14phLkKM','\x20with\x20headers:\x20','BROWSERSTACK_TESTHUB_JWT','Content-Type','fhxZz','write','undefined','&buildRunIdentifier=',']\x20Error\x20in\x20putFailedTests:\x20',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','end','?buildName=','zxyWU','xyZaJ','parse','nrSUq','SnYSu','AEiFp','\x20and\x20token:\x20','zMSNG','GqgLE','RequestUtils','getFailedTestsCount','url','Authorization','message','86230OgYjoC',',\x20buildRunIdentifier=','oaZDX','\x20and\x20data:\x20','\x20request\x20to\x20','stringify',',\x20status:\x20',',\x20projectName=','error','getSplitFiles','Failed\x20to\x20parse\x20JSON\x20response:\x20','postSplitFiles','../logger','itEVm',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','_request','winstonLogger','exports'];a142_0x5691=function(){return _0x48a529;};return a142_0x5691();}const a142_0x5a9697=a142_0x1316;(function(_0x1988cd,_0x49b073){const _0x5698fe=a142_0x1316,_0x4ce4f0=_0x1988cd();while(!![]){try{const _0x73e460=parseInt(_0x5698fe(0x183))/0x1*(parseInt(_0x5698fe(0x169))/0x2)+parseInt(_0x5698fe(0x165))/0x3*(parseInt(_0x5698fe(0x19c))/0x4)+parseInt(_0x5698fe(0x14f))/0x5*(parseInt(_0x5698fe(0x153))/0x6)+parseInt(_0x5698fe(0x155))/0x7*(parseInt(_0x5698fe(0x152))/0x8)+parseInt(_0x5698fe(0x161))/0x9*(parseInt(_0x5698fe(0x162))/0xa)+parseInt(_0x5698fe(0x19f))/0xb+-parseInt(_0x5698fe(0x168))/0xc;if(_0x73e460===_0x49b073)break;else _0x4ce4f0['push'](_0x4ce4f0['shift']());}catch(_0x562c74){_0x4ce4f0['push'](_0x4ce4f0['shift']());}}}(a142_0x5691,0xa4bc7));const https=require('https'),{URL}=require(a142_0x5a9697(0x180)),logger=require(a142_0x5a9697(0x18f))[a142_0x5a9697(0x193)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a142_0x5a9697(0x166)),TAG=a142_0x5a9697(0x17e);class RequestUtils{static async[a142_0x5a9697(0x192)](_0x448224,_0x52ef9a,_0x554ba4=null){const _0x1801f9=a142_0x5a9697,_0x3cf456={'AgpKu':function(_0x2e6d78,_0x166d7b){return _0x2e6d78(_0x166d7b);},'GqgLE':'data','zdkBd':_0x1801f9(0x173),'WFjhL':_0x1801f9(0x18b),'XCtWS':function(_0x1f5820,_0xcdc000){return _0x1f5820===_0xcdc000;},'SnYSu':_0x1801f9(0x163),'AEiFp':function(_0x26e468,_0x3d66ec){return _0x26e468===_0x3d66ec;},'lNSaD':_0x1801f9(0x150),'yIBBj':'application/json','nYLgU':function(_0x1571bb,_0x19499e){return _0x1571bb+_0x19499e;}},_0xdefcf0=process['env'][_0x1801f9(0x16b)]||'',_0x3cdbbe={};_0x3cdbbe[_0x1801f9(0x181)]=_0x1801f9(0x160)+_0xdefcf0,_0x3cdbbe[_0x1801f9(0x16c)]=_0x3cf456[_0x1801f9(0x1a0)];const _0x5f485b=_0x3cdbbe,{hostname:_0x23c967,pathname:_0x4ecd36,search:_0x1fed42}=new URL(_0x52ef9a),_0x59c7b1={'hostname':_0x23c967,'path':_0x3cf456['nYLgU'](_0x4ecd36,_0x1fed42),'method':_0x448224,'headers':_0x5f485b};return logger[_0x1801f9(0x19a)]('['+TAG+']\x20Sending\x20'+_0x448224+_0x1801f9(0x187)+_0x52ef9a+_0x1801f9(0x16a)+JSON['stringify'](_0x5f485b)+_0x1801f9(0x186)+JSON[_0x1801f9(0x188)](_0x554ba4)+_0x1801f9(0x17b)+_0xdefcf0),new Promise((_0x5be915,_0x5a9ce1)=>{const _0x18a800=_0x1801f9,_0x2f0f97={'nIlRw':function(_0x4507ad,_0x29a90f){return _0x3cf456['AgpKu'](_0x4507ad,_0x29a90f);},'iupFv':function(_0x5c51d1,_0x49e7c3){const _0x59f82f=a142_0x1316;return _0x3cf456[_0x59f82f(0x156)](_0x5c51d1,_0x49e7c3);},'VvOBY':_0x3cf456[_0x18a800(0x17d)],'YCtcr':_0x3cf456[_0x18a800(0x19b)]},_0x43d3cf=https[_0x18a800(0x196)](_0x59c7b1,_0x5a309a=>{const _0x431ad9=_0x18a800;let _0x1f9689='';_0x5a309a['on'](_0x2f0f97['VvOBY'],_0x46f093=>{_0x1f9689+=_0x46f093;}),_0x5a309a['on'](_0x2f0f97[_0x431ad9(0x15e)],()=>{const _0x3eccd8=_0x431ad9;try{const _0x751c1e=_0x1f9689?JSON[_0x3eccd8(0x177)](_0x1f9689):{},_0x55e8be={};_0x55e8be[_0x3eccd8(0x15c)]=_0x5a309a['statusCode'],_0x55e8be[_0x3eccd8(0x154)]=_0x751c1e,_0x55e8be[_0x3eccd8(0x159)]=_0x5a309a[_0x3eccd8(0x159)],_0x2f0f97['nIlRw'](_0x5be915,_0x55e8be);}catch(_0x54c024){logger['error']('['+TAG+']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x1f9689+'\x20-\x20'+_0x54c024['message']+'\x20'+_0x54c024['stack']),_0x2f0f97['iupFv'](_0x5a9ce1,new Error(_0x3eccd8(0x18d)+_0x54c024['message']));}});});_0x43d3cf['on'](_0x3cf456[_0x18a800(0x167)],_0xdb3db2=>{const _0x38ceb4=_0x18a800;logger[_0x38ceb4(0x18b)]('['+TAG+']\x20Request\x20failed\x20for\x20'+_0x448224+'\x20'+_0x52ef9a+':\x20'+_0xdb3db2[_0x38ceb4(0x182)]+'\x20'+_0xdb3db2[_0x38ceb4(0x197)]),_0x2f0f97[_0x38ceb4(0x19d)](_0x5a9ce1,_0xdb3db2);}),_0x554ba4&&(_0x3cf456[_0x18a800(0x15f)](_0x448224,_0x3cf456[_0x18a800(0x179)])||_0x3cf456[_0x18a800(0x17a)](_0x448224,_0x3cf456[_0x18a800(0x151)]))&&_0x43d3cf[_0x18a800(0x16e)](JSON[_0x18a800(0x188)](_0x554ba4)),_0x43d3cf[_0x18a800(0x173)]();});}static async[a142_0x5a9697(0x18e)](_0x59f0da){const _0x3bd9a9=a142_0x5a9697,_0x4357c1={};_0x4357c1[_0x3bd9a9(0x158)]=_0x3bd9a9(0x163),_0x4357c1[_0x3bd9a9(0x15b)]=function(_0x1f1397,_0x29ae7b){return _0x1f1397===_0x29ae7b;};const _0x52137f=_0x4357c1,_0x4746e7=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x3e64de=await this['_request'](_0x52137f[_0x3bd9a9(0x158)],_0x4746e7,_0x59f0da);return _0x52137f['gragf'](_0x3e64de[_0x3bd9a9(0x15c)],0xc8)?logger[_0x3bd9a9(0x19a)]('['+TAG+_0x3bd9a9(0x191)+_0x4746e7):logger['error']('['+TAG+']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20'+_0x4746e7+':\x20'+JSON['stringify'](_0x3e64de[_0x3bd9a9(0x154)])+_0x3bd9a9(0x189)+_0x3e64de[_0x3bd9a9(0x15c)]),_0x3e64de;}catch(_0x29d5d9){logger[_0x3bd9a9(0x18b)]('['+TAG+_0x3bd9a9(0x171)+_0x29d5d9['message']+'\x20'+_0x29d5d9[_0x3bd9a9(0x197)]);const _0x68fef6={};_0x68fef6[_0x3bd9a9(0x182)]=_0x29d5d9['message'];const _0x24adc3={};return _0x24adc3['status']=0x1f4,_0x24adc3[_0x3bd9a9(0x154)]=_0x68fef6,_0x24adc3;}}static async[a142_0x5a9697(0x18c)](_0x2cffed){const _0x2d6b00=a142_0x5a9697,_0xdd4cb={};_0xdd4cb['PdCbJ']='GET',_0xdd4cb[_0x2d6b00(0x190)]=function(_0x4b9d25,_0x206c69){return _0x4b9d25===_0x206c69;};const _0x464be6=_0xdd4cb;try{const _0x2f0e7f=await this[_0x2d6b00(0x192)](_0x464be6['PdCbJ'],_0x2cffed);if(_0x464be6[_0x2d6b00(0x190)](_0x2f0e7f[_0x2d6b00(0x15c)],0xc8))return _0x2f0e7f[_0x2d6b00(0x154)];return{};}catch(_0x235115){return logger[_0x2d6b00(0x18b)]('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x235115[_0x2d6b00(0x182)]+'\x20'+_0x235115['stack']),{};}}static async['putFailedTests'](_0x1ee320){const _0x137d19=a142_0x5a9697,_0x251c4c={};_0x251c4c[_0x137d19(0x19e)]=_0x137d19(0x150),_0x251c4c['zxyWU']=function(_0x353921,_0x33abc8){return _0x353921===_0x33abc8;},_0x251c4c['fVjet']=function(_0x41b44a,_0x27caa5){return _0x41b44a===_0x27caa5;},_0x251c4c['oaZDX']=_0x137d19(0x199);const _0x313dfc=_0x251c4c,_0x21194d=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x26e3d6=await this[_0x137d19(0x192)](_0x313dfc[_0x137d19(0x19e)],_0x21194d,_0x1ee320);if(_0x313dfc[_0x137d19(0x175)](_0x26e3d6['status'],0xc8)&&_0x26e3d6[_0x137d19(0x154)]&&_0x313dfc['fVjet'](_0x26e3d6[_0x137d19(0x154)][_0x137d19(0x182)],_0x313dfc[_0x137d19(0x185)]))return!![];return![];}catch(_0x5d1280){logger[_0x137d19(0x18b)]('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x5d1280[_0x137d19(0x182)]+'\x20'+_0x5d1280[_0x137d19(0x197)]);const _0x1c6972={};_0x1c6972[_0x137d19(0x182)]=_0x5d1280[_0x137d19(0x182)];const _0x55aa04={};return _0x55aa04[_0x137d19(0x15c)]=0x1f4,_0x55aa04[_0x137d19(0x154)]=_0x1c6972,_0x55aa04;}}static async[a142_0x5a9697(0x17f)](_0x123080){const _0x4bbb54=a142_0x5a9697,_0x5c13cb={'oHWoy':function(_0x1d638f,_0x37501c){return _0x1d638f||_0x37501c;},'BIPYS':'Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','nrSUq':function(_0x271258,_0x55ea12){return _0x271258(_0x55ea12);},'ijGTU':function(_0x307fc5,_0x348015){return _0x307fc5(_0x348015);},'xHyqJ':function(_0x59bd33,_0x613877){return _0x59bd33(_0x613877);},'zMSNG':'GET','fhxZz':function(_0x579dbc,_0x350d81){return _0x579dbc===_0x350d81;},'YosbP':function(_0xbc81da,_0x43958a){return _0xbc81da!==_0x43958a;},'xyZaJ':_0x4bbb54(0x16f),'qVzye':function(_0x40c282,_0x570362){return _0x40c282(_0x570362);}},{buildName:_0x2e5f02,buildRunIdentifier:_0x378ae8,projectName:_0x282674}=_0x123080;if(_0x5c13cb['oHWoy'](!_0x2e5f02,!_0x378ae8)||!_0x282674){logger[_0x4bbb54(0x18b)]('['+TAG+_0x4bbb54(0x172)+_0x2e5f02+_0x4bbb54(0x184)+_0x378ae8+_0x4bbb54(0x18a)+_0x282674);const _0x1b07ef={};_0x1b07ef[_0x4bbb54(0x182)]=_0x5c13cb['BIPYS'];const _0x5cbd1c={};return _0x5cbd1c[_0x4bbb54(0x15c)]=0x190,_0x5cbd1c[_0x4bbb54(0x154)]=_0x1b07ef,_0x5cbd1c;}const _0x4fc6db=_0x4bbb54(0x174)+_0x5c13cb[_0x4bbb54(0x178)](encodeURIComponent,_0x2e5f02)+_0x4bbb54(0x170)+_0x5c13cb[_0x4bbb54(0x157)](encodeURIComponent,_0x378ae8)+'&projectName='+_0x5c13cb['xHyqJ'](encodeURIComponent,_0x282674),_0x4d888e=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x4fc6db;try{logger[_0x4bbb54(0x19a)]('['+TAG+_0x4bbb54(0x164)+_0x4d888e);let _0x5ba5e8=0x0;const _0x233575=await this['_request'](_0x5c13cb[_0x4bbb54(0x17c)],_0x4d888e);return _0x5c13cb[_0x4bbb54(0x16d)](_0x233575[_0x4bbb54(0x15c)],0xc8)&&_0x233575[_0x4bbb54(0x154)]&&_0x5c13cb[_0x4bbb54(0x198)](typeof _0x233575[_0x4bbb54(0x154)][_0x4bbb54(0x15a)],_0x5c13cb[_0x4bbb54(0x176)])&&(_0x5ba5e8=_0x5c13cb[_0x4bbb54(0x15d)](Number,_0x233575[_0x4bbb54(0x154)][_0x4bbb54(0x15a)])),_0x5ba5e8;}catch(_0x1c5a8b){logger[_0x4bbb54(0x18b)]('['+TAG+_0x4bbb54(0x195)+_0x1c5a8b[_0x4bbb54(0x182)]+'\x20'+_0x1c5a8b['stack']);const _0x4e71d6={};_0x4e71d6[_0x4bbb54(0x182)]=_0x1c5a8b[_0x4bbb54(0x182)];const _0x409f3d={};return _0x409f3d[_0x4bbb54(0x15c)]=0x1f4,_0x409f3d['body']=_0x4e71d6,_0x409f3d;}}}function a142_0x1316(_0x27acda,_0xdca9f4){const _0x5691ec=a142_0x5691();return a142_0x1316=function(_0x131664,_0x2d1475){_0x131664=_0x131664-0x14f;let _0x233556=_0x5691ec[_0x131664];return _0x233556;},a142_0x1316(_0x27acda,_0xdca9f4);}module[a142_0x5a9697(0x194)]=RequestUtils;
|
|
1
|
+
const a142_0x5bff22=a142_0x1c62;function a142_0x3dd2(){const _0x5e352f=['111495QoOeiB','TXoOk','\x20with\x20headers:\x20','pcrPy',']\x20Request\x20failed\x20for\x20','postSplitFiles','../logger','getSplitFiles','4951gLEljb','14923792iLHgxH','1541687WOYDcJ','tYdnG','\x20request\x20to\x20','CyOzi','getFailedTestsCount','XLXfg','LvdHX','UyzrE','FBHlW','stack','VbjrH','_request','ohfgQ','PwsOg',',\x20buildRunIdentifier=','1308000caycbF','Bearer\x20','https','./constants','2NFSPUX','message','debug','write','pATrw','DafEp','parse','TaABI','error','1140072KWBpwQ','GET',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','PUT',']\x20Sending\x20GET\x20to\x20','TLHDL','stringify','end',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','\x20and\x20token:\x20',']\x20Sending\x20','cgpRD',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','RequestUtils','\x20and\x20data:\x20','3730554UkaUMF','hJNvs','status','body','BROWSERSTACK_TESTHUB_JWT','MkxgN','headers','POST','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','fmLGb','Content-Type','YZOQP',']\x20Error\x20in\x20putFailedTests:\x20','pRyEc','application/json','winstonLogger','vGunD','data','exports','request','statusCode','OLYkv','putFailedTests','failedTestsCount','Test\x20added'];a142_0x3dd2=function(){return _0x5e352f;};return a142_0x3dd2();}(function(_0x53c6ec,_0x13dc23){const _0xe8ac6a=a142_0x1c62,_0x3ced8c=_0x53c6ec();while(!![]){try{const _0x3f0095=-parseInt(_0xe8ac6a(0x12e))/0x1*(parseInt(_0xe8ac6a(0xf5))/0x2)+-parseInt(_0xe8ac6a(0x126))/0x3+-parseInt(_0xe8ac6a(0xfe))/0x4+-parseInt(_0xe8ac6a(0x13f))/0x5+-parseInt(_0xe8ac6a(0x10d))/0x6+-parseInt(_0xe8ac6a(0x130))/0x7+parseInt(_0xe8ac6a(0x12f))/0x8;if(_0x3f0095===_0x13dc23)break;else _0x3ced8c['push'](_0x3ced8c['shift']());}catch(_0x18bbff){_0x3ced8c['push'](_0x3ced8c['shift']());}}}(a142_0x3dd2,0x6a234));const https=require(a142_0x5bff22(0xf3)),{URL}=require('url'),logger=require(a142_0x5bff22(0x12c))[a142_0x5bff22(0x11c)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a142_0x5bff22(0xf4)),TAG=a142_0x5bff22(0x10b);function a142_0x1c62(_0x51e3c5,_0x40e6b1){const _0x3dd230=a142_0x3dd2();return a142_0x1c62=function(_0x1c62f4,_0x4c86c8){_0x1c62f4=_0x1c62f4-0xf2;let _0x554458=_0x3dd230[_0x1c62f4];return _0x554458;},a142_0x1c62(_0x51e3c5,_0x40e6b1);}class RequestUtils{static async[a142_0x5bff22(0x13b)](_0x5248e2,_0x2a26ec,_0x4bccd1=null){const _0x5bdd9f=a142_0x5bff22,_0x2f24b0={'CyOzi':function(_0x30b73a,_0x27c997){return _0x30b73a(_0x27c997);},'SaaoE':_0x5bdd9f(0x11e),'XLXfg':_0x5bdd9f(0x105),'RtKio':_0x5bdd9f(0xfd),'DafEp':function(_0x5c68c0,_0x3b2b0e){return _0x5c68c0===_0x3b2b0e;},'pcrPy':'POST','jDXgb':function(_0x3a1066,_0x31e9e8){return _0x3a1066===_0x31e9e8;},'UQYsF':_0x5bdd9f(0x101),'vGunD':_0x5bdd9f(0x11b),'YZOQP':function(_0x583f1e,_0x5bcacc){return _0x583f1e+_0x5bcacc;}},_0x24652e=process['env'][_0x5bdd9f(0x111)]||'',_0x136664={};_0x136664['Authorization']=_0x5bdd9f(0xf2)+_0x24652e,_0x136664[_0x5bdd9f(0x117)]=_0x2f24b0[_0x5bdd9f(0x11d)];const _0x1aa298=_0x136664,{hostname:_0x14516,pathname:_0x4ee5e9,search:_0x5e4bfb}=new URL(_0x2a26ec),_0x2198cb={'hostname':_0x14516,'path':_0x2f24b0[_0x5bdd9f(0x118)](_0x4ee5e9,_0x5e4bfb),'method':_0x5248e2,'headers':_0x1aa298};return logger['debug']('['+TAG+_0x5bdd9f(0x108)+_0x5248e2+_0x5bdd9f(0x132)+_0x2a26ec+_0x5bdd9f(0x128)+JSON[_0x5bdd9f(0x104)](_0x1aa298)+_0x5bdd9f(0x10c)+JSON[_0x5bdd9f(0x104)](_0x4bccd1)+_0x5bdd9f(0x107)+_0x24652e),new Promise((_0x15378e,_0x3732b9)=>{const _0x28199c=_0x5bdd9f,_0x1d0b06={'PlfPs':function(_0x5b94e4,_0x46ee77){const _0x330cf3=a142_0x1c62;return _0x2f24b0[_0x330cf3(0x133)](_0x5b94e4,_0x46ee77);},'LvdHX':_0x2f24b0['SaaoE'],'fmLGb':_0x2f24b0[_0x28199c(0x135)],'VbjrH':function(_0x3a9ba9,_0x1e5bdd){const _0x47157d=_0x28199c;return _0x2f24b0[_0x47157d(0x133)](_0x3a9ba9,_0x1e5bdd);}},_0x547989=https[_0x28199c(0x120)](_0x2198cb,_0x35fa81=>{const _0x5ba92e=_0x28199c;let _0x2276f0='';_0x35fa81['on'](_0x1d0b06[_0x5ba92e(0x136)],_0x3a200b=>{_0x2276f0+=_0x3a200b;}),_0x35fa81['on'](_0x1d0b06[_0x5ba92e(0x116)],()=>{const _0x2f95b4=_0x5ba92e;try{const _0x10e05f=_0x2276f0?JSON[_0x2f95b4(0xfb)](_0x2276f0):{},_0x430de5={};_0x430de5[_0x2f95b4(0x10f)]=_0x35fa81[_0x2f95b4(0x121)],_0x430de5[_0x2f95b4(0x110)]=_0x10e05f,_0x430de5[_0x2f95b4(0x113)]=_0x35fa81[_0x2f95b4(0x113)],_0x1d0b06['PlfPs'](_0x15378e,_0x430de5);}catch(_0xd8339){logger[_0x2f95b4(0xfd)]('['+TAG+_0x2f95b4(0x10a)+_0x2276f0+'\x20-\x20'+_0xd8339[_0x2f95b4(0xf6)]+'\x20'+_0xd8339[_0x2f95b4(0x139)]),_0x1d0b06['PlfPs'](_0x3732b9,new Error('Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0xd8339['message']));}});});_0x547989['on'](_0x2f24b0['RtKio'],_0x31c473=>{const _0x44ae42=_0x28199c;logger['error']('['+TAG+_0x44ae42(0x12a)+_0x5248e2+'\x20'+_0x2a26ec+':\x20'+_0x31c473[_0x44ae42(0xf6)]+'\x20'+_0x31c473[_0x44ae42(0x139)]),_0x1d0b06[_0x44ae42(0x13a)](_0x3732b9,_0x31c473);}),_0x4bccd1&&(_0x2f24b0[_0x28199c(0xfa)](_0x5248e2,_0x2f24b0[_0x28199c(0x129)])||_0x2f24b0['jDXgb'](_0x5248e2,_0x2f24b0['UQYsF']))&&_0x547989[_0x28199c(0xf8)](JSON['stringify'](_0x4bccd1)),_0x547989[_0x28199c(0x105)]();});}static async[a142_0x5bff22(0x12b)](_0x1fb2cf){const _0x33b2af=a142_0x5bff22,_0x5ab417={};_0x5ab417['tYdnG']=_0x33b2af(0x114),_0x5ab417[_0x33b2af(0x103)]=function(_0x133bae,_0x26768b){return _0x133bae===_0x26768b;};const _0x4b0b78=_0x5ab417,_0x371d63=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x1a089a=await this[_0x33b2af(0x13b)](_0x4b0b78[_0x33b2af(0x131)],_0x371d63,_0x1fb2cf);return _0x4b0b78[_0x33b2af(0x103)](_0x1a089a['status'],0xc8)?logger['debug']('['+TAG+']\x20Successfully\x20posted\x20split\x20files\x20to\x20'+_0x371d63):logger[_0x33b2af(0xfd)]('['+TAG+_0x33b2af(0x106)+_0x371d63+':\x20'+JSON[_0x33b2af(0x104)](_0x1a089a[_0x33b2af(0x110)])+',\x20status:\x20'+_0x1a089a[_0x33b2af(0x10f)]),_0x1a089a;}catch(_0x37c9eb){logger[_0x33b2af(0xfd)]('['+TAG+_0x33b2af(0x119)+_0x37c9eb[_0x33b2af(0xf6)]+'\x20'+_0x37c9eb[_0x33b2af(0x139)]);const _0x389aa5={};_0x389aa5['message']=_0x37c9eb[_0x33b2af(0xf6)];const _0x446858={};return _0x446858[_0x33b2af(0x10f)]=0x1f4,_0x446858['body']=_0x389aa5,_0x446858;}}static async[a142_0x5bff22(0x12d)](_0x422b5a){const _0x160a18=a142_0x5bff22,_0x4ba46d={};_0x4ba46d[_0x160a18(0x112)]=_0x160a18(0xff),_0x4ba46d[_0x160a18(0x138)]=function(_0x56b8f2,_0x55e563){return _0x56b8f2===_0x55e563;};const _0x34a982=_0x4ba46d;try{const _0x228c26=await this['_request'](_0x34a982[_0x160a18(0x112)],_0x422b5a);if(_0x34a982[_0x160a18(0x138)](_0x228c26[_0x160a18(0x10f)],0xc8))return _0x228c26['body'];return{};}catch(_0x3530a5){return logger[_0x160a18(0xfd)]('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x3530a5[_0x160a18(0xf6)]+'\x20'+_0x3530a5['stack']),{};}}static async[a142_0x5bff22(0x123)](_0x19d44a){const _0x30677b=a142_0x5bff22,_0x4305b5={};_0x4305b5[_0x30677b(0x109)]=_0x30677b(0x101),_0x4305b5[_0x30677b(0xfc)]=function(_0x5e0d3b,_0x4680bb){return _0x5e0d3b===_0x4680bb;},_0x4305b5[_0x30677b(0x13d)]=function(_0x58e0bd,_0x418d9b){return _0x58e0bd===_0x418d9b;},_0x4305b5[_0x30677b(0xf9)]=_0x30677b(0x125);const _0x57ef04=_0x4305b5,_0xc14bc3=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x57c0b6=await this[_0x30677b(0x13b)](_0x57ef04['cgpRD'],_0xc14bc3,_0x19d44a);if(_0x57ef04[_0x30677b(0xfc)](_0x57c0b6['status'],0xc8)&&_0x57c0b6[_0x30677b(0x110)]&&_0x57ef04[_0x30677b(0x13d)](_0x57c0b6[_0x30677b(0x110)][_0x30677b(0xf6)],_0x57ef04[_0x30677b(0xf9)]))return!![];return![];}catch(_0x2cc58b){logger[_0x30677b(0xfd)]('['+TAG+_0x30677b(0x119)+_0x2cc58b[_0x30677b(0xf6)]+'\x20'+_0x2cc58b[_0x30677b(0x139)]);const _0x483562={};_0x483562[_0x30677b(0xf6)]=_0x2cc58b[_0x30677b(0xf6)];const _0x474153={};return _0x474153['status']=0x1f4,_0x474153[_0x30677b(0x110)]=_0x483562,_0x474153;}}static async[a142_0x5bff22(0x134)](_0xce9bd7){const _0xddee81=a142_0x5bff22,_0x9d1ca7={'pRyEc':function(_0x439a57,_0x5c9b31){return _0x439a57||_0x5c9b31;},'UyzrE':_0xddee81(0x115),'ohfgQ':function(_0x3a840d,_0x23990b){return _0x3a840d(_0x23990b);},'hJNvs':_0xddee81(0xff),'OLYkv':function(_0x4301c3,_0x3cb16a){return _0x4301c3===_0x3cb16a;},'TXoOk':function(_0x4d286a,_0x29df75){return _0x4d286a!==_0x29df75;},'uOTWb':'undefined'},{buildName:_0x3e9386,buildRunIdentifier:_0x4dafc2,projectName:_0x1c5bc2}=_0xce9bd7;if(_0x9d1ca7[_0xddee81(0x11a)](!_0x3e9386,!_0x4dafc2)||!_0x1c5bc2){logger[_0xddee81(0xfd)]('['+TAG+_0xddee81(0x100)+_0x3e9386+_0xddee81(0x13e)+_0x4dafc2+',\x20projectName='+_0x1c5bc2);const _0x3f6a1b={};_0x3f6a1b[_0xddee81(0xf6)]=_0x9d1ca7[_0xddee81(0x137)];const _0x57a6b3={};return _0x57a6b3[_0xddee81(0x10f)]=0x190,_0x57a6b3['body']=_0x3f6a1b,_0x57a6b3;}const _0x155364='?buildName='+_0x9d1ca7['ohfgQ'](encodeURIComponent,_0x3e9386)+'&buildRunIdentifier='+_0x9d1ca7[_0xddee81(0x13c)](encodeURIComponent,_0x4dafc2)+'&projectName='+_0x9d1ca7[_0xddee81(0x13c)](encodeURIComponent,_0x1c5bc2),_0x3ab483=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x155364;try{logger[_0xddee81(0xf7)]('['+TAG+_0xddee81(0x102)+_0x3ab483);let _0x33ff29=0x0;const _0x58ac8f=await this[_0xddee81(0x13b)](_0x9d1ca7[_0xddee81(0x10e)],_0x3ab483);return _0x9d1ca7[_0xddee81(0x122)](_0x58ac8f[_0xddee81(0x10f)],0xc8)&&_0x58ac8f[_0xddee81(0x110)]&&_0x9d1ca7[_0xddee81(0x127)](typeof _0x58ac8f['body'][_0xddee81(0x124)],_0x9d1ca7['uOTWb'])&&(_0x33ff29=_0x9d1ca7['ohfgQ'](Number,_0x58ac8f[_0xddee81(0x110)][_0xddee81(0x124)])),_0x33ff29;}catch(_0x20cfb7){logger['error']('['+TAG+']\x20Error\x20in\x20getFailedTestsCount:\x20'+_0x20cfb7[_0xddee81(0xf6)]+'\x20'+_0x20cfb7[_0xddee81(0x139)]);const _0x432b06={};_0x432b06['message']=_0x20cfb7[_0xddee81(0xf6)];const _0xb8f4ca={};return _0xb8f4ca[_0xddee81(0x10f)]=0x1f4,_0xb8f4ca[_0xddee81(0x110)]=_0x432b06,_0xb8f4ca;}}}module[a142_0x5bff22(0x11f)]=RequestUtils;
|