@aztec/end-to-end 4.0.0-nightly.20260121 → 4.0.0-nightly.20260122
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/dest/shared/cross_chain_test_harness.d.ts +3 -4
- package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
- package/dest/shared/submit-transactions.d.ts +1 -1
- package/dest/shared/submit-transactions.d.ts.map +1 -1
- package/dest/shared/submit-transactions.js +1 -4
- package/dest/spartan/tx_metrics.d.ts +11 -1
- package/dest/spartan/tx_metrics.d.ts.map +1 -1
- package/dest/spartan/tx_metrics.js +133 -4
- package/dest/spartan/utils/bot.d.ts +27 -0
- package/dest/spartan/utils/bot.d.ts.map +1 -0
- package/dest/spartan/utils/bot.js +141 -0
- package/dest/spartan/utils/chaos.d.ts +79 -0
- package/dest/spartan/utils/chaos.d.ts.map +1 -0
- package/dest/spartan/utils/chaos.js +142 -0
- package/dest/spartan/utils/clients.d.ts +25 -0
- package/dest/spartan/utils/clients.d.ts.map +1 -0
- package/dest/spartan/utils/clients.js +101 -0
- package/dest/spartan/utils/config.d.ts +36 -0
- package/dest/spartan/utils/config.d.ts.map +1 -0
- package/dest/spartan/utils/config.js +20 -0
- package/dest/spartan/utils/health.d.ts +63 -0
- package/dest/spartan/utils/health.d.ts.map +1 -0
- package/dest/spartan/utils/health.js +202 -0
- package/dest/spartan/utils/helm.d.ts +15 -0
- package/dest/spartan/utils/helm.d.ts.map +1 -0
- package/dest/spartan/utils/helm.js +47 -0
- package/dest/spartan/utils/index.d.ts +9 -0
- package/dest/spartan/utils/index.d.ts.map +1 -0
- package/dest/spartan/utils/index.js +18 -0
- package/dest/spartan/utils/k8s.d.ts +59 -0
- package/dest/spartan/utils/k8s.d.ts.map +1 -0
- package/dest/spartan/utils/k8s.js +185 -0
- package/dest/spartan/utils/nodes.d.ts +31 -0
- package/dest/spartan/utils/nodes.d.ts.map +1 -0
- package/dest/spartan/utils/nodes.js +273 -0
- package/dest/spartan/utils/scripts.d.ts +16 -0
- package/dest/spartan/utils/scripts.d.ts.map +1 -0
- package/dest/spartan/utils/scripts.js +66 -0
- package/dest/spartan/utils.d.ts +2 -260
- package/dest/spartan/utils.d.ts.map +1 -1
- package/dest/spartan/utils.js +1 -942
- package/package.json +39 -39
- package/src/shared/cross_chain_test_harness.ts +2 -3
- package/src/shared/submit-transactions.ts +1 -6
- package/src/spartan/tx_metrics.ts +82 -4
- package/src/spartan/utils/bot.ts +185 -0
- package/src/spartan/utils/chaos.ts +253 -0
- package/src/spartan/utils/clients.ts +106 -0
- package/src/spartan/utils/config.ts +26 -0
- package/src/spartan/utils/health.ts +256 -0
- package/src/spartan/utils/helm.ts +84 -0
- package/src/spartan/utils/index.ts +58 -0
- package/src/spartan/utils/k8s.ts +279 -0
- package/src/spartan/utils/nodes.ts +308 -0
- package/src/spartan/utils/scripts.ts +63 -0
- package/src/spartan/utils.ts +1 -1246
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { createLogger } from '@aztec/aztec.js/log';
|
|
2
|
+
import type { Logger } from '@aztec/foundation/log';
|
|
3
|
+
|
|
4
|
+
import { exec } from 'child_process';
|
|
5
|
+
import { promisify } from 'util';
|
|
6
|
+
|
|
7
|
+
const execAsync = promisify(exec);
|
|
8
|
+
|
|
9
|
+
const logger = createLogger('e2e:k8s-utils');
|
|
10
|
+
|
|
11
|
+
function shellQuote(value: string) {
|
|
12
|
+
// Single-quote safe shell escaping: ' -> '\''
|
|
13
|
+
return `'${value.replace(/'/g, "'\\''")}'`;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function valuesToArgs(values: Record<string, string | number | boolean>) {
|
|
17
|
+
return Object.entries(values)
|
|
18
|
+
.map(([key, value]) =>
|
|
19
|
+
typeof value === 'number' || typeof value === 'boolean'
|
|
20
|
+
? `--set ${key}=${value}`
|
|
21
|
+
: `--set-string ${key}=${shellQuote(String(value))}`,
|
|
22
|
+
)
|
|
23
|
+
.join(' ');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function createHelmCommand({
|
|
27
|
+
instanceName,
|
|
28
|
+
helmChartDir,
|
|
29
|
+
namespace,
|
|
30
|
+
valuesFile,
|
|
31
|
+
timeout,
|
|
32
|
+
values,
|
|
33
|
+
reuseValues = false,
|
|
34
|
+
}: {
|
|
35
|
+
instanceName: string;
|
|
36
|
+
helmChartDir: string;
|
|
37
|
+
namespace: string;
|
|
38
|
+
valuesFile: string | undefined;
|
|
39
|
+
timeout: string;
|
|
40
|
+
values: Record<string, string | number | boolean>;
|
|
41
|
+
reuseValues?: boolean;
|
|
42
|
+
}) {
|
|
43
|
+
const valuesFileArgs = valuesFile ? `--values ${helmChartDir}/values/${valuesFile}` : '';
|
|
44
|
+
const reuseValuesArgs = reuseValues ? '--reuse-values' : '';
|
|
45
|
+
return `helm upgrade --install ${instanceName} ${helmChartDir} --namespace ${namespace} ${valuesFileArgs} ${reuseValuesArgs} --wait --timeout=${timeout} ${valuesToArgs(
|
|
46
|
+
values,
|
|
47
|
+
)}`;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export async function execHelmCommand(args: Parameters<typeof createHelmCommand>[0]) {
|
|
51
|
+
const helmCommand = createHelmCommand(args);
|
|
52
|
+
logger.info(`helm command: ${helmCommand}`);
|
|
53
|
+
const { stdout } = await execAsync(helmCommand);
|
|
54
|
+
return stdout;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export async function getHelmReleaseStatus(instanceName: string, namespace: string): Promise<string | undefined> {
|
|
58
|
+
try {
|
|
59
|
+
const { stdout } = await execAsync(
|
|
60
|
+
`helm list --namespace ${namespace} --all --filter '^${instanceName}$' --output json | cat`,
|
|
61
|
+
);
|
|
62
|
+
const parsed = JSON.parse(stdout) as Array<{ name?: string; status?: string }>;
|
|
63
|
+
const row = parsed.find(r => r.name === instanceName);
|
|
64
|
+
return row?.status;
|
|
65
|
+
} catch {
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export async function forceDeleteHelmReleaseRecord(instanceName: string, namespace: string, log?: Logger) {
|
|
71
|
+
const labelSelector = `owner=helm,name=${instanceName}`;
|
|
72
|
+
const cmd = `kubectl delete secret -n ${namespace} -l ${labelSelector} --ignore-not-found=true`;
|
|
73
|
+
(log ?? logger).warn(`Force deleting Helm release record: ${cmd}`);
|
|
74
|
+
await execAsync(cmd).catch(() => undefined);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export async function hasDeployedHelmRelease(instanceName: string, namespace: string): Promise<boolean> {
|
|
78
|
+
try {
|
|
79
|
+
const status = await getHelmReleaseStatus(instanceName, namespace);
|
|
80
|
+
return status?.toLowerCase() === 'deployed';
|
|
81
|
+
} catch {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// Re-export all utilities from individual modules
|
|
2
|
+
// Note: Internal helpers (helm commands, etc.) are not re-exported to maintain the original public API
|
|
3
|
+
|
|
4
|
+
// Config
|
|
5
|
+
export { type TestConfig, setupEnvironment } from './config.js';
|
|
6
|
+
|
|
7
|
+
// Scripts
|
|
8
|
+
export { getGitProjectRoot, getAztecBin, runAztecBin, runProjectScript } from './scripts.js';
|
|
9
|
+
|
|
10
|
+
// K8s operations
|
|
11
|
+
export {
|
|
12
|
+
startPortForward,
|
|
13
|
+
getExternalIP,
|
|
14
|
+
startPortForwardForPrometeheus,
|
|
15
|
+
startPortForwardForRPC,
|
|
16
|
+
startPortForwardForEthereum,
|
|
17
|
+
deleteResourceByName,
|
|
18
|
+
deleteResourceByLabel,
|
|
19
|
+
waitForResourceByLabel,
|
|
20
|
+
waitForResourceByName,
|
|
21
|
+
waitForResourcesByName,
|
|
22
|
+
getChartDir,
|
|
23
|
+
} from './k8s.js';
|
|
24
|
+
|
|
25
|
+
// Chaos Mesh
|
|
26
|
+
export {
|
|
27
|
+
uninstallChaosMesh,
|
|
28
|
+
installChaosMeshChart,
|
|
29
|
+
applyProverFailure,
|
|
30
|
+
applyValidatorFailure,
|
|
31
|
+
applyProverKill,
|
|
32
|
+
applyProverBrokerKill,
|
|
33
|
+
applyBootNodeFailure,
|
|
34
|
+
applyValidatorKill,
|
|
35
|
+
applyNetworkShaping,
|
|
36
|
+
} from './chaos.js';
|
|
37
|
+
|
|
38
|
+
// Bot management
|
|
39
|
+
export { restartBot, installTransferBot, uninstallTransferBot } from './bot.js';
|
|
40
|
+
|
|
41
|
+
// Node operations (sequencers, validators, pods)
|
|
42
|
+
export {
|
|
43
|
+
awaitCheckpointNumber,
|
|
44
|
+
getSequencers,
|
|
45
|
+
updateSequencersConfig,
|
|
46
|
+
getSequencersConfig,
|
|
47
|
+
withSequencersAdmin,
|
|
48
|
+
setValidatorTxDrop,
|
|
49
|
+
restartValidators,
|
|
50
|
+
enableValidatorDynamicBootNode,
|
|
51
|
+
rollAztecPods,
|
|
52
|
+
} from './nodes.js';
|
|
53
|
+
|
|
54
|
+
// Client utilities
|
|
55
|
+
export { getPublicViemClient, getL1DeploymentAddresses, getNodeClient } from './clients.js';
|
|
56
|
+
|
|
57
|
+
// Health checks
|
|
58
|
+
export { ChainHealth, type ChainHealthSnapshot } from './health.js';
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { createLogger } from '@aztec/aztec.js/log';
|
|
2
|
+
import { promiseWithResolvers } from '@aztec/foundation/promise';
|
|
3
|
+
|
|
4
|
+
import { type ChildProcess, exec, spawn } from 'child_process';
|
|
5
|
+
import path from 'path';
|
|
6
|
+
import { promisify } from 'util';
|
|
7
|
+
|
|
8
|
+
const execAsync = promisify(exec);
|
|
9
|
+
|
|
10
|
+
const logger = createLogger('e2e:k8s-utils');
|
|
11
|
+
|
|
12
|
+
export async function startPortForward({
|
|
13
|
+
resource,
|
|
14
|
+
namespace,
|
|
15
|
+
containerPort,
|
|
16
|
+
hostPort,
|
|
17
|
+
}: {
|
|
18
|
+
resource: string;
|
|
19
|
+
namespace: string;
|
|
20
|
+
containerPort: number;
|
|
21
|
+
// If not provided, the port will be chosen automatically
|
|
22
|
+
hostPort?: number;
|
|
23
|
+
}): Promise<{
|
|
24
|
+
process: ChildProcess;
|
|
25
|
+
port: number;
|
|
26
|
+
}> {
|
|
27
|
+
const hostPortAsString = hostPort ? hostPort.toString() : '';
|
|
28
|
+
|
|
29
|
+
logger.debug(`kubectl port-forward -n ${namespace} ${resource} ${hostPortAsString}:${containerPort}`);
|
|
30
|
+
|
|
31
|
+
const process = spawn(
|
|
32
|
+
'kubectl',
|
|
33
|
+
['port-forward', '-n', namespace, resource, `${hostPortAsString}:${containerPort}`],
|
|
34
|
+
{
|
|
35
|
+
detached: true,
|
|
36
|
+
windowsHide: true,
|
|
37
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
38
|
+
},
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
let isResolved = false;
|
|
42
|
+
const connected = new Promise<number>((resolve, reject) => {
|
|
43
|
+
process.stdout?.on('data', data => {
|
|
44
|
+
const str = data.toString() as string;
|
|
45
|
+
if (!isResolved && str.includes('Forwarding from')) {
|
|
46
|
+
isResolved = true;
|
|
47
|
+
logger.debug(`Port forward for ${resource}: ${str}`);
|
|
48
|
+
const port = str.search(/:\d+/);
|
|
49
|
+
if (port === -1) {
|
|
50
|
+
reject(new Error('Port not found in port forward output'));
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const portNumber = parseInt(str.slice(port + 1));
|
|
54
|
+
logger.verbose(`Port forwarded for ${resource} at ${portNumber}:${containerPort}`);
|
|
55
|
+
resolve(portNumber);
|
|
56
|
+
} else {
|
|
57
|
+
logger.silent(str);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
process.stderr?.on('data', data => {
|
|
61
|
+
logger.verbose(`Port forward for ${resource}: ${data.toString()}`);
|
|
62
|
+
// It's a strange thing:
|
|
63
|
+
// If we don't pipe stderr, then the port forwarding does not work.
|
|
64
|
+
// Log to silent because this doesn't actually report errors,
|
|
65
|
+
// just extremely verbose debug logs.
|
|
66
|
+
logger.silent(data.toString());
|
|
67
|
+
});
|
|
68
|
+
process.on('close', () => {
|
|
69
|
+
if (!isResolved) {
|
|
70
|
+
isResolved = true;
|
|
71
|
+
const msg = `Port forward for ${resource} closed before connection established`;
|
|
72
|
+
logger.warn(msg);
|
|
73
|
+
reject(new Error(msg));
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
process.on('error', error => {
|
|
77
|
+
if (!isResolved) {
|
|
78
|
+
isResolved = true;
|
|
79
|
+
const msg = `Port forward for ${resource} error: ${error}`;
|
|
80
|
+
logger.error(msg);
|
|
81
|
+
reject(new Error(msg));
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
process.on('exit', code => {
|
|
85
|
+
if (!isResolved) {
|
|
86
|
+
isResolved = true;
|
|
87
|
+
const msg = `Port forward for ${resource} exited with code ${code}`;
|
|
88
|
+
logger.verbose(msg);
|
|
89
|
+
reject(new Error(msg));
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
const port = await connected;
|
|
95
|
+
|
|
96
|
+
return { process, port };
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function getExternalIP(namespace: string, serviceName: string): Promise<string> {
|
|
100
|
+
const { promise, resolve, reject } = promiseWithResolvers<string>();
|
|
101
|
+
const process = spawn(
|
|
102
|
+
'kubectl',
|
|
103
|
+
[
|
|
104
|
+
'get',
|
|
105
|
+
'service',
|
|
106
|
+
'-n',
|
|
107
|
+
namespace,
|
|
108
|
+
`${namespace}-${serviceName}`,
|
|
109
|
+
'--output',
|
|
110
|
+
"jsonpath='{.status.loadBalancer.ingress[0].ip}'",
|
|
111
|
+
],
|
|
112
|
+
{
|
|
113
|
+
stdio: 'pipe',
|
|
114
|
+
},
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
let ip = '';
|
|
118
|
+
process.stdout.on('data', data => {
|
|
119
|
+
ip += data;
|
|
120
|
+
});
|
|
121
|
+
process.on('error', err => {
|
|
122
|
+
reject(err);
|
|
123
|
+
});
|
|
124
|
+
process.on('exit', () => {
|
|
125
|
+
// kubectl prints JSON. Remove the quotes
|
|
126
|
+
resolve(ip.replace(/"|'/g, ''));
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
return promise;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function startPortForwardForPrometeheus(namespace: string) {
|
|
133
|
+
return startPortForward({
|
|
134
|
+
resource: `svc/${namespace}-prometheus-server`,
|
|
135
|
+
namespace,
|
|
136
|
+
containerPort: 80,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function startPortForwardForRPC(namespace: string, index = 0) {
|
|
141
|
+
return startPortForward({
|
|
142
|
+
resource: `pod/${namespace}-rpc-aztec-node-${index}`,
|
|
143
|
+
namespace,
|
|
144
|
+
containerPort: 8080,
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function startPortForwardForEthereum(namespace: string) {
|
|
149
|
+
return startPortForward({
|
|
150
|
+
resource: `services/${namespace}-eth-execution`,
|
|
151
|
+
namespace,
|
|
152
|
+
containerPort: 8545,
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export async function deleteResourceByName({
|
|
157
|
+
resource,
|
|
158
|
+
namespace,
|
|
159
|
+
name,
|
|
160
|
+
force = false,
|
|
161
|
+
}: {
|
|
162
|
+
resource: string;
|
|
163
|
+
namespace: string;
|
|
164
|
+
name: string;
|
|
165
|
+
force?: boolean;
|
|
166
|
+
}) {
|
|
167
|
+
const command = `kubectl delete ${resource} ${name} -n ${namespace} --ignore-not-found=true --wait=true ${
|
|
168
|
+
force ? '--force' : ''
|
|
169
|
+
}`;
|
|
170
|
+
logger.info(`command: ${command}`);
|
|
171
|
+
const { stdout } = await execAsync(command);
|
|
172
|
+
return stdout;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export async function deleteResourceByLabel({
|
|
176
|
+
resource,
|
|
177
|
+
namespace,
|
|
178
|
+
label,
|
|
179
|
+
timeout = '5m',
|
|
180
|
+
force = false,
|
|
181
|
+
}: {
|
|
182
|
+
resource: string;
|
|
183
|
+
namespace: string;
|
|
184
|
+
label: string;
|
|
185
|
+
timeout?: string;
|
|
186
|
+
force?: boolean;
|
|
187
|
+
}) {
|
|
188
|
+
try {
|
|
189
|
+
// Match both plain and group-qualified names (e.g., "podchaos" or "podchaos.chaos-mesh.org")
|
|
190
|
+
const escaped = resource.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
191
|
+
const regex = `(^|\\.)${escaped}(\\.|$)`;
|
|
192
|
+
await execAsync(`kubectl api-resources --no-headers -o name | grep -Eq '${regex}'`);
|
|
193
|
+
} catch (error) {
|
|
194
|
+
logger.warn(`Resource type '${resource}' not found in cluster, skipping deletion ${error}`);
|
|
195
|
+
return '';
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
const command = `kubectl delete ${resource} -l ${label} -n ${namespace} --ignore-not-found=true --wait=true --timeout=${timeout} ${
|
|
199
|
+
force ? '--force' : ''
|
|
200
|
+
}`;
|
|
201
|
+
logger.info(`command: ${command}`);
|
|
202
|
+
const { stdout } = await execAsync(command);
|
|
203
|
+
return stdout;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export async function waitForResourceByLabel({
|
|
207
|
+
resource,
|
|
208
|
+
label,
|
|
209
|
+
namespace,
|
|
210
|
+
condition = 'Ready',
|
|
211
|
+
timeout = '10m',
|
|
212
|
+
}: {
|
|
213
|
+
resource: string;
|
|
214
|
+
label: string;
|
|
215
|
+
namespace: string;
|
|
216
|
+
condition?: string;
|
|
217
|
+
timeout?: string;
|
|
218
|
+
}) {
|
|
219
|
+
const command = `kubectl wait ${resource} -l ${label} --for=condition=${condition} -n ${namespace} --timeout=${timeout}`;
|
|
220
|
+
logger.info(`command: ${command}`);
|
|
221
|
+
const { stdout } = await execAsync(command);
|
|
222
|
+
return stdout;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export async function waitForResourceByName({
|
|
226
|
+
resource,
|
|
227
|
+
name,
|
|
228
|
+
namespace,
|
|
229
|
+
condition = 'Ready',
|
|
230
|
+
timeout = '10m',
|
|
231
|
+
}: {
|
|
232
|
+
resource: string;
|
|
233
|
+
name: string;
|
|
234
|
+
namespace: string;
|
|
235
|
+
condition?: string;
|
|
236
|
+
timeout?: string;
|
|
237
|
+
}) {
|
|
238
|
+
const command = `kubectl wait ${resource}/${name} --for=condition=${condition} -n ${namespace} --timeout=${timeout}`;
|
|
239
|
+
logger.info(`command: ${command}`);
|
|
240
|
+
const { stdout } = await execAsync(command);
|
|
241
|
+
return stdout;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export async function waitForResourcesByName({
|
|
245
|
+
resource,
|
|
246
|
+
names,
|
|
247
|
+
namespace,
|
|
248
|
+
condition = 'Ready',
|
|
249
|
+
timeout = '10m',
|
|
250
|
+
}: {
|
|
251
|
+
resource: string;
|
|
252
|
+
names: string[];
|
|
253
|
+
namespace: string;
|
|
254
|
+
condition?: string;
|
|
255
|
+
timeout?: string;
|
|
256
|
+
}) {
|
|
257
|
+
if (!names.length) {
|
|
258
|
+
throw new Error(`No ${resource} names provided to waitForResourcesByName`);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// Wait all in parallel; if any fails, surface which one.
|
|
262
|
+
await Promise.all(
|
|
263
|
+
names.map(async name => {
|
|
264
|
+
try {
|
|
265
|
+
await waitForResourceByName({ resource, name, namespace, condition, timeout });
|
|
266
|
+
} catch (err) {
|
|
267
|
+
throw new Error(
|
|
268
|
+
`Failed waiting for ${resource}/${name} condition=${condition} timeout=${timeout} namespace=${namespace}: ${String(
|
|
269
|
+
err,
|
|
270
|
+
)}`,
|
|
271
|
+
);
|
|
272
|
+
}
|
|
273
|
+
}),
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export function getChartDir(spartanDir: string, chartName: string) {
|
|
278
|
+
return path.join(spartanDir.trim(), chartName);
|
|
279
|
+
}
|