Skip to content

Commit

Permalink
Make sure ReFrame command only runs for 24h minus 10 minutes. That wa…
Browse files Browse the repository at this point in the history
…y, if it's on a daily schedule, jobs will never overlap, as this caused us to exceed vCPU limits on AWS
  • Loading branch information
casparvl committed Sep 17, 2024
1 parent 7354fcd commit 8dd0689
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CI/run_reframe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ fi
if [ -z "${RFM_PREFIX}" ]; then
export RFM_PREFIX="${HOME}/reframe_CI_runs"
fi
if [ -z "${REFRAME_TIMEOUT}" ]; then
# 10 minutes short of 1 day, since typically the test suite will be run daily.
# This will prevent multiple ReFrame runs from piling up and exceeding the quota on our Magic Castle clusters
export REFRAME_TIMEOUT=1430m
fi

# Create virtualenv for ReFrame using system python
python3 -m venv "${TEMPDIR}"/reframe_venv
Expand Down Expand Up @@ -118,7 +123,7 @@ reframe ${REFRAME_ARGS} --list

# Run
echo "Run tests:"
reframe ${REFRAME_ARGS} --run
timeout -v --preserve-status -s SIGTERM ${REFRAME_TIMEOUT} reframe ${REFRAME_ARGS} --run

# Cleanup
rm -rf "${TEMPDIR}"

0 comments on commit 8dd0689

Please sign in to comment.