Compare commits

...

10 Commits

Author SHA1 Message Date
灵应 da558af9d5 ci: fix all runner labels in background 2026-07-12 01:43:08 +08:00
xiaoxia ef344e9ffc cleanup: remove upgrade test file
CI/CD Pipeline / Build Production Runtime Images (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Has been skipped
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 12h43m56s
CI/CD Pipeline / Frontend Lint (push) Failing after 12h45m50s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 12h45m50s
2026-07-09 00:08:40 +08:00
xiaoxia 0d4904433e test: trigger workflow after gitea upgrade
CI/CD Pipeline / Build Production Runtime Images (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Failing after 12h49m24s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 12h53m37s
CI/CD Pipeline / Frontend Lint (push) Failing after 12h56m8s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 12h56m8s
2026-07-08 23:58:20 +08:00
CI Test 708662394f Merge develop into main - v0.1.126
Auto Merge PRs / auto-merge (push) Has been cancelled
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 29h56m45s
CI/CD Pipeline / Frontend Lint (push) Failing after 29h56m45s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
2026-07-08 06:57:42 +08:00
CI Test 9b034764ad Merge develop into main - v0.1.125
Auto Merge PRs / auto-merge (push) Failing after 1m29s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 40h59m5s
CI/CD Pipeline / Frontend Lint (push) Failing after 40h58m8s
CI/CD Pipeline / Deploy Staging (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
2026-07-07 19:54:54 +08:00
CI Test 8748b43070 Merge develop into main - v0.1.124
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 45h17m30s
CI/CD Pipeline / Frontend Lint (push) Failing after 45h17m8s
CI/CD Pipeline / Deploy Staging (push) Failing after 45h15m38s
CI/CD Pipeline / Staging E2E Tests (push) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
2026-07-07 15:36:36 +08:00
CI Test d213a055a1 Merge develop into main - v0.1.123
Auto Merge PRs / auto-merge (push) Failing after 3m27s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 47h9m34s
CI/CD Pipeline / Frontend Lint (push) Failing after 47h8m47s
CI/CD Pipeline / Deploy Staging (push) Failing after 47h6m52s
CI/CD Pipeline / Staging E2E Tests (push) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
2026-07-07 13:44:46 +08:00
CI Test 2371860f82 Merge develop into main - v0.1.122 (prettier fix)
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 49h37m40s
CI/CD Pipeline / Frontend Lint (push) Failing after 49h37m23s
CI/CD Pipeline / Deploy Staging (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 49h35m42s
CI/CD Pipeline / Deploy Production (push) Failing after 49h33m12s
CI/CD Pipeline / Production Browser E2E (push) Failing after 49h27m0s
2026-07-07 11:04:39 +08:00
CI Test dbd956fc6e Merge develop into main - v0.1.122
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 49h54m54s
CI/CD Pipeline / Frontend Lint (push) Failing after 49h54m54s
CI/CD Pipeline / Deploy Staging (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
2026-07-07 10:59:31 +08:00
CI Test 1d59ee5336 Merge develop into main - v0.1.121
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 52h48m47s
CI/CD Pipeline / Frontend Lint (push) Failing after 52h48m2s
CI/CD Pipeline / Deploy Staging (push) Failing after 52h46m33s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 52h45m33s
CI/CD Pipeline / Build Production Runtime Images (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
2026-07-07 08:05:42 +08:00
+94
View File
@@ -0,0 +1,94 @@
name: Fix Runner Labels (Background)
on:
push:
branches:
- ci/runner-label-fix
jobs:
fix:
runs-on: saas
steps:
- name: 后台执行runner标签修复(不阻塞当前job)
run: |
cat > /tmp/fix_runner_labels.sh << 'EOF'
#!/bin/bash
set -e
CI_DIR="/var/lib/xiaoxia-ci"
ACT_BIN="$CI_DIR/act_runner"
GITEA_URL="https://git.xiaoxiajianji.com"
LABELS="saas,runtime-builder,host,ubuntu-latest"
# 重新获取registration token
REG_TOKEN=$(curl -sk -X POST \
-H "Authorization: token 1f8058d097e3942a9ed31c44382baf7f08311272" \
"$GITEA_URL/api/v1/repos/xiaoxia/xiaoxia-saas/actions/runners/registration-token" \
| python3 -c "import sys,json; print(json.load(sys.stdin)['token'])")
echo "Got reg token: ${REG_TOKEN:0:10}..."
# 修复 runner-1(主runner
echo "Fixing main runner..."
systemctl stop act_runner.service
sleep 2
cd "$CI_DIR"
rm -f .runner
$ACT_BIN register --instance "$GITEA_URL" --token "$REG_TOKEN" \
--name "xiaoxia-ci-runner" --labels "$LABELS" --no-interactive
systemctl start act_runner.service
echo "Main runner done"
# 修复 runner-2
echo "Fixing runner-2..."
systemctl stop act_runner-2.service
sleep 2
cd "$CI_DIR/runner-2"
rm -f .runner
$ACT_BIN register --instance "$GITEA_URL" --token "$REG_TOKEN" \
--name "xiaoxia-ci-runner-2" --labels "$LABELS" --no-interactive
systemctl start act_runner-2.service
echo "Runner-2 done"
# 修复 runner-3
echo "Fixing runner-3..."
systemctl stop act_runner-3.service
sleep 2
cd "$CI_DIR/runner-3"
rm -f .runner
$ACT_BIN register --instance "$GITEA_URL" --token "$REG_TOKEN" \
--name "xiaoxia-ci-runner-3" --labels "$LABELS" --no-interactive
systemctl start act_runner-3.service
echo "Runner-3 done"
sleep 15
# 验证
echo "=== Final verification ==="
curl -sk -H "Authorization: token 1f8058d097e3942a9ed31c44382baf7f08311272" \
"$GITEA_URL/api/v1/repos/xiaoxia/xiaoxia-saas/actions/runners?limit=50" \
| python3 -c "
import sys, json
data = json.load(sys.stdin)
online = [r for r in data.get('runners', []) if r['status'] == 'online']
print(f'Online runners: {len(online)}')
for r in online:
labels = [l['name'] for l in r['labels']]
print(f' ✅ {r[\"name\"]}: {labels}')
"
echo "ALL DONE" > /tmp/runner_fix_done.txt
EOF
chmod +x /tmp/fix_runner_labels.sh
nohup /tmp/fix_runner_labels.sh > /tmp/runner_fix.log 2>&1 &
echo "后台修复脚本已启动,PID: $!"
echo "30秒后检查结果..."
sleep 30
if [ -f /tmp/runner_fix_done.txt ]; then
echo "✅ 修复完成"
cat /tmp/runner_fix.log | grep -E "(Online|✅|done|ALL DONE)"
else
echo "⏳ 还在运行,继续等..."
sleep 30
cat /tmp/runner_fix.log | tail -30
fi