Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store ctest output from all ranks in CI as GitLab artifacts #1208

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
10 changes: 8 additions & 2 deletions ci/ctest_to_gitlab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ JOB_TEMPLATE="
DLAF_HDF5_TEST_OUTPUT_PATH: \$CI_PROJECT_DIR
script: mpi-ctest -L {{LABEL}}
artifacts:
when: always
paths:
- codecov-reports/"
- codecov-reports/
- output/"
else
# CRAY_CUDA_MPS set to 0 to avoid test hanging on daint (See PR #1197)
BASE_TEMPLATE="
Expand Down Expand Up @@ -100,7 +102,11 @@ JOB_TEMPLATE="
USE_MPI: 'YES'
DISABLE_AFTER_SCRIPT: 'YES'
DLAF_HDF5_TEST_OUTPUT_PATH: \$CI_PROJECT_DIR
script: mpi-ctest -L {{LABEL}}"
script: mpi-ctest -L {{LABEL}}
artifacts:
when: always
paths:
- output/"
fi

JOBS=""
Expand Down
6 changes: 4 additions & 2 deletions ci/mpi-ctest
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ if [[ "$ENABLE_COVERAGE" == "YES" ]]; then
mkdir -p "$SHARED_REPORTS"
fi;

CTEST_OUTPUT="$CI_PROJECT_DIR/output/ctest.$SLURM_PROCID.txt"

pushd /DLA-Future-build > /dev/null

export CUDA_MPS_PIPE_DIRECTORY=/tmp/nvidia-mps
Expand All @@ -25,10 +27,10 @@ sleep 5
# Run the tests, only output on the first rank
if [[ $SLURM_PROCID == "0" ]]; then
TZ=CET date +"Run started at: %H:%M:%S %z"
ctest -V $@
ctest --output-log "$CTEST_OUTPUT" -V $@
TZ=CET date +"Run finished at: %H:%M:%S %z"
else
ctest -Q $@
ctest --output-log "$CTEST_OUTPUT" -V -Q $@
fi

if [ $START_MPS -eq 1 ]; then
Expand Down
Loading