Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(ci): Android merges stop cutting a new Play Store build every time #26596

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/26596/headmerged by juliusmarminge View on GitHub

juliusmarmingecommented

Every merge to main that touches mobile paths has been building and submitting a new Android binary to the Play Store (internal track), roughly one per merge for at least 9 days, even with no native changes. Android also received no OTAs during that time.

Cause: the reconcile step computes the Android fingerprint with eas fingerprint:generate and looks for a finished build with that hash. app.config.ts sets android.googleServicesFile from T3CODE_ANDROID_GOOGLE_SERVICES_FILE, and @expo/fingerprint hashes that file's contents. The file exists on EAS build servers, but EAS commands skip .env.local, so the CI job never sees it. The hashes never match, and every run takes the "native fingerprint has no build — building" branch. Recent runs all computed the same hash (ea1e8eb2…), and all of them still rebuilt. iOS doesn't use the file, so iOS OTAs kept working.

Fix: after eas env:pull production, pass the file path on to later steps the way mobile-eas-preview.yml already does. If it's missing, fail loudly so the job doesn't silently go back to rebuilding.

Verification: traced through the workflow logs, eas-cli 26 (computeAndMaybeUploadRuntimeAndFingerprintMetadataAsync), and @expo/fingerprint (expoConfigExternalFile hashing of googleServicesFile). I couldn't read the builds' stored fingerprints from EAS directly. The first merge after this should still build once, since no build has the corrected hash yet. Later merges should publish an Android OTA (android/production: OTA published) instead of building. No screenshots: this is a CI-only change.

Scope and approval: a maintainer asked for this fix in this session after spotting the excess Play Store submissions in the EAS dashboard. There's no tracking issue because it's a one-step CI fix. The new step only runs in the production EAS workflow.

Model/harness: Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

    1. Approvability

      Verdict: Approved at 09e0600

      Macroscope's review found this PR approvable — The workflow now supplies the Android Google services file path to fingerprint generation, preventing unnecessary Play Store builds and enabling matching OTAs. Existing compatibility checks remain intact, and missing configuration stops the job before publishing.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    2. Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire5.0 KiB5.0 KiB−6 B (−0.1%)6.8 KiB✅
      CodexThread snapshot wire3.8 KiB3.8 KiB0 B (0.0%)4.9 KiB✅
      CodexLive turn WebSocket wire1.3 KiB1.2 KiB−6 B (−0.5%)2.0 KiB✅
      CodexLive turn WebSocket decoded21.6 KiB21.6 KiB0 B (0.0%)24.4 KiB✅
      CodexLive turn messages220 (0.0%)8✅
      ClaudeTotal thread wire5.0 KiB5.0 KiB0 B (0.0%)6.8 KiB✅
      ClaudeThread snapshot wire3.8 KiB3.8 KiB0 B (0.0%)4.9 KiB✅
      ClaudeLive turn WebSocket wire1.3 KiB1.3 KiB0 B (0.0%)2.0 KiB✅
      ClaudeLive turn WebSocket decoded21.9 KiB21.9 KiB0 B (0.0%)24.4 KiB✅
      ClaudeLive turn messages220 (0.0%)8✅

      Baseline: 612a8e5 · PR result: 09e0600 · Source CI: success

      Scenario and decoded snapshot size

      10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

      • Codex decoded thread snapshot: 108.5 KiB
      • Claude decoded thread snapshot: 108.8 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      No actionable comments were generated in the recent review.

      Recent review info
      Run configuration
      Commits

      Reviewing files that changed from the base of the PR and between 612a8e59f0f2cee5eaaf24507f848c7a634ac3dc and 09e0600778368a72d3e49cf37b74262b51774af9.

      Files selected for processing: 1
      • .github/workflows/mobile-eas-production.yml

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

      Walkthrough

      The production EAS workflow now reads T3CODE_ANDROID_GOOGLE_SERVICES_FILE from the pulled .env.local file, fails if the variable is missing, and exports its value through GITHUB_ENV.

      Changes: Production EAS environment

      Layer / File(s)Summary
      Pull and export the Android environment value
      .github/workflows/mobile-eas-production.yml
      After eas env:pull, the workflow parses .env.local, requires T3CODE_ANDROID_GOOGLE_SERVICES_FILE, and exports its value through GITHUB_ENV.
      Priority: Normal

      Estimated code review effort: 2 (Simple) | ~10 minutes

      Change: Bug fix

      Possibly related PRs

      Suggested labels: size:S, 🚀 Mobile Continuous Deployment

      Suggested reviewers: gabrielelpidio, justyannicc

      Merge Risk: Minimal · up to 09e06

      The change exports the pulled Google services file path so Android fingerprint reconciliation can match existing builds. No actionable merge-blocking risk was found. The first merge after this change is expected to build once before later merges publish OTAs.

      Pre-merge checks: Passed 4
      Check nameStatusExplanation
      Title checkPassedThe title names the change and the symptom it fixes: Android merges stop cutting a new Play Store build on every merge. It matches the changeset, which passes the Google services file path to later st…
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Description checkPassedThe description covers the required Problem, Change, Scope and approval, and Verification sections. It explains the root cause, the workflow change, the rationale for the focused CI fix, verification …
      Full details: Title check

      Explanation

      The title names the change and the symptom it fixes: Android merges stop cutting a new Play Store build on every merge. It matches the changeset, which passes the Google services file path to later steps in the production EAS workflow so the fingerprint matches an existing build. The title uses a conventional commit prefix and stays short and specific.

      Full details: Description check

      Explanation

      The description covers the required Problem, Change, Scope and approval, and Verification sections. It explains the root cause, the workflow change, the rationale for the focused CI fix, verification performed, remaining verification limits, and the model and harness used.

      Finishing Touches
      🧪 Generate unit tests (beta)
      • Commit to this branch
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
      Comment `@coderabbitai help` to get the list of available commands.
    4. juliusmarminge merged this237498c

    5. juliusmarminge closed this

Sign in to join this conversation.