@nrwl/nx-cloud 12.5.3 → 12.5.4
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/lib/core/api/run-group.api.js +1 -1
- package/lib/core/runners/cloud-enabled/cloud-enabled.runner.js +1 -1
- package/lib/core/runners/cloud-enabled/cloud-remote-cache.js +1 -1
- package/lib/core/runners/cloud-enabled/cloud-run.api.js +1 -1
- package/lib/core/runners/cloud-enabled/task-runner-life-cycle.js +1 -1
- package/lib/core/runners/distributed-agent/distributed-agent.api.js +1 -1
- package/lib/core/runners/distributed-agent/distributed-agent.runner.js +1 -1
- package/lib/core/runners/distributed-execution/distributed-execution.api.js +1 -1
- package/lib/core/runners/distributed-execution/distributed-execution.api.js.map +1 -1
- package/lib/core/runners/distributed-execution/distributed-execution.runner.js +1 -1
- package/lib/utilities/metric-logger.js +13 -8
- package/lib/utilities/metric-logger.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5d64=['apply','recordMetric','error','/nx-cloud/executions/complete-run-group','RUNNER_FAILURE_PERF_ENTRY','defineProperty','createMetricRecorder','/nx-cloud/executions/create-run-group','output','then','mapRespToPerfEntry','__awaiter','post','axiosMultipleTries','../../utilities/axios','exit','createRunGroup','RunGroupApi','message','value','next','createApiAxiosInstance','@nrwl/workspace/src/utilities/output','apiAxiosInstance'];(function(_0x5b26d0,_0x5d6463){const _0x2c30df=function(_0x3612cf){while(--_0x3612cf){_0x5b26d0['push'](_0x5b26d0['shift']());}};_0x2c30df(++_0x5d6463);}(a0_0x5d64,0x1e3));const a0_0x2c30=function(_0x5b26d0,_0x5d6463){_0x5b26d0=_0x5b26d0-0x0;let _0x2c30df=a0_0x5d64[_0x5b26d0];return _0x2c30df;};'use strict';var __awaiter=this&&this[a0_0x2c30('0x8')]||function(_0x468b15,_0x3c5d6f,_0x8b8df3,_0x365ea6){function _0x7770d5(_0x38396b){return _0x38396b instanceof _0x8b8df3?_0x38396b:new _0x8b8df3(function(_0x1b2bda){_0x1b2bda(_0x38396b);});}return new(_0x8b8df3||(_0x8b8df3=Promise))(function(_0x5aea9c,_0x31867f){function _0x4c13b7(_0x515c08){try{_0x4ddc95(_0x365ea6[a0_0x2c30('0x11')](_0x515c08));}catch(_0x2d8bf2){_0x31867f(_0x2d8bf2);}}function _0x574909(_0x128dbb){try{_0x4ddc95(_0x365ea6['throw'](_0x128dbb));}catch(_0x5540c0){_0x31867f(_0x5540c0);}}function _0x4ddc95(_0x3a107a){_0x3a107a['done']?_0x5aea9c(_0x3a107a[a0_0x2c30('0x10')]):_0x7770d5(_0x3a107a[a0_0x2c30('0x10')])[a0_0x2c30('0x6')](_0x4c13b7,_0x574909);}_0x4ddc95((_0x365ea6=_0x365ea6[a0_0x2c30('0x15')](_0x468b15,_0x3c5d6f||[]))['next']());});};Object[a0_0x2c30('0x2')](exports,'__esModule',{'value':!![]});exports[a0_0x2c30('0xe')]=void 0x0;const output_1=require(a0_0x2c30('0x13'));const axios_1=require(a0_0x2c30('0xb'));const metric_logger_1=require('../../utilities/metric-logger');class RunGroupApi{constructor(_0x29ec1e){this[a0_0x2c30('0x14')]=(0x0,axios_1[a0_0x2c30('0x12')])(_0x29ec1e);}[a0_0x2c30('0xd')](_0x5eef3d,_0x1779d7){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2bdc88=(0x0,metric_logger_1[a0_0x2c30('0x3')])('createRunGroup');try{const _0x339293=yield(0x0,axios_1[a0_0x2c30('0xa')])(()=>this[a0_0x2c30('0x14')][a0_0x2c30('0x9')](a0_0x2c30('0x4'),{'branch':_0x5eef3d,'runGroup':_0x1779d7}),0x3);_0x2bdc88[a0_0x2c30('0x16')]((0x0,metric_logger_1[a0_0x2c30('0x7')])(_0x339293));}catch(_0x3e8157){_0x2bdc88[a0_0x2c30('0x16')](metric_logger_1[a0_0x2c30('0x1')]);output_1[a0_0x2c30('0x5')][a0_0x2c30('0x17')]({'title':_0x3e8157[a0_0x2c30('0xf')]});process[a0_0x2c30('0xc')](0x1);}});}['completeRunGroup'](_0x500952){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3f0e95=(0x0,metric_logger_1['createMetricRecorder'])(a0_0x2c30('0xd'));try{const _0x31e1e6=yield(0x0,axios_1[a0_0x2c30('0xa')])(()=>this[a0_0x2c30('0x14')][a0_0x2c30('0x9')](a0_0x2c30('0x0'),{'runGroup':_0x500952}),0x3);_0x3f0e95[a0_0x2c30('0x16')]((0x0,metric_logger_1[a0_0x2c30('0x7')])(_0x31e1e6));}catch(_0x325d34){_0x3f0e95[a0_0x2c30('0x16')](metric_logger_1[a0_0x2c30('0x1')]);output_1[a0_0x2c30('0x5')][a0_0x2c30('0x17')]({'title':_0x325d34['message']});process['exit'](0x1);}});}}exports[a0_0x2c30('0xe')]=RunGroupApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x5ac1=['CloudRunApi','0x3c','E2EEncryption','0x28','NX_CLOUD_DISTRIBUTED_EXECUTION_ID','0x29','0x1a','forEach','NUMBER_OF_TRIES','0xe','subscribe','0x30','0x33','0x27','0x23','0x47','printMessages','0x26','0x1e','./node_modules/.cache/nx','filter','next','0x3a','0x2a','path','0x45','0xb','../../../utilities/environment','__esModule','0xa','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','0x10','0x19','0xc','OutputObfuscator','0x38','0x20','obfuscate','0x25','scan','encryptionKey','0x2','0x3b','tasksRunnerV2','0x15','0x7','toISOString','0x3e','requests','endRun','0x1','EndOfRunMessage','Executed\x20tasks\x20with\x20hashes:\x20','ENCRYPTION_KEY','assign','stringify','0x32','map','0x17','getBranch','0x18','terminalOutput','tasks-hashes','shift','getMachineInfo','MessageReporter','0x31','0x2f','throw','tasks','../../../utilities/metric-logger','0x46','0x8','hash','./cloud-run.api','0x1b','extractGitSha','startRun','note','taskId','parseCommand','0x22','then','0x11','0x1c','0x43','done','Agent\x20wasn\x27t\x20able\x20to\x20record\x20its\x20run','FileStorage','0x42','0x5','../../terminal-output/end-of-run-message','Completed\x20tasks','0x1d','value','0x3d','use\x20strict','0x2b','AGENT_RUNNING_IN_DISTRIBUTED_EXECUTION','0x41','0x12','../../terminal-output/output-obfuscator','0x24','TaskRunnerLifeCycle','0x2e','all','...','./task-runner-life-cycle','0x21','output','0x13','cacheableOperations','slice','exit','error','0xd','0xf','0x3','@nrwl/workspace/src/utilities/output','0x9','Subject','cacheDirectory','cloudEnabledTasksRunner','../../terminal-output/message-reporter','0x37','0x14','__awaiter'];(function(_0x4f6d1b,_0x5ac180){const _0x58a419=function(_0x360218){while(--_0x360218){_0x4f6d1b['push'](_0x4f6d1b['shift']());}};_0x58a419(++_0x5ac180);}(a0_0x5ac1,0x1b1));const a0_0x58a4=function(_0x4f6d1b,_0x5ac180){_0x4f6d1b=_0x4f6d1b-0x0;let _0x58a419=a0_0x5ac1[_0x4f6d1b];return _0x58a419;};const a0_0x35c2=[a0_0x58a4('0x67'),a0_0x58a4('0x7c'),a0_0x58a4('0x7b'),a0_0x58a4('0x4b'),a0_0x58a4('0x2a'),a0_0x58a4('0x2'),a0_0x58a4('0x76'),'defineProperty','CloudRemoteCache',a0_0x58a4('0x28'),a0_0x58a4('0x15'),a0_0x58a4('0x31'),'join','../../file-storage/e2e-encryption','apply',a0_0x58a4('0x4d'),a0_0x58a4('0x24'),a0_0x58a4('0x1c'),a0_0x58a4('0xc'),a0_0x58a4('0x6d'),a0_0x58a4('0x16'),'getRunGroup',a0_0x58a4('0x3d'),a0_0x58a4('0x3c'),a0_0x58a4('0x42'),a0_0x58a4('0x5f'),'writeFileSync',a0_0x58a4('0x79'),a0_0x58a4('0x72'),a0_0x58a4('0x47'),a0_0x58a4('0x69'),a0_0x58a4('0x5b'),'./cloud-remote-cache',a0_0x58a4('0x27'),a0_0x58a4('0x1b'),a0_0x58a4('0x3'),a0_0x58a4('0x5e'),a0_0x58a4('0x0'),'VERBOSE_LOGGING',a0_0x58a4('0x10'),a0_0x58a4('0x3b'),a0_0x58a4('0x23'),a0_0x58a4('0x63'),a0_0x58a4('0x19'),'env','@nrwl/workspace/src/tasks-runner/tasks-runner-v2',a0_0x58a4('0x7e'),a0_0x58a4('0x12'),a0_0x58a4('0xd'),'../../file-storage/file-storage','rxjs/internal/Subject',a0_0x58a4('0x11'),a0_0x58a4('0x55'),a0_0x58a4('0x3e'),a0_0x58a4('0x1a'),a0_0x58a4('0x2e'),a0_0x58a4('0x33'),'waitForStoreRequestsToComplete',a0_0x58a4('0x73'),a0_0x58a4('0x39'),a0_0x58a4('0x36'),a0_0x58a4('0x18'),a0_0x58a4('0x35'),a0_0x58a4('0x4f'),a0_0x58a4('0x45'),'complete',a0_0x58a4('0x46'),'submitRunMetrics',a0_0x58a4('0x60'),a0_0x58a4('0x4a'),a0_0x58a4('0x5'),a0_0x58a4('0x1e')];(function(_0x3867b2,_0x1ca55b){const _0x26c448=function(_0x20032c){while(--_0x20032c){_0x3867b2['push'](_0x3867b2[a0_0x58a4('0xb')]());}};_0x26c448(++_0x1ca55b);}(a0_0x35c2,0x1a0));const a0_0x4ba5=function(_0x423008,_0x433b20){_0x423008=_0x423008-0x0;let _0x56c9b0=a0_0x35c2[_0x423008];return _0x56c9b0;};a0_0x58a4('0x2c');var __awaiter=this&&this[a0_0x4ba5(a0_0x58a4('0x3f'))]||function(_0x7ce70b,_0x560f18,_0x3d7e06,_0x34c430){function _0x2cdfee(_0x2c5c6b){return _0x2c5c6b instanceof _0x3d7e06?_0x2c5c6b:new _0x3d7e06(function(_0x5b7b18){_0x5b7b18(_0x2c5c6b);});}return new(_0x3d7e06||(_0x3d7e06=Promise))(function(_0x5395b9,_0x2bce6c){function _0x1e2533(_0x13ce91){try{_0x36cd31(_0x34c430[a0_0x4ba5(a0_0x58a4('0x6c'))](_0x13ce91));}catch(_0x5e16b9){_0x2bce6c(_0x5e16b9);}}function _0x2c89a5(_0x4d6c90){try{_0x36cd31(_0x34c430[a0_0x4ba5(a0_0x58a4('0x48'))](_0x4d6c90));}catch(_0xc52531){_0x2bce6c(_0xc52531);}}function _0x36cd31(_0x48a55b){_0x48a55b[a0_0x58a4('0x22')]?_0x5395b9(_0x48a55b[a0_0x4ba5(a0_0x58a4('0x49'))]):_0x2cdfee(_0x48a55b[a0_0x58a4('0x2a')])[a0_0x4ba5(a0_0x58a4('0x40'))](_0x1e2533,_0x2c89a5);}_0x36cd31((_0x34c430=_0x34c430[a0_0x4ba5(a0_0x58a4('0x5d'))](_0x7ce70b,_0x560f18||[]))[a0_0x4ba5(a0_0x58a4('0x6c'))]());});};Object[a0_0x4ba5(a0_0x58a4('0x6'))](exports,a0_0x4ba5(a0_0x58a4('0x6a')),{'value':!![]});exports[a0_0x4ba5(a0_0x58a4('0x68'))]=void 0x0;const Subject_1=require(a0_0x4ba5(a0_0x58a4('0x25')));const message_reporter_1=require(a0_0x4ba5('0x2d'));const end_of_run_message_1=require(a0_0x4ba5(a0_0x58a4('0xe')));const output_obfuscator_1=require(a0_0x4ba5(a0_0x58a4('0x17')));const task_runner_life_cycle_1=require(a0_0x58a4('0x37'));const file_storage_1=require(a0_0x4ba5(a0_0x58a4('0x2f')));const e2e_encryption_1=require(a0_0x4ba5(a0_0x58a4('0x29')));const environment_1=require(a0_0x58a4('0x66'));const cloud_remote_cache_1=require(a0_0x4ba5(a0_0x58a4('0x56')));const tasks_runner_v2_1=require(a0_0x4ba5(a0_0x58a4('0x2b')));const output_1=require(a0_0x4ba5(a0_0x58a4('0x4e')));const cloud_run_api_1=require(a0_0x4ba5(a0_0x58a4('0x32')));const fs_1=require('fs');const path=require(a0_0x4ba5(a0_0x58a4('0x61')));const metric_logger_1=require(a0_0x4ba5('0x3f'));function createApi(_0x57ff80,_0x140cd7,_0x4ad9c6){const _0x2acb7f=(0x0,environment_1[a0_0x4ba5(a0_0x58a4('0x1d'))])(_0x140cd7);return new cloud_run_api_1[(a0_0x4ba5(a0_0x58a4('0x3a')))](_0x57ff80,_0x4ad9c6,_0x140cd7,_0x2acb7f);}function storeTaskHashes(_0x24eb8a,_0x49d2af){const _0x5b4bc1=JSON[a0_0x58a4('0x3')](_0x24eb8a[a0_0x4ba5(a0_0x58a4('0x54'))](_0x41b316=>({'taskId':_0x41b316[a0_0x4ba5(a0_0x58a4('0x4'))],'hash':_0x41b316[a0_0x4ba5(a0_0x58a4('0x51'))]})));if(environment_1[a0_0x4ba5('0x36')]){output_1[a0_0x4ba5(a0_0x58a4('0x41'))][a0_0x4ba5(a0_0x58a4('0x13'))]({'title':a0_0x4ba5('0x35')+_0x5b4bc1});}(0x0,fs_1[a0_0x4ba5(a0_0x58a4('0x62'))])(path[a0_0x4ba5(a0_0x58a4('0x20'))](_0x49d2af,a0_0x58a4('0xa')),_0x5b4bc1);}function cloudEnabledTasksRunner(_0x164e06,_0x5e7349,_0x315e64){const _0x8fcd76={'statuses':{},'scheduledTasks':[],'requests':{},'allTasks':_0x164e06};const _0x2461af=new message_reporter_1[(a0_0x4ba5('0x40'))](_0x5e7349);const _0x3a18c0=createApi(_0x2461af,_0x5e7349,_0x8fcd76);const _0x25f6c5=new end_of_run_message_1[(a0_0x4ba5(a0_0x58a4('0x7a')))](_0x2461af,_0x8fcd76);const _0x18b889=new output_obfuscator_1[(a0_0x4ba5(a0_0x58a4('0x59')))]();const _0x1f6859=_0x164e06[a0_0x58a4('0x5')](_0x365af8=>_0x365af8[a0_0x4ba5(a0_0x58a4('0x51'))])[a0_0x4ba5(a0_0x58a4('0x50'))](_0x1a8948=>!!_0x1a8948);const _0x34301c=_0x3a18c0[a0_0x4ba5(a0_0x58a4('0x75'))](environment_1[a0_0x58a4('0x4f')],_0x1f6859);_0x1f6859[a0_0x58a4('0x52')](_0x295402=>{_0x8fcd76[a0_0x4ba5(a0_0x58a4('0x30'))][_0x295402]=_0x34301c;});const _0x48e3a6=new Date()['toISOString']();const _0x3adba1=new task_runner_life_cycle_1[(a0_0x4ba5('0x0'))](_0x8fcd76,_0x5e7349['cacheDirectory'],_0x5e7349[a0_0x58a4('0x72')]===undefined?!![]:_0x5e7349[a0_0x4ba5('0x2c')],_0x5e7349[a0_0x4ba5(a0_0x58a4('0x6e'))]||[],_0x18b889);const _0x411091=new e2e_encryption_1[(a0_0x4ba5('0x1f'))](environment_1[a0_0x58a4('0x1')]||_0x5e7349[a0_0x4ba5(a0_0x58a4('0x74'))]);const _0x13b0a4=new file_storage_1[(a0_0x4ba5(a0_0x58a4('0x6f')))](_0x411091,environment_1[a0_0x58a4('0x53')]);const _0x5b30fb=new cloud_remote_cache_1[(a0_0x4ba5(a0_0x58a4('0x8')))](_0x2461af,_0x3a18c0,_0x8fcd76,_0x13b0a4);delete process[a0_0x4ba5(a0_0x58a4('0x4c'))]['NX_CLOUD_DISTRIBUTED_EXECUTION_ID'];const _0x211bd6=(0x0,tasks_runner_v2_1[a0_0x4ba5('0x16')])(_0x164e06,Object['assign'](Object[a0_0x58a4('0x2')]({},_0x5e7349),{'remoteCache':_0x5b30fb,'lifeCycle':_0x3adba1}),_0x315e64);const _0x4677ea=new Subject_1[(a0_0x58a4('0x44'))]();_0x211bd6[a0_0x4ba5('0x44')]({'next':_0x1717d4=>_0x4677ea[a0_0x4ba5(a0_0x58a4('0x6c'))](_0x1717d4),'error':_0x2ea889=>_0x4677ea[a0_0x4ba5(a0_0x58a4('0x64'))](_0x2ea889),'complete':()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x119675=new Date()[a0_0x4ba5(a0_0x58a4('0x2d'))]();if(environment_1[a0_0x4ba5('0x36')]){const _0x4cdaf9=_0x3adba1[a0_0x4ba5('0x43')][a0_0x4ba5(a0_0x58a4('0x54'))](_0x5c0c8b=>{return Object[a0_0x4ba5(a0_0x58a4('0x77'))](Object[a0_0x58a4('0x2')]({},_0x5c0c8b),{'terminalOutput':_0x5c0c8b['terminalOutput']?_0x5c0c8b[a0_0x58a4('0x9')][a0_0x4ba5(a0_0x58a4('0x58'))](0x0,0x14)+a0_0x4ba5('0x4'):undefined});});output_1[a0_0x4ba5(a0_0x58a4('0x41'))][a0_0x4ba5(a0_0x58a4('0x13'))]({'title':a0_0x4ba5(a0_0x58a4('0x6b')),'bodyLines':['\x0a'+JSON[a0_0x4ba5(a0_0x58a4('0x57'))](_0x4cdaf9,null,0x2)]});}if(environment_1[a0_0x4ba5(a0_0x58a4('0x5a'))]){storeTaskHashes(_0x3adba1[a0_0x58a4('0x11')],_0x5e7349[a0_0x4ba5(a0_0x58a4('0x14'))]||a0_0x4ba5('0x34'));}const _0x5380fd=(0x0,environment_1[a0_0x58a4('0x7')])();const _0x27f4d0=yield Promise[a0_0x4ba5('0x6')]([_0x5b30fb[a0_0x4ba5(a0_0x58a4('0x7d'))](),_0x3a18c0[a0_0x4ba5(a0_0x58a4('0x1f'))]({'command':_0x18b889[a0_0x58a4('0x70')]((0x0,environment_1[a0_0x4ba5(a0_0x58a4('0x38'))])()),'startTime':_0x48e3a6,'endTime':_0x119675,'distributedExecutionId':environment_1[a0_0x4ba5(a0_0x58a4('0x78'))],'branch':_0x5380fd,'scan':!![],'runGroup':(0x0,environment_1[a0_0x4ba5(a0_0x58a4('0x71'))])(),'sha':_0x5380fd?(0x0,environment_1[a0_0x4ba5(a0_0x58a4('0x26'))])():undefined},_0x3adba1[a0_0x4ba5(a0_0x58a4('0x21'))])]);_0x2461af[a0_0x4ba5(a0_0x58a4('0xf'))]();_0x25f6c5[a0_0x4ba5(a0_0x58a4('0x21'))]=_0x3adba1[a0_0x4ba5(a0_0x58a4('0x21'))];if(environment_1[a0_0x4ba5(a0_0x58a4('0x5a'))]){if(!_0x27f4d0[0x0]){output_1[a0_0x4ba5(a0_0x58a4('0x41'))][a0_0x4ba5(a0_0x58a4('0x64'))]({'title':'Agent\x20wasn\x27t\x20able\x20to\x20store\x20artifacts'});process[a0_0x4ba5(a0_0x58a4('0x5c'))](environment_1[a0_0x4ba5(a0_0x58a4('0x34'))]);}if(!_0x27f4d0[0x1]){output_1[a0_0x4ba5(a0_0x58a4('0x41'))][a0_0x58a4('0x3e')]({'title':a0_0x4ba5('0x39')});process[a0_0x58a4('0x3d')](environment_1[a0_0x4ba5(a0_0x58a4('0x34'))]);}}try{yield(0x0,metric_logger_1[a0_0x4ba5(a0_0x58a4('0x65'))])(_0x5e7349);}catch(_0x46b304){}_0x4677ea[a0_0x4ba5(a0_0x58a4('0x43'))]();})});return _0x4677ea;}exports[a0_0x4ba5(a0_0x58a4('0x68'))]=cloudEnabledTasksRunner;
|
|
1
|
+
const a0_0x2d97=['CloudRemoteCache','complete','ENCRYPTION_KEY','endRun','cloudEnabledTasksRunner','../../terminal-output/end-of-run-message','__awaiter','../../../utilities/metric-logger','next','slice','requests','assign','terminalOutput','E2EEncryption','scan','obfuscate','parseCommand','../../terminal-output/output-obfuscator','join','FileStorage','../../../utilities/environment','path','stringify','TaskRunnerLifeCycle','tasks','getRunGroup','NX_CLOUD_DISTRIBUTED_EXECUTION_ID','./cloud-run.api','filter','VERBOSE_LOGGING','EndOfRunMessage','Executed\x20tasks\x20with\x20hashes:\x20','Completed\x20tasks','exit','error','printMessages','map','./cloud-remote-cache','forEach','Subject','../../terminal-output/message-reporter','hash','cacheableOperations','../../file-storage/file-storage','done','Agent\x20wasn\x27t\x20able\x20to\x20store\x20artifacts','NUMBER_OF_TRIES','tasks-hashes','submitRunMetrics','note','tasksRunnerV2','value','defineProperty','Agent\x20wasn\x27t\x20able\x20to\x20record\x20its\x20run','env','...','@nrwl/workspace/src/utilities/output','taskId','rxjs/internal/Subject','getMachineInfo','output','extractGitSha','apply','CloudRunApi','__esModule','then','../../file-storage/e2e-encryption','toISOString','all','writeFileSync','startRun'];(function(_0x246a78,_0x2d97e9){const _0xf79721=function(_0x5b3546){while(--_0x5b3546){_0x246a78['push'](_0x246a78['shift']());}};_0xf79721(++_0x2d97e9);}(a0_0x2d97,0xfd));const a0_0xf797=function(_0x246a78,_0x2d97e9){_0x246a78=_0x246a78-0x0;let _0xf79721=a0_0x2d97[_0x246a78];return _0xf79721;};'use strict';var __awaiter=this&&this[a0_0xf797('0x25')]||function(_0x8bddb9,_0x284147,_0x4c1705,_0x522ad7){function _0x30b27a(_0xc92683){return _0xc92683 instanceof _0x4c1705?_0xc92683:new _0x4c1705(function(_0x576f8a){_0x576f8a(_0xc92683);});}return new(_0x4c1705||(_0x4c1705=Promise))(function(_0x5b1a5d,_0x5675a2){function _0x34ab07(_0xd5776b){try{_0x22b9cb(_0x522ad7[a0_0xf797('0x27')](_0xd5776b));}catch(_0x40ed8c){_0x5675a2(_0x40ed8c);}}function _0x560255(_0x24bc29){try{_0x22b9cb(_0x522ad7['throw'](_0x24bc29));}catch(_0x57f69b){_0x5675a2(_0x57f69b);}}function _0x22b9cb(_0x5dba55){_0x5dba55[a0_0xf797('0x4')]?_0x5b1a5d(_0x5dba55[a0_0xf797('0xb')]):_0x30b27a(_0x5dba55[a0_0xf797('0xb')])[a0_0xf797('0x19')](_0x34ab07,_0x560255);}_0x22b9cb((_0x522ad7=_0x522ad7[a0_0xf797('0x16')](_0x8bddb9,_0x284147||[]))[a0_0xf797('0x27')]());});};Object[a0_0xf797('0xc')](exports,a0_0xf797('0x18'),{'value':!![]});exports[a0_0xf797('0x23')]=void 0x0;const Subject_1=require(a0_0xf797('0x12'));const message_reporter_1=require(a0_0xf797('0x0'));const end_of_run_message_1=require(a0_0xf797('0x24'));const output_obfuscator_1=require(a0_0xf797('0x30'));const task_runner_life_cycle_1=require('./task-runner-life-cycle');const file_storage_1=require(a0_0xf797('0x3'));const e2e_encryption_1=require(a0_0xf797('0x1a'));const environment_1=require(a0_0xf797('0x33'));const cloud_remote_cache_1=require(a0_0xf797('0x44'));const tasks_runner_v2_1=require('@nrwl/workspace/src/tasks-runner/tasks-runner-v2');const output_1=require(a0_0xf797('0x10'));const cloud_run_api_1=require(a0_0xf797('0x3a'));const fs_1=require('fs');const path=require(a0_0xf797('0x34'));const metric_logger_1=require(a0_0xf797('0x26'));function createApi(_0x3393a2,_0x198d27,_0x21333c){const _0x4e8b2c=(0x0,environment_1[a0_0xf797('0x13')])(_0x198d27);return new cloud_run_api_1[(a0_0xf797('0x17'))](_0x3393a2,_0x21333c,_0x198d27,_0x4e8b2c);}function storeTaskHashes(_0x7cb4cb,_0x4f0053){const _0x5bf0b3=JSON[a0_0xf797('0x35')](_0x7cb4cb[a0_0xf797('0x43')](_0x2d5d45=>({'taskId':_0x2d5d45[a0_0xf797('0x11')],'hash':_0x2d5d45[a0_0xf797('0x1')]})));if(environment_1[a0_0xf797('0x3c')]){output_1['output'][a0_0xf797('0x9')]({'title':a0_0xf797('0x3e')+_0x5bf0b3});}(0x0,fs_1[a0_0xf797('0x1d')])(path[a0_0xf797('0x31')](_0x4f0053,a0_0xf797('0x7')),_0x5bf0b3);}function cloudEnabledTasksRunner(_0x377cf8,_0x3de7cc,_0x41d202){const _0x368ce9={'statuses':{},'scheduledTasks':[],'requests':{},'allTasks':_0x377cf8};const _0x28512a=new message_reporter_1['MessageReporter'](_0x3de7cc);const _0x1aa068=createApi(_0x28512a,_0x3de7cc,_0x368ce9);const _0x554b60=new end_of_run_message_1[(a0_0xf797('0x3d'))](_0x28512a,_0x368ce9);const _0x5add1f=new output_obfuscator_1['OutputObfuscator']();const _0x3bf8e6=_0x377cf8[a0_0xf797('0x43')](_0x2589cc=>_0x2589cc[a0_0xf797('0x1')])[a0_0xf797('0x3b')](_0x46d531=>!!_0x46d531);const _0x281d1f=_0x1aa068[a0_0xf797('0x1e')](environment_1['NX_CLOUD_DISTRIBUTED_EXECUTION_ID'],_0x3bf8e6);_0x3bf8e6[a0_0xf797('0x45')](_0x21c300=>{_0x368ce9[a0_0xf797('0x29')][_0x21c300]=_0x281d1f;});const _0x58c7dc=new Date()[a0_0xf797('0x1b')]();const _0xcb61fe=new task_runner_life_cycle_1[(a0_0xf797('0x36'))](_0x368ce9,_0x3de7cc['cacheDirectory'],_0x3de7cc[a0_0xf797('0x2d')]===undefined?!![]:_0x3de7cc[a0_0xf797('0x2d')],_0x3de7cc[a0_0xf797('0x2')]||[],_0x5add1f);const _0x295a3a=new e2e_encryption_1[(a0_0xf797('0x2c'))](environment_1[a0_0xf797('0x21')]||_0x3de7cc['encryptionKey']);const _0x2653b=new file_storage_1[(a0_0xf797('0x32'))](_0x295a3a,environment_1[a0_0xf797('0x6')]);const _0x123634=new cloud_remote_cache_1[(a0_0xf797('0x1f'))](_0x28512a,_0x1aa068,_0x368ce9,_0x2653b);delete process[a0_0xf797('0xe')][a0_0xf797('0x39')];const _0x57e12f=(0x0,tasks_runner_v2_1[a0_0xf797('0xa')])(_0x377cf8,Object[a0_0xf797('0x2a')](Object['assign']({},_0x3de7cc),{'remoteCache':_0x123634,'lifeCycle':_0xcb61fe}),_0x41d202);const _0x9cc5a5=new Subject_1[(a0_0xf797('0x46'))]();_0x57e12f['subscribe']({'next':_0x1bfe57=>_0x9cc5a5[a0_0xf797('0x27')](_0x1bfe57),'error':_0x460689=>_0x9cc5a5[a0_0xf797('0x41')](_0x460689),'complete':()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x4ead9c=new Date()[a0_0xf797('0x1b')]();if(environment_1[a0_0xf797('0x3c')]){const _0x16c26a=_0xcb61fe[a0_0xf797('0x37')][a0_0xf797('0x43')](_0x751d72=>{return Object[a0_0xf797('0x2a')](Object['assign']({},_0x751d72),{'terminalOutput':_0x751d72[a0_0xf797('0x2b')]?_0x751d72[a0_0xf797('0x2b')][a0_0xf797('0x28')](0x0,0x14)+a0_0xf797('0xf'):undefined});});output_1[a0_0xf797('0x14')][a0_0xf797('0x9')]({'title':a0_0xf797('0x3f'),'bodyLines':['\x0a'+JSON[a0_0xf797('0x35')](_0x16c26a,null,0x2)]});}if(environment_1['AGENT_RUNNING_IN_DISTRIBUTED_EXECUTION']){storeTaskHashes(_0xcb61fe[a0_0xf797('0x37')],_0x3de7cc['cacheDirectory']||'./node_modules/.cache/nx');}const _0x146843=(0x0,environment_1['getBranch'])();const _0x2bb7f7=yield Promise[a0_0xf797('0x1c')]([_0x123634['waitForStoreRequestsToComplete'](),_0x1aa068[a0_0xf797('0x22')]({'command':_0x5add1f[a0_0xf797('0x2e')]((0x0,environment_1[a0_0xf797('0x2f')])()),'startTime':_0x58c7dc,'endTime':_0x4ead9c,'distributedExecutionId':environment_1['NX_CLOUD_DISTRIBUTED_EXECUTION_ID'],'branch':_0x146843,'scan':!![],'runGroup':(0x0,environment_1[a0_0xf797('0x38')])(),'sha':_0x146843?(0x0,environment_1[a0_0xf797('0x15')])():undefined},_0xcb61fe[a0_0xf797('0x37')])]);_0x28512a[a0_0xf797('0x42')]();_0x554b60[a0_0xf797('0x37')]=_0xcb61fe['tasks'];if(environment_1['AGENT_RUNNING_IN_DISTRIBUTED_EXECUTION']){if(!_0x2bb7f7[0x0]){output_1['output'][a0_0xf797('0x41')]({'title':a0_0xf797('0x5')});process[a0_0xf797('0x40')](environment_1['DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE']);}if(!_0x2bb7f7[0x1]){output_1[a0_0xf797('0x14')][a0_0xf797('0x41')]({'title':a0_0xf797('0xd')});process[a0_0xf797('0x40')](environment_1['DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE']);}}try{yield(0x0,metric_logger_1[a0_0xf797('0x8')])(_0x3de7cc);}catch(_0x3e791d){}_0x9cc5a5[a0_0xf797('0x20')]();})});return _0x9cc5a5;}exports[a0_0xf797('0x23')]=cloudEnabledTasksRunner;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x217f=['reduce','@nrwl/workspace/src/utilities/output','api','status','NX_CLOUD_DISTRIBUTED_EXECUTION_ID','then','output','waitForStoreRequestsToComplete','axiosException','messages','retrieve','forEach','throw','../../../utilities/environment','indexOf','runContext','__esModule','requests','next','filter','note','statuses','scheduledTasks','VERBOSE_LOGGING','cacheError','hash','push','resolve','Nx\x20Cloud:\x20Cache\x20miss\x20','.\x20Read\x20only\x20token\x20is\x20used.','remote-cache-hit','defineProperty','storeRequests','value','put','fileStorage','CloudRemoteCache','get','apply','__awaiter','map','response','storage','all','Nx\x20Cloud:\x20Skipping\x20storing\x20','extractErrorMessage','store','hashUrls'];(function(_0x151f27,_0x217f31){const _0x5e4fe3=function(_0x257ed8){while(--_0x257ed8){_0x151f27['push'](_0x151f27['shift']());}};_0x5e4fe3(++_0x217f31);}(a1_0x217f,0xbc));const a1_0x5e4f=function(_0x151f27,_0x217f31){_0x151f27=_0x151f27-0x0;let _0x5e4fe3=a1_0x217f[_0x151f27];return _0x5e4fe3;};'use strict';var __awaiter=this&&this[a1_0x5e4f('0x2b')]||function(_0x2df8d7,_0x23b8ff,_0x11a5f0,_0x1847bd){function _0x1556b9(_0x41b001){return _0x41b001 instanceof _0x11a5f0?_0x41b001:new _0x11a5f0(function(_0x316152){_0x316152(_0x41b001);});}return new(_0x11a5f0||(_0x11a5f0=Promise))(function(_0x2bd98d,_0x3ebda6){function _0x5602ae(_0x4d084b){try{_0x1de3b7(_0x1847bd[a1_0x5e4f('0x16')](_0x4d084b));}catch(_0x4811e5){_0x3ebda6(_0x4811e5);}}function _0x4bb6fa(_0x5b06eb){try{_0x1de3b7(_0x1847bd[a1_0x5e4f('0x10')](_0x5b06eb));}catch(_0x2f0f19){_0x3ebda6(_0x2f0f19);}}function _0x1de3b7(_0x26447e){_0x26447e['done']?_0x2bd98d(_0x26447e[a1_0x5e4f('0x25')]):_0x1556b9(_0x26447e[a1_0x5e4f('0x25')])['then'](_0x5602ae,_0x4bb6fa);}_0x1de3b7((_0x1847bd=_0x1847bd[a1_0x5e4f('0x2a')](_0x2df8d7,_0x23b8ff||[]))[a1_0x5e4f('0x16')]());});};Object[a1_0x5e4f('0x23')](exports,a1_0x5e4f('0x14'),{'value':!![]});exports[a1_0x5e4f('0x28')]=void 0x0;const output_1=require(a1_0x5e4f('0x5'));const environment_1=require(a1_0x5e4f('0x11'));class CloudRemoteCache{constructor(_0x3f58ee,_0x31cc60,_0x52082a,_0x4a5cd9){this[a1_0x5e4f('0xd')]=_0x3f58ee;this[a1_0x5e4f('0x6')]=_0x31cc60;this[a1_0x5e4f('0x13')]=_0x52082a;this['fileStorage']=_0x4a5cd9;this[a1_0x5e4f('0x24')]=[];}[a1_0x5e4f('0xe')](_0x38dc60,_0x155a2a){var _0x1e249e;return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a1_0x5e4f('0xd')][a1_0x5e4f('0x1c')])return![];const _0x2d2019=yield this['hashUrls'](_0x38dc60);if(!_0x2d2019||!_0x2d2019[a1_0x5e4f('0x29')]){if(environment_1[a1_0x5e4f('0x1b')]){output_1[a1_0x5e4f('0xa')][a1_0x5e4f('0x18')]({'title':a1_0x5e4f('0x20')+_0x38dc60+'.'});}this[a1_0x5e4f('0x13')]['statuses'][_0x38dc60]='cache-miss';return![];}try{yield this[a1_0x5e4f('0x27')][a1_0x5e4f('0xe')](_0x38dc60,_0x2d2019[a1_0x5e4f('0x29')],_0x155a2a);this[a1_0x5e4f('0x13')][a1_0x5e4f('0x19')][_0x38dc60]=a1_0x5e4f('0x22');return!![];}catch(_0x3b722c){const _0x28f24a=(_0x1e249e=_0x3b722c[a1_0x5e4f('0xc')])!==null&&_0x1e249e!==void 0x0?_0x1e249e:_0x3b722c;if(_0x28f24a[a1_0x5e4f('0x2d')]&&_0x28f24a[a1_0x5e4f('0x2d')][a1_0x5e4f('0x7')]===0x194){if(environment_1['VERBOSE_LOGGING']){output_1[a1_0x5e4f('0xa')]['note']({'title':a1_0x5e4f('0x20')+_0x38dc60+'.\x20Status\x20404.'});}}else{this[a1_0x5e4f('0xd')][a1_0x5e4f('0x1c')]=this[a1_0x5e4f('0xd')]['extractErrorMessage'](_0x28f24a,'storage');}this[a1_0x5e4f('0x13')][a1_0x5e4f('0x19')][_0x38dc60]='cache-miss';return![];}});}[a1_0x5e4f('0x2')](_0x224858,_0x288dd6){return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a1_0x5e4f('0xd')][a1_0x5e4f('0x1c')])return![];const _0x140740=Promise[a1_0x5e4f('0x1f')]()[a1_0x5e4f('0x9')](()=>__awaiter(this,void 0x0,void 0x0,function*(){var _0x5080de;const _0x35d2fe=yield this[a1_0x5e4f('0x3')](_0x224858);if(!_0x35d2fe)return![];if(!_0x35d2fe[a1_0x5e4f('0x26')]){if(environment_1[a1_0x5e4f('0x1b')]){output_1['output'][a1_0x5e4f('0x18')]({'title':a1_0x5e4f('0x0')+_0x224858+a1_0x5e4f('0x21')});}return!![];}try{yield this[a1_0x5e4f('0x27')][a1_0x5e4f('0x2')](_0x224858,_0x35d2fe[a1_0x5e4f('0x26')],_0x288dd6);return!![];}catch(_0x1ee276){const _0x1e0393=(_0x5080de=_0x1ee276[a1_0x5e4f('0xc')])!==null&&_0x5080de!==void 0x0?_0x5080de:_0x1ee276;this['messages'][a1_0x5e4f('0x1c')]=this[a1_0x5e4f('0xd')][a1_0x5e4f('0x1')](_0x1e0393,a1_0x5e4f('0x2e'));return![];}}));this[a1_0x5e4f('0x24')][a1_0x5e4f('0x1e')](_0x140740);return _0x140740;});}[a1_0x5e4f('0x3')](_0x4bc42c){return __awaiter(this,void 0x0,void 0x0,function*(){if(_0x4bc42c in this[a1_0x5e4f('0x13')]['requests']){return(yield this[a1_0x5e4f('0x13')][a1_0x5e4f('0x15')][_0x4bc42c])[_0x4bc42c];}else{const _0x644c7b=this[a1_0x5e4f('0x13')][a1_0x5e4f('0x1a')][a1_0x5e4f('0x17')](_0x36e077=>!this['runContext'][a1_0x5e4f('0x15')][_0x36e077[a1_0x5e4f('0x1d')]])[a1_0x5e4f('0x2c')](_0x447876=>_0x447876['hash']);if(_0x644c7b[a1_0x5e4f('0x12')](_0x4bc42c)===-0x1){_0x644c7b[a1_0x5e4f('0x1e')](_0x4bc42c);}const _0x4444c9=this[a1_0x5e4f('0x6')]['startRun'](environment_1[a1_0x5e4f('0x8')],_0x644c7b);_0x644c7b[a1_0x5e4f('0xf')](_0x5ce0f1=>{this[a1_0x5e4f('0x13')]['requests'][_0x5ce0f1]=_0x4444c9;});return(yield _0x4444c9)[_0x4bc42c];}});}[a1_0x5e4f('0xb')](){return Promise[a1_0x5e4f('0x2f')](this[a1_0x5e4f('0x24')])[a1_0x5e4f('0x9')](_0x38191d=>_0x38191d[a1_0x5e4f('0x4')]((_0x5c2ccc,_0x2cb0ea)=>_0x5c2ccc&&_0x2cb0ea,!![]));}}exports[a1_0x5e4f('0x28')]=CloudRemoteCache;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x18d7=['data','startRun','zlib','Stack\x20Trace:','unknown','apiAxiosInstance','axiosException','runUrl','promisify','throw','api','/nx-cloud/runs/start','apiError','parse','messages','string','nxCloudVersion','Invalid\x20end\x20run\x20response:\x20','headers','@nrwl/nx-cloud','../../../utilities/metric-logger','defineProperty','/nx-cloud/runs/end','createMetricRecorder','__esModule','Nx\x20Cloud:\x20Unknown\x20Error\x20Occurred','package.json','devDependencies','status','done','extractErrorMessage','runContext','VERBOSE_LOGGING','NUMBER_OF_TRIES','gzip','recordMetric','util','application/octet-stream','Invalid\x20end\x20run\x20response','Run\x20Details:','urls','getRunGroup','message','CloudRunApi','post','axiosMultipleTries','error','output','Invalid\x20Nx\x20Cloud\x20response:\x20','note','machineInfo','then','value','from','stringify','assign'];(function(_0x205f8e,_0x18d765){const _0x24f5b9=function(_0x4b61f0){while(--_0x4b61f0){_0x205f8e['push'](_0x205f8e['shift']());}};_0x24f5b9(++_0x18d765);}(a2_0x18d7,0xec));const a2_0x24f5=function(_0x205f8e,_0x18d765){_0x205f8e=_0x205f8e-0x0;let _0x24f5b9=a2_0x18d7[_0x205f8e];return _0x24f5b9;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x266887,_0x59ab5f,_0x455fc1,_0x22b77c){function _0x53f4b9(_0x5df25d){return _0x5df25d instanceof _0x455fc1?_0x5df25d:new _0x455fc1(function(_0xa57fd4){_0xa57fd4(_0x5df25d);});}return new(_0x455fc1||(_0x455fc1=Promise))(function(_0xc8d4a4,_0x256c0f){function _0x367b57(_0x67a388){try{_0x2ccde9(_0x22b77c['next'](_0x67a388));}catch(_0x577265){_0x256c0f(_0x577265);}}function _0x25fe22(_0xb7a055){try{_0x2ccde9(_0x22b77c[a2_0x24f5('0x35')](_0xb7a055));}catch(_0x5b928f){_0x256c0f(_0x5b928f);}}function _0x2ccde9(_0x1c8c60){_0x1c8c60[a2_0x24f5('0x11')]?_0xc8d4a4(_0x1c8c60[a2_0x24f5('0x28')]):_0x53f4b9(_0x1c8c60[a2_0x24f5('0x28')])[a2_0x24f5('0x27')](_0x367b57,_0x25fe22);}_0x2ccde9((_0x22b77c=_0x22b77c['apply'](_0x266887,_0x59ab5f||[]))['next']());});};Object[a2_0x24f5('0x9')](exports,a2_0x24f5('0xc'),{'value':!![]});exports[a2_0x24f5('0x1f')]=void 0x0;const output_1=require('@nrwl/workspace/src/utilities/output');const axios_1=require('../../../utilities/axios');const environment_1=require('../../../utilities/environment');const fs_1=require('fs');const zlib_1=require(a2_0x24f5('0x2e'));const util_1=require(a2_0x24f5('0x18'));const metric_logger_1=require(a2_0x24f5('0x8'));class CloudRunApi{constructor(_0x18cc12,_0x3bc1ae,_0x4818f7,_0x1f62b2){this['messages']=_0x18cc12;this['runContext']=_0x3bc1ae;this[a2_0x24f5('0x26')]=_0x1f62b2;this[a2_0x24f5('0x31')]=(0x0,axios_1['createApiAxiosInstance'])(_0x4818f7);}[a2_0x24f5('0x2d')](_0x5c1814,_0xd5af17){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x9c1fd2=(0x0,metric_logger_1['createMetricRecorder'])(a2_0x24f5('0x2d'));try{const _0x54edca=yield(0x0,axios_1[a2_0x24f5('0x21')])(()=>this['apiAxiosInstance']['post'](a2_0x24f5('0x37'),{'meta':{'nxCloudVersion':this[a2_0x24f5('0x4')]()},'branch':(0x0,environment_1['getBranch'])(),'runGroup':(0x0,environment_1[a2_0x24f5('0x1d')])(),'distributedExecutionId':_0x5c1814,'hashes':_0xd5af17}),environment_1[a2_0x24f5('0x15')]);_0x9c1fd2[a2_0x24f5('0x17')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x54edca));if(_0x54edca[a2_0x24f5('0x2c')]&&_0x54edca['data']['message']){this[a2_0x24f5('0x2')]['message']=_0x54edca[a2_0x24f5('0x2c')][a2_0x24f5('0x1e')];}if(!_0x54edca[a2_0x24f5('0x2c')]||!_0x54edca[a2_0x24f5('0x2c')][a2_0x24f5('0x1c')]){this['messages'][a2_0x24f5('0x0')]=a2_0x24f5('0x24')+JSON[a2_0x24f5('0x2a')](_0x54edca[a2_0x24f5('0x2c')]);return{};}return _0x54edca[a2_0x24f5('0x2c')][a2_0x24f5('0x1c')];}catch(_0x3dc18a){_0x9c1fd2['recordMetric'](metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);this[a2_0x24f5('0x2')]['apiError']=this[a2_0x24f5('0x2')][a2_0x24f5('0x12')](_0x3dc18a,a2_0x24f5('0x36'));return{};}});}['endRun'](_0xd347be,_0x47bbe3){var _0x38a25b;return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a2_0x24f5('0x2')][a2_0x24f5('0x0')])return![];const _0x438fd2={'meta':{'nxCloudVersion':this[a2_0x24f5('0x4')]()},'tasks':_0x47bbe3,'run':_0xd347be,'machineInfo':this['machineInfo']};const _0x59ed2b=Buffer[a2_0x24f5('0x29')](JSON['stringify'](_0x438fd2));const _0x2176fc=yield(0x0,util_1[a2_0x24f5('0x34')])(zlib_1[a2_0x24f5('0x16')])(_0x59ed2b);const _0x441acf=(0x0,metric_logger_1[a2_0x24f5('0xb')])('endRun');try{const _0x50db4f=yield(0x0,axios_1[a2_0x24f5('0x21')])(()=>this[a2_0x24f5('0x31')][a2_0x24f5('0x20')](a2_0x24f5('0xa'),_0x2176fc,{'headers':Object[a2_0x24f5('0x2b')](Object[a2_0x24f5('0x2b')]({},this[a2_0x24f5('0x31')]['defaults'][a2_0x24f5('0x6')]),{'Content-Encoding':a2_0x24f5('0x16'),'Content-Type':a2_0x24f5('0x19')})}),environment_1[a2_0x24f5('0x15')]);if(_0x50db4f){_0x441acf[a2_0x24f5('0x17')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x50db4f));if(_0x50db4f[a2_0x24f5('0x2c')]&&_0x50db4f[a2_0x24f5('0x2c')][a2_0x24f5('0x33')]&&_0x50db4f[a2_0x24f5('0x2c')][a2_0x24f5('0x10')]==='success'){this[a2_0x24f5('0x13')][a2_0x24f5('0x33')]=_0x50db4f[a2_0x24f5('0x2c')]['runUrl'];return!![];}if(_0x50db4f[a2_0x24f5('0x2c')]&&_0x50db4f[a2_0x24f5('0x2c')][a2_0x24f5('0x10')]){this['messages'][a2_0x24f5('0x0')]=a2_0x24f5('0x5')+JSON[a2_0x24f5('0x2a')](_0x50db4f[a2_0x24f5('0x2c')]['message']);}else if(_0x50db4f['data']&&typeof _0x50db4f['data']===a2_0x24f5('0x3')){if(_0x50db4f[a2_0x24f5('0x2c')]!=='success'){this[a2_0x24f5('0x2')]['apiError']=a2_0x24f5('0x5')+JSON['stringify'](_0x50db4f[a2_0x24f5('0x2c')]);}}else{this[a2_0x24f5('0x2')]['apiError']=a2_0x24f5('0x5')+JSON['stringify'](_0x50db4f[a2_0x24f5('0x2c')]);}if(environment_1[a2_0x24f5('0x14')]){output_1[a2_0x24f5('0x23')][a2_0x24f5('0x25')]({'title':a2_0x24f5('0x1a'),'bodyLines':[JSON[a2_0x24f5('0x2a')](_0x50db4f[a2_0x24f5('0x2c')],null,0x2)]});}}else{output_1[a2_0x24f5('0x23')][a2_0x24f5('0x22')]({'title':a2_0x24f5('0xd'),'bodyLines':['Run\x20completion\x20responded\x20with\x20`undefined`.',a2_0x24f5('0x1b'),JSON[a2_0x24f5('0x2a')](_0xd347be,null,0x2),a2_0x24f5('0x2f'),JSON['stringify'](new Error()['stack'],null,0x2)]});}return![];}catch(_0x35bf0b){_0x441acf[a2_0x24f5('0x17')](metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);const _0x303d86=(_0x38a25b=_0x35bf0b[a2_0x24f5('0x32')])!==null&&_0x38a25b!==void 0x0?_0x38a25b:_0x35bf0b;this['messages']['apiError']=this[a2_0x24f5('0x2')][a2_0x24f5('0x12')](_0x303d86,a2_0x24f5('0x36'));return![];}});}[a2_0x24f5('0x4')](){try{const _0x5b3eff=JSON[a2_0x24f5('0x1')]((0x0,fs_1['readFileSync'])(a2_0x24f5('0xe'))['toString']());return _0x5b3eff[a2_0x24f5('0xf')][a2_0x24f5('0x7')];}catch(_0x4be606){return a2_0x24f5('0x30');}}}exports[a2_0x24f5('0x1f')]=CloudRunApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x16b7=['toISOString','@nrwl/workspace/src/tasks-runner/utils','terminalOutputs','appRootPath','runContext','statuses','MAX_CHARACTERS_FAILED_TASK','MAX_CHARACTERS_CACHED_TASK','scheduledTasks','push','implicitDeps','startsWith','cleanUpHashDetails','readFileSync','getTerminalOutput','hashDetails','startTask','endTime','defineProperty','cacheStatus','tasks','join','obfuscate','scheduleTask','endTask','configuration','keys','unparse','status','cacheDirectory','cacheableOperations','params','TaskRunnerLifeCycle','outputObfuscator','node_modules','target','cache-miss','.cache','path','indexOf','nodes','project','terminalOutput','hash','@nrwl/workspace/src/utils/app-root','length','collectTerminalOutput','assign','toString','MAX_CHARACTERS_SUCCESSFUL_TASK','filter','Cannot\x20find\x20task\x20','find','local-cache-hit','TRUNCATED\x0a\x0a'];(function(_0x2f0509,_0x16b705){const _0x172ff1=function(_0x36b84f){while(--_0x36b84f){_0x2f0509['push'](_0x2f0509['shift']());}};_0x172ff1(++_0x16b705);}(a3_0x16b7,0x129));const a3_0x172f=function(_0x2f0509,_0x16b705){_0x2f0509=_0x2f0509-0x0;let _0x172ff1=a3_0x16b7[_0x2f0509];return _0x172ff1;};'use strict';Object[a3_0x172f('0x33')](exports,'__esModule',{'value':!![]});exports[a3_0x172f('0xa')]=void 0x0;const utils_1=require(a3_0x172f('0x22'));const path_1=require('path');const app_root_1=require(a3_0x172f('0x16'));const fs_1=require('fs');const path=require(a3_0x172f('0x10'));class TaskRunnerLifeCycle{constructor(_0x21203f,_0x1209c6,_0x3a5ed7,_0x15f0f6,_0x540c56){this[a3_0x172f('0x25')]=_0x21203f;this['cacheDirectory']=_0x1209c6;this[a3_0x172f('0x18')]=_0x3a5ed7;this['cacheableOperations']=_0x15f0f6;this['outputObfuscator']=_0x540c56;this['tasks']=[];}[a3_0x172f('0x1')](_0x414704){this[a3_0x172f('0x25')][a3_0x172f('0x29')]['push'](_0x414704);}[a3_0x172f('0x31')](_0x5ded3e){const _0x24c78c=Object[a3_0x172f('0x19')]({},_0x5ded3e['overrides']||{});if(_0x5ded3e[a3_0x172f('0xd')][a3_0x172f('0x3')]){_0x24c78c[a3_0x172f('0x3')]=_0x5ded3e[a3_0x172f('0xd')][a3_0x172f('0x3')];}this[a3_0x172f('0x35')][a3_0x172f('0x2a')]({'taskId':_0x5ded3e['id'],'startTime':new Date()['toISOString'](),'target':_0x5ded3e[a3_0x172f('0xd')][a3_0x172f('0xd')],'projectName':_0x5ded3e[a3_0x172f('0xd')][a3_0x172f('0x13')],'hash':_0x5ded3e[a3_0x172f('0x15')],'hashDetails':this['cleanUpHashDetails'](_0x5ded3e[a3_0x172f('0x30')]),'params':(0x0,utils_1[a3_0x172f('0x5')])(_0x24c78c)[a3_0x172f('0x36')]('\x20')});}[a3_0x172f('0x2')](_0x342fb8,_0x543204){const _0x379673=this['tasks'][a3_0x172f('0x1e')](_0x1f42f8=>_0x1f42f8['taskId']===_0x342fb8['id']);if(!_0x379673){throw new Error(a3_0x172f('0x1d')+_0x342fb8['id']);}_0x379673[a3_0x172f('0x32')]=new Date()[a3_0x172f('0x21')]();_0x379673[a3_0x172f('0x6')]=_0x543204;_0x379673[a3_0x172f('0x9')]=this[a3_0x172f('0xb')][a3_0x172f('0x0')](_0x379673['params']);if(this[a3_0x172f('0x25')]['statuses'][_0x342fb8[a3_0x172f('0x15')]]){_0x379673[a3_0x172f('0x34')]=this[a3_0x172f('0x25')][a3_0x172f('0x26')][_0x342fb8[a3_0x172f('0x15')]];}else{if(this[a3_0x172f('0x8')][a3_0x172f('0x11')](_0x342fb8[a3_0x172f('0xd')]['target'])>-0x1){_0x379673[a3_0x172f('0x34')]=a3_0x172f('0x1f');}else{_0x379673[a3_0x172f('0x34')]=a3_0x172f('0xe');}}if(this[a3_0x172f('0x18')]){_0x379673[a3_0x172f('0x14')]=this[a3_0x172f('0x2f')](_0x342fb8[a3_0x172f('0x15')],_0x379673[a3_0x172f('0x34')],_0x543204);}}[a3_0x172f('0x2f')](_0x251f4e,_0xa85034,_0x5421ed){let _0x2c1a70;if(this[a3_0x172f('0x7')]){if(this['cacheDirectory']['startsWith']('./')){_0x2c1a70=(0x0,path_1[a3_0x172f('0x36')])(app_root_1['appRootPath'],this[a3_0x172f('0x7')]);}else{_0x2c1a70=this[a3_0x172f('0x7')];}}else{_0x2c1a70=(0x0,path_1[a3_0x172f('0x36')])(app_root_1[a3_0x172f('0x24')],a3_0x172f('0xc'),a3_0x172f('0xf'),'nx');}try{const _0xa420f7=this['readTerminalOutputFile'](_0x2c1a70,_0x251f4e);const _0x5079af=this[a3_0x172f('0xb')]['obfuscate'](_0xa420f7);const _0x9d9bf8=_0xa85034===a3_0x172f('0xe')?_0x5421ed===0x0?TaskRunnerLifeCycle[a3_0x172f('0x1b')]:TaskRunnerLifeCycle[a3_0x172f('0x27')]:TaskRunnerLifeCycle[a3_0x172f('0x28')];return _0x5079af[a3_0x172f('0x17')]>_0x9d9bf8?a3_0x172f('0x20')+_0x5079af['slice'](_0x5079af[a3_0x172f('0x17')]-_0x9d9bf8):_0x5079af;}catch(_0x23dcbb){return'';}}[a3_0x172f('0x2d')](_0x1153d4){const _0x2ab7d3={};Object[a3_0x172f('0x4')](_0x1153d4[a3_0x172f('0x12')])[a3_0x172f('0x1c')](_0x1b2d1b=>!_0x1b2d1b[a3_0x172f('0x2c')]('npm:'))['forEach'](_0x311f3e=>{_0x2ab7d3[_0x311f3e]=_0x1153d4[a3_0x172f('0x12')][_0x311f3e];});return{'nodes':_0x2ab7d3,'runtime':_0x1153d4['runtime'],'implicitDeps':_0x1153d4[a3_0x172f('0x2b')]};}['readTerminalOutputFile'](_0x2fe601,_0x2dea5b){try{return(0x0,fs_1[a3_0x172f('0x2e')])(path['join'](_0x2fe601,a3_0x172f('0x23'),_0x2dea5b))['toString']();}catch(_0x5673eb){try{return(0x0,fs_1[a3_0x172f('0x2e')])(path[a3_0x172f('0x36')](_0x2fe601,_0x2dea5b,'terminalOutput'))[a3_0x172f('0x1a')]();}catch(_0x3d77d1){return'';}}}}exports[a3_0x172f('0xa')]=TaskRunnerLifeCycle;TaskRunnerLifeCycle[a3_0x172f('0x27')]=0x30d40;TaskRunnerLifeCycle[a3_0x172f('0x1b')]=0x4e20;TaskRunnerLifeCycle[a3_0x172f('0x28')]=0x1388;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x4dc3=['../../../utilities/environment','post','mapRespToPerfEntry','/nx-cloud/executions/tasks','apply','value','/nx-cloud/executions/complete-run-group','data','dtePollTasks','note','completeRunGroup','Completed\x20run\x20group\x20with\x20an\x20error','next','output','agentName','runGroup','RUNNER_FAILURE_PERF_ENTRY','then','runGroup:\x20','error','recordMetric','../../../utilities/metric-logger','apiAxiosInstance','axiosMultipleTries','__awaiter','completeRunGroupWithError','__esModule','DistributedAgentApi','tasks','VERBOSE_LOGGING','done'];(function(_0x103304,_0x4dc360){const _0x1ea962=function(_0x39e80b){while(--_0x39e80b){_0x103304['push'](_0x103304['shift']());}};_0x1ea962(++_0x4dc360);}(a4_0x4dc3,0x68));const a4_0x1ea9=function(_0x103304,_0x4dc360){_0x103304=_0x103304-0x0;let _0x1ea962=a4_0x4dc3[_0x103304];return _0x1ea962;};'use strict';var __awaiter=this&&this[a4_0x1ea9('0xd')]||function(_0x218b6c,_0x4e0bc6,_0x1a0d0,_0x572bc1){function _0x3a97d2(_0x216f38){return _0x216f38 instanceof _0x1a0d0?_0x216f38:new _0x1a0d0(function(_0x2dbf53){_0x2dbf53(_0x216f38);});}return new(_0x1a0d0||(_0x1a0d0=Promise))(function(_0xeea2dd,_0xe2e431){function _0x3924a4(_0x3de62b){try{_0x58467f(_0x572bc1[a4_0x1ea9('0x1')](_0x3de62b));}catch(_0x160cd2){_0xe2e431(_0x160cd2);}}function _0x37b3c1(_0x228e90){try{_0x58467f(_0x572bc1['throw'](_0x228e90));}catch(_0x7a77ca){_0xe2e431(_0x7a77ca);}}function _0x58467f(_0x254efb){_0x254efb[a4_0x1ea9('0x13')]?_0xeea2dd(_0x254efb[a4_0x1ea9('0x19')]):_0x3a97d2(_0x254efb[a4_0x1ea9('0x19')])[a4_0x1ea9('0x6')](_0x3924a4,_0x37b3c1);}_0x58467f((_0x572bc1=_0x572bc1[a4_0x1ea9('0x18')](_0x218b6c,_0x4e0bc6||[]))['next']());});};Object['defineProperty'](exports,a4_0x1ea9('0xf'),{'value':!![]});exports[a4_0x1ea9('0x10')]=void 0x0;const output_1=require('@nrwl/workspace/src/utilities/output');const axios_1=require('../../../utilities/axios');const environment_1=require(a4_0x1ea9('0x14'));const metric_logger_1=require(a4_0x1ea9('0xa'));class DistributedAgentApi{constructor(_0x28eb85,_0x2378c2,_0x4cedc9){this[a4_0x1ea9('0x4')]=_0x2378c2;this[a4_0x1ea9('0x3')]=_0x4cedc9;this[a4_0x1ea9('0xb')]=(0x0,axios_1['createApiAxiosInstance'])(_0x28eb85);}[a4_0x1ea9('0x11')](_0x43ddff,_0x44f6b6,_0xb88e89){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x510e01=(0x0,metric_logger_1['createMetricRecorder'])(a4_0x1ea9('0x1c'));try{const _0x1e5d0f=yield(0x0,axios_1[a4_0x1ea9('0xc')])(()=>this[a4_0x1ea9('0xb')][a4_0x1ea9('0x15')](a4_0x1ea9('0x17'),{'runGroup':this['runGroup'],'agentName':this[a4_0x1ea9('0x3')],'executionId':_0x43ddff,'statusCode':_0x44f6b6,'completedTasks':_0xb88e89}),0x1e);_0x510e01[a4_0x1ea9('0x9')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x1e5d0f));return _0x1e5d0f[a4_0x1ea9('0x1b')];}catch(_0x22e8a7){_0x510e01[a4_0x1ea9('0x9')](metric_logger_1[a4_0x1ea9('0x5')]);throw _0x22e8a7;}});}[a4_0x1ea9('0xe')](_0x4609b5){return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1[a4_0x1ea9('0x12')]){output_1['output'][a4_0x1ea9('0x1d')]({'title':'Completing\x20run\x20group\x20with\x20an\x20error','bodyLines':[a4_0x1ea9('0x7')+this[a4_0x1ea9('0x4')],'error:\x20'+_0x4609b5]});}const _0x2537b1=(0x0,metric_logger_1['createMetricRecorder'])(a4_0x1ea9('0x1e'));try{const _0x55ac88=yield(0x0,axios_1['axiosMultipleTries'])(()=>this[a4_0x1ea9('0xb')][a4_0x1ea9('0x15')](a4_0x1ea9('0x1a'),{'runGroup':this['runGroup'],'agentName':this[a4_0x1ea9('0x3')],'criticalErrorMessage':_0x4609b5}),0x3);if(environment_1[a4_0x1ea9('0x12')]){output_1[a4_0x1ea9('0x2')][a4_0x1ea9('0x1d')]({'title':a4_0x1ea9('0x0')});}_0x2537b1[a4_0x1ea9('0x9')]((0x0,metric_logger_1[a4_0x1ea9('0x16')])(_0x55ac88));}catch(_0x6e8a7b){_0x2537b1[a4_0x1ea9('0x9')](metric_logger_1[a4_0x1ea9('0x5')]);console[a4_0x1ea9('0x8')](_0x6e8a7b);}});}}exports['DistributedAgentApi']=DistributedAgentApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5_0x4ab1=['0x18','This\x20can\x20also\x20be\x20a\x20false\x20positive\x20caused\x20by\x20agents\x20that\x20did\x20not\x20shut\x20down\x20correctly.','Executing:\x20\x27','0x35','0x1a','0x27','inherit','0x39','./node_modules/.cache/nx','retryDuring','completedStatusCode','../../error/print-run-group-error','reset','../../../utilities/metric-logger','Distributed\x20Execution\x20Terminated','Critical\x20Error\x20in\x20Agent:\x20\x22','0x24','throw','cacheDirectory','Error:','value','0x1e','0x4f','0x11','CIRCLE_STAGE','error:\x20','Starting\x20an\x20agent\x20for\x20running\x20Nx\x20tasks','__awaiter','0x4e','0x21','NX_AGENT_NAME','number\x20of\x20tasks:\x20','../../../utilities/environment','executionId','0x13','0xf','0x2a','/tasks-hashes','0x1f','criticalErrorMessage','0x28','0x2d','random','0x3','@nrwl/workspace/src/utilities/output','0x40','We\x20have\x20detected\x20another\x20agent\x20with\x20this\x20ID\x20running\x20in\x20this\x20workspace.\x20This\x20should\x20not\x20happen.','0x3a','/lockfiles','readdirSync','0x51','0xc','0x16','0x4b','nx.json','CIRCLECI','Waiting...','0x4d','message','0x47','0x7','completedTasks','0x3e','0x1d','0x2c','0x32','0x22','completeRunGroupWithError','0x9','__esModule','0x52','0x46','0x30','\x20--projects=','0x19','then','0x4a','forEach','--configuration=','status','0x23','error','length','Command\x20execution\x20failed.\x20Tasks\x20hashes\x20haven\x27t\x20been\x20recorded.','0x50','apply','floor','0x42','catch','../../../utilities/create-no-new-messages-timeout','strip-json-comments','0x8','0x38','startAgent','.lock','0x12','target','parse','0x49','\x20--parallel\x20--max-parallel=','default','maxParallel','0x31','env','VERBOSE_LOGGING','0x36','0x10','next','printRunGroupError','Other\x20Nx\x20Cloud\x20Agents\x20Detected','0x34','done','0x5','0x2b','0xb','taskId','configuration','0x3c','tasks','DistributedAgentApi','0x43','existsSync','Duplicate\x20Agent\x20ID\x20Detected','getTime','0x29','0xe','push','shift','mkdirSync','projectName','0x48','toString','0x44','0x26','We\x20have\x20detected\x20other\x20agents\x20running\x20in\x20this\x20workspace.\x20This\x20can\x20cause\x20unexpected\x20behavior.','find','warn','0x2f','maxParallel:\x20','params','note','writeFileSync','output','executionId:\x20','retryDuring:\x20','API\x20Response','readFileSync','join','true','0x20','0x25','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE'];(function(_0x4353c4,_0x4ab121){const _0x25d747=function(_0x13b543){while(--_0x13b543){_0x4353c4['push'](_0x4353c4['shift']());}};_0x25d747(++_0x4ab121);}(a5_0x4ab1,0x17f));const a5_0x25d7=function(_0x4353c4,_0x4ab121){_0x4353c4=_0x4353c4-0x0;let _0x25d747=a5_0x4ab1[_0x4353c4];return _0x25d747;};const a5_0x3116=[a5_0x25d7('0x75'),a5_0x25d7('0x4a'),'exit',a5_0x25d7('0x70'),a5_0x25d7('0x5a'),a5_0x25d7('0x61'),'projects',a5_0x25d7('0x69'),a5_0x25d7('0x34'),a5_0x25d7('0x3b'),a5_0x25d7('0x56'),'assign',a5_0x25d7('0x6a'),'If\x20you\x20believe\x20this\x20is\x20the\x20case,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22.','execSync',a5_0x25d7('0x2a'),a5_0x25d7('0x12'),a5_0x25d7('0x7f'),a5_0x25d7('0x11'),a5_0x25d7('0x5c'),'completed:\x20',a5_0x25d7('0x2b'),a5_0x25d7('0x2c'),'getRunGroup','completed','push',a5_0x25d7('0x77'),a5_0x25d7('0x80'),a5_0x25d7('0x28'),a5_0x25d7('0x6'),a5_0x25d7('0x40'),a5_0x25d7('0x51'),a5_0x25d7('0x86'),'child_process',a5_0x25d7('0x39'),'./distributed-agent.api',a5_0x25d7('0x55'),a5_0x25d7('0x4b'),a5_0x25d7('0x31'),a5_0x25d7('0x7a'),a5_0x25d7('0x43'),a5_0x25d7('0x92'),'wait','End\x20all\x20currently\x20running\x20agents,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22,\x20and\x20try\x20again.',a5_0x25d7('0x1c'),a5_0x25d7('0x62'),'Fetching\x20tasks...',a5_0x25d7('0x83'),'npx\x20nx\x20run-many\x20--target=',a5_0x25d7('0x3c'),a5_0x25d7('0x48'),a5_0x25d7('0x25'),a5_0x25d7('0x52'),a5_0x25d7('0x94'),a5_0x25d7('0x42'),a5_0x25d7('0x96'),a5_0x25d7('0x7'),'VERBOSE_LOGGING','length',a5_0x25d7('0xf'),a5_0x25d7('0x63'),a5_0x25d7('0x5d'),a5_0x25d7('0x9'),a5_0x25d7('0x81'),a5_0x25d7('0x0'),a5_0x25d7('0x5b'),'createNoNewMessagesTimeout',a5_0x25d7('0x67'),a5_0x25d7('0x58'),a5_0x25d7('0x38'),a5_0x25d7('0x2'),a5_0x25d7('0x18'),a5_0x25d7('0xb'),a5_0x25d7('0x27'),a5_0x25d7('0x79'),'unlinkSync',a5_0x25d7('0x97'),'startAgent',a5_0x25d7('0x3f'),'maxParallel',a5_0x25d7('0x32'),a5_0x25d7('0x20'),a5_0x25d7('0x44'),'includes'];(function(_0x4b969f,_0x2194e4){const _0x58ce77=function(_0x3c4bdc){while(--_0x3c4bdc){_0x4b969f[a5_0x25d7('0x2f')](_0x4b969f[a5_0x25d7('0x30')]());}};_0x58ce77(++_0x2194e4);}(a5_0x3116,0xaf));const a5_0x2e94=function(_0x245b2,_0x4accda){_0x245b2=_0x245b2-0x0;let _0x30fa61=a5_0x3116[_0x245b2];return _0x30fa61;};'use\x20strict';var __awaiter=this&&this[a5_0x25d7('0x64')]||function(_0x3dae36,_0x4c0eda,_0x58b6db,_0x1b6891){function _0x45f597(_0x5349ef){return _0x5349ef instanceof _0x58b6db?_0x5349ef:new _0x58b6db(function(_0x2d3d45){_0x2d3d45(_0x5349ef);});}return new(_0x58b6db||(_0x58b6db=Promise))(function(_0x5ce360,_0x5d774a){function _0x5d187e(_0x3128f5){try{_0x478975(_0x1b6891[a5_0x2e94(a5_0x25d7('0x47'))](_0x3128f5));}catch(_0x25dee7){_0x5d774a(_0x25dee7);}}function _0x37b3c9(_0x1a4e3c){try{_0x478975(_0x1b6891[a5_0x2e94(a5_0x25d7('0x7b'))](_0x1a4e3c));}catch(_0xce4f45){_0x5d774a(_0xce4f45);}}function _0x478975(_0x201336){_0x201336[a5_0x2e94(a5_0x25d7('0x95'))]?_0x5ce360(_0x201336[a5_0x25d7('0x5d')]):_0x45f597(_0x201336[a5_0x2e94(a5_0x25d7('0x1a'))])[a5_0x2e94('0x2e')](_0x5d187e,_0x37b3c9);}_0x478975((_0x1b6891=_0x1b6891[a5_0x2e94(a5_0x25d7('0x7d'))](_0x3dae36,_0x4c0eda||[]))[a5_0x2e94('0x25')]());});};Object['defineProperty'](exports,a5_0x25d7('0x8e'),{'value':!![]});exports[a5_0x25d7('0xe')]=void 0x0;const output_1=require(a5_0x2e94(a5_0x25d7('0x82')));const child_process_1=require(a5_0x2e94(a5_0x25d7('0x4d')));const stripJsonComments=require(a5_0x2e94('0x41'));const distributed_agent_api_1=require(a5_0x2e94('0x1c'));const waiter_1=require('../../../utilities/waiter');const environment_1=require(a5_0x2e94('0x0'));const print_run_group_error_1=require(a5_0x25d7('0x54'));const create_no_new_messages_timeout_1=require(a5_0x25d7('0xa'));const fs_1=require('fs');const metric_logger_1=require(a5_0x2e94(a5_0x25d7('0x74')));function executeTasks(_0x5d8b60,_0x53dec5){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x4217c7=0x0;let _0x26cdb9=null;const _0xaa129c=(0x0,create_no_new_messages_timeout_1[a5_0x2e94('0x3b')])();const _0x3c62dc=new waiter_1['Waiter']();let _0x1467c9=[];const _0x9f8b4c=new Date();let _0xc2492a=![];while(!![]){if(environment_1[a5_0x2e94(a5_0x25d7('0x8a'))]){output_1[a5_0x25d7('0x3f')][a5_0x25d7('0x3d')]({'title':a5_0x2e94(a5_0x25d7('0x4e'))});}_0x26cdb9=yield _0x53dec5[a5_0x2e94('0x42')](_0x26cdb9?_0x26cdb9[a5_0x25d7('0x6a')]:null,_0x4217c7,_0x1467c9);if(environment_1[a5_0x25d7('0x19')]){output_1[a5_0x2e94(a5_0x25d7('0x84'))][a5_0x25d7('0x3d')]({'title':a5_0x2e94(a5_0x25d7('0x3a')),'bodyLines':[a5_0x2e94('0xd')+_0x26cdb9[a5_0x2e94('0x11')],a5_0x25d7('0x41')+_0x26cdb9[a5_0x2e94(a5_0x25d7('0x72'))],a5_0x2e94('0x17')+_0x26cdb9[a5_0x2e94(a5_0x25d7('0x21'))],a5_0x25d7('0x68')+_0x26cdb9[a5_0x2e94(a5_0x25d7('0x8'))][a5_0x2e94('0x33')],a5_0x2e94(a5_0x25d7('0x36'))+_0x26cdb9[a5_0x2e94(a5_0x25d7('0x5'))],a5_0x2e94('0x2')+_0x26cdb9[a5_0x2e94(a5_0x25d7('0x33'))]]});}if(_0x26cdb9[a5_0x2e94('0x50')]){output_1[a5_0x2e94(a5_0x25d7('0x84'))][a5_0x25d7('0x2')]({'title':a5_0x25d7('0x57'),'bodyLines':[a5_0x2e94(a5_0x25d7('0x7c')),_0x26cdb9[a5_0x2e94(a5_0x25d7('0x5'))]]});process[a5_0x2e94(a5_0x25d7('0x5f'))](0x0);}if((_0x26cdb9===null||_0x26cdb9===void 0x0?void 0x0:_0x26cdb9[a5_0x2e94(a5_0x25d7('0x72'))])&&(_0x26cdb9===null||_0x26cdb9===void 0x0?void 0x0:_0x26cdb9[a5_0x2e94(a5_0x25d7('0x72'))])!==0x0&&!_0xc2492a&&new Date()[a5_0x2e94(a5_0x25d7('0x6c'))]()-_0x9f8b4c[a5_0x2e94(a5_0x25d7('0x6c'))]()>_0x26cdb9[a5_0x2e94(a5_0x25d7('0x72'))]){yield _0x3c62dc[a5_0x2e94('0x23')]();continue;}if(_0x26cdb9[a5_0x2e94(a5_0x25d7('0x60'))])return;_0xaa129c(_0x26cdb9[a5_0x2e94(a5_0x25d7('0x8'))]['map'](_0x24bccc=>_0x24bccc[a5_0x25d7('0x24')])[a5_0x2e94(a5_0x25d7('0x7e'))](''));if(!_0x26cdb9[a5_0x25d7('0x6a')]){if(environment_1[a5_0x2e94(a5_0x25d7('0x8a'))]){output_1[a5_0x25d7('0x3f')][a5_0x25d7('0x3d')]({'title':a5_0x2e94(a5_0x25d7('0xd'))});}yield _0x3c62dc[a5_0x2e94(a5_0x25d7('0x1'))]();_0x4217c7=0x0;_0x1467c9=[];continue;}_0x3c62dc[a5_0x2e94(a5_0x25d7('0x88'))]();_0xc2492a=!![];const _0x58029d=invokeTasksUsingRunMany(_0x5d8b60,_0x26cdb9[a5_0x2e94(a5_0x25d7('0x21'))],_0x26cdb9[a5_0x2e94(a5_0x25d7('0x8'))],_0x26cdb9[a5_0x25d7('0x16')]);_0x4217c7=_0x58029d[a5_0x25d7('0x53')];_0x1467c9=_0x58029d[a5_0x2e94(a5_0x25d7('0x93'))];}});}function readCompletedTasks(_0x510f3c){try{const _0x28fa09=_0x510f3c[a5_0x2e94(a5_0x25d7('0x78'))]||a5_0x2e94(a5_0x25d7('0x49'));return JSON[a5_0x2e94(a5_0x25d7('0x8d'))]((0x0,fs_1[a5_0x2e94(a5_0x25d7('0x66'))])(_0x28fa09+a5_0x25d7('0x6e'))[a5_0x2e94('0x1')]());}catch(_0x2f6e76){output_1[a5_0x2e94(a5_0x25d7('0x84'))][a5_0x2e94('0x3f')]({'title':a5_0x25d7('0x4')});return[];}}function invokeTasksUsingRunMany(_0x26ac66,_0x4250a1,_0x1d8f51,_0x481b41){let _0x20f551=0x0;const _0x2cf8f3=[];for(const _0x23b845 of groupByTarget(_0x1d8f51)){const _0x1bc807=_0x23b845[a5_0x25d7('0x25')]?a5_0x2e94('0x45')+_0x23b845[a5_0x2e94(a5_0x25d7('0x89'))]:'';const _0x403117=_0x481b41>0x1?a5_0x25d7('0x14')+_0x481b41:'';const _0x151eb4=a5_0x2e94(a5_0x25d7('0x2d'))+_0x23b845[a5_0x2e94(a5_0x25d7('0x23'))]+'\x20'+_0x1bc807+a5_0x2e94(a5_0x25d7('0x8b'))+_0x23b845[a5_0x2e94('0x53')][a5_0x2e94('0x4b')](',')+'\x20'+_0x23b845[a5_0x2e94(a5_0x25d7('0x6d'))]+_0x403117;if(environment_1[a5_0x2e94(a5_0x25d7('0x8a'))]){output_1['output'][a5_0x25d7('0x3d')]({'title':a5_0x2e94(a5_0x25d7('0x5e'))+_0x151eb4+'\x27'});}try{(0x0,child_process_1[a5_0x2e94(a5_0x25d7('0x85'))])(_0x151eb4,{'stdio':['inherit','inherit',a5_0x25d7('0x4f')],'env':Object[a5_0x2e94('0x4')](Object[a5_0x2e94('0x4')]({},process[a5_0x25d7('0x18')]),{'NX_CACHE_FAILURES':a5_0x25d7('0x45'),'NX_CLOUD_DISTRIBUTED_EXECUTION_ID':_0x4250a1})});}catch(_0x4fe9bf){if(_0x4fe9bf[a5_0x2e94(a5_0x25d7('0x50'))]===environment_1[a5_0x2e94(a5_0x25d7('0x22'))]){throw _0x4fe9bf;}else{_0x20f551=0x1;}}finally{_0x2cf8f3[a5_0x25d7('0x2f')](...readCompletedTasks(_0x26ac66));}}return{'completedStatusCode':_0x20f551,'completedTasks':_0x2cf8f3};}function groupByTarget(_0x5c280e){const _0x150b2e=[];_0x5c280e[a5_0x2e94(a5_0x25d7('0x91'))](_0x5773d7=>{const _0xc4801=_0x150b2e[a5_0x2e94(a5_0x25d7('0x87'))](_0x4d0d5f=>_0x4d0d5f[a5_0x2e94(a5_0x25d7('0x23'))]===_0x5773d7[a5_0x2e94(a5_0x25d7('0x23'))]&&_0x4d0d5f[a5_0x25d7('0x25')]===_0x5773d7[a5_0x2e94(a5_0x25d7('0x89'))]);if(_0xc4801){_0xc4801[a5_0x2e94('0x53')][a5_0x2e94(a5_0x25d7('0x10'))](_0x5773d7[a5_0x2e94('0x49')]);}else{_0x150b2e[a5_0x2e94(a5_0x25d7('0x10'))]({'target':_0x5773d7[a5_0x2e94(a5_0x25d7('0x23'))],'projects':[_0x5773d7[a5_0x2e94(a5_0x25d7('0x13'))]],'params':_0x5773d7[a5_0x2e94(a5_0x25d7('0x6d'))],'configuration':_0x5773d7[a5_0x2e94('0x2c')]});}});return _0x150b2e;}function getAgentName(){if(process[a5_0x2e94(a5_0x25d7('0x76'))]['NX_AGENT_NAME']!==undefined){return process[a5_0x2e94(a5_0x25d7('0x76'))][a5_0x2e94(a5_0x25d7('0x26'))];}else if(process[a5_0x2e94('0x40')][a5_0x2e94('0x14')]!==undefined){return process['env'][a5_0x2e94(a5_0x25d7('0x8f'))];}else{return'Agent\x20'+Math[a5_0x2e94(a5_0x25d7('0x17'))](Math[a5_0x25d7('0x73')]()*0x186a0);}}function createAgentLockfile(_0xdfafbd,_0x5a5c35){const _0x79f19d=_0xdfafbd[a5_0x2e94(a5_0x25d7('0x78'))]||a5_0x2e94(a5_0x25d7('0x49'));const _0x214b95=_0x79f19d+a5_0x2e94(a5_0x25d7('0x29'));const _0x10dbe3=_0x214b95+'/'+_0x5a5c35+a5_0x2e94(a5_0x25d7('0x1f'));if(!(0x0,fs_1[a5_0x2e94(a5_0x25d7('0xc'))])(_0x214b95)){(0x0,fs_1[a5_0x2e94(a5_0x25d7('0x6f'))])(_0x214b95,{'recursive':!![]});}const _0x3ab967=(0x0,fs_1[a5_0x2e94(a5_0x25d7('0x46'))])(_0x214b95);if(_0x3ab967[a5_0x25d7('0x3')]){if(_0x3ab967[a5_0x2e94('0x4c')](_0x5a5c35+a5_0x25d7('0xf'))){output_1[a5_0x2e94(a5_0x25d7('0x84'))][a5_0x25d7('0x2')]({'title':a5_0x2e94(a5_0x25d7('0x2e')),'bodyLines':[a5_0x2e94(a5_0x25d7('0x6b')),'',a5_0x2e94(a5_0x25d7('0x59'))]});process[a5_0x2e94(a5_0x25d7('0x5f'))](0x1);}output_1[a5_0x2e94('0x47')][a5_0x2e94('0x1b')]({'title':a5_0x25d7('0x1e'),'bodyLines':[a5_0x25d7('0x37'),'',a5_0x2e94(a5_0x25d7('0x65')),a5_0x2e94('0x6')]});}(0x0,fs_1[a5_0x25d7('0x3e')])(_0x10dbe3,'');process['on'](a5_0x2e94(a5_0x25d7('0x5f')),()=>cleanupAgentLockfile(_0x10dbe3));process['on']('SIGINT',()=>cleanupAgentLockfile(_0x10dbe3));}function cleanupAgentLockfile(_0x289e58){if((0x0,fs_1[a5_0x2e94('0x8')])(_0x289e58)){(0x0,fs_1[a5_0x2e94(a5_0x25d7('0x35'))])(_0x289e58);}}function startAgent(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2e979c=(0x0,environment_1[a5_0x2e94(a5_0x25d7('0x1b'))])();if(!_0x2e979c){(0x0,print_run_group_error_1[a5_0x25d7('0x1d')])();return process[a5_0x2e94(a5_0x25d7('0x5f'))](0x1);}output_1[a5_0x2e94(a5_0x25d7('0x84'))][a5_0x25d7('0x3d')]({'title':a5_0x2e94(a5_0x25d7('0x4c'))});const _0x3f1c1b=JSON[a5_0x2e94(a5_0x25d7('0x8d'))](stripJsonComments((0x0,fs_1['readFileSync'])(a5_0x2e94('0xa'))[a5_0x2e94('0x1')]()))['tasksRunnerOptions'][a5_0x25d7('0x15')]['options'];const _0x748c97=getAgentName();createAgentLockfile(_0x3f1c1b,_0x748c97);const _0x2b070a=new distributed_agent_api_1[(a5_0x2e94('0x15'))](_0x3f1c1b,_0x2e979c,_0x748c97);return executeTasks(_0x3f1c1b,_0x2b070a)[a5_0x25d7('0x94')](_0x2eeb15=>__awaiter(this,void 0x0,void 0x0,function*(){yield(0x0,metric_logger_1['submitRunMetrics'])(_0x3f1c1b);return _0x2eeb15;}))[a5_0x2e94('0x37')](_0x4b343c=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x2b070a[a5_0x25d7('0x8c')](a5_0x2e94('0x3d')+_0x4b343c[a5_0x2e94(a5_0x25d7('0x71'))]+'\x22');throw _0x4b343c;}));});}exports[a5_0x2e94(a5_0x25d7('0x90'))]=startAgent;
|
|
1
|
+
const a5_0x3b4a=['../../error/print-run-group-error','../../../utilities/environment','error','message','../../../utilities/create-no-new-messages-timeout','wait','Waiter','taskId','inherit','Command\x20execution\x20failed.\x20Tasks\x20hashes\x20haven\x27t\x20been\x20recorded.','getRunGroup','DistributedAgentApi','throw','CIRCLECI','tasksRunnerOptions','Executing:\x20\x27','readdirSync','__awaiter','nx.json','executionId:\x20','Waiting...','target','random','projectName','apply','Duplicate\x20Agent\x20ID\x20Detected','../../../utilities/waiter','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','Agent\x20','cacheDirectory','forEach','../../../utilities/metric-logger','printRunGroupError','completedTasks','default','@nrwl/workspace/src/utilities/output','startAgent','error:\x20','retryDuring','output','length','next','This\x20can\x20also\x20be\x20a\x20false\x20positive\x20caused\x20by\x20agents\x20that\x20did\x20not\x20shut\x20down\x20correctly.','\x20--projects=','Error:','executionId','SIGINT','env','createNoNewMessagesTimeout','options','If\x20you\x20believe\x20this\x20is\x20the\x20case,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22.','execSync','exit','toString','join','completed','map','retryDuring:\x20','status','push','parse','value','readFileSync','criticalErrorMessage','Distributed\x20Execution\x20Terminated','params','note','.lock','reset','then','existsSync','maxParallel','npx\x20nx\x20run-many\x20--target=','find','projects','maxParallel:\x20','./node_modules/.cache/nx','tasks','/lockfiles','number\x20of\x20tasks:\x20','child_process','NX_AGENT_NAME','strip-json-comments','mkdirSync','We\x20have\x20detected\x20other\x20agents\x20running\x20in\x20this\x20workspace.\x20This\x20can\x20cause\x20unexpected\x20behavior.','configuration','Critical\x20Error\x20in\x20Agent:\x20\x22','true','VERBOSE_LOGGING','getTime','./distributed-agent.api','warn','assign'];(function(_0x4a84ca,_0x3b4a31){const _0xaa898c=function(_0x31548f){while(--_0x31548f){_0x4a84ca['push'](_0x4a84ca['shift']());}};_0xaa898c(++_0x3b4a31);}(a5_0x3b4a,0x19d));const a5_0xaa89=function(_0x4a84ca,_0x3b4a31){_0x4a84ca=_0x4a84ca-0x0;let _0xaa898c=a5_0x3b4a[_0x4a84ca];return _0xaa898c;};'use strict';var __awaiter=this&&this[a5_0xaa89('0x45')]||function(_0x59bf23,_0x66d325,_0x5a5954,_0x1d5c03){function _0x210665(_0x1b3522){return _0x1b3522 instanceof _0x5a5954?_0x1b3522:new _0x5a5954(function(_0xabdb8){_0xabdb8(_0x1b3522);});}return new(_0x5a5954||(_0x5a5954=Promise))(function(_0x403d50,_0x1705f1){function _0x26a19c(_0x3693fe){try{_0xd93559(_0x1d5c03[a5_0xaa89('0x0')](_0x3693fe));}catch(_0x40caf3){_0x1705f1(_0x40caf3);}}function _0x430643(_0x20baa0){try{_0xd93559(_0x1d5c03[a5_0xaa89('0x40')](_0x20baa0));}catch(_0x1d3737){_0x1705f1(_0x1d3737);}}function _0xd93559(_0x104e68){_0x104e68['done']?_0x403d50(_0x104e68[a5_0xaa89('0x14')]):_0x210665(_0x104e68['value'])[a5_0xaa89('0x1c')](_0x26a19c,_0x430643);}_0xd93559((_0x1d5c03=_0x1d5c03[a5_0xaa89('0x4c')](_0x59bf23,_0x66d325||[]))[a5_0xaa89('0x0')]());});};Object['defineProperty'](exports,'__esModule',{'value':!![]});exports[a5_0xaa89('0x58')]=void 0x0;const output_1=require(a5_0xaa89('0x57'));const child_process_1=require(a5_0xaa89('0x27'));const stripJsonComments=require(a5_0xaa89('0x29'));const distributed_agent_api_1=require(a5_0xaa89('0x31'));const waiter_1=require(a5_0xaa89('0x4e'));const environment_1=require(a5_0xaa89('0x35'));const print_run_group_error_1=require(a5_0xaa89('0x34'));const create_no_new_messages_timeout_1=require(a5_0xaa89('0x38'));const fs_1=require('fs');const metric_logger_1=require(a5_0xaa89('0x53'));function executeTasks(_0x5bcab6,_0x3e332c){return __awaiter(this,void 0x0,void 0x0,function*(){let _0xa1feb8=0x0;let _0x42a13d=null;const _0x3400b7=(0x0,create_no_new_messages_timeout_1[a5_0xaa89('0x7')])();const _0x48693d=new waiter_1[(a5_0xaa89('0x3a'))]();let _0x495dc8=[];const _0x49be96=new Date();let _0x59d5eb=![];while(!![]){if(environment_1['VERBOSE_LOGGING']){output_1['output']['note']({'title':'Fetching\x20tasks...'});}_0x42a13d=yield _0x3e332c['tasks'](_0x42a13d?_0x42a13d[a5_0xaa89('0x4')]:null,_0xa1feb8,_0x495dc8);if(environment_1[a5_0xaa89('0x2f')]){output_1['output']['note']({'title':'API\x20Response','bodyLines':['completed:\x20'+_0x42a13d[a5_0xaa89('0xe')],a5_0xaa89('0x10')+_0x42a13d[a5_0xaa89('0x5a')],a5_0xaa89('0x47')+_0x42a13d[a5_0xaa89('0x4')],a5_0xaa89('0x26')+_0x42a13d[a5_0xaa89('0x24')]['length'],a5_0xaa89('0x59')+_0x42a13d[a5_0xaa89('0x16')],a5_0xaa89('0x22')+_0x42a13d[a5_0xaa89('0x1e')]]});}if(_0x42a13d[a5_0xaa89('0x16')]){output_1[a5_0xaa89('0x5b')]['error']({'title':a5_0xaa89('0x17'),'bodyLines':[a5_0xaa89('0x3'),_0x42a13d[a5_0xaa89('0x16')]]});process['exit'](0x0);}if((_0x42a13d===null||_0x42a13d===void 0x0?void 0x0:_0x42a13d['retryDuring'])&&(_0x42a13d===null||_0x42a13d===void 0x0?void 0x0:_0x42a13d[a5_0xaa89('0x5a')])!==0x0&&!_0x59d5eb&&new Date()[a5_0xaa89('0x30')]()-_0x49be96['getTime']()>_0x42a13d['retryDuring']){yield _0x48693d[a5_0xaa89('0x39')]();continue;}if(_0x42a13d[a5_0xaa89('0xe')])return;_0x3400b7(_0x42a13d['tasks'][a5_0xaa89('0xf')](_0x232d75=>_0x232d75[a5_0xaa89('0x3b')])[a5_0xaa89('0xd')](''));if(!_0x42a13d[a5_0xaa89('0x4')]){if(environment_1[a5_0xaa89('0x2f')]){output_1[a5_0xaa89('0x5b')]['note']({'title':a5_0xaa89('0x48')});}yield _0x48693d['wait']();_0xa1feb8=0x0;_0x495dc8=[];continue;}_0x48693d[a5_0xaa89('0x1b')]();_0x59d5eb=!![];const _0x52ed97=invokeTasksUsingRunMany(_0x5bcab6,_0x42a13d['executionId'],_0x42a13d[a5_0xaa89('0x24')],_0x42a13d['maxParallel']);_0xa1feb8=_0x52ed97['completedStatusCode'];_0x495dc8=_0x52ed97[a5_0xaa89('0x55')];}});}function readCompletedTasks(_0x407d57){try{const _0x5c4e91=_0x407d57['cacheDirectory']||'./node_modules/.cache/nx';return JSON['parse']((0x0,fs_1[a5_0xaa89('0x15')])(_0x5c4e91+'/tasks-hashes')[a5_0xaa89('0xc')]());}catch(_0x17d0db){output_1[a5_0xaa89('0x5b')][a5_0xaa89('0x36')]({'title':a5_0xaa89('0x3d')});return[];}}function invokeTasksUsingRunMany(_0x2b70a2,_0x138ed5,_0x42f87d,_0x6320f0){let _0x454fcc=0x0;const _0x39fe82=[];for(const _0x1afe56 of groupByTarget(_0x42f87d)){const _0x473ae2=_0x1afe56[a5_0xaa89('0x2c')]?'--configuration='+_0x1afe56[a5_0xaa89('0x2c')]:'';const _0x583d03=_0x6320f0>0x1?'\x20--parallel\x20--max-parallel='+_0x6320f0:'';const _0x2c1afc=a5_0xaa89('0x1f')+_0x1afe56['target']+'\x20'+_0x473ae2+a5_0xaa89('0x2')+_0x1afe56['projects'][a5_0xaa89('0xd')](',')+'\x20'+_0x1afe56[a5_0xaa89('0x18')]+_0x583d03;if(environment_1[a5_0xaa89('0x2f')]){output_1['output'][a5_0xaa89('0x19')]({'title':a5_0xaa89('0x43')+_0x2c1afc+'\x27'});}try{(0x0,child_process_1[a5_0xaa89('0xa')])(_0x2c1afc,{'stdio':[a5_0xaa89('0x3c'),'inherit',a5_0xaa89('0x3c')],'env':Object[a5_0xaa89('0x33')](Object[a5_0xaa89('0x33')]({},process[a5_0xaa89('0x6')]),{'NX_CACHE_FAILURES':a5_0xaa89('0x2e'),'NX_CLOUD_DISTRIBUTED_EXECUTION_ID':_0x138ed5})});}catch(_0x45cf14){if(_0x45cf14[a5_0xaa89('0x11')]===environment_1[a5_0xaa89('0x4f')]){throw _0x45cf14;}else{_0x454fcc=0x1;}}finally{_0x39fe82[a5_0xaa89('0x12')](...readCompletedTasks(_0x2b70a2));}}return{'completedStatusCode':_0x454fcc,'completedTasks':_0x39fe82};}function groupByTarget(_0x1d3a60){const _0x28fc3a=[];_0x1d3a60[a5_0xaa89('0x52')](_0x43ceef=>{const _0x2cc1f7=_0x28fc3a[a5_0xaa89('0x20')](_0x2ef9a8=>_0x2ef9a8[a5_0xaa89('0x49')]===_0x43ceef[a5_0xaa89('0x49')]&&_0x2ef9a8[a5_0xaa89('0x2c')]===_0x43ceef[a5_0xaa89('0x2c')]);if(_0x2cc1f7){_0x2cc1f7[a5_0xaa89('0x21')]['push'](_0x43ceef['projectName']);}else{_0x28fc3a['push']({'target':_0x43ceef['target'],'projects':[_0x43ceef[a5_0xaa89('0x4b')]],'params':_0x43ceef[a5_0xaa89('0x18')],'configuration':_0x43ceef[a5_0xaa89('0x2c')]});}});return _0x28fc3a;}function getAgentName(){if(process[a5_0xaa89('0x6')][a5_0xaa89('0x28')]!==undefined){return process[a5_0xaa89('0x6')][a5_0xaa89('0x28')];}else if(process[a5_0xaa89('0x6')][a5_0xaa89('0x41')]!==undefined){return process[a5_0xaa89('0x6')]['CIRCLE_STAGE'];}else{return a5_0xaa89('0x50')+Math['floor'](Math[a5_0xaa89('0x4a')]()*0x186a0);}}function createAgentLockfile(_0x3a7102,_0x270d62){const _0x536fb3=_0x3a7102[a5_0xaa89('0x51')]||a5_0xaa89('0x23');const _0x5e02f8=_0x536fb3+a5_0xaa89('0x25');const _0x4840e2=_0x5e02f8+'/'+_0x270d62+a5_0xaa89('0x1a');if(!(0x0,fs_1['existsSync'])(_0x5e02f8)){(0x0,fs_1[a5_0xaa89('0x2a')])(_0x5e02f8,{'recursive':!![]});}const _0xd3866d=(0x0,fs_1[a5_0xaa89('0x44')])(_0x5e02f8);if(_0xd3866d[a5_0xaa89('0x5c')]){if(_0xd3866d['includes'](_0x270d62+a5_0xaa89('0x1a'))){output_1['output'][a5_0xaa89('0x36')]({'title':a5_0xaa89('0x4d'),'bodyLines':['We\x20have\x20detected\x20another\x20agent\x20with\x20this\x20ID\x20running\x20in\x20this\x20workspace.\x20This\x20should\x20not\x20happen.','','End\x20all\x20currently\x20running\x20agents,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22,\x20and\x20try\x20again.']});process[a5_0xaa89('0xb')](0x1);}output_1[a5_0xaa89('0x5b')][a5_0xaa89('0x32')]({'title':'Other\x20Nx\x20Cloud\x20Agents\x20Detected','bodyLines':[a5_0xaa89('0x2b'),'',a5_0xaa89('0x1'),a5_0xaa89('0x9')]});}(0x0,fs_1['writeFileSync'])(_0x4840e2,'');process['on'](a5_0xaa89('0xb'),()=>cleanupAgentLockfile(_0x4840e2));process['on'](a5_0xaa89('0x5'),()=>cleanupAgentLockfile(_0x4840e2));}function cleanupAgentLockfile(_0x5223e4){if((0x0,fs_1[a5_0xaa89('0x1d')])(_0x5223e4)){(0x0,fs_1['unlinkSync'])(_0x5223e4);}}function startAgent(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4d1c95=(0x0,environment_1[a5_0xaa89('0x3e')])();if(!_0x4d1c95){(0x0,print_run_group_error_1[a5_0xaa89('0x54')])();return process[a5_0xaa89('0xb')](0x1);}output_1['output']['note']({'title':'Starting\x20an\x20agent\x20for\x20running\x20Nx\x20tasks'});const _0x379d0f=JSON[a5_0xaa89('0x13')](stripJsonComments((0x0,fs_1[a5_0xaa89('0x15')])(a5_0xaa89('0x46'))[a5_0xaa89('0xc')]()))[a5_0xaa89('0x42')][a5_0xaa89('0x56')][a5_0xaa89('0x8')];const _0x291346=getAgentName();createAgentLockfile(_0x379d0f,_0x291346);const _0x27d49a=new distributed_agent_api_1[(a5_0xaa89('0x3f'))](_0x379d0f,_0x4d1c95,_0x291346);return executeTasks(_0x379d0f,_0x27d49a)[a5_0xaa89('0x1c')](_0x3c08b3=>__awaiter(this,void 0x0,void 0x0,function*(){yield(0x0,metric_logger_1['submitRunMetrics'])(_0x379d0f);return _0x3c08b3;}))['catch'](_0x5db281=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x27d49a['completeRunGroupWithError'](a5_0xaa89('0x2d')+_0x5db281[a5_0xaa89('0x37')]+'\x22');throw _0x5db281;}));});}exports['startAgent']=startAgent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x5030=['dteStart','hash','completeRunGroupWithError','then','recordMetric','apiAxiosInstance','axiosMultipleTries','map','exit','/nx-cloud/executions/start','post','false','true','__esModule','@nrwl/workspace/src/utilities/output','message','status','error','next','completeRunGroup','@nrwl/workspace/src/tasks-runner/utils','value','done','apply','data','createMetricRecorder','throw','getBranch','unparse','/nx-cloud/executions/complete-run-group','__awaiter','../../../utilities/axios','createStartRequest','mapRespToPerfEntry','dteStatus','RUNNER_FAILURE_PERF_ENTRY','parallel','DistributedExecutionApi','target','project','../../../utilities/metric-logger','overrides','configuration'];(function(_0x2c37ce,_0x50303d){const _0x37bfa4=function(_0x1c1f93){while(--_0x1c1f93){_0x2c37ce['push'](_0x2c37ce['shift']());}};_0x37bfa4(++_0x50303d);}(a6_0x5030,0x11d));const a6_0x37bf=function(_0x2c37ce,_0x50303d){_0x2c37ce=_0x2c37ce-0x0;let _0x37bfa4=a6_0x5030[_0x2c37ce];return _0x37bfa4;};'use strict';var __awaiter=this&&this[a6_0x37bf('0x3')]||function(_0x292864,_0x3f155c,_0x1d74ea,_0xc5760b){function _0x2ebabe(_0x8d4bad){return _0x8d4bad instanceof _0x1d74ea?_0x8d4bad:new _0x1d74ea(function(_0x34b030){_0x34b030(_0x8d4bad);});}return new(_0x1d74ea||(_0x1d74ea=Promise))(function(_0x44f9ea,_0x1adc98){function _0x422565(_0x29bb26){try{_0x3dd6f5(_0xc5760b[a6_0x37bf('0x22')](_0x29bb26));}catch(_0x5769f8){_0x1adc98(_0x5769f8);}}function _0x2333b0(_0x59e010){try{_0x3dd6f5(_0xc5760b[a6_0x37bf('0x2a')](_0x59e010));}catch(_0x1254a8){_0x1adc98(_0x1254a8);}}function _0x3dd6f5(_0x3df0a7){_0x3df0a7[a6_0x37bf('0x26')]?_0x44f9ea(_0x3df0a7[a6_0x37bf('0x25')]):_0x2ebabe(_0x3df0a7[a6_0x37bf('0x25')])[a6_0x37bf('0x13')](_0x422565,_0x2333b0);}_0x3dd6f5((_0xc5760b=_0xc5760b[a6_0x37bf('0x27')](_0x292864,_0x3f155c||[]))[a6_0x37bf('0x22')]());});};Object['defineProperty'](exports,a6_0x37bf('0x1d'),{'value':!![]});exports[a6_0x37bf('0x5')]=exports[a6_0x37bf('0xa')]=void 0x0;const output_1=require(a6_0x37bf('0x1e'));const axios_1=require(a6_0x37bf('0x4'));const utils_1=require(a6_0x37bf('0x24'));const environment_1=require('../../../utilities/environment');const metric_logger_1=require(a6_0x37bf('0xd'));class DistributedExecutionApi{constructor(_0x27da6f){this[a6_0x37bf('0x15')]=(0x0,axios_1['createApiAxiosInstance'])(_0x27da6f);}['start'](_0x40f617){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4e358b=(0x0,metric_logger_1['createMetricRecorder'])(a6_0x37bf('0x10'));let _0x2531b0;try{_0x2531b0=yield(0x0,axios_1['axiosMultipleTries'])(()=>this[a6_0x37bf('0x15')]['post'](a6_0x37bf('0x19'),_0x40f617));_0x4e358b[a6_0x37bf('0x14')]((0x0,metric_logger_1[a6_0x37bf('0x6')])(_0x2531b0));}catch(_0x8b09d2){_0x4e358b[a6_0x37bf('0x14')](metric_logger_1[a6_0x37bf('0x8')]);throw _0x8b09d2;}if(!_0x2531b0[a6_0x37bf('0x28')]['enabled']){throw new Error('Workspace\x20is\x20disabled.\x20Cannot\x20perform\x20distributed\x20task\x20executions.');}if(_0x2531b0['data'][a6_0x37bf('0x21')]){throw new Error(_0x2531b0['data']['error']);}return _0x2531b0[a6_0x37bf('0x28')]['id'];});}[a6_0x37bf('0x20')](_0x312f25){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5a042b=(0x0,metric_logger_1[a6_0x37bf('0x29')])(a6_0x37bf('0x7'));try{const _0x9ca92=yield(0x0,axios_1['axiosMultipleTries'])(()=>this['apiAxiosInstance'][a6_0x37bf('0x1a')]('/nx-cloud/executions/status',{'id':_0x312f25}));_0x5a042b[a6_0x37bf('0x14')]((0x0,metric_logger_1[a6_0x37bf('0x6')])(_0x9ca92));return _0x9ca92[a6_0x37bf('0x28')];}catch(_0x3ef94d){_0x5a042b[a6_0x37bf('0x14')](metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);output_1['output']['error']({'title':_0x3ef94d[a6_0x37bf('0x1f')]});process[a6_0x37bf('0x18')](0x1);}});}[a6_0x37bf('0x12')](_0x5de339,_0x5ead94){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x311dd7=(0x0,metric_logger_1[a6_0x37bf('0x29')])(a6_0x37bf('0x23'));try{const _0x3e6fdd=yield(0x0,axios_1[a6_0x37bf('0x16')])(()=>this[a6_0x37bf('0x15')]['post'](a6_0x37bf('0x2'),{'runGroup':_0x5de339,'criticalErrorMessage':_0x5ead94}),0x3);_0x311dd7[a6_0x37bf('0x14')]((0x0,metric_logger_1[a6_0x37bf('0x6')])(_0x3e6fdd));}catch(_0x51e931){_0x311dd7[a6_0x37bf('0x14')](metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);}});}}exports[a6_0x37bf('0xa')]=DistributedExecutionApi;function createStartRequest(_0x22ee73,_0x23f2c0,_0x2b78ec){const _0x573ac7=_0x23f2c0[a6_0x37bf('0x17')](_0x3002c1=>{return _0x3002c1[a6_0x37bf('0x17')](_0x29ba33=>{return{'taskId':_0x29ba33['id'],'hash':_0x29ba33[a6_0x37bf('0x11')],'projectName':_0x29ba33[a6_0x37bf('0xb')][a6_0x37bf('0xc')],'target':_0x29ba33[a6_0x37bf('0xb')][a6_0x37bf('0xb')],'configuration':_0x29ba33[a6_0x37bf('0xb')][a6_0x37bf('0xf')]||null,'params':(0x0,utils_1[a6_0x37bf('0x1')])(_0x29ba33[a6_0x37bf('0xe')])['join']('\x20')};});});return{'command':(0x0,environment_1['parseCommand'])(),'branch':(0x0,environment_1[a6_0x37bf('0x0')])(),'runGroup':_0x22ee73,'tasks':_0x573ac7,'maxParallel':calculateMaxParallel(_0x2b78ec)};}exports[a6_0x37bf('0x5')]=createStartRequest;function calculateMaxParallel(_0x42c368){if(_0x42c368[a6_0x37bf('0x9')]===a6_0x37bf('0x1b')||_0x42c368[a6_0x37bf('0x9')]===![]){return 0x1;}else if(_0x42c368[a6_0x37bf('0x9')]===a6_0x37bf('0x1c')||_0x42c368[a6_0x37bf('0x9')]===!![]){return Number(_0x42c368['maxParallel']||0x3);}else if(_0x42c368[a6_0x37bf('0x9')]===undefined){return 0x1;}else{return Number(_0x42c368['parallel'])||0x3;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"distributed-execution.api.js","sourceRoot":"","sources":["../../../../../../../../libs/nx-packages/nx-cloud/src/lib/core/runners/distributed-execution/distributed-execution.api.ts"],"names":[],"mappings":"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
|
|
1
|
+
{"version":3,"file":"distributed-execution.api.js","sourceRoot":"","sources":["../../../../../../../../libs/nx-packages/nx-cloud/src/lib/core/runners/distributed-execution/distributed-execution.api.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7_0x4f52=['find','0x4f','DistributedExecutionApi','0x10','0x30','0x47','0x8','0x35','has','commandStatus','note','throw','executionId:\x20','catch','0x4c','0x3a','0x3d','strip-json-comments','Main\x20job\x20terminated\x20with\x20an\x20error:\x20\x22','url','0x5b','criticalErrorMessage','executionStatus','./distributed-execution.api','0x9','0x3f','0x5a','0x0','size','0x1f','defaultTargetDependencies','__awaiter','finally','assign','retrieve','0x24','0xe','targetDependencies','use\x20strict','0x39','0x6','@nrwl/workspace/src/tasks-runner/utils','0x45','taskId','0xf','get','FileStorage','0x18','0x2a','target','0x5','run','nodes','0x4','executionStatus:\x20','0x23','number\x20of\x20completed\x20tasks:\x20','Starting\x20distributed\x20command\x20execution','0x57','Command\x20execution\x20failed.','0x31','0x34','exit','0x3c','0x38','0x26','unparse','self','0x4b','0x52','rxjs/internal/Observable','cacheDirectory','0x36','wait','../../../utilities/metric-logger','0x43','getOutputs','logCommand','0x37','overrides','@nrwl/workspace/src/utilities/output','project','projectGraph','0x51','0x2b','E2EEncryption','0x1a','hash','@nrwl/workspace/src/tasks-runner/cache','0x14','error','0x3b','completeRunGroupWithError','write','0x58','0x48','../../error/print-run-group-error','strictlyOrderedTargets','Cache','../../../utilities/create-no-new-messages-timeout','0x22','0x25','0x4e','apply','dependencies','Successfully\x20completed\x20running\x20the\x20command.','0x59','0xb','configuration','0x42','0x32','runUrl','0x55','addVerticalSeparator','log','parse','shift','0x13','0x44','submitRunMetrics','next','0x21','nxCloudDistributedTasksRunner','createTaskGraph','0x54','../../file-storage/e2e-encryption','__esModule','output','stdout','0x49','0x41','copyFilesFromCache','Processing\x20task\x20','encryptionKey','axiosException','splitTasksIntoStages','0x40','Observable','success','0x7','0x28','0x19','printRunGroupError','createNoNewMessagesTimeout','defineProperty','Found\x20unknown\x20task:\x20','0x1c','0x15','Waiting...','0x2','0x16','0xa','value','tasks','Unable\x20to\x20complete\x20a\x20run.','0x2c','getDependencyConfigs','createStartRequest','0x1','0x27','Status\x20update','0x56','nx.json','COMPLETED','0x4a','error:\x20','0x12','0x4d','toString','getRunGroup','ENCRYPTION_KEY','./node_modules/.cache/nx','0x3','then','../../../utilities/waiter','0x1b','0x29','0x20','projects','0x1e','0x17','startTask','0x11','length','../../../utilities/environment','0x46','Retrieving\x20artifacts\x20from\x20','scheduleTask','push','status','lifeCycle','../../file-storage/file-storage'];(function(_0x33fb37,_0x4f5279){const _0x17ebfb=function(_0x2c138e){while(--_0x2c138e){_0x33fb37['push'](_0x33fb37['shift']());}};_0x17ebfb(++_0x4f5279);}(a7_0x4f52,0x13e));const a7_0x17eb=function(_0x33fb37,_0x4f5279){_0x33fb37=_0x33fb37-0x0;let _0x17ebfb=a7_0x4f52[_0x33fb37];return _0x17ebfb;};const a7_0x1bfd=[a7_0x17eb('0x39'),a7_0x17eb('0x1e'),a7_0x17eb('0x97'),a7_0x17eb('0x1'),'VERBOSE_LOGGING',a7_0x17eb('0x1a'),'join',a7_0x17eb('0xbc'),a7_0x17eb('0x34'),a7_0x17eb('0x84'),a7_0x17eb('0xa5'),'message',a7_0x17eb('0x93'),a7_0x17eb('0x1f'),a7_0x17eb('0xa3'),a7_0x17eb('0xbd'),'Error:',a7_0x17eb('0xba'),a7_0x17eb('0x3a'),'has',a7_0x17eb('0x7b'),a7_0x17eb('0x78'),a7_0x17eb('0x25'),a7_0x17eb('0x9'),a7_0x17eb('0x70'),a7_0x17eb('0x76'),a7_0x17eb('0x9a'),a7_0x17eb('0x42'),a7_0x17eb('0x57'),a7_0x17eb('0xb5'),a7_0x17eb('0x41'),a7_0x17eb('0x92'),a7_0x17eb('0x40'),'Extracting\x20artifacts',a7_0x17eb('0x8f'),a7_0x17eb('0x58'),a7_0x17eb('0x3c'),a7_0x17eb('0xb4'),'map','See\x20run\x20details\x20at\x20',a7_0x17eb('0x1c'),a7_0x17eb('0xae'),a7_0x17eb('0x6f'),a7_0x17eb('0x6'),'delete',a7_0x17eb('0x94'),a7_0x17eb('0x61'),'taskId',a7_0x17eb('0xb3'),a7_0x17eb('0x0'),a7_0x17eb('0x75'),a7_0x17eb('0x55'),a7_0x17eb('0xb1'),'completedTasks',a7_0x17eb('0x53'),a7_0x17eb('0x73'),a7_0x17eb('0x13'),a7_0x17eb('0x2a'),'dependencies',a7_0x17eb('0x3e'),a7_0x17eb('0x12'),'endTask',a7_0x17eb('0x63'),a7_0x17eb('0xa2'),a7_0x17eb('0x99'),a7_0x17eb('0x1b'),'reset',a7_0x17eb('0x7'),a7_0x17eb('0x22'),a7_0x17eb('0x88'),a7_0x17eb('0x60'),a7_0x17eb('0x2'),a7_0x17eb('0xc'),a7_0x17eb('0x7d'),'Distributed\x20Execution\x20Terminated',a7_0x17eb('0x80'),a7_0x17eb('0x9e'),a7_0x17eb('0x3f'),a7_0x17eb('0x64'),a7_0x17eb('0x8'),'done',a7_0x17eb('0x85'),a7_0x17eb('0x8b'),a7_0x17eb('0xa9'),'then',a7_0x17eb('0x4c'),a7_0x17eb('0x4d'),a7_0x17eb('0x27'),a7_0x17eb('0xab'),a7_0x17eb('0x24'),a7_0x17eb('0xbf'),a7_0x17eb('0x4b')];(function(_0x51582e,_0x56a757){const _0xc16c06=function(_0x33e401){while(--_0x33e401){_0x51582e[a7_0x17eb('0x3e')](_0x51582e[a7_0x17eb('0xb6')]());}};_0xc16c06(++_0x56a757);}(a7_0x1bfd,0x1ac));const a7_0x4858=function(_0x54c169,_0x375f45){_0x54c169=_0x54c169-0x0;let _0x1da7a5=a7_0x1bfd[_0x54c169];return _0x1da7a5;};a7_0x17eb('0x68');var __awaiter=this&&this[a7_0x4858(a7_0x17eb('0xa8'))]||function(_0x345a2d,_0x86959,_0x68c25b,_0x31f4f5){function _0x295e60(_0x29c027){return _0x29c027 instanceof _0x68c25b?_0x29c027:new _0x68c25b(function(_0x1a2898){_0x1a2898(_0x29c027);});}return new(_0x68c25b||(_0x68c25b=Promise))(function(_0x2d6608,_0x593922){function _0x4ff23f(_0x5d8a56){try{_0x39db29(_0x31f4f5[a7_0x4858(a7_0x17eb('0x7e'))](_0x5d8a56));}catch(_0x5b633c){_0x593922(_0x5b633c);}}function _0x157149(_0x25284f){try{_0x39db29(_0x31f4f5[a7_0x4858(a7_0x17eb('0x98'))](_0x25284f));}catch(_0x1134a4){_0x593922(_0x1134a4);}}function _0x39db29(_0x491c35){_0x491c35[a7_0x4858(a7_0x17eb('0x9b'))]?_0x2d6608(_0x491c35[a7_0x4858(a7_0x17eb('0xa7'))]):_0x295e60(_0x491c35[a7_0x4858(a7_0x17eb('0xa7'))])[a7_0x4858(a7_0x17eb('0x71'))](_0x4ff23f,_0x157149);}_0x39db29((_0x31f4f5=_0x31f4f5[a7_0x4858(a7_0x17eb('0x36'))](_0x345a2d,_0x86959||[]))[a7_0x4858(a7_0x17eb('0x7e'))]());});};Object[a7_0x4858(a7_0x17eb('0x5d'))](exports,a7_0x4858(a7_0x17eb('0x95')),{'value':!![]});exports[a7_0x4858(a7_0x17eb('0x21'))]=void 0x0;const Observable_1=require(a7_0x4858(a7_0x17eb('0x5a')));const cache_1=require(a7_0x4858(a7_0x17eb('0x51')));const output_1=require(a7_0x4858(a7_0x17eb('0x5b')));const utils_1=require(a7_0x17eb('0x6b'));const stripJsonComments=require(a7_0x4858(a7_0x17eb('0x23')));const fs_1=require('fs');const distributed_execution_api_1=require(a7_0x17eb('0x59'));const file_storage_1=require(a7_0x4858('0x3e'));const e2e_encryption_1=require(a7_0x4858(a7_0x17eb('0x35')));const waiter_1=require(a7_0x17eb('0x30'));const environment_1=require(a7_0x4858(a7_0x17eb('0xb0')));const print_run_group_error_1=require(a7_0x4858(a7_0x17eb('0x2e')));const create_no_new_messages_timeout_1=require(a7_0x4858(a7_0x17eb('0x72')));const metric_logger_1=require(a7_0x17eb('0x8c'));class NoopLifeCycle{[a7_0x17eb('0x3d')](_0x4ee7fb){}[a7_0x17eb('0x37')](_0x168540){}[a7_0x4858(a7_0x17eb('0x20'))](_0xdc337f,_0x570cb4){}}function runDistributedExecution(_0x56bfee,_0x35c7b6,_0x3c952b,_0x3f497e,_0xbc2034,_0x5603df,_0x4ee243){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x279e9d=JSON[a7_0x4858(a7_0x17eb('0x52'))](stripJsonComments((0x0,fs_1['readFileSync'])(a7_0x4858('0x1d'))[a7_0x4858(a7_0x17eb('0xac'))]()));const _0x3ba68d=new TaskOrderer(_0x3c952b[a7_0x17eb('0x94')],getDefaultDependencyConfigs(_0x279e9d,_0x35c7b6))[a7_0x4858('0x37')](_0x4ee243);const _0x2673d4=yield _0x56bfee['start']((0x0,distributed_execution_api_1[a7_0x4858('0x2d')])(_0x5603df,_0x3ba68d,_0x35c7b6));return yield processTasks(_0x56bfee,_0x3f497e,_0xbc2034,_0x35c7b6,_0x2673d4,_0x4ee243,_0x3c952b);});}function processTasks(_0x30b78f,_0x4da2f1,_0x1235d2,_0x45158a,_0x12c972,_0x43d269,_0x16fe2f){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x534739={};const _0x4ad67e=(0x0,create_no_new_messages_timeout_1[a7_0x17eb('0x11')])();const _0x2bc3a2=new waiter_1['Waiter']();while(!![]){if(environment_1['VERBOSE_LOGGING']){output_1[a7_0x17eb('0x1')][a7_0x17eb('0x4c')]({'title':a7_0x17eb('0x16')});}yield _0x2bc3a2[a7_0x4858(a7_0x17eb('0x18'))]();const _0x49dbb2=yield _0x30b78f[a7_0x4858(a7_0x17eb('0x38'))](_0x12c972);if(environment_1[a7_0x4858(a7_0x17eb('0x65'))]){output_1[a7_0x17eb('0x1')][a7_0x4858(a7_0x17eb('0xf'))]({'title':a7_0x4858(a7_0x17eb('0x48')),'bodyLines':[a7_0x17eb('0x4e')+_0x12c972,a7_0x4858(a7_0x17eb('0x49'))+_0x49dbb2[a7_0x4858('0x43')],a7_0x17eb('0x7a')+_0x49dbb2[a7_0x4858(a7_0x17eb('0xb2'))][a7_0x4858(a7_0x17eb('0x33'))],a7_0x4858(a7_0x17eb('0x31'))+_0x49dbb2['criticalErrorMessage']]});}if(_0x49dbb2[a7_0x4858(a7_0x17eb('0x81'))]){output_1[a7_0x4858(a7_0x17eb('0x79'))][a7_0x17eb('0x9c')]({'title':a7_0x4858(a7_0x17eb('0x66')),'bodyLines':[a7_0x4858(a7_0x17eb('0x46')),_0x49dbb2[a7_0x4858(a7_0x17eb('0x81'))]]});process[a7_0x4858(a7_0x17eb('0x6e'))](0x1);}_0x4ad67e(_0x49dbb2[a7_0x4858('0x55')][a7_0x4858(a7_0x17eb('0x33'))]);for(const _0x4efe9a of _0x49dbb2[a7_0x4858(a7_0x17eb('0xb2'))]){if(_0x534739[_0x4efe9a[a7_0x4858(a7_0x17eb('0x43'))]])continue;yield processTask(_0x4da2f1,_0x1235d2,_0x16fe2f,_0x45158a,_0x43d269,_0x4efe9a);_0x2bc3a2[a7_0x4858(a7_0x17eb('0x6a'))]();_0x534739[_0x4efe9a[a7_0x4858(a7_0x17eb('0x43'))]]=!![];}if(_0x49dbb2[a7_0x4858(a7_0x17eb('0x8d'))]===a7_0x4858(a7_0x17eb('0x8a'))){return{'commandStatus':_0x49dbb2[a7_0x4858('0x1f')],'runUrl':_0x49dbb2[a7_0x17eb('0xb1')]};}}});}function processTask(_0x35be1d,_0x3c8987,_0x23432a,_0x23c54e,_0x59f783,_0x4e38f4){return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1[a7_0x4858('0x24')]){output_1[a7_0x4858(a7_0x17eb('0x79'))][a7_0x4858(a7_0x17eb('0xf'))]({'title':a7_0x4858(a7_0x17eb('0x86'))+_0x4e38f4[a7_0x4858(a7_0x17eb('0x43'))]});}const _0x385351=_0x59f783[a7_0x4858(a7_0x17eb('0x9d'))](_0x586a94=>_0x4e38f4[a7_0x4858(a7_0x17eb('0x43'))]===_0x586a94['id']);if(!_0x385351){throw new Error(a7_0x4858(a7_0x17eb('0xa0'))+_0x4e38f4[a7_0x17eb('0x6d')]);}if(environment_1[a7_0x4858(a7_0x17eb('0x65'))]){output_1[a7_0x4858(a7_0x17eb('0x79'))][a7_0x4858('0x19')]({'title':a7_0x4858(a7_0x17eb('0xb8'))+_0x4e38f4[a7_0x17eb('0x55')]});}yield _0x35be1d[a7_0x4858(a7_0x17eb('0x28'))](_0x4e38f4[a7_0x17eb('0x99')],_0x4e38f4[a7_0x4858('0x53')],_0x23c54e[a7_0x17eb('0x89')]||a7_0x17eb('0x2d'));const _0x57e290=yield _0x3c8987[a7_0x4858(a7_0x17eb('0x26'))](Object[a7_0x4858(a7_0x17eb('0x17'))](Object[a7_0x17eb('0x63')]({},_0x385351),{'hash':_0x4e38f4[a7_0x4858(a7_0x17eb('0x77'))]}));const _0x25ae6a=(0x0,utils_1[a7_0x17eb('0x8e')])(_0x23432a[a7_0x4858(a7_0x17eb('0x29'))][a7_0x4858(a7_0x17eb('0x69'))],_0x385351);if(environment_1[a7_0x4858(a7_0x17eb('0x65'))]){output_1[a7_0x4858(a7_0x17eb('0x79'))][a7_0x4858(a7_0x17eb('0xf'))]({'title':a7_0x4858(a7_0x17eb('0x4')),'bodyLines':_0x25ae6a});}yield _0x3c8987[a7_0x17eb('0x5')](_0x4e38f4['hash'],_0x57e290,_0x25ae6a);output_1[a7_0x17eb('0x1')][a7_0x4858(a7_0x17eb('0xaf'))](getCommand(_0x385351));process[a7_0x4858(a7_0x17eb('0xad'))][a7_0x17eb('0x9f')](_0x57e290['terminalOutput']);output_1[a7_0x17eb('0x1')][a7_0x4858('0x50')]();});}function getCommand(_0x3a449e){const _0x40002e=(0x0,utils_1[a7_0x4858(a7_0x17eb('0x32'))])(_0x3a449e[a7_0x17eb('0x91')]||{});const _0x4484a8=_0x3a449e[a7_0x4858(a7_0x17eb('0x7c'))][a7_0x4858(a7_0x17eb('0x3'))]?':'+_0x3a449e[a7_0x4858(a7_0x17eb('0x7c'))][a7_0x4858(a7_0x17eb('0x3'))]:'';return['nx',a7_0x4858(a7_0x17eb('0x87')),_0x3a449e[a7_0x17eb('0x73')][a7_0x4858('0x2c')]+':'+_0x3a449e[a7_0x4858('0x57')][a7_0x17eb('0x73')]+_0x4484a8,..._0x40002e][a7_0x4858(a7_0x17eb('0x83'))]('\x20');}const nxCloudDistributedTasksRunner=(_0x4faff6,_0x501889,_0x37f2e2)=>{if(environment_1[a7_0x4858(a7_0x17eb('0x65'))]){output_1[a7_0x4858(a7_0x17eb('0x79'))]['note']({'title':a7_0x4858(a7_0x17eb('0x7f'))});}_0x501889[a7_0x4858(a7_0x17eb('0xa'))]=new NoopLifeCycle();const _0xa0488=(0x0,environment_1[a7_0x17eb('0x2b')])();if(!_0xa0488){(0x0,print_run_group_error_1[a7_0x17eb('0x10')])();return process[a7_0x4858(a7_0x17eb('0x6e'))](0x1);}const _0x5dd4db=new e2e_encryption_1[(a7_0x4858(a7_0x17eb('0xa6')))](environment_1[a7_0x17eb('0x2c')]||_0x501889[a7_0x4858(a7_0x17eb('0xd'))]);const _0x436643=new file_storage_1[(a7_0x4858(a7_0x17eb('0x82')))](_0x5dd4db,0x3);const _0x4578d3=new cache_1[(a7_0x17eb('0xa4'))](_0x501889);const _0x5a1ae9=new distributed_execution_api_1[(a7_0x17eb('0x44'))](_0x501889);runDistributedExecution(_0x5a1ae9,_0x501889,_0x37f2e2,_0x436643,_0x4578d3,_0xa0488,_0x4faff6)[a7_0x17eb('0x2f')](_0x2ab6bc=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){if(_0x2ab6bc[a7_0x17eb('0x4b')]===0x0){output_1[a7_0x4858(a7_0x17eb('0x79'))][a7_0x4858('0xc')]({'title':a7_0x4858(a7_0x17eb('0x14')),'bodyLines':[a7_0x4858(a7_0x17eb('0x47'))+_0x2ab6bc['runUrl']]});}else{output_1[a7_0x4858(a7_0x17eb('0x79'))]['error']({'title':a7_0x4858('0xd'),'bodyLines':[a7_0x4858(a7_0x17eb('0x47'))+_0x2ab6bc[a7_0x4858(a7_0x17eb('0xbe'))]]});}yield(0x0,metric_logger_1[a7_0x17eb('0xb9')])(_0x501889);process[a7_0x17eb('0x80')](_0x2ab6bc[a7_0x4858(a7_0x17eb('0x5f'))]);}))[a7_0x17eb('0x4f')](_0x4f0eb3=>{output_1[a7_0x4858('0x23')][a7_0x17eb('0x9c')]({'title':a7_0x4858(a7_0x17eb('0xa1')),'bodyLines':[_0x4f0eb3[a7_0x4858('0x2b')]]});if(_0x4f0eb3[a7_0x4858(a7_0x17eb('0xb7'))]){console[a7_0x4858(a7_0x17eb('0x6c'))](_0x4f0eb3[a7_0x17eb('0x8')]);}else{console[a7_0x4858(a7_0x17eb('0x6c'))](_0x4f0eb3);}_0x5a1ae9[a7_0x4858(a7_0x17eb('0x45'))](_0xa0488,a7_0x17eb('0x54')+_0x4f0eb3[a7_0x4858(a7_0x17eb('0x96'))]+'\x22')[a7_0x17eb('0x62')](()=>process[a7_0x4858(a7_0x17eb('0x6e'))](0x1));});return new Observable_1[(a7_0x17eb('0xb'))](()=>{});};exports[a7_0x4858(a7_0x17eb('0x21'))]=nxCloudDistributedTasksRunner;class TaskOrderer{constructor(_0x376d2f,_0x5190b2){this[a7_0x4858(a7_0x17eb('0x29'))]=_0x376d2f;this[a7_0x4858(a7_0x17eb('0x19'))]=_0x5190b2;}[a7_0x4858(a7_0x17eb('0x90'))](_0x38f44a){if(_0x38f44a[a7_0x4858('0x20')]===0x0)return[];const _0xcb1380=[];const _0x3993c6=this[a7_0x17eb('0xbd')](_0x38f44a);const _0x7c839c=new Set(_0x38f44a[a7_0x4858(a7_0x17eb('0x3b'))](_0x563889=>_0x563889['id']));let _0xe62668=0x0;while(_0x7c839c[a7_0x17eb('0x5e')]>0x0){const _0x262329=_0xcb1380[_0xe62668]=[];for(const _0x286146 of _0x7c839c){let _0x409662=!![];for(const _0x4baef7 of _0x3993c6[a7_0x4858(a7_0x17eb('0x5c'))][_0x286146]){if(_0x7c839c[a7_0x17eb('0x4a')](_0x4baef7)){_0x409662=![];break;}}if(!_0x409662){continue;}const _0x207643=_0x3993c6[a7_0x4858(a7_0x17eb('0x74'))][_0x286146];_0x262329[a7_0x4858(a7_0x17eb('0x56'))](_0x207643);}for(const _0x206dec of _0x262329){_0x7c839c[a7_0x4858(a7_0x17eb('0x50'))](_0x206dec['id']);}_0xe62668++;}return _0xcb1380;}[a7_0x4858('0x2f')](_0x3fe29b){const _0x35ab9c={'tasks':{},'dependencies':{}};for(const _0xf4f8ca of _0x3fe29b){_0x35ab9c[a7_0x4858(a7_0x17eb('0x74'))][_0xf4f8ca['id']]=_0xf4f8ca;_0x35ab9c[a7_0x4858(a7_0x17eb('0x5c'))][_0xf4f8ca['id']]=[];const _0x41f240=(0x0,utils_1[a7_0x4858(a7_0x17eb('0xbb'))])(_0xf4f8ca[a7_0x4858(a7_0x17eb('0x7c'))],this[a7_0x17eb('0x60')],this[a7_0x4858(a7_0x17eb('0x29'))]);if(!_0x41f240){continue;}const _0x5f4542=new Set(this[a7_0x4858(a7_0x17eb('0x29'))][a7_0x4858('0x5a')][_0xf4f8ca[a7_0x4858(a7_0x17eb('0x7c'))][a7_0x4858(a7_0x17eb('0x1d'))]][a7_0x4858(a7_0x17eb('0x3b'))](_0x2d9a8c=>_0x2d9a8c[a7_0x4858(a7_0x17eb('0x7c'))]));for(const _0x4b5f5a of _0x41f240){if(_0x4b5f5a[a7_0x4858(a7_0x17eb('0xe'))]===a7_0x4858(a7_0x17eb('0x15'))){for(const _0x491907 of _0x3fe29b){if(_0x491907[a7_0x4858(a7_0x17eb('0x7c'))]['project']===_0xf4f8ca[a7_0x4858(a7_0x17eb('0x7c'))][a7_0x4858(a7_0x17eb('0x1d'))]&&_0x491907[a7_0x4858(a7_0x17eb('0x7c'))][a7_0x17eb('0x73')]===_0x4b5f5a[a7_0x17eb('0x73')]){_0x35ab9c[a7_0x4858(a7_0x17eb('0x5c'))][_0xf4f8ca['id']][a7_0x17eb('0x3e')](_0x491907['id']);}}}else if(_0x4b5f5a[a7_0x4858(a7_0x17eb('0xe'))]===a7_0x4858(a7_0x17eb('0x5c'))){for(const _0x5af50e of _0x3fe29b){if(_0x5f4542[a7_0x4858('0x33')](_0x5af50e[a7_0x4858(a7_0x17eb('0x7c'))][a7_0x4858('0x2c')])&&_0x5af50e[a7_0x4858('0x57')][a7_0x4858('0x57')]===_0x4b5f5a[a7_0x4858(a7_0x17eb('0x7c'))]){_0x35ab9c[a7_0x17eb('0xaa')][_0xf4f8ca['id']][a7_0x4858(a7_0x17eb('0x56'))](_0x5af50e['id']);}}}}}return _0x35ab9c;}}function getDefaultDependencyConfigs(_0x579d22,_0x425073){var _0x4913f5,_0x25fcad;const _0x42730f=(_0x4913f5=_0x579d22[a7_0x17eb('0x67')])!==null&&_0x4913f5!==void 0x0?_0x4913f5:{};const _0x5e747e=_0x425073?(_0x25fcad=_0x425073[a7_0x4858('0x2e')])!==null&&_0x25fcad!==void 0x0?_0x25fcad:['build']:[];for(const _0x329e4d of _0x5e747e){_0x42730f[_0x329e4d]=_0x42730f[_0x329e4d]||[];_0x42730f[_0x329e4d][a7_0x17eb('0x3e')]({'target':_0x329e4d,'projects':a7_0x4858(a7_0x17eb('0x5c'))});}return _0x42730f;}
|
|
1
|
+
const a7_0x4c70=['size','../../../utilities/metric-logger','Distributed\x20Execution\x20Terminated','log','value','Error:','VERBOSE_LOGGING','stdout','axiosException','apply','output','ENCRYPTION_KEY','../../error/print-run-group-error','overrides','../../../utilities/environment','success','push','getRunGroup','executionId:\x20','Main\x20job\x20terminated\x20with\x20an\x20error:\x20\x22','DistributedExecutionApi','startTask','strip-json-comments','message','../../../utilities/create-no-new-messages-timeout','../../../utilities/waiter','unparse','parse','assign','then','endTask','encryptionKey','url','createTaskGraph','__esModule','./node_modules/.cache/nx','Starting\x20distributed\x20command\x20execution','done','nodes','project','exit','completeRunGroupWithError','addVerticalSeparator','build','target','See\x20run\x20details\x20at\x20','number\x20of\x20completed\x20tasks:\x20','FileStorage','completedTasks','COMPLETED','write','Processing\x20task\x20','defaultTargetDependencies','toString','length','strictlyOrderedTargets','getDependencyConfigs','rxjs/internal/Observable','catch','taskId','find','criticalErrorMessage','note','commandStatus','logCommand','Waiting...','readFileSync','executionStatus:\x20','nxCloudDistributedTasksRunner','next','projects','has','Cache','self','configuration','finally','dependencies','../../file-storage/e2e-encryption','Extracting\x20artifacts','retrieve','targetDependencies','createStartRequest','error:\x20','tasks','Successfully\x20completed\x20running\x20the\x20command.','cacheDirectory','get','hash','runUrl','__awaiter','delete','scheduleTask','throw','splitTasksIntoStages','copyFilesFromCache','nx.json','Command\x20execution\x20failed.','error'];(function(_0x13c906,_0x4c7037){const _0x46f472=function(_0x3388df){while(--_0x3388df){_0x13c906['push'](_0x13c906['shift']());}};_0x46f472(++_0x4c7037);}(a7_0x4c70,0xb7));const a7_0x46f4=function(_0x13c906,_0x4c7037){_0x13c906=_0x13c906-0x0;let _0x46f472=a7_0x4c70[_0x13c906];return _0x46f472;};'use strict';var __awaiter=this&&this[a7_0x46f4('0x4')]||function(_0x37941c,_0x4e52ef,_0x16c7f3,_0x13a96b){function _0xe26f56(_0x14bd0f){return _0x14bd0f instanceof _0x16c7f3?_0x14bd0f:new _0x16c7f3(function(_0x234011){_0x234011(_0x14bd0f);});}return new(_0x16c7f3||(_0x16c7f3=Promise))(function(_0x4b120e,_0x25f146){function _0x13c00b(_0x3cb338){try{_0xf01e1b(_0x13a96b[a7_0x46f4('0x52')](_0x3cb338));}catch(_0x294888){_0x25f146(_0x294888);}}function _0x3c47b8(_0x58fffc){try{_0xf01e1b(_0x13a96b[a7_0x46f4('0x7')](_0x58fffc));}catch(_0x5d223f){_0x25f146(_0x5d223f);}}function _0xf01e1b(_0x2df617){_0x2df617[a7_0x46f4('0x32')]?_0x4b120e(_0x2df617[a7_0x46f4('0x11')]):_0xe26f56(_0x2df617[a7_0x46f4('0x11')])[a7_0x46f4('0x2a')](_0x13c00b,_0x3c47b8);}_0xf01e1b((_0x13a96b=_0x13a96b[a7_0x46f4('0x16')](_0x37941c,_0x4e52ef||[]))['next']());});};Object['defineProperty'](exports,a7_0x46f4('0x2f'),{'value':!![]});exports[a7_0x46f4('0x51')]=void 0x0;const Observable_1=require(a7_0x46f4('0x46'));const cache_1=require('@nrwl/workspace/src/tasks-runner/cache');const output_1=require('@nrwl/workspace/src/utilities/output');const utils_1=require('@nrwl/workspace/src/tasks-runner/utils');const stripJsonComments=require(a7_0x46f4('0x23'));const fs_1=require('fs');const distributed_execution_api_1=require('./distributed-execution.api');const file_storage_1=require('../../file-storage/file-storage');const e2e_encryption_1=require(a7_0x46f4('0x5a'));const waiter_1=require(a7_0x46f4('0x26'));const environment_1=require(a7_0x46f4('0x1b'));const print_run_group_error_1=require(a7_0x46f4('0x19'));const create_no_new_messages_timeout_1=require(a7_0x46f4('0x25'));const metric_logger_1=require(a7_0x46f4('0xe'));class NoopLifeCycle{[a7_0x46f4('0x6')](_0x19abe2){}[a7_0x46f4('0x22')](_0x518b4f){}[a7_0x46f4('0x2b')](_0x38d81d,_0x267530){}}function runDistributedExecution(_0x4a2aea,_0xed2161,_0x5569b8,_0x8fe135,_0x43b042,_0x57f396,_0x2f0138){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x48206e=JSON[a7_0x46f4('0x28')](stripJsonComments((0x0,fs_1[a7_0x46f4('0x4f')])(a7_0x46f4('0xa'))[a7_0x46f4('0x42')]()));const _0x38bd3f=new TaskOrderer(_0x5569b8['projectGraph'],getDefaultDependencyConfigs(_0x48206e,_0xed2161))[a7_0x46f4('0x8')](_0x2f0138);const _0x6f3184=yield _0x4a2aea['start']((0x0,distributed_execution_api_1[a7_0x46f4('0x5e')])(_0x57f396,_0x38bd3f,_0xed2161));return yield processTasks(_0x4a2aea,_0x8fe135,_0x43b042,_0xed2161,_0x6f3184,_0x2f0138,_0x5569b8);});}function processTasks(_0x2056d7,_0xabeb9a,_0x767db4,_0x1fd605,_0x300c98,_0x10a1ff,_0x87ccf8){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x24ef10={};const _0x132d82=(0x0,create_no_new_messages_timeout_1['createNoNewMessagesTimeout'])();const _0x45e52a=new waiter_1['Waiter']();while(!![]){if(environment_1['VERBOSE_LOGGING']){output_1[a7_0x46f4('0x17')]['note']({'title':a7_0x46f4('0x4e')});}yield _0x45e52a['wait']();const _0x5dd47a=yield _0x2056d7['status'](_0x300c98);if(environment_1[a7_0x46f4('0x13')]){output_1[a7_0x46f4('0x17')][a7_0x46f4('0x4b')]({'title':'Status\x20update','bodyLines':[a7_0x46f4('0x1f')+_0x300c98,a7_0x46f4('0x50')+_0x5dd47a['executionStatus'],a7_0x46f4('0x3b')+_0x5dd47a[a7_0x46f4('0x3d')][a7_0x46f4('0x43')],a7_0x46f4('0x5f')+_0x5dd47a[a7_0x46f4('0x4a')]]});}if(_0x5dd47a[a7_0x46f4('0x4a')]){output_1[a7_0x46f4('0x17')]['error']({'title':a7_0x46f4('0xf'),'bodyLines':[a7_0x46f4('0x12'),_0x5dd47a[a7_0x46f4('0x4a')]]});process[a7_0x46f4('0x35')](0x1);}_0x132d82(_0x5dd47a[a7_0x46f4('0x3d')][a7_0x46f4('0x43')]);for(const _0x42e4d4 of _0x5dd47a['completedTasks']){if(_0x24ef10[_0x42e4d4[a7_0x46f4('0x48')]])continue;yield processTask(_0xabeb9a,_0x767db4,_0x87ccf8,_0x1fd605,_0x10a1ff,_0x42e4d4);_0x45e52a['reset']();_0x24ef10[_0x42e4d4[a7_0x46f4('0x48')]]=!![];}if(_0x5dd47a['executionStatus']===a7_0x46f4('0x3e')){return{'commandStatus':_0x5dd47a[a7_0x46f4('0x4c')],'runUrl':_0x5dd47a[a7_0x46f4('0x3')]};}}});}function processTask(_0x48c026,_0x6470d1,_0x1890fd,_0xafc72,_0x4a6ec9,_0x2a9794){return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1[a7_0x46f4('0x13')]){output_1[a7_0x46f4('0x17')]['note']({'title':a7_0x46f4('0x40')+_0x2a9794[a7_0x46f4('0x48')]});}const _0x1d4e22=_0x4a6ec9[a7_0x46f4('0x49')](_0x39f8ef=>_0x2a9794[a7_0x46f4('0x48')]===_0x39f8ef['id']);if(!_0x1d4e22){throw new Error('Found\x20unknown\x20task:\x20'+_0x2a9794[a7_0x46f4('0x48')]);}if(environment_1[a7_0x46f4('0x13')]){output_1['output'][a7_0x46f4('0x4b')]({'title':'Retrieving\x20artifacts\x20from\x20'+_0x2a9794[a7_0x46f4('0x2d')]});}yield _0x48c026[a7_0x46f4('0x5c')](_0x2a9794[a7_0x46f4('0x2')],_0x2a9794[a7_0x46f4('0x2d')],_0xafc72[a7_0x46f4('0x0')]||a7_0x46f4('0x30'));const _0x2aaa4f=yield _0x6470d1[a7_0x46f4('0x1')](Object['assign'](Object[a7_0x46f4('0x29')]({},_0x1d4e22),{'hash':_0x2a9794['hash']}));const _0x24bdc6=(0x0,utils_1['getOutputs'])(_0x1890fd['projectGraph'][a7_0x46f4('0x33')],_0x1d4e22);if(environment_1[a7_0x46f4('0x13')]){output_1[a7_0x46f4('0x17')]['note']({'title':a7_0x46f4('0x5b'),'bodyLines':_0x24bdc6});}yield _0x6470d1[a7_0x46f4('0x9')](_0x2a9794['hash'],_0x2aaa4f,_0x24bdc6);output_1[a7_0x46f4('0x17')][a7_0x46f4('0x4d')](getCommand(_0x1d4e22));process[a7_0x46f4('0x14')][a7_0x46f4('0x3f')](_0x2aaa4f['terminalOutput']);output_1[a7_0x46f4('0x17')][a7_0x46f4('0x37')]();});}function getCommand(_0x16a6c7){const _0x58c831=(0x0,utils_1[a7_0x46f4('0x27')])(_0x16a6c7[a7_0x46f4('0x1a')]||{});const _0x146b14=_0x16a6c7[a7_0x46f4('0x39')]['configuration']?':'+_0x16a6c7[a7_0x46f4('0x39')][a7_0x46f4('0x57')]:'';return['nx','run',_0x16a6c7['target'][a7_0x46f4('0x34')]+':'+_0x16a6c7[a7_0x46f4('0x39')][a7_0x46f4('0x39')]+_0x146b14,..._0x58c831]['join']('\x20');}const nxCloudDistributedTasksRunner=(_0x488bda,_0x40bb0a,_0x2419c1)=>{if(environment_1[a7_0x46f4('0x13')]){output_1['output']['note']({'title':a7_0x46f4('0x31')});}_0x40bb0a['lifeCycle']=new NoopLifeCycle();const _0x56cc2b=(0x0,environment_1[a7_0x46f4('0x1e')])();if(!_0x56cc2b){(0x0,print_run_group_error_1['printRunGroupError'])();return process[a7_0x46f4('0x35')](0x1);}const _0x3b251b=new e2e_encryption_1['E2EEncryption'](environment_1[a7_0x46f4('0x18')]||_0x40bb0a[a7_0x46f4('0x2c')]);const _0xa6741b=new file_storage_1[(a7_0x46f4('0x3c'))](_0x3b251b,0x3);const _0x3c8ae9=new cache_1[(a7_0x46f4('0x55'))](_0x40bb0a);const _0x18c26f=new distributed_execution_api_1[(a7_0x46f4('0x21'))](_0x40bb0a);runDistributedExecution(_0x18c26f,_0x40bb0a,_0x2419c1,_0xa6741b,_0x3c8ae9,_0x56cc2b,_0x488bda)[a7_0x46f4('0x2a')](_0x49d931=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){if(_0x49d931[a7_0x46f4('0x4c')]===0x0){output_1['output'][a7_0x46f4('0x1c')]({'title':a7_0x46f4('0x61'),'bodyLines':[a7_0x46f4('0x3a')+_0x49d931[a7_0x46f4('0x3')]]});}else{output_1[a7_0x46f4('0x17')][a7_0x46f4('0xc')]({'title':a7_0x46f4('0xb'),'bodyLines':[a7_0x46f4('0x3a')+_0x49d931[a7_0x46f4('0x3')]]});}yield(0x0,metric_logger_1['submitRunMetrics'])(_0x40bb0a);process[a7_0x46f4('0x35')](_0x49d931['commandStatus']);}))[a7_0x46f4('0x47')](_0x25bdb8=>{output_1[a7_0x46f4('0x17')]['error']({'title':'Unable\x20to\x20complete\x20a\x20run.','bodyLines':[_0x25bdb8[a7_0x46f4('0x24')]]});if(_0x25bdb8[a7_0x46f4('0x15')]){console[a7_0x46f4('0x10')](_0x25bdb8['axiosException']);}else{console['log'](_0x25bdb8);}_0x18c26f[a7_0x46f4('0x36')](_0x56cc2b,a7_0x46f4('0x20')+_0x25bdb8[a7_0x46f4('0x24')]+'\x22')[a7_0x46f4('0x58')](()=>process['exit'](0x1));});return new Observable_1['Observable'](()=>{});};exports['nxCloudDistributedTasksRunner']=nxCloudDistributedTasksRunner;class TaskOrderer{constructor(_0x3dcdc9,_0x3ac116){this['projectGraph']=_0x3dcdc9;this[a7_0x46f4('0x41')]=_0x3ac116;}[a7_0x46f4('0x8')](_0x9cf7c2){if(_0x9cf7c2[a7_0x46f4('0x43')]===0x0)return[];const _0x38e16f=[];const _0x29c39c=this['createTaskGraph'](_0x9cf7c2);const _0x28776c=new Set(_0x9cf7c2['map'](_0x2e631b=>_0x2e631b['id']));let _0xe336eb=0x0;while(_0x28776c[a7_0x46f4('0xd')]>0x0){const _0x47db4f=_0x38e16f[_0xe336eb]=[];for(const _0x3c99e9 of _0x28776c){let _0x4ff0c8=!![];for(const _0xbf9ec9 of _0x29c39c[a7_0x46f4('0x59')][_0x3c99e9]){if(_0x28776c[a7_0x46f4('0x54')](_0xbf9ec9)){_0x4ff0c8=![];break;}}if(!_0x4ff0c8){continue;}const _0x427466=_0x29c39c[a7_0x46f4('0x60')][_0x3c99e9];_0x47db4f[a7_0x46f4('0x1d')](_0x427466);}for(const _0x1897fe of _0x47db4f){_0x28776c[a7_0x46f4('0x5')](_0x1897fe['id']);}_0xe336eb++;}return _0x38e16f;}[a7_0x46f4('0x2e')](_0x399ea){const _0xec7956={'tasks':{},'dependencies':{}};for(const _0xb17c4d of _0x399ea){_0xec7956[a7_0x46f4('0x60')][_0xb17c4d['id']]=_0xb17c4d;_0xec7956[a7_0x46f4('0x59')][_0xb17c4d['id']]=[];const _0x34826a=(0x0,utils_1[a7_0x46f4('0x45')])(_0xb17c4d[a7_0x46f4('0x39')],this['defaultTargetDependencies'],this['projectGraph']);if(!_0x34826a){continue;}const _0x345574=new Set(this['projectGraph'][a7_0x46f4('0x59')][_0xb17c4d['target'][a7_0x46f4('0x34')]]['map'](_0x2f81cd=>_0x2f81cd['target']));for(const _0x1876e2 of _0x34826a){if(_0x1876e2[a7_0x46f4('0x53')]===a7_0x46f4('0x56')){for(const _0x5c826a of _0x399ea){if(_0x5c826a[a7_0x46f4('0x39')][a7_0x46f4('0x34')]===_0xb17c4d[a7_0x46f4('0x39')][a7_0x46f4('0x34')]&&_0x5c826a[a7_0x46f4('0x39')]['target']===_0x1876e2['target']){_0xec7956[a7_0x46f4('0x59')][_0xb17c4d['id']][a7_0x46f4('0x1d')](_0x5c826a['id']);}}}else if(_0x1876e2['projects']===a7_0x46f4('0x59')){for(const _0x3816d9 of _0x399ea){if(_0x345574['has'](_0x3816d9[a7_0x46f4('0x39')][a7_0x46f4('0x34')])&&_0x3816d9[a7_0x46f4('0x39')][a7_0x46f4('0x39')]===_0x1876e2[a7_0x46f4('0x39')]){_0xec7956['dependencies'][_0xb17c4d['id']]['push'](_0x3816d9['id']);}}}}}return _0xec7956;}}function getDefaultDependencyConfigs(_0x4691cb,_0x205c8b){var _0x58a61b,_0x3ed217;const _0x3d32a2=(_0x58a61b=_0x4691cb[a7_0x46f4('0x5d')])!==null&&_0x58a61b!==void 0x0?_0x58a61b:{};const _0x572e3c=_0x205c8b?(_0x3ed217=_0x205c8b[a7_0x46f4('0x44')])!==null&&_0x3ed217!==void 0x0?_0x3ed217:[a7_0x46f4('0x38')]:[];for(const _0x8b600a of _0x572e3c){_0x3d32a2[_0x8b600a]=_0x3d32a2[_0x8b600a]||[];_0x3d32a2[_0x8b600a][a7_0x46f4('0x1d')]({'target':_0x8b600a,'projects':a7_0x46f4('0x59')});}return _0x3d32a2;}
|
|
@@ -57,16 +57,21 @@ const submitRunMetrics = (options) => {
|
|
|
57
57
|
else {
|
|
58
58
|
sampleRate = NON_CI_SAMPLE_RATE;
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
if (environment_1.
|
|
62
|
-
(
|
|
60
|
+
try {
|
|
61
|
+
if (environment_1.NX_CLOUD_FORCE_METRICS || Math.random() < sampleRate) {
|
|
62
|
+
if (environment_1.VERBOSE_LOGGING) {
|
|
63
|
+
(0, print_message_1.printMessage)('Submitting runner metrics for this run.');
|
|
64
|
+
}
|
|
65
|
+
const axiosInstance = (0, axios_1.createApiAxiosInstance)(options);
|
|
66
|
+
return axiosInstance
|
|
67
|
+
.post('/nx-cloud/save-metrics', Object.assign({ branch: (0, environment_1.getBranch)() }, performanceEntries))
|
|
68
|
+
.catch((e) => { });
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
return Promise.resolve();
|
|
63
72
|
}
|
|
64
|
-
const axiosInstance = (0, axios_1.createApiAxiosInstance)(options);
|
|
65
|
-
return axiosInstance.post('/nx-cloud/save-metrics', Object.assign({ branch: (0, environment_1.getBranch)() }, performanceEntries));
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
return Promise.resolve();
|
|
69
73
|
}
|
|
74
|
+
catch (e) { }
|
|
70
75
|
};
|
|
71
76
|
exports.submitRunMetrics = submitRunMetrics;
|
|
72
77
|
//# sourceMappingURL=metric-logger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metric-logger.js","sourceRoot":"","sources":["../../../../../../libs/nx-packages/nx-cloud/src/lib/utilities/metric-logger.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AACzC,mCAAqE;AACrE,+CAKuB;AAEvB,mDAA+C;AAwB/C,MAAM,kBAAkB,GAA0B;IAChD,SAAS,EAAE,EAAE;IACb,YAAY,EAAE,EAAE;IAChB,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,EAAE;IACV,cAAc,EAAE,EAAE;IAClB,gBAAgB,EAAE,EAAE;IACpB,YAAY,EAAE,EAAE;IAChB,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,EAAE;CACb,CAAC;AAMK,MAAM,oBAAoB,GAAG,CAAC,IAAY,EAAkB,EAAE;IACnE,MAAM,SAAS,GAAG,wBAAW,CAAC,GAAG,EAAE,CAAC;IAEpC,MAAM,QAAQ,GAAmB;QAC/B,YAAY,EAAE,CAAC,QAAQ,EAAE,EAAE;YACzB,MAAM,OAAO,GAAG,wBAAW,CAAC,GAAG,EAAE,CAAC;YAClC,QAAQ,CAAC,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC;YAE1C,kBAAkB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC1C,CAAC;KACF,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAbW,QAAA,oBAAoB,wBAa/B;AAEF;;;GAGG;AACI,MAAM,kBAAkB,GAAG,CAAC,IAAS,EAAoB,EAAE;;IAAC,OAAA,CAAC;QAClE,OAAO,EAAE,MAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,0CAAE,QAAQ,GAAG,UAAU,CAAC,GAAG,CAAC,mCAAI,KAAK;QAC1D,UAAU,EAAE,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,mCAAI,CAAC,CAAC;KAC/B,CAAC,CAAA;CAAA,CAAC;AAHU,QAAA,kBAAkB,sBAG5B;AAEH;;GAEG;AACU,QAAA,yBAAyB,GAAqB;IACzD,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,CAAC,CAAC;CACf,CAAC;AAEF,MAAM,cAAc,GAAG,GAAG,CAAC,CAAC,kCAAkC;AAC9D,MAAM,kBAAkB,GAAG,IAAI,CAAC,CAAC,sCAAsC;AAEhE,MAAM,gBAAgB,GAAG,CAAC,OAA+B,EAAE,EAAE;IAClE,IAAI,UAAU,CAAC;IACf,IAAI,IAAA,uBAAS,GAAE,EAAE;QACf,UAAU,GAAG,cAAc,CAAC;KAC7B;SAAM;QACL,UAAU,GAAG,kBAAkB,CAAC;KACjC;IAED,IAAI,oCAAsB,IAAI,IAAI,CAAC,MAAM,EAAE,GAAG,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"metric-logger.js","sourceRoot":"","sources":["../../../../../../libs/nx-packages/nx-cloud/src/lib/utilities/metric-logger.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AACzC,mCAAqE;AACrE,+CAKuB;AAEvB,mDAA+C;AAwB/C,MAAM,kBAAkB,GAA0B;IAChD,SAAS,EAAE,EAAE;IACb,YAAY,EAAE,EAAE;IAChB,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,EAAE;IACV,cAAc,EAAE,EAAE;IAClB,gBAAgB,EAAE,EAAE;IACpB,YAAY,EAAE,EAAE;IAChB,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,EAAE;CACb,CAAC;AAMK,MAAM,oBAAoB,GAAG,CAAC,IAAY,EAAkB,EAAE;IACnE,MAAM,SAAS,GAAG,wBAAW,CAAC,GAAG,EAAE,CAAC;IAEpC,MAAM,QAAQ,GAAmB;QAC/B,YAAY,EAAE,CAAC,QAAQ,EAAE,EAAE;YACzB,MAAM,OAAO,GAAG,wBAAW,CAAC,GAAG,EAAE,CAAC;YAClC,QAAQ,CAAC,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC;YAE1C,kBAAkB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC1C,CAAC;KACF,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAbW,QAAA,oBAAoB,wBAa/B;AAEF;;;GAGG;AACI,MAAM,kBAAkB,GAAG,CAAC,IAAS,EAAoB,EAAE;;IAAC,OAAA,CAAC;QAClE,OAAO,EAAE,MAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,0CAAE,QAAQ,GAAG,UAAU,CAAC,GAAG,CAAC,mCAAI,KAAK;QAC1D,UAAU,EAAE,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,mCAAI,CAAC,CAAC;KAC/B,CAAC,CAAA;CAAA,CAAC;AAHU,QAAA,kBAAkB,sBAG5B;AAEH;;GAEG;AACU,QAAA,yBAAyB,GAAqB;IACzD,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,CAAC,CAAC;CACf,CAAC;AAEF,MAAM,cAAc,GAAG,GAAG,CAAC,CAAC,kCAAkC;AAC9D,MAAM,kBAAkB,GAAG,IAAI,CAAC,CAAC,sCAAsC;AAEhE,MAAM,gBAAgB,GAAG,CAAC,OAA+B,EAAE,EAAE;IAClE,IAAI,UAAU,CAAC;IACf,IAAI,IAAA,uBAAS,GAAE,EAAE;QACf,UAAU,GAAG,cAAc,CAAC;KAC7B;SAAM;QACL,UAAU,GAAG,kBAAkB,CAAC;KACjC;IAED,IAAI;QACF,IAAI,oCAAsB,IAAI,IAAI,CAAC,MAAM,EAAE,GAAG,UAAU,EAAE;YACxD,IAAI,6BAAe,EAAE;gBACnB,IAAA,4BAAY,EAAC,yCAAyC,CAAC,CAAC;aACzD;YAED,MAAM,aAAa,GAAG,IAAA,8BAAsB,EAAC,OAAO,CAAC,CAAC;YAEtD,OAAO,aAAa;iBACjB,IAAI,CAAC,wBAAwB,kBAC5B,MAAM,EAAE,IAAA,uBAAS,GAAE,IAChB,kBAAkB,EACrB;iBACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,GAAE,CAAC,CAAC,CAAC;SACrB;aAAM;YACL,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;SAC1B;KACF;IAAC,OAAO,CAAC,EAAE,GAAE;AAChB,CAAC,CAAC;AA1BW,QAAA,gBAAgB,oBA0B3B"}
|