Skip to content

Your phone, on your command. Gotcha is world's first fully on-device AI copilot for Android that turns natural language into real device actions — safely.

ci: disable automatic GitHub Actions runs to save budget

Rishabh Bajpaia964300dfe50
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7b8fd63..92ea732 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,12 +1,13 @@
name: CI
+# CI is DISABLED by default to conserve GitHub Actions budget. The automatic
+# triggers (push / pull_request / schedule) are intentionally removed; the
+# nightly full-matrix job no longer runs. The workflow can still be triggered
+# manually via Actions → Run workflow (opt-in, consumes budget), but prefer the
+# equivalent local commands in docs/RUNNING_TESTS.md. See AGENTS.md → CI.
+
on:
- push:
- branches: [master, development, development, rishabh-development]
- pull_request:
workflow_dispatch:
- schedule:
- - cron: "0 2 * * *"
concurrency:
group: ci-${{ github.ref }}
@@ -58,7 +59,6 @@ jobs:
# GMD remains the local workflow. Device configs mirror the GMD definitions
# in app/build.gradle.kts.
instrumented-smoke:
- if: github.event_name != 'schedule'
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
@@ -141,8 +141,12 @@ jobs:
app/build/outputs/androidTest-results/
retention-days: 14
+ # Sharding (-Pandroid.testInstrumentationRunnerArguments.numShards/shardIndex plus a
+ # `shard` matrix axis) is deliberately deferred until the instrumented suite exceeds
+ # ~20 tests; at 6 tests it would cost more in emulator boots than it saves.
+ # The full matrix only runs on a manual workflow_dispatch now that the
+ # nightly schedule is removed.
instrumented-full:
- if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
diff --git a/docs/RUNNING_TESTS.md b/docs/RUNNING_TESTS.md
index 3a0ad9d..828dec4 100644
--- a/docs/RUNNING_TESTS.md
+++ b/docs/RUNNING_TESTS.md
@@ -140,16 +140,24 @@ making a visible AVD from it):
smoke layer. Requires Maestro installed separately (see
`TESTING_PLAN.md` §Phase 5 for the install command). Not exercised in this
session either.
-- **CI** (`.github/workflows/ci.yml`) — `instrumented-smoke` runs on every
- push/PR (API 34 only); `instrumented-full` runs nightly and on manual
- `workflow_dispatch` (API 27/30/33/34 as a job matrix). CI does **not** use
- GMD: the emulator failed to boot on the GitHub runners and GMD swallowed
- its stderr, reporting only "Error message from emulator process = []".
- Switching to `reactivecircus/android-emulator-runner` surfaced the real
- error — `FATAL | Not enough space to create userdata partition` (the
- emulator needs ~7.4 GB free; the runner had ~6.5 GB) — fixed by the
- "Free disk space" step that removes unused preinstalled toolchains.
- emulator-runner stays because it reports emulator output and manages
- boot/wait itself; CI runs plain `:app:connectedDebugAndroidTest`. GMD
- remains the local workflow; the CI matrix mirrors the GMD device
- definitions in `app/build.gradle.kts`.
+- **CI** (`.github/workflows/ci.yml`) — **disabled by default** to conserve GitHub Actions
+ budget: automatic triggers (push, PRs, the nightly full-matrix schedule) are removed. The
+ workflow still runs on manual `workflow_dispatch` (Actions → **Run workflow**, opt-in and
+ budget-consuming), but the canonical way to run the whole suite is locally:
+ - Detekt: `./gradlew :app:detekt`
+ - Unit tests: `./gradlew :app:testDebugUnitTest`
+ - Coverage reports: `./gradlew :app:koverHtmlReport`
+ - Android Lint: `./gradlew :app:lintDebug`
+ - Debug APK: `./gradlew :app:assembleDebug`
+ - Instrumented smoke (API 34): `./gradlew :app:smokeGroupDebugAndroidTest`
+ - Instrumented full matrix (API 27/30/33/34): `./gradlew :app:fullGroupDebugAndroidTest`
+ The CI jobs themselves are unchanged: `instrumented-smoke` runs on API 34 and `instrumented-full`
+ runs a matrix across API levels, using `reactivecircus/android-emulator-runner` (CI does **not**
+ use GMD: the emulator failed to boot on the GitHub runners and GMD swallowed its stderr,
+ reporting only "Error message from emulator process = []". Switching to
+ `reactivecircus/android-emulator-runner` surfaced the real error — `FATAL | Not enough space to
+ create userdata partition` (the emulator needs ~7.4 GB free; the runner had ~6.5 GB) — fixed by
+ the "Free disk space" step that removes unused preinstalled toolchains. emulator-runner stays
+ because it reports emulator output and manages boot/wait itself; CI runs plain
+ `:app:connectedDebugAndroidTest`. GMD remains the local workflow; the CI matrix mirrors the GMD
+ device definitions in `app/build.gradle.kts`.