# The Alert That Never Fired

Source: https://www.observeone.com/blog/the-alert-that-never-fired

[Blog](/blog)/The Alert That Never FiredEngineering

# The Alert That Never Fired

Part nine of building oo-workers in public: a code review found browser checks that never alerted, plus three more bugs worth writing down.

ObserveOne Team

July 16, 2026

2 min read

In this series

## Building oo-workers in public

- 1.[How We Built a Self-Hosted Monitoring Engine](/blog/building-a-self-hosted-monitoring-engine)
- 2.[Eight Monitor Types From One Engine](/blog/eight-monitor-types-one-engine)
- 3.[Building the Dashboard Without a Framework](/blog/building-the-dashboard-without-a-framework)
- 4.[A Portable Backup Format, Not pg_dump](/blog/portable-backups-not-pg-dump)
- 5.[A Three-Pass Code Audit in 14 PRs](/blog/three-pass-code-quality-audit)
- 6.[Killing the 5-Second Poll](/blog/killing-the-5-second-poll)
- 7.[Cutting the Docker Image to 1.4 GB](/blog/cutting-the-docker-image-to-1-4gb)
- 8.[Tests That Spin Real Databases](/blog/tests-that-spin-real-databases)
- 9.The Alert That Never Fired

A five-area code review of oo-workers before the v1.29.0 release found three
criticals. The worst was quiet: browser-check runs that completed, recorded
results, and never alerted.

## The alert that never fired[#](#the-alert-that-never-fired)

A browser-check run is N Playwright tests, each writing its own execution
row, so "did the site go down?" is a per-run aggregate. The old detector
grouped rows by a ±30 second startedAt bucket. That sort of worked on the
master path. On the region-dispatch path results come back one at a time,
nothing aggregated them, and the alerting function was never called.

The fix replaces timing with structure:

- A qa_runs row is created at run start with an expected_tests count;
every execution row carries its run_id.

- Completion is count-based: the writer checks whether all expected rows
have a completedAt.

- Alerting is an idempotent claim: UPDATE qa_runs SET outcome, alerted_at WHERE alerted_at IS NULL. When the last two results race, exactly one
alert fires.

- Comparison is scoped to (project, region), so a healthy region can no
longer mask another region&#x27;s outage.

## Credentials that went nowhere[#](#credentials-that-went-nowhere)

The Playwright runner accepted a credentials parameter and never read it.
Authenticated checks silently ran logged out, and a loosely written
"dashboard loads" test passes fine against a login redirect. Credentials are
now injected into the spawned test&#x27;s environment, so scripts read
process.env.LOGIN_EMAIL and actually sign in.

## The import that lied[#](#the-import-that-lied)

oo-workers can be seeded from an ObserveOne export: obs export produces a
JSON bundle of your monitors, alert channels, and status pages, and the
self-hosted instance imports the whole bundle in one shot. That import ran
as a single Postgres transaction while counting per-row insert errors as
"skipped" and moving on. Postgres aborts a transaction at the first error,
so every insert after a bad row failed and the final COMMIT rolled
everything back, while the importer still reported partial success. Each
row now runs in its own savepoint, so a bad row rolls back alone and
"imported 214, skipped 3" means what it says.

## Redacting what the URL carries[#](#redacting-what-the-url-carries)

A check URL can embed basic-auth credentials (https://user:pass@host).
Error messages interpolated the raw URL and flowed to logs, Slack, webhooks,
and email. URLs are now credential-stripped before they reach any error
text.

## Weighing your options on this stack?

Drop into the head-to-head pages, or browse the alternatives we recommend.

### Side-by-side

- [ObserveOne vs Playwright](/compare/observeone-vs-playwright)

### Alternatives shortlists

- [Best Playwright alternatives](/alternatives/playwright)

[Previous← Tests That Spin Real Databases](/blog/tests-that-spin-real-databases)

## Related Posts

[EngineeringA Three-Pass Code Audit in 14 PRsPart five of building oo-workers in public: a deliberate code-quality pass shipped as 14 small PRs, the hardening it added, and one big file split.](/blog/three-pass-code-quality-audit)[EngineeringHow We Built a Self-Hosted Monitoring EnginePart one of building oo-workers in public: the stack behind the engine, Bun, Postgres, BullMQ, and Playwright, and why we chose each.](/blog/building-a-self-hosted-monitoring-engine)[EngineeringTests That Spin Real DatabasesPart eight of building oo-workers in public: testing a monitoring tool with real infrastructure over mocks, and behavior over vacuous tests.](/blog/tests-that-spin-real-databases)

## Compare these tools

Side-by-side comparisons and alternatives

- [ObserveOne vs Playwright](/compare/observeone-vs-playwright)

- [Best Playwright alternatives](/alternatives/playwright)

## Ready for AI-Powered Testing?

ObserveOne monitors your selectors 24/7 and automatically heals them when websites change. Never deal with broken tests again.

[Start Free Trial](https://app.observeone.com/auth?tab=signup)
