~/talk

When Can You Skip a Test? Tracking Test Impact

Talkat RubyKaigi 2026 · 2026-04-22..04-24· [testing, developer-experience]
links:none on file
slides:none on file

DataDog’s test impact tool claims to cut CI time dramatically — examples show a 15‑minute suite reduced to 9 seconds for some commits and a goal of ~50% average CI time reduction. Implementation journey: start with coverage API (SimpleCov) which gave 4× slowdown, try trace point (line events) with up to 6× slowdown, then build a C extension using rb_event_hook and rb_profile_frames plus RB_SOURCEFILE to hit ~60% worst‑case overhead; add an allocation profiler (const_source_location) and bytecode ISeq scanning to cover constants, bringing median overhead under 20% and fixing missed dependencies.

AI-written summary · about

  1. 0:00Introduction
  2. 1:29Test impact analysis
  3. 5:04Approaches to coverage
  4. 8:35TracePoint limitations
  5. 10:43Native extension attempt
  6. 14:40Correctness challenges
  7. 17:09Allocation profiling
  8. 21:00Constant access tracking
  9. 23:08Bytecode analysis
  10. 25:55Final solution
  11. 26:38Resources and closing
~/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.