@nrwl/nx-cloud 14.0.1-beta.3 → 14.0.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 -65
- package/lib/core/runners/cloud-enabled/cloud-enabled-life-cycle.js +1 -138
- package/lib/core/runners/cloud-enabled/cloud-enabled.runner.d.ts +1 -1
- package/lib/core/runners/cloud-enabled/cloud-enabled.runner.js +1 -170
- package/lib/core/runners/cloud-enabled/cloud-enabled.runner.js.map +1 -1
- package/lib/core/runners/cloud-enabled/cloud-remote-cache.js +1 -113
- package/lib/core/runners/cloud-enabled/cloud-run.api.js +1 -158
- package/lib/core/runners/distributed-agent/distributed-agent.api.js +1 -79
- package/lib/core/runners/distributed-agent/distributed-agent.impl.js +1 -239
- package/lib/core/runners/distributed-execution/distributed-execution.api.js +1 -130
- package/lib/core/runners/distributed-execution/distributed-execution.runner.js +1 -306
- package/lib/generators/init/init.js +5 -12
- package/lib/generators/init/init.js.map +1 -1
- package/lib/nx-cloud-tasks-runner.js +1 -1
- package/lib/nx-cloud-tasks-runner.js.map +1 -1
- package/package.json +3 -2
|
@@ -1,130 +1 @@
|
|
|
1
|
-
|
|
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.createStartRequest = exports.DistributedExecutionApi = void 0;
|
|
13
|
-
const axios_1 = require("../../../utilities/axios");
|
|
14
|
-
const environment_1 = require("../../../utilities/environment");
|
|
15
|
-
const metric_logger_1 = require("../../../utilities/metric-logger");
|
|
16
|
-
const { output, unparse } = require('../../../utilities/nx-imports');
|
|
17
|
-
class DistributedExecutionApi {
|
|
18
|
-
constructor(options) {
|
|
19
|
-
this.apiAxiosInstance = (0, axios_1.createApiAxiosInstance)(options);
|
|
20
|
-
}
|
|
21
|
-
start(params) {
|
|
22
|
-
var _a;
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const recorder = (0, metric_logger_1.createMetricRecorder)('dteStart');
|
|
25
|
-
let resp;
|
|
26
|
-
try {
|
|
27
|
-
resp = yield (0, axios_1.axiosMultipleTries)(() => this.apiAxiosInstance.post('/nx-cloud/executions/start', params));
|
|
28
|
-
recorder.recordMetric((0, metric_logger_1.mapRespToPerfEntry)(resp));
|
|
29
|
-
}
|
|
30
|
-
catch (e) {
|
|
31
|
-
recorder.recordMetric(((_a = e === null || e === void 0 ? void 0 : e.axiosException) === null || _a === void 0 ? void 0 : _a.response)
|
|
32
|
-
? (0, metric_logger_1.mapRespToPerfEntry)(e.axiosException.response)
|
|
33
|
-
: metric_logger_1.RUNNER_FAILURE_PERF_ENTRY);
|
|
34
|
-
throw e;
|
|
35
|
-
}
|
|
36
|
-
if (!resp.data.enabled) {
|
|
37
|
-
throw new Error(`Workspace is disabled. Cannot perform distributed task executions.`);
|
|
38
|
-
}
|
|
39
|
-
if (resp.data.error) {
|
|
40
|
-
throw new Error(resp.data.error);
|
|
41
|
-
}
|
|
42
|
-
return resp.data.id;
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
status(id) {
|
|
46
|
-
var _a;
|
|
47
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
const recorder = (0, metric_logger_1.createMetricRecorder)('dteStatus');
|
|
49
|
-
try {
|
|
50
|
-
const resp = yield (0, axios_1.axiosMultipleTries)(() => this.apiAxiosInstance.post('/nx-cloud/executions/status', {
|
|
51
|
-
id,
|
|
52
|
-
}));
|
|
53
|
-
recorder.recordMetric((0, metric_logger_1.mapRespToPerfEntry)(resp));
|
|
54
|
-
return resp.data;
|
|
55
|
-
}
|
|
56
|
-
catch (e) {
|
|
57
|
-
recorder.recordMetric(((_a = e === null || e === void 0 ? void 0 : e.axiosException) === null || _a === void 0 ? void 0 : _a.response)
|
|
58
|
-
? (0, metric_logger_1.mapRespToPerfEntry)(e.axiosException.response)
|
|
59
|
-
: metric_logger_1.RUNNER_FAILURE_PERF_ENTRY);
|
|
60
|
-
output.error({
|
|
61
|
-
title: e.message,
|
|
62
|
-
});
|
|
63
|
-
process.exit(1);
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
completeRunGroupWithError(runGroup, error) {
|
|
68
|
-
var _a;
|
|
69
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
-
const recorder = (0, metric_logger_1.createMetricRecorder)('completeRunGroup');
|
|
71
|
-
try {
|
|
72
|
-
const resp = yield (0, axios_1.axiosMultipleTries)(() => this.apiAxiosInstance.post('/nx-cloud/executions/complete-run-group', {
|
|
73
|
-
runGroup: runGroup,
|
|
74
|
-
criticalErrorMessage: error,
|
|
75
|
-
}), 3);
|
|
76
|
-
recorder.recordMetric((0, metric_logger_1.mapRespToPerfEntry)(resp));
|
|
77
|
-
}
|
|
78
|
-
catch (e) {
|
|
79
|
-
recorder.recordMetric(((_a = e === null || e === void 0 ? void 0 : e.axiosException) === null || _a === void 0 ? void 0 : _a.response)
|
|
80
|
-
? (0, metric_logger_1.mapRespToPerfEntry)(e.axiosException.response)
|
|
81
|
-
: metric_logger_1.RUNNER_FAILURE_PERF_ENTRY);
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
exports.DistributedExecutionApi = DistributedExecutionApi;
|
|
87
|
-
function createStartRequest(runGroup, task, options) {
|
|
88
|
-
const tasksToExecute = task.map((arr) => {
|
|
89
|
-
return arr.map((t) => {
|
|
90
|
-
return {
|
|
91
|
-
taskId: t.id,
|
|
92
|
-
hash: t.hash,
|
|
93
|
-
projectName: t.target.project,
|
|
94
|
-
target: t.target.target,
|
|
95
|
-
configuration: t.target.configuration || null,
|
|
96
|
-
params: unparse(t.overrides).join(' '),
|
|
97
|
-
};
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
const request = {
|
|
101
|
-
command: (0, environment_1.parseCommand)(),
|
|
102
|
-
branch: (0, environment_1.getBranch)(),
|
|
103
|
-
runGroup,
|
|
104
|
-
tasks: tasksToExecute,
|
|
105
|
-
maxParallel: calculateMaxParallel(options),
|
|
106
|
-
};
|
|
107
|
-
if (environment_1.NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT) {
|
|
108
|
-
request.agentCount = environment_1.NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT;
|
|
109
|
-
}
|
|
110
|
-
if (!environment_1.NX_CLOUD_DISTRIBUTED_EXECUTION_STOP_AGENTS_ON_FAILURE) {
|
|
111
|
-
request.stopAgentsOnFailure = false;
|
|
112
|
-
}
|
|
113
|
-
return request;
|
|
114
|
-
}
|
|
115
|
-
exports.createStartRequest = createStartRequest;
|
|
116
|
-
function calculateMaxParallel(options) {
|
|
117
|
-
if (options.parallel === 'false' || options.parallel === false) {
|
|
118
|
-
return 1;
|
|
119
|
-
}
|
|
120
|
-
else if (options.parallel === 'true' || options.parallel === true) {
|
|
121
|
-
return Number(options.maxParallel || 3);
|
|
122
|
-
}
|
|
123
|
-
else if (options.parallel === undefined) {
|
|
124
|
-
return options.maxParallel ? Number(options.maxParallel) : 3;
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
return Number(options.parallel) || 3;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
//# sourceMappingURL=distributed-execution.api.js.map
|
|
1
|
+
const a6_0x1bef=['map','overrides','maxParallel','NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT','__esModule','createApiAxiosInstance','status','parallel','dteStatus','axiosMultipleTries','axiosException','stopAgentsOnFailure','data','parseCommand','getBranch','mapRespToPerfEntry','message','Workspace\x20is\x20disabled.\x20Cannot\x20perform\x20distributed\x20task\x20executions.','createMetricRecorder','../../../utilities/nx-imports','../../../utilities/metric-logger','../../../utilities/axios','completeRunGroupWithError','DistributedExecutionApi','target','error','done','next','RUNNER_FAILURE_PERF_ENTRY','post','defineProperty','apiAxiosInstance','/nx-cloud/executions/status','exit','enabled','then','throw','response','createStartRequest','recordMetric','agentCount','start','hash','false','__awaiter'];(function(_0x48dd70,_0x1bef01){const _0xd357e6=function(_0xe9515c){while(--_0xe9515c){_0x48dd70['push'](_0x48dd70['shift']());}};_0xd357e6(++_0x1bef01);}(a6_0x1bef,0x196));const a6_0xd357=function(_0x48dd70,_0x1bef01){_0x48dd70=_0x48dd70-0x0;let _0xd357e6=a6_0x1bef[_0x48dd70];return _0xd357e6;};'use strict';var __awaiter=this&&this[a6_0xd357('0x2b')]||function(_0x55befd,_0xc5c994,_0x24c27a,_0x205bd2){function _0x3ebd3b(_0x367636){return _0x367636 instanceof _0x24c27a?_0x367636:new _0x24c27a(function(_0x5a4458){_0x5a4458(_0x367636);});}return new(_0x24c27a||(_0x24c27a=Promise))(function(_0xf77756,_0x242946){function _0x3c3329(_0x13d0f7){try{_0x5818b9(_0x205bd2[a6_0xd357('0x1a')](_0x13d0f7));}catch(_0x414a6e){_0x242946(_0x414a6e);}}function _0x1bdd83(_0x3aafe2){try{_0x5818b9(_0x205bd2[a6_0xd357('0x23')](_0x3aafe2));}catch(_0x30f479){_0x242946(_0x30f479);}}function _0x5818b9(_0x15aec1){_0x15aec1[a6_0xd357('0x19')]?_0xf77756(_0x15aec1['value']):_0x3ebd3b(_0x15aec1['value'])[a6_0xd357('0x22')](_0x3c3329,_0x1bdd83);}_0x5818b9((_0x205bd2=_0x205bd2['apply'](_0x55befd,_0xc5c994||[]))[a6_0xd357('0x1a')]());});};Object[a6_0xd357('0x1d')](exports,a6_0xd357('0x3'),{'value':!![]});exports['createStartRequest']=exports[a6_0xd357('0x16')]=void 0x0;const axios_1=require(a6_0xd357('0x14'));const environment_1=require('../../../utilities/environment');const metric_logger_1=require(a6_0xd357('0x13'));const {output,unparse}=require(a6_0xd357('0x12'));class DistributedExecutionApi{constructor(_0x46d5b4){this[a6_0xd357('0x1e')]=(0x0,axios_1[a6_0xd357('0x4')])(_0x46d5b4);}[a6_0xd357('0x28')](_0x3fae5b){var _0x3f070f;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x56a243=(0x0,metric_logger_1[a6_0xd357('0x11')])('dteStart');let _0x2d4aa2;try{_0x2d4aa2=yield(0x0,axios_1[a6_0xd357('0x8')])(()=>this[a6_0xd357('0x1e')]['post']('/nx-cloud/executions/start',_0x3fae5b));_0x56a243[a6_0xd357('0x26')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x2d4aa2));}catch(_0x3c62d6){_0x56a243['recordMetric'](((_0x3f070f=_0x3c62d6===null||_0x3c62d6===void 0x0?void 0x0:_0x3c62d6[a6_0xd357('0x9')])===null||_0x3f070f===void 0x0?void 0x0:_0x3f070f[a6_0xd357('0x24')])?(0x0,metric_logger_1['mapRespToPerfEntry'])(_0x3c62d6[a6_0xd357('0x9')][a6_0xd357('0x24')]):metric_logger_1['RUNNER_FAILURE_PERF_ENTRY']);throw _0x3c62d6;}if(!_0x2d4aa2[a6_0xd357('0xb')][a6_0xd357('0x21')]){throw new Error(a6_0xd357('0x10'));}if(_0x2d4aa2[a6_0xd357('0xb')]['error']){throw new Error(_0x2d4aa2[a6_0xd357('0xb')][a6_0xd357('0x18')]);}return _0x2d4aa2['data']['id'];});}[a6_0xd357('0x5')](_0x36ce29){var _0xcce4c3;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x122a87=(0x0,metric_logger_1[a6_0xd357('0x11')])(a6_0xd357('0x7'));try{const _0x524316=yield(0x0,axios_1[a6_0xd357('0x8')])(()=>this[a6_0xd357('0x1e')][a6_0xd357('0x1c')](a6_0xd357('0x1f'),{'id':_0x36ce29}));_0x122a87['recordMetric']((0x0,metric_logger_1[a6_0xd357('0xe')])(_0x524316));return _0x524316[a6_0xd357('0xb')];}catch(_0x3fe07c){_0x122a87[a6_0xd357('0x26')](((_0xcce4c3=_0x3fe07c===null||_0x3fe07c===void 0x0?void 0x0:_0x3fe07c[a6_0xd357('0x9')])===null||_0xcce4c3===void 0x0?void 0x0:_0xcce4c3['response'])?(0x0,metric_logger_1[a6_0xd357('0xe')])(_0x3fe07c[a6_0xd357('0x9')]['response']):metric_logger_1[a6_0xd357('0x1b')]);output['error']({'title':_0x3fe07c[a6_0xd357('0xf')]});process[a6_0xd357('0x20')](0x1);}});}[a6_0xd357('0x15')](_0x2c82ab,_0x338d0e){var _0x2b7939;return __awaiter(this,void 0x0,void 0x0,function*(){const _0x572a6a=(0x0,metric_logger_1[a6_0xd357('0x11')])('completeRunGroup');try{const _0x1cfa2c=yield(0x0,axios_1[a6_0xd357('0x8')])(()=>this[a6_0xd357('0x1e')][a6_0xd357('0x1c')]('/nx-cloud/executions/complete-run-group',{'runGroup':_0x2c82ab,'criticalErrorMessage':_0x338d0e}),0x3);_0x572a6a[a6_0xd357('0x26')]((0x0,metric_logger_1['mapRespToPerfEntry'])(_0x1cfa2c));}catch(_0x2a066d){_0x572a6a['recordMetric'](((_0x2b7939=_0x2a066d===null||_0x2a066d===void 0x0?void 0x0:_0x2a066d['axiosException'])===null||_0x2b7939===void 0x0?void 0x0:_0x2b7939[a6_0xd357('0x24')])?(0x0,metric_logger_1[a6_0xd357('0xe')])(_0x2a066d[a6_0xd357('0x9')][a6_0xd357('0x24')]):metric_logger_1[a6_0xd357('0x1b')]);}});}}exports[a6_0xd357('0x16')]=DistributedExecutionApi;function createStartRequest(_0x2579f3,_0x34859b,_0x591a32){const _0x47803c=_0x34859b[a6_0xd357('0x2c')](_0x5d272e=>{return _0x5d272e[a6_0xd357('0x2c')](_0x5e41a2=>{return{'taskId':_0x5e41a2['id'],'hash':_0x5e41a2[a6_0xd357('0x29')],'projectName':_0x5e41a2['target']['project'],'target':_0x5e41a2[a6_0xd357('0x17')][a6_0xd357('0x17')],'configuration':_0x5e41a2[a6_0xd357('0x17')]['configuration']||null,'params':unparse(_0x5e41a2[a6_0xd357('0x0')])['join']('\x20')};});});const _0x15fd86={'command':(0x0,environment_1[a6_0xd357('0xc')])(),'branch':(0x0,environment_1[a6_0xd357('0xd')])(),'runGroup':_0x2579f3,'tasks':_0x47803c,'maxParallel':calculateMaxParallel(_0x591a32)};if(environment_1[a6_0xd357('0x2')]){_0x15fd86[a6_0xd357('0x27')]=environment_1[a6_0xd357('0x2')];}if(!environment_1['NX_CLOUD_DISTRIBUTED_EXECUTION_STOP_AGENTS_ON_FAILURE']){_0x15fd86[a6_0xd357('0xa')]=![];}return _0x15fd86;}exports[a6_0xd357('0x25')]=createStartRequest;function calculateMaxParallel(_0x2ac45f){if(_0x2ac45f[a6_0xd357('0x6')]===a6_0xd357('0x2a')||_0x2ac45f[a6_0xd357('0x6')]===![]){return 0x1;}else if(_0x2ac45f['parallel']==='true'||_0x2ac45f[a6_0xd357('0x6')]===!![]){return Number(_0x2ac45f[a6_0xd357('0x1')]||0x3);}else if(_0x2ac45f['parallel']===undefined){return _0x2ac45f[a6_0xd357('0x1')]?Number(_0x2ac45f['maxParallel']):0x3;}else{return Number(_0x2ac45f[a6_0xd357('0x6')])||0x3;}}
|
|
@@ -1,306 +1 @@
|
|
|
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.TaskGraphCreator = exports.nxCloudDistributedTasksRunner = void 0;
|
|
13
|
-
const Observable_1 = require("rxjs/internal/Observable");
|
|
14
|
-
const stripJsonComments = require("strip-json-comments");
|
|
15
|
-
const fs_1 = require("fs");
|
|
16
|
-
const distributed_execution_api_1 = require("./distributed-execution.api");
|
|
17
|
-
const file_storage_1 = require("../../file-storage/file-storage");
|
|
18
|
-
const e2e_encryption_1 = require("../../file-storage/e2e-encryption");
|
|
19
|
-
const waiter_1 = require("../../../utilities/waiter");
|
|
20
|
-
const environment_1 = require("../../../utilities/environment");
|
|
21
|
-
const print_run_group_error_1 = require("../../error/print-run-group-error");
|
|
22
|
-
const create_no_new_messages_timeout_1 = require("../../../utilities/create-no-new-messages-timeout");
|
|
23
|
-
const metric_logger_1 = require("../../../utilities/metric-logger");
|
|
24
|
-
const { output, getDependencyConfigs, getOutputs, unparse, Cache, } = require('../../../utilities/nx-imports');
|
|
25
|
-
class NoopLifeCycle {
|
|
26
|
-
scheduleTask(task) { }
|
|
27
|
-
startTask(task) { }
|
|
28
|
-
endTask(task, code) { }
|
|
29
|
-
}
|
|
30
|
-
function runDistributedExecution(api, options, context, fileStorage, cache, runGroup, tasks) {
|
|
31
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
const nxjson = JSON.parse(stripJsonComments((0, fs_1.readFileSync)('nx.json').toString()));
|
|
33
|
-
const stages = new TaskOrderer(context.projectGraph, getDefaultDependencyConfigs(nxjson, options)).splitTasksIntoStages(tasks);
|
|
34
|
-
const id = yield api.start((0, distributed_execution_api_1.createStartRequest)(runGroup, stages, options));
|
|
35
|
-
return yield processTasks(api, fileStorage, cache, options, id, tasks, context);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
function processTasks(api, fileStorage, cache, options, executionId, tasks, context) {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
const processedTasks = {};
|
|
41
|
-
const failIfNumberOfCompletedTasksDoesNotChangeIn30Mins = (0, create_no_new_messages_timeout_1.createNoNewMessagesTimeout)();
|
|
42
|
-
const waiter = new waiter_1.Waiter();
|
|
43
|
-
while (true) {
|
|
44
|
-
if (environment_1.VERBOSE_LOGGING) {
|
|
45
|
-
output.note({
|
|
46
|
-
title: 'Waiting...',
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
yield waiter.wait();
|
|
50
|
-
const r = yield api.status(executionId);
|
|
51
|
-
if (environment_1.VERBOSE_LOGGING) {
|
|
52
|
-
output.note({
|
|
53
|
-
title: `Status update`,
|
|
54
|
-
bodyLines: [
|
|
55
|
-
`executionId: ${executionId}`,
|
|
56
|
-
`executionStatus: ${r.executionStatus}`,
|
|
57
|
-
`number of completed tasks: ${r.completedTasks.length}`,
|
|
58
|
-
`error: ${r.criticalErrorMessage}`,
|
|
59
|
-
],
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
if (r.criticalErrorMessage) {
|
|
63
|
-
output.error({
|
|
64
|
-
title: 'Distributed Execution Terminated',
|
|
65
|
-
bodyLines: ['Error:', r.criticalErrorMessage],
|
|
66
|
-
});
|
|
67
|
-
process.exit(1);
|
|
68
|
-
}
|
|
69
|
-
failIfNumberOfCompletedTasksDoesNotChangeIn30Mins(r.completedTasks.length);
|
|
70
|
-
for (const t of r.completedTasks) {
|
|
71
|
-
if (processedTasks[t.taskId])
|
|
72
|
-
continue;
|
|
73
|
-
yield processTask(fileStorage, cache, context, options, tasks, t);
|
|
74
|
-
waiter.reset();
|
|
75
|
-
processedTasks[t.taskId] = true;
|
|
76
|
-
}
|
|
77
|
-
if (r.executionStatus === 'COMPLETED') {
|
|
78
|
-
return { commandStatus: r.commandStatus, runUrl: r.runUrl };
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
function processTask(fileStorage, cache, context, options, tasks, completedTask) {
|
|
84
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
-
if (environment_1.VERBOSE_LOGGING) {
|
|
86
|
-
output.note({
|
|
87
|
-
title: `Processing task ${completedTask.taskId}`,
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
const matchingTask = tasks.find((tt) => completedTask.taskId === tt.id);
|
|
91
|
-
if (!matchingTask) {
|
|
92
|
-
throw new Error(`Found unknown task: ${completedTask.taskId}`);
|
|
93
|
-
}
|
|
94
|
-
if (environment_1.VERBOSE_LOGGING) {
|
|
95
|
-
output.note({
|
|
96
|
-
title: `Retrieving artifacts from ${completedTask.url}`,
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
yield fileStorage.retrieve(completedTask.hash, completedTask.url, options.cacheDirectory || './node_modules/.cache/nx');
|
|
100
|
-
const cachedResult = yield cache.get(Object.assign(Object.assign({}, matchingTask), { hash: completedTask.hash }));
|
|
101
|
-
const outputs = getOutputs(context.projectGraph.nodes, matchingTask);
|
|
102
|
-
if (environment_1.VERBOSE_LOGGING) {
|
|
103
|
-
output.note({
|
|
104
|
-
title: `Extracting artifacts`,
|
|
105
|
-
bodyLines: outputs,
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
yield cache.copyFilesFromCache(completedTask.hash, cachedResult, outputs);
|
|
109
|
-
output.logCommand(getCommand(matchingTask));
|
|
110
|
-
process.stdout.write(cachedResult.terminalOutput);
|
|
111
|
-
output.addVerticalSeparator();
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
function getCommand(task) {
|
|
115
|
-
const args = unparse(task.overrides || {});
|
|
116
|
-
const config = task.target.configuration
|
|
117
|
-
? `:${task.target.configuration}`
|
|
118
|
-
: '';
|
|
119
|
-
return [
|
|
120
|
-
'nx',
|
|
121
|
-
'run',
|
|
122
|
-
`${task.target.project}:${task.target.target}${config}`,
|
|
123
|
-
...args,
|
|
124
|
-
].join(' ');
|
|
125
|
-
}
|
|
126
|
-
const nxCloudDistributedTasksRunner = (tasks, options, context) => {
|
|
127
|
-
if (environment_1.VERBOSE_LOGGING) {
|
|
128
|
-
output.note({
|
|
129
|
-
title: 'Starting distributed command execution',
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
options.lifeCycle = new NoopLifeCycle();
|
|
133
|
-
const runGroup = (0, environment_1.getRunGroup)();
|
|
134
|
-
if (!runGroup) {
|
|
135
|
-
(0, print_run_group_error_1.printRunGroupError)();
|
|
136
|
-
return process.exit(1);
|
|
137
|
-
}
|
|
138
|
-
const encryption = new e2e_encryption_1.E2EEncryption(environment_1.ENCRYPTION_KEY || options.encryptionKey);
|
|
139
|
-
const fileStorage = new file_storage_1.FileStorage(encryption);
|
|
140
|
-
const cache = new Cache(options);
|
|
141
|
-
const api = new distributed_execution_api_1.DistributedExecutionApi(options);
|
|
142
|
-
runDistributedExecution(api, options, context, fileStorage, cache, runGroup, tasks)
|
|
143
|
-
.then((r) => __awaiter(void 0, void 0, void 0, function* () {
|
|
144
|
-
if (r.commandStatus === 0) {
|
|
145
|
-
output.success({
|
|
146
|
-
title: 'Successfully completed running the command.',
|
|
147
|
-
bodyLines: [`See run details at ${r.runUrl}`],
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
else {
|
|
151
|
-
output.error({
|
|
152
|
-
title: 'Command execution failed.',
|
|
153
|
-
bodyLines: [`See run details at ${r.runUrl}`],
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
yield (0, metric_logger_1.submitRunMetrics)(options);
|
|
157
|
-
process.exit(r.commandStatus);
|
|
158
|
-
}))
|
|
159
|
-
.catch((e) => {
|
|
160
|
-
output.error({
|
|
161
|
-
title: 'Unable to complete a run.',
|
|
162
|
-
bodyLines: [e.message],
|
|
163
|
-
});
|
|
164
|
-
if (e.axiosException) {
|
|
165
|
-
console.log(e.axiosException);
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
console.log(e);
|
|
169
|
-
}
|
|
170
|
-
api
|
|
171
|
-
.completeRunGroupWithError(runGroup, `Main job terminated with an error: "${e.message}"`)
|
|
172
|
-
.finally(() => process.exit(1));
|
|
173
|
-
});
|
|
174
|
-
return new Observable_1.Observable(() => { });
|
|
175
|
-
};
|
|
176
|
-
exports.nxCloudDistributedTasksRunner = nxCloudDistributedTasksRunner;
|
|
177
|
-
class TaskOrderer {
|
|
178
|
-
constructor(projectGraph, defaultTargetDependencies) {
|
|
179
|
-
this.projectGraph = projectGraph;
|
|
180
|
-
this.defaultTargetDependencies = defaultTargetDependencies;
|
|
181
|
-
}
|
|
182
|
-
splitTasksIntoStages(tasks) {
|
|
183
|
-
if (tasks.length === 0)
|
|
184
|
-
return [];
|
|
185
|
-
const stages = [];
|
|
186
|
-
const taskGraph = this.createTaskGraph(tasks);
|
|
187
|
-
const notStagedTaskIds = new Set(tasks.map((t) => t.id));
|
|
188
|
-
let stageIndex = 0;
|
|
189
|
-
// Loop through tasks and try to stage them. As tasks are staged, they are removed from the loop
|
|
190
|
-
while (notStagedTaskIds.size > 0) {
|
|
191
|
-
const currentStage = (stages[stageIndex] = []);
|
|
192
|
-
for (const taskId of notStagedTaskIds) {
|
|
193
|
-
let ready = true;
|
|
194
|
-
for (const dependency of taskGraph.dependencies[taskId]) {
|
|
195
|
-
if (notStagedTaskIds.has(dependency)) {
|
|
196
|
-
// dependency has not been staged yet, this task is not ready to be staged.
|
|
197
|
-
ready = false;
|
|
198
|
-
break;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
// Some dependency still has not been staged, skip it for now, it will be processed again
|
|
202
|
-
if (!ready) {
|
|
203
|
-
continue;
|
|
204
|
-
}
|
|
205
|
-
// All the dependencies have been staged, let's stage it.
|
|
206
|
-
const task = taskGraph.tasks[taskId];
|
|
207
|
-
currentStage.push(task);
|
|
208
|
-
}
|
|
209
|
-
// Remove the entire new stage of tasks from the list
|
|
210
|
-
for (const task of currentStage) {
|
|
211
|
-
notStagedTaskIds.delete(task.id);
|
|
212
|
-
}
|
|
213
|
-
stageIndex++;
|
|
214
|
-
}
|
|
215
|
-
return stages;
|
|
216
|
-
}
|
|
217
|
-
createTaskGraph(tasks) {
|
|
218
|
-
const t = new TaskGraphCreator(this.projectGraph, this.defaultTargetDependencies);
|
|
219
|
-
return t.createTaskGraph(tasks);
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
class TaskGraphCreator {
|
|
223
|
-
constructor(projectGraph, defaultTargetDependencies) {
|
|
224
|
-
this.projectGraph = projectGraph;
|
|
225
|
-
this.defaultTargetDependencies = defaultTargetDependencies;
|
|
226
|
-
}
|
|
227
|
-
createTaskGraph(tasks) {
|
|
228
|
-
const graph = {
|
|
229
|
-
roots: [],
|
|
230
|
-
tasks: {},
|
|
231
|
-
dependencies: {},
|
|
232
|
-
};
|
|
233
|
-
for (const task of tasks) {
|
|
234
|
-
this.addTaskToGraph(task, graph);
|
|
235
|
-
const dependencyConfigs = getDependencyConfigs(task.target, this.defaultTargetDependencies, this.projectGraph);
|
|
236
|
-
if (!dependencyConfigs) {
|
|
237
|
-
continue;
|
|
238
|
-
}
|
|
239
|
-
this.addTaskDependencies(task, dependencyConfigs, tasks, graph);
|
|
240
|
-
}
|
|
241
|
-
graph.roots = Object.keys(graph.dependencies).filter((k) => graph.dependencies[k].length === 0);
|
|
242
|
-
return graph;
|
|
243
|
-
}
|
|
244
|
-
addTaskDependencies(task, dependencyConfigs, tasks, graph) {
|
|
245
|
-
for (const dependencyConfig of dependencyConfigs) {
|
|
246
|
-
if (dependencyConfig.projects === 'self') {
|
|
247
|
-
for (const t of tasks) {
|
|
248
|
-
if (t.target.project === task.target.project &&
|
|
249
|
-
t.target.target === dependencyConfig.target) {
|
|
250
|
-
graph.dependencies[task.id].push(t.id);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
else if (dependencyConfig.projects === 'dependencies') {
|
|
255
|
-
const seen = new Set();
|
|
256
|
-
this.addDependencies(task.target.project, dependencyConfig.target, tasks, graph, task.id, seen);
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
addDependencies(project, target, tasks, graph, taskId, seen) {
|
|
261
|
-
seen.add(project);
|
|
262
|
-
const dependencies = this.projectGraph.dependencies[project];
|
|
263
|
-
if (dependencies) {
|
|
264
|
-
const projectDependencies = dependencies.map((dependency) => dependency.target);
|
|
265
|
-
for (const projectDependency of projectDependencies) {
|
|
266
|
-
if (seen.has(projectDependency)) {
|
|
267
|
-
continue;
|
|
268
|
-
}
|
|
269
|
-
const dependency = this.findTask({ project: projectDependency, target }, tasks);
|
|
270
|
-
if (dependency) {
|
|
271
|
-
if (graph.dependencies[taskId].indexOf(dependency.id) === -1) {
|
|
272
|
-
graph.dependencies[taskId].push(dependency.id);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
else {
|
|
276
|
-
this.addDependencies(projectDependency, target, tasks, graph, taskId, seen);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
findTask({ project, target }, tasks) {
|
|
282
|
-
return tasks.find((t) => t.target.project === project && t.target.target === target);
|
|
283
|
-
}
|
|
284
|
-
addTaskToGraph(task, graph) {
|
|
285
|
-
graph.tasks[task.id] = task;
|
|
286
|
-
graph.dependencies[task.id] = [];
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
exports.TaskGraphCreator = TaskGraphCreator;
|
|
290
|
-
function getDefaultDependencyConfigs(nxJson, runnerOptions) {
|
|
291
|
-
var _a, _b;
|
|
292
|
-
const defaults = (_a = nxJson.targetDependencies) !== null && _a !== void 0 ? _a : {};
|
|
293
|
-
const strictlyOrderedTargets = runnerOptions
|
|
294
|
-
? (_b = runnerOptions.strictlyOrderedTargets) !== null && _b !== void 0 ? _b : ['build']
|
|
295
|
-
: [];
|
|
296
|
-
// Strictly Ordered Targets depend on their dependencies
|
|
297
|
-
for (const target of strictlyOrderedTargets) {
|
|
298
|
-
defaults[target] = defaults[target] || [];
|
|
299
|
-
defaults[target].push({
|
|
300
|
-
target,
|
|
301
|
-
projects: 'dependencies',
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
return defaults;
|
|
305
|
-
}
|
|
306
|
-
//# sourceMappingURL=distributed-execution.runner.js.map
|
|
1
|
+
const a7_0x47d5=['find','Extracting\x20artifacts','push','submitRunMetrics','value','runUrl','projects','E2EEncryption','target','lifeCycle','note','Command\x20execution\x20failed.','targetDependencies','finally','logCommand','delete','run','Observable','createTaskGraph','build','hash','See\x20run\x20details\x20at\x20','Distributed\x20Execution\x20Terminated','toString','criticalErrorMessage','nx.json','parse','apply','Unable\x20to\x20complete\x20a\x20run.','filter','COMPLETED','addTaskToGraph','number\x20of\x20completed\x20tasks:\x20','../../../utilities/environment','done','defaultTargetDependencies','findTask','keys','add','status','cacheDirectory','FileStorage','VERBOSE_LOGGING','executionStatus:\x20','self','join','map','completedTasks','next','has','url','wait','project','stdout','__esModule','size','reset','Waiting...','../../../utilities/metric-logger','assign','error:\x20','DistributedExecutionApi','exit','strip-json-comments','../../../utilities/nx-imports','terminalOutput','tasks','get','Main\x20job\x20terminated\x20with\x20an\x20error:\x20\x22','nxCloudDistributedTasksRunner','startTask','../../file-storage/file-storage','Error:','log','scheduleTask','Starting\x20distributed\x20command\x20execution','addDependencies','printRunGroupError','throw','length','then','write','endTask','axiosException','dependencies','Waiter','executionStatus','addTaskDependencies','roots','getRunGroup','projectGraph','catch','Found\x20unknown\x20task:\x20','TaskGraphCreator','completeRunGroupWithError','commandStatus','createNoNewMessagesTimeout','nodes','splitTasksIntoStages','taskId','Retrieving\x20artifacts\x20from\x20','message','__awaiter','retrieve','../../file-storage/e2e-encryption','strictlyOrderedTargets','overrides','executionId:\x20','error'];(function(_0x2d86f6,_0x47d5e1){const _0x5a8806=function(_0x422f96){while(--_0x422f96){_0x2d86f6['push'](_0x2d86f6['shift']());}};_0x5a8806(++_0x47d5e1);}(a7_0x47d5,0x123));const a7_0x5a88=function(_0x2d86f6,_0x47d5e1){_0x2d86f6=_0x2d86f6-0x0;let _0x5a8806=a7_0x47d5[_0x2d86f6];return _0x5a8806;};'use strict';var __awaiter=this&&this[a7_0x5a88('0x1d')]||function(_0x5c916d,_0x27d60d,_0x5a2a1e,_0x420a35){function _0x3905be(_0x57c2bf){return _0x57c2bf instanceof _0x5a2a1e?_0x57c2bf:new _0x5a2a1e(function(_0x3fba6a){_0x3fba6a(_0x57c2bf);});}return new(_0x5a2a1e||(_0x5a2a1e=Promise))(function(_0x511078,_0x46d266){function _0x2e34c1(_0x38d531){try{_0xd57cac(_0x420a35['next'](_0x38d531));}catch(_0x36674b){_0x46d266(_0x36674b);}}function _0x2bc05e(_0x54fc6b){try{_0xd57cac(_0x420a35[a7_0x5a88('0x5')](_0x54fc6b));}catch(_0x3a09ac){_0x46d266(_0x3a09ac);}}function _0xd57cac(_0x1197c7){_0x1197c7[a7_0x5a88('0x46')]?_0x511078(_0x1197c7[a7_0x5a88('0x28')]):_0x3905be(_0x1197c7[a7_0x5a88('0x28')])[a7_0x5a88('0x7')](_0x2e34c1,_0x2bc05e);}_0xd57cac((_0x420a35=_0x420a35[a7_0x5a88('0x3f')](_0x5c916d,_0x27d60d||[]))[a7_0x5a88('0x54')]());});};Object['defineProperty'](exports,a7_0x5a88('0x5a'),{'value':!![]});exports[a7_0x5a88('0x14')]=exports['nxCloudDistributedTasksRunner']=void 0x0;const Observable_1=require('rxjs/internal/Observable');const stripJsonComments=require(a7_0x5a88('0x63'));const fs_1=require('fs');const distributed_execution_api_1=require('./distributed-execution.api');const file_storage_1=require(a7_0x5a88('0x6b'));const e2e_encryption_1=require(a7_0x5a88('0x1f'));const waiter_1=require('../../../utilities/waiter');const environment_1=require(a7_0x5a88('0x45'));const print_run_group_error_1=require('../../error/print-run-group-error');const create_no_new_messages_timeout_1=require('../../../utilities/create-no-new-messages-timeout');const metric_logger_1=require(a7_0x5a88('0x5e'));const {output,getDependencyConfigs,getOutputs,unparse,Cache}=require(a7_0x5a88('0x64'));class NoopLifeCycle{[a7_0x5a88('0x1')](_0xd43576){}[a7_0x5a88('0x6a')](_0x2b9cfe){}[a7_0x5a88('0x9')](_0x4cf4cc,_0x417559){}}function runDistributedExecution(_0xccfb68,_0x2b5656,_0x46a07e,_0xaa49df,_0x1c8be2,_0x56e484,_0xde7812){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4f9329=JSON[a7_0x5a88('0x3e')](stripJsonComments((0x0,fs_1['readFileSync'])(a7_0x5a88('0x3d'))[a7_0x5a88('0x3b')]()));const _0x38ff7f=new TaskOrderer(_0x46a07e[a7_0x5a88('0x11')],getDefaultDependencyConfigs(_0x4f9329,_0x2b5656))[a7_0x5a88('0x19')](_0xde7812);const _0x8e7e52=yield _0xccfb68['start']((0x0,distributed_execution_api_1['createStartRequest'])(_0x56e484,_0x38ff7f,_0x2b5656));return yield processTasks(_0xccfb68,_0xaa49df,_0x1c8be2,_0x2b5656,_0x8e7e52,_0xde7812,_0x46a07e);});}function processTasks(_0x93dc2b,_0x3c0e10,_0xd3190b,_0x1c19b0,_0x598e90,_0x21046f,_0x2dcb5e){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1d16f0={};const _0x271f10=(0x0,create_no_new_messages_timeout_1[a7_0x5a88('0x17')])();const _0x36a767=new waiter_1[(a7_0x5a88('0xc'))]();while(!![]){if(environment_1[a7_0x5a88('0x4e')]){output[a7_0x5a88('0x2e')]({'title':a7_0x5a88('0x5d')});}yield _0x36a767[a7_0x5a88('0x57')]();const _0x3d9233=yield _0x93dc2b[a7_0x5a88('0x4b')](_0x598e90);if(environment_1[a7_0x5a88('0x4e')]){output[a7_0x5a88('0x2e')]({'title':'Status\x20update','bodyLines':[a7_0x5a88('0x22')+_0x598e90,a7_0x5a88('0x4f')+_0x3d9233[a7_0x5a88('0xd')],a7_0x5a88('0x44')+_0x3d9233[a7_0x5a88('0x53')][a7_0x5a88('0x6')],a7_0x5a88('0x60')+_0x3d9233[a7_0x5a88('0x3c')]]});}if(_0x3d9233[a7_0x5a88('0x3c')]){output[a7_0x5a88('0x23')]({'title':a7_0x5a88('0x3a'),'bodyLines':[a7_0x5a88('0x6c'),_0x3d9233[a7_0x5a88('0x3c')]]});process[a7_0x5a88('0x62')](0x1);}_0x271f10(_0x3d9233[a7_0x5a88('0x53')][a7_0x5a88('0x6')]);for(const _0x2aa6b9 of _0x3d9233[a7_0x5a88('0x53')]){if(_0x1d16f0[_0x2aa6b9[a7_0x5a88('0x1a')]])continue;yield processTask(_0x3c0e10,_0xd3190b,_0x2dcb5e,_0x1c19b0,_0x21046f,_0x2aa6b9);_0x36a767[a7_0x5a88('0x5c')]();_0x1d16f0[_0x2aa6b9['taskId']]=!![];}if(_0x3d9233['executionStatus']===a7_0x5a88('0x42')){return{'commandStatus':_0x3d9233[a7_0x5a88('0x16')],'runUrl':_0x3d9233[a7_0x5a88('0x29')]};}}});}function processTask(_0x18f9d5,_0x204247,_0x2be043,_0x494d6a,_0x15ba69,_0x1832fa){return __awaiter(this,void 0x0,void 0x0,function*(){if(environment_1[a7_0x5a88('0x4e')]){output[a7_0x5a88('0x2e')]({'title':'Processing\x20task\x20'+_0x1832fa[a7_0x5a88('0x1a')]});}const _0x1d8206=_0x15ba69[a7_0x5a88('0x24')](_0x3b5809=>_0x1832fa[a7_0x5a88('0x1a')]===_0x3b5809['id']);if(!_0x1d8206){throw new Error(a7_0x5a88('0x13')+_0x1832fa[a7_0x5a88('0x1a')]);}if(environment_1['VERBOSE_LOGGING']){output[a7_0x5a88('0x2e')]({'title':a7_0x5a88('0x1b')+_0x1832fa['url']});}yield _0x18f9d5[a7_0x5a88('0x1e')](_0x1832fa[a7_0x5a88('0x38')],_0x1832fa[a7_0x5a88('0x56')],_0x494d6a[a7_0x5a88('0x4c')]||'./node_modules/.cache/nx');const _0x5d0753=yield _0x204247[a7_0x5a88('0x67')](Object['assign'](Object[a7_0x5a88('0x5f')]({},_0x1d8206),{'hash':_0x1832fa[a7_0x5a88('0x38')]}));const _0x5cd35c=getOutputs(_0x2be043[a7_0x5a88('0x11')][a7_0x5a88('0x18')],_0x1d8206);if(environment_1['VERBOSE_LOGGING']){output[a7_0x5a88('0x2e')]({'title':a7_0x5a88('0x25'),'bodyLines':_0x5cd35c});}yield _0x204247['copyFilesFromCache'](_0x1832fa['hash'],_0x5d0753,_0x5cd35c);output[a7_0x5a88('0x32')](getCommand(_0x1d8206));process[a7_0x5a88('0x59')][a7_0x5a88('0x8')](_0x5d0753[a7_0x5a88('0x65')]);output['addVerticalSeparator']();});}function getCommand(_0x599674){const _0x1e0627=unparse(_0x599674[a7_0x5a88('0x21')]||{});const _0x15ed6e=_0x599674[a7_0x5a88('0x2c')]['configuration']?':'+_0x599674[a7_0x5a88('0x2c')]['configuration']:'';return['nx',a7_0x5a88('0x34'),_0x599674[a7_0x5a88('0x2c')][a7_0x5a88('0x58')]+':'+_0x599674['target'][a7_0x5a88('0x2c')]+_0x15ed6e,..._0x1e0627][a7_0x5a88('0x51')]('\x20');}const nxCloudDistributedTasksRunner=(_0x5d7580,_0x567603,_0xe3432d)=>{if(environment_1[a7_0x5a88('0x4e')]){output[a7_0x5a88('0x2e')]({'title':a7_0x5a88('0x2')});}_0x567603[a7_0x5a88('0x2d')]=new NoopLifeCycle();const _0x2796dc=(0x0,environment_1[a7_0x5a88('0x10')])();if(!_0x2796dc){(0x0,print_run_group_error_1[a7_0x5a88('0x4')])();return process[a7_0x5a88('0x62')](0x1);}const _0x37a95b=new e2e_encryption_1[(a7_0x5a88('0x2b'))](environment_1['ENCRYPTION_KEY']||_0x567603['encryptionKey']);const _0x44b761=new file_storage_1[(a7_0x5a88('0x4d'))](_0x37a95b);const _0xef1e21=new Cache(_0x567603);const _0x544ea4=new distributed_execution_api_1[(a7_0x5a88('0x61'))](_0x567603);runDistributedExecution(_0x544ea4,_0x567603,_0xe3432d,_0x44b761,_0xef1e21,_0x2796dc,_0x5d7580)[a7_0x5a88('0x7')](_0x520f7d=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){if(_0x520f7d[a7_0x5a88('0x16')]===0x0){output['success']({'title':'Successfully\x20completed\x20running\x20the\x20command.','bodyLines':[a7_0x5a88('0x39')+_0x520f7d[a7_0x5a88('0x29')]]});}else{output[a7_0x5a88('0x23')]({'title':a7_0x5a88('0x2f'),'bodyLines':['See\x20run\x20details\x20at\x20'+_0x520f7d[a7_0x5a88('0x29')]]});}yield(0x0,metric_logger_1[a7_0x5a88('0x27')])(_0x567603);process[a7_0x5a88('0x62')](_0x520f7d['commandStatus']);}))[a7_0x5a88('0x12')](_0x248db5=>{output['error']({'title':a7_0x5a88('0x40'),'bodyLines':[_0x248db5['message']]});if(_0x248db5[a7_0x5a88('0xa')]){console[a7_0x5a88('0x0')](_0x248db5[a7_0x5a88('0xa')]);}else{console[a7_0x5a88('0x0')](_0x248db5);}_0x544ea4[a7_0x5a88('0x15')](_0x2796dc,a7_0x5a88('0x68')+_0x248db5[a7_0x5a88('0x1c')]+'\x22')[a7_0x5a88('0x31')](()=>process[a7_0x5a88('0x62')](0x1));});return new Observable_1[(a7_0x5a88('0x35'))](()=>{});};exports[a7_0x5a88('0x69')]=nxCloudDistributedTasksRunner;class TaskOrderer{constructor(_0x46aee0,_0x2e0f2b){this['projectGraph']=_0x46aee0;this[a7_0x5a88('0x47')]=_0x2e0f2b;}[a7_0x5a88('0x19')](_0x53f746){if(_0x53f746[a7_0x5a88('0x6')]===0x0)return[];const _0x495568=[];const _0x4f13f6=this['createTaskGraph'](_0x53f746);const _0x36a402=new Set(_0x53f746[a7_0x5a88('0x52')](_0x568709=>_0x568709['id']));let _0x829d07=0x0;while(_0x36a402[a7_0x5a88('0x5b')]>0x0){const _0x360991=_0x495568[_0x829d07]=[];for(const _0x53ec66 of _0x36a402){let _0xe6e2a8=!![];for(const _0x500903 of _0x4f13f6[a7_0x5a88('0xb')][_0x53ec66]){if(_0x36a402[a7_0x5a88('0x55')](_0x500903)){_0xe6e2a8=![];break;}}if(!_0xe6e2a8){continue;}const _0x2aef5e=_0x4f13f6[a7_0x5a88('0x66')][_0x53ec66];_0x360991['push'](_0x2aef5e);}for(const _0xd04945 of _0x360991){_0x36a402[a7_0x5a88('0x33')](_0xd04945['id']);}_0x829d07++;}return _0x495568;}[a7_0x5a88('0x36')](_0x59d722){const _0x774718=new TaskGraphCreator(this[a7_0x5a88('0x11')],this['defaultTargetDependencies']);return _0x774718[a7_0x5a88('0x36')](_0x59d722);}}class TaskGraphCreator{constructor(_0x243538,_0x433ce9){this[a7_0x5a88('0x11')]=_0x243538;this[a7_0x5a88('0x47')]=_0x433ce9;}[a7_0x5a88('0x36')](_0x3aa1f4){const _0x7982f5={'roots':[],'tasks':{},'dependencies':{}};for(const _0x296d1a of _0x3aa1f4){this[a7_0x5a88('0x43')](_0x296d1a,_0x7982f5);const _0x1d0dcd=getDependencyConfigs(_0x296d1a[a7_0x5a88('0x2c')],this[a7_0x5a88('0x47')],this[a7_0x5a88('0x11')]);if(!_0x1d0dcd){continue;}this[a7_0x5a88('0xe')](_0x296d1a,_0x1d0dcd,_0x3aa1f4,_0x7982f5);}_0x7982f5[a7_0x5a88('0xf')]=Object[a7_0x5a88('0x49')](_0x7982f5['dependencies'])[a7_0x5a88('0x41')](_0x10db80=>_0x7982f5[a7_0x5a88('0xb')][_0x10db80][a7_0x5a88('0x6')]===0x0);return _0x7982f5;}[a7_0x5a88('0xe')](_0x3688b3,_0x28f564,_0x46986e,_0x556883){for(const _0xae3d98 of _0x28f564){if(_0xae3d98[a7_0x5a88('0x2a')]===a7_0x5a88('0x50')){for(const _0x577d6f of _0x46986e){if(_0x577d6f[a7_0x5a88('0x2c')][a7_0x5a88('0x58')]===_0x3688b3[a7_0x5a88('0x2c')][a7_0x5a88('0x58')]&&_0x577d6f[a7_0x5a88('0x2c')]['target']===_0xae3d98[a7_0x5a88('0x2c')]){_0x556883[a7_0x5a88('0xb')][_0x3688b3['id']][a7_0x5a88('0x26')](_0x577d6f['id']);}}}else if(_0xae3d98['projects']===a7_0x5a88('0xb')){const _0x4647cb=new Set();this['addDependencies'](_0x3688b3[a7_0x5a88('0x2c')][a7_0x5a88('0x58')],_0xae3d98[a7_0x5a88('0x2c')],_0x46986e,_0x556883,_0x3688b3['id'],_0x4647cb);}}}[a7_0x5a88('0x3')](_0x397cdd,_0x33854d,_0x28ccb4,_0x5e49d7,_0x1df18a,_0x117812){_0x117812[a7_0x5a88('0x4a')](_0x397cdd);const _0x30f59c=this[a7_0x5a88('0x11')][a7_0x5a88('0xb')][_0x397cdd];if(_0x30f59c){const _0x21ead3=_0x30f59c[a7_0x5a88('0x52')](_0x5a4a92=>_0x5a4a92[a7_0x5a88('0x2c')]);for(const _0x1bcc35 of _0x21ead3){if(_0x117812[a7_0x5a88('0x55')](_0x1bcc35)){continue;}const _0x1fb246=this[a7_0x5a88('0x48')]({'project':_0x1bcc35,'target':_0x33854d},_0x28ccb4);if(_0x1fb246){if(_0x5e49d7[a7_0x5a88('0xb')][_0x1df18a]['indexOf'](_0x1fb246['id'])===-0x1){_0x5e49d7[a7_0x5a88('0xb')][_0x1df18a][a7_0x5a88('0x26')](_0x1fb246['id']);}}else{this[a7_0x5a88('0x3')](_0x1bcc35,_0x33854d,_0x28ccb4,_0x5e49d7,_0x1df18a,_0x117812);}}}}['findTask']({project,target},_0x10e950){return _0x10e950[a7_0x5a88('0x24')](_0x3bd87e=>_0x3bd87e[a7_0x5a88('0x2c')][a7_0x5a88('0x58')]===project&&_0x3bd87e['target'][a7_0x5a88('0x2c')]===target);}[a7_0x5a88('0x43')](_0x292df4,_0x451034){_0x451034[a7_0x5a88('0x66')][_0x292df4['id']]=_0x292df4;_0x451034[a7_0x5a88('0xb')][_0x292df4['id']]=[];}}exports[a7_0x5a88('0x14')]=TaskGraphCreator;function getDefaultDependencyConfigs(_0x3a4c68,_0x42f4bd){var _0x38b9bc,_0x1222f8;const _0x2f5334=(_0x38b9bc=_0x3a4c68[a7_0x5a88('0x30')])!==null&&_0x38b9bc!==void 0x0?_0x38b9bc:{};const _0xd631f7=_0x42f4bd?(_0x1222f8=_0x42f4bd[a7_0x5a88('0x20')])!==null&&_0x1222f8!==void 0x0?_0x1222f8:[a7_0x5a88('0x37')]:[];for(const _0x47aed8 of _0xd631f7){_0x2f5334[_0x47aed8]=_0x2f5334[_0x47aed8]||[];_0x2f5334[_0x47aed8][a7_0x5a88('0x26')]({'target':_0x47aed8,'projects':'dependencies'});}return _0x2f5334;}
|
|
@@ -30,18 +30,11 @@ function updateNxJson(json, token) {
|
|
|
30
30
|
},
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
|
|
35
|
-
const jsonUtils = require('nx/src/utils/json');
|
|
36
|
-
const json = jsonUtils.parseJson(host.read('nx.json', 'utf-8'));
|
|
37
|
-
updateNxJson(json, token);
|
|
38
|
-
host.write('nx.json', jsonUtils.serializeJson(json));
|
|
39
|
-
}
|
|
40
|
-
catch (ee) {
|
|
41
|
-
const json = JSON.parse(host.read('nx.json', 'utf-8'));
|
|
33
|
+
function updateNxJsonUsingDevkit(host, token) {
|
|
34
|
+
require('@nrwl/devkit').updateJson(host, 'nx.json', (json) => {
|
|
42
35
|
updateNxJson(json, token);
|
|
43
|
-
|
|
44
|
-
}
|
|
36
|
+
return json;
|
|
37
|
+
});
|
|
45
38
|
}
|
|
46
39
|
function updateNxJsonUsingNrwlWorkspace(token) {
|
|
47
40
|
return require('@nrwl/workspace').updateJsonInTree('nx.json', (json) => {
|
|
@@ -102,7 +95,7 @@ function printMessageTaskExecutor(url) {
|
|
|
102
95
|
function generator(host) {
|
|
103
96
|
return __awaiter(this, void 0, void 0, function* () {
|
|
104
97
|
const r = yield createNxCloudWorkspace(readNpmScope());
|
|
105
|
-
|
|
98
|
+
updateNxJsonUsingDevkit(host, r.token);
|
|
106
99
|
return () => printMessage(r.url);
|
|
107
100
|
});
|
|
108
101
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../../libs/nx-packages/nx-cloud/lib/generators/init/init.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2BAAkC;AAClC,+BAAkC;
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../../libs/nx-packages/nx-cloud/lib/generators/init/init.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2BAAkC;AAClC,+BAAkC;AAElC,SAAS,YAAY,CAAC,IAAI,EAAE,KAAa;;IACvC,MAAM,iBAAiB,GAAG,MAAA,MAAA,MAAA,IAAI,CAAC,kBAAkB,0CAAE,OAAO,0CAAE,OAAO,mCAAI,EAAE,CAAC;IAE1E,MAAM,OAAO,mCACR,iBAAiB,KACpB,WAAW,EAAE,KAAK,GACnB,CAAC;IAEF,kCAAkC;IAClC,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE;QACxB,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;KACpC;IACD,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE;QAC5B,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;KACxC;IAED,IAAI,CAAC,kBAAkB,GAAG;QACxB,OAAO,EAAE;YACP,MAAM,EAAE,gBAAgB;YACxB,OAAO;SACR;KACF,CAAC;AACJ,CAAC;AAED,SAAS,uBAAuB,CAAC,IAAS,EAAE,KAAa;IACvD,OAAO,CAAC,cAAc,CAAC,CAAC,UAAU,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,IAAI,EAAE,EAAE;QAC3D,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,8BAA8B,CAAC,KAAa;IACnD,OAAO,O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AC,wBAAwB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YACjE,OAAO,CAAC,OAAO,CAAC;gBACd,eAAe;oBACb,OAAO,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;gBACzC,CAAC;aACF,CAAC,CAAC;YACH,8BAA8B,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACzD,CAAC,CAAC;IACJ,CAAC,CAAA,CAAC;AACJ,CAAC;AAdD,8BAcC"}
|
|
@@ -26,7 +26,7 @@ const nxCloudTasksRunner = (tasks, options, context) => {
|
|
|
26
26
|
// we need to make sure we bypass all distribution related logic in this case
|
|
27
27
|
if (process.env.NX_CLOUD === 'true') {
|
|
28
28
|
process.env.NX_CLOUD = 'false';
|
|
29
|
-
return (0, cloud_enabled_runner_1.cloudEnabledTasksRunner)(tasks, options, context
|
|
29
|
+
return (0, cloud_enabled_runner_1.cloudEnabledTasksRunner)(tasks, options, context);
|
|
30
30
|
}
|
|
31
31
|
if (environment_1.AGENT_RUNNING_IN_DISTRIBUTED_EXECUTION) {
|
|
32
32
|
verifyAllOperationsAreCacheableOnAgent(tasks, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nx-cloud-tasks-runner.js","sourceRoot":"","sources":["../../../../../libs/nx-packages/nx-cloud/lib/nx-cloud-tasks-runner.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,wDAAqD;AACrD,iEAA8D;AAE9D,yDAKiC;AACjC,6CAA+E;AAC/E,4FAA4F;AAG5F,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AAEpE,MAAM,kBAAkB,GAAQ,CAC9B,KAAa,EACb,OAA+B,EAC/B,OAAY,EACK,EAAE;IACnB,IAAI,CAAC,0BAAY,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE;QACzC,OAAO,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE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AACL,CAAC;AAED,kBAAe,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/nx-cloud",
|
|
3
|
-
"version": "14.0.1
|
|
3
|
+
"version": "14.0.1",
|
|
4
4
|
"description": "Nx Cloud plugin for Nx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Monorepo",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"node-machine-id": "^1.1.12",
|
|
25
25
|
"tar": "6.1.11",
|
|
26
26
|
"strip-json-comments": "^3.1.1",
|
|
27
|
-
"chalk": "4.1.0"
|
|
27
|
+
"chalk": "4.1.0",
|
|
28
|
+
"@nrwl/devkit": "13.10.2"
|
|
28
29
|
},
|
|
29
30
|
"typings": "./index.d.ts"
|
|
30
31
|
}
|