Skip to content

Commit 6cc6f40

Browse files
committed
fix(slurmCI): use correct enroot export syntax with ENROOT_DATA_PATH and pyxis_ prefix
Signed-off-by: NirWolfer <nwolfer@nvidia.com>
1 parent ca54ea3 commit 6cc6f40

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

vars/slurmCI.groovy

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,15 @@ int call(ctx, oneStep, config) {
108108
"ARCHIVE_CONTAINER=${containerName}",
109109
"ARCHIVE_OUTPUT=${resolvedOutputPath}",
110110
"ARCHIVE_JOB_ID=${jobId}",
111+
"ARCHIVE_ENROOT_DATA_PATH=${env.ENROOT_DATA_PATH ?: ''}",
111112
]) {
112113
sh(label: "archiveImage: export '${containerName}' -> ${resolvedOutputPath}", script: '''
113114
#!/bin/bash
114115
set -euo pipefail
115116
mkdir -p "$(dirname "$ARCHIVE_OUTPUT")"
116-
# TODO: replace with actual enroot export command from cluster admin.
117-
# Must run on the compute node without container flags.
118-
scctl --raw-errors client connect -- srun --jobid="$ARCHIVE_JOB_ID" --ntasks=1 --oversubscribe enroot export --container "$ARCHIVE_CONTAINER" --output "$ARCHIVE_OUTPUT"
117+
scctl --raw-errors client connect -- srun --jobid="$ARCHIVE_JOB_ID" --ntasks=1 --oversubscribe env ENROOT_DATA_PATH="$ARCHIVE_ENROOT_DATA_PATH" enroot export --output "$ARCHIVE_OUTPUT" "pyxis_$ARCHIVE_CONTAINER"
119118
echo "Export complete: $ARCHIVE_OUTPUT"
120-
echo "To debug: .ci/scripts/debug_run.sh $ARCHIVE_OUTPUT [core_file]"
119+
echo "To debug: see docs/ci/crash-debug.md"
121120
''')
122121
}
123122
} catch (e) {

0 commit comments

Comments
 (0)