-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy logs for build failures to CWD so they are copied to S3. (#31)
- Loading branch information
Showing
2 changed files
with
5 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 |
---|---|---|
@@ -1 +1 @@ | ||
{"cmd": "echo doing build with hash {{ .Hash }}; if sudo singularity build --bind $TMPDIR:/tmp $TMPDIR/singularity.sif singularity.def &> $TMPDIR/builder.out; then sudo singularity run $TMPDIR/singularity.sif cat /opt/spack-environment/executables > $TMPDIR/executables && sudo singularity run $TMPDIR/singularity.sif cat /opt/spack-environment/spack.lock > $TMPDIR/spack.lock && mv $TMPDIR/singularity.sif $TMPDIR/builder.out $TMPDIR/executables $TMPDIR/spack.lock .; else mv $TMPDIR/builder.out . && false; fi", "retries": 0, "rep_grp": "singularity_build-{{ .S3Path }}", "limit_grps": ["s3cache"], "mounts": [{"Targets": [{"Path":"{{ .S3Path }}","Write":true,"Cache":true}]}]} | ||
{"cmd": "echo doing build with hash {{ .Hash }}; if sudo singularity build --bind $TMPDIR:/tmp $TMPDIR/singularity.sif singularity.def &> $TMPDIR/builder.out; then sudo singularity run $TMPDIR/singularity.sif cat /opt/spack-environment/executables > $TMPDIR/executables && sudo singularity run $TMPDIR/singularity.sif cat /opt/spack-environment/spack.lock > $TMPDIR/spack.lock && mv $TMPDIR/singularity.sif $TMPDIR/builder.out $TMPDIR/executables $TMPDIR/spack.lock .; else mv $TMPDIR/builder.out .; mkdir logs; sudo find $TMPDIR/root/spack-stage/ -maxdepth 2 -iname \"*.txt\" -exec cp {} logs/ \\; ; false; fi", "retries": 0, "rep_grp": "singularity_build-{{ .S3Path }}", "limit_grps": ["s3cache"], "mounts": [{"Targets": [{"Path":"{{ .S3Path }}","Write":true,"Cache":true}]}]} |
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