Skip to content

Commit

Permalink
fix(orchestrator): Don't use tmp dir in adder/undying collators (#1713)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepoviola authored Feb 1, 2024
1 parent 62e165e commit c59c353
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions javascript/packages/orchestrator/src/paras.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit c59c353

Please sign in to comment.