Skip to content

Commit ae9462d

Browse files
committed
ci: fix git 'dubious ownership' spam in NVHPC Docker container
The repo is bind-mounted into the container from the host runner, so git sees a different owner and emits 'fatal: detected dubious ownership' on every git command. This causes the test runner to dump the git diff help text 546 times (once per test), bloating the CI log to 80,000+ lines. Fix: git config --global --add safe.directory /workspace in Setup NVHPC.
1 parent fb18e49 commit ae9462d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,11 @@ jobs:
310310
apt-get install -y cmake python3 python3-venv python3-pip \
311311
libfftw3-dev libhdf5-dev hdf5-tools git
312312
313+
# The repo is bind-mounted from the host so git sees a different
314+
# owner. Mark it safe to suppress "dubious ownership" errors that
315+
# otherwise spam 80 000+ lines into the CI log.
316+
git config --global --add safe.directory /workspace
317+
313318
# Set up NVHPC HPC-X MPI runtime paths
314319
HPCX_DIR=$(dirname "$(find /opt/nvidia/hpc_sdk -path "*/hpcx/hpcx-*/ompi/bin/mpirun" | head -1)")/../..
315320
MPI_LIB=$(mpifort --showme:link | grep -oP "(?<=-L)\S+" | head -1)

0 commit comments

Comments
 (0)