Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ test-full: ## Run all tests, including coupling tests and a default
test-full-slurm: ##test-full, but on slurm
$(info Full tests take more than an hour to run, please be patient)
make ensure-reqs
@sbatch --qos=priority --wrap="$(RSCRIPT_SLURM_HOOK) make test-full" --job-name=test-full --mail-type=END,FAIL --output=test-full.log --comment="test-full.log"
@sbatch --qos=priority --wrap="set -e; $(RSCRIPT_SLURM_HOOK) make test-full" --job-name=test-full --mail-type=END,FAIL --output=test-full.log --comment="test-full.log"

test-validation: ## Run validation tests, requires a full set of runs in the output folder
$(info Run validation tests, requires a full set of runs in the output folder)
Expand Down
2 changes: 1 addition & 1 deletion output.R
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ runSingle <- function(output, outputdirs, slurmConfig, interactiveSession, test)
hookedRscript <- trimws(paste(Sys.getenv("RSCRIPT_SLURM_HOOK", unset = ""), "Rscript"))
Rscripts <- paste0(hookedRscript, " scripts/output/single/", name, " --outputdir=", outputdir, collapse = "; ")
slurmcmd <- paste0("sbatch ", slurmConfig, " --job-name=", logfile, " --output=", logfile,
" --mail-type=END,FAIL --comment=output.R --wrap='", Rscripts, "'")
" --mail-type=END,FAIL --comment=output.R --wrap='set -e; ", Rscripts, "'")
message("Sending to slurm: ", paste(name, collapse = ", "), ". Find log in ", logfile)
system(slurmcmd)
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/output/comparison/compareScenarios2.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ startComp <- function(
" --mail-type=END,FAIL --time=200",
if (!grepl("--mem", slurmConfig)) " --mem=8000",
# Prefix RSCRIPT_SLURM_HOOK for piam-apptainer integration (empty if unset)
" --wrap=\"", trimws(paste(Sys.getenv("RSCRIPT_SLURM_HOOK", unset = ""), "Rscript")), " ", script,
" --wrap=\"set -e; ", trimws(paste(Sys.getenv("RSCRIPT_SLURM_HOOK", unset = ""), "Rscript")), " ", script,
" --outputdirs=", shQuote(paste(outputdirs, collapse = ",")),
" --profileName=", shQuote(profileName),
" --outFileName=", shQuote(outFileName),
Expand Down
4 changes: 2 additions & 2 deletions scripts/output/comparison/validateScenarios.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ startVal <- function(outputDirs, validationConfig, validationReportName, nameCor
" --error=", jobName, ".out",
" --mail-type=END --time=200 --mem-per-cpu=8000",
# Prefix RSCRIPT_SLURM_HOOK for piam-apptainer integration (empty if unset)
" --wrap=\"", trimws(paste(Sys.getenv("RSCRIPT_SLURM_HOOK", unset = ""), "Rscript")), " ", script,
" --wrap=\"set -e; ", trimws(paste(Sys.getenv("RSCRIPT_SLURM_HOOK", unset = ""), "Rscript")), " ", script,
" --outputdirs=", shQuote(paste(outputDirs, collapse = ",")),
" --validationConfig=", shQuote(validationConfig),
" --validationReportName=", shQuote(validationReportName),
Expand Down Expand Up @@ -112,4 +112,4 @@ nameCore <- glue::glue("{prefix}{valName}{repInfix}-{timeStamp}")
outputDirs = outputdirs,
validationConfig = validationConfig,
validationReportName = validationReportName,
nameCore = nameCore)
nameCore = nameCore)
Loading