Until recently, mobile end-to-end (E2E) testing was so expensive that only a handful of companies could afford it.
Two things made it expensive. First, mobile E2E tests took far longer to write than unit tests, and they were hard to maintain as the app changed. Large language models have cut that effort to the point where anyone can write an E2E test.
Then there’s the cost of running those tests in CI. When we launched OpenCI, we offered only macOS runners. We set the price at ¥1 per minute, a tenth of the going rate.
Take a 60-minute E2E run on a GitHub Actions macOS runner at roughly ¥10 per minute. That’s about ¥600 per run, or ¥12,000 a month if you run it once a day for 20 days. Teams often run their tests several times a day. That can push the monthly bill into the tens or even hundreds of thousands of yen, more than many teams can afford.
On OpenCI’s macOS runners, those same 20 runs cost ¥1,200. Add more E2E tests and run them more often, though, and you can still spend tens of thousands of yen a month. That adds up to hundreds of thousands of yen a year. To me, that’s too much to spend on CI.
You should be able to run CI as often as you need.
And CI should be dirt cheap.
That’s why we introduced Linux workers. A worker with 2 vCPUs and 8 GiB of RAM costs ¥0.1 per minute, about a tenth of the going rate. The same 60-minute E2E run costs ¥6. You can run it hundreds of times a month for a few thousand yen.
If your team runs enough tests to spend ¥10,000 a month at that price, that’s something to be proud of. I’m convinced the gains in quality are worth far more to your business than the CI bill.
Linux workers for every connected repository
Every repository connected to OpenCI can now use the Linux workers we started piloting last week. Linux Medium comes with 2 vCPUs and 8 GiB of RAM for ¥0.1 per minute, tax included. A 30-minute test run costs ¥3. Linux release notes · Pricing
To use it, pass machine: MachineType.linuxMedium to OpenCI.init() in your Dart workflow. If you used linuxSmall or linuxLarge during the pilot, switch to linuxMedium when you update the workflow SDK to 0.10.0 or later. SDK changes
If you pin a Flutter version in your workflow, replace flutterVersion: '3.47.8' with flutterVersion: FlutterVersion.v3_47_8 when upgrading to workflow SDK 0.12.0 or later. Omit the pin to use the worker image’s default Flutter SDK. Flutter version migration
Catch Flutter UI changes in a pull request
A Flutter golden test renders a widget and compares it with a reference image checked into your repository. If you generate that image on a Mac and run the test on Linux, even a difference in how the two systems render a font can show up in the diff. You can now generate the reference image and run the comparison in the same Linux environment.
Teams with a verified card on file can generate goldens on a hosted worker. Sign in to the OpenCI CLI and run the command below from your Flutter package directory.
openci --update-goldensThe CLI sends your working tree, including uncommitted changes, to the Linux worker and writes the updated PNGs back to your local project. Open the images and commit them with your code if the changes are what you intended. In a monorepo, use --dir apps/dashboard to select a package. CLI guide
To compare those baselines on a pull request, call await ci.flutter.goldenTest(); (added in workflow SDK 0.12.1) after fetching dependencies. It runs the Flutter tests tagged golden. Golden test helper
We capture the sign-in screen at five sizes, from a 375-pixel-wide iPhone SE viewport to a 1,440-pixel-wide desktop. Because the images include the actual text, we can spot a button label that fits in Japanese but wraps onto a second line in English on a small phone. See all ten Japanese and English baselines
Run Android E2E tests on an 8 GiB Linux worker
The order of operations makes a difference on an 8 GiB worker. First, Gradle builds the app and test APKs. When the build finishes, the workflow SDK stops the Gradle daemon, freeing its memory before the Android emulator starts. Here’s the sequence from our Patrol workflow.
await ci.patrol.prepareApk(targets: ['patrol_test/smoke_test.dart']);
final emulator = await ci.launchAndroidEmulator();
try {
await ci.patrol.testWithoutBuilding(device: emulator.id);
} finally {
await emulator.dispose();
}Our smoke test taps the + button to set a counter to 1, goes to the Android home screen, then reopens the app. Patrol checks that the counter still reads 1. Dashboard workflow · Smoke test
Investigate CI and manage jobs from Codex or Claude Code
The official OpenCI plugin for Codex and Claude Code includes the MCP server we introduced last week. Paste a pull request URL and ask, “Which step of the Android test failed? Show me the log lines just before the error.” The plugin also includes skills for adding Flutter golden tests and Android Patrol tests to your own project.
With OpenCI CLI 0.12.0 or later, you can ask your assistant to cancel a queued or running job. To register a team secret, give the assistant just its name, such as API_TOKEN. A one-time form opens in your local browser so you can enter the value directly. Plugin setup and MCP guide
Cancel older CI jobs when you push a fix
Sometimes you spot a missing change just after starting an E2E run. When you push another commit to the same pull request and it triggers the same workflow, OpenCI now cancels the older queued or running jobs by default. To let every commit finish, set cancelPreviousRuns: false in OpenCI.init(). Workflow settings
GitHub now shows one check per pull request job, and that check follows the job from the queue through completion. If the base branch moves ahead during review, you can still see which base commit OpenCI tested your changes against. GitHub Checks update
iOS builds and the macOS dashboard
- iOS builds.
ci.flutter.buildIpa()now acceptsdartDefines,dartDefineFromFiles, andbuildNumber. You can pass an environment-specific configuration file and a TestFlight build number directly from your Dart workflow. iOS build options - macOS dashboard. We added Sign in with Apple to the sign-in screen. New users can also register with Apple’s Hide My Email option. macOS release notes
Have a great weekend!
GitHub Release v2.10.0 · All changes in this week’s releases (v2.8.0–v2.10.0)
Cover photo by Jr Korpa on Unsplash.
RELEASE NOTES