-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Fixed guix job output directory. See merge request ogs/ogs!4832
- Loading branch information
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ deploy guix container eve: | |
- which guix | ||
- guix describe | ||
# All processes. | ||
- image=$( guix time-machine -C scripts/guix/channels.scm -- pack --no-substitutes -RR --format=squashfs bash ogs-petsc [email protected]=$PWD | tee | tail -1 ) | ||
- image=$( guix time-machine -C scripts/guix/channels.scm -- pack --no-substitutes -RR --format=squashfs bash coreutils ogs-petsc [email protected]=$PWD | tee | tail -1 ) | ||
- echo "Image $image" | ||
- ssh [email protected] rm -f ${GUIX_PETSC_CONTAINER} | ||
- scp $image [email protected]:${GUIX_PETSC_CONTAINER} | ||
|
@@ -58,7 +58,7 @@ test guix container eve: | |
- mkdir -p $work_dir | ||
- cp -r ${CI_PROJECT_DIR}/Tests/Data/EllipticPETSc $work_dir/ | ||
- export prj_file=${work_dir}/EllipticPETSc/cube_1e3_XDMF_np3.prj | ||
- jid=$(sbatch --chdir=${work_dir} --job-name=test-guix-container --mem-per-cpu=1G --ntasks=3 --output=/work/%u/%x_%j.out --parsable --time=5 --partition=testing --wrap="srun apptainer exec ${GUIX_PETSC_CONTAINER} ogs ${prj_file}") | ||
- jid=$(sbatch --chdir=${work_dir} --job-name=test-guix-container --mem-per-cpu=1G --ntasks=3 --output=${work_dir}/log.out --parsable --time=5 --partition=testing --wrap="srun apptainer exec ${GUIX_PETSC_CONTAINER} ogs ${prj_file} -o ${work_dir}") | ||
# - touch /work/$USER/ci_log_$jid.out # required on frontend1, tail -F does not recognize file created | ||
- while true; do grep "$jid" < <(squeue -hj "$jid") || break; sleep 10; done &> /dev/null & tail -F /work/$USER/test-guix-container_$jid.out --pid="$!" || true | ||
- exit_code=$(sacct -j $jid.0 --format=ExitCode --noheader | cut -d':' -f1) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters