Skip to content

Commit bd7f5c0

Browse files
leofangclaude
andcommitted
Revert PIP_ROOT_USER_ACTION changes (ineffective for setup-python)
The pip root-user warning originates from actions/setup-python's internal ensurepip call, which deliberately strips all PIP_* env vars (CPython design, see python/cpython#139363). Neither container.env nor job-level env can suppress it. See PR comment for full analysis. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c938310 commit bd7f5c0

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

.github/workflows/coverage.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ jobs:
4343
HOST_PLATFORM: "linux-64"
4444
ARCH: "x86_64"
4545
CUDA_VER: ${{ needs.coverage-vars.outputs.CUDA_VER }}
46-
# Suppress pip warnings in container jobs running as root.
47-
# This must be at the job level (not container.env) so that actions
48-
# running on the host (e.g. setup-python's internal pip upgrade) also see it.
49-
PIP_ROOT_USER_ACTION: "ignore"
5046
# Our self-hosted runners require a container
5147
# TODO: use a different (nvidia?) container
5248
container:

.github/workflows/test-wheel-linux.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,6 @@ jobs:
7878
runs-on: "linux-${{ matrix.ARCH }}-gpu-${{ matrix.GPU }}-${{ matrix.DRIVER }}-${{ matrix.GPU_COUNT }}"
7979
# The build stage could fail but we want the CI to keep moving.
8080
if: ${{ github.repository_owner == 'nvidia' && !cancelled() }}
81-
env:
82-
# Suppress pip warnings in container jobs running as root.
83-
# This must be at the job level (not container.env) so that actions
84-
# running on the host (e.g. setup-python's internal pip upgrade) also see it.
85-
PIP_ROOT_USER_ACTION: "ignore"
8681
# Our self-hosted runners require a container
8782
# TODO: use a different (nvidia?) container
8883
container:

0 commit comments

Comments
 (0)