|
1 | | -name: Testing-1087 |
| 1 | +name: Reproduce 1087 |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | workflow_dispatch: |
5 | 5 |
|
6 | 6 | jobs: |
7 | | - ubuntu-24-python38: |
8 | | - name: Ubuntu 24.04 / Python 3.8 |
9 | | - runs-on: self-hosted |
10 | | - container: ubuntu:24.04 |
| 7 | + job1-ubuntu-24-container: |
| 8 | + name: 1️⃣ Ubuntu 24.04 container / Python 3.8 |
| 9 | + runs-on: [self-hosted] |
| 10 | + container: ubuntu:24.04 |
11 | 11 | steps: |
12 | | - - name: Install prerequisites |
| 12 | + - name: Show OS info |
13 | 13 | run: | |
14 | | - apt-get update |
15 | | - apt-get install -y --no-install-recommends ca-certificates curl git sudo |
| 14 | + echo "=== /etc/os-release ===" |
| 15 | + cat /etc/os-release |
| 16 | + echo "=== glibc ===" |
| 17 | + ldd --version | head -1 |
16 | 18 |
|
17 | | - - name: Set up Python 3.8 |
18 | | - uses: actions/setup-python@v5 |
| 19 | + - name: Ensure sudo is installed |
| 20 | + run: | |
| 21 | + if ! command -v sudo &> /dev/null; then |
| 22 | + apt-get update && apt-get install -y sudo |
| 23 | + fi |
| 24 | +
|
| 25 | + - name: Fix permissions |
| 26 | + run: sudo chown -R $(whoami) /github/home |
| 27 | + |
| 28 | + - uses: actions/checkout@v6 |
| 29 | + |
| 30 | + - name: Clear tool cache (force cache miss for clean repro) |
| 31 | + run: | |
| 32 | + rm -rf /__w/_tool/Python |
| 33 | + echo "Tool cache cleared:" |
| 34 | + ls -la /__w/_tool/ || true |
| 35 | +
|
| 36 | + - uses: actions/setup-python@v5 |
19 | 37 | with: |
20 | 38 | python-version: '3.8' |
21 | 39 |
|
22 | | - - name: Upgrade pip |
| 40 | + - name: Show what was cached |
| 41 | + run: | |
| 42 | + echo "=== Tool cache contents after install ===" |
| 43 | + ls -la /__w/_tool/Python/ |
| 44 | + ls -la /__w/_tool/Python/*/x64/ | head -20 |
| 45 | +
|
| 46 | + - name: pip install --upgrade pip (job 1 — should succeed) |
23 | 47 | run: python -m pip install --upgrade pip |
24 | 48 |
|
25 | | - ubuntu-20-python38: |
26 | | - name: Ubuntu 20.04 / Python 3.8 |
27 | | - needs: ubuntu-24-python38 |
28 | | - runs-on: self-hosted |
29 | | - container: ubuntu:20.04 |
| 49 | + job2-ubuntu-20-container: |
| 50 | + name: 2️⃣ Ubuntu 20.04 container / Python 3.8 (BUG surfaces here) |
| 51 | + needs: job1-ubuntu-24-container |
| 52 | + runs-on: [self-hosted] |
| 53 | + container: ubuntu:20.04 |
30 | 54 | steps: |
31 | | - - name: Install prerequisites |
| 55 | + - name: Show OS info |
32 | 56 | run: | |
33 | | - apt-get update |
34 | | - apt-get install -y --no-install-recommends ca-certificates curl git sudo |
| 57 | + echo "=== /etc/os-release ===" |
| 58 | + cat /etc/os-release |
| 59 | + echo "=== glibc ===" |
| 60 | + ldd --version | head -1 |
35 | 61 |
|
36 | | - - name: Set up Python 3.8 |
37 | | - uses: actions/setup-python@v5 |
| 62 | + - name: Ensure sudo is installed |
| 63 | + run: | |
| 64 | + if ! command -v sudo &> /dev/null; then |
| 65 | + apt-get update && apt-get install -y sudo |
| 66 | + fi |
| 67 | +
|
| 68 | + - name: Fix permissions |
| 69 | + run: sudo chown -R $(whoami) /github/home |
| 70 | + |
| 71 | + - uses: actions/checkout@v6 |
| 72 | + |
| 73 | + - name: Inspect tool cache populated by job 1 |
| 74 | + run: | |
| 75 | + echo "=== Tool cache contents seen by job 2 ===" |
| 76 | + ls -la /__w/_tool/Python/ || echo "(no Python dir)" |
| 77 | + ls -la /__w/_tool/Python/*/x64/ 2>/dev/null | head -20 || true |
| 78 | +
|
| 79 | + - uses: actions/setup-python@v5 |
38 | 80 | with: |
39 | 81 | python-version: '3.8' |
40 | 82 |
|
41 | | - - name: Upgrade pip |
42 | | - run: python -m pip install --upgrade pip |
| 83 | + - name: Show where Python came from |
| 84 | + run: | |
| 85 | + which python |
| 86 | + python --version |
| 87 | + echo "pythonLocation=$pythonLocation" |
| 88 | +
|
| 89 | + # 👇 The reproducer step from the issue. |
| 90 | + # Expected to FAIL with either: |
| 91 | + # - "SSLError: Can't connect to HTTPS URL because the SSL module is not available" |
| 92 | + # - "version `GLIBC_2.34' not found" |
| 93 | + - name: pip install --upgrade pip (job 2 — expected to FAIL) |
| 94 | + run: python -m pip install --upgrade pip |
0 commit comments