Time and cost
This page shows how much CI time KeepSnappy uses, so you can estimate the bill.
What one session costs in runner time
A session is one KeepSnappy job in CI. It builds your app once and runs each journey 5 times (repetitions in keepsnappy.yml). For iOS, it runs on a macOS CI machine.
One session takes about your build time, plus 5 times one pass of your journeys, plus the time for setup, upload and the wait for the result.
The workflow runs a session on every push to a pull request and on every push to main. Before the first pull request gets a result, main needs 3 sessions. If you said yes to the nightly run when init asked, it adds one session on main each night.
An example, with the numbers the CI page plans with: a 20-minute build, a 10-minute pass of your journeys and 20 minutes for setup, upload and the wait. One session is 20 + 5 × 10 + 20 = 90 minutes on a macOS CI machine. The 3 sessions of main at the start are 3 × 90 = 270 minutes. After that, each push to a pull request or to main adds one session. The nightly run adds 30 × 90 = 2,700 minutes in a 30-day month.
Your own numbers decide it. Time your build and one pass of your journeys, and add them up as above. Your CI provider bills those minutes.
Other setups
- Android on an emulator: the job can run on a Linux CI machine (Android). GitHub Actions bills Linux minutes at a lower rate than macOS minutes.
- Real phones on BrowserStack: the session also uses BrowserStack minutes, and a failed run keeps the phone reserved for longer (BrowserStack).
- A phone on a cable, or a simulator on your Mac (Try it on your Mac): the session runs on a machine of your own, so it uses no hosted runner minutes.
Make a session shorter
To make a session shorter, run fewer journeys or fewer repetitions: see CI.