Skip to content

Commit 9f4317c

Browse files
fix: add linux-amd64-cpu-32-hk to actionlint runner labels
This is the ROOT CAUSE of why job pods were not being created! The actionlint.yaml file defines the list of valid runner labels that GitHub Actions recognizes. Without this label, GitHub cannot assign jobs to the cpu-32-hk runner, so job pods are never created. Also simplified the test workflow to focus on the actual problem instead of debugging buildctl installation.
1 parent 8c22504 commit 9f4317c

2 files changed

Lines changed: 11 additions & 131 deletions

File tree

.github/actionlint.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ self-hosted-runner:
1414
- linux-amd64-cpu-4-hk
1515
- linux-amd64-cpu-8-hk
1616
- linux-amd64-cpu-16-hk
17+
- linux-amd64-cpu-32-hk
1718
- linux-arm64-cpu-16
1819
- linux-aarch64-a2b3-0
1920
- linux-aarch64-a2b3-1

.github/workflows/test-cpu-32-runner.yaml

Lines changed: 10 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -60,145 +60,24 @@ jobs:
6060
echo "Sleep will start now (900 seconds = 15 minutes)"
6161
echo "=========================================="
6262
63-
- name: Checkout
63+
- name: Checkout and basic info
6464
run: |
65-
echo "Checking out repository..."
65+
echo "=== 🎯 Job Pod Created Successfully! ==="
66+
echo ""
67+
echo "Current directory:"
6668
pwd
67-
ls -la | head -20
68-
69-
- name: Print environment info
70-
run: |
7169
echo ""
72-
echo "=== 📊 System Information ==="
70+
echo "System info:"
7371
uname -a
7472
echo ""
75-
echo "=== 💻 CPU Information ==="
76-
nproc
77-
lscpu | head -15
73+
echo "CPU cores: $(nproc)"
74+
echo "Memory: $(free -h | grep Mem | awk '{print $2}')"
7875
echo ""
79-
echo "=== 💾 Memory Information ==="
80-
free -h
81-
echo ""
82-
echo "=== 👤 User and Groups ==="
76+
echo "Current user:"
8377
whoami
84-
id
85-
echo ""
86-
echo "=== 🔧 Available tools ==="
87-
which buildctl || echo "❌ buildctl not found"
88-
buildctl --version 2>/dev/null || echo "❌ buildctl not available"
89-
echo ""
90-
echo "=== 🌍 Environment Variables (BUILDKIT/DOCKER) ==="
91-
env | grep -E "BUILDKIT|DOCKER_CONFIG" || echo "❌ No BUILDKIT/DOCKER_CONFIG env vars found"
9278
echo ""
93-
echo "=== 📁 Home directory ==="
94-
ls -la ~/ | head -20
95-
96-
- name: Check Vault certificate injection
97-
run: |
98-
echo ""
99-
echo "=== 🔐 Checking Vault Certificate Injection ==="
100-
echo "Looking for Vault-injected certificates..."
101-
echo ""
102-
103-
if [ -d "$HOME/.docker" ]; then
104-
echo "✅ $HOME/.docker exists"
105-
echo "Files:"
106-
ls -la "$HOME/.docker/"
107-
echo ""
108-
echo "File contents (first 50 chars):"
109-
for f in "$HOME/.docker"/*; do
110-
if [ -f "$f" ]; then
111-
echo "--- $(basename $f) ---"
112-
head -c 50 "$f" 2>/dev/null && echo " ..."
113-
fi
114-
done
115-
else
116-
echo "❌ $HOME/.docker does NOT exist"
117-
echo "This indicates Vault injection failed!"
118-
fi
119-
120-
- name: Check buildctl availability
121-
continue-on-error: true
122-
run: |
123-
echo ""
124-
echo "=== 🚀 Checking buildctl at job start ==="
125-
126-
# Check global buildctl
127-
which buildctl && echo "✅ buildctl found in PATH" || echo "❌ buildctl NOT found in PATH"
128-
129-
# Check /tmp/buildkit/bin/buildctl (the download location)
130-
if [ -f "/tmp/buildkit/bin/buildctl" ]; then
131-
echo "✅ /tmp/buildkit/bin/buildctl exists"
132-
/tmp/buildkit/bin/buildctl --version
133-
else
134-
echo "❌ /tmp/buildkit/bin/buildctl NOT found"
135-
fi
136-
137-
buildctl --version 2>/dev/null || echo "⏳ buildctl --version failed (may still be installing)"
138-
139-
# Wait for buildctl if not available
140-
echo ""
141-
echo "Waiting for /tmp/buildkit/bin/buildctl to appear..."
142-
for i in {1..300}; do
143-
if [ -f "/tmp/buildkit/bin/buildctl" ]; then
144-
echo "✅ /tmp/buildkit/bin/buildctl appeared after $i seconds"
145-
/tmp/buildkit/bin/buildctl --version
146-
break
147-
fi
148-
if command -v buildctl &> /dev/null; then
149-
echo "✅ buildctl appeared in PATH after $i seconds"
150-
buildctl --version
151-
break
152-
fi
153-
[ $((i % 30)) -eq 0 ] && echo "Waiting... ($i/300 sec)"
154-
sleep 1
155-
done
156-
157-
# Final check
158-
echo ""
159-
echo "=== Final Status ==="
160-
if [ -f "/tmp/buildkit/bin/buildctl" ]; then
161-
echo "✅ /tmp/buildkit/bin/buildctl is available"
162-
/tmp/buildkit/bin/buildctl --version
163-
elif command -v buildctl &> /dev/null; then
164-
echo "✅ buildctl is available in PATH"
165-
buildctl --version
166-
else
167-
echo "⚠️ buildctl still not available after 5 minutes"
168-
echo ""
169-
echo "Diagnostics:"
170-
echo " - /tmp/buildkit/ contents:"
171-
ls -la /tmp/buildkit/ 2>/dev/null || echo " /tmp/buildkit/ does not exist"
172-
echo " - /tmp/buildkit/bin/ contents:"
173-
ls -la /tmp/buildkit/bin/ 2>/dev/null || echo " /tmp/buildkit/bin/ does not exist"
174-
echo " - /tmp/buildkit.tar.gz:"
175-
ls -la /tmp/buildkit.tar.gz 2>/dev/null || echo " /tmp/buildkit.tar.gz not found"
176-
echo ""
177-
echo "This may indicate:"
178-
echo " - postStart hook is taking too long"
179-
echo " - Network issue downloading buildkit binary"
180-
echo " - Vault certificate injection failed"
181-
echo " - Permission issue copying to /usr/local/bin"
182-
fi
183-
184-
- name: Test buildkitd connection
185-
continue-on-error: true
186-
run: |
187-
echo ""
188-
echo "=== 🔌 Testing buildkitd connection ==="
189-
echo "BUILDKITD_ADDR: ${BUILDKITD_ADDR:-not set}"
190-
echo "DOCKER_CONFIG: ${DOCKER_CONFIG:-not set}"
191-
192-
if [ -n "$BUILDKITD_ADDR" ]; then
193-
echo "Attempting to connect to buildkitd..."
194-
if command -v buildctl &> /dev/null; then
195-
buildctl du 2>&1 || echo "buildctl du failed (may need certificates)"
196-
else
197-
echo "buildctl not available yet"
198-
fi
199-
else
200-
echo "⚠️ BUILDKITD_ADDR not set"
201-
fi
79+
echo "Listing files in current directory:"
80+
ls -la | head -20
20281
20382
- name: Keep pod running for manual debugging (60 minutes)
20483
run: |

0 commit comments

Comments
 (0)