Skip to content

ci(demo): Run the demo on Windows, iOS and Android - #18

Draft
bitsandfoxes wants to merge 4 commits into
mainfrom
spire/demo-runs-on-all-platforms
Draft

bitsandfoxes wants to merge 4 commits into
mainfrom
spire/demo-runs-on-all-platforms

Conversation

@bitsandfoxes

@bitsandfoxes bitsandfoxes commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Only the Windows player runs the demo today. The iOS, Android, Linux and macOS run jobs in run-demo.yml are switched off, so the demo faults never reach Sentry from a mobile device. Every run, including those on pull requests, reports to the demo org, so a PR can't show whether its events arrive and group correctly without adding to the demo org's data.

How

Diagram

Diagram source
flowchart LR
  ci([CI run]) --> pr{Pull request?}
  pr -->|yes| test[Test project]
  pr -->|no| demo[Demo org]
  test --> all[Windows, iOS and Android demos]
  demo --> all
  cron([Cron on main]) --> cad{Which cadence?}
  cad -->|every 10 min| win[Windows demo]:::good
  cad -->|every 20 min| mob[iOS and Android demos]:::good
  win --> demo2[Demo org]
  mob --> demo2

Every CI run runs the demo on Windows, iOS and Android against the players it built. Windows starts as soon as its player is ready. iOS and Android start once the build chain is through. On main, the cron runs the desktop demo every 10 minutes and the mobile demos every 20, each on main's newest player for that platform. "Run Demo Builds" can also be started by hand with an optional platforms list (for example ios,android, no spaces). Linux and macOS run only when the list names them.

Pull request builds take the TEST_* secrets for the DSN, the symbol upload and the build fingerprint. A PR's players therefore report to the test project and upload their symbols there. Push, main and scheduled runs keep the demo org. run-demo.yml now resolves a player run id per platform instead of only Windows. ci.yml calls it twice, once for Windows and once for mobile, and always passes an explicit platform list. In a called workflow the github context belongs to the caller, so the build workflow's own weekly cron would otherwise look like a schedule to the demo jobs. The desktop run step times out after 5 minutes, down from 10.

Caveats

  • The build workflow still holds one license group with cancel-in-progress, so a newer CI run on any branch cancels the one in progress, including its mobile demo. On main, the scheduled demo carries on from the players that run uploaded. A cancelled pull request run loses its mobile demo, so re-run the job.
  • The native crash groups per platform, because its stack frames differ between them. The managed faults are expected to share one issue across platforms.

bitsandfoxes and others added 4 commits December 2, 2026 10:41
Pull request builds report to the test project, main to the demo org.
Scheduled runs take each platform's newest player on main: desktop every
10 minutes, mobile every 20. ci.yml runs the Windows demo once its player
is built and the mobile demos once the build chain is through.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
…nels

The ubuntu-24.04-arm image now boots a 7.0 azure kernel, which has no
linux-modules-extra package, so the Android demo failed before Redroid
started. Load binder_linux first and install the extra modules only when
the module isn't there.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant