browserstack-node-sdk 1.52.3 → 1.53.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.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
|
-
const a136_0x24eb6d=a136_0x1e6f;(function(_0x32737c,_0x532a08){const _0x54fbd4=a136_0x1e6f,_0x1975b6=_0x32737c();while(!![]){try{const _0x78bed0=-parseInt(_0x54fbd4(0x180))/0x1+parseInt(_0x54fbd4(0x1d4))/0x2+-parseInt(_0x54fbd4(0x196))/0x3*(-parseInt(_0x54fbd4(0x1d3))/0x4)+-parseInt(_0x54fbd4(0x16c))/0x5+-parseInt(_0x54fbd4(0x1f8))/0x6*(parseInt(_0x54fbd4(0x16f))/0x7)+-parseInt(_0x54fbd4(0x1a4))/0x8*(parseInt(_0x54fbd4(0x1fb))/0x9)+parseInt(_0x54fbd4(0x209))/0xa*(parseInt(_0x54fbd4(0x18b))/0xb);if(_0x78bed0===_0x532a08)break;else _0x1975b6['push'](_0x1975b6['shift']());}catch(_0x476441){_0x1975b6['push'](_0x1975b6['shift']());}}}(a136_0x33be,0xa9fdd));const bsSetupHelper=require(a136_0x24eb6d(0x1c4)),path=require(a136_0x24eb6d(0x210)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a136_0x24eb6d(0x165)),RequestQueueHandler=require(a136_0x24eb6d(0x1ba)),logger=require('../logger')[a136_0x24eb6d(0x173)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a136_0x24eb6d(0x20a)),util=require(a136_0x24eb6d(0x1d5)),constants=require(a136_0x24eb6d(0x1b5));function a136_0x1e6f(_0x4523e7,_0x29e7fd){const _0x33be9b=a136_0x33be();return a136_0x1e6f=function(_0x1e6f0e,_0x2b322d){_0x1e6f0e=_0x1e6f0e-0x162;let _0xb0c846=_0x33be9b[_0x1e6f0e];return _0xb0c846;},a136_0x1e6f(_0x4523e7,_0x29e7fd);}class SessionHandler{static [a136_0x24eb6d(0x1a1)]=RequestQueueHandler[a136_0x24eb6d(0x20e)]();static async[a136_0x24eb6d(0x16b)](_0xa2b237,_0x3783e7){const _0x511f85=a136_0x24eb6d,_0x3e74d5={'vtjhs':function(_0x400fe0,_0x1073c5){return _0x400fe0||_0x1073c5;},'tQDcc':function(_0x1ab005,_0x51ef05){return _0x1ab005||_0x51ef05;},'TRMbG':function(_0x57f9fc,_0x25d945){return _0x57f9fc===_0x25d945;},'nPLGN':function(_0x35506f,_0x52abb4){return _0x35506f(_0x52abb4);},'AmJGi':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','unQeR':_0x511f85(0x189),'zbQTS':'json','yVTVo':function(_0x19bf94,_0x4fde1f){return _0x19bf94(_0x4fde1f);},'vWXRY':function(_0xa82874,_0x2454fe){return _0xa82874(_0x2454fe);},'ZKtQJ':function(_0x47e0df,_0x51a3e4){return _0x47e0df(_0x51a3e4);},'NOiMB':function(_0x3e86b5,_0x195a1e,_0xe98b3c,_0x8e9998,_0x131981){return _0x3e86b5(_0x195a1e,_0xe98b3c,_0x8e9998,_0x131981);},'gKaFv':_0x511f85(0x1db),'hTDEJ':_0x511f85(0x1de),'nGbZB':_0x511f85(0x1eb),'FRlMR':function(_0x50c399){return _0x50c399();},'aPsMs':_0x511f85(0x1af),'oOwWs':'null','ZHWLT':function(_0x28b05e,_0x14e057){return _0x28b05e(_0x14e057);},'Pacpk':function(_0xfc88fb,_0x3e733a){return _0xfc88fb(_0x3e733a);},'CHFYZ':'ERROR_INVALID_CREDENTIALS','RFTRT':'ERROR_ACCESS_DENIED','tiKiL':_0x511f85(0x1e6)};logger[_0x511f85(0x1ce)](_0x511f85(0x178)+util[_0x511f85(0x1f6)](_0xa2b237));const _0x9c490e=bsSetupHelper[_0x511f85(0x1b2)](_0xa2b237),_0x31c881=bsSetupHelper[_0x511f85(0x1c7)](_0xa2b237),_0x5e0017=_0x3e74d5[_0x511f85(0x172)](_0x9c490e,'')+':'+_0x3e74d5[_0x511f85(0x191)](_0x31c881,'');if(_0x3e74d5[_0x511f85(0x199)](_0x5e0017,':'))return _0x3e74d5['nPLGN'](debug,_0x3e74d5[_0x511f85(0x1b4)]),process['env'][_0x511f85(0x198)]=_0x3e74d5[_0x511f85(0x1c5)],[null,null];let _0x33d7e3=![],_0x4f7f9f=![];if(_0xa2b237[_0x511f85(0x174)]&&_0xa2b237['app'])_0x4f7f9f=!![];else _0xa2b237[_0x511f85(0x174)]&&(_0x33d7e3=!![]);try{const _0x328bf9={'format':_0x3e74d5[_0x511f85(0x1e2)],'project_name':_0xa2b237[_0x511f85(0x20b)]||'','name':_0xa2b237[_0x511f85(0x1a6)]||path[_0x511f85(0x1a7)](path[_0x511f85(0x182)](process[_0x511f85(0x1d1)]())),'build_identifier':_0xa2b237[_0x511f85(0x1ea)],'description':_0xa2b237['buildDescription']||'','start_time':new Date()['toISOString'](),'tags':_0x3e74d5[_0x511f85(0x16e)](getCustomTags,_0xa2b237),'host_info':bsSetupHelper[_0x511f85(0x16d)](),'ci_info':bsSetupHelper[_0x511f85(0x1ca)](),'build_run_identifier':process[_0x511f85(0x17e)][_0x511f85(0x162)],'failed_tests_rerun':process[_0x511f85(0x17e)][_0x511f85(0x17c)]||![],'version_control':await bsSetupHelper['getGitMetaData'](),'observability_version':{'frameworkName':_0x3783e7['frameworkName'],'frameworkVersion':_0x3783e7['frameworkVersion'],'sdkVersion':bsSetupHelper[_0x511f85(0x1a2)]()},'product_map':_0x3e74d5[_0x511f85(0x20c)](getProductMap,_0xa2b237),'test_orchestration':_0x3e74d5[_0x511f85(0x1f3)](getTestOrchestrationBuildStartData,_0xa2b237)},_0x4a8599={};_0x4a8599[_0x511f85(0x1b1)]=_0x9c490e,_0x4a8599['password']=_0x31c881;const _0x334a14={'auth':_0x4a8599,'headers':_0x3e74d5[_0x511f85(0x211)](getDefaultHeaders,![])},_0x146825=await _0x3e74d5['NOiMB'](nodeRequest,_0x3e74d5[_0x511f85(0x179)],_0x3e74d5['hTDEJ'],_0x328bf9,_0x334a14);_0x3e74d5[_0x511f85(0x16e)](debug,_0x3e74d5[_0x511f85(0x1b3)]);const _0x1ff505=_0x146825[_0x511f85(0x1cb)];_0x1ff505[_0x511f85(0x1c2)]&&(process[_0x511f85(0x17e)][_0x511f85(0x1b8)]=_0x1ff505[_0x511f85(0x1c2)]);if(_0x3e74d5[_0x511f85(0x177)](isTestObservabilitySession)){process['env']['BS_TESTOPS_BUILD_COMPLETED']=_0x3e74d5[_0x511f85(0x183)];if(_0x1ff505[_0x511f85(0x202)]){process['env'][_0x511f85(0x19f)]=_0x1ff505[_0x511f85(0x202)];const _0x33f936={};_0x33f936[_0x511f85(0x1b1)]=_0x9c490e,_0x33f936[_0x511f85(0x16a)]=_0x31c881,process['env'][_0x511f85(0x171)]=JSON[_0x511f85(0x17f)](_0x33f936);}_0x1ff505[_0x511f85(0x1c2)]&&(process[_0x511f85(0x17e)][_0x511f85(0x175)]=_0x1ff505[_0x511f85(0x1c2)]),_0x1ff505[_0x511f85(0x197)]&&(process['env'][_0x511f85(0x190)]=_0x1ff505[_0x511f85(0x197)]['toString']());}return[_0x146825[_0x511f85(0x1cb)]['jwt'],_0x146825[_0x511f85(0x1cb)]['build_hashed_id'],_0x146825[_0x511f85(0x1cb)][_0x511f85(0x197)]];}catch(_0x147d58){process['env']['BROWSERSTACK_TESTHUB_UUID']=_0x3e74d5[_0x511f85(0x200)],process[_0x511f85(0x17e)][_0x511f85(0x198)]=_0x3e74d5[_0x511f85(0x1c5)],process[_0x511f85(0x17e)]['BS_TESTOPS_JWT']=_0x3e74d5['oOwWs'],process[_0x511f85(0x17e)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x3e74d5[_0x511f85(0x200)],process[_0x511f85(0x17e)][_0x511f85(0x190)]=_0x3e74d5[_0x511f85(0x200)];_0x147d58[_0x511f85(0x184)]?_0x3e74d5[_0x511f85(0x1e3)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+_0x147d58[_0x511f85(0x184)][_0x511f85(0x201)]+'\x20'+_0x147d58[_0x511f85(0x184)]['statusText']+'\x20'+JSON['stringify'](_0x147d58[_0x511f85(0x184)]['data'])):_0x3e74d5[_0x511f85(0x19b)](debug,_0x511f85(0x1c0)+(_0x147d58['message']||_0x147d58));if(_0x147d58&&_0x147d58['message']){const _0x507982=_0x147d58[_0x511f85(0x1b9)];switch(_0x147d58[_0x511f85(0x1ae)]){case _0x3e74d5['CHFYZ']:logger[_0x511f85(0x208)](_0x507982);break;case _0x3e74d5[_0x511f85(0x186)]:logger['info'](_0x507982);break;case _0x3e74d5[_0x511f85(0x1f7)]:logger['error'](_0x507982);break;default:logger['error'](_0x507982);}}else console[_0x511f85(0x1ce)]('Data\x20upload\x20to\x20BrowserStack\x20'+constants['TEST_REPORTING_ANALYTICS']+'\x20failed\x20due\x20to\x20'+_0x147d58);return[null,null,null];}}static async[a136_0x24eb6d(0x195)](){const _0x5eaf52=a136_0x24eb6d,_0xc17174={'rDbYO':'true','Ciybk':_0x5eaf52(0x189),'SzFHw':function(_0x8dba6b,_0x1d0b25){return _0x8dba6b(_0x1d0b25);}},_0x69cb28=process[_0x5eaf52(0x17e)]['BS_TESTOPS_BUILD_COMPLETED'];if([_0xc17174[_0x5eaf52(0x1fe)],_0xc17174[_0x5eaf52(0x20f)]][_0x5eaf52(0x1e9)](_0x69cb28))return;while([_0xc17174[_0x5eaf52(0x1fe)],_0xc17174['Ciybk']][_0x5eaf52(0x1e9)](_0x69cb28)){await _0xc17174[_0x5eaf52(0x19d)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a136_0x24eb6d(0x1cf)](_0x5cd633){const _0x98777d=a136_0x24eb6d,_0x4f1667={};_0x4f1667[_0x98777d(0x1e7)]=_0x98777d(0x1e8),_0x4f1667[_0x98777d(0x194)]='Test_End_Upload',_0x4f1667[_0x98777d(0x1bc)]='Test_Skipped_Upload',_0x4f1667['clZFK']=_0x98777d(0x1e4),_0x4f1667[_0x98777d(0x1df)]=_0x98777d(0x163),_0x4f1667['AIRvP']='Hook_End_Upload',_0x4f1667[_0x98777d(0x20d)]=_0x98777d(0x212);const _0x3a607d=_0x4f1667,_0x3ee28e={};return _0x3ee28e['TestRunStarted']=_0x3a607d[_0x98777d(0x1e7)],_0x3ee28e[_0x98777d(0x1bd)]=_0x3a607d['tNTKo'],_0x3ee28e[_0x98777d(0x185)]=_0x3a607d[_0x98777d(0x1bc)],_0x3ee28e[_0x98777d(0x1a3)]=_0x3a607d[_0x98777d(0x1d6)],_0x3ee28e['HookRunStarted']=_0x3a607d[_0x98777d(0x1df)],_0x3ee28e[_0x98777d(0x193)]=_0x3a607d['AIRvP'],_0x3ee28e['CBTSessionCreated']=_0x3a607d[_0x98777d(0x20d)],_0x3ee28e[_0x5cd633[_0x98777d(0x1c9)]];}static async[a136_0x24eb6d(0x17a)](_0x1da0f9,_0x5acd82=0x0,_0x5588c5=null){const _0x318dcd=a136_0x24eb6d,_0xcbde86={'SYXzs':function(_0x382ee5,_0xedbe19){return _0x382ee5===_0xedbe19;},'VrOQr':_0x318dcd(0x176),'UvcmW':function(_0xf66e,_0x2160d1){return _0xf66e!==_0x2160d1;},'TNBVV':_0x318dcd(0x164),'rCJcu':'true','DIQPa':function(_0x3259bd,_0x299ffd){return _0x3259bd===_0x299ffd;},'HBSpr':function(_0x441299,_0x4014eb,_0x57315d,_0x3e4ebd,_0x594130){return _0x441299(_0x4014eb,_0x57315d,_0x3e4ebd,_0x594130);},'pduGy':_0x318dcd(0x1db),'YLZsy':function(_0x2e3c36,_0x466c64,_0x1c93d2,_0x82e5cc,_0x3f4d78){return _0x2e3c36(_0x466c64,_0x1c93d2,_0x82e5cc,_0x3f4d78);},'ayllj':function(_0xa85483,_0x1d12a2){return _0xa85483(_0x1d12a2);},'FWmUd':function(_0x4098e4,_0x384d2b){return _0x4098e4!==_0x384d2b;},'MDNQC':_0x318dcd(0x17d),'YtoNM':function(_0x4d01ea,_0x276dae){return _0x4d01ea-_0x276dae;},'UKegK':function(_0x604042,_0x4ae635){return _0x604042===_0x4ae635;},'eivCB':'api/v1/event','FVliT':_0x318dcd(0x1be),'POkhK':function(_0x358475,_0xdedc8e){return _0x358475(_0xdedc8e);},'QAiOa':function(_0x2fcc6d,_0x6c8118){return _0x2fcc6d(_0x6c8118);},'AedDT':function(_0x4a2b68,_0x32674d){return _0x4a2b68!==_0x32674d;},'hfnsp':function(_0x354a5d,_0x2df5b5){return _0x354a5d-_0x2df5b5;},'QACsT':function(_0x37658f,_0x4b233c){return _0x37658f===_0x4b233c;},'ZIoHo':_0x318dcd(0x208)};_0xcbde86[_0x318dcd(0x1d0)](_0x5588c5,_0xcbde86['VrOQr'])&&logger[_0x318dcd(0x166)](_0x318dcd(0x1ff)+_0x1da0f9['logs'][0x0][_0x318dcd(0x1fc)]);const _0x1157b9=await this[_0x318dcd(0x1cf)](_0x1da0f9);let _0x58396f=_0x1da0f9,_0x468267=EVENT_ENDPOINT;_0xcbde86[_0x318dcd(0x18c)](_0x5588c5,_0xcbde86[_0x318dcd(0x1ef)])&&this['requestQueueHandler']['start']();const {shouldProceed:_0xb7dd3e,proceedWithData:_0x5713c3,proceedWithUrl:_0x323b97}=this[_0x318dcd(0x1a1)][_0x318dcd(0x206)](_0x1da0f9);if(!_0xb7dd3e)return;else _0x5713c3&&(_0x58396f=_0x5713c3,_0x468267=_0x323b97);const _0x3ac5ff={};_0x3ac5ff[_0x318dcd(0x19a)]=_0x318dcd(0x1d7)+process[_0x318dcd(0x17e)][_0x318dcd(0x192)],_0x3ac5ff[_0x318dcd(0x18e)]=_0xcbde86[_0x318dcd(0x205)],_0x3ac5ff[_0x318dcd(0x1f4)]=_0xcbde86[_0x318dcd(0x167)];const _0x13b253={};_0x13b253[_0x318dcd(0x1a8)]=_0x3ac5ff;const _0x5ebf3d=_0x13b253;let _0x31914a;try{_0xcbde86[_0x318dcd(0x1c3)](_0x5588c5,_0xcbde86[_0x318dcd(0x1ef)])?(logger[_0x318dcd(0x166)](_0x318dcd(0x168)+_0x1da0f9?.[_0x318dcd(0x1f9)][0x0]?.[_0x318dcd(0x1fc)]),_0x31914a=await _0xcbde86[_0x318dcd(0x19e)](asyncAwaitNodeReq,_0xcbde86[_0x318dcd(0x1ab)],_0x468267,_0x58396f,_0x5ebf3d),logger['debug']('Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20'+_0x1da0f9?.['logs'][0x0]?.[_0x318dcd(0x1fc)])):_0x31914a=await _0xcbde86[_0x318dcd(0x1aa)](nodeRequest,_0xcbde86['pduGy'],_0x468267,_0x58396f,_0x5ebf3d);if(_0x31914a[_0x318dcd(0x1cb)]['error']){const _0x1043c4={};_0x1043c4[_0x318dcd(0x1b9)]=_0x31914a[_0x318dcd(0x1cb)][_0x318dcd(0x208)];throw _0x1043c4;}else{_0xcbde86[_0x318dcd(0x187)](debug,(_0xcbde86[_0x318dcd(0x1d8)](_0x468267,this[_0x318dcd(0x1a1)][_0x318dcd(0x1e5)])?_0x1157b9:_0xcbde86[_0x318dcd(0x17b)])+'['+_0x5acd82+_0x318dcd(0x1dd)),this['requestQueueHandler'][_0x318dcd(0x1e1)]=Math[_0x318dcd(0x181)](0x0,_0xcbde86[_0x318dcd(0x1a0)](this['requestQueueHandler'][_0x318dcd(0x1e1)],_0xcbde86[_0x318dcd(0x1ee)](_0x468267,_0xcbde86['eivCB'])?0x1:_0x58396f[_0x318dcd(0x1ec)]));const _0x2812be={};return _0x2812be[_0x318dcd(0x201)]=_0xcbde86[_0x318dcd(0x207)],_0x2812be[_0x318dcd(0x1b9)]='',_0x2812be;}}catch(_0x173cc9){_0x173cc9['response']?_0xcbde86[_0x318dcd(0x1ad)](debug,'EXCEPTION\x20IN\x20'+(_0xcbde86['FWmUd'](_0x468267,this[_0x318dcd(0x1a1)]['eventUrl'])?_0x1157b9:_0xcbde86[_0x318dcd(0x17b)])+'\x20REQUEST\x20TO\x20'+constants['TEST_REPORTING_ANALYTICS']+'\x20:\x20'+_0x173cc9[_0x318dcd(0x184)][_0x318dcd(0x201)]+'\x20'+_0x173cc9[_0x318dcd(0x184)][_0x318dcd(0x18a)]+'\x20'+util[_0x318dcd(0x1a9)](_0x173cc9[_0x318dcd(0x184)][_0x318dcd(0x1cb)])):_0xcbde86[_0x318dcd(0x1a5)](debug,_0x318dcd(0x1b7)+(_0xcbde86[_0x318dcd(0x1f0)](_0x468267,this[_0x318dcd(0x1a1)]['eventUrl'])?_0x1157b9:_0xcbde86[_0x318dcd(0x17b)])+_0x318dcd(0x1c1)+constants[_0x318dcd(0x1ac)]+_0x318dcd(0x1c8)+util[_0x318dcd(0x1a9)](_0x173cc9));this['requestQueueHandler']['pendingUploads']=Math['max'](0x0,_0xcbde86['hfnsp'](this['requestQueueHandler'][_0x318dcd(0x1e1)],_0xcbde86[_0x318dcd(0x1cd)](_0x468267,_0xcbde86[_0x318dcd(0x188)])?0x1:_0x58396f['length']));const _0xd4943b={};return _0xd4943b[_0x318dcd(0x201)]=_0xcbde86[_0x318dcd(0x1ed)],_0xd4943b[_0x318dcd(0x1b9)]=_0x173cc9[_0x318dcd(0x1b9)]||(_0x173cc9[_0x318dcd(0x184)]?_0x173cc9[_0x318dcd(0x184)][_0x318dcd(0x201)]+':'+_0x173cc9[_0x318dcd(0x184)][_0x318dcd(0x18a)]:_0x173cc9),_0xd4943b;}}static async[a136_0x24eb6d(0x19c)](_0xf1a254,_0x2897f4=0x0){const _0x5191b9=a136_0x24eb6d,_0x54d0d4={'ZZdVF':function(_0x4d6fc2,_0x49b6e0){return _0x4d6fc2+_0x49b6e0;},'aAVjS':function(_0x454a33,_0x497391){return _0x454a33(_0x497391);},'BpJwi':_0x5191b9(0x1bf),'JzQsN':_0x5191b9(0x1e0),'couwz':'hook_run','Xntvc':function(_0x472e6c,_0x1e8e7e,_0x23fa89){return _0x472e6c(_0x1e8e7e,_0x23fa89);},'VTcQq':_0x5191b9(0x19c),'ymjhv':function(_0x4e87ab,_0x5efebd){return _0x4e87ab===_0x5efebd;},'NYHTl':function(_0x2bbe20,_0x2551be){return _0x2bbe20!==_0x2551be;},'IXTQH':_0x5191b9(0x18d),'xZuiw':_0x5191b9(0x1af),'SXyRV':function(_0x508058){return _0x508058();},'hjpIn':function(_0x49dfbd,_0x38f001){return _0x49dfbd-_0x38f001;},'jwSIz':_0x5191b9(0x208),'AQCUU':_0x5191b9(0x1fd),'JhZNl':function(_0x3d3d35,_0x43be38){return _0x3d3d35>=_0x43be38;},'eepbl':'Retry\x20runs\x20exceeded','AiYPE':function(_0x3df63f,_0x2fb160){return _0x3df63f!==_0x2fb160;},'ZASli':'false','IUlVp':function(_0x35396a,_0x3c261d,_0x505af3){return _0x35396a(_0x3c261d,_0x505af3);}},_0x5c0bfb=this[_0x5191b9(0x1cf)](_0xf1a254);_0x54d0d4[_0x5191b9(0x215)](trace,_0x5191b9(0x1b6)+_0xf1a254[_0x5191b9(0x1c9)]+'\x27\x20'+(bsSetupHelper['nestedKeyValue'](_0xf1a254,[_0x54d0d4[_0x5191b9(0x214)],_0x54d0d4[_0x5191b9(0x1da)]])||bsSetupHelper[_0x5191b9(0x1c6)](_0xf1a254,[_0x54d0d4[_0x5191b9(0x1fa)],_0x54d0d4[_0x5191b9(0x1da)]])));if(!_0x54d0d4[_0x5191b9(0x1f1)](shouldProcessEventForTesthub,_0xf1a254[_0x5191b9(0x1c9)],_0x54d0d4[_0x5191b9(0x18f)]))return;_0x54d0d4[_0x5191b9(0x1d2)](_0x2897f4,0x0)&&process[_0x5191b9(0x17e)][_0x5191b9(0x192)]&&_0x54d0d4['NYHTl'](process['env'][_0x5191b9(0x192)],_0x54d0d4['IXTQH'])&&(this[_0x5191b9(0x1a1)][_0x5191b9(0x1e1)]+=0x1);if(_0x54d0d4['ymjhv'](process['env']['BS_TESTOPS_BUILD_COMPLETED'],_0x54d0d4[_0x5191b9(0x169)])||process['env'][_0x5191b9(0x203)]||_0x54d0d4['SXyRV'](isPercyBuild)){if(_0x54d0d4[_0x5191b9(0x1d2)](process['env'][_0x5191b9(0x192)],_0x54d0d4['IXTQH'])){_0x54d0d4['aAVjS'](debug,'EXCEPTION\x20IN\x20'+_0x5c0bfb+_0x5191b9(0x1c1)+constants[_0x5191b9(0x1ac)]+'\x20:\x20missing\x20authentication\x20token'),this[_0x5191b9(0x1a1)][_0x5191b9(0x1e1)]=Math[_0x5191b9(0x181)](0x0,_0x54d0d4[_0x5191b9(0x1b0)](this[_0x5191b9(0x1a1)][_0x5191b9(0x1e1)],0x1));const _0x2a3dd8={};return _0x2a3dd8[_0x5191b9(0x201)]=_0x54d0d4[_0x5191b9(0x170)],_0x2a3dd8[_0x5191b9(0x1b9)]=_0x54d0d4[_0x5191b9(0x213)],_0x2a3dd8;}return await this[_0x5191b9(0x17a)](_0xf1a254,_0x2897f4);}else{if(_0x54d0d4[_0x5191b9(0x1d9)](_0x2897f4,0x5)){_0x54d0d4[_0x5191b9(0x215)](debug,_0x5191b9(0x1b7)+_0x5c0bfb+_0x5191b9(0x1c1)+constants[_0x5191b9(0x1ac)]+_0x5191b9(0x1cc)+_0x5c0bfb+_0x5191b9(0x1bb));_0x54d0d4[_0x5191b9(0x204)](process[_0x5191b9(0x17e)]['BROWSERSTACK_TESTHUB_JWT'],_0x54d0d4['IXTQH'])&&(this[_0x5191b9(0x1a1)][_0x5191b9(0x1e1)]=Math['max'](0x0,_0x54d0d4[_0x5191b9(0x1b0)](this[_0x5191b9(0x1a1)][_0x5191b9(0x1e1)],0x1)));const _0x16f2a2={};return _0x16f2a2[_0x5191b9(0x201)]=_0x54d0d4['jwSIz'],_0x16f2a2[_0x5191b9(0x1b9)]=_0x54d0d4['eepbl'],_0x16f2a2;}else _0x54d0d4[_0x5191b9(0x1dc)](process[_0x5191b9(0x17e)][_0x5191b9(0x198)],_0x54d0d4['ZASli'])&&_0x54d0d4['IUlVp'](setTimeout,()=>{const _0x338d30=_0x5191b9;this[_0x338d30(0x19c)](_0xf1a254,_0x54d0d4[_0x338d30(0x1f2)](_0x2897f4,0x1));},0x3e8);}}}function a136_0x33be(){const _0x2de2f9=['\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','QACsT','info','getLogTag','SYXzs','cwd','ymjhv','20dtmZub','1226854dLqWkv','util','clZFK','Bearer\x20','FWmUd','JhZNl','JzQsN','POST','AiYPE',']\x20event\x20successful!','api/v1/builds','yDMRk','uuid','pendingUploads','zbQTS','ZHWLT','Log_Upload','eventUrl','ERROR_SDK_DEPRECATED','aSAwM','Test_Start_Upload','includes','buildIdentifier','Build\x20creation\x20successful!','length','ZIoHo','UKegK','VrOQr','AedDT','Xntvc','ZZdVF','vWXRY','X-BSTACK-TESTOPS','exports','inspect','tiKiL','1619886xgpUZU','logs','couwz','320562udHEUl','test_run_uuid','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','rDbYO','Sending\x20trace\x20zip\x20for\x20test:\x20','oOwWs','status','jwt','BS_A11Y_JWT','NYHTl','TNBVV','add','FVliT','error','10pHlIKg','../../helpers/testhub/utils','projectName','nPLGN','UOOZm','getInstance','Ciybk','path','ZKtQJ','CBT_Upload','AQCUU','BpJwi','aAVjS','BROWSERSTACK_BUILD_RUN_IDENTIFIER','Hook_Start_Upload','application/json','./constants','debug','rCJcu','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','xZuiw','password','launch','642245GCOkDS','getHostInfo','yVTVo','7YgyRtE','jwSIz','CREDENTIALS_FOR_CRASH_REPORTING','vtjhs','winstonLogger','browserstackAutomation','BS_TESTOPS_BUILD_HASHED_ID','sendTraceZip','FRlMR','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','gKaFv','sendEventData','MDNQC','BROWSERSTACK_RERUN','Batch-Queue','env','stringify','322822OQKAIR','max','resolve','aPsMs','response','TestRunSkipped','RFTRT','ayllj','eivCB','false','statusText','4342261vLpNbW','UvcmW','null','Content-Type','VTcQq','BS_TESTOPS_ALLOW_SCREENSHOTS','tQDcc','BROWSERSTACK_TESTHUB_JWT','HookRunFinished','tNTKo','waitForBuildStatus','288357aOPYvi','allow_screenshots','BS_TESTOPS_BUILD_COMPLETED','TRMbG','Authorization','Pacpk','uploadEventData','SzFHw','HBSpr','BS_TESTOPS_JWT','YtoNM','requestQueueHandler','getAgentVersion','LogCreated','16QoLINz','QAiOa','buildName','basename','headers','format','YLZsy','pduGy','TEST_REPORTING_ANALYTICS','POkhK','errorType','true','hjpIn','username','getUserName','nGbZB','AmJGi','../../bin/utils/constants','Processing\x20event\x20-\x20\x27','EXCEPTION\x20IN\x20','BROWSERSTACK_TESTHUB_UUID','message','./requestQueueHandler','\x20retry\x20runs\x20exceeded','pXApf','TestRunFinished','success','test_run','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','\x20REQUEST\x20TO\x20','build_hashed_id','DIQPa','../helper','unQeR','nestedKeyValue','getAccessKey','\x20:\x20','event_type','getCiInfo','data'];a136_0x33be=function(){return _0x2de2f9;};return a136_0x33be();}module[a136_0x24eb6d(0x1f5)]=SessionHandler;
|
|
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 +1 @@
|
|
|
1
|
-
function a137_0x4b71(){const _0x5890c1=['PUPPETEER','BROWSERSTACK_TEST_REPORTING_DEBUG','VDoLR','CUCUMBER','JEST','LoXbk','getAccessKey','platformVersion','TEST_ATTACHMENT','message','darwin','stack','join','isTestObservabilitySession','test','TQkfQ','EGCws','KjKlY','jest','Content-Type','][\x20','Ztbvu','Zzkzo','CyYRH','HTTP','modifyReqForTraceUpload','getBuildTags','getBrowserName','BnQYP','IdAHr','../performance/performance-tester','GOcSw','getDefaultHeaders','YXEVA','AssertionError','Qbsca','object','getPlatform','filter','getSession','AzyxN','prefixTestPath','now','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','application/json','\x20to\x20view\x20accessibility\x20report.\x0a','cCoQb','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','browserstack','forEach','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','startsWith','BS_TESTOPS_BUILD_HASHED_ID','map','dist','host','toString','kPdmY','null','ZLKgN','puppeteer','dLWNp','WxQRC','debug','env','Uploading\x20trace\x20logs\x20to:\x20','Qubcu','data','https://accessibility.browserstack.com/automated-tests/projects/p/builds/b/1?thBuildId=','split','fromEntries','hPZOK','removeAnsiColors','LkWHD','getPackageVersion','X-BSTACK-TESTOPS','IOCWL','Windows','isInternalHook','eaudd','[%s][\x20Accessibility\x20]\x20Error\x20printing\x20accessibility\x20build\x20link\x20%s','map_','asyncAwaitNodeReq','pid','../../bin/utils/logPatcher','spy','kzfqW','expanded','logs','BROWSERSTACK_TEST_REPORTING','fileName','abdZw','gnMOs','relative','ObservabilitySync:','TDlFC','linux','ggzwm','XTiup','nXEFf','BROWSERSTACK_TEST_OBSERVABILITY','MCQKx','dKGcs','log','nodeRequest','4600044lMNymH','EAhBL','HRJHP','831178yyXnjI','headers','lmEYD','ojwIi','maxTotalSockets','rootDir','trim','Wxcyo','getBrowserVersion','getCustomTags','parseFileNames','BgelM','1BOYJAZ','includes','earDq','true','YAWUH','release','BROWSERSTACK_ACCESSIBILITY','YkYHk','customTag','format','@playwright/test','win32','tMgRv','iSddJ','local_grid','cwd','TrAnw','backtrace','Linux','keepAlive','FJNOy','pVdMV','trace','xCUXL','isUndefined','undefined','MOCHA','emit','Error\x20in\x20importing\x20windows-release\x20','PLAYWRIGHT','lodash','\x20test\x20instance\x20:\x20','LogCreated','CuiyR','boFFc','eeMbq','platform','TBWTp','bstack:options','buildTag','test_run_uuid','OS\x20X','windows-release','toISOString','getPlatformVersion','keys','maxSockets','4185vjqIcs','bmAWA','winstonLogger','CUSTOM_TAG','TimeoutError','browserstack_executor:\x20','TEST_PLATFORM','CODECEPT_CUCUMBER','push','child_process','vBIWY','getFrameworkVersion','eeGZk','FhBBA','BROWSERSTACK_PRODUCT_MAP','appium:app','BROWSERSTACK_TESTHUB_JWT','PRINT_BUILDLINK','BROWSERSTACK_OBSERVABILITY_DEBUG','HUGCr','PuSpq','eCunb','phneM','^CUSTOM_TAG_\x5cd+$','IMeHe','ATS_HUB_URL_REGEX','formData','gpOTR','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','BROWSERSTACK_RERUN_TESTS','Visit\x20','app_automate','execSync','Qhyil','5343338NLfArb','getCapabilities','FKBlT','platformName','relativeTestFilePath','bs:addPlatformDetails:','../../bin/utils/constants','ISEga','getObservabilityLinkedProductName','error','getUserCredentials','JEzKn','/builds/','NSAOf','\x20]\x20Build\x20Not\x20Found\x20%s','YPvMd','info','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','puppeteer-core','kjcIp','mZPYp','body','config','WyBmC','pJJGU','SRkRK','22893nEiQwP','extractValuesWithRegexKeyMatch','CXvHU','Test\x20timeout\x20of','buildLogger','ExqgJ','TEST_REPORTING_BUILD_TAG','sendPlatformDetails','isArray','HMgLB','rdnWC','POxct','ESHpS','parse','2672256xrcOFV','O11yHashedID','giwbn','addRequestSpy','kkjlJ','match','mocha','replace','hostname','\x20]\x20','HUB_URL_REGEX','printA11yBuildLink','KJODn','agent','Agent','OGTKj','../../../src/bin/utils/constants','toJSON','getSyncScript','https','UimMZ','timeout','catch','PqSWq','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','then','capabilities','../../helpers/request-spy','UnhandledError','json','\x20:\x20','MZmqQ','nqUrL','TEST_REPORTING_ANALYTICS','TEST_OBSERVABILITY_BUILD_TAG','EHMGZ','1332lffBtY','BROWSERSTACK_TEST_OBSERVABILITY_YML','iJGtK','failureData','url','../../bin/v2/browserstackCLI','getBrowserStackConfig','turboScaleGridDetails','prefix','hvQsR','length','2513682ejIOHA','default','../logger','Authorization','CTpSg','__cloud_provider___','turboscale','yAAXj','Unknown','annotate'];a137_0x4b71=function(){return _0x5890c1;};return a137_0x4b71();}const a137_0x3491d6=a137_0x35ad;(function(_0x3f2207,_0x476019){const _0x34bded=a137_0x35ad,_0x3a6fb4=_0x3f2207();while(!![]){try{const _0x37587e=parseInt(_0x34bded(0x1a2))/0x1*(-parseInt(_0x34bded(0x196))/0x2)+-parseInt(_0x34bded(0xe3))/0x3+parseInt(_0x34bded(0x193))/0x4+parseInt(_0x34bded(0xa7))/0x5*(-parseInt(_0x34bded(0x115))/0x6)+parseInt(_0x34bded(0xc9))/0x7+-parseInt(_0x34bded(0xf1))/0x8+-parseInt(_0x34bded(0x120))/0x9;if(_0x37587e===_0x476019)break;else _0x3a6fb4['push'](_0x3a6fb4['shift']());}catch(_0x1eb0cf){_0x3a6fb4['push'](_0x3a6fb4['shift']());}}}(a137_0x4b71,0xa8b25));const fs=require('fs'),path=require('path'),gitLastCommit=require('git-last-commit'),getRepoInfo=require('git-repo-info'),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require('./constants'),http=require('http'),https=require('https'),child_process=require(a137_0x3491d6(0xb0)),getos=require('getos'),os=require('os'),logger=require(a137_0x3491d6(0x122))[a137_0x3491d6(0xa9)],buildLogger=require(a137_0x3491d6(0x122))[a137_0x3491d6(0xe7)],bsSetupHelper=require('../helper'),requestSpy=require(a137_0x3491d6(0x10c)),constants=require(a137_0x3491d6(0xcf)),logPatcher=require(a137_0x3491d6(0x17e)),util=require('util'),{fileLogger}=require('../logger'),PerformanceTester=require(a137_0x3491d6(0x148)),{isFunction}=require(a137_0x3491d6(0x96)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require('../performance/constants'),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a137_0x3491d6(0x101));exports[a137_0x3491d6(0x8e)]=_0x13d72d=>{const _0x47984a=a137_0x3491d6;fileLogger['silly']('['+new Date()[_0x47984a(0xa3)]()+'][\x20'+constants[_0x47984a(0x112)]+'\x20]\x20'+_0x13d72d);},exports[a137_0x3491d6(0x169)]=_0x493a04=>{const _0x35fa17=a137_0x3491d6,_0x128755={};_0x128755[_0x35fa17(0xdc)]=function(_0x288d5e,_0x33f2cc){return _0x288d5e===_0x33f2cc;},_0x128755[_0x35fa17(0x147)]=_0x35fa17(0x1a5),_0x128755['CyYRH']=function(_0x377f9a,_0xa500d7){return _0x377f9a===_0xa500d7;},_0x128755[_0x35fa17(0x14d)]=function(_0x443301,_0x984f44){return _0x443301===_0x984f44;},_0x128755[_0x35fa17(0x127)]=function(_0x1fc8b7,_0x2b5e84){return _0x1fc8b7===_0x2b5e84;};const _0x28689f=_0x128755;fileLogger[_0x35fa17(0x169)]('['+new Date()['toISOString']()+_0x35fa17(0x13e)+constants['TEST_REPORTING_ANALYTICS']+_0x35fa17(0xfa)+_0x493a04),(_0x28689f[_0x35fa17(0xdc)](process[_0x35fa17(0x16a)]['BROWSERSTACK_TEST_REPORTING_DEBUG'],_0x28689f[_0x35fa17(0x147)])||_0x28689f[_0x35fa17(0x141)](process[_0x35fa17(0x16a)][_0x35fa17(0x12b)],'1')||_0x28689f[_0x35fa17(0x14d)](process['env']['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x28689f[_0x35fa17(0x147)])||_0x28689f[_0x35fa17(0x127)](process[_0x35fa17(0x16a)][_0x35fa17(0xb9)],'1'))&&consoleHolder[_0x35fa17(0x191)]('\x0a['+new Date()[_0x35fa17(0xa3)]()+_0x35fa17(0x13e)+constants[_0x35fa17(0x112)]+_0x35fa17(0xfa)+_0x493a04+'\x0a');};const a137_0x1354bb={};a137_0x1354bb[a137_0x3491d6(0x1b5)]=!![],a137_0x1354bb[a137_0x3491d6(0x106)]=0xea60,a137_0x1354bb[a137_0x3491d6(0xa6)]=0x2,a137_0x1354bb[a137_0x3491d6(0x19a)]=0x2;const httpKeepAliveAgent=new http['Agent'](a137_0x1354bb),a137_0x37bdc7={};a137_0x37bdc7['keepAlive']=!![],a137_0x37bdc7['timeout']=0xea60,a137_0x37bdc7[a137_0x3491d6(0xa6)]=0x2,a137_0x37bdc7[a137_0x3491d6(0x19a)]=0x2;const httpsKeepAliveAgent=new https[(a137_0x3491d6(0xff))](a137_0x37bdc7),a137_0x575e76={};a137_0x575e76[a137_0x3491d6(0x1b5)]=!![],a137_0x575e76[a137_0x3491d6(0x106)]=0xea60,a137_0x575e76[a137_0x3491d6(0xa6)]=0x2,a137_0x575e76['maxTotalSockets']=0x2;function a137_0x35ad(_0x4d9e52,_0x593f50){const _0x4b717b=a137_0x4b71();return a137_0x35ad=function(_0x35add7,_0x3f2b6b){_0x35add7=_0x35add7-0x8c;let _0x47c20f=_0x4b717b[_0x35add7];return _0x47c20f;},a137_0x35ad(_0x4d9e52,_0x593f50);}const httpScreenshotsKeepAliveAgent=new http[(a137_0x3491d6(0xff))](a137_0x575e76),a137_0xbd2d0b={};a137_0xbd2d0b[a137_0x3491d6(0x1b5)]=!![],a137_0xbd2d0b['timeout']=0xea60,a137_0xbd2d0b[a137_0x3491d6(0xa6)]=0x2,a137_0xbd2d0b[a137_0x3491d6(0x19a)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a137_0x3491d6(0xff))](a137_0xbd2d0b);exports['shouldReRunObservabilityTests']=()=>{const _0x3ca389=a137_0x3491d6,_0x58f339={};_0x58f339['IOCWL']=function(_0x21ca90,_0x4a78fd){return _0x21ca90!==_0x4a78fd;},_0x58f339[_0x3ca389(0x1a6)]='null';const _0xfee349=_0x58f339;return process['env'][_0x3ca389(0xc4)]&&_0xfee349[_0x3ca389(0x176)](process[_0x3ca389(0x16a)][_0x3ca389(0xc4)],_0xfee349[_0x3ca389(0x1a6)])?!![]:![];},exports[a137_0x3491d6(0x137)]=()=>{const _0x116cae=a137_0x3491d6,_0x1ba296={};_0x1ba296[_0x116cae(0x11e)]=function(_0x305645,_0x3eb37a){return _0x305645===_0x3eb37a;},_0x1ba296['YkYHk']='true';const _0x27ed00=_0x1ba296;let _0x5b4115=!![];return process[_0x116cae(0x16a)][_0x116cae(0x116)]&&(_0x5b4115=_0x27ed00[_0x116cae(0x11e)](process['env'][_0x116cae(0x116)],_0x27ed00[_0x116cae(0x1a9)])),process[_0x116cae(0x16a)]['BROWSERSTACK_TEST_OBSERVABILITY']&&(_0x5b4115=_0x27ed00[_0x116cae(0x11e)](process['env'][_0x116cae(0x18e)],_0x27ed00[_0x116cae(0x1a9)])),process[_0x116cae(0x16a)][_0x116cae(0x183)]&&(_0x5b4115=_0x27ed00[_0x116cae(0x11e)](process[_0x116cae(0x16a)][_0x116cae(0x183)],_0x27ed00[_0x116cae(0x1a9)])),_0x5b4115;},exports[a137_0x3491d6(0x1a0)]=_0x59e6b3=>{const _0x2e7fdf=a137_0x3491d6;if(bsSetupHelper[_0x2e7fdf(0x90)](_0x59e6b3))return undefined;try{return _0x59e6b3[_0x2e7fdf(0x19c)]()[_0x2e7fdf(0x16f)](',');}catch(_0x6c7b22){return undefined;}},exports['printBuildLink']=()=>{const _0x2ac442=a137_0x3491d6,_0x201b1d={'vquxw':function(_0x45f1a1,_0x17dda2){return _0x45f1a1(_0x17dda2);},'ojwIi':_0x2ac442(0x11a),'iSddJ':function(_0x53ef2e,_0x48eee7){return _0x53ef2e!==_0x48eee7;},'XTiup':_0x2ac442(0x164),'lQmOJ':_0x2ac442(0x91),'LOapv':function(_0x45e184,_0x45b6f7){return _0x45e184===_0x45b6f7;},'kPdmY':_0x2ac442(0x1a5),'WxQRC':function(_0x2a6ae4,_0x262e54){return _0x2a6ae4===_0x262e54;},'HMgLB':function(_0x434e22,_0x2a2981){return _0x434e22&&_0x2a2981;}};return PerformanceTester['measureWrapper'](PerformanceO11yEvents[_0x2ac442(0xb8)],async()=>{const _0x24a4bf=_0x2ac442;try{const _0x10acf5=_0x201b1d['vquxw'](require,_0x201b1d[_0x24a4bf(0x199)]);if(_0x10acf5[_0x24a4bf(0xf2)]){const _0x5206c7=_0x24a4bf(0xc5)+O11Y_URL+_0x24a4bf(0xd5)+_0x10acf5[_0x24a4bf(0xf2)]+_0x24a4bf(0x155);buildLogger['info'](_0x5206c7),exports[_0x24a4bf(0xfc)](_0x10acf5['O11yHashedID'],_0x10acf5['A11yEnabled']);return;}if(process['env']['BS_TESTOPS_BUILD_HASHED_ID']&&_0x201b1d['iSddJ'](process[_0x24a4bf(0x16a)][_0x24a4bf(0x15e)],_0x201b1d[_0x24a4bf(0x18c)])&&_0x201b1d[_0x24a4bf(0x1af)](process[_0x24a4bf(0x16a)][_0x24a4bf(0x15e)],_0x201b1d['lQmOJ'])){const _0x1570c3=_0x24a4bf(0xc5)+constants['O11Y_URL']+_0x24a4bf(0xd5)+process[_0x24a4bf(0x16a)]['BS_TESTOPS_BUILD_HASHED_ID']+_0x24a4bf(0x155);buildLogger['info'](_0x1570c3);const _0x1a14c8=_0x201b1d['LOapv'](process['env'][_0x24a4bf(0x1a8)],_0x201b1d[_0x24a4bf(0x163)]);let _0x1b7251=![];try{const _0x1d63d8=JSON['parse'](process[_0x24a4bf(0x16a)][_0x24a4bf(0xb5)]||'{}');_0x1b7251=_0x201b1d[_0x24a4bf(0x168)](_0x1d63d8[_0x24a4bf(0xc6)],!![]);}catch(_0x12aacd){}exports[_0x24a4bf(0xfc)](process[_0x24a4bf(0x16a)][_0x24a4bf(0x15e)],_0x201b1d[_0x24a4bf(0xec)](_0x1a14c8,!_0x1b7251));}}catch(_0x40c20c){logger[_0x24a4bf(0xd2)](util[_0x24a4bf(0x1ab)]('[%s][\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x24a4bf(0xd7),new Date()[_0x24a4bf(0xa3)](),_0x40c20c['stack']||_0x40c20c['message']||_0x40c20c));}})();},exports[a137_0x3491d6(0xfc)]=(_0x4ace56,_0x1acfc0)=>{const _0x5e1352=a137_0x3491d6,_0x12ca6e={};_0x12ca6e['YaKTR']=function(_0xf096b6,_0x2c9e72){return _0xf096b6&&_0x2c9e72;},_0x12ca6e[_0x5e1352(0x165)]=_0x5e1352(0x17a);const _0x90b16b=_0x12ca6e;try{if(_0x90b16b['YaKTR'](_0x1acfc0,_0x4ace56)){const _0x2940c5=_0x5e1352(0x16e)+_0x4ace56,_0x501fd9='Visit\x20'+_0x2940c5+_0x5e1352(0x157);buildLogger[_0x5e1352(0xd9)](_0x501fd9);}}catch(_0x11ed0a){logger[_0x5e1352(0xd2)](util[_0x5e1352(0x1ab)](_0x90b16b[_0x5e1352(0x165)],new Date()['toISOString'](),_0x11ed0a['stack']||_0x11ed0a[_0x5e1352(0x133)]||_0x11ed0a));}},exports['getFailureType']=_0xe51fab=>{const _0x1626ae=a137_0x3491d6,_0x4f6781={};_0x4f6781['pJJGU']=_0x1626ae(0x14c),_0x4f6781[_0x1626ae(0xdd)]=_0x1626ae(0xe6),_0x4f6781[_0x1626ae(0x185)]=_0x1626ae(0xab),_0x4f6781[_0x1626ae(0xbd)]=_0x1626ae(0x10d);const _0x1201a5=_0x4f6781;if(!_0xe51fab)return null;const _0x3d25a4=_0xe51fab[_0x1626ae(0x162)]();if(_0x3d25a4['match'](/AssertionError/))return _0x1201a5[_0x1626ae(0xe1)];if(_0x3d25a4[_0x1626ae(0xf6)](/TimeoutError/)||_0x3d25a4[_0x1626ae(0x15d)](_0x1201a5[_0x1626ae(0xdd)])||_0x3d25a4[_0x1626ae(0xf6)](/Timeout.*exceeded/i))return _0x1201a5['abdZw'];return _0x1201a5[_0x1626ae(0xbd)];},exports[a137_0x3491d6(0xb2)]=_0x5b74c4=>{const _0x8fc173=a137_0x3491d6,_0x4a6d3f={};_0x4a6d3f[_0x8fc173(0x18d)]=_0x8fc173(0xf7),_0x4a6d3f[_0x8fc173(0xbc)]=_0x8fc173(0x1ac),_0x4a6d3f[_0x8fc173(0x12f)]='codeceptjs',_0x4a6d3f[_0x8fc173(0x9d)]=_0x8fc173(0x13c),_0x4a6d3f['GOcSw']='@cucumber/cucumber',_0x4a6d3f['AzyxN']=_0x8fc173(0xdb),_0x4a6d3f[_0x8fc173(0x171)]=_0x8fc173(0x166);const _0x3c6ed6=_0x4a6d3f;let _0x687439=null;switch(_0x5b74c4){case FRAMEWORKS[_0x8fc173(0x92)]:_0x687439=bsSetupHelper[_0x8fc173(0x174)](_0x3c6ed6[_0x8fc173(0x18d)]);break;case FRAMEWORKS[_0x8fc173(0x95)]:_0x687439=bsSetupHelper['getPackageVersion'](_0x3c6ed6['eCunb']);break;case FRAMEWORKS['CODECEPT']:case FRAMEWORKS[_0x8fc173(0xae)]:_0x687439=bsSetupHelper['getPackageVersion'](_0x3c6ed6[_0x8fc173(0x12f)]);break;case FRAMEWORKS[_0x8fc173(0x12e)]:_0x687439=bsSetupHelper['getPackageVersion'](_0x3c6ed6[_0x8fc173(0x9d)]);break;case FRAMEWORKS[_0x8fc173(0x12d)]:_0x687439=bsSetupHelper['getPackageVersion'](_0x3c6ed6[_0x8fc173(0x149)]);break;case FRAMEWORKS[_0x8fc173(0x12a)]:_0x687439=bsSetupHelper['getPackageVersion'](_0x3c6ed6[_0x8fc173(0x152)])||bsSetupHelper['getPackageVersion'](_0x3c6ed6[_0x8fc173(0x171)]);break;default:break;}return _0x687439;},exports[a137_0x3491d6(0x11b)]=_0x231949=>{const _0x1d437f=a137_0x3491d6;let _0x295f27=null;switch(_0x231949){case FRAMEWORKS['PLAYWRIGHT']:_0x295f27=process[_0x1d437f(0x16a)]['BROWSERSTACK_CONFIG_FILE_PATH'];break;}if(!_0x295f27)return;return bsSetupHelper['readConfig'](_0x295f27,![]);},exports[a137_0x3491d6(0xd3)]=_0x1168c3=>{const _0x1387c5=a137_0x3491d6;return{'username':bsSetupHelper['getUserName'](_0x1168c3),'accessKey':bsSetupHelper[_0x1387c5(0x130)](_0x1168c3)};},exports[a137_0x3491d6(0x143)]=(_0x4fb8ed,_0x18d3ae)=>{const _0x574e91=a137_0x3491d6,_0x4c499e={};_0x4c499e[_0x574e91(0x19d)]='4|3|2|0|1|5',_0x4c499e[_0x574e91(0xd6)]=_0x574e91(0x98),_0x4c499e[_0x574e91(0x179)]=_0x574e91(0x132);const _0x529624=_0x4c499e,_0x2515c6=_0x529624[_0x574e91(0x19d)][_0x574e91(0x16f)]('|');let _0x528d22=0x0;while(!![]){switch(_0x2515c6[_0x528d22++]){case'0':delete _0x4fb8ed[_0x574e91(0xde)];continue;case'1':delete _0x4fb8ed[_0x574e91(0x10e)];continue;case'2':_0x4fb8ed[_0x574e91(0xc1)]={'data':_0x4fb8ed[_0x574e91(0xde)][0x0][_0x574e91(0x182)][0x0][_0x574e91(0x16d)],'test_run_uuid':_0x4fb8ed['body'][0x0]['logs'][0x0][_0x574e91(0xa0)],'event_type':_0x529624[_0x574e91(0xd6)],'kind':_0x529624[_0x574e91(0x179)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x574e91(0xa3)](),'fileName':_0x4fb8ed[_0x574e91(0xde)][0x0][_0x574e91(0x182)][0x0][_0x574e91(0x184)]};continue;case'3':if(!_0x4fb8ed[_0x574e91(0xde)][0x0]||!_0x4fb8ed[_0x574e91(0xde)][0x0]['logs']||!_0x4fb8ed['body'][0x0]['logs']['length'])return;continue;case'4':if(!_0x4fb8ed['body']||!Array[_0x574e91(0xeb)](_0x4fb8ed['body']))return;continue;case'5':delete _0x18d3ae[_0x574e91(0x197)];continue;}break;}},exports[a137_0x3491d6(0x17c)]=async(_0x2e8fed,_0xa8fb33,_0x330ad3,_0x4d4619,_0x27e06a=!![])=>{const _0x396d52=a137_0x3491d6,_0x319602={};_0x319602[_0x396d52(0xe8)]=function(_0x5ba073,_0x5c2ac3){return _0x5ba073===_0x5c2ac3;},_0x319602['giwbn']=_0x396d52(0x13d),_0x319602[_0x396d52(0x1ae)]=_0x396d52(0x156),_0x319602[_0x396d52(0x9b)]=_0x396d52(0x104),_0x319602[_0x396d52(0x124)]=function(_0x3c5b33,_0x468fbb){return _0x3c5b33===_0x468fbb;},_0x319602[_0x396d52(0x146)]=function(_0x2b93b0,_0x128d8a){return _0x2b93b0!==_0x128d8a;},_0x319602[_0x396d52(0xd8)]=function(_0xdad4a,_0xf96bb7){return _0xdad4a!==_0xf96bb7;},_0x319602['PqSWq']='object',_0x319602[_0x396d52(0xe0)]='Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s';const _0x24e662=_0x319602,_0x162005={..._0x4d4619,...{'method':_0x2e8fed,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0xa8fb33,'body':_0x330ad3,'json':_0x24e662[_0x396d52(0xe8)](_0x4d4619[_0x396d52(0x197)][_0x24e662[_0x396d52(0xf3)]],_0x24e662['tMgRv']),'agent':API_URL[_0x396d52(0x1a3)](_0x24e662[_0x396d52(0x9b)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x24e662[_0x396d52(0x124)](_0xa8fb33,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x162005[_0x396d52(0xfe)]=API_URL[_0x396d52(0x1a3)](_0x24e662['eeMbq'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x396d52(0x143)](_0x162005,_0x4d4619),logger[_0x396d52(0x169)](_0x396d52(0x16b)+_0x162005[_0x396d52(0x119)]));try{const {statusCode:_0x39c6cb,body:_0x2ce41d}=await bsSetupHelper['nodeRequest'](_0x2e8fed,_0xa8fb33,_0x162005,_0x4d4619,_0x162005['url']);if(_0x24e662[_0x396d52(0x146)](_0x39c6cb,0xc8))return _0x2ce41d?_0x2ce41d:_0x396d52(0x15c)+_0x39c6cb;let _0x2ec324=_0x2ce41d;if(_0x27e06a)try{_0x24e662[_0x396d52(0xd8)](typeof _0x2ce41d,_0x24e662[_0x396d52(0x108)])&&(_0x2ec324=JSON[_0x396d52(0xf0)](_0x2ce41d));}catch(_0x4c0267){logger[_0x396d52(0xd2)](_0x24e662[_0x396d52(0xe0)],_0x2ce41d,util['format'](_0x4c0267));}const _0x390df9={};return _0x390df9[_0x396d52(0x16d)]=_0x2ec324,_0x390df9;}catch(_0x58c423){logger[_0x396d52(0xd2)](_0x396d52(0x159)+util[_0x396d52(0x1ab)](_0x58c423));throw _0x58c423;}},exports['nodeRequest']=(_0x367abc,_0x2cc791,_0x295aac,_0x432ece,_0x382d81=!![])=>{const _0x519e98=a137_0x3491d6,_0x4a9a16={'gpOTR':function(_0x24a135,_0x403d42){return _0x24a135!==_0x403d42;},'EHMGZ':function(_0x513765,_0x4222c5){return _0x513765(_0x4222c5);},'jjSDP':_0x519e98(0x14e),'POxct':_0x519e98(0xda),'kzfqW':function(_0x3d3f24,_0x3f841c){return _0x3d3f24===_0x3f841c;},'OZjiT':_0x519e98(0x13d),'earDq':_0x519e98(0x156),'EGCws':_0x519e98(0x104),'UimMZ':function(_0x2ebc07,_0x5db16d){return _0x2ebc07===_0x5db16d;}};return new Promise((_0x2482b0,_0x4506ed)=>{const _0x2ac827=_0x519e98,_0x4931cf={'OGTKj':function(_0x524fd6,_0x220947){const _0x54595a=a137_0x35ad;return _0x4a9a16[_0x54595a(0x114)](_0x524fd6,_0x220947);}},_0x4a0ca7={..._0x432ece,...{'method':_0x367abc,'url':API_URL+'/'+_0x2cc791,'body':_0x295aac,'json':_0x4a9a16[_0x2ac827(0x180)](_0x432ece[_0x2ac827(0x197)][_0x4a9a16['OZjiT']],_0x4a9a16[_0x2ac827(0x1a4)]),'agent':API_URL[_0x2ac827(0x1a3)](_0x4a9a16[_0x2ac827(0x13a)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x4a9a16[_0x2ac827(0x105)](_0x2cc791,SCREENSHOT_ENDPOINT)&&(_0x4a0ca7[_0x2ac827(0xfe)]=API_URL[_0x2ac827(0x1a3)](_0x4a9a16[_0x2ac827(0x13a)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x2ac827(0x192)](_0x367abc,_0x2cc791,_0x4a0ca7,_0x432ece,API_URL)[_0x2ac827(0x10a)](({statusCode:_0xde6ab7,body:_0x14681d})=>{const _0x583983=_0x2ac827;if(_0x4a9a16[_0x583983(0xc2)](_0xde6ab7,0xc8))_0x4a9a16['EHMGZ'](_0x4506ed,_0x14681d?_0x14681d:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0xde6ab7);else{if(_0x382d81)try{_0x4a9a16[_0x583983(0xc2)](typeof _0x14681d,_0x4a9a16['jjSDP'])&&(_0x14681d=JSON[_0x583983(0xf0)](_0x14681d));}catch(_0x5c2ad5){_0x4a9a16[_0x583983(0x114)](_0x4506ed,_0x4a9a16[_0x583983(0xee)]);return;}const _0x13298b={};_0x13298b[_0x583983(0x16d)]=_0x14681d,_0x4a9a16[_0x583983(0x114)](_0x2482b0,_0x13298b);}})[_0x2ac827(0x107)](_0xc93042=>{const _0x28554f=_0x2ac827;_0xc93042&&_0x4931cf[_0x28554f(0x100)](_0x4506ed,_0xc93042);});});},exports[a137_0x3491d6(0x144)]=_0x5eabfa=>{const _0x1bf95c=a137_0x3491d6;if(process[_0x1bf95c(0x16a)]['TEST_REPORTING_BUILD_TAG'])return process[_0x1bf95c(0x16a)][_0x1bf95c(0xe9)][_0x1bf95c(0x16f)](',');if(process['env'][_0x1bf95c(0x113)])return process[_0x1bf95c(0x16a)][_0x1bf95c(0x113)]['split'](',');if(_0x5eabfa[_0x1bf95c(0x9f)])return _0x5eabfa[_0x1bf95c(0x9f)];return[];},exports[a137_0x3491d6(0x14a)]=(_0x1113ed=!![])=>{const _0x6f64aa=a137_0x3491d6,_0x40be2e={};_0x40be2e[_0x6f64aa(0x13b)]=_0x6f64aa(0x156),_0x40be2e[_0x6f64aa(0x18f)]=_0x6f64aa(0x1a5),_0x40be2e[_0x6f64aa(0xed)]=_0x6f64aa(0x123);const _0x51899c=_0x40be2e,_0x4c908e={};_0x4c908e[_0x6f64aa(0x13d)]=_0x51899c[_0x6f64aa(0x13b)],_0x4c908e[_0x6f64aa(0x175)]=_0x51899c['MCQKx'];const _0x4dfc04=_0x4c908e;return _0x1113ed&&process[_0x6f64aa(0x16a)][_0x6f64aa(0xb7)]&&(_0x4dfc04[_0x51899c[_0x6f64aa(0xed)]]='Bearer\x20'+process[_0x6f64aa(0x16a)]['BROWSERSTACK_TESTHUB_JWT']),_0x4dfc04;},exports['extractValuesWithRegexKeyMatch']=_0x2b0384=>{const _0x4bc218=a137_0x3491d6,_0x361d6b={};_0x361d6b[_0x4bc218(0x194)]=_0x4bc218(0xbe);const _0x15a8ae=_0x361d6b,_0x4171d0=[],_0x3fab3e=new RegExp(_0x15a8ae[_0x4bc218(0x194)],'i');return Object[_0x4bc218(0xa5)](_0x2b0384)[_0x4bc218(0x150)](_0x47ce24=>_0x3fab3e[_0x4bc218(0x138)](_0x47ce24))[_0x4bc218(0x15b)](_0x455c1a=>_0x4171d0['push'](_0x2b0384[_0x455c1a])),_0x4171d0;},exports[a137_0x3491d6(0x19f)]=_0x5c4e8b=>{const _0x50cdad=a137_0x3491d6,_0xd58ba4=[],_0x245413=_0x5c4e8b[_0x50cdad(0x1aa)]||process[_0x50cdad(0x16a)][_0x50cdad(0xaa)];return _0x245413&&_0xd58ba4[_0x50cdad(0xaf)](_0x245413),_0xd58ba4[_0x50cdad(0xaf)](...exports[_0x50cdad(0xe4)](process[_0x50cdad(0x16a)])),_0xd58ba4[_0x50cdad(0xaf)](...exports[_0x50cdad(0xe4)](_0x5c4e8b)),_0xd58ba4;},exports[a137_0x3491d6(0x172)]=_0x3a51e9=>{const _0x4361c5=a137_0x3491d6;if(!_0x3a51e9)return'';return _0x3a51e9[_0x4361c5(0xf8)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports['sleep']=(_0x168a8c=0x64)=>new Promise(_0x38a34c=>setTimeout(_0x38a34c,_0x168a8c));const getPlatformName=()=>{const _0x69e231=a137_0x3491d6,_0x28f903={};_0x28f903[_0x69e231(0x14b)]=function(_0x19608c,_0x197cf2){return _0x19608c===_0x197cf2;},_0x28f903[_0x69e231(0xb3)]=_0x69e231(0x1ad),_0x28f903[_0x69e231(0xbf)]=_0x69e231(0x177),_0x28f903['TrAnw']=function(_0x50a44b,_0x52bce6){return _0x50a44b===_0x52bce6;},_0x28f903['cCoQb']=_0x69e231(0x134),_0x28f903[_0x69e231(0xe2)]=_0x69e231(0xa1),_0x28f903['CXvHU']=_0x69e231(0x18a),_0x28f903[_0x69e231(0xef)]=_0x69e231(0x1b4),_0x28f903[_0x69e231(0x198)]=_0x69e231(0x128);const _0x121d2c=_0x28f903;if(_0x121d2c[_0x69e231(0x14b)](process[_0x69e231(0x9c)],_0x121d2c['eeGZk']))return _0x121d2c[_0x69e231(0xbf)];if(_0x121d2c[_0x69e231(0x1b2)](process[_0x69e231(0x9c)],_0x121d2c[_0x69e231(0x158)]))return _0x121d2c[_0x69e231(0xe2)];if(_0x121d2c[_0x69e231(0x1b2)](process[_0x69e231(0x9c)],_0x121d2c[_0x69e231(0xe5)]))return _0x121d2c[_0x69e231(0xef)];return _0x121d2c[_0x69e231(0x198)];},getMacOSVersion=()=>{const _0x413bd1=a137_0x3491d6,_0x4e69df={};_0x4e69df[_0x413bd1(0xa8)]=_0x413bd1(0xc3);const _0x1c2388=_0x4e69df;return child_process[_0x413bd1(0xc7)](_0x1c2388[_0x413bd1(0xa8)])[_0x413bd1(0x162)]()['trim']();},getLinuxDetails=()=>{const _0x42832c={'dLWNp':function(_0x355dad,_0x1bad68){return _0x355dad(_0x1bad68);},'GOhTy':function(_0x2b7459,_0x2a0543){return _0x2b7459(_0x2a0543);}};return new Promise((_0x5bb8f2,_0x28c7ea)=>{const _0x1d3776={'boFFc':function(_0x53e191,_0x4e2db6){const _0x2238ad=a137_0x35ad;return _0x42832c[_0x2238ad(0x167)](_0x53e191,_0x4e2db6);}};_0x42832c['GOhTy'](getos,(_0xd6516a,_0x19a763)=>{const _0x4445af=a137_0x35ad;if(_0xd6516a)return _0x1d3776[_0x4445af(0x9a)](_0x28c7ea,_0xd6516a);_0x1d3776[_0x4445af(0x9a)](_0x5bb8f2,_0x19a763);});});};exports['getPlatformDetails']=async()=>{const _0x3333f0=a137_0x3491d6,_0x318cf9={'xlJhh':function(_0x7e064d){return _0x7e064d();},'QFIBB':'OS\x20X','HRJHP':function(_0x51c2f5){return _0x51c2f5();},'Ztbvu':_0x3333f0(0x177),'FKBlT':_0x3333f0(0xa2),'FhBBA':function(_0x1adf2d){return _0x1adf2d();},'iJGtK':'Linux','ZXqmm':function(_0x3766b1){return _0x3766b1();},'dKGcs':'Error\x20in\x20getting\x20Linux\x20Details'};let _0x343bd8=_0x318cf9['xlJhh'](getPlatformName),_0x470c89=os[_0x3333f0(0x1a7)]()[_0x3333f0(0x162)]();switch(_0x343bd8){case _0x318cf9['QFIBB']:_0x470c89=_0x318cf9[_0x3333f0(0x195)](getMacOSVersion);break;case _0x318cf9[_0x3333f0(0x13f)]:try{const _0x5d4ff6=(await import(_0x318cf9[_0x3333f0(0xcb)]))[_0x3333f0(0x121)];_0x470c89=_0x318cf9[_0x3333f0(0xb4)](_0x5d4ff6);}catch(_0x5aa46c){exports['debug'](_0x3333f0(0x94)+_0x5aa46c[_0x3333f0(0x162)]());}break;case _0x318cf9[_0x3333f0(0x117)]:try{const _0x226763=await _0x318cf9['ZXqmm'](getLinuxDetails);_0x226763[_0x3333f0(0x160)]&&(_0x343bd8=_0x226763[_0x3333f0(0x160)]),_0x226763['release']&&(_0x470c89=_0x226763[_0x3333f0(0x1a7)][_0x3333f0(0x162)]());}catch(_0x2d6525){exports[_0x3333f0(0x169)](_0x318cf9[_0x3333f0(0x190)]);}break;default:break;}const _0x47c1e6={};return _0x47c1e6[_0x3333f0(0xcc)]=_0x343bd8,_0x47c1e6[_0x3333f0(0x131)]=_0x470c89,_0x47c1e6;},exports[a137_0x3491d6(0x118)]=(_0x4d5f86,_0x34597f)=>{const _0x3e0f81=a137_0x3491d6,_0x5edc06={};_0x5edc06[_0x3e0f81(0x186)]=function(_0x3a6163,_0x466be8){return _0x3a6163===_0x466be8;},_0x5edc06['KJODn']=_0x3e0f81(0x138),_0x5edc06[_0x3e0f81(0x8d)]='err';const _0x5d92c8=_0x5edc06;if(!_0x4d5f86)return[];try{if(_0x5d92c8[_0x3e0f81(0x186)](_0x34597f,_0x5d92c8[_0x3e0f81(0xfd)]))return!Array[_0x3e0f81(0xeb)](_0x4d5f86)&&(_0x4d5f86=[_0x4d5f86]),_0x4d5f86[_0x3e0f81(0x15f)](_0x3a7781=>{const _0x49e363=_0x3e0f81,{stack:_0x54b65f,..._0x34d788}=_0x3a7781,_0x1159c3=Object['keys'](_0x34d788)[_0x49e363(0x15f)](_0x3d5e4f=>{return _0x3d5e4f+':\x20'+_0x34d788[_0x3d5e4f];}),_0x42e92c=_0x54b65f?exports[_0x49e363(0x172)](_0x54b65f)[_0x49e363(0x16f)](/\r?\n/):[exports[_0x49e363(0x172)](_0x3a7781[_0x49e363(0x133)])],_0x4d6744={};return _0x4d6744[_0x49e363(0x1b3)]=_0x42e92c,_0x4d6744[_0x49e363(0x181)]=_0x1159c3,_0x4d6744;});else{if(_0x5d92c8[_0x3e0f81(0x186)](_0x34597f,_0x5d92c8[_0x3e0f81(0x8d)])){const _0x39e20a=[],_0x23a83d=[];return Object[_0x3e0f81(0xa5)](_0x4d5f86)['forEach'](_0x1aa83f=>{const _0x3b56c7=_0x3e0f81;try{_0x23a83d[_0x3b56c7(0xaf)](_0x1aa83f+':\x20'+_0x4d5f86[_0x1aa83f]);}catch(_0x572587){exports[_0x3b56c7(0x169)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x572587['message']+_0x3b56c7(0x10f)+_0x572587[_0x3b56c7(0x1b3)]);}}),_0x39e20a[_0x3e0f81(0xaf)]({'backtrace':exports[_0x3e0f81(0x172)](_0x4d5f86[_0x3e0f81(0x135)])['split'](/\r?\n/),'expanded':_0x23a83d}),_0x39e20a;}}return[];}catch(_0x512cdc){exports[_0x3e0f81(0x169)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0x512cdc[_0x3e0f81(0x133)]+_0x3e0f81(0x10f)+_0x512cdc[_0x3e0f81(0x1b3)]);}return[];};class PathHelper{constructor(_0x1c96ef,_0x5c86d1){const _0x5d798f=a137_0x3491d6;this[_0x5d798f(0xdf)]=_0x1c96ef,this[_0x5d798f(0x11d)]=_0x5c86d1;}[a137_0x3491d6(0xcd)](_0x56b9c3){const _0x51e20d=a137_0x3491d6,_0x31cb38=this[_0x51e20d(0xdf)][_0x51e20d(0x1b1)]||this['config'][_0x51e20d(0x19b)];return path[_0x51e20d(0x187)](_0x31cb38,_0x56b9c3);}[a137_0x3491d6(0x153)](_0x5048df){const _0xcc8313=a137_0x3491d6,_0x5cd6a6=this[_0xcc8313(0xcd)](_0x5048df);return this[_0xcc8313(0x11d)]?path[_0xcc8313(0x136)](this[_0xcc8313(0x11d)],_0x5cd6a6):_0x5cd6a6;}}exports['PathHelper']=PathHelper,exports[a137_0x3491d6(0xf4)]=(_0x3b0ee8=!![])=>{const _0x27c2af=a137_0x3491d6,_0x496fb1={};_0x496fb1[_0x27c2af(0x8c)]=function(_0x5ecbe4,_0x566618){return _0x5ecbe4===_0x566618;},_0x496fb1['xCUXL']='X-BSTACK-TESTOPS',_0x496fb1['TQkfQ']=_0x27c2af(0x1a5),_0x496fb1['Qhyil']=_0x27c2af(0x142),_0x496fb1['ISEga']=_0x27c2af(0x15a),_0x496fb1['TDlFC']=_0x27c2af(0x1b0);const _0x16129f=_0x496fb1;requestSpy[_0x27c2af(0x17f)]((_0x4129fe,_0x5934b2)=>{const _0x1a6c87=_0x27c2af;_0x5934b2&&!(_0x5934b2['headers']&&_0x16129f[_0x1a6c87(0x8c)](_0x5934b2[_0x1a6c87(0x197)][_0x16129f[_0x1a6c87(0x8f)]],_0x16129f[_0x1a6c87(0x139)]))&&(_0x5934b2['host']=_0x5934b2[_0x1a6c87(0xf9)],delete _0x5934b2['hostname'],_0x3b0ee8&&process[_0x1a6c87(0x93)]('bs:addLog:'+process[_0x1a6c87(0x17d)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x16129f[_0x1a6c87(0xc8)],'http_response':_0x5934b2})),_0x5934b2&&(constants[_0x1a6c87(0xfb)][_0x1a6c87(0x138)](_0x5934b2['host'])||constants[_0x1a6c87(0xc0)]['test'](_0x5934b2[_0x1a6c87(0x161)]))?global[_0x1a6c87(0x125)]=_0x16129f[_0x1a6c87(0xd0)]:global['__cloud_provider___']=_0x16129f[_0x1a6c87(0x189)];});},exports['patchConsoleLogger']=()=>{const _0x46488b=a137_0x3491d6,_0x198fcd={'IpeLw':function(_0xa7b46,_0x2b8a0c){return _0xa7b46(_0x2b8a0c);}};console={},Object[_0x46488b(0xa5)](consoleHolder)[_0x46488b(0x15b)](_0x31a603=>{_0x198fcd['IpeLw'](isFunction,consoleHolder[_0x31a603])?console[_0x31a603]=(..._0x4bd101)=>{const _0xbcb4b1=a137_0x35ad;try{!Object[_0xbcb4b1(0xa5)](BSTestOpsPatcher)[_0xbcb4b1(0x1a3)](_0x31a603)?consoleHolder[_0x31a603](..._0x4bd101):BSTestOpsPatcher[_0x31a603](..._0x4bd101);}catch(_0x4d5305){consoleHolder[_0x31a603](..._0x4bd101);}}:console[_0x31a603]=consoleHolder[_0x31a603];});},exports[a137_0x3491d6(0x103)]=()=>a137_0x3491d6(0xac)+JSON['stringify']({'action':a137_0x3491d6(0x129),'arguments':{'data':a137_0x3491d6(0x188)+Date[a137_0x3491d6(0x154)](),'level':'debug'}}),exports[a137_0x3491d6(0xd1)]=_0x234f10=>{const _0x27a47e=a137_0x3491d6,_0x498482={};_0x498482[_0x27a47e(0xf5)]=function(_0x39a721,_0x391537){return _0x39a721===_0x391537;},_0x498482[_0x27a47e(0x140)]='browserstack',_0x498482[_0x27a47e(0xd4)]=_0x27a47e(0xb6),_0x498482[_0x27a47e(0x16c)]='app',_0x498482[_0x27a47e(0x111)]=function(_0x269fc2,_0x59d8fa){return _0x269fc2>_0x59d8fa;},_0x498482[_0x27a47e(0x1a1)]='app-automate',_0x498482[_0x27a47e(0x99)]=_0x27a47e(0x9e),_0x498482[_0x27a47e(0x12c)]=_0x27a47e(0x11c),_0x498482['MZmqQ']=_0x27a47e(0x126),_0x498482[_0x27a47e(0xb1)]='automate';const _0x517cd7=_0x498482;let _0x4cb8db=null;try{if(_0x517cd7[_0x27a47e(0xf5)](global[_0x27a47e(0x125)],_0x517cd7['Zzkzo'])){if(_0x234f10[_0x517cd7['JEzKn']]||_0x234f10[_0x517cd7['Qubcu']]||!bsSetupHelper[_0x27a47e(0x90)](global[_0x27a47e(0x10b)])&&_0x517cd7[_0x27a47e(0x111)](global[_0x27a47e(0x10b)][_0x27a47e(0x11f)],0x0)&&(global[_0x27a47e(0x10b)][0x0][_0x517cd7['Qubcu']]||global[_0x27a47e(0x10b)][0x0][_0x517cd7[_0x27a47e(0xd4)]]))_0x4cb8db=_0x517cd7[_0x27a47e(0x1a1)];else _0x234f10[_0x517cd7[_0x27a47e(0x99)]]&&_0x234f10[_0x517cd7[_0x27a47e(0x99)]][_0x517cd7[_0x27a47e(0x12c)]]?_0x4cb8db=_0x517cd7[_0x27a47e(0x110)]:_0x4cb8db=_0x517cd7[_0x27a47e(0xb1)];}}catch(_0x5a82e7){exports[_0x27a47e(0x169)](_0x27a47e(0x109)+constants[_0x27a47e(0x112)]+_0x27a47e(0x97)+_0x5a82e7);}return _0x4cb8db;},exports[a137_0x3491d6(0xea)]=async(_0x39dc14,_0x15c2e4,_0x1d1409=![])=>{const _0x533d87=a137_0x3491d6,_0x1773e9={};_0x1773e9['HUGCr']=function(_0x462683,_0x2305ac){return _0x462683===_0x2305ac;},_0x1773e9[_0x533d87(0x18b)]=_0x533d87(0x15a),_0x1773e9['PuSpq']='unknown_grid',_0x1773e9[_0x533d87(0x173)]=_0x533d87(0xad);const _0x412fec=_0x1773e9;try{const _0x182b66=await _0x39dc14[_0x533d87(0xca)](),_0x7fab7c=await _0x39dc14[_0x533d87(0x151)](),_0x1c12d2={},_0x446c3b=Object[_0x533d87(0x170)](_0x7fab7c[_0x533d87(0xca)]()[_0x533d87(0x17b)]),_0x49cc94={'product':exports['getObservabilityLinkedProductName'](_0x446c3b),'capabilities':_0x446c3b,'platform':_0x182b66[_0x533d87(0x14f)](),'platform_version':bsSetupHelper[_0x533d87(0xa4)](_0x412fec[_0x533d87(0xba)](global[_0x533d87(0x125)],_0x412fec[_0x533d87(0x18b)])),'browser':_0x182b66[_0x533d87(0x145)](),'browser_version':_0x182b66[_0x533d87(0x19e)](),'session_id':_0x7fab7c[_0x533d87(0x102)]()};global[_0x533d87(0x125)]?_0x1c12d2[global[_0x533d87(0x125)]]=_0x49cc94:_0x1c12d2[_0x412fec[_0x533d87(0xbb)]]=_0x49cc94;if(_0x1d1409)return _0x1c12d2;process[_0x533d87(0x93)](_0x533d87(0xce)+process[_0x533d87(0x17d)],{'timestamp':new Date()[_0x533d87(0xa3)](),'level':null,'message':null,'kind':_0x412fec[_0x533d87(0x173)],'http_response':_0x1c12d2,'uuid':_0x15c2e4});}catch(_0x158c6c){exports[_0x533d87(0x169)]('Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x158c6c);}},exports[a137_0x3491d6(0x178)]=_0xa95c62=>{const _0x3a73dc=a137_0x3491d6;return _0xa95c62&&_0xa95c62[_0x3a73dc(0x162)]()['match'](/browserstack internal helper hook/);};
|
|
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 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a138_0x405744=a138_0x2e22;(function(_0x3d9178,_0x489b03){var _0x2a19a3=a138_0x2e22,_0x518d01=_0x3d9178();while(!![]){try{var _0x4976d1=parseInt(_0x2a19a3(0x1f3))/0x1+parseInt(_0x2a19a3(0x1f6))/0x2*(parseInt(_0x2a19a3(0x1fe))/0x3)+parseInt(_0x2a19a3(0x1f5))/0x4*(parseInt(_0x2a19a3(0x1f8))/0x5)+-parseInt(_0x2a19a3(0x1f0))/0x6+parseInt(_0x2a19a3(0x1f9))/0x7+-parseInt(_0x2a19a3(0x200))/0x8*(parseInt(_0x2a19a3(0x1f4))/0x9)+parseInt(_0x2a19a3(0x1ff))/0xa*(parseInt(_0x2a19a3(0x1fa))/0xb);if(_0x4976d1===_0x489b03)break;else _0x518d01['push'](_0x518d01['shift']());}catch(_0x117eb1){_0x518d01['push'](_0x518d01['shift']());}}}(a138_0x5ce8,0xcb0c9));var a138_0x491640={};function a138_0x2e22(_0x2abb11,_0x1f2538){var _0x5ce89f=a138_0x5ce8();return a138_0x2e22=function(_0x2e22d5,_0x7292d3){_0x2e22d5=_0x2e22d5-0x1f0;var _0x2738a8=_0x5ce89f[_0x2e22d5];return _0x2738a8;},a138_0x2e22(_0x2abb11,_0x1f2538);}function a138_0x5ce8(){var _0x1e5634=['2938663jCvFWz','484KKWLif','FAILED_TESTS_ENDPOINT','testorchestration/api/v1/split-tests','testorchestration/api/v1/failed-tests','375303QFYUqH','19900fijFcV','2909248EGQGdg','3906330uUVcRE','ORCHESTRATION_API_URL','SPLIT_TESTS_ENDPOINT','795802RirYxb','18BzzQDp','62356aLlxbm','14ySXArx','https://collector-observability.browserstack.com','10xPrhwz'];a138_0x5ce8=function(){return _0x1e5634;};return a138_0x5ce8();}a138_0x491640[a138_0x405744(0x1f1)]=a138_0x405744(0x1f7),a138_0x491640[a138_0x405744(0x1fb)]=a138_0x405744(0x1fd),a138_0x491640[a138_0x405744(0x1f2)]=a138_0x405744(0x1fc),module['exports']=a138_0x491640;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a139_0xd351(_0x3826ea,_0x8dc01b){const _0xb14ea2=a139_0xb14e();return a139_0xd351=function(_0xd351c6,_0x132452){_0xd351c6=_0xd351c6-0x1af;let _0x5cca0a=_0xb14ea2[_0xd351c6];return _0x5cca0a;},a139_0xd351(_0x3826ea,_0x8dc01b);}const a139_0x3a51e3=a139_0xd351;(function(_0x282965,_0x213ee4){const _0x383a00=a139_0xd351,_0x6bf41f=_0x282965();while(!![]){try{const _0x5a93d3=-parseInt(_0x383a00(0x1fa))/0x1+parseInt(_0x383a00(0x1c2))/0x2+parseInt(_0x383a00(0x21b))/0x3*(parseInt(_0x383a00(0x201))/0x4)+parseInt(_0x383a00(0x1d7))/0x5+parseInt(_0x383a00(0x227))/0x6+-parseInt(_0x383a00(0x216))/0x7+-parseInt(_0x383a00(0x205))/0x8*(parseInt(_0x383a00(0x238))/0x9);if(_0x5a93d3===_0x213ee4)break;else _0x6bf41f['push'](_0x6bf41f['shift']());}catch(_0x2e3685){_0x6bf41f['push'](_0x6bf41f['shift']());}}}(a139_0xb14e,0xd013e));const fs=require('fs'),path=require(a139_0x3a51e3(0x1f5)),FileHelper=require(a139_0x3a51e3(0x210)),RequestUtils=require(a139_0x3a51e3(0x1ec)),logger=require(a139_0x3a51e3(0x1ca))[a139_0x3a51e3(0x22c)],POLLING_INTERVAL=0x2710,TAG='FailFastManager';class FailFastManager{constructor(_0x1ceccd,_0x342200,_0x4485e2){const _0x28be4e=a139_0x3a51e3,_0x40ee96={};_0x40ee96[_0x28be4e(0x1f3)]=function(_0x507f13,_0x1083fe){return _0x507f13+_0x1083fe;},_0x40ee96[_0x28be4e(0x21d)]=_0x28be4e(0x224),_0x40ee96['jAFZZ']=function(_0x324ae6,_0x53aeac){return _0x324ae6||_0x53aeac;},_0x40ee96[_0x28be4e(0x1bb)]=_0x28be4e(0x1be),_0x40ee96[_0x28be4e(0x1d1)]=_0x28be4e(0x1c1),_0x40ee96[_0x28be4e(0x1db)]=_0x28be4e(0x223);const _0x3b58b2=_0x40ee96;this['failFastConfig']=_0x3b58b2[_0x28be4e(0x1f6)](_0x1ceccd,{}),this[_0x28be4e(0x20a)]=_0x342200,this[_0x28be4e(0x209)]=_0x4485e2,this[_0x28be4e(0x211)]=!!(process['env'][_0x28be4e(0x232)]&&process[_0x28be4e(0x1af)][_0x28be4e(0x204)]&&process[_0x28be4e(0x1af)][_0x28be4e(0x1fc)]);const _0x2a9a73=this[_0x28be4e(0x237)][_0x28be4e(0x1cb)];this[_0x28be4e(0x1d6)]=path['join'](_0x2a9a73,_0x3b58b2[_0x28be4e(0x1bb)]),this['lockFilePath']=path[_0x28be4e(0x1e8)](_0x2a9a73,_0x3b58b2[_0x28be4e(0x1d1)]),this[_0x28be4e(0x20f)]=path[_0x28be4e(0x1e8)](_0x2a9a73,_0x3b58b2[_0x28be4e(0x1db)]),this[_0x28be4e(0x22e)]=new FileHelper(this[_0x28be4e(0x237)],this[_0x28be4e(0x1d6)],this[_0x28be4e(0x1ef)],this[_0x28be4e(0x1f9)]()),this[_0x28be4e(0x1da)]=this[_0x28be4e(0x1f9)](),this[_0x28be4e(0x1e5)]=null,this['isCIMode']&&(this[_0x28be4e(0x225)]=new Set()),this['_initializeStateFromFile']()[_0x28be4e(0x1d9)](_0x4bec90=>{const _0x4e9609=_0x28be4e;logger[_0x4e9609(0x233)]('['+TAG+_0x4e9609(0x1b9)+_0x4bec90[_0x4e9609(0x1bd)]+(_0x4bec90['stack']?_0x3b58b2['sQzbs'](_0x3b58b2[_0x4e9609(0x21d)],_0x4bec90[_0x4e9609(0x1e1)]):'')),this[_0x4e9609(0x1da)]=this['_getDefaultState']();}),this[_0x28be4e(0x211)]&&this['startPolling'](),logger[_0x28be4e(0x1c8)]('['+TAG+_0x28be4e(0x1e0)+this['failFastConfig'][_0x28be4e(0x1d2)]+_0x28be4e(0x213)+this[_0x28be4e(0x211)]);}['_getDefaultState'](){const _0xa42cc6={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0xa42cc6;}async[a139_0x3a51e3(0x1b6)](){const _0x3971de=a139_0x3a51e3,_0x1f5055={};_0x1f5055[_0x3971de(0x20c)]=function(_0x83ab15,_0x53cfd6){return _0x83ab15+_0x53cfd6;},_0x1f5055[_0x3971de(0x226)]=_0x3971de(0x224),_0x1f5055[_0x3971de(0x203)]=function(_0x14cf2b,_0x30bf94){return _0x14cf2b+_0x30bf94;};const _0x4e8189=_0x1f5055;if(this[_0x3971de(0x211)])try{fs[_0x3971de(0x1fb)](this[_0x3971de(0x20f)])&&(this['state'][_0x3971de(0x1c7)]=!![],logger[_0x3971de(0x1c8)]('['+TAG+_0x3971de(0x1cc)));}catch(_0x3f9e26){logger[_0x3971de(0x233)]('['+TAG+_0x3971de(0x1d5)+_0x3f9e26[_0x3971de(0x1bd)]+(_0x3f9e26['stack']?_0x4e8189[_0x3971de(0x20c)](_0x4e8189[_0x3971de(0x226)],_0x3f9e26[_0x3971de(0x1e1)]):''));}else try{const _0x346b92=await this[_0x3971de(0x22e)][_0x3971de(0x1c4)]();if(_0x346b92)this[_0x3971de(0x1da)]={...this[_0x3971de(0x1f9)](),..._0x346b92,'uniqueFailedTests':new Set(_0x346b92[_0x3971de(0x1b1)]||[])},logger[_0x3971de(0x1c8)]('['+TAG+'_Local]\x20State\x20initialized\x20from\x20file.');else{logger[_0x3971de(0x1c8)]('['+TAG+_0x3971de(0x21e));const _0x586b4d=this[_0x3971de(0x1f9)](),_0x3387f2={..._0x586b4d,'uniqueFailedTests':Array[_0x3971de(0x1c0)](_0x586b4d[_0x3971de(0x1b1)])};await this[_0x3971de(0x22e)][_0x3971de(0x1c3)](_0x3387f2),this[_0x3971de(0x1da)]=_0x586b4d;}}catch(_0x46920c){logger['debug']('['+TAG+_0x3971de(0x1d4)+_0x46920c['message']+(_0x46920c['stack']?_0x4e8189['kykdU'](_0x4e8189[_0x3971de(0x226)],_0x46920c['stack']):'')),this[_0x3971de(0x1da)]=this[_0x3971de(0x1f9)]();}}async[a139_0x3a51e3(0x1dc)](_0xd57b95,_0x471c9d){const _0x3d7536=a139_0x3a51e3,_0x14978a={};_0x14978a[_0x3d7536(0x1e9)]=function(_0x58e3ca,_0xf99f27){return _0x58e3ca>_0xf99f27;},_0x14978a['RENAt']=_0x3d7536(0x206),_0x14978a[_0x3d7536(0x1e2)]=_0x3d7536(0x218),_0x14978a[_0x3d7536(0x1f7)]=function(_0x3c6b5a,_0x2c452e){return _0x3c6b5a+_0x2c452e;},_0x14978a['ifQxT']=_0x3d7536(0x224),_0x14978a[_0x3d7536(0x1c5)]=function(_0x5e3b1d,_0x2c7a70){return _0x5e3b1d||_0x2c7a70;},_0x14978a[_0x3d7536(0x1e6)]=function(_0x1db7ca,_0x1962d5){return _0x1db7ca+_0x1962d5;};const _0x2e2583=_0x14978a;if(this[_0x3d7536(0x211)])this[_0x3d7536(0x1da)][_0x3d7536(0x22d)]+=0x1,_0x471c9d&&_0x2e2583[_0x3d7536(0x1e9)](_0x471c9d['length'],0x0)&&(!this[_0x3d7536(0x225)][_0x3d7536(0x235)](_0xd57b95)&&(await this[_0x3d7536(0x1bc)](_0xd57b95),this[_0x3d7536(0x225)][_0x3d7536(0x21a)](_0xd57b95)));else try{const _0x1226c3={'fullName':_0xd57b95,'status':_0x471c9d&&_0x2e2583[_0x3d7536(0x1e9)](_0x471c9d[_0x3d7536(0x21f)],0x0)?_0x2e2583['RENAt']:_0x2e2583['agbQG']},_0x55bd44=await this['fileHelper'][_0x3d7536(0x230)](_0x1226c3);this[_0x3d7536(0x1da)]={...this['_getDefaultState'](),..._0x55bd44['newState'],'uniqueFailedTests':new Set(_0x55bd44[_0x3d7536(0x1df)][_0x3d7536(0x1b1)]||[])};}catch(_0x4afc12){logger['error']('['+TAG+_0x3d7536(0x231)+_0x4afc12[_0x3d7536(0x1bd)]+(_0x4afc12[_0x3d7536(0x1e1)]?_0x2e2583['caTQo'](_0x2e2583[_0x3d7536(0x22f)],_0x4afc12[_0x3d7536(0x1e1)]):''));try{const _0x1f2c56=await this[_0x3d7536(0x22e)][_0x3d7536(0x1c4)]();this['state']={...this[_0x3d7536(0x1f9)](),..._0x2e2583[_0x3d7536(0x1c5)](_0x1f2c56,{}),'uniqueFailedTests':new Set(_0x1f2c56?_0x1f2c56['uniqueFailedTests']||[]:[])},logger[_0x3d7536(0x1c8)]('['+TAG+_0x3d7536(0x1f0));}catch(_0x4727ae){logger[_0x3d7536(0x233)]('['+TAG+_0x3d7536(0x1e3)+_0x4727ae['message']+(_0x4727ae[_0x3d7536(0x1e1)]?_0x2e2583['pOjzU'](_0x2e2583['ifQxT'],_0x4727ae[_0x3d7536(0x1e1)]):'')),this['state']=this[_0x3d7536(0x1f9)]();}}}async[a139_0x3a51e3(0x1bc)](_0x1f5004){const _0x46fb79=a139_0x3a51e3,_0x13c5f9={};_0x13c5f9['yMNSQ']=function(_0x47b124,_0x467039){return _0x47b124+_0x467039;},_0x13c5f9['zjDFa']=_0x46fb79(0x224);const _0x10a221=_0x13c5f9;if(!this[_0x46fb79(0x211)]||!_0x1f5004)return;try{logger['debug']('['+TAG+_0x46fb79(0x228)+_0x1f5004);const _0x5e5339={};_0x5e5339[_0x46fb79(0x20a)]=this[_0x46fb79(0x20a)],_0x5e5339['projectName']=this[_0x46fb79(0x209)],_0x5e5339[_0x46fb79(0x1e7)]=[_0x1f5004],_0x5e5339[_0x46fb79(0x229)]=process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],await RequestUtils['putFailedTests'](_0x5e5339);}catch(_0x180f9a){logger[_0x46fb79(0x233)]('['+TAG+_0x46fb79(0x215)+_0x1f5004+_0x46fb79(0x1cd)+_0x180f9a[_0x46fb79(0x1bd)]+(_0x180f9a[_0x46fb79(0x1e1)]?_0x10a221[_0x46fb79(0x1ee)](_0x10a221[_0x46fb79(0x214)],_0x180f9a[_0x46fb79(0x1e1)]):''));}}async[a139_0x3a51e3(0x20b)](){const _0x71c3f3=a139_0x3a51e3,_0x3e0b81={};_0x3e0b81['qMvEj']=function(_0x27ca74,_0x28391f){return _0x27ca74===_0x28391f;},_0x3e0b81['QCpqI']='number',_0x3e0b81[_0x71c3f3(0x222)]=function(_0x4560be,_0x52fee5){return _0x4560be+_0x52fee5;},_0x3e0b81[_0x71c3f3(0x239)]=_0x71c3f3(0x224),_0x3e0b81['bcntz']=function(_0x3e932e,_0x4fe224){return _0x3e932e!==_0x4fe224;};const _0x4e20fa=_0x3e0b81;if(!this[_0x71c3f3(0x211)])return 0x0;try{const _0x4583c4={};_0x4583c4[_0x71c3f3(0x20a)]=this[_0x71c3f3(0x20a)],_0x4583c4[_0x71c3f3(0x209)]=this[_0x71c3f3(0x209)],_0x4583c4[_0x71c3f3(0x229)]=process['env'][_0x71c3f3(0x232)];const _0x4379cd=await RequestUtils['getFailedTestsCount'](_0x4583c4);return logger[_0x71c3f3(0x1c8)]('['+TAG+_0x71c3f3(0x1c9)+_0x4379cd),_0x4e20fa['qMvEj'](typeof _0x4379cd,_0x4e20fa[_0x71c3f3(0x1ea)])?_0x4379cd:0x0;}catch(_0x24c3eb){return logger[_0x71c3f3(0x233)]('['+TAG+_0x71c3f3(0x220)+_0x24c3eb[_0x71c3f3(0x1bd)]+(_0x24c3eb['stack']?_0x4e20fa['Lqjdf'](_0x4e20fa[_0x71c3f3(0x239)],_0x24c3eb['stack']):'')),_0x4e20fa[_0x71c3f3(0x1b2)](this['state'][_0x71c3f3(0x1de)],undefined)?this[_0x71c3f3(0x1da)][_0x71c3f3(0x1de)]:0x0;}}async['_pollFailedTests'](){const _0x404068=a139_0x3a51e3,_0x5847d4={};_0x5847d4[_0x404068(0x1ed)]=function(_0x31ef59,_0x42a364){return _0x31ef59!==_0x42a364;},_0x5847d4[_0x404068(0x1fe)]=function(_0x4eda00,_0x107318){return _0x4eda00+_0x107318;},_0x5847d4[_0x404068(0x20d)]='\x0aStack:\x20';const _0x3280c9=_0x5847d4;if(!this[_0x404068(0x211)])return;try{const _0x3ab39b=await this['_fetchAPIFailedCount']();_0x3280c9[_0x404068(0x1ed)](_0x3ab39b,this[_0x404068(0x1da)][_0x404068(0x1de)])&&(logger[_0x404068(0x1c8)]('['+TAG+_0x404068(0x1ce)+_0x3ab39b+_0x404068(0x1b5)+this[_0x404068(0x1da)]['lastAPIFailedCount']+')'),this[_0x404068(0x1da)][_0x404068(0x1de)]=_0x3ab39b);}catch(_0x1f3154){logger['error']('['+TAG+'_CI]\x20Error\x20during\x20polling\x20logic:\x20'+_0x1f3154['message']+(_0x1f3154['stack']?_0x3280c9[_0x404068(0x1fe)](_0x3280c9[_0x404068(0x20d)],_0x1f3154[_0x404068(0x1e1)]):''));}}async[a139_0x3a51e3(0x236)](){const _0x2adf56=a139_0x3a51e3,_0x4661a0={'FoFYC':function(_0x4018a9,_0x5ae07d,_0x4e4f22){return _0x4018a9(_0x5ae07d,_0x4e4f22);}};this[_0x2adf56(0x1e5)]&&this[_0x2adf56(0x1ba)](),this[_0x2adf56(0x211)]&&(await this[_0x2adf56(0x1e4)](),this['pollingInterval']=_0x4661a0[_0x2adf56(0x1f4)](setInterval,async()=>{const _0x312e7a=_0x2adf56;await this[_0x312e7a(0x1e4)]();},POLLING_INTERVAL),logger[_0x2adf56(0x1c8)]('['+TAG+'_CI]\x20Polling\x20started\x20with\x20interval:\x20'+POLLING_INTERVAL+_0x2adf56(0x1f8)));}[a139_0x3a51e3(0x1ba)](){const _0x59f74b=a139_0x3a51e3,_0x1f6ae5={'mLTWv':function(_0xb320b,_0x425025){return _0xb320b(_0x425025);}};this[_0x59f74b(0x1e5)]&&(_0x1f6ae5[_0x59f74b(0x1f2)](clearInterval,this['pollingInterval']),this[_0x59f74b(0x1e5)]=null,logger[_0x59f74b(0x1c8)]('['+TAG+_0x59f74b(0x234)));}async[a139_0x3a51e3(0x1b0)](){const _0x2fca66=a139_0x3a51e3,_0xe8b472={};_0xe8b472[_0x2fca66(0x1fd)]=function(_0x35aebf,_0x169134){return _0x35aebf===_0x169134;},_0xe8b472[_0x2fca66(0x208)]=function(_0x44c48f,_0x550b69){return _0x44c48f<=_0x550b69;},_0xe8b472['ykDLI']=function(_0x1ca47d,_0x667a68){return _0x1ca47d+_0x667a68;},_0xe8b472[_0x2fca66(0x22b)]=_0x2fca66(0x224),_0xe8b472[_0x2fca66(0x217)]=function(_0x58c123,_0x2aadd0){return _0x58c123!==_0x2aadd0;},_0xe8b472[_0x2fca66(0x1b7)]=function(_0x4477d4,_0xe54625){return _0x4477d4>=_0xe54625;},_0xe8b472[_0x2fca66(0x21c)]=function(_0x2b3a79,_0xef7d2c){return _0x2b3a79+_0xef7d2c;},_0xe8b472[_0x2fca66(0x1d3)]=function(_0x142bbc,_0x55f00d){return _0x142bbc+_0x55f00d;};const _0x49ff81=_0xe8b472,{failureThresholdCount:_0x343b39}=this['failFastConfig'];if(_0x49ff81[_0x2fca66(0x1fd)](_0x343b39,null)||_0x49ff81[_0x2fca66(0x1fd)](_0x343b39,undefined)||_0x49ff81[_0x2fca66(0x208)](_0x343b39,0x0))return logger[_0x2fca66(0x1c8)]('['+TAG+']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.'),![];if(this[_0x2fca66(0x211)]){try{if(fs[_0x2fca66(0x1fb)](this[_0x2fca66(0x20f)]))return logger[_0x2fca66(0x1c8)]('['+TAG+_0x2fca66(0x1b3)),!this['state']['failFastActive']&&(this['state']['failFastActive']=!![]),this['stopPolling'](),!![];}catch(_0x1d785d){logger[_0x2fca66(0x233)]('['+TAG+_0x2fca66(0x1d5)+_0x1d785d[_0x2fca66(0x1bd)]+(_0x1d785d['stack']?_0x49ff81[_0x2fca66(0x200)](_0x49ff81[_0x2fca66(0x22b)],_0x1d785d[_0x2fca66(0x1e1)]):''));}const _0x3a9477=_0x49ff81[_0x2fca66(0x217)](this['state'][_0x2fca66(0x1de)],undefined)?this[_0x2fca66(0x1da)][_0x2fca66(0x1de)]:0x0;if(_0x49ff81['CCxZC'](_0x3a9477,_0x343b39)){logger[_0x2fca66(0x1ff)]('['+TAG+_0x2fca66(0x212)+_0x3a9477+_0x2fca66(0x1cf)+_0x343b39+'.');try{fs[_0x2fca66(0x1eb)](this[_0x2fca66(0x20f)],new Date()['toISOString']()),logger[_0x2fca66(0x1c8)]('['+TAG+_0x2fca66(0x219)+this[_0x2fca66(0x20f)]),this['state'][_0x2fca66(0x1c7)]=!![];}catch(_0x529ae3){logger[_0x2fca66(0x233)]('['+TAG+_0x2fca66(0x1c6)+_0x529ae3[_0x2fca66(0x1bd)]+(_0x529ae3[_0x2fca66(0x1e1)]?_0x49ff81['homGQ'](_0x49ff81['ymnhS'],_0x529ae3['stack']):''));}return this[_0x2fca66(0x1ba)](),!![];}}else{let _0x5817ec;try{_0x5817ec=await this[_0x2fca66(0x22e)]['readState']();if(!_0x5817ec)return logger[_0x2fca66(0x207)]('['+TAG+_0x2fca66(0x202)),![];}catch(_0x46b0e8){return logger[_0x2fca66(0x233)]('['+TAG+_0x2fca66(0x1d8)+_0x46b0e8[_0x2fca66(0x1bd)]+(_0x46b0e8['stack']?_0x49ff81['MrPSe'](_0x49ff81[_0x2fca66(0x22b)],_0x46b0e8['stack']):'')),![];}this[_0x2fca66(0x1da)]={...this[_0x2fca66(0x1f9)](),..._0x5817ec,'uniqueFailedTests':new Set(_0x5817ec['uniqueFailedTests']||[])};if(this[_0x2fca66(0x1da)][_0x2fca66(0x1c7)])return logger[_0x2fca66(0x1c8)]('['+TAG+'_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.'),!![];const _0x3f2af7=this['state']['uniqueFailedTests'],_0x352f50=_0x3f2af7[_0x2fca66(0x1f1)];if(_0x49ff81['CCxZC'](_0x352f50,_0x343b39)){try{logger[_0x2fca66(0x1ff)]('['+TAG+'_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x352f50+_0x2fca66(0x1cf)+_0x343b39+'.'),this[_0x2fca66(0x1da)][_0x2fca66(0x1c7)]=!![];}catch(_0x542f4f){logger[_0x2fca66(0x233)]('['+TAG+_0x2fca66(0x20e)+_0x542f4f[_0x2fca66(0x1bd)]+(_0x542f4f[_0x2fca66(0x1e1)]?_0x49ff81['ykDLI'](_0x49ff81[_0x2fca66(0x22b)],_0x542f4f['stack']):''));}return!![];}}return![];}async[a139_0x3a51e3(0x1d0)](){const _0x13ecff=a139_0x3a51e3,_0x1f25ae={};_0x1f25ae[_0x13ecff(0x221)]=function(_0x1fe5a3,_0x4a7918){return _0x1fe5a3+_0x4a7918;},_0x1f25ae[_0x13ecff(0x1b8)]=_0x13ecff(0x224);const _0x285778=_0x1f25ae;this['stopPolling']();if(this[_0x13ecff(0x211)])logger['debug']('['+TAG+_0x13ecff(0x22a));else try{const _0x32801c={...this[_0x13ecff(0x1da)],'uniqueFailedTests':Array[_0x13ecff(0x1c0)](this[_0x13ecff(0x1da)][_0x13ecff(0x1b1)]||new Set())};await this[_0x13ecff(0x22e)][_0x13ecff(0x1c3)](_0x32801c),logger['debug']('['+TAG+_0x13ecff(0x1dd));}catch(_0x3838be){logger['error']('['+TAG+_0x13ecff(0x1b4)+_0x3838be['message']+(_0x3838be['stack']?_0x285778[_0x13ecff(0x221)](_0x285778[_0x13ecff(0x1b8)],_0x3838be['stack']):''));}}}function a139_0xb14e(){const _0x382a85=[',\x20threshold:\x20','cleanup','wujbI','failureThresholdCount','MrPSe','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','stateFilePath','6612840wuTymG','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','catch','state','lTsGU','onTestDone','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','lastAPIFailedCount','newState',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','stack','agbQG','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','_pollFailedTests','pollingInterval','pOjzU','failedTests','join','XjmNd','QCpqI','writeFileSync','./requestUtils','DGuoL','yMNSQ','lockFilePath','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','size','mLTWv','sQzbs','FoFYC','path','jAFZZ','caTQo','ms.','_getDefaultState','346736uJoXIm','existsSync','BROWSERSTACK_TOTAL_NODE_COUNT','GROjB','jUCqC','info','ykDLI','76mkYaMq','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','kykdU','BROWSERSTACK_NODE_INDEX','8hsbvDH','failed','warn','lgvgR','projectName','buildName','_fetchAPIFailedCount','vKrDG','GiCEM','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','failFastActiveMarkerPath','./fileHelper','isCIMode','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20',',\x20CI\x20Mode:\x20','zjDFa','_CI]\x20Error\x20sending\x20failed\x20test\x20','5441702KNzwPH','mIqeC','passed','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','add','165537WevWmu','homGQ','gVpnF','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','length','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','mczMP','Lqjdf','failFast.active','\x0aStack:\x20','reportedFailuresToAPI','UoqIL','6783540trXCFJ','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','buildRunIdentifier','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','ymnhS','winstonLogger','totalTests','fileHelper','ifQxT','recordTestResult','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','BROWSERSTACK_BUILD_RUN_IDENTIFIER','error',']\x20Polling\x20stopped.','has','startPolling','failFastConfig','19541826MKvgzt','SJmQS','env','shouldFailFast','uniqueFailedTests','bcntz','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','\x20(was\x20','_initializeStateFromFile','CCxZC','rnnCh',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','stopPolling','rrLrR','_sendFailedTestsToAPI','message','failFastState.json','exports','from','failFastState.lock','1292326ToyLuP','writeState','readState','mVmKS','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','failFastActive','debug','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','../logger','workingDir','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','\x20to\x20API:\x20','_CI]\x20API\x20failed\x20count\x20updated:\x20'];a139_0xb14e=function(){return _0x382a85;};return a139_0xb14e();}module[a139_0x3a51e3(0x1bf)]=FailFastManager;
|
|
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 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a140_0x515b(){const _0x1b828c=['writeState','17354286XKtFnD','failFastConfig','warn','uniqueFailedTests','status','recordTestResult','4581374wpiMcJ',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','unlinkSync','code','gOrjV','59449440yUbHvE','error','updateAPIFailedCount','lockFilePath',']\x20Error\x20creating\x20state\x20file:\x20','uAkff','pOGpO','from','340572wURozm','function','exports','existsSync','message','isNewFailure','8AJMOhz','cWFXQ','stateFilePath','openSync','1953868DyrcPE','1468110Dlsqtc','15eeXgfS','xuzmS','jgUye','fullName','FailFastFileHelper','winstonLogger','stack','969776vJPgcq','split','newState','isArray',']\x20Error\x20releasing\x20lock:\x20','failedTests','24dBgeDK',']\x20Error\x20writing\x20state\x20file:\x20','readFileSync','EEXIST','../logger','utf8',']\x20Error\x20reading\x20state\x20file:\x20','writeFileSync','parse','pVgVg','acquireLock','defaultState','add','OSvnT','lastAPIFailedCount','readState','releaseLock','3|4|2|0|1','stringify'];a140_0x515b=function(){return _0x1b828c;};return a140_0x515b();}const a140_0x1304a0=a140_0x27b0;function a140_0x27b0(_0x473b27,_0x6753eb){const _0x515bd8=a140_0x515b();return a140_0x27b0=function(_0x27b0e7,_0x3c7152){_0x27b0e7=_0x27b0e7-0x1ac;let _0xf7a31=_0x515bd8[_0x27b0e7];return _0xf7a31;},a140_0x27b0(_0x473b27,_0x6753eb);}(function(_0x2c4108,_0x4d125f){const _0x579a7c=a140_0x27b0,_0xcb698d=_0x2c4108();while(!![]){try{const _0x5761c6=-parseInt(_0x579a7c(0x1df))/0x1+-parseInt(_0x579a7c(0x1e9))/0x2+-parseInt(_0x579a7c(0x1eb))/0x3*(parseInt(_0x579a7c(0x1b2))/0x4)+-parseInt(_0x579a7c(0x1ea))/0x5*(parseInt(_0x579a7c(0x1b8))/0x6)+-parseInt(_0x579a7c(0x1d2))/0x7*(-parseInt(_0x579a7c(0x1e5))/0x8)+-parseInt(_0x579a7c(0x1cc))/0x9+parseInt(_0x579a7c(0x1d7))/0xa;if(_0x5761c6===_0x4d125f)break;else _0xcb698d['push'](_0xcb698d['shift']());}catch(_0x31b2c4){_0xcb698d['push'](_0xcb698d['shift']());}}}(a140_0x515b,0xec12e));const fs=require('fs'),logger=require(a140_0x1304a0(0x1bc))[a140_0x1304a0(0x1b0)],TAG=a140_0x1304a0(0x1af);class FileHelper{constructor(_0x3afb6e,_0x3696a0,_0x24d422,_0x28a980){const _0x4c4277=a140_0x1304a0,_0x405dd5={};_0x405dd5[_0x4c4277(0x1c1)]=_0x4c4277(0x1c9),_0x405dd5[_0x4c4277(0x1d6)]='utf8';const _0x302d81=_0x405dd5,_0x5bb8ef=_0x302d81[_0x4c4277(0x1c1)][_0x4c4277(0x1b3)]('|');let _0x2757e9=0x0;while(!![]){switch(_0x5bb8ef[_0x2757e9++]){case'0':this[_0x4c4277(0x1c3)]=_0x28a980;continue;case'1':if(!fs[_0x4c4277(0x1e2)](this[_0x4c4277(0x1e7)]))try{fs['writeFileSync'](this[_0x4c4277(0x1e7)],'{}',_0x302d81[_0x4c4277(0x1d6)]);}catch(_0x415828){logger[_0x4c4277(0x1d8)]('['+TAG+_0x4c4277(0x1db)+_0x415828[_0x4c4277(0x1e3)]+'\x20'+_0x415828[_0x4c4277(0x1b1)]);}continue;case'2':this[_0x4c4277(0x1da)]=_0x24d422;continue;case'3':this[_0x4c4277(0x1cd)]=_0x3afb6e;continue;case'4':this[_0x4c4277(0x1e7)]=_0x3696a0;continue;}break;}}async[a140_0x1304a0(0x1c2)](){const _0x436d4e=a140_0x1304a0,_0x2b6e0d={};_0x2b6e0d[_0x436d4e(0x1c5)]=function(_0x2f1122,_0x17b5ef){return _0x2f1122===_0x17b5ef;},_0x2b6e0d[_0x436d4e(0x1dc)]=_0x436d4e(0x1bb);const _0x1a1f85=_0x2b6e0d;let _0x5f51b2;try{return _0x5f51b2=fs[_0x436d4e(0x1e8)](this[_0x436d4e(0x1da)],'wx'),_0x5f51b2;}catch(_0x5ede59){if(_0x1a1f85[_0x436d4e(0x1c5)](_0x5ede59[_0x436d4e(0x1d5)],_0x1a1f85['uAkff']))return null;throw _0x5ede59;}}async['releaseLock'](_0x3d468d){const _0x53b649=a140_0x1304a0;if(_0x3d468d)try{fs['closeSync'](_0x3d468d),fs[_0x53b649(0x1d4)](this['lockFilePath']);}catch(_0x34c219){logger[_0x53b649(0x1d8)]('['+TAG+_0x53b649(0x1b6)+_0x34c219[_0x53b649(0x1e3)]+'\x20'+_0x34c219['stack']);}}['readState'](){const _0x495b85=a140_0x1304a0,_0x219bfa={};_0x219bfa[_0x495b85(0x1ad)]=_0x495b85(0x1bd);const _0x1c74fa=_0x219bfa;try{const _0x1a5dcd=fs[_0x495b85(0x1ba)](this[_0x495b85(0x1e7)],_0x1c74fa[_0x495b85(0x1ad)]);return JSON[_0x495b85(0x1c0)](_0x1a5dcd);}catch(_0x2899d3){return logger['error']('['+TAG+_0x495b85(0x1be)+_0x2899d3[_0x495b85(0x1e3)]+'\x20'+_0x2899d3['stack']),null;}}async[a140_0x1304a0(0x1cb)](_0x4dcefe){const _0x167c7e=a140_0x1304a0,_0x334f02={..._0x4dcefe,'uniqueFailedTests':Array[_0x167c7e(0x1b5)](_0x4dcefe[_0x167c7e(0x1cf)])?_0x4dcefe[_0x167c7e(0x1cf)]:Array[_0x167c7e(0x1de)](_0x4dcefe['uniqueFailedTests']||[])};try{fs[_0x167c7e(0x1bf)](this[_0x167c7e(0x1e7)],JSON[_0x167c7e(0x1ca)](_0x334f02,null,0x2));}catch(_0x17455a){logger[_0x167c7e(0x1d8)]('['+TAG+_0x167c7e(0x1b9)+_0x17455a[_0x167c7e(0x1e3)]+'\x20'+_0x17455a[_0x167c7e(0x1b1)]);throw _0x17455a;}}async[a140_0x1304a0(0x1d1)](_0x59fec5,_0x43703d){const _0x16aa40=a140_0x1304a0,_0x23f797={};_0x23f797['MlBzu']=function(_0x228041,_0x456644){return _0x228041!==_0x456644;},_0x23f797['cWFXQ']=_0x16aa40(0x1e0),_0x23f797[_0x16aa40(0x1ac)]=function(_0x52a9fd,_0x5e5ce7){return _0x52a9fd===_0x5e5ce7;},_0x23f797['pOGpO']='failed';const _0x14c294=_0x23f797,_0x3e65f2=await this[_0x16aa40(0x1c2)]();if(!_0x3e65f2)return logger[_0x16aa40(0x1ce)]('['+TAG+_0x16aa40(0x1d3)),{'newState':this[_0x16aa40(0x1c7)]()||this[_0x16aa40(0x1c3)],'isNewFailure':![]};try{let _0x1f439e=this[_0x16aa40(0x1c7)]();!_0x1f439e&&(_0x1f439e=JSON['parse'](JSON[_0x16aa40(0x1ca)](this['defaultState'])));if(!_0x1f439e[_0x16aa40(0x1cf)]||_0x14c294['MlBzu'](typeof _0x1f439e[_0x16aa40(0x1cf)][Symbol['iterator']],_0x14c294[_0x16aa40(0x1e6)]))_0x1f439e['uniqueFailedTests']=new Set();else Array[_0x16aa40(0x1b5)](_0x1f439e[_0x16aa40(0x1cf)])&&(_0x1f439e[_0x16aa40(0x1cf)]=new Set(_0x1f439e['uniqueFailedTests']));_0x1f439e['totalTests']=_0x43703d;let _0x148186=![];_0x14c294[_0x16aa40(0x1ac)](_0x59fec5[_0x16aa40(0x1d0)],_0x14c294[_0x16aa40(0x1dd)])&&(_0x1f439e[_0x16aa40(0x1b7)]+=0x1,!_0x1f439e['uniqueFailedTests']['has'](_0x59fec5[_0x16aa40(0x1ae)])&&(_0x1f439e[_0x16aa40(0x1cf)][_0x16aa40(0x1c4)](_0x59fec5['fullName']),_0x148186=!![]));await this[_0x16aa40(0x1cb)](_0x1f439e);const _0x248c8a={};return _0x248c8a[_0x16aa40(0x1b4)]=_0x1f439e,_0x248c8a[_0x16aa40(0x1e4)]=_0x148186,_0x248c8a;}finally{await this['releaseLock'](_0x3e65f2);}}async[a140_0x1304a0(0x1d9)](_0x38f6b0){const _0x3248a2=a140_0x1304a0,_0x29b20d=await this['acquireLock']();if(!_0x29b20d)return logger['warn']('['+TAG+']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.'),this[_0x3248a2(0x1c7)]()||this['defaultState'];try{let _0xb9add6=this[_0x3248a2(0x1c7)]();return!_0xb9add6&&(_0xb9add6=JSON[_0x3248a2(0x1c0)](JSON[_0x3248a2(0x1ca)](this[_0x3248a2(0x1c3)]))),_0xb9add6[_0x3248a2(0x1c6)]=_0x38f6b0,await this['writeState'](_0xb9add6),_0xb9add6;}finally{await this[_0x3248a2(0x1c8)](_0x29b20d);}}}module[a140_0x1304a0(0x1e1)]=FileHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a141_0x467be3=a141_0x425d;(function(_0x422485,_0x14f84d){const _0x15157f=a141_0x425d,_0x296398=_0x422485();while(!![]){try{const _0x162190=parseInt(_0x15157f(0xf6))/0x1+parseInt(_0x15157f(0xd2))/0x2*(parseInt(_0x15157f(0xe2))/0x3)+parseInt(_0x15157f(0xff))/0x4+-parseInt(_0x15157f(0xe5))/0x5*(-parseInt(_0x15157f(0xea))/0x6)+-parseInt(_0x15157f(0xf8))/0x7*(-parseInt(_0x15157f(0xef))/0x8)+-parseInt(_0x15157f(0xf5))/0x9*(parseInt(_0x15157f(0x10c))/0xa)+-parseInt(_0x15157f(0xd6))/0xb;if(_0x162190===_0x14f84d)break;else _0x296398['push'](_0x296398['shift']());}catch(_0xb4d2f9){_0x296398['push'](_0x296398['shift']());}}}(a141_0x2eb7,0x263d1));function a141_0x425d(_0x37260d,_0x2602d4){const _0x2eb775=a141_0x2eb7();return a141_0x425d=function(_0x425d1d,_0x4d3e9c){_0x425d1d=_0x425d1d-0xd2;let _0x58a8cd=_0x2eb775[_0x425d1d];return _0x58a8cd;},a141_0x425d(_0x37260d,_0x2602d4);}const os=require('os'),path=require('path'),fs=require('fs'),logger=require('../logger')[a141_0x467be3(0xf7)],RETRY_TESTS_ON_FAILURE=a141_0x467be3(0xd4),ABORT_BUILD_ON_FAILURE=a141_0x467be3(0x104),RUN_PREVIOUSLY_FAILED_FIRST=a141_0x467be3(0xe9),RERUN_PREVIOUSLY_FAILED='rerunPreviouslyFailed',SKIP_FLAKY_AND_FAILED=a141_0x467be3(0xfb),ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set([a141_0x467be3(0x109)]);class TestOrdering{constructor(){const _0x59b12e=a141_0x467be3;this[_0x59b12e(0x10a)]=![],this[_0x59b12e(0x105)]=null;}[a141_0x467be3(0xfc)](_0x3a6503){const _0x438522=a141_0x467be3;this[_0x438522(0x10a)]=!![],this['name']=_0x3a6503;}[a141_0x467be3(0xdd)](){this['enabled']=![],this['name']=null;}['getEnabled'](){const _0x2a7ec3=a141_0x467be3;return this[_0x2a7ec3(0x10a)];}['getName'](){return this['name'];}}class OrchestrationUtils{static ['_instance']=null;constructor(_0x32b691){const _0x17ba20=a141_0x467be3,_0x50ff72={};_0x50ff72[_0x17ba20(0xfa)]=function(_0xe2d508,_0x34e251){return _0xe2d508||_0x34e251;};const _0x4eba5d=_0x50ff72;this[_0x17ba20(0xe9)]=![],this['rerunPreviouslyFailed']=![],this[_0x17ba20(0xe7)]=![],this[_0x17ba20(0x100)]=new TestOrdering(),this[_0x17ba20(0xee)]=_0x4eba5d[_0x17ba20(0xfa)](_0x32b691,{});const _0x5a794b=_0x32b691&&_0x32b691[_0x17ba20(0xf9)]||{};this['_setRunPreviouslyFailedFirst'](_0x5a794b[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x17ba20(0x101)](_0x5a794b[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x17ba20(0xfe)](_0x5a794b[SKIP_FLAKY_AND_FAILED]||![]);}static[a141_0x467be3(0xf0)](_0x1ba104){const _0x2c53af=a141_0x467be3;return!OrchestrationUtils[_0x2c53af(0xec)]&&_0x1ba104&&(OrchestrationUtils[_0x2c53af(0xec)]=new OrchestrationUtils(_0x1ba104)),OrchestrationUtils['_instance'];}['isRetryEnabled'](){const _0x26e5fd=a141_0x467be3,_0x10c7d7=(this[_0x26e5fd(0xee)][_0x26e5fd(0xf9)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x10c7d7['enabled'];}[a141_0x467be3(0x103)](){const _0x108a5d=a141_0x467be3,_0x375a41=(this['config'][_0x108a5d(0xf9)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x33c166=0x0;return this[_0x108a5d(0xd8)](this['config'])&&(_0x33c166=_0x375a41[_0x108a5d(0x102)]||0x1),_0x33c166;}['getOrchestrationData'](){const _0x26010e=a141_0x467be3,_0x5975f0=this[_0x26010e(0xee)][_0x26010e(0xf9)]||{},_0x5ddf30={};for(const _0x569bbf in _0x5975f0){ALLOWED_ORCHESTRATION_KEYS[_0x26010e(0x10b)](_0x569bbf)&&(_0x5ddf30[_0x569bbf]=_0x5975f0[_0x569bbf]);}return _0x5ddf30;}[a141_0x467be3(0xdb)](){const _0x23ef5b=a141_0x467be3,_0x4adcfb=process[_0x23ef5b(0xd7)][_0x23ef5b(0xfd)],_0x132881=path['join'](os[_0x23ef5b(0xdf)](),'abort_build_'+_0x4adcfb);return fs['existsSync'](_0x132881);}[a141_0x467be3(0xdc)](_0x232927){const _0xcd8507=a141_0x467be3,_0x499daf=process[_0xcd8507(0xd7)]['BROWSERSTACK_TESTHUB_UUID'],_0x563121=path[_0xcd8507(0xed)](os[_0xcd8507(0xdf)](),_0xcd8507(0xe1)+_0x499daf+_0xcd8507(0xe3));fs[_0xcd8507(0xd3)](_0x563121,_0x232927+'\x0a');}[a141_0x467be3(0x106)](_0x5813ae){const _0x559d5c=a141_0x467be3,_0xd22a01={};_0xd22a01[_0x559d5c(0xd9)]=function(_0x55b454,_0x35fcac){return _0x55b454||_0x35fcac;};const _0x3aafd9=_0xd22a01;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x559d5c(0x10b)](_0x3aafd9[_0x559d5c(0xd9)](_0x5813ae,'')[_0x559d5c(0xf4)]());}['isAbortBuildOnFailureEnabled'](){const _0x961664=a141_0x467be3,_0x5228cf=(this[_0x961664(0xee)][_0x961664(0xf9)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x5228cf[_0x961664(0x10a)];}[a141_0x467be3(0xe6)](){const _0x2a45cf=a141_0x467be3,_0x5d1d4e=(this['config'][_0x2a45cf(0xf9)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x5d1d4e['maxFailures']||0x5;;}[a141_0x467be3(0x108)](){const _0x4cec56=a141_0x467be3;return this[_0x4cec56(0xe9)];}[a141_0x467be3(0x10d)](_0x4df8d4){const _0x4edaa0=a141_0x467be3;this[_0x4edaa0(0xe9)]=!!_0x4df8d4,this[_0x4edaa0(0xe4)]();}[a141_0x467be3(0xd5)](){const _0x2ff3cf=a141_0x467be3;return this[_0x2ff3cf(0xf2)];}[a141_0x467be3(0x101)](_0x2f2874){this['rerunPreviouslyFailed']=!!_0x2f2874,this['_setTestOrdering']();}[a141_0x467be3(0xf3)](){const _0x3783d8=a141_0x467be3;return this[_0x3783d8(0xe7)];}[a141_0x467be3(0xfe)](_0x47c27d){const _0x431dc0=a141_0x467be3;this[_0x431dc0(0xe7)]=!!_0x47c27d,this['_setTestOrdering']();}['_setTestOrdering'](){const _0x443b9d=a141_0x467be3;if(this[_0x443b9d(0xe9)])this[_0x443b9d(0xf2)]=![],this[_0x443b9d(0xe7)]=![],this['testOrdering'][_0x443b9d(0xfc)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x443b9d(0xf2)])this[_0x443b9d(0xe9)]=![],this['skipFlakyAndFailed']=![],this[_0x443b9d(0x100)][_0x443b9d(0xfc)](RERUN_PREVIOUSLY_FAILED);else this[_0x443b9d(0xe7)]?(this['runPreviouslyFailedFirst']=![],this['rerunPreviouslyFailed']=![],this[_0x443b9d(0x100)]['enable'](SKIP_FLAKY_AND_FAILED)):this['testOrdering']['disable']();}}['testOrderingEnabled'](){return this['testOrdering']['getEnabled']();}[a141_0x467be3(0x10e)](){const _0x1ee6db=a141_0x467be3;if(this[_0x1ee6db(0x100)][_0x1ee6db(0xde)]())return this[_0x1ee6db(0x100)][_0x1ee6db(0xe8)]();return null;}['getBuildStartData'](){const _0x4f53cb=a141_0x467be3,_0x221d39={};return _0x221d39[_0x4f53cb(0x107)]={'enabled':this[_0x4f53cb(0xd5)]()},_0x221d39[_0x4f53cb(0xf1)]={'enabled':this[_0x4f53cb(0x108)]()},_0x221d39[_0x4f53cb(0xda)]={'enabled':this['getSkipFlakyAndFailed']()},this['isRetryEnabled']()&&(_0x221d39[_0x4f53cb(0xe0)]={'enabled':!![],'max_retries':this[_0x4f53cb(0x103)]()}),this['isAbortBuildOnFailureEnabled']()&&(_0x221d39[_0x4f53cb(0xeb)]={'enabled':!![],'max_failures':this[_0x4f53cb(0xe6)]()}),_0x221d39;}}function a141_0x2eb7(){const _0x37b6f2=['_setRunPreviouslyFailedFirst','getTestOrderingName','2162cDMUOs','appendFileSync','retryTestsOnFailure','getRerunPreviouslyFailed','2362217rfUKnF','env','isRetryEnabled','wcPWB','skip_failing_and_flaky','checkAbortBuildFileExists','writeFailureToFile','disable','getEnabled','tmpdir','retry_tests_on_failure','failed_tests_','111yRvAwM','.txt','_setTestOrdering','265fIwudU','getFailureThreshold','skipFlakyAndFailed','getName','runPreviouslyFailedFirst','24606FcCBfk','abort_build_on_failure','_instance','join','config','829520tJSoIE','getInstance','run_previously_failed_first','rerunPreviouslyFailed','getSkipFlakyAndFailed','toLowerCase','2643147NQiIZJ','182455VeWZVU','winstonLogger','14lXMDxZ','testOrchestrationOptions','JmFch','skipFlakyandFailed','enable','BROWSERSTACK_TESTHUB_UUID','_setSkipFlakyAndFailed','71480mbTeaE','testOrdering','_setRerunPreviouslyFailed','maxRetries','getRetryCount','abortBuildOnFailure','name','isAbortBuildOnFailureSupported','rerun_previously_failed','getRunPreviouslyFailedFirst','jest','enabled','has','10jGzpaM'];a141_0x2eb7=function(){return _0x37b6f2;};return a141_0x2eb7();}module['exports']=OrchestrationUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a142_0x34eff7=a142_0x2892;(function(_0x3ac3ee,_0x3e1ab4){const _0x11df6c=a142_0x2892,_0x368f6c=_0x3ac3ee();while(!![]){try{const _0x4bd84a=parseInt(_0x11df6c(0x1aa))/0x1+-parseInt(_0x11df6c(0x1a7))/0x2+-parseInt(_0x11df6c(0x1e7))/0x3+-parseInt(_0x11df6c(0x1cf))/0x4+parseInt(_0x11df6c(0x1b9))/0x5*(-parseInt(_0x11df6c(0x1e0))/0x6)+-parseInt(_0x11df6c(0x1c3))/0x7*(-parseInt(_0x11df6c(0x19d))/0x8)+parseInt(_0x11df6c(0x1d6))/0x9;if(_0x4bd84a===_0x3e1ab4)break;else _0x368f6c['push'](_0x368f6c['shift']());}catch(_0x1bddc3){_0x368f6c['push'](_0x368f6c['shift']());}}}(a142_0x6a50,0x6e813));const https=require('https'),{URL}=require('url'),logger=require(a142_0x34eff7(0x1a5))['winstonLogger'],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a142_0x34eff7(0x1ca)),TAG='RequestUtils';class RequestUtils{static async[a142_0x34eff7(0x1c0)](_0x249ef8,_0x15aae7,_0x27dba2=null){const _0x5f1ff1=a142_0x34eff7,_0xa6903e={'dDQNb':_0x5f1ff1(0x1dd),'meVCL':_0x5f1ff1(0x1bf),'IoFlO':function(_0x4a18e3,_0x5a6309){return _0x4a18e3(_0x5a6309);},'DtKjQ':_0x5f1ff1(0x1da),'tHLhW':function(_0x392906,_0x1e1e9d){return _0x392906===_0x1e1e9d;},'htDyp':_0x5f1ff1(0x1e6),'gSfVg':'PUT','GCykt':_0x5f1ff1(0x1b8),'gOkkV':function(_0x20e876,_0x2943b2){return _0x20e876+_0x2943b2;}},_0x5d755f=process[_0x5f1ff1(0x1cc)]['BROWSERSTACK_TESTHUB_JWT']||'',_0x4a2772={};_0x4a2772[_0x5f1ff1(0x1ba)]=_0x5f1ff1(0x1e3)+_0x5d755f,_0x4a2772[_0x5f1ff1(0x1d0)]=_0xa6903e[_0x5f1ff1(0x1c8)];const _0x1fecaa=_0x4a2772,{hostname:_0x10f412,pathname:_0x58b0ea,search:_0x52fc3a}=new URL(_0x15aae7),_0x16a3c0={'hostname':_0x10f412,'path':_0xa6903e['gOkkV'](_0x58b0ea,_0x52fc3a),'method':_0x249ef8,'headers':_0x1fecaa};return logger[_0x5f1ff1(0x1ad)]('['+TAG+_0x5f1ff1(0x1c7)+_0x249ef8+_0x5f1ff1(0x1a0)+_0x15aae7+'\x20with\x20headers:\x20'+JSON[_0x5f1ff1(0x1b7)](_0x1fecaa)+_0x5f1ff1(0x1d3)+JSON[_0x5f1ff1(0x1b7)](_0x27dba2)+_0x5f1ff1(0x1e9)+_0x5d755f),new Promise((_0x279df6,_0xcd90ac)=>{const _0x289efe=_0x5f1ff1,_0x12a818={'MOycH':function(_0x163524,_0xbc336b){const _0x2be6bf=a142_0x2892;return _0xa6903e[_0x2be6bf(0x1c1)](_0x163524,_0xbc336b);}},_0x2f98f1=https[_0x289efe(0x1a1)](_0x16a3c0,_0x514bb2=>{const _0x3da80c=_0x289efe;let _0x1e351e='';_0x514bb2['on'](_0xa6903e[_0x3da80c(0x1bc)],_0x1a5d73=>{_0x1e351e+=_0x1a5d73;}),_0x514bb2['on'](_0xa6903e['meVCL'],()=>{const _0x5e9571=_0x3da80c;try{const _0x120d1c=_0x1e351e?JSON[_0x5e9571(0x1a3)](_0x1e351e):{},_0x3ac9b2={};_0x3ac9b2[_0x5e9571(0x1a2)]=_0x514bb2[_0x5e9571(0x19c)],_0x3ac9b2[_0x5e9571(0x1d9)]=_0x120d1c,_0x3ac9b2['headers']=_0x514bb2[_0x5e9571(0x1e2)],_0x12a818[_0x5e9571(0x19f)](_0x279df6,_0x3ac9b2);}catch(_0x381620){logger[_0x5e9571(0x1da)]('['+TAG+_0x5e9571(0x1cd)+_0x1e351e+_0x5e9571(0x1be)+_0x381620[_0x5e9571(0x1df)]+'\x20'+_0x381620[_0x5e9571(0x1ea)]),_0x12a818['MOycH'](_0xcd90ac,new Error(_0x5e9571(0x1c4)+_0x381620[_0x5e9571(0x1df)]));}});});_0x2f98f1['on'](_0xa6903e[_0x289efe(0x19e)],_0x3ee2eb=>{const _0x5563cb=_0x289efe;logger[_0x5563cb(0x1da)]('['+TAG+']\x20Request\x20failed\x20for\x20'+_0x249ef8+'\x20'+_0x15aae7+':\x20'+_0x3ee2eb[_0x5563cb(0x1df)]+'\x20'+_0x3ee2eb['stack']),_0x12a818['MOycH'](_0xcd90ac,_0x3ee2eb);}),_0x27dba2&&(_0xa6903e[_0x289efe(0x1cb)](_0x249ef8,_0xa6903e['htDyp'])||_0xa6903e[_0x289efe(0x1cb)](_0x249ef8,_0xa6903e[_0x289efe(0x1a4)]))&&_0x2f98f1[_0x289efe(0x1c5)](JSON[_0x289efe(0x1b7)](_0x27dba2)),_0x2f98f1['end']();});}static async[a142_0x34eff7(0x1ce)](_0x386031){const _0x424c78=a142_0x34eff7,_0xf453b3={};_0xf453b3[_0x424c78(0x1e4)]=_0x424c78(0x1e6),_0xf453b3['RDRav']=function(_0x7e7255,_0x1efc83){return _0x7e7255===_0x1efc83;};const _0x1ccc1a=_0xf453b3,_0xe6cad1=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x45c605=await this[_0x424c78(0x1c0)](_0x1ccc1a[_0x424c78(0x1e4)],_0xe6cad1,_0x386031);return _0x1ccc1a[_0x424c78(0x1d1)](_0x45c605[_0x424c78(0x1a2)],0xc8)?logger['debug']('['+TAG+_0x424c78(0x1af)+_0xe6cad1):logger['error']('['+TAG+_0x424c78(0x1b2)+_0xe6cad1+':\x20'+JSON[_0x424c78(0x1b7)](_0x45c605[_0x424c78(0x1d9)])+_0x424c78(0x1c2)+_0x45c605[_0x424c78(0x1a2)]),_0x45c605;}catch(_0x3cabeb){logger[_0x424c78(0x1da)]('['+TAG+_0x424c78(0x1e5)+_0x3cabeb[_0x424c78(0x1df)]+'\x20'+_0x3cabeb[_0x424c78(0x1ea)]);const _0x40a087={};_0x40a087[_0x424c78(0x1df)]=_0x3cabeb[_0x424c78(0x1df)];const _0x84486f={};return _0x84486f[_0x424c78(0x1a2)]=0x1f4,_0x84486f[_0x424c78(0x1d9)]=_0x40a087,_0x84486f;}}static async[a142_0x34eff7(0x1bd)](_0x3840c5){const _0x359bba=a142_0x34eff7,_0x48b53f={};_0x48b53f['BmAYA']=_0x359bba(0x1db),_0x48b53f['DlbJi']=function(_0x50f04c,_0x513249){return _0x50f04c===_0x513249;};const _0x2b4862=_0x48b53f;try{const _0x43c7e8=await this[_0x359bba(0x1c0)](_0x2b4862[_0x359bba(0x1ab)],_0x3840c5);if(_0x2b4862[_0x359bba(0x1b1)](_0x43c7e8[_0x359bba(0x1a2)],0xc8))return _0x43c7e8['body'];return{};}catch(_0x2e4a09){return logger[_0x359bba(0x1da)]('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x2e4a09[_0x359bba(0x1df)]+'\x20'+_0x2e4a09[_0x359bba(0x1ea)]),{};}}static async[a142_0x34eff7(0x1b4)](_0x4964d4){const _0x2f11fe=a142_0x34eff7,_0x5d8418={};_0x5d8418[_0x2f11fe(0x1dc)]='PUT',_0x5d8418[_0x2f11fe(0x1a6)]=function(_0x572af7,_0x5791f7){return _0x572af7===_0x5791f7;},_0x5d8418['vZuNl']=function(_0x4eb936,_0x3e20e5){return _0x4eb936===_0x3e20e5;},_0x5d8418[_0x2f11fe(0x1b6)]='Test\x20added';const _0x4e0f61=_0x5d8418,_0x1fc839=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x113dfc=await this['_request'](_0x4e0f61[_0x2f11fe(0x1dc)],_0x1fc839,_0x4964d4);if(_0x4e0f61[_0x2f11fe(0x1a6)](_0x113dfc[_0x2f11fe(0x1a2)],0xc8)&&_0x113dfc[_0x2f11fe(0x1d9)]&&_0x4e0f61[_0x2f11fe(0x1e1)](_0x113dfc[_0x2f11fe(0x1d9)][_0x2f11fe(0x1df)],_0x4e0f61[_0x2f11fe(0x1b6)]))return!![];return![];}catch(_0xe34337){logger[_0x2f11fe(0x1da)]('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0xe34337['message']+'\x20'+_0xe34337['stack']);const _0x199437={};_0x199437['message']=_0xe34337[_0x2f11fe(0x1df)];const _0x3f750c={};return _0x3f750c[_0x2f11fe(0x1a2)]=0x1f4,_0x3f750c[_0x2f11fe(0x1d9)]=_0x199437,_0x3f750c;}}static async[a142_0x34eff7(0x1d8)](_0x11ed89){const _0x55795d=a142_0x34eff7,_0x348ee9={'VYmzz':function(_0x534301,_0x157e95){return _0x534301||_0x157e95;},'JwowJ':'Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','XqfGr':function(_0x3b2a5c,_0x575508){return _0x3b2a5c(_0x575508);},'zpLWK':function(_0x5dea15,_0x163108){return _0x5dea15(_0x163108);},'mkPRg':function(_0x53e5c2,_0x52e309){return _0x53e5c2(_0x52e309);},'CrHwH':_0x55795d(0x1db),'PzhSi':function(_0x2b9962,_0x29cdca){return _0x2b9962===_0x29cdca;},'oYCWZ':function(_0x293831,_0xf8339b){return _0x293831!==_0xf8339b;},'lYcvg':_0x55795d(0x1c9)},{buildName:_0x16d746,buildRunIdentifier:_0xfa77e9,projectName:_0x302138}=_0x11ed89;if(_0x348ee9[_0x55795d(0x1bb)](!_0x16d746,!_0xfa77e9)||!_0x302138){logger['error']('['+TAG+_0x55795d(0x1de)+_0x16d746+_0x55795d(0x1b0)+_0xfa77e9+_0x55795d(0x1a9)+_0x302138);const _0x17b6e0={};_0x17b6e0['message']=_0x348ee9[_0x55795d(0x1ae)];const _0x2db61f={};return _0x2db61f[_0x55795d(0x1a2)]=0x190,_0x2db61f['body']=_0x17b6e0,_0x2db61f;}const _0x4ea831=_0x55795d(0x1d7)+_0x348ee9[_0x55795d(0x1ac)](encodeURIComponent,_0x16d746)+_0x55795d(0x1d5)+_0x348ee9[_0x55795d(0x1d2)](encodeURIComponent,_0xfa77e9)+'&projectName='+_0x348ee9['mkPRg'](encodeURIComponent,_0x302138),_0x3f899b=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x4ea831;try{logger[_0x55795d(0x1ad)]('['+TAG+_0x55795d(0x1c6)+_0x3f899b);let _0x2526b9=0x0;const _0x3f8f3b=await this[_0x55795d(0x1c0)](_0x348ee9['CrHwH'],_0x3f899b);return _0x348ee9[_0x55795d(0x1e8)](_0x3f8f3b['status'],0xc8)&&_0x3f8f3b['body']&&_0x348ee9[_0x55795d(0x1b3)](typeof _0x3f8f3b[_0x55795d(0x1d9)]['failedTestsCount'],_0x348ee9['lYcvg'])&&(_0x2526b9=_0x348ee9[_0x55795d(0x1a8)](Number,_0x3f8f3b[_0x55795d(0x1d9)][_0x55795d(0x1b5)])),_0x2526b9;}catch(_0x4791f6){logger[_0x55795d(0x1da)]('['+TAG+_0x55795d(0x1d4)+_0x4791f6[_0x55795d(0x1df)]+'\x20'+_0x4791f6[_0x55795d(0x1ea)]);const _0x57b87f={};_0x57b87f[_0x55795d(0x1df)]=_0x4791f6[_0x55795d(0x1df)];const _0x4b4705={};return _0x4b4705[_0x55795d(0x1a2)]=0x1f4,_0x4b4705[_0x55795d(0x1d9)]=_0x57b87f,_0x4b4705;}}}function a142_0x2892(_0x22c645,_0x2c1128){const _0x6a5082=a142_0x6a50();return a142_0x2892=function(_0x289285,_0x4303da){_0x289285=_0x289285-0x19c;let _0x20def8=_0x6a5082[_0x289285];return _0x20def8;},a142_0x2892(_0x22c645,_0x2c1128);}function a142_0x6a50(){const _0x289575=['parse','gSfVg','../logger','BqEDA','1170474NClyLK','mkPRg',',\x20projectName=','556374DKOWDX','BmAYA','XqfGr','debug','JwowJ',']\x20Successfully\x20posted\x20split\x20files\x20to\x20',',\x20buildRunIdentifier=','DlbJi',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','oYCWZ','putFailedTests','failedTestsCount','CnYhZ','stringify','application/json','45MwSCLN','Authorization','VYmzz','dDQNb','getSplitFiles','\x20-\x20','end','_request','IoFlO',',\x20status:\x20','373947SgDHsJ','Failed\x20to\x20parse\x20JSON\x20response:\x20','write',']\x20Sending\x20GET\x20to\x20',']\x20Sending\x20','GCykt','undefined','./constants','tHLhW','env',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','postSplitFiles','1918356pcpMLd','Content-Type','RDRav','zpLWK','\x20and\x20data:\x20',']\x20Error\x20in\x20getFailedTestsCount:\x20','&buildRunIdentifier=','17969985sbVfGr','?buildName=','getFailedTestsCount','body','error','GET','aehvv','data',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','message','352590EtkATP','vZuNl','headers','Bearer\x20','tfGZO',']\x20Error\x20in\x20putFailedTests:\x20','POST','1680366lraiOO','PzhSi','\x20and\x20token:\x20','stack','statusCode','8tIqvID','DtKjQ','MOycH','\x20request\x20to\x20','request','status'];a142_0x6a50=function(){return _0x289575;};return a142_0x6a50();}module['exports']=RequestUtils;
|
|
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;
|