Fix .laminar

Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
Václav Valíček 2022-08-09 20:19:08 +02:00
parent 9ac4a31e19
commit 9879e52da3
Signed by: valicek
GPG Key ID: FF05BDCA0C73BB31

View File

@ -7,7 +7,7 @@ PYTHON_VERSIONS=(3.7 3.8 3.9 3.10)
# grid run # grid run
if [ ${CONTEXT:-ERR} = "docker-single" ] if [ ${CONTEXT:-ERR} = "docker-single" ]
then then
red "Laminar run in grid PYTHON=${PYTHON:-not_specified} commit=${commit:-not_specified}..." red "Laminar run in grid PYTHON=${PYTHON:-not_specified} COMMIT_SHA=${COMMIT_SHA:-not_specified}..."
SERIAL=${SERIAL:-2000-00-00_$RANDOM} SERIAL=${SERIAL:-2000-00-00_$RANDOM}
echo "Serial of run: $SERIAL" echo "Serial of run: $SERIAL"
@ -19,7 +19,7 @@ then
git submodule | awk '{print $2}' | while read submodule git submodule | awk '{print $2}' | while read submodule
do do
echo "Submodule: $submodule" echo "Submodule: $submodule"
if [ ! -d "$submodule/.git" ] if [ ! -e "$submodule/.git" ]
then then
echo " -> module is unitialized..." echo " -> module is unitialized..."
touch .uninitialized touch .uninitialized
@ -107,15 +107,17 @@ echo "JOB PYTHON TIME EXIT" > $scratch/sum
for python in ${PYTHON_VERSIONS[@]} for python in ${PYTHON_VERSIONS[@]}
do do
echo "PYTHON=$python commit=\"${commit:-}\"" echo "PYTHON=$python COMMIT_SHA=\"${COMMIT_SHA:-}\" COMMIT_DATE=\"${COMMIT_DATE}\""
set +e # disable exit fail set +e # disable exit fail
# execute command # execute command
/usr/bin/time --format "%E" -o $scratch/time \ /usr/bin/time --format "%E" -o $scratch/time \
env LAMINAR_REASON="$(git log --oneline -n 1 ${commit:-})" \ env LAMINAR_REASON="$(git log --oneline -n 1 ${COMMIT_SHA:-})" \
laminarc run $JOB-grid \ laminarc run $JOB-grid \
SERIAL=$SERIAL \ SERIAL=$SERIAL \
invoker="${JOB}:${RUN}" \ invoker="${JOB}:${RUN}" \
PYTHON=$python commit="${commit:-}" \ PYTHON=$python COMMIT_SHA="${COMMIT_SHA:-}" \
COMMIT_ABBREV=${COMMIT_ABBREV:-} COMMIT_DATE="${COMMIT_DATE:-}" \
COMMIT_BRANCHES="${COMMIT_BRANCHES:-}" COMMIT_TAGS="${COMMIT_TAGS:-}" \
> $scratch/output > $scratch/output
rc=$? rc=$?