Skip to content

EAS: production builds fail on Sentry's upload, appVersionSource is unset, and an iOS failure stops the Android build on main #186

Open

Description

@hotlong

Context

Found while producing the first Android build (#185). Each of these stops or weakens a later build, and none blocks the preview APK.

  1. production builds fail in Gradle. A release build runs Sentry's source map upload, which exits non-zero with no SENTRY_AUTH_TOKEN (run 41596720266). feat(eas): link the app to the EAS project so CI can build it #185 sets SENTRY_DISABLE_AUTO_UPLOAD for preview only.
  2. cli.appVersionSource is unset in eas.json. eas-cli warns that it "will be required in the future". production has autoIncrement: true, so the choice between local and remote decides where build numbers live.
  3. A push to main builds iOS first. eas-build.yml has no continue-on-error, so until Apple credentials exist a failing Build iOS is expected to stop Build Android too (from knowledge of eas-cli, not yet observed on main).

Ask

  • Set SENTRY_AUTH_TOKEN in the project's EAS environment variables, or decide that production skips the upload for now.
  • Set cli.appVersionSource.
  • Decide whether every push to main should build both platforms. Each one spends EAS build quota; the Android preview build took 27m 54s.

Acceptance

  • eas build --profile production --platform android --non-interactive reaches a signed artifact.
  • The appVersionSource warning is gone.
  • A push to main does not lose its Android build to an iOS failure.

Activity

  1. added
    tooling
    on Nov 3, 2026
  2. hotlong commented on Nov 3, 2026

    @hotlong
    ContributorAuthor

    Item 3 is now observed on main: run 41603160327 at 13b7e32 failed at Build iOS ("EAS CLI couldn't find any credentials suitable for internal distribution"), and Build Android was skipped.

  3. objectstack-fleet commented on Nov 10, 2026

    @objectstack-fleet
    Contributor

    repo:mobile#1 · os-justin · session_01QSeKYnW1Xf6HDSWz1eGAqv

    Ruling: batch #3 item 1 · letter A · maintainer 「批 #3 同意」 2026-11-10
    Ruling: batch #3 item 2 · letter A · maintainer 「批 #3 同意」 2026-11-10
    Ruling: batch #3 item 3 · letter A · maintainer 「批 #3 同意」 2026-11-10

    The batch was presented in session on 2026-11-05. The maintainer answered verbatim 「派发 #174,批 #3 同意」.

    • Item 1, A: the maintainer sets SENTRY_AUTH_TOKEN in the project's EAS environment variables before the first store build. production keeps the source-map upload; the repo does not add a skip. This item is a maintainer action, not code.
    • Item 2, A: eas.json sets cli.appVersionSource to remote. EAS servers own the build numbers, and production keeps autoIncrement: true.
    • Item 3, A: eas-build.yml splits iOS and Android into separate jobs. A push to main builds Android only. iOS builds run on workflow_dispatch alone until Apple signing credentials exist; turning iOS on for push is a later one-line change.

    Items 2 and 3 go out as one workflow PR. .github/workflows/** is governed and seat landing is suspended, so the maintainer merges it. The PR refers to this card without closing it. After it lands, the card moves to pm:awaiting-maintainer for item 1 and closes when the Acceptance's production build reaches a signed artifact.

  4. added
    pm:dispatched
    on Nov 10, 2026
  5. objectstack-fleet commented on Nov 10, 2026

    @objectstack-fleet
    Contributor

    repo:mobile#1 · os-justin · session_01QSeKYnW1Xf6HDSWz1eGAqv

    Claim: PM loop round 4
    Session: session_01QSeKYnW1Xf6HDSWz1eGAqv
    Account: os-justin
    Branch: claude/issue-186-eas-config
    Worktree: mobile-issue-186
    Domain: n/a — single-lane repo (repo:mobile)
    Seat: repo:mobile#1
    File surface: eas.json, .github/workflows/eas-build.yml, app.config.ts (only if remote makes a local build number dead), docs/DEPLOYMENT.md, docs/DEVICE-TESTING.md, .changeset/186-eas-config.md (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default tier (opus) — no path-derived mandate, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6598901286
    Premise: holds. On main at 8e4235f, eas.json has no cli.appVersionSource, and eas-build.yml builds both platforms as steps of one job with no continue-on-error. Comment 6598901286 records the iOS failure skipping Build Android (run 41603160327).
    Serial constraints cleared: none. #174 is dispatched in the same round with a disjoint file surface. Landing: the maintainer merges, because the PR changes .github/workflows/** and seat landing is suspended (see #160).

  6. objectstack-fleet commented on Nov 10, 2026

    @objectstack-fleet
    Contributor

    repo:mobile#1 · os-justin · session_01QSeKYnW1Xf6HDSWz1eGAqv
    os-dev-report

    {
      "issue": 186,
      "status": "done",
      "branch": "claude/issue-186-eas-config",
      "pr": "https://github.com/objectstack-ai/mobile/pull/191",
      "session": "session_01QSeKYnW1Xf6HDSWz1eGAqv",
      "premise_still_valid": true,
      "summary": "Rulings 2 and 3 are implemented in draft PR #191, head dd9500a, and the PR refers to the card without closing it. eas.json sets cli.appVersionSource to remote, and production keeps autoIncrement. eas-build.yml now has separate ios and android jobs: a push builds Android only, iOS runs only on workflow_dispatch (platform ios or all), and a comment names the one replacement if: line that turns iOS on for push. The inputs, profiles, permissions and the EXPO_TOKEN step guard are kept. Mechanism measured in eas-cli 27.5.0 (build/android/version.js resolveRemoteVersionCodeAsync, and its iOS twin): the project is managed (/android and /ios are gitignored), so the local version comes from the app config, which defaults to 1, and no build:version:set seeding is needed. app.config.ts and app.json set no buildNumber or versionCode, so nothing was dead and app.config.ts is untouched. PM assumption disproved: neither DEPLOYMENT.md nor DEVICE-TESTING.md described the push build, so nothing was false. DEPLOYMENT.md gained a short description of what push builds and where build numbers live; DEVICE-TESTING.md is unchanged because it is still true. eas-update.yml and eas-submit.yml have no needs or workflow_run on eas-build.yml. A patch changeset follows the eas-project-link.md precedent. Deviations: (1) the first commit carried a model-named Co-Authored-By trailer and a Refs line. It was amended to the model-free pair and pushed with --force-with-lease=claude/issue-186-eas-config:3bacb3c before any PR existed: all five unshared-branch conditions held. (2) PR line 1 reads 'Refs #186. Part of #186', which satisfies both the dispatch spelling and os-dev's non-closing form. (3) 需要你做的 names two acts: setting SENTRY_AUTH_TOKEN, which the dispatch requires there, and merging, which governance reserves to the maintainer.",
      "tests": "Base 8e4235f, head dd9500a. eas.json JSON.parse: exit 0. eas-build.yml yaml.safe_load: exit 0, jobs [ios, android]. actionlint 1.7.12 (PyPI actionlint-py): eas-build.yml exit 0; all five workflows exit 0; positive control (scratch copy with secrets.EXPO_TOKEN in a job-level if) exit 1, 'context \"secrets\" is not allowed here'. prettier --check eas.json eas-build.yml: exit 0. jest --ci __tests__/lib/app-config.test.ts under os-verify-lock: VERDICT command-exit 0, Tests 3 passed of 3. Hand walk of the job if: expressions: push = ios skipped, android runs (preview); dispatch all = both run; dispatch ios = ios only; dispatch android = android only. Without EXPO_TOKEN, every step is skipped and the job is a green no-op. tsc --noEmit, eslint and the full jest suite were not run locally because app.config.ts and all TS are unchanged; they are declared to lint-typecheck.yml and ci.yml. No ablation: config, workflow and docs only. Card Acceptance (signed production artifact, warning gone, Android survives an iOS failure): NOT MEASURED, reason: each needs a real EAS run after the merge; the PR's 两分钟验证 names what to look for.",
      "gates": "Local gates (exit codes recorded in scratchpad issue-186/exits.txt): json 0, yaml 0, actionlint 0 / 0 (control 1), prettier 0, jest app-config 0. This is a sister repo with no dispatch-gates.mjs, so no --ran reconciliation applies; the list was derived by hand from package.json and .github/workflows. PR #191 check-runs at dd9500a: 'Lint & Type Check' in_progress, 'Code Quality' in_progress. eas-build.yml does not run on pull_request, so the PR cannot exercise it.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 relay writes: (1) pr_create POST /repos/objectstack-ai/mobile/pulls, draft, no labels or assignees, relay run 42732429696, read back 6171 bytes identical; (2) this os-dev-report comment, POST /repos/objectstack-ai/mobile/issues/186/comments via post-stamped. Git pushes (not REST): the empty-branch probe, 3bacb3c, and the force-with-lease to dd9500a.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  7. objectstack-fleet commented on Nov 10, 2026

    @objectstack-fleet
    Contributor

    repo:mobile#1 · os-justin · session_01QSeKYnW1Xf6HDSWz1eGAqv

    ACCEPT → PR #191 (head dd9500a), seat record on the PR. It is a workflow PR, so the maintainer merges. The card stays open for ruling 1 (SENTRY_AUTH_TOKEN).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

pm:dispatchedtooling

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions