Repository navigation
ci(app): report debug APK size in the Android compile job summary - #14378
Merged
Merged
Conversation
The APK build stays android-arm64 on every event, matching main since c8f3506. Extra ABIs still OOM ubuntu-latest. Co-authored-by: Cursor <[email protected]>
CI wiring lives in MOBILE_VERIFY.md so app/AGENTS.md stays inside its lean budget. Co-authored-by: Cursor <[email protected]>
Warn mode does not downgrade a cache-state serialization failure of builtInKotlinServices. Generate the gitignored wrapper with --config-only so the parallel JVM job can run without an APK compile. Failure-Class: none Co-authored-by: Cursor <[email protected]>
--analyze-size needs a second release compile (~10-15 min). The zip breakdown of the APK this job already builds is a coarse, fork-safe signal in under a minute, never a gate. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
Nothing in this repo tracked mobile app size. Android Compile Smoke already builds
app-dev-debug.apk(arm64, flavordev). This PR reports that APK's on-disk size and top-level zip buckets (lib/,assets/,classes.dex, …) intoGITHUB_STEP_SUMMARYand uploadsapk-size-<sha>.json.This is a reported number, never a gate. Fork PRs work: no secrets, no PR comment bot.
Why not
flutter build apk --analyze-sizeFlutter's size tool is release-mode and single-ABI only (https://docs.flutter.dev/perf/app-size). Debug builds are explicitly not representative of Play download size. A second
flutter build apk --release --flavor dev --target-platform android-arm64 --analyze-sizeinside this job would be another full Gradle compile — about 10–15 minutes on top of the existing ~11 minute debug APK, against a 25-minute job ceiling — for a non-gating number.The zip breakdown costs under a minute (Python
zipfileover the APK this job already produced). Coarser, but it always has a number whenever compile smoke runs.Product invariants affected
none
Failure class (fixes)
Stacked V5 includes
fix(ci): drop Gradle configuration cache that broke AGP 8.11.1. This PR's own commit is not a fix.Failure-Class: none
How it was verified
python3 .github/scripts/test_report_debug_apk_size.pyactionlint -shellcheck "" .github/workflows/mobile-app-checks.ymluv run --python 3.11.15 --with pytest pytest --noconftest backend/tests/unit/test_workflow_contracts.pyOMI_PR_BODY_FILE=.local/pr-body-f3-size.md make preflightA stacked PR whose base is not
mainwill not start Mobile App Checks until that trigger is unblocked (#14358 follow-up) or the PR is retargeted tomain. The report itself is exercised by the script tests.Tests
lib/,assets/, top-levelclasses.dexTHRESHOLDreport_debug_apk_size.py,GITHUB_STEP_SUMMARY,apk-size-<sha>artifact, no--analyze-size, no comment bot, no secretsPart of the mobile self-driving program (CI and release lane). Implemented by Cursor
cursor-grok-4.6-high. A reported number, never a gate. Coordinator verification: the script tests pass (4) andactionlintis clean; the PR's own CI run is the real check of the job-summary output.🤖 Generated with Claude Code