~/talk

Building a Canary Testing Framework

Talkat Strange Loop 2018 · 2018-09-26..09-28· [testing, observability]
slides:none on file

A working canary framework that runs continuously in production claims to catch real regressions not visible to end‑to‑end suites: it uses a Go daemon to launch concurrent goroutines, embeds an embedded JavaScript VM (otto) for per‑test scripts, enforces per‑test timeouts and frequencies, and stores results in BoltDB storage while exporting Prometheus metrics and a GraphQL API. It runs per‑product canaries across regions, caught a surprising firewall race condition, and successfully logs structured test output.

AI-written summary · about

  1. 0:00Building a Canary Testing Framework
  2. 0:25What is a canary?
  3. 1:07Canary tests should mimic user behavior and test a specific feature.
  4. 3:52Allow for more specificity and granularity for the execution environment
  5. 5:31Visualization of Test Output / Execution Status
  6. 5:49Recording and alerting on metrics via Prometheus
  7. 6:36Canary Framework Architecture Components
  8. 7:05A database for storing test execution results
  9. 7:18Why Go for the actual framework?
  10. 7:54Decent support for embedding languages
  11. 10:01Allows us to write and run test scripts using JavaScript
  12. 10:50The Canary Daemon
  13. 11:01Executes the config file and registers the tests to run
  14. 11:42Loading Test Configurations
  15. 18:21Standard Library Functions
  16. 26:12Saving Test Execution Results to a Database
  17. 36:11Questions?
~/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.