Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

On Rails

On Rails artwork

Florent Beaurain: Optimizing Rails Tests at Doctolib Scale

Oct 7, 20251 hr 18 minAudioSeason 1, Episode 6
  • Apple Podcasts
ShareXLinkedInFacebookWhatsAppEmail

In this episode of On Rails, Robby is joined by Florent Beaurain, a longtime Rails engineer at Doctolib, home to one of the largest Rails monoliths in Europe with over 3 million lines of code and 400+ engineers. They explore how Doctolib’s team tackled massive test suite performance issues, including cutting one engine’s test time from seven minutes to under one minute. Florent shares insights from managing 84,000 tests, scaling across 10 PostgreSQL databases, and maintaining Rails upgrades across a fast-moving organization using systematic approaches like dual-boot deployments and careful backporting strategies. Tools & Libraries Mentioned AWS Aurora (PostgreSQL) - Production database platform, scaled to 10+ writers and 15+ readers. Capybara - End-to-end testing of UI flows in the monolith. Capybara Lockstep -JavaScript sync layer reducing flakiness in React-driven feature specs. Datadog - Application performance monitoring for production systems. Docker - Local PostgreSQL and other data stores. FactoryBot - Identified as a major performance bottleneck in large test suites. factory_fixtures - Shopify gem extending fixtures with inline factory-style overrides. GitHub Copilot - Workflow automation and onboarding support. Heroku CI - Previously used for parallelized CI builds before moving to custom infrastructure. Jenkins - Original CI platform before scaling up to more powerful infrastructure. Minitest - Primary test framework, used throughout the monolith with some extensions. Packwerk - Used to modularize their monolith into engines with explicit boundaries and dependency declarations. PostgreSQL - Core relational database behind their production and local environments. React - Primary frontend framework, integrated into the Rails monolith via a single-page app architecture. Ruby on Rails - The framework behind Doctolib’s 3-million-line monolith and most of their core product infrastructure. safe-pg-migrations - Tool to reduce downtime risks during large-scale schema changes. Sentry - Error tracking and visibility tool integrated into their release workflow. Webpack Dev Server - Used locally to support React development alongside the Rails app. Send us Fan Mail On Rails is a podcast focused on real-world technical decision-making, exploring how teams are scaling, architecting, and solving complex challenges with Rails. On Rails is brought to you by The Rails Foundation, and hosted by Robby Russell of Planet Argon, a consultancy that helps teams modernize their Ruby on Rails applications.

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Chapters

  1. Doctolib’s CI suite runs 84,000+ tests per commit, using over 130 CPU hours
  2. Scaling test infrastructure with 45-minute pipelines, test selection, and parallel servers
  3. Improving local dev experience by letting engineers run isolated engine tests
  4. Database resets and factories identified as key bottlenecks for test performance
  5. Switching to transactional tests and revisiting fixtures to align with Rails defaults
  6. Dropping one engine’s test time from 7 minutes to under 1 minute
  7. Migrating 90% of the codebase to a faster testing framework in three months
  8. Using Packwerk to modularize the monolith - why zero dependency engines are a myth
  9. Leveraging AI to automate cleanup tasks and support onboarding
  10. Hitting AWS Aurora scaling limits with 10 Postgres writers and 15 readers each
  11. Avoiding downtime with multi-step database migrations and rollback strategies
  12. Staying current with Rails via dual-booting, CI-driven development, and upstream tracking
  13. Advice for smaller teams upgrading Rails: read the source code and start small
  14. Managing 20,000 end-to-end tests with retry logic and Capybara Lockstep
  15. Using internal CLI tool (dctl) to streamline local setup and staging access

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. Marco Roth: Teaching Rails to Read Its Own Template

    Nov 13, 20261 hr 30 minAudio

    Marco Roth, an independent consultant and the creator of Herb and ReActionView, joins Robby to talk about teaching Rails to understand its own templates. Marco explains how Herb parses HTML and ERB together, why that...

    • Apple Podcasts

    Credit the people on this episode

  2. Hussain Akram & Antonio Carlos de Souza: Rails Scales for the Rest of Us

    Oct 22, 20261 hr 47 minAudio

    Hussain Akram is an engineering manager at Donorbox, and Antonio Carlos de Souza (AC) is its chief architect, working on a Rails app that has helped nonprofits raise money online and in person for more than a decade....

    • Apple Podcasts

    Credit the people on this episode

  3. Eddie Galindo & Kagen Hearn: Rate Limiting For Your Customers

    Sep 1, 20261 hr 24 minAudio

    Eddie Galindo is an engineering lead at Ascend and Kagen Hearn is a senior software engineer there, working on a Rails app that helps insurance agencies move and reconcile money. Robby chats with Eddie and Kagen about...

    • Apple Podcasts

    Credit the people on this episode

  4. Joanna Wang: Code Is Cheap Now; Developers Still Valuable

    Aug 18, 202643 minAudio

    Joanna Wang is a senior software engineer at Sixfold, where the team builds AI underwriting tools that help insurance companies gather data and assess risk. She came to Ruby on Rails after working across Java, Go,...

    • Apple Podcasts

    Credit the people on this episode

  5. Aaron Patterson: Ractors, JIT Compilers, and Rewriting How Gems Install

    Aug 4, 20261 hr 23 minAudio

    In this episode of On Rails, Robby is joined by Aaron Patterson, better known online as Tenderlove, a senior staff engineer on Shopify’s Ruby infrastructure team and a longtime contributor to both Ruby and Rails Core....

    • Apple Podcasts

    Credit the people on this episode