From c59c353f9d4b78f07d6e56359e37defd2d368247 Mon Sep 17 00:00:00 2001 From: Javier Viola Date: Thu, 1 Feb 2024 12:32:34 -0300 Subject: [PATCH] fix(orchestrator): Don't use tmp dir in adder/undying collators (#1713) --- javascript/packages/orchestrator/src/paras.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/javascript/packages/orchestrator/src/paras.ts b/javascript/packages/orchestrator/src/paras.ts index 4d20972f2..764f607b8 100644 --- a/javascript/packages/orchestrator/src/paras.ts +++ b/javascript/packages/orchestrator/src/paras.ts @@ -242,9 +242,10 @@ export async function generateParachainFiles( ); } - if (client.providerName === "native") { - // inject a tmp base-path to prevent the use of a pre-existing un-purged data directory. - // see https://github.com/paritytech/zombienet/issues/1519 + if (client.providerName === "native" && !parachain.cumulusBased) { + // Inject a tmp base-path to prevent the use of a pre-existing un-purged data directory. This should only + // be injected for `cumulus` base parachains. + // See https://github.com/paritytech/zombienet/issues/1519 // NOTE: this is only needed in native provider since un k8s/podman the fs is always fresh const exportGenesisStateCustomPath = `${client.tmpDir}/export-genesis-state/${parachain.id}`; await fs.promises.mkdir(exportGenesisStateCustomPath, {