Skip to content

Commit 713f3f0

Browse files
committed
working version
Signed-off-by: Jeromy Cannon <[email protected]>
1 parent 457478f commit 713f3f0

File tree

1 file changed

+8
-23
lines changed

1 file changed

+8
-23
lines changed

src/commands/node.mjs

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,7 @@ export class NodeCommand extends BaseCommand {
907907

908908
// compute other config parameters
909909
// TODO DRY
910+
self.logger.debug(`[cacheDir=${config.cacheDir}]`)
910911
config.releasePrefix = Templates.prepareReleasePrefix(config.releaseTag)
911912
config.buildZipFile = `${config.cacheDir}/${config.releasePrefix}/build-${config.releaseTag}.zip`
912913
config.keysDir = path.join(config.cacheDir, 'keys')
@@ -973,7 +974,9 @@ export class NodeCommand extends BaseCommand {
973974
subTasks.push({
974975
title: `Node: ${chalk.yellow(nodeId)}`,
975976
task: () =>
976-
self.plaformInstaller.taskInstall(podName, config.buildZipFile, config.stagingDir, config.nodeIds, config.keyFormat, config.force)
977+
self.plaformInstaller.taskInstall(podName, config.buildZipFile, config.stagingDir,
978+
['node0', 'node1', 'node2', 'node3'], // TODO get nodeIds to copy keys from // config.nodeIds,
979+
config.keyFormat, config.force)
977980
})
978981
}
979982

@@ -1027,29 +1030,11 @@ export class NodeCommand extends BaseCommand {
10271030
})
10281031
}
10291032
},
1030-
{
1031-
title: 'Check nodes are ACTIVE',
1032-
task: (ctx, task) => {
1033-
const subTasks = []
1034-
for (const nodeId of ctx.config.nodeIds) {
1035-
subTasks.push({
1036-
title: `Check node: ${chalk.yellow(nodeId)}`,
1037-
task: () => self.checkNetworkNodeStarted(nodeId)
1038-
})
1039-
}
1040-
1041-
// set up the sub-tasks
1042-
return task.newListr(subTasks, {
1043-
concurrent: false,
1044-
rendererOptions: {
1045-
collapseSubtasks: false
1046-
}
1047-
})
1048-
}
1049-
},
10501033
{
10511034
title: 'Check node proxies are ACTIVE',
1052-
task: async (ctx, parentTask) => {
1035+
// this is more reliable than checking the nodes logs for ACTIVE, as the
1036+
// logs will have a lot of white noise from being behind
1037+
task: async (ctx, task) => {
10531038
const subTasks = []
10541039
let localPort = constants.LOCAL_NODE_PROXY_START_PORT
10551040
for (const nodeId of ctx.config.nodeIds) {
@@ -1060,7 +1045,7 @@ export class NodeCommand extends BaseCommand {
10601045
}
10611046

10621047
// set up the sub-tasks
1063-
return parentTask.newListr(subTasks, {
1048+
return task.newListr(subTasks, {
10641049
concurrent: false,
10651050
rendererOptions: {
10661051
collapseSubtasks: false

0 commit comments

Comments
 (0)