~/talk

Speed up your test suite by throwing computers at it

Talkat RailsConf 2021 · 2021-04-12..04-15· [testing]
links:none on file
slides:none on file

CI runtime falls from tens of minutes to minutes by running tests across many machines and shaving startup costs. Practical moves: parallelize by splitting file lists or using CircleCI CLI or knapsack, cache and clean Bundler and git, delete bundle caches to shrink layers, and build CI-specific Docker images so containers boot instantly. Numbers reported: suites at 20–40 minutes, caches restoring ~2 minutes, saving ~100 MB per image layer and about a minute by choosing more common image tags; automated reruns isolate flakies and tickets track fixes.

AI-written summary · about

  1. 0:00Start
  2. 5:26How Do We Parallelize Our Tests
  3. 5:54Separate Your Test Suite
  4. 7:29Control Dependencies between Jobs
  5. 9:18Automatically Splitting the Files
  6. 12:02Build Matrix
  7. 15:29Typical Ci Config
  8. 17:59Installing Your Gems
  9. 18:45Bundle
  10. 20:08Automatically Clean Out Data Versions
  11. 22:09Container Initialization Time
  12. 22:34Introduction to How Docker Works Docker Containers
  13. 24:12Layers
  14. 35:35Bundler
  15. 37:20Bundle Install
  16. 41:32Dive Tool
  17. 42:32Observability
  18. 44:44Flaky Tests
  19. 45:40Fix Your Flakies
  20. 47:58Uneven Distributions
  21. 50:05Knapsack
  22. 54:03Critical Paths
  23. 56:48Recap
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.