From 38d2dee888c36da15522442ce4045a573bd5d3bd Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Wed, 20 Dec 2023 19:17:32 +0100 Subject: [PATCH] Try setting a timeout --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index b22cd44..3b61acf 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -145,10 +145,10 @@ echo "RemoteSha: ${2}" >> "${PKGDIR}/DESCRIPTION" fi # Build source package. Try vignettes, but build without otherwise. -# R is weird like that, it should be possible to build the package even if there is a documentation bug. +# We set a timeout such that the workflow can post a 'failure' instead of timing out in CI. #mv ${REPO}/.git tmpgit echo "::group::R CMD build" -if ! R_TEXI2DVICMD=emulation PDFLATEX=pdftinytex R_TESTS="/tmp/vignettehack.R" R --no-init-file CMD build ${PKGDIR} --no-manual ${BUILD_ARGS} 1> >(tee stderr_build.log); then +if ! R_TEXI2DVICMD=emulation PDFLATEX=pdftinytex R_TESTS="/tmp/vignettehack.R" timeout 3600 R --no-init-file CMD build ${PKGDIR} --no-manual ${BUILD_ARGS} 1> >(tee stderr_build.log); then VIGNETTE_FAILURE=1 echo "::endgroup::" echo "::group::R CMD build (trying without vignettes)"