Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Merge requests
!1754
[CDASH] Try to fix CET/CEST in script finding job end time
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[CDASH] Try to fix CET/CEST in script finding job end time
p.-a.loizeau/cbmroot:fix_cest_weekly_virgo
into
master
Overview
1
Commits
1
Pipelines
3
Changes
1
Merged
Pierre-Alain Loizeau
requested to merge
p.-a.loizeau/cbmroot:fix_cest_weekly_virgo
into
master
1 year ago
Overview
1
Commits
1
Pipelines
3
Changes
1
Expand
Should fix the silently failing (hard killed by
SLURM
) weekly test on virgo2
0
0
Merge request reports
Compare
master
version 2
5a2cbdcc
1 year ago
version 1
984372b6
1 year ago
master (base)
and
latest version
latest version
ad28d8eb
1 commit,
1 year ago
version 2
5a2cbdcc
1 commit,
1 year ago
version 1
984372b6
1 commit,
1 year ago
1 file
+
4
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
scripts/find_slurm_ctest_stop_time.sh
+
4
−
2
Options
@@ -20,7 +20,8 @@
# SLURM end time
END_TIME
=
`
squeue
-j
${
SLURM_JOB_ID
}
-h
--Format
EndTime
`
echo
"SLURM Job end time
${
END_TIME
}
"
CET_CEST
=
`
date
+
"%Z"
`
echo
"SLURM Job end time
${
END_TIME
}
probably
${
CET_CEST
}
"
# Ctest end time = SLURM -5 minutes (should be enough for coverage and uploads)
# => Not working as ctest expects the "time point in hours-minutes-seconds within current day"
@@ -36,7 +37,8 @@ echo "SLURM Job end time ${END_TIME}"
# (tried all timezone options of date, with and without space between time and timezone)
#CTEST_END_TIME_LIMIT=`date -d "${END_TIME}CET -5minutes" +"%H:%M:%S %z"`
# => Working! but probably unsafe on day of Summer time swaps + if tests run close to midnight...
CTEST_END_TIME_LIMIT
=
`
date
-d
"
${
END_TIME
}
CET -5minutes"
+
"%H:%M:%S"
`
# => Fixed for summer time but will probably still fail on the day of the swap itself... so twice a year
CTEST_END_TIME_LIMIT
=
`
date
-d
"
${
END_TIME
}${
CET_CEST
}
-5minutes"
+
"%H:%M:%S"
`
echo
"Setting the job time limit for ctest to
${
CTEST_END_TIME_LIMIT
}
to make sure CDASH data is uploaded"
if
[[
$#
-eq
1
]]
;
then
Loading