CI/CD
Every release reaches testers the same way, from any machine
Mobile releases had to reach testers the same way every time: from any machine, with no step by hand and no secret exposed.
Under NDA
This case study combines several projects with a similar problem. The companies’ names and logos are under NDA, and we left out the details that could identify them.
- Release
- one command takes a tag to testers
- Signing
- no key or password in the repository or logs
- Versions
- each tool and the release version written once
The problem
A release had to reach testers in TestFlight and Google Play the same way every time, from whichever machine cut it, with no step done by hand. Signing keys and store access could show up in no repository or log, and losing a machine could not mean losing them.
What we did
01Every tool is pinned in mise to its full version, and a fresh clone installs the same tools with one command. A gate refuses a commit that carries a key, a build artifact, a subject outside Conventional Commits or a version that differs between files.
02Unit tests and the Maestro UI flows run with one command. A run that hangs or outgrows its memory is stopped at a time or memory bound, and its last lines name the bound it passed.
03iOS builds are signed from a shared fastlane match repository, Android ones with an upload key read from outside the repository; a release build without its key fails and leaves nothing unsigned. Every key and password has a copy off the build machine that restores it.
04A release tag goes to TestFlight or Google Play with one command, which refuses a tree with changes or a commit that is no release. Build numbers are derived from the release name and rise on their own, so no one edits them.
Result
From a tag to testers, nothing is done by hand. A fresh machine, given its keys back, builds and signs a release the same as the last one.
Technologies
- fastlane
- Gradle
- Maestro
- mise
Check your own system
Three questions on this topic. After each one, a short note on why it matters.
Does a release reach testers with no step by hand?
Why it matters
A step done by hand depends on who does it and on which machine, so no two releases come out alike.
Do your signing keys outlive the machine they sit on?
Why it matters
A key that lives on one laptop leaves with it: until a new one is issued, no release goes out.
Does each tester’s build name the commit it was built from?
Why it matters
Without it, a tester’s bug report points at no code, and the fix starts with guessing.
Looks like this part is in order
If you want someone to look at the rest of the system from the outside, write to us.
There is something to check
Incidents usually start in places like these. Write to us about how this part of your system works, and we will suggest what to check first.
This is worth looking at first
There are several weak spots, and the rest of the system probably has some too. Write to us, and we will work out what to fix first.
If your mail app did not open, here is the address: hello@infiniteloop.tech
Have a similar problem?
Write to us about what is going on. We reply within 2 business days.
More case studies
- Content Idempotent model calls: no repeat paid for, no call lost
- Real time Stream processing in real time
- Platform A common base for new services
- Reliability Multi-step operations across services
- Data Test databases without personal data
- Content delivery New content without a release: downloaded whole, read offline