@nrwl/nx-cloud 14.7.0 → 15.0.1-beta.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/error-reporter.api.js +36 -1
- package/lib/core/api/run-group.api.js +68 -1
- package/lib/core/runners/cloud-enabled/cloud-enabled-life-cycle.js +156 -1
- package/lib/core/runners/cloud-enabled/cloud-enabled.runner.js +288 -1
- package/lib/core/runners/cloud-enabled/cloud-remote-cache.js +113 -1
- package/lib/core/runners/cloud-enabled/cloud-run.api.js +167 -1
- package/lib/core/runners/cloud-enabled/id-generator.js +16 -1
- package/lib/core/runners/distributed-agent/distributed-agent.api.js +79 -1
- package/lib/core/runners/distributed-agent/distributed-agent.impl.js +263 -1
- package/lib/core/runners/distributed-execution/distributed-execution.api.js +143 -1
- package/lib/core/runners/distributed-execution/distributed-execution.runner.js +220 -1
- package/lib/core/runners/distributed-execution/split-task-graph-into-stages.js +37 -1
- package/lib/core/runners/distributed-execution/task-graph-creator.js +77 -1
- package/lib/core/terminal-output/end-of-run-message.js +15 -7
- package/lib/core/terminal-output/end-of-run-message.js.map +1 -1
- package/lib/utilities/nx-imports.js +3 -0
- package/lib/utilities/nx-imports.js.map +1 -1
- package/package.json +2 -2
- package/project.json +1 -1
|
@@ -1 +1,220 @@
|
|
|
1
|
-
const a8_0x3aa9=['DistributedExecutionApi','criticalErrorMessage','addVerticalSeparator','value','Unable\x20to\x20complete\x20a\x20run.','Main\x20job\x20terminated\x20with\x20an\x20error:\x20\x22','startTask','commandStatus','start','taskGraph','retrieve','../../../utilities/create-unchanged-value-timeout','status','assign','\x20seconds.','executionStatus:\x20','next','executionId:\x20','exit','createUnchangedValueTimeout','strictlyOrderedTargets','splitTasksIntoStages','E2EEncryption','submitRunMetrics','No\x20new\x20completed\x20tasks\x20after\x20','./distributed-execution.api','FileStorage','projectGraph','SIGINT','Waiter','url','get','taskId','nxCloudDistributedTasksRunner','completeRunGroupWithError','Starting\x20distributed\x20command\x20execution','join','scheduleTask','COMPLETED','error','Status\x20update','run','hash','log','../../file-storage/file-storage','Main\x20job\x20was\x20terminated\x20via\x20SIGINT','cacheDirectory','../../../utilities/nx-imports','Found\x20unknown\x20task:\x20','parse','executionStatus','length','Command\x20execution\x20failed.','find','getRunGroup','../../file-storage/e2e-encryption','ENCRYPTION_KEY','throw','write','printRunGroupError','tasks','NO_COMPLETED_TASKS_TIMEOUT','terminalOutput','dependencies','strip-json-comments','completedTasks','createTaskGraph','note','push','axiosException','serializeOverrides','./split-task-graph-into-stages','success','Processing\x20task\x20','/nx.json','toString','number\x20of\x20completed\x20tasks:\x20','reset','See\x20run\x20details\x20at\x20','build','./node_modules/.cache/nx','lifeCycle','endTask','TaskGraphCreator','VERBOSE_LOGGING','nodes','Successfully\x20completed\x20running\x20the\x20command.','logCommand','Waiting...','target'];(function(_0x15b170,_0x3aa91d){const _0x52320c=function(_0x4972e4){while(--_0x4972e4){_0x15b170['push'](_0x15b170['shift']());}};_0x52320c(++_0x3aa91d);}(a8_0x3aa9,0xbf));const a8_0x5232=function(_0x15b170,_0x3aa91d){_0x15b170=_0x15b170-0x0;let _0x52320c=a8_0x3aa9[_0x15b170];return _0x52320c;};'use strict';var __awaiter=this&&this['__awaiter']||function(_0x27efc6,_0x3cf25e,_0x98e8ff,_0x30098a){function _0x3c6efd(_0x29492f){return _0x29492f instanceof _0x98e8ff?_0x29492f:new _0x98e8ff(function(_0x1d31dc){_0x1d31dc(_0x29492f);});}return new(_0x98e8ff||(_0x98e8ff=Promise))(function(_0x248d0b,_0xa769d6){function _0x509116(_0x1d8dd5){try{_0x5ec1ba(_0x30098a['next'](_0x1d8dd5));}catch(_0x1e3101){_0xa769d6(_0x1e3101);}}function _0x35c7d2(_0x3aca29){try{_0x5ec1ba(_0x30098a[a8_0x5232('0x2e')](_0x3aca29));}catch(_0x40b738){_0xa769d6(_0x40b738);}}function _0x5ec1ba(_0x29f9e5){_0x29f9e5['done']?_0x248d0b(_0x29f9e5[a8_0x5232('0x52')]):_0x3c6efd(_0x29f9e5[a8_0x5232('0x52')])['then'](_0x509116,_0x35c7d2);}_0x5ec1ba((_0x30098a=_0x30098a['apply'](_0x27efc6,_0x3cf25e||[]))[a8_0x5232('0x5')]());});};Object['defineProperty'](exports,'__esModule',{'value':!![]});exports['nxCloudDistributedTasksRunner']=void 0x0;const fs_1=require('fs');const stripJsonComments=require(a8_0x5232('0x35'));const create_unchanged_value_timeout_1=require(a8_0x5232('0x0'));const environment_1=require('../../../utilities/environment');const metric_logger_1=require('../../../utilities/metric-logger');const serializer_overrides_1=require('../../../utilities/serializer-overrides');const waiter_1=require('../../../utilities/waiter');const error_reporter_api_1=require('../../api/error-reporter.api');const print_run_group_error_1=require('../../error/print-run-group-error');const e2e_encryption_1=require(a8_0x5232('0x2c'));const file_storage_1=require(a8_0x5232('0x21'));const distributed_execution_api_1=require(a8_0x5232('0xe'));const split_task_graph_into_stages_1=require(a8_0x5232('0x3c'));const task_graph_creator_1=require('./task-graph-creator');const {output,workspaceRoot,getOutputs,Cache}=require(a8_0x5232('0x24'));class NoopLifeCycle{[a8_0x5232('0x1a')](_0x857c04){}[a8_0x5232('0x55')](_0x26eee6){}[a8_0x5232('0x47')](_0xa97ade,_0x299af4){}}function runDistributedExecution(_0x3c2766,_0x13e171,_0x349218,_0x1b453b,_0x127c78,_0x377086,_0x3a048a){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x133c86=yield _0x3c2766[a8_0x5232('0x57')]((0x0,distributed_execution_api_1['createStartRequest'])(_0x377086,(0x0,split_task_graph_into_stages_1[a8_0x5232('0xa')])(_0x3a048a),_0x13e171));return yield processTasks(_0x3c2766,_0x1b453b,_0x127c78,_0x13e171,_0x133c86,Object['values'](_0x3a048a[a8_0x5232('0x31')]),_0x349218);});}function processTasks(_0x569853,_0x2ca863,_0x2ffb52,_0x4ea61a,_0x4949bc,_0x17e6a3,_0x5dfe3e){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x34cd9e={};const _0x4d3448=(0x0,create_unchanged_value_timeout_1[a8_0x5232('0x8')])({'title':a8_0x5232('0xd')+environment_1[a8_0x5232('0x32')]/0x3e8+a8_0x5232('0x3'),'timeout':environment_1[a8_0x5232('0x32')]});const _0x35c9a0=new waiter_1[(a8_0x5232('0x12'))]();while(!![]){if(environment_1[a8_0x5232('0x49')]){output['note']({'title':a8_0x5232('0x4d')});}yield _0x35c9a0['wait']();const _0x5d1b76=yield _0x569853[a8_0x5232('0x1')](_0x4949bc);if(environment_1[a8_0x5232('0x49')]){output[a8_0x5232('0x38')]({'title':a8_0x5232('0x1d'),'bodyLines':[a8_0x5232('0x6')+_0x4949bc,a8_0x5232('0x4')+_0x5d1b76[a8_0x5232('0x27')],a8_0x5232('0x41')+_0x5d1b76[a8_0x5232('0x36')][a8_0x5232('0x28')],'error:\x20'+_0x5d1b76[a8_0x5232('0x50')]]});}if(_0x5d1b76[a8_0x5232('0x50')]){output[a8_0x5232('0x1c')]({'title':'Distributed\x20Execution\x20Terminated','bodyLines':['Error:',_0x5d1b76['criticalErrorMessage']]});process[a8_0x5232('0x7')](0x1);}_0x4d3448(_0x5d1b76[a8_0x5232('0x36')][a8_0x5232('0x28')]);for(const _0xde803b of _0x5d1b76[a8_0x5232('0x36')]){if(_0x34cd9e[_0xde803b[a8_0x5232('0x15')]])continue;yield processTask(_0x2ca863,_0x2ffb52,_0x5dfe3e,_0x4ea61a,_0x17e6a3,_0xde803b);_0x35c9a0[a8_0x5232('0x42')]();_0x34cd9e[_0xde803b[a8_0x5232('0x15')]]=!![];}if(_0x5d1b76[a8_0x5232('0x27')]===a8_0x5232('0x1b')){return{'commandStatus':_0x5d1b76[a8_0x5232('0x56')],'runUrl':_0x5d1b76['runUrl']};}}});}function processTask(_0x5a7602,_0x9b8230,_0x45d23d,_0x42ad7b,_0x3fffd6,_0x3cecfd){return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1['VERBOSE_LOGGING']){output[a8_0x5232('0x38')]({'title':a8_0x5232('0x3e')+_0x3cecfd[a8_0x5232('0x15')]});}const _0x13e799=_0x3fffd6[a8_0x5232('0x2a')](_0xc5a5dd=>_0x3cecfd[a8_0x5232('0x15')]===_0xc5a5dd['id']);if(!_0x13e799){throw new Error(a8_0x5232('0x25')+_0x3cecfd[a8_0x5232('0x15')]);}if(environment_1[a8_0x5232('0x49')]){output[a8_0x5232('0x38')]({'title':'Retrieving\x20artifacts\x20from\x20'+_0x3cecfd['url']});}yield _0x5a7602[a8_0x5232('0x59')](_0x3cecfd['hash'],_0x3cecfd[a8_0x5232('0x13')],_0x42ad7b[a8_0x5232('0x23')]||a8_0x5232('0x45'));const _0x4b2d38=yield _0x9b8230[a8_0x5232('0x14')](Object[a8_0x5232('0x2')](Object['assign']({},_0x13e799),{'hash':_0x3cecfd[a8_0x5232('0x1f')]}));const _0x566e16=getOutputs(_0x45d23d[a8_0x5232('0x10')][a8_0x5232('0x4a')],_0x13e799);if(environment_1[a8_0x5232('0x49')]){output['note']({'title':'Extracting\x20artifacts','bodyLines':_0x566e16});}yield _0x9b8230['copyFilesFromCache'](_0x3cecfd[a8_0x5232('0x1f')],_0x4b2d38,_0x566e16);output[a8_0x5232('0x4c')](getCommand(_0x13e799));process['stdout'][a8_0x5232('0x2f')](_0x4b2d38[a8_0x5232('0x33')]);output[a8_0x5232('0x51')]();});}function getCommand(_0xa6bcbd){const _0x495864=_0xa6bcbd[a8_0x5232('0x4e')]['configuration']?':'+_0xa6bcbd[a8_0x5232('0x4e')]['configuration']:'';return['nx',a8_0x5232('0x1e'),_0xa6bcbd[a8_0x5232('0x4e')]['project']+':'+_0xa6bcbd[a8_0x5232('0x4e')]['target']+_0x495864,(0x0,serializer_overrides_1[a8_0x5232('0x3b')])(_0xa6bcbd)][a8_0x5232('0x19')]('\x20');}function attachSignalListenersToCompleteRunGroupOnError(_0xe46f1a,_0x2c105c){process['on'](a8_0x5232('0x11'),()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0xe46f1a['completeRunGroupWithError'](_0x2c105c,a8_0x5232('0x22'));process[a8_0x5232('0x7')](0x1);}));process['on']('SIGTERM',()=>__awaiter(this,void 0x0,void 0x0,function*(){yield _0xe46f1a[a8_0x5232('0x17')](_0x2c105c,'Main\x20job\x20was\x20terminated\x20via\x20SIGTERM');process[a8_0x5232('0x7')](0x1);}));}const nxCloudDistributedTasksRunner=(_0x102f4c,_0x172b7f,_0x586a34)=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){if(environment_1[a8_0x5232('0x49')]){output[a8_0x5232('0x38')]({'title':a8_0x5232('0x18')});}_0x172b7f[a8_0x5232('0x46')]=new NoopLifeCycle();const _0x1639ec=(0x0,environment_1[a8_0x5232('0x2b')])();if(!_0x1639ec){(0x0,print_run_group_error_1[a8_0x5232('0x30')])();return process[a8_0x5232('0x7')](0x1);}const _0x435b25=new e2e_encryption_1[(a8_0x5232('0xb'))](environment_1[a8_0x5232('0x2d')]||_0x172b7f['encryptionKey']);const _0x2a715d=new error_reporter_api_1['ErrorReporterApi'](_0x172b7f);const _0x28ffaa=new file_storage_1[(a8_0x5232('0xf'))](_0x435b25,_0x2a715d,!![],![]);const _0x38f8f5=new Cache(_0x172b7f);const _0x39e627=new distributed_execution_api_1[(a8_0x5232('0x4f'))](_0x172b7f);attachSignalListenersToCompleteRunGroupOnError(_0x39e627,_0x1639ec);try{const _0x397af9=getTaskGraph(_0x586a34,_0x102f4c,_0x172b7f);const _0x42cf6e=yield runDistributedExecution(_0x39e627,_0x172b7f,_0x586a34,_0x28ffaa,_0x38f8f5,_0x1639ec,_0x397af9);if(_0x42cf6e[a8_0x5232('0x56')]===0x0){output[a8_0x5232('0x3d')]({'title':a8_0x5232('0x4b'),'bodyLines':[a8_0x5232('0x43')+_0x42cf6e['runUrl']]});}else{output[a8_0x5232('0x1c')]({'title':a8_0x5232('0x29'),'bodyLines':[a8_0x5232('0x43')+_0x42cf6e['runUrl']]});}yield(0x0,metric_logger_1[a8_0x5232('0xc')])(_0x172b7f);process[a8_0x5232('0x7')](_0x42cf6e[a8_0x5232('0x56')]);}catch(_0x446d45){output['error']({'title':a8_0x5232('0x53'),'bodyLines':[_0x446d45['message']]});if(_0x446d45[a8_0x5232('0x3a')]){console['log'](_0x446d45[a8_0x5232('0x3a')]);}else{console[a8_0x5232('0x20')](_0x446d45);}try{yield _0x39e627[a8_0x5232('0x17')](_0x1639ec,a8_0x5232('0x54')+_0x446d45['message']+'\x22');}finally{process[a8_0x5232('0x7')](0x1);}}});exports[a8_0x5232('0x16')]=nxCloudDistributedTasksRunner;function getTaskGraph(_0x19c3c9,_0x23a218,_0x19baef){if(_0x19c3c9[a8_0x5232('0x58')]){return _0x19c3c9[a8_0x5232('0x58')];}else{const _0x58a6aa=JSON[a8_0x5232('0x26')](stripJsonComments((0x0,fs_1['readFileSync'])(workspaceRoot+a8_0x5232('0x3f'))[a8_0x5232('0x40')]()));return new task_graph_creator_1[(a8_0x5232('0x48'))](_0x19c3c9[a8_0x5232('0x10')],getDefaultDependencyConfigs(_0x58a6aa,_0x19baef))[a8_0x5232('0x37')](_0x23a218);}}function getDefaultDependencyConfigs(_0x15aa6a,_0x56ee67){var _0xe59987,_0x45fce3;const _0x14ac0c=(_0xe59987=_0x15aa6a['targetDependencies'])!==null&&_0xe59987!==void 0x0?_0xe59987:{};const _0x46b2eb=_0x56ee67?(_0x45fce3=_0x56ee67[a8_0x5232('0x9')])!==null&&_0x45fce3!==void 0x0?_0x45fce3:[a8_0x5232('0x44')]:[];for(const _0x1cec2d of _0x46b2eb){_0x14ac0c[_0x1cec2d]=_0x14ac0c[_0x1cec2d]||[];_0x14ac0c[_0x1cec2d][a8_0x5232('0x39')]({'target':_0x1cec2d,'projects':a8_0x5232('0x34')});}return _0x14ac0c;}
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.nxCloudDistributedTasksRunner = void 0;
|
|
13
|
+
const fs_1 = require("fs");
|
|
14
|
+
const stripJsonComments = require("strip-json-comments");
|
|
15
|
+
const create_unchanged_value_timeout_1 = require("../../../utilities/create-unchanged-value-timeout");
|
|
16
|
+
const environment_1 = require("../../../utilities/environment");
|
|
17
|
+
const metric_logger_1 = require("../../../utilities/metric-logger");
|
|
18
|
+
const serializer_overrides_1 = require("../../../utilities/serializer-overrides");
|
|
19
|
+
const waiter_1 = require("../../../utilities/waiter");
|
|
20
|
+
const error_reporter_api_1 = require("../../api/error-reporter.api");
|
|
21
|
+
const print_run_group_error_1 = require("../../error/print-run-group-error");
|
|
22
|
+
const e2e_encryption_1 = require("../../file-storage/e2e-encryption");
|
|
23
|
+
const file_storage_1 = require("../../file-storage/file-storage");
|
|
24
|
+
const distributed_execution_api_1 = require("./distributed-execution.api");
|
|
25
|
+
const split_task_graph_into_stages_1 = require("./split-task-graph-into-stages");
|
|
26
|
+
const task_graph_creator_1 = require("./task-graph-creator");
|
|
27
|
+
const { output, workspaceRoot, getOutputs, Cache, } = require('../../../utilities/nx-imports');
|
|
28
|
+
class NoopLifeCycle {
|
|
29
|
+
scheduleTask(task) { }
|
|
30
|
+
startTask(task) { }
|
|
31
|
+
endTask(task, code) { }
|
|
32
|
+
}
|
|
33
|
+
function runDistributedExecution(api, options, context, fileStorage, cache, runGroup, taskGraph) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
const id = yield api.start((0, distributed_execution_api_1.createStartRequest)(runGroup, (0, split_task_graph_into_stages_1.splitTasksIntoStages)(taskGraph), options));
|
|
36
|
+
return yield processTasks(api, fileStorage, cache, options, id, Object.values(taskGraph.tasks), context);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function processTasks(api, fileStorage, cache, options, executionId, tasks, context) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
const processedTasks = {};
|
|
42
|
+
const failIfNumberOfCompletedTasksDoesNotChangeAfterTimeout = (0, create_unchanged_value_timeout_1.createUnchangedValueTimeout)({
|
|
43
|
+
title: `No new completed tasks after ${environment_1.NO_COMPLETED_TASKS_TIMEOUT / 1000} seconds.`,
|
|
44
|
+
timeout: environment_1.NO_COMPLETED_TASKS_TIMEOUT,
|
|
45
|
+
});
|
|
46
|
+
const waiter = new waiter_1.Waiter();
|
|
47
|
+
while (true) {
|
|
48
|
+
if (environment_1.VERBOSE_LOGGING) {
|
|
49
|
+
output.note({
|
|
50
|
+
title: 'Waiting...',
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
yield waiter.wait();
|
|
54
|
+
const r = yield api.status(executionId);
|
|
55
|
+
if (environment_1.VERBOSE_LOGGING) {
|
|
56
|
+
output.note({
|
|
57
|
+
title: `Status update`,
|
|
58
|
+
bodyLines: [
|
|
59
|
+
`executionId: ${executionId}`,
|
|
60
|
+
`executionStatus: ${r.executionStatus}`,
|
|
61
|
+
`number of completed tasks: ${r.completedTasks.length}`,
|
|
62
|
+
`error: ${r.criticalErrorMessage}`,
|
|
63
|
+
],
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
if (r.criticalErrorMessage) {
|
|
67
|
+
output.error({
|
|
68
|
+
title: 'Distributed Execution Terminated',
|
|
69
|
+
bodyLines: ['Error:', r.criticalErrorMessage],
|
|
70
|
+
});
|
|
71
|
+
process.exit(1);
|
|
72
|
+
}
|
|
73
|
+
failIfNumberOfCompletedTasksDoesNotChangeAfterTimeout(r.completedTasks.length);
|
|
74
|
+
for (const t of r.completedTasks) {
|
|
75
|
+
if (processedTasks[t.taskId])
|
|
76
|
+
continue;
|
|
77
|
+
yield processTask(fileStorage, cache, context, options, tasks, t);
|
|
78
|
+
waiter.reset();
|
|
79
|
+
processedTasks[t.taskId] = true;
|
|
80
|
+
}
|
|
81
|
+
if (r.executionStatus === 'COMPLETED') {
|
|
82
|
+
return { commandStatus: r.commandStatus, runUrl: r.runUrl };
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function processTask(fileStorage, cache, context, options, tasks, completedTask) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
if (environment_1.VERBOSE_LOGGING) {
|
|
90
|
+
output.note({
|
|
91
|
+
title: `Processing task ${completedTask.taskId}`,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
const matchingTask = tasks.find((tt) => completedTask.taskId === tt.id);
|
|
95
|
+
if (!matchingTask) {
|
|
96
|
+
throw new Error(`Found unknown task: ${completedTask.taskId}`);
|
|
97
|
+
}
|
|
98
|
+
if (environment_1.VERBOSE_LOGGING) {
|
|
99
|
+
output.note({
|
|
100
|
+
title: `Retrieving artifacts from ${completedTask.url}`,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
yield fileStorage.retrieve(completedTask.hash, completedTask.url, options.cacheDirectory || './node_modules/.cache/nx');
|
|
104
|
+
const cachedResult = yield cache.get(Object.assign(Object.assign({}, matchingTask), { hash: completedTask.hash }));
|
|
105
|
+
const outputs = getOutputs(context.projectGraph.nodes, matchingTask);
|
|
106
|
+
if (environment_1.VERBOSE_LOGGING) {
|
|
107
|
+
output.note({
|
|
108
|
+
title: `Extracting artifacts`,
|
|
109
|
+
bodyLines: outputs,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
yield cache.copyFilesFromCache(completedTask.hash, cachedResult, outputs);
|
|
113
|
+
output.logCommand(getCommand(matchingTask));
|
|
114
|
+
process.stdout.write(cachedResult.terminalOutput);
|
|
115
|
+
output.addVerticalSeparator();
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function getCommand(task) {
|
|
119
|
+
const config = task.target.configuration
|
|
120
|
+
? `:${task.target.configuration}`
|
|
121
|
+
: '';
|
|
122
|
+
return [
|
|
123
|
+
'nx',
|
|
124
|
+
'run',
|
|
125
|
+
`${task.target.project}:${task.target.target}${config}`,
|
|
126
|
+
(0, serializer_overrides_1.serializeOverrides)(task),
|
|
127
|
+
].join(' ');
|
|
128
|
+
}
|
|
129
|
+
function attachSignalListenersToCompleteRunGroupOnError(api, runGroup) {
|
|
130
|
+
process.on('SIGINT', () => __awaiter(this, void 0, void 0, function* () {
|
|
131
|
+
yield api.completeRunGroupWithError(runGroup, 'Main job was terminated via SIGINT');
|
|
132
|
+
process.exit(1);
|
|
133
|
+
}));
|
|
134
|
+
process.on('SIGTERM', () => __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
yield api.completeRunGroupWithError(runGroup, 'Main job was terminated via SIGTERM');
|
|
136
|
+
process.exit(1);
|
|
137
|
+
}));
|
|
138
|
+
}
|
|
139
|
+
const nxCloudDistributedTasksRunner = (tasks, options, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
140
|
+
if (environment_1.VERBOSE_LOGGING) {
|
|
141
|
+
output.note({
|
|
142
|
+
title: 'Starting distributed command execution',
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
options.lifeCycle = new NoopLifeCycle();
|
|
146
|
+
const runGroup = (0, environment_1.getRunGroup)();
|
|
147
|
+
if (!runGroup) {
|
|
148
|
+
(0, print_run_group_error_1.printRunGroupError)();
|
|
149
|
+
return process.exit(1);
|
|
150
|
+
}
|
|
151
|
+
const encryption = new e2e_encryption_1.E2EEncryption(environment_1.ENCRYPTION_KEY || options.encryptionKey);
|
|
152
|
+
const errorReporter = new error_reporter_api_1.ErrorReporterApi(options);
|
|
153
|
+
const fileStorage = new file_storage_1.FileStorage(encryption, errorReporter, true, false);
|
|
154
|
+
const cache = new Cache(options);
|
|
155
|
+
const api = new distributed_execution_api_1.DistributedExecutionApi(options);
|
|
156
|
+
attachSignalListenersToCompleteRunGroupOnError(api, runGroup);
|
|
157
|
+
try {
|
|
158
|
+
const taskGraph = getTaskGraph(context, tasks, options);
|
|
159
|
+
const r = yield runDistributedExecution(api, options, context, fileStorage, cache, runGroup, taskGraph);
|
|
160
|
+
if (r.commandStatus === 0) {
|
|
161
|
+
output.success({
|
|
162
|
+
title: 'Successfully completed running the command.',
|
|
163
|
+
bodyLines: [`See run details at ${r.runUrl}`],
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
output.error({
|
|
168
|
+
title: 'Command execution failed.',
|
|
169
|
+
bodyLines: [`See run details at ${r.runUrl}`],
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
yield (0, metric_logger_1.submitRunMetrics)(options);
|
|
173
|
+
process.exit(r.commandStatus);
|
|
174
|
+
}
|
|
175
|
+
catch (e) {
|
|
176
|
+
output.error({
|
|
177
|
+
title: 'Unable to complete a run.',
|
|
178
|
+
bodyLines: [e.message],
|
|
179
|
+
});
|
|
180
|
+
if (e.axiosException) {
|
|
181
|
+
console.log(e.axiosException);
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
console.log(e);
|
|
185
|
+
}
|
|
186
|
+
try {
|
|
187
|
+
yield api.completeRunGroupWithError(runGroup, `Main job terminated with an error: "${e.message}"`);
|
|
188
|
+
}
|
|
189
|
+
finally {
|
|
190
|
+
process.exit(1);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
exports.nxCloudDistributedTasksRunner = nxCloudDistributedTasksRunner;
|
|
195
|
+
function getTaskGraph(context, tasks, options) {
|
|
196
|
+
if (context.taskGraph) {
|
|
197
|
+
return context.taskGraph;
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
const nxjson = JSON.parse(stripJsonComments((0, fs_1.readFileSync)(`${workspaceRoot}/nx.json`).toString()));
|
|
201
|
+
return new task_graph_creator_1.TaskGraphCreator(context.projectGraph, getDefaultDependencyConfigs(nxjson, options)).createTaskGraph(tasks);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
function getDefaultDependencyConfigs(nxJson, runnerOptions) {
|
|
205
|
+
var _a, _b;
|
|
206
|
+
const defaults = (_a = nxJson.targetDependencies) !== null && _a !== void 0 ? _a : {};
|
|
207
|
+
const strictlyOrderedTargets = runnerOptions
|
|
208
|
+
? (_b = runnerOptions.strictlyOrderedTargets) !== null && _b !== void 0 ? _b : ['build']
|
|
209
|
+
: [];
|
|
210
|
+
// Strictly Ordered Targets depend on their dependencies
|
|
211
|
+
for (const target of strictlyOrderedTargets) {
|
|
212
|
+
defaults[target] = defaults[target] || [];
|
|
213
|
+
defaults[target].push({
|
|
214
|
+
target,
|
|
215
|
+
projects: 'dependencies',
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
return defaults;
|
|
219
|
+
}
|
|
220
|
+
//# sourceMappingURL=distributed-execution.runner.js.map
|
|
@@ -1 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.splitTasksIntoStages = void 0;
|
|
4
|
+
function splitTasksIntoStages(taskGraph) {
|
|
5
|
+
const stages = [];
|
|
6
|
+
const notStagedTaskIds = new Set(Object.values(taskGraph.tasks).map((t) => t.id));
|
|
7
|
+
let stageIndex = 0;
|
|
8
|
+
// Loop through tasks and try to stage them. As tasks are staged, they are removed from the loop
|
|
9
|
+
while (notStagedTaskIds.size > 0) {
|
|
10
|
+
const currentStage = (stages[stageIndex] = []);
|
|
11
|
+
for (const taskId of notStagedTaskIds) {
|
|
12
|
+
let ready = true;
|
|
13
|
+
for (const dependency of taskGraph.dependencies[taskId]) {
|
|
14
|
+
if (notStagedTaskIds.has(dependency)) {
|
|
15
|
+
// dependency has not been staged yet, this task is not ready to be staged.
|
|
16
|
+
ready = false;
|
|
17
|
+
break;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
// Some dependency still has not been staged, skip it for now, it will be processed again
|
|
21
|
+
if (!ready) {
|
|
22
|
+
continue;
|
|
23
|
+
}
|
|
24
|
+
// All the dependencies have been staged, let's stage it.
|
|
25
|
+
const task = taskGraph.tasks[taskId];
|
|
26
|
+
currentStage.push(task);
|
|
27
|
+
}
|
|
28
|
+
// Remove the entire new stage of tasks from the list
|
|
29
|
+
for (const task of currentStage) {
|
|
30
|
+
notStagedTaskIds.delete(task.id);
|
|
31
|
+
}
|
|
32
|
+
stageIndex++;
|
|
33
|
+
}
|
|
34
|
+
return stages;
|
|
35
|
+
}
|
|
36
|
+
exports.splitTasksIntoStages = splitTasksIntoStages;
|
|
37
|
+
//# sourceMappingURL=split-task-graph-into-stages.js.map
|
|
@@ -1 +1,77 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaskGraphCreator = void 0;
|
|
4
|
+
const { getDependencyConfigs } = require('../../../utilities/nx-imports');
|
|
5
|
+
/**
|
|
6
|
+
* This is only used for versions of Nx prior to 14 where the task graph
|
|
7
|
+
* wasn't part of the context so we have to recreate it
|
|
8
|
+
*/
|
|
9
|
+
class TaskGraphCreator {
|
|
10
|
+
constructor(projectGraph, defaultTargetDependencies) {
|
|
11
|
+
this.projectGraph = projectGraph;
|
|
12
|
+
this.defaultTargetDependencies = defaultTargetDependencies;
|
|
13
|
+
}
|
|
14
|
+
createTaskGraph(tasks) {
|
|
15
|
+
const graph = {
|
|
16
|
+
roots: [],
|
|
17
|
+
tasks: {},
|
|
18
|
+
dependencies: {},
|
|
19
|
+
};
|
|
20
|
+
for (const task of tasks) {
|
|
21
|
+
this.addTaskToGraph(task, graph);
|
|
22
|
+
const dependencyConfigs = getDependencyConfigs(task.target, this.defaultTargetDependencies, this.projectGraph);
|
|
23
|
+
if (!dependencyConfigs) {
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
this.addTaskDependencies(task, dependencyConfigs, tasks, graph);
|
|
27
|
+
}
|
|
28
|
+
graph.roots = Object.keys(graph.dependencies).filter((k) => graph.dependencies[k].length === 0);
|
|
29
|
+
return graph;
|
|
30
|
+
}
|
|
31
|
+
addTaskDependencies(task, dependencyConfigs, tasks, graph) {
|
|
32
|
+
for (const dependencyConfig of dependencyConfigs) {
|
|
33
|
+
if (dependencyConfig.projects === 'self') {
|
|
34
|
+
for (const t of tasks) {
|
|
35
|
+
if (t.target.project === task.target.project &&
|
|
36
|
+
t.target.target === dependencyConfig.target) {
|
|
37
|
+
graph.dependencies[task.id].push(t.id);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
else if (dependencyConfig.projects === 'dependencies') {
|
|
42
|
+
const seen = new Set();
|
|
43
|
+
this.addDependencies(task.target.project, dependencyConfig.target, tasks, graph, task.id, seen);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
addDependencies(project, target, tasks, graph, taskId, seen) {
|
|
48
|
+
seen.add(project);
|
|
49
|
+
const dependencies = this.projectGraph.dependencies[project];
|
|
50
|
+
if (dependencies) {
|
|
51
|
+
const projectDependencies = dependencies.map((dependency) => dependency.target);
|
|
52
|
+
for (const projectDependency of projectDependencies) {
|
|
53
|
+
if (seen.has(projectDependency)) {
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
const dependency = this.findTask({ project: projectDependency, target }, tasks);
|
|
57
|
+
if (dependency) {
|
|
58
|
+
if (graph.dependencies[taskId].indexOf(dependency.id) === -1) {
|
|
59
|
+
graph.dependencies[taskId].push(dependency.id);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
this.addDependencies(projectDependency, target, tasks, graph, taskId, seen);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
findTask({ project, target }, tasks) {
|
|
69
|
+
return tasks.find((t) => t.target.project === project && t.target.target === target);
|
|
70
|
+
}
|
|
71
|
+
addTaskToGraph(task, graph) {
|
|
72
|
+
graph.tasks[task.id] = task;
|
|
73
|
+
graph.dependencies[task.id] = [];
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
exports.TaskGraphCreator = TaskGraphCreator;
|
|
77
|
+
//# sourceMappingURL=task-graph-creator.js.map
|
|
@@ -11,20 +11,28 @@ class EndOfRunMessage {
|
|
|
11
11
|
printCacheHitsMessage() {
|
|
12
12
|
if (environment_1.AGENT_RUNNING_IN_DISTRIBUTED_EXECUTION)
|
|
13
13
|
return;
|
|
14
|
+
if (!this.runContext.runUrl) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
const anyErrors = !!this.taskExecutions.find((te) => te.status !== 0);
|
|
18
|
+
const anyCacheMisses = !!this.taskExecutions.find((te) => te.cacheStatus === 'cache-miss');
|
|
14
19
|
const hits = this.taskExecutions
|
|
15
20
|
.filter((t) => this.runContext.statuses[t.hash] === 'remote-cache-hit')
|
|
16
21
|
.map((t) => t.projectName);
|
|
17
|
-
if (hits.length === 0 && !this.runContext.runUrl) {
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
const tasks = hits.length === 1 ? hits[0] : `${hits.length} tasks`;
|
|
21
22
|
const message = [];
|
|
22
|
-
if (
|
|
23
|
-
message.push(`
|
|
23
|
+
if (anyErrors) {
|
|
24
|
+
message.push(`See searchable error logs at ${this.runContext.runUrl}`);
|
|
25
|
+
}
|
|
26
|
+
else if (anyCacheMisses) {
|
|
27
|
+
message.push(`See logs and investigate cache misses at ${this.runContext.runUrl}`);
|
|
28
|
+
}
|
|
29
|
+
else if (hits.length > 0) {
|
|
30
|
+
const tasks = hits.length === 1 ? hits[0] : `${hits.length} tasks`;
|
|
31
|
+
message.push(`Nx Cloud made it possible to reuse ${tasks}: ${this.runContext.runUrl}`);
|
|
24
32
|
}
|
|
25
33
|
else {
|
|
26
34
|
if (this.runContext.runUrl) {
|
|
27
|
-
message.push(`See
|
|
35
|
+
message.push(`See logs and run details at ${this.runContext.runUrl}`);
|
|
28
36
|
}
|
|
29
37
|
}
|
|
30
38
|
if (message.length > 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"end-of-run-message.js","sourceRoot":"","sources":["../../../../../../../libs/nx-packages/nx-cloud/lib/core/terminal-output/end-of-run-message.ts"],"names":[],"mappings":";;;AAEA,6DAAqF;AACrF,iEAA6D;AAE7D,MAAa,eAAe;IAC1B,YACmB,UAAsB,EACtB,cAA+B;QAD/B,eAAU,GAAV,UAAU,CAAY;QACtB,mBAAc,GAAd,cAAc,CAAiB;IAC/C,CAAC;IAEJ,qBAAqB;QACnB,IAAI,oDAAsC;YAAE,OAAO;QAEnD,MAAM,IAAI,GAAG,IAAI,CAAC,cAAc;aAC7B,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,kBAAkB,CAAC;aACtE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;QAE7B,
|
|
1
|
+
{"version":3,"file":"end-of-run-message.js","sourceRoot":"","sources":["../../../../../../../libs/nx-packages/nx-cloud/lib/core/terminal-output/end-of-run-message.ts"],"names":[],"mappings":";;;AAEA,6DAAqF;AACrF,iEAA6D;AAE7D,MAAa,eAAe;IAC1B,YACmB,UAAsB,EACtB,cAA+B;QAD/B,eAAU,GAAV,UAAU,CAAY;QACtB,mBAAc,GAAd,cAAc,CAAiB;IAC/C,CAAC;IAEJ,qBAAqB;QACnB,IAAI,oDAAsC;YAAE,OAAO;QAEnD,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;YAC3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AAU,CAAC,MAAM,EAAE,CAAC,CAAC;aACvE;SACF;QACD,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;YACtB,IAAA,4BAAY,EAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;SACjC;IACH,CAAC;CACF;AA3CD,0CA2CC"}
|
|
@@ -45,6 +45,9 @@ try {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
catch (e) {
|
|
48
|
+
if (process.env.NX_VERBOSE_LOGGING === 'true') {
|
|
49
|
+
console.log(e);
|
|
50
|
+
}
|
|
48
51
|
console.error('NX CLOUD ERROR');
|
|
49
52
|
console.error('---------------------------------------');
|
|
50
53
|
console.error('This version of Nx Cloud is incompatible with the @nrwl/* packages in your workspace.');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nx-imports.js","sourceRoot":"","sources":["../../../../../../libs/nx-packages/nx-cloud/lib/utilities/nx-imports.ts"],"names":[],"mappings":";AAAA,IAAI;IACF,IAAI;QACF,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;QAClD,IAAI,aAAa,CAAC;QAClB,IAAI;YACF,aAAa,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,aAAa,CAAC;SAChE;QAAC,OAAO,EAAE,EAAE;YACX,aAAa,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC,aAAa,CAAC;SACtE;QACD,MAAM,EACJ,oBAAoB,EACpB,UAAU,GACX,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;QACzC,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;QACvD,MAAM,WAAW,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC,OAAO,CAAC;QAChE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAAC;QAEzE,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAA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AC,gBAAgB,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;IACzD,OAAO,CAAC,KAAK,CACX,uFAAuF,CACxF,CAAC;IACF,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAClB,OAAO,CAAC,KAAK,CACX,qGAAqG,CACtG,CAAC;IACF,OAAO,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;IACzD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;CACjB"}
|
|
1
|
+
{"version":3,"file":"nx-imports.js","sourceRoot":"","sources":["../../../../../../libs/nx-packages/nx-cloud/lib/utilities/nx-imports.ts"],"names":[],"mappings":";AAAA,IAAI;IACF,IAAI;QACF,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;QAClD,IAAI,aAAa,CAAC;QAClB,IAAI;YACF,aAAa,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,aAAa,CAAC;SAChE;QAAC,OAAO,EAAE,EAAE;YACX,aAAa,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC,aAAa,CAAC;SACtE;QACD,MAAM,EACJ,oBAAoB,EACpB,UAAU,GACX,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;QACzC,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;QACvD,MAAM,WAAW,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC,OAAO,CAAC;QAChE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAAC;QAEzE,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;QACpC,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;QACxB,OAAO,CAAC,aAAa,GAAG,aAAa,CAAC;QACtC,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC;QAClC,OAAO,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QACh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CAAC,CAAC;IACzD,OAAO,CAAC,KAAK,CACX,uFAAuF,CACxF,CAAC;IACF,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAClB,OAAO,CAAC,KAAK,CACX,qGAAqG,CACtG,CAAC;IACF,OAAO,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;IACzD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;CACjB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/nx-cloud",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.1-beta.1",
|
|
4
4
|
"description": "Nx Cloud plugin for Nx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Monorepo",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"nx-cloud": "./bin/nx-cloud.js"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"axios": "^0.21.
|
|
23
|
+
"axios": "^0.21.2",
|
|
24
24
|
"dotenv": "~10.0.0",
|
|
25
25
|
"node-machine-id": "^1.1.12",
|
|
26
26
|
"tar": "6.1.11",
|
package/project.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"jestConfig": "libs/nx-packages/nx-cloud/jest.config.ts",
|
|
11
11
|
"passWithNoTests": true
|
|
12
12
|
},
|
|
13
|
-
"outputs": ["coverage/libs/nx-packages/nx-cloud"]
|
|
13
|
+
"outputs": ["{workspaceRoot}/coverage/libs/nx-packages/nx-cloud"]
|
|
14
14
|
},
|
|
15
15
|
"build": {
|
|
16
16
|
"executor": "@nrwl/js:tsc",
|