From b73a09ac640a5d8882566ca415c355d1571460e9 Mon Sep 17 00:00:00 2001 From: Rui Luo Date: Mon, 30 Mar 2026 16:33:51 +0800 Subject: [PATCH 1/2] coverage: add git safe.directory for linux builds --- .github/workflows/coverage.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 3c0d4fa700..ee5e6d50b2 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -67,6 +67,9 @@ jobs: with: fetch-depth: 0 + - name: Mark workspace as safe for git + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" + - name: Install dependencies uses: ./.github/actions/install_unix_deps continue-on-error: false From 326a960b739d62a2a6f9928feeeaac95d8a35bed Mon Sep 17 00:00:00 2001 From: Rui Luo Date: Wed, 1 Apr 2026 10:47:21 +0800 Subject: [PATCH 2/2] coverage: run coverage for linux without root --- .github/workflows/coverage.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index ee5e6d50b2..a3141de3f8 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -46,7 +46,6 @@ jobs: # Our self-hosted runners require a container # TODO: use a different (nvidia?) container container: - options: -u root --security-opt seccomp=unconfined --shm-size 16g image: ubuntu:22.04 env: NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }} @@ -67,9 +66,6 @@ jobs: with: fetch-depth: 0 - - name: Mark workspace as safe for git - run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - - name: Install dependencies uses: ./.github/actions/install_unix_deps continue-on-error: false