YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(ci): check runner busy status — fallback to GH-hosted if self-hosted busy
Louis Beaumontc90db73cd9fe
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex 1aae2c1b7..5cbe8bfa3 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -81,14 +81,18 @@ jobs:env:GH_TOKEN: ${{ secrets.RUNNER_CHECK_TOKEN }}run: |+ # Check if runner is online AND not busy (available = can start immediately)check_runner() {local label="$1"local infoinfo=$(gh api repos/${{ github.repository }}/actions/runners \- --jq ".runners[] | select(.labels[].name == \"$label\") | {status: .status, busy: .busy}" 2>/dev/null || echo '{"status":"offline","busy":false}')+ --jq ".runners[] | select(.labels[].name == \"$label\") | {status: .status, busy: .busy}" 2>/dev/null || echo '{"status":"offline","busy":true}')local status=$(echo "$info" | jq -r '.status // "offline"')- if [ "$status" = "online" ]; then- echo "online"+ local busy=$(echo "$info" | jq -r '.busy // true')+ if [ "$status" = "online" ] && [ "$busy" = "false" ]; then+ echo "available"+ elif [ "$status" = "online" ]; then+ echo "busy"elseecho "offline"fi@@ -100,30 +104,30 @@ jobs:echo "windows_runner=windows-2019" >> $GITHUB_OUTPUTecho "⚠️ Forcing GitHub-hosted runners (manual override)"else- # macOS aarch64: MacBook (macos-26) → Mac Mini (macos-test) → GH-hosted (macos-latest)+ # macOS aarch64: prefer available self-hosted, fallback to GH-hosted if busy/offlineMACBOOK=$(check_runner "macos-26")MACMINI=$(check_runner "macos-test")- if [ "$MACBOOK" = "online" ]; then+ if [ "$MACBOOK" = "available" ]; thenecho "macos_arm_runner=macos-26" >> $GITHUB_OUTPUT- echo "✅ MacBook (macos-26) is online — using as primary"- elif [ "$MACMINI" = "online" ]; then+ echo "✅ MacBook (macos-26) is available"+ elif [ "$MACMINI" = "available" ]; thenecho "macos_arm_runner=macos-test" >> $GITHUB_OUTPUT- echo "⚠️ MacBook offline — falling back to Mac Mini (macos-test)"+ echo "⚠️ MacBook busy/offline — using Mac Mini (macos-test)"elseecho "macos_arm_runner=macos-latest" >> $GITHUB_OUTPUT- echo "ℹ️ All self-hosted macOS runners offline — using GH-hosted macos-latest"+ echo "ℹ️ All self-hosted runners busy/offline — using GH-hosted macos-latest"fi- # Windows: self-hosted (windows-desktop-test) → GH-hosted (windows-2019)+ # Windows: prefer self-hosted if available, fallback to GH-hostedWINRUNNER=$(check_runner "windows-desktop-test")- if [ "$WINRUNNER" = "online" ]; then+ if [ "$WINRUNNER" = "available" ]; thenecho "windows_runner=windows-desktop-test" >> $GITHUB_OUTPUT- echo "✅ Windows self-hosted runner is online"+ echo "✅ Windows self-hosted runner is available"elseecho "windows_runner=windows-2019" >> $GITHUB_OUTPUT- echo "ℹ️ Windows self-hosted offline — using GH-hosted windows-2019"+ echo "ℹ️ Windows self-hosted busy/offline — using GH-hosted windows-2019"fifi