browserstack-node-sdk 1.46.8 → 1.47.0
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/generated/sdk-messages_pb.d.ts +18 -0
- package/generated/sdk-messages_pb.js +147 -3
- 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/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -0
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -0
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a126_0x748072=a126_0x33f3;(function(_0x5b0937,_0x2c0c1c){const _0x26eb18=a126_0x33f3,_0x3a6110=_0x5b0937();while(!![]){try{const _0x1dc492=-parseInt(_0x26eb18(0x179))/0x1+parseInt(_0x26eb18(0x153))/0x2+parseInt(_0x26eb18(0x133))/0x3+parseInt(_0x26eb18(0x116))/0x4+parseInt(_0x26eb18(0x10a))/0x5*(parseInt(_0x26eb18(0x109))/0x6)+-parseInt(_0x26eb18(0x10e))/0x7+-parseInt(_0x26eb18(0x14a))/0x8*(-parseInt(_0x26eb18(0x110))/0x9);if(_0x1dc492===_0x2c0c1c)break;else _0x3a6110['push'](_0x3a6110['shift']());}catch(_0x31d265){_0x3a6110['push'](_0x3a6110['shift']());}}}(a126_0x5dcb,0x26164));const bsSetupHelper=require(a126_0x748072(0x180)),path=require(a126_0x748072(0x137)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a126_0x748072(0x140)),logger=require(a126_0x748072(0xff))[a126_0x748072(0x10c)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a126_0x748072(0x177)),util=require(a126_0x748072(0x14f)),constants=require(a126_0x748072(0x14e));function a126_0x33f3(_0x44c477,_0x3fd81e){const _0x5dcb5f=a126_0x5dcb();return a126_0x33f3=function(_0x33f340,_0x544486){_0x33f340=_0x33f340-0xe3;let _0x559c7d=_0x5dcb5f[_0x33f340];return _0x559c7d;},a126_0x33f3(_0x44c477,_0x3fd81e);}function a126_0x5dcb(){const _0x10444c=['\x20retry\x20runs\x20exceeded','bTjnQ','eKyTm','BhqEg','jwt','getInstance','includes','env','\x20failed\x20due\x20to\x20','HccWC','Test_Start_Upload','HZbZZ','sendTraceZip','message','password','error','USxsF','BROWSERSTACK_TESTHUB_JWT','username','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','Retry\x20runs\x20exceeded','jgcgm','hook_run','quNHC','LogCreated','status','mdXpM','getLogTag','TDTTA','nestedKeyValue','../logger','getUserName','gfXQH','allow_screenshots','aqpxO','BROWSERSTACK_BUILD_RUN_IDENTIFIER','PrsjO','ZYASQ','start','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','6882FzJfMo','845HNuMmP','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','winstonLogger','debug','1753969fCDwqI','mxgMe','9063SlgEmJ','BqVrt','gsCOX','toISOString','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','null','121940CyhGYt','logs','BROWSERSTACK_TESTHUB_UUID','Authorization','CBT_Upload','CBTSessionCreated','info','EXCEPTION\x20IN\x20','\x20REQUEST\x20TO\x20','euLTH','VNlKn','Content-Type','json','qRdtJ','mOtbP','TestRunStarted','TXOIf','statusText','application/json','NXCnF','nwCDW','POST','Data\x20upload\x20to\x20BrowserStack\x20','VpqdO',']\x20event\x20successful!','requestQueueHandler','Build\x20creation\x20successful!','toString','resolve','153222WSSlUX','rmLWv','getAgentVersion','projectName','path','uuid','event_type','sendEventData','pendingUploads','cwd','BS_TESTOPS_JWT','yrdGR','response','./requestQueueHandler','zDAfb','iewsU','chlIi','yDYKq','browserstackAutomation','Log_Upload','HGQcJ','BROWSERSTACK_RERUN','Test_End_Upload','664fTfVZT','true','mrdnl','launch','../../bin/utils/constants','util','BS_TESTOPS_BUILD_HASHED_ID','OgdFm','data','338446GmnnzT','WPnVL','UPOpW','basename','headers','buildDescription','test_run','pWhJD','ERROR_SDK_DEPRECATED','aARjR','eventUrl','ztdbn','BS_TESTOPS_ALLOW_SCREENSHOTS','false','ofRFt','\x20:\x20','success','uploadEventData','getHostInfo','uzuUB','stringify','waitForBuildStatus','iUBOE','FbaHm','KbbNY','buildName','Hook_End_Upload','Bearer\x20','build_hashed_id','BS_TESTOPS_BUILD_COMPLETED','max','hiwpl','api/v1/event','TestRunSkipped','test_run_uuid','getCiInfo','../../helpers/testhub/utils','ItqJW','121635lKcLhN','wxXQq','bROCa','errorType','jbizb','vQbWn','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','../helper','Processing\x20event\x20-\x20\x27','fjqih','Sending\x20trace\x20zip\x20for\x20test:\x20','yKjQD','eHOjf','TEST_REPORTING_ANALYTICS','add','kNMcM','MbdHs'];a126_0x5dcb=function(){return _0x10444c;};return a126_0x5dcb();}class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler[a126_0x748072(0xe5)]();static async[a126_0x748072(0x14d)](_0x30bcbc,_0x2c98fd){const _0x550208=a126_0x748072,_0x3f4551={'pWhJD':function(_0x534b23,_0x2363eb){return _0x534b23||_0x2363eb;},'mOtbP':function(_0x29b6ad,_0xd884dc){return _0x29b6ad||_0xd884dc;},'rmcqb':function(_0x51039c,_0x10ed06){return _0x51039c===_0x10ed06;},'ofRFt':function(_0x204c92,_0x1b5e4f){return _0x204c92(_0x1b5e4f);},'QEtwv':_0x550208(0x108),'LBybN':_0x550208(0x160),'qYSZw':_0x550208(0x122),'HGQcJ':function(_0x8b2419,_0x4caa32){return _0x8b2419(_0x4caa32);},'HccWC':function(_0x2267e4,_0x114bc4){return _0x2267e4(_0x114bc4);},'ZYASQ':function(_0x4a8d8a,_0x1072cc){return _0x4a8d8a(_0x1072cc);},'vdLVU':function(_0x2f600d,_0xa4223b,_0x17bb92,_0x31f354,_0x129290){return _0x2f600d(_0xa4223b,_0x17bb92,_0x31f354,_0x129290);},'mdXpM':_0x550208(0x12b),'IgVUC':'api/v1/builds','MbdHs':function(_0x45a87f,_0x2ba525){return _0x45a87f(_0x2ba525);},'mxgMe':_0x550208(0x130),'bTjnQ':function(_0x347503){return _0x347503();},'USxsF':_0x550208(0x14b),'FbaHm':_0x550208(0x115),'hiwpl':function(_0x38112c,_0x1a56fc){return _0x38112c(_0x1a56fc);},'ItqJW':'ERROR_INVALID_CREDENTIALS','QPzqS':'ERROR_ACCESS_DENIED','VNlKn':_0x550208(0x15b)};logger['info'](_0x550208(0x17f)+util['inspect'](_0x30bcbc));const _0x117bad=bsSetupHelper[_0x550208(0x100)](_0x30bcbc),_0x31541d=bsSetupHelper['getAccessKey'](_0x30bcbc),_0x57a655=_0x3f4551[_0x550208(0x15a)](_0x117bad,'')+':'+_0x3f4551[_0x550208(0x124)](_0x31541d,'');if(_0x3f4551['rmcqb'](_0x57a655,':'))return _0x3f4551[_0x550208(0x161)](debug,_0x3f4551['QEtwv']),process[_0x550208(0xe7)][_0x550208(0x170)]=_0x3f4551['LBybN'],[null,null];let _0x3d0c78=![],_0x3c7b78=![];if(_0x30bcbc[_0x550208(0x145)]&&_0x30bcbc['app'])_0x3c7b78=!![];else _0x30bcbc[_0x550208(0x145)]&&(_0x3d0c78=!![]);try{const _0x2ac5d3={'format':_0x3f4551['qYSZw'],'project_name':_0x30bcbc[_0x550208(0x136)]||'','name':_0x30bcbc[_0x550208(0x16c)]||path[_0x550208(0x156)](path[_0x550208(0x132)](process[_0x550208(0x13c)]())),'build_identifier':_0x30bcbc['buildIdentifier'],'description':_0x30bcbc[_0x550208(0x158)]||'','start_time':new Date()[_0x550208(0x113)](),'tags':_0x3f4551[_0x550208(0x147)](getCustomTags,_0x30bcbc),'host_info':bsSetupHelper[_0x550208(0x165)](),'ci_info':bsSetupHelper[_0x550208(0x176)](),'build_run_identifier':process[_0x550208(0xe7)][_0x550208(0x104)],'failed_tests_rerun':process[_0x550208(0xe7)][_0x550208(0x148)]||![],'version_control':await bsSetupHelper['getGitMetaData'](),'observability_version':{'frameworkName':_0x2c98fd['frameworkName'],'frameworkVersion':_0x2c98fd['frameworkVersion'],'sdkVersion':bsSetupHelper[_0x550208(0x135)]()},'product_map':_0x3f4551[_0x550208(0xe9)](getProductMap,_0x30bcbc),'test_orchestration':_0x3f4551[_0x550208(0x106)](getTestOrchestrationBuildStartData,_0x30bcbc)},_0xcc9977={};_0xcc9977[_0x550208(0xf2)]=_0x117bad,_0xcc9977[_0x550208(0xee)]=_0x31541d;const _0x55aa7a={'auth':_0xcc9977,'headers':_0x3f4551[_0x550208(0x106)](getDefaultHeaders,![])},_0x46eb22=await _0x3f4551['vdLVU'](nodeRequest,_0x3f4551[_0x550208(0xfb)],_0x3f4551['IgVUC'],_0x2ac5d3,_0x55aa7a);_0x3f4551[_0x550208(0x189)](debug,_0x3f4551[_0x550208(0x10f)]);const _0x1c27e9=_0x46eb22[_0x550208(0x152)];_0x1c27e9[_0x550208(0x16f)]&&(process[_0x550208(0xe7)][_0x550208(0x118)]=_0x1c27e9['build_hashed_id']);if(_0x3f4551[_0x550208(0x18b)](isTestObservabilitySession)){process[_0x550208(0xe7)][_0x550208(0x170)]=_0x3f4551[_0x550208(0xf0)];if(_0x1c27e9[_0x550208(0xe4)]){process[_0x550208(0xe7)][_0x550208(0x13d)]=_0x1c27e9[_0x550208(0xe4)];const _0x2fd38f={};_0x2fd38f[_0x550208(0xf2)]=_0x117bad,_0x2fd38f['password']=_0x31541d,process[_0x550208(0xe7)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x550208(0x167)](_0x2fd38f);}_0x1c27e9[_0x550208(0x16f)]&&(process[_0x550208(0xe7)][_0x550208(0x150)]=_0x1c27e9[_0x550208(0x16f)]),_0x1c27e9[_0x550208(0x102)]&&(process[_0x550208(0xe7)][_0x550208(0x15f)]=_0x1c27e9['allow_screenshots'][_0x550208(0x131)]());}return[_0x46eb22[_0x550208(0x152)][_0x550208(0xe4)],_0x46eb22[_0x550208(0x152)][_0x550208(0x16f)],_0x46eb22[_0x550208(0x152)][_0x550208(0x102)]];}catch(_0x3475d0){process[_0x550208(0xe7)][_0x550208(0x118)]=_0x3f4551[_0x550208(0x16a)],process[_0x550208(0xe7)][_0x550208(0x170)]=_0x3f4551['LBybN'],process[_0x550208(0xe7)][_0x550208(0x13d)]=_0x3f4551[_0x550208(0x16a)],process[_0x550208(0xe7)][_0x550208(0x150)]=_0x3f4551[_0x550208(0x16a)],process['env'][_0x550208(0x15f)]=_0x3f4551[_0x550208(0x16a)];_0x3475d0[_0x550208(0x13f)]?_0x3f4551[_0x550208(0x172)](debug,_0x550208(0x10b)+_0x3475d0[_0x550208(0x13f)]['status']+'\x20'+_0x3475d0[_0x550208(0x13f)][_0x550208(0x127)]+'\x20'+JSON[_0x550208(0x167)](_0x3475d0['response'][_0x550208(0x152)])):_0x3f4551[_0x550208(0x106)](debug,_0x550208(0x10b)+(_0x3475d0[_0x550208(0xed)]||_0x3475d0));if(_0x3475d0&&_0x3475d0[_0x550208(0xed)]){const _0x42d9a1=_0x3475d0[_0x550208(0xed)];switch(_0x3475d0[_0x550208(0x17c)]){case _0x3f4551[_0x550208(0x178)]:logger[_0x550208(0xef)](_0x42d9a1);break;case _0x3f4551['QPzqS']:logger[_0x550208(0x11c)](_0x42d9a1);break;case _0x3f4551[_0x550208(0x120)]:logger[_0x550208(0xef)](_0x42d9a1);break;default:logger['error'](_0x42d9a1);}}else console['info'](_0x550208(0x12c)+constants[_0x550208(0x186)]+_0x550208(0xe8)+_0x3475d0);return[null,null,null];}}static async[a126_0x748072(0x168)](){const _0x502910=a126_0x748072,_0x2f3bde={'BhqEg':_0x502910(0x14b),'chlIi':'false','vQbWn':function(_0x4d76c7,_0xaca237){return _0x4d76c7(_0xaca237);}},_0x1b3085=process['env'][_0x502910(0x170)];if([_0x2f3bde[_0x502910(0xe3)],_0x2f3bde[_0x502910(0x143)]]['includes'](_0x1b3085))return;while([_0x2f3bde[_0x502910(0xe3)],_0x2f3bde[_0x502910(0x143)]][_0x502910(0xe6)](_0x1b3085)){await _0x2f3bde[_0x502910(0x17e)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a126_0x748072(0xfc)](_0x562404){const _0x4ae6cc=a126_0x748072,_0x56cc6f={};_0x56cc6f[_0x4ae6cc(0x14c)]=_0x4ae6cc(0xea),_0x56cc6f['KbbNY']=_0x4ae6cc(0x149),_0x56cc6f[_0x4ae6cc(0x15c)]='Test_Skipped_Upload',_0x56cc6f[_0x4ae6cc(0xf8)]=_0x4ae6cc(0x146),_0x56cc6f[_0x4ae6cc(0x123)]='Hook_Start_Upload',_0x56cc6f[_0x4ae6cc(0x166)]=_0x4ae6cc(0x16d),_0x56cc6f[_0x4ae6cc(0x184)]=_0x4ae6cc(0x11a);const _0x497ede=_0x56cc6f,_0x39a07d={};return _0x39a07d[_0x4ae6cc(0x125)]=_0x497ede[_0x4ae6cc(0x14c)],_0x39a07d['TestRunFinished']=_0x497ede[_0x4ae6cc(0x16b)],_0x39a07d[_0x4ae6cc(0x174)]=_0x497ede['aARjR'],_0x39a07d[_0x4ae6cc(0xf9)]=_0x497ede[_0x4ae6cc(0xf8)],_0x39a07d['HookRunStarted']=_0x497ede[_0x4ae6cc(0x123)],_0x39a07d['HookRunFinished']=_0x497ede[_0x4ae6cc(0x166)],_0x39a07d[_0x4ae6cc(0x11b)]=_0x497ede[_0x4ae6cc(0x184)],_0x39a07d[_0x562404[_0x4ae6cc(0x139)]];}static async[a126_0x748072(0x13a)](_0x5aae68,_0x426839=0x0,_0x234d89=null){const _0x2f7361=a126_0x748072,_0x98f8ca={'gsCOX':function(_0x1ad9db,_0x1c8b82){return _0x1ad9db===_0x1c8b82;},'UPOpW':_0x2f7361(0xec),'HZbZZ':function(_0x3bd4a4,_0x500684){return _0x3bd4a4!==_0x500684;},'tupzU':_0x2f7361(0x128),'naWVn':'true','TDTTA':function(_0x189c5e,_0x68383f){return _0x189c5e===_0x68383f;},'nwCDW':function(_0x59db04,_0x4cc0ff,_0x14885e,_0x304e7f,_0x511963){return _0x59db04(_0x4cc0ff,_0x14885e,_0x304e7f,_0x511963);},'jgcgm':_0x2f7361(0x12b),'ThmqQ':function(_0x394c9b,_0x1a768e,_0x4e282d,_0x5caf80,_0x5c0c65){return _0x394c9b(_0x1a768e,_0x4e282d,_0x5caf80,_0x5c0c65);},'euLTH':function(_0x238642,_0x2ebe22){return _0x238642(_0x2ebe22);},'WPnVL':function(_0x5a9379,_0x608c1a){return _0x5a9379!==_0x608c1a;},'fjqih':'Batch-Queue','BNxDw':function(_0x565c3d,_0x16673a){return _0x565c3d-_0x16673a;},'NXCnF':function(_0x2ce56,_0x401242){return _0x2ce56===_0x401242;},'iUBOE':_0x2f7361(0x173),'PrsjO':_0x2f7361(0x163),'HSXPA':function(_0x59c528,_0x3352a2){return _0x59c528(_0x3352a2);},'yDYKq':function(_0x5e1411,_0x395330){return _0x5e1411-_0x395330;},'tLRve':function(_0x545506,_0x27ee1f){return _0x545506===_0x27ee1f;},'AzJFF':'error'};_0x98f8ca[_0x2f7361(0x112)](_0x234d89,_0x98f8ca[_0x2f7361(0x155)])&&logger[_0x2f7361(0x10d)](_0x2f7361(0x183)+_0x5aae68[_0x2f7361(0x117)][0x0]['test_run_uuid']);const _0x30cd6d=await this[_0x2f7361(0xfc)](_0x5aae68);let _0x3e3223=_0x5aae68,_0x377fc9=EVENT_ENDPOINT;_0x98f8ca[_0x2f7361(0xeb)](_0x234d89,_0x98f8ca[_0x2f7361(0x155)])&&this[_0x2f7361(0x12f)][_0x2f7361(0x107)]();const {shouldProceed:_0xe9b1fc,proceedWithData:_0x4b539e,proceedWithUrl:_0x4c2e75}=this[_0x2f7361(0x12f)][_0x2f7361(0x187)](_0x5aae68);if(!_0xe9b1fc)return;else _0x4b539e&&(_0x3e3223=_0x4b539e,_0x377fc9=_0x4c2e75);const _0x4ebe56={};_0x4ebe56[_0x2f7361(0x119)]=_0x2f7361(0x16e)+process[_0x2f7361(0xe7)][_0x2f7361(0xf1)],_0x4ebe56[_0x2f7361(0x121)]=_0x98f8ca['tupzU'],_0x4ebe56['X-BSTACK-TESTOPS']=_0x98f8ca['naWVn'];const _0xc71bc9={};_0xc71bc9[_0x2f7361(0x157)]=_0x4ebe56;const _0x2b1c8c=_0xc71bc9;let _0x191880;try{_0x98f8ca[_0x2f7361(0xfd)](_0x234d89,_0x98f8ca[_0x2f7361(0x155)])?(logger[_0x2f7361(0x10d)]('Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20'+_0x5aae68?.[_0x2f7361(0x117)][0x0]?.[_0x2f7361(0x175)]),_0x191880=await _0x98f8ca[_0x2f7361(0x12a)](asyncAwaitNodeReq,_0x98f8ca[_0x2f7361(0xf6)],_0x377fc9,_0x3e3223,_0x2b1c8c),logger[_0x2f7361(0x10d)](_0x2f7361(0xf4)+_0x5aae68?.[_0x2f7361(0x117)][0x0]?.['test_run_uuid'])):_0x191880=await _0x98f8ca['ThmqQ'](nodeRequest,_0x98f8ca['jgcgm'],_0x377fc9,_0x3e3223,_0x2b1c8c);if(_0x191880['data'][_0x2f7361(0xef)]){const _0x4a453f={};_0x4a453f[_0x2f7361(0xed)]=_0x191880['data'][_0x2f7361(0xef)];throw _0x4a453f;}else{_0x98f8ca[_0x2f7361(0x11f)](debug,(_0x98f8ca['WPnVL'](_0x377fc9,this['requestQueueHandler'][_0x2f7361(0x15d)])?_0x30cd6d:_0x98f8ca[_0x2f7361(0x182)])+'['+_0x426839+_0x2f7361(0x12e)),this[_0x2f7361(0x12f)][_0x2f7361(0x13b)]=Math[_0x2f7361(0x171)](0x0,_0x98f8ca['BNxDw'](this[_0x2f7361(0x12f)][_0x2f7361(0x13b)],_0x98f8ca[_0x2f7361(0x129)](_0x377fc9,_0x98f8ca[_0x2f7361(0x169)])?0x1:_0x3e3223['length']));const _0x509a48={};return _0x509a48[_0x2f7361(0xfa)]=_0x98f8ca[_0x2f7361(0x105)],_0x509a48[_0x2f7361(0xed)]='',_0x509a48;}}catch(_0x53f4f4){_0x53f4f4['response']?_0x98f8ca['HSXPA'](debug,_0x2f7361(0x11d)+(_0x98f8ca[_0x2f7361(0x154)](_0x377fc9,this['requestQueueHandler'][_0x2f7361(0x15d)])?_0x30cd6d:_0x98f8ca['fjqih'])+'\x20REQUEST\x20TO\x20'+constants[_0x2f7361(0x186)]+'\x20:\x20'+_0x53f4f4[_0x2f7361(0x13f)]['status']+'\x20'+_0x53f4f4['response'][_0x2f7361(0x127)]+'\x20'+util['format'](_0x53f4f4[_0x2f7361(0x13f)][_0x2f7361(0x152)])):_0x98f8ca['HSXPA'](debug,_0x2f7361(0x11d)+(_0x98f8ca[_0x2f7361(0xeb)](_0x377fc9,this[_0x2f7361(0x12f)][_0x2f7361(0x15d)])?_0x30cd6d:_0x98f8ca[_0x2f7361(0x182)])+_0x2f7361(0x11e)+constants[_0x2f7361(0x186)]+_0x2f7361(0x162)+util['format'](_0x53f4f4));this[_0x2f7361(0x12f)][_0x2f7361(0x13b)]=Math[_0x2f7361(0x171)](0x0,_0x98f8ca[_0x2f7361(0x144)](this['requestQueueHandler'][_0x2f7361(0x13b)],_0x98f8ca['tLRve'](_0x377fc9,_0x98f8ca['iUBOE'])?0x1:_0x3e3223['length']));const _0x579b3d={};return _0x579b3d['status']=_0x98f8ca['AzJFF'],_0x579b3d[_0x2f7361(0xed)]=_0x53f4f4[_0x2f7361(0xed)]||(_0x53f4f4[_0x2f7361(0x13f)]?_0x53f4f4['response'][_0x2f7361(0xfa)]+':'+_0x53f4f4['response'][_0x2f7361(0x127)]:_0x53f4f4),_0x579b3d;}}static async[a126_0x748072(0x164)](_0xff765f,_0x3b5221=0x0){const _0x26e821=a126_0x748072,_0x19ba02={'eKyTm':function(_0x15db4e,_0x5bd330){return _0x15db4e+_0x5bd330;},'iewsU':function(_0x37630b,_0x2074a6){return _0x37630b(_0x2074a6);},'FFyGs':_0x26e821(0x159),'bROCa':_0x26e821(0x138),'aqpxO':_0x26e821(0xf7),'VpqdO':function(_0x38ff14,_0x2a308b,_0x2eabed){return _0x38ff14(_0x2a308b,_0x2eabed);},'zDAfb':'uploadEventData','TXOIf':function(_0x13c909,_0x1e1872){return _0x13c909===_0x1e1872;},'ztdbn':function(_0xdc96f3,_0x44902f){return _0xdc96f3!==_0x44902f;},'kNMcM':_0x26e821(0x115),'eHOjf':_0x26e821(0x14b),'jbizb':function(_0x588a1a){return _0x588a1a();},'BqVrt':function(_0x20534d,_0x103c97){return _0x20534d-_0x103c97;},'rmLWv':'error','OgdFm':_0x26e821(0xf3),'gfXQH':function(_0x36851b,_0x491e31){return _0x36851b>=_0x491e31;},'yrdGR':function(_0x2a6247,_0x12126a){return _0x2a6247!==_0x12126a;},'wxXQq':_0x26e821(0xf5),'teAkN':function(_0x19cad8,_0x663842){return _0x19cad8!==_0x663842;},'UDaTY':_0x26e821(0x160),'UnNCB':function(_0x57e235,_0x2af38f,_0x3179ba){return _0x57e235(_0x2af38f,_0x3179ba);}},_0x192627=this[_0x26e821(0xfc)](_0xff765f);_0x19ba02[_0x26e821(0x142)](trace,_0x26e821(0x181)+_0xff765f[_0x26e821(0x139)]+'\x27\x20'+(bsSetupHelper[_0x26e821(0xfe)](_0xff765f,[_0x19ba02['FFyGs'],_0x19ba02[_0x26e821(0x17b)]])||bsSetupHelper[_0x26e821(0xfe)](_0xff765f,[_0x19ba02[_0x26e821(0x103)],_0x19ba02[_0x26e821(0x17b)]])));if(!_0x19ba02[_0x26e821(0x12d)](shouldProcessEventForTesthub,_0xff765f['event_type'],_0x19ba02[_0x26e821(0x141)]))return;_0x19ba02[_0x26e821(0x126)](_0x3b5221,0x0)&&process[_0x26e821(0xe7)][_0x26e821(0xf1)]&&_0x19ba02[_0x26e821(0x15e)](process[_0x26e821(0xe7)]['BROWSERSTACK_TESTHUB_JWT'],_0x19ba02[_0x26e821(0x188)])&&(this['requestQueueHandler'][_0x26e821(0x13b)]+=0x1);if(_0x19ba02[_0x26e821(0x126)](process[_0x26e821(0xe7)][_0x26e821(0x170)],_0x19ba02[_0x26e821(0x185)])||process['env']['BS_A11Y_JWT']||_0x19ba02[_0x26e821(0x17d)](isPercyBuild)){if(_0x19ba02['TXOIf'](process[_0x26e821(0xe7)]['BROWSERSTACK_TESTHUB_JWT'],_0x19ba02[_0x26e821(0x188)])){_0x19ba02[_0x26e821(0x142)](debug,_0x26e821(0x11d)+_0x192627+_0x26e821(0x11e)+constants[_0x26e821(0x186)]+'\x20:\x20missing\x20authentication\x20token'),this[_0x26e821(0x12f)]['pendingUploads']=Math[_0x26e821(0x171)](0x0,_0x19ba02['BqVrt'](this['requestQueueHandler'][_0x26e821(0x13b)],0x1));const _0x47d5cb={};return _0x47d5cb[_0x26e821(0xfa)]=_0x19ba02[_0x26e821(0x134)],_0x47d5cb[_0x26e821(0xed)]=_0x19ba02[_0x26e821(0x151)],_0x47d5cb;}return await this[_0x26e821(0x13a)](_0xff765f,_0x3b5221);}else{if(_0x19ba02[_0x26e821(0x101)](_0x3b5221,0x5)){_0x19ba02[_0x26e821(0x142)](debug,_0x26e821(0x11d)+_0x192627+_0x26e821(0x11e)+constants['TEST_REPORTING_ANALYTICS']+_0x26e821(0x114)+_0x192627+_0x26e821(0x18a));_0x19ba02[_0x26e821(0x13e)](process[_0x26e821(0xe7)][_0x26e821(0xf1)],_0x19ba02['kNMcM'])&&(this[_0x26e821(0x12f)][_0x26e821(0x13b)]=Math[_0x26e821(0x171)](0x0,_0x19ba02[_0x26e821(0x111)](this[_0x26e821(0x12f)][_0x26e821(0x13b)],0x1)));const _0x172d38={};return _0x172d38['status']=_0x19ba02['rmLWv'],_0x172d38[_0x26e821(0xed)]=_0x19ba02[_0x26e821(0x17a)],_0x172d38;}else _0x19ba02['teAkN'](process[_0x26e821(0xe7)][_0x26e821(0x170)],_0x19ba02['UDaTY'])&&_0x19ba02['UnNCB'](setTimeout,()=>{const _0x8b5532=_0x26e821;this['uploadEventData'](_0xff765f,_0x19ba02[_0x8b5532(0x18c)](_0x3b5221,0x1));},0x3e8);}}}module['exports']=SessionHandler;
|
|
1
|
+
const a128_0x22b416=a128_0x32f3;(function(_0x3787c0,_0xe69e3d){const _0x2fa488=a128_0x32f3,_0x43a7c9=_0x3787c0();while(!![]){try{const _0x4f9ebe=parseInt(_0x2fa488(0xde))/0x1+parseInt(_0x2fa488(0xc0))/0x2+parseInt(_0x2fa488(0xaf))/0x3+-parseInt(_0x2fa488(0xbd))/0x4*(-parseInt(_0x2fa488(0xa4))/0x5)+parseInt(_0x2fa488(0xf8))/0x6+parseInt(_0x2fa488(0xd7))/0x7+-parseInt(_0x2fa488(0xf9))/0x8*(parseInt(_0x2fa488(0x12e))/0x9);if(_0x4f9ebe===_0xe69e3d)break;else _0x43a7c9['push'](_0x43a7c9['shift']());}catch(_0x30707d){_0x43a7c9['push'](_0x43a7c9['shift']());}}}(a128_0x1a84,0x6095d));const bsSetupHelper=require(a128_0x22b416(0x117)),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a128_0x22b416(0xb8)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a128_0x22b416(0xb9)),RequestQueueHandler=require(a128_0x22b416(0xbf)),logger=require(a128_0x22b416(0xe4))[a128_0x22b416(0x118)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require('../../helpers/testhub/utils'),util=require('util'),constants=require(a128_0x22b416(0xf4));function a128_0x32f3(_0x3bcb5d,_0x46ec66){const _0x1a84bb=a128_0x1a84();return a128_0x32f3=function(_0x32f3b5,_0x576dd6){_0x32f3b5=_0x32f3b5-0x9b;let _0x2002a0=_0x1a84bb[_0x32f3b5];return _0x2002a0;},a128_0x32f3(_0x3bcb5d,_0x46ec66);}function a128_0x1a84(){const _0x2890e6=['\x20:\x20','CBTSessionCreated','BS_TESTOPS_ALLOW_SCREENSHOTS','Hook_End_Upload','IXPqw','zSgiw','api/v1/event','LFkSC','\x20retry\x20runs\x20exceeded','BROWSERSTACK_BUILD_RUN_IDENTIFIER','debug','../../bin/utils/constants','HookRunFinished','inspect','quYXo','2165358ySvjMz','3760sQYngB','test_run_uuid','null','basename','PRBSX','getLogTag','success','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','KKEnU','getGitMetaData','dBcFU','errorType','VtkaC','sendTraceZip','ERROR_ACCESS_DENIED','frameworkName','lGFlL','eventUrl','allow_screenshots','Test_Skipped_Upload','false','application/json','includes','IcIqc','buildIdentifier','resolve','zGrge','VODym','DvZnr','asFJr','../helper','winstonLogger','TVTXp','message','TestRunStarted','TEST_REPORTING_ANALYTICS','TestRunFinished','rZZqh','uuid','event_type','kBCnp','BROWSERSTACK_TESTHUB_JWT','zdtDs','ZFXlv','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','getHostInfo','edAga','\x20REQUEST\x20TO\x20','kMvEU','ebHPG','wnWyv','vmiTG','X-BSTACK-TESTOPS','24957cPdqar','toString','Authorization','format','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20',']\x20event\x20successful!','BROWSERSTACK_RERUN','ERROR_SDK_DEPRECATED','length','nZmuu','hook_run','BS_TESTOPS_BUILD_COMPLETED','password','max','data','uploadEventData','SvEvQ','aOzUI','build_hashed_id','OipcV','kjDVQ','username','cyuey','statusText','logs','nPxqT','jwt','EXCEPTION\x20IN\x20','pendingUploads','toISOString','dHqat','Hook_Start_Upload','fwAeZ','add','Piwcj','true','env','41630KLjIwn','TGqKP','\x20failed\x20due\x20to\x20','stringify','requestQueueHandler','PrXOg','Test_End_Upload','BS_TESTOPS_BUILD_HASHED_ID','frameworkVersion','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','Nitcs','328314TLcVeC','kmtup','Sending\x20trace\x20zip\x20for\x20test:\x20','FKaQq','epZYf','sendEventData','\x20:\x20missing\x20authentication\x20token','buildDescription','nestedKeyValue','./utils','./constants','getInstance','cVjBf','Data\x20upload\x20to\x20BrowserStack\x20','16pSEEgg','getUserName','./requestQueueHandler','1431164zNmIYe','WxEbi','response','PNqnP','ffexy','Batch-Queue','YahMR','dPBee','info','NfNgl','browserstackAutomation','ERROR_INVALID_CREDENTIALS','test_run','BROWSERSTACK_TESTHUB_UUID','LFnid','NZIvi','getCiInfo','WEafN','app','status','Log_Upload','ZCYyd','CREDENTIALS_FOR_CRASH_REPORTING','3126732cehChA','HkSAl','LusjC','BS_TESTOPS_JWT','Content-Type','POST','launch','33030oyAvzQ','LSoMR','start','Bearer\x20','Processing\x20event\x20-\x20\x27','frHEE','../logger','Build\x20creation\x20successful!','AMDIb','OdsCy','error'];a128_0x1a84=function(){return _0x2890e6;};return a128_0x1a84();}class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler[a128_0x22b416(0xba)]();static async[a128_0x22b416(0xdd)](_0x3614b3,_0xb34e1b){const _0x307925=a128_0x22b416,_0x1bebd2={'YYzve':function(_0x307499,_0xe6054f){return _0x307499||_0xe6054f;},'GZWKt':function(_0x2e67d3,_0x3fa461){return _0x2e67d3||_0x3fa461;},'fwAeZ':function(_0x2b91c9,_0xa8ea2){return _0x2b91c9===_0xa8ea2;},'WxEbi':function(_0x33a8ee,_0x2d1d62){return _0x33a8ee(_0x2d1d62);},'hIcKH':_0x307925(0xad),'kjDVQ':_0x307925(0x10d),'cVjBf':'json','VODym':function(_0x24c22f,_0x5c6eed){return _0x24c22f(_0x5c6eed);},'PNqnP':function(_0xb123dd,_0x2a67ac){return _0xb123dd(_0x2a67ac);},'oJmzI':function(_0x4906e5,_0x30d79c,_0x19a2d0,_0x275b83,_0x17f9e4){return _0x4906e5(_0x30d79c,_0x19a2d0,_0x275b83,_0x17f9e4);},'LFkSC':_0x307925(0xdc),'yoQCF':'api/v1/builds','nLFUQ':function(_0x5ef2c5,_0x491922){return _0x5ef2c5(_0x491922);},'OdsCy':_0x307925(0xe5),'TVTXp':function(_0x4ab1c7){return _0x4ab1c7();},'LSoMR':_0x307925(0xa2),'rZZqh':'null','aOzUI':function(_0x552a95,_0x35d447){return _0x552a95(_0x35d447);},'zGrge':_0x307925(0xcb),'zdtDs':_0x307925(0x107),'DvZnr':_0x307925(0x135)};logger[_0x307925(0xc8)]('Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20'+util[_0x307925(0xf6)](_0x3614b3));const _0x81947f=bsSetupHelper[_0x307925(0xbe)](_0x3614b3),_0x1c7f1c=bsSetupHelper['getAccessKey'](_0x3614b3),_0x2f13e9=_0x1bebd2['YYzve'](_0x81947f,'')+':'+_0x1bebd2['GZWKt'](_0x1c7f1c,'');if(_0x1bebd2[_0x307925(0x9f)](_0x2f13e9,':'))return _0x1bebd2[_0x307925(0xc1)](debug,_0x1bebd2['hIcKH']),process[_0x307925(0xa3)][_0x307925(0x139)]=_0x1bebd2[_0x307925(0x142)],[null,null];let _0x23450f=![],_0x4d226e=![];if(_0x3614b3[_0x307925(0xca)]&&_0x3614b3[_0x307925(0xd2)])_0x4d226e=!![];else _0x3614b3['browserstackAutomation']&&(_0x23450f=!![]);try{const _0x5da9c1={'format':_0x1bebd2[_0x307925(0xbb)],'project_name':_0x3614b3['projectName']||'','name':_0x3614b3['buildName']||path[_0x307925(0xfc)](path[_0x307925(0x112)](process['cwd']())),'build_identifier':_0x3614b3[_0x307925(0x111)],'description':_0x3614b3[_0x307925(0xb6)]||'','start_time':new Date()[_0x307925(0x9c)](),'tags':_0x1bebd2[_0x307925(0xc1)](getCustomTags,_0x3614b3),'host_info':bsSetupHelper[_0x307925(0x126)](),'ci_info':bsSetupHelper[_0x307925(0xd0)](),'build_run_identifier':process[_0x307925(0xa3)][_0x307925(0xf2)],'failed_tests_rerun':process[_0x307925(0xa3)][_0x307925(0x134)]||![],'version_control':await bsSetupHelper[_0x307925(0x102)](),'observability_version':{'frameworkName':_0xb34e1b[_0x307925(0x108)],'frameworkVersion':_0xb34e1b[_0x307925(0xac)],'sdkVersion':bsSetupHelper['getAgentVersion']()},'product_map':_0x1bebd2[_0x307925(0x114)](getProductMap,_0x3614b3),'test_orchestration':_0x1bebd2[_0x307925(0xc3)](getTestOrchestrationBuildStartData,_0x3614b3)},_0x4b2cde={};_0x4b2cde['username']=_0x81947f,_0x4b2cde[_0x307925(0x13a)]=_0x1c7f1c;const _0x2d5900={'auth':_0x4b2cde,'headers':_0x1bebd2[_0x307925(0xc3)](getDefaultHeaders,![])},_0xfc3daa=await _0x1bebd2['oJmzI'](nodeRequest,_0x1bebd2[_0x307925(0xf0)],_0x1bebd2['yoQCF'],_0x5da9c1,_0x2d5900);_0x1bebd2['nLFUQ'](debug,_0x1bebd2[_0x307925(0xe7)]);const _0x3b91db=_0xfc3daa[_0x307925(0x13c)];_0x3b91db['build_hashed_id']&&(process[_0x307925(0xa3)][_0x307925(0xcd)]=_0x3b91db['build_hashed_id']);if(_0x1bebd2[_0x307925(0x119)](isTestObservabilitySession)){process[_0x307925(0xa3)][_0x307925(0x139)]=_0x1bebd2[_0x307925(0xdf)];if(_0x3b91db['jwt']){process[_0x307925(0xa3)][_0x307925(0xda)]=_0x3b91db[_0x307925(0x148)];const _0xf54a1a={};_0xf54a1a[_0x307925(0x143)]=_0x81947f,_0xf54a1a[_0x307925(0x13a)]=_0x1c7f1c,process[_0x307925(0xa3)][_0x307925(0xd6)]=JSON[_0x307925(0xa7)](_0xf54a1a);}_0x3b91db[_0x307925(0x140)]&&(process[_0x307925(0xa3)][_0x307925(0xab)]=_0x3b91db[_0x307925(0x140)]),_0x3b91db[_0x307925(0x10b)]&&(process[_0x307925(0xa3)][_0x307925(0xeb)]=_0x3b91db[_0x307925(0x10b)][_0x307925(0x12f)]());}return[_0xfc3daa['data'][_0x307925(0x148)],_0xfc3daa[_0x307925(0x13c)]['build_hashed_id'],_0xfc3daa['data'][_0x307925(0x10b)]];}catch(_0xfb5164){process['env'][_0x307925(0xcd)]=_0x1bebd2[_0x307925(0x11e)],process[_0x307925(0xa3)][_0x307925(0x139)]=_0x1bebd2[_0x307925(0x142)],process[_0x307925(0xa3)]['BS_TESTOPS_JWT']=_0x1bebd2['rZZqh'],process[_0x307925(0xa3)][_0x307925(0xab)]=_0x1bebd2['rZZqh'],process[_0x307925(0xa3)][_0x307925(0xeb)]=_0x1bebd2[_0x307925(0x11e)];_0xfb5164[_0x307925(0xc2)]?_0x1bebd2['nLFUQ'](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+_0xfb5164[_0x307925(0xc2)][_0x307925(0xd3)]+'\x20'+_0xfb5164[_0x307925(0xc2)][_0x307925(0x145)]+'\x20'+JSON[_0x307925(0xa7)](_0xfb5164[_0x307925(0xc2)]['data'])):_0x1bebd2[_0x307925(0x13f)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+(_0xfb5164[_0x307925(0x11a)]||_0xfb5164));if(_0xfb5164&&_0xfb5164['message']){const _0x23ce1e=_0xfb5164[_0x307925(0x11a)];switch(_0xfb5164[_0x307925(0x104)]){case _0x1bebd2[_0x307925(0x113)]:logger[_0x307925(0xe8)](_0x23ce1e);break;case _0x1bebd2[_0x307925(0x123)]:logger['info'](_0x23ce1e);break;case _0x1bebd2[_0x307925(0x115)]:logger['error'](_0x23ce1e);break;default:logger[_0x307925(0xe8)](_0x23ce1e);}}else console['info'](_0x307925(0xbc)+constants[_0x307925(0x11c)]+_0x307925(0xa6)+_0xfb5164);return[null,null,null];}}static async['waitForBuildStatus'](){const _0x2ecc28=a128_0x22b416,_0xd1a66b={'zSgiw':_0x2ecc28(0xa2),'epZYf':_0x2ecc28(0x10d),'fIuhm':function(_0x107c1a,_0x23508b){return _0x107c1a(_0x23508b);}},_0x5e97f4=process[_0x2ecc28(0xa3)][_0x2ecc28(0x139)];if([_0xd1a66b[_0x2ecc28(0xee)],_0xd1a66b[_0x2ecc28(0xb3)]]['includes'](_0x5e97f4))return;while([_0xd1a66b[_0x2ecc28(0xee)],_0xd1a66b['epZYf']][_0x2ecc28(0x10f)](_0x5e97f4)){await _0xd1a66b['fIuhm'](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a128_0x22b416(0xfe)](_0x268a9f){const _0x4e2bac=a128_0x22b416,_0x2027bc={};_0x2027bc['VtkaC']='Test_Start_Upload',_0x2027bc['edAga']=_0x4e2bac(0xaa),_0x2027bc[_0x4e2bac(0xa5)]=_0x4e2bac(0x10c),_0x2027bc[_0x4e2bac(0x137)]=_0x4e2bac(0xd4),_0x2027bc[_0x4e2bac(0xe6)]=_0x4e2bac(0x9e),_0x2027bc[_0x4e2bac(0x103)]=_0x4e2bac(0xec),_0x2027bc[_0x4e2bac(0xb2)]='CBT_Upload';const _0x1ccf5b=_0x2027bc,_0x2889c7={};return _0x2889c7[_0x4e2bac(0x11b)]=_0x1ccf5b[_0x4e2bac(0x105)],_0x2889c7[_0x4e2bac(0x11d)]=_0x1ccf5b[_0x4e2bac(0x127)],_0x2889c7['TestRunSkipped']=_0x1ccf5b[_0x4e2bac(0xa5)],_0x2889c7['LogCreated']=_0x1ccf5b[_0x4e2bac(0x137)],_0x2889c7['HookRunStarted']=_0x1ccf5b[_0x4e2bac(0xe6)],_0x2889c7[_0x4e2bac(0xf5)]=_0x1ccf5b[_0x4e2bac(0x103)],_0x2889c7[_0x4e2bac(0xea)]=_0x1ccf5b[_0x4e2bac(0xb2)],_0x2889c7[_0x268a9f[_0x4e2bac(0x120)]];}static async[a128_0x22b416(0xb4)](_0x2d85e5,_0x309e8a=0x0,_0x28acde=null){const _0xef169f=a128_0x22b416,_0x306fd0={'dPBee':function(_0x49e96b,_0x2d98be){return _0x49e96b===_0x2d98be;},'cyuey':_0xef169f(0x106),'NZIvi':function(_0x138695,_0x296433){return _0x138695!==_0x296433;},'kMvEU':_0xef169f(0x10e),'ZFXlv':'true','PrXOg':function(_0xb9f30f,_0x425550,_0x4b3cf1,_0x569daf,_0x440ba5){return _0xb9f30f(_0x425550,_0x4b3cf1,_0x569daf,_0x440ba5);},'frHEE':'POST','nPxqT':function(_0x5ab676,_0x25bb76){return _0x5ab676(_0x25bb76);},'Piwcj':_0xef169f(0xc5),'Nitcs':function(_0x5545f7,_0x567317){return _0x5545f7-_0x567317;},'quYXo':function(_0x1ad613,_0x4f8782){return _0x1ad613===_0x4f8782;},'WEafN':_0xef169f(0xef),'PRBSX':_0xef169f(0xff),'ffexy':function(_0x4abca6,_0x123bff){return _0x4abca6(_0x123bff);},'lGFlL':function(_0x59fc7e,_0x2428d7){return _0x59fc7e===_0x2428d7;},'dHqat':_0xef169f(0xe8)};_0x306fd0[_0xef169f(0xc7)](_0x28acde,_0x306fd0['cyuey'])&&logger['debug'](_0xef169f(0xb1)+_0x2d85e5[_0xef169f(0x146)][0x0][_0xef169f(0xfa)]);const _0x601f4c=await this['getLogTag'](_0x2d85e5);let _0xb86368=_0x2d85e5,_0x46f00c=EVENT_ENDPOINT;_0x306fd0[_0xef169f(0xcf)](_0x28acde,_0x306fd0[_0xef169f(0x144)])&&this['requestQueueHandler'][_0xef169f(0xe0)]();const {shouldProceed:_0x345db6,proceedWithData:_0x45b7dc,proceedWithUrl:_0x45dfa4}=this['requestQueueHandler'][_0xef169f(0xa0)](_0x2d85e5);if(!_0x345db6)return;else _0x45b7dc&&(_0xb86368=_0x45b7dc,_0x46f00c=_0x45dfa4);const _0x121e66={};_0x121e66[_0xef169f(0x130)]=_0xef169f(0xe1)+process[_0xef169f(0xa3)]['BROWSERSTACK_TESTHUB_JWT'],_0x121e66[_0xef169f(0xdb)]=_0x306fd0[_0xef169f(0x129)],_0x121e66[_0xef169f(0x12d)]=_0x306fd0[_0xef169f(0x124)];const _0x59118f={};_0x59118f['headers']=_0x121e66;const _0x4ef65b=_0x59118f;let _0xa5c17;try{_0x306fd0[_0xef169f(0xc7)](_0x28acde,_0x306fd0['cyuey'])?(logger[_0xef169f(0xf3)](_0xef169f(0x125)+_0x2d85e5?.[_0xef169f(0x146)][0x0]?.['test_run_uuid']),_0xa5c17=await _0x306fd0[_0xef169f(0xa9)](asyncAwaitNodeReq,_0x306fd0[_0xef169f(0xe3)],_0x46f00c,_0xb86368,_0x4ef65b),logger['debug'](_0xef169f(0x132)+_0x2d85e5?.[_0xef169f(0x146)][0x0]?.[_0xef169f(0xfa)])):_0xa5c17=await _0x306fd0[_0xef169f(0xa9)](nodeRequest,_0x306fd0[_0xef169f(0xe3)],_0x46f00c,_0xb86368,_0x4ef65b);if(_0xa5c17[_0xef169f(0x13c)][_0xef169f(0xe8)]){const _0x55c056={};_0x55c056[_0xef169f(0x11a)]=_0xa5c17[_0xef169f(0x13c)]['error'];throw _0x55c056;}else{_0x306fd0[_0xef169f(0x147)](debug,(_0x306fd0[_0xef169f(0xcf)](_0x46f00c,this[_0xef169f(0xa8)]['eventUrl'])?_0x601f4c:_0x306fd0[_0xef169f(0xa1)])+'['+_0x309e8a+_0xef169f(0x133)),this['requestQueueHandler'][_0xef169f(0x9b)]=Math['max'](0x0,_0x306fd0[_0xef169f(0xae)](this['requestQueueHandler'][_0xef169f(0x9b)],_0x306fd0[_0xef169f(0xf7)](_0x46f00c,_0x306fd0['WEafN'])?0x1:_0xb86368[_0xef169f(0x136)]));const _0x3a2ee2={};return _0x3a2ee2[_0xef169f(0xd3)]=_0x306fd0[_0xef169f(0xfd)],_0x3a2ee2[_0xef169f(0x11a)]='',_0x3a2ee2;}}catch(_0x366f29){_0x366f29[_0xef169f(0xc2)]?_0x306fd0[_0xef169f(0xc4)](debug,'EXCEPTION\x20IN\x20'+(_0x306fd0[_0xef169f(0xcf)](_0x46f00c,this[_0xef169f(0xa8)][_0xef169f(0x10a)])?_0x601f4c:_0x306fd0[_0xef169f(0xa1)])+_0xef169f(0x128)+constants[_0xef169f(0x11c)]+_0xef169f(0xe9)+_0x366f29[_0xef169f(0xc2)][_0xef169f(0xd3)]+'\x20'+_0x366f29['response']['statusText']+'\x20'+util[_0xef169f(0x131)](_0x366f29[_0xef169f(0xc2)][_0xef169f(0x13c)])):_0x306fd0[_0xef169f(0x147)](debug,'EXCEPTION\x20IN\x20'+(_0x306fd0[_0xef169f(0xcf)](_0x46f00c,this[_0xef169f(0xa8)][_0xef169f(0x10a)])?_0x601f4c:_0x306fd0[_0xef169f(0xa1)])+_0xef169f(0x128)+constants['TEST_REPORTING_ANALYTICS']+_0xef169f(0xe9)+util[_0xef169f(0x131)](_0x366f29));this[_0xef169f(0xa8)][_0xef169f(0x9b)]=Math[_0xef169f(0x13b)](0x0,_0x306fd0[_0xef169f(0xae)](this[_0xef169f(0xa8)][_0xef169f(0x9b)],_0x306fd0[_0xef169f(0x109)](_0x46f00c,_0x306fd0[_0xef169f(0xd1)])?0x1:_0xb86368[_0xef169f(0x136)]));const _0x4d528b={};return _0x4d528b['status']=_0x306fd0[_0xef169f(0x9d)],_0x4d528b['message']=_0x366f29[_0xef169f(0x11a)]||(_0x366f29[_0xef169f(0xc2)]?_0x366f29[_0xef169f(0xc2)][_0xef169f(0xd3)]+':'+_0x366f29[_0xef169f(0xc2)][_0xef169f(0x145)]:_0x366f29),_0x4d528b;}}static async[a128_0x22b416(0x13d)](_0x3fc665,_0x5c5ae1=0x0){const _0x2fa0d0=a128_0x22b416,_0xab77a2={'kBCnp':function(_0x429f9c,_0x331e40){return _0x429f9c+_0x331e40;},'IcIqc':function(_0x470b8a,_0x495d1f){return _0x470b8a(_0x495d1f);},'LFnid':_0x2fa0d0(0xcc),'KKEnU':_0x2fa0d0(0x11f),'UIJSa':_0x2fa0d0(0x138),'vmiTG':function(_0x429c8e,_0x6f915,_0x49161a){return _0x429c8e(_0x6f915,_0x49161a);},'OipcV':_0x2fa0d0(0x13d),'SvEvQ':function(_0x4c7ee3,_0x356a78){return _0x4c7ee3===_0x356a78;},'YahMR':function(_0x1dc3b1,_0x337e60){return _0x1dc3b1!==_0x337e60;},'wnWyv':_0x2fa0d0(0xfb),'NfNgl':function(_0x5447cd,_0x3f1026){return _0x5447cd===_0x3f1026;},'asFJr':'true','ZCYyd':function(_0xeefa8){return _0xeefa8();},'kMJdG':function(_0x323b42,_0x513d47){return _0x323b42(_0x513d47);},'LusjC':function(_0x42afc4,_0x2d1f32){return _0x42afc4-_0x2d1f32;},'NveCL':_0x2fa0d0(0xe8),'IXPqw':'Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','ebHPG':function(_0x14d3ea,_0xa84856){return _0x14d3ea>=_0xa84856;},'kmtup':function(_0x578f4f,_0x9ab5fb){return _0x578f4f!==_0x9ab5fb;},'aTJUY':'Retry\x20runs\x20exceeded','HkSAl':function(_0x3765b2,_0x228d72){return _0x3765b2!==_0x228d72;},'NkrAo':_0x2fa0d0(0x10d)},_0xfa929b=this['getLogTag'](_0x3fc665);_0xab77a2[_0x2fa0d0(0x110)](trace,_0x2fa0d0(0xe2)+_0x3fc665[_0x2fa0d0(0x120)]+'\x27\x20'+(bsSetupHelper[_0x2fa0d0(0xb7)](_0x3fc665,[_0xab77a2[_0x2fa0d0(0xce)],_0xab77a2[_0x2fa0d0(0x101)]])||bsSetupHelper[_0x2fa0d0(0xb7)](_0x3fc665,[_0xab77a2['UIJSa'],_0xab77a2[_0x2fa0d0(0x101)]])));if(!_0xab77a2[_0x2fa0d0(0x12c)](shouldProcessEventForTesthub,_0x3fc665[_0x2fa0d0(0x120)],_0xab77a2[_0x2fa0d0(0x141)]))return;_0xab77a2['SvEvQ'](_0x5c5ae1,0x0)&&process[_0x2fa0d0(0xa3)]['BROWSERSTACK_TESTHUB_JWT']&&_0xab77a2[_0x2fa0d0(0xc6)](process[_0x2fa0d0(0xa3)][_0x2fa0d0(0x122)],_0xab77a2[_0x2fa0d0(0x12b)])&&(this[_0x2fa0d0(0xa8)][_0x2fa0d0(0x9b)]+=0x1);if(_0xab77a2[_0x2fa0d0(0xc9)](process[_0x2fa0d0(0xa3)][_0x2fa0d0(0x139)],_0xab77a2[_0x2fa0d0(0x116)])||process[_0x2fa0d0(0xa3)]['BS_A11Y_JWT']||_0xab77a2[_0x2fa0d0(0xd5)](isPercyBuild)){if(_0xab77a2[_0x2fa0d0(0x13e)](process[_0x2fa0d0(0xa3)][_0x2fa0d0(0x122)],_0xab77a2[_0x2fa0d0(0x12b)])){_0xab77a2['kMJdG'](debug,_0x2fa0d0(0x149)+_0xfa929b+_0x2fa0d0(0x128)+constants[_0x2fa0d0(0x11c)]+_0x2fa0d0(0xb5)),this['requestQueueHandler'][_0x2fa0d0(0x9b)]=Math[_0x2fa0d0(0x13b)](0x0,_0xab77a2[_0x2fa0d0(0xd9)](this[_0x2fa0d0(0xa8)][_0x2fa0d0(0x9b)],0x1));const _0x5543de={};return _0x5543de[_0x2fa0d0(0xd3)]=_0xab77a2['NveCL'],_0x5543de[_0x2fa0d0(0x11a)]=_0xab77a2[_0x2fa0d0(0xed)],_0x5543de;}return await this[_0x2fa0d0(0xb4)](_0x3fc665,_0x5c5ae1);}else{if(_0xab77a2[_0x2fa0d0(0x12a)](_0x5c5ae1,0x5)){_0xab77a2[_0x2fa0d0(0x110)](debug,_0x2fa0d0(0x149)+_0xfa929b+_0x2fa0d0(0x128)+constants[_0x2fa0d0(0x11c)]+_0x2fa0d0(0x100)+_0xfa929b+_0x2fa0d0(0xf1));_0xab77a2[_0x2fa0d0(0xb0)](process['env'][_0x2fa0d0(0x122)],_0xab77a2[_0x2fa0d0(0x12b)])&&(this['requestQueueHandler'][_0x2fa0d0(0x9b)]=Math['max'](0x0,_0xab77a2[_0x2fa0d0(0xd9)](this[_0x2fa0d0(0xa8)][_0x2fa0d0(0x9b)],0x1)));const _0x3b4fa1={};return _0x3b4fa1[_0x2fa0d0(0xd3)]=_0xab77a2['NveCL'],_0x3b4fa1[_0x2fa0d0(0x11a)]=_0xab77a2['aTJUY'],_0x3b4fa1;}else _0xab77a2[_0x2fa0d0(0xd8)](process[_0x2fa0d0(0xa3)][_0x2fa0d0(0x139)],_0xab77a2['NkrAo'])&&_0xab77a2[_0x2fa0d0(0x12c)](setTimeout,()=>{const _0x370b4d=_0x2fa0d0;this[_0x370b4d(0x13d)](_0x3fc665,_0xab77a2[_0x370b4d(0x121)](_0x5c5ae1,0x1));},0x3e8);}}}module['exports']=SessionHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a127_0x4b9261=a127_0x4f25;(function(_0x3f36b6,_0x5a0d37){const _0x389e30=a127_0x4f25,_0x327238=_0x3f36b6();while(!![]){try{const _0x53b47f=-parseInt(_0x389e30(0x19a))/0x1+-parseInt(_0x389e30(0x1f4))/0x2+parseInt(_0x389e30(0x20d))/0x3*(parseInt(_0x389e30(0x1e3))/0x4)+parseInt(_0x389e30(0x21a))/0x5+-parseInt(_0x389e30(0x21d))/0x6+-parseInt(_0x389e30(0x173))/0x7+-parseInt(_0x389e30(0x243))/0x8*(-parseInt(_0x389e30(0x276))/0x9);if(_0x53b47f===_0x5a0d37)break;else _0x327238['push'](_0x327238['shift']());}catch(_0x4243e9){_0x327238['push'](_0x327238['shift']());}}}(a127_0x332e,0x9b0a4));const fs=require('fs'),path=require(a127_0x4b9261(0x280)),gitLastCommit=require(a127_0x4b9261(0x168)),getRepoInfo=require(a127_0x4b9261(0x1c8)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a127_0x4b9261(0x26e)),http=require(a127_0x4b9261(0x241)),https=require(a127_0x4b9261(0x239)),child_process=require(a127_0x4b9261(0x1a9)),getos=require(a127_0x4b9261(0x1f6)),os=require('os'),logger=require(a127_0x4b9261(0x185))[a127_0x4b9261(0x1d1)],buildLogger=require(a127_0x4b9261(0x185))['buildLogger'],bsSetupHelper=require(a127_0x4b9261(0x1d4)),requestSpy=require(a127_0x4b9261(0x18f)),constants=require(a127_0x4b9261(0x18c)),logPatcher=require(a127_0x4b9261(0x251)),util=require(a127_0x4b9261(0x219)),{fileLogger}=require(a127_0x4b9261(0x185)),PerformanceTester=require(a127_0x4b9261(0x1d3)),{isFunction}=require(a127_0x4b9261(0x240)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a127_0x4b9261(0x1a2)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require('../../../src/bin/utils/constants');function a127_0x4f25(_0x3cb29b,_0x4ca5b7){const _0x332e80=a127_0x332e();return a127_0x4f25=function(_0x4f2544,_0x2610f5){_0x4f2544=_0x4f2544-0x167;let _0x301eb5=_0x332e80[_0x4f2544];return _0x301eb5;},a127_0x4f25(_0x3cb29b,_0x4ca5b7);}exports[a127_0x4b9261(0x270)]=_0x8134c2=>{const _0x3e8f97=a127_0x4b9261;fileLogger[_0x3e8f97(0x171)]('['+new Date()[_0x3e8f97(0x273)]()+_0x3e8f97(0x25f)+constants[_0x3e8f97(0x216)]+_0x3e8f97(0x22f)+_0x8134c2);},exports['debug']=_0x45c6c7=>{const _0x373978=a127_0x4b9261,_0x43b72a={};_0x43b72a[_0x373978(0x226)]=function(_0x1d7b02,_0x1e1abf){return _0x1d7b02===_0x1e1abf;},_0x43b72a['kUDhF']=_0x373978(0x27f),_0x43b72a[_0x373978(0x272)]=function(_0x316274,_0x235d1c){return _0x316274===_0x235d1c;};const _0x2f3248=_0x43b72a;fileLogger[_0x373978(0x1b1)]('['+new Date()[_0x373978(0x273)]()+_0x373978(0x25f)+constants[_0x373978(0x216)]+_0x373978(0x22f)+_0x45c6c7),(_0x2f3248[_0x373978(0x226)](process[_0x373978(0x18e)]['BROWSERSTACK_TEST_REPORTING_DEBUG'],_0x2f3248[_0x373978(0x279)])||_0x2f3248[_0x373978(0x226)](process[_0x373978(0x18e)][_0x373978(0x22d)],'1')||_0x2f3248[_0x373978(0x226)](process[_0x373978(0x18e)][_0x373978(0x254)],_0x2f3248[_0x373978(0x279)])||_0x2f3248[_0x373978(0x272)](process['env']['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x373978(0x273)]()+_0x373978(0x25f)+constants[_0x373978(0x216)]+_0x373978(0x22f)+_0x45c6c7+'\x0a');};const a127_0x37862e={};a127_0x37862e[a127_0x4b9261(0x1bb)]=!![],a127_0x37862e[a127_0x4b9261(0x234)]=0xea60,a127_0x37862e[a127_0x4b9261(0x1c6)]=0x2,a127_0x37862e[a127_0x4b9261(0x242)]=0x2;const httpKeepAliveAgent=new http[(a127_0x4b9261(0x24f))](a127_0x37862e),a127_0xb75a51={};a127_0xb75a51[a127_0x4b9261(0x1bb)]=!![],a127_0xb75a51[a127_0x4b9261(0x234)]=0xea60,a127_0xb75a51[a127_0x4b9261(0x1c6)]=0x2,a127_0xb75a51[a127_0x4b9261(0x242)]=0x2;const httpsKeepAliveAgent=new https[(a127_0x4b9261(0x24f))](a127_0xb75a51),a127_0x2201a2={};a127_0x2201a2['keepAlive']=!![],a127_0x2201a2['timeout']=0xea60,a127_0x2201a2[a127_0x4b9261(0x1c6)]=0x2,a127_0x2201a2[a127_0x4b9261(0x242)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a127_0x4b9261(0x24f))](a127_0x2201a2),a127_0x3de108={};a127_0x3de108[a127_0x4b9261(0x1bb)]=!![],a127_0x3de108[a127_0x4b9261(0x234)]=0xea60,a127_0x3de108[a127_0x4b9261(0x1c6)]=0x2,a127_0x3de108[a127_0x4b9261(0x242)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a127_0x4b9261(0x24f))](a127_0x3de108);exports[a127_0x4b9261(0x211)]=()=>{const _0x3c29b3=a127_0x4b9261,_0x492dac={};_0x492dac[_0x3c29b3(0x1f7)]=function(_0x2be0f6,_0x185118){return _0x2be0f6!==_0x185118;},_0x492dac[_0x3c29b3(0x248)]=_0x3c29b3(0x1fb);const _0x117f1b=_0x492dac;return process[_0x3c29b3(0x18e)][_0x3c29b3(0x1bd)]&&_0x117f1b[_0x3c29b3(0x1f7)](process['env'][_0x3c29b3(0x1bd)],_0x117f1b['jwPMl'])?!![]:![];},exports[a127_0x4b9261(0x1fa)]=()=>{const _0x976690=a127_0x4b9261,_0x21b102={};_0x21b102[_0x976690(0x27a)]=function(_0x30486e,_0x3ba529){return _0x30486e===_0x3ba529;},_0x21b102[_0x976690(0x1d5)]=_0x976690(0x27f),_0x21b102[_0x976690(0x269)]=function(_0x471ac1,_0x386c60){return _0x471ac1===_0x386c60;},_0x21b102['YaCuS']=function(_0x8838b9,_0x4e1527){return _0x8838b9===_0x4e1527;};const _0xda7b80=_0x21b102;let _0x2767d6=!![];return process[_0x976690(0x18e)][_0x976690(0x283)]&&(_0x2767d6=_0xda7b80[_0x976690(0x27a)](process[_0x976690(0x18e)][_0x976690(0x283)],_0xda7b80['NmcyJ'])),process[_0x976690(0x18e)][_0x976690(0x26c)]&&(_0x2767d6=_0xda7b80[_0x976690(0x269)](process['env'][_0x976690(0x26c)],_0xda7b80['NmcyJ'])),process[_0x976690(0x18e)][_0x976690(0x17f)]&&(_0x2767d6=_0xda7b80[_0x976690(0x224)](process[_0x976690(0x18e)][_0x976690(0x17f)],_0xda7b80[_0x976690(0x1d5)])),_0x2767d6;},exports[a127_0x4b9261(0x18d)]=_0x229654=>{const _0x531530=a127_0x4b9261;if(bsSetupHelper[_0x531530(0x187)](_0x229654))return undefined;try{return _0x229654[_0x531530(0x21b)]()[_0x531530(0x183)](',');}catch(_0x3ab922){return undefined;}},exports[a127_0x4b9261(0x1b5)]=()=>{const _0x263446=a127_0x4b9261,_0x46b7a2={'nPGLI':function(_0x3f2701,_0x34ebaf){return _0x3f2701(_0x34ebaf);},'GXnGN':_0x263446(0x22c),'APTLd':function(_0x50619a,_0x2b737c){return _0x50619a!==_0x2b737c;},'LnJKI':_0x263446(0x1fb),'SlrOY':function(_0x46ac66,_0x361ead){return _0x46ac66!==_0x361ead;},'kfeTu':_0x263446(0x218)};return PerformanceTester[_0x263446(0x1ea)](PerformanceO11yEvents[_0x263446(0x179)],async()=>{const _0x434e81=_0x263446;try{const _0x4496a7=_0x46b7a2[_0x434e81(0x27e)](require,_0x46b7a2['GXnGN']);if(_0x4496a7[_0x434e81(0x1e9)]){const _0x3e66a1='Visit\x20'+O11Y_URL+'/builds/'+_0x4496a7['O11yHashedID']+_0x434e81(0x1b7);buildLogger[_0x434e81(0x213)](_0x3e66a1);return;}if(process[_0x434e81(0x18e)]['BS_TESTOPS_BUILD_HASHED_ID']&&_0x46b7a2[_0x434e81(0x231)](process[_0x434e81(0x18e)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x46b7a2['LnJKI'])&&_0x46b7a2[_0x434e81(0x21f)](process[_0x434e81(0x18e)][_0x434e81(0x1cf)],_0x46b7a2[_0x434e81(0x1d6)])){const _0x235c9f=_0x434e81(0x256)+constants[_0x434e81(0x247)]+'/builds/'+process[_0x434e81(0x18e)]['BS_TESTOPS_BUILD_HASHED_ID']+_0x434e81(0x1b7);buildLogger[_0x434e81(0x213)](_0x235c9f);}}catch(_0x11aa29){logger[_0x434e81(0x232)](util['format'](_0x434e81(0x26f)+constants[_0x434e81(0x216)]+'\x20]\x20Build\x20Not\x20Found\x20%s',new Date()[_0x434e81(0x273)](),_0x11aa29[_0x434e81(0x22b)]||_0x11aa29[_0x434e81(0x1a4)]||_0x11aa29));}})();},exports[a127_0x4b9261(0x282)]=_0x5aa226=>{const _0x201888=a127_0x4b9261,_0x572372={};_0x572372['CiqNK']=_0x201888(0x180),_0x572372['DPXaD']=_0x201888(0x1b4);const _0x11cdcc=_0x572372;if(!_0x5aa226)return null;return _0x5aa226[_0x201888(0x1bc)]()[_0x201888(0x182)](/AssertionError/)?_0x11cdcc['CiqNK']:_0x11cdcc[_0x201888(0x16b)];},exports[a127_0x4b9261(0x1a1)]=_0x2d66e5=>{const _0x43e3be=a127_0x4b9261,_0x55939d={};_0x55939d['kweAI']=_0x43e3be(0x23c),_0x55939d['lmlJm']=_0x43e3be(0x263),_0x55939d[_0x43e3be(0x200)]=_0x43e3be(0x17e),_0x55939d[_0x43e3be(0x18b)]=_0x43e3be(0x1a0),_0x55939d[_0x43e3be(0x1c7)]=_0x43e3be(0x1d8);const _0x364b5c=_0x55939d;let _0x41df57=null;switch(_0x2d66e5){case FRAMEWORKS[_0x43e3be(0x23a)]:_0x41df57=bsSetupHelper[_0x43e3be(0x191)](_0x364b5c[_0x43e3be(0x20e)]);break;case FRAMEWORKS[_0x43e3be(0x21e)]:_0x41df57=bsSetupHelper['getPackageVersion'](_0x364b5c['lmlJm']);break;case FRAMEWORKS[_0x43e3be(0x1e7)]:case FRAMEWORKS['CODECEPT_CUCUMBER']:_0x41df57=bsSetupHelper[_0x43e3be(0x191)](_0x364b5c[_0x43e3be(0x200)]);break;case FRAMEWORKS[_0x43e3be(0x1b3)]:_0x41df57=bsSetupHelper['getPackageVersion'](_0x364b5c['thBkM']);break;case FRAMEWORKS[_0x43e3be(0x19c)]:_0x41df57=bsSetupHelper[_0x43e3be(0x191)](_0x364b5c[_0x43e3be(0x1c7)]);break;default:break;}return _0x41df57;},exports[a127_0x4b9261(0x206)]=_0x5cdd1f=>{const _0x1aa8b7=a127_0x4b9261;let _0x5b37f0=null;switch(_0x5cdd1f){case FRAMEWORKS[_0x1aa8b7(0x21e)]:_0x5b37f0=process[_0x1aa8b7(0x18e)]['BROWSERSTACK_CONFIG_FILE_PATH'];break;}if(!_0x5b37f0)return;return bsSetupHelper[_0x1aa8b7(0x1c5)](_0x5b37f0,![]);},exports['getUserCredentials']=_0x1d920a=>{const _0x1c292e=a127_0x4b9261;return{'username':bsSetupHelper[_0x1c292e(0x277)](_0x1d920a),'accessKey':bsSetupHelper[_0x1c292e(0x1fe)](_0x1d920a)};},exports[a127_0x4b9261(0x16e)]=(_0x425df2,_0x953ecb)=>{const _0xae05d5=a127_0x4b9261,_0x51f3db={};_0x51f3db[_0xae05d5(0x1b0)]=_0xae05d5(0x214),_0x51f3db[_0xae05d5(0x1f3)]=_0xae05d5(0x203),_0x51f3db[_0xae05d5(0x25e)]=_0xae05d5(0x1c0);const _0x2a18ad=_0x51f3db,_0x149b93=_0x2a18ad[_0xae05d5(0x1b0)][_0xae05d5(0x183)]('|');let _0x2792d7=0x0;while(!![]){switch(_0x149b93[_0x2792d7++]){case'0':if(!_0x425df2['body'][0x0]||!_0x425df2[_0xae05d5(0x205)][0x0][_0xae05d5(0x184)]||!_0x425df2[_0xae05d5(0x205)][0x0]['logs']['length'])return;continue;case'1':if(!_0x425df2[_0xae05d5(0x205)]||!Array['isArray'](_0x425df2['body']))return;continue;case'2':delete _0x425df2[_0xae05d5(0x205)];continue;case'3':delete _0x953ecb[_0xae05d5(0x259)];continue;case'4':_0x425df2[_0xae05d5(0x23b)]={'data':_0x425df2[_0xae05d5(0x205)][0x0]['logs'][0x0][_0xae05d5(0x170)],'test_run_uuid':_0x425df2[_0xae05d5(0x205)][0x0][_0xae05d5(0x184)][0x0][_0xae05d5(0x1f0)],'event_type':_0x2a18ad['FUzwO'],'kind':_0x2a18ad['pYjaA'],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0xae05d5(0x273)](),'fileName':_0x425df2['body'][0x0][_0xae05d5(0x184)][0x0]['fileName']};continue;case'5':delete _0x425df2[_0xae05d5(0x250)];continue;}break;}},exports['asyncAwaitNodeReq']=async(_0x7da85b,_0x5b1026,_0x2a1592,_0x14422f,_0x5b5030=!![])=>{const _0x1881c8=a127_0x4b9261,_0x3a5cab={};_0x3a5cab[_0x1881c8(0x195)]=function(_0xa73e23,_0x56cebd){return _0xa73e23===_0x56cebd;},_0x3a5cab['tcMAg']=_0x1881c8(0x198),_0x3a5cab[_0x1881c8(0x285)]=_0x1881c8(0x229),_0x3a5cab[_0x1881c8(0x27b)]=_0x1881c8(0x239),_0x3a5cab[_0x1881c8(0x1c9)]=function(_0x4f25de,_0x1d5a6c){return _0x4f25de!==_0x1d5a6c;},_0x3a5cab[_0x1881c8(0x1a8)]=_0x1881c8(0x197),_0x3a5cab[_0x1881c8(0x233)]=_0x1881c8(0x260);const _0x181ab0=_0x3a5cab,_0x2ec9a6={..._0x14422f,...{'method':_0x7da85b,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x5b1026,'body':_0x2a1592,'json':_0x181ab0['hDTCJ'](_0x14422f[_0x1881c8(0x259)][_0x181ab0[_0x1881c8(0x169)]],_0x181ab0[_0x1881c8(0x285)]),'agent':API_URL[_0x1881c8(0x27d)](_0x181ab0['WFjbq'])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x181ab0[_0x1881c8(0x195)](_0x5b1026,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x2ec9a6[_0x1881c8(0x19d)]=API_URL[_0x1881c8(0x27d)](_0x181ab0[_0x1881c8(0x27b)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x2ec9a6,_0x14422f),logger[_0x1881c8(0x1b1)]('Uploading\x20trace\x20logs\x20to:\x20'+_0x2ec9a6['url']));try{const {statusCode:_0x3f3124,body:_0x36ecec}=await bsSetupHelper[_0x1881c8(0x271)](_0x7da85b,_0x5b1026,_0x2ec9a6,_0x14422f,_0x2ec9a6[_0x1881c8(0x201)]);if(_0x181ab0[_0x1881c8(0x1c9)](_0x3f3124,0xc8))return _0x36ecec?_0x36ecec:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x3f3124;let _0x2fccc0=_0x36ecec;if(_0x5b5030)try{_0x181ab0[_0x1881c8(0x1c9)](typeof _0x36ecec,_0x181ab0[_0x1881c8(0x1a8)])&&(_0x2fccc0=JSON[_0x1881c8(0x25a)](_0x36ecec));}catch(_0x14e3e7){logger['error'](_0x181ab0[_0x1881c8(0x233)],_0x36ecec,util['format'](_0x14e3e7));}const _0x33a37b={};return _0x33a37b['data']=_0x2fccc0,_0x33a37b;}catch(_0x178385){logger[_0x1881c8(0x232)](_0x1881c8(0x1cb)+util[_0x1881c8(0x252)](_0x178385));throw _0x178385;}},exports[a127_0x4b9261(0x271)]=(_0x3e6e69,_0x3c34f2,_0x4d6184,_0x164bfb,_0x2a0212=!![])=>{const _0x479381=a127_0x4b9261,_0x3deec6={'JiCwg':function(_0x30de89,_0x502f6b){return _0x30de89!==_0x502f6b;},'jNrTi':function(_0x9fbe99,_0x2d00e5){return _0x9fbe99(_0x2d00e5);},'tUqnW':function(_0x3dea1a,_0x116765){return _0x3dea1a!==_0x116765;},'zTXxl':_0x479381(0x197),'xWFoq':function(_0x27174d,_0x41658d){return _0x27174d(_0x41658d);},'crTvl':_0x479381(0x196),'oJito':function(_0x49da58,_0x3a5fc2){return _0x49da58===_0x3a5fc2;},'yqkTD':'Content-Type','gcbjA':'application/json','DjSbP':_0x479381(0x239),'HOdsG':function(_0x1f69b8,_0x4126c3){return _0x1f69b8===_0x4126c3;}};return new Promise((_0x2d44f1,_0x1a792c)=>{const _0x26a621=_0x479381,_0x41e50d={'EIFUx':function(_0xd810c5,_0x461b3f){return _0x3deec6['JiCwg'](_0xd810c5,_0x461b3f);},'QTBDk':function(_0x429ca2,_0x30f195){const _0x3fb728=a127_0x4f25;return _0x3deec6[_0x3fb728(0x17c)](_0x429ca2,_0x30f195);},'NGxic':function(_0x5efe95,_0x40041b){const _0x41ef9c=a127_0x4f25;return _0x3deec6[_0x41ef9c(0x1bf)](_0x5efe95,_0x40041b);},'WRUcx':_0x3deec6['zTXxl'],'PALCH':function(_0x21fea1,_0x333659){return _0x3deec6['xWFoq'](_0x21fea1,_0x333659);},'SswFa':_0x3deec6['crTvl'],'tZZWi':function(_0x29e086,_0x34945f){const _0x251895=a127_0x4f25;return _0x3deec6[_0x251895(0x1ed)](_0x29e086,_0x34945f);}},_0x77ae67={..._0x164bfb,...{'method':_0x3e6e69,'url':API_URL+'/'+_0x3c34f2,'body':_0x4d6184,'json':_0x3deec6[_0x26a621(0x1be)](_0x164bfb[_0x26a621(0x259)][_0x3deec6[_0x26a621(0x24b)]],_0x3deec6[_0x26a621(0x255)]),'agent':API_URL['includes'](_0x3deec6[_0x26a621(0x20c)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x3deec6[_0x26a621(0x1eb)](_0x3c34f2,SCREENSHOT_ENDPOINT)&&(_0x77ae67[_0x26a621(0x19d)]=API_URL[_0x26a621(0x27d)](_0x3deec6['DjSbP'])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper['nodeRequest'](_0x3e6e69,_0x3c34f2,_0x77ae67,_0x164bfb,API_URL)['then'](({statusCode:_0x229207,body:_0x76d1c9})=>{const _0x8125e7=_0x26a621;if(_0x41e50d[_0x8125e7(0x24d)](_0x229207,0xc8))_0x41e50d[_0x8125e7(0x1db)](_0x1a792c,_0x76d1c9?_0x76d1c9:_0x8125e7(0x19f)+_0x229207);else{if(_0x2a0212)try{_0x41e50d[_0x8125e7(0x1b9)](typeof _0x76d1c9,_0x41e50d[_0x8125e7(0x26a)])&&(_0x76d1c9=JSON[_0x8125e7(0x25a)](_0x76d1c9));}catch(_0x539777){_0x41e50d[_0x8125e7(0x1ee)](_0x1a792c,_0x41e50d[_0x8125e7(0x208)]);return;}const _0x4d91cc={};_0x4d91cc[_0x8125e7(0x170)]=_0x76d1c9,_0x41e50d[_0x8125e7(0x27c)](_0x2d44f1,_0x4d91cc);}})[_0x26a621(0x16d)](_0x535c16=>{const _0x1a814e=_0x26a621;_0x535c16&&_0x41e50d[_0x1a814e(0x27c)](_0x1a792c,_0x535c16);});});},exports[a127_0x4b9261(0x1de)]=_0x1c89e4=>{const _0x1b678d=a127_0x4b9261;if(process[_0x1b678d(0x18e)][_0x1b678d(0x1b8)])return process['env'][_0x1b678d(0x1b8)]['split'](',');if(process[_0x1b678d(0x18e)][_0x1b678d(0x1e8)])return process[_0x1b678d(0x18e)][_0x1b678d(0x1e8)][_0x1b678d(0x183)](',');if(_0x1c89e4['buildTag'])return _0x1c89e4[_0x1b678d(0x268)];return[];},exports['getDefaultHeaders']=(_0x59f317=!![])=>{const _0x232067=a127_0x4b9261,_0x6d115={};_0x6d115[_0x232067(0x258)]='application/json',_0x6d115[_0x232067(0x16a)]='true',_0x6d115[_0x232067(0x1e6)]=_0x232067(0x266);const _0x5aaf5c=_0x6d115,_0x3e9fbe={};_0x3e9fbe[_0x232067(0x198)]=_0x5aaf5c[_0x232067(0x258)],_0x3e9fbe[_0x232067(0x1ba)]=_0x5aaf5c['FgeeK'];const _0x36d169=_0x3e9fbe;return _0x59f317&&process[_0x232067(0x18e)]['BROWSERSTACK_TESTHUB_JWT']&&(_0x36d169[_0x5aaf5c[_0x232067(0x1e6)]]=_0x232067(0x20a)+process[_0x232067(0x18e)][_0x232067(0x16f)]),_0x36d169;},exports[a127_0x4b9261(0x1ff)]=_0x19df6d=>{const _0x1fc8ca=a127_0x4b9261,_0x1f4884={};_0x1f4884[_0x1fc8ca(0x174)]=_0x1fc8ca(0x16c);const _0x590bd1=_0x1f4884,_0x22f258=[],_0xea7f30=new RegExp(_0x590bd1[_0x1fc8ca(0x174)],'i');return Object[_0x1fc8ca(0x17a)](_0x19df6d)[_0x1fc8ca(0x204)](_0x346160=>_0xea7f30[_0x1fc8ca(0x217)](_0x346160))['forEach'](_0x4e16a2=>_0x22f258[_0x1fc8ca(0x176)](_0x19df6d[_0x4e16a2])),_0x22f258;},exports['getCustomTags']=_0x1bb49a=>{const _0x1d32f8=a127_0x4b9261,_0x574afe=[],_0x173a26=_0x1bb49a[_0x1d32f8(0x172)]||process['env']['CUSTOM_TAG'];return _0x173a26&&_0x574afe[_0x1d32f8(0x176)](_0x173a26),_0x574afe[_0x1d32f8(0x176)](...exports[_0x1d32f8(0x1ff)](process[_0x1d32f8(0x18e)])),_0x574afe[_0x1d32f8(0x176)](...exports[_0x1d32f8(0x1ff)](_0x1bb49a)),_0x574afe;},exports[a127_0x4b9261(0x228)]=_0x14fb5e=>{const _0x3c271d=a127_0x4b9261;if(!_0x14fb5e)return'';return _0x14fb5e[_0x3c271d(0x1d2)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a127_0x4b9261(0x1f8)]=(_0x86abfd=0x64)=>new Promise(_0x26f433=>setTimeout(_0x26f433,_0x86abfd));const getPlatformName=()=>{const _0x3e4571=a127_0x4b9261,_0x4c24cf={};_0x4c24cf[_0x3e4571(0x1a6)]=function(_0x3dca92,_0x43fb73){return _0x3dca92===_0x43fb73;},_0x4c24cf[_0x3e4571(0x18a)]=_0x3e4571(0x21c),_0x4c24cf[_0x3e4571(0x1d9)]='Windows',_0x4c24cf[_0x3e4571(0x221)]=_0x3e4571(0x23f),_0x4c24cf[_0x3e4571(0x207)]='OS\x20X',_0x4c24cf['bHDFn']=_0x3e4571(0x1cd),_0x4c24cf[_0x3e4571(0x1df)]=_0x3e4571(0x287),_0x4c24cf['qCEBh']=_0x3e4571(0x275);const _0x5864bc=_0x4c24cf;if(_0x5864bc['heKgo'](process[_0x3e4571(0x1e1)],_0x5864bc[_0x3e4571(0x18a)]))return _0x5864bc[_0x3e4571(0x1d9)];if(_0x5864bc['heKgo'](process[_0x3e4571(0x1e1)],_0x5864bc[_0x3e4571(0x221)]))return _0x5864bc[_0x3e4571(0x207)];if(_0x5864bc[_0x3e4571(0x1a6)](process[_0x3e4571(0x1e1)],_0x5864bc[_0x3e4571(0x1ef)]))return _0x5864bc[_0x3e4571(0x1df)];return _0x5864bc[_0x3e4571(0x1b2)];},getMacOSVersion=()=>{const _0x2bf806=a127_0x4b9261,_0x14a7fe={};_0x14a7fe[_0x2bf806(0x253)]=_0x2bf806(0x1ac);const _0x11c22b=_0x14a7fe;return child_process['execSync'](_0x11c22b[_0x2bf806(0x253)])['toString']()[_0x2bf806(0x21b)]();},getLinuxDetails=()=>{const _0x5eb5cc={'prPRt':function(_0x5d778c,_0xf441cc){return _0x5d778c(_0xf441cc);}};return new Promise((_0x565a42,_0x519506)=>{const _0x38fd85=a127_0x4f25,_0x1735bd={'HGquI':function(_0x3523e9,_0x182671){return _0x5eb5cc['prPRt'](_0x3523e9,_0x182671);},'pcXzL':function(_0x25f488,_0x271436){const _0x4eebb2=a127_0x4f25;return _0x5eb5cc[_0x4eebb2(0x267)](_0x25f488,_0x271436);}};_0x5eb5cc[_0x38fd85(0x267)](getos,(_0x698ec7,_0x5a3652)=>{const _0x382eed=_0x38fd85;if(_0x698ec7)return _0x1735bd[_0x382eed(0x262)](_0x519506,_0x698ec7);_0x1735bd[_0x382eed(0x237)](_0x565a42,_0x5a3652);});});};exports[a127_0x4b9261(0x261)]=async()=>{const _0x57c420=a127_0x4b9261,_0xe7e44a={'RfjyE':function(_0x14d130){return _0x14d130();},'bMufb':_0x57c420(0x1e2),'URUbu':_0x57c420(0x223),'VPJLc':_0x57c420(0x177),'dQxhU':_0x57c420(0x287),'NpFRJ':_0x57c420(0x1ca)};let _0x2569c4=_0xe7e44a['RfjyE'](getPlatformName),_0x3f91ed=os['release']()['toString']();switch(_0x2569c4){case _0xe7e44a['bMufb']:_0x3f91ed=_0xe7e44a[_0x57c420(0x1cc)](getMacOSVersion);break;case _0xe7e44a['URUbu']:try{const _0x51a16e=(await import(_0xe7e44a[_0x57c420(0x1f9)]))[_0x57c420(0x23e)];_0x3f91ed=_0xe7e44a['RfjyE'](_0x51a16e);}catch(_0x28a168){exports[_0x57c420(0x1b1)](_0x57c420(0x1dd)+_0x28a168[_0x57c420(0x1bc)]());}break;case _0xe7e44a[_0x57c420(0x212)]:try{const _0x2cd829=await _0xe7e44a[_0x57c420(0x1cc)](getLinuxDetails);_0x2cd829[_0x57c420(0x194)]&&(_0x2569c4=_0x2cd829[_0x57c420(0x194)]),_0x2cd829[_0x57c420(0x22a)]&&(_0x3f91ed=_0x2cd829['release'][_0x57c420(0x1bc)]());}catch(_0x291f3b){exports[_0x57c420(0x1b1)](_0xe7e44a[_0x57c420(0x284)]);}break;default:break;}const _0x9b58b8={};return _0x9b58b8[_0x57c420(0x192)]=_0x2569c4,_0x9b58b8['platformVersion']=_0x3f91ed,_0x9b58b8;},exports[a127_0x4b9261(0x1fc)]=(_0x58e751,_0x12b221)=>{const _0x2e42eb=a127_0x4b9261,_0x289146={};_0x289146[_0x2e42eb(0x175)]=function(_0x10fc0f,_0x5e7c34){return _0x10fc0f===_0x5e7c34;},_0x289146[_0x2e42eb(0x215)]=_0x2e42eb(0x217),_0x289146['kTzTH']=_0x2e42eb(0x1e4);const _0x56123e=_0x289146;if(!_0x58e751)return[];try{if(_0x56123e[_0x2e42eb(0x175)](_0x12b221,_0x56123e[_0x2e42eb(0x215)]))return _0x58e751[_0x2e42eb(0x178)](_0x3a9338=>{const _0x216d73=_0x2e42eb,{stack:_0x30e56b,..._0x279d96}=_0x3a9338,_0x156752=Object['keys'](_0x279d96)[_0x216d73(0x178)](_0x5b28a4=>{return _0x5b28a4+':\x20'+_0x279d96[_0x5b28a4];}),_0x38ef5f=_0x30e56b?exports[_0x216d73(0x228)](_0x30e56b)[_0x216d73(0x183)](/\r?\n/):[exports[_0x216d73(0x228)](_0x3a9338[_0x216d73(0x1a4)])],_0x2386cd={};return _0x2386cd[_0x216d73(0x193)]=_0x38ef5f,_0x2386cd[_0x216d73(0x1a7)]=_0x156752,_0x2386cd;});else{if(_0x56123e['oovRE'](_0x12b221,_0x56123e['kTzTH'])){const _0x47b0d6=[],_0x2ad7bb=[];return Object[_0x2e42eb(0x17a)](_0x58e751)['forEach'](_0x3c6e49=>{const _0x388084=_0x2e42eb;try{_0x2ad7bb[_0x388084(0x176)](_0x3c6e49+':\x20'+_0x58e751[_0x3c6e49]);}catch(_0x3b608a){exports[_0x388084(0x1b1)](_0x388084(0x210)+_0x3b608a['message']+_0x388084(0x1d0)+_0x3b608a[_0x388084(0x193)]);}}),_0x47b0d6['push']({'backtrace':exports[_0x2e42eb(0x228)](_0x58e751['stack'])[_0x2e42eb(0x183)](/\r?\n/),'expanded':_0x2ad7bb}),_0x47b0d6;}}return[];}catch(_0xf5081b){exports[_0x2e42eb(0x1b1)]('Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20'+_0xf5081b['message']+_0x2e42eb(0x1d0)+_0xf5081b[_0x2e42eb(0x193)]);}return[];};class PathHelper{constructor(_0x39b9cb,_0x394c1){const _0x7e07cb=a127_0x4b9261;this[_0x7e07cb(0x286)]=_0x39b9cb,this[_0x7e07cb(0x257)]=_0x394c1;}[a127_0x4b9261(0x1ce)](_0x568ae5){const _0x434252=a127_0x4b9261,_0x42668c=this[_0x434252(0x286)][_0x434252(0x23d)]||this[_0x434252(0x286)]['rootDir'];return path[_0x434252(0x1dc)](_0x42668c,_0x568ae5);}[a127_0x4b9261(0x1e5)](_0x10ae49){const _0xb56931=a127_0x4b9261,_0x13e96e=this[_0xb56931(0x1ce)](_0x10ae49);return this['prefix']?path['join'](this[_0xb56931(0x257)],_0x13e96e):_0x13e96e;}}function a127_0x332e(){const _0x4e7b55=['err','prefixTestPath','qulyB','CODECEPT','TEST_OBSERVABILITY_BUILD_TAG','O11yHashedID','measureWrapper','HOdsG','getSyncScript','xWFoq','PALCH','bHDFn','test_run_uuid','now','getPlatformVersion','FUzwO','1918654GCurZK','ATS_HUB_URL_REGEX','getos','hirpK','sleep','VPJLc','isTestObservabilitySession','null','failureData','browserstack_executor:\x20','getAccessKey','extractValuesWithRegexKeyMatch','pfhaH','url','forEach','LogCreated','filter','body','getBrowserStackConfig','YzWbY','SswFa','bs:addLog:','Bearer\x20','host','DjSbP','129zdbYUJ','kweAI','fjOxH','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','shouldReRunObservabilityTests','dQxhU','info','1|0|4|2|5|3','OBtEg','TEST_REPORTING_ANALYTICS','test','undefined','util','5840790ZWbWXa','trim','win32','6470520RahYsE','PLAYWRIGHT','SlrOY','nvGNv','PslHl','\x20test\x20instance\x20:\x20','Windows','YaCuS','__cloud_provider___','QEWRC','DBUyt','removeAnsiColors','application/json','release','stack','../../bin/v2/browserstackCLI','BROWSERSTACK_TEST_REPORTING_DEBUG','hYIEB','\x20]\x20','FHnVr','APTLd','error','eiKvo','timeout','addRequestSpy','getBrowserName','pcXzL','isInternalHook','https','MOCHA','formData','mocha','cwd','default','darwin','lodash','http','maxTotalSockets','542496kbrKMH','automate','emit','unknown_grid','O11Y_URL','jwPMl','bstack:options','hostname','yqkTD','ulsSL','EIFUx','turboscale','Agent','json','../../bin/utils/logPatcher','format','FjKQp','BROWSERSTACK_OBSERVABILITY_DEBUG','gcbjA','Visit\x20','prefix','HAoBW','headers','parse','IMAoy','getCapabilities','app','pYjaA','][\x20','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','getPlatformDetails','HGquI','@playwright/test','getSession','stringify','Authorization','prPRt','buildTag','cordv','WRUcx','toJSON','BROWSERSTACK_TEST_OBSERVABILITY','ObservabilitySync:','./constants','[%s][\x20','trace','nodeRequest','EaBOn','toISOString','wSiRR','Unknown','288MwvDck','getUserName','DBaIc','kUDhF','ywuuS','WFjbq','tZZWi','includes','nPGLI','true','path','getPlatform','getFailureType','BROWSERSTACK_TEST_OBSERVABILITY_YML','NpFRJ','zBahE','config','Linux','BgUXR','git-last-commit','tcMAg','FgeeK','DPXaD','^CUSTOM_TAG_\x5cd+$','catch','modifyReqForTraceUpload','BROWSERSTACK_TESTHUB_JWT','data','silly','customTag','2681028AyPaDo','FabKP','oovRE','push','windows-release','map','PRINT_BUILDLINK','keys','pid','jNrTi','nMUOv','codeceptjs','BROWSERSTACK_TEST_REPORTING','AssertionError','sRKPy','match','split','logs','../logger','udkHW','isUndefined','getObservabilityLinkedProductName','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','wZaft','thBkM','../../bin/utils/constants','parseFileNames','env','../../helpers/request-spy','OKdlf','getPackageVersion','platformName','backtrace','dist','hDTCJ','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','object','Content-Type','app-automate','1101325oJPbEM','capabilities','CUCUMBER','agent','getBrowserVersion','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','jest','getFrameworkVersion','../performance/constants','VwpKS','message','sendPlatformDetails','heKgo','expanded','LopCS','child_process','browserstack','HUB_URL_REGEX','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','LzGoQ','XClQB','appium:app','bXLiY','debug','qCEBh','JEST','UnhandledError','printBuildLink','local_grid','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','TEST_REPORTING_BUILD_TAG','NGxic','X-BSTACK-TESTOPS','keepAlive','toString','BROWSERSTACK_RERUN_TESTS','oJito','tUqnW','TEST_ATTACHMENT','PathHelper','annotate','TEST_PLATFORM','HTTP','readConfig','maxSockets','akRpo','git-repo-info','JGVZU','Error\x20in\x20getting\x20Linux\x20Details','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','RfjyE','linux','relativeTestFilePath','BS_TESTOPS_BUILD_HASHED_ID','\x20:\x20','winstonLogger','replace','../performance/performance-tester','../helper','NmcyJ','kfeTu','length','@cucumber/cucumber','MqxyH','AsONJ','QTBDk','relative','Error\x20in\x20importing\x20windows-release\x20','getBuildTags','vJrfr','LlfAv','platform','OS\x20X','76184YUtvJR'];a127_0x332e=function(){return _0x4e7b55;};return a127_0x332e();}exports[a127_0x4b9261(0x1c1)]=PathHelper,exports[a127_0x4b9261(0x235)]=(_0x3f6b63=!![])=>{const _0x34dd2b=a127_0x4b9261,_0x259b89={};_0x259b89['sRKPy']=function(_0x47cf53,_0x26c678){return _0x47cf53===_0x26c678;},_0x259b89[_0x34dd2b(0x167)]=_0x34dd2b(0x1ba),_0x259b89[_0x34dd2b(0x190)]='true',_0x259b89[_0x34dd2b(0x1e0)]=_0x34dd2b(0x1c4),_0x259b89[_0x34dd2b(0x24c)]=_0x34dd2b(0x1aa),_0x259b89[_0x34dd2b(0x274)]=_0x34dd2b(0x1b6);const _0x37aabd=_0x259b89;requestSpy['spy']((_0x3ae86a,_0x163d03)=>{const _0x10be90=_0x34dd2b;_0x163d03&&!(_0x163d03[_0x10be90(0x259)]&&_0x37aabd[_0x10be90(0x181)](_0x163d03['headers'][_0x37aabd[_0x10be90(0x167)]],_0x37aabd['OKdlf']))&&(_0x163d03[_0x10be90(0x20b)]=_0x163d03['hostname'],delete _0x163d03[_0x10be90(0x24a)],_0x3f6b63&&process[_0x10be90(0x245)](_0x10be90(0x209)+process[_0x10be90(0x17b)],{'timestamp':new Date()[_0x10be90(0x273)](),'level':null,'message':null,'kind':_0x37aabd[_0x10be90(0x1e0)],'http_response':_0x163d03})),_0x163d03&&(constants[_0x10be90(0x1ab)][_0x10be90(0x217)](_0x163d03[_0x10be90(0x20b)])||constants[_0x10be90(0x1f5)][_0x10be90(0x217)](_0x163d03[_0x10be90(0x20b)]))?global[_0x10be90(0x225)]=_0x37aabd[_0x10be90(0x24c)]:global[_0x10be90(0x225)]=_0x37aabd[_0x10be90(0x274)];});},exports['patchConsoleLogger']=()=>{const _0x4b8a0d=a127_0x4b9261,_0x207b8c={'QIgOR':function(_0x56f59e,_0xfb4835){return _0x56f59e(_0xfb4835);}};console={},Object[_0x4b8a0d(0x17a)](consoleHolder)[_0x4b8a0d(0x202)](_0x18b19a=>{_0x207b8c['QIgOR'](isFunction,consoleHolder[_0x18b19a])?console[_0x18b19a]=(..._0x19d017)=>{const _0x38c337=a127_0x4f25;try{!Object['keys'](BSTestOpsPatcher)[_0x38c337(0x27d)](_0x18b19a)?consoleHolder[_0x18b19a](..._0x19d017):BSTestOpsPatcher[_0x18b19a](..._0x19d017);}catch(_0x4685a1){consoleHolder[_0x18b19a](..._0x19d017);}}:console[_0x18b19a]=consoleHolder[_0x18b19a];});},exports[a127_0x4b9261(0x1ec)]=()=>a127_0x4b9261(0x1fd)+JSON[a127_0x4b9261(0x265)]({'action':a127_0x4b9261(0x1c2),'arguments':{'data':a127_0x4b9261(0x26d)+Date[a127_0x4b9261(0x1f1)](),'level':a127_0x4b9261(0x1b1)}}),exports[a127_0x4b9261(0x188)]=_0x1e9bbf=>{const _0x2f4087=a127_0x4b9261,_0x32a4ce={};_0x32a4ce['DBaIc']=function(_0x2c2ed3,_0x9e6801){return _0x2c2ed3===_0x9e6801;},_0x32a4ce['FSQyu']=_0x2f4087(0x1aa),_0x32a4ce[_0x2f4087(0x1da)]=_0x2f4087(0x1af),_0x32a4ce[_0x2f4087(0x25b)]=_0x2f4087(0x25d),_0x32a4ce[_0x2f4087(0x220)]=function(_0x3685be,_0x1fb9aa){return _0x3685be>_0x1fb9aa;},_0x32a4ce[_0x2f4087(0x1ad)]=_0x2f4087(0x199),_0x32a4ce[_0x2f4087(0x22e)]=_0x2f4087(0x249),_0x32a4ce[_0x2f4087(0x1ae)]='turboScaleGridDetails',_0x32a4ce['udkHW']=_0x2f4087(0x24e),_0x32a4ce[_0x2f4087(0x230)]=_0x2f4087(0x244);const _0x339602=_0x32a4ce;let _0x39ce85=null;try{if(_0x339602[_0x2f4087(0x278)](global[_0x2f4087(0x225)],_0x339602['FSQyu'])){if(_0x1e9bbf[_0x339602[_0x2f4087(0x1da)]]||_0x1e9bbf[_0x339602[_0x2f4087(0x25b)]]||!bsSetupHelper[_0x2f4087(0x187)](global['capabilities'])&&_0x339602['nvGNv'](global[_0x2f4087(0x19b)][_0x2f4087(0x1d7)],0x0)&&(global[_0x2f4087(0x19b)][0x0][_0x339602[_0x2f4087(0x25b)]]||global[_0x2f4087(0x19b)][0x0][_0x339602['AsONJ']]))_0x39ce85=_0x339602[_0x2f4087(0x1ad)];else _0x1e9bbf[_0x339602['hYIEB']]&&_0x1e9bbf[_0x339602[_0x2f4087(0x22e)]][_0x339602[_0x2f4087(0x1ae)]]?_0x39ce85=_0x339602[_0x2f4087(0x186)]:_0x39ce85=_0x339602[_0x2f4087(0x230)];}}catch(_0x4ec646){exports['debug']('Failed\x20to\x20determine\x20product\x20linked\x20to\x20'+constants[_0x2f4087(0x216)]+_0x2f4087(0x222)+_0x4ec646);}return _0x39ce85;},exports[a127_0x4b9261(0x1a5)]=async(_0x360664,_0x74fca0,_0x2510f3=![])=>{const _0x117559=a127_0x4b9261,_0x1677cf={};_0x1677cf[_0x117559(0x1a3)]=function(_0x39c165,_0x27f1d5){return _0x39c165===_0x27f1d5;},_0x1677cf['nMUOv']='browserstack',_0x1677cf[_0x117559(0x227)]=_0x117559(0x246),_0x1677cf[_0x117559(0x20f)]=_0x117559(0x1c3);const _0x10947c=_0x1677cf;try{const _0x1daef0=await _0x360664[_0x117559(0x25c)](),_0x2652ac=await _0x360664[_0x117559(0x264)](),_0x6eca81={},_0x262f50=Object['fromEntries'](_0x2652ac[_0x117559(0x25c)]()['map_']),_0x95e550={'product':exports[_0x117559(0x188)](_0x262f50),'capabilities':_0x262f50,'platform':_0x1daef0[_0x117559(0x281)](),'platform_version':bsSetupHelper[_0x117559(0x1f2)](_0x10947c[_0x117559(0x1a3)](global[_0x117559(0x225)],_0x10947c[_0x117559(0x17d)])),'browser':_0x1daef0[_0x117559(0x236)](),'browser_version':_0x1daef0[_0x117559(0x19e)](),'session_id':_0x2652ac[_0x117559(0x26b)]()};global['__cloud_provider___']?_0x6eca81[global[_0x117559(0x225)]]=_0x95e550:_0x6eca81[_0x10947c['DBUyt']]=_0x95e550;if(_0x2510f3)return _0x6eca81;process[_0x117559(0x245)]('bs:addPlatformDetails:'+process['pid'],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x10947c[_0x117559(0x20f)],'http_response':_0x6eca81,'uuid':_0x74fca0});}catch(_0x19fc86){exports['debug'](_0x117559(0x189)+_0x19fc86);}},exports[a127_0x4b9261(0x238)]=_0x75f660=>{return _0x75f660&&_0x75f660['toString']()['match'](/browserstack internal helper hook/);};
|
|
1
|
+
const a129_0x8a17e=a129_0x1d86;function a129_0x41b4(){const _0x334b25=['toString','CFajA','vbEgn','10aPRBwV','FXYdU','../helper','TEST_PLATFORM','null','measureWrapper','@cucumber/cucumber','fZJTm','PathHelper','BfxBC','uGlJZ','GoECg','uzUMh','https','ATS_HUB_URL_REGEX','host','dhwLY','winstonLogger','silly','url','LogCreated','ARkHI','Error\x20in\x20importing\x20windows-release\x20','filter','buildLogger','OQUZu','1606600VckeDc','EGAmO','getPlatform','backtrace','emit','../performance/constants','uHiok','format','[%s][\x20','colmr','X-BSTACK-TESTOPS','browserstack_executor:\x20','TEST_REPORTING_ANALYTICS','getFrameworkVersion','AYCOh','nqOgR','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','ObservabilitySync:','error','cZivW','forEach','5vXLSCt','release','getCustomTags','0|2|3|4|1|5','message','RZaKm','readConfig','automate','HOZpF','IKivR','EWNSk','XyzJg','data','getBrowserStackConfig','err','config','cwd','gxkSw','then','../../bin/utils/constants','replace','1276154qJXhph','debug','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','HltlI','__cloud_provider___','relative','codeceptjs','MOqJO','efpMa','RTfEt','bEfdJ','getUserCredentials','getCapabilities','TEST_ATTACHMENT','printBuildLink','addRequestSpy','BROWSERSTACK_TEST_REPORTING','3djUwhG','HXfzD','getBrowserVersion','uDnBW','/builds/','platform','undefined','stack','getFailureType','GAMww','HRaCH','TEST_OBSERVABILITY_BUILD_TAG','PHUNS','bs:addPlatformDetails:','AssertionError','asyncAwaitNodeReq','match','CUCUMBER','toISOString','isInternalHook','trace','modifyReqForTraceUpload','TQPsk','headers','relativeTestFilePath','parse','child_process','nHKkl','getPlatformDetails','AnKFR','extractValuesWithRegexKeyMatch','../../bin/v2/browserstackCLI','../performance/performance-tester','viTcr','sleep','tGVpY','OLzVg','nJyED','\x20]\x20','KrUjZ','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','isUndefined','\x20test\x20instance\x20:\x20','shouldReRunObservabilityTests','lodash','VfDEw','Content-Type','uzQRW','pXWNV','maxTotalSockets','HTTP','agent','BROWSERSTACK_CONFIG_FILE_PATH','rxfGg','MOCHA','BROWSERSTACK_RERUN_TESTS','getDefaultHeaders','getSyncScript','../logger','36QztLKk','FOzUu','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','local_grid','test_run_uuid','Unknown','SgvnV','OjyXM','catch','execSync','@playwright/test','uWIVc','pFkcU','turboScaleGridDetails','test','sizDl','browserstack','../../../src/bin/utils/constants','dFDuO','O11yHashedID','KWhGJ','BOtOi','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','Linux','platformName','BS_TESTOPS_BUILD_HASHED_ID','split','mXUje','uJSaM','EYLlK','timeout','path','CODECEPT_CUCUMBER','DNjgT','push','../../helpers/request-spy','DyCGs','TEST_REPORTING_BUILD_TAG','../../bin/utils/logPatcher','BROWSERSTACK_TESTHUB_JWT','now','getObservabilityLinkedProductName','getBrowserName','BROWSERSTACK_TEST_OBSERVABILITY_YML','rootDir','\x20]\x20Build\x20Not\x20Found\x20%s','dBCnf','gaQWN','linux','bJewc','true','formData','JhqMn','BROWSERSTACK_TEST_OBSERVABILITY','length','BROWSERSTACK_OBSERVABILITY_DEBUG','nRYai','31944WbhjSQ','getPlatformVersion','CReKv','Windows','keys','trim','info','capabilities','JpzHO','hostname','isTestObservabilitySession','1346415zakYBE','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','keepAlive','git-last-commit','QQxIe','PLAYWRIGHT','body','YiHyP','ogNeL','expanded','object','bstack:options','failureData','./constants','\x20:\x20','isArray','qDRwP','map','DDtWn','env','BROWSERSTACK_TEST_REPORTING_DEBUG','patchConsoleLogger','buildTag','DopMQ','mocha','removeAnsiColors','TsllS','Authorization','annotate','][\x20','HUB_URL_REGEX','nodeRequest','RNEUX','darwin','BgREC','sendPlatformDetails','getos','JkBsj','PRlZS','PRINT_BUILDLINK','log','qvqfD','1210362VLsSAe','toJSON','logs','Error\x20in\x20getting\x20Linux\x20Details','prefix','Visit\x20','getPackageVersion','3689780CevHel','getUserName','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','http','win32','pid','application/json','OS\x20X','gtVqI','includes','Agent','CUSTOM_TAG','6658894zSTBEc','maxSockets','GxrYG','MBtra'];a129_0x41b4=function(){return _0x334b25;};return a129_0x41b4();}(function(_0x580c45,_0x51d780){const _0x31f380=a129_0x1d86,_0x3ee425=_0x580c45();while(!![]){try{const _0x1a728b=parseInt(_0x31f380(0xeb))/0x1+-parseInt(_0x31f380(0x17e))/0x2+-parseInt(_0x31f380(0x18f))/0x3*(-parseInt(_0x31f380(0x127))/0x4)+-parseInt(_0x31f380(0x169))/0x5*(parseInt(_0x31f380(0x120))/0x6)+parseInt(_0x31f380(0xf6))/0x7+parseInt(_0x31f380(0x154))/0x8*(parseInt(_0x31f380(0x1ca))/0x9)+parseInt(_0x31f380(0x13a))/0xa*(-parseInt(_0x31f380(0x133))/0xb);if(_0x1a728b===_0x51d780)break;else _0x3ee425['push'](_0x3ee425['shift']());}catch(_0x19d1a9){_0x3ee425['push'](_0x3ee425['shift']());}}}(a129_0x41b4,0x7b42c));const fs=require('fs'),path=require(a129_0x8a17e(0x1e9)),gitLastCommit=require(a129_0x8a17e(0xf9)),getRepoInfo=require('git-repo-info'),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a129_0x8a17e(0x103)),http=require(a129_0x8a17e(0x12a)),https=require('https'),child_process=require(a129_0x8a17e(0x1a9)),getos=require(a129_0x8a17e(0x11a)),os=require('os'),logger=require(a129_0x8a17e(0x1c9))[a129_0x8a17e(0x14b)],buildLogger=require(a129_0x8a17e(0x1c9))[a129_0x8a17e(0x152)],bsSetupHelper=require(a129_0x8a17e(0x13c)),requestSpy=require(a129_0x8a17e(0x1ed)),constants=require(a129_0x8a17e(0x17c)),logPatcher=require(a129_0x8a17e(0x1f0)),util=require('util'),{fileLogger}=require('../logger'),PerformanceTester=require(a129_0x8a17e(0x1af)),{isFunction}=require(a129_0x8a17e(0x1bb)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a129_0x8a17e(0x159)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a129_0x8a17e(0x1db));exports[a129_0x8a17e(0x1a3)]=_0x39c187=>{const _0x5df72f=a129_0x8a17e;fileLogger[_0x5df72f(0x14c)]('['+new Date()[_0x5df72f(0x1a1)]()+_0x5df72f(0x113)+constants['TEST_REPORTING_ANALYTICS']+_0x5df72f(0x1b5)+_0x39c187);},exports[a129_0x8a17e(0x17f)]=_0x52caf2=>{const _0x14ccba=a129_0x8a17e,_0xd4ca04={};_0xd4ca04['dhwLY']=function(_0x307fcf,_0x977001){return _0x307fcf===_0x977001;},_0xd4ca04['sWZxx']=_0x14ccba(0xe4),_0xd4ca04['OjyXM']=function(_0x494886,_0x36f772){return _0x494886===_0x36f772;},_0xd4ca04[_0x14ccba(0x1be)]=function(_0x10c670,_0x18b83a){return _0x10c670===_0x18b83a;};const _0x568915=_0xd4ca04;fileLogger['debug']('['+new Date()['toISOString']()+_0x14ccba(0x113)+constants[_0x14ccba(0x160)]+_0x14ccba(0x1b5)+_0x52caf2),(_0x568915[_0x14ccba(0x14a)](process[_0x14ccba(0x109)]['BROWSERSTACK_TEST_REPORTING_DEBUG'],_0x568915['sWZxx'])||_0x568915['dhwLY'](process['env'][_0x14ccba(0x10a)],'1')||_0x568915[_0x14ccba(0x1d1)](process['env'][_0x14ccba(0xe9)],_0x568915['sWZxx'])||_0x568915[_0x14ccba(0x1be)](process[_0x14ccba(0x109)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder[_0x14ccba(0x11e)]('\x0a['+new Date()[_0x14ccba(0x1a1)]()+'][\x20'+constants[_0x14ccba(0x160)]+_0x14ccba(0x1b5)+_0x52caf2+'\x0a');};const a129_0x56e5b4={};a129_0x56e5b4[a129_0x8a17e(0xf8)]=!![],a129_0x56e5b4[a129_0x8a17e(0x1e8)]=0xea60,a129_0x56e5b4[a129_0x8a17e(0x134)]=0x2,a129_0x56e5b4[a129_0x8a17e(0x1c0)]=0x2;const httpKeepAliveAgent=new http[(a129_0x8a17e(0x131))](a129_0x56e5b4),a129_0xd3270d={};a129_0xd3270d[a129_0x8a17e(0xf8)]=!![],a129_0xd3270d[a129_0x8a17e(0x1e8)]=0xea60,a129_0xd3270d[a129_0x8a17e(0x134)]=0x2,a129_0xd3270d['maxTotalSockets']=0x2;const httpsKeepAliveAgent=new https[(a129_0x8a17e(0x131))](a129_0xd3270d),a129_0x425aca={};a129_0x425aca[a129_0x8a17e(0xf8)]=!![],a129_0x425aca[a129_0x8a17e(0x1e8)]=0xea60,a129_0x425aca[a129_0x8a17e(0x134)]=0x2,a129_0x425aca[a129_0x8a17e(0x1c0)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a129_0x8a17e(0x131))](a129_0x425aca),a129_0x56972a={};function a129_0x1d86(_0x277937,_0x37c668){const _0x41b44c=a129_0x41b4();return a129_0x1d86=function(_0x1d86a3,_0x1f2276){_0x1d86a3=_0x1d86a3-0xe0;let _0x3c8084=_0x41b44c[_0x1d86a3];return _0x3c8084;},a129_0x1d86(_0x277937,_0x37c668);}a129_0x56972a[a129_0x8a17e(0xf8)]=!![],a129_0x56972a['timeout']=0xea60,a129_0x56972a[a129_0x8a17e(0x134)]=0x2,a129_0x56972a['maxTotalSockets']=0x2;const httpsScreenshotsKeepAliveAgent=new https['Agent'](a129_0x56972a);exports[a129_0x8a17e(0x1ba)]=()=>{const _0x340eaa=a129_0x8a17e,_0x18880c={};_0x18880c[_0x340eaa(0x1b3)]=function(_0x29c10d,_0x173b4c){return _0x29c10d!==_0x173b4c;},_0x18880c[_0x340eaa(0x144)]=_0x340eaa(0x13e);const _0x2f2d0a=_0x18880c;return process[_0x340eaa(0x109)][_0x340eaa(0x1c6)]&&_0x2f2d0a[_0x340eaa(0x1b3)](process['env'][_0x340eaa(0x1c6)],_0x2f2d0a[_0x340eaa(0x144)])?!![]:![];},exports[a129_0x8a17e(0xf5)]=()=>{const _0x4d43ac=a129_0x8a17e,_0x7008fd={};_0x7008fd[_0x4d43ac(0x173)]=function(_0x56dc14,_0x41ad19){return _0x56dc14===_0x41ad19;},_0x7008fd[_0x4d43ac(0x1ac)]='true',_0x7008fd[_0x4d43ac(0x143)]=function(_0x5a6114,_0x2e07c2){return _0x5a6114===_0x2e07c2;},_0x7008fd[_0x4d43ac(0x19b)]=function(_0x1d3764,_0x3fc4e7){return _0x1d3764===_0x3fc4e7;};const _0x480fd3=_0x7008fd;let _0x502cea=!![];return process['env']['BROWSERSTACK_TEST_OBSERVABILITY_YML']&&(_0x502cea=_0x480fd3[_0x4d43ac(0x173)](process[_0x4d43ac(0x109)][_0x4d43ac(0x1f5)],_0x480fd3[_0x4d43ac(0x1ac)])),process['env'][_0x4d43ac(0xe7)]&&(_0x502cea=_0x480fd3['BfxBC'](process['env']['BROWSERSTACK_TEST_OBSERVABILITY'],_0x480fd3[_0x4d43ac(0x1ac)])),process['env'][_0x4d43ac(0x18e)]&&(_0x502cea=_0x480fd3[_0x4d43ac(0x19b)](process[_0x4d43ac(0x109)][_0x4d43ac(0x18e)],_0x480fd3['AnKFR'])),_0x502cea;},exports['parseFileNames']=_0x45a149=>{const _0x1d21c8=a129_0x8a17e;if(bsSetupHelper[_0x1d21c8(0x1b8)](_0x45a149))return undefined;try{return _0x45a149[_0x1d21c8(0xf0)]()[_0x1d21c8(0x1e4)](',');}catch(_0x36409e){return undefined;}},exports[a129_0x8a17e(0x18c)]=()=>{const _0x20ad55=a129_0x8a17e,_0x2f60b2={'JkBsj':function(_0x31f98b,_0x526b3f){return _0x31f98b(_0x526b3f);},'nqOgR':_0x20ad55(0x1ae),'bJewc':function(_0x15cfd5,_0x294ff9){return _0x15cfd5!==_0x294ff9;},'ICwJA':_0x20ad55(0x13e),'MOqJO':_0x20ad55(0x195)};return PerformanceTester[_0x20ad55(0x13f)](PerformanceO11yEvents[_0x20ad55(0x11d)],async()=>{const _0x38bf3a=_0x20ad55;try{const _0x1e42cd=_0x2f60b2[_0x38bf3a(0x11b)](require,_0x2f60b2[_0x38bf3a(0x163)]);if(_0x1e42cd[_0x38bf3a(0x1dd)]){const _0x1d6472=_0x38bf3a(0x125)+O11Y_URL+_0x38bf3a(0x193)+_0x1e42cd[_0x38bf3a(0x1dd)]+_0x38bf3a(0xf7);buildLogger[_0x38bf3a(0xf1)](_0x1d6472);return;}if(process[_0x38bf3a(0x109)]['BS_TESTOPS_BUILD_HASHED_ID']&&_0x2f60b2[_0x38bf3a(0xe3)](process[_0x38bf3a(0x109)][_0x38bf3a(0x1e3)],_0x2f60b2['ICwJA'])&&_0x2f60b2['bJewc'](process[_0x38bf3a(0x109)][_0x38bf3a(0x1e3)],_0x2f60b2[_0x38bf3a(0x185)])){const _0x12534a=_0x38bf3a(0x125)+constants['O11Y_URL']+_0x38bf3a(0x193)+process['env'][_0x38bf3a(0x1e3)]+_0x38bf3a(0xf7);buildLogger[_0x38bf3a(0xf1)](_0x12534a);}}catch(_0x16fb01){logger[_0x38bf3a(0x166)](util['format'](_0x38bf3a(0x15c)+constants[_0x38bf3a(0x160)]+_0x38bf3a(0x1f7),new Date()['toISOString'](),_0x16fb01[_0x38bf3a(0x196)]||_0x16fb01[_0x38bf3a(0x16d)]||_0x16fb01));}})();},exports[a129_0x8a17e(0x197)]=_0xc8d537=>{const _0x311043=a129_0x8a17e,_0x52655d={};_0x52655d[_0x311043(0xea)]=_0x311043(0x19d),_0x52655d[_0x311043(0x17a)]='UnhandledError';const _0x458ddf=_0x52655d;if(!_0xc8d537)return null;return _0xc8d537[_0x311043(0x137)]()[_0x311043(0x19f)](/AssertionError/)?_0x458ddf[_0x311043(0xea)]:_0x458ddf[_0x311043(0x17a)];},exports[a129_0x8a17e(0x161)]=_0x10e762=>{const _0x4eecdd=a129_0x8a17e,_0x3f6b57={};_0x3f6b57[_0x4eecdd(0x11c)]=_0x4eecdd(0x10e),_0x3f6b57[_0x4eecdd(0x1d6)]=_0x4eecdd(0x1d4),_0x3f6b57['DyCGs']=_0x4eecdd(0x184),_0x3f6b57['TQPsk']='jest',_0x3f6b57[_0x4eecdd(0x1cb)]=_0x4eecdd(0x140);const _0x33ed81=_0x3f6b57;let _0x1b7523=null;switch(_0x10e762){case FRAMEWORKS[_0x4eecdd(0x1c5)]:_0x1b7523=bsSetupHelper[_0x4eecdd(0x126)](_0x33ed81['PRlZS']);break;case FRAMEWORKS[_0x4eecdd(0xfb)]:_0x1b7523=bsSetupHelper['getPackageVersion'](_0x33ed81[_0x4eecdd(0x1d6)]);break;case FRAMEWORKS['CODECEPT']:case FRAMEWORKS[_0x4eecdd(0x1ea)]:_0x1b7523=bsSetupHelper[_0x4eecdd(0x126)](_0x33ed81[_0x4eecdd(0x1ee)]);break;case FRAMEWORKS['JEST']:_0x1b7523=bsSetupHelper[_0x4eecdd(0x126)](_0x33ed81[_0x4eecdd(0x1a5)]);break;case FRAMEWORKS[_0x4eecdd(0x1a0)]:_0x1b7523=bsSetupHelper[_0x4eecdd(0x126)](_0x33ed81['FOzUu']);break;default:break;}return _0x1b7523;},exports[a129_0x8a17e(0x176)]=_0x496edd=>{const _0xf8995d=a129_0x8a17e;let _0x4fdba4=null;switch(_0x496edd){case FRAMEWORKS[_0xf8995d(0xfb)]:_0x4fdba4=process[_0xf8995d(0x109)][_0xf8995d(0x1c3)];break;}if(!_0x4fdba4)return;return bsSetupHelper[_0xf8995d(0x16f)](_0x4fdba4,![]);},exports[a129_0x8a17e(0x189)]=_0x4f233b=>{const _0x25fc81=a129_0x8a17e;return{'username':bsSetupHelper[_0x25fc81(0x128)](_0x4f233b),'accessKey':bsSetupHelper['getAccessKey'](_0x4f233b)};},exports[a129_0x8a17e(0x1a4)]=(_0x17cd49,_0x13f55c)=>{const _0x3ab4c2=a129_0x8a17e,_0x497faa={};_0x497faa[_0x3ab4c2(0x116)]=_0x3ab4c2(0x16c),_0x497faa[_0x3ab4c2(0x139)]=_0x3ab4c2(0x14e),_0x497faa['VfqLo']=_0x3ab4c2(0x18b);const _0x44c06c=_0x497faa,_0x381383=_0x44c06c[_0x3ab4c2(0x116)][_0x3ab4c2(0x1e4)]('|');let _0x5ab62d=0x0;while(!![]){switch(_0x381383[_0x5ab62d++]){case'0':if(!_0x17cd49['body']||!Array[_0x3ab4c2(0x105)](_0x17cd49['body']))return;continue;case'1':delete _0x17cd49['json'];continue;case'2':if(!_0x17cd49[_0x3ab4c2(0xfc)][0x0]||!_0x17cd49[_0x3ab4c2(0xfc)][0x0][_0x3ab4c2(0x122)]||!_0x17cd49[_0x3ab4c2(0xfc)][0x0]['logs']['length'])return;continue;case'3':_0x17cd49[_0x3ab4c2(0xe5)]={'data':_0x17cd49[_0x3ab4c2(0xfc)][0x0][_0x3ab4c2(0x122)][0x0][_0x3ab4c2(0x175)],'test_run_uuid':_0x17cd49[_0x3ab4c2(0xfc)][0x0][_0x3ab4c2(0x122)][0x0][_0x3ab4c2(0x1ce)],'event_type':_0x44c06c[_0x3ab4c2(0x139)],'kind':_0x44c06c['VfqLo'],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x3ab4c2(0x1a1)](),'fileName':_0x17cd49['body'][0x0][_0x3ab4c2(0x122)][0x0]['fileName']};continue;case'4':delete _0x17cd49[_0x3ab4c2(0xfc)];continue;case'5':delete _0x13f55c[_0x3ab4c2(0x1a6)];continue;}break;}},exports[a129_0x8a17e(0x19e)]=async(_0xb0af8c,_0x387e1c,_0x46a71f,_0x16689a,_0xa8361f=!![])=>{const _0x28186c=a129_0x8a17e,_0x14f9a3={};_0x14f9a3['IKivR']=function(_0x2a99b6,_0xe118a2){return _0x2a99b6===_0xe118a2;},_0x14f9a3[_0x28186c(0x16e)]=_0x28186c(0x1bd),_0x14f9a3[_0x28186c(0x108)]=_0x28186c(0x12d),_0x14f9a3[_0x28186c(0x186)]=_0x28186c(0x147),_0x14f9a3[_0x28186c(0x135)]=function(_0x128ded,_0x547a7e){return _0x128ded===_0x547a7e;},_0x14f9a3['gtVqI']=function(_0xc0a9ee,_0xd93a7a){return _0xc0a9ee!==_0xd93a7a;},_0x14f9a3[_0x28186c(0xe1)]=_0x28186c(0x100),_0x14f9a3[_0x28186c(0x13b)]=_0x28186c(0x1cc);const _0x4c4956=_0x14f9a3,_0x5f23ef={..._0x16689a,...{'method':_0xb0af8c,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x387e1c,'body':_0x46a71f,'json':_0x4c4956[_0x28186c(0x172)](_0x16689a[_0x28186c(0x1a6)][_0x4c4956[_0x28186c(0x16e)]],_0x4c4956[_0x28186c(0x108)]),'agent':API_URL[_0x28186c(0x130)](_0x4c4956[_0x28186c(0x186)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x4c4956[_0x28186c(0x135)](_0x387e1c,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x5f23ef[_0x28186c(0x1c2)]=API_URL[_0x28186c(0x130)](_0x4c4956[_0x28186c(0x186)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x28186c(0x1a4)](_0x5f23ef,_0x16689a),logger['debug']('Uploading\x20trace\x20logs\x20to:\x20'+_0x5f23ef[_0x28186c(0x14d)]));try{const {statusCode:_0x1a540e,body:_0x3c257d}=await bsSetupHelper[_0x28186c(0x115)](_0xb0af8c,_0x387e1c,_0x5f23ef,_0x16689a,_0x5f23ef['url']);if(_0x4c4956['gtVqI'](_0x1a540e,0xc8))return _0x3c257d?_0x3c257d:_0x28186c(0x180)+_0x1a540e;let _0x2ab368=_0x3c257d;if(_0xa8361f)try{_0x4c4956[_0x28186c(0x12f)](typeof _0x3c257d,_0x4c4956[_0x28186c(0xe1)])&&(_0x2ab368=JSON[_0x28186c(0x1a8)](_0x3c257d));}catch(_0x59a58c){logger['error'](_0x4c4956[_0x28186c(0x13b)],_0x3c257d,util[_0x28186c(0x15b)](_0x59a58c));}const _0x5cf681={};return _0x5cf681[_0x28186c(0x175)]=_0x2ab368,_0x5cf681;}catch(_0x26d298){logger[_0x28186c(0x166)](_0x28186c(0x1e0)+util[_0x28186c(0x15b)](_0x26d298));throw _0x26d298;}},exports['nodeRequest']=(_0xe9646a,_0x2252b4,_0x2ac09f,_0x2eaf78,_0x5d51d5=!![])=>{const _0x2af195=a129_0x8a17e,_0x18f0bd={'nJyED':function(_0xbc78a5,_0x56ac21){return _0xbc78a5!==_0x56ac21;},'tGVpY':function(_0x329397,_0x539d4f){return _0x329397(_0x539d4f);},'rxfGg':_0x2af195(0x100),'ARkHI':_0x2af195(0x164),'ogNeL':function(_0x301385,_0x3ef7cd){return _0x301385(_0x3ef7cd);},'uzUMh':function(_0xa05aa6,_0xc80bef){return _0xa05aa6===_0xc80bef;},'GoECg':_0x2af195(0x1bd),'BgREC':'application/json','TsllS':_0x2af195(0x147)};return new Promise((_0x16e667,_0x341a83)=>{const _0x144546=_0x2af195,_0x3b236c={..._0x2eaf78,...{'method':_0xe9646a,'url':API_URL+'/'+_0x2252b4,'body':_0x2ac09f,'json':_0x18f0bd[_0x144546(0x146)](_0x2eaf78[_0x144546(0x1a6)][_0x18f0bd[_0x144546(0x145)]],_0x18f0bd[_0x144546(0x118)]),'agent':API_URL[_0x144546(0x130)](_0x18f0bd[_0x144546(0x110)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x18f0bd[_0x144546(0x146)](_0x2252b4,SCREENSHOT_ENDPOINT)&&(_0x3b236c[_0x144546(0x1c2)]=API_URL[_0x144546(0x130)](_0x18f0bd[_0x144546(0x110)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x144546(0x115)](_0xe9646a,_0x2252b4,_0x3b236c,_0x2eaf78,API_URL)[_0x144546(0x17b)](({statusCode:_0x182cbb,body:_0x10de46})=>{const _0x4cbbad=_0x144546;if(_0x18f0bd['nJyED'](_0x182cbb,0xc8))_0x18f0bd['tGVpY'](_0x341a83,_0x10de46?_0x10de46:_0x4cbbad(0x180)+_0x182cbb);else{if(_0x5d51d5)try{_0x18f0bd[_0x4cbbad(0x1b4)](typeof _0x10de46,_0x18f0bd[_0x4cbbad(0x1c4)])&&(_0x10de46=JSON[_0x4cbbad(0x1a8)](_0x10de46));}catch(_0x33d29c){_0x18f0bd[_0x4cbbad(0x1b2)](_0x341a83,_0x18f0bd[_0x4cbbad(0x14f)]);return;}const _0x262d4b={};_0x262d4b[_0x4cbbad(0x175)]=_0x10de46,_0x18f0bd[_0x4cbbad(0xfe)](_0x16e667,_0x262d4b);}})[_0x144546(0x1d2)](_0x58e726=>{const _0x5f55fa=_0x144546;_0x58e726&&_0x18f0bd[_0x5f55fa(0xfe)](_0x341a83,_0x58e726);});});},exports['getBuildTags']=_0x23b460=>{const _0x2df0b7=a129_0x8a17e;if(process[_0x2df0b7(0x109)][_0x2df0b7(0x1ef)])return process[_0x2df0b7(0x109)]['TEST_REPORTING_BUILD_TAG']['split'](',');if(process[_0x2df0b7(0x109)][_0x2df0b7(0x19a)])return process[_0x2df0b7(0x109)][_0x2df0b7(0x19a)]['split'](',');if(_0x23b460['buildTag'])return _0x23b460[_0x2df0b7(0x10c)];return[];},exports[a129_0x8a17e(0x1c7)]=(_0x423a4c=!![])=>{const _0x5e8cd2=a129_0x8a17e,_0x2a369e={};_0x2a369e[_0x5e8cd2(0x1d0)]='application/json',_0x2a369e[_0x5e8cd2(0x1d5)]='true',_0x2a369e[_0x5e8cd2(0xfa)]=_0x5e8cd2(0x111);const _0x465fc3=_0x2a369e,_0x9dcdf2={};_0x9dcdf2[_0x5e8cd2(0x1bd)]=_0x465fc3[_0x5e8cd2(0x1d0)],_0x9dcdf2['X-BSTACK-TESTOPS']=_0x465fc3[_0x5e8cd2(0x1d5)];const _0xb42a0=_0x9dcdf2;return _0x423a4c&&process['env']['BROWSERSTACK_TESTHUB_JWT']&&(_0xb42a0[_0x465fc3[_0x5e8cd2(0xfa)]]='Bearer\x20'+process['env'][_0x5e8cd2(0x1f1)]),_0xb42a0;},exports[a129_0x8a17e(0x1ad)]=_0x45d570=>{const _0x19e5e2=a129_0x8a17e,_0x32ed43={};_0x32ed43['TzBHn']='^CUSTOM_TAG_\x5cd+$';const _0x365cfd=_0x32ed43,_0x548445=[],_0x12a36c=new RegExp(_0x365cfd['TzBHn'],'i');return Object[_0x19e5e2(0xef)](_0x45d570)[_0x19e5e2(0x151)](_0x37a497=>_0x12a36c[_0x19e5e2(0x1d8)](_0x37a497))['forEach'](_0x4dba1f=>_0x548445['push'](_0x45d570[_0x4dba1f])),_0x548445;},exports[a129_0x8a17e(0x16b)]=_0x19df3c=>{const _0x2a72b2=a129_0x8a17e,_0xd140a6=[],_0x1dc345=_0x19df3c['customTag']||process[_0x2a72b2(0x109)][_0x2a72b2(0x132)];return _0x1dc345&&_0xd140a6[_0x2a72b2(0x1ec)](_0x1dc345),_0xd140a6['push'](...exports['extractValuesWithRegexKeyMatch'](process['env'])),_0xd140a6['push'](...exports['extractValuesWithRegexKeyMatch'](_0x19df3c)),_0xd140a6;},exports['removeAnsiColors']=_0x68bdb6=>{const _0x1e5bb3=a129_0x8a17e;if(!_0x68bdb6)return'';return _0x68bdb6[_0x1e5bb3(0x17d)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a129_0x8a17e(0x1b1)]=(_0x2225c4=0x64)=>new Promise(_0x156a96=>setTimeout(_0x156a96,_0x2225c4));const getPlatformName=()=>{const _0x2c0115=a129_0x8a17e,_0x4e974a={};_0x4e974a[_0x2c0115(0x1e5)]=function(_0x40b264,_0x3a54d0){return _0x40b264===_0x3a54d0;},_0x4e974a[_0x2c0115(0xe6)]=_0x2c0115(0x12b),_0x4e974a['viTcr']='Windows',_0x4e974a[_0x2c0115(0x1e6)]=_0x2c0115(0x117),_0x4e974a[_0x2c0115(0x1bc)]=_0x2c0115(0x12e),_0x4e974a['OQUZu']=function(_0x71e83e,_0x4e13c3){return _0x71e83e===_0x4e13c3;},_0x4e974a[_0x2c0115(0x187)]=_0x2c0115(0xe2),_0x4e974a[_0x2c0115(0x106)]=_0x2c0115(0x1e1),_0x4e974a[_0x2c0115(0x1d9)]=_0x2c0115(0x1cf);const _0x2ddfee=_0x4e974a;if(_0x2ddfee['mXUje'](process[_0x2c0115(0x194)],_0x2ddfee[_0x2c0115(0xe6)]))return _0x2ddfee[_0x2c0115(0x1b0)];if(_0x2ddfee[_0x2c0115(0x1e5)](process[_0x2c0115(0x194)],_0x2ddfee[_0x2c0115(0x1e6)]))return _0x2ddfee[_0x2c0115(0x1bc)];if(_0x2ddfee[_0x2c0115(0x153)](process[_0x2c0115(0x194)],_0x2ddfee[_0x2c0115(0x187)]))return _0x2ddfee[_0x2c0115(0x106)];return _0x2ddfee[_0x2c0115(0x1d9)];},getMacOSVersion=()=>{const _0x1386b5=a129_0x8a17e,_0x4a1601={};_0x4a1601[_0x1386b5(0x171)]=_0x1386b5(0x1b7);const _0x2d2467=_0x4a1601;return child_process[_0x1386b5(0x1d3)](_0x2d2467[_0x1386b5(0x171)])[_0x1386b5(0x137)]()['trim']();},getLinuxDetails=()=>{const _0x222cca={'HRaCH':function(_0x269f9d,_0x4af1a3){return _0x269f9d(_0x4af1a3);},'EYLlK':function(_0x2a3da7,_0x5356b2){return _0x2a3da7(_0x5356b2);}};return new Promise((_0x5f4ef0,_0x1f91c6)=>{const _0x19fd6f=a129_0x1d86;_0x222cca[_0x19fd6f(0x1e7)](getos,(_0x1ec915,_0x209448)=>{const _0x29ad16=_0x19fd6f;if(_0x1ec915)return _0x222cca[_0x29ad16(0x199)](_0x1f91c6,_0x1ec915);_0x222cca['EYLlK'](_0x5f4ef0,_0x209448);});});};exports[a129_0x8a17e(0x1ab)]=async()=>{const _0x55b4be=a129_0x8a17e,_0x349a5e={'CFajA':function(_0x30988c){return _0x30988c();},'BqWiz':_0x55b4be(0x12e),'LipEN':_0x55b4be(0xee),'DNjgT':'windows-release','nAQow':_0x55b4be(0x1e1),'uDnBW':_0x55b4be(0x123)};let _0x49c809=_0x349a5e[_0x55b4be(0x138)](getPlatformName),_0x1539a7=os[_0x55b4be(0x16a)]()[_0x55b4be(0x137)]();switch(_0x49c809){case _0x349a5e['BqWiz']:_0x1539a7=_0x349a5e[_0x55b4be(0x138)](getMacOSVersion);break;case _0x349a5e['LipEN']:try{const _0xb2ce37=(await import(_0x349a5e[_0x55b4be(0x1eb)]))['default'];_0x1539a7=_0x349a5e[_0x55b4be(0x138)](_0xb2ce37);}catch(_0x52302c){exports['debug'](_0x55b4be(0x150)+_0x52302c['toString']());}break;case _0x349a5e['nAQow']:try{const _0xe51eb3=await _0x349a5e[_0x55b4be(0x138)](getLinuxDetails);_0xe51eb3['dist']&&(_0x49c809=_0xe51eb3['dist']),_0xe51eb3[_0x55b4be(0x16a)]&&(_0x1539a7=_0xe51eb3[_0x55b4be(0x16a)]['toString']());}catch(_0x2f9157){exports[_0x55b4be(0x17f)](_0x349a5e[_0x55b4be(0x192)]);}break;default:break;}const _0x43a89e={};return _0x43a89e[_0x55b4be(0x1e2)]=_0x49c809,_0x43a89e['platformVersion']=_0x1539a7,_0x43a89e;},exports[a129_0x8a17e(0x102)]=(_0x35cf1d,_0x3dca0a)=>{const _0x208d94=a129_0x8a17e,_0x36adb2={};_0x36adb2['dFDuO']=function(_0x5e6c09,_0xab9c5e){return _0x5e6c09===_0xab9c5e;},_0x36adb2[_0x208d94(0x162)]=_0x208d94(0x1d8),_0x36adb2[_0x208d94(0x181)]=function(_0x1ce1d8,_0x2e7aae){return _0x1ce1d8===_0x2e7aae;},_0x36adb2[_0x208d94(0x174)]=_0x208d94(0x177);const _0x26224f=_0x36adb2;if(!_0x35cf1d)return[];try{if(_0x26224f[_0x208d94(0x1dc)](_0x3dca0a,_0x26224f[_0x208d94(0x162)]))return _0x35cf1d[_0x208d94(0x107)](_0x2f9cd2=>{const _0xf03178=_0x208d94,{stack:_0x193f74,..._0x121411}=_0x2f9cd2,_0xb66093=Object[_0xf03178(0xef)](_0x121411)[_0xf03178(0x107)](_0x1a2dee=>{return _0x1a2dee+':\x20'+_0x121411[_0x1a2dee];}),_0x5aab42=_0x193f74?exports[_0xf03178(0x10f)](_0x193f74)[_0xf03178(0x1e4)](/\r?\n/):[exports[_0xf03178(0x10f)](_0x2f9cd2[_0xf03178(0x16d)])],_0x2c43bf={};return _0x2c43bf[_0xf03178(0x157)]=_0x5aab42,_0x2c43bf[_0xf03178(0xff)]=_0xb66093,_0x2c43bf;});else{if(_0x26224f[_0x208d94(0x181)](_0x3dca0a,_0x26224f[_0x208d94(0x174)])){const _0x574014=[],_0x208382=[];return Object[_0x208d94(0xef)](_0x35cf1d)[_0x208d94(0x168)](_0x4452c1=>{const _0x1ce2ed=_0x208d94;try{_0x208382[_0x1ce2ed(0x1ec)](_0x4452c1+':\x20'+_0x35cf1d[_0x4452c1]);}catch(_0x4ee907){exports[_0x1ce2ed(0x17f)](_0x1ce2ed(0x129)+_0x4ee907[_0x1ce2ed(0x16d)]+_0x1ce2ed(0x104)+_0x4ee907['backtrace']);}}),_0x574014[_0x208d94(0x1ec)]({'backtrace':exports[_0x208d94(0x10f)](_0x35cf1d[_0x208d94(0x196)])[_0x208d94(0x1e4)](/\r?\n/),'expanded':_0x208382}),_0x574014;}}return[];}catch(_0x124aaf){exports['debug'](_0x208d94(0x129)+_0x124aaf[_0x208d94(0x16d)]+'\x20:\x20'+_0x124aaf[_0x208d94(0x157)]);}return[];};class PathHelper{constructor(_0x123332,_0x2fae70){const _0x17888e=a129_0x8a17e;this[_0x17888e(0x178)]=_0x123332,this[_0x17888e(0x124)]=_0x2fae70;}[a129_0x8a17e(0x1a7)](_0x5054a8){const _0x3cfed7=a129_0x8a17e,_0x4a8b4d=this[_0x3cfed7(0x178)][_0x3cfed7(0x179)]||this[_0x3cfed7(0x178)][_0x3cfed7(0x1f6)];return path[_0x3cfed7(0x183)](_0x4a8b4d,_0x5054a8);}['prefixTestPath'](_0x30f92e){const _0xb27c1c=a129_0x8a17e,_0x39afcc=this['relativeTestFilePath'](_0x30f92e);return this['prefix']?path['join'](this[_0xb27c1c(0x124)],_0x39afcc):_0x39afcc;}}exports[a129_0x8a17e(0x142)]=PathHelper,exports[a129_0x8a17e(0x18d)]=(_0x1912b3=!![])=>{const _0x115077=a129_0x8a17e,_0x4ab809={};_0x4ab809[_0x115077(0x198)]=function(_0x412d7d,_0x535a94){return _0x412d7d===_0x535a94;},_0x4ab809['KrUjZ']=_0x115077(0x15e),_0x4ab809['bEfdJ']=_0x115077(0xe4),_0x4ab809[_0x115077(0x1aa)]=_0x115077(0x1c1),_0x4ab809[_0x115077(0x1df)]=_0x115077(0x1da),_0x4ab809[_0x115077(0xfd)]=_0x115077(0x1cd);const _0x3fadfe=_0x4ab809;requestSpy['spy']((_0x421d0b,_0x35c547)=>{const _0x183451=_0x115077;_0x35c547&&!(_0x35c547[_0x183451(0x1a6)]&&_0x3fadfe[_0x183451(0x198)](_0x35c547[_0x183451(0x1a6)][_0x3fadfe[_0x183451(0x1b6)]],_0x3fadfe[_0x183451(0x188)]))&&(_0x35c547[_0x183451(0x149)]=_0x35c547[_0x183451(0xf4)],delete _0x35c547['hostname'],_0x1912b3&&process[_0x183451(0x158)]('bs:addLog:'+process[_0x183451(0x12c)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x3fadfe[_0x183451(0x1aa)],'http_response':_0x35c547})),_0x35c547&&(constants[_0x183451(0x114)]['test'](_0x35c547[_0x183451(0x149)])||constants[_0x183451(0x148)][_0x183451(0x1d8)](_0x35c547[_0x183451(0x149)]))?global[_0x183451(0x182)]=_0x3fadfe[_0x183451(0x1df)]:global[_0x183451(0x182)]=_0x3fadfe['YiHyP'];});},exports[a129_0x8a17e(0x10b)]=()=>{const _0x375b9a=a129_0x8a17e,_0x68a754={'uHiok':function(_0x428881,_0x1e9af5){return _0x428881(_0x1e9af5);}};console={},Object[_0x375b9a(0xef)](consoleHolder)[_0x375b9a(0x168)](_0x16cf9a=>{const _0x1cca07=_0x375b9a;_0x68a754[_0x1cca07(0x15a)](isFunction,consoleHolder[_0x16cf9a])?console[_0x16cf9a]=(..._0x3efbe3)=>{const _0xac3ef9=_0x1cca07;try{!Object[_0xac3ef9(0xef)](BSTestOpsPatcher)[_0xac3ef9(0x130)](_0x16cf9a)?consoleHolder[_0x16cf9a](..._0x3efbe3):BSTestOpsPatcher[_0x16cf9a](..._0x3efbe3);}catch(_0x96441d){consoleHolder[_0x16cf9a](..._0x3efbe3);}}:console[_0x16cf9a]=consoleHolder[_0x16cf9a];});},exports[a129_0x8a17e(0x1c8)]=()=>a129_0x8a17e(0x15f)+JSON['stringify']({'action':a129_0x8a17e(0x112),'arguments':{'data':a129_0x8a17e(0x165)+Date[a129_0x8a17e(0x1f2)](),'level':a129_0x8a17e(0x17f)}}),exports[a129_0x8a17e(0x1f3)]=_0x5d5d09=>{const _0x3994c2=a129_0x8a17e,_0x3d8dc4={};_0x3d8dc4[_0x3994c2(0xed)]=function(_0x4acc4b,_0x1d9d9e){return _0x4acc4b===_0x1d9d9e;},_0x3d8dc4[_0x3994c2(0xf3)]='browserstack',_0x3d8dc4['colmr']='appium:app',_0x3d8dc4['DopMQ']='app',_0x3d8dc4['LwSNY']=function(_0x444ac0,_0x27071e){return _0x444ac0>_0x27071e;},_0x3d8dc4[_0x3994c2(0xe0)]='app-automate',_0x3d8dc4[_0x3994c2(0x155)]=_0x3994c2(0x101),_0x3d8dc4[_0x3994c2(0x11f)]=_0x3994c2(0x1d7),_0x3d8dc4[_0x3994c2(0x141)]='turboscale',_0x3d8dc4[_0x3994c2(0x1de)]=_0x3994c2(0x170);const _0x392456=_0x3d8dc4;let _0x46d80f=null;try{if(_0x392456['CReKv'](global[_0x3994c2(0x182)],_0x392456[_0x3994c2(0xf3)])){if(_0x5d5d09[_0x392456[_0x3994c2(0x15d)]]||_0x5d5d09[_0x392456[_0x3994c2(0x10d)]]||!bsSetupHelper['isUndefined'](global[_0x3994c2(0xf2)])&&_0x392456['LwSNY'](global['capabilities'][_0x3994c2(0xe8)],0x0)&&(global['capabilities'][0x0][_0x392456[_0x3994c2(0x10d)]]||global['capabilities'][0x0][_0x392456[_0x3994c2(0x15d)]]))_0x46d80f=_0x392456[_0x3994c2(0xe0)];else _0x5d5d09[_0x392456[_0x3994c2(0x155)]]&&_0x5d5d09[_0x392456[_0x3994c2(0x155)]][_0x392456[_0x3994c2(0x11f)]]?_0x46d80f=_0x392456[_0x3994c2(0x141)]:_0x46d80f=_0x392456[_0x3994c2(0x1de)];}}catch(_0x2a723b){exports['debug']('Failed\x20to\x20determine\x20product\x20linked\x20to\x20'+constants[_0x3994c2(0x160)]+_0x3994c2(0x1b9)+_0x2a723b);}return _0x46d80f;},exports[a129_0x8a17e(0x119)]=async(_0x1ecb26,_0x572fa1,_0x414978=![])=>{const _0x333d86=a129_0x8a17e,_0x5d5732={};_0x5d5732['MBtra']=function(_0x3b7d0e,_0x4a6ea8){return _0x3b7d0e===_0x4a6ea8;},_0x5d5732[_0x333d86(0x167)]=_0x333d86(0x1da),_0x5d5732[_0x333d86(0x190)]='unknown_grid',_0x5d5732['pXWNV']=_0x333d86(0x13d);const _0x3f35ad=_0x5d5732;try{const _0x3d289f=await _0x1ecb26['getCapabilities'](),_0x3c0df5=await _0x1ecb26['getSession'](),_0x42955f={},_0x2291ad=Object['fromEntries'](_0x3c0df5[_0x333d86(0x18a)]()['map_']),_0x1d535b={'product':exports['getObservabilityLinkedProductName'](_0x2291ad),'capabilities':_0x2291ad,'platform':_0x3d289f[_0x333d86(0x156)](),'platform_version':bsSetupHelper[_0x333d86(0xec)](_0x3f35ad[_0x333d86(0x136)](global[_0x333d86(0x182)],_0x3f35ad[_0x333d86(0x167)])),'browser':_0x3d289f[_0x333d86(0x1f4)](),'browser_version':_0x3d289f[_0x333d86(0x191)](),'session_id':_0x3c0df5[_0x333d86(0x121)]()};global[_0x333d86(0x182)]?_0x42955f[global[_0x333d86(0x182)]]=_0x1d535b:_0x42955f[_0x3f35ad[_0x333d86(0x190)]]=_0x1d535b;if(_0x414978)return _0x42955f;process['emit'](_0x333d86(0x19c)+process['pid'],{'timestamp':new Date()[_0x333d86(0x1a1)](),'level':null,'message':null,'kind':_0x3f35ad[_0x333d86(0x1bf)],'http_response':_0x42955f,'uuid':_0x572fa1});}catch(_0x11d47a){exports[_0x333d86(0x17f)]('Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x11d47a);}},exports[a129_0x8a17e(0x1a2)]=_0x3c532e=>{const _0x28f312=a129_0x8a17e;return _0x3c532e&&_0x3c532e['toString']()[_0x28f312(0x19f)](/browserstack internal helper hook/);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a130_0xf90978=a130_0x102c;(function(_0x3b4f61,_0x3a15bd){var _0x1e9d61=a130_0x102c,_0x3f37a2=_0x3b4f61();while(!![]){try{var _0x21b94b=parseInt(_0x1e9d61(0x1a8))/0x1*(-parseInt(_0x1e9d61(0x1ad))/0x2)+-parseInt(_0x1e9d61(0x1ac))/0x3*(parseInt(_0x1e9d61(0x1b1))/0x4)+parseInt(_0x1e9d61(0x1b3))/0x5+parseInt(_0x1e9d61(0x1a9))/0x6*(parseInt(_0x1e9d61(0x1a6))/0x7)+parseInt(_0x1e9d61(0x1ab))/0x8*(parseInt(_0x1e9d61(0x1ae))/0x9)+-parseInt(_0x1e9d61(0x1aa))/0xa+-parseInt(_0x1e9d61(0x1af))/0xb;if(_0x21b94b===_0x3a15bd)break;else _0x3f37a2['push'](_0x3f37a2['shift']());}catch(_0x25878d){_0x3f37a2['push'](_0x3f37a2['shift']());}}}(a130_0x21af,0x60382));function a130_0x21af(){var _0x3bb9f6=['90108vvNlAH','3294910JBRsYX','8CmlbTV','9qnpwTJ','199112lygJRP','892251BmMeug','1705550TnhhfN','testorchestration/api/v1/split-tests','595340uFIAve','ORCHESTRATION_API_URL','3549195NmGvWk','287wyVKOR','SPLIT_TESTS_ENDPOINT','1cjGGfu'];a130_0x21af=function(){return _0x3bb9f6;};return a130_0x21af();}function a130_0x102c(_0x4e0c9a,_0x5b4be7){var _0x21af3c=a130_0x21af();return a130_0x102c=function(_0x102cd1,_0x12b0d0){_0x102cd1=_0x102cd1-0x1a6;var _0x3d68ff=_0x21af3c[_0x102cd1];return _0x3d68ff;},a130_0x102c(_0x4e0c9a,_0x5b4be7);}var a130_0x44306d={};a130_0x44306d[a130_0xf90978(0x1b2)]='https://collector-observability.browserstack.com',a130_0x44306d['FAILED_TESTS_ENDPOINT']='testorchestration/api/v1/failed-tests',a130_0x44306d[a130_0xf90978(0x1a7)]=a130_0xf90978(0x1b0),module['exports']=a130_0x44306d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a129_0xe61cf=a129_0x4b34;function a129_0x4b34(_0x426449,_0x2da39a){const _0x1f9065=a129_0x1f90();return a129_0x4b34=function(_0x4b34ae,_0xbdc08f){_0x4b34ae=_0x4b34ae-0x11c;let _0x2f8474=_0x1f9065[_0x4b34ae];return _0x2f8474;},a129_0x4b34(_0x426449,_0x2da39a);}(function(_0x1182b8,_0x4457e9){const _0x5eb63d=a129_0x4b34,_0x193ca8=_0x1182b8();while(!![]){try{const _0x506363=-parseInt(_0x5eb63d(0x15e))/0x1+-parseInt(_0x5eb63d(0x153))/0x2+-parseInt(_0x5eb63d(0x150))/0x3*(parseInt(_0x5eb63d(0x167))/0x4)+parseInt(_0x5eb63d(0x188))/0x5*(-parseInt(_0x5eb63d(0x156))/0x6)+parseInt(_0x5eb63d(0x147))/0x7*(-parseInt(_0x5eb63d(0x129))/0x8)+-parseInt(_0x5eb63d(0x143))/0x9+-parseInt(_0x5eb63d(0x179))/0xa*(-parseInt(_0x5eb63d(0x152))/0xb);if(_0x506363===_0x4457e9)break;else _0x193ca8['push'](_0x193ca8['shift']());}catch(_0x223b2b){_0x193ca8['push'](_0x193ca8['shift']());}}}(a129_0x1f90,0x24ac5));const fs=require('fs'),path=require(a129_0xe61cf(0x13e)),FileHelper=require(a129_0xe61cf(0x184)),RequestUtils=require(a129_0xe61cf(0x134)),logger=require(a129_0xe61cf(0x162))['winstonLogger'],POLLING_INTERVAL=0x2710,TAG='FailFastManager';function a129_0x1f90(){const _0x16df6a=['_CI]\x20Polling\x20started\x20with\x20interval:\x20','lastAPIFailedCount','failFastActive','_fetchAPIFailedCount','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','117104RLAiuW','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','MbeQe','isCIMode','_initializeStateFromFile','info',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','shouldFailFast','cpWWc','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','size','./requestUtils','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','debug','projectName','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','passed','BROWSERSTACK_NODE_INDEX','getFailedTestsCount','cleanup','message','path','kepgG','mXTCA','fileHelper','recordTestResult','2422107awoqds','PjPZy','\x0aStack:\x20','env','35tYEKpn','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','jtDfM','HAHkV','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','_Local]\x20State\x20initialized\x20from\x20file.','_CI]\x20API\x20failed\x20count\x20updated:\x20','ILfHe','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','455799RtmAaZ','failFast.active','10963359uFxwRJ','322580fXnHSY','FPlVO','failFastState.lock','1218LsGUjk','_pollFailedTests','wmjJX','uXBgQ','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','_CI]\x20Error\x20sending\x20failed\x20test\x20','JdkUR','tZwtN','34001CyFKcG','BzmXT','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','writeFileSync','../logger','buildName','failFastState.json','eUvzl','GbREc','4gqhCNj','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','newState','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','pvQYy','kfDUH','HLDma','oaOWC','tfgwo','BROWSERSTACK_BUILD_RUN_IDENTIFIER','\x20(was\x20','EYiWl','JwDCq','_CI]\x20Error\x20during\x20polling\x20logic:\x20','buildRunIdentifier','error','failureThresholdCount','\x20to\x20API:\x20','10rNqDbH','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','from','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','tPeYS','totalTests','number','onTestDone','lockFilePath','KQBpV','./fileHelper','putFailedTests','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','reportedFailuresToAPI','3865invprv','EQjvo','writeState','wJAVi','join','cRmzJ','failed',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','OwQMR','readState','stack','uniqueFailedTests','exports','fQkpe',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','_sendFailedTestsToAPI','existsSync','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','failFastConfig','qYTuK','Rchbm','NBvYi','length','failFastActiveMarkerPath',',\x20CI\x20Mode:\x20','state','pollingInterval','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20',',\x20threshold:\x20','stopPolling','stateFilePath','workingDir','_getDefaultState'];a129_0x1f90=function(){return _0x16df6a;};return a129_0x1f90();}class FailFastManager{constructor(_0x268fc7,_0x1789e0,_0x17b94c){const _0x22b03e=a129_0xe61cf,_0x3b176f={};_0x3b176f[_0x22b03e(0x16e)]=function(_0x3f3fd3,_0x402b87){return _0x3f3fd3+_0x402b87;},_0x3b176f['BzmXT']=_0x22b03e(0x145),_0x3b176f[_0x22b03e(0x14a)]=function(_0x20d3f7,_0x44ad1b){return _0x20d3f7||_0x44ad1b;},_0x3b176f[_0x22b03e(0x17e)]=_0x22b03e(0x164),_0x3b176f[_0x22b03e(0x165)]=_0x22b03e(0x155),_0x3b176f[_0x22b03e(0x19d)]=_0x22b03e(0x151);const _0x1d7ecf=_0x3b176f;this[_0x22b03e(0x19a)]=_0x1d7ecf[_0x22b03e(0x14a)](_0x268fc7,{}),this[_0x22b03e(0x163)]=_0x1789e0,this[_0x22b03e(0x137)]=_0x17b94c,this[_0x22b03e(0x12c)]=!!(process[_0x22b03e(0x146)][_0x22b03e(0x170)]&&process[_0x22b03e(0x146)][_0x22b03e(0x13a)]&&process['env']['BROWSERSTACK_TOTAL_NODE_COUNT']);const _0x4c0361=this[_0x22b03e(0x19a)][_0x22b03e(0x122)];this['stateFilePath']=path[_0x22b03e(0x18c)](_0x4c0361,_0x1d7ecf[_0x22b03e(0x17e)]),this[_0x22b03e(0x182)]=path[_0x22b03e(0x18c)](_0x4c0361,_0x1d7ecf[_0x22b03e(0x165)]),this[_0x22b03e(0x19f)]=path[_0x22b03e(0x18c)](_0x4c0361,_0x1d7ecf[_0x22b03e(0x19d)]),this['fileHelper']=new FileHelper(this[_0x22b03e(0x19a)],this[_0x22b03e(0x121)],this[_0x22b03e(0x182)],this['_getDefaultState']()),this[_0x22b03e(0x1a1)]=this[_0x22b03e(0x123)](),this[_0x22b03e(0x11c)]=null,this['isCIMode']&&(this['reportedFailuresToAPI']=new Set()),this['_initializeStateFromFile']()['catch'](_0x4e2ff0=>{const _0x451a81=_0x22b03e;logger[_0x451a81(0x176)]('['+TAG+_0x451a81(0x18f)+_0x4e2ff0[_0x451a81(0x13d)]+(_0x4e2ff0['stack']?_0x1d7ecf[_0x451a81(0x16e)](_0x1d7ecf[_0x451a81(0x15f)],_0x4e2ff0['stack']):'')),this[_0x451a81(0x1a1)]=this[_0x451a81(0x123)]();}),this[_0x22b03e(0x12c)]&&this['startPolling'](),logger[_0x22b03e(0x136)]('['+TAG+_0x22b03e(0x12f)+this[_0x22b03e(0x19a)][_0x22b03e(0x177)]+_0x22b03e(0x1a0)+this['isCIMode']);}[a129_0xe61cf(0x123)](){const _0x2540f7={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x2540f7;}async[a129_0xe61cf(0x12d)](){const _0x17a816=a129_0xe61cf,_0x3163e7={};_0x3163e7['fQkpe']=function(_0x459f9e,_0xd4064d){return _0x459f9e+_0xd4064d;},_0x3163e7[_0x17a816(0x154)]=_0x17a816(0x145),_0x3163e7[_0x17a816(0x172)]=function(_0x54de7b,_0x1b07af){return _0x54de7b+_0x1b07af;};const _0x5508d2=_0x3163e7;if(this[_0x17a816(0x12c)])try{fs[_0x17a816(0x198)](this[_0x17a816(0x19f)])&&(this['state'][_0x17a816(0x126)]=!![],logger[_0x17a816(0x136)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.'));}catch(_0x3d2e40){logger[_0x17a816(0x176)]('['+TAG+_0x17a816(0x14f)+_0x3d2e40['message']+(_0x3d2e40[_0x17a816(0x192)]?_0x5508d2[_0x17a816(0x195)](_0x5508d2[_0x17a816(0x154)],_0x3d2e40[_0x17a816(0x192)]):''));}else try{const _0x224305=await this[_0x17a816(0x141)][_0x17a816(0x191)]();if(_0x224305)this['state']={...this[_0x17a816(0x123)](),..._0x224305,'uniqueFailedTests':new Set(_0x224305['uniqueFailedTests']||[])},logger[_0x17a816(0x136)]('['+TAG+_0x17a816(0x14c));else{logger['debug']('['+TAG+_0x17a816(0x17a));const _0x1670d5=this[_0x17a816(0x123)](),_0x55cb99={..._0x1670d5,'uniqueFailedTests':Array[_0x17a816(0x17b)](_0x1670d5[_0x17a816(0x193)])};await this[_0x17a816(0x141)][_0x17a816(0x18a)](_0x55cb99),this[_0x17a816(0x1a1)]=_0x1670d5;}}catch(_0x760129){logger['debug']('['+TAG+_0x17a816(0x16a)+_0x760129[_0x17a816(0x13d)]+(_0x760129[_0x17a816(0x192)]?_0x5508d2[_0x17a816(0x172)](_0x5508d2['FPlVO'],_0x760129['stack']):'')),this['state']=this[_0x17a816(0x123)]();}}async[a129_0xe61cf(0x181)](_0x3f95c0,_0x47ac64){const _0x3420e4=a129_0xe61cf,_0x21e33f={};_0x21e33f['JwDCq']=function(_0x4c2534,_0xf3f2ca){return _0x4c2534>_0xf3f2ca;},_0x21e33f[_0x3420e4(0x149)]=_0x3420e4(0x18e),_0x21e33f[_0x3420e4(0x166)]=_0x3420e4(0x139),_0x21e33f[_0x3420e4(0x190)]=function(_0x4082a4,_0x1b5469){return _0x4082a4+_0x1b5469;},_0x21e33f[_0x3420e4(0x16f)]=_0x3420e4(0x145),_0x21e33f[_0x3420e4(0x15c)]=function(_0x41eb54,_0x50f071){return _0x41eb54||_0x50f071;},_0x21e33f[_0x3420e4(0x159)]=function(_0x9cb66b,_0x54aed0){return _0x9cb66b+_0x54aed0;};const _0x3111b6=_0x21e33f;if(this[_0x3420e4(0x12c)])this[_0x3420e4(0x1a1)][_0x3420e4(0x17f)]+=0x1,_0x47ac64&&_0x3111b6['JwDCq'](_0x47ac64[_0x3420e4(0x19e)],0x0)&&(!this['reportedFailuresToAPI']['has'](_0x3f95c0)&&(await this[_0x3420e4(0x197)](_0x3f95c0),this[_0x3420e4(0x187)]['add'](_0x3f95c0)));else try{const _0x2c6836={'fullName':_0x3f95c0,'status':_0x47ac64&&_0x3111b6[_0x3420e4(0x173)](_0x47ac64['length'],0x0)?_0x3111b6[_0x3420e4(0x149)]:_0x3111b6[_0x3420e4(0x166)]},_0x4b60ee=await this[_0x3420e4(0x141)][_0x3420e4(0x142)](_0x2c6836);this[_0x3420e4(0x1a1)]={...this[_0x3420e4(0x123)](),..._0x4b60ee[_0x3420e4(0x169)],'uniqueFailedTests':new Set(_0x4b60ee['newState'][_0x3420e4(0x193)]||[])};}catch(_0x5d6543){logger[_0x3420e4(0x176)]('['+TAG+'_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20'+_0x5d6543[_0x3420e4(0x13d)]+(_0x5d6543[_0x3420e4(0x192)]?_0x3111b6[_0x3420e4(0x190)](_0x3111b6[_0x3420e4(0x16f)],_0x5d6543[_0x3420e4(0x192)]):''));try{const _0x18b7d7=await this['fileHelper'][_0x3420e4(0x191)]();this['state']={...this[_0x3420e4(0x123)](),..._0x3111b6[_0x3420e4(0x15c)](_0x18b7d7,{}),'uniqueFailedTests':new Set(_0x18b7d7?_0x18b7d7[_0x3420e4(0x193)]||[]:[])},logger[_0x3420e4(0x136)]('['+TAG+_0x3420e4(0x17c));}catch(_0x32b2c2){logger['error']('['+TAG+_0x3420e4(0x128)+_0x32b2c2[_0x3420e4(0x13d)]+(_0x32b2c2[_0x3420e4(0x192)]?_0x3111b6['uXBgQ'](_0x3111b6[_0x3420e4(0x16f)],_0x32b2c2[_0x3420e4(0x192)]):'')),this[_0x3420e4(0x1a1)]=this[_0x3420e4(0x123)]();}}}async['_sendFailedTestsToAPI'](_0xb47ffa){const _0x37806b=a129_0xe61cf,_0x13cfd8={};_0x13cfd8[_0x37806b(0x14e)]=function(_0xbc5a5b,_0xc5097b){return _0xbc5a5b+_0xc5097b;},_0x13cfd8['wmjJX']='\x0aStack:\x20';const _0x3961fe=_0x13cfd8;if(!this[_0x37806b(0x12c)]||!_0xb47ffa)return;try{logger['debug']('['+TAG+_0x37806b(0x135)+_0xb47ffa);const _0x67cb64={};_0x67cb64[_0x37806b(0x163)]=this[_0x37806b(0x163)],_0x67cb64[_0x37806b(0x137)]=this[_0x37806b(0x137)],_0x67cb64['failedTests']=[_0xb47ffa],_0x67cb64[_0x37806b(0x175)]=process['env'][_0x37806b(0x170)],await RequestUtils[_0x37806b(0x185)](_0x67cb64);}catch(_0x144870){logger[_0x37806b(0x176)]('['+TAG+_0x37806b(0x15b)+_0xb47ffa+_0x37806b(0x178)+_0x144870['message']+(_0x144870['stack']?_0x3961fe['ILfHe'](_0x3961fe[_0x37806b(0x158)],_0x144870[_0x37806b(0x192)]):''));}}async[a129_0xe61cf(0x127)](){const _0x4c0959=a129_0xe61cf,_0x5215e3={};_0x5215e3[_0x4c0959(0x144)]=function(_0x434c6f,_0x36fbcc){return _0x434c6f===_0x36fbcc;},_0x5215e3[_0x4c0959(0x183)]=_0x4c0959(0x180),_0x5215e3[_0x4c0959(0x19c)]=function(_0x364596,_0x245bd8){return _0x364596+_0x245bd8;},_0x5215e3['gXjHH']=_0x4c0959(0x145),_0x5215e3[_0x4c0959(0x131)]=function(_0x5dfddb,_0x15c91d){return _0x5dfddb!==_0x15c91d;};const _0x527e9b=_0x5215e3;if(!this[_0x4c0959(0x12c)])return 0x0;try{const _0x5ea0be={};_0x5ea0be[_0x4c0959(0x163)]=this[_0x4c0959(0x163)],_0x5ea0be[_0x4c0959(0x137)]=this[_0x4c0959(0x137)],_0x5ea0be[_0x4c0959(0x175)]=process[_0x4c0959(0x146)][_0x4c0959(0x170)];const _0x5c4253=await RequestUtils[_0x4c0959(0x13b)](_0x5ea0be);return logger[_0x4c0959(0x136)]('['+TAG+_0x4c0959(0x138)+_0x5c4253),_0x527e9b[_0x4c0959(0x144)](typeof _0x5c4253,_0x527e9b[_0x4c0959(0x183)])?_0x5c4253:0x0;}catch(_0x4e6934){return logger[_0x4c0959(0x176)]('['+TAG+_0x4c0959(0x148)+_0x4e6934['message']+(_0x4e6934[_0x4c0959(0x192)]?_0x527e9b[_0x4c0959(0x19c)](_0x527e9b['gXjHH'],_0x4e6934['stack']):'')),_0x527e9b[_0x4c0959(0x131)](this['state']['lastAPIFailedCount'],undefined)?this[_0x4c0959(0x1a1)][_0x4c0959(0x125)]:0x0;}}async[a129_0xe61cf(0x157)](){const _0x36e04e=a129_0xe61cf,_0x38b082={};_0x38b082[_0x36e04e(0x18b)]=function(_0x5bfb38,_0x3a61c2){return _0x5bfb38!==_0x3a61c2;},_0x38b082[_0x36e04e(0x189)]=function(_0x4538b4,_0x46a9ac){return _0x4538b4+_0x46a9ac;},_0x38b082['Hpnku']=_0x36e04e(0x145);const _0x3194e5=_0x38b082;if(!this[_0x36e04e(0x12c)])return;try{const _0x4c0ea6=await this[_0x36e04e(0x127)]();_0x3194e5[_0x36e04e(0x18b)](_0x4c0ea6,this[_0x36e04e(0x1a1)][_0x36e04e(0x125)])&&(logger['debug']('['+TAG+_0x36e04e(0x14d)+_0x4c0ea6+_0x36e04e(0x171)+this[_0x36e04e(0x1a1)]['lastAPIFailedCount']+')'),this[_0x36e04e(0x1a1)][_0x36e04e(0x125)]=_0x4c0ea6);}catch(_0x3e6b9e){logger['error']('['+TAG+_0x36e04e(0x174)+_0x3e6b9e[_0x36e04e(0x13d)]+(_0x3e6b9e['stack']?_0x3194e5[_0x36e04e(0x189)](_0x3194e5['Hpnku'],_0x3e6b9e[_0x36e04e(0x192)]):''));}}async['startPolling'](){const _0x3e37af=a129_0xe61cf,_0x329df4={'MbeQe':function(_0x434584,_0x25a37f,_0x437351){return _0x434584(_0x25a37f,_0x437351);}};this[_0x3e37af(0x11c)]&&this['stopPolling'](),this[_0x3e37af(0x12c)]&&(await this['_pollFailedTests'](),this['pollingInterval']=_0x329df4[_0x3e37af(0x12b)](setInterval,async()=>{const _0x420fb5=_0x3e37af;await this[_0x420fb5(0x157)]();},POLLING_INTERVAL),logger[_0x3e37af(0x136)]('['+TAG+_0x3e37af(0x124)+POLLING_INTERVAL+'ms.'));}[a129_0xe61cf(0x120)](){const _0x29fbf9=a129_0xe61cf,_0x316a80={'utNhB':function(_0x17ee9e,_0x2c9efe){return _0x17ee9e(_0x2c9efe);}};this['pollingInterval']&&(_0x316a80['utNhB'](clearInterval,this['pollingInterval']),this[_0x29fbf9(0x11c)]=null,logger['debug']('['+TAG+']\x20Polling\x20stopped.'));}async[a129_0xe61cf(0x130)](){const _0x2d7fda=a129_0xe61cf,_0x4ed1ae={};_0x4ed1ae['fHiIN']=function(_0x1cb304,_0x431f5b){return _0x1cb304===_0x431f5b;},_0x4ed1ae[_0x2d7fda(0x13f)]=function(_0x3c24af,_0x2f80fb){return _0x3c24af===_0x2f80fb;},_0x4ed1ae[_0x2d7fda(0x16b)]=function(_0x3d7612,_0x366689){return _0x3d7612<=_0x366689;},_0x4ed1ae[_0x2d7fda(0x140)]=function(_0x46e69f,_0x23a2ff){return _0x46e69f+_0x23a2ff;},_0x4ed1ae[_0x2d7fda(0x16d)]=_0x2d7fda(0x145),_0x4ed1ae['jJzxI']=function(_0x2c954d,_0x320120){return _0x2c954d!==_0x320120;},_0x4ed1ae['kfDUH']=function(_0x4cb75f,_0x59a611){return _0x4cb75f>=_0x59a611;},_0x4ed1ae['EpqNP']=function(_0x456675,_0x436e04){return _0x456675+_0x436e04;},_0x4ed1ae[_0x2d7fda(0x18d)]=function(_0x478a78,_0x21862a){return _0x478a78>=_0x21862a;};const _0x16f813=_0x4ed1ae,{failureThresholdCount:_0x7f3ea3}=this['failFastConfig'];if(_0x16f813['fHiIN'](_0x7f3ea3,null)||_0x16f813[_0x2d7fda(0x13f)](_0x7f3ea3,undefined)||_0x16f813[_0x2d7fda(0x16b)](_0x7f3ea3,0x0))return logger[_0x2d7fda(0x136)]('['+TAG+_0x2d7fda(0x196)),![];if(this[_0x2d7fda(0x12c)]){try{if(fs[_0x2d7fda(0x198)](this['failFastActiveMarkerPath']))return logger[_0x2d7fda(0x136)]('['+TAG+_0x2d7fda(0x11d)),!this[_0x2d7fda(0x1a1)][_0x2d7fda(0x126)]&&(this['state'][_0x2d7fda(0x126)]=!![]),this['stopPolling'](),!![];}catch(_0x332abe){logger[_0x2d7fda(0x176)]('['+TAG+_0x2d7fda(0x14f)+_0x332abe['message']+(_0x332abe[_0x2d7fda(0x192)]?_0x16f813[_0x2d7fda(0x140)](_0x16f813[_0x2d7fda(0x16d)],_0x332abe[_0x2d7fda(0x192)]):''));}const _0x4286c6=_0x16f813['jJzxI'](this[_0x2d7fda(0x1a1)][_0x2d7fda(0x125)],undefined)?this[_0x2d7fda(0x1a1)][_0x2d7fda(0x125)]:0x0;if(_0x16f813[_0x2d7fda(0x16c)](_0x4286c6,_0x7f3ea3)){logger[_0x2d7fda(0x12e)]('['+TAG+_0x2d7fda(0x12a)+_0x4286c6+_0x2d7fda(0x11f)+_0x7f3ea3+'.');try{fs[_0x2d7fda(0x161)](this['failFastActiveMarkerPath'],new Date()['toISOString']()),logger[_0x2d7fda(0x136)]('['+TAG+_0x2d7fda(0x160)+this[_0x2d7fda(0x19f)]),this[_0x2d7fda(0x1a1)][_0x2d7fda(0x126)]=!![];}catch(_0x5c3896){logger[_0x2d7fda(0x176)]('['+TAG+_0x2d7fda(0x17d)+_0x5c3896[_0x2d7fda(0x13d)]+(_0x5c3896[_0x2d7fda(0x192)]?_0x16f813['EpqNP'](_0x16f813[_0x2d7fda(0x16d)],_0x5c3896[_0x2d7fda(0x192)]):''));}return this[_0x2d7fda(0x120)](),!![];}}else{let _0x4366dc;try{_0x4366dc=await this['fileHelper'][_0x2d7fda(0x191)]();if(!_0x4366dc)return logger['warn']('['+TAG+_0x2d7fda(0x132)),![];}catch(_0x1991c2){return logger[_0x2d7fda(0x176)]('['+TAG+_0x2d7fda(0x168)+_0x1991c2[_0x2d7fda(0x13d)]+(_0x1991c2['stack']?_0x16f813['mXTCA'](_0x16f813[_0x2d7fda(0x16d)],_0x1991c2[_0x2d7fda(0x192)]):'')),![];}this[_0x2d7fda(0x1a1)]={...this[_0x2d7fda(0x123)](),..._0x4366dc,'uniqueFailedTests':new Set(_0x4366dc['uniqueFailedTests']||[])};if(this[_0x2d7fda(0x1a1)][_0x2d7fda(0x126)])return logger[_0x2d7fda(0x136)]('['+TAG+_0x2d7fda(0x14b)),!![];const _0x4af08e=this['state'][_0x2d7fda(0x193)],_0x4a5fb6=_0x4af08e[_0x2d7fda(0x133)];if(_0x16f813[_0x2d7fda(0x18d)](_0x4a5fb6,_0x7f3ea3)){try{logger['info']('['+TAG+_0x2d7fda(0x11e)+_0x4a5fb6+',\x20threshold:\x20'+_0x7f3ea3+'.'),this[_0x2d7fda(0x1a1)][_0x2d7fda(0x126)]=!![];}catch(_0x2c2388){logger[_0x2d7fda(0x176)]('['+TAG+_0x2d7fda(0x15a)+_0x2c2388[_0x2d7fda(0x13d)]+(_0x2c2388[_0x2d7fda(0x192)]?_0x16f813[_0x2d7fda(0x140)](_0x16f813[_0x2d7fda(0x16d)],_0x2c2388[_0x2d7fda(0x192)]):''));}return!![];}}return![];}async[a129_0xe61cf(0x13c)](){const _0x33f889=a129_0xe61cf,_0x170734={};_0x170734[_0x33f889(0x15d)]=function(_0x34d660,_0x671ac5){return _0x34d660+_0x671ac5;},_0x170734['qYTuK']=_0x33f889(0x145);const _0x32a12d=_0x170734;this['stopPolling']();if(this[_0x33f889(0x12c)])logger['debug']('['+TAG+'_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.');else try{const _0x1a901={...this[_0x33f889(0x1a1)],'uniqueFailedTests':Array[_0x33f889(0x17b)](this['state'][_0x33f889(0x193)]||new Set())};await this[_0x33f889(0x141)]['writeState'](_0x1a901),logger[_0x33f889(0x136)]('['+TAG+_0x33f889(0x199));}catch(_0x4eb551){logger[_0x33f889(0x176)]('['+TAG+_0x33f889(0x186)+_0x4eb551[_0x33f889(0x13d)]+(_0x4eb551[_0x33f889(0x192)]?_0x32a12d[_0x33f889(0x15d)](_0x32a12d[_0x33f889(0x19b)],_0x4eb551[_0x33f889(0x192)]):''));}}}module[a129_0xe61cf(0x194)]=FailFastManager;
|
|
1
|
+
const a131_0x4d65f6=a131_0x1cb4;function a131_0x1cb4(_0x220dca,_0x34a153){const _0xb1e8bd=a131_0xb1e8();return a131_0x1cb4=function(_0x1cb467,_0x4ab3e8){_0x1cb467=_0x1cb467-0x7d;let _0x280ecb=_0xb1e8bd[_0x1cb467];return _0x280ecb;},a131_0x1cb4(_0x220dca,_0x34a153);}(function(_0x4d3f6a,_0x110ee3){const _0x28166d=a131_0x1cb4,_0x145dcd=_0x4d3f6a();while(!![]){try{const _0x373d19=parseInt(_0x28166d(0x87))/0x1*(-parseInt(_0x28166d(0xc3))/0x2)+parseInt(_0x28166d(0xb0))/0x3*(-parseInt(_0x28166d(0x92))/0x4)+-parseInt(_0x28166d(0x83))/0x5*(parseInt(_0x28166d(0xe1))/0x6)+parseInt(_0x28166d(0x8c))/0x7+-parseInt(_0x28166d(0xb7))/0x8+-parseInt(_0x28166d(0xe2))/0x9+parseInt(_0x28166d(0xe7))/0xa;if(_0x373d19===_0x110ee3)break;else _0x145dcd['push'](_0x145dcd['shift']());}catch(_0x507b24){_0x145dcd['push'](_0x145dcd['shift']());}}}(a131_0xb1e8,0x54a77));const fs=require('fs'),path=require(a131_0x4d65f6(0x105)),FileHelper=require('./fileHelper'),RequestUtils=require(a131_0x4d65f6(0xb5)),logger=require(a131_0x4d65f6(0xde))[a131_0x4d65f6(0xf9)],POLLING_INTERVAL=0x2710,TAG='FailFastManager';class FailFastManager{constructor(_0x5e21bc,_0x150d26,_0x21d642){const _0x1d1250=a131_0x4d65f6,_0x500042={};_0x500042[_0x1d1250(0xb4)]=function(_0x4e2521,_0x9be8bf){return _0x4e2521+_0x9be8bf;},_0x500042[_0x1d1250(0xcb)]=_0x1d1250(0xbc),_0x500042[_0x1d1250(0xf4)]=function(_0x460c03,_0x48dcbc){return _0x460c03||_0x48dcbc;},_0x500042[_0x1d1250(0x82)]=_0x1d1250(0x102),_0x500042[_0x1d1250(0xd6)]=_0x1d1250(0xd9),_0x500042['ftAFm']=_0x1d1250(0xfe);const _0x4e928e=_0x500042;this[_0x1d1250(0xdf)]=_0x4e928e[_0x1d1250(0xf4)](_0x5e21bc,{}),this[_0x1d1250(0xc8)]=_0x150d26,this[_0x1d1250(0xff)]=_0x21d642,this[_0x1d1250(0xf6)]=!!(process[_0x1d1250(0xc5)][_0x1d1250(0x89)]&&process[_0x1d1250(0xc5)][_0x1d1250(0x9f)]&&process['env'][_0x1d1250(0x86)]);const _0x42ada6=this[_0x1d1250(0xdf)][_0x1d1250(0xe6)];this[_0x1d1250(0xd8)]=path[_0x1d1250(0xcc)](_0x42ada6,_0x4e928e[_0x1d1250(0x82)]),this['lockFilePath']=path[_0x1d1250(0xcc)](_0x42ada6,_0x4e928e[_0x1d1250(0xd6)]),this['failFastActiveMarkerPath']=path[_0x1d1250(0xcc)](_0x42ada6,_0x4e928e[_0x1d1250(0xb6)]),this[_0x1d1250(0xaa)]=new FileHelper(this[_0x1d1250(0xdf)],this[_0x1d1250(0xd8)],this[_0x1d1250(0xc7)],this[_0x1d1250(0xed)]()),this[_0x1d1250(0xab)]=this[_0x1d1250(0xed)](),this['pollingInterval']=null,this['isCIMode']&&(this[_0x1d1250(0xea)]=new Set()),this[_0x1d1250(0x96)]()[_0x1d1250(0x85)](_0xe1e3ed=>{const _0x5cb62c=_0x1d1250;logger['error']('['+TAG+_0x5cb62c(0xc1)+_0xe1e3ed[_0x5cb62c(0xb3)]+(_0xe1e3ed[_0x5cb62c(0xd3)]?_0x4e928e[_0x5cb62c(0xb4)](_0x4e928e['SSGPM'],_0xe1e3ed['stack']):'')),this[_0x5cb62c(0xab)]=this['_getDefaultState']();}),this[_0x1d1250(0xf6)]&&this['startPolling'](),logger[_0x1d1250(0x7f)]('['+TAG+_0x1d1250(0xe8)+this[_0x1d1250(0xdf)][_0x1d1250(0xa5)]+_0x1d1250(0xef)+this[_0x1d1250(0xf6)]);}[a131_0x4d65f6(0xed)](){const _0x1bc362={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x1bc362;}async['_initializeStateFromFile'](){const _0x46ea39=a131_0x4d65f6,_0xe1a7e1={};_0xe1a7e1[_0x46ea39(0x9a)]=function(_0x26bfd8,_0x252e9f){return _0x26bfd8+_0x252e9f;},_0xe1a7e1['cSNBG']=_0x46ea39(0xbc),_0xe1a7e1[_0x46ea39(0xa0)]=function(_0x3608a0,_0xb43559){return _0x3608a0+_0xb43559;};const _0x320610=_0xe1a7e1;if(this[_0x46ea39(0xf6)])try{fs[_0x46ea39(0xda)](this[_0x46ea39(0xf8)])&&(this['state'][_0x46ea39(0x104)]=!![],logger[_0x46ea39(0x7f)]('['+TAG+_0x46ea39(0xdc)));}catch(_0x380931){logger[_0x46ea39(0xf2)]('['+TAG+_0x46ea39(0x88)+_0x380931[_0x46ea39(0xb3)]+(_0x380931[_0x46ea39(0xd3)]?_0x320610[_0x46ea39(0x9a)](_0x320610[_0x46ea39(0xa4)],_0x380931['stack']):''));}else try{const _0x32869c=await this[_0x46ea39(0xaa)][_0x46ea39(0x9c)]();if(_0x32869c)this['state']={...this['_getDefaultState'](),..._0x32869c,'uniqueFailedTests':new Set(_0x32869c[_0x46ea39(0xe5)]||[])},logger[_0x46ea39(0x7f)]('['+TAG+'_Local]\x20State\x20initialized\x20from\x20file.');else{logger['debug']('['+TAG+_0x46ea39(0x84));const _0x507689=this[_0x46ea39(0xed)](),_0x481428={..._0x507689,'uniqueFailedTests':Array[_0x46ea39(0xa1)](_0x507689[_0x46ea39(0xe5)])};await this[_0x46ea39(0xaa)][_0x46ea39(0x8a)](_0x481428),this['state']=_0x507689;}}catch(_0x1299a8){logger[_0x46ea39(0x7f)]('['+TAG+_0x46ea39(0x100)+_0x1299a8['message']+(_0x1299a8[_0x46ea39(0xd3)]?_0x320610[_0x46ea39(0xa0)](_0x320610[_0x46ea39(0xa4)],_0x1299a8[_0x46ea39(0xd3)]):'')),this[_0x46ea39(0xab)]=this[_0x46ea39(0xed)]();}}async[a131_0x4d65f6(0xd0)](_0x50fa38,_0x5cc827){const _0x57917d=a131_0x4d65f6,_0x5daded={};_0x5daded[_0x57917d(0xe9)]=function(_0x3e6f9f,_0x1dc589){return _0x3e6f9f>_0x1dc589;},_0x5daded[_0x57917d(0xe4)]=function(_0x3e2aff,_0x31d70b){return _0x3e2aff>_0x31d70b;},_0x5daded[_0x57917d(0xf5)]=_0x57917d(0xbe),_0x5daded['AjlIu']=_0x57917d(0xfb),_0x5daded[_0x57917d(0x8f)]=function(_0x5a0492,_0x269dc8){return _0x5a0492+_0x269dc8;},_0x5daded[_0x57917d(0x93)]='\x0aStack:\x20',_0x5daded[_0x57917d(0xad)]=function(_0x1db508,_0x5a8a05){return _0x1db508||_0x5a8a05;},_0x5daded[_0x57917d(0xae)]=function(_0x2222aa,_0x304c87){return _0x2222aa+_0x304c87;};const _0x262f36=_0x5daded;if(this[_0x57917d(0xf6)])this[_0x57917d(0xab)][_0x57917d(0xac)]+=0x1,_0x5cc827&&_0x262f36[_0x57917d(0xe9)](_0x5cc827[_0x57917d(0xa6)],0x0)&&(!this[_0x57917d(0xea)][_0x57917d(0xf7)](_0x50fa38)&&(await this[_0x57917d(0xf3)](_0x50fa38),this[_0x57917d(0xea)]['add'](_0x50fa38)));else try{const _0x374bcf={'fullName':_0x50fa38,'status':_0x5cc827&&_0x262f36[_0x57917d(0xe4)](_0x5cc827['length'],0x0)?_0x262f36[_0x57917d(0xf5)]:_0x262f36[_0x57917d(0xb1)]},_0x29ab54=await this[_0x57917d(0xaa)][_0x57917d(0xfa)](_0x374bcf);this['state']={...this['_getDefaultState'](),..._0x29ab54['newState'],'uniqueFailedTests':new Set(_0x29ab54[_0x57917d(0x103)]['uniqueFailedTests']||[])};}catch(_0x589dae){logger[_0x57917d(0xf2)]('['+TAG+_0x57917d(0x9e)+_0x589dae['message']+(_0x589dae[_0x57917d(0xd3)]?_0x262f36[_0x57917d(0x8f)](_0x262f36[_0x57917d(0x93)],_0x589dae[_0x57917d(0xd3)]):''));try{const _0x684021=await this[_0x57917d(0xaa)]['readState']();this[_0x57917d(0xab)]={...this[_0x57917d(0xed)](),..._0x262f36[_0x57917d(0xad)](_0x684021,{}),'uniqueFailedTests':new Set(_0x684021?_0x684021[_0x57917d(0xe5)]||[]:[])},logger['debug']('['+TAG+_0x57917d(0xaf));}catch(_0xe330bb){logger[_0x57917d(0xf2)]('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0xe330bb[_0x57917d(0xb3)]+(_0xe330bb[_0x57917d(0xd3)]?_0x262f36[_0x57917d(0xae)](_0x262f36['lAHAx'],_0xe330bb[_0x57917d(0xd3)]):'')),this[_0x57917d(0xab)]=this[_0x57917d(0xed)]();}}}async[a131_0x4d65f6(0xf3)](_0x336da7){const _0x107505=a131_0x4d65f6,_0x31d98d={};_0x31d98d['ZTylK']=function(_0x238a19,_0x2b8f78){return _0x238a19+_0x2b8f78;},_0x31d98d['bHFpz']=_0x107505(0xbc);const _0x5bddc1=_0x31d98d;if(!this[_0x107505(0xf6)]||!_0x336da7)return;try{logger[_0x107505(0x7f)]('['+TAG+'_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20'+_0x336da7);const _0x14dbe3={};_0x14dbe3[_0x107505(0xc8)]=this[_0x107505(0xc8)],_0x14dbe3[_0x107505(0xff)]=this[_0x107505(0xff)],_0x14dbe3[_0x107505(0xd1)]=[_0x336da7],_0x14dbe3[_0x107505(0x7d)]=process[_0x107505(0xc5)][_0x107505(0x89)],await RequestUtils['putFailedTests'](_0x14dbe3);}catch(_0x221384){logger[_0x107505(0xf2)]('['+TAG+_0x107505(0xbd)+_0x336da7+_0x107505(0xb8)+_0x221384['message']+(_0x221384[_0x107505(0xd3)]?_0x5bddc1[_0x107505(0xce)](_0x5bddc1[_0x107505(0xc4)],_0x221384[_0x107505(0xd3)]):''));}}async['_fetchAPIFailedCount'](){const _0x6bf60c=a131_0x4d65f6,_0x5eb650={};_0x5eb650['Rgari']=function(_0x53620d,_0x5595e5){return _0x53620d===_0x5595e5;},_0x5eb650[_0x6bf60c(0x81)]=_0x6bf60c(0xec),_0x5eb650[_0x6bf60c(0xd2)]=function(_0x5cde79,_0x3c8eba){return _0x5cde79+_0x3c8eba;},_0x5eb650['jZZQJ']='\x0aStack:\x20',_0x5eb650[_0x6bf60c(0x9d)]=function(_0x5945ea,_0x4301b0){return _0x5945ea!==_0x4301b0;};const _0x3551c2=_0x5eb650;if(!this['isCIMode'])return 0x0;try{const _0x5bf07b={};_0x5bf07b['buildName']=this['buildName'],_0x5bf07b[_0x6bf60c(0xff)]=this[_0x6bf60c(0xff)],_0x5bf07b[_0x6bf60c(0x7d)]=process[_0x6bf60c(0xc5)][_0x6bf60c(0x89)];const _0x459630=await RequestUtils[_0x6bf60c(0xb9)](_0x5bf07b);return logger[_0x6bf60c(0x7f)]('['+TAG+_0x6bf60c(0x8e)+_0x459630),_0x3551c2[_0x6bf60c(0xd4)](typeof _0x459630,_0x3551c2[_0x6bf60c(0x81)])?_0x459630:0x0;}catch(_0x1ee84b){return logger[_0x6bf60c(0xf2)]('['+TAG+_0x6bf60c(0x98)+_0x1ee84b[_0x6bf60c(0xb3)]+(_0x1ee84b['stack']?_0x3551c2[_0x6bf60c(0xd2)](_0x3551c2[_0x6bf60c(0xa8)],_0x1ee84b[_0x6bf60c(0xd3)]):'')),_0x3551c2[_0x6bf60c(0x9d)](this['state'][_0x6bf60c(0xbb)],undefined)?this['state']['lastAPIFailedCount']:0x0;}}async['_pollFailedTests'](){const _0x32941a=a131_0x4d65f6,_0x1e8a4a={};_0x1e8a4a[_0x32941a(0xeb)]=function(_0xb72aaa,_0x3439cf){return _0xb72aaa!==_0x3439cf;},_0x1e8a4a['obFqb']=function(_0x447a59,_0x592ae8){return _0x447a59+_0x592ae8;},_0x1e8a4a[_0x32941a(0xc6)]=_0x32941a(0xbc);const _0xcdbda3=_0x1e8a4a;if(!this['isCIMode'])return;try{const _0x46656f=await this[_0x32941a(0x80)]();_0xcdbda3[_0x32941a(0xeb)](_0x46656f,this[_0x32941a(0xab)][_0x32941a(0xbb)])&&(logger[_0x32941a(0x7f)]('['+TAG+_0x32941a(0x99)+_0x46656f+_0x32941a(0xa7)+this['state'][_0x32941a(0xbb)]+')'),this[_0x32941a(0xab)]['lastAPIFailedCount']=_0x46656f);}catch(_0x1dcd86){logger[_0x32941a(0xf2)]('['+TAG+_0x32941a(0xf1)+_0x1dcd86[_0x32941a(0xb3)]+(_0x1dcd86[_0x32941a(0xd3)]?_0xcdbda3[_0x32941a(0xa3)](_0xcdbda3[_0x32941a(0xc6)],_0x1dcd86[_0x32941a(0xd3)]):''));}}async[a131_0x4d65f6(0x91)](){const _0x2e50d5=a131_0x4d65f6,_0x41e1f3={'OuXkC':function(_0x3ba2c7,_0x33a490,_0x4a3ac0){return _0x3ba2c7(_0x33a490,_0x4a3ac0);}};this[_0x2e50d5(0xcf)]&&this['stopPolling'](),this[_0x2e50d5(0xf6)]&&(await this[_0x2e50d5(0x8b)](),this[_0x2e50d5(0xcf)]=_0x41e1f3[_0x2e50d5(0xc9)](setInterval,async()=>{const _0x348c26=_0x2e50d5;await this[_0x348c26(0x8b)]();},POLLING_INTERVAL),logger[_0x2e50d5(0x7f)]('['+TAG+_0x2e50d5(0xbf)+POLLING_INTERVAL+'ms.'));}[a131_0x4d65f6(0xfc)](){const _0x15de9b=a131_0x4d65f6,_0x49dee6={'CTRIw':function(_0x35c7ae,_0x1a147d){return _0x35c7ae(_0x1a147d);}};this[_0x15de9b(0xcf)]&&(_0x49dee6[_0x15de9b(0xb2)](clearInterval,this['pollingInterval']),this[_0x15de9b(0xcf)]=null,logger[_0x15de9b(0x7f)]('['+TAG+']\x20Polling\x20stopped.'));}async[a131_0x4d65f6(0xca)](){const _0x450bff=a131_0x4d65f6,_0x158ae2={};_0x158ae2[_0x450bff(0xba)]=function(_0x570409,_0x325cb0){return _0x570409===_0x325cb0;},_0x158ae2[_0x450bff(0x8d)]=function(_0x35d296,_0x370c55){return _0x35d296===_0x370c55;},_0x158ae2['wyiyo']=function(_0x4e3b9a,_0x568fce){return _0x4e3b9a<=_0x568fce;},_0x158ae2[_0x450bff(0xe3)]=function(_0x5c7d9b,_0x4f19ca){return _0x5c7d9b+_0x4f19ca;},_0x158ae2[_0x450bff(0xee)]=_0x450bff(0xbc),_0x158ae2['ViUfQ']=function(_0x27fd9e,_0x2cf15c){return _0x27fd9e!==_0x2cf15c;},_0x158ae2[_0x450bff(0x97)]=function(_0xa61f1,_0x2d136d){return _0xa61f1>=_0x2d136d;};const _0x16f299=_0x158ae2,{failureThresholdCount:_0x1e9b87}=this['failFastConfig'];if(_0x16f299[_0x450bff(0xba)](_0x1e9b87,null)||_0x16f299['PatMx'](_0x1e9b87,undefined)||_0x16f299[_0x450bff(0xe0)](_0x1e9b87,0x0))return logger[_0x450bff(0x7f)]('['+TAG+']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.'),![];if(this['isCIMode']){try{if(fs[_0x450bff(0xda)](this[_0x450bff(0xf8)]))return logger[_0x450bff(0x7f)]('['+TAG+_0x450bff(0x7e)),!this['state'][_0x450bff(0x104)]&&(this['state'][_0x450bff(0x104)]=!![]),this[_0x450bff(0xfc)](),!![];}catch(_0x41e472){logger[_0x450bff(0xf2)]('['+TAG+_0x450bff(0x88)+_0x41e472[_0x450bff(0xb3)]+(_0x41e472['stack']?_0x16f299['pdJjD'](_0x16f299[_0x450bff(0xee)],_0x41e472[_0x450bff(0xd3)]):''));}const _0x1348c9=_0x16f299[_0x450bff(0xa9)](this['state'][_0x450bff(0xbb)],undefined)?this['state'][_0x450bff(0xbb)]:0x0;if(_0x16f299[_0x450bff(0x97)](_0x1348c9,_0x1e9b87)){logger[_0x450bff(0x95)]('['+TAG+_0x450bff(0xc0)+_0x1348c9+_0x450bff(0xc2)+_0x1e9b87+'.');try{fs[_0x450bff(0xcd)](this[_0x450bff(0xf8)],new Date()[_0x450bff(0xdb)]()),logger[_0x450bff(0x7f)]('['+TAG+_0x450bff(0xf0)+this[_0x450bff(0xf8)]),this[_0x450bff(0xab)][_0x450bff(0x104)]=!![];}catch(_0x343c7e){logger[_0x450bff(0xf2)]('['+TAG+'_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20'+_0x343c7e['message']+(_0x343c7e[_0x450bff(0xd3)]?_0x16f299[_0x450bff(0xe3)](_0x16f299[_0x450bff(0xee)],_0x343c7e[_0x450bff(0xd3)]):''));}return this['stopPolling'](),!![];}}else{let _0x3f2ff8;try{_0x3f2ff8=await this[_0x450bff(0xaa)]['readState']();if(!_0x3f2ff8)return logger[_0x450bff(0xfd)]('['+TAG+_0x450bff(0x9b)),![];}catch(_0x503ebc){return logger[_0x450bff(0xf2)]('['+TAG+'_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20'+_0x503ebc[_0x450bff(0xb3)]+(_0x503ebc[_0x450bff(0xd3)]?_0x16f299[_0x450bff(0xe3)](_0x16f299[_0x450bff(0xee)],_0x503ebc[_0x450bff(0xd3)]):'')),![];}this[_0x450bff(0xab)]={...this[_0x450bff(0xed)](),..._0x3f2ff8,'uniqueFailedTests':new Set(_0x3f2ff8[_0x450bff(0xe5)]||[])};if(this['state'][_0x450bff(0x104)])return logger[_0x450bff(0x7f)]('['+TAG+'_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.'),!![];const _0x2e4d3a=this[_0x450bff(0xab)][_0x450bff(0xe5)],_0x15de6d=_0x2e4d3a[_0x450bff(0xd5)];if(_0x16f299[_0x450bff(0x97)](_0x15de6d,_0x1e9b87)){try{logger['info']('['+TAG+'_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x15de6d+_0x450bff(0xc2)+_0x1e9b87+'.'),this[_0x450bff(0xab)][_0x450bff(0x104)]=!![];}catch(_0x34104f){logger[_0x450bff(0xf2)]('['+TAG+_0x450bff(0x94)+_0x34104f[_0x450bff(0xb3)]+(_0x34104f[_0x450bff(0xd3)]?_0x16f299[_0x450bff(0xe3)](_0x16f299[_0x450bff(0xee)],_0x34104f[_0x450bff(0xd3)]):''));}return!![];}}return![];}async['cleanup'](){const _0x5b414e=a131_0x4d65f6,_0x4f519e={};_0x4f519e[_0x5b414e(0x101)]=function(_0x4d3b3e,_0x47777e){return _0x4d3b3e+_0x47777e;},_0x4f519e[_0x5b414e(0x90)]=_0x5b414e(0xbc);const _0x31d065=_0x4f519e;this['stopPolling']();if(this[_0x5b414e(0xf6)])logger[_0x5b414e(0x7f)]('['+TAG+_0x5b414e(0xd7));else try{const _0x226f06={...this['state'],'uniqueFailedTests':Array[_0x5b414e(0xa1)](this[_0x5b414e(0xab)]['uniqueFailedTests']||new Set())};await this[_0x5b414e(0xaa)]['writeState'](_0x226f06),logger[_0x5b414e(0x7f)]('['+TAG+_0x5b414e(0xdd));}catch(_0x2c3c21){logger['error']('['+TAG+'_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20'+_0x2c3c21[_0x5b414e(0xb3)]+(_0x2c3c21[_0x5b414e(0xd3)]?_0x31d065['JlyEt'](_0x31d065[_0x5b414e(0x90)],_0x2c3c21['stack']):''));}}}module[a131_0x4d65f6(0xa2)]=FailFastManager;function a131_0xb1e8(){const _0x267247=['_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','stateFilePath','failFastState.lock','existsSync','toISOString','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','../logger','failFastConfig','wyiyo','449058oYcmXm','5882985hBaACw','pdJjD','SIhUe','uniqueFailedTests','workingDir','13312090Gpzpww',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','jKpRa','reportedFailuresToAPI','bZIYq','number','_getDefaultState','JsBFR',',\x20CI\x20Mode:\x20','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','_CI]\x20Error\x20during\x20polling\x20logic:\x20','error','_sendFailedTestsToAPI','VaEYk','qECPd','isCIMode','has','failFastActiveMarkerPath','winstonLogger','recordTestResult','passed','stopPolling','warn','failFast.active','projectName','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','JlyEt','failFastState.json','newState','failFastActive','path','buildRunIdentifier','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','debug','_fetchAPIFailedCount','jcBIH','ZQcYo','25PqyijE','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','catch','BROWSERSTACK_TOTAL_NODE_COUNT','1wjmRYm','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','BROWSERSTACK_BUILD_RUN_IDENTIFIER','writeState','_pollFailedTests','4667845WVliEW','PatMx','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','fLjHo','vaeMK','startPolling','4IPNdTC','lAHAx','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','info','_initializeStateFromFile','mfmqv','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','_CI]\x20API\x20failed\x20count\x20updated:\x20','PlZLB','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','readState','Edphm','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','BROWSERSTACK_NODE_INDEX','MWHvT','from','exports','obFqb','cSNBG','failureThresholdCount','length','\x20(was\x20','jZZQJ','ViUfQ','fileHelper','state','totalTests','MDgld','pxpIc','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','383706rfbcKV','AjlIu','CTRIw','message','MGKfI','./requestUtils','ftAFm','424144wUGXcn','\x20to\x20API:\x20','getFailedTestsCount','OHpyM','lastAPIFailedCount','\x0aStack:\x20','_CI]\x20Error\x20sending\x20failed\x20test\x20','failed','_CI]\x20Polling\x20started\x20with\x20interval:\x20','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20',',\x20threshold:\x20','885002yOwKMQ','bHFpz','env','LeirD','lockFilePath','buildName','OuXkC','shouldFailFast','SSGPM','join','writeFileSync','ZTylK','pollingInterval','onTestDone','failedTests','BCgTB','stack','Rgari','size','RhoEq'];a131_0xb1e8=function(){return _0x267247;};return a131_0xb1e8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a132_0x1e7f1b=a132_0x2bd6;(function(_0x24e8ec,_0x1d4cd6){const _0x5d89dc=a132_0x2bd6,_0xfded7e=_0x24e8ec();while(!![]){try{const _0x58a2b0=parseInt(_0x5d89dc(0xf0))/0x1+-parseInt(_0x5d89dc(0xe6))/0x2+-parseInt(_0x5d89dc(0xd6))/0x3*(parseInt(_0x5d89dc(0xc6))/0x4)+-parseInt(_0x5d89dc(0xbd))/0x5*(parseInt(_0x5d89dc(0xdd))/0x6)+-parseInt(_0x5d89dc(0xf1))/0x7+parseInt(_0x5d89dc(0xbc))/0x8*(parseInt(_0x5d89dc(0xd7))/0x9)+parseInt(_0x5d89dc(0xcb))/0xa;if(_0x58a2b0===_0x1d4cd6)break;else _0xfded7e['push'](_0xfded7e['shift']());}catch(_0x362ed8){_0xfded7e['push'](_0xfded7e['shift']());}}}(a132_0x5865,0x23dba));function a132_0x2bd6(_0x1228ca,_0x1da634){const _0x5865d0=a132_0x5865();return a132_0x2bd6=function(_0x2bd68d,_0x4987e4){_0x2bd68d=_0x2bd68d-0xbc;let _0xdaf636=_0x5865d0[_0x2bd68d];return _0xdaf636;},a132_0x2bd6(_0x1228ca,_0x1da634);}const fs=require('fs'),logger=require('../logger')[a132_0x1e7f1b(0xee)],TAG='FailFastFileHelper';class FileHelper{constructor(_0x436a02,_0x3cd6f4,_0x4716eb,_0x2ab74f){const _0x13f5cd=a132_0x1e7f1b,_0xfb8131={};_0xfb8131[_0x13f5cd(0xda)]=_0x13f5cd(0xf3),_0xfb8131[_0x13f5cd(0xef)]=_0x13f5cd(0xe3);const _0x4fbdba=_0xfb8131,_0x523cc3=_0x4fbdba[_0x13f5cd(0xda)]['split']('|');let _0x230d72=0x0;while(!![]){switch(_0x523cc3[_0x230d72++]){case'0':this[_0x13f5cd(0xf2)]=_0x3cd6f4;continue;case'1':this['defaultState']=_0x2ab74f;continue;case'2':if(!fs[_0x13f5cd(0xec)](this[_0x13f5cd(0xf2)]))try{fs[_0x13f5cd(0xe1)](this[_0x13f5cd(0xf2)],'{}',_0x4fbdba['wexRY']);}catch(_0xa764b7){logger[_0x13f5cd(0xe9)]('['+TAG+']\x20Error\x20creating\x20state\x20file:\x20'+_0xa764b7[_0x13f5cd(0xcc)]+'\x20'+_0xa764b7[_0x13f5cd(0xc0)]);}continue;case'3':this[_0x13f5cd(0xd2)]=_0x436a02;continue;case'4':this[_0x13f5cd(0xe0)]=_0x4716eb;continue;}break;}}async[a132_0x1e7f1b(0xe2)](){const _0x50de2f=a132_0x1e7f1b,_0x28e743={};_0x28e743[_0x50de2f(0xdb)]=function(_0x10d971,_0x30a050){return _0x10d971===_0x30a050;},_0x28e743[_0x50de2f(0xca)]=_0x50de2f(0xe4);const _0x47cf61=_0x28e743;let _0xbff1e1;try{return _0xbff1e1=fs[_0x50de2f(0xce)](this[_0x50de2f(0xe0)],'wx'),_0xbff1e1;}catch(_0x1857a0){if(_0x47cf61[_0x50de2f(0xdb)](_0x1857a0[_0x50de2f(0xed)],_0x47cf61[_0x50de2f(0xca)]))return null;throw _0x1857a0;}}async[a132_0x1e7f1b(0xd1)](_0x4f3b0b){const _0xfa0611=a132_0x1e7f1b;if(_0x4f3b0b)try{fs[_0xfa0611(0xe7)](_0x4f3b0b),fs['unlinkSync'](this['lockFilePath']);}catch(_0x46ffce){logger['error']('['+TAG+_0xfa0611(0xc9)+_0x46ffce[_0xfa0611(0xcc)]+'\x20'+_0x46ffce[_0xfa0611(0xc0)]);}}[a132_0x1e7f1b(0xc4)](){const _0x6aeb65=a132_0x1e7f1b,_0x2237c6={};_0x2237c6['SExpP']=_0x6aeb65(0xe3);const _0x12c275=_0x2237c6;try{const _0x490178=fs[_0x6aeb65(0xde)](this[_0x6aeb65(0xf2)],_0x12c275[_0x6aeb65(0xe5)]);return JSON[_0x6aeb65(0xbe)](_0x490178);}catch(_0x49a0bb){return logger[_0x6aeb65(0xe9)]('['+TAG+']\x20Error\x20reading\x20state\x20file:\x20'+_0x49a0bb[_0x6aeb65(0xcc)]+'\x20'+_0x49a0bb[_0x6aeb65(0xc0)]),null;}}async[a132_0x1e7f1b(0xe8)](_0x56c727){const _0x4d51ba=a132_0x1e7f1b,_0x1def7e={..._0x56c727,'uniqueFailedTests':Array[_0x4d51ba(0xbf)](_0x56c727[_0x4d51ba(0xd0)])?_0x56c727[_0x4d51ba(0xd0)]:Array['from'](_0x56c727[_0x4d51ba(0xd0)]||[])};try{fs[_0x4d51ba(0xe1)](this[_0x4d51ba(0xf2)],JSON[_0x4d51ba(0xc1)](_0x1def7e,null,0x2));}catch(_0x452c34){logger[_0x4d51ba(0xe9)]('['+TAG+_0x4d51ba(0xea)+_0x452c34[_0x4d51ba(0xcc)]+'\x20'+_0x452c34['stack']);throw _0x452c34;}}async['recordTestResult'](_0x316de2,_0x36279f){const _0xb3c21f=a132_0x1e7f1b,_0x3de0e4={};_0x3de0e4[_0xb3c21f(0xdc)]=function(_0x5945e9,_0x2352c6){return _0x5945e9!==_0x2352c6;},_0x3de0e4[_0xb3c21f(0xd5)]='function',_0x3de0e4[_0xb3c21f(0xcf)]=function(_0x3a869,_0x5c9ce6){return _0x3a869===_0x5c9ce6;},_0x3de0e4[_0xb3c21f(0xc2)]=_0xb3c21f(0xd3);const _0x28310b=_0x3de0e4,_0x5a71f9=await this['acquireLock']();if(!_0x5a71f9)return logger[_0xb3c21f(0xd8)]('['+TAG+_0xb3c21f(0xc7)),{'newState':this[_0xb3c21f(0xc4)]()||this[_0xb3c21f(0xd4)],'isNewFailure':![]};try{let _0x18e34c=this['readState']();!_0x18e34c&&(_0x18e34c=JSON['parse'](JSON['stringify'](this[_0xb3c21f(0xd4)])));if(!_0x18e34c['uniqueFailedTests']||_0x28310b[_0xb3c21f(0xdc)](typeof _0x18e34c[_0xb3c21f(0xd0)][Symbol['iterator']],_0x28310b[_0xb3c21f(0xd5)]))_0x18e34c[_0xb3c21f(0xd0)]=new Set();else Array[_0xb3c21f(0xbf)](_0x18e34c['uniqueFailedTests'])&&(_0x18e34c[_0xb3c21f(0xd0)]=new Set(_0x18e34c[_0xb3c21f(0xd0)]));_0x18e34c[_0xb3c21f(0xc5)]=_0x36279f;let _0x4195e6=![];_0x28310b[_0xb3c21f(0xcf)](_0x316de2['status'],_0x28310b[_0xb3c21f(0xc2)])&&(_0x18e34c[_0xb3c21f(0xeb)]+=0x1,!_0x18e34c[_0xb3c21f(0xd0)]['has'](_0x316de2['fullName'])&&(_0x18e34c['uniqueFailedTests'][_0xb3c21f(0xcd)](_0x316de2[_0xb3c21f(0xdf)]),_0x4195e6=!![]));await this[_0xb3c21f(0xe8)](_0x18e34c);const _0x33c5f3={};return _0x33c5f3[_0xb3c21f(0xc8)]=_0x18e34c,_0x33c5f3[_0xb3c21f(0xc3)]=_0x4195e6,_0x33c5f3;}finally{await this['releaseLock'](_0x5a71f9);}}async['updateAPIFailedCount'](_0x32d2a0){const _0x3fc4d8=a132_0x1e7f1b,_0x51d042=await this['acquireLock']();if(!_0x51d042)return logger['warn']('['+TAG+']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.'),this[_0x3fc4d8(0xc4)]()||this['defaultState'];try{let _0x135635=this[_0x3fc4d8(0xc4)]();return!_0x135635&&(_0x135635=JSON['parse'](JSON[_0x3fc4d8(0xc1)](this[_0x3fc4d8(0xd4)]))),_0x135635['lastAPIFailedCount']=_0x32d2a0,await this['writeState'](_0x135635),_0x135635;}finally{await this[_0x3fc4d8(0xd1)](_0x51d042);}}}function a132_0x5865(){const _0x265789=['qubQc','209238RpsAUB','333oiGFyx','warn','exports','qaUUh','umfvh','SBCai','894EvNdfs','readFileSync','fullName','lockFilePath','writeFileSync','acquireLock','utf8','EEXIST','SExpP','159308pWEYKc','closeSync','writeState','error',']\x20Error\x20writing\x20state\x20file:\x20','failedTests','existsSync','code','winstonLogger','wexRY','135410cSKSBn','1542240TfneTa','stateFilePath','3|0|4|1|2','9656ijSlEU','2085XNWFmR','parse','isArray','stack','stringify','QATdA','isNewFailure','readState','totalTests','4cYHCKu',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','newState',']\x20Error\x20releasing\x20lock:\x20','wEtBI','3986580aSCCwq','message','add','openSync','MFApa','uniqueFailedTests','releaseLock','failFastConfig','failed','defaultState'];a132_0x5865=function(){return _0x265789;};return a132_0x5865();}module[a132_0x1e7f1b(0xd9)]=FileHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a133_0xe0a2(){const _0x52c865=['run_previously_failed_first','6477784mpqhEd','trkQs','168endDAz','isAbortBuildOnFailureEnabled','3067288DAVmDe','testOrchestrationOptions','123689BhYmEw','isAbortBuildOnFailureSupported','getOrchestrationData','skipFlakyandFailed','550971mIKPga','_setSkipFlakyAndFailed','_setTestOrdering','9GqzhDu','_setRerunPreviouslyFailed','.txt','join','existsSync','7527310YJHSsc','202195syYwLq','getEnabled','getTestOrderingName','exports','getName','_setRunPreviouslyFailedFirst','name','BROWSERSTACK_TESTHUB_UUID','winstonLogger','failed_tests_','testOrdering','has','skip_failing_and_flaky','skipFlakyAndFailed','fjPwd','checkAbortBuildFileExists','getBuildStartData','enable','getRunPreviouslyFailedFirst','abort_build_on_failure','testOrderingEnabled','abortBuildOnFailure','getRerunPreviouslyFailed','disable','_instance','path','getInstance','abort_build_','enabled','runPreviouslyFailedFirst','retry_tests_on_failure','writeFailureToFile','appendFileSync','getFailureThreshold','19389790BHoAxm','rerun_previously_failed','toLowerCase','28OYzuKA','isRetryEnabled','config','getSkipFlakyAndFailed','tmpdir','rerunPreviouslyFailed','maxRetries','env'];a133_0xe0a2=function(){return _0x52c865;};return a133_0xe0a2();}function a133_0x3f60(_0x542872,_0x1edc6a){const _0xe0a2e8=a133_0xe0a2();return a133_0x3f60=function(_0x3f603a,_0x30d1bf){_0x3f603a=_0x3f603a-0x1d1;let _0x3551c9=_0xe0a2e8[_0x3f603a];return _0x3551c9;},a133_0x3f60(_0x542872,_0x1edc6a);}const a133_0x4a9c1e=a133_0x3f60;(function(_0x66d00a,_0x93bf18){const _0x47a49e=a133_0x3f60,_0x450f24=_0x66d00a();while(!![]){try{const _0x4a1129=parseInt(_0x47a49e(0x1f6))/0x1*(parseInt(_0x47a49e(0x1e7))/0x2)+-parseInt(_0x47a49e(0x1fa))/0x3+parseInt(_0x47a49e(0x1f0))/0x4+parseInt(_0x47a49e(0x203))/0x5*(parseInt(_0x47a49e(0x1f2))/0x6)+-parseInt(_0x47a49e(0x202))/0x7+-parseInt(_0x47a49e(0x1f4))/0x8+-parseInt(_0x47a49e(0x1fd))/0x9*(parseInt(_0x47a49e(0x1e4))/0xa);if(_0x4a1129===_0x93bf18)break;else _0x450f24['push'](_0x450f24['shift']());}catch(_0x1940e0){_0x450f24['push'](_0x450f24['shift']());}}}(a133_0xe0a2,0xdc377));const os=require('os'),path=require(a133_0x4a9c1e(0x1db)),fs=require('fs'),logger=require('../logger')[a133_0x4a9c1e(0x20b)],RETRY_TESTS_ON_FAILURE='retryTestsOnFailure',ABORT_BUILD_ON_FAILURE=a133_0x4a9c1e(0x1d7),RUN_PREVIOUSLY_FAILED_FIRST=a133_0x4a9c1e(0x1df),RERUN_PREVIOUSLY_FAILED=a133_0x4a9c1e(0x1ec),SKIP_FLAKY_AND_FAILED=a133_0x4a9c1e(0x1f9),ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set(['jest']);class TestOrdering{constructor(){const _0x13cc0c=a133_0x4a9c1e;this[_0x13cc0c(0x1de)]=![],this[_0x13cc0c(0x209)]=null;}['enable'](_0x5c76f8){this['enabled']=!![],this['name']=_0x5c76f8;}['disable'](){const _0x2997ab=a133_0x4a9c1e;this[_0x2997ab(0x1de)]=![],this[_0x2997ab(0x209)]=null;}['getEnabled'](){const _0x7bca33=a133_0x4a9c1e;return this[_0x7bca33(0x1de)];}[a133_0x4a9c1e(0x207)](){const _0x32ac98=a133_0x4a9c1e;return this[_0x32ac98(0x209)];}}class OrchestrationUtils{static [a133_0x4a9c1e(0x1da)]=null;constructor(_0x203509){const _0xd62cc9=a133_0x4a9c1e,_0x5e731f={};_0x5e731f[_0xd62cc9(0x1f1)]=function(_0x14addb,_0x2f5989){return _0x14addb||_0x2f5989;};const _0x4f7437=_0x5e731f;this['runPreviouslyFailedFirst']=![],this[_0xd62cc9(0x1ec)]=![],this[_0xd62cc9(0x210)]=![],this[_0xd62cc9(0x20d)]=new TestOrdering(),this[_0xd62cc9(0x1e9)]=_0x4f7437[_0xd62cc9(0x1f1)](_0x203509,{});const _0x131c0c=_0x203509&&_0x203509['testOrchestrationOptions']||{};this[_0xd62cc9(0x208)](_0x131c0c[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0xd62cc9(0x1fe)](_0x131c0c[RERUN_PREVIOUSLY_FAILED]||![]),this['_setSkipFlakyAndFailed'](_0x131c0c[SKIP_FLAKY_AND_FAILED]||![]);}static[a133_0x4a9c1e(0x1dc)](_0x4f91d1){const _0x952162=a133_0x4a9c1e;return!OrchestrationUtils[_0x952162(0x1da)]&&_0x4f91d1&&(OrchestrationUtils['_instance']=new OrchestrationUtils(_0x4f91d1)),OrchestrationUtils['_instance'];}['isRetryEnabled'](){const _0x242aaa=a133_0x4a9c1e,_0x1488b0=(this['config'][_0x242aaa(0x1f5)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x1488b0[_0x242aaa(0x1de)];}['getRetryCount'](){const _0x3a07ed=a133_0x4a9c1e,_0x4ed154=(this['config'][_0x3a07ed(0x1f5)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x18a6be=0x0;return this[_0x3a07ed(0x1e8)](this[_0x3a07ed(0x1e9)])&&(_0x18a6be=_0x4ed154[_0x3a07ed(0x1ed)]||0x1),_0x18a6be;}[a133_0x4a9c1e(0x1f8)](){const _0x55bee7=a133_0x4a9c1e,_0x4b8140=this[_0x55bee7(0x1e9)][_0x55bee7(0x1f5)]||{},_0x52d11d={};for(const _0x232445 in _0x4b8140){ALLOWED_ORCHESTRATION_KEYS[_0x55bee7(0x20e)](_0x232445)&&(_0x52d11d[_0x232445]=_0x4b8140[_0x232445]);}return _0x52d11d;}[a133_0x4a9c1e(0x1d1)](){const _0x211463=a133_0x4a9c1e,_0x1e9a3c=process[_0x211463(0x1ee)][_0x211463(0x20a)],_0x58a714=path[_0x211463(0x200)](os[_0x211463(0x1eb)](),_0x211463(0x1dd)+_0x1e9a3c);return fs[_0x211463(0x201)](_0x58a714);}[a133_0x4a9c1e(0x1e1)](_0x515c3a){const _0x543a5e=a133_0x4a9c1e,_0x40aa34=process[_0x543a5e(0x1ee)][_0x543a5e(0x20a)],_0x1c0de4=path['join'](os[_0x543a5e(0x1eb)](),_0x543a5e(0x20c)+_0x40aa34+_0x543a5e(0x1ff));fs[_0x543a5e(0x1e2)](_0x1c0de4,_0x515c3a+'\x0a');}[a133_0x4a9c1e(0x1f7)](_0x1f5992){const _0x45f30e=a133_0x4a9c1e,_0x58cbbf={};_0x58cbbf['fjPwd']=function(_0x4a0cf2,_0x2d6d0f){return _0x4a0cf2||_0x2d6d0f;};const _0x513581=_0x58cbbf;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x45f30e(0x20e)](_0x513581[_0x45f30e(0x211)](_0x1f5992,'')[_0x45f30e(0x1e6)]());}[a133_0x4a9c1e(0x1f3)](){const _0x1eda7e=a133_0x4a9c1e,_0x234d81=(this[_0x1eda7e(0x1e9)]['testOrchestrationOptions']||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x234d81[_0x1eda7e(0x1de)];}[a133_0x4a9c1e(0x1e3)](){const _0x4c6ab6=a133_0x4a9c1e,_0x21b9e1=(this[_0x4c6ab6(0x1e9)][_0x4c6ab6(0x1f5)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x21b9e1['maxFailures']||0x5;;}[a133_0x4a9c1e(0x1d4)](){const _0x1b4fa9=a133_0x4a9c1e;return this[_0x1b4fa9(0x1df)];}[a133_0x4a9c1e(0x208)](_0x351ec4){const _0x330d91=a133_0x4a9c1e;this[_0x330d91(0x1df)]=!!_0x351ec4,this[_0x330d91(0x1fc)]();}['getRerunPreviouslyFailed'](){const _0x198245=a133_0x4a9c1e;return this[_0x198245(0x1ec)];}['_setRerunPreviouslyFailed'](_0x43c2b3){const _0xecff42=a133_0x4a9c1e;this[_0xecff42(0x1ec)]=!!_0x43c2b3,this[_0xecff42(0x1fc)]();}[a133_0x4a9c1e(0x1ea)](){const _0x154fa7=a133_0x4a9c1e;return this[_0x154fa7(0x210)];}[a133_0x4a9c1e(0x1fb)](_0x2affc7){const _0x1a8675=a133_0x4a9c1e;this[_0x1a8675(0x210)]=!!_0x2affc7,this[_0x1a8675(0x1fc)]();}[a133_0x4a9c1e(0x1fc)](){const _0x3c2c1c=a133_0x4a9c1e;if(this[_0x3c2c1c(0x1df)])this['rerunPreviouslyFailed']=![],this[_0x3c2c1c(0x210)]=![],this[_0x3c2c1c(0x20d)]['enable'](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this['rerunPreviouslyFailed'])this['runPreviouslyFailedFirst']=![],this[_0x3c2c1c(0x210)]=![],this[_0x3c2c1c(0x20d)][_0x3c2c1c(0x1d3)](RERUN_PREVIOUSLY_FAILED);else this[_0x3c2c1c(0x210)]?(this['runPreviouslyFailedFirst']=![],this[_0x3c2c1c(0x1ec)]=![],this['testOrdering'][_0x3c2c1c(0x1d3)](SKIP_FLAKY_AND_FAILED)):this[_0x3c2c1c(0x20d)][_0x3c2c1c(0x1d9)]();}}[a133_0x4a9c1e(0x1d6)](){const _0x471ad9=a133_0x4a9c1e;return this[_0x471ad9(0x20d)][_0x471ad9(0x204)]();}[a133_0x4a9c1e(0x205)](){const _0x43faff=a133_0x4a9c1e;if(this[_0x43faff(0x20d)]['getEnabled']())return this[_0x43faff(0x20d)][_0x43faff(0x207)]();return null;}[a133_0x4a9c1e(0x1d2)](){const _0x8ec16e=a133_0x4a9c1e,_0x56dcab={};return _0x56dcab[_0x8ec16e(0x1e5)]={'enabled':this[_0x8ec16e(0x1d8)]()},_0x56dcab[_0x8ec16e(0x1ef)]={'enabled':this[_0x8ec16e(0x1d4)]()},_0x56dcab[_0x8ec16e(0x20f)]={'enabled':this[_0x8ec16e(0x1ea)]()},this['isRetryEnabled']()&&(_0x56dcab[_0x8ec16e(0x1e0)]={'enabled':!![],'max_retries':this['getRetryCount']()}),this[_0x8ec16e(0x1f3)]()&&(_0x56dcab[_0x8ec16e(0x1d5)]={'enabled':!![],'max_failures':this[_0x8ec16e(0x1e3)]()}),_0x56dcab;}}module[a133_0x4a9c1e(0x206)]=OrchestrationUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a132_0x4de61b=a132_0x52c3;(function(_0x2a6edf,_0x1a2ab1){const _0x28f3dd=a132_0x52c3,_0x2687c7=_0x2a6edf();while(!![]){try{const _0x1c2693=-parseInt(_0x28f3dd(0x15f))/0x1+-parseInt(_0x28f3dd(0x16e))/0x2*(-parseInt(_0x28f3dd(0x19d))/0x3)+-parseInt(_0x28f3dd(0x165))/0x4*(parseInt(_0x28f3dd(0x175))/0x5)+-parseInt(_0x28f3dd(0x193))/0x6*(parseInt(_0x28f3dd(0x1a1))/0x7)+parseInt(_0x28f3dd(0x169))/0x8*(-parseInt(_0x28f3dd(0x173))/0x9)+parseInt(_0x28f3dd(0x1a3))/0xa*(-parseInt(_0x28f3dd(0x182))/0xb)+parseInt(_0x28f3dd(0x199))/0xc;if(_0x1c2693===_0x1a2ab1)break;else _0x2687c7['push'](_0x2687c7['shift']());}catch(_0x1a7355){_0x2687c7['push'](_0x2687c7['shift']());}}}(a132_0x1e3a,0x6b594));function a132_0x52c3(_0x5b1102,_0xaffb57){const _0x1e3afd=a132_0x1e3a();return a132_0x52c3=function(_0x52c308,_0x5eb0b9){_0x52c308=_0x52c308-0x15e;let _0x34445b=_0x1e3afd[_0x52c308];return _0x34445b;},a132_0x52c3(_0x5b1102,_0xaffb57);}const https=require(a132_0x4de61b(0x16b)),{URL}=require(a132_0x4de61b(0x18e)),logger=require(a132_0x4de61b(0x186))[a132_0x4de61b(0x1a5)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a132_0x4de61b(0x16d)),TAG='RequestUtils';class RequestUtils{static async[a132_0x4de61b(0x1a6)](_0x431faf,_0x57b49a,_0x1fa8de=null){const _0x2de435=a132_0x4de61b,_0x3fc9d8={'DOKeg':function(_0x2381a4,_0x3d49e5){return _0x2381a4(_0x3d49e5);},'KZIvF':function(_0x4f60e4,_0x16cb9f){return _0x4f60e4(_0x16cb9f);},'dpiAd':_0x2de435(0x187),'kFArg':_0x2de435(0x19f),'OOeax':'error','mhFom':function(_0x27de7d,_0x83c9ce){return _0x27de7d===_0x83c9ce;},'RMRyK':_0x2de435(0x1a4),'ujsjT':_0x2de435(0x18a),'bdPDl':_0x2de435(0x18f),'vxQfx':function(_0x2d24ca,_0x4c0acd){return _0x2d24ca+_0x4c0acd;}},_0x296248=process['env'][_0x2de435(0x17d)]||'',_0x187f9d={};_0x187f9d[_0x2de435(0x15e)]=_0x2de435(0x166)+_0x296248,_0x187f9d[_0x2de435(0x17f)]=_0x3fc9d8[_0x2de435(0x19c)];const _0x962073=_0x187f9d,{hostname:_0x1da9c1,pathname:_0x37969c,search:_0x2b9c8e}=new URL(_0x57b49a),_0x4f912b={'hostname':_0x1da9c1,'path':_0x3fc9d8['vxQfx'](_0x37969c,_0x2b9c8e),'method':_0x431faf,'headers':_0x962073};return logger[_0x2de435(0x190)]('['+TAG+_0x2de435(0x19a)+_0x431faf+'\x20request\x20to\x20'+_0x57b49a+_0x2de435(0x189)+JSON['stringify'](_0x962073)+'\x20and\x20data:\x20'+JSON[_0x2de435(0x170)](_0x1fa8de)+_0x2de435(0x1a0)+_0x296248),new Promise((_0x46dac2,_0x144114)=>{const _0x46714b=_0x2de435,_0x336ebf={'oyzns':function(_0x2cda41,_0x2df765){return _0x3fc9d8['KZIvF'](_0x2cda41,_0x2df765);}},_0x33a006=https['request'](_0x4f912b,_0x35f50c=>{const _0x1414f4=a132_0x52c3,_0x32dd75={'OWiPg':function(_0x44ea37,_0x58bdc){const _0x23b092=a132_0x52c3;return _0x3fc9d8[_0x23b092(0x183)](_0x44ea37,_0x58bdc);},'ZWrrb':function(_0x31b7cc,_0x2fc5ad){return _0x3fc9d8['KZIvF'](_0x31b7cc,_0x2fc5ad);}};let _0x5e5d6b='';_0x35f50c['on'](_0x3fc9d8[_0x1414f4(0x17b)],_0x1629bd=>{_0x5e5d6b+=_0x1629bd;}),_0x35f50c['on'](_0x3fc9d8[_0x1414f4(0x162)],()=>{const _0x12d7c1=_0x1414f4;try{const _0x520bd4=_0x5e5d6b?JSON[_0x12d7c1(0x171)](_0x5e5d6b):{},_0x1eb9f7={};_0x1eb9f7[_0x12d7c1(0x184)]=_0x35f50c['statusCode'],_0x1eb9f7[_0x12d7c1(0x18c)]=_0x520bd4,_0x1eb9f7['headers']=_0x35f50c[_0x12d7c1(0x19e)],_0x32dd75['OWiPg'](_0x46dac2,_0x1eb9f7);}catch(_0x3c44db){logger[_0x12d7c1(0x177)]('['+TAG+_0x12d7c1(0x167)+_0x5e5d6b+'\x20-\x20'+_0x3c44db['message']+'\x20'+_0x3c44db[_0x12d7c1(0x1a9)]),_0x32dd75[_0x12d7c1(0x191)](_0x144114,new Error(_0x12d7c1(0x1a2)+_0x3c44db['message']));}});});_0x33a006['on'](_0x3fc9d8[_0x46714b(0x17e)],_0xe9504d=>{const _0x58b340=_0x46714b;logger[_0x58b340(0x177)]('['+TAG+_0x58b340(0x17c)+_0x431faf+'\x20'+_0x57b49a+':\x20'+_0xe9504d[_0x58b340(0x160)]+'\x20'+_0xe9504d[_0x58b340(0x1a9)]),_0x336ebf['oyzns'](_0x144114,_0xe9504d);}),_0x1fa8de&&(_0x3fc9d8[_0x46714b(0x1a8)](_0x431faf,_0x3fc9d8[_0x46714b(0x192)])||_0x3fc9d8['mhFom'](_0x431faf,_0x3fc9d8[_0x46714b(0x185)]))&&_0x33a006[_0x46714b(0x1ad)](JSON[_0x46714b(0x170)](_0x1fa8de)),_0x33a006[_0x46714b(0x19f)]();});}static async[a132_0x4de61b(0x178)](_0x401219){const _0x4214c9=a132_0x4de61b,_0x12fa17={};_0x12fa17[_0x4214c9(0x17a)]=_0x4214c9(0x1a4),_0x12fa17[_0x4214c9(0x180)]=function(_0x313036,_0x1486b7){return _0x313036===_0x1486b7;};const _0x5957f9=_0x12fa17,_0x3a52a5=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x16177f=await this[_0x4214c9(0x1a6)](_0x5957f9[_0x4214c9(0x17a)],_0x3a52a5,_0x401219);return _0x5957f9['UPaTd'](_0x16177f[_0x4214c9(0x184)],0xc8)?logger[_0x4214c9(0x190)]('['+TAG+']\x20Successfully\x20posted\x20split\x20files\x20to\x20'+_0x3a52a5):logger[_0x4214c9(0x177)]('['+TAG+_0x4214c9(0x161)+_0x3a52a5+':\x20'+JSON[_0x4214c9(0x170)](_0x16177f['body'])+',\x20status:\x20'+_0x16177f[_0x4214c9(0x184)]),_0x16177f;}catch(_0x493694){logger['error']('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x493694[_0x4214c9(0x160)]+'\x20'+_0x493694['stack']);const _0xe13372={};_0xe13372[_0x4214c9(0x160)]=_0x493694[_0x4214c9(0x160)];const _0x314dbb={};return _0x314dbb['status']=0x1f4,_0x314dbb[_0x4214c9(0x18c)]=_0xe13372,_0x314dbb;}}static async[a132_0x4de61b(0x195)](_0x4682db){const _0x1f7b3f=a132_0x4de61b,_0x2e15ad={};_0x2e15ad[_0x1f7b3f(0x19b)]=_0x1f7b3f(0x181),_0x2e15ad[_0x1f7b3f(0x1ac)]=function(_0x5169c8,_0x21aeed){return _0x5169c8===_0x21aeed;};const _0x530cad=_0x2e15ad;try{const _0x5de999=await this['_request'](_0x530cad['DDfAh'],_0x4682db);if(_0x530cad[_0x1f7b3f(0x1ac)](_0x5de999[_0x1f7b3f(0x184)],0xc8))return _0x5de999[_0x1f7b3f(0x18c)];return{};}catch(_0x4f9195){return logger[_0x1f7b3f(0x177)]('['+TAG+_0x1f7b3f(0x194)+_0x4f9195[_0x1f7b3f(0x160)]+'\x20'+_0x4f9195[_0x1f7b3f(0x1a9)]),{};}}static async[a132_0x4de61b(0x16a)](_0x258d9e){const _0x556336=a132_0x4de61b,_0x362ed4={};_0x362ed4[_0x556336(0x18b)]=_0x556336(0x18a),_0x362ed4['OFbPw']=function(_0x484bbc,_0x16a97f){return _0x484bbc===_0x16a97f;},_0x362ed4[_0x556336(0x198)]=function(_0x509efe,_0x10c92d){return _0x509efe===_0x10c92d;},_0x362ed4['GPPdM']=_0x556336(0x172);const _0x9fdebb=_0x362ed4,_0x5ea226=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x4f3f4a=await this[_0x556336(0x1a6)](_0x9fdebb[_0x556336(0x18b)],_0x5ea226,_0x258d9e);if(_0x9fdebb[_0x556336(0x188)](_0x4f3f4a[_0x556336(0x184)],0xc8)&&_0x4f3f4a[_0x556336(0x18c)]&&_0x9fdebb[_0x556336(0x198)](_0x4f3f4a['body'][_0x556336(0x160)],_0x9fdebb[_0x556336(0x168)]))return!![];return![];}catch(_0xb15396){logger[_0x556336(0x177)]('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0xb15396[_0x556336(0x160)]+'\x20'+_0xb15396['stack']);const _0xab03c1={};_0xab03c1[_0x556336(0x160)]=_0xb15396[_0x556336(0x160)];const _0x559655={};return _0x559655['status']=0x1f4,_0x559655[_0x556336(0x18c)]=_0xab03c1,_0x559655;}}static async['getFailedTestsCount'](_0xb23699){const _0x340463=a132_0x4de61b,_0x37c46b={'HInZj':function(_0x340a24,_0x2af47f){return _0x340a24||_0x2af47f;},'NnJbf':'Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','evTlC':function(_0x4597de,_0x3492e2){return _0x4597de(_0x3492e2);},'yOFcs':function(_0x302fc0,_0x2b7e04){return _0x302fc0(_0x2b7e04);},'jDyCp':'GET','KkhZH':function(_0x5e1eca,_0x192029){return _0x5e1eca===_0x192029;},'cDXZK':function(_0x448c6d,_0x3070c6){return _0x448c6d!==_0x3070c6;},'WZufo':_0x340463(0x164),'FvaWt':function(_0x4883d9,_0x217333){return _0x4883d9(_0x217333);}},{buildName:_0x1138f8,buildRunIdentifier:_0xdff81a,projectName:_0x207990}=_0xb23699;if(_0x37c46b[_0x340463(0x196)](!_0x1138f8,!_0xdff81a)||!_0x207990){logger[_0x340463(0x177)]('['+TAG+_0x340463(0x16c)+_0x1138f8+_0x340463(0x16f)+_0xdff81a+_0x340463(0x179)+_0x207990);const _0x5282f6={};_0x5282f6[_0x340463(0x160)]=_0x37c46b[_0x340463(0x174)];const _0x1a7b6d={};return _0x1a7b6d[_0x340463(0x184)]=0x190,_0x1a7b6d[_0x340463(0x18c)]=_0x5282f6,_0x1a7b6d;}const _0x26688e='?buildName='+_0x37c46b[_0x340463(0x1ab)](encodeURIComponent,_0x1138f8)+_0x340463(0x163)+_0x37c46b[_0x340463(0x1ab)](encodeURIComponent,_0xdff81a)+'&projectName='+_0x37c46b[_0x340463(0x176)](encodeURIComponent,_0x207990),_0x337e4d=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x26688e;try{logger['debug']('['+TAG+']\x20Sending\x20GET\x20to\x20'+_0x337e4d);let _0x55a002=0x0;const _0x395be0=await this[_0x340463(0x1a6)](_0x37c46b['jDyCp'],_0x337e4d);return _0x37c46b[_0x340463(0x197)](_0x395be0[_0x340463(0x184)],0xc8)&&_0x395be0[_0x340463(0x18c)]&&_0x37c46b[_0x340463(0x1a7)](typeof _0x395be0[_0x340463(0x18c)][_0x340463(0x1aa)],_0x37c46b['WZufo'])&&(_0x55a002=_0x37c46b['FvaWt'](Number,_0x395be0[_0x340463(0x18c)][_0x340463(0x1aa)])),_0x55a002;}catch(_0x315069){logger[_0x340463(0x177)]('['+TAG+']\x20Error\x20in\x20getFailedTestsCount:\x20'+_0x315069[_0x340463(0x160)]+'\x20'+_0x315069[_0x340463(0x1a9)]);const _0x312cae={};_0x312cae['message']=_0x315069['message'];const _0x2aa3b9={};return _0x2aa3b9[_0x340463(0x184)]=0x1f4,_0x2aa3b9[_0x340463(0x18c)]=_0x312cae,_0x2aa3b9;}}}function a132_0x1e3a(){const _0x5e5f9a=['error','postSplitFiles',',\x20projectName=','lywCT','dpiAd',']\x20Request\x20failed\x20for\x20','BROWSERSTACK_TESTHUB_JWT','OOeax','Content-Type','UPaTd','GET','1100902ncriYx','DOKeg','status','ujsjT','../logger','data','OFbPw','\x20with\x20headers:\x20','PUT','EmSyF','body','exports','url','application/json','debug','ZWrrb','RMRyK','1874772YiCBiO',']\x20Error\x20in\x20putFailedTests:\x20','getSplitFiles','HInZj','KkhZH','teLfB','31231716ZPWWAc',']\x20Sending\x20','DDfAh','bdPDl','414444XczVHQ','headers','end','\x20and\x20token:\x20','14eZThMj','Failed\x20to\x20parse\x20JSON\x20response:\x20','80jnQoaI','POST','winstonLogger','_request','cDXZK','mhFom','stack','failedTestsCount','evTlC','cFjqG','write','Authorization','845548zHMfpT','message',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','kFArg','&buildRunIdentifier=','undefined','37836pjfoAG','Bearer\x20',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','GPPdM','680384HCVYfd','putFailedTests','https',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','./constants','8dgyxzy',',\x20buildRunIdentifier=','stringify','parse','Test\x20added','18ngrieb','NnJbf','145AhfvwT','yOFcs'];a132_0x1e3a=function(){return _0x5e5f9a;};return a132_0x1e3a();}module[a132_0x4de61b(0x18d)]=RequestUtils;
|
|
1
|
+
const a134_0x3daa42=a134_0x1549;function a134_0x4e5d(){const _0x3dd1f6=['711RQMZGx','https','LjfEd','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','XoEEN','PUT','stack','../logger','yWHtr','putFailedTests','request','rPQsx','myvlZ','1899610paEBvr','message','debug','124789FbTLxq','unyGf',']\x20Sending\x20GET\x20to\x20','NJvRp','WrbPl','POST','NLaCB','Bearer\x20','ofwUJ','kBHDK','failedTestsCount',']\x20Sending\x20','\x20request\x20to\x20','\x20with\x20headers:\x20','1776654JruXDK','GET','stringify','czcRR','Failed\x20to\x20parse\x20JSON\x20response:\x20','url','getFailedTestsCount',']\x20Error\x20in\x20getFailedTestsCount:\x20','_request','205830pmOoyT','RequestUtils','&projectName=','statusCode','BROWSERSTACK_TESTHUB_JWT','3BUcaJt',',\x20buildRunIdentifier=','error','\x20-\x20','body','CMAKM','\x20and\x20token:\x20','GsDEU','OzJxv',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','Authorization','PmULD','VEvsA','undefined','DCzqH',',\x20status:\x20','SjwWu','?buildName=','gXejp','Content-Type','./constants',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','54czgxeI','13976KcbdFL','LGzIs','status','XCfMR','EFchO','getSplitFiles','eGstH',']\x20Error\x20in\x20putFailedTests:\x20','YZRDK','22aVZPsl','17994CJdWJx','end','headers','325204noGFlw'];a134_0x4e5d=function(){return _0x3dd1f6;};return a134_0x4e5d();}function a134_0x1549(_0x74aa6,_0x572340){const _0x4e5df1=a134_0x4e5d();return a134_0x1549=function(_0x15498c,_0x4585be){_0x15498c=_0x15498c-0x75;let _0x471334=_0x4e5df1[_0x15498c];return _0x471334;},a134_0x1549(_0x74aa6,_0x572340);}(function(_0x268239,_0x32b447){const _0x4d3670=a134_0x1549,_0x5404f0=_0x268239();while(!![]){try{const _0x1ce1a2=-parseInt(_0x4d3670(0xb2))/0x1*(-parseInt(_0x4d3670(0xb1))/0x2)+-parseInt(_0x4d3670(0x91))/0x3*(parseInt(_0x4d3670(0xb5))/0x4)+parseInt(_0x4d3670(0x8c))/0x5+-parseInt(_0x4d3670(0xa7))/0x6*(parseInt(_0x4d3670(0x75))/0x7)+parseInt(_0x4d3670(0xa8))/0x8*(parseInt(_0x4d3670(0xb6))/0x9)+-parseInt(_0x4d3670(0xc3))/0xa+parseInt(_0x4d3670(0x83))/0xb;if(_0x1ce1a2===_0x32b447)break;else _0x5404f0['push'](_0x5404f0['shift']());}catch(_0x154289){_0x5404f0['push'](_0x5404f0['shift']());}}}(a134_0x4e5d,0x1a1aa));const https=require(a134_0x3daa42(0xb7)),{URL}=require(a134_0x3daa42(0x88)),logger=require(a134_0x3daa42(0xbd))['winstonLogger'],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a134_0x3daa42(0xa5)),TAG=a134_0x3daa42(0x8d);class RequestUtils{static async[a134_0x3daa42(0x8b)](_0x6493e4,_0x49195f,_0x2ab79f=null){const _0x3757c2=a134_0x3daa42,_0x12f37c={'myvlZ':function(_0x158e09,_0x458d89){return _0x158e09(_0x458d89);},'CMAKM':function(_0x37881c,_0x49486b){return _0x37881c(_0x49486b);},'unyGf':'data','OzJxv':_0x3757c2(0xb3),'NLaCB':_0x3757c2(0x93),'VEvsA':function(_0x23b0fa,_0x40de7b){return _0x23b0fa===_0x40de7b;},'EFchO':_0x3757c2(0x7a),'czcRR':_0x3757c2(0xbb),'LjfEd':'application/json','ofwUJ':function(_0x12bfff,_0x2cd8a2){return _0x12bfff+_0x2cd8a2;}},_0x5216b7=process['env'][_0x3757c2(0x90)]||'',_0x6d36b6={};_0x6d36b6[_0x3757c2(0x9b)]=_0x3757c2(0x7c)+_0x5216b7,_0x6d36b6[_0x3757c2(0xa4)]=_0x12f37c[_0x3757c2(0xb8)];const _0x27d3bf=_0x6d36b6,{hostname:_0x283881,pathname:_0x221d41,search:_0x17aaf3}=new URL(_0x49195f),_0x3e337f={'hostname':_0x283881,'path':_0x12f37c[_0x3757c2(0x7d)](_0x221d41,_0x17aaf3),'method':_0x6493e4,'headers':_0x27d3bf};return logger['debug']('['+TAG+_0x3757c2(0x80)+_0x6493e4+_0x3757c2(0x81)+_0x49195f+_0x3757c2(0x82)+JSON[_0x3757c2(0x85)](_0x27d3bf)+'\x20and\x20data:\x20'+JSON[_0x3757c2(0x85)](_0x2ab79f)+_0x3757c2(0x97)+_0x5216b7),new Promise((_0x124ef0,_0x37fd60)=>{const _0x26995e=_0x3757c2,_0x27e3b3={'YZRDK':function(_0x2d14d8,_0x1e6c06){const _0x476f73=a134_0x1549;return _0x12f37c[_0x476f73(0x96)](_0x2d14d8,_0x1e6c06);},'WrbPl':function(_0x2fc039,_0x23e32f){const _0x42680b=a134_0x1549;return _0x12f37c[_0x42680b(0x96)](_0x2fc039,_0x23e32f);},'LJUmN':_0x12f37c[_0x26995e(0x76)],'kBHDK':_0x12f37c[_0x26995e(0x99)]},_0x4919cb=https[_0x26995e(0xc0)](_0x3e337f,_0x5734aa=>{const _0x3e0bd8=_0x26995e;let _0x36e2c7='';_0x5734aa['on'](_0x27e3b3['LJUmN'],_0x545604=>{_0x36e2c7+=_0x545604;}),_0x5734aa['on'](_0x27e3b3[_0x3e0bd8(0x7e)],()=>{const _0x1c788e=_0x3e0bd8;try{const _0x5e6c40=_0x36e2c7?JSON['parse'](_0x36e2c7):{},_0x4a1267={};_0x4a1267[_0x1c788e(0xaa)]=_0x5734aa[_0x1c788e(0x8f)],_0x4a1267[_0x1c788e(0x95)]=_0x5e6c40,_0x4a1267[_0x1c788e(0xb4)]=_0x5734aa['headers'],_0x27e3b3[_0x1c788e(0xb0)](_0x124ef0,_0x4a1267);}catch(_0x5f0e69){logger[_0x1c788e(0x93)]('['+TAG+']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x36e2c7+_0x1c788e(0x94)+_0x5f0e69[_0x1c788e(0xc4)]+'\x20'+_0x5f0e69['stack']),_0x27e3b3[_0x1c788e(0x79)](_0x37fd60,new Error(_0x1c788e(0x87)+_0x5f0e69['message']));}});});_0x4919cb['on'](_0x12f37c[_0x26995e(0x7b)],_0x87eb0e=>{const _0x3f612f=_0x26995e;logger[_0x3f612f(0x93)]('['+TAG+']\x20Request\x20failed\x20for\x20'+_0x6493e4+'\x20'+_0x49195f+':\x20'+_0x87eb0e[_0x3f612f(0xc4)]+'\x20'+_0x87eb0e['stack']),_0x12f37c[_0x3f612f(0xc2)](_0x37fd60,_0x87eb0e);}),_0x2ab79f&&(_0x12f37c[_0x26995e(0x9d)](_0x6493e4,_0x12f37c[_0x26995e(0xac)])||_0x12f37c[_0x26995e(0x9d)](_0x6493e4,_0x12f37c[_0x26995e(0x86)]))&&_0x4919cb['write'](JSON[_0x26995e(0x85)](_0x2ab79f)),_0x4919cb[_0x26995e(0xb3)]();});}static async['postSplitFiles'](_0x351e1d){const _0x57b78f=a134_0x3daa42,_0x4f8853={};_0x4f8853['HJNth']='POST',_0x4f8853[_0x57b78f(0xc1)]=function(_0x5b70fb,_0x1c2658){return _0x5b70fb===_0x1c2658;};const _0x2435e1=_0x4f8853,_0x254afd=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x1b47b3=await this[_0x57b78f(0x8b)](_0x2435e1['HJNth'],_0x254afd,_0x351e1d);return _0x2435e1[_0x57b78f(0xc1)](_0x1b47b3[_0x57b78f(0xaa)],0xc8)?logger[_0x57b78f(0xc5)]('['+TAG+_0x57b78f(0x9a)+_0x254afd):logger['error']('['+TAG+']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20'+_0x254afd+':\x20'+JSON[_0x57b78f(0x85)](_0x1b47b3['body'])+_0x57b78f(0xa0)+_0x1b47b3[_0x57b78f(0xaa)]),_0x1b47b3;}catch(_0x2beda6){logger[_0x57b78f(0x93)]('['+TAG+_0x57b78f(0xaf)+_0x2beda6[_0x57b78f(0xc4)]+'\x20'+_0x2beda6[_0x57b78f(0xbc)]);const _0x5af797={};_0x5af797[_0x57b78f(0xc4)]=_0x2beda6[_0x57b78f(0xc4)];const _0x18c953={};return _0x18c953['status']=0x1f4,_0x18c953[_0x57b78f(0x95)]=_0x5af797,_0x18c953;}}static async[a134_0x3daa42(0xad)](_0x2cefc0){const _0x5d5e00=a134_0x3daa42,_0x5e1fe7={};_0x5e1fe7[_0x5d5e00(0x98)]='GET',_0x5e1fe7[_0x5d5e00(0xae)]=function(_0x687fec,_0x392f46){return _0x687fec===_0x392f46;};const _0x55442e=_0x5e1fe7;try{const _0x3ad184=await this[_0x5d5e00(0x8b)](_0x55442e['GsDEU'],_0x2cefc0);if(_0x55442e[_0x5d5e00(0xae)](_0x3ad184[_0x5d5e00(0xaa)],0xc8))return _0x3ad184['body'];return{};}catch(_0x3c9c86){return logger[_0x5d5e00(0x93)]('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x3c9c86[_0x5d5e00(0xc4)]+'\x20'+_0x3c9c86[_0x5d5e00(0xbc)]),{};}}static async[a134_0x3daa42(0xbf)](_0x4af057){const _0x403fed=a134_0x3daa42,_0x21c714={};_0x21c714[_0x403fed(0x9c)]='PUT',_0x21c714[_0x403fed(0xbe)]=function(_0x20d7fc,_0x18930c){return _0x20d7fc===_0x18930c;},_0x21c714[_0x403fed(0xa1)]='Test\x20added';const _0x52e2ef=_0x21c714,_0x3faf90=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x1e3899=await this[_0x403fed(0x8b)](_0x52e2ef['PmULD'],_0x3faf90,_0x4af057);if(_0x52e2ef[_0x403fed(0xbe)](_0x1e3899[_0x403fed(0xaa)],0xc8)&&_0x1e3899[_0x403fed(0x95)]&&_0x52e2ef[_0x403fed(0xbe)](_0x1e3899['body'][_0x403fed(0xc4)],_0x52e2ef['SjwWu']))return!![];return![];}catch(_0x20e14a){logger[_0x403fed(0x93)]('['+TAG+_0x403fed(0xaf)+_0x20e14a[_0x403fed(0xc4)]+'\x20'+_0x20e14a[_0x403fed(0xbc)]);const _0x197567={};_0x197567[_0x403fed(0xc4)]=_0x20e14a[_0x403fed(0xc4)];const _0x5c39e1={};return _0x5c39e1[_0x403fed(0xaa)]=0x1f4,_0x5c39e1[_0x403fed(0x95)]=_0x197567,_0x5c39e1;}}static async[a134_0x3daa42(0x89)](_0x3dc58c){const _0x9f1bfe=a134_0x3daa42,_0x367847={'XoEEN':function(_0x31f304,_0x1d37d7){return _0x31f304||_0x1d37d7;},'NJvRp':_0x9f1bfe(0xb9),'gXejp':function(_0x53b6b6,_0x16fd2c){return _0x53b6b6(_0x16fd2c);},'DCzqH':function(_0x17cc10,_0x2b4f7a){return _0x17cc10(_0x2b4f7a);},'Tgvlx':function(_0x254742,_0x16d8de){return _0x254742(_0x16d8de);},'LGzIs':_0x9f1bfe(0x84),'jvbsl':function(_0x3eddb7,_0x555624){return _0x3eddb7===_0x555624;},'Qcolg':function(_0xcd9552,_0x521336){return _0xcd9552!==_0x521336;},'XCfMR':_0x9f1bfe(0x9e)},{buildName:_0x1faf1b,buildRunIdentifier:_0x1cf4f1,projectName:_0x550079}=_0x3dc58c;if(_0x367847[_0x9f1bfe(0xba)](!_0x1faf1b,!_0x1cf4f1)||!_0x550079){logger[_0x9f1bfe(0x93)]('['+TAG+_0x9f1bfe(0xa6)+_0x1faf1b+_0x9f1bfe(0x92)+_0x1cf4f1+',\x20projectName='+_0x550079);const _0x1025f8={};_0x1025f8[_0x9f1bfe(0xc4)]=_0x367847[_0x9f1bfe(0x78)];const _0x3ebe3c={};return _0x3ebe3c[_0x9f1bfe(0xaa)]=0x190,_0x3ebe3c[_0x9f1bfe(0x95)]=_0x1025f8,_0x3ebe3c;}const _0x16bc9a=_0x9f1bfe(0xa2)+_0x367847[_0x9f1bfe(0xa3)](encodeURIComponent,_0x1faf1b)+'&buildRunIdentifier='+_0x367847[_0x9f1bfe(0x9f)](encodeURIComponent,_0x1cf4f1)+_0x9f1bfe(0x8e)+_0x367847['Tgvlx'](encodeURIComponent,_0x550079),_0x4f3381=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x16bc9a;try{logger[_0x9f1bfe(0xc5)]('['+TAG+_0x9f1bfe(0x77)+_0x4f3381);let _0x154ae4=0x0;const _0x48e980=await this[_0x9f1bfe(0x8b)](_0x367847[_0x9f1bfe(0xa9)],_0x4f3381);return _0x367847['jvbsl'](_0x48e980['status'],0xc8)&&_0x48e980[_0x9f1bfe(0x95)]&&_0x367847['Qcolg'](typeof _0x48e980[_0x9f1bfe(0x95)][_0x9f1bfe(0x7f)],_0x367847[_0x9f1bfe(0xab)])&&(_0x154ae4=_0x367847['Tgvlx'](Number,_0x48e980['body'][_0x9f1bfe(0x7f)])),_0x154ae4;}catch(_0x4d9841){logger[_0x9f1bfe(0x93)]('['+TAG+_0x9f1bfe(0x8a)+_0x4d9841['message']+'\x20'+_0x4d9841[_0x9f1bfe(0xbc)]);const _0x4a858e={};_0x4a858e['message']=_0x4d9841[_0x9f1bfe(0xc4)];const _0x5e9f50={};return _0x5e9f50['status']=0x1f4,_0x5e9f50['body']=_0x4a858e,_0x5e9f50;}}}module['exports']=RequestUtils;
|