@nrwl/nx-cloud 13.1.0 → 13.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/core/api/run-group.api.js +1 -1
- package/lib/core/runners/cloud-enabled/cloud-enabled-life-cycle.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/distributed-agent/distributed-agent.api.js +1 -1
- package/lib/core/runners/distributed-agent/distributed-agent.impl.js +1 -1
- package/lib/core/runners/distributed-execution/distributed-execution.api.js +1 -1
- package/lib/core/runners/distributed-execution/distributed-execution.runner.js +1 -1
- package/lib/utilities/print-message.js +8 -5
- package/lib/utilities/print-message.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4d7e=['axiosMultipleTries','next','recordMetric','/nx-cloud/executions/create-run-group','throw','mapRespToPerfEntry','value','message','RunGroupApi','createMetricRecorder','then','apply','__awaiter','__esModule','done','exit','apiAxiosInstance','error','post','@nrwl/workspace/src/utilities/output','defineProperty','RUNNER_FAILURE_PERF_ENTRY','createRunGroup'];(function(_0x4c3935,_0x4d7ed4){const _0x380d17=function(_0xd742e1){while(--_0xd742e1){_0x4c3935['push'](_0x4c3935['shift']());}};_0x380d17(++_0x4d7ed4);}(a0_0x4d7e,0x1a4));const a0_0x380d=function(_0x4c3935,_0x4d7ed4){_0x4c3935=_0x4c3935-0x0;let _0x380d17=a0_0x4d7e[_0x4c3935];return _0x380d17;};'use strict';var __awaiter=this&&this[a0_0x380d('0x6')]||function(_0x302e42,_0x34995d,_0x36f04c,_0x1c5272){function _0x23f95c(_0xf49aec){return _0xf49aec instanceof _0x36f04c?_0xf49aec:new _0x36f04c(function(_0x2d81dc){_0x2d81dc(_0xf49aec);});}return new(_0x36f04c||(_0x36f04c=Promise))(function(_0x1b3904,_0x76e9ff){function _0x5c9796(_0xe12d6){try{_0x8499b2(_0x1c5272['next'](_0xe12d6));}catch(_0x1014ee){_0x76e9ff(_0x1014ee);}}function _0x2de82b(_0x31352c){try{_0x8499b2(_0x1c5272[a0_0x380d('0x15')](_0x31352c));}catch(_0x32d140){_0x76e9ff(_0x32d140);}}function _0x8499b2(_0x1ce10d){_0x1ce10d[a0_0x380d('0x8')]?_0x1b3904(_0x1ce10d['value']):_0x23f95c(_0x1ce10d[a0_0x380d('0x0')])[a0_0x380d('0x4')](_0x5c9796,_0x2de82b);}_0x8499b2((_0x1c5272=_0x1c5272[a0_0x380d('0x5')](_0x302e42,_0x34995d||[]))[a0_0x380d('0x12')]());});};Object[a0_0x380d('0xe')](exports,a0_0x380d('0x7'),{'value':!![]});exports[a0_0x380d('0x2')]=void 0x0;const output_1=require(a0_0x380d('0xd'));const axios_1=require('../../utilities/axios');const metric_logger_1=require('../../utilities/metric-logger');class RunGroupApi{constructor(_0x1eda71){this['apiAxiosInstance']=(0x0,axios_1['createApiAxiosInstance'])(_0x1eda71);}[a0_0x380d('0x10')](_0x4f5061,_0x1c682f){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x478646=(0x0,metric_logger_1[a0_0x380d('0x3')])(a0_0x380d('0x10'));try{const _0x2624af=yield(0x0,axios_1[a0_0x380d('0x11')])(()=>this[a0_0x380d('0xa')]['post'](a0_0x380d('0x14'),{'branch':_0x4f5061,'runGroup':_0x1c682f}),0x3);_0x478646[a0_0x380d('0x13')]((0x0,metric_logger_1[a0_0x380d('0x16')])(_0x2624af));}catch(_0x5a3ae6){_0x478646[a0_0x380d('0x13')](metric_logger_1[a0_0x380d('0xf')]);output_1['output'][a0_0x380d('0xb')]({'title':_0x5a3ae6[a0_0x380d('0x1')]});process[a0_0x380d('0x9')](0x1);}});}['completeRunGroup'](_0x1222c6){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3df6b3=(0x0,metric_logger_1[a0_0x380d('0x3')])(a0_0x380d('0x10'));try{const _0x375adc=yield(0x0,axios_1[a0_0x380d('0x11')])(()=>this[a0_0x380d('0xa')][a0_0x380d('0xc')]('/nx-cloud/executions/complete-run-group',{'runGroup':_0x1222c6}),0x3);_0x3df6b3['recordMetric']((0x0,metric_logger_1[a0_0x380d('0x16')])(_0x375adc));}catch(_0x1e7f49){_0x3df6b3[a0_0x380d('0x13')](metric_logger_1[a0_0x380d('0xf')]);output_1['output'][a0_0x380d('0xb')]({'title':_0x1e7f49[a0_0x380d('0x1')]});process[a0_0x380d('0x9')](0x1);}});}}exports[a0_0x380d('0x2')]=RunGroupApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x2eec=['CloudEnabledLifeCycle','target','startTask','assign','configuration','push','forEach','readFileSync','cacheDirectory','endTime','length','implicitDeps','taskId','nodes','startsWith','TRUNCATED\x0a\x0a','obfuscate','indexOf','__esModule','tasks','readTerminalOutputFile','appRootPath','.cache','path','cleanUpHashDetails','terminalOutputs','MAX_CHARACTERS_FAILED_TASK','getTerminalOutput','status','scheduleTask','endTask','collectTerminalOutput','terminalOutput','outputObfuscator','MAX_CHARACTERS_CACHED_TASK','slice','join','runContext','toString','unparse','endCommand','project','cacheableOperations','cache-miss','defineProperty','find','toISOString','cacheStatus','runtime','node_modules','filter','hash','statuses','params','hashDetails'];(function(_0x2f419e,_0x2eecb9){const _0x18e8d7=function(_0x3fe3b6){while(--_0x3fe3b6){_0x2f419e['push'](_0x2f419e['shift']());}};_0x18e8d7(++_0x2eecb9);}(a0_0x2eec,0x12a));const a0_0x18e8=function(_0x2f419e,_0x2eecb9){_0x2f419e=_0x2f419e-0x0;let _0x18e8d7=a0_0x2eec[_0x2f419e];return _0x18e8d7;};'use strict';Object[a0_0x18e8('0x15')](exports,a0_0x18e8('0x32'),{'value':!![]});exports[a0_0x18e8('0x20')]=void 0x0;const utils_1=require('@nrwl/workspace/src/tasks-runner/utils');const path_1=require(a0_0x18e8('0x0'));const app_root_1=require('@nrwl/workspace/src/utils/app-root');const fs_1=require('fs');const path=require(a0_0x18e8('0x0'));class CloudEnabledLifeCycle{constructor(_0xfdad4a,_0x592732,_0x5cc5d5,_0x4b23d4,_0x499085,_0x2b978f){this['runContext']=_0xfdad4a;this['cacheDirectory']=_0x592732;this[a0_0x18e8('0x8')]=_0x5cc5d5;this['cacheableOperations']=_0x4b23d4;this[a0_0x18e8('0xa')]=_0x499085;this[a0_0x18e8('0x33')]=_0x2b978f;}[a0_0x18e8('0x6')](_0x2bd62a){this[a0_0x18e8('0xe')]['scheduledTasks']['push'](_0x2bd62a);}[a0_0x18e8('0x22')](_0x3dc676){const _0x1a5fb9=Object[a0_0x18e8('0x23')]({},_0x3dc676['overrides']||{});if(_0x3dc676[a0_0x18e8('0x21')][a0_0x18e8('0x24')]){_0x1a5fb9[a0_0x18e8('0x24')]=_0x3dc676[a0_0x18e8('0x21')][a0_0x18e8('0x24')];}this['tasks'][a0_0x18e8('0x25')]({'taskId':_0x3dc676['id'],'startTime':new Date()[a0_0x18e8('0x17')](),'target':_0x3dc676[a0_0x18e8('0x21')][a0_0x18e8('0x21')],'projectName':_0x3dc676[a0_0x18e8('0x21')][a0_0x18e8('0x12')],'hash':_0x3dc676['hash'],'hashDetails':this[a0_0x18e8('0x1')](_0x3dc676[a0_0x18e8('0x1f')]),'params':(0x0,utils_1[a0_0x18e8('0x10')])(_0x1a5fb9)[a0_0x18e8('0xd')]('\x20')});}[a0_0x18e8('0x7')](_0x25f901,_0x4c178f){const _0x4292ad=this[a0_0x18e8('0x33')][a0_0x18e8('0x16')](_0x5c1128=>_0x5c1128[a0_0x18e8('0x2c')]===_0x25f901['id']);if(!_0x4292ad){throw new Error('Cannot\x20find\x20task\x20'+_0x25f901['id']);}_0x4292ad[a0_0x18e8('0x29')]=new Date()[a0_0x18e8('0x17')]();_0x4292ad[a0_0x18e8('0x5')]=_0x4c178f;_0x4292ad['params']=this[a0_0x18e8('0xa')][a0_0x18e8('0x30')](_0x4292ad[a0_0x18e8('0x1e')]);if(this['runContext'][a0_0x18e8('0x1d')][_0x25f901['hash']]){_0x4292ad['cacheStatus']=this[a0_0x18e8('0xe')][a0_0x18e8('0x1d')][_0x25f901[a0_0x18e8('0x1c')]];}else{if(this[a0_0x18e8('0x13')][a0_0x18e8('0x31')](_0x25f901[a0_0x18e8('0x21')][a0_0x18e8('0x21')])>-0x1){_0x4292ad['cacheStatus']='local-cache-hit';}else{_0x4292ad['cacheStatus']=a0_0x18e8('0x14');}}if(this['collectTerminalOutput']){_0x4292ad[a0_0x18e8('0x9')]=this[a0_0x18e8('0x4')](_0x25f901['hash'],_0x4292ad[a0_0x18e8('0x18')],_0x4c178f);}}[a0_0x18e8('0x11')](){}[a0_0x18e8('0x4')](_0x269160,_0x37dec9,_0x3130e8){let _0x2fa2d4;if(this[a0_0x18e8('0x28')]){if(this['cacheDirectory'][a0_0x18e8('0x2e')]('./')){_0x2fa2d4=(0x0,path_1['join'])(app_root_1[a0_0x18e8('0x35')],this[a0_0x18e8('0x28')]);}else{_0x2fa2d4=this[a0_0x18e8('0x28')];}}else{_0x2fa2d4=(0x0,path_1[a0_0x18e8('0xd')])(app_root_1['appRootPath'],a0_0x18e8('0x1a'),a0_0x18e8('0x36'),'nx');}try{const _0x2f5801=this[a0_0x18e8('0x34')](_0x2fa2d4,_0x269160);const _0x2b1928=this[a0_0x18e8('0xa')]['obfuscate'](_0x2f5801);const _0x2b2503=_0x37dec9===a0_0x18e8('0x14')?_0x3130e8===0x0?CloudEnabledLifeCycle['MAX_CHARACTERS_SUCCESSFUL_TASK']:CloudEnabledLifeCycle[a0_0x18e8('0x3')]:CloudEnabledLifeCycle[a0_0x18e8('0xb')];return _0x2b1928['length']>_0x2b2503?a0_0x18e8('0x2f')+_0x2b1928[a0_0x18e8('0xc')](_0x2b1928[a0_0x18e8('0x2a')]-_0x2b2503):_0x2b1928;}catch(_0x4c29fe){return'';}}[a0_0x18e8('0x1')](_0x179940){const _0x5cda72={};Object['keys'](_0x179940[a0_0x18e8('0x2d')])[a0_0x18e8('0x1b')](_0x5b46d3=>!_0x5b46d3[a0_0x18e8('0x2e')]('npm:'))[a0_0x18e8('0x26')](_0x3d58d7=>{_0x5cda72[_0x3d58d7]=_0x179940['nodes'][_0x3d58d7];});return{'nodes':_0x5cda72,'runtime':_0x179940[a0_0x18e8('0x19')],'implicitDeps':_0x179940[a0_0x18e8('0x2b')]};}[a0_0x18e8('0x34')](_0x5df634,_0x43770b){try{return(0x0,fs_1[a0_0x18e8('0x27')])(path[a0_0x18e8('0xd')](_0x5df634,a0_0x18e8('0x2'),_0x43770b))['toString']();}catch(_0x25fbed){try{return(0x0,fs_1[a0_0x18e8('0x27')])(path[a0_0x18e8('0xd')](_0x5df634,_0x43770b,a0_0x18e8('0x9')))[a0_0x18e8('0xf')]();}catch(_0x3dc8b3){return'';}}}}exports[a0_0x18e8('0x20')]=CloudEnabledLifeCycle;CloudEnabledLifeCycle['MAX_CHARACTERS_FAILED_TASK']=0x30d40;CloudEnabledLifeCycle['MAX_CHARACTERS_SUCCESSFUL_TASK']=0x4e20;CloudEnabledLifeCycle[a0_0x18e8('0xb')]=0x1388;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0x4ff1=['__esModule','writeFileSync','submitRunMetrics','VERBOSE_LOGGING','path','OutputObfuscator','error','subscribe','NUMBER_OF_TRIES','EndOfRunMessage','getRunGroup','assign','next','FileStorage','throw','all','map','AGENT_RUNNING_IN_DISTRIBUTED_EXECUTION','apply','./cloud-remote-cache','lifeCycle','forEach','@nrwl/workspace/src/utilities/output','./cloud-run.api','cloudEnabledTasksRunner','./node_modules/.cache/nx','CloudRunApi','../../file-storage/file-storage','Executed\x20tasks\x20with\x20hashes:\x20','catch','printMessages','note','@nrwl/workspace/src/tasks-runner/tasks-runner-v2','hash','parseCommand','../../../utilities/environment','CloudEnabledLifeCycle','extractGitSha','Agent\x20wasn\x27t\x20able\x20to\x20record\x20its\x20run','E2EEncryption','defineProperty','stringify','NX_CLOUD_DISTRIBUTED_EXECUTION_ID','Subject','cacheDirectory','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','value','rxjs/internal/Subject','then','toISOString','MessageReporter','env','requests','printCacheHitsMessage','../../terminal-output/end-of-run-message','output','@nrwl/workspace/src/tasks-runner/life-cycle','../../terminal-output/output-obfuscator','Agent\x20wasn\x27t\x20able\x20to\x20store\x20artifacts','scan','anyErrors','../../file-storage/e2e-encryption','exit','filter'];(function(_0x37b588,_0x4ff172){const _0xa2d35a=function(_0x5ed3aa){while(--_0x5ed3aa){_0x37b588['push'](_0x37b588['shift']());}};_0xa2d35a(++_0x4ff172);}(a1_0x4ff1,0x14e));const a1_0xa2d3=function(_0x37b588,_0x4ff172){_0x37b588=_0x37b588-0x0;let _0xa2d35a=a1_0x4ff1[_0x37b588];return _0xa2d35a;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x248621,_0x306dbc,_0x1c46de,_0x4ce834){function _0x442153(_0x5a54d0){return _0x5a54d0 instanceof _0x1c46de?_0x5a54d0:new _0x1c46de(function(_0x342020){_0x342020(_0x5a54d0);});}return new(_0x1c46de||(_0x1c46de=Promise))(function(_0x215080,_0x34a3d1){function _0x5092f6(_0x10f690){try{_0x219cf0(_0x4ce834[a1_0xa2d3('0x3e')](_0x10f690));}catch(_0x257228){_0x34a3d1(_0x257228);}}function _0x538ac7(_0x5001da){try{_0x219cf0(_0x4ce834[a1_0xa2d3('0x0')](_0x5001da));}catch(_0x4107e1){_0x34a3d1(_0x4107e1);}}function _0x219cf0(_0x414204){_0x414204['done']?_0x215080(_0x414204['value']):_0x442153(_0x414204[a1_0xa2d3('0x20')])['then'](_0x5092f6,_0x538ac7);}_0x219cf0((_0x4ce834=_0x4ce834[a1_0xa2d3('0x4')](_0x248621,_0x306dbc||[]))['next']());});};Object[a1_0xa2d3('0x1a')](exports,a1_0xa2d3('0x32'),{'value':!![]});exports[a1_0xa2d3('0xa')]=void 0x0;const Subject_1=require(a1_0xa2d3('0x21'));const message_reporter_1=require('../../terminal-output/message-reporter');const end_of_run_message_1=require(a1_0xa2d3('0x28'));const output_obfuscator_1=require(a1_0xa2d3('0x2b'));const cloud_enabled_life_cycle_1=require('./cloud-enabled-life-cycle');const file_storage_1=require(a1_0xa2d3('0xd'));const e2e_encryption_1=require(a1_0xa2d3('0x2f'));const environment_1=require(a1_0xa2d3('0x15'));const cloud_remote_cache_1=require(a1_0xa2d3('0x5'));const tasks_runner_v2_1=require(a1_0xa2d3('0x12'));const output_1=require(a1_0xa2d3('0x8'));const cloud_run_api_1=require(a1_0xa2d3('0x9'));const fs_1=require('fs');const path=require(a1_0xa2d3('0x36'));const metric_logger_1=require('../../../utilities/metric-logger');function createApi(_0x1b5156,_0x3d65b2,_0x250590){const _0x2216a6=(0x0,environment_1['getMachineInfo'])(_0x3d65b2);return new cloud_run_api_1[(a1_0xa2d3('0xc'))](_0x1b5156,_0x250590,_0x3d65b2,_0x2216a6);}function storeTaskHashes(_0x4e118a,_0x5a61c0,_0x4980d7){const _0x47ff64=JSON[a1_0xa2d3('0x1b')](_0x4e118a[a1_0xa2d3('0x2')](_0xb41191=>({'taskId':_0xb41191['taskId'],'hash':_0xb41191[a1_0xa2d3('0x13')]})));if(environment_1[a1_0xa2d3('0x35')]){output_1[a1_0xa2d3('0x29')][a1_0xa2d3('0x11')]({'title':a1_0xa2d3('0xe')+_0x47ff64});}(0x0,fs_1[a1_0xa2d3('0x33')])(path['join'](_0x5a61c0,'tasks-hashes-'+_0x4980d7),_0x47ff64);}function onComplete(_0x11a3ae,_0x5f65b3,_0x2d847a,_0x472239,_0xff1ea5,_0x1c7691,_0x4f3260,_0x11de55,_0x5f52a2,_0xf9601){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x14e688=new Date()[a1_0xa2d3('0x23')]();if(environment_1[a1_0xa2d3('0x3')]){storeTaskHashes(_0x5f52a2,_0x5f65b3[a1_0xa2d3('0x1e')]||a1_0xa2d3('0xb'),environment_1['NX_CLOUD_DISTRIBUTED_EXECUTION_ID']);}const _0xea0f9a=(0x0,environment_1['getBranch'])();const _0x400a8a=yield Promise[a1_0xa2d3('0x1')]([_0x2d847a['waitForStoreRequestsToComplete'](),_0x472239['endRun']({'command':_0xff1ea5['obfuscate']((0x0,environment_1[a1_0xa2d3('0x14')])()),'startTime':_0x1c7691,'endTime':_0x14e688,'distributedExecutionId':environment_1[a1_0xa2d3('0x1c')],'branch':_0xea0f9a,'scan':!![],'runGroup':(0x0,environment_1[a1_0xa2d3('0x3c')])(),'sha':_0xea0f9a?(0x0,environment_1[a1_0xa2d3('0x17')])():undefined},_0x5f52a2)]);if(_0xf9601){setTimeout(()=>{_0x4f3260[a1_0xa2d3('0x10')]();if(!_0x4f3260[a1_0xa2d3('0x2e')]){_0x11de55[a1_0xa2d3('0x27')]();}},0x0);}else{_0x4f3260[a1_0xa2d3('0x10')]();if(!_0x4f3260[a1_0xa2d3('0x2e')]){_0x11de55['printCacheHitsMessage']();}}if(environment_1[a1_0xa2d3('0x3')]){if(!_0x400a8a[0x0]){output_1['output']['error']({'title':a1_0xa2d3('0x2c')});_0x4f3260[a1_0xa2d3('0x10')]();process['exit'](environment_1[a1_0xa2d3('0x1f')]);}if(!_0x400a8a[0x1]){output_1['output'][a1_0xa2d3('0x38')]({'title':a1_0xa2d3('0x18')});_0x4f3260[a1_0xa2d3('0x10')]();process[a1_0xa2d3('0x30')](environment_1[a1_0xa2d3('0x1f')]);}}yield(0x0,metric_logger_1[a1_0xa2d3('0x34')])(_0x5f65b3);});}function createLifeCycle(_0x334849,_0x2129c1,_0x331c04,_0x48e13e){const _0x21bd44=new cloud_enabled_life_cycle_1[(a1_0xa2d3('0x16'))](_0x334849,_0x2129c1[a1_0xa2d3('0x1e')],_0x2129c1[a1_0xa2d3('0x2d')]===undefined?!![]:_0x2129c1['scan'],_0x2129c1['cacheableOperations']||[],_0x331c04,_0x48e13e);try{const {CompositeLifeCycle}=require(a1_0xa2d3('0x2a'));if(!CompositeLifeCycle)return _0x21bd44;return new CompositeLifeCycle([_0x2129c1[a1_0xa2d3('0x6')],_0x21bd44]);}catch(_0x374bab){return _0x21bd44;}}function cloudEnabledTasksRunner(_0x170c0b,_0x3a8727,_0x4a53c4){const _0x20165b={'statuses':{},'scheduledTasks':[],'requests':{},'allTasks':_0x170c0b};const _0x355ba4=_0x3a8727[a1_0xa2d3('0x6')]===undefined;const _0x178a06=[];const _0x3914a6=new message_reporter_1[(a1_0xa2d3('0x24'))](_0x3a8727);const _0x18eecb=createApi(_0x3914a6,_0x3a8727,_0x20165b);const _0x319717=new end_of_run_message_1[(a1_0xa2d3('0x3b'))](_0x20165b,_0x178a06);const _0x3d4959=new output_obfuscator_1[(a1_0xa2d3('0x37'))]();const _0x46b76d=_0x170c0b[a1_0xa2d3('0x2')](_0x1cfb2a=>_0x1cfb2a[a1_0xa2d3('0x13')])[a1_0xa2d3('0x31')](_0x5629b4=>!!_0x5629b4);const _0x5c0943=_0x18eecb['startRun'](environment_1['NX_CLOUD_DISTRIBUTED_EXECUTION_ID'],_0x46b76d);_0x46b76d[a1_0xa2d3('0x7')](_0x4d2087=>{_0x20165b[a1_0xa2d3('0x26')][_0x4d2087]=_0x5c0943;});const _0x310f49=new Date()[a1_0xa2d3('0x23')]();const _0x31290e=createLifeCycle(_0x20165b,_0x3a8727,_0x3d4959,_0x178a06);const _0x4095f=new e2e_encryption_1[(a1_0xa2d3('0x19'))](environment_1['ENCRYPTION_KEY']||_0x3a8727['encryptionKey']);const _0x4d157b=new file_storage_1[(a1_0xa2d3('0x3f'))](_0x4095f,environment_1[a1_0xa2d3('0x3a')]);const _0x2c1045=new cloud_remote_cache_1['CloudRemoteCache'](_0x3914a6,_0x18eecb,_0x20165b,_0x4d157b);delete process[a1_0xa2d3('0x25')]['NX_CLOUD_DISTRIBUTED_EXECUTION_ID'];const _0xc32f5=(0x0,tasks_runner_v2_1['tasksRunnerV2'])(_0x170c0b,Object[a1_0xa2d3('0x3d')](Object[a1_0xa2d3('0x3d')]({},_0x3a8727),{'remoteCache':_0x2c1045,'lifeCycle':_0x31290e}),_0x4a53c4);if(_0xc32f5[a1_0xa2d3('0x39')]){const _0x3e6478=new Subject_1[(a1_0xa2d3('0x1d'))]();_0xc32f5[a1_0xa2d3('0x39')]({'next':_0x1d2927=>_0x3e6478[a1_0xa2d3('0x3e')](_0x1d2927),'error':_0x42713e=>_0x3e6478[a1_0xa2d3('0x38')](_0x42713e),'complete':()=>__awaiter(this,void 0x0,void 0x0,function*(){yield onComplete(_0x31290e,_0x3a8727,_0x2c1045,_0x18eecb,_0x3d4959,_0x310f49,_0x3914a6,_0x319717,_0x178a06,_0x355ba4);_0x3e6478['complete']();})});return _0x3e6478;}else{return _0xc32f5[a1_0xa2d3('0x22')](_0x599b0b=>__awaiter(this,void 0x0,void 0x0,function*(){yield onComplete(_0x31290e,_0x3a8727,_0x2c1045,_0x18eecb,_0x3d4959,_0x310f49,_0x3914a6,_0x319717,_0x178a06,_0x355ba4);return _0x599b0b;}))[a1_0xa2d3('0xf')](_0x8ee12d=>__awaiter(this,void 0x0,void 0x0,function*(){yield onComplete(_0x31290e,_0x3a8727,_0x2c1045,_0x18eecb,_0x3d4959,_0x310f49,_0x3914a6,_0x319717,_0x178a06,_0x355ba4);throw _0x8ee12d;}));}}exports[a1_0xa2d3('0xa')]=cloudEnabledTasksRunner;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x500a=['get','requests','output','status','response','runContext','resolve','apply','statuses','value','indexOf','retrieve','hash','push','reduce','scheduledTasks','forEach','CloudRemoteCache','waitForStoreRequestsToComplete','storeRequests','messages','Nx\x20Cloud:\x20Skipping\x20storing\x20','map','extractErrorMessage','put','defineProperty','../../../utilities/environment','__awaiter','.\x20Status\x20404.','storage','all','cache-miss','hashUrls','VERBOSE_LOGGING','api','throw','next','then','done','fileStorage','cacheError','__esModule','note','store','startRun','Nx\x20Cloud:\x20Cache\x20miss\x20'];(function(_0x3bfa64,_0x500a5c){const _0x24cbfe=function(_0x3d294f){while(--_0x3d294f){_0x3bfa64['push'](_0x3bfa64['shift']());}};_0x24cbfe(++_0x500a5c);}(a2_0x500a,0x160));const a2_0x24cb=function(_0x3bfa64,_0x500a5c){_0x3bfa64=_0x3bfa64-0x0;let _0x24cbfe=a2_0x500a[_0x3bfa64];return _0x24cbfe;};'use strict';var __awaiter=this&&this[a2_0x24cb('0x2b')]||function(_0x34a7e5,_0x176d56,_0x1ad695,_0x117493){function _0x224200(_0x46d4b5){return _0x46d4b5 instanceof _0x1ad695?_0x46d4b5:new _0x1ad695(function(_0x2035ae){_0x2035ae(_0x46d4b5);});}return new(_0x1ad695||(_0x1ad695=Promise))(function(_0x5c97e9,_0x34636f){function _0x1c60a0(_0x410c3b){try{_0x245899(_0x117493[a2_0x24cb('0x6')](_0x410c3b));}catch(_0x4c429e){_0x34636f(_0x4c429e);}}function _0x49241f(_0x3352d0){try{_0x245899(_0x117493[a2_0x24cb('0x5')](_0x3352d0));}catch(_0x3ff9c2){_0x34636f(_0x3ff9c2);}}function _0x245899(_0x5dd665){_0x5dd665[a2_0x24cb('0x8')]?_0x5c97e9(_0x5dd665[a2_0x24cb('0x19')]):_0x224200(_0x5dd665[a2_0x24cb('0x19')])[a2_0x24cb('0x7')](_0x1c60a0,_0x49241f);}_0x245899((_0x117493=_0x117493[a2_0x24cb('0x17')](_0x34a7e5,_0x176d56||[]))[a2_0x24cb('0x6')]());});};Object[a2_0x24cb('0x29')](exports,a2_0x24cb('0xb'),{'value':!![]});exports['CloudRemoteCache']=void 0x0;const output_1=require('@nrwl/workspace/src/utilities/output');const environment_1=require(a2_0x24cb('0x2a'));class CloudRemoteCache{constructor(_0x3683c0,_0x418fc9,_0x16c74c,_0x54fefc){this[a2_0x24cb('0x24')]=_0x3683c0;this['api']=_0x418fc9;this[a2_0x24cb('0x15')]=_0x16c74c;this[a2_0x24cb('0x9')]=_0x54fefc;this['storeRequests']=[];}[a2_0x24cb('0x1b')](_0x4e75da,_0x1eca5d){var _0x42eec1;return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a2_0x24cb('0x24')][a2_0x24cb('0xa')])return![];const _0x9ccfce=yield this[a2_0x24cb('0x2')](_0x4e75da);if(!_0x9ccfce||!_0x9ccfce[a2_0x24cb('0x10')]){if(environment_1[a2_0x24cb('0x3')]){output_1['output']['note']({'title':a2_0x24cb('0xf')+_0x4e75da+'.'});}this[a2_0x24cb('0x15')]['statuses'][_0x4e75da]=a2_0x24cb('0x1');return![];}try{yield this['fileStorage'][a2_0x24cb('0x1b')](_0x4e75da,_0x9ccfce['get'],_0x1eca5d);this[a2_0x24cb('0x15')]['statuses'][_0x4e75da]='remote-cache-hit';return!![];}catch(_0x4f3e41){const _0x59d909=(_0x42eec1=_0x4f3e41['axiosException'])!==null&&_0x42eec1!==void 0x0?_0x42eec1:_0x4f3e41;if(_0x59d909[a2_0x24cb('0x14')]&&_0x59d909[a2_0x24cb('0x14')][a2_0x24cb('0x13')]===0x194){if(environment_1['VERBOSE_LOGGING']){output_1[a2_0x24cb('0x12')]['note']({'title':a2_0x24cb('0xf')+_0x4e75da+a2_0x24cb('0x2c')});}}else{this[a2_0x24cb('0x24')][a2_0x24cb('0xa')]=this[a2_0x24cb('0x24')][a2_0x24cb('0x27')](_0x59d909,'storage');}this[a2_0x24cb('0x15')][a2_0x24cb('0x18')][_0x4e75da]=a2_0x24cb('0x1');return![];}});}[a2_0x24cb('0xd')](_0x5ea5f7,_0x31a43b){return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a2_0x24cb('0x24')]['cacheError'])return![];const _0x3ccbb5=Promise[a2_0x24cb('0x16')]()[a2_0x24cb('0x7')](()=>__awaiter(this,void 0x0,void 0x0,function*(){var _0x9ef200;const _0x21c2a4=yield this[a2_0x24cb('0x2')](_0x5ea5f7);if(!_0x21c2a4)return![];if(!_0x21c2a4[a2_0x24cb('0x28')]){if(environment_1[a2_0x24cb('0x3')]){output_1[a2_0x24cb('0x12')][a2_0x24cb('0xc')]({'title':a2_0x24cb('0x25')+_0x5ea5f7+'.\x20Read\x20only\x20token\x20is\x20used.'});}return!![];}try{yield this['fileStorage'][a2_0x24cb('0xd')](_0x5ea5f7,_0x21c2a4[a2_0x24cb('0x28')],_0x31a43b);return!![];}catch(_0x3ea388){const _0xc2a264=(_0x9ef200=_0x3ea388['axiosException'])!==null&&_0x9ef200!==void 0x0?_0x9ef200:_0x3ea388;this[a2_0x24cb('0x24')]['cacheError']=this[a2_0x24cb('0x24')][a2_0x24cb('0x27')](_0xc2a264,a2_0x24cb('0x2d'));return![];}}));this['storeRequests']['push'](_0x3ccbb5);return _0x3ccbb5;});}[a2_0x24cb('0x2')](_0x35dedf){return __awaiter(this,void 0x0,void 0x0,function*(){if(_0x35dedf in this['runContext'][a2_0x24cb('0x11')]){return(yield this['runContext']['requests'][_0x35dedf])[_0x35dedf];}else{const _0x2184f1=this[a2_0x24cb('0x15')][a2_0x24cb('0x1f')]['filter'](_0x32c9ba=>!this['runContext'][a2_0x24cb('0x11')][_0x32c9ba[a2_0x24cb('0x1c')]])[a2_0x24cb('0x26')](_0x450dc3=>_0x450dc3[a2_0x24cb('0x1c')]);if(_0x2184f1[a2_0x24cb('0x1a')](_0x35dedf)===-0x1){_0x2184f1[a2_0x24cb('0x1d')](_0x35dedf);}const _0x49202c=this[a2_0x24cb('0x4')][a2_0x24cb('0xe')](environment_1['NX_CLOUD_DISTRIBUTED_EXECUTION_ID'],_0x2184f1);_0x2184f1[a2_0x24cb('0x20')](_0x401cfc=>{this[a2_0x24cb('0x15')][a2_0x24cb('0x11')][_0x401cfc]=_0x49202c;});return(yield _0x49202c)[_0x35dedf];}});}[a2_0x24cb('0x22')](){return Promise[a2_0x24cb('0x0')](this[a2_0x24cb('0x23')])['then'](_0x3d85e7=>_0x3d85e7[a2_0x24cb('0x1e')]((_0x13b181,_0xbda870)=>_0x13b181&&_0xbda870,!![]));}}exports[a2_0x24cb('0x21')]=CloudRemoteCache;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x10f5=['next','/nx-cloud/runs/end','application/octet-stream','value','extractErrorMessage','axiosMultipleTries','assign','gzip','apiError','util','message','stack','Nx\x20Cloud:\x20Unknown\x20Error\x20Occurred','nxCloudVersion','@nrwl/workspace/src/utilities/output','Run\x20completion\x20responded\x20with\x20`undefined`.','output','runContext','../../../utilities/axios','startRun','string','Invalid\x20end\x20run\x20response:\x20','machineInfo','Invalid\x20Nx\x20Cloud\x20response:\x20','RunEnd.\x20Completed\x20tasks','apiAxiosInstance','error','../../../utilities/metric-logger','getRunGroup','unknown','VERBOSE_LOGGING','terminalOutput','...','readFileSync','stringify','done','data','RUNNER_FAILURE_PERF_ENTRY','defineProperty','endRun','CloudRunApi','zlib','recordMetric','@nrwl/nx-cloud','__esModule','from','promisify','apply','messages','status','success','__awaiter','NUMBER_OF_TRIES','createApiAxiosInstance','/nx-cloud/runs/start','mapRespToPerfEntry','urls','api','Stack\x20Trace:','map','post','toString','slice','../../../utilities/environment','createMetricRecorder','note','defaults'];(function(_0x3b3f3a,_0x10f51d){const _0x5990c7=function(_0x6cc2e2){while(--_0x6cc2e2){_0x3b3f3a['push'](_0x3b3f3a['shift']());}};_0x5990c7(++_0x10f51d);}(a3_0x10f5,0x15d));const a3_0x5990=function(_0x3b3f3a,_0x10f51d){_0x3b3f3a=_0x3b3f3a-0x0;let _0x5990c7=a3_0x10f5[_0x3b3f3a];return _0x5990c7;};'use strict';var __awaiter=this&&this[a3_0x5990('0x25')]||function(_0x540dbe,_0x2e5283,_0x4d0c83,_0x39acb0){function _0x5a80fa(_0x478e63){return _0x478e63 instanceof _0x4d0c83?_0x478e63:new _0x4d0c83(function(_0x1ab278){_0x1ab278(_0x478e63);});}return new(_0x4d0c83||(_0x4d0c83=Promise))(function(_0x56b013,_0x2c8a45){function _0x3b1190(_0x3f0fad){try{_0x290893(_0x39acb0[a3_0x5990('0x35')](_0x3f0fad));}catch(_0x149003){_0x2c8a45(_0x149003);}}function _0x4269a8(_0x202252){try{_0x290893(_0x39acb0['throw'](_0x202252));}catch(_0x2afea7){_0x2c8a45(_0x2afea7);}}function _0x290893(_0x5c1248){_0x5c1248[a3_0x5990('0x15')]?_0x56b013(_0x5c1248[a3_0x5990('0x38')]):_0x5a80fa(_0x5c1248[a3_0x5990('0x38')])['then'](_0x3b1190,_0x4269a8);}_0x290893((_0x39acb0=_0x39acb0[a3_0x5990('0x21')](_0x540dbe,_0x2e5283||[]))[a3_0x5990('0x35')]());});};Object[a3_0x5990('0x18')](exports,a3_0x5990('0x1e'),{'value':!![]});exports[a3_0x5990('0x1a')]=void 0x0;const output_1=require(a3_0x5990('0x0'));const axios_1=require(a3_0x5990('0x4'));const environment_1=require(a3_0x5990('0x31'));const fs_1=require('fs');const zlib_1=require(a3_0x5990('0x1b'));const util_1=require(a3_0x5990('0x3e'));const metric_logger_1=require(a3_0x5990('0xd'));class CloudRunApi{constructor(_0x530bbb,_0x380c0e,_0x3f771e,_0x49fd5d){this[a3_0x5990('0x22')]=_0x530bbb;this[a3_0x5990('0x3')]=_0x380c0e;this[a3_0x5990('0x8')]=_0x49fd5d;this['apiAxiosInstance']=(0x0,axios_1[a3_0x5990('0x27')])(_0x3f771e);}[a3_0x5990('0x5')](_0x13eeff,_0x2610f0){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5eff0e=(0x0,metric_logger_1[a3_0x5990('0x32')])(a3_0x5990('0x5'));try{const _0x142a5e={'meta':{'nxCloudVersion':this[a3_0x5990('0x42')]()},'branch':(0x0,environment_1['getBranch'])(),'runGroup':(0x0,environment_1[a3_0x5990('0xe')])(),'distributedExecutionId':_0x13eeff,'hashes':_0x2610f0};if(environment_1['VERBOSE_LOGGING']){output_1[a3_0x5990('0x2')][a3_0x5990('0x33')]({'title':'RunStart','bodyLines':['\x0a'+JSON['stringify'](_0x142a5e,null,0x2)]});}const _0x5be727=yield(0x0,axios_1[a3_0x5990('0x3a')])(()=>this['apiAxiosInstance']['post'](a3_0x5990('0x28'),_0x142a5e),environment_1[a3_0x5990('0x26')]);_0x5eff0e[a3_0x5990('0x1c')]((0x0,metric_logger_1[a3_0x5990('0x29')])(_0x5be727));if(_0x5be727[a3_0x5990('0x16')]&&_0x5be727['data'][a3_0x5990('0x3f')]){this[a3_0x5990('0x22')][a3_0x5990('0x3f')]=_0x5be727[a3_0x5990('0x16')][a3_0x5990('0x3f')];}if(!_0x5be727[a3_0x5990('0x16')]||!_0x5be727[a3_0x5990('0x16')][a3_0x5990('0x2a')]){this[a3_0x5990('0x22')][a3_0x5990('0x3d')]=a3_0x5990('0x9')+JSON[a3_0x5990('0x14')](_0x5be727[a3_0x5990('0x16')]);return{};}return _0x5be727[a3_0x5990('0x16')][a3_0x5990('0x2a')];}catch(_0x560990){_0x5eff0e[a3_0x5990('0x1c')](metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);this[a3_0x5990('0x22')][a3_0x5990('0x3d')]=this[a3_0x5990('0x22')][a3_0x5990('0x39')](_0x560990,a3_0x5990('0x2b'));return{};}});}[a3_0x5990('0x19')](_0x2ebed7,_0x330931){var _0x595118;return __awaiter(this,void 0x0,void 0x0,function*(){if(this[a3_0x5990('0x22')][a3_0x5990('0x3d')])return![];const _0x3f0c13={'meta':{'nxCloudVersion':this[a3_0x5990('0x42')]()},'tasks':_0x330931,'run':_0x2ebed7,'machineInfo':this['machineInfo']};const _0x28c260=Buffer[a3_0x5990('0x1f')](JSON['stringify'](_0x3f0c13));const _0x26772b=yield(0x0,util_1[a3_0x5990('0x20')])(zlib_1[a3_0x5990('0x3c')])(_0x28c260);const _0x5a5c6a=(0x0,metric_logger_1[a3_0x5990('0x32')])(a3_0x5990('0x19'));try{if(environment_1[a3_0x5990('0x10')]){const _0x7d16cf=_0x330931[a3_0x5990('0x2d')](_0x4d2bad=>{return Object['assign'](Object[a3_0x5990('0x3b')]({},_0x4d2bad),{'terminalOutput':_0x4d2bad[a3_0x5990('0x11')]?_0x4d2bad['terminalOutput'][a3_0x5990('0x30')](0x0,0x14)+a3_0x5990('0x12'):undefined});});output_1[a3_0x5990('0x2')][a3_0x5990('0x33')]({'title':a3_0x5990('0xa'),'bodyLines':['\x0a'+JSON[a3_0x5990('0x14')](_0x7d16cf,null,0x2)]});}const _0x27efb1=yield(0x0,axios_1[a3_0x5990('0x3a')])(()=>this[a3_0x5990('0xb')][a3_0x5990('0x2e')](a3_0x5990('0x36'),_0x26772b,{'headers':Object[a3_0x5990('0x3b')](Object[a3_0x5990('0x3b')]({},this[a3_0x5990('0xb')][a3_0x5990('0x34')]['headers']),{'Content-Encoding':a3_0x5990('0x3c'),'Content-Type':a3_0x5990('0x37')})}),environment_1['NUMBER_OF_TRIES']);if(_0x27efb1){_0x5a5c6a['recordMetric']((0x0,metric_logger_1[a3_0x5990('0x29')])(_0x27efb1));if(_0x27efb1['data']&&_0x27efb1[a3_0x5990('0x16')]['runUrl']&&_0x27efb1[a3_0x5990('0x16')][a3_0x5990('0x23')]===a3_0x5990('0x24')){this['runContext']['runUrl']=_0x27efb1[a3_0x5990('0x16')]['runUrl'];return!![];}if(_0x27efb1[a3_0x5990('0x16')]&&_0x27efb1[a3_0x5990('0x16')]['status']){this[a3_0x5990('0x22')][a3_0x5990('0x3d')]='Invalid\x20end\x20run\x20response:\x20'+JSON['stringify'](_0x27efb1[a3_0x5990('0x16')]['message']);}else if(_0x27efb1['data']&&typeof _0x27efb1[a3_0x5990('0x16')]===a3_0x5990('0x6')){if(_0x27efb1[a3_0x5990('0x16')]!==a3_0x5990('0x24')){this[a3_0x5990('0x22')][a3_0x5990('0x3d')]=a3_0x5990('0x7')+JSON[a3_0x5990('0x14')](_0x27efb1[a3_0x5990('0x16')]);}}else{this[a3_0x5990('0x22')][a3_0x5990('0x3d')]=a3_0x5990('0x7')+JSON[a3_0x5990('0x14')](_0x27efb1[a3_0x5990('0x16')]);}if(environment_1[a3_0x5990('0x10')]){output_1[a3_0x5990('0x2')][a3_0x5990('0x33')]({'title':'Invalid\x20end\x20run\x20response','bodyLines':[JSON[a3_0x5990('0x14')](_0x27efb1['data'],null,0x2)]});}}else{output_1[a3_0x5990('0x2')][a3_0x5990('0xc')]({'title':a3_0x5990('0x41'),'bodyLines':[a3_0x5990('0x1'),'Run\x20Details:',JSON[a3_0x5990('0x14')](_0x2ebed7,null,0x2),a3_0x5990('0x2c'),JSON['stringify'](new Error()[a3_0x5990('0x40')],null,0x2)]});}return![];}catch(_0x398437){_0x5a5c6a[a3_0x5990('0x1c')](metric_logger_1[a3_0x5990('0x17')]);const _0x59530e=(_0x595118=_0x398437['axiosException'])!==null&&_0x595118!==void 0x0?_0x595118:_0x398437;this[a3_0x5990('0x22')][a3_0x5990('0x3d')]=this[a3_0x5990('0x22')][a3_0x5990('0x39')](_0x59530e,'api');return![];}});}['nxCloudVersion'](){try{const _0x232c1a=JSON['parse']((0x0,fs_1[a3_0x5990('0x13')])('package.json')[a3_0x5990('0x2f')]());return _0x232c1a['devDependencies'][a3_0x5990('0x1d')];}catch(_0x228771){return a3_0x5990('0xf');}}}exports[a3_0x5990('0x1a')]=CloudRunApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x321a=['mapRespToPerfEntry','completeRunGroup','__esModule','note','then','dtePollTasks','recordMetric','@nrwl/workspace/src/utilities/output','VERBOSE_LOGGING','agentName','runGroup','Completing\x20run\x20group\x20with\x20an\x20error','tasks','data','../../../utilities/environment','apply','axiosMultipleTries','createMetricRecorder','completeRunGroupWithError','RUNNER_FAILURE_PERF_ENTRY','value','/nx-cloud/executions/tasks','post','done','DistributedAgentApi','error:\x20','error','/nx-cloud/executions/complete-run-group','output','next','../../../utilities/metric-logger','../../../utilities/axios','createApiAxiosInstance','apiAxiosInstance'];(function(_0x2e459a,_0x321aed){const _0x369e0f=function(_0x575246){while(--_0x575246){_0x2e459a['push'](_0x2e459a['shift']());}};_0x369e0f(++_0x321aed);}(a4_0x321a,0x70));const a4_0x369e=function(_0x2e459a,_0x321aed){_0x2e459a=_0x2e459a-0x0;let _0x369e0f=a4_0x321a[_0x2e459a];return _0x369e0f;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x5c98d1,_0x5d1e47,_0x32b7c2,_0x3d7043){function _0x4536ff(_0x2324c4){return _0x2324c4 instanceof _0x32b7c2?_0x2324c4:new _0x32b7c2(function(_0x2ebf1c){_0x2ebf1c(_0x2324c4);});}return new(_0x32b7c2||(_0x32b7c2=Promise))(function(_0x4f5334,_0x4f3638){function _0x9410(_0x1404c4){try{_0x80c381(_0x3d7043[a4_0x369e('0x13')](_0x1404c4));}catch(_0x233df7){_0x4f3638(_0x233df7);}}function _0x398c9b(_0x34e144){try{_0x80c381(_0x3d7043['throw'](_0x34e144));}catch(_0x43aa08){_0x4f3638(_0x43aa08);}}function _0x80c381(_0x2c067d){_0x2c067d[a4_0x369e('0xd')]?_0x4f5334(_0x2c067d[a4_0x369e('0xa')]):_0x4536ff(_0x2c067d[a4_0x369e('0xa')])[a4_0x369e('0x1c')](_0x9410,_0x398c9b);}_0x80c381((_0x3d7043=_0x3d7043[a4_0x369e('0x5')](_0x5c98d1,_0x5d1e47||[]))[a4_0x369e('0x13')]());});};Object['defineProperty'](exports,a4_0x369e('0x1a'),{'value':!![]});exports[a4_0x369e('0xe')]=void 0x0;const output_1=require(a4_0x369e('0x1f'));const axios_1=require(a4_0x369e('0x15'));const environment_1=require(a4_0x369e('0x4'));const metric_logger_1=require(a4_0x369e('0x14'));class DistributedAgentApi{constructor(_0xb4321,_0x30675d,_0x57d904){this[a4_0x369e('0x0')]=_0x30675d;this['agentName']=_0x57d904;this[a4_0x369e('0x17')]=(0x0,axios_1[a4_0x369e('0x16')])(_0xb4321);}[a4_0x369e('0x2')](_0x257be5,_0x40f25c,_0x2d00b2){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x101774=(0x0,metric_logger_1['createMetricRecorder'])(a4_0x369e('0x1d'));try{const _0x531887=yield(0x0,axios_1[a4_0x369e('0x6')])(()=>this[a4_0x369e('0x17')][a4_0x369e('0xc')](a4_0x369e('0xb'),{'runGroup':this['runGroup'],'agentName':this[a4_0x369e('0x21')],'executionId':_0x257be5,'statusCode':_0x40f25c,'completedTasks':_0x2d00b2}),0x1e);_0x101774['recordMetric']((0x0,metric_logger_1[a4_0x369e('0x18')])(_0x531887));return _0x531887[a4_0x369e('0x3')];}catch(_0x48f5be){_0x101774[a4_0x369e('0x1e')](metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);throw _0x48f5be;}});}[a4_0x369e('0x8')](_0x2b831d){return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1['VERBOSE_LOGGING']){output_1['output']['note']({'title':a4_0x369e('0x1'),'bodyLines':['runGroup:\x20'+this['runGroup'],a4_0x369e('0xf')+_0x2b831d]});}const _0x50cc04=(0x0,metric_logger_1[a4_0x369e('0x7')])(a4_0x369e('0x19'));try{const _0x5f0c15=yield(0x0,axios_1[a4_0x369e('0x6')])(()=>this[a4_0x369e('0x17')][a4_0x369e('0xc')](a4_0x369e('0x11'),{'runGroup':this[a4_0x369e('0x0')],'agentName':this[a4_0x369e('0x21')],'criticalErrorMessage':_0x2b831d}),0x3);if(environment_1[a4_0x369e('0x20')]){output_1[a4_0x369e('0x12')][a4_0x369e('0x1b')]({'title':'Completed\x20run\x20group\x20with\x20an\x20error'});}_0x50cc04[a4_0x369e('0x1e')]((0x0,metric_logger_1[a4_0x369e('0x18')])(_0x5f0c15));}catch(_0x176671){_0x50cc04[a4_0x369e('0x1e')](metric_logger_1[a4_0x369e('0x9')]);console[a4_0x369e('0x10')](_0x176671);}});}}exports[a4_0x369e('0xe')]=DistributedAgentApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5_0x3fe2=['Distributed\x20Execution\x20Terminated','child_process','length','defineProperty','taskId','apply','API\x20Response','maxParallel','.lock','forEach','CIRCLECI','target','NX_AGENT_NAME','execSync','Starting\x20an\x20agent\x20for\x20running\x20Nx\x20tasks','../../../utilities/environment','floor','cacheDirectory','push','error','map','./distributed-agent.api','options','./node_modules/.cache/nx','completed','includes','join','createNoNewMessagesTimeout','submitRunMetrics','params','random','--configuration=','maxParallel:\x20','toString',').\x20Tasks\x20hashes\x20haven\x27t\x20been\x20recorded.','nx.json','printRunGroupError','inherit','Other\x20Nx\x20Cloud\x20Agents\x20Detected','startAgent','retryDuring','We\x20have\x20detected\x20another\x20agent\x20with\x20this\x20ID\x20running\x20in\x20this\x20workspace.\x20This\x20should\x20not\x20happen.','number\x20of\x20tasks:\x20','../../../utilities/waiter','Executing:\x20\x27','writeFileSync','note','completed:\x20','projectName','value','Error:','CIRCLE_STAGE','true','then','parse','throw','projects','completedStatusCode','We\x20have\x20detected\x20other\x20agents\x20running\x20in\x20this\x20workspace.\x20This\x20can\x20cause\x20unexpected\x20behavior.','existsSync','assign','next','../../../utilities/create-no-new-messages-timeout','readdirSync','This\x20can\x20also\x20be\x20a\x20false\x20positive\x20caused\x20by\x20agents\x20that\x20did\x20not\x20shut\x20down\x20correctly.','getRunGroup','Command\x20execution\x20failed\x20(distributed\x20task\x20execution:\x20','completedTasks','mkdirSync','__awaiter','\x20--parallel\x20--max-parallel=','criticalErrorMessage','env','tasks','readFileSync','exit','/tasks-hashes-','npx\x20nx\x20run-many\x20--target=','Agent\x20','error:\x20','\x20--projects=','find','/lockfiles','VERBOSE_LOGGING','executionId','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','__esModule','wait','getTime','../../error/print-run-group-error','configuration','executionId:\x20','output','unlinkSync'];(function(_0x34cbc2,_0x3fe2e4){const _0x36ea18=function(_0x3a9a8d){while(--_0x3a9a8d){_0x34cbc2['push'](_0x34cbc2['shift']());}};_0x36ea18(++_0x3fe2e4);}(a5_0x3fe2,0x141));const a5_0x36ea=function(_0x34cbc2,_0x3fe2e4){_0x34cbc2=_0x34cbc2-0x0;let _0x36ea18=a5_0x3fe2[_0x34cbc2];return _0x36ea18;};'use strict';var __awaiter=this&&this[a5_0x36ea('0x1e')]||function(_0x4dc787,_0x23418d,_0x16ad54,_0x32e9e5){function _0x5f3975(_0x5506a0){return _0x5506a0 instanceof _0x16ad54?_0x5506a0:new _0x16ad54(function(_0x491c6){_0x491c6(_0x5506a0);});}return new(_0x16ad54||(_0x16ad54=Promise))(function(_0x2485fd,_0x407dad){function _0x5c2c04(_0x4ebed1){try{_0x36b22a(_0x32e9e5[a5_0x36ea('0x16')](_0x4ebed1));}catch(_0x3b3ed9){_0x407dad(_0x3b3ed9);}}function _0x2f4ff2(_0x220e46){try{_0x36b22a(_0x32e9e5[a5_0x36ea('0x10')](_0x220e46));}catch(_0x461aa5){_0x407dad(_0x461aa5);}}function _0x36b22a(_0x20f264){_0x20f264['done']?_0x2485fd(_0x20f264[a5_0x36ea('0xa')]):_0x5f3975(_0x20f264['value'])[a5_0x36ea('0xe')](_0x5c2c04,_0x2f4ff2);}_0x36b22a((_0x32e9e5=_0x32e9e5[a5_0x36ea('0x3c')](_0x4dc787,_0x23418d||[]))['next']());});};Object[a5_0x36ea('0x3a')](exports,a5_0x36ea('0x2f'),{'value':!![]});exports['startAgent']=void 0x0;const output_1=require('@nrwl/workspace/src/utilities/output');const child_process_1=require(a5_0x36ea('0x38'));const stripJsonComments=require('strip-json-comments');const distributed_agent_api_1=require(a5_0x36ea('0x4c'));const waiter_1=require(a5_0x36ea('0x4'));const environment_1=require(a5_0x36ea('0x46'));const print_run_group_error_1=require(a5_0x36ea('0x32'));const create_no_new_messages_timeout_1=require(a5_0x36ea('0x17'));const fs_1=require('fs');const metric_logger_1=require('../../../utilities/metric-logger');function executeTasks(_0x2370f9,_0x12291f){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x4793e7=0x0;let _0x17cfb5=null;const _0x5bcaa6=(0x0,create_no_new_messages_timeout_1[a5_0x36ea('0x52')])();const _0x3818fe=new waiter_1['Waiter']();let _0x5be301=[];const _0x1dae99=new Date();let _0x34d9be=![];while(!![]){if(environment_1['VERBOSE_LOGGING']){output_1[a5_0x36ea('0x35')][a5_0x36ea('0x7')]({'title':'Fetching\x20tasks...'});}_0x17cfb5=yield _0x12291f[a5_0x36ea('0x22')](_0x17cfb5?_0x17cfb5[a5_0x36ea('0x2d')]:null,_0x4793e7,_0x5be301);if(environment_1[a5_0x36ea('0x2c')]){output_1[a5_0x36ea('0x35')]['note']({'title':a5_0x36ea('0x3d'),'bodyLines':[a5_0x36ea('0x8')+_0x17cfb5[a5_0x36ea('0x4f')],'retryDuring:\x20'+_0x17cfb5[a5_0x36ea('0x1')],a5_0x36ea('0x34')+_0x17cfb5[a5_0x36ea('0x2d')],a5_0x36ea('0x3')+_0x17cfb5['tasks'][a5_0x36ea('0x39')],a5_0x36ea('0x28')+_0x17cfb5[a5_0x36ea('0x20')],a5_0x36ea('0x57')+_0x17cfb5[a5_0x36ea('0x3e')]]});}if(_0x17cfb5[a5_0x36ea('0x20')]){output_1[a5_0x36ea('0x35')][a5_0x36ea('0x4a')]({'title':a5_0x36ea('0x37'),'bodyLines':[a5_0x36ea('0xb'),_0x17cfb5[a5_0x36ea('0x20')]]});process[a5_0x36ea('0x24')](0x0);}if((_0x17cfb5===null||_0x17cfb5===void 0x0?void 0x0:_0x17cfb5[a5_0x36ea('0x1')])&&(_0x17cfb5===null||_0x17cfb5===void 0x0?void 0x0:_0x17cfb5[a5_0x36ea('0x1')])!==0x0&&!_0x34d9be&&new Date()[a5_0x36ea('0x31')]()-_0x1dae99['getTime']()>_0x17cfb5[a5_0x36ea('0x1')]){yield _0x3818fe[a5_0x36ea('0x30')]();continue;}if(_0x17cfb5[a5_0x36ea('0x4f')])return;_0x5bcaa6(_0x17cfb5[a5_0x36ea('0x22')][a5_0x36ea('0x4b')](_0x49eeae=>_0x49eeae[a5_0x36ea('0x3b')])[a5_0x36ea('0x51')](''));if(!_0x17cfb5[a5_0x36ea('0x2d')]){if(environment_1['VERBOSE_LOGGING']){output_1[a5_0x36ea('0x35')][a5_0x36ea('0x7')]({'title':'Waiting...'});}yield _0x3818fe[a5_0x36ea('0x30')]();_0x4793e7=0x0;_0x5be301=[];continue;}_0x3818fe['reset']();_0x34d9be=!![];const _0x258d69=invokeTasksUsingRunMany(_0x2370f9,_0x17cfb5['executionId'],_0x17cfb5[a5_0x36ea('0x22')],_0x17cfb5[a5_0x36ea('0x3e')]);_0x4793e7=_0x258d69[a5_0x36ea('0x12')];_0x5be301=_0x258d69[a5_0x36ea('0x1c')];}});}function readCompletedTasks(_0x5106fb,_0x3f23e7){const _0x6d079d=a5_0x36ea('0x1b')+_0x3f23e7+a5_0x36ea('0x59');let _0x3a2b4d;try{const _0x22fb31=_0x5106fb['cacheDirectory']||a5_0x36ea('0x4e');const _0x19a4d4=_0x22fb31+a5_0x36ea('0x25')+_0x3f23e7;_0x3a2b4d=JSON['parse']((0x0,fs_1[a5_0x36ea('0x23')])(_0x19a4d4)[a5_0x36ea('0x58')]());(0x0,fs_1[a5_0x36ea('0x36')])(_0x19a4d4);}catch(_0x582d1f){throw new Error(_0x6d079d);}if(_0x3a2b4d[a5_0x36ea('0x39')]==0x0){throw new Error(_0x6d079d);}return _0x3a2b4d;}function invokeTasksUsingRunMany(_0x65a4d6,_0x2a3585,_0x5167a2,_0x66424f){let _0x47769c=0x0;const _0x6287e9=[];for(const _0x17dc94 of groupByTarget(_0x5167a2)){const _0x5c6309=_0x17dc94[a5_0x36ea('0x33')]?a5_0x36ea('0x56')+_0x17dc94[a5_0x36ea('0x33')]:'';const _0x1f2b73=_0x66424f>0x1?a5_0x36ea('0x1f')+_0x66424f:'';const _0x45647b=a5_0x36ea('0x26')+_0x17dc94[a5_0x36ea('0x42')]+'\x20'+_0x5c6309+a5_0x36ea('0x29')+_0x17dc94['projects']['join'](',')+'\x20'+_0x17dc94[a5_0x36ea('0x54')]+_0x1f2b73;if(environment_1['VERBOSE_LOGGING']){output_1['output']['note']({'title':a5_0x36ea('0x5')+_0x45647b+'\x27'});}try{(0x0,child_process_1[a5_0x36ea('0x44')])(_0x45647b,{'stdio':[a5_0x36ea('0x5c'),a5_0x36ea('0x5c'),a5_0x36ea('0x5c')],'env':Object[a5_0x36ea('0x15')](Object[a5_0x36ea('0x15')]({},process[a5_0x36ea('0x21')]),{'NX_CACHE_FAILURES':a5_0x36ea('0xd'),'NX_CLOUD_DISTRIBUTED_EXECUTION_ID':_0x2a3585})});}catch(_0x22bad5){if(_0x22bad5['status']===environment_1[a5_0x36ea('0x2e')]){throw _0x22bad5;}else{_0x47769c=0x1;}}finally{_0x6287e9[a5_0x36ea('0x49')](...readCompletedTasks(_0x65a4d6,_0x2a3585));}}return{'completedStatusCode':_0x47769c,'completedTasks':_0x6287e9};}function groupByTarget(_0x120cff){const _0x3a658b=[];_0x120cff[a5_0x36ea('0x40')](_0x161fbb=>{const _0xc9bc95=_0x3a658b[a5_0x36ea('0x2a')](_0x24c2e5=>_0x24c2e5['target']===_0x161fbb['target']&&_0x24c2e5[a5_0x36ea('0x33')]===_0x161fbb[a5_0x36ea('0x33')]);if(_0xc9bc95){_0xc9bc95[a5_0x36ea('0x11')][a5_0x36ea('0x49')](_0x161fbb[a5_0x36ea('0x9')]);}else{_0x3a658b[a5_0x36ea('0x49')]({'target':_0x161fbb['target'],'projects':[_0x161fbb[a5_0x36ea('0x9')]],'params':_0x161fbb[a5_0x36ea('0x54')],'configuration':_0x161fbb['configuration']});}});return _0x3a658b;}function getAgentName(){if(process['env'][a5_0x36ea('0x43')]!==undefined){return process[a5_0x36ea('0x21')]['NX_AGENT_NAME'];}else if(process['env'][a5_0x36ea('0x41')]!==undefined){return process[a5_0x36ea('0x21')][a5_0x36ea('0xc')];}else{return a5_0x36ea('0x27')+Math[a5_0x36ea('0x47')](Math[a5_0x36ea('0x55')]()*0x186a0);}}function createAgentLockfile(_0x52705d,_0xe9aab4){const _0x525f6a=_0x52705d[a5_0x36ea('0x48')]||a5_0x36ea('0x4e');const _0x1fb216=_0x525f6a+a5_0x36ea('0x2b');const _0xa4f0de=_0x1fb216+'/'+_0xe9aab4+a5_0x36ea('0x3f');if(!(0x0,fs_1[a5_0x36ea('0x14')])(_0x1fb216)){(0x0,fs_1[a5_0x36ea('0x1d')])(_0x1fb216,{'recursive':!![]});}const _0x445431=(0x0,fs_1[a5_0x36ea('0x18')])(_0x1fb216);if(_0x445431[a5_0x36ea('0x39')]){if(_0x445431[a5_0x36ea('0x50')](_0xe9aab4+a5_0x36ea('0x3f'))){output_1['output']['error']({'title':'Duplicate\x20Agent\x20ID\x20Detected','bodyLines':[a5_0x36ea('0x2'),'','End\x20all\x20currently\x20running\x20agents,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22,\x20and\x20try\x20again.']});process[a5_0x36ea('0x24')](0x1);}output_1[a5_0x36ea('0x35')]['warn']({'title':a5_0x36ea('0x5d'),'bodyLines':[a5_0x36ea('0x13'),'',a5_0x36ea('0x19'),'If\x20you\x20believe\x20this\x20is\x20the\x20case,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22.']});}(0x0,fs_1[a5_0x36ea('0x6')])(_0xa4f0de,'');process['on'](a5_0x36ea('0x24'),()=>cleanupAgentLockfile(_0xa4f0de));process['on']('SIGINT',()=>cleanupAgentLockfile(_0xa4f0de));}function cleanupAgentLockfile(_0x1c87f4){if((0x0,fs_1['existsSync'])(_0x1c87f4)){(0x0,fs_1[a5_0x36ea('0x36')])(_0x1c87f4);}}function startAgent(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x26efab=(0x0,environment_1[a5_0x36ea('0x1a')])();if(!_0x26efab){(0x0,print_run_group_error_1[a5_0x36ea('0x5b')])();return process[a5_0x36ea('0x24')](0x1);}output_1[a5_0x36ea('0x35')][a5_0x36ea('0x7')]({'title':a5_0x36ea('0x45')});const _0x1bd994=JSON[a5_0x36ea('0xf')](stripJsonComments((0x0,fs_1[a5_0x36ea('0x23')])(a5_0x36ea('0x5a'))[a5_0x36ea('0x58')]()))['tasksRunnerOptions']['default'][a5_0x36ea('0x4d')];const _0x430e75=getAgentName();createAgentLockfile(_0x1bd994,_0x430e75);const _0x5ac814=new distributed_agent_api_1['DistributedAgentApi'](_0x1bd994,_0x26efab,_0x430e75);return executeTasks(_0x1bd994,_0x5ac814)['then'](_0x54a349=>__awaiter(this,void 0x0,void 0x0,function*(){yield(0x0,metric_logger_1[a5_0x36ea('0x53')])(_0x1bd994);return _0x54a349;}))['catch'](_0x423a71=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0x5ac814['completeRunGroupWithError']('Critical\x20Error\x20in\x20Agent:\x20\x22'+_0x423a71['message']+'\x22');throw _0x423a71;}));});}exports[a5_0x36ea('0x0')]=startAgent;
|
|
1
|
+
const a5_0x4979=['DistributedAgentApi','true','output','writeFileSync','Error:','push','../../../utilities/metric-logger','Agent\x20','join','executionId','\x20--projects=','projectName','../../../utilities/create-no-new-messages-timeout','tasks','find','random','length','We\x20have\x20detected\x20other\x20agents\x20running\x20in\x20this\x20workspace.\x20This\x20can\x20cause\x20unexpected\x20behavior.','CIRCLE_STAGE','End\x20all\x20currently\x20running\x20agents,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22,\x20and\x20try\x20again.','If\x20you\x20believe\x20this\x20is\x20the\x20case,\x20run\x20\x22npx\x20nx-cloud\x20clean-up-agents\x22.','printRunGroupError','VERBOSE_LOGGING','exit','error','Command\x20execution\x20failed\x20(distributed\x20task\x20execution:\x20','catch','inherit','options','cacheDirectory','next','completedStatusCode','/lockfiles','forEach','throw','note','../../../utilities/waiter','message','toString','criticalErrorMessage','submitRunMetrics','defineProperty','SIGINT','Starting\x20an\x20agent\x20for\x20running\x20Nx\x20tasks','executionId:\x20','We\x20have\x20detected\x20another\x20agent\x20with\x20this\x20ID\x20running\x20in\x20this\x20workspace.\x20This\x20should\x20not\x20happen.','taskId','unlinkSync','completed:\x20','npx\x20nx\x20run-many\x20--target=','retryDuring:\x20','../../../utilities/environment','./node_modules/.cache/nx','CIRCLECI','params','Distributed\x20Execution\x20Terminated','getTime','existsSync','.lock','configuration','floor','startAgent','maxParallel:\x20','__esModule','wait','projects','API\x20Response','../../error/print-run-group-error','default','--configuration=','Other\x20Nx\x20Cloud\x20Agents\x20Detected','completed','env','value','error:\x20','Critical\x20Error\x20in\x20Agent:\x20\x22','__awaiter','target','mkdirSync','Waiter','DISTRIBUTED_TASK_EXECUTION_INTERNAL_ERROR_STATUS_CODE','completeRunGroupWithError','\x20--parallel\x20--max-parallel=','Executing:\x20\x27','then','/tasks-hashes-','execSync','parse','readFileSync','apply','@nrwl/workspace/src/utilities/output','map','NX_AGENT_NAME'];(function(_0x589371,_0x4979ea){const _0xbacc52=function(_0x2e0baf){while(--_0x2e0baf){_0x589371['push'](_0x589371['shift']());}};_0xbacc52(++_0x4979ea);}(a5_0x4979,0x7b));const a5_0xbacc=function(_0x589371,_0x4979ea){_0x589371=_0x589371-0x0;let _0xbacc52=a5_0x4979[_0x589371];return _0xbacc52;};'use strict';var __awaiter=this&&this[a5_0xbacc('0x2e')]||function(_0x8794be,_0xe3af03,_0x3c74bf,_0x15c5b4){function _0x258036(_0x149700){return _0x149700 instanceof _0x3c74bf?_0x149700:new _0x3c74bf(function(_0x173ad1){_0x173ad1(_0x149700);});}return new(_0x3c74bf||(_0x3c74bf=Promise))(function(_0xdfd6e6,_0x191266){function _0x395934(_0x5c1fc6){try{_0x51dae3(_0x15c5b4[a5_0xbacc('0x0')](_0x5c1fc6));}catch(_0x81a232){_0x191266(_0x81a232);}}function _0x623b5a(_0x46d30c){try{_0x51dae3(_0x15c5b4[a5_0xbacc('0x4')](_0x46d30c));}catch(_0x2507a0){_0x191266(_0x2507a0);}}function _0x51dae3(_0x24fe4e){_0x24fe4e['done']?_0xdfd6e6(_0x24fe4e[a5_0xbacc('0x2b')]):_0x258036(_0x24fe4e[a5_0xbacc('0x2b')])[a5_0xbacc('0x36')](_0x395934,_0x623b5a);}_0x51dae3((_0x15c5b4=_0x15c5b4[a5_0xbacc('0x3b')](_0x8794be,_0xe3af03||[]))[a5_0xbacc('0x0')]());});};Object[a5_0xbacc('0xb')](exports,a5_0xbacc('0x21'),{'value':!![]});exports[a5_0xbacc('0x1f')]=void 0x0;const output_1=require(a5_0xbacc('0x3c'));const child_process_1=require('child_process');const stripJsonComments=require('strip-json-comments');const distributed_agent_api_1=require('./distributed-agent.api');const waiter_1=require(a5_0xbacc('0x6'));const environment_1=require(a5_0xbacc('0x15'));const print_run_group_error_1=require(a5_0xbacc('0x25'));const create_no_new_messages_timeout_1=require(a5_0xbacc('0x4b'));const fs_1=require('fs');const metric_logger_1=require(a5_0xbacc('0x45'));function executeTasks(_0x232563,_0xb06b46){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x3550d6=0x0;let _0x5ed1d5=null;const _0x3cd2dc=(0x0,create_no_new_messages_timeout_1['createNoNewMessagesTimeout'])();const _0x3b43a9=new waiter_1[(a5_0xbacc('0x31'))]();let _0x144c87=[];const _0x4abb8c=new Date();let _0x33a756=![];while(!![]){if(environment_1[a5_0xbacc('0x55')]){output_1[a5_0xbacc('0x41')][a5_0xbacc('0x5')]({'title':'Fetching\x20tasks...'});}_0x5ed1d5=yield _0xb06b46[a5_0xbacc('0x4c')](_0x5ed1d5?_0x5ed1d5[a5_0xbacc('0x48')]:null,_0x3550d6,_0x144c87);if(environment_1[a5_0xbacc('0x55')]){output_1['output'][a5_0xbacc('0x5')]({'title':a5_0xbacc('0x24'),'bodyLines':[a5_0xbacc('0x12')+_0x5ed1d5['completed'],a5_0xbacc('0x14')+_0x5ed1d5['retryDuring'],a5_0xbacc('0xe')+_0x5ed1d5[a5_0xbacc('0x48')],'number\x20of\x20tasks:\x20'+_0x5ed1d5[a5_0xbacc('0x4c')][a5_0xbacc('0x4f')],a5_0xbacc('0x2c')+_0x5ed1d5[a5_0xbacc('0x9')],a5_0xbacc('0x20')+_0x5ed1d5['maxParallel']]});}if(_0x5ed1d5[a5_0xbacc('0x9')]){output_1[a5_0xbacc('0x41')][a5_0xbacc('0x57')]({'title':a5_0xbacc('0x19'),'bodyLines':[a5_0xbacc('0x43'),_0x5ed1d5[a5_0xbacc('0x9')]]});process['exit'](0x0);}if((_0x5ed1d5===null||_0x5ed1d5===void 0x0?void 0x0:_0x5ed1d5['retryDuring'])&&(_0x5ed1d5===null||_0x5ed1d5===void 0x0?void 0x0:_0x5ed1d5['retryDuring'])!==0x0&&!_0x33a756&&new Date()[a5_0xbacc('0x1a')]()-_0x4abb8c[a5_0xbacc('0x1a')]()>_0x5ed1d5['retryDuring']){yield _0x3b43a9[a5_0xbacc('0x22')]();continue;}if(_0x5ed1d5[a5_0xbacc('0x29')])return;_0x3cd2dc(_0x5ed1d5['tasks'][a5_0xbacc('0x3d')](_0x2fb6a4=>_0x2fb6a4[a5_0xbacc('0x10')])[a5_0xbacc('0x47')](''));if(!_0x5ed1d5[a5_0xbacc('0x48')]){if(environment_1['VERBOSE_LOGGING']){output_1[a5_0xbacc('0x41')][a5_0xbacc('0x5')]({'title':'Waiting...'});}yield _0x3b43a9['wait']();_0x3550d6=0x0;_0x144c87=[];continue;}_0x3b43a9['reset']();_0x33a756=!![];const _0x1b47b3=invokeTasksUsingRunMany(_0x232563,_0x5ed1d5[a5_0xbacc('0x48')],_0x5ed1d5[a5_0xbacc('0x4c')],_0x5ed1d5['maxParallel']);_0x3550d6=_0x1b47b3[a5_0xbacc('0x1')];_0x144c87=_0x1b47b3['completedTasks'];}});}function readCompletedTasks(_0x484433,_0x1a9fe9){const _0x558a23=a5_0xbacc('0x58')+_0x1a9fe9+').\x20Tasks\x20hashes\x20haven\x27t\x20been\x20recorded.';let _0x382b50;try{const _0x2a9723=_0x484433[a5_0xbacc('0x5c')]||a5_0xbacc('0x16');const _0x5df3aa=_0x2a9723+a5_0xbacc('0x37')+_0x1a9fe9;_0x382b50=JSON[a5_0xbacc('0x39')]((0x0,fs_1[a5_0xbacc('0x3a')])(_0x5df3aa)['toString']());(0x0,fs_1[a5_0xbacc('0x11')])(_0x5df3aa);}catch(_0x56473a){throw new Error(_0x558a23);}if(_0x382b50['length']==0x0){throw new Error(_0x558a23);}return _0x382b50;}function invokeTasksUsingRunMany(_0x176652,_0x55b1ff,_0x2acb4d,_0x70dce8){let _0x49c05c=0x0;const _0xe38d66=[];for(const _0x30e8cb of groupByTarget(_0x2acb4d)){const _0x19a2ae=_0x30e8cb['configuration']?a5_0xbacc('0x27')+_0x30e8cb['configuration']:'';const _0x1f549a=_0x70dce8>0x1?a5_0xbacc('0x34')+_0x70dce8:'';const _0x1b63fb=a5_0xbacc('0x13')+_0x30e8cb['target']+'\x20'+_0x19a2ae+a5_0xbacc('0x49')+_0x30e8cb[a5_0xbacc('0x23')][a5_0xbacc('0x47')](',')+'\x20'+_0x30e8cb[a5_0xbacc('0x18')]+_0x1f549a;if(environment_1[a5_0xbacc('0x55')]){output_1[a5_0xbacc('0x41')][a5_0xbacc('0x5')]({'title':a5_0xbacc('0x35')+_0x1b63fb+'\x27'});}try{(0x0,child_process_1[a5_0xbacc('0x38')])(_0x1b63fb,{'stdio':[a5_0xbacc('0x5a'),a5_0xbacc('0x5a'),'inherit'],'env':Object['assign'](Object['assign']({},process[a5_0xbacc('0x2a')]),{'NX_CACHE_FAILURES':a5_0xbacc('0x40'),'NX_CLOUD_DISTRIBUTED_EXECUTION_ID':_0x55b1ff})});}catch(_0x3b23db){if(_0x3b23db['status']===environment_1[a5_0xbacc('0x32')]){throw _0x3b23db;}else{_0x49c05c=0x1;}}finally{_0xe38d66['push'](...readCompletedTasks(_0x176652,_0x55b1ff));}}return{'completedStatusCode':_0x49c05c,'completedTasks':_0xe38d66};}function groupByTarget(_0x30d332){const _0x35dd60=[];_0x30d332[a5_0xbacc('0x3')](_0x4fea7f=>{const _0x5cf5c0=_0x35dd60[a5_0xbacc('0x4d')](_0x3a504b=>_0x3a504b[a5_0xbacc('0x2f')]===_0x4fea7f[a5_0xbacc('0x2f')]&&_0x3a504b[a5_0xbacc('0x1d')]===_0x4fea7f[a5_0xbacc('0x1d')]);if(_0x5cf5c0){_0x5cf5c0[a5_0xbacc('0x23')][a5_0xbacc('0x44')](_0x4fea7f[a5_0xbacc('0x4a')]);}else{_0x35dd60[a5_0xbacc('0x44')]({'target':_0x4fea7f[a5_0xbacc('0x2f')],'projects':[_0x4fea7f['projectName']],'params':_0x4fea7f[a5_0xbacc('0x18')],'configuration':_0x4fea7f[a5_0xbacc('0x1d')]});}});return _0x35dd60;}function getAgentName(){if(process[a5_0xbacc('0x2a')][a5_0xbacc('0x3e')]!==undefined){return process[a5_0xbacc('0x2a')][a5_0xbacc('0x3e')];}else if(process[a5_0xbacc('0x2a')][a5_0xbacc('0x17')]!==undefined){return process[a5_0xbacc('0x2a')][a5_0xbacc('0x51')];}else{return a5_0xbacc('0x46')+Math[a5_0xbacc('0x1e')](Math[a5_0xbacc('0x4e')]()*0x186a0);}}function createAgentLockfile(_0x44e8b5,_0x337b58){const _0x1b4c7f=_0x44e8b5[a5_0xbacc('0x5c')]||'./node_modules/.cache/nx';const _0x1ab849=_0x1b4c7f+a5_0xbacc('0x2');const _0x42ef92=_0x1ab849+'/'+_0x337b58+a5_0xbacc('0x1c');if(!(0x0,fs_1[a5_0xbacc('0x1b')])(_0x1ab849)){(0x0,fs_1[a5_0xbacc('0x30')])(_0x1ab849,{'recursive':!![]});}const _0x2792c8=(0x0,fs_1['readdirSync'])(_0x1ab849);if(_0x2792c8[a5_0xbacc('0x4f')]){if(_0x2792c8['includes'](_0x337b58+a5_0xbacc('0x1c'))){output_1[a5_0xbacc('0x41')][a5_0xbacc('0x57')]({'title':'Duplicate\x20Agent\x20ID\x20Detected','bodyLines':[a5_0xbacc('0xf'),'',a5_0xbacc('0x52')]});process[a5_0xbacc('0x56')](0x1);}output_1[a5_0xbacc('0x41')]['warn']({'title':a5_0xbacc('0x28'),'bodyLines':[a5_0xbacc('0x50'),'','This\x20can\x20also\x20be\x20a\x20false\x20positive\x20caused\x20by\x20agents\x20that\x20did\x20not\x20shut\x20down\x20correctly.',a5_0xbacc('0x53')]});}(0x0,fs_1[a5_0xbacc('0x42')])(_0x42ef92,'');process['on'](a5_0xbacc('0x56'),()=>cleanupAgentLockfile(_0x42ef92));process['on'](a5_0xbacc('0xc'),()=>cleanupAgentLockfile(_0x42ef92));}function cleanupAgentLockfile(_0x3957e2){if((0x0,fs_1[a5_0xbacc('0x1b')])(_0x3957e2)){(0x0,fs_1[a5_0xbacc('0x11')])(_0x3957e2);}}function startAgent(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1e6a3c=(0x0,environment_1['getRunGroup'])();if(!_0x1e6a3c){(0x0,print_run_group_error_1[a5_0xbacc('0x54')])();return process[a5_0xbacc('0x56')](0x1);}output_1[a5_0xbacc('0x41')][a5_0xbacc('0x5')]({'title':a5_0xbacc('0xd')});const _0x48bb41=JSON[a5_0xbacc('0x39')](stripJsonComments((0x0,fs_1[a5_0xbacc('0x3a')])('nx.json')[a5_0xbacc('0x8')]()))['tasksRunnerOptions'][a5_0xbacc('0x26')][a5_0xbacc('0x5b')];const _0x2beab6=getAgentName();createAgentLockfile(_0x48bb41,_0x2beab6);const _0xa2dd2c=new distributed_agent_api_1[(a5_0xbacc('0x3f'))](_0x48bb41,_0x1e6a3c,_0x2beab6);return executeTasks(_0x48bb41,_0xa2dd2c)[a5_0xbacc('0x36')](_0x10dff8=>__awaiter(this,void 0x0,void 0x0,function*(){yield(0x0,metric_logger_1[a5_0xbacc('0xa')])(_0x48bb41);return _0x10dff8;}))[a5_0xbacc('0x59')](_0x439f6f=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0xa2dd2c[a5_0xbacc('0x33')](a5_0xbacc('0x2d')+_0x439f6f[a5_0xbacc('0x7')]+'\x22');throw _0x439f6f;}));});}exports[a5_0xbacc('0x1f')]=startAgent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0x5797=['completeRunGroup','../../../utilities/metric-logger','axiosMultipleTries','post','hash','map','recordMetric','true','then','/nx-cloud/executions/complete-run-group','../../../utilities/environment','overrides','maxParallel','throw','data','status','dteStatus','__esModule','done','completeRunGroupWithError','project','parallel','__awaiter','getBranch','apiAxiosInstance','message','/nx-cloud/executions/start','createApiAxiosInstance','createMetricRecorder','../../../utilities/axios','createStartRequest','defineProperty','mapRespToPerfEntry','false','@nrwl/workspace/src/tasks-runner/utils','start','agentCount','DistributedExecutionApi','next','parseCommand','value','error','NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT','@nrwl/workspace/src/utilities/output','target','join','Workspace\x20is\x20disabled.\x20Cannot\x20perform\x20distributed\x20task\x20executions.','apply','exit','RUNNER_FAILURE_PERF_ENTRY'];(function(_0x13842d,_0x579749){const _0x4f59ae=function(_0x33ce66){while(--_0x33ce66){_0x13842d['push'](_0x13842d['shift']());}};_0x4f59ae(++_0x579749);}(a6_0x5797,0xb6));const a6_0x4f59=function(_0x13842d,_0x579749){_0x13842d=_0x13842d-0x0;let _0x4f59ae=a6_0x5797[_0x13842d];return _0x4f59ae;};'use strict';var __awaiter=this&&this[a6_0x4f59('0x28')]||function(_0x36147d,_0x1fef79,_0x7bc240,_0x4b4780){function _0xa2db4b(_0x3b8022){return _0x3b8022 instanceof _0x7bc240?_0x3b8022:new _0x7bc240(function(_0x43704b){_0x43704b(_0x3b8022);});}return new(_0x7bc240||(_0x7bc240=Promise))(function(_0x5afad2,_0x2061f3){function _0x310588(_0x33d6f4){try{_0x50e20b(_0x4b4780[a6_0x4f59('0x6')](_0x33d6f4));}catch(_0x38b923){_0x2061f3(_0x38b923);}}function _0x44f683(_0x2dd917){try{_0x50e20b(_0x4b4780[a6_0x4f59('0x1f')](_0x2dd917));}catch(_0x389052){_0x2061f3(_0x389052);}}function _0x50e20b(_0x4b8d21){_0x4b8d21[a6_0x4f59('0x24')]?_0x5afad2(_0x4b8d21[a6_0x4f59('0x8')]):_0xa2db4b(_0x4b8d21[a6_0x4f59('0x8')])[a6_0x4f59('0x1a')](_0x310588,_0x44f683);}_0x50e20b((_0x4b4780=_0x4b4780[a6_0x4f59('0xf')](_0x36147d,_0x1fef79||[]))[a6_0x4f59('0x6')]());});};Object[a6_0x4f59('0x31')](exports,a6_0x4f59('0x23'),{'value':!![]});exports['createStartRequest']=exports[a6_0x4f59('0x5')]=void 0x0;const output_1=require(a6_0x4f59('0xb'));const axios_1=require(a6_0x4f59('0x2f'));const utils_1=require(a6_0x4f59('0x2'));const environment_1=require(a6_0x4f59('0x1c'));const metric_logger_1=require(a6_0x4f59('0x13'));class DistributedExecutionApi{constructor(_0x183f2c){this[a6_0x4f59('0x2a')]=(0x0,axios_1[a6_0x4f59('0x2d')])(_0x183f2c);}[a6_0x4f59('0x3')](_0x620f84){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5db6df=(0x0,metric_logger_1[a6_0x4f59('0x2e')])('dteStart');let _0x3138f1;try{_0x3138f1=yield(0x0,axios_1[a6_0x4f59('0x14')])(()=>this[a6_0x4f59('0x2a')]['post'](a6_0x4f59('0x2c'),_0x620f84));_0x5db6df[a6_0x4f59('0x18')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x3138f1));}catch(_0x43891d){_0x5db6df[a6_0x4f59('0x18')](metric_logger_1[a6_0x4f59('0x11')]);throw _0x43891d;}if(!_0x3138f1[a6_0x4f59('0x20')]['enabled']){throw new Error(a6_0x4f59('0xe'));}if(_0x3138f1[a6_0x4f59('0x20')][a6_0x4f59('0x9')]){throw new Error(_0x3138f1[a6_0x4f59('0x20')][a6_0x4f59('0x9')]);}return _0x3138f1['data']['id'];});}[a6_0x4f59('0x21')](_0x3842df){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5b76dc=(0x0,metric_logger_1[a6_0x4f59('0x2e')])(a6_0x4f59('0x22'));try{const _0x383c58=yield(0x0,axios_1['axiosMultipleTries'])(()=>this[a6_0x4f59('0x2a')]['post']('/nx-cloud/executions/status',{'id':_0x3842df}));_0x5b76dc[a6_0x4f59('0x18')]((0x0,metric_logger_1[a6_0x4f59('0x0')])(_0x383c58));return _0x383c58[a6_0x4f59('0x20')];}catch(_0x4deba9){_0x5b76dc['recordMetric'](metric_logger_1[a6_0x4f59('0x11')]);output_1['output'][a6_0x4f59('0x9')]({'title':_0x4deba9[a6_0x4f59('0x2b')]});process[a6_0x4f59('0x10')](0x1);}});}[a6_0x4f59('0x25')](_0x1f3b1d,_0x1f0b82){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x40b7c5=(0x0,metric_logger_1[a6_0x4f59('0x2e')])(a6_0x4f59('0x12'));try{const _0x428a6f=yield(0x0,axios_1[a6_0x4f59('0x14')])(()=>this[a6_0x4f59('0x2a')][a6_0x4f59('0x15')](a6_0x4f59('0x1b'),{'runGroup':_0x1f3b1d,'criticalErrorMessage':_0x1f0b82}),0x3);_0x40b7c5[a6_0x4f59('0x18')]((0x0,metric_logger_1[a6_0x4f59('0x0')])(_0x428a6f));}catch(_0x279d28){_0x40b7c5[a6_0x4f59('0x18')](metric_logger_1[a6_0x4f59('0x11')]);}});}}exports[a6_0x4f59('0x5')]=DistributedExecutionApi;function createStartRequest(_0x1015fc,_0x437f94,_0x353ebb){const _0x5596d1=_0x437f94[a6_0x4f59('0x17')](_0x439122=>{return _0x439122['map'](_0x1719cd=>{return{'taskId':_0x1719cd['id'],'hash':_0x1719cd[a6_0x4f59('0x16')],'projectName':_0x1719cd['target'][a6_0x4f59('0x26')],'target':_0x1719cd[a6_0x4f59('0xc')][a6_0x4f59('0xc')],'configuration':_0x1719cd[a6_0x4f59('0xc')]['configuration']||null,'params':(0x0,utils_1['unparse'])(_0x1719cd[a6_0x4f59('0x1d')])[a6_0x4f59('0xd')]('\x20')};});});const _0x40f2a5={'command':(0x0,environment_1[a6_0x4f59('0x7')])(),'branch':(0x0,environment_1[a6_0x4f59('0x29')])(),'runGroup':_0x1015fc,'tasks':_0x5596d1,'maxParallel':calculateMaxParallel(_0x353ebb)};if(environment_1[a6_0x4f59('0xa')]){_0x40f2a5[a6_0x4f59('0x4')]=environment_1[a6_0x4f59('0xa')];}if(!environment_1['NX_CLOUD_DISTRIBUTED_EXECUTION_STOP_AGENTS_ON_FAILURE']){_0x40f2a5['stopAgentsOnFailure']=![];}return _0x40f2a5;}exports[a6_0x4f59('0x30')]=createStartRequest;function calculateMaxParallel(_0x1f16a4){if(_0x1f16a4['parallel']===a6_0x4f59('0x1')||_0x1f16a4[a6_0x4f59('0x27')]===![]){return 0x1;}else if(_0x1f16a4[a6_0x4f59('0x27')]===a6_0x4f59('0x19')||_0x1f16a4[a6_0x4f59('0x27')]===!![]){return Number(_0x1f16a4[a6_0x4f59('0x1e')]||0x3);}else if(_0x1f16a4['parallel']===undefined){return _0x1f16a4[a6_0x4f59('0x1e')]?Number(_0x1f16a4[a6_0x4f59('0x1e')]):0x3;}else{return Number(_0x1f16a4[a6_0x4f59('0x27')])||0x3;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7_0x59d0=['dependencies','strictlyOrderedTargets','nxCloudDistributedTasksRunner','Waiting...','../../file-storage/e2e-encryption','nodes','Error:','addVerticalSeparator','projects','success','toString','push','run','value','configuration','parse','readFileSync','VERBOSE_LOGGING','createNoNewMessagesTimeout','taskId','submitRunMetrics','then','endTask','completedTasks','catch','defaultTargetDependencies','exit','runUrl','project','../../file-storage/file-storage','write','copyFilesFromCache','add','find','@nrwl/workspace/src/utilities/output','TaskGraphCreator','lifeCycle','../../../utilities/waiter','done','target','Cache','get','indexOf','../../error/print-run-group-error','start','unparse','Distributed\x20Execution\x20Terminated','logCommand','../../../utilities/metric-logger','number\x20of\x20completed\x20tasks:\x20','hash','projectGraph','__esModule','getDependencyConfigs','@nrwl/workspace/src/tasks-runner/cache','createStartRequest','has','getRunGroup','message','Main\x20job\x20terminated\x20with\x20an\x20error:\x20\x22','log','terminalOutput','Waiter','E2EEncryption','Unable\x20to\x20complete\x20a\x20run.','output','executionStatus','completeRunGroupWithError','./node_modules/.cache/nx','executionId:\x20','map','self','criticalErrorMessage','findTask','./distributed-execution.api','defineProperty','ENCRYPTION_KEY','tasks','addDependencies','rxjs/internal/Observable','Starting\x20distributed\x20command\x20execution','Found\x20unknown\x20task:\x20','length','startTask','getOutputs','See\x20run\x20details\x20at\x20','Processing\x20task\x20','size','commandStatus','encryptionKey','error','keys','../../../utilities/environment','printRunGroupError','Extracting\x20artifacts','assign','status','addTaskDependencies','scheduleTask','url','overrides','roots','__awaiter','NUMBER_OF_TRIES','Observable','Status\x20update','addTaskToGraph','note','error:\x20','stdout','Retrieving\x20artifacts\x20from\x20','delete','reset','DistributedExecutionApi','createTaskGraph','splitTasksIntoStages','retrieve','next','throw'];(function(_0x469c64,_0x59d099){const _0x90bd1=function(_0x3f32ce){while(--_0x3f32ce){_0x469c64['push'](_0x469c64['shift']());}};_0x90bd1(++_0x59d099);}(a7_0x59d0,0x18c));const a7_0x90bd=function(_0x469c64,_0x59d099){_0x469c64=_0x469c64-0x0;let _0x90bd1=a7_0x59d0[_0x469c64];return _0x90bd1;};'use strict';var __awaiter=this&&this[a7_0x90bd('0x3f')]||function(_0x260b9c,_0x5733f3,_0x24e8a5,_0x19eac6){function _0x3001d2(_0x56fa1f){return _0x56fa1f instanceof _0x24e8a5?_0x56fa1f:new _0x24e8a5(function(_0x456bc0){_0x456bc0(_0x56fa1f);});}return new(_0x24e8a5||(_0x24e8a5=Promise))(function(_0x5ee3ec,_0x2bd9bd){function _0x5e23b2(_0x3ce006){try{_0x4a015a(_0x19eac6[a7_0x90bd('0x4e')](_0x3ce006));}catch(_0x332319){_0x2bd9bd(_0x332319);}}function _0x36e366(_0x566b10){try{_0x4a015a(_0x19eac6[a7_0x90bd('0x4f')](_0x566b10));}catch(_0x3d4b5d){_0x2bd9bd(_0x3d4b5d);}}function _0x4a015a(_0x27af4f){_0x27af4f[a7_0x90bd('0x76')]?_0x5ee3ec(_0x27af4f[a7_0x90bd('0x5d')]):_0x3001d2(_0x27af4f['value'])[a7_0x90bd('0x65')](_0x5e23b2,_0x36e366);}_0x4a015a((_0x19eac6=_0x19eac6['apply'](_0x260b9c,_0x5733f3||[]))[a7_0x90bd('0x4e')]());});};Object[a7_0x90bd('0x24')](exports,a7_0x90bd('0xd'),{'value':!![]});exports[a7_0x90bd('0x73')]=exports[a7_0x90bd('0x52')]=void 0x0;const Observable_1=require(a7_0x90bd('0x28'));const cache_1=require(a7_0x90bd('0xf'));const output_1=require(a7_0x90bd('0x72'));const utils_1=require('@nrwl/workspace/src/tasks-runner/utils');const stripJsonComments=require('strip-json-comments');const fs_1=require('fs');const distributed_execution_api_1=require(a7_0x90bd('0x23'));const file_storage_1=require(a7_0x90bd('0x6d'));const e2e_encryption_1=require(a7_0x90bd('0x54'));const waiter_1=require(a7_0x90bd('0x75'));const environment_1=require(a7_0x90bd('0x35'));const print_run_group_error_1=require(a7_0x90bd('0x4'));const create_no_new_messages_timeout_1=require('../../../utilities/create-no-new-messages-timeout');const metric_logger_1=require(a7_0x90bd('0x9'));class NoopLifeCycle{[a7_0x90bd('0x3b')](_0x2517bd){}[a7_0x90bd('0x2c')](_0x5cd5c7){}[a7_0x90bd('0x66')](_0x74410c,_0x388e3f){}}function runDistributedExecution(_0x4eb48b,_0x47c604,_0x18ccd1,_0x38a880,_0x1f07a6,_0x735346,_0x20e430){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x354c2b=JSON[a7_0x90bd('0x5f')](stripJsonComments((0x0,fs_1[a7_0x90bd('0x60')])('nx.json')[a7_0x90bd('0x5a')]()));const _0x4d349d=new TaskOrderer(_0x18ccd1[a7_0x90bd('0xc')],getDefaultDependencyConfigs(_0x354c2b,_0x47c604))['splitTasksIntoStages'](_0x20e430);const _0x418e0a=yield _0x4eb48b[a7_0x90bd('0x5')]((0x0,distributed_execution_api_1[a7_0x90bd('0x10')])(_0x735346,_0x4d349d,_0x47c604));return yield processTasks(_0x4eb48b,_0x38a880,_0x1f07a6,_0x47c604,_0x418e0a,_0x20e430,_0x18ccd1);});}function processTasks(_0x1b50eb,_0x53da6b,_0x1bbb21,_0x2a1c5b,_0xea6082,_0x4327fe,_0x21a516){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x39de35={};const _0x4d4ca8=(0x0,create_no_new_messages_timeout_1[a7_0x90bd('0x62')])();const _0x12a7f8=new waiter_1[(a7_0x90bd('0x17'))]();while(!![]){if(environment_1['VERBOSE_LOGGING']){output_1[a7_0x90bd('0x1a')][a7_0x90bd('0x44')]({'title':a7_0x90bd('0x53')});}yield _0x12a7f8['wait']();const _0x547b7e=yield _0x1b50eb[a7_0x90bd('0x39')](_0xea6082);if(environment_1['VERBOSE_LOGGING']){output_1[a7_0x90bd('0x1a')][a7_0x90bd('0x44')]({'title':a7_0x90bd('0x42'),'bodyLines':[a7_0x90bd('0x1e')+_0xea6082,'executionStatus:\x20'+_0x547b7e[a7_0x90bd('0x1b')],a7_0x90bd('0xa')+_0x547b7e[a7_0x90bd('0x67')][a7_0x90bd('0x2b')],a7_0x90bd('0x45')+_0x547b7e['criticalErrorMessage']]});}if(_0x547b7e['criticalErrorMessage']){output_1[a7_0x90bd('0x1a')][a7_0x90bd('0x33')]({'title':a7_0x90bd('0x7'),'bodyLines':[a7_0x90bd('0x56'),_0x547b7e[a7_0x90bd('0x21')]]});process[a7_0x90bd('0x6a')](0x1);}_0x4d4ca8(_0x547b7e[a7_0x90bd('0x67')][a7_0x90bd('0x2b')]);for(const _0x5d6eb4 of _0x547b7e[a7_0x90bd('0x67')]){if(_0x39de35[_0x5d6eb4[a7_0x90bd('0x63')]])continue;yield processTask(_0x53da6b,_0x1bbb21,_0x21a516,_0x2a1c5b,_0x4327fe,_0x5d6eb4);_0x12a7f8[a7_0x90bd('0x49')]();_0x39de35[_0x5d6eb4['taskId']]=!![];}if(_0x547b7e[a7_0x90bd('0x1b')]==='COMPLETED'){return{'commandStatus':_0x547b7e[a7_0x90bd('0x31')],'runUrl':_0x547b7e[a7_0x90bd('0x6b')]};}}});}function processTask(_0x9c214d,_0x2e781c,_0x59c035,_0x2fa093,_0x2bd3a8,_0x3b5133){return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1[a7_0x90bd('0x61')]){output_1[a7_0x90bd('0x1a')][a7_0x90bd('0x44')]({'title':a7_0x90bd('0x2f')+_0x3b5133[a7_0x90bd('0x63')]});}const _0x5a6dcd=_0x2bd3a8[a7_0x90bd('0x71')](_0x1b8531=>_0x3b5133[a7_0x90bd('0x63')]===_0x1b8531['id']);if(!_0x5a6dcd){throw new Error(a7_0x90bd('0x2a')+_0x3b5133[a7_0x90bd('0x63')]);}if(environment_1[a7_0x90bd('0x61')]){output_1[a7_0x90bd('0x1a')]['note']({'title':a7_0x90bd('0x47')+_0x3b5133['url']});}yield _0x9c214d[a7_0x90bd('0x4d')](_0x3b5133['hash'],_0x3b5133[a7_0x90bd('0x3c')],_0x2fa093['cacheDirectory']||a7_0x90bd('0x1d'));const _0x475acd=yield _0x2e781c[a7_0x90bd('0x2')](Object[a7_0x90bd('0x38')](Object['assign']({},_0x5a6dcd),{'hash':_0x3b5133[a7_0x90bd('0xb')]}));const _0x1fca9b=(0x0,utils_1[a7_0x90bd('0x2d')])(_0x59c035['projectGraph'][a7_0x90bd('0x55')],_0x5a6dcd);if(environment_1[a7_0x90bd('0x61')]){output_1[a7_0x90bd('0x1a')][a7_0x90bd('0x44')]({'title':a7_0x90bd('0x37'),'bodyLines':_0x1fca9b});}yield _0x2e781c[a7_0x90bd('0x6f')](_0x3b5133[a7_0x90bd('0xb')],_0x475acd,_0x1fca9b);output_1[a7_0x90bd('0x1a')][a7_0x90bd('0x8')](getCommand(_0x5a6dcd));process[a7_0x90bd('0x46')][a7_0x90bd('0x6e')](_0x475acd[a7_0x90bd('0x16')]);output_1['output'][a7_0x90bd('0x57')]();});}function getCommand(_0x688435){const _0xea32a5=(0x0,utils_1[a7_0x90bd('0x6')])(_0x688435[a7_0x90bd('0x3d')]||{});const _0x3445fb=_0x688435[a7_0x90bd('0x0')][a7_0x90bd('0x5e')]?':'+_0x688435[a7_0x90bd('0x0')][a7_0x90bd('0x5e')]:'';return['nx',a7_0x90bd('0x5c'),_0x688435[a7_0x90bd('0x0')][a7_0x90bd('0x6c')]+':'+_0x688435['target'][a7_0x90bd('0x0')]+_0x3445fb,..._0xea32a5]['join']('\x20');}const nxCloudDistributedTasksRunner=(_0x317741,_0x499559,_0x108f3d)=>{if(environment_1[a7_0x90bd('0x61')]){output_1[a7_0x90bd('0x1a')]['note']({'title':a7_0x90bd('0x29')});}_0x499559[a7_0x90bd('0x74')]=new NoopLifeCycle();const _0x51dad3=(0x0,environment_1[a7_0x90bd('0x12')])();if(!_0x51dad3){(0x0,print_run_group_error_1[a7_0x90bd('0x36')])();return process['exit'](0x1);}const _0x343ea3=new e2e_encryption_1[(a7_0x90bd('0x18'))](environment_1[a7_0x90bd('0x25')]||_0x499559[a7_0x90bd('0x32')]);const _0x4795bf=new file_storage_1['FileStorage'](_0x343ea3,environment_1[a7_0x90bd('0x40')]);const _0x255c75=new cache_1[(a7_0x90bd('0x1'))](_0x499559);const _0xbd218a=new distributed_execution_api_1[(a7_0x90bd('0x4a'))](_0x499559);runDistributedExecution(_0xbd218a,_0x499559,_0x108f3d,_0x4795bf,_0x255c75,_0x51dad3,_0x317741)[a7_0x90bd('0x65')](_0x1f2b85=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){if(_0x1f2b85[a7_0x90bd('0x31')]===0x0){output_1['output'][a7_0x90bd('0x59')]({'title':'Successfully\x20completed\x20running\x20the\x20command.','bodyLines':[a7_0x90bd('0x2e')+_0x1f2b85[a7_0x90bd('0x6b')]]});}else{output_1[a7_0x90bd('0x1a')][a7_0x90bd('0x33')]({'title':'Command\x20execution\x20failed.','bodyLines':[a7_0x90bd('0x2e')+_0x1f2b85[a7_0x90bd('0x6b')]]});}yield(0x0,metric_logger_1[a7_0x90bd('0x64')])(_0x499559);process[a7_0x90bd('0x6a')](_0x1f2b85[a7_0x90bd('0x31')]);}))[a7_0x90bd('0x68')](_0x368a8d=>{output_1[a7_0x90bd('0x1a')][a7_0x90bd('0x33')]({'title':a7_0x90bd('0x19'),'bodyLines':[_0x368a8d['message']]});if(_0x368a8d['axiosException']){console[a7_0x90bd('0x15')](_0x368a8d['axiosException']);}else{console[a7_0x90bd('0x15')](_0x368a8d);}_0xbd218a[a7_0x90bd('0x1c')](_0x51dad3,a7_0x90bd('0x14')+_0x368a8d[a7_0x90bd('0x13')]+'\x22')['finally'](()=>process['exit'](0x1));});return new Observable_1[(a7_0x90bd('0x41'))](()=>{});};exports[a7_0x90bd('0x52')]=nxCloudDistributedTasksRunner;class TaskOrderer{constructor(_0x2c1860,_0x1b90b2){this[a7_0x90bd('0xc')]=_0x2c1860;this[a7_0x90bd('0x69')]=_0x1b90b2;}[a7_0x90bd('0x4c')](_0x2b575c){if(_0x2b575c[a7_0x90bd('0x2b')]===0x0)return[];const _0xd91617=[];const _0x296a4f=this[a7_0x90bd('0x4b')](_0x2b575c);const _0x2a260f=new Set(_0x2b575c[a7_0x90bd('0x1f')](_0x2992c2=>_0x2992c2['id']));let _0x29e218=0x0;while(_0x2a260f[a7_0x90bd('0x30')]>0x0){const _0x57a7e7=_0xd91617[_0x29e218]=[];for(const _0xf2a704 of _0x2a260f){let _0x5711ae=!![];for(const _0x29c56c of _0x296a4f[a7_0x90bd('0x50')][_0xf2a704]){if(_0x2a260f[a7_0x90bd('0x11')](_0x29c56c)){_0x5711ae=![];break;}}if(!_0x5711ae){continue;}const _0x2c4fb7=_0x296a4f['tasks'][_0xf2a704];_0x57a7e7[a7_0x90bd('0x5b')](_0x2c4fb7);}for(const _0x59d404 of _0x57a7e7){_0x2a260f[a7_0x90bd('0x48')](_0x59d404['id']);}_0x29e218++;}return _0xd91617;}['createTaskGraph'](_0x19db4b){const _0x2668d1=new TaskGraphCreator(this[a7_0x90bd('0xc')],this['defaultTargetDependencies']);return _0x2668d1[a7_0x90bd('0x4b')](_0x19db4b);}}class TaskGraphCreator{constructor(_0x328e2f,_0x5ad2e5){this['projectGraph']=_0x328e2f;this[a7_0x90bd('0x69')]=_0x5ad2e5;}[a7_0x90bd('0x4b')](_0x9b7d75){const _0x478696={'roots':[],'tasks':{},'dependencies':{}};for(const _0xf4a381 of _0x9b7d75){this[a7_0x90bd('0x43')](_0xf4a381,_0x478696);const _0x4426ee=(0x0,utils_1[a7_0x90bd('0xe')])(_0xf4a381[a7_0x90bd('0x0')],this[a7_0x90bd('0x69')],this['projectGraph']);if(!_0x4426ee){continue;}this[a7_0x90bd('0x3a')](_0xf4a381,_0x4426ee,_0x9b7d75,_0x478696);}_0x478696[a7_0x90bd('0x3e')]=Object[a7_0x90bd('0x34')](_0x478696[a7_0x90bd('0x50')])['filter'](_0x1e0188=>_0x478696[a7_0x90bd('0x50')][_0x1e0188][a7_0x90bd('0x2b')]===0x0);return _0x478696;}[a7_0x90bd('0x3a')](_0x13cdb0,_0x4cb179,_0x139ec6,_0x20c56e){for(const _0x274ef0 of _0x4cb179){if(_0x274ef0['projects']===a7_0x90bd('0x20')){for(const _0x3f3971 of _0x139ec6){if(_0x3f3971['target'][a7_0x90bd('0x6c')]===_0x13cdb0['target'][a7_0x90bd('0x6c')]&&_0x3f3971[a7_0x90bd('0x0')][a7_0x90bd('0x0')]===_0x274ef0[a7_0x90bd('0x0')]){_0x20c56e[a7_0x90bd('0x50')][_0x13cdb0['id']][a7_0x90bd('0x5b')](_0x3f3971['id']);}}}else if(_0x274ef0[a7_0x90bd('0x58')]==='dependencies'){const _0x14e802=new Set();this[a7_0x90bd('0x27')](_0x13cdb0[a7_0x90bd('0x0')][a7_0x90bd('0x6c')],_0x274ef0['target'],_0x139ec6,_0x20c56e,_0x13cdb0['id'],_0x14e802);}}}[a7_0x90bd('0x27')](_0x263b16,_0x65037b,_0x2cd5e5,_0x58383b,_0x1bbb72,_0x3cd411){_0x3cd411[a7_0x90bd('0x70')](_0x263b16);const _0x2efb50=this[a7_0x90bd('0xc')][a7_0x90bd('0x50')][_0x263b16];if(_0x2efb50){const _0x194b33=_0x2efb50[a7_0x90bd('0x1f')](_0x2696aa=>_0x2696aa[a7_0x90bd('0x0')]);for(const _0x3a30fd of _0x194b33){if(_0x3cd411['has'](_0x3a30fd)){continue;}const _0x2ccbdd=this[a7_0x90bd('0x22')]({'project':_0x3a30fd,'target':_0x65037b},_0x2cd5e5);if(_0x2ccbdd){if(_0x58383b[a7_0x90bd('0x50')][_0x1bbb72][a7_0x90bd('0x3')](_0x2ccbdd['id'])===-0x1){_0x58383b[a7_0x90bd('0x50')][_0x1bbb72][a7_0x90bd('0x5b')](_0x2ccbdd['id']);}}else{this[a7_0x90bd('0x27')](_0x3a30fd,_0x65037b,_0x2cd5e5,_0x58383b,_0x1bbb72,_0x3cd411);}}}}[a7_0x90bd('0x22')]({project,target},_0x2dd072){return _0x2dd072[a7_0x90bd('0x71')](_0x4d0224=>_0x4d0224[a7_0x90bd('0x0')][a7_0x90bd('0x6c')]===project&&_0x4d0224[a7_0x90bd('0x0')]['target']===target);}[a7_0x90bd('0x43')](_0x3dd32b,_0x1cd546){_0x1cd546[a7_0x90bd('0x26')][_0x3dd32b['id']]=_0x3dd32b;_0x1cd546[a7_0x90bd('0x50')][_0x3dd32b['id']]=[];}}exports[a7_0x90bd('0x73')]=TaskGraphCreator;function getDefaultDependencyConfigs(_0x3981c4,_0x3f5af4){var _0x173c16,_0x366693;const _0x1b9a62=(_0x173c16=_0x3981c4['targetDependencies'])!==null&&_0x173c16!==void 0x0?_0x173c16:{};const _0x5dda35=_0x3f5af4?(_0x366693=_0x3f5af4[a7_0x90bd('0x51')])!==null&&_0x366693!==void 0x0?_0x366693:['build']:[];for(const _0x261b3c of _0x5dda35){_0x1b9a62[_0x261b3c]=_0x1b9a62[_0x261b3c]||[];_0x1b9a62[_0x261b3c][a7_0x90bd('0x5b')]({'target':_0x261b3c,'projects':'dependencies'});}return _0x1b9a62;}
|
|
1
|
+
const a7_0x947f=['../../error/print-run-group-error','FileStorage','createNoNewMessagesTimeout','strictlyOrderedTargets','addDependencies','parse','project','find','completedTasks','nxCloudDistributedTasksRunner','error','rxjs/internal/Observable','reset','defaultTargetDependencies','Found\x20unknown\x20task:\x20','build','submitRunMetrics','Command\x20execution\x20failed.','commandStatus','printRunGroupError','defineProperty','number\x20of\x20completed\x20tasks:\x20','status','addTaskDependencies','configuration','scheduleTask','./distributed-execution.api','@nrwl/workspace/src/utilities/output','unparse','Status\x20update','findTask','hash','nx.json','executionId:\x20','terminalOutput','self','error:\x20','push','add','NUMBER_OF_TRIES','Distributed\x20Execution\x20Terminated','log','nodes','VERBOSE_LOGGING','note','has','run','readFileSync','next','output','getRunGroup','tasks','TaskGraphCreator','criticalErrorMessage','executionStatus:\x20','apply','taskId','lifeCycle','target','__awaiter','endTask','retrieve','indexOf','Error:','overrides','targetDependencies','size','then','Waiting...','projectGraph','Cache','See\x20run\x20details\x20at\x20','__esModule','success','dependencies','executionStatus','start','get','Waiter','Successfully\x20completed\x20running\x20the\x20command.','Unable\x20to\x20complete\x20a\x20run.','E2EEncryption','join','addTaskToGraph','@nrwl/workspace/src/tasks-runner/cache','createTaskGraph','../../../utilities/metric-logger','map','strip-json-comments','message','delete','throw','../../file-storage/e2e-encryption','projects','Processing\x20task\x20','exit','../../../utilities/environment','axiosException','assign','done','stdout','getOutputs','keys','url','Extracting\x20artifacts','@nrwl/workspace/src/tasks-runner/utils','catch','length','./node_modules/.cache/nx','splitTasksIntoStages'];(function(_0x4b9e48,_0x947f9c){const _0x340525=function(_0x2e4662){while(--_0x2e4662){_0x4b9e48['push'](_0x4b9e48['shift']());}};_0x340525(++_0x947f9c);}(a7_0x947f,0x1a1));const a7_0x3405=function(_0x4b9e48,_0x947f9c){_0x4b9e48=_0x4b9e48-0x0;let _0x340525=a7_0x947f[_0x4b9e48];return _0x340525;};'use strict';var __awaiter=this&&this[a7_0x3405('0x52')]||function(_0xf5815c,_0x2ad7fc,_0x5d6b8f,_0x1602f7){function _0x45b220(_0x4040c4){return _0x4040c4 instanceof _0x5d6b8f?_0x4040c4:new _0x5d6b8f(function(_0x568d83){_0x568d83(_0x4040c4);});}return new(_0x5d6b8f||(_0x5d6b8f=Promise))(function(_0x31e9bf,_0x4621ca){function _0x19a444(_0x580988){try{_0x3106fd(_0x1602f7[a7_0x3405('0x47')](_0x580988));}catch(_0x470400){_0x4621ca(_0x470400);}}function _0x415574(_0x772479){try{_0x3106fd(_0x1602f7[a7_0x3405('0x4')](_0x772479));}catch(_0x3ca8a6){_0x4621ca(_0x3ca8a6);}}function _0x3106fd(_0xb038b9){_0xb038b9[a7_0x3405('0xc')]?_0x31e9bf(_0xb038b9['value']):_0x45b220(_0xb038b9['value'])['then'](_0x19a444,_0x415574);}_0x3106fd((_0x1602f7=_0x1602f7[a7_0x3405('0x4e')](_0xf5815c,_0x2ad7fc||[]))[a7_0x3405('0x47')]());});};Object[a7_0x3405('0x2b')](exports,a7_0x3405('0x5f'),{'value':!![]});exports[a7_0x3405('0x4b')]=exports[a7_0x3405('0x20')]=void 0x0;const Observable_1=require(a7_0x3405('0x22'));const cache_1=require(a7_0x3405('0x6b'));const output_1=require(a7_0x3405('0x32'));const utils_1=require(a7_0x3405('0x12'));const stripJsonComments=require(a7_0x3405('0x1'));const fs_1=require('fs');const distributed_execution_api_1=require(a7_0x3405('0x31'));const file_storage_1=require('../../file-storage/file-storage');const e2e_encryption_1=require(a7_0x3405('0x5'));const waiter_1=require('../../../utilities/waiter');const environment_1=require(a7_0x3405('0x9'));const print_run_group_error_1=require(a7_0x3405('0x17'));const create_no_new_messages_timeout_1=require('../../../utilities/create-no-new-messages-timeout');const metric_logger_1=require(a7_0x3405('0x6d'));class NoopLifeCycle{[a7_0x3405('0x30')](_0x44ddb8){}['startTask'](_0x54e247){}[a7_0x3405('0x53')](_0x1d62bd,_0x289e8d){}}function runDistributedExecution(_0x88c380,_0x2fc468,_0x4bee21,_0x5bbb37,_0x1d0c75,_0x19485d,_0x45ee3f){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5b0c07=JSON[a7_0x3405('0x1c')](stripJsonComments((0x0,fs_1[a7_0x3405('0x46')])(a7_0x3405('0x37'))['toString']()));const _0x275863=new TaskOrderer(_0x4bee21[a7_0x3405('0x5c')],getDefaultDependencyConfigs(_0x5b0c07,_0x2fc468))[a7_0x3405('0x16')](_0x45ee3f);const _0x1643bd=yield _0x88c380[a7_0x3405('0x63')]((0x0,distributed_execution_api_1['createStartRequest'])(_0x19485d,_0x275863,_0x2fc468));return yield processTasks(_0x88c380,_0x5bbb37,_0x1d0c75,_0x2fc468,_0x1643bd,_0x45ee3f,_0x4bee21);});}function processTasks(_0x458103,_0xc6f679,_0x25e0b8,_0x336664,_0x3e9f6b,_0x43b5f7,_0x4ee27e){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3a1c53={};const _0x33b7b3=(0x0,create_no_new_messages_timeout_1[a7_0x3405('0x19')])();const _0x4e81be=new waiter_1[(a7_0x3405('0x65'))]();while(!![]){if(environment_1[a7_0x3405('0x42')]){output_1[a7_0x3405('0x48')][a7_0x3405('0x43')]({'title':a7_0x3405('0x5b')});}yield _0x4e81be['wait']();const _0x3c4d06=yield _0x458103[a7_0x3405('0x2d')](_0x3e9f6b);if(environment_1[a7_0x3405('0x42')]){output_1[a7_0x3405('0x48')][a7_0x3405('0x43')]({'title':a7_0x3405('0x34'),'bodyLines':[a7_0x3405('0x38')+_0x3e9f6b,a7_0x3405('0x4d')+_0x3c4d06['executionStatus'],a7_0x3405('0x2c')+_0x3c4d06[a7_0x3405('0x1f')][a7_0x3405('0x14')],a7_0x3405('0x3b')+_0x3c4d06[a7_0x3405('0x4c')]]});}if(_0x3c4d06[a7_0x3405('0x4c')]){output_1[a7_0x3405('0x48')][a7_0x3405('0x21')]({'title':a7_0x3405('0x3f'),'bodyLines':[a7_0x3405('0x56'),_0x3c4d06[a7_0x3405('0x4c')]]});process[a7_0x3405('0x8')](0x1);}_0x33b7b3(_0x3c4d06[a7_0x3405('0x1f')][a7_0x3405('0x14')]);for(const _0x3877eb of _0x3c4d06['completedTasks']){if(_0x3a1c53[_0x3877eb['taskId']])continue;yield processTask(_0xc6f679,_0x25e0b8,_0x4ee27e,_0x336664,_0x43b5f7,_0x3877eb);_0x4e81be[a7_0x3405('0x23')]();_0x3a1c53[_0x3877eb[a7_0x3405('0x4f')]]=!![];}if(_0x3c4d06[a7_0x3405('0x62')]==='COMPLETED'){return{'commandStatus':_0x3c4d06[a7_0x3405('0x29')],'runUrl':_0x3c4d06['runUrl']};}}});}function processTask(_0x17cac0,_0x1bc018,_0x5c51bb,_0x29ef53,_0x451432,_0x48a754){return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1[a7_0x3405('0x42')]){output_1[a7_0x3405('0x48')][a7_0x3405('0x43')]({'title':a7_0x3405('0x7')+_0x48a754[a7_0x3405('0x4f')]});}const _0x5c8fe2=_0x451432[a7_0x3405('0x1e')](_0x4060b2=>_0x48a754[a7_0x3405('0x4f')]===_0x4060b2['id']);if(!_0x5c8fe2){throw new Error(a7_0x3405('0x25')+_0x48a754['taskId']);}if(environment_1[a7_0x3405('0x42')]){output_1['output'][a7_0x3405('0x43')]({'title':'Retrieving\x20artifacts\x20from\x20'+_0x48a754[a7_0x3405('0x10')]});}yield _0x17cac0[a7_0x3405('0x54')](_0x48a754[a7_0x3405('0x36')],_0x48a754[a7_0x3405('0x10')],_0x29ef53['cacheDirectory']||a7_0x3405('0x15'));const _0x6b2945=yield _0x1bc018[a7_0x3405('0x64')](Object[a7_0x3405('0xb')](Object[a7_0x3405('0xb')]({},_0x5c8fe2),{'hash':_0x48a754['hash']}));const _0x9c361c=(0x0,utils_1[a7_0x3405('0xe')])(_0x5c51bb[a7_0x3405('0x5c')][a7_0x3405('0x41')],_0x5c8fe2);if(environment_1[a7_0x3405('0x42')]){output_1[a7_0x3405('0x48')][a7_0x3405('0x43')]({'title':a7_0x3405('0x11'),'bodyLines':_0x9c361c});}yield _0x1bc018['copyFilesFromCache'](_0x48a754[a7_0x3405('0x36')],_0x6b2945,_0x9c361c);output_1[a7_0x3405('0x48')]['logCommand'](getCommand(_0x5c8fe2));process[a7_0x3405('0xd')]['write'](_0x6b2945[a7_0x3405('0x39')]);output_1[a7_0x3405('0x48')]['addVerticalSeparator']();});}function getCommand(_0x503d44){const _0x3e7130=(0x0,utils_1[a7_0x3405('0x33')])(_0x503d44[a7_0x3405('0x57')]||{});const _0x4fb932=_0x503d44[a7_0x3405('0x51')][a7_0x3405('0x2f')]?':'+_0x503d44[a7_0x3405('0x51')][a7_0x3405('0x2f')]:'';return['nx',a7_0x3405('0x45'),_0x503d44[a7_0x3405('0x51')][a7_0x3405('0x1d')]+':'+_0x503d44[a7_0x3405('0x51')][a7_0x3405('0x51')]+_0x4fb932,..._0x3e7130][a7_0x3405('0x69')]('\x20');}const nxCloudDistributedTasksRunner=(_0x78f329,_0x5756ea,_0x1610d1)=>{if(environment_1[a7_0x3405('0x42')]){output_1[a7_0x3405('0x48')]['note']({'title':'Starting\x20distributed\x20command\x20execution'});}_0x5756ea[a7_0x3405('0x50')]=new NoopLifeCycle();const _0x2fe482=(0x0,environment_1[a7_0x3405('0x49')])();if(!_0x2fe482){(0x0,print_run_group_error_1[a7_0x3405('0x2a')])();return process[a7_0x3405('0x8')](0x1);}const _0x44a07b=new e2e_encryption_1[(a7_0x3405('0x68'))](environment_1['ENCRYPTION_KEY']||_0x5756ea['encryptionKey']);const _0x46ab9d=new file_storage_1[(a7_0x3405('0x18'))](_0x44a07b,environment_1[a7_0x3405('0x3e')]);const _0x217c0d=new cache_1[(a7_0x3405('0x5d'))](_0x5756ea);const _0x128009=new distributed_execution_api_1['DistributedExecutionApi'](_0x5756ea);runDistributedExecution(_0x128009,_0x5756ea,_0x1610d1,_0x46ab9d,_0x217c0d,_0x2fe482,_0x78f329)[a7_0x3405('0x5a')](_0x185017=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){if(_0x185017[a7_0x3405('0x29')]===0x0){output_1[a7_0x3405('0x48')][a7_0x3405('0x60')]({'title':a7_0x3405('0x66'),'bodyLines':['See\x20run\x20details\x20at\x20'+_0x185017['runUrl']]});}else{output_1['output'][a7_0x3405('0x21')]({'title':a7_0x3405('0x28'),'bodyLines':[a7_0x3405('0x5e')+_0x185017['runUrl']]});}yield(0x0,metric_logger_1[a7_0x3405('0x27')])(_0x5756ea);process[a7_0x3405('0x8')](_0x185017['commandStatus']);}))[a7_0x3405('0x13')](_0x2982c3=>{output_1[a7_0x3405('0x48')][a7_0x3405('0x21')]({'title':a7_0x3405('0x67'),'bodyLines':[_0x2982c3[a7_0x3405('0x2')]]});if(_0x2982c3[a7_0x3405('0xa')]){console[a7_0x3405('0x40')](_0x2982c3[a7_0x3405('0xa')]);}else{console[a7_0x3405('0x40')](_0x2982c3);}_0x128009['completeRunGroupWithError'](_0x2fe482,'Main\x20job\x20terminated\x20with\x20an\x20error:\x20\x22'+_0x2982c3[a7_0x3405('0x2')]+'\x22')['finally'](()=>process[a7_0x3405('0x8')](0x1));});return new Observable_1['Observable'](()=>{});};exports[a7_0x3405('0x20')]=nxCloudDistributedTasksRunner;class TaskOrderer{constructor(_0xb6632b,_0x3affaf){this[a7_0x3405('0x5c')]=_0xb6632b;this['defaultTargetDependencies']=_0x3affaf;}[a7_0x3405('0x16')](_0x38dc2d){if(_0x38dc2d['length']===0x0)return[];const _0x34faca=[];const _0x4b6fd4=this[a7_0x3405('0x6c')](_0x38dc2d);const _0x216cbb=new Set(_0x38dc2d[a7_0x3405('0x0')](_0x37f631=>_0x37f631['id']));let _0x433019=0x0;while(_0x216cbb[a7_0x3405('0x59')]>0x0){const _0x2b228b=_0x34faca[_0x433019]=[];for(const _0x85c02e of _0x216cbb){let _0x3855a6=!![];for(const _0x5abf3b of _0x4b6fd4['dependencies'][_0x85c02e]){if(_0x216cbb[a7_0x3405('0x44')](_0x5abf3b)){_0x3855a6=![];break;}}if(!_0x3855a6){continue;}const _0xd3da75=_0x4b6fd4[a7_0x3405('0x4a')][_0x85c02e];_0x2b228b[a7_0x3405('0x3c')](_0xd3da75);}for(const _0x132e80 of _0x2b228b){_0x216cbb[a7_0x3405('0x3')](_0x132e80['id']);}_0x433019++;}return _0x34faca;}['createTaskGraph'](_0x3795e4){const _0x5bfd52=new TaskGraphCreator(this['projectGraph'],this[a7_0x3405('0x24')]);return _0x5bfd52[a7_0x3405('0x6c')](_0x3795e4);}}class TaskGraphCreator{constructor(_0x43765c,_0x24190a){this[a7_0x3405('0x5c')]=_0x43765c;this[a7_0x3405('0x24')]=_0x24190a;}[a7_0x3405('0x6c')](_0x1b4954){const _0x114de9={'roots':[],'tasks':{},'dependencies':{}};for(const _0x1e650c of _0x1b4954){this[a7_0x3405('0x6a')](_0x1e650c,_0x114de9);const _0x3bf8c9=(0x0,utils_1['getDependencyConfigs'])(_0x1e650c[a7_0x3405('0x51')],this[a7_0x3405('0x24')],this[a7_0x3405('0x5c')]);if(!_0x3bf8c9){continue;}this[a7_0x3405('0x2e')](_0x1e650c,_0x3bf8c9,_0x1b4954,_0x114de9);}_0x114de9['roots']=Object[a7_0x3405('0xf')](_0x114de9[a7_0x3405('0x61')])['filter'](_0x44393a=>_0x114de9[a7_0x3405('0x61')][_0x44393a]['length']===0x0);return _0x114de9;}['addTaskDependencies'](_0xb38f3e,_0x5b9085,_0x5152ff,_0x1fbef4){for(const _0x489b65 of _0x5b9085){if(_0x489b65[a7_0x3405('0x6')]===a7_0x3405('0x3a')){for(const _0x2afa62 of _0x5152ff){if(_0x2afa62[a7_0x3405('0x51')][a7_0x3405('0x1d')]===_0xb38f3e[a7_0x3405('0x51')][a7_0x3405('0x1d')]&&_0x2afa62[a7_0x3405('0x51')]['target']===_0x489b65[a7_0x3405('0x51')]){_0x1fbef4[a7_0x3405('0x61')][_0xb38f3e['id']]['push'](_0x2afa62['id']);}}}else if(_0x489b65[a7_0x3405('0x6')]==='dependencies'){const _0x4a77a7=new Set();this['addDependencies'](_0xb38f3e['target']['project'],_0x489b65[a7_0x3405('0x51')],_0x5152ff,_0x1fbef4,_0xb38f3e['id'],_0x4a77a7);}}}[a7_0x3405('0x1b')](_0x238d72,_0x5888c2,_0x149fdd,_0x5b7806,_0x29386f,_0x5818b7){_0x5818b7[a7_0x3405('0x3d')](_0x238d72);const _0x2a3c9f=this['projectGraph'][a7_0x3405('0x61')][_0x238d72];if(_0x2a3c9f){const _0xb86cbd=_0x2a3c9f[a7_0x3405('0x0')](_0x35fbe0=>_0x35fbe0[a7_0x3405('0x51')]);for(const _0x4a9cbc of _0xb86cbd){if(_0x5818b7[a7_0x3405('0x44')](_0x4a9cbc)){continue;}const _0x597103=this[a7_0x3405('0x35')]({'project':_0x4a9cbc,'target':_0x5888c2},_0x149fdd);if(_0x597103){if(_0x5b7806['dependencies'][_0x29386f][a7_0x3405('0x55')](_0x597103['id'])===-0x1){_0x5b7806[a7_0x3405('0x61')][_0x29386f][a7_0x3405('0x3c')](_0x597103['id']);}}else{this['addDependencies'](_0x4a9cbc,_0x5888c2,_0x149fdd,_0x5b7806,_0x29386f,_0x5818b7);}}}}[a7_0x3405('0x35')]({project,target},_0x2b4d46){return _0x2b4d46[a7_0x3405('0x1e')](_0x344868=>_0x344868[a7_0x3405('0x51')][a7_0x3405('0x1d')]===project&&_0x344868[a7_0x3405('0x51')][a7_0x3405('0x51')]===target);}[a7_0x3405('0x6a')](_0x4bbc70,_0x55d5ab){_0x55d5ab[a7_0x3405('0x4a')][_0x4bbc70['id']]=_0x4bbc70;_0x55d5ab[a7_0x3405('0x61')][_0x4bbc70['id']]=[];}}exports['TaskGraphCreator']=TaskGraphCreator;function getDefaultDependencyConfigs(_0x458675,_0x1c1b0d){var _0x20bc69,_0x20109f;const _0x5728f7=(_0x20bc69=_0x458675[a7_0x3405('0x58')])!==null&&_0x20bc69!==void 0x0?_0x20bc69:{};const _0x39f1ec=_0x1c1b0d?(_0x20109f=_0x1c1b0d[a7_0x3405('0x1a')])!==null&&_0x20109f!==void 0x0?_0x20109f:[a7_0x3405('0x26')]:[];for(const _0x9f487e of _0x39f1ec){_0x5728f7[_0x9f487e]=_0x5728f7[_0x9f487e]||[];_0x5728f7[_0x9f487e]['push']({'target':_0x9f487e,'projects':a7_0x3405('0x61')});}return _0x5728f7;}
|
|
@@ -3,13 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.printMessage = void 0;
|
|
4
4
|
const output_1 = require("@nrwl/workspace/src/utilities/output");
|
|
5
5
|
function printMessage(message) {
|
|
6
|
-
|
|
6
|
+
// the new format uses a different offset, so we need ot make sure it works with both
|
|
7
|
+
let offset = ' ';
|
|
8
|
+
try {
|
|
9
|
+
require('@nrwl/orkspace/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle');
|
|
10
|
+
offset = ' ';
|
|
11
|
+
}
|
|
12
|
+
catch (e) { }
|
|
7
13
|
const formattedMessage = output_1.output.colors.gray(message);
|
|
14
|
+
process.stdout.write(`${offset}${formattedMessage}`);
|
|
8
15
|
output_1.output.addNewline();
|
|
9
|
-
output_1.output.writeOutputTitle({
|
|
10
|
-
label: chalk.reset.inverse.bold.keyword('grey')(' CLOUD '),
|
|
11
|
-
title: chalk.keyword('grey')(formattedMessage),
|
|
12
|
-
});
|
|
13
16
|
output_1.output.addNewline();
|
|
14
17
|
}
|
|
15
18
|
exports.printMessage = printMessage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"print-message.js","sourceRoot":"","sources":["../../../../../../libs/nx-packages/nx-cloud/src/lib/utilities/print-message.ts"],"names":[],"mappings":";;;AAAA,iEAA8D;AAE9D,SAAgB,YAAY,CAAC,OAAe;IAC1C,MAAM,
|
|
1
|
+
{"version":3,"file":"print-message.js","sourceRoot":"","sources":["../../../../../../libs/nx-packages/nx-cloud/src/lib/utilities/print-message.ts"],"names":[],"mappings":";;;AAAA,iEAA8D;AAE9D,SAAgB,YAAY,CAAC,OAAe;IAC1C,qFAAqF;IACrF,IAAI,MAAM,GAAG,IAAI,CAAC;IAClB,IAAI;QACF,OAAO,CAAC,yFAAyF,CAAC,CAAC;QACnG,MAAM,GAAG,KAAK,CAAC;KAChB;IAAC,OAAO,CAAC,EAAE,GAAE;IACd,MAAM,gBAAgB,GAAG,eAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,GAAG,gBAAgB,EAAE,CAAC,CAAC;IACrD,eAAM,CAAC,UAAU,EAAE,CAAC;IACpB,eAAM,CAAC,UAAU,EAAE,CAAC;AACtB,CAAC;AAXD,oCAWC"}
|