Skip to content

Commit b7f2f5f

Browse files
Robclaude
andcommitted
fix(ci): skip virtual-power job when power_only is set
power_only is a physical-device-only audit; the virtual Pixel3 job was incorrectly running (and failing with exit 18 — incompatible Pixel3+API30 combination) instead of being skipped like virtual-ux already is. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fa3f974 commit b7f2f5f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/testlab.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,12 @@ jobs:
224224

225225
# ─────────────────────────────────────────────────────────────────────────────
226226
# Virtual Power — wakelock / alarm / jank analysis.
227-
# 15 min on regular runs; extended to 20 min when power_only to capture
228-
# more background polling cycles.
227+
# Skipped when power_only is set (physical-only audit; no value in virtual noise).
229228
# ─────────────────────────────────────────────────────────────────────────────
230229
virtual-power:
231-
name: Power/Wake — virtual Pixel3 API30 (${{ inputs.power_only == true && '20m' || '15m' }})
230+
name: Power/Wake — virtual Pixel3 API30
232231
needs: build
232+
if: github.event_name == 'push' || inputs.power_only != true
233233
runs-on: ubuntu-latest
234234
timeout-minutes: 40
235235

@@ -254,7 +254,7 @@ jobs:
254254
APP_APK=$(find apks -name "*.apk" ! -name "*androidTest*" ! -name "*unsigned*" | head -1)
255255
RUN_DIR="glucodroid-power-$(date +%Y%m%d-%H%M%S)"
256256
echo "FTL_RUN_DIR=$RUN_DIR" >> "$GITHUB_ENV"
257-
TIMEOUT="${{ inputs.power_only == true && '20m' || '15m' }}"
257+
TIMEOUT="15m"
258258
gsutil mb -p "$FIREBASE_PROJECT_ID" -l us-central1 "gs://${FTL_BUCKET}" 2>/dev/null || true
259259
gcloud firebase test android run \
260260
--type robo \

0 commit comments

Comments
 (0)