Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Slack Engineering 14 min read Case study mediumAdept

Mobile Developer Experience at Slack

A dedicated mobile Developer Experience team grew from 3 to 8 engineers and cut CI feedback time and failure rates by targeting the pain points that surveys, NPS and metrics like time to merge showed hurt developers most. iOS test time fell from about 50 minutes to an average of 9 by moving from Xcodebuild to Bazel with disk caching and bazel-diff, so only affected targets are tested. On Android, test sharding (in-house Fuel, later Flank) cut runs from 50+ minutes to under 20, and replacing Calabash with Espresso took suites from ~350 to ~60 minutes. Further gains came from auto-suppressing flaky tests (failure rate 57% to 4%), migrating from Jenkins to Buildkite (CI stability ~87% to 95%, TTM down 41%), generating Xcode projects with Xcodegen to avoid merge conflicts, and adopting a merge queue.

Assumes: CI pipelinesiOS/Android build toolingPull request workflows

Related posts

  • Handling Flaky Tests at Scale: Auto Detection & Suppression

    Slack Engineering mediumAdept

    Slack's mobile DevXp team cut CI test job failures from 57% of failing builds to under 5% by automating flaky test detection and suppression across 27,000+ iOS and Android tests. A first approach filtered flaky results using a per-test failure threshold over recent main-branch history, and it quickly raised build stability. It was rolled back because broken new tests and failed fixes leaked into main, and CI depended on a backend. The second approach suppresses test execution on the main branch only. It detects failures (excluding infra, crash and API failures), maps each test to an owning team, files a Jira ticket, then opens and auto-merges a PR that disables the test.

  • Scaling Slack’s Mobile Codebases: Modularization

    Slack Engineering mediumAdept

    Slack split its monolithic iOS and Android app targets into owned Feature, Service and Library modules with strict linking rules, such as interface/implementation pairs on iOS, to cut build times, untangle dependencies and clarify code ownership. On iOS, adopting Bazel made module creation easy, eliminated project-file merge conflicts, enabled static linking that improved pre-main launch time, and powered code generation for modules, CoreData models and feature flags. On Android, Slack abandoned a per-module Dagger 'graph of graphs' in favor of Square's Anvil, cut KAPT usage by moving to KSP, Moshi and Kotlin data classes, and enabled Gradle configuration caching, saving 20-45s on builds after configuration changes.

  • How GitHub reduced testing time for iOS apps with new runner features

    GitHub Engineering mediumAdept

    GitHub's iOS team cut CI testing time by 60%, from 38 to 15 minutes, by moving to Apple silicon M1 macOS runners (macos-14-xlarge) and splitting a single monolithic build-and-test job into per-module jobs across roughly 60 first-party modules. Small modules finish in 2-3 minutes, and failures are easier to isolate. The team also split each module's CI into separate build and test steps with xcodebuild's build-without-testing and test-without-building to find slow tests. Matching CI and laptop architecture lets engineers reproduce architecture-specific failures locally, and the team fans out 50 concurrent jobs per pull request.

  • How we rebuilt the Shopify app in 12 weeks

    Shopify Engineering mediumAdept

    Thirty engineers rebuilt the 300+ screen Shopify mobile app from React Native to native Swift and Kotlin in 12 weeks, with agents writing most of the code. The key work was building a system around the agents: a shared Reflex architecture for iOS and Android that lets ViewModels run headless from a CLI in milliseconds, CI checks that fail on cross-platform drift, and Helix verifying small checkpoints against the legacy app, which served as the spec instead of written documents. As code generation got faster, the bottlenecks moved to laptops, code review, merging and coordination. Shopify answered with remote dev environments, agent-first adversarial review on small dual-platform PRs, a daily loop that turns review comments into rules, agent-driven merge queues, and pod ownership by product area. Launch time dropped about 50% on Android and 14% on iOS, and the Android binary shrank by 40%.

  • Balancing Safety and Velocity in CI/CD at Slack

    Slack Engineering mediumAdept

    Slack restructured CI for its Webapp monorepo from mostly pre-merge end-to-end testing into three tiers: a small pre-merge set (<1% of e2e tests) that blocks merges, a post-merge set (<10%) that blocks deploys, and a bi-hourly batched regression pipeline for low-criticality features. The move was driven by the arithmetic of flakiness: even a 1% per-suite flake rate across 60+ suites meant most PRs hit a flaky failure. Consecutive-failure alerts based on a state machine, per-business-area triage channels with test ownership, and a Slack bot that spins up escalation channels with the right liaisons kept the change safe. Afterwards p95 test turnaround fell over 40% to under 18 minutes, per-PR flakiness dropped over 90% to under 5%, and customer-reported defects showed no measurable increase.

The quest for software engineering knowledge.

Look:
Layout: